sqllogictest
Artifact Content
Not logged in

Artifact dfecb792010f07aebac6c136e9fe026504af042f:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-0
SELECT + MIN ( ALL - NULLIF ( + 89, 47 ) ) * CAST ( + COUNT ( * ) AS INTEGER ) + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1
SELECT ALL 84 * + NULLIF ( + - 95, + COUNT( * ) * + 74 * + + 64 ) * + + 41
----
-327180

skipif mysql # not compatible
query I rowsort label-1
SELECT ALL 84 * + NULLIF ( + - 95, + COUNT ( * ) * + 74 * + + 64 ) * + + 41
----
-327180

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2
SELECT ALL CAST( NULL AS DECIMAL ) * 0
----
NULL

skipif mysql # not compatible
query I rowsort label-2
SELECT ALL CAST ( NULL AS REAL ) * 0
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4
SELECT - ( COUNT( * ) ) AS col1, 47 + + CAST( 45 AS SIGNED ) * 15 + - 6 / CAST( NULL AS SIGNED ) + MIN( DISTINCT 16 ) col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-4
SELECT - ( COUNT ( * ) ) AS col1, 47 + + CAST ( 45 AS INTEGER ) * 15 + - 6 / CAST ( NULL AS INTEGER ) + MIN ( DISTINCT 16 ) col0
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5
SELECT + COUNT( * ) + - 55 - - + 77
----
23

skipif mysql # not compatible
query I rowsort label-5
SELECT + COUNT ( * ) + - 55 - - + 77
----
23

query I rowsort
SELECT DISTINCT 83 * + 13 * + - 51
----
-55029

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7
SELECT 52 * 70, CAST( + 27 AS SIGNED ) + - 41 AS col0
----
3640
-14

skipif mysql # not compatible
query II rowsort label-7
SELECT 52 * 70, CAST ( + 27 AS INTEGER ) + - 41 AS col0
----
3640
-14

query I rowsort
SELECT + 66 * - + 54 + 56 * 75 AS col1
----
636

query I rowsort
SELECT DISTINCT + 76 + - 98
----
-22

query I rowsort
SELECT 77 * + + 22 * + 94 AS col0
----
159236

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-13
SELECT DISTINCT - MIN( ALL + 73 ) + 50 + + 19 * + 22 col1, 71 AS col2
----
395
71

skipif mysql # not compatible
query II rowsort label-13
SELECT DISTINCT - MIN ( ALL + 73 ) + 50 + + 19 * + 22 col1, 71 AS col2
----
395
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-14
SELECT MIN( 46 ) DIV - COUNT( * ) + + 52 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-14
SELECT MIN ( 46 ) / - COUNT ( * ) + + 52 AS col0
----
6

query I rowsort
SELECT + COALESCE ( - - ( 23 ), 64 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-16
SELECT + 53 * - NULLIF ( + COUNT( * ), + + 34 ) + 45
----
-8

skipif mysql # not compatible
query I rowsort label-16
SELECT + 53 * - NULLIF ( + COUNT ( * ), + + 34 ) + 45
----
-8

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-19
SELECT ALL - - CASE - - 74 WHEN - + COUNT( * ) THEN - - 98 DIV - 64 * - - 92 ELSE - 57 + - - 54 END
----
-3

skipif mysql # not compatible
query I rowsort label-19
SELECT ALL - - CASE - - 74 WHEN - + COUNT ( * ) THEN - - 98 / - 64 * - - 92 ELSE - 57 + - - 54 END
----
-3

query I rowsort
SELECT - 0 + 98 * + - 71
----
-6958

query I rowsort
SELECT DISTINCT - 9 * + 54 AS col2
----
-486

query I rowsort
SELECT + + COALESCE ( 53, 74 ) AS col0
----
53

query I rowsort
SELECT 36 * - - 20 AS col1
----
720

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

query I rowsort
SELECT 98 * - 61 - - + 66 AS col0
----
-5912

onlyif mysql # aggregate syntax: 
query I rowsort label-26
SELECT COUNT( * ) - + 96 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-26
SELECT COUNT ( * ) - + 96 AS col0
----
-95

query II rowsort
SELECT 75, 17 * + 27 * - 0 AS col2
----
75
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-28
SELECT 52 DIV 72 * - COALESCE ( + 14, - COUNT( * ) * - 38 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-28
SELECT 52 / 72 * - COALESCE ( + 14, - COUNT ( * ) * - 38 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-29
SELECT ALL - 26 AS col2, + MIN( - 84 ) col1
----
-26
-84

skipif mysql # not compatible
query II rowsort label-29
SELECT ALL - 26 AS col2, + MIN ( - 84 ) col1
----
-26
-84

query I rowsort
SELECT 61 * - + 76 AS col2
----
-4636

query I rowsort
SELECT 97 * + - 44 AS col0
----
-4268

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-33
SELECT DISTINCT 82 DIV - ( 67 ) AS col1, - 85 + - 77 * + 15 * + 84 * - - 45 AS col2, SUM( ALL + 55 ) + + 66 AS col2
----
-1
-4365985
121

skipif mysql # not compatible
query III rowsort label-33
SELECT DISTINCT 82 / - ( 67 ) AS col1, - 85 + - 77 * + 15 * + 84 * - - 45 AS col2, SUM ( ALL + 55 ) + + 66 AS col2
----
-1
-4365985
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-34
SELECT 87 * + CAST( NULL AS DECIMAL ) * - + 59 * 77 * - + MIN( CAST( - - 45 AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-34
SELECT 87 * + CAST ( NULL AS REAL ) * - + 59 * 77 * - + MIN ( CAST ( - - 45 AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 64 * 76
----
4864

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-36
SELECT DISTINCT 76 * - CASE + 76 WHEN + 0 THEN + CASE - - 23 WHEN + 22 * - 34 THEN NULL WHEN + - CAST( NULL AS DECIMAL ) / + 11 THEN - 82 + COUNT( * ) END ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-36
SELECT DISTINCT 76 * - CASE + 76 WHEN + 0 THEN + CASE - - 23 WHEN + 22 * - 34 THEN NULL WHEN + - CAST ( NULL AS REAL ) / + 11 THEN - 82 + COUNT ( * ) END ELSE NULL END col2
----
NULL

query I rowsort
SELECT ALL 35 + - 59 * - 50 AS col1
----
2985

query II rowsort
SELECT 56, + 68 col1
----
56
68

query I rowsort
SELECT + 41 + - 9 + - 15 * 10 * - 23 AS col2
----
3482

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

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

query I rowsort
SELECT + 68 + + + 16
----
84

query I rowsort
SELECT 81 + + - 33
----
48

query I rowsort
SELECT - 91 + - - 93
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-44
SELECT DISTINCT - 21 DIV + COUNT( * )
----
-21

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

query II rowsort
SELECT ALL 52, - 38 AS col1
----
52
-38

query I rowsort
SELECT ALL + 71 * - 72 AS col1
----
-5112

onlyif mysql # DIV for integer division: 
query I rowsort label-47
SELECT ( 73 ) + 61 DIV 57 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-47
SELECT ( 73 ) + 61 / 57 AS col2
----
74

query I rowsort
SELECT 30 * - - 56 AS col2
----
1680

onlyif mysql # DIV for integer division: 
query I rowsort label-49
SELECT + + 91 * + 96 + 12 + + - 91 + 84 DIV + + 28 + - 91 AS col2
----
8569

skipif mysql # not compatible
query I rowsort label-49
SELECT + + 91 * + 96 + 12 + + - 91 + 84 / + + 28 + - 91 AS col2
----
8569

onlyif mysql # aggregate syntax: 
query I rowsort label-50
SELECT ALL - - CASE + - 0 WHEN 92 THEN 85 * + + CASE 19 WHEN + + COUNT( * ) THEN NULL WHEN - + 77 * - + 89 * - + COUNT( * ) / - 94 THEN - 17 * 2 WHEN - 47 THEN NULL ELSE NULL END + 43 WHEN 16 + - 67 THEN - 43 * 24 WHEN + COUNT( * ) * + 28 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-50
SELECT ALL - - CASE + - 0 WHEN 92 THEN 85 * + + CASE 19 WHEN + + COUNT ( * ) THEN NULL WHEN - + 77 * - + 89 * - + COUNT ( * ) / - 94 THEN - 17 * 2 WHEN - 47 THEN NULL ELSE NULL END + 43 WHEN 16 + - 67 THEN - 43 * 24 WHEN + COUNT ( * ) * + 28 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-51
SELECT DISTINCT - 26 * + + 89 + ( + CASE - + 92 WHEN - - COUNT( * ) * - SUM( 50 ) + - + 22 + 55 * - 2 + 84 THEN COUNT( ALL + CAST( NULL AS DECIMAL ) ) * - 83 + 81 WHEN + 23 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-51
SELECT DISTINCT - 26 * + + 89 + ( + CASE - + 92 WHEN - - COUNT ( * ) * - SUM ( 50 ) + - + 22 + 55 * - 2 + 84 THEN COUNT ( ALL + CAST ( NULL AS REAL ) ) * - 83 + 81 WHEN + 23 THEN NULL END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-52
SELECT ALL - CAST( NULL AS SIGNED ) AS col2, - COALESCE ( + - 30, - 8 ) AS col0
----
NULL
30

skipif mysql # not compatible
query II rowsort label-52
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, - COALESCE ( + - 30, - 8 ) AS col0
----
NULL
30

query I rowsort
SELECT DISTINCT - 93 * + 36 + 93 col0
----
-3255

onlyif mysql # aggregate syntax: 
query I rowsort label-54
SELECT ALL 46 * + CASE - 70 WHEN 33 THEN + 95 + + 2 WHEN 97 + + 81 * - 87 + + 0 THEN NULL ELSE - SUM( DISTINCT CASE 57 WHEN + 8 + - 60 * 61 THEN 20 + 71 / - 75 END ) * - COUNT( * ) END + - 70 * 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-54
SELECT ALL 46 * + CASE - 70 WHEN 33 THEN + 95 + + 2 WHEN 97 + + 81 * - 87 + + 0 THEN NULL ELSE - SUM ( DISTINCT CASE 57 WHEN + 8 + - 60 * 61 THEN 20 + 71 / - 75 END ) * - COUNT ( * ) END + - 70 * 95 AS col1
----
NULL

query II rowsort
SELECT + 88 AS col2, 30 AS col0
----
88
30

query I rowsort
SELECT - 65 * 84 AS col1
----
-5460

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-58
SELECT ALL + 31 * COUNT( * ) AS col2, - COUNT( * ) + + 56 AS col1
----
31
55

skipif mysql # not compatible
query II rowsort label-58
SELECT ALL + 31 * COUNT ( * ) AS col2, - COUNT ( * ) + + 56 AS col1
----
31
55

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT + COUNT( - + 51 ) * + - SUM( - 78 ) + 91
----
169

skipif mysql # not compatible
query I rowsort label-59
SELECT + COUNT ( - + 51 ) * + - SUM ( - 78 ) + 91
----
169

query I rowsort
SELECT + 29 + + 92 * 32
----
2973

onlyif mysql # aggregate syntax: 
query I rowsort label-61
SELECT - CASE 90 WHEN - COUNT( * ) + + 86 THEN NULL WHEN - 68 - + 47 THEN - COALESCE ( - - ( + 49 ), 42 * + 64 ) END * 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-61
SELECT - CASE 90 WHEN - COUNT ( * ) + + 86 THEN NULL WHEN - 68 - + 47 THEN - COALESCE ( - - ( + 49 ), 42 * + 64 ) END * 43 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-63
SELECT DISTINCT 69, 45 + + + 9 * + COUNT( * ) AS col0
----
69
54

skipif mysql # not compatible
query II rowsort label-63
SELECT DISTINCT 69, 45 + + + 9 * + COUNT ( * ) AS col0
----
69
54

query I rowsort
SELECT + 8 + + + 18 + + NULLIF ( - + 76, - 67 )
----
-50

query I rowsort
SELECT + + 49 * - + 18 * + 16
----
-14112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-66
SELECT + 22 + + + 82 + - CAST( + - ( + - 19 ) AS SIGNED ) + - COALESCE ( + 85, COUNT( DISTINCT + + 71 ) * - ( - NULLIF ( 42, - COUNT( * ) ) ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-66
SELECT + 22 + + + 82 + - CAST ( + - ( + - 19 ) AS INTEGER ) + - COALESCE ( + 85, COUNT ( DISTINCT + + 71 ) * - ( - NULLIF ( 42, - COUNT ( * ) ) ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT - + CASE 29 WHEN COUNT( * ) THEN + NULLIF ( - 95, + + 54 ) WHEN 61 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-67
SELECT - + CASE 29 WHEN COUNT ( * ) THEN + NULLIF ( - 95, + + 54 ) WHEN 61 THEN NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-68
SELECT + 79 DIV + - 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-68
SELECT + 79 / + - 99 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-69
SELECT ALL + 83 * + 9 * 96 - - CASE + COUNT( * ) WHEN + + 3 + COUNT( * ) * + 22 THEN - COUNT( 96 ) * + - MAX( DISTINCT 51 ) * + COUNT( * ) - CAST( + 65 AS DECIMAL ) END / - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-69
SELECT ALL + 83 * + 9 * 96 - - CASE + COUNT ( * ) WHEN + + 3 + COUNT ( * ) * + 22 THEN - COUNT ( 96 ) * + - MAX ( DISTINCT 51 ) * + COUNT ( * ) - CAST ( + 65 AS REAL ) END / - 91
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-70
SELECT DISTINCT - 55 AS col0, + CAST( + CAST( 32 AS SIGNED ) AS SIGNED ) * 27 + + 15 AS col0
----
-55
879

skipif mysql # not compatible
query II rowsort label-70
SELECT DISTINCT - 55 AS col0, + CAST ( + CAST ( 32 AS INTEGER ) AS INTEGER ) * 27 + + 15 AS col0
----
-55
879

onlyif mysql # aggregate syntax: 
query I rowsort label-71
SELECT ALL MAX( 12 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-71
SELECT ALL MAX ( 12 ) AS col2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-72
SELECT ALL - 92 * - ( - - 81 ) + NULLIF ( 9, + + 65 ) - - CAST( + 45 AS SIGNED )
----
7506

skipif mysql # not compatible
query I rowsort label-72
SELECT ALL - 92 * - ( - - 81 ) + NULLIF ( 9, + + 65 ) - - CAST ( + 45 AS INTEGER )
----
7506

query II rowsort
SELECT 87, - 24 AS col1
----
87
-24

query I rowsort
SELECT + - 81 * + 53
----
-4293

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

onlyif mysql # aggregate syntax: 
query II rowsort label-76
SELECT ALL 92 AS col1, - MAX( NULLIF ( - + 59, + 68 * - 83 * - CASE + + 64 WHEN + + 48 + - + 24 THEN NULL WHEN - - 68 + 81 THEN 70 END ) ) AS col2
----
92
59

skipif mysql # not compatible
query II rowsort label-76
SELECT ALL 92 AS col1, - MAX ( NULLIF ( - + 59, + 68 * - 83 * - CASE + + 64 WHEN + + 48 + - + 24 THEN NULL WHEN - - 68 + 81 THEN 70 END ) ) AS col2
----
92
59

onlyif mysql # aggregate syntax: 
query II rowsort label-77
SELECT ALL - 42 + + 76 * SUM( ALL - 72 ) col0, - 34 * + 12 * + 26 AS col1
----
-5514
-10608

skipif mysql # not compatible
query II rowsort label-77
SELECT ALL - 42 + + 76 * SUM ( ALL - 72 ) col0, - 34 * + 12 * + 26 AS col1
----
-5514
-10608

onlyif mysql # aggregate syntax: 
query II rowsort label-78
SELECT COUNT( * ) col1, + 97
----
1
97

skipif mysql # not compatible
query II rowsort label-78
SELECT COUNT ( * ) col1, + 97
----
1
97

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

skipif mysql # not compatible
query I rowsort label-79
SELECT NULLIF ( - COUNT ( * ), + 89 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-80
SELECT ALL 65 + - CAST( + COUNT( * ) AS SIGNED ) + + 37 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-80
SELECT ALL 65 + - CAST ( + COUNT ( * ) AS INTEGER ) + + 37 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-81
SELECT - CASE + 70 WHEN + COALESCE ( + CASE + 45 WHEN - + 4 THEN NULL WHEN ( + - 22 ) THEN + 93 - - 21 END, - COUNT( * ), + ( 98 ) ) THEN - 48 / COUNT( * ) WHEN 41 + - 52 / CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-81
SELECT - CASE + 70 WHEN + COALESCE ( + CASE + 45 WHEN - + 4 THEN NULL WHEN ( + - 22 ) THEN + 93 - - 21 END, - COUNT ( * ), + ( 98 ) ) THEN - 48 / COUNT ( * ) WHEN 41 + - 52 / CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-82
SELECT ALL - 1 DIV + 65 + + 15 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-82
SELECT ALL - 1 / + 65 + + 15 AS col1
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-83
SELECT DISTINCT + - 81 DIV + + COUNT( * ) + + 6 AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-83
SELECT DISTINCT + - 81 / + + COUNT ( * ) + + 6 AS col1
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-84
SELECT DISTINCT 48 DIV - 68 + + CAST( COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-84
SELECT DISTINCT 48 / - 68 + + CAST ( COUNT ( * ) AS INTEGER )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-85
SELECT - COALESCE ( - CASE COUNT( 88 ) WHEN ( + + CAST( NULL AS SIGNED ) ) * + MAX( ALL + 21 ) THEN - 19 WHEN + COUNT( * ) * + - COUNT( * ) - 3 THEN NULL END, 26 ) * ( 12 )
----
-312

skipif mysql # not compatible
query I rowsort label-85
SELECT - COALESCE ( - CASE COUNT ( 88 ) WHEN ( + + CAST ( NULL AS INTEGER ) ) * + MAX ( ALL + 21 ) THEN - 19 WHEN + COUNT ( * ) * + - COUNT ( * ) - 3 THEN NULL END, 26 ) * ( 12 )
----
-312

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-88
SELECT COUNT( * ) DIV - - 22 + 3 col0
----
3

skipif mysql # not compatible
query I rowsort label-88
SELECT COUNT ( * ) / - - 22 + 3 col0
----
3

query I rowsort
SELECT + 7 * 73
----
511

onlyif mysql # aggregate syntax: 
query I rowsort label-90
SELECT + 10 * + + ( + 11 ) - - - COUNT( * )
----
109

skipif mysql # not compatible
query I rowsort label-90
SELECT + 10 * + + ( + 11 ) - - - COUNT ( * )
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT + 48 * 78 + 54 * + 86 * - 55 + + 30 + + CASE ( 52 ) WHEN - + CASE + - 82 WHEN + 24 THEN + 83 + 98 / + 44 END THEN - 67 ELSE - COUNT( * ) END AS col2
----
-251647

skipif mysql # not compatible
query I rowsort label-91
SELECT + 48 * 78 + 54 * + 86 * - 55 + + 30 + + CASE ( 52 ) WHEN - + CASE + - 82 WHEN + 24 THEN + 83 + 98 / + 44 END THEN - 67 ELSE - COUNT ( * ) END AS col2
----
-251647

query I rowsort
SELECT DISTINCT 6 * - 78 * - 75
----
35100

query I rowsort
SELECT ALL 65 * + - 20 * - 66
----
85800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-94
SELECT - CAST( NULL AS SIGNED ) * 33 / ( - - 6 ) * - 38 * - 11 + - 1 * 63
----
NULL

skipif mysql # not compatible
query I rowsort label-94
SELECT - CAST ( NULL AS INTEGER ) * 33 / ( - - 6 ) * - 38 * - 11 + - 1 * 63
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-95
SELECT ALL + 63 / - + CASE - 35 WHEN + 6 * - CAST( NULL AS DECIMAL ) THEN 78 * CAST( + - COALESCE ( - - ( - NULLIF ( + CAST( NULL AS SIGNED ), 96 * 7 ) ), AVG ( DISTINCT - 30 ) ) AS SIGNED ) END * - CAST( 2 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-95
SELECT ALL + 63 / - + CASE - 35 WHEN + 6 * - CAST ( NULL AS REAL ) THEN 78 * CAST ( + - COALESCE ( - - ( - NULLIF ( + CAST ( NULL AS INTEGER ), 96 * 7 ) ), AVG ( DISTINCT - 30 ) ) AS INTEGER ) END * - CAST ( 2 AS REAL )
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-97
SELECT ALL ( - ( 20 ) ) * - AVG ( ALL + + 71 ) + - - 27 + - 0 + 81 * 43 - + - 60 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-97
SELECT ALL ( - ( 20 ) ) * - AVG ( ALL + + 71 ) + - - 27 + - 0 + 81 * 43 - + - 60 - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT NULLIF ( + + ( - 84 ), + 64 )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-99
SELECT ALL + CASE - COUNT( * ) WHEN + 3 THEN + 70 + + 7 * - NULLIF ( - MAX( + - 11 ), + 80 ) * + 29 WHEN + 32 * 26 / - 83 THEN 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-99
SELECT ALL + CASE - COUNT ( * ) WHEN + 3 THEN + 70 + + 7 * - NULLIF ( - MAX ( + - 11 ), + 80 ) * + 29 WHEN + 32 * 26 / - 83 THEN 54 END
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-101
SELECT ALL + CASE + + 80 WHEN COUNT( * ) * - + 80 + CAST( - 3 AS SIGNED ) * - 35 + - 34 + - + 26 / 99 THEN + COUNT( ( 6 ) ) + ( - 89 ) WHEN ( 60 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-101
SELECT ALL + CASE + + 80 WHEN COUNT ( * ) * - + 80 + CAST ( - 3 AS INTEGER ) * - 35 + - 34 + - + 26 / 99 THEN + COUNT ( ( 6 ) ) + ( - 89 ) WHEN ( 60 ) THEN NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + ( - 98 ) * 18
----
-1764

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT ALL + 87 * NULLIF ( + 9, + 16 * + 60 * + ( + COUNT( * ) ) * + 68 + - 57 - - ( 50 ) ) AS col0
----
783

skipif mysql # not compatible
query I rowsort label-103
SELECT ALL + 87 * NULLIF ( + 9, + 16 * + 60 * + ( + COUNT ( * ) ) * + 68 + - 57 - - ( 50 ) ) AS col0
----
783

onlyif mysql # aggregate syntax: 
query I rowsort label-104
SELECT - + COUNT( DISTINCT + - 29 ) - - 96 * 29
----
2783

skipif mysql # not compatible
query I rowsort label-104
SELECT - + COUNT ( DISTINCT + - 29 ) - - 96 * 29
----
2783

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT - SUM( ALL + - 65 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-105
SELECT - SUM ( ALL + - 65 ) AS col2
----
65

query I rowsort
SELECT DISTINCT + - 57 * + 98 AS col1
----
-5586

query I rowsort
SELECT - 26 + + + 88 AS col1
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-108
SELECT + 13 / - CAST( NULL AS SIGNED ) * ( - + ( + + 15 ) ) * + - 20 + + - 31 - + + 77 * + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-108
SELECT + 13 / - CAST ( NULL AS INTEGER ) * ( - + ( + + 15 ) ) * + - 20 + + - 31 - + + 77 * + 59
----
NULL

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

skipif mysql # not compatible
query I rowsort label-109
SELECT ALL + + ( + 26 ) + + COUNT ( * ) AS col2
----
27

query I rowsort
SELECT - 53 + NULLIF ( - ( + 20 ), + 31 ) + + + 5 AS col2
----
-68

query II rowsort
SELECT ALL - 80 + + - 40 AS col1, + 27
----
-120
27

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT - - SUM( ALL - 36 ) col2
----
-36

skipif mysql # not compatible
query I rowsort label-112
SELECT - - SUM ( ALL - 36 ) col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-113
SELECT ALL + ( + ( + MIN( ALL + 56 ) ) ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-113
SELECT ALL + ( + ( + MIN ( ALL + 56 ) ) ) AS col2
----
56

query I rowsort
SELECT ALL - + 39 + - - 44 * - + 71 * - 47 AS col0
----
146789

onlyif mysql # aggregate syntax: 
query I rowsort label-115
SELECT DISTINCT + SUM( - ( - 30 ) ) + - + 53
----
-23

skipif mysql # not compatible
query I rowsort label-115
SELECT DISTINCT + SUM ( - ( - 30 ) ) + - + 53
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT ALL 28 * - + MIN( DISTINCT - + 8 )
----
224

skipif mysql # not compatible
query I rowsort label-116
SELECT ALL 28 * - + MIN ( DISTINCT - + 8 )
----
224

query I rowsort
SELECT ALL - 30 + + ( + ( + 3 ) ) col2
----
-27

query I rowsort
SELECT 36 + + 86
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-119
SELECT COUNT( * ) * - 63 * - 84, - 34 * + - 73 - CAST( 99 AS SIGNED ) + + - 88 * - - ( - 89 ) * 79 AS col2
----
5292
621111

skipif mysql # not compatible
query II rowsort label-119
SELECT COUNT ( * ) * - 63 * - 84, - 34 * + - 73 - CAST ( 99 AS INTEGER ) + + - 88 * - - ( - 89 ) * 79 AS col2
----
5292
621111

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT DISTINCT 19 + COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-120
SELECT DISTINCT 19 + COUNT ( * )
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-121
SELECT 96, + COALESCE ( 44, - 92 ) - - CAST( NULL AS SIGNED ) + 70 AS col0
----
96
NULL

skipif mysql # not compatible
query II rowsort label-121
SELECT 96, + COALESCE ( 44, - 92 ) - - CAST ( NULL AS INTEGER ) + 70 AS col0
----
96
NULL

query I rowsort
SELECT ( - 22 ) * 53 + + ( + ( - + 15 ) )
----
-1181

onlyif mysql # aggregate syntax: 
query II rowsort label-123
SELECT ALL - 10, ( + COUNT( * ) ) * 49 * + 35 col1
----
-10
1715

skipif mysql # not compatible
query II rowsort label-123
SELECT ALL - 10, ( + COUNT ( * ) ) * 49 * + 35 col1
----
-10
1715

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-124
SELECT + 50, ( + CASE - 87 WHEN - 94 THEN - ( 28 ) WHEN + + ( - 50 ) THEN NULL ELSE - COUNT( * ) END ) * + NULLIF ( - 1, - CAST( 44 AS DECIMAL ) DIV + 45 ) * - COALESCE ( + 95 * 38, 94, 74 * 59 + 15 DIV COUNT( * ) ) + + 18 * - CASE 99 WHEN COUNT( * ) * 93 THEN NULL WHEN - 34 THEN 80 ELSE NULLIF ( 72, 77 + + ( SUM( - 90 ) - CAST( NULL AS SIGNED ) ) ) END AS col2
----
50
-4906

skipif mysql # not compatible
query II rowsort label-124
SELECT + 50, ( + CASE - 87 WHEN - 94 THEN - ( 28 ) WHEN + + ( - 50 ) THEN NULL ELSE - COUNT ( * ) END ) * + NULLIF ( - 1, - CAST ( 44 AS REAL ) / + 45 ) * - COALESCE ( + 95 * 38, 94, 74 * 59 + 15 / COUNT ( * ) ) + + 18 * - CASE 99 WHEN COUNT ( * ) * 93 THEN NULL WHEN - 34 THEN 80 ELSE NULLIF ( 72, 77 + + ( SUM ( - 90 ) - CAST ( NULL AS INTEGER ) ) ) END AS col2
----
50
-4906

query I rowsort
SELECT DISTINCT 53 * + 95
----
5035

onlyif mysql # aggregate syntax: 
query I rowsort label-126
SELECT + 49 * COUNT( * ) + + + 95 * - - 15 AS col0
----
1474

skipif mysql # not compatible
query I rowsort label-126
SELECT + 49 * COUNT ( * ) + + + 95 * - - 15 AS col0
----
1474

query I rowsort
SELECT 80 - + NULLIF ( 50, + + 75 )
----
30

query I rowsort
SELECT 15 * - + 33 AS col0
----
-495

query I rowsort
SELECT DISTINCT 5 * + 3 AS col0
----
15

query II rowsort
SELECT ALL - 31 AS col1, + NULLIF ( - + 48, + - 45 )
----
-31
-48

query I rowsort
SELECT ALL 52 * + + 15 AS col1
----
780

query I rowsort
SELECT DISTINCT 9 * - 91
----
-819

query I rowsort
SELECT - + 30 * + 65 + - - 36 + 53
----
-1861

onlyif mysql # DIV for integer division: 
query I rowsort label-134
SELECT - 70 + - 73 * + ( + 51 ) - + - 23 DIV + - 59 AS col0
----
-3793

skipif mysql # not compatible
query I rowsort label-134
SELECT - 70 + - 73 * + ( + 51 ) - + - 23 / + - 59 AS col0
----
-3793

query II rowsort
SELECT - - 13, 56 AS col0
----
13
56

query I rowsort
SELECT 56 * + 49
----
2744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-137
SELECT COUNT( * ) + - + CAST( 18 AS SIGNED ) - + - SUM( 75 ) * 51
----
3808

skipif mysql # not compatible
query I rowsort label-137
SELECT COUNT ( * ) + - + CAST ( 18 AS INTEGER ) - + - SUM ( 75 ) * 51
----
3808

onlyif mysql # aggregate syntax: 
query I rowsort label-138
SELECT COALESCE ( - - 81, + 92 ) * COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-138
SELECT COALESCE ( - - 81, + 92 ) * COUNT ( * )
----
81

query I rowsort
SELECT ALL + 14 + + + ( - + 3 )
----
11

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-141
SELECT DISTINCT - CASE + AVG ( - 41 ) WHEN + - 9 THEN + CAST( - - 11 AS SIGNED ) END + + - 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-141
SELECT DISTINCT - CASE + AVG ( - 41 ) WHEN + - 9 THEN + CAST ( - - 11 AS INTEGER ) END + + - 63 AS col0
----
NULL

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

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

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

query I rowsort
SELECT - 87 * + 68 AS col1
----
-5916

query I rowsort
SELECT ALL - 48 + - + COALESCE ( 94, 96, 87 ) * - NULLIF ( - 59, - 94 ) / NULLIF ( - - NULLIF ( 30, + 27 * - 62 ), + CASE - 63 WHEN 51 THEN NULL WHEN + 80 * 5 THEN + 61 ELSE 30 END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-146
SELECT - 89 AS col2, COUNT( * ) + - 27 + - 13 col0
----
-89
-39

skipif mysql # not compatible
query II rowsort label-146
SELECT - 89 AS col2, COUNT ( * ) + - 27 + - 13 col0
----
-89
-39

query I rowsort
SELECT - NULLIF ( 3, 70 )
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-148
SELECT - 53 - + 39 + + - SUM( - + 90 ) AS col0, 70 + + 23 DIV + 64 * + 68 * - - 4
----
-2
70

skipif mysql # not compatible
query II rowsort label-148
SELECT - 53 - + 39 + + - SUM ( - + 90 ) AS col0, 70 + + 23 / + 64 * + 68 * - - 4
----
-2
70

onlyif mysql # aggregate syntax: 
query I rowsort label-149
SELECT MAX( DISTINCT 82 ) * - - 28 AS col2
----
2296

skipif mysql # not compatible
query I rowsort label-149
SELECT MAX ( DISTINCT 82 ) * - - 28 AS col2
----
2296

onlyif mysql # aggregate syntax: 
query I rowsort label-150
SELECT ALL - 8 - - 53 * - MIN( ALL - 86 ) AS col2
----
4550

skipif mysql # not compatible
query I rowsort label-150
SELECT ALL - 8 - - 53 * - MIN ( ALL - 86 ) AS col2
----
4550

query I rowsort
SELECT 71 * - - 35 * + 99
----
246015

onlyif mysql # aggregate syntax: 
query I rowsort label-152
SELECT DISTINCT 72 * - + MAX( - 41 )
----
2952

skipif mysql # not compatible
query I rowsort label-152
SELECT DISTINCT 72 * - + MAX ( - 41 )
----
2952

query II rowsort
SELECT ALL 7 * - 34 AS col2, 77 AS col2
----
-238
77

query I rowsort
SELECT ALL - 72 * 40 * - 34
----
97920

query I rowsort
SELECT 96 * 98 AS col1
----
9408

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-157
SELECT + 45 DIV - 46 + - + 88 + 55 AS col1, NULLIF ( + 94, 27 * + 90 - + CASE - SUM( 96 ) WHEN - 15 THEN NULL ELSE - + 39 END + + 8 + + 97 * + COUNT( * ) * - 14 * - 47 )
----
-33
94

skipif mysql # not compatible
query II rowsort label-157
SELECT + 45 / - 46 + - + 88 + 55 AS col1, NULLIF ( + 94, 27 * + 90 - + CASE - SUM ( 96 ) WHEN - 15 THEN NULL ELSE - + 39 END + + 8 + + 97 * + COUNT ( * ) * - 14 * - 47 )
----
-33
94

query I rowsort
SELECT 90 + - 80 - 10
----
0

query I rowsort
SELECT 9 * + + 99 - + 65
----
826

onlyif mysql # aggregate syntax: 
query III rowsort label-160
SELECT 96 * - 72 AS col1, - 78 * - - COALESCE ( 33, - 5 ) * - 56 col2, - COUNT( * ) - 74 * - 64
----
-6912
144144
4735

skipif mysql # not compatible
query III rowsort label-160
SELECT 96 * - 72 AS col1, - 78 * - - COALESCE ( 33, - 5 ) * - 56 col2, - COUNT ( * ) - 74 * - 64
----
-6912
144144
4735

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

onlyif mysql # aggregate syntax: 
query I rowsort label-162
SELECT SUM( + 54 ) col1
----
54

skipif mysql # not compatible
query I rowsort label-162
SELECT SUM ( + 54 ) col1
----
54

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

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

query I rowsort
SELECT DISTINCT + 37 + - NULLIF ( - + 51, 56 ) + + + 16 * + + ( + 24 ) * ( - 94 ) + + 78
----
-35930

query I rowsort
SELECT ALL + 79 + - NULLIF ( 54, 71 + + - 1 + - - 57 ) col0
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-166
SELECT + 68 DIV 7 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-166
SELECT + 68 / 7 AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT ALL - 4 + CASE + + 45 WHEN MIN( ALL + - 73 ) THEN 44 / - SUM( - 96 ) + + 82 * 70 END
----
NULL

skipif mysql # not compatible
query I rowsort label-167
SELECT ALL - 4 + CASE + + 45 WHEN MIN ( ALL + - 73 ) THEN 44 / - SUM ( - 96 ) + + 82 * 70 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-168
SELECT 12 - COUNT( * ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-168
SELECT 12 - COUNT ( * ) AS col0
----
11

query I rowsort
SELECT + 77 * - 33
----
-2541

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

skipif mysql # not compatible
query I rowsort label-170
SELECT + - CAST ( + 90 AS INTEGER ) col2
----
-90

query I rowsort
SELECT ALL 61 + + 99 AS col1
----
160

onlyif mysql # DIV for integer division: 
query I rowsort label-172
SELECT + 35 DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-172
SELECT + 35 / - 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-173
SELECT ALL 4 + - + COUNT( * ) + + 21 * 98
----
2061

skipif mysql # not compatible
query I rowsort label-173
SELECT ALL 4 + - + COUNT ( * ) + + 21 * 98
----
2061

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

query I rowsort
SELECT ALL 27 * - 34 - + + 65
----
-983

query I rowsort
SELECT 27 - - + 75 * - 14
----
-1023

onlyif mysql # DIV for integer division: 
query I rowsort label-177
SELECT ALL + - 39 DIV 74 + 44
----
44

skipif mysql # not compatible
query I rowsort label-177
SELECT ALL + - 39 / 74 + 44
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-178
SELECT - CASE + - CAST( NULL AS SIGNED ) WHEN - 79 / - 37 THEN NULL ELSE + MAX( - 20 ) END
----
20

skipif mysql # not compatible
query I rowsort label-178
SELECT - CASE + - CAST ( NULL AS INTEGER ) WHEN - 79 / - 37 THEN NULL ELSE + MAX ( - 20 ) END
----
20

query I rowsort
SELECT + + 22 + + 87 AS col2
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-180
SELECT - - 17 - - - CASE - - ( - CAST( 91 AS SIGNED ) ) WHEN 11 * - + 67 * - 92 + - 82 * - 87 THEN - 36 END + - - ( - 4 ) / COUNT( * ) + 94 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-180
SELECT - - 17 - - - CASE - - ( - CAST ( 91 AS INTEGER ) ) WHEN 11 * - + 67 * - 92 + - 82 * - 87 THEN - 36 END + - - ( - 4 ) / COUNT ( * ) + 94 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-181
SELECT + - 48 + + + CASE + + 94 WHEN 84 THEN NULL WHEN + 2 / - 35 - + 78 THEN - NULLIF ( + 59, + COUNT( * ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-181
SELECT + - 48 + + + CASE + + 94 WHEN 84 THEN NULL WHEN + 2 / - 35 - + 78 THEN - NULLIF ( + 59, + COUNT ( * ) ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT - + 42 - + COUNT( * ) * ( 11 ) * - 25 * 18 + + - 49 col2
----
4859

skipif mysql # not compatible
query I rowsort label-182
SELECT - + 42 - + COUNT ( * ) * ( 11 ) * - 25 * 18 + + - 49 col2
----
4859

onlyif mysql # aggregate syntax: 
query I rowsort label-183
SELECT ALL - - COUNT( ALL 63 ) * - - 43 * 26 + + + 14
----
1132

skipif mysql # not compatible
query I rowsort label-183
SELECT ALL - - COUNT ( ALL 63 ) * - - 43 * 26 + + + 14
----
1132

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

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

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

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

query I rowsort
SELECT ALL - 76 * + 59 AS col2
----
-4484

onlyif mysql # aggregate syntax: 
query II rowsort label-187
SELECT ALL - 3 * 90 * - - COUNT( * ) AS col0, + 7 - - 95 - - 32 * - 4
----
-270
-26

skipif mysql # not compatible
query II rowsort label-187
SELECT ALL - 3 * 90 * - - COUNT ( * ) AS col0, + 7 - - 95 - - 32 * - 4
----
-270
-26

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

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

query I rowsort
SELECT ALL CASE + 22 WHEN + 24 * - 25 + + + 6 THEN ( + 40 ) WHEN + + 60 * + 66 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT + 83 * 58
----
4814

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT - 89 + + CASE 94 WHEN - 71 THEN + - 42 / - - COUNT( * ) ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-191
SELECT - 89 + + CASE 94 WHEN - 71 THEN + - 42 / - - COUNT ( * ) ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT ALL - MIN( ALL + 33 ) * + 47 * - 40
----
62040

skipif mysql # not compatible
query I rowsort label-192
SELECT ALL - MIN ( ALL + 33 ) * + 47 * - 40
----
62040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-193
SELECT - 1 / CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-193
SELECT - 1 / CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT - 6 * 14 AS col1
----
-84

query I rowsort
SELECT DISTINCT NULLIF ( + 81, - 54 / - 8 )
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-196
SELECT - CAST( + NULLIF ( 55, + 37 * - 31 ) AS SIGNED ) + + - COUNT( ALL + + CAST( + 45 AS SIGNED ) ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-196
SELECT - CAST ( + NULLIF ( 55, + 37 * - 31 ) AS INTEGER ) + + - COUNT ( ALL + + CAST ( + 45 AS INTEGER ) ) AS col0
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-197
SELECT + 59 + + 3 DIV - + 80 + + 19
----
78

skipif mysql # not compatible
query I rowsort label-197
SELECT + 59 + + 3 / - + 80 + + 19
----
78

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-199
SELECT - CASE 3 WHEN - 71 THEN + 30 WHEN - 53 THEN NULLIF ( - + ( - 22 ), 38 ) * + 84 * + 85 END / - CAST( NULL AS SIGNED ) / + ( + + 6 ) + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-199
SELECT - CASE 3 WHEN - 71 THEN + 30 WHEN - 53 THEN NULLIF ( - + ( - 22 ), 38 ) * + 84 * + 85 END / - CAST ( NULL AS INTEGER ) / + ( + + 6 ) + 14
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-200
SELECT ALL + COUNT( * ) * 60 DIV - 40 + + COALESCE ( 46, - + 29 + + - 85 * - + COUNT( * ), + MIN( ALL + - 53 ) * COUNT( * ) ) + + - 98 * + + ( + CAST( 13 AS SIGNED ) )
----
-1229

skipif mysql # not compatible
query I rowsort label-200
SELECT ALL + COUNT ( * ) * 60 / - 40 + + COALESCE ( 46, - + 29 + + - 85 * - + COUNT ( * ), + MIN ( ALL + - 53 ) * COUNT ( * ) ) + + - 98 * + + ( + CAST ( 13 AS INTEGER ) )
----
-1229

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-201
SELECT DISTINCT + 65 * 59 + CASE + + COUNT( * ) WHEN COALESCE ( - + COALESCE ( + + COUNT( * ), + ( - MIN( ALL + 36 ) ), - - 22 * + 17 ), + 83 * 83 ) THEN NULL ELSE 49 * 43 + - CAST( - 94 AS SIGNED ) * + ( COUNT( * ) + - COUNT( * ) ) END
----
5942

skipif mysql # not compatible
query I rowsort label-201
SELECT DISTINCT + 65 * 59 + CASE + + COUNT ( * ) WHEN COALESCE ( - + COALESCE ( + + COUNT ( * ), + ( - MIN ( ALL + 36 ) ), - - 22 * + 17 ), + 83 * 83 ) THEN NULL ELSE 49 * 43 + - CAST ( - 94 AS INTEGER ) * + ( COUNT ( * ) + - COUNT ( * ) ) END
----
5942

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-202
SELECT DISTINCT + 92 col2, CAST( 33 AS SIGNED )
----
92
33

skipif mysql # not compatible
query II rowsort label-202
SELECT DISTINCT + 92 col2, CAST ( 33 AS INTEGER )
----
92
33

query I rowsort
SELECT ALL 11 * 76 col2
----
836

query I rowsort
SELECT + 17 * 65
----
1105

onlyif mysql # aggregate syntax: 
query I rowsort label-205
SELECT ALL - ( + 14 ) * MAX( - 87 ) * + COUNT( * ) + + + 77 + - - 39 * + - 80 AS col2
----
-1825

skipif mysql # not compatible
query I rowsort label-205
SELECT ALL - ( + 14 ) * MAX ( - 87 ) * + COUNT ( * ) + + + 77 + - - 39 * + - 80 AS col2
----
-1825

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT ALL + 21 * - + COUNT( DISTINCT - 12 ) + + COUNT( * ) * + + 13
----
-8

skipif mysql # not compatible
query I rowsort label-206
SELECT ALL + 21 * - + COUNT ( DISTINCT - 12 ) + + COUNT ( * ) * + + 13
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-207
SELECT + - CASE 64 WHEN - + 8 THEN NULL ELSE + ( 94 ) + 18 + + + 42 - - 68 * 99 DIV - 27 END col2
----
95

skipif mysql # not compatible
query I rowsort label-207
SELECT + - CASE 64 WHEN - + 8 THEN NULL ELSE + ( 94 ) + 18 + + + 42 - - 68 * 99 / - 27 END col2
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-208
SELECT + ( - CAST( + 90 AS SIGNED ) ) AS col1, + 7
----
-90
7

skipif mysql # not compatible
query II rowsort label-208
SELECT + ( - CAST ( + 90 AS INTEGER ) ) AS col1, + 7
----
-90
7

query II rowsort
SELECT - 71 col1, + 91 * - - 56
----
-71
5096

query I rowsort
SELECT DISTINCT + - COALESCE ( 46, 31 ) AS col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT ALL - 27 * - COALESCE ( - 15, + + 39 ) * COUNT( * ) - - 2 + + 97 AS col0
----
-306

skipif mysql # not compatible
query I rowsort label-211
SELECT ALL - 27 * - COALESCE ( - 15, + + 39 ) * COUNT ( * ) - - 2 + + 97 AS col0
----
-306

query I rowsort
SELECT - - 26 * 20 - + ( + 23 ) AS col1
----
497

onlyif mysql # aggregate syntax: 
query II rowsort label-213
SELECT + + MIN( ALL - + 40 ) * 14 AS col2, 56
----
-560
56

skipif mysql # not compatible
query II rowsort label-213
SELECT + + MIN ( ALL - + 40 ) * 14 AS col2, 56
----
-560
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-214
SELECT + - 98 * - + COUNT( * ) + - NULLIF ( 49, + + 51 * + MAX( - - 58 ) - CAST( NULL AS SIGNED ) ) + 80 DIV CAST( - + MAX( - 41 ) AS SIGNED ) * - 73 + - - 63 * - + 86
----
-5442

skipif mysql # not compatible
query I rowsort label-214
SELECT + - 98 * - + COUNT ( * ) + - NULLIF ( 49, + + 51 * + MAX ( - - 58 ) - CAST ( NULL AS INTEGER ) ) + 80 / CAST ( - + MAX ( - 41 ) AS INTEGER ) * - 73 + - - 63 * - + 86
----
-5442

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-215
SELECT DISTINCT + 38 - MAX( ALL + 0 ) - + CAST( 42 AS SIGNED ) * - ( + 44 ) * - 23 + 86 * + - 61
----
-47712

skipif mysql # not compatible
query I rowsort label-215
SELECT DISTINCT + 38 - MAX ( ALL + 0 ) - + CAST ( 42 AS INTEGER ) * - ( + 44 ) * - 23 + 86 * + - 61
----
-47712

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

onlyif mysql # aggregate syntax: 
query I rowsort label-217
SELECT ALL MIN( + 15 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-217
SELECT ALL MIN ( + 15 ) AS col2
----
15

query I rowsort
SELECT ALL 43 * + 22
----
946

query II rowsort
SELECT DISTINCT 75, 0 AS col0
----
75
0

query I rowsort
SELECT + ( - ( + ( + + 45 ) ) ) - - 37 AS col0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-221
SELECT ALL COALESCE ( + + 54, MAX( 34 ) ), 98 * - CAST( - 4 AS SIGNED ) + - - CAST( NULL AS SIGNED ) * + - COUNT( * ) / - 14 AS col0
----
54
NULL

skipif mysql # not compatible
query II rowsort label-221
SELECT ALL COALESCE ( + + 54, MAX ( 34 ) ), 98 * - CAST ( - 4 AS INTEGER ) + - - CAST ( NULL AS INTEGER ) * + - COUNT ( * ) / - 14 AS col0
----
54
NULL

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

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

query II rowsort
SELECT - 92, - 61 * - 78 AS col2
----
-92
4758

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-224
SELECT ALL 35 + - CAST( 83 AS SIGNED ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-224
SELECT ALL 35 + - CAST ( 83 AS INTEGER ) AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-225
SELECT DISTINCT MAX( ALL 28 )
----
28

skipif mysql # not compatible
query I rowsort label-225
SELECT DISTINCT MAX ( ALL 28 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT ALL - 82 + - 41 - COUNT( * ) * COUNT( * ) AS col2
----
-124

skipif mysql # not compatible
query I rowsort label-226
SELECT ALL - 82 + - 41 - COUNT ( * ) * COUNT ( * ) AS col2
----
-124

query I rowsort
SELECT - 23 - - 11
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-228
SELECT DISTINCT - 37 / + 84 + + ( - - COALESCE ( + CAST( NULL AS SIGNED ), + 48 ) ) + - - CAST( NULL AS DECIMAL ) + - COUNT( * ) * + - 42 col2, + 45 col0
----
NULL
45

skipif mysql # not compatible
query II rowsort label-228
SELECT DISTINCT - 37 / + 84 + + ( - - COALESCE ( + CAST ( NULL AS INTEGER ), + 48 ) ) + - - CAST ( NULL AS REAL ) + - COUNT ( * ) * + - 42 col2, + 45 col0
----
NULL
45

onlyif mysql # DIV for integer division: 
query I rowsort label-229
SELECT - 17 DIV + + 17 col1
----
-1

skipif mysql # not compatible
query I rowsort label-229
SELECT - 17 / + + 17 col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-230
SELECT ALL + ( - - COUNT( * ) ) DIV CASE WHEN NOT ( NOT - - ( ( - ( - COUNT( * ) ) ) ) NOT BETWEEN NULL AND - 57 ) THEN + 5 DIV + + COUNT( * ) + 35 + + 91 WHEN ( 48 ) + 82 IS NULL THEN NULL ELSE + CASE + ( 52 ) WHEN 4 THEN NULL WHEN - 0 + 85 THEN NULL ELSE 52 END END + - 77 * 76 AS col1
----
-5852

skipif mysql # not compatible
query I rowsort label-230
SELECT ALL + ( - - COUNT ( * ) ) / CASE WHEN NOT ( NOT - - ( ( - ( - COUNT ( * ) ) ) ) NOT BETWEEN NULL AND - 57 ) THEN + 5 / + + COUNT ( * ) + 35 + + 91 WHEN ( 48 ) + 82 IS NULL THEN NULL ELSE + CASE + ( 52 ) WHEN 4 THEN NULL WHEN - 0 + 85 THEN NULL ELSE 52 END END + - 77 * 76 AS col1
----
-5852

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

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

query II rowsort
SELECT ALL + 52, 14 AS col2
----
52
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-233
SELECT COUNT( * ) DIV - 64 - 73
----
-73

skipif mysql # not compatible
query I rowsort label-233
SELECT COUNT ( * ) / - 64 - 73
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-234
SELECT DISTINCT + - 22 DIV + 84 DIV 78 * + - 89 * - MIN( - + 51 ) * + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-234
SELECT DISTINCT + - 22 / + 84 / 78 * + - 89 * - MIN ( - + 51 ) * + - COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-235
SELECT ALL AVG ( + - 81 ) / + CAST( NULL AS SIGNED ) + 56 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-235
SELECT ALL AVG ( + - 81 ) / + CAST ( NULL AS INTEGER ) + 56 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT - 17 * 3 * + + ( COUNT( * ) ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-236
SELECT - 17 * 3 * + + ( COUNT ( * ) ) AS col0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-237
SELECT - - 16 DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-237
SELECT - - 16 / - 90
----
0

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-240
SELECT - 6 + + 18 DIV - 18 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-240
SELECT - 6 + + 18 / - 18 AS col1
----
-7

query I rowsort
SELECT 87 * + ( ( + 3 ) ) + ( + 5 ) AS col2
----
266

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

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

query II rowsort
SELECT DISTINCT - 8 AS col0, 49
----
-8
49

onlyif mysql # aggregate syntax: 
query II rowsort label-244
SELECT + - 22 * - - 77 + - + 12 + + + 71 - 54 + MIN( ALL + 56 ) + 85 + + 27 * ( + 24 ) AS col2, 48 * - 46 * - 25 AS col2
----
-900
55200

skipif mysql # not compatible
query II rowsort label-244
SELECT + - 22 * - - 77 + - + 12 + + + 71 - 54 + MIN ( ALL + 56 ) + 85 + + 27 * ( + 24 ) AS col2, 48 * - 46 * - 25 AS col2
----
-900
55200

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT DISTINCT + - 76 * + - MAX( + ( + - 64 ) )
----
-4864

skipif mysql # not compatible
query I rowsort label-245
SELECT DISTINCT + - 76 * + - MAX ( + ( + - 64 ) )
----
-4864

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-246
SELECT + 55 - 92 - - COUNT( * ) * COALESCE ( - MIN( ALL 1 ), + 17 DIV + + ( - 24 ) ) AS col1, 39 AS col0
----
-38
39

skipif mysql # not compatible
query II rowsort label-246
SELECT + 55 - 92 - - COUNT ( * ) * COALESCE ( - MIN ( ALL 1 ), + 17 / + + ( - 24 ) ) AS col1, 39 AS col0
----
-38
39

onlyif mysql # aggregate syntax: 
query I rowsort label-247
SELECT CASE 47 WHEN + 15 / + - 77 + - - SUM( DISTINCT + - 22 ) * - 40 THEN NULL WHEN + 50 + 99 + + - 56 + 84 THEN 17 * + 72 + MIN( ALL - 94 ) - + - 53 + 65 END + NULLIF ( 71, SUM( ALL 31 ) * 75 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-247
SELECT CASE 47 WHEN + 15 / + - 77 + - - SUM ( DISTINCT + - 22 ) * - 40 THEN NULL WHEN + 50 + 99 + + - 56 + 84 THEN 17 * + 72 + MIN ( ALL - 94 ) - + - 53 + 65 END + NULLIF ( 71, SUM ( ALL 31 ) * 75 ) col0
----
NULL

query I rowsort
SELECT 71 + ( - + 36 ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT ( + 75 ) * - - 10 + + - 4 - MIN( - - 72 ) * + 88
----
-5590

skipif mysql # not compatible
query I rowsort label-249
SELECT ( + 75 ) * - - 10 + + - 4 - MIN ( - - 72 ) * + 88
----
-5590

onlyif mysql # aggregate syntax: 
query I rowsort label-250
SELECT SUM( + 18 ) + 98 * - - COUNT( * ) col0
----
116

skipif mysql # not compatible
query I rowsort label-250
SELECT SUM ( + 18 ) + 98 * - - COUNT ( * ) col0
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT ( - 58 ) - 22 + + 11 * COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-251
SELECT ( - 58 ) - 22 + + 11 * COUNT ( * )
----
-69

query I rowsort
SELECT ALL 48 + 41
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-253
SELECT 90 + CASE + CAST( NULL AS SIGNED ) WHEN + + 28 THEN NULL WHEN + 87 * + 72 THEN - 35 * 37 * 21 * + + 67 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-253
SELECT 90 + CASE + CAST ( NULL AS INTEGER ) WHEN + + 28 THEN NULL WHEN + 87 * + 72 THEN - 35 * 37 * 21 * + + 67 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-254
SELECT COUNT( * ) - 51
----
-50

skipif mysql # not compatible
query I rowsort label-254
SELECT COUNT ( * ) - 51
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-255
SELECT DISTINCT + 59 / + CASE + AVG ( 13 ) WHEN 19 THEN - NULLIF ( - 91, - - 87 / - 27 + + - 77 * 59 / - 22 * ( + 83 ) ) * 32 + 29 - - 12 - 83 / COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-255
SELECT DISTINCT + 59 / + CASE + AVG ( 13 ) WHEN 19 THEN - NULLIF ( - 91, - - 87 / - 27 + + - 77 * 59 / - 22 * ( + 83 ) ) * 32 + 29 - - 12 - 83 / COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-256
SELECT ( + COUNT( * ) ) + - + 29 + - 71 AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-256
SELECT ( + COUNT ( * ) ) + - + 29 + - 71 AS col2
----
-99

query I rowsort
SELECT ALL ( 68 ) + + 57 AS col1
----
125

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

skipif mysql # not compatible
query I rowsort label-258
SELECT DISTINCT COUNT ( * ) + + + 48 AS col0
----
49

query I rowsort
SELECT ALL 5 + - 71 - - 90 AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT COALESCE ( 7, + CASE + 58 WHEN + NULLIF ( + 77, + 27 ) - + 99 * - 66 THEN 79 WHEN - 18 * 65 * - 21 THEN NULL WHEN - 19 - - 73 THEN ( 46 ) END + 4 ) + COUNT( * ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-260
SELECT COALESCE ( 7, + CASE + 58 WHEN + NULLIF ( + 77, + 27 ) - + 99 * - 66 THEN 79 WHEN - 18 * 65 * - 21 THEN NULL WHEN - 19 - - 73 THEN ( 46 ) END + 4 ) + COUNT ( * ) AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-261
SELECT ALL MIN( 37 ) + CASE 46 WHEN + + NULLIF ( - + 54, + 11 ) THEN 11 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-261
SELECT ALL MIN ( 37 ) + CASE 46 WHEN + + NULLIF ( - + 54, + 11 ) THEN 11 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-262
SELECT DISTINCT 40 DIV + + 5 * COUNT( - - 11 )
----
8

skipif mysql # not compatible
query I rowsort label-262
SELECT DISTINCT 40 / + + 5 * COUNT ( - - 11 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-263
SELECT 21 + + COUNT( * ) * + + 34 * 83 * - + 53
----
-149545

skipif mysql # not compatible
query I rowsort label-263
SELECT 21 + + COUNT ( * ) * + + 34 * 83 * - + 53
----
-149545

query I rowsort
SELECT NULLIF ( + 17, + 35 ) * + + ( 54 ) AS col2
----
918

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-265
SELECT ALL - 67 - - 19 + ( + 15 ) + - - CAST( 99 AS SIGNED ) * - COUNT( + CAST( 24 AS SIGNED ) ) col1
----
-132

skipif mysql # not compatible
query I rowsort label-265
SELECT ALL - 67 - - 19 + ( + 15 ) + - - CAST ( 99 AS INTEGER ) * - COUNT ( + CAST ( 24 AS INTEGER ) ) col1
----
-132

query I rowsort
SELECT DISTINCT - COALESCE ( 13, - 98 )
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-267
SELECT + 15 * + - ( + + CAST( + - 39 AS SIGNED ) ) + + + 14 AS col2
----
599

skipif mysql # not compatible
query I rowsort label-267
SELECT + 15 * + - ( + + CAST ( + - 39 AS INTEGER ) ) + + + 14 AS col2
----
599

query I rowsort
SELECT 33 + ( 78 ) + + + 91 AS col2
----
202

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT ALL SUM( + - 70 ) * - + 28 AS col1
----
1960

skipif mysql # not compatible
query I rowsort label-269
SELECT ALL SUM ( + - 70 ) * - + 28 AS col1
----
1960

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT - 81 * 94 / - CASE - 20 WHEN - COUNT( * ) * + COUNT( * ) THEN - - 89 WHEN - 23 THEN NULL END * - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-271
SELECT - 81 * 94 / - CASE - 20 WHEN - COUNT ( * ) * + COUNT ( * ) THEN - - 89 WHEN - 23 THEN NULL END * - 1
----
NULL

query I rowsort
SELECT 25 * - + 3 + + 7 - 42 AS col0
----
-110

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

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

query I rowsort
SELECT ALL 78 - - + 5 * + 29 AS col2
----
223

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-276
SELECT + CAST( - 15 AS SIGNED ), 28 * + 64 AS col2
----
-15
1792

skipif mysql # not compatible
query II rowsort label-276
SELECT + CAST ( - 15 AS INTEGER ), 28 * + 64 AS col2
----
-15
1792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-277
SELECT ALL - + CAST( 63 AS SIGNED ) * + 93 * + NULLIF ( 14, + - 19 * - - COUNT( * ) ) * COUNT( * ) + + 68 + - 63 AS col2
----
-82021

skipif mysql # not compatible
query I rowsort label-277
SELECT ALL - + CAST ( 63 AS INTEGER ) * + 93 * + NULLIF ( 14, + - 19 * - - COUNT ( * ) ) * COUNT ( * ) + + 68 + - 63 AS col2
----
-82021

query I rowsort
SELECT - 53 + + COALESCE ( 99, NULLIF ( - - 1, + 47 + + 81 ), + + 11 ) * - - 34
----
3313

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-279
SELECT ALL - 88 DIV + - 26 * + COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-279
SELECT ALL - 88 / + - 26 * + COUNT ( * ) AS col1
----
3

query I rowsort
SELECT - 97 * 59
----
-5723

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-281
SELECT 45 AS col0, 15 * + CASE - COALESCE ( - CASE 84 WHEN + 5 + - CAST( NULL AS DECIMAL ) THEN 2 + + 91 WHEN MAX( 78 ) THEN + 72 ELSE CAST( 89 AS SIGNED ) END, 58 + + ( + 61 ) + + 52 ) WHEN - 25 THEN NULL ELSE 12 END AS col2
----
45
180

skipif mysql # not compatible
query II rowsort label-281
SELECT 45 AS col0, 15 * + CASE - COALESCE ( - CASE 84 WHEN + 5 + - CAST ( NULL AS REAL ) THEN 2 + + 91 WHEN MAX ( 78 ) THEN + 72 ELSE CAST ( 89 AS INTEGER ) END, 58 + + ( + 61 ) + + 52 ) WHEN - 25 THEN NULL ELSE 12 END AS col2
----
45
180

onlyif mysql # aggregate syntax: 
query II rowsort label-282
SELECT DISTINCT + 72 * + + 81 * 74 AS col2, - COUNT( * ) + + + 99
----
431568
98

skipif mysql # not compatible
query II rowsort label-282
SELECT DISTINCT + 72 * + + 81 * 74 AS col2, - COUNT ( * ) + + + 99
----
431568
98

query I rowsort
SELECT ALL + 54 + 27 + + 91 + 42 + - 88 * - 87 * 7 AS col1
----
53806

query I rowsort
SELECT 90 * - + 62 AS col1
----
-5580

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-287
SELECT ALL MIN( + - CAST( - + 69 AS SIGNED ) ) + - 12
----
57

skipif mysql # not compatible
query I rowsort label-287
SELECT ALL MIN ( + - CAST ( - + 69 AS INTEGER ) ) + - 12
----
57

query I rowsort
SELECT ALL - 82 + + 3
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-289
SELECT 5 - - 38 DIV 25 DIV - - ( 41 ) + - 83
----
-78

skipif mysql # not compatible
query I rowsort label-289
SELECT 5 - - 38 / 25 / - - ( 41 ) + - 83
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-290
SELECT ALL 99 DIV ( - + ( - + 53 ) )
----
1

skipif mysql # not compatible
query I rowsort label-290
SELECT ALL 99 / ( - + ( - + 53 ) )
----
1

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

query I rowsort
SELECT 24 + - - 28 AS col0
----
52

query I rowsort
SELECT ALL - 19 - - + 57 AS col0
----
38

query I rowsort
SELECT ALL 52 * + 56 AS col2
----
2912

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-296
SELECT DISTINCT - NULLIF ( + 16, - + 45 + + + COUNT( * ) ) * + 40 - + + 78, 24 AS col1
----
-718
24

skipif mysql # not compatible
query II rowsort label-296
SELECT DISTINCT - NULLIF ( + 16, - + 45 + + + COUNT ( * ) ) * + 40 - + + 78, 24 AS col1
----
-718
24

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

skipif mysql # not compatible
query I rowsort label-297
SELECT DISTINCT + ( COUNT ( * ) ) - ( - 24 ) AS col1
----
25

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-299
SELECT CAST( NULL AS SIGNED ) AS col2, - COUNT( * )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-299
SELECT CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * )
----
NULL
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-300
SELECT ALL - 44 DIV 23 + + - 30 * + 1 * 55
----
-1651

skipif mysql # not compatible
query I rowsort label-300
SELECT ALL - 44 / 23 + + - 30 * + 1 * 55
----
-1651

onlyif mysql # aggregate syntax: 
query III rowsort label-301
SELECT + - ( - 98 ) * + COUNT( * ), - 88 AS col0, 97 * - + 76 + - 32 AS col1
----
98
-88
-7404

skipif mysql # not compatible
query III rowsort label-301
SELECT + - ( - 98 ) * + COUNT ( * ), - 88 AS col0, 97 * - + 76 + - 32 AS col1
----
98
-88
-7404

query I rowsort
SELECT + - ( + COALESCE ( - 44, - 64 ) )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-303
SELECT + + 36 * - ( + COUNT( * ) ) + COUNT( ALL + 32 ) * - 98 col2
----
-134

skipif mysql # not compatible
query I rowsort label-303
SELECT + + 36 * - ( + COUNT ( * ) ) + COUNT ( ALL + 32 ) * - 98 col2
----
-134

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-305
SELECT - CAST( NULL AS SIGNED ) AS col2, 42 - + + 72 + + 69
----
NULL
39

skipif mysql # not compatible
query II rowsort label-305
SELECT - CAST ( NULL AS INTEGER ) AS col2, 42 - + + 72 + + 69
----
NULL
39

query I rowsort
SELECT ALL + + 50 * 85 AS col2
----
4250

query II rowsort
SELECT + 53 AS col0, + 28 AS col2
----
53
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-308
SELECT - - 48 * ( - CASE 81 WHEN + CAST( - COUNT( * ) AS SIGNED ) * + - 83 THEN + + 1 * + - ( + COUNT( * ) ) * + 61 * + 57 + - 94 - - + 17 * + 97 * - - SUM( - - 44 ) + - 64 + - 69 ELSE + ( + 74 ) END ) + MAX( ALL 50 ) * COUNT( * )
----
-3502

skipif mysql # not compatible
query I rowsort label-308
SELECT - - 48 * ( - CASE 81 WHEN + CAST ( - COUNT ( * ) AS INTEGER ) * + - 83 THEN + + 1 * + - ( + COUNT ( * ) ) * + 61 * + 57 + - 94 - - + 17 * + 97 * - - SUM ( - - 44 ) + - 64 + - 69 ELSE + ( + 74 ) END ) + MAX ( ALL 50 ) * COUNT ( * )
----
-3502

query I rowsort
SELECT + - 37 + - 41
----
-78

query I rowsort
SELECT + + 45 col1
----
45

query II rowsort
SELECT 57 col2, - 18 AS col0
----
57
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-312
SELECT ALL 46 * - ( 14 ) + + MAX( ALL + 84 ) * - 69 AS col2
----
-6440

skipif mysql # not compatible
query I rowsort label-312
SELECT ALL 46 * - ( 14 ) + + MAX ( ALL + 84 ) * - 69 AS col2
----
-6440

onlyif mysql # aggregate syntax: 
query I rowsort label-313
SELECT ALL + CASE - 33 WHEN - COUNT( * ) THEN NULL WHEN + + SUM( DISTINCT ( 36 ) ) THEN NULL ELSE 23 * 4 END
----
92

skipif mysql # not compatible
query I rowsort label-313
SELECT ALL + CASE - 33 WHEN - COUNT ( * ) THEN NULL WHEN + + SUM ( DISTINCT ( 36 ) ) THEN NULL ELSE 23 * 4 END
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-314
SELECT ALL COUNT( * ) * - + COUNT( ALL - CAST( + - 15 AS SIGNED ) ) * + 53 + - 99 + + - 33, + 60 AS col2
----
-185
60

skipif mysql # not compatible
query II rowsort label-314
SELECT ALL COUNT ( * ) * - + COUNT ( ALL - CAST ( + - 15 AS INTEGER ) ) * + 53 + - 99 + + - 33, + 60 AS col2
----
-185
60

query I rowsort
SELECT - 48 - 57 + - 95 AS col0
----
-200

query I rowsort
SELECT ALL + 50 + - 67 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-317
SELECT - ( + CASE + COUNT( ( - + 78 ) ) WHEN + 72 THEN - 68 / + 69 * 1 + + 54 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-317
SELECT - ( + CASE + COUNT ( ( - + 78 ) ) WHEN + 72 THEN - 68 / + 69 * 1 + + 54 END )
----
NULL

query I rowsort
SELECT ALL - 78 * - 3
----
234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-319
SELECT ALL + COALESCE ( + 65, + + 84, + 23, + 17 ) * - + ( + CAST( + 97 AS SIGNED ) ) col1
----
-6305

skipif mysql # not compatible
query I rowsort label-319
SELECT ALL + COALESCE ( + 65, + + 84, + 23, + 17 ) * - + ( + CAST ( + 97 AS INTEGER ) ) col1
----
-6305

query II rowsort
SELECT - 41 + - - 51 AS col0, 34 AS col0
----
10
34

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

skipif mysql # not compatible
query I rowsort label-321
SELECT DISTINCT - 33 * - ( + COUNT ( DISTINCT + 36 ) ) AS col1
----
33

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

query I rowsort
SELECT - ( - 70 ) + + 52
----
122

query I rowsort
SELECT - + 59 * - + 5 col2
----
295

query II rowsort
SELECT + 10 + 18, + 4 * + 54 AS col0
----
28
216

query II rowsort
SELECT ( - + 88 ) AS col1, 1 + - + 97 + - 59 col0
----
-88
-155

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-328
SELECT - 72 + + 85 DIV - + COUNT( * )
----
-157

skipif mysql # not compatible
query I rowsort label-328
SELECT - 72 + + 85 / - + COUNT ( * )
----
-157

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-329
SELECT + 42 * + - 90 DIV - COUNT( * ) + - 19 AS col2
----
3761

skipif mysql # not compatible
query I rowsort label-329
SELECT + 42 * + - 90 / - COUNT ( * ) + - 19 AS col2
----
3761

onlyif mysql # aggregate syntax: 
query I rowsort label-330
SELECT DISTINCT COUNT( * ) * + 96 * - - 46 AS col1
----
4416

skipif mysql # not compatible
query I rowsort label-330
SELECT DISTINCT COUNT ( * ) * + 96 * - - 46 AS col1
----
4416

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

query I rowsort
SELECT DISTINCT + 66 * 29 AS col0
----
1914

query I rowsort
SELECT ALL - 55 * 66
----
-3630

onlyif mysql # DIV for integer division: 
query I rowsort label-334
SELECT ALL - 10 DIV - + 78 * 38 + + 77 DIV 14 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-334
SELECT ALL - 10 / - + 78 * 38 + + 77 / 14 AS col0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-335
SELECT ALL ( 41 ) * + + 61 * - 72 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-335
SELECT ALL ( 41 ) * + + 61 * - 72 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-336
SELECT + - 52 + - MIN( ALL 30 ) * - 31 * - + 59 AS col1
----
-54922

skipif mysql # not compatible
query I rowsort label-336
SELECT + - 52 + - MIN ( ALL 30 ) * - 31 * - + 59 AS col1
----
-54922

query II rowsort
SELECT + 26 * - 67 col0, - 77
----
-1742
-77

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-339
SELECT ALL 6 DIV + - COALESCE ( - + 19, + - 20 + + ( + ( ( + 37 ) ) ), + - 11 ) + 87 * + COUNT( * ) * - - COUNT( * ) col2
----
87

skipif mysql # not compatible
query I rowsort label-339
SELECT ALL 6 / + - COALESCE ( - + 19, + - 20 + + ( + ( ( + 37 ) ) ), + - 11 ) + 87 * + COUNT ( * ) * - - COUNT ( * ) col2
----
87

query I rowsort
SELECT + 88 * + + 92 col2
----
8096

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-341
SELECT DISTINCT + 32 AS col0, + CAST( NULL AS SIGNED ) - + 21 + + 13 * + 89 * 54 col0
----
32
NULL

skipif mysql # not compatible
query II rowsort label-341
SELECT DISTINCT + 32 AS col0, + CAST ( NULL AS INTEGER ) - + 21 + + 13 * + 89 * 54 col0
----
32
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-342
SELECT DISTINCT + COUNT( DISTINCT + 72 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-342
SELECT DISTINCT + COUNT ( DISTINCT + 72 ) col0
----
1

query I rowsort
SELECT DISTINCT 2 * + + 90 + - - 4
----
184

query I rowsort
SELECT DISTINCT 60 * CASE + NULLIF ( - 35, + 59 ) WHEN + 57 THEN + 11 / + 6 / + 6 + - 60 END * 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-345
SELECT ALL - COUNT( * ) * + + 36 + - + 9 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-345
SELECT ALL - COUNT ( * ) * + + 36 + - + 9 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-346
SELECT ALL - ( + + 29 ) * - - 18 + - 63 + COUNT( * )
----
-584

skipif mysql # not compatible
query I rowsort label-346
SELECT ALL - ( + + 29 ) * - - 18 + - 63 + COUNT ( * )
----
-584

query I rowsort
SELECT ALL 89 * - 97
----
-8633

query I rowsort
SELECT + 1 + + + 26 * + 21 * + 60 + - + 68
----
32693

onlyif mysql # aggregate syntax: 
query I rowsort label-349
SELECT + COUNT( * ) * + + SUM( DISTINCT - 5 ) * + 15 AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-349
SELECT + COUNT ( * ) * + + SUM ( DISTINCT - 5 ) * + 15 AS col1
----
-75

query I rowsort
SELECT DISTINCT 24 * + ( - - 51 ) col2
----
1224

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-353
SELECT ALL COALESCE ( CAST( 2 AS SIGNED ), - 0 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-353
SELECT ALL COALESCE ( CAST ( 2 AS INTEGER ), - 0 ) AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-354
SELECT - 70 + COUNT( * ) - 26 + - 42 * + - CAST( NULL AS SIGNED ) + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-354
SELECT - 70 + COUNT ( * ) - 26 + - 42 * + - CAST ( NULL AS INTEGER ) + 41
----
NULL

query I rowsort
SELECT ALL COALESCE ( - + 64, + 64 )
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-356
SELECT ALL + 62 * + COUNT( * ) * - CAST( NULL AS SIGNED ) * + 95 - - 38 + + + 83 / - - 14 * - 23 + + + NULLIF ( - 93, MAX( + 77 ) ) + - NULLIF ( + 64, + 85 * + 67 / 94 ) / 96 * 76 * CASE - 35 WHEN 87 * ( + 70 ) THEN + 44 WHEN 66 * COUNT( - 53 ) THEN NULL END + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-356
SELECT ALL + 62 * + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * + 95 - - 38 + + + 83 / - - 14 * - 23 + + + NULLIF ( - 93, MAX ( + 77 ) ) + - NULLIF ( + 64, + 85 * + 67 / 94 ) / 96 * 76 * CASE - 35 WHEN 87 * ( + 70 ) THEN + 44 WHEN 66 * COUNT ( - 53 ) THEN NULL END + - COUNT ( * ) AS col1
----
NULL

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

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

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

query I rowsort
SELECT DISTINCT 82 - - 37
----
119

onlyif mysql # DIV for integer division: 
query I rowsort label-360
SELECT DISTINCT + 47 DIV - - 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-360
SELECT DISTINCT + 47 / - - 89 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-361
SELECT ( 94 ) DIV 63 * + 44 * - - 74 AS col0
----
3256

skipif mysql # not compatible
query I rowsort label-361
SELECT ( 94 ) / 63 * + 44 * - - 74 AS col0
----
3256

onlyif mysql # aggregate syntax: 
query I rowsort label-362
SELECT - CASE - 92 WHEN + + 11 THEN + - AVG ( ALL - 69 ) - 7 + - + COUNT( * ) * + 30 END / - 96 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-362
SELECT - CASE - 92 WHEN + + 11 THEN + - AVG ( ALL - 69 ) - 7 + - + COUNT ( * ) * + 30 END / - 96 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT DISTINCT + - COALESCE ( + 19, - 26 * CASE - 55 WHEN - - 29 THEN - + MIN( - 2 ) * + 62 * 9 WHEN + 33 - - 52 - - + 98 THEN NULL END ) * + COUNT( - + 83 ) col0
----
-19

skipif mysql # not compatible
query I rowsort label-363
SELECT DISTINCT + - COALESCE ( + 19, - 26 * CASE - 55 WHEN - - 29 THEN - + MIN ( - 2 ) * + 62 * 9 WHEN + 33 - - 52 - - + 98 THEN NULL END ) * + COUNT ( - + 83 ) col0
----
-19

query I rowsort
SELECT - 47 - - - 28 col1
----
-75

query I rowsort
SELECT DISTINCT - NULLIF ( - 26, 18 ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-366
SELECT 11 * - 16 + + - 72 - COUNT( * ) + + - 37 AS col0, 13
----
-286
13

skipif mysql # not compatible
query II rowsort label-366
SELECT 11 * - 16 + + - 72 - COUNT ( * ) + + - 37 AS col0, 13
----
-286
13

query I rowsort
SELECT ALL - 42 * - 45
----
1890

query II rowsort
SELECT DISTINCT - + 17 * 33 * + 19 AS col1, + 77 + + 79
----
-10659
156

query I rowsort
SELECT ALL + 62 + + + 1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-370
SELECT ALL - 3 + 64 - - 79 + + + COUNT( * ) AS col1
----
141

skipif mysql # not compatible
query I rowsort label-370
SELECT ALL - 3 + 64 - - 79 + + + COUNT ( * ) AS col1
----
141

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

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

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

query I rowsort
SELECT NULLIF ( + 88, + 74 * + 2 ) - - - 88 + + 37 AS col0
----
37

query I rowsort
SELECT + NULLIF ( + 75, + 17 + - 68 ) AS col1
----
75

query I rowsort
SELECT ALL - 1 + - + 92 AS col0
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-376
SELECT ALL + COUNT( * ) + + NULLIF ( + 80, + + 45 ) DIV - 94 + + COALESCE ( - MAX( 86 ), NULLIF ( + 73, - + 95 DIV ( 25 ) + ( + - 31 ) * - + COUNT( * ) - - CASE 93 WHEN - 67 + - 44 THEN NULL WHEN 6 THEN - 94 * - 72 END ) ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-376
SELECT ALL + COUNT ( * ) + + NULLIF ( + 80, + + 45 ) / - 94 + + COALESCE ( - MAX ( 86 ), NULLIF ( + 73, - + 95 / ( 25 ) + ( + - 31 ) * - + COUNT ( * ) - - CASE 93 WHEN - 67 + - 44 THEN NULL WHEN 6 THEN - 94 * - 72 END ) ) AS col2
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-377
SELECT COUNT( * ) AS col0, 28 + 48
----
1
76

skipif mysql # not compatible
query II rowsort label-377
SELECT COUNT ( * ) AS col0, 28 + 48
----
1
76

onlyif mysql # aggregate syntax: 
query I rowsort label-378
SELECT CASE - + 90 WHEN + 20 * - SUM( ALL - - 45 ) THEN NULL ELSE - 13 END * + - 49
----
637

skipif mysql # not compatible
query I rowsort label-378
SELECT CASE - + 90 WHEN + 20 * - SUM ( ALL - - 45 ) THEN NULL ELSE - 13 END * + - 49
----
637

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

query I rowsort
SELECT ALL - 40 + - + 20 + - 65 * - 42
----
2670

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT ALL COALESCE ( - + COUNT( - + 55 ), - 81 + - + 14, + + 38 ) * - - MIN( DISTINCT + 66 ) + 8 * - 92 * 73 * + - 0
----
-66

skipif mysql # not compatible
query I rowsort label-381
SELECT ALL COALESCE ( - + COUNT ( - + 55 ), - 81 + - + 14, + + 38 ) * - - MIN ( DISTINCT + 66 ) + 8 * - 92 * 73 * + - 0
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-382
SELECT ALL + SUM( DISTINCT + - 49 ) DIV + 57
----
0

skipif mysql # not compatible
query I rowsort label-382
SELECT ALL + SUM ( DISTINCT + - 49 ) / + 57
----
0

query I rowsort
SELECT ALL COALESCE ( - 2, ( + 52 ) ) + 47
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT COUNT( * ) * MAX( 69 )
----
69

skipif mysql # not compatible
query I rowsort label-384
SELECT COUNT ( * ) * MAX ( 69 )
----
69

query I rowsort
SELECT DISTINCT + 13 * - 38 AS col0
----
-494

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT COALESCE ( + 2, - 52 ) * + 77 + + MAX( + 83 ) AS col0
----
237

skipif mysql # not compatible
query I rowsort label-386
SELECT COALESCE ( + 2, - 52 ) * + 77 + + MAX ( + 83 ) AS col0
----
237

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-387
SELECT ALL + CASE + 98 WHEN + 20 - 87 THEN 58 - + + CAST( CAST( 18 AS SIGNED ) AS DECIMAL ) / - + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) END * + - 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-387
SELECT ALL + CASE + 98 WHEN + 20 - 87 THEN 58 - + + CAST ( CAST ( 18 AS INTEGER ) AS REAL ) / - + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) END * + - 53 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-388
SELECT + 23 DIV MAX( DISTINCT 17 ) * - + 42 DIV + - 29 + SUM( 66 ) + + 44 + - + 86 DIV - 61 AS col1
----
112

skipif mysql # not compatible
query I rowsort label-388
SELECT + 23 / MAX ( DISTINCT 17 ) * - + 42 / + - 29 + SUM ( 66 ) + + 44 + - + 86 / - 61 AS col1
----
112

onlyif mysql # aggregate syntax: 
query II rowsort label-389
SELECT 72, - 39 * + 70 + + COUNT( * ) AS col2
----
72
-2729

skipif mysql # not compatible
query II rowsort label-389
SELECT 72, - 39 * + 70 + + COUNT ( * ) AS col2
----
72
-2729

onlyif mysql # DIV for integer division: 
query I rowsort label-390
SELECT 5 + + 30 DIV + - 23 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-390
SELECT 5 + + 30 / + - 23 AS col1
----
4

query II rowsort
SELECT + 33, - 32 AS col1
----
33
-32

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

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

query I rowsort
SELECT 60 * 57 + 87 * 96 * - 34 AS col2
----
-280548

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

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

query I rowsort
SELECT ( CASE + ( AVG ( - - 30 ) ) WHEN - + 52 THEN NULL WHEN 6 THEN NULL WHEN + 60 THEN - + 89 ELSE NULL END ) + 96 + - - 92
----
NULL

query II rowsort
SELECT ALL - 69, 91 - - 23 AS col2
----
-69
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-397
SELECT CAST( NULL AS SIGNED ) - + NULLIF ( NULLIF ( - 0, 40 * - COUNT( * ) * + 67 + 39 + - 62 + COUNT( - 84 ) * COALESCE ( + 48, - 78 ) * COUNT( * ) * - 73 + 31 + 51 * - + 54 ), + 43 + + 33 ) + + 7 / 78
----
NULL

skipif mysql # not compatible
query I rowsort label-397
SELECT CAST ( NULL AS INTEGER ) - + NULLIF ( NULLIF ( - 0, 40 * - COUNT ( * ) * + 67 + 39 + - 62 + COUNT ( - 84 ) * COALESCE ( + 48, - 78 ) * COUNT ( * ) * - 73 + 31 + 51 * - + 54 ), + 43 + + 33 ) + + 7 / 78
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( - + 63, - 0 ) * + - 9
----
567

query II rowsort
SELECT - 10, 1 AS col2
----
-10
1

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

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

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

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

query I rowsort
SELECT - 32 + - 41 AS col2
----
-73

query III rowsort
SELECT 46 - 63 AS col0, 74 + 18 AS col2, - + 19 - 3 AS col2
----
-17
92
-22

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

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

query I rowsort
SELECT - 45 + 69 * + ( 35 ) AS col2
----
2370

query II rowsort
SELECT ALL + 88 + + 50 + ( - 15 ) AS col0, - 85
----
123
-85

query I rowsort
SELECT - ( COALESCE ( - - 94, 75 + 30, - 72 * + 58 * + + 51 ) )
----
-94

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-409
SELECT + ( COUNT( DISTINCT 68 ) ) + + + 90 + 68 DIV + 20 - - ( 51 ) * - + 77
----
-3833

skipif mysql # not compatible
query I rowsort label-409
SELECT + ( COUNT ( DISTINCT 68 ) ) + + + 90 + 68 / + 20 - - ( 51 ) * - + 77
----
-3833

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-410
SELECT DISTINCT + 30 AS col0, - 86 DIV + + COUNT( * )
----
30
-86

skipif mysql # not compatible
query II rowsort label-410
SELECT DISTINCT + 30 AS col0, - 86 / + + COUNT ( * )
----
30
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-411
SELECT ALL - + 14 + + 88 DIV 12 * 84
----
574

skipif mysql # not compatible
query I rowsort label-411
SELECT ALL - + 14 + + 88 / 12 * 84
----
574

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-412
SELECT ALL + - CASE - ( + + 5 ) WHEN - + 68 * - - 57 + - COALESCE ( + 74, - CASE 67 WHEN + + 56 THEN 64 + MIN( 13 ) * + CAST( NULL AS SIGNED ) ELSE NULL END ) + 62 * - 41 - + - ( 39 ) * - 22 THEN NULL WHEN COUNT( * ) THEN - COUNT( * ) WHEN + 26 THEN - 11 * CAST( 97 AS SIGNED ) + - 7 END + - 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-412
SELECT ALL + - CASE - ( + + 5 ) WHEN - + 68 * - - 57 + - COALESCE ( + 74, - CASE 67 WHEN + + 56 THEN 64 + MIN ( 13 ) * + CAST ( NULL AS INTEGER ) ELSE NULL END ) + 62 * - 41 - + - ( 39 ) * - 22 THEN NULL WHEN COUNT ( * ) THEN - COUNT ( * ) WHEN + 26 THEN - 11 * CAST ( 97 AS INTEGER ) + - 7 END + - 35 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-413
SELECT + MIN ( - 98 ) + CAST ( + - COUNT ( * ) AS INTEGER ) + COUNT ( * )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT DISTINCT - + COUNT( * ) + - - 65 * - + 49 AS col1
----
-3186

skipif mysql # not compatible
query I rowsort label-414
SELECT DISTINCT - + COUNT ( * ) + - - 65 * - + 49 AS col1
----
-3186

query I rowsort
SELECT ALL + + 39 * + + 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT ALL - MAX( 57 ) + - - 97 + 96 + 29 AS col0
----
165

skipif mysql # not compatible
query I rowsort label-416
SELECT ALL - MAX ( 57 ) + - - 97 + 96 + 29 AS col0
----
165

query I rowsort
SELECT DISTINCT 72 * 58 - + - 66 col1
----
4242

query II rowsort
SELECT 82 AS col0, - ( + - 46 ) col2
----
82
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-419
SELECT - - 14 DIV + 40 + + SUM( DISTINCT - 3 ), + 47 + - MAX( - 97 ) AS col1
----
-3
144

skipif mysql # not compatible
query II rowsort label-419
SELECT - - 14 / + 40 + + SUM ( DISTINCT - 3 ), + 47 + - MAX ( - 97 ) AS col1
----
-3
144

onlyif mysql # aggregate syntax: 
query I rowsort label-420
SELECT + COALESCE ( - COUNT( * ), 41 * - 33 - - 13 )
----
-1

skipif mysql # not compatible
query I rowsort label-420
SELECT + COALESCE ( - COUNT ( * ), 41 * - 33 - - 13 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-421
SELECT 25 + + CASE MAX( 64 ) WHEN + 50 * + 71 + COUNT( * ) THEN - - 56 * - 97 * - 38 DIV - - COUNT( * ) * + 47 - - ( 73 ) + - - 97 + 93 + + 23 * 93 ELSE + COUNT( * ) END - 32
----
-6

skipif mysql # not compatible
query I rowsort label-421
SELECT 25 + + CASE MAX ( 64 ) WHEN + 50 * + 71 + COUNT ( * ) THEN - - 56 * - 97 * - 38 / - - COUNT ( * ) * + 47 - - ( 73 ) + - - 97 + 93 + + 23 * 93 ELSE + COUNT ( * ) END - 32
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-422
SELECT 99 * + + 32 * + COUNT( * ) col2
----
3168

skipif mysql # not compatible
query I rowsort label-422
SELECT 99 * + + 32 * + COUNT ( * ) col2
----
3168

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT DISTINCT - 57 * + ( + COUNT( * ) ) - + 46 * 42 * - 90 AS col2
----
173823

skipif mysql # not compatible
query I rowsort label-423
SELECT DISTINCT - 57 * + ( + COUNT ( * ) ) - + 46 * 42 * - 90 AS col2
----
173823

query I rowsort
SELECT DISTINCT - ( NULLIF ( ( + 13 ), 92 + + 87 ) ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-425
SELECT DISTINCT - SUM( + 61 ), SUM( DISTINCT + 18 ) * + + 26 + 99 AS col1
----
-61
567

skipif mysql # not compatible
query II rowsort label-425
SELECT DISTINCT - SUM ( + 61 ), SUM ( DISTINCT + 18 ) * + + 26 + 99 AS col1
----
-61
567

onlyif mysql # aggregate syntax: 
query I rowsort label-426
SELECT DISTINCT - COUNT( + 48 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-426
SELECT DISTINCT - COUNT ( + 48 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-427
SELECT DISTINCT 71 * - CAST( + 11 AS SIGNED ) AS col0
----
-781

skipif mysql # not compatible
query I rowsort label-427
SELECT DISTINCT 71 * - CAST ( + 11 AS INTEGER ) AS col0
----
-781

query I rowsort
SELECT DISTINCT + ( - 0 ) * - 1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-429
SELECT DISTINCT 88 * COUNT( * ) * 88
----
7744

skipif mysql # not compatible
query I rowsort label-429
SELECT DISTINCT 88 * COUNT ( * ) * 88
----
7744

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-430
SELECT - AVG ( DISTINCT - 93 ) / + CAST( NULL AS SIGNED ) / 61
----
NULL

skipif mysql # not compatible
query I rowsort label-430
SELECT - AVG ( DISTINCT - 93 ) / + CAST ( NULL AS INTEGER ) / 61
----
NULL

query I rowsort
SELECT ALL + CASE + 54 WHEN - 76 + - - 87 - - 3 * - 48 THEN - AVG ( ALL 59 ) WHEN 93 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-432
SELECT DISTINCT - COUNT( * ) * - + 48, + 68 * - 81 - 34 + 71 AS col1
----
48
-5471

skipif mysql # not compatible
query II rowsort label-432
SELECT DISTINCT - COUNT ( * ) * - + 48, + 68 * - 81 - 34 + 71 AS col1
----
48
-5471

query I rowsort
SELECT ALL + CASE WHEN NOT NULL IS NULL THEN 44 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-434
SELECT - 58 DIV 86 DIV + 66
----
0

skipif mysql # not compatible
query I rowsort label-434
SELECT - 58 / 86 / + 66
----
0

query I rowsort
SELECT + 64 * - 51 * - ( - - 66 )
----
215424

query I rowsort
SELECT ALL 70 + + - 84
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-437
SELECT + CASE + + 22 WHEN - 72 - 77 THEN + 87 + - + CAST( - 25 AS SIGNED ) * - - COALESCE ( - 69, + 2 * AVG ( - 75 ) ) WHEN - 35 - COUNT( + 94 ) + COUNT( * ) THEN NULL WHEN - 58 * + 6 + + 8 THEN - 69 ELSE NULL END * - + 81 + 90 + + 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-437
SELECT + CASE + + 22 WHEN - 72 - 77 THEN + 87 + - + CAST ( - 25 AS INTEGER ) * - - COALESCE ( - 69, + 2 * AVG ( - 75 ) ) WHEN - 35 - COUNT ( + 94 ) + COUNT ( * ) THEN NULL WHEN - 58 * + 6 + + 8 THEN - 69 ELSE NULL END * - + 81 + 90 + + 44 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-438
SELECT - + 81 * + 68 + + - MIN( ALL + + 42 ) AS col1
----
-5550

skipif mysql # not compatible
query I rowsort label-438
SELECT - + 81 * + 68 + + - MIN ( ALL + + 42 ) AS col1
----
-5550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-439
SELECT + - 22 / - - 16 * - 98 - + COALESCE ( + - COUNT( * ), AVG ( 34 ), ( + 75 ) * NULLIF ( 57, - 38 / + + COUNT( * ) + + 67 + - 10 / + 92 * 0 + 49 * MAX( DISTINCT - 37 ) + 80 ), 23 * + NULLIF ( + COALESCE ( - 15, 0, 19 / 54 - - 60 ), 33 ) ) - + CAST( NULL AS SIGNED ) / - SUM( DISTINCT 79 + 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-439
SELECT + - 22 / - - 16 * - 98 - + COALESCE ( + - COUNT ( * ), AVG ( 34 ), ( + 75 ) * NULLIF ( 57, - 38 / + + COUNT ( * ) + + 67 + - 10 / + 92 * 0 + 49 * MAX ( DISTINCT - 37 ) + 80 ), 23 * + NULLIF ( + COALESCE ( - 15, 0, 19 / 54 - - 60 ), 33 ) ) - + CAST ( NULL AS INTEGER ) / - SUM ( DISTINCT 79 + 29 )
----
NULL

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

query II rowsort
SELECT DISTINCT + ( 39 ) AS col0, 50
----
39
50

query I rowsort
SELECT ALL - 67 + + 73
----
6

query I rowsort
SELECT + + 96 - ( ( - 66 ) )
----
162

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-444
SELECT ALL + ( - COUNT( * ) ), CAST( NULL AS DECIMAL ) AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-444
SELECT ALL + ( - COUNT ( * ) ), CAST ( NULL AS REAL ) AS col1
----
-1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-445
SELECT + - COUNT( * ) + + ( - - 11 ), + 34 * + COUNT( * ) AS col1
----
10
34

skipif mysql # not compatible
query II rowsort label-445
SELECT + - COUNT ( * ) + + ( - - 11 ), + 34 * + COUNT ( * ) AS col1
----
10
34

onlyif mysql # aggregate syntax: 
query I rowsort label-446
SELECT - - 15 * COUNT( DISTINCT - 37 )
----
15

skipif mysql # not compatible
query I rowsort label-446
SELECT - - 15 * COUNT ( DISTINCT - 37 )
----
15

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-448
SELECT + ( - 52 ) AS col2, + 58 + - COUNT( + 33 ) + 18
----
-52
75

skipif mysql # not compatible
query II rowsort label-448
SELECT + ( - 52 ) AS col2, + 58 + - COUNT ( + 33 ) + 18
----
-52
75

query II rowsort
SELECT + + 46 + 80, + 70 AS col2
----
126
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-450
SELECT ALL + 40 - + CASE - 99 WHEN - 57 THEN NULL WHEN 24 THEN - 48 DIV + COUNT( * ) - - CASE + 78 WHEN - 61 THEN NULL WHEN + - 65 THEN + 14 ELSE + 51 * - COUNT( * ) END DIV + 20 - 47 DIV 15 * + - CASE + 19 WHEN + 44 THEN ( ( + 99 ) ) ELSE NULL END ELSE - 29 * 51 END
----
1519

skipif mysql # not compatible
query I rowsort label-450
SELECT ALL + 40 - + CASE - 99 WHEN - 57 THEN NULL WHEN 24 THEN - 48 / + COUNT ( * ) - - CASE + 78 WHEN - 61 THEN NULL WHEN + - 65 THEN + 14 ELSE + 51 * - COUNT ( * ) END / + 20 - 47 / 15 * + - CASE + 19 WHEN + 44 THEN ( ( + 99 ) ) ELSE NULL END ELSE - 29 * 51 END
----
1519

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-451
SELECT + CASE 12 WHEN + MAX( DISTINCT - - 61 ) THEN + 29 * + COUNT( * ) + 82 + + 75 * - MIN( 39 ) * COALESCE ( + + 0, - ( 65 ) ) + MAX( ALL - + 25 ) * CASE + 27 WHEN - COALESCE ( + 85, + - COALESCE ( ( 34 ), + ( + 82 ) / 42, 11 + - 88, CAST( NULL AS SIGNED ) + - 89 * CAST( NULL AS SIGNED ) ) * - 57, 47 ) THEN + 16 + + 83 ELSE NULL END + COUNT( * ) * - 15 END * 61 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-451
SELECT + CASE 12 WHEN + MAX ( DISTINCT - - 61 ) THEN + 29 * + COUNT ( * ) + 82 + + 75 * - MIN ( 39 ) * COALESCE ( + + 0, - ( 65 ) ) + MAX ( ALL - + 25 ) * CASE + 27 WHEN - COALESCE ( + 85, + - COALESCE ( ( 34 ), + ( + 82 ) / 42, 11 + - 88, CAST ( NULL AS INTEGER ) + - 89 * CAST ( NULL AS INTEGER ) ) * - 57, 47 ) THEN + 16 + + 83 ELSE NULL END + COUNT ( * ) * - 15 END * 61 col2
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-453
SELECT ALL + 62 DIV COUNT( * ) - + 44 + 93 AS col1
----
111

skipif mysql # not compatible
query I rowsort label-453
SELECT ALL + 62 / COUNT ( * ) - + 44 + 93 AS col1
----
111

query I rowsort
SELECT + 72 * - 4
----
-288

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-455
SELECT ( - ( CAST( + - 13 AS SIGNED ) ) ) AS col1, + 33 * + - 48
----
13
-1584

skipif mysql # not compatible
query II rowsort label-455
SELECT ( - ( CAST ( + - 13 AS INTEGER ) ) ) AS col1, + 33 * + - 48
----
13
-1584

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-458
SELECT ( MAX ( DISTINCT 4 ) )
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-459
SELECT - 30 DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-459
SELECT - 30 / + 79
----
0

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

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

query I rowsort
SELECT + 42 * + 14 AS col0
----
588

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-462
SELECT DISTINCT + 66 AS col1, ( + + NULLIF ( - NULLIF ( - 92, 63 ), + - COUNT( * ) * - MAX( DISTINCT + 71 ) + + CASE - 85 WHEN 54 THEN NULL ELSE + + 11 * - + COUNT( * ) - + COUNT( * ) DIV + 3 + 14 DIV - 65 END + - - COUNT( * ) + 37 * + 4 * - + 73 - COUNT( ALL - 19 ) ) ) DIV 70 AS col1
----
66
1

skipif mysql # not compatible
query II rowsort label-462
SELECT DISTINCT + 66 AS col1, ( + + NULLIF ( - NULLIF ( - 92, 63 ), + - COUNT ( * ) * - MAX ( DISTINCT + 71 ) + + CASE - 85 WHEN 54 THEN NULL ELSE + + 11 * - + COUNT ( * ) - + COUNT ( * ) / + 3 + 14 / - 65 END + - - COUNT ( * ) + 37 * + 4 * - + 73 - COUNT ( ALL - 19 ) ) ) / 70 AS col1
----
66
1

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

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

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

query I rowsort
SELECT DISTINCT ( - + 58 ) * + 15 AS col2
----
-870

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-467
SELECT ALL + COUNT( * ) * COALESCE ( - + 24, - - 0, - 1 ) + + COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-467
SELECT ALL + COUNT ( * ) * COALESCE ( - + 24, - - 0, - 1 ) + + COUNT ( * )
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-468
SELECT + MAX( ALL 46 ) + + 39, CAST( NULL AS SIGNED ) AS col0
----
85
NULL

skipif mysql # not compatible
query II rowsort label-468
SELECT + MAX ( ALL 46 ) + + 39, CAST ( NULL AS INTEGER ) AS col0
----
85
NULL

query I rowsort
SELECT CASE - + 69 WHEN 73 THEN + NULLIF ( + 33, + - 27 + - 72 + 85 - - 47 ) END
----
NULL

query I rowsort
SELECT NULLIF ( 54, + ( - 16 ) * 27 )
----
54

query I rowsort
SELECT - 76 + - + 24 * + 42 AS col1
----
-1084

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-472
SELECT NULLIF ( + 61, - CASE - + 97 WHEN - 40 + - 47 THEN 8 / + MAX( + + 78 ) * - + 2 WHEN - + 32 THEN + 78 + - 95 * + 99 ELSE NULL END * - 8 + CAST( + NULLIF ( - + COUNT( * ), + MIN( DISTINCT + 85 ) ) AS SIGNED ) / - - 88 * + 93 + + - COALESCE ( 80, 16 * - 52 - 5 ) ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-472
SELECT NULLIF ( + 61, - CASE - + 97 WHEN - 40 + - 47 THEN 8 / + MAX ( + + 78 ) * - + 2 WHEN - + 32 THEN + 78 + - 95 * + 99 ELSE NULL END * - 8 + CAST ( + NULLIF ( - + COUNT ( * ), + MIN ( DISTINCT + 85 ) ) AS INTEGER ) / - - 88 * + 93 + + - COALESCE ( 80, 16 * - 52 - 5 ) ) AS col1
----
61

query I rowsort
SELECT ALL 76 * - 7 + + 92
----
-440

onlyif mysql # aggregate syntax: 
query II rowsort label-474
SELECT 98 * - - COUNT( * ) + 19 * - 31 - + - MAX( DISTINCT 87 ) AS col1, 72 * 28 + + + 87 + 31
----
-404
2134

skipif mysql # not compatible
query II rowsort label-474
SELECT 98 * - - COUNT ( * ) + 19 * - 31 - + - MAX ( DISTINCT 87 ) AS col1, 72 * 28 + + + 87 + 31
----
-404
2134

query I rowsort
SELECT ALL 19 * + - ( + 13 ) + 74
----
-173

onlyif mysql # aggregate syntax: 
query II rowsort label-476
SELECT DISTINCT + COUNT( * ) AS col0, 34 + - 59 * + 23 + + 97 + + - 55 * + SUM( - - 14 )
----
1
-1996

skipif mysql # not compatible
query II rowsort label-476
SELECT DISTINCT + COUNT ( * ) AS col0, 34 + - 59 * + 23 + + 97 + + - 55 * + SUM ( - - 14 )
----
1
-1996

query I rowsort
SELECT ALL - - 35 * + - 72 AS col0
----
-2520

onlyif mysql # aggregate syntax: 
query II rowsort label-478
SELECT DISTINCT - 72 * + COUNT( * ) + COUNT( * ) AS col2, + 66
----
-71
66

skipif mysql # not compatible
query II rowsort label-478
SELECT DISTINCT - 72 * + COUNT ( * ) + COUNT ( * ) AS col2, + 66
----
-71
66

query I rowsort
SELECT - + 99 * + - 67
----
6633

onlyif mysql # DIV for integer division: 
query I rowsort label-480
SELECT + - 36 + + - 65 DIV + + 33 + - 27 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-480
SELECT + - 36 + + - 65 / + + 33 + - 27 AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT - - 25 + 90 + + + COUNT( * ) * + 3 AS col2
----
118

skipif mysql # not compatible
query I rowsort label-481
SELECT - - 25 + 90 + + + COUNT ( * ) * + 3 AS col2
----
118

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

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

query I rowsort
SELECT - + 50 + - 8 * 54 AS col1
----
-482

onlyif mysql # DIV for integer division: 
query I rowsort label-484
SELECT DISTINCT 78 DIV - 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-484
SELECT DISTINCT 78 / - 84 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-485
SELECT ALL 96 - - + 19 DIV - 90 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-485
SELECT ALL 96 - - + 19 / - 90 AS col1
----
96

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

query I rowsort
SELECT - + 98 * + - 5 AS col2
----
490

query II rowsort
SELECT 80 AS col2, - 92 + + 65 + - + 76 AS col0
----
80
-103

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

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

query I rowsort
SELECT ALL 60 * - - 50 AS col0
----
3000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-491
SELECT + 66 + + CAST( + 73 AS SIGNED ) AS col2
----
139

skipif mysql # not compatible
query I rowsort label-491
SELECT + 66 + + CAST ( + 73 AS INTEGER ) AS col2
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-492
SELECT - ( + + COUNT( - + NULLIF ( - 73, + 81 ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-492
SELECT - ( + + COUNT ( - + NULLIF ( - 73, + 81 ) ) ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-493
SELECT ALL 24 * - + CAST( NULL AS SIGNED ) * + 62 * - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-493
SELECT ALL 24 * - + CAST ( NULL AS INTEGER ) * + 62 * - 51
----
NULL

query I rowsort
SELECT ALL + 65 + + - 85 * 24 AS col1
----
-1975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-495
SELECT CAST( 2 AS SIGNED ) + 94 col2
----
96

skipif mysql # not compatible
query I rowsort label-495
SELECT CAST ( 2 AS INTEGER ) + 94 col2
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-496
SELECT DISTINCT 11 DIV + 76
----
0

skipif mysql # not compatible
query I rowsort label-496
SELECT DISTINCT 11 / + 76
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-497
SELECT + CAST( NULL AS SIGNED ) * COALESCE ( - 40, - + NULLIF ( - COUNT( * ), COUNT( * ) * - 96 - 39 / - - COUNT( DISTINCT + 5 ) + - 53 * + - 35 / + 64 - + 44 + - + 51 / - - 0 - - CAST( NULL AS SIGNED ) ) + + 1 ) + - COUNT( * ) AS col2, + 60 + + CAST( - COALESCE ( - 39, + - COUNT( ALL 80 ) ) AS SIGNED ) AS col0
----
NULL
99

skipif mysql # not compatible
query II rowsort label-497
SELECT + CAST ( NULL AS INTEGER ) * COALESCE ( - 40, - + NULLIF ( - COUNT ( * ), COUNT ( * ) * - 96 - 39 / - - COUNT ( DISTINCT + 5 ) + - 53 * + - 35 / + 64 - + 44 + - + 51 / - - 0 - - CAST ( NULL AS INTEGER ) ) + + 1 ) + - COUNT ( * ) AS col2, + 60 + + CAST ( - COALESCE ( - 39, + - COUNT ( ALL 80 ) ) AS INTEGER ) AS col0
----
NULL
99

query I rowsort
SELECT ALL 46 + + 10 AS col2
----
56

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

skipif mysql # not compatible
query I rowsort label-499
SELECT COUNT ( * ) / + - 49
----
0

query I rowsort
SELECT 59 * + 36 AS col0
----
2124

query I rowsort
SELECT DISTINCT - NULLIF ( + 93, 53 )
----
-93

query I rowsort
SELECT ALL - 20 + ( ( - ( + 66 ) ) ) + + 98
----
12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-503
SELECT + NULLIF ( + + 2, + 42 + CASE + NULLIF ( CASE COUNT( * ) WHEN - 78 THEN 60 * - 79 * + + 65 WHEN + 85 * 77 THEN - 11 + + 95 * - - COUNT( * ) END, - 75 + + 70 + + 34 ) WHEN + 85 * + + 17 THEN - MIN( + CAST( NULL AS DECIMAL ) ) * + 37 END - 9 ) * + 89
----
178

skipif mysql # not compatible
query I rowsort label-503
SELECT + NULLIF ( + + 2, + 42 + CASE + NULLIF ( CASE COUNT ( * ) WHEN - 78 THEN 60 * - 79 * + + 65 WHEN + 85 * 77 THEN - 11 + + 95 * - - COUNT ( * ) END, - 75 + + 70 + + 34 ) WHEN + 85 * + + 17 THEN - MIN ( + CAST ( NULL AS REAL ) ) * + 37 END - 9 ) * + 89
----
178

query I rowsort
SELECT ALL + 9 + - + 86 AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-505
SELECT 11 - COUNT( NULLIF ( - 13, - 29 ) )
----
10

skipif mysql # not compatible
query I rowsort label-505
SELECT 11 - COUNT ( NULLIF ( - 13, - 29 ) )
----
10

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-507
SELECT + ( - CAST( ( - AVG ( - 88 ) ) AS SIGNED ) )
----
-88

skipif mysql # not compatible
query I rowsort label-507
SELECT + ( - CAST ( ( - AVG ( - 88 ) ) AS INTEGER ) )
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-508
SELECT DISTINCT - COUNT( * ) - 10 AS col1, - 55 + - 17
----
-11
-72

skipif mysql # not compatible
query II rowsort label-508
SELECT DISTINCT - COUNT ( * ) - 10 AS col1, - 55 + - 17
----
-11
-72

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

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT ALL - 93 - - 91 + + + COUNT( ALL + - 23 ) + + ( 89 )
----
88

skipif mysql # not compatible
query I rowsort label-510
SELECT ALL - 93 - - 91 + + + COUNT ( ALL + - 23 ) + + ( 89 )
----
88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-512
SELECT ALL ( - MAX( DISTINCT - 97 ) ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-512
SELECT ALL ( - MAX ( DISTINCT - 97 ) ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-513
SELECT + 50 - COUNT( DISTINCT 74 )
----
49

skipif mysql # not compatible
query I rowsort label-513
SELECT + 50 - COUNT ( DISTINCT 74 )
----
49

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

skipif mysql # not compatible
query I rowsort label-514
SELECT ALL CAST ( COUNT ( ALL - 99 ) AS INTEGER )
----
1

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

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

query I rowsort
SELECT 51 + + - 6
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-517
SELECT - COALESCE ( - - 76, + 73 ) / + NULLIF ( + 84, + 59 ) * + 44 * + + 36 + - 52 - + CASE NULLIF ( + 58, - 14 / 2 + + - 66 + COALESCE ( + CAST( NULL AS SIGNED ), - + ( 16 ) + + 69, - 34 / COUNT( * ) - + 63 * + 16 * 90 ) ) WHEN + 93 THEN - CASE 23 WHEN CASE 0 WHEN - NULLIF ( - AVG ( + 12 ), 70 - - 2 ) THEN + 5 WHEN - 78 THEN NULL END THEN 44 WHEN COUNT( * ) THEN - 62 END - - 58 END * 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-517
SELECT - COALESCE ( - - 76, + 73 ) / + NULLIF ( + 84, + 59 ) * + 44 * + + 36 + - 52 - + CASE NULLIF ( + 58, - 14 / 2 + + - 66 + COALESCE ( + CAST ( NULL AS INTEGER ), - + ( 16 ) + + 69, - 34 / COUNT ( * ) - + 63 * + 16 * 90 ) ) WHEN + 93 THEN - CASE 23 WHEN CASE 0 WHEN - NULLIF ( - AVG ( + 12 ), 70 - - 2 ) THEN + 5 WHEN - 78 THEN NULL END THEN 44 WHEN COUNT ( * ) THEN - 62 END - - 58 END * 7 AS col2
----
NULL

query I rowsort
SELECT 97 + + + 88
----
185

query I rowsort
SELECT ALL - 5 * - 96
----
480

query I rowsort
SELECT 24 * + 7 AS col1
----
168

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

skipif mysql # not compatible
query II rowsort label-521
SELECT ALL ( - 73 ) / 49, COUNT ( * ) AS col2
----
-1
1

query I rowsort
SELECT ALL 6 + + 54
----
60

query I rowsort
SELECT 50 * - 76 AS col1
----
-3800

query I rowsort
SELECT DISTINCT - 60 + + 26 AS col1
----
-34

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

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

query I rowsort
SELECT DISTINCT 5 + 98 AS col2
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT DISTINCT 64 + 5 + + COUNT( * ) * - 94 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-527
SELECT DISTINCT 64 + 5 + + COUNT ( * ) * - 94 AS col2
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-528
SELECT DISTINCT 69 + - 90 + - - MIN( ALL 49 ) + 54 DIV - 26 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-528
SELECT DISTINCT 69 + - 90 + - - MIN ( ALL 49 ) + 54 / - 26 AS col1
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-529
SELECT CASE - 46 WHEN - + 44 * COUNT( * ) THEN NULL WHEN - 94 THEN 62 * + + ( + COALESCE ( - 63, - NULLIF ( 97, COALESCE ( + COALESCE ( + - 22, + - COUNT( * ) + COUNT( * ) ), + CAST( NULL AS SIGNED ) ) ) * - - 9, + 61 + + 99 ) ) ELSE NULL END * CAST( + 86 AS SIGNED ) * - - NULLIF ( COUNT( * ), + - 7 * - 87 ) + 45 * 22
----
NULL

skipif mysql # not compatible
query I rowsort label-529
SELECT CASE - 46 WHEN - + 44 * COUNT ( * ) THEN NULL WHEN - 94 THEN 62 * + + ( + COALESCE ( - 63, - NULLIF ( 97, COALESCE ( + COALESCE ( + - 22, + - COUNT ( * ) + COUNT ( * ) ), + CAST ( NULL AS INTEGER ) ) ) * - - 9, + 61 + + 99 ) ) ELSE NULL END * CAST ( + 86 AS INTEGER ) * - - NULLIF ( COUNT ( * ), + - 7 * - 87 ) + 45 * 22
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-530
SELECT ALL SUM( ALL + 33 ) DIV - + 95 col0, 97 * - + 42 AS col0
----
0
-4074

skipif mysql # not compatible
query II rowsort label-530
SELECT ALL SUM ( ALL + 33 ) / - + 95 col0, 97 * - + 42 AS col0
----
0
-4074

query I rowsort
SELECT ALL 4 - 78 - + - 71 AS col0
----
-3

query II rowsort
SELECT + + 92, + 96 col2
----
92
96

query I rowsort
SELECT - ( - - 53 ) + - + 49
----
-102

query I rowsort
SELECT 95 * + 65 * - 95
----
-586625

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-536
SELECT - SUM( ALL 95 ) - 43 AS col2
----
-138

skipif mysql # not compatible
query I rowsort label-536
SELECT - SUM ( ALL 95 ) - 43 AS col2
----
-138

query I rowsort
SELECT + 97 * - 81 - - + COALESCE ( - 42, - + 97 ) + + + 36
----
-7863

onlyif mysql # DIV for integer division: 
query I rowsort label-538
SELECT DISTINCT 72 DIV 51
----
1

skipif mysql # not compatible
query I rowsort label-538
SELECT DISTINCT 72 / 51
----
1

query I rowsort
SELECT 18 + - 14 AS col1
----
4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT ALL - - MAX( DISTINCT - + 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-541
SELECT ALL - - MAX ( DISTINCT - + 95 )
----
-95

query I rowsort
SELECT + 48 + + + 13 AS col1
----
61

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

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

query II rowsort
SELECT 47, + 97 + + 25 AS col2
----
47
122

onlyif mysql # aggregate syntax: 
query I rowsort label-545
SELECT CASE ( - 69 ) WHEN - SUM( + 60 ) THEN NULL ELSE - - COUNT( * ) END col0
----
1

skipif mysql # not compatible
query I rowsort label-545
SELECT CASE ( - 69 ) WHEN - SUM ( + 60 ) THEN NULL ELSE - - COUNT ( * ) END col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-546
SELECT ALL + 10 + + + ( + - 59 ) DIV 69
----
10

skipif mysql # not compatible
query I rowsort label-546
SELECT ALL + 10 + + + ( + - 59 ) / 69
----
10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-548
SELECT DISTINCT - MAX( ALL - 89 ) + + ( - ( - - 8 ) ) col2
----
81

skipif mysql # not compatible
query I rowsort label-548
SELECT DISTINCT - MAX ( ALL - 89 ) + + ( - ( - - 8 ) ) col2
----
81

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

skipif mysql # not compatible
query I rowsort label-549
SELECT ALL + 1 + - + COUNT ( ALL + 55 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-550
SELECT - COUNT( * ) * - + 29 * - 28
----
-812

skipif mysql # not compatible
query I rowsort label-550
SELECT - COUNT ( * ) * - + 29 * - 28
----
-812

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

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

query II rowsort
SELECT 7 AS col2, - 83 AS col1
----
7
-83

query II rowsort
SELECT ALL + 2 + + 39, 61 AS col1
----
41
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-554
SELECT - NULLIF ( + - 44, COUNT( * ) ) * + - 49 * - MAX( ALL + 69 ) AS col1, 38 * - 72 * + - 14 + 48 DIV - 35 AS col2
----
148764
38303

skipif mysql # not compatible
query II rowsort label-554
SELECT - NULLIF ( + - 44, COUNT ( * ) ) * + - 49 * - MAX ( ALL + 69 ) AS col1, 38 * - 72 * + - 14 + 48 / - 35 AS col2
----
148764
38303

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-555
SELECT ALL + 75 DIV - + COUNT( DISTINCT - CAST( + 75 AS SIGNED ) ), 27 col2
----
-75
27

skipif mysql # not compatible
query II rowsort label-555
SELECT ALL + 75 / - + COUNT ( DISTINCT - CAST ( + 75 AS INTEGER ) ), 27 col2
----
-75
27

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

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

query II rowsort
SELECT + 45 AS col2, - 64 AS col0
----
45
-64

query I rowsort
SELECT DISTINCT 32 * - 23 - + 84
----
-820

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT ALL + COALESCE ( - 47, + ( + COUNT( * ) ) * 7 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-559
SELECT ALL + COALESCE ( - 47, + ( + COUNT ( * ) ) * 7 ) AS col1
----
-47

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

skipif mysql # not compatible
query I rowsort label-560
SELECT + NULLIF ( COUNT ( * ), - 43 + + - 38 )
----
1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT 7 * - 73 + COUNT( DISTINCT - - 15 ) AS col2
----
-510

skipif mysql # not compatible
query I rowsort label-563
SELECT 7 * - 73 + COUNT ( DISTINCT - - 15 ) AS col2
----
-510

query I rowsort
SELECT + 43 * 49
----
2107

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

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

query II rowsort
SELECT DISTINCT + 89, - 13 AS col1
----
89
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-567
SELECT + - 88 * + - COALESCE ( - 45, COUNT( * ) * 91 ) AS col2
----
-3960

skipif mysql # not compatible
query I rowsort label-567
SELECT + - 88 * + - COALESCE ( - 45, COUNT ( * ) * 91 ) AS col2
----
-3960

query II rowsort
SELECT ALL + - 88 AS col2, - 64
----
-88
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-569
SELECT + COUNT( * ) col1, - 23 + 84 + - 32 * SUM( DISTINCT - 59 )
----
1
1949

skipif mysql # not compatible
query II rowsort label-569
SELECT + COUNT ( * ) col1, - 23 + 84 + - 32 * SUM ( DISTINCT - 59 )
----
1
1949

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-571
SELECT + - COALESCE ( + 82, + + 72 ) DIV 94 * - ( - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-571
SELECT + - COALESCE ( + 82, + + 72 ) / 94 * - ( - COUNT ( * ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-572
SELECT DISTINCT - 99 DIV 63 + - 37 col1
----
-38

skipif mysql # not compatible
query I rowsort label-572
SELECT DISTINCT - 99 / 63 + - 37 col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-573
SELECT + + 61 * + + COUNT( DISTINCT 91 )
----
61

skipif mysql # not compatible
query I rowsort label-573
SELECT + + 61 * + + COUNT ( DISTINCT 91 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-574
SELECT ALL - 50 * + 95 + 57 * + SUM( - 1 ) + + - ( + + 59 )
----
-4866

skipif mysql # not compatible
query I rowsort label-574
SELECT ALL - 50 * + 95 + 57 * + SUM ( - 1 ) + + - ( + + 59 )
----
-4866

query I rowsort
SELECT DISTINCT - 92 * 35
----
-3220

onlyif mysql # aggregate syntax: 
query II rowsort label-576
SELECT - 48 AS col0, MAX( ALL 38 )
----
-48
38

skipif mysql # not compatible
query II rowsort label-576
SELECT - 48 AS col0, MAX ( ALL 38 )
----
-48
38

onlyif mysql # aggregate syntax: 
query I rowsort label-577
SELECT ALL - + 75 * + 75 * - COALESCE ( - - 38, + 13 * - 25, + - 34 ) + - 94 + - 25 + 52 * - 65 * + COUNT( * ) AS col2
----
210251

skipif mysql # not compatible
query I rowsort label-577
SELECT ALL - + 75 * + 75 * - COALESCE ( - - 38, + 13 * - 25, + - 34 ) + - 94 + - 25 + 52 * - 65 * + COUNT ( * ) AS col2
----
210251

query II rowsort
SELECT 11 AS col2, 58 AS col2
----
11
58

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-580
SELECT ALL - 0 + + - COUNT( * ) * + 35 * - CAST( - 67 AS SIGNED )
----
-2345

skipif mysql # not compatible
query I rowsort label-580
SELECT ALL - 0 + + - COUNT ( * ) * + 35 * - CAST ( - 67 AS INTEGER )
----
-2345

query II rowsort
SELECT ALL 1 * + 3, + 10 AS col2
----
3
10

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-583
SELECT - CAST( 19 AS SIGNED ), - MIN( + + 43 ) AS col0
----
-19
-43

skipif mysql # not compatible
query II rowsort label-583
SELECT - CAST ( 19 AS INTEGER ), - MIN ( + + 43 ) AS col0
----
-19
-43

query I rowsort
SELECT DISTINCT + 89 * + - 22
----
-1958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-585
SELECT - ( + - CAST( 85 AS SIGNED ) ) * 36 * - 1 AS col2
----
-3060

skipif mysql # not compatible
query I rowsort label-585
SELECT - ( + - CAST ( 85 AS INTEGER ) ) * 36 * - 1 AS col2
----
-3060

query I rowsort
SELECT ALL + 71 * - 44
----
-3124

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT DISTINCT 29 - SUM( ALL - + 83 ) + + + COUNT( * ) * + COUNT( - 47 ) AS col0
----
113

skipif mysql # not compatible
query I rowsort label-587
SELECT DISTINCT 29 - SUM ( ALL - + 83 ) + + + COUNT ( * ) * + COUNT ( - 47 ) AS col0
----
113

query I rowsort
SELECT ALL NULLIF ( + 78, - 25 * + - 20 + ( + - 94 ) + 7 * 93 * + 42 ) AS col0
----
78

query I rowsort
SELECT + 70 * 86
----
6020

onlyif mysql # aggregate syntax: 
query II rowsort label-590
SELECT + 87 - - - 41, SUM( + 88 ) AS col0
----
46
88

skipif mysql # not compatible
query II rowsort label-590
SELECT + 87 - - - 41, SUM ( + 88 ) AS col0
----
46
88

onlyif mysql # aggregate syntax: 
query I rowsort label-591
SELECT DISTINCT + COALESCE ( + 70, - + 99 + + COUNT( * ), + + 92 * 14 )
----
70

skipif mysql # not compatible
query I rowsort label-591
SELECT DISTINCT + COALESCE ( + 70, - + 99 + + COUNT ( * ), + + 92 * 14 )
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-592
SELECT - + 66 * - 92 * 31 DIV - COUNT( * ) col2
----
-188232

skipif mysql # not compatible
query I rowsort label-592
SELECT - + 66 * - 92 * 31 / - COUNT ( * ) col2
----
-188232

onlyif mysql # aggregate syntax: 
query II rowsort label-593
SELECT - ( + - COUNT( ALL - - NULLIF ( - - 56, - 70 ) ) ) - COUNT( * ) - + 39 + + 42 * - NULLIF ( - COUNT( * ), + - 88 * + 0 ) AS col1, 57
----
3
57

skipif mysql # not compatible
query II rowsort label-593
SELECT - ( + - COUNT ( ALL - - NULLIF ( - - 56, - 70 ) ) ) - COUNT ( * ) - + 39 + + 42 * - NULLIF ( - COUNT ( * ), + - 88 * + 0 ) AS col1, 57
----
3
57

onlyif mysql # DIV for integer division: 
query I rowsort label-594
SELECT - 94 DIV 76 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-594
SELECT - 94 / 76 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-595
SELECT ALL 33 DIV 24
----
1

skipif mysql # not compatible
query I rowsort label-595
SELECT ALL 33 / 24
----
1

query I rowsort
SELECT - 3 - - 93 AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT ALL + - CASE + 80 WHEN + COUNT( * ) THEN - + 9 WHEN - + 13 THEN NULL WHEN + + NULLIF ( - 25, - 23 ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-597
SELECT ALL + - CASE + 80 WHEN + COUNT ( * ) THEN - + 9 WHEN - + 13 THEN NULL WHEN + + NULLIF ( - 25, - 23 ) THEN NULL END AS col1
----
NULL

query I rowsort
SELECT - 47 + 25 + + 23
----
1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-600
SELECT + + MIN( - 9 ) * + CAST( + 10 AS SIGNED ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-600
SELECT + + MIN ( - 9 ) * + CAST ( + 10 AS INTEGER ) AS col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-601
SELECT - + 25 * - 8 + NULLIF ( COUNT( * ), + - 6 ) + - 81
----
120

skipif mysql # not compatible
query I rowsort label-601
SELECT - + 25 * - 8 + NULLIF ( COUNT ( * ), + - 6 ) + - 81
----
120

query I rowsort
SELECT + 52 - + + 22 + - 27 + - - 30
----
33

query I rowsort
SELECT ALL 22 * - 56
----
-1232

query II rowsort
SELECT DISTINCT + 43 + + + 43 AS col2, 17 col1
----
86
17

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-607
SELECT ALL + CAST( NULL AS SIGNED ) + - - 44 / + 5 * - 70 + + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-607
SELECT ALL + CAST ( NULL AS INTEGER ) + - - 44 / + 5 * - 70 + + 89
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-608
SELECT DISTINCT + 51 + 54 + 62 - + - 37 + COUNT( * ) * + CAST( 40 AS SIGNED ) * + 63
----
2724

skipif mysql # not compatible
query I rowsort label-608
SELECT DISTINCT + 51 + 54 + 62 - + - 37 + COUNT ( * ) * + CAST ( 40 AS INTEGER ) * + 63
----
2724

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT DISTINCT + MAX( 35 ) + + 18
----
53

skipif mysql # not compatible
query I rowsort label-609
SELECT DISTINCT + MAX ( 35 ) + + 18
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT ALL ( 42 ) + + 90 + + + COUNT( * ) + - 72 + + 46 AS col2
----
107

skipif mysql # not compatible
query I rowsort label-610
SELECT ALL ( 42 ) + + 90 + + + COUNT ( * ) + - 72 + + 46 AS col2
----
107

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

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

query I rowsort
SELECT ALL - + ( - COALESCE ( + 94, + - 28, + + ( 32 ) + - - 84 - 91 + - 7 ) )
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-613
SELECT - 76 DIV + + 48 - 88 * 43
----
-3785

skipif mysql # not compatible
query I rowsort label-613
SELECT - 76 / + + 48 - 88 * 43
----
-3785

query I rowsort
SELECT 72 + - 73 AS col1
----
-1

query II rowsort
SELECT DISTINCT 14 AS col0, 88 AS col1
----
14
88

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT ALL 30 + 87 - + - 74 * - 12 * - + MIN( DISTINCT - 78 ) * 89 + - 32 - - MIN( - ( - + 4 ) )
----
-6164407

skipif mysql # not compatible
query I rowsort label-616
SELECT ALL 30 + 87 - + - 74 * - 12 * - + MIN ( DISTINCT - 78 ) * 89 + - 32 - - MIN ( - ( - + 4 ) )
----
-6164407

onlyif mysql # aggregate syntax: 
query II rowsort label-617
SELECT 43 * ( NULLIF ( + + MAX( + 66 ), - 53 ) ) AS col0, 2
----
2838
2

skipif mysql # not compatible
query II rowsort label-617
SELECT 43 * ( NULLIF ( + + MAX ( + 66 ), - 53 ) ) AS col0, 2
----
2838
2

query I rowsort
SELECT ALL 48 * - ( 32 ) * - ( 73 )
----
112128

onlyif mysql # aggregate syntax: 
query I rowsort label-619
SELECT CASE + - ( + 83 ) WHEN COUNT( * ) THEN 97 + + 98 WHEN + 77 THEN - 71 - 48 END * 34
----
NULL

skipif mysql # not compatible
query I rowsort label-619
SELECT CASE + - ( + 83 ) WHEN COUNT ( * ) THEN 97 + + 98 WHEN + 77 THEN - 71 - 48 END * 34
----
NULL

query I rowsort
SELECT DISTINCT 83 * + 0 AS col1
----
0

query I rowsort
SELECT DISTINCT 41 * - 1
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-622
SELECT CAST( - + 8 AS SIGNED ) * 57 AS col1, + 56 * NULLIF ( 43, + 76 ) * + 81 - - 52 AS col2
----
-456
195100

skipif mysql # not compatible
query II rowsort label-622
SELECT CAST ( - + 8 AS INTEGER ) * 57 AS col1, + 56 * NULLIF ( 43, + 76 ) * + 81 - - 52 AS col2
----
-456
195100

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

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

query I rowsort
SELECT DISTINCT 47 * - 43 AS col0
----
-2021

onlyif mysql # aggregate syntax: 
query II rowsort label-625
SELECT ALL 97, COALESCE ( + + 73, - COALESCE ( - COUNT( * ), + 53, - 0, + + 77 ) + - + 28 ) + + 97 AS col2
----
97
170

skipif mysql # not compatible
query II rowsort label-625
SELECT ALL 97, COALESCE ( + + 73, - COALESCE ( - COUNT ( * ), + 53, - 0, + + 77 ) + - + 28 ) + + 97 AS col2
----
97
170

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-626
SELECT 3 * - CAST( NULL AS DECIMAL ) * - 56 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-626
SELECT 3 * - CAST ( NULL AS REAL ) * - 56 col0
----
NULL

query I rowsort
SELECT 74 + - 80 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-628
SELECT MAX( DISTINCT - 53 ) - + ( + 44 )
----
-97

skipif mysql # not compatible
query I rowsort label-628
SELECT MAX ( DISTINCT - 53 ) - + ( + 44 )
----
-97

query I rowsort
SELECT DISTINCT 87 * + 89
----
7743

query II rowsort
SELECT ALL 9 AS col0, - 6 + - 2
----
9
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-631
SELECT 93 * - CAST( - 92 AS SIGNED )
----
8556

skipif mysql # not compatible
query I rowsort label-631
SELECT 93 * - CAST ( - 92 AS INTEGER )
----
8556

onlyif mysql # aggregate syntax: 
query I rowsort label-632
SELECT ALL - 10 * + - MAX( ALL - 5 ) + - 52
----
-102

skipif mysql # not compatible
query I rowsort label-632
SELECT ALL - 10 * + - MAX ( ALL - 5 ) + - 52
----
-102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-633
SELECT - 78 DIV - COUNT( * ) + - ( + + 58 ) + - 97 * - COUNT( * ) * + ( + NULLIF ( 26, + + 80 DIV - COUNT( * ) ) )
----
2542

skipif mysql # not compatible
query I rowsort label-633
SELECT - 78 / - COUNT ( * ) + - ( + + 58 ) + - 97 * - COUNT ( * ) * + ( + NULLIF ( 26, + + 80 / - COUNT ( * ) ) )
----
2542

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-634
SELECT 3 * 26 * - - CAST( NULL AS SIGNED ) * 32 + - AVG ( DISTINCT - - 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-634
SELECT 3 * 26 * - - CAST ( NULL AS INTEGER ) * 32 + - AVG ( DISTINCT - - 45 )
----
NULL

query I rowsort
SELECT + + NULLIF ( + 26, + ( - 92 ) )
----
26

query I rowsort
SELECT - - 93 * - - 39 + 36 + 35
----
3698

query I rowsort
SELECT + - 80 col2
----
-80

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-639
SELECT + 28 DIV - 14 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-639
SELECT + 28 / - 14 AS col0
----
-2

query I rowsort
SELECT - 67 * + 46 * 11 col2
----
-33902

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT ALL + - 19 + 38 + + COUNT( * ) col2
----
20

skipif mysql # not compatible
query I rowsort label-642
SELECT ALL + - 19 + 38 + + COUNT ( * ) col2
----
20

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

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

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

skipif mysql # not compatible
query I rowsort label-644
SELECT - 94 / 55
----
-1

query I rowsort
SELECT ALL - - 6 + + ( + 17 )
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-646
SELECT ( + - 35 ) * + + 9, - CAST( NULL AS SIGNED ) AS col0
----
-315
NULL

skipif mysql # not compatible
query II rowsort label-646
SELECT ( + - 35 ) * + + 9, - CAST ( NULL AS INTEGER ) AS col0
----
-315
NULL

query II rowsort
SELECT ALL - 92 AS col0, + 84
----
-92
84

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-649
SELECT CAST( NULL AS SIGNED ) / 32 / - 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-649
SELECT CAST ( NULL AS INTEGER ) / 32 / - 53 AS col2
----
NULL

query II rowsort
SELECT + 28 AS col2, + 72
----
28
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-651
SELECT + CAST( NULL AS SIGNED ) * - NULLIF ( + + 9, + + COUNT( - ( + 0 ) ) * - - CAST( + 71 AS SIGNED ) ) - 47 AS col1, 27 AS col1
----
NULL
27

skipif mysql # not compatible
query II rowsort label-651
SELECT + CAST ( NULL AS INTEGER ) * - NULLIF ( + + 9, + + COUNT ( - ( + 0 ) ) * - - CAST ( + 71 AS INTEGER ) ) - 47 AS col1, 27 AS col1
----
NULL
27

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

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

query I rowsort
SELECT ALL - 88 * + ( - 46 ) AS col1
----
4048

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-654
SELECT ALL - 16 - - 18, COALESCE ( - 48, - 63 * + 2, - 7 + - - CAST( NULL AS SIGNED ) ) + + SUM( DISTINCT - 89 ) * COUNT( * ) DIV + COUNT( * ) AS col2
----
2
-137

skipif mysql # not compatible
query II rowsort label-654
SELECT ALL - 16 - - 18, COALESCE ( - 48, - 63 * + 2, - 7 + - - CAST ( NULL AS INTEGER ) ) + + SUM ( DISTINCT - 89 ) * COUNT ( * ) / + COUNT ( * ) AS col2
----
2
-137

query I rowsort
SELECT 59 * 62 AS col2
----
3658

query I rowsort
SELECT 52 + + - 5 * NULLIF ( - - 12, - 80 ) * + - 2 + + 77 AS col2
----
249

onlyif mysql # aggregate syntax: 
query II rowsort label-657
SELECT COUNT( * ) * + 21 AS col0, - 95 + 37 + - 97 col1
----
21
-155

skipif mysql # not compatible
query II rowsort label-657
SELECT COUNT ( * ) * + 21 AS col0, - 95 + 37 + - 97 col1
----
21
-155

query I rowsort
SELECT 74 * - - 97 AS col0
----
7178

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-659
SELECT COUNT( ALL 92 ) + + - 45 / SUM( DISTINCT - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-659
SELECT COUNT ( ALL 92 ) + + - 45 / SUM ( DISTINCT - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-660
SELECT ALL + 54 DIV - 81 col0
----
0

skipif mysql # not compatible
query I rowsort label-660
SELECT ALL + 54 / - 81 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-661
SELECT - + SUM( + 31 ) col0
----
-31

skipif mysql # not compatible
query I rowsort label-661
SELECT - + SUM ( + 31 ) col0
----
-31

query II rowsort
SELECT 15 * + 24 AS col1, 61
----
360
61

query I rowsort
SELECT ALL 55 + + NULLIF ( + 91, + 23 + + - 79 )
----
146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-664
SELECT - 98 * + CAST( 84 AS SIGNED )
----
-8232

skipif mysql # not compatible
query I rowsort label-664
SELECT - 98 * + CAST ( 84 AS INTEGER )
----
-8232

query I rowsort
SELECT 48 - + + ( 53 ) * - + 76
----
4076

onlyif mysql # aggregate syntax: 
query I rowsort label-666
SELECT DISTINCT - COALESCE ( ( 68 ), - + 17, + COUNT( * ) ) col0
----
-68

skipif mysql # not compatible
query I rowsort label-666
SELECT DISTINCT - COALESCE ( ( 68 ), - + 17, + COUNT ( * ) ) col0
----
-68

query I rowsort
SELECT + + 48 * - + 64 AS col1
----
-3072

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT ALL - MAX( - + ( - 73 ) ) * 51 * + - ( + - 25 ) * + + 39 * - + COUNT( - 75 ) * 95 + 94 + - - COUNT( * ) - COUNT( * ) + COUNT( * ) + - SUM( - 73 )
----
344843043

skipif mysql # not compatible
query I rowsort label-668
SELECT ALL - MAX ( - + ( - 73 ) ) * 51 * + - ( + - 25 ) * + + 39 * - + COUNT ( - 75 ) * 95 + 94 + - - COUNT ( * ) - COUNT ( * ) + COUNT ( * ) + - SUM ( - 73 )
----
344843043

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT + - 57 - - COUNT( * ) + - 97 AS col1
----
-153

skipif mysql # not compatible
query I rowsort label-669
SELECT + - 57 - - COUNT ( * ) + - 97 AS col1
----
-153

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-671
SELECT + - COUNT( * ) + 27 DIV 97
----
-1

skipif mysql # not compatible
query I rowsort label-671
SELECT + - COUNT ( * ) + 27 / 97
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT ALL + - NULLIF ( + + SUM( + - 35 ), + + 20 ) * 56 - 87 AS col1
----
1873

skipif mysql # not compatible
query I rowsort label-672
SELECT ALL + - NULLIF ( + + SUM ( + - 35 ), + + 20 ) * 56 - 87 AS col1
----
1873

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-674
SELECT - COUNT( * ) * 23 DIV 83 * MAX( DISTINCT + + 80 )
----
0

skipif mysql # not compatible
query I rowsort label-674
SELECT - COUNT ( * ) * 23 / 83 * MAX ( DISTINCT + + 80 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-675
SELECT + COUNT( + 29 ) * + - COUNT( * ) + - 68
----
-69

skipif mysql # not compatible
query I rowsort label-675
SELECT + COUNT ( + 29 ) * + - COUNT ( * ) + - 68
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT - + 41 - + - NULLIF ( + - COUNT( * ), 19 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-676
SELECT - + 41 - + - NULLIF ( + - COUNT ( * ), 19 ) AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-677
SELECT ALL COALESCE ( - + ( + 80 ), 36 * 64 + - + 61 - - 24 * - 7 ) * - COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-677
SELECT ALL COALESCE ( - + ( + 80 ), 36 * 64 + - + 61 - - 24 * - 7 ) * - COUNT ( * )
----
80

query I rowsort
SELECT - 89 + + 31 AS col1
----
-58

query I rowsort
SELECT - 6 * + 27 AS col2
----
-162

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-680
SELECT ALL + COUNT( * ) AS col1, - 77 DIV - 10 AS col2
----
1
7

skipif mysql # not compatible
query II rowsort label-680
SELECT ALL + COUNT ( * ) AS col1, - 77 / - 10 AS col2
----
1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT - ( MAX( ALL - - ( 70 ) ) ) + + - 99
----
-169

skipif mysql # not compatible
query I rowsort label-681
SELECT - ( MAX ( ALL - - ( 70 ) ) ) + + - 99
----
-169

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

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

query I rowsort
SELECT DISTINCT NULLIF ( 54, + - 82 - - 96 )
----
54

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-686
SELECT DISTINCT - 67 * + MIN( + 72 ) col2
----
-4824

skipif mysql # not compatible
query I rowsort label-686
SELECT DISTINCT - 67 * + MIN ( + 72 ) col2
----
-4824

onlyif mysql # aggregate syntax: 
query II rowsort label-687
SELECT DISTINCT ( + + COUNT( * ) ) + 74, - 37 * - ( + + 89 ) AS col2
----
75
3293

skipif mysql # not compatible
query II rowsort label-687
SELECT DISTINCT ( + + COUNT ( * ) ) + 74, - 37 * - ( + + 89 ) AS col2
----
75
3293

query II rowsort
SELECT 38 AS col2, - 49 AS col0
----
38
-49

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

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

query I rowsort
SELECT + 86 + + 82 + + + 23
----
191

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-691
SELECT + MAX( - + 6 ) DIV - MIN( ALL - - 94 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-691
SELECT + MAX ( - + 6 ) / - MIN ( ALL - - 94 ) AS col1
----
0

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

query I rowsort
SELECT - + 52 + - 11 AS col1
----
-63

query I rowsort
SELECT + + 47 - - 68 AS col0
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-695
SELECT DISTINCT 84 + - - MIN( ALL - 17 ) + - 66 + - + CAST( NULL AS SIGNED ) - 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-695
SELECT DISTINCT 84 + - - MIN ( ALL - 17 ) + - 66 + - + CAST ( NULL AS INTEGER ) - 72 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-696
SELECT DISTINCT + + 98 DIV - 39
----
-2

skipif mysql # not compatible
query I rowsort label-696
SELECT DISTINCT + + 98 / - 39
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-697
SELECT ALL COUNT( * ) + COUNT( * ) + + - MIN( DISTINCT 22 ) * + 3 * + 47, + 50 AS col1
----
-3100
50

skipif mysql # not compatible
query II rowsort label-697
SELECT ALL COUNT ( * ) + COUNT ( * ) + + - MIN ( DISTINCT 22 ) * + 3 * + 47, + 50 AS col1
----
-3100
50

onlyif mysql # aggregate syntax: 
query I rowsort label-698
SELECT + - 28 * - + 50 + + + COUNT( - + 53 ) AS col0
----
1401

skipif mysql # not compatible
query I rowsort label-698
SELECT + - 28 * - + 50 + + + COUNT ( - + 53 ) AS col0
----
1401

query I rowsort
SELECT ALL + 22 * + 88 + + - 7 - + 51
----
1878

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-700
SELECT DISTINCT - + COUNT( * ) DIV 23 + + COUNT( - 98 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-700
SELECT DISTINCT - + COUNT ( * ) / 23 + + COUNT ( - 98 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-701
SELECT SUM( + - 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-701
SELECT SUM ( + - 93 )
----
-93

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

query I rowsort
SELECT - - 25 * 34
----
850

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

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

query I rowsort
SELECT + 55 * - 85 + 94
----
-4581

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-706
SELECT + - COALESCE ( + 16, + COUNT( * ) * - 47 * - 83, + 74 * MIN( + - 42 ) - + + CAST( 29 AS SIGNED ) )
----
-16

skipif mysql # not compatible
query I rowsort label-706
SELECT + - COALESCE ( + 16, + COUNT ( * ) * - 47 * - 83, + 74 * MIN ( + - 42 ) - + + CAST ( 29 AS INTEGER ) )
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-707
SELECT + 56 * + - ( + 72 ) DIV 71
----
-56

skipif mysql # not compatible
query I rowsort label-707
SELECT + 56 * + - ( + 72 ) / 71
----
-56

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

query I rowsort
SELECT + 43 * - - 92 + + 1 * ( + 91 ) - - 79
----
4126

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

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT ALL - COUNT( * ) * 90 - + 88 + + 16 + - + 19 * 1
----
-181

skipif mysql # not compatible
query I rowsort label-711
SELECT ALL - COUNT ( * ) * 90 - + 88 + + 16 + - + 19 * 1
----
-181

query I rowsort
SELECT ALL 1 * - - 16
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT ALL 65 * - + 52 * - MIN( ALL 88 )
----
297440

skipif mysql # not compatible
query I rowsort label-713
SELECT ALL 65 * - + 52 * - MIN ( ALL 88 )
----
297440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-714
SELECT - CAST( COUNT( * ) AS SIGNED ) * - - 42 + - 77
----
-119

skipif mysql # not compatible
query I rowsort label-714
SELECT - CAST ( COUNT ( * ) AS INTEGER ) * - - 42 + - 77
----
-119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-715
SELECT SUM( + 52 ) * + CASE COALESCE ( + 44, + CAST( NULL AS SIGNED ) * + 14 + + - 20 * + 5 + - 98 + + + MAX( 19 ) + + 9 * + 93 ) WHEN - 99 + - 51 * 56 THEN NULL ELSE - 48 END - 88
----
-2584

skipif mysql # not compatible
query I rowsort label-715
SELECT SUM ( + 52 ) * + CASE COALESCE ( + 44, + CAST ( NULL AS INTEGER ) * + 14 + + - 20 * + 5 + - 98 + + + MAX ( 19 ) + + 9 * + 93 ) WHEN - 99 + - 51 * 56 THEN NULL ELSE - 48 END - 88
----
-2584

query I rowsort
SELECT ALL 56 * - 89 * + - 50 + + 69 + + + 71 col1
----
249340

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT ALL 29 * + - COUNT( * ) * 67
----
-1943

skipif mysql # not compatible
query I rowsort label-717
SELECT ALL 29 * + - COUNT ( * ) * 67
----
-1943

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-718
SELECT + CAST( NULL AS SIGNED ) / - 87 * - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-718
SELECT + CAST ( NULL AS INTEGER ) / - 87 * - 64
----
NULL

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

query I rowsort
SELECT CASE - 47 WHEN NULLIF ( - NULLIF ( + + ( + 89 ), - 22 / - 53 ), AVG ( - - 34 ) ) * - 58 THEN NULL ELSE ( - + 83 ) END AS col1
----
-83

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

skipif mysql # not compatible
query II rowsort label-721
SELECT - 95, COUNT ( * ) AS col0
----
-95
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-722
SELECT DISTINCT 68 * + 4 * + NULLIF ( + COUNT( * ), - 46 * - 91 ) * - ( - + 22 ) + - 57 * + CASE 38 WHEN - 83 * + - CAST( NULL AS SIGNED ) THEN + - 92 WHEN - 96 + 92 - 59 * - 47 + 40 * 0 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-722
SELECT DISTINCT 68 * + 4 * + NULLIF ( + COUNT ( * ), - 46 * - 91 ) * - ( - + 22 ) + - 57 * + CASE 38 WHEN - 83 * + - CAST ( NULL AS INTEGER ) THEN + - 92 WHEN - 96 + 92 - 59 * - 47 + 40 * 0 THEN NULL ELSE NULL END AS col2
----
NULL

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

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

query I rowsort
SELECT - 87 * + - 83
----
7221

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-725
SELECT - 45 - + 26 + - 14 + SUM( - 51 ) + + 6 DIV + - 11 * + 85 AS col1
----
-136

skipif mysql # not compatible
query I rowsort label-725
SELECT - 45 - + 26 + - 14 + SUM ( - 51 ) + + 6 / + - 11 * + 85 AS col1
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-726
SELECT ALL + COUNT( * ) * 59 + - - 34
----
93

skipif mysql # not compatible
query I rowsort label-726
SELECT ALL + COUNT ( * ) * 59 + - - 34
----
93

query II rowsort
SELECT 74, - ( + 3 ) * + - 86 * + 93 AS col1
----
74
23994

query I rowsort
SELECT + 20 * + 43
----
860

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-730
SELECT ALL + ( - 9 ) * + - COALESCE ( - + CASE + 38 WHEN - 93 THEN + CAST( - 61 AS SIGNED ) + + - COUNT( * ) + + 60 WHEN - CASE 93 WHEN 39 * 60 / + CAST( NULL AS SIGNED ) - + 34 * + 6 THEN + - 22 ELSE + - 31 * - ( - COUNT( * ) ) END THEN NULL END, 64 * - 61 ) AS col1
----
-35136

skipif mysql # not compatible
query I rowsort label-730
SELECT ALL + ( - 9 ) * + - COALESCE ( - + CASE + 38 WHEN - 93 THEN + CAST ( - 61 AS INTEGER ) + + - COUNT ( * ) + + 60 WHEN - CASE 93 WHEN 39 * 60 / + CAST ( NULL AS INTEGER ) - + 34 * + 6 THEN + - 22 ELSE + - 31 * - ( - COUNT ( * ) ) END THEN NULL END, 64 * - 61 ) AS col1
----
-35136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-731
SELECT ALL + 26 * - 16 - - SUM( - 43 ) DIV - 44 + + 49 + - NULLIF ( - 3, - CAST( NULL AS SIGNED ) ) * - + 76 AS col1
----
-595

skipif mysql # not compatible
query I rowsort label-731
SELECT ALL + 26 * - 16 - - SUM ( - 43 ) / - 44 + + 49 + - NULLIF ( - 3, - CAST ( NULL AS INTEGER ) ) * - + 76 AS col1
----
-595

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-732
SELECT ALL - - ( + COALESCE ( - + 2, + - 93, + 94 DIV + COALESCE ( COUNT( * ), - + 2 ) * + 96 + 98 + + + 4 ) ) - - - 5
----
-7

skipif mysql # not compatible
query I rowsort label-732
SELECT ALL - - ( + COALESCE ( - + 2, + - 93, + 94 / + COALESCE ( COUNT ( * ), - + 2 ) * + 96 + 98 + + + 4 ) ) - - - 5
----
-7

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-734
SELECT + 36 - + + ( + + COUNT( * ) ) DIV - + 36
----
36

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

query I rowsort
SELECT + 10 * 41 AS col1
----
410

query II rowsort
SELECT ALL - + ( 12 ) AS col0, 32
----
-12
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-737
SELECT + + 71 DIV + + COALESCE ( 67, + 42 ) + - + NULLIF ( SUM( ALL - 24 ), 96 + - 30 - 80 ) * - 89 * - COALESCE ( + - 93, - + 35, + - 54, + 1 * 25 * ( COUNT( - 16 ) ) ) + + 84 * + - 3 - + 20 AS col1
----
-198919

skipif mysql # not compatible
query I rowsort label-737
SELECT + + 71 / + + COALESCE ( 67, + 42 ) + - + NULLIF ( SUM ( ALL - 24 ), 96 + - 30 - 80 ) * - 89 * - COALESCE ( + - 93, - + 35, + - 54, + 1 * 25 * ( COUNT ( - 16 ) ) ) + + 84 * + - 3 - + 20 AS col1
----
-198919

onlyif mysql # DIV for integer division: 
query I rowsort label-738
SELECT ALL - + 28 DIV - 23
----
1

skipif mysql # not compatible
query I rowsort label-738
SELECT ALL - + 28 / - 23
----
1

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

onlyif mysql # aggregate syntax: 
query II rowsort label-740
SELECT + - 65 AS col1, 29 - - 70 - 14 * ( 9 ) + 14 * COUNT( DISTINCT - 83 ) AS col2
----
-65
-13

skipif mysql # not compatible
query II rowsort label-740
SELECT + - 65 AS col1, 29 - - 70 - 14 * ( 9 ) + 14 * COUNT ( DISTINCT - 83 ) AS col2
----
-65
-13

query I rowsort
SELECT ALL 77 * - 20 AS col0
----
-1540

query I rowsort
SELECT + 53 * + 91 - + 21 + + 45 * - 7 AS col1
----
4487

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

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

query I rowsort
SELECT 49 * - - ( - 61 )
----
-2989

query I rowsort
SELECT 52 * + 76 * 72 * - + 64
----
-18210816

onlyif mysql # aggregate syntax: 
query I rowsort label-746
SELECT CASE 58 WHEN - CASE + - 16 WHEN - 20 THEN - 36 END THEN 92 WHEN + 77 THEN + 73 ELSE NULL END * COUNT( * ) + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-746
SELECT CASE 58 WHEN - CASE + - 16 WHEN - 20 THEN - 36 END THEN 92 WHEN + 77 THEN + 73 ELSE NULL END * COUNT ( * ) + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-747
SELECT DISTINCT 24 * - + 32 AS col1, MAX( DISTINCT + 23 ) * - + ( - 55 ) AS col1
----
-768
1265

skipif mysql # not compatible
query II rowsort label-747
SELECT DISTINCT 24 * - + 32 AS col1, MAX ( DISTINCT + 23 ) * - + ( - 55 ) AS col1
----
-768
1265

onlyif mysql # aggregate syntax: 
query I rowsort label-748
SELECT MIN( + 5 ) + + + 14
----
19

skipif mysql # not compatible
query I rowsort label-748
SELECT MIN ( + 5 ) + + + 14
----
19

query I rowsort
SELECT DISTINCT + 67 * + 78 * + 88
----
459888

query I rowsort
SELECT + 2 * + 2 + + 90 - - 82
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT ALL NULLIF ( 34, - + ( + MAX( ALL - + 45 ) ) ) + 23 + - + 90
----
-33

skipif mysql # not compatible
query I rowsort label-751
SELECT ALL NULLIF ( 34, - + ( + MAX ( ALL - + 45 ) ) ) + 23 + - + 90
----
-33

query I rowsort
SELECT ALL 23 + 43
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-753
SELECT ALL 82 + + 15 + - 58 DIV - ( + ( - 41 ) ) col2
----
96

skipif mysql # not compatible
query I rowsort label-753
SELECT ALL 82 + + 15 + - 58 / - ( + ( - 41 ) ) col2
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-754
SELECT ALL + CASE + + 19 WHEN - 5 THEN COUNT( * ) DIV - 67 ELSE + 19 DIV 20 END + - + 29
----
-29

skipif mysql # not compatible
query I rowsort label-754
SELECT ALL + CASE + + 19 WHEN - 5 THEN COUNT ( * ) / - 67 ELSE + 19 / 20 END + - + 29
----
-29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-756
SELECT 95 * + SUM( + 93 ) + 75
----
8910

skipif mysql # not compatible
query I rowsort label-756
SELECT 95 * + SUM ( + 93 ) + 75
----
8910

query I rowsort
SELECT 32 + - + 44 + 13 * + 22 AS col1
----
274

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-758
SELECT 3 * - NULLIF ( - 50, - 68 + - 75 / ( - - CAST( NULL AS SIGNED ) ) * + 56 + + CAST( + COUNT( * ) AS SIGNED ) ) * 33
----
4950

skipif mysql # not compatible
query I rowsort label-758
SELECT 3 * - NULLIF ( - 50, - 68 + - 75 / ( - - CAST ( NULL AS INTEGER ) ) * + 56 + + CAST ( + COUNT ( * ) AS INTEGER ) ) * 33
----
4950

query I rowsort
SELECT 9 + 93
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-760
SELECT DISTINCT - ( 75 ) * - + 30 DIV - + ( + 30 ) + + 37 * NULLIF ( - 94, + + COUNT( * ) )
----
-3553

skipif mysql # not compatible
query I rowsort label-760
SELECT DISTINCT - ( 75 ) * - + 30 / - + ( + 30 ) + + 37 * NULLIF ( - 94, + + COUNT ( * ) )
----
-3553

onlyif mysql # DIV for integer division: 
query II rowsort label-761
SELECT ALL + 55 * + - 37 AS col2, + 37 DIV - 18
----
-2035
-2

skipif mysql # not compatible
query II rowsort label-761
SELECT ALL + 55 * + - 37 AS col2, + 37 / - 18
----
-2035
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-762
SELECT NULLIF ( 35, COUNT( * ) ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-762
SELECT NULLIF ( 35, COUNT ( * ) ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-763
SELECT DISTINCT + 64 - + - 83 + - MIN( + 5 ) * 76, 72 * + 5 * - 53 * + - 16 col0
----
-233
305280

skipif mysql # not compatible
query II rowsort label-763
SELECT DISTINCT + 64 - + - 83 + - MIN ( + 5 ) * 76, 72 * + 5 * - 53 * + - 16 col0
----
-233
305280

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

query I rowsort
SELECT 72 * - 54
----
-3888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-766
SELECT + 67 + - NULLIF ( - CASE + + 32 WHEN ( - + 35 ) THEN - CAST( - 64 AS SIGNED ) * + + 16 / - 77 ELSE NULL END, + 69 + - 70 + - + COUNT( * ) - ( - 88 ) * + 50 / + ( + 96 ) ) * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-766
SELECT + 67 + - NULLIF ( - CASE + + 32 WHEN ( - + 35 ) THEN - CAST ( - 64 AS INTEGER ) * + + 16 / - 77 ELSE NULL END, + 69 + - 70 + - + COUNT ( * ) - ( - 88 ) * + 50 / + ( + 96 ) ) * + COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT + 59 AS col2, - 26
----
59
-26

query II rowsort
SELECT + 62 AS col0, - 81
----
62
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-769
SELECT 62 DIV 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-769
SELECT 62 / 73 AS col2
----
0

query I rowsort
SELECT ALL 5 * - 99 + 16 + + 22
----
-457

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-771
SELECT ALL - ( - COALESCE ( + + 32, - - 6 * + 4 * - 79 + - + COUNT( CAST( NULL AS SIGNED ) ) ) ) AS col1, + 68
----
32
68

skipif mysql # not compatible
query II rowsort label-771
SELECT ALL - ( - COALESCE ( + + 32, - - 6 * + 4 * - 79 + - + COUNT ( CAST ( NULL AS INTEGER ) ) ) ) AS col1, + 68
----
32
68

onlyif mysql # aggregate syntax: 
query I rowsort label-772
SELECT DISTINCT MIN( ALL + 61 ) * + COUNT( * ) - - + 48 + + + 53 AS col2
----
162

skipif mysql # not compatible
query I rowsort label-772
SELECT DISTINCT MIN ( ALL + 61 ) * + COUNT ( * ) - - + 48 + + + 53 AS col2
----
162

query II rowsort
SELECT + 80 col1, + 11
----
80
11

query I rowsort
SELECT 13 * - 95
----
-1235

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-775
SELECT ALL - COUNT( ALL - 61 ) * + 13, 74 * + 31 * 11 + - 2 + - CAST( 79 AS SIGNED ) AS col1
----
-13
25153

skipif mysql # not compatible
query II rowsort label-775
SELECT ALL - COUNT ( ALL - 61 ) * + 13, 74 * + 31 * 11 + - 2 + - CAST ( 79 AS INTEGER ) AS col1
----
-13
25153

onlyif mysql # aggregate syntax: 
query I rowsort label-776
SELECT ( - MIN( - 86 ) ) * + - NULLIF ( - + 68, - 35 ) + 55 AS col2
----
5903

skipif mysql # not compatible
query I rowsort label-776
SELECT ( - MIN ( - 86 ) ) * + - NULLIF ( - + 68, - 35 ) + 55 AS col2
----
5903

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-777
SELECT DISTINCT ( NULLIF ( + + ( + - CASE + 74 WHEN 55 * 30 + - 46 * - - COUNT( * ) THEN + - 45 WHEN + 24 + - 63 + - - 93 + + - 1 + CAST( NULL AS SIGNED ) * + + COUNT( 81 ) THEN - COUNT( * ) END ), 45 ) ) * - - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-777
SELECT DISTINCT ( NULLIF ( + + ( + - CASE + 74 WHEN 55 * 30 + - 46 * - - COUNT ( * ) THEN + - 45 WHEN + 24 + - 63 + - - 93 + + - 1 + CAST ( NULL AS INTEGER ) * + + COUNT ( 81 ) THEN - COUNT ( * ) END ), 45 ) ) * - - 84
----
NULL

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

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

query I rowsort
SELECT + 40 * - 36
----
-1440

query I rowsort
SELECT - 10 - + + 32 - - - 8 AS col0
----
-50

query I rowsort
SELECT DISTINCT - 19 * - 10 AS col0
----
190

query II rowsort
SELECT DISTINCT 62, 30 AS col1
----
62
30

query I rowsort
SELECT - - 46 + - 83
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-784
SELECT ALL - CASE 93 WHEN 25 THEN - 23 WHEN + - COUNT( * ) THEN 45 END AS col2, 97
----
NULL
97

skipif mysql # not compatible
query II rowsort label-784
SELECT ALL - CASE 93 WHEN 25 THEN - 23 WHEN + - COUNT ( * ) THEN 45 END AS col2, 97
----
NULL
97

query I rowsort
SELECT + + CASE 91 WHEN + - 49 THEN 88 WHEN - 27 THEN 72 ELSE NULL END - + 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-786
SELECT + 65 * ( - - COUNT( * ) ) + + 38 * - + ( + - 68 ) * + COUNT( DISTINCT - - 15 ) - - 8 AS col2
----
2657

skipif mysql # not compatible
query I rowsort label-786
SELECT + 65 * ( - - COUNT ( * ) ) + + 38 * - + ( + - 68 ) * + COUNT ( DISTINCT - - 15 ) - - 8 AS col2
----
2657

query II rowsort
SELECT ALL 52 AS col1, 98
----
52
98

onlyif mysql # aggregate syntax: 
query I rowsort label-788
SELECT - SUM( - 88 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-788
SELECT - SUM ( - 88 ) AS col1
----
88

query I rowsort
SELECT + 22 + + 71 col2
----
93

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

skipif mysql # not compatible
query I rowsort label-790
SELECT ALL + 83 * - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 97 AS col1, 5
----
97
5

query I rowsort
SELECT ALL NULLIF ( + + 99, - + 67 ) col0
----
99

query II rowsort
SELECT - 31 col0, + 91
----
-31
91

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

skipif mysql # not compatible
query II rowsort label-794
SELECT - + COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER ) AS col1
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-795
SELECT - + COUNT( - ( + + 16 ) ) + - - COUNT( * ) * - 6 * - 74 * - 10 * + 68
----
-301921

skipif mysql # not compatible
query I rowsort label-795
SELECT - + COUNT ( - ( + + 16 ) ) + - - COUNT ( * ) * - 6 * - 74 * - 10 * + 68
----
-301921

query I rowsort
SELECT + 11 * + + 77 * - - 98 * - - 99 * + - 92 col1
----
-756018648

onlyif mysql # aggregate syntax: 
query I rowsort label-797
SELECT + COUNT( * ) - - NULLIF ( + ( + + 2 ), + 6 * 1 + - 9 + + - 37 / - - 57 * + - 21 ) + + COUNT( * ) - - 63 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-797
SELECT + COUNT ( * ) - - NULLIF ( + ( + + 2 ), + 6 * 1 + - 9 + + - 37 / - - 57 * + - 21 ) + + COUNT ( * ) - - 63 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-798
SELECT ALL + 94 + + 76 + + COUNT( * ) + + 0 * + + 66
----
171

skipif mysql # not compatible
query I rowsort label-798
SELECT ALL + 94 + + 76 + + COUNT ( * ) + + 0 * + + 66
----
171

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-799
SELECT DISTINCT - 39 + + COALESCE ( - 9, + 50 * + - 35 * + + 8 DIV + + 81 + - - COALESCE ( - 99, + 44 ) + + + 15 + + + 7 + + 98 + + - 42 * - 93 * - - 80, + + COUNT( * ) ) AS col0, - 6 + + 69 AS col1
----
-48
63

skipif mysql # not compatible
query II rowsort label-799
SELECT DISTINCT - 39 + + COALESCE ( - 9, + 50 * + - 35 * + + 8 / + + 81 + - - COALESCE ( - 99, + 44 ) + + + 15 + + + 7 + + 98 + + - 42 * - 93 * - - 80, + + COUNT ( * ) ) AS col0, - 6 + + 69 AS col1
----
-48
63

onlyif mysql # DIV for integer division: 
query I rowsort label-800
SELECT DISTINCT 94 DIV 53 + 15 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-800
SELECT DISTINCT 94 / 53 + 15 AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-801
SELECT ( + CASE + + COUNT( * ) WHEN - - 83 + + - 59 THEN - ( 42 ) WHEN - NULLIF ( + + 43, + 57 ) THEN NULL WHEN + 89 - - COUNT( * ) * - - 53 * - ( + 91 ) * 4 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-801
SELECT ( + CASE + + COUNT ( * ) WHEN - - 83 + + - 59 THEN - ( 42 ) WHEN - NULLIF ( + + 43, + 57 ) THEN NULL WHEN + 89 - - COUNT ( * ) * - - 53 * - ( + 91 ) * 4 THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-802
SELECT - 94 - + 62 col0, MIN( ALL + + 64 )
----
-156
64

skipif mysql # not compatible
query II rowsort label-802
SELECT - 94 - + 62 col0, MIN ( ALL + + 64 )
----
-156
64

query I rowsort
SELECT ALL - 22 * + 9 AS col0
----
-198

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-804
SELECT - ( - - CAST( - - 10 AS DECIMAL ) ) * - - 43 / - 39 + - - CAST( NULL AS SIGNED ) + - - 34 + CAST( NULL AS SIGNED ) / - + 11 * - + 55 * - - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-804
SELECT - ( - - CAST ( - - 10 AS REAL ) ) * - - 43 / - 39 + - - CAST ( NULL AS INTEGER ) + - - 34 + CAST ( NULL AS INTEGER ) / - + 11 * - + 55 * - - 7
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-806
SELECT 31 DIV - 49 + 75 + 76 + - 19 AS col1
----
132

skipif mysql # not compatible
query I rowsort label-806
SELECT 31 / - 49 + 75 + 76 + - 19 AS col1
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT - COUNT( * ) + 34
----
33

skipif mysql # not compatible
query I rowsort label-807
SELECT - COUNT ( * ) + 34
----
33

query I rowsort
SELECT ALL + ( + + 84 ) AS col0
----
84

query I rowsort
SELECT - 34 + + - 81 * + 71
----
-5785

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-810
SELECT COALESCE ( - 92, + 13 DIV COUNT( * ) )
----
-92

skipif mysql # not compatible
query I rowsort label-810
SELECT COALESCE ( - 92, + 13 / COUNT ( * ) )
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-811
SELECT NULLIF ( - 83, + NULLIF ( - CASE - CAST( 67 AS SIGNED ) WHEN + 17 THEN - 10 ELSE NULL END, 64 - - - 18 + - 55 ) ) col2
----
-83

skipif mysql # not compatible
query I rowsort label-811
SELECT NULLIF ( - 83, + NULLIF ( - CASE - CAST ( 67 AS INTEGER ) WHEN + 17 THEN - 10 ELSE NULL END, 64 - - - 18 + - 55 ) ) col2
----
-83

query I rowsort
SELECT DISTINCT + COALESCE ( + 54, - + 34 * + 0 + - + 89, 2 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-813
SELECT DISTINCT + MAX( DISTINCT + - 12 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-813
SELECT DISTINCT + MAX ( DISTINCT + - 12 ) AS col1
----
-12

query I rowsort
SELECT ALL 75 * - ( - - 93 )
----
-6975

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-817
SELECT + CAST( NULL AS DECIMAL ) / + 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-817
SELECT + CAST ( NULL AS REAL ) / + 26 AS col1
----
NULL

query I rowsort
SELECT ALL - 14 * 49
----
-686

onlyif mysql # aggregate syntax: 
query II rowsort label-819
SELECT + - COUNT( * ) * ( + 94 ) * + 31 AS col0, COALESCE ( + 51, 43 - - 73 + + - COUNT( * ) + 56 ) AS col2
----
-2914
51

skipif mysql # not compatible
query II rowsort label-819
SELECT + - COUNT ( * ) * ( + 94 ) * + 31 AS col0, COALESCE ( + 51, 43 - - 73 + + - COUNT ( * ) + 56 ) AS col2
----
-2914
51

query I rowsort
SELECT - + 92 + - 72 AS col2
----
-164

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

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

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

skipif mysql # not compatible
query I rowsort label-822
SELECT ALL CAST ( + ( + MIN ( + 51 ) ) AS INTEGER )
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-823
SELECT - - 18 + 61 AS col2, COUNT( * ) + + 74 AS col0
----
79
75

skipif mysql # not compatible
query II rowsort label-823
SELECT - - 18 + 61 AS col2, COUNT ( * ) + + 74 AS col0
----
79
75

onlyif mysql # aggregate syntax: 
query II rowsort label-824
SELECT ALL - MAX( 60 ) * ( - - 47 ), 86 AS col0
----
-2820
86

skipif mysql # not compatible
query II rowsort label-824
SELECT ALL - MAX ( 60 ) * ( - - 47 ), 86 AS col0
----
-2820
86

query I rowsort
SELECT + + 43 * 87 AS col0
----
3741

onlyif mysql # aggregate syntax: 
query I rowsort label-826
SELECT ALL 69 + + - COALESCE ( - 52, + 58 + - + COUNT( * ) ) + + 7 AS col2
----
128

skipif mysql # not compatible
query I rowsort label-826
SELECT ALL 69 + + - COALESCE ( - 52, + 58 + - + COUNT ( * ) ) + + 7 AS col2
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-827
SELECT NULLIF ( + COUNT( * ), AVG ( - 88 ) * COALESCE ( 16, + 3 * + + 63 ) )
----
1

skipif mysql # not compatible
query I rowsort label-827
SELECT NULLIF ( + COUNT ( * ), AVG ( - 88 ) * COALESCE ( 16, + 3 * + + 63 ) )
----
1

query I rowsort
SELECT + 52 + - 81 AS col1
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-829
SELECT DISTINCT + 29 + - ( - - 66 ) DIV + 71
----
29

skipif mysql # not compatible
query I rowsort label-829
SELECT DISTINCT + 29 + - ( - - 66 ) / + 71
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-830
SELECT DISTINCT MAX( ALL + 29 ) + 81 AS col2
----
110

skipif mysql # not compatible
query I rowsort label-830
SELECT DISTINCT MAX ( ALL + 29 ) + 81 AS col2
----
110

onlyif mysql # aggregate syntax: 
query II rowsort label-831
SELECT - COUNT( - 89 ), - 18 AS col0
----
-1
-18

skipif mysql # not compatible
query II rowsort label-831
SELECT - COUNT ( - 89 ), - 18 AS col0
----
-1
-18

query I rowsort
SELECT ALL + 26 + - 78 AS col2
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-833
SELECT DISTINCT COUNT( 4 ) + - COUNT( * ), + ( 76 ) AS col1
----
0
76

skipif mysql # not compatible
query II rowsort label-833
SELECT DISTINCT COUNT ( 4 ) + - COUNT ( * ), + ( 76 ) AS col1
----
0
76

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

query I rowsort
SELECT ALL + ( - + 78 ) + - 92 + - 60 AS col0
----
-230

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

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

query I rowsort
SELECT + 70 + + - 10 + - 6 AS col2
----
54

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

onlyif mysql # DIV for integer division: 
query I rowsort label-839
SELECT ( 71 ) DIV 26 col0
----
2

skipif mysql # not compatible
query I rowsort label-839
SELECT ( 71 ) / 26 col0
----
2

query I rowsort
SELECT 29 * + - 90
----
-2610

query I rowsort
SELECT 3 * 64
----
192

query I rowsort
SELECT 38 * 6
----
228

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query III rowsort label-843
SELECT 87 AS col0, CASE ( + ( + 56 ) ) WHEN 53 * 38 * + + 66 / - + 59 + - COUNT( * ) - MAX( + - 49 ) * ( - + 58 ) THEN NULL WHEN CAST( NULL AS SIGNED ) * 68 THEN - ( CAST( NULL AS SIGNED ) ) + + MIN( 18 ) * 76 * - 80 + - + 12 END, + CASE - 42 WHEN + 99 + + 62 * + - CAST( NULL AS DECIMAL ) THEN 81 WHEN 86 * - ( - 43 ) * + COUNT( * ) THEN NULL ELSE NULL END - + ( + 41 ) + - COUNT( * ) * - 51
----
87
NULL
NULL

skipif mysql # not compatible
query III rowsort label-843
SELECT 87 AS col0, CASE ( + ( + 56 ) ) WHEN 53 * 38 * + + 66 / - + 59 + - COUNT ( * ) - MAX ( + - 49 ) * ( - + 58 ) THEN NULL WHEN CAST ( NULL AS INTEGER ) * 68 THEN - ( CAST ( NULL AS INTEGER ) ) + + MIN ( 18 ) * 76 * - 80 + - + 12 END, + CASE - 42 WHEN + 99 + + 62 * + - CAST ( NULL AS REAL ) THEN 81 WHEN 86 * - ( - 43 ) * + COUNT ( * ) THEN NULL ELSE NULL END - + ( + 41 ) + - COUNT ( * ) * - 51
----
87
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-844
SELECT ALL COALESCE ( - 16, + 33 + + 24 ) - + MIN( - 64 ) + - - CAST( NULL AS SIGNED ) * + - 29 + + 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-844
SELECT ALL COALESCE ( - 16, + 33 + + 24 ) - + MIN ( - 64 ) + - - CAST ( NULL AS INTEGER ) * + - 29 + + 34 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-846
SELECT + 2, - 35 * COUNT( * ) + + + 79 - + 39 col2
----
2
5

skipif mysql # not compatible
query II rowsort label-846
SELECT + 2, - 35 * COUNT ( * ) + + + 79 - + 39 col2
----
2
5

query II rowsort
SELECT ALL - 73 AS col0, + 64
----
-73
64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-849
SELECT COALESCE ( - 78, - - COUNT( * ) + - 5 ) + 90 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-849
SELECT COALESCE ( - 78, - - COUNT ( * ) + - 5 ) + 90 AS col0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-850
SELECT CASE - CASE - 99 WHEN - 22 + + - 12 THEN 24 WHEN - 20 THEN NULL END WHEN + CAST( NULL AS SIGNED ) / 78 + - 54 + + 68 + CAST( NULL AS SIGNED ) THEN NULL WHEN 62 * - + NULLIF ( + 41, 3 + - COUNT( * ) - + + 98 ) THEN - + 79 - CASE + + 99 WHEN + 58 THEN + 82 WHEN - - 51 * + 6 * - 55 - - - 9 THEN - CAST( NULL AS SIGNED ) * 93 * - - 99 END * + - 88 ELSE NULL END * - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-850
SELECT CASE - CASE - 99 WHEN - 22 + + - 12 THEN 24 WHEN - 20 THEN NULL END WHEN + CAST ( NULL AS INTEGER ) / 78 + - 54 + + 68 + CAST ( NULL AS INTEGER ) THEN NULL WHEN 62 * - + NULLIF ( + 41, 3 + - COUNT ( * ) - + + 98 ) THEN - + 79 - CASE + + 99 WHEN + 58 THEN + 82 WHEN - - 51 * + 6 * - 55 - - - 9 THEN - CAST ( NULL AS INTEGER ) * 93 * - - 99 END * + - 88 ELSE NULL END * - 63
----
NULL

query II rowsort
SELECT + 36 AS col1, + ( 19 )
----
36
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-852
SELECT - + COUNT( * ) * + - 59 - + ( - - 63 ) DIV + ( 76 ) + + + 69
----
128

skipif mysql # not compatible
query I rowsort label-852
SELECT - + COUNT ( * ) * + - 59 - + ( - - 63 ) / + ( 76 ) + + + 69
----
128

query II rowsort
SELECT DISTINCT - 29 AS col1, 25 + 76 AS col1
----
-29
101

onlyif mysql # aggregate syntax: 
query I rowsort label-854
SELECT DISTINCT 56 + - SUM( DISTINCT + CASE + 88 WHEN 83 THEN 90 + - 72 ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-854
SELECT DISTINCT 56 + - SUM ( DISTINCT + CASE + 88 WHEN 83 THEN 90 + - 72 ELSE NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-855
SELECT DISTINCT + - COUNT( * ) + 19 * + + 9
----
170

skipif mysql # not compatible
query I rowsort label-855
SELECT DISTINCT + - COUNT ( * ) + 19 * + + 9
----
170

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

query I rowsort
SELECT DISTINCT NULLIF ( - 4, + - 88 ) AS col0
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-858
SELECT ALL - COALESCE ( + NULLIF ( + 78, - 39 ), + + ( + 2 ) * + 57 DIV + - 74 ) + + COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-858
SELECT ALL - COALESCE ( + NULLIF ( + 78, - 39 ), + + ( + 2 ) * + 57 / + - 74 ) + + COUNT ( * )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-859
SELECT - - 39, + 51 - + 1 / + 4 / - CASE - 74 WHEN + 40 / + + 88 / 77 + + - 29 THEN CAST( NULL AS SIGNED ) + - 58 WHEN SUM( + 24 ) THEN + + 61 + + - 66 END AS col1
----
39
NULL

skipif mysql # not compatible
query II rowsort label-859
SELECT - - 39, + 51 - + 1 / + 4 / - CASE - 74 WHEN + 40 / + + 88 / 77 + + - 29 THEN CAST ( NULL AS INTEGER ) + - 58 WHEN SUM ( + 24 ) THEN + + 61 + + - 66 END AS col1
----
39
NULL

query I rowsort
SELECT DISTINCT + + 19 + - + 31
----
-12

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-862
SELECT ALL + + 69 + + + CAST( NULL AS SIGNED ) + + NULLIF ( - 64, - 24 * 89 + - - ( - 83 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-862
SELECT ALL + + 69 + + + CAST ( NULL AS INTEGER ) + + NULLIF ( - 64, - 24 * 89 + - - ( - 83 ) ) AS col0
----
NULL

query I rowsort
SELECT ALL - + 6 + + - 70
----
-76

query I rowsort
SELECT + 2 * 70 * - - ( 97 ) * 91 * - 83 AS col2
----
-102569740

query I rowsort
SELECT DISTINCT - 9 * - - 76 + 22
----
-662

onlyif mysql # aggregate syntax: 
query I rowsort label-866
SELECT ALL - - SUM( ALL - 48 ) + - + 87 AS col2
----
-135

skipif mysql # not compatible
query I rowsort label-866
SELECT ALL - - SUM ( ALL - 48 ) + - + 87 AS col2
----
-135

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

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

query I rowsort
SELECT DISTINCT + 22 * + + 16 col1
----
352

onlyif mysql # DIV for integer division: 
query I rowsort label-869
SELECT DISTINCT COALESCE ( 68, + 72 DIV 36 ) - + + 75 + - 41 + + 42
----
-6

skipif mysql # not compatible
query I rowsort label-869
SELECT DISTINCT COALESCE ( 68, + 72 / 36 ) - + + 75 + - 41 + + 42
----
-6

query I rowsort
SELECT 87 + + + 72
----
159

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

skipif mysql # not compatible
query II rowsort label-871
SELECT - 22, COUNT ( * ) AS col0
----
-22
1

query II rowsort
SELECT 78 AS col0, - 75
----
78
-75

query I rowsort
SELECT ( - - 48 ) * - - 9
----
432

query I rowsort
SELECT DISTINCT ( - 73 ) * + - 4
----
292

onlyif mysql # DIV for integer division: 
query I rowsort label-875
SELECT DISTINCT + 86 DIV + 95
----
0

skipif mysql # not compatible
query I rowsort label-875
SELECT DISTINCT + 86 / + 95
----
0

query I rowsort
SELECT ( 32 ) + ( - + 58 )
----
-26

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-878
SELECT ( + 90 ) DIV 37 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-878
SELECT ( + 90 ) / 37 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT DISTINCT ( + 41 ) * + MIN( DISTINCT + 50 ) - - 77
----
2127

skipif mysql # not compatible
query I rowsort label-879
SELECT DISTINCT ( + 41 ) * + MIN ( DISTINCT + 50 ) - - 77
----
2127

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-881
SELECT 69 * - 6 + - COUNT( * )
----
-415

skipif mysql # not compatible
query I rowsort label-881
SELECT 69 * - 6 + - COUNT ( * )
----
-415

onlyif mysql # DIV for integer division: 
query II rowsort label-882
SELECT 18 DIV + 94 AS col1, 37 * - + 24 * + + 10 col2
----
0
-8880

skipif mysql # not compatible
query II rowsort label-882
SELECT 18 / + 94 AS col1, 37 * - + 24 * + + 10 col2
----
0
-8880

query II rowsort
SELECT 59 AS col1, + CASE WHEN NOT ( NOT - 6 IN ( 85, AVG ( NULLIF ( - 29, - CASE 14 WHEN - 69 + + 63 THEN NULL ELSE - 19 END * - - 5 ) ) + AVG ( DISTINCT - 76 ), - - COALESCE ( + 87, 49 ) ) ) THEN NULL WHEN ( NULL ) IS NOT NULL THEN NULL ELSE - 93 END AS col2
----
59
-93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-884
SELECT ALL - 92, ( + + 18 ) + + - 27 + + + 34 + + CAST( - + 65 AS SIGNED ) col0
----
-92
-40

skipif mysql # not compatible
query II rowsort label-884
SELECT ALL - 92, ( + + 18 ) + + - 27 + + + 34 + + CAST ( - + 65 AS INTEGER ) col0
----
-92
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT COUNT( * ) + + + COUNT( * ) + + 93 + - 58 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-885
SELECT COUNT ( * ) + + + COUNT ( * ) + + 93 + - 58 AS col0
----
37

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

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

query I rowsort
SELECT 51 + + + ( + 20 ) AS col1
----
71

query I rowsort
SELECT 67 * 93 - 97 * + + 73 * - 16 + 54 + 63
----
119644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-889
SELECT ALL + 98 + CAST( COUNT( * ) AS SIGNED )
----
99

skipif mysql # not compatible
query I rowsort label-889
SELECT ALL + 98 + CAST ( COUNT ( * ) AS INTEGER )
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-890
SELECT DISTINCT - 29 DIV + COALESCE ( + 92, 38 + - 99 - + 95 * - + 81 * - + 60 DIV 71 + - 17 * + + MIN( + 48 ) + + CAST( AVG ( DISTINCT - ( 43 ) ) AS SIGNED ) ), ( + 90 ) - + ( - NULLIF ( 95, - 84 ) ) * + 26 AS col1
----
0
2560

skipif mysql # not compatible
query II rowsort label-890
SELECT DISTINCT - 29 / + COALESCE ( + 92, 38 + - 99 - + 95 * - + 81 * - + 60 / 71 + - 17 * + + MIN ( + 48 ) + + CAST ( AVG ( DISTINCT - ( 43 ) ) AS INTEGER ) ), ( + 90 ) - + ( - NULLIF ( 95, - 84 ) ) * + 26 AS col1
----
0
2560

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

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

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

query I rowsort
SELECT ALL 72 + + 55 + - 15
----
112

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-895
SELECT MAX( DISTINCT - + 32 ) + COUNT( * ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-895
SELECT MAX ( DISTINCT - + 32 ) + COUNT ( * ) AS col0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-896
SELECT + - CAST( NULL AS SIGNED ), + 27 * + - 81 * + 97 col1
----
NULL
-212139

skipif mysql # not compatible
query II rowsort label-896
SELECT + - CAST ( NULL AS INTEGER ), + 27 * + - 81 * + 97 col1
----
NULL
-212139

query II rowsort
SELECT ALL + 71 + + 30 AS col0, 97 col2
----
101
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT - 87 + - CASE WHEN 77 IS NOT NULL THEN + COUNT( * ) END AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-899
SELECT - 87 + - CASE WHEN 77 IS NOT NULL THEN + COUNT ( * ) END AS col1
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-900
SELECT - 0 + + 9 + + 93 + + + 48 * - + CAST( + ( - + 74 ) AS SIGNED ) AS col0, 31 + - CAST( NULL AS DECIMAL ) + - COUNT( * ) AS col0
----
3654
NULL

skipif mysql # not compatible
query II rowsort label-900
SELECT - 0 + + 9 + + 93 + + + 48 * - + CAST ( + ( - + 74 ) AS INTEGER ) AS col0, 31 + - CAST ( NULL AS REAL ) + - COUNT ( * ) AS col0
----
3654
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-901
SELECT 3 + - MIN( DISTINCT - 96 ) * - + 35 AS col1
----
-3357

skipif mysql # not compatible
query I rowsort label-901
SELECT 3 + - MIN ( DISTINCT - 96 ) * - + 35 AS col1
----
-3357

query I rowsort
SELECT 7 * - + 38
----
-266

onlyif mysql # aggregate syntax: 
query I rowsort label-903
SELECT - COALESCE ( - 88, + + COALESCE ( + - 54, + NULLIF ( - - 51, - 17 + - - 35 ) ) + + + 83 + - - 25 * - 59 + COUNT( - ( 38 ) ) ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-903
SELECT - COALESCE ( - 88, + + COALESCE ( + - 54, + NULLIF ( - - 51, - 17 + - - 35 ) ) + + + 83 + - - 25 * - 59 + COUNT ( - ( 38 ) ) ) AS col0
----
88

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

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

query I rowsort
SELECT - 18 * + 80 AS col0
----
-1440

query I rowsort
SELECT - 24 * - - 0 * 59
----
0

query I rowsort
SELECT + 41 + + 6 + - 3
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-908
SELECT ALL CASE COUNT( * ) WHEN AVG ( - 48 ) / - - 66 THEN + 81 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-908
SELECT ALL CASE COUNT ( * ) WHEN AVG ( - 48 ) / - - 66 THEN + 81 END AS col1
----
NULL

query I rowsort
SELECT - 64 * 70 AS col1
----
-4480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-910
SELECT ALL CASE + 39 WHEN + 94 THEN NULL WHEN 80 * + NULLIF ( - 27, 38 ) - + + 9 THEN NULL WHEN + - 96 THEN - COALESCE ( COALESCE ( CAST( - + CASE 26 WHEN + + 34 * SUM( + 24 ) / COALESCE ( + + 0, - + 8, - 82 ) THEN ( - - 92 ) WHEN - MAX( 65 ) / + + COUNT( * ) + 69 THEN NULL END AS SIGNED ), - 13 ), + 6 + - COUNT( * ) - 74 - + 7 * + 56 + - 14 + 25 + 16 * - CASE - CAST( COUNT( * ) AS SIGNED ) WHEN + 32 THEN + 62 * 80 END - - 57 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-910
SELECT ALL CASE + 39 WHEN + 94 THEN NULL WHEN 80 * + NULLIF ( - 27, 38 ) - + + 9 THEN NULL WHEN + - 96 THEN - COALESCE ( COALESCE ( CAST ( - + CASE 26 WHEN + + 34 * SUM ( + 24 ) / COALESCE ( + + 0, - + 8, - 82 ) THEN ( - - 92 ) WHEN - MAX ( 65 ) / + + COUNT ( * ) + 69 THEN NULL END AS INTEGER ), - 13 ), + 6 + - COUNT ( * ) - 74 - + 7 * + 56 + - 14 + 25 + 16 * - CASE - CAST ( COUNT ( * ) AS INTEGER ) WHEN + 32 THEN + 62 * 80 END - - 57 ) END
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-913
SELECT NULLIF ( 42, 89 * + 22 + ( + CAST( + + ( + + 49 ) AS SIGNED ) ) + - + 85 * + 81 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-913
SELECT NULLIF ( 42, 89 * + 22 + ( + CAST ( + + ( + + 49 ) AS INTEGER ) ) + - + 85 * + 81 ) AS col2
----
42

query I rowsort
SELECT - 28 * - 37 AS col0
----
1036

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-915
SELECT DISTINCT 57 * CAST( NULL AS SIGNED ) * - - 79 AS col0
----
NULL

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

query I rowsort
SELECT COALESCE ( 47, + 20 ) AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT ALL 19 * - - NULLIF ( + - 71, ( - COUNT( * ) ) ) + + - 56 + - + ( - + COUNT( * ) ) + - - 74 col0
----
-1330

skipif mysql # not compatible
query I rowsort label-917
SELECT ALL 19 * - - NULLIF ( + - 71, ( - COUNT ( * ) ) ) + + - 56 + - + ( - + COUNT ( * ) ) + - - 74 col0
----
-1330

query I rowsort
SELECT + 59 * 23
----
1357

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

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

query I rowsort
SELECT COALESCE ( + - 14, - 58 )
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-921
SELECT + + 6 DIV 27
----
0

skipif mysql # not compatible
query I rowsort label-921
SELECT + + 6 / 27
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-922
SELECT + MAX( ALL - - ( + 81 ) ) col1
----
81

skipif mysql # not compatible
query I rowsort label-922
SELECT + MAX ( ALL - - ( + 81 ) ) col1
----
81

query I rowsort
SELECT ALL + 31 * + 91 - - 30 - + 75 * + 79 + - + 84 col2
----
-3158

onlyif mysql # DIV for integer division: 
query I rowsort label-924
SELECT ALL - 23 DIV 72 DIV + ( - 23 )
----
0

skipif mysql # not compatible
query I rowsort label-924
SELECT ALL - 23 / 72 / + ( - 23 )
----
0

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-927
SELECT DISTINCT + COUNT( DISTINCT 31 ) * - CASE - + ( 91 ) WHEN + AVG ( DISTINCT - 39 ) THEN NULL WHEN - NULLIF ( - + 53, + CAST( NULL AS SIGNED ) / + 33 + CAST( + 25 AS SIGNED ) ) / 48 + 56 THEN - - NULLIF ( + - CAST( + 89 AS SIGNED ), COUNT( * ) ) END - 89, - NULLIF ( + 55, + 19 ) AS col2
----
NULL
-55

skipif mysql # not compatible
query II rowsort label-927
SELECT DISTINCT + COUNT ( DISTINCT 31 ) * - CASE - + ( 91 ) WHEN + AVG ( DISTINCT - 39 ) THEN NULL WHEN - NULLIF ( - + 53, + CAST ( NULL AS INTEGER ) / + 33 + CAST ( + 25 AS INTEGER ) ) / 48 + 56 THEN - - NULLIF ( + - CAST ( + 89 AS INTEGER ), COUNT ( * ) ) END - 89, - NULLIF ( + 55, + 19 ) AS col2
----
NULL
-55

query I rowsort
SELECT - 30 - - 77
----
47

query I rowsort
SELECT ALL 36 * + 88 col2
----
3168

query I rowsort
SELECT + 42 * - 55 AS col0
----
-2310

onlyif mysql # aggregate syntax: 
query I rowsort label-931
SELECT ALL SUM( 15 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-931
SELECT ALL SUM ( 15 ) AS col1
----
15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT + 94 + - SUM( - 81 ) AS col2
----
175

skipif mysql # not compatible
query I rowsort label-933
SELECT + 94 + - SUM ( - 81 ) AS col2
----
175

query I rowsort
SELECT ALL 0 * - - 81 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-935
SELECT + 12 * SUM( + 31 ) AS col0
----
372

skipif mysql # not compatible
query I rowsort label-935
SELECT + 12 * SUM ( + 31 ) AS col0
----
372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-936
SELECT DISTINCT COALESCE ( - CAST( NULL AS SIGNED ), - COUNT( * ), 4 DIV + 65 * + MIN( DISTINCT - + CAST( NULL AS SIGNED ) ) DIV - 37 )
----
-1

skipif mysql # not compatible
query I rowsort label-936
SELECT DISTINCT COALESCE ( - CAST ( NULL AS INTEGER ), - COUNT ( * ), 4 / + 65 * + MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) ) / - 37 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-937
SELECT - 64 DIV + + ( 4 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-937
SELECT - 64 / + + ( 4 ) AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-938
SELECT DISTINCT SUM( 30 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-938
SELECT DISTINCT SUM ( 30 ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT + 52 + 6 + - + COUNT( * ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-939
SELECT + 52 + 6 + - + COUNT ( * ) AS col2
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-940
SELECT + 28 DIV - + 42 col1
----
0

skipif mysql # not compatible
query I rowsort label-940
SELECT + 28 / - + 42 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-941
SELECT - 34 * + ( COUNT( * ) ) * 12 + - 84 + - - COUNT( * )
----
-491

skipif mysql # not compatible
query I rowsort label-941
SELECT - 34 * + ( COUNT ( * ) ) * 12 + - 84 + - - COUNT ( * )
----
-491

query I rowsort
SELECT - 46 + - 98 AS col0
----
-144

query I rowsort
SELECT DISTINCT - ( - + 86 ) * - + 36
----
-3096

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-945
SELECT - COUNT( + 25 ) DIV + 16 + - 24 + 64 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-945
SELECT - COUNT ( + 25 ) / + 16 + - 24 + 64 AS col1
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-946
SELECT ALL 82 DIV - COUNT( * ) + 9 AS col0, 92 + 38 + - + COUNT( * ) AS col0
----
-73
129

skipif mysql # not compatible
query II rowsort label-946
SELECT ALL 82 / - COUNT ( * ) + 9 AS col0, 92 + 38 + - + COUNT ( * ) AS col0
----
-73
129

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT DISTINCT + 29 * - 73 + 87 + + - COUNT( * ) AS col2
----
-2031

skipif mysql # not compatible
query I rowsort label-947
SELECT DISTINCT + 29 * - 73 + 87 + + - COUNT ( * ) AS col2
----
-2031

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-948
SELECT ALL + NULLIF ( + - 45, + 15 + + 70 * COALESCE ( - 4, - COUNT( * ), - 11 + - 95 * - 10 * - 65 ) ) DIV - 93 * - ( + 75 ) + - 99 + 99 * + - MIN( DISTINCT - + 9 ) + - 91 + + 26
----
727

skipif mysql # not compatible
query I rowsort label-948
SELECT ALL + NULLIF ( + - 45, + 15 + + 70 * COALESCE ( - 4, - COUNT ( * ), - 11 + - 95 * - 10 * - 65 ) ) / - 93 * - ( + 75 ) + - 99 + 99 * + - MIN ( DISTINCT - + 9 ) + - 91 + + 26
----
727

query I rowsort
SELECT DISTINCT + + ( - 91 ) AS col2
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-950
SELECT DISTINCT - 56 DIV - + 75 * 13 + - + 96 * 58 + 75 + - + ( + 1 )
----
-5494

skipif mysql # not compatible
query I rowsort label-950
SELECT DISTINCT - 56 / - + 75 * 13 + - + 96 * 58 + 75 + - + ( + 1 )
----
-5494

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT + SUM( + 62 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-952
SELECT + SUM ( + 62 ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-953
SELECT ALL + COALESCE ( - + 12, + - 12 ), - 47 * + COUNT( * ) * - - NULLIF ( + 75, - ( - - 71 ) ) AS col2
----
-12
-3525

skipif mysql # not compatible
query II rowsort label-953
SELECT ALL + COALESCE ( - + 12, + - 12 ), - 47 * + COUNT ( * ) * - - NULLIF ( + 75, - ( - - 71 ) ) AS col2
----
-12
-3525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-954
SELECT ALL 90 * + - NULLIF ( - - ( 13 ), - 11 * - + 69 + + - 59 * + + 43 + 45 * COUNT( * ) * ( + - 30 ) * CASE - + 91 WHEN 82 * 7 THEN - + CAST( NULL AS SIGNED ) + - 7 ELSE 72 + ( - + COUNT( * ) ) + 76 END + 3 + 26 + - - 33 - + - 1 * + 8 * + 16 * - 30 * - - 85 * + ( + 24 ) )
----
-1170

skipif mysql # not compatible
query I rowsort label-954
SELECT ALL 90 * + - NULLIF ( - - ( 13 ), - 11 * - + 69 + + - 59 * + + 43 + 45 * COUNT ( * ) * ( + - 30 ) * CASE - + 91 WHEN 82 * 7 THEN - + CAST ( NULL AS INTEGER ) + - 7 ELSE 72 + ( - + COUNT ( * ) ) + 76 END + 3 + 26 + - - 33 - + - 1 * + 8 * + 16 * - 30 * - - 85 * + ( + 24 ) )
----
-1170

onlyif mysql # aggregate syntax: 
query I rowsort label-955
SELECT COUNT( * ) * - - NULLIF ( + ( - COUNT( * ) ), 94 ) - + NULLIF ( + 31, - COUNT( * ) / ( 21 ) * 27 - - 89 + COUNT( * ) * 67 * - COUNT( * ) + - 40 + + - 4 ) + - ( + 47 ) * 46
----
-2194

skipif mysql # not compatible
query I rowsort label-955
SELECT COUNT ( * ) * - - NULLIF ( + ( - COUNT ( * ) ), 94 ) - + NULLIF ( + 31, - COUNT ( * ) / ( 21 ) * 27 - - 89 + COUNT ( * ) * 67 * - COUNT ( * ) + - 40 + + - 4 ) + - ( + 47 ) * 46
----
-2194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-956
SELECT + + COUNT( * ) AS col1, 34 * - 50 * MIN( + CAST( NULL AS SIGNED ) ) + - 60 - 11 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-956
SELECT + + COUNT ( * ) AS col1, 34 * - 50 * MIN ( + CAST ( NULL AS INTEGER ) ) + - 60 - 11 AS col0
----
1
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-957
SELECT ALL - 94 * 84 DIV + ( - - 43 ) + - 52 * + 17, - 59 AS col2
----
-1067
-59

skipif mysql # not compatible
query II rowsort label-957
SELECT ALL - 94 * 84 / + ( - - 43 ) + - 52 * + 17, - 59 AS col2
----
-1067
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-958
SELECT ALL - 83 AS col2, + 11 + - 51 + - 23 + - - 54 * + - 40 - + 50 / - CASE - 71 WHEN + + 9 THEN NULL WHEN + 31 + - + 0 * 17 THEN 0 + 34 / 61 * - 59 + 68 + - - COALESCE ( 85, - CASE + COUNT( * ) WHEN - - 19 * + CAST( NULL AS SIGNED ) THEN NULL WHEN - 94 * - 80 * + COALESCE ( + CASE - 52 WHEN 54 + - 63 * + ( - - 11 ) THEN + + 40 WHEN + + 34 + - + COUNT( * ) THEN - ( + + COUNT( * ) ) + - 46 END, + 86 + - 94, - AVG ( DISTINCT 62 ) - 53 ) THEN 8 END * + 68 ) * - COUNT( * ) END AS col0
----
-83
NULL

skipif mysql # not compatible
query II rowsort label-958
SELECT ALL - 83 AS col2, + 11 + - 51 + - 23 + - - 54 * + - 40 - + 50 / - CASE - 71 WHEN + + 9 THEN NULL WHEN + 31 + - + 0 * 17 THEN 0 + 34 / 61 * - 59 + 68 + - - COALESCE ( 85, - CASE + COUNT ( * ) WHEN - - 19 * + CAST ( NULL AS INTEGER ) THEN NULL WHEN - 94 * - 80 * + COALESCE ( + CASE - 52 WHEN 54 + - 63 * + ( - - 11 ) THEN + + 40 WHEN + + 34 + - + COUNT ( * ) THEN - ( + + COUNT ( * ) ) + - 46 END, + 86 + - 94, - AVG ( DISTINCT 62 ) - 53 ) THEN 8 END * + 68 ) * - COUNT ( * ) END AS col0
----
-83
NULL

query II rowsort
SELECT + + 27, 58 AS col2
----
27
58

onlyif mysql # aggregate syntax: 
query II rowsort label-960
SELECT ALL - 29 AS col2, + 37 * - - COUNT( * )
----
-29
37

skipif mysql # not compatible
query II rowsort label-960
SELECT ALL - 29 AS col2, + 37 * - - COUNT ( * )
----
-29
37

query I rowsort
SELECT 73 * - + ( 71 )
----
-5183

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT - 28 * COUNT( * ) + + + 64 * + 70 col0
----
4452

skipif mysql # not compatible
query I rowsort label-962
SELECT - 28 * COUNT ( * ) + + + 64 * + 70 col0
----
4452

query I rowsort
SELECT 97 * - 44
----
-4268

query I rowsort
SELECT 3 + - 50 + + 66 * + 36 + - 88
----
2241

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT DISTINCT NULLIF ( - 10, + 69 ) * 96 * + 28 + + CASE - COUNT( * ) WHEN + 0 THEN - - 20 + - ( - 23 ) WHEN - 66 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-965
SELECT DISTINCT NULLIF ( - 10, + 69 ) * 96 * + 28 + + CASE - COUNT ( * ) WHEN + 0 THEN - - 20 + - ( - 23 ) WHEN - 66 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-966
SELECT DISTINCT COUNT( * ) DIV 52 * + - 18
----
0

skipif mysql # not compatible
query I rowsort label-966
SELECT DISTINCT COUNT ( * ) / 52 * + - 18
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-967
SELECT ALL CASE - 56 WHEN - + 99 + 78 THEN - 57 * - + 78 ELSE - 19 * - 70 + + + COUNT( * ) + - 51 END DIV + + 29 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-967
SELECT ALL CASE - 56 WHEN - + 99 + 78 THEN - 57 * - + 78 ELSE - 19 * - 70 + + + COUNT ( * ) + - 51 END / + + 29 AS col0
----
44

query I rowsort
SELECT ALL 46 * 5
----
230

query I rowsort
SELECT 12 * - 94 AS col2
----
-1128

onlyif mysql # aggregate syntax: 
query I rowsort label-970
SELECT COUNT( * ) + - + 10 * + 3 + - - ( + 59 )
----
30

skipif mysql # not compatible
query I rowsort label-970
SELECT COUNT ( * ) + - + 10 * + 3 + - - ( + 59 )
----
30

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-972
SELECT COUNT( * ) * 0 * CAST( - 0 AS SIGNED ), 87 AS col2
----
0
87

skipif mysql # not compatible
query II rowsort label-972
SELECT COUNT ( * ) * 0 * CAST ( - 0 AS INTEGER ), 87 AS col2
----
0
87

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

skipif mysql # not compatible
query I rowsort label-973
SELECT ALL COUNT ( * ) + - COUNT ( * ) * 96 AS col2
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-974
SELECT DISTINCT COUNT( * ) + - 55, + 76 DIV - COUNT( * ) AS col0
----
-54
-76

skipif mysql # not compatible
query II rowsort label-974
SELECT DISTINCT COUNT ( * ) + - 55, + 76 / - COUNT ( * ) AS col0
----
-54
-76

onlyif mysql # DIV for integer division: 
query II rowsort label-975
SELECT ALL + 38 + + 98 AS col1, - 73 DIV + 40 AS col2
----
136
-1

skipif mysql # not compatible
query II rowsort label-975
SELECT ALL + 38 + + 98 AS col1, - 73 / + 40 AS col2
----
136
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-976
SELECT DISTINCT 39 + - 9 * ( 24 ) + CAST( NULL AS SIGNED ) * - ( 54 ) + - 17 + + 69, 26 AS col2
----
NULL
26

skipif mysql # not compatible
query II rowsort label-976
SELECT DISTINCT 39 + - 9 * ( 24 ) + CAST ( NULL AS INTEGER ) * - ( 54 ) + - 17 + + 69, 26 AS col2
----
NULL
26

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-978
SELECT 60 DIV - CASE + 1 WHEN COALESCE ( - 12, + - MAX( DISTINCT + ( + 61 ) ), + ( + COUNT( * ) ) * - 59 * - - 11 * 58 + - + 91 ) THEN NULL ELSE MAX( - - 51 ) END
----
-1

skipif mysql # not compatible
query I rowsort label-978
SELECT 60 / - CASE + 1 WHEN COALESCE ( - 12, + - MAX ( DISTINCT + ( + 61 ) ), + ( + COUNT ( * ) ) * - 59 * - - 11 * 58 + - + 91 ) THEN NULL ELSE MAX ( - - 51 ) END
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-979
SELECT + SUM( - - 35 ), + MIN( + 80 ) * 99 * - COUNT( * ) AS col0
----
35
-7920

skipif mysql # not compatible
query II rowsort label-979
SELECT + SUM ( - - 35 ), + MIN ( + 80 ) * 99 * - COUNT ( * ) AS col0
----
35
-7920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-980
SELECT ALL + CAST( + 16 AS SIGNED ) * SUM( DISTINCT - 69 )
----
-1104

skipif mysql # not compatible
query I rowsort label-980
SELECT ALL + CAST ( + 16 AS INTEGER ) * SUM ( DISTINCT - 69 )
----
-1104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-981
SELECT NULLIF ( + 70, + 36 * 15 + 84 ) DIV - + CASE - 29 WHEN + + 53 + 86 THEN + 22 + - 75 + - - COUNT( * ) WHEN - + COUNT( * ) DIV + + 23 * - 24 * - ( 69 ) * 71 THEN NULL ELSE - CAST( 30 AS SIGNED ) * 49 END
----
0

skipif mysql # not compatible
query I rowsort label-981
SELECT NULLIF ( + 70, + 36 * 15 + 84 ) / - + CASE - 29 WHEN + + 53 + 86 THEN + 22 + - 75 + - - COUNT ( * ) WHEN - + COUNT ( * ) / + + 23 * - 24 * - ( 69 ) * 71 THEN NULL ELSE - CAST ( 30 AS INTEGER ) * 49 END
----
0

query I rowsort
SELECT ALL + 73 - - 53
----
126

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-983
SELECT DISTINCT 23 * - 61 DIV COUNT( * ) + 63 * - 79 * 27 * + 71 AS col0, + 99
----
-9542312
99

skipif mysql # not compatible
query II rowsort label-983
SELECT DISTINCT 23 * - 61 / COUNT ( * ) + 63 * - 79 * 27 * + 71 AS col0, + 99
----
-9542312
99

onlyif mysql # aggregate syntax: 
query I rowsort label-984
SELECT + 71 * ( - ( + + ( + + NULLIF ( + + 9, + 52 ) ) ) ) + + COUNT( ALL - + ( + 80 ) )
----
-638

skipif mysql # not compatible
query I rowsort label-984
SELECT + 71 * ( - ( + + ( + + NULLIF ( + + 9, + 52 ) ) ) ) + + COUNT ( ALL - + ( + 80 ) )
----
-638

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

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

query I rowsort
SELECT 65 + + + 38
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT MAX( - 61 ) * + COUNT( * ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-987
SELECT MAX ( - 61 ) * + COUNT ( * ) AS col2
----
-61

query I rowsort
SELECT + 30 * + 43 * - - 68
----
87720

query I rowsort
SELECT DISTINCT + 32 * - - 72 * ( - 42 )
----
-96768

onlyif mysql # aggregate syntax: 
query I rowsort label-990
SELECT ALL 76 + - MIN( DISTINCT COALESCE ( + + 25, + + 21, + ( 36 ) + - 25 ) )
----
51

skipif mysql # not compatible
query I rowsort label-990
SELECT ALL 76 + - MIN ( DISTINCT COALESCE ( + + 25, + + 21, + ( 36 ) + - 25 ) )
----
51

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

skipif mysql # not compatible
query I rowsort label-991
SELECT 6 + + 50 + + 75 * + NULLIF ( CAST ( NULL AS INTEGER ), + COUNT ( * ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-992
SELECT 12 DIV + 38 * 62 col2
----
0

skipif mysql # not compatible
query I rowsort label-992
SELECT 12 / + 38 * 62 col2
----
0

query I rowsort
SELECT COALESCE ( + ( + + 36 ), + - 47 ) * 48 AS col0
----
1728

query I rowsort
SELECT 51 + 37 AS col1
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-995
SELECT NULLIF ( + + 92, - - 5 ) DIV - + 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-995
SELECT NULLIF ( + + 92, - - 5 ) / - + 99 AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT DISTINCT SUM( - - 8 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-997
SELECT DISTINCT SUM ( - - 8 ) AS col0
----
8

query I rowsort
SELECT ALL - 42 + + 1
----
-41

query I rowsort
SELECT ALL 69 * - 18
----
-1242

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1000
SELECT SUM( + + 37 ) - - 10 / 77 + - COUNT( * ) * + + 91 + - CAST( NULL AS SIGNED ) * - 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1000
SELECT SUM ( + + 37 ) - - 10 / 77 + - COUNT ( * ) * + + 91 + - CAST ( NULL AS INTEGER ) * - 92 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1001
SELECT ALL 74 - - NULLIF ( - - CAST( NULL AS SIGNED ), - + 87 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1001
SELECT ALL 74 - - NULLIF ( - - CAST ( NULL AS INTEGER ), - + 87 ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1002
SELECT ALL + 88 * 87 + + + CAST( NULL AS SIGNED ) * CASE - COUNT( * ) WHEN 86 THEN + - 83 END * 41 / + - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-1002
SELECT ALL + 88 * 87 + + + CAST ( NULL AS INTEGER ) * CASE - COUNT ( * ) WHEN 86 THEN + - 83 END * 41 / + - 91
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1004
SELECT 5 * + ( + - 24 ) - CASE - - COUNT( * ) WHEN - 8 + 41 THEN 20 WHEN - - 67 THEN NULL WHEN + 34 * + 29 - - + 82 * + - COUNT( * ) THEN + 76 ELSE - + 54 END
----
-66

skipif mysql # not compatible
query I rowsort label-1004
SELECT 5 * + ( + - 24 ) - CASE - - COUNT ( * ) WHEN - 8 + 41 THEN 20 WHEN - - 67 THEN NULL WHEN + 34 * + 29 - - + 82 * + - COUNT ( * ) THEN + 76 ELSE - + 54 END
----
-66

query I rowsort
SELECT - 28 + 20 AS col0
----
-8

query I rowsort
SELECT ALL - 43 * 84
----
-3612

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT CASE - COUNT( * ) WHEN - 74 + + 44 THEN + ( ( - 98 ) ) * + CASE + - SUM( ALL 41 ) WHEN + + 30 THEN NULL ELSE + 80 + + 76 END END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1008
SELECT CASE - COUNT ( * ) WHEN - 74 + + 44 THEN + ( ( - 98 ) ) * + CASE + - SUM ( ALL 41 ) WHEN + + 30 THEN NULL ELSE + 80 + + 76 END END * - COUNT ( * )
----
NULL

query I rowsort
SELECT - 55 + - 20
----
-75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1011
SELECT - + 40 * - COUNT( * ) + 6 col0
----
46

skipif mysql # not compatible
query I rowsort label-1011
SELECT - + 40 * - COUNT ( * ) + 6 col0
----
46

query I rowsort
SELECT + - 55 * 28 * - 36 * - + 56 AS col1
----
-3104640

onlyif mysql # DIV for integer division: 
query I rowsort label-1013
SELECT DISTINCT 57 DIV 68
----
0

skipif mysql # not compatible
query I rowsort label-1013
SELECT DISTINCT 57 / 68
----
0

query I rowsort
SELECT ALL + 11 * 24
----
264

onlyif mysql # aggregate syntax: 
query II rowsort label-1015
SELECT + - 2 AS col0, 63 * MAX( - 57 ) - - 56 AS col0
----
-2
-3535

skipif mysql # not compatible
query II rowsort label-1015
SELECT + - 2 AS col0, 63 * MAX ( - 57 ) - - 56 AS col0
----
-2
-3535

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1016
SELECT ALL + + 28 * + COUNT( * ) DIV 54 * + 70
----
0

skipif mysql # not compatible
query I rowsort label-1016
SELECT ALL + + 28 * + COUNT ( * ) / 54 * + 70
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1017
SELECT - 67 * CASE + 13 WHEN + + COALESCE ( - SUM( DISTINCT ( + - 19 ) ), + ( + + 60 ) + + CAST( NULL AS SIGNED ) ) THEN NULL WHEN + - 99 THEN NULL WHEN - 37 THEN + - 83 ELSE 8 END AS col1
----
-536

skipif mysql # not compatible
query I rowsort label-1017
SELECT - 67 * CASE + 13 WHEN + + COALESCE ( - SUM ( DISTINCT ( + - 19 ) ), + ( + + 60 ) + + CAST ( NULL AS INTEGER ) ) THEN NULL WHEN + - 99 THEN NULL WHEN - 37 THEN + - 83 ELSE 8 END AS col1
----
-536

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1018
SELECT DISTINCT - 74 * + 81 + - 60, + 4 DIV + - 41 + + - NULLIF ( - 32, - COUNT( DISTINCT 14 ) ) DIV - 40 + - - 88 + - 77 AS col2
----
-6054
11

skipif mysql # not compatible
query II rowsort label-1018
SELECT DISTINCT - 74 * + 81 + - 60, + 4 / + - 41 + + - NULLIF ( - 32, - COUNT ( DISTINCT 14 ) ) / - 40 + - - 88 + - 77 AS col2
----
-6054
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1019
SELECT ALL + COALESCE ( + 81, 26 * + + ( + COUNT( DISTINCT 56 ) ) * ( - 26 ) ) * 55 DIV + 62 col0
----
71

skipif mysql # not compatible
query I rowsort label-1019
SELECT ALL + COALESCE ( + 81, 26 * + + ( + COUNT ( DISTINCT 56 ) ) * ( - 26 ) ) * 55 / + 62 col0
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1020
SELECT DISTINCT - 82 * + 27 + 57 - + 96 * - 96 DIV - COUNT( * ) + - + 79 AS col2
----
-11452

skipif mysql # not compatible
query I rowsort label-1020
SELECT DISTINCT - 82 * + 27 + 57 - + 96 * - 96 / - COUNT ( * ) + - + 79 AS col2
----
-11452

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1021
SELECT DISTINCT + 99 * CAST( - - 71 AS SIGNED ) + 17
----
7046

skipif mysql # not compatible
query I rowsort label-1021
SELECT DISTINCT + 99 * CAST ( - - 71 AS INTEGER ) + 17
----
7046

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT ALL + COUNT( * ) + - 82 + - 43
----
-124

skipif mysql # not compatible
query I rowsort label-1022
SELECT ALL + COUNT ( * ) + - 82 + - 43
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT DISTINCT SUM( ALL + - 27 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-1023
SELECT DISTINCT SUM ( ALL + - 27 ) AS col2
----
-27

query I rowsort
SELECT ALL + 83 * + 44
----
3652

query I rowsort
SELECT ALL + 10 + 78 * + - 33
----
-2564

query I rowsort
SELECT DISTINCT 28 * - 98
----
-2744

query II rowsort
SELECT ALL 87 - + 65, + 9 AS col0
----
22
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT ALL + 84 * + 13 * - + COUNT( * ) AS col0
----
-1092

skipif mysql # not compatible
query I rowsort label-1028
SELECT ALL + 84 * + 13 * - + COUNT ( * ) AS col0
----
-1092

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT - ( - 47 ) + - MIN( DISTINCT 71 )
----
-24

skipif mysql # not compatible
query I rowsort label-1029
SELECT - ( - 47 ) + - MIN ( DISTINCT 71 )
----
-24

query I rowsort
SELECT ALL ( 60 ) col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1031
SELECT + COUNT( * ) + - 92 + - - 12 * NULLIF ( + + ( 28 ), - COUNT( * ) ) AS col0
----
245

skipif mysql # not compatible
query I rowsort label-1031
SELECT + COUNT ( * ) + - 92 + - - 12 * NULLIF ( + + ( 28 ), - COUNT ( * ) ) AS col0
----
245

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT ALL + 11 - - MAX( ALL + 98 ) col1
----
109

skipif mysql # not compatible
query I rowsort label-1032
SELECT ALL + 11 - - MAX ( ALL + 98 ) col1
----
109

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1033
SELECT ALL 7 AS col2, CAST( NULL AS DECIMAL ) * 23 AS col0
----
7
NULL

skipif mysql # not compatible
query II rowsort label-1033
SELECT ALL 7 AS col2, CAST ( NULL AS REAL ) * 23 AS col0
----
7
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1034
SELECT - - 89 AS col2, SUM( DISTINCT - CAST( NULL AS SIGNED ) )
----
89
NULL

skipif mysql # not compatible
query II rowsort label-1034
SELECT - - 89 AS col2, SUM ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
89
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1035
SELECT ALL 56 DIV + 33 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1035
SELECT ALL 56 / + 33 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT + 26 * + CASE - + 32 WHEN + ( + COUNT( * ) ) * + 42 + MIN( 2 ) THEN NULL ELSE - 80 END + - + 94 AS col0
----
-2174

skipif mysql # not compatible
query I rowsort label-1036
SELECT + 26 * + CASE - + 32 WHEN + ( + COUNT ( * ) ) * + 42 + MIN ( 2 ) THEN NULL ELSE - 80 END + - + 94 AS col0
----
-2174

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1037
SELECT ALL - 66 AS col0, - CAST( + 94 AS SIGNED ) AS col2
----
-66
-94

skipif mysql # not compatible
query II rowsort label-1037
SELECT ALL - 66 AS col0, - CAST ( + 94 AS INTEGER ) AS col2
----
-66
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-1038
SELECT + + 45 DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-1038
SELECT + + 45 / - 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT - - MIN( DISTINCT + 86 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-1039
SELECT - - MIN ( DISTINCT + 86 ) AS col0
----
86

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

query II rowsort
SELECT - - 99, + 48 AS col1
----
99
48

query II rowsort
SELECT ALL + 43, + 37 + 9 AS col1
----
43
46

onlyif mysql # DIV for integer division: 
query I rowsort label-1043
SELECT ALL - 6 DIV - 41 * - 63
----
0

skipif mysql # not compatible
query I rowsort label-1043
SELECT ALL - 6 / - 41 * - 63
----
0

query II rowsort
SELECT - - 1 * - 11, - 70 AS col2
----
-11
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1045
SELECT - - COALESCE ( - + 7, + CAST( 96 AS SIGNED ), + CAST( NULL AS SIGNED ) ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-1045
SELECT - - COALESCE ( - + 7, + CAST ( 96 AS INTEGER ), + CAST ( NULL AS INTEGER ) ) AS col0
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1046
SELECT - + 26 * - CAST( NULL AS SIGNED ) * - - 70 * - 4 / + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1046
SELECT - + 26 * - CAST ( NULL AS INTEGER ) * - - 70 * - 4 / + + COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT 93, + COALESCE ( + 39, - 31 ) AS col0
----
93
39

query I rowsort
SELECT ALL 45 * 13 AS col0
----
585

query I rowsort
SELECT + 85 * + 9
----
765

query II rowsort
SELECT + 53, 1 AS col1
----
53
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1051
SELECT ALL - - 23 DIV 28 + + 53 + 15 DIV - 68 * + 18 + - - 4 + 1 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-1051
SELECT ALL - - 23 / 28 + + 53 + 15 / - 68 * + 18 + - - 4 + 1 AS col1
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1052
SELECT - 92 DIV - + 81 - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1052
SELECT - 92 / - + 81 - COUNT ( * )
----
0

query II rowsort
SELECT 37 col0, + 65
----
37
65

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1054
SELECT DISTINCT - 28 DIV - COALESCE ( 21, - - 38 * CAST( NULL AS SIGNED ) + + 84, - 46 ) + + 79 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-1054
SELECT DISTINCT - 28 / - COALESCE ( 21, - - 38 * CAST ( NULL AS INTEGER ) + + 84, - 46 ) + + 79 AS col0
----
80

query I rowsort
SELECT + + 43 * + 59 + 2 * 34 * + 79 + 78 + + - 77 * - 60 * + 26 + - 4
----
128103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1056
SELECT DISTINCT 71 DIV + 51 + + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1056
SELECT DISTINCT 71 / + 51 + + COUNT ( * ) AS col2
----
2

query I rowsort
SELECT DISTINCT 30 * ( - 24 ) col2
----
-720

query I rowsort
SELECT + 69 * - ( - 93 ) AS col0
----
6417

query I rowsort
SELECT + 36 + + - 78 AS col0
----
-42

query I rowsort
SELECT 60 * - 14 + 77 AS col1
----
-763

query II rowsort
SELECT - 18 * 85 AS col0, - 57 col0
----
-1530
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT ALL - 71 * + 74 + + 74 * + - CASE + - 10 WHEN 70 THEN NULL WHEN COUNT( * ) THEN - - 52 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1062
SELECT ALL - 71 * + 74 + + 74 * + - CASE + - 10 WHEN 70 THEN NULL WHEN COUNT ( * ) THEN - - 52 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1063
SELECT ( MAX( - - 16 ) )
----
16

skipif mysql # not compatible
query I rowsort label-1063
SELECT ( MAX ( - - 16 ) )
----
16

query I rowsort
SELECT ALL - 22 * + - 58 * - - 59 + - 64
----
75220

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT - 23 * 89 + + 98 + - 37 + - 73 * + 18 + + + 86 * COUNT( * ) AS col0
----
-3214

skipif mysql # not compatible
query I rowsort label-1065
SELECT - 23 * 89 + + 98 + - 37 + - 73 * + 18 + + + 86 * COUNT ( * ) AS col0
----
-3214

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

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

query I rowsort
SELECT ALL 5 * + 7 AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1068
SELECT ALL + 45 * + ( - MIN( ALL + 43 ) ) - - CASE ( + 81 ) WHEN + 71 THEN - + 68 WHEN + - 4 + - - 3 + - 0 / - + ( 50 ) + + + ( + - 21 ) + + 94 / - 4 THEN NULL ELSE NULL END + + + 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1068
SELECT ALL + 45 * + ( - MIN ( ALL + 43 ) ) - - CASE ( + 81 ) WHEN + 71 THEN - + 68 WHEN + - 4 + - - 3 + - 0 / - + ( 50 ) + + + ( + - 21 ) + + 94 / - 4 THEN NULL ELSE NULL END + + + 73 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 23 * - - 85
----
1955

onlyif mysql # aggregate syntax: 
query I rowsort label-1070
SELECT ALL 66 * - 19 - - 31 + COUNT( * ) * - + 60 * ( + 4 ) + - 25 + + SUM( + 13 ) AS col0
----
-1475

skipif mysql # not compatible
query I rowsort label-1070
SELECT ALL 66 * - 19 - - 31 + COUNT ( * ) * - + 60 * ( + 4 ) + - 25 + + SUM ( + 13 ) AS col0
----
-1475

query I rowsort
SELECT - 52 * + 47
----
-2444

onlyif mysql # aggregate syntax: 
query I rowsort label-1072
SELECT CASE - + 25 WHEN - + COUNT( * ) * - 3 * - - 95 - + 14 THEN NULL WHEN - 27 THEN COALESCE ( ( COUNT( DISTINCT - + 37 ) ), 69 * - 27 * COUNT( * ) + + 66 * COUNT( DISTINCT - 65 ) * 96 + + 53 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1072
SELECT CASE - + 25 WHEN - + COUNT ( * ) * - 3 * - - 95 - + 14 THEN NULL WHEN - 27 THEN COALESCE ( ( COUNT ( DISTINCT - + 37 ) ), 69 * - 27 * COUNT ( * ) + + 66 * COUNT ( DISTINCT - 65 ) * 96 + + 53 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1073
SELECT + 85 * - 72 + + SUM( ALL 35 ) DIV ( - - 63 ) DIV - - COALESCE ( - + 2, + 59 ) + + + 36 + + + 38 - - - MIN( + 67 ) AS col0
----
-6113

skipif mysql # not compatible
query I rowsort label-1073
SELECT + 85 * - 72 + + SUM ( ALL 35 ) / ( - - 63 ) / - - COALESCE ( - + 2, + 59 ) + + + 36 + + + 38 - - - MIN ( + 67 ) AS col0
----
-6113

onlyif mysql # aggregate syntax: 
query III rowsort label-1074
SELECT COUNT( - + 80 ) AS col0, + COUNT( * ) + + 40 * + ( + 50 ) + - MIN( + + 41 ) + + 81 * - 42 AS col1, MAX( ALL - COALESCE ( - + 70, + 98 - - + 45 ) )
----
1
-1442
70

skipif mysql # not compatible
query III rowsort label-1074
SELECT COUNT ( - + 80 ) AS col0, + COUNT ( * ) + + 40 * + ( + 50 ) + - MIN ( + + 41 ) + + 81 * - 42 AS col1, MAX ( ALL - COALESCE ( - + 70, + 98 - - + 45 ) )
----
1
-1442
70

query I rowsort
SELECT - 92 * + 93 AS col1
----
-8556

query II rowsort
SELECT ALL ( + - 56 ), ( + 88 ) col0
----
-56
88

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1079
SELECT - COUNT( * ) - - 46 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-1079
SELECT - COUNT ( * ) - - 46 AS col1
----
45

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1080
SELECT DISTINCT - - 24 * - - 40, CAST( NULL AS DECIMAL ) / - + MAX( DISTINCT + 19 ) AS col1
----
960
NULL

skipif mysql # not compatible
query II rowsort label-1080
SELECT DISTINCT - - 24 * - - 40, CAST ( NULL AS REAL ) / - + MAX ( DISTINCT + 19 ) AS col1
----
960
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1081
SELECT ALL CAST( + + CASE - AVG ( + + 19 ) WHEN 34 * COUNT( * ) - + - 69 - + 21 + - 61 THEN NULL WHEN - + 1 * 5 + 99 THEN - 41 END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1081
SELECT ALL CAST ( + + CASE - AVG ( + + 19 ) WHEN 34 * COUNT ( * ) - + - 69 - + 21 + - 61 THEN NULL WHEN - + 1 * 5 + 99 THEN - 41 END AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1082
SELECT - ( - 84 ) + - - 98 * + - COALESCE ( 84, + - COUNT( * ) * + CAST( + 12 AS SIGNED ) * - CAST( 57 AS SIGNED ) * - + 56 + + 57 - + 73 ) AS col2
----
-8148

skipif mysql # not compatible
query I rowsort label-1082
SELECT - ( - 84 ) + - - 98 * + - COALESCE ( 84, + - COUNT ( * ) * + CAST ( + 12 AS INTEGER ) * - CAST ( 57 AS INTEGER ) * - + 56 + + 57 - + 73 ) AS col2
----
-8148

onlyif mysql # aggregate syntax: 
query I rowsort label-1083
SELECT 14 - NULLIF ( + COUNT( ALL - 95 ), 47 * - ( + 95 ) * 94 - - + 12 + + ( - + AVG ( DISTINCT + NULLIF ( + - 2, + 12 * - 42 ) ) ) )
----
13

skipif mysql # not compatible
query I rowsort label-1083
SELECT 14 - NULLIF ( + COUNT ( ALL - 95 ), 47 * - ( + 95 ) * 94 - - + 12 + + ( - + AVG ( DISTINCT + NULLIF ( + - 2, + 12 * - 42 ) ) ) )
----
13

query I rowsort
SELECT 93 + - 50 AS col1
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1085
SELECT ALL ( + MAX( ALL - 57 ) ) + + 50 DIV + 59
----
-57

skipif mysql # not compatible
query I rowsort label-1085
SELECT ALL ( + MAX ( ALL - 57 ) ) + + 50 / + 59
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1086
SELECT + COUNT( * ) + - 88 - - - CASE + CASE 19 WHEN + ( - 79 ) * + COUNT( * ) + + 79 + + CAST( NULL AS SIGNED ) THEN + 48 WHEN - 19 + 77 THEN NULL END WHEN + 66 / + ( + 68 ) THEN - 49 / - 66 + SUM( ALL 91 ) + + 88 + + + 34 + - MIN( DISTINCT - 88 ) END / + MIN( + 98 ) * + + 64 - 86 * MAX( DISTINCT + 28 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1086
SELECT + COUNT ( * ) + - 88 - - - CASE + CASE 19 WHEN + ( - 79 ) * + COUNT ( * ) + + 79 + + CAST ( NULL AS INTEGER ) THEN + 48 WHEN - 19 + 77 THEN NULL END WHEN + 66 / + ( + 68 ) THEN - 49 / - 66 + SUM ( ALL 91 ) + + 88 + + + 34 + - MIN ( DISTINCT - 88 ) END / + MIN ( + 98 ) * + + 64 - 86 * MAX ( DISTINCT + 28 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1087
SELECT ALL - + CAST( - - 8 AS SIGNED ) + + - 59 * + 82 + - CAST( NULL AS SIGNED ) + COUNT( * ) / - 97 * + + 9 * - + 73 * + + CASE + 89 WHEN + - COUNT( * ) THEN 79 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1087
SELECT ALL - + CAST ( - - 8 AS INTEGER ) + + - 59 * + 82 + - CAST ( NULL AS INTEGER ) + COUNT ( * ) / - 97 * + + 9 * - + 73 * + + CASE + 89 WHEN + - COUNT ( * ) THEN 79 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1088
SELECT ALL - COUNT( * ) + + MAX( DISTINCT + 16 ) * + 55
----
879

skipif mysql # not compatible
query I rowsort label-1088
SELECT ALL - COUNT ( * ) + + MAX ( DISTINCT + 16 ) * + 55
----
879

query I rowsort
SELECT + 40 + - 57 + 28 * + 51
----
1411

onlyif mysql # aggregate syntax: 
query II rowsort label-1090
SELECT ALL + 9 + + 86 AS col1, 35 + + - 20 + - - 48 * - NULLIF ( - - COUNT( * ), - 0 ) * 29 AS col1
----
95
-1377

skipif mysql # not compatible
query II rowsort label-1090
SELECT ALL + 9 + + 86 AS col1, 35 + + - 20 + - - 48 * - NULLIF ( - - COUNT ( * ), - 0 ) * 29 AS col1
----
95
-1377

onlyif mysql # aggregate syntax: 
query I rowsort label-1091
SELECT ALL - 29 + + COUNT( * ) * + 15
----
-14

skipif mysql # not compatible
query I rowsort label-1091
SELECT ALL - 29 + + COUNT ( * ) * + 15
----
-14

query I rowsort
SELECT 63 * - - 6 AS col2
----
378

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1094
SELECT DISTINCT 65 + COUNT( * ) + + 84 + 1 - - - 65 * + 36 + SUM( + 83 ) * + + CAST( NULL AS SIGNED ) * 20 + COUNT( * ) * + - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-1094
SELECT DISTINCT 65 + COUNT ( * ) + + 84 + 1 - - - 65 * + 36 + SUM ( + 83 ) * + + CAST ( NULL AS INTEGER ) * 20 + COUNT ( * ) * + - 14
----
NULL

query I rowsort
SELECT DISTINCT 83 * 31
----
2573

query I rowsort
SELECT 60 + 76
----
136

query I rowsort
SELECT ALL 17 * + - 95 * - - 2 * - 77 col2
----
248710

query II rowsort
SELECT ALL - 5 AS col0, ( + - 72 ) AS col1
----
-5
-72

query I rowsort
SELECT DISTINCT 11 - + 18 AS col0
----
-7

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1101
SELECT DISTINCT - 5, 30 DIV + 59 + + + COALESCE ( 90, - CAST( + 25 AS SIGNED ) ) AS col2
----
-5
90

skipif mysql # not compatible
query II rowsort label-1101
SELECT DISTINCT - 5, 30 / + 59 + + + COALESCE ( 90, - CAST ( + 25 AS INTEGER ) ) AS col2
----
-5
90

query I rowsort
SELECT 46 * + 71 * + - 15 AS col2
----
-48990

query II rowsort
SELECT 95, - 1 AS col0
----
95
-1

query II rowsort
SELECT 68 AS col1, + 58 AS col1
----
68
58

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

skipif mysql # not compatible
query I rowsort label-1105
SELECT COUNT ( ALL 7 ) / - COUNT ( * ) col0
----
-1

query I rowsort
SELECT ALL 4 * 18
----
72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT ALL + 56 * - MIN( 45 ) AS col1
----
-2520

skipif mysql # not compatible
query I rowsort label-1108
SELECT ALL + 56 * - MIN ( 45 ) AS col1
----
-2520

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

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

query I rowsort
SELECT 36 + + - 32 + - 9 + + 23 + + + 48 * + 25
----
1218

query II rowsort
SELECT + 53, - 79 AS col2
----
53
-79

query I rowsort
SELECT - COALESCE ( - 79, - 87 ) + + + ( - + 37 )
----
42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1113
SELECT - 75 DIV - - CAST( + 14 AS SIGNED )
----
-5

skipif mysql # not compatible
query I rowsort label-1113
SELECT - 75 / - - CAST ( + 14 AS INTEGER )
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-1114
SELECT ALL + 73 + + 36 - - COUNT( * ) AS col2, - 56 AS col0
----
110
-56

skipif mysql # not compatible
query II rowsort label-1114
SELECT ALL + 73 + + 36 - - COUNT ( * ) AS col2, - 56 AS col0
----
110
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-1115
SELECT ALL + 24 + - + 94 + 51 * NULLIF ( - 29, 8 ) DIV - + 40
----
-34

skipif mysql # not compatible
query I rowsort label-1115
SELECT ALL + 24 + - + 94 + 51 * NULLIF ( - 29, 8 ) / - + 40
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1116
SELECT DISTINCT - SUM( ALL + 10 ) + + + 35 * - + ( - + 26 ) * + ( - 67 ) col2
----
-60980

skipif mysql # not compatible
query I rowsort label-1116
SELECT DISTINCT - SUM ( ALL + 10 ) + + + 35 * - + ( - + 26 ) * + ( - 67 ) col2
----
-60980

query I rowsort
SELECT ALL - 32 + - 77
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT NULLIF ( NULLIF ( - + 22, + 33 - - - COUNT( * ) + - SUM( 62 ) ), + + 43 + - 4 + MIN( DISTINCT - 60 ) / - 76 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-1118
SELECT NULLIF ( NULLIF ( - + 22, + 33 - - - COUNT ( * ) + - SUM ( 62 ) ), + + 43 + - 4 + MIN ( DISTINCT - 60 ) / - 76 ) AS col1
----
-22

query I rowsort
SELECT ALL + 63 + - 26 col0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1120
SELECT DISTINCT - - CAST( 30 AS SIGNED ) * - + 10 AS col2
----
-300

skipif mysql # not compatible
query I rowsort label-1120
SELECT DISTINCT - - CAST ( 30 AS INTEGER ) * - + 10 AS col2
----
-300

query II rowsort
SELECT ALL - 88 * + + 65 * 52 col0, - 25 * + 19 AS col2
----
-297440
-475

onlyif mysql # DIV for integer division: 
query I rowsort label-1122
SELECT - 91 DIV - - 22 col0
----
-4

skipif mysql # not compatible
query I rowsort label-1122
SELECT - 91 / - - 22 col0
----
-4

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1124
SELECT ALL - 72 + - COALESCE ( - MAX( ALL 0 ), - 22, + 31, + 99 - + 11 DIV + 50 )
----
-72

skipif mysql # not compatible
query I rowsort label-1124
SELECT ALL - 72 + - COALESCE ( - MAX ( ALL 0 ), - 22, + 31, + 99 - + 11 / + 50 )
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-1125
SELECT - COUNT( - + ( - 97 ) ) AS col0, + 8 - - - ( ( - - 62 ) ) * - + 63 AS col2
----
-1
3914

skipif mysql # not compatible
query II rowsort label-1125
SELECT - COUNT ( - + ( - 97 ) ) AS col0, + 8 - - - ( ( - - 62 ) ) * - + 63 AS col2
----
-1
3914

onlyif mysql # DIV for integer division: 
query I rowsort label-1126
SELECT - 78 DIV 70 - - 90 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-1126
SELECT - 78 / 70 - - 90 AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT ALL - NULLIF ( COUNT( * ), - + 61 / + + 80 )
----
-1

skipif mysql # not compatible
query I rowsort label-1127
SELECT ALL - NULLIF ( COUNT ( * ), - + 61 / + + 80 )
----
-1

query I rowsort
SELECT DISTINCT + 78 * ( + - 21 ) AS col0
----
-1638

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1129
SELECT DISTINCT 40 * 20 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1129
SELECT DISTINCT 40 * 20 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 15 * - 63 * 98 - + + 66
----
-92676

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT SUM( ALL + 40 ) * + + 52
----
2080

skipif mysql # not compatible
query I rowsort label-1131
SELECT SUM ( ALL + 40 ) * + + 52
----
2080

query I rowsort
SELECT 66 * - + 4
----
-264

onlyif mysql # DIV for integer division: 
query I rowsort label-1133
SELECT DISTINCT + 34 DIV - 41 col2
----
0

skipif mysql # not compatible
query I rowsort label-1133
SELECT DISTINCT + 34 / - 41 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1134
SELECT 40 + + SUM( DISTINCT + 59 ) col0
----
99

skipif mysql # not compatible
query I rowsort label-1134
SELECT 40 + + SUM ( DISTINCT + 59 ) col0
----
99

query I rowsort
SELECT ALL + 25 * + - ( + 11 ) * + NULLIF ( - COALESCE ( + 54, + 72 * 95 ), - + NULLIF ( - + 74, + 39 ) ) AS col2
----
14850

onlyif mysql # DIV for integer division: 
query I rowsort label-1136
SELECT 47 DIV COALESCE ( 33, 18 - + 56 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1136
SELECT 47 / COALESCE ( 33, 18 - + 56 ) col2
----
1

query I rowsort
SELECT ALL 10 * + + ( + - 1 ) AS col1
----
-10

query I rowsort
SELECT 56 * 96 AS col0
----
5376

query I rowsort
SELECT 92 * 38 AS col0
----
3496

query I rowsort
SELECT + ( + + 41 ) * - + 20 * + 88 + - + 7 AS col2
----
-72167

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT DISTINCT 63 * + COUNT( + 26 )
----
63

skipif mysql # not compatible
query I rowsort label-1141
SELECT DISTINCT 63 * + COUNT ( + 26 )
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-1142
SELECT 75 + + 89 + 34 DIV 1 * - 93 AS col1
----
-2998

skipif mysql # not compatible
query I rowsort label-1142
SELECT 75 + + 89 + 34 / 1 * - 93 AS col1
----
-2998

query I rowsort
SELECT ALL - 62 * + 24 * - 38 AS col1
----
56544

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

skipif mysql # not compatible
query I rowsort label-1144
SELECT ALL - MIN ( ALL - 76 )
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1145
SELECT ALL 68 + + CAST( + 34 AS SIGNED ) * COUNT( ALL - - 29 ) + + 97 + + - 55 AS col0
----
144

skipif mysql # not compatible
query I rowsort label-1145
SELECT ALL 68 + + CAST ( + 34 AS INTEGER ) * COUNT ( ALL - - 29 ) + + 97 + + - 55 AS col0
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1146
SELECT DISTINCT 67 + + CASE 71 WHEN 25 / - SUM( DISTINCT + + CAST( 34 AS SIGNED ) ) * 66 THEN - COUNT( * ) WHEN - 17 THEN + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1146
SELECT DISTINCT 67 + + CASE 71 WHEN 25 / - SUM ( DISTINCT + + CAST ( 34 AS INTEGER ) ) * 66 THEN - COUNT ( * ) WHEN - 17 THEN + COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT + - 83 * - - 99 AS col1
----
-8217

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1148
SELECT DISTINCT - CAST( - 77 AS SIGNED ) + 20 DIV - 41
----
77

skipif mysql # not compatible
query I rowsort label-1148
SELECT DISTINCT - CAST ( - 77 AS INTEGER ) + 20 / - 41
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1149
SELECT - ( + CASE - MIN( ALL - + 9 ) WHEN - COUNT( * ) THEN NULL ELSE 78 / + + COUNT( * ) + - 78 + + CAST( NULL AS SIGNED ) + + 23 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1149
SELECT - ( + CASE - MIN ( ALL - + 9 ) WHEN - COUNT ( * ) THEN NULL ELSE 78 / + + COUNT ( * ) + - 78 + + CAST ( NULL AS INTEGER ) + + 23 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1150
SELECT - NULLIF ( COUNT( * ), - 24 + + 8 + + 14 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1150
SELECT - NULLIF ( COUNT ( * ), - 24 + + 8 + + 14 ) AS col0
----
-1

query I rowsort
SELECT + 81 - + + 84
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1152
SELECT + CAST( - 92 AS SIGNED ) + + 64 * - + 11 AS col0
----
-796

skipif mysql # not compatible
query I rowsort label-1152
SELECT + CAST ( - 92 AS INTEGER ) + + 64 * - + 11 AS col0
----
-796

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1153
SELECT ALL - 84 DIV + COUNT( * ), 52 AS col2
----
-84
52

skipif mysql # not compatible
query II rowsort label-1153
SELECT ALL - 84 / + COUNT ( * ), 52 AS col2
----
-84
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1154
SELECT ALL + - SUM( DISTINCT + 69 ) + - COALESCE ( - - 58, 60 ) col1
----
-127

skipif mysql # not compatible
query I rowsort label-1154
SELECT ALL + - SUM ( DISTINCT + 69 ) + - COALESCE ( - - 58, 60 ) col1
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT DISTINCT 96 + - + ( 9 ) - - COUNT( * ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-1155
SELECT DISTINCT 96 + - + ( 9 ) - - COUNT ( * ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-1156
SELECT + 36 * COUNT( * ) AS col0, + 59
----
36
59

skipif mysql # not compatible
query II rowsort label-1156
SELECT + 36 * COUNT ( * ) AS col0, + 59
----
36
59

query II rowsort
SELECT + + 12 + + 24, 95 AS col1
----
36
95

onlyif mysql # DIV for integer division: 
query I rowsort label-1158
SELECT - + 6 - 8 DIV + - NULLIF ( - 40, + 72 + + 4 - + 32 ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-1158
SELECT - + 6 - 8 / + - NULLIF ( - 40, + 72 + + 4 - + 32 ) AS col2
----
-6

query I rowsort
SELECT ALL + 1 - - 50 + + - 66
----
-15

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1161
SELECT + CASE CAST( - - 33 AS DECIMAL ) WHEN - - 35 + + 61 THEN NULL ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-1161
SELECT + CASE CAST ( - - 33 AS REAL ) WHEN - - 35 + + 61 THEN NULL ELSE COUNT ( * ) END
----
1

query I rowsort
SELECT + 11 + - + 69 + 10 AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-1163
SELECT + 83 + + COUNT( * ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-1163
SELECT + 83 + + COUNT ( * ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT ALL CASE 71 WHEN - 22 THEN + 30 * + + 2 END - + COUNT( DISTINCT - ( + 58 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1164
SELECT ALL CASE 71 WHEN - 22 THEN + 30 * + + 2 END - + COUNT ( DISTINCT - ( + 58 ) )
----
NULL

query I rowsort
SELECT - 0 * + 75
----
0

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

query I rowsort
SELECT DISTINCT + 38 * + 86
----
3268

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT ALL + MIN( ALL - - 84 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-1168
SELECT ALL + MIN ( ALL - - 84 ) AS col2
----
84

query I rowsort
SELECT - 86 * + 29 + - 24 AS col0
----
-2518

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

query II rowsort
SELECT ALL + 11, + 43 col0
----
11
43

query I rowsort
SELECT + ( - - NULLIF ( + CASE - 37 WHEN - + 11 THEN NULL WHEN - 10 THEN + - 68 + 46 END, - 78 ) )
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1174
SELECT + 73 DIV + ( 33 ) + + + 38 + + + 43 * + 30 * + 93 * - 13 * COUNT( * ) AS col1
----
-1559570

skipif mysql # not compatible
query I rowsort label-1174
SELECT + 73 / + ( 33 ) + + + 38 + + + 43 * + 30 * + 93 * - 13 * COUNT ( * ) AS col1
----
-1559570

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1177
SELECT ALL + 30 col1, + COUNT( * ) DIV + ( + MAX( ALL 52 ) ) - MAX( ALL 56 ) + 67 AS col0
----
30
11

skipif mysql # not compatible
query II rowsort label-1177
SELECT ALL + 30 col1, + COUNT ( * ) / + ( + MAX ( ALL 52 ) ) - MAX ( ALL 56 ) + 67 AS col0
----
30
11

query I rowsort
SELECT - 10 + + - 36
----
-46

query II rowsort
SELECT DISTINCT + 14, 91 AS col2
----
14
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1180
SELECT ALL 60 * - 41 + + - 86 + - 35 + - + 55 + + - 86 + - + 80 * - SUM( + + 30 ) + - + 69
----
-391

skipif mysql # not compatible
query I rowsort label-1180
SELECT ALL 60 * - 41 + + - 86 + - 35 + - + 55 + + - 86 + - + 80 * - SUM ( + + 30 ) + - + 69
----
-391

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1181
SELECT ALL + 15 * AVG ( DISTINCT - 77 ) + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1181
SELECT ALL + 15 * AVG ( DISTINCT - 77 ) + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1182
SELECT + 47 * + COUNT( * ) - + 28 + + 1 * - + 82 * - + COUNT( * ) col0
----
101

skipif mysql # not compatible
query I rowsort label-1182
SELECT + 47 * + COUNT ( * ) - + 28 + + 1 * - + 82 * - + COUNT ( * ) col0
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT COALESCE ( + COUNT( 6 ), 14 + - ( - COUNT( * ) ), 4 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1183
SELECT COALESCE ( + COUNT ( 6 ), 14 + - ( - COUNT ( * ) ), 4 ) col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1184
SELECT - 51 DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-1184
SELECT - 51 / + 77
----
0

query I rowsort
SELECT + 56 + - 48
----
8

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

query I rowsort
SELECT + - 79 * - 79
----
6241

query I rowsort
SELECT - 79 + + 49 * 9
----
362

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT ALL + + 62 * + - COUNT( * ) + - + 73 + + 54 + - + 47 * 26 - + 18
----
-1321

skipif mysql # not compatible
query I rowsort label-1189
SELECT ALL + + 62 * + - COUNT ( * ) + - + 73 + + 54 + - + 47 * 26 - + 18
----
-1321

query I rowsort
SELECT + + 10 + - + 48
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1191
SELECT MAX( DISTINCT + + 39 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-1191
SELECT MAX ( DISTINCT + + 39 ) AS col1
----
39

query I rowsort
SELECT + - 36 + - - 35 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1193
SELECT ALL CASE + 74 WHEN - 16 THEN NULL WHEN + COUNT( ALL - 29 ) * + 57 * 78 THEN - 78 WHEN + + 48 * + 85 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1193
SELECT ALL CASE + 74 WHEN - 16 THEN NULL WHEN + COUNT ( ALL - 29 ) * + 57 * 78 THEN - 78 WHEN + + 48 * + 85 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1194
SELECT + COALESCE ( 58, 23, - 61 ) + 51 DIV 94 + - 12 * + + 66 * 28 + - COUNT( * ) - 43 AS col0
----
-22162

skipif mysql # not compatible
query I rowsort label-1194
SELECT + COALESCE ( 58, 23, - 61 ) + 51 / 94 + - 12 * + + 66 * 28 + - COUNT ( * ) - 43 AS col0
----
-22162

query I rowsort
SELECT + 82 * + COALESCE ( - + 96, 23 )
----
-7872

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

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

query I rowsort
SELECT DISTINCT + 22 - + 20 AS col0
----
2

query I rowsort
SELECT ALL - 89 * + - 43 AS col2
----
3827

query I rowsort
SELECT ALL 53 * - + ( + NULLIF ( + 89, + + 83 ) ) AS col0
----
-4717

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

skipif mysql # not compatible
query II rowsort label-1201
SELECT 82 AS col0, - CAST ( NULL AS INTEGER )
----
82
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1202
SELECT + 35 * + CASE + - CAST( NULL AS SIGNED ) WHEN CAST( NULL AS SIGNED ) + - 11 + + 40 / + + AVG ( DISTINCT + + COALESCE ( + - 48, + + 50 ) ) THEN + + 41 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1202
SELECT + 35 * + CASE + - CAST ( NULL AS INTEGER ) WHEN CAST ( NULL AS INTEGER ) + - 11 + + 40 / + + AVG ( DISTINCT + + COALESCE ( + - 48, + + 50 ) ) THEN + + 41 END AS col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1204
SELECT + 47 - - 52 + - ( + 70 ) - ( 74 ) DIV + 84 + + - ( + 90 ), + 78 - + - 3 * + 40 + 81 * + 15 AS col1
----
-61
1413

skipif mysql # not compatible
query II rowsort label-1204
SELECT + 47 - - 52 + - ( + 70 ) - ( 74 ) / + 84 + + - ( + 90 ), + 78 - + - 3 * + 40 + 81 * + 15 AS col1
----
-61
1413

onlyif mysql # aggregate syntax: 
query II rowsort label-1205
SELECT 98 AS col2, MAX( ALL - - 28 ) * - + CASE + - 16 WHEN - - COALESCE ( - + ( - + 82 ), + 14 ) THEN - 52 ELSE NULL END + + 83 * + 38 AS col0
----
98
NULL

skipif mysql # not compatible
query II rowsort label-1205
SELECT 98 AS col2, MAX ( ALL - - 28 ) * - + CASE + - 16 WHEN - - COALESCE ( - + ( - + 82 ), + 14 ) THEN - 52 ELSE NULL END + + 83 * + 38 AS col0
----
98
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1206
SELECT + COUNT( * ) * - SUM( ALL + - 11 ) DIV + + 11 AS col1
----
1

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

query I rowsort
SELECT + 99 * + 1
----
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1208
SELECT - 5 * 67 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1208
SELECT - 5 * 67 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1209
SELECT ALL COUNT( * ) DIV 83 + - - 99 * + 90 + + 16 * + 67 * - - MAX( ALL 7 )
----
16414

skipif mysql # not compatible
query I rowsort label-1209
SELECT ALL COUNT ( * ) / 83 + - - 99 * + 90 + + 16 * + 67 * - - MAX ( ALL 7 )
----
16414

query II rowsort
SELECT ALL + 1 AS col0, + 10 AS col1
----
1
10

query II rowsort
SELECT DISTINCT + 4 AS col1, 15
----
4
15

query II rowsort
SELECT + 69 - - 42 AS col1, + 95
----
111
95

onlyif mysql # DIV for integer division: 
query I rowsort label-1213
SELECT DISTINCT 31 DIV 53 + - + 15 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-1213
SELECT DISTINCT 31 / 53 + - + 15 AS col1
----
-15

query II rowsort
SELECT 85 * - 10, 70 * - 61 AS col1
----
-850
-4270

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1216
SELECT 6 col1, - CAST( NULL AS SIGNED ) / + - 58 col0
----
6
NULL

skipif mysql # not compatible
query II rowsort label-1216
SELECT 6 col1, - CAST ( NULL AS INTEGER ) / + - 58 col0
----
6
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1217
SELECT MAX( 53 ) + + 29
----
82

skipif mysql # not compatible
query I rowsort label-1217
SELECT MAX ( 53 ) + + 29
----
82

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

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

query II rowsort
SELECT 10 - - + 1 AS col2, 14 + + - 51 + - 69 + - 81 - + 68 * + 79 + + - 62
----
11
-5621

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT ALL + 99 * + 58 * + CASE - + COUNT( - + 25 ) WHEN + 80 THEN - - COUNT( * ) / 81 WHEN + - 50 THEN ( - 52 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1220
SELECT ALL + 99 * + 58 * + CASE - + COUNT ( - + 25 ) WHEN + 80 THEN - - COUNT ( * ) / 81 WHEN + - 50 THEN ( - 52 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1221
SELECT DISTINCT - COUNT( * ) AS col2, 9 * - - 15 col0
----
-1
135

skipif mysql # not compatible
query II rowsort label-1221
SELECT DISTINCT - COUNT ( * ) AS col2, 9 * - - 15 col0
----
-1
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1222
SELECT ALL - 90 + + 27 * + CAST( NULL AS SIGNED ) + - ( - 9 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1222
SELECT ALL - 90 + + 27 * + CAST ( NULL AS INTEGER ) + - ( - 9 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1223
SELECT ALL - 24 AS col1, CAST( NULL AS SIGNED ) col1, CAST( + 79 AS SIGNED ) - COUNT( DISTINCT + 64 ) + + 66
----
-24
NULL
144

skipif mysql # not compatible
query III rowsort label-1223
SELECT ALL - 24 AS col1, CAST ( NULL AS INTEGER ) col1, CAST ( + 79 AS INTEGER ) - COUNT ( DISTINCT + 64 ) + + 66
----
-24
NULL
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1224
SELECT + 31 * + + CAST( NULL AS SIGNED ) * - 29 + - 32 * + - 82 + + 42 * - - ( - ( + 37 ) ) * + - ( + - 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1224
SELECT + 31 * + + CAST ( NULL AS INTEGER ) * - 29 + - 32 * + - 82 + + 42 * - - ( - ( + 37 ) ) * + - ( + - 19 )
----
NULL

query I rowsort
SELECT ALL 24 * 97 AS col1
----
2328

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1226
SELECT - 68 + 95 + 24 - + 2 - - - 59 + - 35 + + + 62 + + 50 + - ( - 4 ) * - 34 * COUNT( * ) * - 30 + + NULLIF ( 40, - 31 * 89 ) * ( 93 ) + COUNT( * ) DIV + + 48
----
7867

skipif mysql # not compatible
query I rowsort label-1226
SELECT - 68 + 95 + 24 - + 2 - - - 59 + - 35 + + + 62 + + 50 + - ( - 4 ) * - 34 * COUNT ( * ) * - 30 + + NULLIF ( 40, - 31 * 89 ) * ( 93 ) + COUNT ( * ) / + + 48
----
7867

query I rowsort
SELECT DISTINCT - - COALESCE ( 32, + + 90 )
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-1228
SELECT DISTINCT - - 64 DIV + - 44
----
-1

skipif mysql # not compatible
query I rowsort label-1228
SELECT DISTINCT - - 64 / + - 44
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1229
SELECT ALL - - COUNT( * ) - + 18 * 84 + + 78 + - 9 + - 29 * - 68 * + ( + - MIN( ALL - 94 ) ) * - 59 * + COUNT( * ) col1
----
-10938154

skipif mysql # not compatible
query I rowsort label-1229
SELECT ALL - - COUNT ( * ) - + 18 * 84 + + 78 + - 9 + - 29 * - 68 * + ( + - MIN ( ALL - 94 ) ) * - 59 * + COUNT ( * ) col1
----
-10938154

query I rowsort
SELECT 6 * + 65 AS col2
----
390

query I rowsort
SELECT ALL 30 * - 11
----
-330

query I rowsort
SELECT DISTINCT - + 97 - ( + 27 )
----
-124

query II rowsort
SELECT - 90 AS col0, + 40 + - - 19 AS col2
----
-90
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT + 18 + COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-1234
SELECT + 18 + COUNT ( * )
----
19

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

skipif mysql # not compatible
query I rowsort label-1235
SELECT ALL - COUNT ( * ) / 58
----
0

query I rowsort
SELECT 86 * + - 76 col1
----
-6536

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

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

query II rowsort
SELECT + 66 - + 43 col0, 9
----
23
9

query I rowsort
SELECT 32 * - + CASE - 85 WHEN - + 32 + + 29 THEN + - ( + 11 ) END
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 93 * + 2 col0
----
-186

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

skipif mysql # not compatible
query I rowsort label-1242
SELECT ALL + COUNT ( * ) - + ( + 28 ) AS col2
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1243
SELECT ALL + CAST( NULL AS SIGNED ) * - - 1 + - 15 / + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-1243
SELECT ALL + CAST ( NULL AS INTEGER ) * - - 1 + - 15 / + 84
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1244
SELECT MIN( 16 ) - - 30, + COUNT( * ) AS col2
----
46
1

skipif mysql # not compatible
query II rowsort label-1244
SELECT MIN ( 16 ) - - 30, + COUNT ( * ) AS col2
----
46
1

query I rowsort
SELECT 69 * 27 AS col2
----
1863

onlyif mysql # aggregate syntax: 
query I rowsort label-1246
SELECT 76 + - ( - + 73 ) + 24 * - + MAX( DISTINCT - 52 ) AS col0
----
1397

skipif mysql # not compatible
query I rowsort label-1246
SELECT 76 + - ( - + 73 ) + 24 * - + MAX ( DISTINCT - 52 ) AS col0
----
1397

query I rowsort
SELECT DISTINCT 53 + + 88 col2
----
141

query II rowsort
SELECT ALL 11 + - 39, + NULLIF ( + 45, 64 * + + 72 + + - 54 ) AS col2
----
-28
45

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

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

query I rowsort
SELECT ALL 88 + - 92
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1251
SELECT 66 + - - CAST( NULL AS SIGNED ) * - 9 * 11
----
NULL

skipif mysql # not compatible
query I rowsort label-1251
SELECT 66 + - - CAST ( NULL AS INTEGER ) * - 9 * 11
----
NULL

query I rowsort
SELECT ALL 5 * + 20 AS col2
----
100

query II rowsort
SELECT DISTINCT - 21 + + 24, 82 AS col2
----
3
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1254
SELECT DISTINCT 40 * + 97 * - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1254
SELECT DISTINCT 40 * + 97 * - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT ALL 52 + + 98 col1, - 97
----
150
-97

query I rowsort
SELECT DISTINCT 75 + 34 + - ( + + 66 ) + - 85 * 72
----
-6077

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT DISTINCT 87 + + 39 * - + MAX( - 82 ) AS col1
----
3285

skipif mysql # not compatible
query I rowsort label-1257
SELECT DISTINCT 87 + + 39 * - + MAX ( - 82 ) AS col1
----
3285

query I rowsort
SELECT DISTINCT 4 * + 68 AS col0
----
272

onlyif mysql # DIV for integer division: 
query I rowsort label-1259
SELECT 75 DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-1259
SELECT 75 / 82
----
0

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

query II rowsort
SELECT DISTINCT - 49 * - 26 AS col1, 59 AS col1
----
1274
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT + SUM( - - 54 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-1262
SELECT + SUM ( - - 54 ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-1263
SELECT DISTINCT - SUM( - 17 ) AS col2, + 4 AS col0
----
17
4

skipif mysql # not compatible
query II rowsort label-1263
SELECT DISTINCT - SUM ( - 17 ) AS col2, + 4 AS col0
----
17
4

onlyif mysql # aggregate syntax: 
query II rowsort label-1264
SELECT + MIN( - 38 ) AS col0, - 54 col2
----
-38
-54

skipif mysql # not compatible
query II rowsort label-1264
SELECT + MIN ( - 38 ) AS col0, - 54 col2
----
-38
-54

query I rowsort
SELECT ALL - CASE 15 WHEN + 94 * + 34 + + 75 THEN NULL ELSE + 29 + - 6 * 12 END - 28
----
15

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1267
SELECT + 24 * + COALESCE ( + 43, 76, CAST( - MIN( - 68 ) AS SIGNED ) )
----
1032

skipif mysql # not compatible
query I rowsort label-1267
SELECT + 24 * + COALESCE ( + 43, 76, CAST ( - MIN ( - 68 ) AS INTEGER ) )
----
1032

query II rowsort
SELECT + 64 + - 60, 99 AS col1
----
4
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1269
SELECT DISTINCT 42 * 39 * CASE - COUNT( * ) WHEN + 14 THEN - + ( - - 2 ) WHEN - + 41 THEN + - 35 END * - + 42 + - ( - AVG ( - - 28 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1269
SELECT DISTINCT 42 * 39 * CASE - COUNT ( * ) WHEN + 14 THEN - + ( - - 2 ) WHEN - + 41 THEN + - 35 END * - + 42 + - ( - AVG ( - - 28 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1270
SELECT ALL - CASE + - 17 WHEN + 30 * 53 + - 21 THEN + + CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1270
SELECT ALL - CASE + - 17 WHEN + 30 * 53 + - 21 THEN + + CAST ( NULL AS INTEGER ) END AS col0
----
NULL

query I rowsort
SELECT + 91 * - - 96
----
8736

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT ALL - - 94 / + + 89 * + 88 * + - CASE 44 WHEN + + 52 THEN 93 * - 41 / + 6 WHEN + COUNT( * ) * 16 * 56 * + MAX( ALL + - 71 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1272
SELECT ALL - - 94 / + + 89 * + 88 * + - CASE 44 WHEN + + 52 THEN 93 * - 41 / + 6 WHEN + COUNT ( * ) * 16 * 56 * + MAX ( ALL + - 71 ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 40 * - 84 AS col0
----
-3360

query I rowsort
SELECT 76 + 21 col1
----
97

query I rowsort
SELECT 50 * - 85 AS col2
----
-4250

query I rowsort
SELECT 85 + + 48 + + 98 col2
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT ALL - 34 + - 30 * - + 70 * - + COUNT( * ) * 17 * + 89 * 28 AS col1
----
-88964434

skipif mysql # not compatible
query I rowsort label-1277
SELECT ALL - 34 + - 30 * - + 70 * - + COUNT ( * ) * 17 * + 89 * 28 AS col1
----
-88964434

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

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

query II rowsort
SELECT 17 AS col1, + 76 * + 25 AS col2
----
17
1900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1280
SELECT COUNT( - NULLIF ( + + 87, + 32 ) ) DIV + 35
----
0

skipif mysql # not compatible
query I rowsort label-1280
SELECT COUNT ( - NULLIF ( + + 87, + 32 ) ) / + 35
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT ALL - 7 + - 95 * SUM( ALL 67 ) + + - COUNT( * ) AS col2
----
-6373

skipif mysql # not compatible
query I rowsort label-1281
SELECT ALL - 7 + - 95 * SUM ( ALL 67 ) + + - COUNT ( * ) AS col2
----
-6373

onlyif mysql # aggregate syntax: 
query I rowsort label-1282
SELECT 75 * + - SUM( - 96 )
----
7200

skipif mysql # not compatible
query I rowsort label-1282
SELECT 75 * + - SUM ( - 96 )
----
7200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1283
SELECT ALL - 34 + MAX( ALL 49 ) + - CAST( + 79 AS SIGNED ) col0
----
-64

skipif mysql # not compatible
query I rowsort label-1283
SELECT ALL - 34 + MAX ( ALL 49 ) + - CAST ( + 79 AS INTEGER ) col0
----
-64

query II rowsort
SELECT 36, 70 AS col1
----
36
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1285
SELECT DISTINCT 99 + + 89 - - 9 * + COUNT( * ) AS col1
----
197

skipif mysql # not compatible
query I rowsort label-1285
SELECT DISTINCT 99 + + 89 - - 9 * + COUNT ( * ) AS col1
----
197

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT ALL MAX( 82 ) + - 23 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-1286
SELECT ALL MAX ( 82 ) + - 23 AS col0
----
59

query I rowsort
SELECT - 34 + + 54 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT + 40 * - MIN( ALL + 87 ) * 92
----
-320160

skipif mysql # not compatible
query I rowsort label-1288
SELECT + 40 * - MIN ( ALL + 87 ) * 92
----
-320160

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT ALL NULLIF ( COUNT( * ), + 90 * + - 20 * COUNT( DISTINCT + 99 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1289
SELECT ALL NULLIF ( COUNT ( * ), + 90 * + - 20 * COUNT ( DISTINCT + 99 ) )
----
1

query I rowsort
SELECT - ( - - ( - 16 ) ) + + 62
----
78

query II rowsort
SELECT 31 AS col2, 47 AS col1
----
31
47

onlyif mysql # DIV for integer division: 
query II rowsort label-1292
SELECT 66 AS col1, 70 DIV - 44
----
66
-1

skipif mysql # not compatible
query II rowsort label-1292
SELECT 66 AS col1, 70 / - 44
----
66
-1

query I rowsort
SELECT ALL + NULLIF ( - - 5, - 55 ) * + 32 - - - 0 AS col1
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-1294
SELECT - COUNT( * ) * - 20 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-1294
SELECT - COUNT ( * ) * - 20 AS col0
----
20

query II rowsort
SELECT + 10 * + + 82 * + - 57, + 64 col1
----
-46740
64

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1296
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, 87 - + 25 + 85 * 5 - + 88 DIV + + 2
----
NULL
443

skipif mysql # not compatible
query II rowsort label-1296
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, 87 - + 25 + 85 * 5 - + 88 / + + 2
----
NULL
443

onlyif mysql # aggregate syntax: 
query I rowsort label-1297
SELECT 9 * - 41 + + + 61 + COUNT( 49 ) + + + 63 - + + 28 + + CASE + 48 WHEN + 58 * 5 THEN - 77 + - 3 WHEN + NULLIF ( - ( + + 8 ), - + 91 ) / - 72 - COUNT( * ) THEN + - 80 + + 21 - + + CASE - 50 WHEN - 66 THEN - 41 END + - 48 / SUM( DISTINCT 13 ) * - 78 * - 63 * 64 - + - 57 END + - 46 * COUNT( * ) * + 4 * + 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1297
SELECT 9 * - 41 + + + 61 + COUNT ( 49 ) + + + 63 - + + 28 + + CASE + 48 WHEN + 58 * 5 THEN - 77 + - 3 WHEN + NULLIF ( - ( + + 8 ), - + 91 ) / - 72 - COUNT ( * ) THEN + - 80 + + 21 - + + CASE - 50 WHEN - 66 THEN - 41 END + - 48 / SUM ( DISTINCT 13 ) * - 78 * - 63 * 64 - + - 57 END + - 46 * COUNT ( * ) * + 4 * + 38 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1298
SELECT + + 31 AS col1, 63 DIV 44 DIV + COUNT( * ) AS col1
----
31
1

skipif mysql # not compatible
query II rowsort label-1298
SELECT + + 31 AS col1, 63 / 44 / + COUNT ( * ) AS col1
----
31
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1299
SELECT - 3 + 90 + + CAST( + - 99 AS SIGNED )
----
-12

skipif mysql # not compatible
query I rowsort label-1299
SELECT - 3 + 90 + + CAST ( + - 99 AS INTEGER )
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-1300
SELECT - + 48 DIV - 47 - + ( + ( + 61 ) )
----
-60

skipif mysql # not compatible
query I rowsort label-1300
SELECT - + 48 / - 47 - + ( + ( + 61 ) )
----
-60

query I rowsort
SELECT ALL + 34 * + + 90
----
3060

query I rowsort
SELECT + 86 - 54 * + - 11
----
680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1303
SELECT + - CAST( NULL AS SIGNED ) * + + 56 / + ( - + 1 ) - 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1303
SELECT + - CAST ( NULL AS INTEGER ) * + + 56 / + ( - + 1 ) - 9 AS col2
----
NULL

query I rowsort
SELECT ALL + COALESCE ( 71, 46 * + - 5 )
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1305
SELECT + + 79 DIV - 74 + - 8, SUM( DISTINCT 87 ) AS col1
----
-9
87

skipif mysql # not compatible
query II rowsort label-1305
SELECT + + 79 / - 74 + - 8, SUM ( DISTINCT 87 ) AS col1
----
-9
87

query I rowsort
SELECT DISTINCT - 15 * 66 AS col1
----
-990

query I rowsort
SELECT + - 4 + + 80 AS col1
----
76

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

query I rowsort
SELECT ALL - + 92 * - 59
----
5428

onlyif mysql # aggregate syntax: 
query I rowsort label-1310
SELECT + MAX( ALL - 73 ) * + 68 + 68 col0
----
-4896

skipif mysql # not compatible
query I rowsort label-1310
SELECT + MAX ( ALL - 73 ) * + 68 + 68 col0
----
-4896

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

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

query I rowsort
SELECT - 67 * 26 + + + 87
----
-1655

onlyif mysql # aggregate syntax: 
query II rowsort label-1313
SELECT ALL + + 72 col0, MAX( + - 65 ) AS col1
----
72
-65

skipif mysql # not compatible
query II rowsort label-1313
SELECT ALL + + 72 col0, MAX ( + - 65 ) AS col1
----
72
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1314
SELECT + - COUNT( - + 33 ) + + - CAST( NULL AS SIGNED ) AS col0, 96 DIV - 15
----
NULL
-6

skipif mysql # not compatible
query II rowsort label-1314
SELECT + - COUNT ( - + 33 ) + + - CAST ( NULL AS INTEGER ) AS col0, 96 / - 15
----
NULL
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1315
SELECT - NULLIF ( - 16, - - 21 ) * + MIN( - - 39 ) * + 84 + 55 + + 56 * - - 88
----
57399

skipif mysql # not compatible
query I rowsort label-1315
SELECT - NULLIF ( - 16, - - 21 ) * + MIN ( - - 39 ) * + 84 + 55 + + 56 * - - 88
----
57399

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1316
SELECT ALL 12 + + COALESCE ( - COUNT( * ), + CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) * - 51 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-1316
SELECT ALL 12 + + COALESCE ( - COUNT ( * ), + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) * - 51 ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1317
SELECT + COUNT( * ) + MIN( + 25 ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-1317
SELECT + COUNT ( * ) + MIN ( + 25 ) AS col1
----
26

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-1319
SELECT DISTINCT NULLIF ( 52, + 64 - + CAST( NULL AS SIGNED ) + + SUM( DISTINCT + CAST( 44 AS SIGNED ) ) ) + + CASE CAST( NULL AS DECIMAL ) WHEN + NULLIF ( + 60, 60 ) THEN + ( - + 60 ) + + - 82 + COUNT( * ) ELSE 86 + + + 99 + - + 84 + 70 DIV - 76 END
----
153

skipif mysql # not compatible
query I rowsort label-1319
SELECT DISTINCT NULLIF ( 52, + 64 - + CAST ( NULL AS INTEGER ) + + SUM ( DISTINCT + CAST ( 44 AS INTEGER ) ) ) + + CASE CAST ( NULL AS REAL ) WHEN + NULLIF ( + 60, 60 ) THEN + ( - + 60 ) + + - 82 + COUNT ( * ) ELSE 86 + + + 99 + - + 84 + 70 / - 76 END
----
153

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1321
SELECT ALL CASE 0 WHEN - ( 26 ) THEN COUNT( DISTINCT + 74 ) + + NULLIF ( 95, + COUNT( * ) ) WHEN COALESCE ( 82, 31 * - 36 * - MIN( + - 45 ) ) + - - 42 + - - 76 - - 30 + 20 * + + COUNT( * ) THEN - - CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1321
SELECT ALL CASE 0 WHEN - ( 26 ) THEN COUNT ( DISTINCT + 74 ) + + NULLIF ( 95, + COUNT ( * ) ) WHEN COALESCE ( 82, 31 * - 36 * - MIN ( + - 45 ) ) + - - 42 + - - 76 - - 30 + 20 * + + COUNT ( * ) THEN - - CAST ( NULL AS REAL ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1322
SELECT - CASE - 99 WHEN + 95 THEN - + 94 + - COUNT( * ) ELSE NULL END + + - 4 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1322
SELECT - CASE - 99 WHEN + 95 THEN - + 94 + - COUNT ( * ) ELSE NULL END + + - 4 col2
----
NULL

query II rowsort
SELECT - 46 + + + 57 AS col2, - 7 * + 32
----
11
-224

onlyif mysql # aggregate syntax: 
query II rowsort label-1324
SELECT ALL - COUNT( * ) + - - 33 AS col2, 39
----
32
39

skipif mysql # not compatible
query II rowsort label-1324
SELECT ALL - COUNT ( * ) + - - 33 AS col2, 39
----
32
39

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1326
SELECT + NULLIF ( + MAX( - 20 ), - 31 - 70 ) + - 17
----
-37

skipif mysql # not compatible
query I rowsort label-1326
SELECT + NULLIF ( + MAX ( - 20 ), - 31 - 70 ) + - 17
----
-37

query I rowsort
SELECT - 40 - + 57
----
-97

query I rowsort
SELECT ALL NULLIF ( 67, ( + - 88 ) ) AS col0
----
67

onlyif mysql # DIV for integer division: 
query II rowsort label-1329
SELECT DISTINCT + 58 DIV + 50 AS col1, 87
----
1
87

skipif mysql # not compatible
query II rowsort label-1329
SELECT DISTINCT + 58 / + 50 AS col1, 87
----
1
87

onlyif mysql # DIV for integer division: 
query I rowsort label-1330
SELECT ALL - 3 - - 64 + - - 70 DIV 36
----
62

skipif mysql # not compatible
query I rowsort label-1330
SELECT ALL - 3 - - 64 + - - 70 / 36
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT - 92 + + COUNT( * ) * + COUNT( * ) * + 66 * + + 46 * + 69 + - 72
----
209320

skipif mysql # not compatible
query I rowsort label-1331
SELECT - 92 + + COUNT ( * ) * + COUNT ( * ) * + 66 * + + 46 * + 69 + - 72
----
209320

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1332
SELECT ALL + COALESCE ( - - NULLIF ( - 26, - CAST( NULL AS DECIMAL ) ), 98 ) - - 12
----
-14

skipif mysql # not compatible
query I rowsort label-1332
SELECT ALL + COALESCE ( - - NULLIF ( - 26, - CAST ( NULL AS REAL ) ), 98 ) - - 12
----
-14

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

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

query II rowsort
SELECT - 10 * - ( + 47 ) * 8 AS col1, + 83 AS col1
----
3760
83

query I rowsort
SELECT DISTINCT + 31 * + 21 AS col0
----
651

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1336
SELECT ALL - ( + CAST( + NULLIF ( - + 76, COUNT( * ) + - 85 ) AS SIGNED ) ) * 75
----
5700

skipif mysql # not compatible
query I rowsort label-1336
SELECT ALL - ( + CAST ( + NULLIF ( - + 76, COUNT ( * ) + - 85 ) AS INTEGER ) ) * 75
----
5700

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

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

query I rowsort
SELECT - 57 + - 69
----
-126

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1340
SELECT DISTINCT - 86 * - + 16 * + - COUNT( * ) * - 76, NULLIF ( + 1, + 94 ) AS col0
----
104576
1

skipif mysql # not compatible
query II rowsort label-1340
SELECT DISTINCT - 86 * - + 16 * + - COUNT ( * ) * - 76, NULLIF ( + 1, + 94 ) AS col0
----
104576
1

query I rowsort
SELECT - 33 + - 21
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1342
SELECT - + 43 * MAX( DISTINCT 8 )
----
-344

skipif mysql # not compatible
query I rowsort label-1342
SELECT - + 43 * MAX ( DISTINCT 8 )
----
-344

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1344
SELECT - ( 27 ) * - CAST( - 95 AS SIGNED ) + - 14 AS col0, 69 AS col2
----
-2579
69

skipif mysql # not compatible
query II rowsort label-1344
SELECT - ( 27 ) * - CAST ( - 95 AS INTEGER ) + - 14 AS col0, 69 AS col2
----
-2579
69

query I rowsort
SELECT + 79 * - 87 AS col0
----
-6873

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1346
SELECT + - NULLIF ( + ( - CAST( NULL AS DECIMAL ) ), + COUNT( * ) ) + 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1346
SELECT + - NULLIF ( + ( - CAST ( NULL AS REAL ) ), + COUNT ( * ) ) + 92 AS col0
----
NULL

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

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

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

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

query I rowsort
SELECT DISTINCT + 6 * 25 AS col1
----
150

onlyif mysql # DIV for integer division: 
query I rowsort label-1350
SELECT DISTINCT + + 86 DIV - + 14 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-1350
SELECT DISTINCT + + 86 / - + 14 AS col1
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1351
SELECT ALL 3 * + CAST( NULL AS SIGNED ), 20 AS col0
----
NULL
20

skipif mysql # not compatible
query II rowsort label-1351
SELECT ALL 3 * + CAST ( NULL AS INTEGER ), 20 AS col0
----
NULL
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT - + 56 * CASE + - 7 WHEN 11 THEN NULL WHEN MIN( ALL + ( 79 ) ) THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1352
SELECT - + 56 * CASE + - 7 WHEN 11 THEN NULL WHEN MIN ( ALL + ( 79 ) ) THEN COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT + COUNT( * ) * 46 + ( - 84 )
----
-38

skipif mysql # not compatible
query I rowsort label-1353
SELECT + COUNT ( * ) * 46 + ( - 84 )
----
-38

query I rowsort
SELECT - CASE + - 58 WHEN + 78 THEN + 27 END AS col1
----
NULL

query I rowsort
SELECT - - 81 * - 98
----
-7938

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1356
SELECT + 95 + - 3 + + - 78 DIV + 99 AS col1, COUNT( ALL 91 ) - - 61 AS col1
----
92
62

skipif mysql # not compatible
query II rowsort label-1356
SELECT + 95 + - 3 + + - 78 / + 99 AS col1, COUNT ( ALL 91 ) - - 61 AS col1
----
92
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1357
SELECT + 44 * - CAST( - 98 AS SIGNED ) * + 65 * COUNT( * ) + 66 AS col0
----
280346

skipif mysql # not compatible
query I rowsort label-1357
SELECT + 44 * - CAST ( - 98 AS INTEGER ) * + 65 * COUNT ( * ) + 66 AS col0
----
280346

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1359
SELECT ALL 65 DIV 11 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-1359
SELECT ALL 65 / 11 AS col2
----
5

query II rowsort
SELECT 70, + 59 AS col2
----
70
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1361
SELECT ALL SUM( DISTINCT + + 84 ) + + 27
----
111

skipif mysql # not compatible
query I rowsort label-1361
SELECT ALL SUM ( DISTINCT + + 84 ) + + 27
----
111

query I rowsort
SELECT ( 11 ) * + 7
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1363
SELECT ALL COUNT( * ) - - 59 - - - 84 DIV - 59 + + 37 AS col2, MIN( - + 74 ) + - 1
----
98
-75

skipif mysql # not compatible
query II rowsort label-1363
SELECT ALL COUNT ( * ) - - 59 - - - 84 / - 59 + + 37 AS col2, MIN ( - + 74 ) + - 1
----
98
-75

query II rowsort
SELECT ALL 38 col2, + 98
----
38
98

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1366
SELECT 9 + 5 DIV - 30
----
9

skipif mysql # not compatible
query I rowsort label-1366
SELECT 9 + 5 / - 30
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1367
SELECT ALL - 9 DIV 24
----
0

skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL - 9 / 24
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1368
SELECT 16 DIV 52 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1368
SELECT 16 / 52 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1369
SELECT 51 DIV 64
----
0

skipif mysql # not compatible
query I rowsort label-1369
SELECT 51 / 64
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1370
SELECT - 32 DIV 37 - 84
----
-84

skipif mysql # not compatible
query I rowsort label-1370
SELECT - 32 / 37 - 84
----
-84

query I rowsort
SELECT ALL - ( - 73 ) + 73
----
146

query I rowsort
SELECT 35 - 21 AS col0
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1373
SELECT ALL 73 DIV COUNT( DISTINCT 31 ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-1373
SELECT ALL 73 / COUNT ( DISTINCT 31 ) AS col1
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1374
SELECT 41 DIV - ( - MIN( + 70 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1374
SELECT 41 / - ( - MIN ( + 70 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT ALL + 10 * - ( + COUNT( * ) * - 91 )
----
910

skipif mysql # not compatible
query I rowsort label-1375
SELECT ALL + 10 * - ( + COUNT ( * ) * - 91 )
----
910

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

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

query I rowsort
SELECT ALL - 47 + 83 * - 53 AS col2
----
-4446

query I rowsort
SELECT DISTINCT + 20 + 34
----
54

query I rowsort
SELECT 34 + - 27
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT MAX( - 34 ) * + 18 AS col0
----
-612

skipif mysql # not compatible
query I rowsort label-1380
SELECT MAX ( - 34 ) * + 18 AS col0
----
-612

query I rowsort
SELECT DISTINCT + 2 + + 24 * + 40
----
962

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

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

query I rowsort
SELECT DISTINCT COALESCE ( - 15, + 12 ) * + 57
----
-855

onlyif mysql # aggregate syntax: 
query I rowsort label-1384
SELECT DISTINCT 82 + + ( - MIN( ALL - 70 ) )
----
152

skipif mysql # not compatible
query I rowsort label-1384
SELECT DISTINCT 82 + + ( - MIN ( ALL - 70 ) )
----
152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1385
SELECT DISTINCT + 3 - ( - CAST( - 55 AS SIGNED ) + 46 )
----
-98

skipif mysql # not compatible
query I rowsort label-1385
SELECT DISTINCT + 3 - ( - CAST ( - 55 AS INTEGER ) + 46 )
----
-98

query I rowsort
SELECT 75 + 40
----
115

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1389
SELECT 94 DIV + 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1389
SELECT 94 / + 96 AS col1
----
0

query I rowsort
SELECT 0 + COALESCE ( - 60, 51 * COALESCE ( - 66, - 62 ) + 84 ) * - ( - 64 )
----
-3840

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT - 73 * ( - SUM( ALL ( 79 ) ) * 60 ) + + 86 AS col1
----
346106

skipif mysql # not compatible
query I rowsort label-1391
SELECT - 73 * ( - SUM ( ALL ( 79 ) ) * 60 ) + + 86 AS col1
----
346106

query I rowsort
SELECT 19 + + 18 AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT ( - SUM( DISTINCT + 91 ) ) * - 37
----
3367

skipif mysql # not compatible
query I rowsort label-1393
SELECT ( - SUM ( DISTINCT + 91 ) ) * - 37
----
3367

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1395
SELECT NULLIF ( + MIN( + CAST( NULL AS SIGNED ) ), + 12 ) + + CAST( 37 AS SIGNED ) * - 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1395
SELECT NULLIF ( + MIN ( + CAST ( NULL AS INTEGER ) ), + 12 ) + + CAST ( 37 AS INTEGER ) * - 24 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1396
SELECT DISTINCT 13 * + ( 29 * MAX( - 49 ) - 33 )
----
-18902

skipif mysql # not compatible
query I rowsort label-1396
SELECT DISTINCT 13 * + ( 29 * MAX ( - 49 ) - 33 )
----
-18902

query I rowsort
SELECT - 83 * + 13
----
-1079

query I rowsort
SELECT ALL + 55 * 50 col0
----
2750

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

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

query I rowsort
SELECT 21 + + 88
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT DISTINCT MAX( DISTINCT - 76 ) * NULLIF ( + 5, 92 ) col0
----
-380

skipif mysql # not compatible
query I rowsort label-1401
SELECT DISTINCT MAX ( DISTINCT - 76 ) * NULLIF ( + 5, 92 ) col0
----
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-1402
SELECT + COUNT( * ) + 74 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-1402
SELECT + COUNT ( * ) + 74 AS col2
----
75

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

skipif mysql # not compatible
query I rowsort label-1403
SELECT ALL + CAST ( - AVG ( - ( - 71 ) ) AS INTEGER )
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1404
SELECT ALL 98 + + COALESCE ( COALESCE ( 98, + COUNT( * ) DIV 80 + 16, ( + 88 ) + + COUNT( * ) DIV ( 97 + 34 ) ), 7 * ( + 99 ), - SUM( DISTINCT - 17 ) ) * NULLIF ( - 79, + 10 DIV 71 )
----
-7644

skipif mysql # not compatible
query I rowsort label-1404
SELECT ALL 98 + + COALESCE ( COALESCE ( 98, + COUNT ( * ) / 80 + 16, ( + 88 ) + + COUNT ( * ) / ( 97 + 34 ) ), 7 * ( + 99 ), - SUM ( DISTINCT - 17 ) ) * NULLIF ( - 79, + 10 / 71 )
----
-7644

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT - 48 * NULLIF ( 36 * + CASE - 95 * - 66 WHEN - 88 THEN + CASE 40 WHEN 1 / - 76 + 24 THEN 35 ELSE 15 END WHEN MIN( ALL + 72 ) * + 11 - + 13 THEN NULL END + - 26, + COALESCE ( + 85, 89 / + 60 ) ) + - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-1405
SELECT - 48 * NULLIF ( 36 * + CASE - 95 * - 66 WHEN - 88 THEN + CASE 40 WHEN 1 / - 76 + 24 THEN 35 ELSE 15 END WHEN MIN ( ALL + 72 ) * + 11 - + 13 THEN NULL END + - 26, + COALESCE ( + 85, 89 / + 60 ) ) + - 97
----
NULL

query I rowsort
SELECT + 77 * + 99 + 77 * 42
----
10857

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT 21 / - CASE - SUM( 73 ) WHEN - SUM( DISTINCT 14 ) THEN 99 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1407
SELECT 21 / - CASE - SUM ( 73 ) WHEN - SUM ( DISTINCT 14 ) THEN 99 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1408
SELECT + CASE - 18 WHEN 20 DIV - 44 + - 50 THEN NULL ELSE + 12 END DIV ( + 30 ) + 29
----
29

skipif mysql # not compatible
query I rowsort label-1408
SELECT + CASE - 18 WHEN 20 / - 44 + - 50 THEN NULL ELSE + 12 END / ( + 30 ) + 29
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT - MAX( + 17 ) col1
----
-17

skipif mysql # not compatible
query I rowsort label-1409
SELECT - MAX ( + 17 ) col1
----
-17

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

query I rowsort
SELECT DISTINCT - - 32 * 86 + - 92 AS col0
----
2660

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT - + 73 + - MAX( 1 ) * - NULLIF ( ( COUNT( * ) ), 37 + 34 )
----
-72

skipif mysql # not compatible
query I rowsort label-1412
SELECT - + 73 + - MAX ( 1 ) * - NULLIF ( ( COUNT ( * ) ), 37 + 34 )
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-1413
SELECT DISTINCT ( 43 ) DIV 62 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1413
SELECT DISTINCT ( 43 ) / 62 AS col1
----
0

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

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

query I rowsort
SELECT - 41 + - 90 + 30
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT DISTINCT MIN( - - 22 ) * 78 - - 23
----
1739

skipif mysql # not compatible
query I rowsort label-1416
SELECT DISTINCT MIN ( - - 22 ) * 78 - - 23
----
1739

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT - 17 + - - COUNT( * ) + - ( - 85 )
----
69

skipif mysql # not compatible
query I rowsort label-1417
SELECT - 17 + - - COUNT ( * ) + - ( - 85 )
----
69

query I rowsort
SELECT - 88 * - 32
----
2816

query I rowsort
SELECT DISTINCT - 72 * + 62 AS col2
----
-4464

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

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

query I rowsort
SELECT DISTINCT + NULLIF ( + 14, + 70 )
----
14

query I rowsort
SELECT ALL 69 * 76 AS col1
----
5244

query I rowsort
SELECT DISTINCT 87 * + 79 AS col0
----
6873

onlyif mysql # DIV for integer division: 
query I rowsort label-1425
SELECT DISTINCT - ( - + 40 ) DIV 12 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-1425
SELECT DISTINCT - ( - + 40 ) / 12 AS col0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1426
SELECT - 10 DIV - 49 col2
----
0

skipif mysql # not compatible
query I rowsort label-1426
SELECT - 10 / - 49 col2
----
0

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1428
SELECT ALL - 9 * - CAST( NULL AS DECIMAL ) * 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1428
SELECT ALL - 9 * - CAST ( NULL AS REAL ) * 3 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1429
SELECT - 74 DIV - ( - 60 )
----
-1

skipif mysql # not compatible
query I rowsort label-1429
SELECT - 74 / - ( - 60 )
----
-1

query I rowsort
SELECT + 80 * 69 AS col0
----
5520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1431
SELECT ALL COUNT( ALL - CAST( 70 AS SIGNED ) ) + + ( - 69 ) * ( 0 + - 62 ) AS col2
----
4279

skipif mysql # not compatible
query I rowsort label-1431
SELECT ALL COUNT ( ALL - CAST ( 70 AS INTEGER ) ) + + ( - 69 ) * ( 0 + - 62 ) AS col2
----
4279

onlyif mysql # aggregate syntax: 
query I rowsort label-1432
SELECT - 91 * CASE + COUNT( DISTINCT 3 ) WHEN + 56 * COUNT( * ) THEN NULL ELSE 91 END * 66
----
-546546

skipif mysql # not compatible
query I rowsort label-1432
SELECT - 91 * CASE + COUNT ( DISTINCT 3 ) WHEN + 56 * COUNT ( * ) THEN NULL ELSE 91 END * 66
----
-546546

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1434
SELECT ALL + 26 + - CASE NULLIF ( 18, 32 ) WHEN - 9 THEN NULL WHEN + 20 / ( + 81 ) + + MAX( 31 ) THEN 4 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1434
SELECT ALL + 26 + - CASE NULLIF ( 18, 32 ) WHEN - 9 THEN NULL WHEN + 20 / ( + 81 ) + + MAX ( 31 ) THEN 4 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT CASE WHEN 74 <= NULL THEN 69 * 7 END col2
----
NULL

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

query I rowsort
SELECT ALL 42 + - 17
----
25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT - ( 44 ) + COUNT( 0 + ( + 23 ) ) * + 2 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-1439
SELECT - ( 44 ) + COUNT ( 0 + ( + 23 ) ) * + 2 AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1440
SELECT + CASE - COALESCE ( + 38, + 32 * MIN( ALL 22 ) ) WHEN + 50 + + COUNT( * ) THEN NULL ELSE 30 * + NULLIF ( COUNT( * ) * COUNT( * ), - COUNT( DISTINCT 68 ) ) END + - 13 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-1440
SELECT + CASE - COALESCE ( + 38, + 32 * MIN ( ALL 22 ) ) WHEN + 50 + + COUNT ( * ) THEN NULL ELSE 30 * + NULLIF ( COUNT ( * ) * COUNT ( * ), - COUNT ( DISTINCT 68 ) ) END + - 13 AS col1
----
17

query I rowsort
SELECT + - 5 * + - 49
----
245

onlyif mysql # aggregate syntax: 
query I rowsort label-1442
SELECT DISTINCT COUNT( * ) * - 90 + 1
----
-89

skipif mysql # not compatible
query I rowsort label-1442
SELECT DISTINCT COUNT ( * ) * - 90 + 1
----
-89

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1444
SELECT + 45 DIV - 2 - 70 col2
----
-92

skipif mysql # not compatible
query I rowsort label-1444
SELECT + 45 / - 2 - 70 col2
----
-92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1446
SELECT + - 44 + COUNT( * ) + 79 * - 91 col2
----
-7232

skipif mysql # not compatible
query I rowsort label-1446
SELECT + - 44 + COUNT ( * ) + 79 * - 91 col2
----
-7232

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT ALL MAX( + + 8 ) * 55
----
440

skipif mysql # not compatible
query I rowsort label-1447
SELECT ALL MAX ( + + 8 ) * 55
----
440

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT ALL 16 * + 17 * 76 - + CASE + SUM( DISTINCT - 5 ) WHEN ( - 97 ) THEN + COALESCE ( + 90, 13 * + 57, 53, - ( + 88 ) ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1448
SELECT ALL 16 * + 17 * 76 - + CASE + SUM ( DISTINCT - 5 ) WHEN ( - 97 ) THEN + COALESCE ( + 90, 13 * + 57, 53, - ( + 88 ) ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1449
SELECT + COUNT( ALL - - 9 ) + - ( - 62 )
----
63

skipif mysql # not compatible
query I rowsort label-1449
SELECT + COUNT ( ALL - - 9 ) + - ( - 62 )
----
63

query I rowsort
SELECT + 55 * + - 90 * - 5 + 41 AS col0
----
24791

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1451
SELECT + CAST( NULL AS SIGNED ) col1, - ( + NULLIF ( - 9, 12 + 28 ) ) * + 51
----
NULL
459

skipif mysql # not compatible
query II rowsort label-1451
SELECT + CAST ( NULL AS INTEGER ) col1, - ( + NULLIF ( - 9, 12 + 28 ) ) * + 51
----
NULL
459

query I rowsort
SELECT - 0 - + 35 + - - 91 AS col0
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1453
SELECT - 76 + + + COALESCE ( + CAST( NULL AS SIGNED ), COUNT( * ) + + 72 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-1453
SELECT - 76 + + + COALESCE ( + CAST ( NULL AS INTEGER ), COUNT ( * ) + + 72 ) AS col0
----
-3

query I rowsort
SELECT - 94 * COALESCE ( 25, + 30 )
----
-2350

onlyif mysql # DIV for integer division: 
query I rowsort label-1455
SELECT ALL + 12 DIV 45 col2
----
0

skipif mysql # not compatible
query I rowsort label-1455
SELECT ALL + 12 / 45 col2
----
0

query II rowsort
SELECT ALL + 59 AS col0, + 1 * - COALESCE ( - 38, 56 ) AS col1
----
59
38

query I rowsort
SELECT + 40 + - ( 14 ) + CASE + 59 WHEN + 50 THEN 29 END * - 35
----
NULL

query I rowsort
SELECT - 58 * + 20 col1
----
-1160

query I rowsort
SELECT ALL - 22 * - 48
----
1056

query I rowsort
SELECT - 34 * - 33 * + 0
----
0

query I rowsort
SELECT - 51 - + ( 22 ) + 43 * 13 AS col1
----
486

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

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

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

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

query I rowsort
SELECT + 98 + - 65 * - 85
----
5623

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1466
SELECT COUNT( * ) AS col2, + 38 * + CAST( NULL AS SIGNED ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1466
SELECT COUNT ( * ) AS col2, + 38 * + CAST ( NULL AS INTEGER ) AS col2
----
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1467
SELECT ALL + 59 * + COALESCE ( - 90, 2 ) + 96 DIV 12
----
-5302

skipif mysql # not compatible
query I rowsort label-1467
SELECT ALL + 59 * + COALESCE ( - 90, 2 ) + 96 / 12
----
-5302

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1468
SELECT - 92 + - + CAST( + 4 AS SIGNED ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-1468
SELECT - 92 + - + CAST ( + 4 AS INTEGER ) AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1469
SELECT ALL SUM( DISTINCT + - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-1469
SELECT ALL SUM ( DISTINCT + - 1 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1470
SELECT ALL COALESCE ( 44, - + 86 DIV - 20 )
----
44

skipif mysql # not compatible
query I rowsort label-1470
SELECT ALL COALESCE ( 44, - + 86 / - 20 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT - 68 + + MIN( DISTINCT 44 ) + - 55 AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-1471
SELECT - 68 + + MIN ( DISTINCT 44 ) + - 55 AS col0
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-1472
SELECT ALL - 78 DIV - 29
----
2

skipif mysql # not compatible
query I rowsort label-1472
SELECT ALL - 78 / - 29
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-1473
SELECT ALL 60 AS col0, COUNT( * ) - 65 AS col2
----
60
-64

skipif mysql # not compatible
query II rowsort label-1473
SELECT ALL 60 AS col0, COUNT ( * ) - 65 AS col2
----
60
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT ALL - - SUM( ALL + + 50 ) + + 83 * + 1 AS col0
----
133

skipif mysql # not compatible
query I rowsort label-1474
SELECT ALL - - SUM ( ALL + + 50 ) + + 83 * + 1 AS col0
----
133

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1475
SELECT - + 35 AS col1, 47 * + - CAST( + 94 AS SIGNED ) col2
----
-35
-4418

skipif mysql # not compatible
query II rowsort label-1475
SELECT - + 35 AS col1, 47 * + - CAST ( + 94 AS INTEGER ) col2
----
-35
-4418

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1476
SELECT - 1 + 65 + COALESCE ( 98, - 16 + COUNT( * ) * + 0, - 25 * CAST( NULL AS SIGNED ) ) - 89 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-1476
SELECT - 1 + 65 + COALESCE ( 98, - 16 + COUNT ( * ) * + 0, - 25 * CAST ( NULL AS INTEGER ) ) - 89 AS col0
----
73

query I rowsort
SELECT - - 89 * - 95
----
-8455

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1478
SELECT ALL + - ( + - NULLIF ( + 83, + 22 ) ) DIV - SUM( - 39 )
----
2

skipif mysql # not compatible
query I rowsort label-1478
SELECT ALL + - ( + - NULLIF ( + 83, + 22 ) ) / - SUM ( - 39 )
----
2

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

skipif mysql # not compatible
query I rowsort label-1479
SELECT - - 9 + 84 * + CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1481
SELECT + 46 * + 96 * + - ( + CAST( NULL AS SIGNED ) ) + SUM( + ( + ( 62 ) ) + + 26 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1481
SELECT + 46 * + 96 * + - ( + CAST ( NULL AS INTEGER ) ) + SUM ( + ( + ( 62 ) ) + + 26 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + NULLIF ( - 81, + ( 99 ) - + 3 * 27 ) * 46
----
-3726

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT ALL 43 / - + CASE - 49 WHEN + 14 - 52 THEN COUNT( * ) WHEN - 23 THEN NULL END * - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-1484
SELECT ALL 43 / - + CASE - 49 WHEN + 14 - 52 THEN COUNT ( * ) WHEN - 23 THEN NULL END * - 5
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1485
SELECT DISTINCT 61 DIV + 90
----
0

skipif mysql # not compatible
query I rowsort label-1485
SELECT DISTINCT 61 / + 90
----
0

query I rowsort
SELECT - NULLIF ( + 52, - 87 )
----
-52

query I rowsort
SELECT + + 11 * + COALESCE ( - 23, - 38 * 45 - 8 * 99, 56 + 76 ) + 32 + 49 AS col0
----
-172

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT - 30 * 65 + - 38 * - COUNT( * ) + + 80 * + 69
----
3608

skipif mysql # not compatible
query I rowsort label-1489
SELECT - 30 * 65 + - 38 * - COUNT ( * ) + + 80 * + 69
----
3608

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT ALL MAX( DISTINCT - 35 ) * + 90 col0
----
-3150

skipif mysql # not compatible
query I rowsort label-1491
SELECT ALL MAX ( DISTINCT - 35 ) * + 90 col0
----
-3150

onlyif mysql # aggregate syntax: 
query I rowsort label-1492
SELECT 17 * + CASE 29 WHEN - 66 * COUNT( * ) + COALESCE ( 76, + COUNT( DISTINCT + 3 ), + COUNT( * ), 28 * + 34 - + 20 ) * - NULLIF ( 41, + 76 + 83 ) THEN NULL WHEN + 51 - 73 THEN 48 + + 20 WHEN + 0 THEN 20 ELSE NULL END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1492
SELECT 17 * + CASE 29 WHEN - 66 * COUNT ( * ) + COALESCE ( 76, + COUNT ( DISTINCT + 3 ), + COUNT ( * ), 28 * + 34 - + 20 ) * - NULLIF ( 41, + 76 + 83 ) THEN NULL WHEN + 51 - 73 THEN 48 + + 20 WHEN + 0 THEN 20 ELSE NULL END + + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 64 + - 19 * - 9 + ( + CASE - 13 WHEN 61 THEN NULL WHEN + 31 THEN - AVG ( DISTINCT 98 ) END )
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1495
SELECT NULLIF ( - 67, + COUNT( * ) DIV - NULLIF ( - 41, COALESCE ( + 93, 79 * 2, COUNT( * ) ) ) * 13 + - ( COUNT( * ) ) ) DIV + COUNT( * ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-1495
SELECT NULLIF ( - 67, + COUNT ( * ) / - NULLIF ( - 41, COALESCE ( + 93, 79 * 2, COUNT ( * ) ) ) * 13 + - ( COUNT ( * ) ) ) / + COUNT ( * ) AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT MIN( DISTINCT - 49 ) * + + 17 * + + 79 AS col1
----
-65807

skipif mysql # not compatible
query I rowsort label-1496
SELECT MIN ( DISTINCT - 49 ) * + + 17 * + + 79 AS col1
----
-65807

query II rowsort
SELECT 35 + 8, 51 AS col1
----
43
51

query I rowsort
SELECT 45 + 12
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1499
SELECT ALL ( - - 5 ) + + COUNT( * ) * MAX( 8 ) + 44 * - NULLIF ( - 95, + 23 + 63 ) AS col0
----
4193

skipif mysql # not compatible
query I rowsort label-1499
SELECT ALL ( - - 5 ) + + COUNT ( * ) * MAX ( 8 ) + 44 * - NULLIF ( - 95, + 23 + 63 ) AS col0
----
4193

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1500
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - COUNT( * ), 31 * + ( 60 ) AS col1
----
NULL
1860

skipif mysql # not compatible
query II rowsort label-1500
SELECT DISTINCT CAST ( NULL AS REAL ) + - COUNT ( * ), 31 * + ( 60 ) AS col1
----
NULL
1860

query I rowsort
SELECT ALL + 46 * + + 50 AS col0
----
2300

query I rowsort
SELECT ALL - 92 * - 15
----
1380

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

query I rowsort
SELECT ALL - 49 * - 38 col0
----
1862

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT DISTINCT + ( 43 ) * - - 40 * - ( + SUM( ALL ( 91 ) ) ) AS col0
----
-156520

skipif mysql # not compatible
query I rowsort label-1505
SELECT DISTINCT + ( 43 ) * - - 40 * - ( + SUM ( ALL ( 91 ) ) ) AS col0
----
-156520

onlyif mysql # aggregate syntax: 
query I rowsort label-1506
SELECT SUM( DISTINCT 25 ) - - 73 + - - 14
----
112

skipif mysql # not compatible
query I rowsort label-1506
SELECT SUM ( DISTINCT 25 ) - - 73 + - - 14
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT + MIN( DISTINCT + - 35 ) col1
----
-35

skipif mysql # not compatible
query I rowsort label-1507
SELECT + MIN ( DISTINCT + - 35 ) col1
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1508
SELECT - CASE - 23 WHEN + 14 / + 56 * 30 + COALESCE ( + 98, 76 * - 12, - CAST( 97 AS SIGNED ) * - 11 ) / - 30 + COUNT( - NULLIF ( - 48, + 94 + - 33 ) ) * - 79 THEN - 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1508
SELECT - CASE - 23 WHEN + 14 / + 56 * 30 + COALESCE ( + 98, 76 * - 12, - CAST ( 97 AS INTEGER ) * - 11 ) / - 30 + COUNT ( - NULLIF ( - 48, + 94 + - 33 ) ) * - 79 THEN - 74 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1509
SELECT + 10 * 63 + - - 40 DIV 11 * 87
----
891

skipif mysql # not compatible
query I rowsort label-1509
SELECT + 10 * 63 + - - 40 / 11 * 87
----
891

onlyif mysql # aggregate syntax: 
query I rowsort label-1510
SELECT + 54 + + NULLIF ( - 20, CASE + 85 WHEN - 60 THEN - 46 END * COUNT( * ) ) + + COUNT( * ) * COUNT( * ) * + COUNT( * ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-1510
SELECT + 54 + + NULLIF ( - 20, CASE + 85 WHEN - 60 THEN - 46 END * COUNT ( * ) ) + + COUNT ( * ) * COUNT ( * ) * + COUNT ( * ) AS col0
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-1511
SELECT + 68 + - + 34 DIV + 61 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-1511
SELECT + 68 + - + 34 / + 61 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1512
SELECT - MIN( ALL - 95 ) * 56
----
5320

skipif mysql # not compatible
query I rowsort label-1512
SELECT - MIN ( ALL - 95 ) * 56
----
5320

onlyif mysql # DIV for integer division: 
query I rowsort label-1513
SELECT 21 * 32 DIV 91
----
7

skipif mysql # not compatible
query I rowsort label-1513
SELECT 21 * 32 / 91
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1514
SELECT COUNT( * ) * + + ( - 17 ) + + 33 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-1514
SELECT COUNT ( * ) * + + ( - 17 ) + + 33 AS col1
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-1515
SELECT 94 + - + 19 * - COUNT( * ) col1, 73 * - 27 * + 5 + - NULLIF ( 20, - 87 * - 31 ) * 28 AS col2
----
113
-10415

skipif mysql # not compatible
query II rowsort label-1515
SELECT 94 + - + 19 * - COUNT ( * ) col1, 73 * - 27 * + 5 + - NULLIF ( 20, - 87 * - 31 ) * 28 AS col2
----
113
-10415

query I rowsort
SELECT DISTINCT 88 * - - 3 + - + 49 + + - 19 AS col2
----
196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1517
SELECT 31 * - CAST( - - 46 AS SIGNED ) + - 9 AS col2
----
-1435

skipif mysql # not compatible
query I rowsort label-1517
SELECT 31 * - CAST ( - - 46 AS INTEGER ) + - 9 AS col2
----
-1435

onlyif mysql # aggregate syntax: 
query I rowsort label-1518
SELECT ALL 63 * - - SUM( ALL - 76 ) + + + NULLIF ( - + CASE 40 WHEN COUNT( * ) + 33 THEN NULL WHEN 84 + COUNT( ALL + 28 ) THEN 98 WHEN - COUNT( * ) * - NULLIF ( ( - 57 ) / 61, 46 * 39 ) THEN NULL WHEN + 5 + - 51 THEN NULL ELSE NULL END, - 49 + 51 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1518
SELECT ALL 63 * - - SUM ( ALL - 76 ) + + + NULLIF ( - + CASE 40 WHEN COUNT ( * ) + 33 THEN NULL WHEN 84 + COUNT ( ALL + 28 ) THEN 98 WHEN - COUNT ( * ) * - NULLIF ( ( - 57 ) / 61, 46 * 39 ) THEN NULL WHEN + 5 + - 51 THEN NULL ELSE NULL END, - 49 + 51 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT 94 + - 4 - ( ( - COUNT( + 53 ) ) )
----
91

skipif mysql # not compatible
query I rowsort label-1519
SELECT 94 + - 4 - ( ( - COUNT ( + 53 ) ) )
----
91

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

query I rowsort
SELECT 0 * - 46
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1523
SELECT 39 + + - 32 DIV + - SUM( ALL + 55 )
----
39

skipif mysql # not compatible
query I rowsort label-1523
SELECT 39 + + - 32 / + - SUM ( ALL + 55 )
----
39

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1526
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - 62 * - - 90 * + 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1526
SELECT DISTINCT CAST ( NULL AS REAL ) * - 62 * - - 90 * + 16 AS col2
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-1528
SELECT COUNT ( - 33 )
----
1

query I rowsort
SELECT ALL 56 + ( - 60 ) col0
----
-4

query I rowsort
SELECT 87 * 76 + - 66 * 76
----
1596

onlyif mysql # aggregate syntax: 
query I rowsort label-1531
SELECT MAX( ALL 7 ) - + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-1531
SELECT MAX ( ALL 7 ) - + COUNT ( * )
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1532
SELECT CAST( + 53 AS SIGNED ) * 25
----
1325

skipif mysql # not compatible
query I rowsort label-1532
SELECT CAST ( + 53 AS INTEGER ) * 25
----
1325

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1534
SELECT - 92 DIV - 72 + + NULLIF ( 42, - 69 + + 46 ) + 84 DIV 49 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-1534
SELECT - 92 / - 72 + + NULLIF ( 42, - 69 + + 46 ) + 84 / 49 AS col2
----
44

query II rowsort
SELECT + 49 * - 53 + + 78, 56 AS col0
----
-2519
56

query I rowsort
SELECT + - 6 + + 38
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1537
SELECT ALL MIN( + 4 ) col2
----
4

skipif mysql # not compatible
query I rowsort label-1537
SELECT ALL MIN ( + 4 ) col2
----
4

query I rowsort
SELECT + + ( + 96 ) + + 8 * - 13
----
-8

query I rowsort
SELECT ALL - - 34 * - - 64
----
2176

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1540
SELECT + CASE 61 WHEN - 30 - + CAST( NULL AS SIGNED ) - - COALESCE ( 66, 85 + 6 ) * 28 THEN NULL WHEN 27 + + 79 THEN NULL WHEN 50 * - 14 THEN - 20 ELSE ( 10 ) + - 10 END DIV 81
----
0

skipif mysql # not compatible
query I rowsort label-1540
SELECT + CASE 61 WHEN - 30 - + CAST ( NULL AS INTEGER ) - - COALESCE ( 66, 85 + 6 ) * 28 THEN NULL WHEN 27 + + 79 THEN NULL WHEN 50 * - 14 THEN - 20 ELSE ( 10 ) + - 10 END / 81
----
0

query I rowsort
SELECT DISTINCT 64 * 13 AS col2
----
832

query I rowsort
SELECT - 8 + - 11
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1543
SELECT - MIN( DISTINCT - 99 )
----
99

skipif mysql # not compatible
query I rowsort label-1543
SELECT - MIN ( DISTINCT - 99 )
----
99

query I rowsort
SELECT - 35 + ( - 44 ) AS col0
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-1545
SELECT + COALESCE ( 54, - + 45 DIV 31 + - - 38 + - 93 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-1545
SELECT + COALESCE ( 54, - + 45 / 31 + - - 38 + - 93 ) AS col1
----
54

query I rowsort
SELECT - + 99 * - 83
----
8217

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT ALL COUNT( * ) + - CASE COUNT( * ) WHEN + 75 THEN - 46 WHEN 86 THEN NULL WHEN - 56 * AVG ( DISTINCT 37 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1547
SELECT ALL COUNT ( * ) + - CASE COUNT ( * ) WHEN + 75 THEN - 46 WHEN 86 THEN NULL WHEN - 56 * AVG ( DISTINCT 37 ) THEN NULL END
----
NULL

query II rowsort
SELECT 3, + 32 * ( 0 ) AS col2
----
3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1549
SELECT DISTINCT 67 + + + MAX( - 45 )
----
22

skipif mysql # not compatible
query I rowsort label-1549
SELECT DISTINCT 67 + + + MAX ( - 45 )
----
22

query I rowsort
SELECT - 59 * - 56 col0
----
3304

query I rowsort
SELECT DISTINCT - ( 58 ) + - 46 * + 71
----
-3324

onlyif mysql # aggregate syntax: 
query I rowsort label-1552
SELECT ALL CASE + COALESCE ( + + COUNT( * ), + 69 * - + 52, + 70 ) WHEN + 55 THEN + 89 / - 54 - MAX( ALL + 76 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1552
SELECT ALL CASE + COALESCE ( + + COUNT ( * ), + 69 * - + 52, + 70 ) WHEN + 55 THEN + 89 / - 54 - MAX ( ALL + 76 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1553
SELECT + NULLIF ( 65, - 52 ) + - 31 + - - COUNT( * ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-1553
SELECT + NULLIF ( 65, - 52 ) + - 31 + - - COUNT ( * ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT + 5 * - 93 * - 92 * MAX( - 93 )
----
-3978540

skipif mysql # not compatible
query I rowsort label-1554
SELECT + 5 * - 93 * - 92 * MAX ( - 93 )
----
-3978540

onlyif mysql # aggregate syntax: 
query I rowsort label-1555
SELECT - 29 + COUNT( * ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-1555
SELECT - 29 + COUNT ( * ) AS col1
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1556
SELECT + 63, 30 * 41 / + 57 / - + 45 + CAST( NULL AS SIGNED ) * 12 AS col2
----
63
NULL

skipif mysql # not compatible
query II rowsort label-1556
SELECT + 63, 30 * 41 / + 57 / - + 45 + CAST ( NULL AS INTEGER ) * 12 AS col2
----
63
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1558
SELECT ALL + MIN( + 59 ) * 61 * - + COUNT( * ) + - 75 AS col0
----
-3674

skipif mysql # not compatible
query I rowsort label-1558
SELECT ALL + MIN ( + 59 ) * 61 * - + COUNT ( * ) + - 75 AS col0
----
-3674

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1560
SELECT DISTINCT - 33 * + CASE + 97 WHEN + ( - - 84 ) THEN + ( + CAST( NULL AS SIGNED ) ) ELSE - COALESCE ( 41, CASE WHEN NOT ( NULL ) IS NULL THEN 89 ELSE - 17 END + 78 DIV 65, + 29 + 54 ) * 46 END + + 52
----
62290

skipif mysql # not compatible
query I rowsort label-1560
SELECT DISTINCT - 33 * + CASE + 97 WHEN + ( - - 84 ) THEN + ( + CAST ( NULL AS INTEGER ) ) ELSE - COALESCE ( 41, CASE WHEN NOT ( NULL ) IS NULL THEN 89 ELSE - 17 END + 78 / 65, + 29 + 54 ) * 46 END + + 52
----
62290

query I rowsort
SELECT - 69 + + 54 AS col1
----
-15

query II rowsort
SELECT ALL 33 * + - 69 * + 82 - + 92, + 22 col0
----
-186806
22

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT COALESCE ( MAX( - 95 ), + 12, 48 )
----
-95

skipif mysql # not compatible
query I rowsort label-1564
SELECT COALESCE ( MAX ( - 95 ), + 12, 48 )
----
-95

query II rowsort
SELECT + 97 * - 23 AS col0, 76 AS col0
----
-2231
76

query I rowsort
SELECT ALL 70 * + + 25 - + 26 AS col1
----
1724

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

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

query I rowsort
SELECT - - 10 * + + 40 * + 15 * + 79 + + COALESCE ( 88, + 12 ) * + 44 AS col2
----
477872

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT ALL + NULLIF ( - + MAX( DISTINCT CASE COALESCE ( - 82, ( + 59 ) ) WHEN 6 THEN + 10 ELSE NULL END ), + 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1570
SELECT ALL + NULLIF ( - + MAX ( DISTINCT CASE COALESCE ( - 82, ( + 59 ) ) WHEN 6 THEN + 10 ELSE NULL END ), + 16 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT - - 77 * - SUM( + - 12 )
----
924

skipif mysql # not compatible
query I rowsort label-1571
SELECT - - 77 * - SUM ( + - 12 )
----
924

query I rowsort
SELECT ALL - 66 * - 49
----
3234

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

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

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

query II rowsort
SELECT + 96, 95 * - 65 - 55 * 92 - 78 AS col1
----
96
-11313

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT - MAX( + 43 ) col1
----
-43

skipif mysql # not compatible
query I rowsort label-1576
SELECT - MAX ( + 43 ) col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT - COUNT( DISTINCT - - 68 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-1577
SELECT - COUNT ( DISTINCT - - 68 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1578
SELECT + 97 AS col1, - 94 / - AVG ( ALL 80 ) / - + COUNT( * ) + - 94 + ( CASE - 91 WHEN AVG ( DISTINCT 61 ) THEN NULL WHEN COUNT( * ) * - 47 THEN 53 + COUNT( * ) END + - 23 ) AS col1
----
97
NULL

skipif mysql # not compatible
query II rowsort label-1578
SELECT + 97 AS col1, - 94 / - AVG ( ALL 80 ) / - + COUNT ( * ) + - 94 + ( CASE - 91 WHEN AVG ( DISTINCT 61 ) THEN NULL WHEN COUNT ( * ) * - 47 THEN 53 + COUNT ( * ) END + - 23 ) AS col1
----
97
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1579
SELECT ALL COUNT( * ) AS col0, MAX( DISTINCT 84 ) * - 67
----
1
-5628

skipif mysql # not compatible
query II rowsort label-1579
SELECT ALL COUNT ( * ) AS col0, MAX ( DISTINCT 84 ) * - 67
----
1
-5628

query I rowsort
SELECT + + 50 * - 59
----
-2950

query I rowsort
SELECT + + 45 * + 88
----
3960

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

query I rowsort
SELECT DISTINCT - 12 + + 17 AS col0
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1584
SELECT + - CASE - + 93 WHEN - 84 + - 95 THEN NULL WHEN - - COUNT( * ) * + - 75 + 18 * + COUNT( * ) THEN NULL ELSE 87 END * CASE 40 WHEN ( 90 ) * 62 THEN - COALESCE ( COUNT( * ), 45 ) DIV + 72 WHEN + 36 THEN 45 * - 25 ELSE + 19 + - ( + COUNT( 20 ) ) END col0
----
-1566

skipif mysql # not compatible
query I rowsort label-1584
SELECT + - CASE - + 93 WHEN - 84 + - 95 THEN NULL WHEN - - COUNT ( * ) * + - 75 + 18 * + COUNT ( * ) THEN NULL ELSE 87 END * CASE 40 WHEN ( 90 ) * 62 THEN - COALESCE ( COUNT ( * ), 45 ) / + 72 WHEN + 36 THEN 45 * - 25 ELSE + 19 + - ( + COUNT ( 20 ) ) END col0
----
-1566

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1585
SELECT ALL 55 + - 12 - + 44 - + COUNT( * ) * + COUNT( * ) * - COALESCE ( 13, + 27, - 57 DIV + 18 ) * - 97 + 59 * + 49
----
1629

skipif mysql # not compatible
query I rowsort label-1585
SELECT ALL 55 + - 12 - + 44 - + COUNT ( * ) * + COUNT ( * ) * - COALESCE ( 13, + 27, - 57 / + 18 ) * - 97 + 59 * + 49
----
1629

onlyif mysql # aggregate syntax: 
query II rowsort label-1586
SELECT 37, - CASE + 67 WHEN - 51 THEN 28 WHEN - - 97 / - 79 THEN ( MIN( + 65 ) ) ELSE NULL END AS col2
----
37
NULL

skipif mysql # not compatible
query II rowsort label-1586
SELECT 37, - CASE + 67 WHEN - 51 THEN 28 WHEN - - 97 / - 79 THEN ( MIN ( + 65 ) ) ELSE NULL END AS col2
----
37
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1587
SELECT + CASE COUNT( * ) WHEN 35 + + 33 THEN NULL WHEN - COUNT( - 48 ) THEN - 43 / - COUNT( * ) WHEN + 4 / CAST( 75 AS DECIMAL ) THEN NULL END * 1
----
NULL

skipif mysql # not compatible
query I rowsort label-1587
SELECT + CASE COUNT ( * ) WHEN 35 + + 33 THEN NULL WHEN - COUNT ( - 48 ) THEN - 43 / - COUNT ( * ) WHEN + 4 / CAST ( 75 AS REAL ) THEN NULL END * 1
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT + 11 - 93 * - NULLIF ( COUNT( + + 66 ), COUNT( * ) * 58 + AVG ( 88 ) + + 28 / + 57 ) + COUNT( * )
----
105

skipif mysql # not compatible
query I rowsort label-1590
SELECT + 11 - 93 * - NULLIF ( COUNT ( + + 66 ), COUNT ( * ) * 58 + AVG ( 88 ) + + 28 / + 57 ) + COUNT ( * )
----
105

query II rowsort
SELECT + 82 + + ( - - 29 ), - 8 col0
----
111
-8

query II rowsort
SELECT - 88 - - 49 AS col1, 98 AS col2
----
-39
98

query I rowsort
SELECT ALL 93 * + 13
----
1209

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

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

query I rowsort
SELECT DISTINCT + NULLIF ( - 90, NULLIF ( - 32, - 71 + 19 + - 15 ) + 0 )
----
-90

onlyif mysql # DIV for integer division: 
query II rowsort label-1596
SELECT + 28 + - 76 DIV 49 AS col1, 4
----
27
4

skipif mysql # not compatible
query II rowsort label-1596
SELECT + 28 + - 76 / 49 AS col1, 4
----
27
4

query I rowsort
SELECT ALL - 33 * + 71 AS col0
----
-2343

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT - 22 * - - ( - SUM( ALL + ( - 22 ) ) ) AS col1
----
-484

skipif mysql # not compatible
query I rowsort label-1598
SELECT - 22 * - - ( - SUM ( ALL + ( - 22 ) ) ) AS col1
----
-484

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1599
SELECT CAST( - - 84 AS SIGNED ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-1599
SELECT CAST ( - - 84 AS INTEGER ) AS col1
----
84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT DISTINCT + NULLIF ( 66, 29 * CASE - 75 WHEN CASE - 60 WHEN 33 + 84 THEN 11 * ( + 81 ) + 66 * 82 WHEN ( 34 ) + + 74 * 89 THEN NULL END + ( 36 ) * + 73 THEN + COUNT( * ) * + 14 END + - 82 )
----
66

skipif mysql # not compatible
query I rowsort label-1601
SELECT DISTINCT + NULLIF ( 66, 29 * CASE - 75 WHEN CASE - 60 WHEN 33 + 84 THEN 11 * ( + 81 ) + 66 * 82 WHEN ( 34 ) + + 74 * 89 THEN NULL END + ( 36 ) * + 73 THEN + COUNT ( * ) * + 14 END + - 82 )
----
66

query I rowsort
SELECT + 86 * + + 32 AS col1
----
2752

query I rowsort
SELECT DISTINCT - 17 * 26 * 6 * - 34 + + ( - 19 ) * + 78
----
88686

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

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

query II rowsort
SELECT - ( 37 ) col0, 77 * - 42 AS col1
----
-37
-3234

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1607
SELECT 20 DIV - 25 * 89 - - MAX( DISTINCT - 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-1607
SELECT 20 / - 25 * 89 - - MAX ( DISTINCT - 11 )
----
-11

query II rowsort
SELECT + 67 * + + 79 * + 51 + + 47 - 83 AS col1, + 20
----
269907
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1609
SELECT SUM( - + ( + CAST( + 97 AS SIGNED ) ) ) - - 93 * + 4 AS col0
----
275

skipif mysql # not compatible
query I rowsort label-1609
SELECT SUM ( - + ( + CAST ( + 97 AS INTEGER ) ) ) - - 93 * + 4 AS col0
----
275

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1610
SELECT + COUNT( * ) + - + 43 * + 94 DIV + COUNT( + + 26 )
----
-4041

skipif mysql # not compatible
query I rowsort label-1610
SELECT + COUNT ( * ) + - + 43 * + 94 / + COUNT ( + + 26 )
----
-4041

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1612
SELECT - 57 + - COUNT( * ) DIV MIN( + 99 ) * + - 65 * + 60 + + 0 + + 55 DIV 53
----
-56

skipif mysql # not compatible
query I rowsort label-1612
SELECT - 57 + - COUNT ( * ) / MIN ( + 99 ) * + - 65 * + 60 + + 0 + + 55 / 53
----
-56

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

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

query I rowsort
SELECT ALL - NULLIF ( + 93, - 91 * + 52 + - - 92 + - 18 + + 63 )
----
-93

query I rowsort
SELECT 68 + 64 + + 77 AS col2
----
209

query I rowsort
SELECT DISTINCT - + 46 + - 85 * - + CASE - 13 WHEN - + 51 THEN + 39 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1617
SELECT 3 DIV - - 56 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1617
SELECT 3 / - - 56 AS col2
----
0

query II rowsort
SELECT DISTINCT 1 AS col1, - 97 * 25 AS col1
----
1
-2425

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

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

skipif mysql # not compatible
query I rowsort label-1620
SELECT COUNT ( * ) / - 31 * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1621
SELECT COUNT( * ) + NULLIF ( 68, + 51 - 70 ) - - + 43 - + 60 + - 85 * 60 * + 34 AS col1
----
-173348

skipif mysql # not compatible
query I rowsort label-1621
SELECT COUNT ( * ) + NULLIF ( 68, + 51 - 70 ) - - + 43 - + 60 + - 85 * 60 * + 34 AS col1
----
-173348

query I rowsort
SELECT DISTINCT 81 - + 61
----
20

query II rowsort
SELECT ALL 18 AS col2, 31
----
18
31

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

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

query I rowsort
SELECT 28 - + 48 * + 98 AS col1
----
-4676

query I rowsort
SELECT 54 * - 69
----
-3726

onlyif mysql # aggregate syntax: 
query I rowsort label-1627
SELECT COUNT( ALL + 13 ) + 75 + COUNT( * ) * 28 AS col2
----
104

skipif mysql # not compatible
query I rowsort label-1627
SELECT COUNT ( ALL + 13 ) + 75 + COUNT ( * ) * 28 AS col2
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT DISTINCT MIN( ALL - 97 ) * - 6
----
582

skipif mysql # not compatible
query I rowsort label-1628
SELECT DISTINCT MIN ( ALL - 97 ) * - 6
----
582

onlyif mysql # aggregate syntax: 
query I rowsort label-1629
SELECT + - 41 * ( COUNT( * ) ) + ( + 86 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-1629
SELECT + - 41 * ( COUNT ( * ) ) + ( + 86 ) AS col0
----
45

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

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

query I rowsort
SELECT + 38 * - 80
----
-3040

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1632
SELECT - 47, CAST( NULL AS SIGNED ) + + + 9 AS col2
----
-47
NULL

skipif mysql # not compatible
query II rowsort label-1632
SELECT - 47, CAST ( NULL AS INTEGER ) + + + 9 AS col2
----
-47
NULL

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

skipif mysql # not compatible
query I rowsort label-1633
SELECT DISTINCT COUNT ( * ) + 45 AS col0
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-1634
SELECT + COUNT( * ), - 44 col2
----
1
-44

skipif mysql # not compatible
query II rowsort label-1634
SELECT + COUNT ( * ), - 44 col2
----
1
-44

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

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

query II rowsort
SELECT ALL + 12 + + 74 + 74, + 52 AS col1
----
160
52

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1638
SELECT DISTINCT - + 19 * - CASE - 11 WHEN COUNT( * ) * 13 THEN + - 61 * - - CAST( NULL AS SIGNED ) + 63 ELSE NULL END + 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1638
SELECT DISTINCT - + 19 * - CASE - 11 WHEN COUNT ( * ) * 13 THEN + - 61 * - - CAST ( NULL AS INTEGER ) + 63 ELSE NULL END + 5 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1639
SELECT + ( - + MAX( + 93 ) ) * - + 20
----
1860

skipif mysql # not compatible
query I rowsort label-1639
SELECT + ( - + MAX ( + 93 ) ) * - + 20
----
1860

onlyif mysql # DIV for integer division: 
query II rowsort label-1640
SELECT - 4 DIV + ( - 26 ), - 89 col2
----
0
-89

skipif mysql # not compatible
query II rowsort label-1640
SELECT - 4 / + ( - 26 ), - 89 col2
----
0
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT 10 * NULLIF ( + COUNT( * ), MIN( - + 50 ) )
----
10

skipif mysql # not compatible
query I rowsort label-1641
SELECT 10 * NULLIF ( + COUNT ( * ), MIN ( - + 50 ) )
----
10

query I rowsort
SELECT 29 - 61 * - - 95 * - 12 AS col0
----
69569

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT DISTINCT SUM( - 34 ) col0
----
-34

skipif mysql # not compatible
query I rowsort label-1643
SELECT DISTINCT SUM ( - 34 ) col0
----
-34

query I rowsort
SELECT ALL 40 * + 83 AS col1
----
3320

query I rowsort
SELECT 45 * + 9 AS col0
----
405

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1646
SELECT 19 + - - CASE 28 WHEN + 49 + - 6 * 9 THEN + 28 + NULLIF ( + ( - 78 ), 38 * COUNT( * ) ) WHEN - COUNT( DISTINCT 70 ) THEN NULL WHEN + COALESCE ( + 93, 86 + + ( 52 - + CAST( - 17 - + SUM( ALL 67 ) * - COUNT( * ) AS SIGNED ) ) ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1646
SELECT 19 + - - CASE 28 WHEN + 49 + - 6 * 9 THEN + 28 + NULLIF ( + ( - 78 ), 38 * COUNT ( * ) ) WHEN - COUNT ( DISTINCT 70 ) THEN NULL WHEN + COALESCE ( + 93, 86 + + ( 52 - + CAST ( - 17 - + SUM ( ALL 67 ) * - COUNT ( * ) AS INTEGER ) ) ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1647
SELECT 28 + + - COUNT( * ), - 70 * + NULLIF ( - 33, - 91 + + + ( - - COUNT( * ) ) ) * - 92 + + ( - 73 ) * + 85 col1
----
27
-218725

skipif mysql # not compatible
query II rowsort label-1647
SELECT 28 + + - COUNT ( * ), - 70 * + NULLIF ( - 33, - 91 + + + ( - - COUNT ( * ) ) ) * - 92 + + ( - 73 ) * + 85 col1
----
27
-218725

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT 35 * + CASE - 82 WHEN + 91 + + - 91 THEN NULL WHEN + COUNT( * ) + + 5 + 90 / ( + SUM( ALL 40 ) ) THEN - 73 - 60 WHEN - 50 THEN + NULLIF ( 17, + 14 / - 69 ) * + 65 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1648
SELECT 35 * + CASE - 82 WHEN + 91 + + - 91 THEN NULL WHEN + COUNT ( * ) + + 5 + 90 / ( + SUM ( ALL 40 ) ) THEN - 73 - 60 WHEN - 50 THEN + NULLIF ( 17, + 14 / - 69 ) * + 65 END AS col2
----
NULL

query I rowsort
SELECT 38 + - 22 AS col1
----
16

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT - CASE + COUNT( * ) WHEN + COUNT( * ) + - + COUNT( * ) THEN + 31 END * - + ( + - 6 ) * 79 * - + COUNT( * ) * - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-1653
SELECT - CASE + COUNT ( * ) WHEN + COUNT ( * ) + - + COUNT ( * ) THEN + 31 END * - + ( + - 6 ) * 79 * - + COUNT ( * ) * - 84
----
NULL

query I rowsort
SELECT + 39 + - - ( 78 )
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT ALL COALESCE ( + ( 57 ), + MAX( - 52 ) ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-1655
SELECT ALL COALESCE ( + ( 57 ), + MAX ( - 52 ) ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1656
SELECT ALL MAX( - - 32 ) * - 58 + 45 + - + NULLIF ( + COUNT( * ), + 31 + - - CASE - + 98 WHEN ( + 30 ) + 28 THEN + 45 ELSE NULL END * 60 ) * 30
----
-1841

skipif mysql # not compatible
query I rowsort label-1656
SELECT ALL MAX ( - - 32 ) * - 58 + 45 + - + NULLIF ( + COUNT ( * ), + 31 + - - CASE - + 98 WHEN ( + 30 ) + 28 THEN + 45 ELSE NULL END * 60 ) * 30
----
-1841

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT ALL COUNT( * ) * + - 14 * - 82
----
1148

skipif mysql # not compatible
query I rowsort label-1657
SELECT ALL COUNT ( * ) * + - 14 * - 82
----
1148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1658
SELECT + CAST( NULL AS SIGNED ) / - - COUNT( * ) / - 95 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1658
SELECT + CAST ( NULL AS INTEGER ) / - - COUNT ( * ) / - 95 col1
----
NULL

query I rowsort
SELECT ALL + 87 * + ( - - 5 ) - + + 99 + 44 AS col0
----
380

query I rowsort
SELECT + ( + 96 ) col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT ALL COUNT( * ) * + 64 * + + NULLIF ( 37, + - 18 * + 6 + - - COUNT( * ) * 60 ) * + 67 * 18 + - NULLIF ( 80, + 72 * 45 ) * - 44
----
2859328

skipif mysql # not compatible
query I rowsort label-1661
SELECT ALL COUNT ( * ) * + 64 * + + NULLIF ( 37, + - 18 * + 6 + - - COUNT ( * ) * 60 ) * + 67 * 18 + - NULLIF ( 80, + 72 * 45 ) * - 44
----
2859328

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1662
SELECT + CAST( - 15 AS SIGNED ) DIV 80 DIV - 78 * 74, 3 AS col2
----
0
3

skipif mysql # not compatible
query II rowsort label-1662
SELECT + CAST ( - 15 AS INTEGER ) / 80 / - 78 * 74, 3 AS col2
----
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT + MAX( + + ( + 48 ) ) * + 48 AS col0
----
2304

skipif mysql # not compatible
query I rowsort label-1663
SELECT + MAX ( + + ( + 48 ) ) * + 48 AS col0
----
2304

query I rowsort
SELECT + + 21 - + + 99 * - + 29
----
2892

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

query I rowsort
SELECT 47 * 32 + + + 40 AS col2
----
1544

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1667
SELECT ALL - CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL ) * - 60 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1667
SELECT ALL - CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) * - 60 col2
----
NULL

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

query I rowsort
SELECT ALL 4 * 61 * + + 13 + 10 AS col1
----
3182

query I rowsort
SELECT ALL 17 * - - COALESCE ( + 79, + ( - + 82 ) + 56 * - 81 * - 70 * - 32, 61 ) * + 15 + + 81
----
20226

query II rowsort
SELECT + 61 - + 90 AS col0, NULLIF ( - 90, - 7 + + COALESCE ( 4, - 24 / 90 ) ) AS col2
----
-29
-90

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

query I rowsort
SELECT + 21 * 0 + + 18 AS col2
----
18

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

skipif mysql # not compatible
query I rowsort label-1674
SELECT + COUNT ( * ) + + CAST ( + 30 AS INTEGER )
----
31

query I rowsort
SELECT + - 45 + - 15 AS col0
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-1676
SELECT + 53 + - 89 + - 72 + 15 + 3 * + ( - + ( - 58 ) ) * + 79 + 67 DIV ( + 85 ) AS col1
----
13653

skipif mysql # not compatible
query I rowsort label-1676
SELECT + 53 + - 89 + - 72 + 15 + 3 * + ( - + ( - 58 ) ) * + 79 + 67 / ( + 85 ) AS col1
----
13653

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1677
SELECT ALL NULLIF ( + + 55, + - CAST( + 13 AS SIGNED ) )
----
55

skipif mysql # not compatible
query I rowsort label-1677
SELECT ALL NULLIF ( + + 55, + - CAST ( + 13 AS INTEGER ) )
----
55

query I rowsort
SELECT - 46 * - 18 * - + 56
----
-46368

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

query I rowsort
SELECT - 99 + + 23
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-1681
SELECT ALL COALESCE ( - - ( 1 ), - + 16 * - 23 * 95 + + 37, 43 DIV - - 39 + + ( 63 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1681
SELECT ALL COALESCE ( - - ( 1 ), - + 16 * - 23 * 95 + + 37, 43 / - - 39 + + ( 63 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1682
SELECT + 10 DIV + 72
----
0

skipif mysql # not compatible
query I rowsort label-1682
SELECT + 10 / + 72
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1683
SELECT - CASE - + 89 WHEN - + 51 * + 45 THEN + NULLIF ( - - 19, + - NULLIF ( - - 1, + 73 * - 34 ) * + 32 - 29 ) DIV + 12 + CAST( NULL AS SIGNED ) WHEN - 1 * - 40 THEN NULL ELSE 61 + - ( - COUNT( * ) ) DIV 11 END * + 92 AS col1
----
-5612

skipif mysql # not compatible
query I rowsort label-1683
SELECT - CASE - + 89 WHEN - + 51 * + 45 THEN + NULLIF ( - - 19, + - NULLIF ( - - 1, + 73 * - 34 ) * + 32 - 29 ) / + 12 + CAST ( NULL AS INTEGER ) WHEN - 1 * - 40 THEN NULL ELSE 61 + - ( - COUNT ( * ) ) / 11 END * + 92 AS col1
----
-5612

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT DISTINCT COUNT( ( - - 66 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1684
SELECT DISTINCT COUNT ( ( - - 66 ) ) AS col1
----
1

query I rowsort
SELECT DISTINCT + 47 + 81 AS col2
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT ALL + 2 * + 3 * - 44 * + - SUM( 5 ) AS col1
----
1320

skipif mysql # not compatible
query I rowsort label-1686
SELECT ALL + 2 * + 3 * - 44 * + - SUM ( 5 ) AS col1
----
1320

query I rowsort
SELECT DISTINCT + 29 + + + 68 AS col2
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1688
SELECT DISTINCT COUNT( ALL + CAST( NULL AS SIGNED ) ) + - + 80 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-1688
SELECT DISTINCT COUNT ( ALL + CAST ( NULL AS INTEGER ) ) + - + 80 AS col0
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-1689
SELECT ALL + 11 + + 88 * - 4 AS col2, ( SUM( - - 0 ) ) * + COUNT( * ) AS col1
----
-341
0

skipif mysql # not compatible
query II rowsort label-1689
SELECT ALL + 11 + + 88 * - 4 AS col2, ( SUM ( - - 0 ) ) * + COUNT ( * ) AS col1
----
-341
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1690
SELECT - COALESCE ( + - 46, COUNT( ALL 46 ) DIV 13 - + + 23 * + 77, + ( + - 30 ) ) - COALESCE ( 89, - 56, 19 ) + - COUNT( * ) * 32 * + 47 AS col2
----
-1547

skipif mysql # not compatible
query I rowsort label-1690
SELECT - COALESCE ( + - 46, COUNT ( ALL 46 ) / 13 - + + 23 * + 77, + ( + - 30 ) ) - COALESCE ( 89, - 56, 19 ) + - COUNT ( * ) * 32 * + 47 AS col2
----
-1547

onlyif mysql # aggregate syntax: 
query I rowsort label-1691
SELECT - COALESCE ( - 63, + 37 ) * + COUNT( * ) * - 40 AS col2
----
-2520

skipif mysql # not compatible
query I rowsort label-1691
SELECT - COALESCE ( - 63, + 37 ) * + COUNT ( * ) * - 40 AS col2
----
-2520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1692
SELECT - 64 - CAST( - 42 AS SIGNED ) + + MIN( ALL - - 97 ) * - - 50
----
4828

skipif mysql # not compatible
query I rowsort label-1692
SELECT - 64 - CAST ( - 42 AS INTEGER ) + + MIN ( ALL - - 97 ) * - - 50
----
4828

query II rowsort
SELECT + 93, 55 * - 50 AS col1
----
93
-2750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1694
SELECT ALL - MIN( ALL - 28 ) DIV - 31 + - CAST( + - 37 AS SIGNED ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-1694
SELECT ALL - MIN ( ALL - 28 ) / - 31 + - CAST ( + - 37 AS INTEGER ) AS col2
----
37

query I rowsort
SELECT ALL + CASE WHEN NOT + 95 IN ( + 93 * + - 66 ) THEN - 94 ELSE NULL END AS col0
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-1696
SELECT DISTINCT 15 DIV + 62 + + + 61 * - 95 AS col1
----
-5795

skipif mysql # not compatible
query I rowsort label-1696
SELECT DISTINCT 15 / + 62 + + + 61 * - 95 AS col1
----
-5795

query I rowsort
SELECT + 98 * + + 68 - + 93 + 84 + CASE + 18 WHEN 86 THEN + 80 END * - 1 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1698
SELECT ALL - COALESCE ( - 19, + + COUNT( * ) * + 7 DIV ( - - 65 ) * + 54 + - + COUNT( * ) + 74 ) DIV 56 DIV + 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1698
SELECT ALL - COALESCE ( - 19, + + COUNT ( * ) * + 7 / ( - - 65 ) * + 54 + - + COUNT ( * ) + 74 ) / 56 / + 96 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1699
SELECT ALL + ( + 86 ) DIV - 44 + - + MIN( - 66 ) + + 84 - + 54 DIV + 6 + + 21 * 78 + + 14 col2
----
1792

skipif mysql # not compatible
query I rowsort label-1699
SELECT ALL + ( + 86 ) / - 44 + - + MIN ( - 66 ) + + 84 - + 54 / + 6 + + 21 * 78 + + 14 col2
----
1792

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1700
SELECT DISTINCT + MAX( + 59 ) * + 21 + COUNT( DISTINCT - 25 ) DIV + 59, 48 - - SUM( - - 10 ) AS col1
----
1239
58

skipif mysql # not compatible
query II rowsort label-1700
SELECT DISTINCT + MAX ( + 59 ) * + 21 + COUNT ( DISTINCT - 25 ) / + 59, 48 - - SUM ( - - 10 ) AS col1
----
1239
58

query I rowsort
SELECT - 76 * - 12 * + - 19 * ( + - 89 ) * - - 34 + + 78 * - 37 + + 41 + - 60 col1
----
52431623

query I rowsort
SELECT + 50 * + 52 * + + 88 * + + NULLIF ( + 92, + AVG ( + COALESCE ( + 84, - 24 / - 73 / + 28 + 14 ) ) ) AS col1
----
21049600

onlyif mysql # DIV for integer division: 
query I rowsort label-1703
SELECT + 72 DIV 20 + - 73
----
-70

skipif mysql # not compatible
query I rowsort label-1703
SELECT + 72 / 20 + - 73
----
-70

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT + - 49 * + + 11 - ( - COUNT( * ) )
----
-538

skipif mysql # not compatible
query I rowsort label-1705
SELECT + - 49 * + + 11 - ( - COUNT ( * ) )
----
-538

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

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

query I rowsort
SELECT + - 16 * - ( + 82 ) AS col2
----
1312

query I rowsort
SELECT ALL + 10 * + 62 AS col0
----
620

query II rowsort
SELECT ALL + 3, - 7 AS col0
----
3
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1711
SELECT CASE - - 32 WHEN + 14 + - SUM( DISTINCT - - ( 30 ) ) * - 37 THEN - 40 * + + 96 / - 21 * 28 + - 63 WHEN + 50 + - 78 / + 35 THEN - NULLIF ( + 92, 21 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1711
SELECT CASE - - 32 WHEN + 14 + - SUM ( DISTINCT - - ( 30 ) ) * - 37 THEN - 40 * + + 96 / - 21 * 28 + - 63 WHEN + 50 + - 78 / + 35 THEN - NULLIF ( + 92, 21 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1712
SELECT CASE - - COUNT( ALL + 3 ) WHEN + CASE 16 WHEN 18 * - 59 * + 3 THEN NULL ELSE 34 + - - 48 END * 8 * + COUNT( * ) THEN 60 WHEN ( 11 ) / 11 THEN NULL ELSE + 15 / - 97 + 51 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1712
SELECT CASE - - COUNT ( ALL + 3 ) WHEN + CASE 16 WHEN 18 * - 59 * + 3 THEN NULL ELSE 34 + - - 48 END * 8 * + COUNT ( * ) THEN 60 WHEN ( 11 ) / 11 THEN NULL ELSE + 15 / - 97 + 51 END col2
----
NULL

query II rowsort
SELECT + COALESCE ( - 81, - 93 ) * 71 AS col0, + 98 AS col1
----
-5751
98

query I rowsort
SELECT + 17 - + - 64
----
81

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1715
SELECT ALL 3 AS col1, + CAST( NULL AS DECIMAL ) * - 40 * + - 8
----
3
NULL

skipif mysql # not compatible
query II rowsort label-1715
SELECT ALL 3 AS col1, + CAST ( NULL AS REAL ) * - 40 * + - 8
----
3
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1716
SELECT 66 AS col0, 88 + + COUNT( - + CAST( - 95 AS SIGNED ) ) + + 15 + - ( - - 20 ) * 0 AS col2
----
66
104

skipif mysql # not compatible
query II rowsort label-1716
SELECT 66 AS col0, 88 + + COUNT ( - + CAST ( - 95 AS INTEGER ) ) + + 15 + - ( - - 20 ) * 0 AS col2
----
66
104

query I rowsort
SELECT 38 * + - 52
----
-1976

query I rowsort
SELECT 80 * - + 22
----
-1760

query I rowsort
SELECT ALL 57 + - 44 * + 94
----
-4079

query II rowsort
SELECT ALL 69 AS col0, 93 AS col0
----
69
93

query I rowsort
SELECT ALL 28 + + - 23 col2
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-1722
SELECT 70 DIV - 5 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-1722
SELECT 70 / - 5 AS col0
----
-14

query I rowsort
SELECT ALL 21 + + 38 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT DISTINCT 80 * + - ( - - 13 ) * 50 * + 53 * COUNT( * )
----
-2756000

skipif mysql # not compatible
query I rowsort label-1724
SELECT DISTINCT 80 * + - ( - - 13 ) * 50 * + 53 * COUNT ( * )
----
-2756000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1725
SELECT 82 DIV - 34 * + - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-1725
SELECT 82 / - 34 * + - COUNT ( * )
----
2

query I rowsort
SELECT 53 + 4 AS col2
----
57

query II rowsort
SELECT - 34 AS col1, ( - 93 ) AS col1
----
-34
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1728
SELECT MAX( + ( + 21 ) ) DIV 64
----
0

skipif mysql # not compatible
query I rowsort label-1728
SELECT MAX ( + ( + 21 ) ) / 64
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1729
SELECT CAST( MIN( 93 ) AS SIGNED ) + COALESCE ( + 19, - - 78, + 67, - - 24 ) AS col1
----
112

skipif mysql # not compatible
query I rowsort label-1729
SELECT CAST ( MIN ( 93 ) AS INTEGER ) + COALESCE ( + 19, - - 78, + 67, - - 24 ) AS col1
----
112

query I rowsort
SELECT 5 * 85 AS col1
----
425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1731
SELECT DISTINCT + 60 + - CAST( + 82 AS SIGNED ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-1731
SELECT DISTINCT + 60 + - CAST ( + 82 AS INTEGER ) AS col2
----
-22

query I rowsort
SELECT ALL + + 54 + - - 22 AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT DISTINCT COUNT( - + 63 ) - - + 46 col2
----
47

skipif mysql # not compatible
query I rowsort label-1733
SELECT DISTINCT COUNT ( - + 63 ) - - + 46 col2
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1734
SELECT ALL - CASE - 30 WHEN + 17 THEN + + COUNT( * ) WHEN - ( + COUNT( * ) ) THEN NULL WHEN + COALESCE ( 30, + - CAST( 47 AS SIGNED ) + 35, COALESCE ( 22, 0 * + 8, 80 ) ) THEN 60 ELSE - 93 + 78 * - 12 END - + 39
----
990

skipif mysql # not compatible
query I rowsort label-1734
SELECT ALL - CASE - 30 WHEN + 17 THEN + + COUNT ( * ) WHEN - ( + COUNT ( * ) ) THEN NULL WHEN + COALESCE ( 30, + - CAST ( 47 AS INTEGER ) + 35, COALESCE ( 22, 0 * + 8, 80 ) ) THEN 60 ELSE - 93 + 78 * - 12 END - + 39
----
990

query I rowsort
SELECT - 29 * - ( + 32 ) * 55 + + 1 * - - 73 AS col2
----
51113

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1738
SELECT ALL - ( MIN ( 73 ) )
----
-73

query II rowsort
SELECT + 48 * + 24, 66 AS col0
----
1152
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1740
SELECT 99 - MAX( DISTINCT + 14 ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-1740
SELECT 99 - MAX ( DISTINCT + 14 ) AS col2
----
85

query I rowsort
SELECT + 14 * - 5 - + - 0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT ALL - + MIN( 73 ) * - 98 + + COALESCE ( + SUM( DISTINCT - 65 ), + 84, 49 * COUNT( * ) + + - 4 ) col0
----
7089

skipif mysql # not compatible
query I rowsort label-1742
SELECT ALL - + MIN ( 73 ) * - 98 + + COALESCE ( + SUM ( DISTINCT - 65 ), + 84, 49 * COUNT ( * ) + + - 4 ) col0
----
7089

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

query II rowsort
SELECT ALL - 89 AS col2, 74 * + 80
----
-89
5920

onlyif mysql # DIV for integer division: 
query II rowsort label-1745
SELECT ALL - - 6, 87 DIV + 74 AS col2
----
6
1

skipif mysql # not compatible
query II rowsort label-1745
SELECT ALL - - 6, 87 / + 74 AS col2
----
6
1

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

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

query I rowsort
SELECT 73 * - 28 * + 36 + + 20 AS col2
----
-73564

onlyif mysql # aggregate syntax: 
query I rowsort label-1748
SELECT 54 - - + ( 23 ) + + ( + 42 ) + + - 17 - - 26 + + + COUNT( * ) + + 57 * + 57 * 21 * - - CASE COALESCE ( 15, 8 + 80 ) WHEN 52 + - ( CASE COUNT( * ) WHEN - 47 THEN 55 + - CASE 18 WHEN 18 THEN 35 ELSE 91 END END ) THEN MAX( DISTINCT + 41 ) ELSE COUNT( * ) + + NULLIF ( - 72, 44 * COUNT( * ) ) END * + NULLIF ( 84, - 24 )
----
-406917627

skipif mysql # not compatible
query I rowsort label-1748
SELECT 54 - - + ( 23 ) + + ( + 42 ) + + - 17 - - 26 + + + COUNT ( * ) + + 57 * + 57 * 21 * - - CASE COALESCE ( 15, 8 + 80 ) WHEN 52 + - ( CASE COUNT ( * ) WHEN - 47 THEN 55 + - CASE 18 WHEN 18 THEN 35 ELSE 91 END END ) THEN MAX ( DISTINCT + 41 ) ELSE COUNT ( * ) + + NULLIF ( - 72, 44 * COUNT ( * ) ) END * + NULLIF ( 84, - 24 )
----
-406917627

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT - 72 * + 33 / - CASE WHEN NOT ( - 36 ) NOT IN ( + 84 + + NULLIF ( - - 14, - COUNT( DISTINCT + + 25 ) * - 43 * + 13 ) + 46 ) THEN - 62 END + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1749
SELECT - 72 * + 33 / - CASE WHEN NOT ( - 36 ) NOT IN ( + 84 + + NULLIF ( - - 14, - COUNT ( DISTINCT + + 25 ) * - 43 * + 13 ) + 46 ) THEN - 62 END + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1750
SELECT 64 - 57 + + + 97 - + - 42 DIV 77 * - SUM( - 39 ) * + COALESCE ( + - 10, + 54 - COALESCE ( - 34, 13 DIV - 53 ) ) + - COUNT( * ) AS col1
----
103

skipif mysql # not compatible
query I rowsort label-1750
SELECT 64 - 57 + + + 97 - + - 42 / 77 * - SUM ( - 39 ) * + COALESCE ( + - 10, + 54 - COALESCE ( - 34, 13 / - 53 ) ) + - COUNT ( * ) AS col1
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1751
SELECT 38 * - CAST( + COALESCE ( + COUNT( * ), + MAX( DISTINCT - - 68 ) / - - MAX( + + 71 ) ) AS SIGNED ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-1751
SELECT 38 * - CAST ( + COALESCE ( + COUNT ( * ), + MAX ( DISTINCT - - 68 ) / - - MAX ( + + 71 ) ) AS INTEGER ) AS col0
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1752
SELECT + 90 * CAST( NULL AS SIGNED ) + COALESCE ( 85, NULLIF ( 78, + 24 + ( - 17 ) ) * + 80 + + + 90, - 82 + - 30 * 38 ) + AVG ( DISTINCT - 12 + 65 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1752
SELECT + 90 * CAST ( NULL AS INTEGER ) + COALESCE ( 85, NULLIF ( 78, + 24 + ( - 17 ) ) * + 80 + + + 90, - 82 + - 30 * 38 ) + AVG ( DISTINCT - 12 + 65 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT 47 * + MAX( DISTINCT 91 ) * + NULLIF ( + + 28, - ( + 66 ) + + ( + + 22 ) )
----
119756

skipif mysql # not compatible
query I rowsort label-1753
SELECT 47 * + MAX ( DISTINCT 91 ) * + NULLIF ( + + 28, - ( + 66 ) + + ( + + 22 ) )
----
119756

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT ALL - COALESCE ( COUNT( * ), 81, - 90 * - 3 ) + + 20 col0
----
19

skipif mysql # not compatible
query I rowsort label-1754
SELECT ALL - COALESCE ( COUNT ( * ), 81, - 90 * - 3 ) + + 20 col0
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1755
SELECT 54 + - 34 * + NULLIF ( + - 15, - 2 * 25 * 61 ) + - CAST( - 84 AS SIGNED ) * CASE - 31 WHEN CASE COALESCE ( CASE COUNT( * ) WHEN - COUNT( * ) * + 17 THEN - 61 WHEN + COUNT( * ) THEN NULL WHEN 26 + + 69 THEN - 99 END, + COALESCE ( - 47, COALESCE ( - 69, 26, 20 ), 76 ), CAST( - 36 AS DECIMAL ), 67 * + 73 ) WHEN 77 * - 43 + + COUNT( * ) THEN 62 - + 5 * 81 ELSE NULL END + - 69 THEN NULL WHEN 54 THEN NULL WHEN + 71 THEN - 67 / - NULLIF ( 11, COUNT( * ) ) + 96 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1755
SELECT 54 + - 34 * + NULLIF ( + - 15, - 2 * 25 * 61 ) + - CAST ( - 84 AS INTEGER ) * CASE - 31 WHEN CASE COALESCE ( CASE COUNT ( * ) WHEN - COUNT ( * ) * + 17 THEN - 61 WHEN + COUNT ( * ) THEN NULL WHEN 26 + + 69 THEN - 99 END, + COALESCE ( - 47, COALESCE ( - 69, 26, 20 ), 76 ), CAST ( - 36 AS REAL ), 67 * + 73 ) WHEN 77 * - 43 + + COUNT ( * ) THEN 62 - + 5 * 81 ELSE NULL END + - 69 THEN NULL WHEN 54 THEN NULL WHEN + 71 THEN - 67 / - NULLIF ( 11, COUNT ( * ) ) + 96 ELSE NULL END AS col0
----
NULL

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

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

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

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

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

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

query I rowsort
SELECT 73 + - 83 - - 75
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-1760
SELECT ALL 22 + 70, - COUNT( * ) + + 80 AS col1
----
92
79

skipif mysql # not compatible
query II rowsort label-1760
SELECT ALL 22 + 70, - COUNT ( * ) + + 80 AS col1
----
92
79

query I rowsort
SELECT ( - 58 ) + 0 AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT MAX( + - 72 ) + - 90
----
-162

skipif mysql # not compatible
query I rowsort label-1762
SELECT MAX ( + - 72 ) + - 90
----
-162

query I rowsort
SELECT 63 * - 42 AS col1
----
-2646

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT COUNT( - 68 ) + - 14 col2
----
-13

skipif mysql # not compatible
query I rowsort label-1764
SELECT COUNT ( - 68 ) + - 14 col2
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-1765
SELECT DISTINCT 9 + + COUNT( * ) - - - 36 + + 57 * - SUM( ( 28 ) ) AS col2, 49
----
-1622
49

skipif mysql # not compatible
query II rowsort label-1765
SELECT DISTINCT 9 + + COUNT ( * ) - - - 36 + + 57 * - SUM ( ( 28 ) ) AS col2, 49
----
-1622
49

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT ALL - COUNT( - 55 ) * + 46 + + 72
----
26

skipif mysql # not compatible
query I rowsort label-1769
SELECT ALL - COUNT ( - 55 ) * + 46 + + 72
----
26

query I rowsort
SELECT 14 - COALESCE ( + 46, + + 43 * + 60 + 84 + - 28 ) + - 73 * + 85 AS col2
----
-6237

query II rowsort
SELECT 88 + - - 78 col0, 50 AS col2
----
166
50

query I rowsort
SELECT 37 * - - 58 * - 42
----
-90132

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1774
SELECT + COUNT( * ) DIV - 51 + + COUNT( * ) + + ( - + ( - 52 ) )
----
53

skipif mysql # not compatible
query I rowsort label-1774
SELECT + COUNT ( * ) / - 51 + + COUNT ( * ) + + ( - + ( - 52 ) )
----
53

query I rowsort
SELECT 14 + - 2 AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT ALL - SUM( ALL + 65 ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-1776
SELECT ALL - SUM ( ALL + 65 ) AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT ALL - - CASE + 90 WHEN - 12 * - COUNT( * ) THEN NULL WHEN 71 * + 74 * 16 THEN + COALESCE ( + - 98, 29, CASE + COUNT( * ) WHEN 89 THEN + 16 * 84 WHEN - 14 * + ( 81 ) THEN NULL WHEN - SUM( 54 ) + - 84 * + 39 THEN + 27 - + COUNT( * ) END ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1777
SELECT ALL - - CASE + 90 WHEN - 12 * - COUNT ( * ) THEN NULL WHEN 71 * + 74 * 16 THEN + COALESCE ( + - 98, 29, CASE + COUNT ( * ) WHEN 89 THEN + 16 * 84 WHEN - 14 * + ( 81 ) THEN NULL WHEN - SUM ( 54 ) + - 84 * + 39 THEN + 27 - + COUNT ( * ) END ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT + COUNT( * ) * - - 70 * + 60 + - COUNT( * ) + + 74 + - 15 AS col0
----
4258

skipif mysql # not compatible
query I rowsort label-1778
SELECT + COUNT ( * ) * - - 70 * + 60 + - COUNT ( * ) + + 74 + - 15 AS col0
----
4258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1779
SELECT ALL - CAST( NULL AS SIGNED ) * - 5 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1779
SELECT ALL - CAST ( NULL AS INTEGER ) * - 5 col0
----
NULL

query I rowsort
SELECT - 94 * + 5 AS col2
----
-470

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1781
SELECT - COUNT( * ) + - 15 + - COALESCE ( - 22, - 1 * 89 - 36, - ( - 30 ) * - 91 DIV + 71 )
----
6

skipif mysql # not compatible
query I rowsort label-1781
SELECT - COUNT ( * ) + - 15 + - COALESCE ( - 22, - 1 * 89 - 36, - ( - 30 ) * - 91 / + 71 )
----
6

query I rowsort
SELECT ALL - 5 * 40 AS col1
----
-200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1783
SELECT ALL + 32 * + + COUNT( * ) + + + COUNT( * ) / - CAST( NULL AS SIGNED ) + 52 - + 46 * 18
----
NULL

skipif mysql # not compatible
query I rowsort label-1783
SELECT ALL + 32 * + + COUNT ( * ) + + + COUNT ( * ) / - CAST ( NULL AS INTEGER ) + 52 - + 46 * 18
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1784
SELECT ALL - 15 + + 32 - - - 99 DIV SUM( - 48 ) * + 3 * COUNT( * ) - 30
----
-7

skipif mysql # not compatible
query I rowsort label-1784
SELECT ALL - 15 + + 32 - - - 99 / SUM ( - 48 ) * + 3 * COUNT ( * ) - 30
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1785
SELECT - NULLIF ( - 11, + - 58 + 7 ) DIV + - 83 + - + MIN( ALL - 60 )
----
60

skipif mysql # not compatible
query I rowsort label-1785
SELECT - NULLIF ( - 11, + - 58 + 7 ) / + - 83 + - + MIN ( ALL - 60 )
----
60

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

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

query I rowsort
SELECT DISTINCT + NULLIF ( - 53, COALESCE ( - - ( - - 97 ), - 92 ) )
----
-53

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

skipif mysql # not compatible
query I rowsort label-1788
SELECT ALL + COUNT ( * ) * + 21 AS col0
----
21

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

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

query I rowsort
SELECT + 62 * + 36 AS col1
----
2232

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

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

query I rowsort
SELECT ALL + 53 * - 61 AS col1
----
-3233

query I rowsort
SELECT DISTINCT - 98 - - 20
----
-78

onlyif mysql # aggregate syntax: 
query III rowsort label-1794
SELECT ALL - - MIN( 87 ) * 43, - 35 AS col0, 86 col1
----
3741
-35
86

skipif mysql # not compatible
query III rowsort label-1794
SELECT ALL - - MIN ( 87 ) * 43, - 35 AS col0, 86 col1
----
3741
-35
86

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1796
SELECT + - COUNT( * ) + 51 - - COUNT( * ), - 94 AS col2
----
51
-94

skipif mysql # not compatible
query II rowsort label-1796
SELECT + - COUNT ( * ) + 51 - - COUNT ( * ), - 94 AS col2
----
51
-94

query I rowsort
SELECT ALL ( - 90 ) col2
----
-90

query I rowsort
SELECT ALL + ( + NULLIF ( 44, 96 ) ) AS col1
----
44

query I rowsort
SELECT + 3 * - 3
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1800
SELECT - - 69 + 11 + 82 + + 75 + 49 DIV - + 94 * + 6 + COUNT( CAST( NULL AS SIGNED ) )
----
237

skipif mysql # not compatible
query I rowsort label-1800
SELECT - - 69 + 11 + 82 + + 75 + 49 / - + 94 * + 6 + COUNT ( CAST ( NULL AS INTEGER ) )
----
237

onlyif mysql # aggregate syntax: 
query II rowsort label-1801
SELECT + COUNT( * ) - + - COUNT( * ) * 27 * 94 AS col2, + ( 16 ) col2
----
2539
16

skipif mysql # not compatible
query II rowsort label-1801
SELECT + COUNT ( * ) - + - COUNT ( * ) * 27 * 94 AS col2, + ( 16 ) col2
----
2539
16

query II rowsort
SELECT ALL + 16 AS col1, 9
----
16
9

query I rowsort
SELECT + 30 - 68
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-1804
SELECT ALL 99 DIV + + 24 + + + 58 + 12 * - 27 AS col1
----
-262

skipif mysql # not compatible
query I rowsort label-1804
SELECT ALL 99 / + + 24 + + + 58 + 12 * - 27 AS col1
----
-262

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1805
SELECT + 69 * + - 81 - NULLIF ( + COUNT( * ), MIN( DISTINCT CAST( NULL AS SIGNED ) ) ) * - 59 AS col0
----
-5530

skipif mysql # not compatible
query I rowsort label-1805
SELECT + 69 * + - 81 - NULLIF ( + COUNT ( * ), MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) ) * - 59 AS col0
----
-5530

query I rowsort
SELECT DISTINCT - ( + 9 ) AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT ALL MAX( - 12 ) col2
----
-12

skipif mysql # not compatible
query I rowsort label-1807
SELECT ALL MAX ( - 12 ) col2
----
-12

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

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

query I rowsort
SELECT ALL - 23 * 88
----
-2024

query I rowsort
SELECT + + 12 * - + 13 AS col1
----
-156

query I rowsort
SELECT DISTINCT 84 * + 98 col2
----
8232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1813
SELECT ALL - - COUNT( * ) DIV - 25 + + 93 + - ( 43 )
----
50

skipif mysql # not compatible
query I rowsort label-1813
SELECT ALL - - COUNT ( * ) / - 25 + + 93 + - ( 43 )
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1814
SELECT COUNT( * ) * + + 66 + - 74 * - - 58 + + 82 DIV + ( - - 47 ) + - + 39 AS col0
----
-4264

skipif mysql # not compatible
query I rowsort label-1814
SELECT COUNT ( * ) * + + 66 + - 74 * - - 58 + + 82 / + ( - - 47 ) + - + 39 AS col0
----
-4264

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT MIN( DISTINCT - - 56 )
----
56

skipif mysql # not compatible
query I rowsort label-1815
SELECT MIN ( DISTINCT - - 56 )
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1816
SELECT - NULLIF ( 70, 6 + 26 ) * - COUNT( * ) DIV + - ( - + 98 )
----
0

skipif mysql # not compatible
query I rowsort label-1816
SELECT - NULLIF ( 70, 6 + 26 ) * - COUNT ( * ) / + - ( - + 98 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT + 70 + + 8 + COUNT( * ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-1817
SELECT + 70 + + 8 + COUNT ( * ) AS col1
----
79

query I rowsort
SELECT + ( - COALESCE ( 35, - 35, - + 30 * 2 + + 24 ) ) AS col0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1819
SELECT + CAST( CASE + 73 WHEN + + 18 * - 65 * - 47 + + 23 THEN + 70 WHEN + - CAST( + 14 AS SIGNED ) * + + MIN( DISTINCT + 87 ) * + MAX( + 86 ) THEN 7 WHEN + 74 * + 75 THEN NULL END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1819
SELECT + CAST ( CASE + 73 WHEN + + 18 * - 65 * - 47 + + 23 THEN + 70 WHEN + - CAST ( + 14 AS INTEGER ) * + + MIN ( DISTINCT + 87 ) * + MAX ( + 86 ) THEN 7 WHEN + 74 * + 75 THEN NULL END AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT ALL MIN( ( + 2 ) ) * - 29 + - 1 col1
----
-59

skipif mysql # not compatible
query I rowsort label-1820
SELECT ALL MIN ( ( + 2 ) ) * - 29 + - 1 col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT + 82 * + MAX( 19 ) + 84 + - - COUNT( * ) + - + COUNT( * ) AS col1
----
1642

skipif mysql # not compatible
query I rowsort label-1821
SELECT + 82 * + MAX ( 19 ) + 84 + - - COUNT ( * ) + - + COUNT ( * ) AS col1
----
1642

onlyif mysql # DIV for integer division: 
query I rowsort label-1822
SELECT - 16 + 11 DIV - 31 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-1822
SELECT - 16 + 11 / - 31 AS col1
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1823
SELECT ALL 13 * + COUNT( * ) + + CAST( + COUNT( * ) AS SIGNED ), 4 col0
----
14
4

skipif mysql # not compatible
query II rowsort label-1823
SELECT ALL 13 * + COUNT ( * ) + + CAST ( + COUNT ( * ) AS INTEGER ), 4 col0
----
14
4

query I rowsort
SELECT + 19 * + - 7 + 23 AS col1
----
-110

query I rowsort
SELECT - ( - - ( + 98 ) ) - - 17 * - 13
----
-319

query I rowsort
SELECT ALL + 57 * 80
----
4560

onlyif mysql # DIV for integer division: 
query II rowsort label-1827
SELECT COALESCE ( - 56, - 3 DIV - + 47 ), ( - ( 58 ) ) + 8 AS col0
----
-56
-50

skipif mysql # not compatible
query II rowsort label-1827
SELECT COALESCE ( - 56, - 3 / - + 47 ), ( - ( 58 ) ) + 8 AS col0
----
-56
-50

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1830
SELECT DISTINCT ( - + 48 ) * 70 * - 79 - + - COUNT( * ) AS col1, 11 AS col0
----
265441
11

skipif mysql # not compatible
query II rowsort label-1830
SELECT DISTINCT ( - + 48 ) * 70 * - 79 - + - COUNT ( * ) AS col1, 11 AS col0
----
265441
11

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

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

query I rowsort
SELECT ALL 93 * 27 - + 28
----
2483

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1833
SELECT - - CASE - 51 WHEN - 37 THEN - 55 DIV + + 76 + COUNT( * ) + + 44 ELSE - 78 * - + 31 - - COUNT( * ) + 73 - - 30 * 97 DIV 9 END * - 13
----
-36595

skipif mysql # not compatible
query I rowsort label-1833
SELECT - - CASE - 51 WHEN - 37 THEN - 55 / + + 76 + COUNT ( * ) + + 44 ELSE - 78 * - + 31 - - COUNT ( * ) + 73 - - 30 * 97 / 9 END * - 13
----
-36595

query II rowsort
SELECT DISTINCT NULLIF ( 10, 49 + - + 20 ) AS col2, CASE + 80 WHEN - - 62 THEN - 88 WHEN + 86 THEN NULL END * + + 36
----
10
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1835
SELECT DISTINCT - + COUNT( * ) DIV + 33
----
0

skipif mysql # not compatible
query I rowsort label-1835
SELECT DISTINCT - + COUNT ( * ) / + 33
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1837
SELECT - 44 * - 81, + 31 * 59 + + 7 + + 94 * + 22 * - COUNT( * ) AS col1
----
3564
-232

skipif mysql # not compatible
query II rowsort label-1837
SELECT - 44 * - 81, + 31 * 59 + + 7 + + 94 * + 22 * - COUNT ( * ) AS col1
----
3564
-232

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

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

query I rowsort
SELECT DISTINCT - 85 * 9
----
-765

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1840
SELECT ALL COALESCE ( - CAST( - 91 AS SIGNED ), - 67 + + - 91 * + - NULLIF ( 95, - COUNT( * ) ) + + - 48 )
----
91

skipif mysql # not compatible
query I rowsort label-1840
SELECT ALL COALESCE ( - CAST ( - 91 AS INTEGER ), - 67 + + - 91 * + - NULLIF ( 95, - COUNT ( * ) ) + + - 48 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT - + CASE - 94 WHEN 75 - + 51 THEN - + MAX( ALL 11 ) ELSE 52 * 83 END * 67 * - 77 AS col0
----
22266244

skipif mysql # not compatible
query I rowsort label-1841
SELECT - + CASE - 94 WHEN 75 - + 51 THEN - + MAX ( ALL 11 ) ELSE 52 * 83 END * 67 * - 77 AS col0
----
22266244

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

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

query I rowsort
SELECT - 42 * - 1 * + 68
----
2856

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1844
SELECT + 26 + - ( - + COUNT( * ) ) * - 15 - + NULLIF ( 7, + - CAST( NULL AS DECIMAL ) * SUM( - + 18 ) ) * + - NULLIF ( + 51, + CASE - 38 WHEN + 3 THEN NULL WHEN - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) + - 18 / COUNT( * ) THEN NULL WHEN - 16 THEN 66 END ) + ( 32 - 78 ) AS col0
----
322

skipif mysql # not compatible
query I rowsort label-1844
SELECT + 26 + - ( - + COUNT ( * ) ) * - 15 - + NULLIF ( 7, + - CAST ( NULL AS REAL ) * SUM ( - + 18 ) ) * + - NULLIF ( + 51, + CASE - 38 WHEN + 3 THEN NULL WHEN - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - 18 / COUNT ( * ) THEN NULL WHEN - 16 THEN 66 END ) + ( 32 - 78 ) AS col0
----
322

query I rowsort
SELECT DISTINCT + ( 84 ) + + 80
----
164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1846
SELECT + - 63 * + CASE 59 WHEN - - 60 THEN CAST( NULL AS SIGNED ) WHEN - + 44 THEN NULL END + - ( + + NULLIF ( COALESCE ( + - MIN( ALL + 84 ), - - 49, - CASE - 69 WHEN ( COALESCE ( 69, 38 * + ( - MIN( 54 ) ) ) ) THEN - 25 WHEN 99 + - 49 THEN NULL ELSE NULL END ), - 94 ) ) + - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-1846
SELECT + - 63 * + CASE 59 WHEN - - 60 THEN CAST ( NULL AS INTEGER ) WHEN - + 44 THEN NULL END + - ( + + NULLIF ( COALESCE ( + - MIN ( ALL + 84 ), - - 49, - CASE - 69 WHEN ( COALESCE ( 69, 38 * + ( - MIN ( 54 ) ) ) ) THEN - 25 WHEN 99 + - 49 THEN NULL ELSE NULL END ), - 94 ) ) + - 11
----
NULL

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

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

query I rowsort
SELECT ALL 58 + + 43 AS col0
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT DISTINCT - ( - 95 ) + - COUNT( DISTINCT + 46 ) * + 63 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-1849
SELECT DISTINCT - ( - 95 ) + - COUNT ( DISTINCT + 46 ) * + 63 AS col1
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-1850
SELECT ( 96 ) DIV + 24 + + 10 * - + 97 AS col2
----
-966

skipif mysql # not compatible
query I rowsort label-1850
SELECT ( 96 ) / + 24 + + 10 * - + 97 AS col2
----
-966

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT DISTINCT MIN( 71 ) * - + 17 + - COUNT( * ) * 59 AS col2
----
-1266

skipif mysql # not compatible
query I rowsort label-1851
SELECT DISTINCT MIN ( 71 ) * - + 17 + - COUNT ( * ) * 59 AS col2
----
-1266

query I rowsort
SELECT DISTINCT 64 * + 46
----
2944

query I rowsort
SELECT ALL 22 + - 43 + + 45 AS col0
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1854
SELECT 47 * - - 1 * + - NULLIF ( + CAST( NULL AS SIGNED ), - + MAX( - + NULLIF ( + + 96, 26 ) ) ) * 22
----
NULL

skipif mysql # not compatible
query I rowsort label-1854
SELECT 47 * - - 1 * + - NULLIF ( + CAST ( NULL AS INTEGER ), - + MAX ( - + NULLIF ( + + 96, 26 ) ) ) * 22
----
NULL

query I rowsort
SELECT ALL 99 * - + 26
----
-2574

onlyif mysql # DIV for integer division: 
query I rowsort label-1856
SELECT 53 DIV + 9
----
5

skipif mysql # not compatible
query I rowsort label-1856
SELECT 53 / + 9
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1857
SELECT DISTINCT 16 * + CAST( + 97 AS SIGNED ) col2
----
1552

skipif mysql # not compatible
query I rowsort label-1857
SELECT DISTINCT 16 * + CAST ( + 97 AS INTEGER ) col2
----
1552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1858
SELECT + 62 AS col1, COUNT( * ) - + NULLIF ( + COUNT( * ), - COUNT( ALL CAST( NULL AS SIGNED ) ) + + 78 ) + - - MIN( - 95 ) + - MAX( + 97 ) * - - 5 * 1 AS col0
----
62
-580

skipif mysql # not compatible
query II rowsort label-1858
SELECT + 62 AS col1, COUNT ( * ) - + NULLIF ( + COUNT ( * ), - COUNT ( ALL CAST ( NULL AS INTEGER ) ) + + 78 ) + - - MIN ( - 95 ) + - MAX ( + 97 ) * - - 5 * 1 AS col0
----
62
-580

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

skipif mysql # not compatible
query I rowsort label-1859
SELECT ( + COUNT ( * ) ) + - 79 AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT DISTINCT 21 - + + CASE + + 33 WHEN 64 THEN + + 7 - 13 END * - ( + - NULLIF ( + + 77, 89 + - NULLIF ( + 35, 69 + + 8 + + COUNT( * ) * + 6 ) * 33 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1860
SELECT DISTINCT 21 - + + CASE + + 33 WHEN 64 THEN + + 7 - 13 END * - ( + - NULLIF ( + + 77, 89 + - NULLIF ( + 35, 69 + + 8 + + COUNT ( * ) * + 6 ) * 33 ) )
----
NULL

query II rowsort
SELECT 78 AS col0, 95
----
78
95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT DISTINCT - CASE + 6 WHEN 21 THEN - COUNT( - + 90 ) + + NULLIF ( 19, + + 50 ) / - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1863
SELECT DISTINCT - CASE + 6 WHEN 21 THEN - COUNT ( - + 90 ) + + NULLIF ( 19, + + 50 ) / - COUNT ( * ) END AS col0
----
NULL

query II rowsort
SELECT ALL - 80 * + 74 * + 97 col0, - 83 AS col2
----
-574240
-83

query I rowsort
SELECT 14 * + 49
----
686

query I rowsort
SELECT - - 63 col0
----
63

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT MIN( 30 )
----
30

skipif mysql # not compatible
query I rowsort label-1868
SELECT MIN ( 30 )
----
30

query I rowsort
SELECT ALL + + 3 * - ( - + 93 )
----
279

query I rowsort
SELECT 40 + - 57 AS col1
----
-17

query I rowsort
SELECT DISTINCT + COALESCE ( - 20, + - 19 ) * - - 74 AS col2
----
-1480

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT DISTINCT 3 * + 21 + + COUNT( * ) * + 87 - + + 33 + - 26
----
91

skipif mysql # not compatible
query I rowsort label-1872
SELECT DISTINCT 3 * + 21 + + COUNT ( * ) * + 87 - + + 33 + - 26
----
91

query I rowsort
SELECT ALL + - 90 + 64
----
-26

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1874
SELECT ALL - - NULLIF ( - 82, 80 ) + + 53 * ( CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1874
SELECT ALL - - NULLIF ( - 82, 80 ) + + 53 * ( CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT ALL COUNT( * ) * - + 13 * 45 * - - 79 AS col0
----
-46215

skipif mysql # not compatible
query I rowsort label-1875
SELECT ALL COUNT ( * ) * - + 13 * 45 * - - 79 AS col0
----
-46215

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT DISTINCT - 98 + - + 79 + - 2 * - + 86 * + 7 * - COUNT( * ) + 1 - - 78 + - + 64 * + 27 * ( + + 12 ) + + 35
----
-22003

skipif mysql # not compatible
query I rowsort label-1876
SELECT DISTINCT - 98 + - + 79 + - 2 * - + 86 * + 7 * - COUNT ( * ) + 1 - - 78 + - + 64 * + 27 * ( + + 12 ) + + 35
----
-22003

query I rowsort
SELECT 99 * + 95 * - ( + 75 ) AS col0
----
-705375

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT - 31 + + COUNT( DISTINCT + 23 )
----
-30

skipif mysql # not compatible
query I rowsort label-1878
SELECT - 31 + + COUNT ( DISTINCT + 23 )
----
-30

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

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

query I rowsort
SELECT ALL + 49 * 89 AS col2
----
4361

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT ALL - - COUNT( * ) * + 63 * - 26 AS col1
----
-1638

skipif mysql # not compatible
query I rowsort label-1882
SELECT ALL - - COUNT ( * ) * + 63 * - 26 AS col1
----
-1638

query II rowsort
SELECT DISTINCT 90 AS col2, COALESCE ( - - 55, + 44 * - 59 + + ( + 92 ) + - - 79 * 99 ) + 16 - + + 15 + - + 52 * + 16
----
90
-776

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1884
SELECT COUNT( - - 50 ) + - - 51 * 69 * - 59 * + + 76 AS col1, - 88 + + ( - ( 3 ) ) + + 21 + 78 * 7 * + - CASE + 77 WHEN + 67 THEN NULL WHEN + 20 THEN NULL WHEN MIN( ALL - ( + CAST( - 42 AS SIGNED ) ) ) + 23 THEN AVG ( ALL + 45 ) WHEN 59 THEN NULL ELSE NULL END
----
-15779195
NULL

skipif mysql # not compatible
query II rowsort label-1884
SELECT COUNT ( - - 50 ) + - - 51 * 69 * - 59 * + + 76 AS col1, - 88 + + ( - ( 3 ) ) + + 21 + 78 * 7 * + - CASE + 77 WHEN + 67 THEN NULL WHEN + 20 THEN NULL WHEN MIN ( ALL - ( + CAST ( - 42 AS INTEGER ) ) ) + 23 THEN AVG ( ALL + 45 ) WHEN 59 THEN NULL ELSE NULL END
----
-15779195
NULL

query I rowsort
SELECT ALL + 83 * - 31 AS col2
----
-2573

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1886
SELECT - 68 * - ( + + 76 ) + - COALESCE ( - 66, + COALESCE ( COUNT( * ), + 13 * - 35 + - + SUM( + + 6 ) * CASE 59 WHEN + + CAST( NULL AS SIGNED ) THEN NULL WHEN 77 THEN CASE NULLIF ( MIN( 80 ), 53 ) WHEN 53 * + COUNT( * ) THEN + 61 - COUNT( * ) WHEN 64 THEN + 77 END ELSE NULL END + - 65, 69 ) * 79 ) AS col0
----
5234

skipif mysql # not compatible
query I rowsort label-1886
SELECT - 68 * - ( + + 76 ) + - COALESCE ( - 66, + COALESCE ( COUNT ( * ), + 13 * - 35 + - + SUM ( + + 6 ) * CASE 59 WHEN + + CAST ( NULL AS INTEGER ) THEN NULL WHEN 77 THEN CASE NULLIF ( MIN ( 80 ), 53 ) WHEN 53 * + COUNT ( * ) THEN + 61 - COUNT ( * ) WHEN 64 THEN + 77 END ELSE NULL END + - 65, 69 ) * 79 ) AS col0
----
5234

query II rowsort
SELECT + 48, ( + 44 ) AS col2
----
48
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT MIN( DISTINCT - 55 ) col1
----
-55

skipif mysql # not compatible
query I rowsort label-1888
SELECT MIN ( DISTINCT - 55 ) col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT MIN( ALL - 10 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-1889
SELECT MIN ( ALL - 10 ) AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT DISTINCT - NULLIF ( - 28, + COUNT( * ) ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-1890
SELECT DISTINCT - NULLIF ( - 28, + COUNT ( * ) ) AS col2
----
28

query I rowsort
SELECT 63 + - 32 AS col2
----
31

query II rowsort
SELECT + 7 col2, - 65 * + 54 + 51 AS col0
----
7
-3459

query I rowsort
SELECT DISTINCT - COALESCE ( 3, 37 )
----
-3

query I rowsort
SELECT ALL 45 * + 43 col0
----
1935

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

query I rowsort
SELECT ALL - ( 16 ) AS col2
----
-16

query I rowsort
SELECT ALL 97 * - - 33 AS col1
----
3201

query I rowsort
SELECT 7 + 70 + - 15 * - 17
----
332

onlyif mysql # DIV for integer division: 
query I rowsort label-1899
SELECT 14 DIV 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1899
SELECT 14 / 71 AS col2
----
0

query I rowsort
SELECT ( 22 ) + + 90 AS col2
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT + 72 * + + 87 + - ( COUNT( * ) ) * + - ( - 68 ) AS col1
----
6196

skipif mysql # not compatible
query I rowsort label-1901
SELECT + 72 * + + 87 + - ( COUNT ( * ) ) * + - ( - 68 ) AS col1
----
6196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1902
SELECT ( - 48 ) + - + CAST( NULL AS SIGNED ) / - AVG ( DISTINCT - - 65 ) + + 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1902
SELECT ( - 48 ) + - + CAST ( NULL AS INTEGER ) / - AVG ( DISTINCT - - 65 ) + + 58 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1903
SELECT 22 * - 22 * + ( - + CAST( NULL AS SIGNED ) ) + NULLIF ( + ( + 94 ), + MIN( ALL + 22 ) ) * + + 9 + - COUNT( ALL - 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1903
SELECT 22 * - 22 * + ( - + CAST ( NULL AS INTEGER ) ) + NULLIF ( + ( + 94 ), + MIN ( ALL + 22 ) ) * + + 9 + - COUNT ( ALL - 65 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1904
SELECT MIN ( ALL - 97 )
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1905
SELECT - ( 89 ) * 76 + + 90 + + + CAST( + CASE - 18 WHEN + 57 THEN CAST( + - ( 29 ) AS SIGNED ) END AS SIGNED ) * + 46 + + - 3 * + 25 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1905
SELECT - ( 89 ) * 76 + + 90 + + + CAST ( + CASE - 18 WHEN + 57 THEN CAST ( + - ( 29 ) AS INTEGER ) END AS INTEGER ) * + 46 + + - 3 * + 25 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1906
SELECT ALL - 68 col2, COUNT( * ) * - + 62 * 70 AS col2
----
-68
-4340

skipif mysql # not compatible
query II rowsort label-1906
SELECT ALL - 68 col2, COUNT ( * ) * - + 62 * 70 AS col2
----
-68
-4340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1907
SELECT COALESCE ( + - CAST( NULL AS SIGNED ), 27 * 76 * - 21, + + CASE ( + + 42 ) WHEN 42 * - - 28 + + + 61 THEN + MIN( + - 74 ) * + + 88 + - 56 END + 6 * 62 )
----
-43092

skipif mysql # not compatible
query I rowsort label-1907
SELECT COALESCE ( + - CAST ( NULL AS INTEGER ), 27 * 76 * - 21, + + CASE ( + + 42 ) WHEN 42 * - - 28 + + + 61 THEN + MIN ( + - 74 ) * + + 88 + - 56 END + 6 * 62 )
----
-43092

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

skipif mysql # not compatible
query I rowsort label-1908
SELECT ALL 66 + + COUNT ( * ) / + 84 AS col0
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1909
SELECT 57 + - + CAST( NULL AS SIGNED ) + + + NULLIF ( - 66, + - COUNT( * ) * - 46 ) - COUNT( * ) / - COUNT( * ) + + - 29 + + 91 * + + 23 + + COUNT( * ) + 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1909
SELECT 57 + - + CAST ( NULL AS INTEGER ) + + + NULLIF ( - 66, + - COUNT ( * ) * - 46 ) - COUNT ( * ) / - COUNT ( * ) + + - 29 + + 91 * + + 23 + + COUNT ( * ) + 78 AS col2
----
NULL

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

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

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

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

query II rowsort
SELECT 77 col0, 74
----
77
74

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

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

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

query I rowsort
SELECT + 24 + 67 AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1916
SELECT CASE COALESCE ( + - 51, + - 14 * 1 ) WHEN + 16 THEN 69 * + 25 + - 12 WHEN + CASE - 14 WHEN + 85 / - - 75 - + COUNT( * ) - + - MAX( - 63 ) * 64 THEN - 77 / ( - SUM( + 15 ) ) ELSE NULL END - 45 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1916
SELECT CASE COALESCE ( + - 51, + - 14 * 1 ) WHEN + 16 THEN 69 * + 25 + - 12 WHEN + CASE - 14 WHEN + 85 / - - 75 - + COUNT ( * ) - + - MAX ( - 63 ) * 64 THEN - 77 / ( - SUM ( + 15 ) ) ELSE NULL END - 45 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1917
SELECT - + 60, 8 DIV - 4 * - COUNT( * ) AS col2
----
-60
2

skipif mysql # not compatible
query II rowsort label-1917
SELECT - + 60, 8 / - 4 * - COUNT ( * ) AS col2
----
-60
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT DISTINCT + SUM( DISTINCT 49 ) + + 72 * 37 AS col2
----
2713

skipif mysql # not compatible
query I rowsort label-1918
SELECT DISTINCT + SUM ( DISTINCT 49 ) + + 72 * 37 AS col2
----
2713

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT ALL - CASE - 91 WHEN + - 32 THEN + AVG ( + + 10 ) + COUNT( * ) * + 8 + ( + COUNT( * ) ) ELSE NULL END + + 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1919
SELECT ALL - CASE - 91 WHEN + - 32 THEN + AVG ( + + 10 ) + COUNT ( * ) * + 8 + ( + COUNT ( * ) ) ELSE NULL END + + 4 AS col0
----
NULL

query I rowsort
SELECT ALL 21 * + - 65 + + - 23 + - + 0 AS col1
----
-1388

query I rowsort
SELECT ALL NULLIF ( + + 61, 73 ) AS col0
----
61

query I rowsort
SELECT - - ( + 53 ) + - 69
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT DISTINCT - 92 - 14 * - COUNT( * ) * 35
----
398

skipif mysql # not compatible
query I rowsort label-1923
SELECT DISTINCT - 92 - 14 * - COUNT ( * ) * 35
----
398

query II rowsort
SELECT ALL 67 AS col0, 85
----
67
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1925
SELECT ALL + 97 - + 55, - ( + + COALESCE ( 17, + CAST( NULL AS SIGNED ), + NULLIF ( - 59, + COUNT( * ) * + 16 + + + 98 * + 70 DIV + 23 ) + + 23 * 13 ) ) + - COALESCE ( + 56, COUNT( * ) DIV ( 49 ), + 49 + + 54 ) AS col0
----
42
-73

skipif mysql # not compatible
query II rowsort label-1925
SELECT ALL + 97 - + 55, - ( + + COALESCE ( 17, + CAST ( NULL AS INTEGER ), + NULLIF ( - 59, + COUNT ( * ) * + 16 + + + 98 * + 70 / + 23 ) + + 23 * 13 ) ) + - COALESCE ( + 56, COUNT ( * ) / ( 49 ), + 49 + + 54 ) AS col0
----
42
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-1926
SELECT ALL - 25 DIV + 92 AS col2, 15 col2, COALESCE ( 38, - COUNT( * ) - 35 )
----
0
15
38

skipif mysql # not compatible
query III rowsort label-1926
SELECT ALL - 25 / + 92 AS col2, 15 col2, COALESCE ( 38, - COUNT ( * ) - 35 )
----
0
15
38

query I rowsort
SELECT DISTINCT + 7 * + 72 AS col2
----
504

query I rowsort
SELECT ALL + 98 * 19 AS col2
----
1862

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

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

query I rowsort
SELECT - 10 * - + 97 * + 39
----
37830

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

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

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

query I rowsort
SELECT ALL + 90 * - 83 AS col0
----
-7470

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1935
SELECT - 74 * + 24 * + + 4 * COALESCE ( - 7, 32 - - MIN( DISTINCT 88 ) DIV - 53, + 65 )
----
49728

skipif mysql # not compatible
query I rowsort label-1935
SELECT - 74 * + 24 * + + 4 * COALESCE ( - 7, 32 - - MIN ( DISTINCT 88 ) / - 53, + 65 )
----
49728

query I rowsort
SELECT - 80 * + 0
----
0

query I rowsort
SELECT NULLIF ( + 50, - + 71 )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1938
SELECT CASE 3 WHEN 58 THEN + - CASE 63 WHEN COUNT( * ) THEN + AVG ( DISTINCT 50 ) WHEN + 20 THEN + CAST( NULL AS SIGNED ) WHEN - - 95 + + - COALESCE ( - - 53, 68 ) THEN NULL END + - 70 WHEN 81 THEN + 91 + + 2 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1938
SELECT CASE 3 WHEN 58 THEN + - CASE 63 WHEN COUNT ( * ) THEN + AVG ( DISTINCT 50 ) WHEN + 20 THEN + CAST ( NULL AS INTEGER ) WHEN - - 95 + + - COALESCE ( - - 53, 68 ) THEN NULL END + - 70 WHEN 81 THEN + 91 + + 2 END
----
NULL

query I rowsort
SELECT COALESCE ( - ( 29 ), - 39 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT ALL + COUNT( * ) * + 21 + - 33 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-1940
SELECT ALL + COUNT ( * ) * + 21 + - 33 AS col1
----
-12

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

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

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

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

query I rowsort
SELECT ALL - + 89 * - 24 + + COALESCE ( + 57, 34 - 28 + 34, + 57 * + 94 ) AS col0
----
2193

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT + - 45 * + + COUNT( * ) + - + 27 + - COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-1944
SELECT + - 45 * + + COUNT ( * ) + - + 27 + - COUNT ( * )
----
-73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT + + MIN( DISTINCT + 64 ) * - 77 - + - COUNT( ALL - 61 ) * - - 38 AS col0
----
-4890

skipif mysql # not compatible
query I rowsort label-1946
SELECT + + MIN ( DISTINCT + 64 ) * - 77 - + - COUNT ( ALL - 61 ) * - - 38 AS col0
----
-4890

query I rowsort
SELECT - 13 + + 9 + + + 14 col1
----
10

query I rowsort
SELECT + 36 * 99
----
3564

query II rowsort
SELECT ALL + 13 * + - 40 AS col1, 47
----
-520
47

query I rowsort
SELECT + + 43 + + 48
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1951
SELECT ALL 93 / + + 98 + + + 30 / + + CAST( NULL AS SIGNED ) * + 35 / + 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1951
SELECT ALL 93 / + + 98 + + + 30 / + + CAST ( NULL AS INTEGER ) * + 35 / + 48 AS col2
----
NULL

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

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

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

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

query II rowsort
SELECT + + 94 + + 61 AS col0, NULLIF ( 86, + 62 ) + 36 col2
----
155
122

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT ALL + CASE - COUNT( * ) WHEN 83 - + + 97 + + - 11 THEN + 36 * + - 71 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1955
SELECT ALL + CASE - COUNT ( * ) WHEN 83 - + + 97 + + - 11 THEN + 36 * + - 71 ELSE NULL END col2
----
NULL

query II rowsort
SELECT + + 83 * - - 73 AS col1, 77
----
6059
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT ALL MAX( DISTINCT + - 25 ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-1957
SELECT ALL MAX ( DISTINCT + - 25 ) AS col0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1958
SELECT DISTINCT 34 * - CAST( NULL AS SIGNED ) * - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-1958
SELECT DISTINCT 34 * - CAST ( NULL AS INTEGER ) * - 25
----
NULL

query I rowsort
SELECT ALL 69 * 58 AS col1
----
4002

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT ALL NULLIF ( - + 82, 28 / + NULLIF ( COUNT( * ), - ( ( + 35 ) ) + - + 96 * - 6 ) )
----
-82

skipif mysql # not compatible
query I rowsort label-1960
SELECT ALL NULLIF ( - + 82, 28 / + NULLIF ( COUNT ( * ), - ( ( + 35 ) ) + - + 96 * - 6 ) )
----
-82

query I rowsort
SELECT DISTINCT + NULLIF ( 12, + 22 * + 51 ) * - 27 col0
----
-324

query I rowsort
SELECT DISTINCT 99 * - 34
----
-3366

query I rowsort
SELECT DISTINCT COALESCE ( 91, ( + 43 ) ) AS col2
----
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT - ( + - 38 ) * COALESCE ( - + 62, + COUNT( * ) )
----
-2356

skipif mysql # not compatible
query I rowsort label-1965
SELECT - ( + - 38 ) * COALESCE ( - + 62, + COUNT ( * ) )
----
-2356

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT ALL 33 * - COUNT( * ) * SUM( DISTINCT - ( + ( - 81 ) ) ) * - + 20
----
53460

skipif mysql # not compatible
query I rowsort label-1966
SELECT ALL 33 * - COUNT ( * ) * SUM ( DISTINCT - ( + ( - 81 ) ) ) * - + 20
----
53460

query I rowsort
SELECT 21 * - 4 + + 46 AS col1
----
-38

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1969
SELECT - 80 DIV 51 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1969
SELECT - 80 / 51 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1970
SELECT ALL + 53 DIV + 53 + - 15
----
-14

skipif mysql # not compatible
query I rowsort label-1970
SELECT ALL + 53 / + 53 + - 15
----
-14

query II rowsort
SELECT + 68 + ( + + 44 ) + + 8 * 4 + - 59 AS col0, 93 AS col1
----
85
93

query II rowsort
SELECT + 25, 4 AS col1
----
25
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1973
SELECT ALL + 37 DIV - - 91 + + + ( + COUNT( * ) ) * + - COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-1973
SELECT ALL + 37 / - - 91 + + + ( + COUNT ( * ) ) * + - COUNT ( * ) col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1974
SELECT - 44 DIV 32
----
-1

skipif mysql # not compatible
query I rowsort label-1974
SELECT - 44 / 32
----
-1

query I rowsort
SELECT - 62 + - - 46 AS col2
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1976
SELECT DISTINCT COUNT( ALL + - 93 ) DIV + 9 + 19 + + 83 * - COUNT( * ) AS col0, 17 + 89
----
-64
106

skipif mysql # not compatible
query II rowsort label-1976
SELECT DISTINCT COUNT ( ALL + - 93 ) / + 9 + 19 + + 83 * - COUNT ( * ) AS col0, 17 + 89
----
-64
106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1977
SELECT DISTINCT + ( 24 ) * - + COALESCE ( - 12, + 31 * - - CAST( NULL AS SIGNED ) ) AS col0
----
288

skipif mysql # not compatible
query I rowsort label-1977
SELECT DISTINCT + ( 24 ) * - + COALESCE ( - 12, + 31 * - - CAST ( NULL AS INTEGER ) ) AS col0
----
288

query I rowsort
SELECT DISTINCT - + 84 * ( 28 ) * 27 + + + 1 * - 90
----
-63594

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1980
SELECT ALL - + 90 DIV + - 64 + - + ( MIN( - 75 ) ) - - COUNT( * ) * + COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-1980
SELECT ALL - + 90 / + - 64 + - + ( MIN ( - 75 ) ) - - COUNT ( * ) * + COUNT ( * )
----
77

query I rowsort
SELECT DISTINCT - 10 * - 66
----
660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1982
SELECT CASE + - 29 WHEN MIN( + NULLIF ( ( - - ( - COALESCE ( - 3, + + 11 ) ) ), - - CAST( - 20 AS SIGNED ) ) ) THEN 99 ELSE NULL END + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1982
SELECT CASE + - 29 WHEN MIN ( + NULLIF ( ( - - ( - COALESCE ( - 3, + + 11 ) ) ), - - CAST ( - 20 AS INTEGER ) ) ) THEN 99 ELSE NULL END + - + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + - 54 + - 16
----
-70

query I rowsort
SELECT DISTINCT - + 92 * + + 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT - 54 + MIN( 18 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-1985
SELECT - 54 + MIN ( 18 ) AS col1
----
-36

query I rowsort
SELECT DISTINCT - - 79 - 77 AS col2
----
2

query I rowsort
SELECT + 34 * - 73 + + NULLIF ( + + 56, - 61 )
----
-2426

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

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

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

skipif mysql # not compatible
query I rowsort label-1989
SELECT - MAX ( + + 49 )
----
-49

query I rowsort
SELECT ALL - + 37 - - 30
----
-7

onlyif mysql # DIV for integer division: 
query II rowsort label-1991
SELECT DISTINCT + + 74 DIV + + ( 69 ), - 26 AS col2
----
1
-26

skipif mysql # not compatible
query II rowsort label-1991
SELECT DISTINCT + + 74 / + + ( 69 ), - 26 AS col2
----
1
-26

query I rowsort
SELECT + ( + COALESCE ( - 49, - 38, - 10 * 41 + - 96 ) )
----
-49

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

query I rowsort
SELECT - 70 * - 48
----
3360

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT DISTINCT 57 * + + COUNT( ALL - 92 ) * - 69 AS col1
----
-3933

skipif mysql # not compatible
query I rowsort label-1996
SELECT DISTINCT 57 * + + COUNT ( ALL - 92 ) * - 69 AS col1
----
-3933

query I rowsort
SELECT ( 18 ) + + 42 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT CASE ( + SUM( ALL - ( 23 ) ) ) WHEN + - 4 THEN + 72 END / - 99 + - - 73 * + 1 + + ( + COUNT( - 26 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1998
SELECT CASE ( + SUM ( ALL - ( 23 ) ) ) WHEN + - 4 THEN + 72 END / - 99 + - - 73 * + 1 + + ( + COUNT ( - 26 ) )
----
NULL

query I rowsort
SELECT ALL + 25 * + 18
----
450

query I rowsort
SELECT DISTINCT 96 col0
----
96

query I rowsort
SELECT 98 + ( - 14 ) AS col1
----
84

query II rowsort
SELECT ALL 34 + 79, 69 AS col0
----
113
69

onlyif mysql # DIV for integer division: 
query I rowsort label-2003
SELECT DISTINCT 51 DIV + 20 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2003
SELECT DISTINCT 51 / + 20 AS col2
----
2

query I rowsort
SELECT ALL 86 + 17 + + COALESCE ( + - 2, - 73 )
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-2005
SELECT DISTINCT COUNT( * ) + COUNT( * ) + - 40 + + 29 + + 53 AS col1, - ( + CASE 56 WHEN - 39 THEN NULL ELSE + 65 END ) - + - 91
----
44
26

skipif mysql # not compatible
query II rowsort label-2005
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) + - 40 + + 29 + + 53 AS col1, - ( + CASE 56 WHEN - 39 THEN NULL ELSE + 65 END ) - + - 91
----
44
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2006
SELECT CASE + - 66 WHEN CASE WHEN 47 NOT BETWEEN NULL AND - CAST( NULL AS SIGNED ) * + 17 THEN 63 * + CAST( COALESCE ( + - 28, - ( 99 ), + - ( + MAX( + + 63 ) ) * + CAST( - 75 AS DECIMAL ) * - + 36 * + COUNT( * ) ) AS DECIMAL ) + - ( 60 ) ELSE NULL END THEN NULL WHEN - 36 THEN 49 ELSE NULL END * 57
----
NULL

skipif mysql # not compatible
query I rowsort label-2006
SELECT CASE + - 66 WHEN CASE WHEN 47 NOT BETWEEN NULL AND - CAST ( NULL AS INTEGER ) * + 17 THEN 63 * + CAST ( COALESCE ( + - 28, - ( 99 ), + - ( + MAX ( + + 63 ) ) * + CAST ( - 75 AS REAL ) * - + 36 * + COUNT ( * ) ) AS REAL ) + - ( 60 ) ELSE NULL END THEN NULL WHEN - 36 THEN 49 ELSE NULL END * 57
----
NULL

query I rowsort
SELECT ( - + 24 ) + + - 35 AS col1
----
-59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2008
SELECT ALL ( 40 ) + + CASE 75 WHEN - MIN( - 24 ) / + MIN( DISTINCT - 10 ) + + 51 * 37 THEN + 61 * 3 + + 92 + CASE + 41 WHEN + 62 * 23 + - - CASE + 42 WHEN 41 + 74 THEN + 42 + 18 * NULLIF ( 65 + - CAST( + ( + ( 22 ) ) - - 42 AS DECIMAL ) / + 73, + 43 ) WHEN - 22 THEN NULL WHEN 19 * - 24 THEN NULL ELSE NULL END THEN 67 / 79 ELSE - 78 END + 82 * - 49 END / 21
----
NULL

skipif mysql # not compatible
query I rowsort label-2008
SELECT ALL ( 40 ) + + CASE 75 WHEN - MIN ( - 24 ) / + MIN ( DISTINCT - 10 ) + + 51 * 37 THEN + 61 * 3 + + 92 + CASE + 41 WHEN + 62 * 23 + - - CASE + 42 WHEN 41 + 74 THEN + 42 + 18 * NULLIF ( 65 + - CAST ( + ( + ( 22 ) ) - - 42 AS REAL ) / + 73, + 43 ) WHEN - 22 THEN NULL WHEN 19 * - 24 THEN NULL ELSE NULL END THEN 67 / 79 ELSE - 78 END + 82 * - 49 END / 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT ALL + COUNT( ALL - 90 ) + + 74 * CASE + + ( + - NULLIF ( + - 41, 92 + - 65 + ( - COUNT( * ) ) / + + COUNT( * ) * + COUNT( * ) ) ) WHEN 55 * + 91 * - 69 * + COUNT( * ) THEN - 38 WHEN - 46 * + 21 THEN - 85 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2009
SELECT ALL + COUNT ( ALL - 90 ) + + 74 * CASE + + ( + - NULLIF ( + - 41, 92 + - 65 + ( - COUNT ( * ) ) / + + COUNT ( * ) * + COUNT ( * ) ) ) WHEN 55 * + 91 * - 69 * + COUNT ( * ) THEN - 38 WHEN - 46 * + 21 THEN - 85 END
----
NULL

query I rowsort
SELECT ( + 84 ) * + NULLIF ( + ( + + 17 ), + 64 ) * 24 + - 78
----
34194

onlyif mysql # aggregate syntax: 
query I rowsort label-2011
SELECT DISTINCT + 45 + - ( - CASE - COUNT( * ) WHEN + - 6 THEN - 72 ELSE + + 72 * - COUNT( * ) + 48 END ) + 58 * 17 + 1
----
1008

skipif mysql # not compatible
query I rowsort label-2011
SELECT DISTINCT + 45 + - ( - CASE - COUNT ( * ) WHEN + - 6 THEN - 72 ELSE + + 72 * - COUNT ( * ) + 48 END ) + 58 * 17 + 1
----
1008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2012
SELECT ALL - 91 + - 92 + + + 9 * - 77 * - NULLIF ( + 73, + COALESCE ( - 72, - 22 + + COUNT( * ) + + NULLIF ( + 34, CAST( 22 AS SIGNED ) - - 67 + 8 + + + 6 * + 20 + + CASE + 86 WHEN 12 - + ( 53 + 90 ) THEN NULL WHEN + 51 * + 47 THEN NULL WHEN + 50 THEN - 66 ELSE + 63 END * - 0 ) ) * + 17 )
----
50406

skipif mysql # not compatible
query I rowsort label-2012
SELECT ALL - 91 + - 92 + + + 9 * - 77 * - NULLIF ( + 73, + COALESCE ( - 72, - 22 + + COUNT ( * ) + + NULLIF ( + 34, CAST ( 22 AS INTEGER ) - - 67 + 8 + + + 6 * + 20 + + CASE + 86 WHEN 12 - + ( 53 + 90 ) THEN NULL WHEN + 51 * + 47 THEN NULL WHEN + 50 THEN - 66 ELSE + 63 END * - 0 ) ) * + 17 )
----
50406

query I rowsort
SELECT 43 - - + NULLIF ( + 88, - ( 61 ) ) AS col2
----
131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2014
SELECT + COUNT( * ) * - 96 DIV - SUM( DISTINCT 9 ) + - 37 + + 11 - - ( + 99 ) col0
----
83

skipif mysql # not compatible
query I rowsort label-2014
SELECT + COUNT ( * ) * - 96 / - SUM ( DISTINCT 9 ) + - 37 + + 11 - - ( + 99 ) col0
----
83

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2016
SELECT + SUM( DISTINCT + 61 ) DIV - MAX( DISTINCT + 7 ) AS col2, + 59
----
-8
59

skipif mysql # not compatible
query II rowsort label-2016
SELECT + SUM ( DISTINCT + 61 ) / - MAX ( DISTINCT + 7 ) AS col2, + 59
----
-8
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT + MIN( DISTINCT + + 96 ) * - 77 + - 94 AS col0
----
-7486

skipif mysql # not compatible
query I rowsort label-2017
SELECT + MIN ( DISTINCT + + 96 ) * - 77 + - 94 AS col0
----
-7486

query I rowsort
SELECT ALL - ( - 97 ) AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT - 81 * - 74 + - CASE + ( - + ( - CASE 71 WHEN 84 * + ( + 79 ) + - + 35 * + 18 * 23 THEN + NULLIF ( - ( + COUNT( * ) ), + 94 * - NULLIF ( - - 99, 48 ) ) + - 46 * 40 END ) ) WHEN + 75 THEN + 91 * 80 WHEN - MIN( ( - 98 ) ) THEN NULL ELSE 22 * 12 END - - 57 AS col0
----
5787

skipif mysql # not compatible
query I rowsort label-2019
SELECT - 81 * - 74 + - CASE + ( - + ( - CASE 71 WHEN 84 * + ( + 79 ) + - + 35 * + 18 * 23 THEN + NULLIF ( - ( + COUNT ( * ) ), + 94 * - NULLIF ( - - 99, 48 ) ) + - 46 * 40 END ) ) WHEN + 75 THEN + 91 * 80 WHEN - MIN ( ( - 98 ) ) THEN NULL ELSE 22 * 12 END - - 57 AS col0
----
5787

onlyif mysql # DIV for integer division: 
query I rowsort label-2020
SELECT ALL - NULLIF ( 53, - 43 DIV + 25 ) DIV + 72 - - 58 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-2020
SELECT ALL - NULLIF ( 53, - 43 / + 25 ) / + 72 - - 58 AS col1
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2021
SELECT ALL 87 DIV + + 74 + - 64 * + + 33 + + + 61 * + 63 + 95 * 99 * + 61 * + 7
----
4017667

skipif mysql # not compatible
query I rowsort label-2021
SELECT ALL 87 / + + 74 + - 64 * + + 33 + + + 61 * + 63 + 95 * 99 * + 61 * + 7
----
4017667

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT ALL + COUNT( * ) * 5 - - - COUNT( - + 50 )
----
4

skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL + COUNT ( * ) * 5 - - - COUNT ( - + 50 )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2023
SELECT DISTINCT - 63 * CAST( NULL AS SIGNED ) + + 21 + CAST( - + 40 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2023
SELECT DISTINCT - 63 * CAST ( NULL AS INTEGER ) + + 21 + CAST ( - + 40 AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2024
SELECT DISTINCT + + 72 * - - COUNT( * ) + CAST( NULL AS SIGNED ) * + + 73 * + + SUM( + 81 ) * + 52 - - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-2024
SELECT DISTINCT + + 72 * - - COUNT ( * ) + CAST ( NULL AS INTEGER ) * + + 73 * + + SUM ( + 81 ) * + 52 - - 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT CASE 89 WHEN + COUNT( * ) THEN - 68 * - + 60 + - 50 WHEN - 67 * - - 8 * + 92 * 31 * - COUNT( * ) * - MIN( + 79 ) + + + 33 THEN - + 66 END / + 10 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2025
SELECT CASE 89 WHEN + COUNT ( * ) THEN - 68 * - + 60 + - 50 WHEN - 67 * - - 8 * + 92 * 31 * - COUNT ( * ) * - MIN ( + 79 ) + + + 33 THEN - + 66 END / + 10 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT ALL + 72 * - 93 + + - MIN( ALL 84 ) - + 3 AS col0
----
-6783

skipif mysql # not compatible
query I rowsort label-2026
SELECT ALL + 72 * - 93 + + - MIN ( ALL 84 ) - + 3 AS col0
----
-6783

query I rowsort
SELECT 83 + - 50 * 70 + + 96 + 75 AS col0
----
-3246

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2028
SELECT + 7 * + + CAST( + - 65 AS SIGNED ) AS col1
----
-455

skipif mysql # not compatible
query I rowsort label-2028
SELECT + 7 * + + CAST ( + - 65 AS INTEGER ) AS col1
----
-455

onlyif mysql # aggregate syntax: 
query II rowsort label-2029
SELECT DISTINCT COUNT( * ) AS col1, COUNT( 8 ) * - - 18 * + 32 * + + 14
----
1
8064

skipif mysql # not compatible
query II rowsort label-2029
SELECT DISTINCT COUNT ( * ) AS col1, COUNT ( 8 ) * - - 18 * + 32 * + + 14
----
1
8064

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2030
SELECT ALL MIN( + - CASE + ( 55 ) WHEN + - 25 THEN - 60 WHEN - 29 THEN COALESCE ( CAST( NULL AS DECIMAL ), 7 * + 66 ) * + - 35 - 9 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2030
SELECT ALL MIN ( + - CASE + ( 55 ) WHEN + - 25 THEN - 60 WHEN - 29 THEN COALESCE ( CAST ( NULL AS REAL ), 7 * + 66 ) * + - 35 - 9 ELSE NULL END )
----
NULL

query I rowsort
SELECT ALL - 39 + 26
----
-13

query I rowsort
SELECT 92 + 26
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT ALL MAX( ALL - 20 ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-2033
SELECT ALL MAX ( ALL - 20 ) AS col2
----
-20

query I rowsort
SELECT ALL 99 * - 64 col1
----
-6336

onlyif mysql # DIV for integer division: 
query I rowsort label-2035
SELECT 8 DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-2035
SELECT 8 / - 96
----
0

query I rowsort
SELECT ALL - 94 + - + 14
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2037
SELECT 33, CAST( - + 18 AS SIGNED ) AS col2
----
33
-18

skipif mysql # not compatible
query II rowsort label-2037
SELECT 33, CAST ( - + 18 AS INTEGER ) AS col2
----
33
-18

query I rowsort
SELECT 33 * + - 42 col2
----
-1386

onlyif mysql # aggregate syntax: 
query I rowsort label-2039
SELECT DISTINCT 80 + 38 - + COUNT( * )
----
117

skipif mysql # not compatible
query I rowsort label-2039
SELECT DISTINCT 80 + 38 - + COUNT ( * )
----
117

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

skipif mysql # not compatible
query I rowsort label-2040
SELECT ALL MIN ( ALL 84 )
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2041
SELECT DISTINCT - 77 + MIN( - 1 ), CASE + - 81 WHEN 55 * 25 THEN NULL WHEN - - 99 + - - 98 + + - CASE 47 WHEN 75 THEN + + 12 WHEN + - 28 THEN 6 + - CAST( NULL AS SIGNED ) * - 99 WHEN - 39 * + 56 THEN NULL END THEN + 26 * COUNT( * ) END + MAX( ALL - COALESCE ( - 88, COALESCE ( COALESCE ( + 21, 65 * + 64 ), ( - 55 ), ( + 68 ) * - 91 ) * CAST( NULL AS SIGNED ), - 66, + 38 ) ) AS col2
----
-78
NULL

skipif mysql # not compatible
query II rowsort label-2041
SELECT DISTINCT - 77 + MIN ( - 1 ), CASE + - 81 WHEN 55 * 25 THEN NULL WHEN - - 99 + - - 98 + + - CASE 47 WHEN 75 THEN + + 12 WHEN + - 28 THEN 6 + - CAST ( NULL AS INTEGER ) * - 99 WHEN - 39 * + 56 THEN NULL END THEN + 26 * COUNT ( * ) END + MAX ( ALL - COALESCE ( - 88, COALESCE ( COALESCE ( + 21, 65 * + 64 ), ( - 55 ), ( + 68 ) * - 91 ) * CAST ( NULL AS INTEGER ), - 66, + 38 ) ) AS col2
----
-78
NULL

query I rowsort
SELECT 23 - 94 * 62 AS col2
----
-5805

query I rowsort
SELECT DISTINCT 68 + 66 AS col2
----
134

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2045
SELECT ALL 97 DIV 16 * + 87 col0
----
522

skipif mysql # not compatible
query I rowsort label-2045
SELECT ALL 97 / 16 * + 87 col0
----
522

query I rowsort
SELECT + 8 - + 44 * + 98 + + - 33 + - 71
----
-4408

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

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

query I rowsort
SELECT + + 97 + 89 * - 76
----
-6667

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT NULLIF ( - 38, + 18 + - CASE - 84 WHEN + MIN( 13 ) THEN 19 + - + 50 END )
----
-38

skipif mysql # not compatible
query I rowsort label-2049
SELECT NULLIF ( - 38, + 18 + - CASE - 84 WHEN + MIN ( 13 ) THEN 19 + - + 50 END )
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-2050
SELECT DISTINCT + COALESCE ( 46, 56 ) AS col0, - 91 - COUNT( * ) col0
----
46
-92

skipif mysql # not compatible
query II rowsort label-2050
SELECT DISTINCT + COALESCE ( 46, 56 ) AS col0, - 91 - COUNT ( * ) col0
----
46
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2051
SELECT + COALESCE ( + + 7, - 94 * + 14 * + 63, SUM( ALL + 37 ) ) + 58 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-2051
SELECT + COALESCE ( + + 7, - 94 * + 14 * + 63, SUM ( ALL + 37 ) ) + 58 AS col2
----
65

query I rowsort
SELECT + - 39 * + 41 AS col1
----
-1599

onlyif mysql # aggregate syntax: 
query II rowsort label-2053
SELECT DISTINCT - NULLIF ( - COUNT( * ), 80 + - 0 * 17 * - 24 + + ( + 45 ) + + COUNT( * ) ) * - - 29, NULLIF ( 29, - 20 * + 15 - + - 49 + + + COUNT( * ) )
----
29
29

skipif mysql # not compatible
query II rowsort label-2053
SELECT DISTINCT - NULLIF ( - COUNT ( * ), 80 + - 0 * 17 * - 24 + + ( + 45 ) + + COUNT ( * ) ) * - - 29, NULLIF ( 29, - 20 * + 15 - + - 49 + + + COUNT ( * ) )
----
29
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2054
SELECT + - COUNT( * ) AS col1, - 17 DIV 84 * + 48 AS col0
----
-1
0

skipif mysql # not compatible
query II rowsort label-2054
SELECT + - COUNT ( * ) AS col1, - 17 / 84 * + 48 AS col0
----
-1
0

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

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

query I rowsort
SELECT - + 6 * + 15 AS col0
----
-90

query I rowsort
SELECT ALL + NULLIF ( + - 45, ( + 64 ) )
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2058
SELECT + + CAST( + + CASE 99 WHEN 92 THEN NULL WHEN + 53 THEN 38 * + 47 + - + 56 * + 55 + + 29 / + 7 / CASE + 30 WHEN + COALESCE ( - + 60, NULLIF ( ( - - 33 ), + SUM( ALL + - 68 ) * - SUM( DISTINCT - 22 ) ) + 81 * + 48, AVG ( DISTINCT 88 ) ) * 25 THEN - 78 + COUNT( * ) END ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2058
SELECT + + CAST ( + + CASE 99 WHEN 92 THEN NULL WHEN + 53 THEN 38 * + 47 + - + 56 * + 55 + + 29 / + 7 / CASE + 30 WHEN + COALESCE ( - + 60, NULLIF ( ( - - 33 ), + SUM ( ALL + - 68 ) * - SUM ( DISTINCT - 22 ) ) + 81 * + 48, AVG ( DISTINCT 88 ) ) * 25 THEN - 78 + COUNT ( * ) END ELSE NULL END AS INTEGER )
----
NULL

query I rowsort
SELECT - 78 * + ( + 99 ) + + + 28 + - 48 + 44 AS col1
----
-7698

onlyif mysql # DIV for integer division: 
query I rowsort label-2060
SELECT DISTINCT - - 7 DIV + - 40
----
0

skipif mysql # not compatible
query I rowsort label-2060
SELECT DISTINCT - - 7 / + - 40
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2061
SELECT DISTINCT + + 83 AS col0, 64 - + + 54 * COALESCE ( - 50, - - COALESCE ( - - COUNT( * ), - + SUM( + 16 ) ) ) - COUNT( * ) * + CAST( + 90 AS DECIMAL ) * CASE WHEN 44 < - 97 + + + COALESCE ( - + 14, + 50, COUNT( * ) ) THEN 80 * + 92 + + 74 ELSE NULL END AS col1
----
83
NULL

skipif mysql # not compatible
query II rowsort label-2061
SELECT DISTINCT + + 83 AS col0, 64 - + + 54 * COALESCE ( - 50, - - COALESCE ( - - COUNT ( * ), - + SUM ( + 16 ) ) ) - COUNT ( * ) * + CAST ( + 90 AS REAL ) * CASE WHEN 44 < - 97 + + + COALESCE ( - + 14, + 50, COUNT ( * ) ) THEN 80 * + 92 + + 74 ELSE NULL END AS col1
----
83
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT DISTINCT 76 * - SUM( ALL - 66 )
----
5016

skipif mysql # not compatible
query I rowsort label-2063
SELECT DISTINCT 76 * - SUM ( ALL - 66 )
----
5016

query I rowsort
SELECT - 87 * + 8
----
-696

query I rowsort
SELECT ALL - 62 + + + 99 * - 22 - 44 AS col2
----
-2284

onlyif mysql # aggregate syntax: 
query II rowsort label-2066
SELECT ALL + COUNT( * ) + - COUNT( - + 62 ) * + 5 AS col0, COUNT( * ) AS col1
----
-4
1

skipif mysql # not compatible
query II rowsort label-2066
SELECT ALL + COUNT ( * ) + - COUNT ( - + 62 ) * + 5 AS col0, COUNT ( * ) AS col1
----
-4
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2067
SELECT + CAST( + 77 AS SIGNED ) - - 2 col2
----
79

skipif mysql # not compatible
query I rowsort label-2067
SELECT + CAST ( + 77 AS INTEGER ) - - 2 col2
----
79

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2069
SELECT 32 AS col2, CAST( + COUNT( * ) AS SIGNED ) col1
----
32
1

skipif mysql # not compatible
query II rowsort label-2069
SELECT 32 AS col2, CAST ( + COUNT ( * ) AS INTEGER ) col1
----
32
1

query II rowsort
SELECT 37 AS col1, - 18 - - 58 AS col1
----
37
40

query I rowsort
SELECT - 33 * - 42 * - 57 AS col1
----
-79002

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT ALL COALESCE ( - SUM( - 89 ), + ( 43 ) )
----
89

skipif mysql # not compatible
query I rowsort label-2072
SELECT ALL COALESCE ( - SUM ( - 89 ), + ( 43 ) )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT DISTINCT - SUM( DISTINCT + 72 ) + + 78 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-2073
SELECT DISTINCT - SUM ( DISTINCT + 72 ) + + 78 AS col1
----
6

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

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

query I rowsort
SELECT - 97 - 1
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2076
SELECT ALL COALESCE ( 64, + - 11 * + + 54 * + - 95 + - 86 + - + 93 + 93 * 66 * 14 DIV - COUNT( * ) + + + 28 * - 28 * + 3 * + 92 DIV + NULLIF ( + 80, + 69 * + COUNT( * ) DIV + 40 * - 43 ) )
----
64

skipif mysql # not compatible
query I rowsort label-2076
SELECT ALL COALESCE ( 64, + - 11 * + + 54 * + - 95 + - 86 + - + 93 + 93 * 66 * 14 / - COUNT ( * ) + + + 28 * - 28 * + 3 * + 92 / + NULLIF ( + 80, + 69 * + COUNT ( * ) / + 40 * - 43 ) )
----
64

query I rowsort
SELECT DISTINCT 27 - - 51
----
78

query I rowsort
SELECT - 62 * 83
----
-5146

query II rowsort
SELECT - 67 * + 74 AS col2, 20 AS col1
----
-4958
20

query II rowsort
SELECT DISTINCT ( + - 88 ) AS col0, - 21
----
-88
-21

query I rowsort
SELECT + 20 + - 43 AS col0
----
-23

query II rowsort
SELECT ALL 79 col1, + NULLIF ( + 42, 72 )
----
79
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT - 64 * - - CASE + + AVG ( 5 ) WHEN 59 THEN 95 * + 0 * - CASE - 99 WHEN + 43 THEN NULL WHEN - - 59 / + - 66 * 68 + - 50 + 27 THEN NULL ELSE 34 END / - COALESCE ( + COALESCE ( - ( - 18 ), 57 * - 42 + 89, 67 ), + 64 ) - - 99 - - ( + 64 + MIN( ALL + 30 + 74 ) / + COUNT( * ) ) / 42 WHEN 40 THEN 28 + - 2 * - 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2083
SELECT - 64 * - - CASE + + AVG ( 5 ) WHEN 59 THEN 95 * + 0 * - CASE - 99 WHEN + 43 THEN NULL WHEN - - 59 / + - 66 * 68 + - 50 + 27 THEN NULL ELSE 34 END / - COALESCE ( + COALESCE ( - ( - 18 ), 57 * - 42 + 89, 67 ), + 64 ) - - 99 - - ( + 64 + MIN ( ALL + 30 + 74 ) / + COUNT ( * ) ) / 42 WHEN 40 THEN 28 + - 2 * - 78 END
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2085
SELECT - COUNT( * ) DIV + 31 - - 73
----
73

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

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

skipif mysql # not compatible
query I rowsort label-2086
SELECT - CAST ( - 69 AS INTEGER ) - + COUNT ( * )
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-2087
SELECT + - 35 DIV - + 26
----
1

skipif mysql # not compatible
query I rowsort label-2087
SELECT + - 35 / - + 26
----
1

query I rowsort
SELECT - 66 * + 4 AS col2
----
-264

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2089
SELECT + 58 AS col0, 12 DIV 57 + - 29 * + COUNT( * ) * + 52 * + 0 DIV + + 55 + 43
----
58
43

skipif mysql # not compatible
query II rowsort label-2089
SELECT + 58 AS col0, 12 / 57 + - 29 * + COUNT ( * ) * + 52 * + 0 / + + 55 + 43
----
58
43

query I rowsort
SELECT ALL 6 * 67
----
402

query II rowsort
SELECT ALL + 23, + 68 AS col0
----
23
68

query I rowsort
SELECT + ( + 78 ) * - - 23 AS col1
----
1794

onlyif mysql # DIV for integer division: 
query II rowsort label-2093
SELECT + + 97 AS col0, 43 + + + 88 DIV + 37 AS col2
----
97
45

skipif mysql # not compatible
query II rowsort label-2093
SELECT + + 97 AS col0, 43 + + + 88 / + 37 AS col2
----
97
45

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

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

query I rowsort
SELECT + - 84 - + 99 * + 57 AS col2
----
-5727

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT CASE - ( - 25 ) WHEN + 59 + 39 * + COUNT( * ) * - 21 / 93 THEN + ( - 2 ) * + 91 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2097
SELECT CASE - ( - 25 ) WHEN + 59 + 39 * + COUNT ( * ) * - 21 / 93 THEN + ( - 2 ) * + 91 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT + 64 * + 38 * + - SUM( 21 ) AS col2
----
-51072

skipif mysql # not compatible
query I rowsort label-2098
SELECT + 64 * + 38 * + - SUM ( 21 ) AS col2
----
-51072

query I rowsort
SELECT - 57 - + 24 + + 9 + + + 47 AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT ALL + SUM( - - 87 ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-2100
SELECT ALL + SUM ( - - 87 ) AS col2
----
87

query I rowsort
SELECT 31 * - 66 + + 90
----
-1956

query I rowsort
SELECT - 34 * - 44 * + 48
----
71808

query I rowsort
SELECT + 45 * + 35
----
1575

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2104
SELECT ALL + COALESCE ( - + 33, + 17 + 92 + - 88 / NULLIF ( + CASE + - 12 WHEN - + 7 + 10 THEN NULL ELSE + 30 * - 85 - + 50 END, - MAX( DISTINCT 26 ) ) - - 39 / - ( - - 50 ) + + CAST( NULL AS DECIMAL ) ) / + - CASE - + 18 WHEN + - CASE + 77 WHEN + 7 * ( COUNT( * ) ) THEN + 83 END + 83 * 22 THEN MAX( 97 ) * + 87 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2104
SELECT ALL + COALESCE ( - + 33, + 17 + 92 + - 88 / NULLIF ( + CASE + - 12 WHEN - + 7 + 10 THEN NULL ELSE + 30 * - 85 - + 50 END, - MAX ( DISTINCT 26 ) ) - - 39 / - ( - - 50 ) + + CAST ( NULL AS REAL ) ) / + - CASE - + 18 WHEN + - CASE + 77 WHEN + 7 * ( COUNT ( * ) ) THEN + 83 END + 83 * 22 THEN MAX ( 97 ) * + 87 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2105
SELECT + 98 + CASE + CAST( NULL AS SIGNED ) WHEN + ( - 23 ) + 6 * + CAST( + CASE - COUNT( + - 65 ) WHEN + COALESCE ( - + 87, - 66 / + + 48 ) THEN 62 WHEN - + 60 * - 76 THEN NULL ELSE NULL END AS DECIMAL ) * + + 58 THEN CAST( NULL AS SIGNED ) + + - 88 + - CAST( 11 AS SIGNED ) WHEN + ( + 91 ) THEN NULL ELSE - 53 END * + 29 col2
----
-1439

skipif mysql # not compatible
query I rowsort label-2105
SELECT + 98 + CASE + CAST ( NULL AS INTEGER ) WHEN + ( - 23 ) + 6 * + CAST ( + CASE - COUNT ( + - 65 ) WHEN + COALESCE ( - + 87, - 66 / + + 48 ) THEN 62 WHEN - + 60 * - 76 THEN NULL ELSE NULL END AS REAL ) * + + 58 THEN CAST ( NULL AS INTEGER ) + + - 88 + - CAST ( 11 AS INTEGER ) WHEN + ( + 91 ) THEN NULL ELSE - 53 END * + 29 col2
----
-1439

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2106
SELECT ALL + 4 * - + NULLIF ( - - 93, - COUNT( ALL + CAST( NULL AS SIGNED ) ) ) * ( - + NULLIF ( - + 36, MAX( DISTINCT 69 ) + 43 ) ) - - - ( + 19 ) AS col0
----
-13411

skipif mysql # not compatible
query I rowsort label-2106
SELECT ALL + 4 * - + NULLIF ( - - 93, - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) ) * ( - + NULLIF ( - + 36, MAX ( DISTINCT 69 ) + 43 ) ) - - - ( + 19 ) AS col0
----
-13411

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT ALL NULLIF ( - COUNT( * ), + - 55 + + 40 ) * 96 + - 17
----
-113

skipif mysql # not compatible
query I rowsort label-2107
SELECT ALL NULLIF ( - COUNT ( * ), + - 55 + + 40 ) * 96 + - 17
----
-113

query I rowsort
SELECT 13 + + 47 + + 58
----
118

onlyif mysql # DIV for integer division: 
query I rowsort label-2109
SELECT ( - - 22 ) DIV - + 50 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2109
SELECT ( - - 22 ) / - + 50 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2110
SELECT 52 * - ( 69 ) AS col2, - NULLIF ( - COUNT( * ), - 23 ) + 64 + - + 26 * + 46 + + 97 + - MIN( + + 31 ) * + - 2 * + + 52 * - 8 * - 57 AS col0
----
-3588
1469110

skipif mysql # not compatible
query II rowsort label-2110
SELECT 52 * - ( 69 ) AS col2, - NULLIF ( - COUNT ( * ), - 23 ) + 64 + - + 26 * + 46 + + 97 + - MIN ( + + 31 ) * + - 2 * + + 52 * - 8 * - 57 AS col0
----
-3588
1469110

onlyif mysql # DIV for integer division: 
query I rowsort label-2111
SELECT + 71 + + 40 DIV - - 84
----
71

skipif mysql # not compatible
query I rowsort label-2111
SELECT + 71 + + 40 / - - 84
----
71

query I rowsort
SELECT + 28 * - 98 col0
----
-2744

query I rowsort
SELECT 56 * - + 78 + 87
----
-4281

query I rowsort
SELECT ALL + ( - + 60 ) + + ( - + 40 ) * - - 93
----
-3780

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT - 82 * - COUNT( * ) + - 60
----
22

skipif mysql # not compatible
query I rowsort label-2115
SELECT - 82 * - COUNT ( * ) + - 60
----
22

query I rowsort
SELECT DISTINCT + - 65 * ( + + 35 ) col2
----
-2275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2117
SELECT 35 + 14 * - + 40 * + - MAX( ALL - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2117
SELECT 35 + 14 * - + 40 * + - MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2118
SELECT - - CAST( - ( - + 57 ) AS SIGNED ) / - + 56 + - - AVG ( ( + ( NULLIF ( CASE WHEN ( NOT + - 14 > NULL ) THEN - 17 + - 89 / - 39 END, + 70 * + 87 ) ) ) ) + - CAST( NULL AS SIGNED ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2118
SELECT - - CAST ( - ( - + 57 ) AS INTEGER ) / - + 56 + - - AVG ( ( + ( NULLIF ( CASE WHEN ( NOT + - 14 > NULL ) THEN - 17 + - 89 / - 39 END, + 70 * + 87 ) ) ) ) + - CAST ( NULL AS INTEGER ) + + COUNT ( * )
----
NULL

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

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

query I rowsort
SELECT ALL - 93 + 66 AS col2
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2121
SELECT 87 * + - 16 + - CAST( + + COUNT( * ) AS SIGNED ) * + 2 + + - NULLIF ( CAST( NULL AS SIGNED ), + 28 * - + 4 ) + - - NULLIF ( + SUM( + 55 ), + 19 ), + COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2121
SELECT 87 * + - 16 + - CAST ( + + COUNT ( * ) AS INTEGER ) * + 2 + + - NULLIF ( CAST ( NULL AS INTEGER ), + 28 * - + 4 ) + - - NULLIF ( + SUM ( + 55 ), + 19 ), + COUNT ( * ) AS col0
----
NULL
1

query I rowsort
SELECT ALL + + 23 * - - 29 AS col0
----
667

query I rowsort
SELECT DISTINCT + 91 + - 71
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-2124
SELECT ALL - COUNT( * ) + - 7 AS col1, + MAX( - 34 )
----
-8
-34

skipif mysql # not compatible
query II rowsort label-2124
SELECT ALL - COUNT ( * ) + - 7 AS col1, + MAX ( - 34 )
----
-8
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT ALL + + COALESCE ( - + 26, 3 ) + 10 + + + 61 + + 3 * - 40 * COALESCE ( + NULLIF ( 6, - 71 + + + 27 + + ( 75 ) * COALESCE ( + + ( - 93 ), - CASE - - 63 WHEN + 67 THEN + + 8 + + COUNT( * ) END + + 37, + COUNT( * ) + 58, - 49 ) + + 5 ), ( - ( 45 ) ) ) AS col2
----
-675

skipif mysql # not compatible
query I rowsort label-2125
SELECT ALL + + COALESCE ( - + 26, 3 ) + 10 + + + 61 + + 3 * - 40 * COALESCE ( + NULLIF ( 6, - 71 + + + 27 + + ( 75 ) * COALESCE ( + + ( - 93 ), - CASE - - 63 WHEN + 67 THEN + + 8 + + COUNT ( * ) END + + 37, + COUNT ( * ) + 58, - 49 ) + + 5 ), ( - ( 45 ) ) ) AS col2
----
-675

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT 38 * + - NULLIF ( COUNT( * ), - - 31 )
----
-38

skipif mysql # not compatible
query I rowsort label-2126
SELECT 38 * + - NULLIF ( COUNT ( * ), - - 31 )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-2127
SELECT ALL + COALESCE ( + COALESCE ( - 90, COUNT( * ) + - NULLIF ( + + 86, - 50 ) + + + MIN( - 12 ) * + 69 ), - - 16 + - - 71 ) DIV 50, MAX( NULLIF ( + CAST( NULL AS DECIMAL ), 33 ) ) AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-2127
SELECT ALL + COALESCE ( + COALESCE ( - 90, COUNT ( * ) + - NULLIF ( + + 86, - 50 ) + + + MIN ( - 12 ) * + 69 ), - - 16 + - - 71 ) / 50, MAX ( NULLIF ( + CAST ( NULL AS REAL ), 33 ) ) AS col0
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT ALL COUNT( * ) - + + 95
----
-94

skipif mysql # not compatible
query I rowsort label-2128
SELECT ALL COUNT ( * ) - + + 95
----
-94

query II rowsort
SELECT + 6, 82 AS col0
----
6
82

query II rowsort
SELECT 73 AS col2, 5 AS col1
----
73
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2131
SELECT 7 * - - 7 DIV + 1 col2, + COUNT( * )
----
49
1

skipif mysql # not compatible
query II rowsort label-2131
SELECT 7 * - - 7 / + 1 col2, + COUNT ( * )
----
49
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2132
SELECT ALL 16 AS col0, 3 * + 25 * + MAX( 41 )
----
16
3075

skipif mysql # not compatible
query II rowsort label-2132
SELECT ALL 16 AS col0, 3 * + 25 * + MAX ( 41 )
----
16
3075

query I rowsort
SELECT 16 - 64
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-2134
SELECT 86, 60 + - ( + 54 ) + - COUNT( * ) - 23 * 43 * - 9 * + + 80 AS col2
----
86
712085

skipif mysql # not compatible
query II rowsort label-2134
SELECT 86, 60 + - ( + 54 ) + - COUNT ( * ) - 23 * 43 * - 9 * + + 80 AS col2
----
86
712085

onlyif mysql # DIV for integer division: 
query I rowsort label-2135
SELECT ( 13 ) DIV + 36
----
0

skipif mysql # not compatible
query I rowsort label-2135
SELECT ( 13 ) / + 36
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT COALESCE ( - 62, + + 22, + 39 + + 24 + COUNT( * ) ) * SUM( ALL 37 ) AS col2
----
-2294

skipif mysql # not compatible
query I rowsort label-2136
SELECT COALESCE ( - 62, + + 22, + 39 + + 24 + COUNT ( * ) ) * SUM ( ALL 37 ) AS col2
----
-2294

query II rowsort
SELECT 68 + + 20 + + 29, - 97 - 18 + 80 col1
----
117
-35

query II rowsort
SELECT ALL 27 AS col1, 24
----
27
24

query II rowsort
SELECT DISTINCT 78 AS col0, 10
----
78
10

query I rowsort
SELECT ALL 2 * + - 29
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2141
SELECT 81 AS col1, 27 DIV + + 55 * MIN( DISTINCT - 43 )
----
81
0

skipif mysql # not compatible
query II rowsort label-2141
SELECT 81 AS col1, 27 / + + 55 * MIN ( DISTINCT - 43 )
----
81
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2142
SELECT DISTINCT + CASE + - 63 WHEN + 4 THEN - COUNT( * ) * 18 * 91 + + 44 + 0 / + CASE - COUNT( * ) WHEN + 75 + - + 21 THEN - AVG ( DISTINCT + - 54 ) + + 0 - + 34 + - 79 * + - 15 WHEN + COUNT( * ) THEN NULL ELSE + - ( COALESCE ( ( 58 ), CAST( - 90 AS SIGNED ) * NULLIF ( 8 * - 9 + + 56, 64 ) - NULLIF ( - COALESCE ( + 1, 13 ), 50 + 31 ), + 24 + + COUNT( * ) * COUNT( * ), - 88 ) ) END * - 6 + + 8 * - 43 WHEN - COUNT( * ) THEN - 84 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2142
SELECT DISTINCT + CASE + - 63 WHEN + 4 THEN - COUNT ( * ) * 18 * 91 + + 44 + 0 / + CASE - COUNT ( * ) WHEN + 75 + - + 21 THEN - AVG ( DISTINCT + - 54 ) + + 0 - + 34 + - 79 * + - 15 WHEN + COUNT ( * ) THEN NULL ELSE + - ( COALESCE ( ( 58 ), CAST ( - 90 AS INTEGER ) * NULLIF ( 8 * - 9 + + 56, 64 ) - NULLIF ( - COALESCE ( + 1, 13 ), 50 + 31 ), + 24 + + COUNT ( * ) * COUNT ( * ), - 88 ) ) END * - 6 + + 8 * - 43 WHEN - COUNT ( * ) THEN - 84 END AS col2
----
NULL

query I rowsort
SELECT + 59 - - - 30 + - 30 * - 32 AS col1
----
989

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT - MIN( + + ( 72 ) ) + - 29 + - + COUNT( * ) AS col1
----
-102

skipif mysql # not compatible
query I rowsort label-2145
SELECT - MIN ( + + ( 72 ) ) + - 29 + - + COUNT ( * ) AS col1
----
-102

query I rowsort
SELECT ALL 38 + + + 18 col1
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-2147
SELECT - 58 AS col0, + 48 + - NULLIF ( COUNT( * ), - 3 ) col2
----
-58
47

skipif mysql # not compatible
query II rowsort label-2147
SELECT - 58 AS col0, + 48 + - NULLIF ( COUNT ( * ), - 3 ) col2
----
-58
47

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2149
SELECT 55 + - ( + 6 ) * + + CAST( 94 AS SIGNED ) AS col0
----
-509

skipif mysql # not compatible
query I rowsort label-2149
SELECT 55 + - ( + 6 ) * + + CAST ( 94 AS INTEGER ) AS col0
----
-509

onlyif mysql # DIV for integer division: 
query I rowsort label-2150
SELECT 4 DIV 49 * + 72
----
0

skipif mysql # not compatible
query I rowsort label-2150
SELECT 4 / 49 * + 72
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2151
SELECT ALL - CAST( 52 AS SIGNED ) + - + 13 col0, 35
----
-65
35

skipif mysql # not compatible
query II rowsort label-2151
SELECT ALL - CAST ( 52 AS INTEGER ) + - + 13 col0, 35
----
-65
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT - MIN( ALL + 28 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-2152
SELECT - MIN ( ALL + 28 ) AS col1
----
-28

query I rowsort
SELECT ALL + - 63 + + - 16 AS col2
----
-79

query II rowsort
SELECT ALL - 40, 99 AS col2
----
-40
99

query I rowsort
SELECT ALL + - 88 * 27 * + 80
----
-190080

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT ALL MAX( + - ( + 95 ) ) * - 98 + 63
----
9373

skipif mysql # not compatible
query I rowsort label-2156
SELECT ALL MAX ( + - ( + 95 ) ) * - 98 + 63
----
9373

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2157
SELECT + - COUNT( DISTINCT 78 ) DIV - 29 * + 23 - 13 col1
----
-13

skipif mysql # not compatible
query I rowsort label-2157
SELECT + - COUNT ( DISTINCT 78 ) / - 29 * + 23 - 13 col1
----
-13

query I rowsort
SELECT + 51 - - - 83 * + 23 col1
----
-1858

onlyif mysql # DIV for integer division: 
query I rowsort label-2159
SELECT ALL + 12 * - 54 DIV + NULLIF ( - 54, + 67 * - 56 - 11 * - - 54 + 54 * 92 + 39 )
----
12

skipif mysql # not compatible
query I rowsort label-2159
SELECT ALL + 12 * - 54 / + NULLIF ( - 54, + 67 * - 56 - 11 * - - 54 + 54 * 92 + 39 )
----
12

query I rowsort
SELECT ALL - ( - 40 ) * 46 - + 38 col1
----
1802

onlyif mysql # aggregate syntax: 
query II rowsort label-2161
SELECT ALL + COUNT( DISTINCT + 20 ) AS col2, + ( + 45 ) + + + NULLIF ( - 23, + 60 ) col1
----
1
22

skipif mysql # not compatible
query II rowsort label-2161
SELECT ALL + COUNT ( DISTINCT + 20 ) AS col2, + ( + 45 ) + + + NULLIF ( - 23, + 60 ) col1
----
1
22

query I rowsort
SELECT DISTINCT + 31 * + 7
----
217

onlyif mysql # DIV for integer division: 
query I rowsort label-2163
SELECT - 86 DIV - - 91 * + - 3
----
0

skipif mysql # not compatible
query I rowsort label-2163
SELECT - 86 / - - 91 * + - 3
----
0

query I rowsort
SELECT - 92 * - 11 * - 75
----
-75900

query I rowsort
SELECT - 62 + 3 AS col1
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2166
SELECT + SUM( ALL + 84 ) * - 16 + + COUNT( * ) * - CAST( + + 51 AS SIGNED ) + 67 - - 99 * + + ( - 80 ) * - - 11 + CAST( 8 AS SIGNED ) + + ( 82 ) col2
----
-88358

skipif mysql # not compatible
query I rowsort label-2166
SELECT + SUM ( ALL + 84 ) * - 16 + + COUNT ( * ) * - CAST ( + + 51 AS INTEGER ) + 67 - - 99 * + + ( - 80 ) * - - 11 + CAST ( 8 AS INTEGER ) + + ( 82 ) col2
----
-88358

query I rowsort
SELECT ALL + ( - + CASE WHEN ( NOT - 65 IS NULL ) THEN + - 19 ELSE - 51 END )
----
19

query I rowsort
SELECT - 39 + - - 40 AS col0
----
1

query I rowsort
SELECT + 44 - + 16
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2170
SELECT + 62 * CAST( NULL AS SIGNED ), + 50 AS col2
----
NULL
50

skipif mysql # not compatible
query II rowsort label-2170
SELECT + 62 * CAST ( NULL AS INTEGER ), + 50 AS col2
----
NULL
50

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

skipif mysql # not compatible
query I rowsort label-2171
SELECT DISTINCT 68 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2172
SELECT - COUNT( * ) * - 52 col0, - 46 AS col1
----
52
-46

skipif mysql # not compatible
query II rowsort label-2172
SELECT - COUNT ( * ) * - 52 col0, - 46 AS col1
----
52
-46

query I rowsort
SELECT DISTINCT 61 * + + ( + 7 ) AS col1
----
427

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2175
SELECT + ( + 23 ) * - + 50 * + + 22 + - NULLIF ( + 25, - 32 ) + + - 12 * 60 - + CAST( + - 66 AS SIGNED ) * + 81 + - 60
----
-20759

skipif mysql # not compatible
query I rowsort label-2175
SELECT + ( + 23 ) * - + 50 * + + 22 + - NULLIF ( + 25, - 32 ) + + - 12 * 60 - + CAST ( + - 66 AS INTEGER ) * + 81 + - 60
----
-20759

query I rowsort
SELECT DISTINCT 31 * + + 36
----
1116

query I rowsort
SELECT - + 87 + - 15 AS col0
----
-102

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

query I rowsort
SELECT + - 12 + - 41 + 59
----
6

query I rowsort
SELECT + 89 * - 87 * + 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2181
SELECT ALL CASE - + 89 WHEN + COALESCE ( + + 23, - 36 + - + 33, + CAST( - 52 AS SIGNED ) + - - NULLIF ( + - 43, + - 83 ) - + 98 * COUNT( + 60 ) + - 47, 30 + - + AVG ( - 13 ) ) * - + COUNT( * ) THEN + MAX( CASE + + 71 WHEN - 46 THEN 48 END ) * + 11 + - 17 * - 9 WHEN COUNT( * ) THEN + COUNT( * ) END + - ( - 68 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2181
SELECT ALL CASE - + 89 WHEN + COALESCE ( + + 23, - 36 + - + 33, + CAST ( - 52 AS INTEGER ) + - - NULLIF ( + - 43, + - 83 ) - + 98 * COUNT ( + 60 ) + - 47, 30 + - + AVG ( - 13 ) ) * - + COUNT ( * ) THEN + MAX ( CASE + + 71 WHEN - 46 THEN 48 END ) * + 11 + - 17 * - 9 WHEN COUNT ( * ) THEN + COUNT ( * ) END + - ( - 68 ) col1
----
NULL

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

query I rowsort
SELECT + 55 - 87
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2184
SELECT DISTINCT + COUNT( * ) * - - 85 DIV 52 * + ( - 68 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-2184
SELECT DISTINCT + COUNT ( * ) * - - 85 / 52 * + ( - 68 ) AS col0
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-2185
SELECT ALL - 2 * + 61 + + 53 + + 33, + COUNT( * ) AS col0
----
-36
1

skipif mysql # not compatible
query II rowsort label-2185
SELECT ALL - 2 * + 61 + + 53 + + 33, + COUNT ( * ) AS col0
----
-36
1

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

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

query I rowsort
SELECT + + 85 + - 32 AS col0
----
53

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

query I rowsort
SELECT - 27 * 15 - - 43 + - 65
----
-427

query II rowsort
SELECT + + 35 + - 82 * ( - 86 ) AS col0, 41 AS col1
----
7087
41

query I rowsort
SELECT + 39 * 96 - - 46
----
3790

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT + - SUM( ALL - - 31 ) + 47 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-2192
SELECT + - SUM ( ALL - - 31 ) + 47 AS col2
----
16

query I rowsort
SELECT ALL - 76 * - 65 - - 72
----
5012

onlyif mysql # DIV for integer division: 
query I rowsort label-2194
SELECT + 46 * ( + 16 ) DIV 14 * 13 * - 99 AS col0
----
-66924

skipif mysql # not compatible
query I rowsort label-2194
SELECT + 46 * ( + 16 ) / 14 * 13 * - 99 AS col0
----
-66924

onlyif mysql # aggregate syntax: 
query II rowsort label-2195
SELECT DISTINCT SUM( + 45 ) * + 47, + 43 AS col2
----
2115
43

skipif mysql # not compatible
query II rowsort label-2195
SELECT DISTINCT SUM ( + 45 ) * + 47, + 43 AS col2
----
2115
43

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

query I rowsort
SELECT ALL - 68 * - COALESCE ( - 9, + 61 + - + 56 + - - 70 * + - 81, - 23, - 91 ) - 79 + - 75
----
-766

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2199
SELECT ( - NULLIF ( + 40, + + COALESCE ( + 1, - + 37 ) / - 56 + 21 + - 36 * + 98 / - NULLIF ( + 11, - ( + NULLIF ( 22, + 13 ) ) ) + 46 - 30 / - - MIN( ALL + + 91 ) ) )
----
-40

skipif mysql # not compatible
query I rowsort label-2199
SELECT ( - NULLIF ( + 40, + + COALESCE ( + 1, - + 37 ) / - 56 + 21 + - 36 * + 98 / - NULLIF ( + 11, - ( + NULLIF ( 22, + 13 ) ) ) + 46 - 30 / - - MIN ( ALL + + 91 ) ) )
----
-40

query I rowsort
SELECT - 51 + + + 7
----
-44

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

query I rowsort
SELECT NULLIF ( + 90, 26 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT 73 * 23 + 54 * + 73 * - COUNT( * ) * ( + 53 ) * - COUNT( * ) AS col0
----
210605

skipif mysql # not compatible
query I rowsort label-2203
SELECT 73 * 23 + 54 * + 73 * - COUNT ( * ) * ( + 53 ) * - COUNT ( * ) AS col0
----
210605

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT + MIN( ALL 4 ) * + 91 + 83
----
447

skipif mysql # not compatible
query I rowsort label-2204
SELECT + MIN ( ALL 4 ) * + 91 + 83
----
447

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT NULLIF ( - COUNT( + 65 ), - 87 + - + 43 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-2206
SELECT NULLIF ( - COUNT ( + 65 ), - 87 + - + 43 ) col1
----
-1

query I rowsort
SELECT ALL 38 * + 98 AS col0
----
3724

query I rowsort
SELECT ALL + 42 * + 52 * + + 81 + - 77 + + 90 * - + 98 AS col2
----
168007

onlyif mysql # DIV for integer division: 
query I rowsort label-2209
SELECT - COALESCE ( - 30, 27, + - 25 DIV + + 88 + 97 ) + 57
----
87

skipif mysql # not compatible
query I rowsort label-2209
SELECT - COALESCE ( - 30, 27, + - 25 / + + 88 + 97 ) + 57
----
87

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2211
SELECT COUNT( * ) col1, 68
----
1
68

skipif mysql # not compatible
query II rowsort label-2211
SELECT COUNT ( * ) col1, 68
----
1
68

query I rowsort
SELECT ALL 97 * 30 + - 94 AS col1
----
2816

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT - 90 + + 10 + + CASE + NULLIF ( + - 87, - 72 - COUNT( * ) ) WHEN 5 THEN + 84 ELSE - 44 END
----
-124

skipif mysql # not compatible
query I rowsort label-2213
SELECT - 90 + + 10 + + CASE + NULLIF ( + - 87, - 72 - COUNT ( * ) ) WHEN 5 THEN + 84 ELSE - 44 END
----
-124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2214
SELECT + MAX( ALL - + NULLIF ( + 9, 11 ) ) + CAST( - ( + 10 ) AS SIGNED ) + + - CAST( NULL AS SIGNED ) + - 76 + ( + 17 ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2214
SELECT + MAX ( ALL - + NULLIF ( + 9, 11 ) ) + CAST ( - ( + 10 ) AS INTEGER ) + + - CAST ( NULL AS INTEGER ) + - 76 + ( + 17 ) * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2215
SELECT ALL + 55 + - 24 + + CAST( ( + CASE - - COUNT( * ) WHEN + + 81 THEN 32 ELSE NULL END ) AS DECIMAL ) + + + ( + + 91 ) - + 10 * + + 3 * 27 * - 52 * - ( + + COUNT( * ) ) * 30
----
NULL

skipif mysql # not compatible
query I rowsort label-2215
SELECT ALL + 55 + - 24 + + CAST ( ( + CASE - - COUNT ( * ) WHEN + + 81 THEN 32 ELSE NULL END ) AS REAL ) + + + ( + + 91 ) - + 10 * + + 3 * 27 * - 52 * - ( + + COUNT ( * ) ) * 30
----
NULL

query II rowsort
SELECT - ( - - COALESCE ( 57, - 7 ) ) * - 60 + 63 AS col0, 6
----
3483
6

query I rowsort
SELECT DISTINCT - - 29 + - 41 AS col2
----
-12

query I rowsort
SELECT ALL - 6 * - 30 col1
----
180

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

skipif mysql # not compatible
query I rowsort label-2219
SELECT - + COUNT ( * ) + - COUNT ( * ) / + + 44 AS col2
----
-1

query I rowsort
SELECT ALL - - 79 - - - 36
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT ALL - NULLIF ( + 24, + 45 + + 22 + + - 38 + - + 75 * - SUM( + 87 ) )
----
-24

skipif mysql # not compatible
query I rowsort label-2221
SELECT ALL - NULLIF ( + 24, + 45 + + 22 + + - 38 + - + 75 * - SUM ( + 87 ) )
----
-24

query I rowsort
SELECT - - 56 * ( + 2 )
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT CASE - 56 WHEN AVG ( DISTINCT + ( - 85 ) ) + + + 60 THEN NULL ELSE + ( SUM( DISTINCT + - 69 ) ) END AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-2223
SELECT CASE - 56 WHEN AVG ( DISTINCT + ( - 85 ) ) + + + 60 THEN NULL ELSE + ( SUM ( DISTINCT + - 69 ) ) END AS col2
----
-69

query II rowsort
SELECT DISTINCT 34 AS col1, 14
----
34
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT DISTINCT - CASE - 8 WHEN 80 / 86 + - 39 + + - COUNT( * ) + + - 33 * + 51 THEN - ( + - 44 ) / - - 41 ELSE NULL END / + 99 / + 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2225
SELECT DISTINCT - CASE - 8 WHEN 80 / 86 + - 39 + + - COUNT ( * ) + + - 33 * + 51 THEN - ( + - 44 ) / - - 41 ELSE NULL END / + 99 / + 4 AS col0
----
NULL

query II rowsort
SELECT 73, 57 AS col2
----
73
57

query II rowsort
SELECT 46 AS col0, - 19 AS col0
----
46
-19

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

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

query II rowsort
SELECT DISTINCT - 78 AS col0, 72 AS col1
----
-78
72

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

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

query II rowsort
SELECT + 49 AS col0, + 81 * - 14
----
49
-1134

query I rowsort
SELECT ALL 51 * - 38
----
-1938

query I rowsort
SELECT 32 * + - 5 AS col2
----
-160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2234
SELECT NULLIF ( + SUM( ALL + + 31 ), - COUNT( + 99 ) ) DIV 18 col2
----
1

skipif mysql # not compatible
query I rowsort label-2234
SELECT NULLIF ( + SUM ( ALL + + 31 ), - COUNT ( + 99 ) ) / 18 col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2235
SELECT DISTINCT + 41 + - - ( + 88 ) DIV - 44
----
39

skipif mysql # not compatible
query I rowsort label-2235
SELECT DISTINCT + 41 + - - ( + 88 ) / - 44
----
39

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2236
SELECT ( - 74 ) - - 92 - + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2236
SELECT ( - 74 ) - - 92 - + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT ALL ( - MAX( - 6 ) ) + + 81 + - 49 * - - 35 AS col2
----
-1628

skipif mysql # not compatible
query I rowsort label-2237
SELECT ALL ( - MAX ( - 6 ) ) + + 81 + - 49 * - - 35 AS col2
----
-1628

query I rowsort
SELECT ALL 44 + + + 84
----
128

query I rowsort
SELECT ( 86 ) + 5
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2240
SELECT DISTINCT + 59 + + 97 - 26 - - 39 / - 37 / 36 * - + 16 + + CASE 16 WHEN - - 9 THEN - ( ( - MIN( ALL - 59 ) ) ) - + 61 + - 27 / + 95 * + + 63 WHEN CASE - CAST( 12 AS SIGNED ) WHEN - ( COALESCE ( 35, + COUNT( * ) / - + CASE + 47 WHEN 77 THEN NULL WHEN + 82 THEN COUNT( * ) WHEN COUNT( * ) * 90 + COUNT( * ) * ( 8 * 31 ) THEN + 22 END, + 61 * MAX( - 20 ) ) ) THEN - 48 + - COUNT( * ) ELSE 45 * 20 END THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2240
SELECT DISTINCT + 59 + + 97 - 26 - - 39 / - 37 / 36 * - + 16 + + CASE 16 WHEN - - 9 THEN - ( ( - MIN ( ALL - 59 ) ) ) - + 61 + - 27 / + 95 * + + 63 WHEN CASE - CAST ( 12 AS INTEGER ) WHEN - ( COALESCE ( 35, + COUNT ( * ) / - + CASE + 47 WHEN 77 THEN NULL WHEN + 82 THEN COUNT ( * ) WHEN COUNT ( * ) * 90 + COUNT ( * ) * ( 8 * 31 ) THEN + 22 END, + 61 * MAX ( - 20 ) ) ) THEN - 48 + - COUNT ( * ) ELSE 45 * 20 END THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - + 56 * - + 85 - + - 8 col2
----
4768

query II rowsort
SELECT DISTINCT - 68 * 33, 25 + - + 93 AS col0
----
-2244
-68

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

query II rowsort
SELECT ALL 0 AS col1, 67 + 48 + - 32
----
0
83

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT - + COALESCE ( 87, - + 19 + - + 28, 74 * - - 6 + COUNT( DISTINCT - 12 ) ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-2247
SELECT - + COALESCE ( 87, - + 19 + - + 28, 74 * - - 6 + COUNT ( DISTINCT - 12 ) ) AS col0
----
-87

query I rowsort
SELECT - 64 * + - 93 * - 35 col2
----
-208320

query I rowsort
SELECT - 4 + + 99 * - - 89 + 61 AS col2
----
8868

query I rowsort
SELECT - + COALESCE ( + ( + 58 ), - 92 ) AS col2
----
-58

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

skipif mysql # not compatible
query I rowsort label-2251
SELECT ALL + COUNT ( * ) / - 63 + 37 AS col1
----
37

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

skipif mysql # not compatible
query I rowsort label-2252
SELECT ( AVG ( ALL + + 88 ) ) + + CAST ( NULL AS INTEGER )
----
NULL

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

query II rowsort
SELECT 16 + + 74 AS col1, + 18 AS col0
----
90
18

query II rowsort
SELECT + ( - 26 ) * 1 + - + 46 - - 53 AS col2, - 21 AS col2
----
-19
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT MAX( 94 ) * + 46 AS col2
----
4324

skipif mysql # not compatible
query I rowsort label-2256
SELECT MAX ( 94 ) * + 46 AS col2
----
4324

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2257
SELECT DISTINCT + COALESCE ( + 54, COUNT( * ) * + CAST( NULL AS SIGNED ), + - 0 ) * + - COUNT( * ) * 54, + ( + 17 ) AS col2
----
-2916
17

skipif mysql # not compatible
query II rowsort label-2257
SELECT DISTINCT + COALESCE ( + 54, COUNT ( * ) * + CAST ( NULL AS INTEGER ), + - 0 ) * + - COUNT ( * ) * 54, + ( + 17 ) AS col2
----
-2916
17

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

query II rowsort
SELECT ALL 4 + 2 * 35 AS col0, 39 AS col1
----
74
39

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

skipif mysql # not compatible
query I rowsort label-2260
SELECT DISTINCT ( - COUNT ( * ) ) / - 65
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2262
SELECT DISTINCT 3 + + 90 + + + CAST( NULL AS SIGNED ) * + + 84 + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-2262
SELECT DISTINCT 3 + + 90 + + + CAST ( NULL AS INTEGER ) * + + 84 + 44
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2263
SELECT COUNT( * ) * + 92 DIV + COUNT( * ) + - MAX( + - 48 ) DIV + + COALESCE ( + + 71, + 59 - - + 20 ) * + 89 - + + ( 31 ) * + 89 + - 1
----
-2668

skipif mysql # not compatible
query I rowsort label-2263
SELECT COUNT ( * ) * + 92 / + COUNT ( * ) + - MAX ( + - 48 ) / + + COALESCE ( + + 71, + 59 - - + 20 ) * + 89 - + + ( 31 ) * + 89 + - 1
----
-2668

query I rowsort
SELECT + 52 * + 42 + - 91 * + 24 * - 29 AS col1
----
65520

query I rowsort
SELECT ALL + 61 - - 93 + + 95 + + 5 AS col2
----
254

query I rowsort
SELECT ALL - 80 - + 87
----
-167

query I rowsort
SELECT 1 + + 41
----
42

query I rowsort
SELECT + 26 * - 19
----
-494

query I rowsort
SELECT 4 * + 53 AS col1
----
212

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2270
SELECT 83 * + 21 * + 72 + - CAST( - 59 AS SIGNED )
----
125555

skipif mysql # not compatible
query I rowsort label-2270
SELECT 83 * + 21 * + 72 + - CAST ( - 59 AS INTEGER )
----
125555

query II rowsort
SELECT - 92 - + 73 AS col0, + 82 * 17
----
-165
1394

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT SUM( 83 ) + - 6 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-2272
SELECT SUM ( 83 ) + - 6 AS col1
----
77

query II rowsort
SELECT + - 73 * - + 93 AS col2, + 53 * - + 71
----
6789
-3763

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2274
SELECT DISTINCT CAST( NULL AS SIGNED ) * - COUNT( * ) + + MAX( ALL + 49 ) - - CASE + 19 WHEN - + 5 - 9 + + 22 - - - 72 THEN NULL ELSE - 1 * - 57 - + - 84 - - + 24 * - - 86 END + - 37 / + - 75 AS col0, 7 AS col2, - + COUNT( * ) + - 43 * CASE - COUNT( * ) WHEN - COALESCE ( - 97, - 11, + - COALESCE ( 95, + MIN( ( 18 ) ), 65 ) ) * - 1 THEN NULLIF ( - ( + 11 ), - 4 ) * COUNT( * ) + 47 WHEN 28 THEN + 48 END AS col0
----
NULL
7
NULL

skipif mysql # not compatible
query III rowsort label-2274
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + MAX ( ALL + 49 ) - - CASE + 19 WHEN - + 5 - 9 + + 22 - - - 72 THEN NULL ELSE - 1 * - 57 - + - 84 - - + 24 * - - 86 END + - 37 / + - 75 AS col0, 7 AS col2, - + COUNT ( * ) + - 43 * CASE - COUNT ( * ) WHEN - COALESCE ( - 97, - 11, + - COALESCE ( 95, + MIN ( ( 18 ) ), 65 ) ) * - 1 THEN NULLIF ( - ( + 11 ), - 4 ) * COUNT ( * ) + 47 WHEN 28 THEN + 48 END AS col0
----
NULL
7
NULL

query I rowsort
SELECT CASE + NULLIF ( 7, + 15 / + + ( - 92 ) ) WHEN + - 44 THEN + 53 ELSE 32 * - + 54 END AS col1
----
-1728

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT NULLIF ( + 94, - - 87 + COUNT( * ) ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-2276
SELECT NULLIF ( + 94, - - 87 + COUNT ( * ) ) AS col2
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-2277
SELECT - 40 DIV 43 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2277
SELECT - 40 / 43 AS col2
----
0

query I rowsort
SELECT ALL NULLIF ( + 63, 5 ) AS col2
----
63

query I rowsort
SELECT - 16 * + + 35 col1
----
-560

query I rowsort
SELECT DISTINCT + ( - 90 ) + - + ( 85 ) + - 32 AS col2
----
-207

query II rowsort
SELECT 22 AS col2, 27 - - - 72 + 90
----
22
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2282
SELECT - 10 * - 33 * + 10 col2, 48 * - + COALESCE ( + 5, + COUNT( DISTINCT - - 45 ), - 13 ) * + 96 + - SUM( - - 53 ) * + 93 + + - COUNT( * ) + - + 32 + + SUM( ALL + NULLIF ( 89, - - 55 ) ) + ( - - 65 ) + + COUNT( DISTINCT CAST( + 86 AS SIGNED ) ) * - MIN( DISTINCT - 93 ) * - 16 AS col2
----
3300
-29336

skipif mysql # not compatible
query II rowsort label-2282
SELECT - 10 * - 33 * + 10 col2, 48 * - + COALESCE ( + 5, + COUNT ( DISTINCT - - 45 ), - 13 ) * + 96 + - SUM ( - - 53 ) * + 93 + + - COUNT ( * ) + - + 32 + + SUM ( ALL + NULLIF ( 89, - - 55 ) ) + ( - - 65 ) + + COUNT ( DISTINCT CAST ( + 86 AS INTEGER ) ) * - MIN ( DISTINCT - 93 ) * - 16 AS col2
----
3300
-29336

onlyif mysql # DIV for integer division: 
query I rowsort label-2283
SELECT ALL - 51 DIV + 41
----
-1

skipif mysql # not compatible
query I rowsort label-2283
SELECT ALL - 51 / + 41
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT ALL + SUM( DISTINCT - 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-2284
SELECT ALL + SUM ( DISTINCT - 82 )
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-2285
SELECT + 58, NULLIF ( + - 49, + 71 * - 14 + - 50 + + 1 + + ( - 48 ) + 6 * 58 * 85 ) * + - ( - COUNT( * ) ) AS col1
----
58
-49

skipif mysql # not compatible
query II rowsort label-2285
SELECT + 58, NULLIF ( + - 49, + 71 * - 14 + - 50 + + 1 + + ( - 48 ) + 6 * 58 * 85 ) * + - ( - COUNT ( * ) ) AS col1
----
58
-49

query I rowsort
SELECT ALL 42 * 11 + + - 37
----
425

query II rowsort
SELECT - 74 - 98 * + ( + 31 ) * 79 * 65 col0, 72
----
-15600204
72

onlyif mysql # aggregate syntax: 
query II rowsort label-2288
SELECT + COUNT( * ) AS col2, - 90 * - 10 AS col0
----
1
900

skipif mysql # not compatible
query II rowsort label-2288
SELECT + COUNT ( * ) AS col2, - 90 * - 10 AS col0
----
1
900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2289
SELECT - MAX( ALL - - CAST( + 35 AS SIGNED ) ) + + 75 * - 46
----
-3485

skipif mysql # not compatible
query I rowsort label-2289
SELECT - MAX ( ALL - - CAST ( + 35 AS INTEGER ) ) + + 75 * - 46
----
-3485

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2290
SELECT COALESCE ( - 55, - + 15 * COUNT( * ) + + COALESCE ( - 87, - - 50 + - 96, - - 49 ) DIV - + 92 )
----
-55

skipif mysql # not compatible
query I rowsort label-2290
SELECT COALESCE ( - 55, - + 15 * COUNT ( * ) + + COALESCE ( - 87, - - 50 + - 96, - - 49 ) / - + 92 )
----
-55

query II rowsort
SELECT NULLIF ( - 30, - + 9 ), 8 AS col2
----
-30
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2292
SELECT ALL + 61 * - - CAST( - ( COUNT( * ) ) AS SIGNED ) DIV - - NULLIF ( - COUNT( * ), + 91 )
----
61

skipif mysql # not compatible
query I rowsort label-2292
SELECT ALL + 61 * - - CAST ( - ( COUNT ( * ) ) AS INTEGER ) / - - NULLIF ( - COUNT ( * ), + 91 )
----
61

query II rowsort
SELECT DISTINCT + 98 AS col2, 56
----
98
56

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

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

query I rowsort
SELECT + + 13 * - 13
----
-169

query II rowsort
SELECT + + 62, + 62
----
62
62

query I rowsort
SELECT ALL + 57 * - ( 57 ) col0
----
-3249

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2298
SELECT + + CAST( + 45 AS SIGNED ) * - + NULLIF ( + 24, ( - - 15 ) ) * - ( + 19 ) AS col0, 21 DIV + - 79
----
20520
0

skipif mysql # not compatible
query II rowsort label-2298
SELECT + + CAST ( + 45 AS INTEGER ) * - + NULLIF ( + 24, ( - - 15 ) ) * - ( + 19 ) AS col0, 21 / + - 79
----
20520
0

query I rowsort
SELECT + 55 * 29
----
1595

query I rowsort
SELECT DISTINCT + 55 * - - 58 + - 42
----
3148

query I rowsort
SELECT + 22 * + - ( + 39 ) - - 74 AS col1
----
-784

query I rowsort
SELECT + 26 + - + 1
----
25

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

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

query I rowsort
SELECT ALL - 31 + + 36
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2305
SELECT + 40 + 59 DIV + + 13 + + 68 + 52
----
164

skipif mysql # not compatible
query I rowsort label-2305
SELECT + 40 + 59 / + + 13 + + 68 + 52
----
164

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT ALL + 55 + + COALESCE ( - 79, - + CASE + + 17 WHEN + 8 + - 82 + + - 9 THEN + 28 * + 78 - COUNT( * ) ELSE NULL END, 83 + - 0 * - - ( ( + + 8 ) ) ) + - + 94 AS col1
----
-118

skipif mysql # not compatible
query I rowsort label-2307
SELECT ALL + 55 + + COALESCE ( - 79, - + CASE + + 17 WHEN + 8 + - 82 + + - 9 THEN + 28 * + 78 - COUNT ( * ) ELSE NULL END, 83 + - 0 * - - ( ( + + 8 ) ) ) + - + 94 AS col1
----
-118

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

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

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

skipif mysql # not compatible
query I rowsort label-2309
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 46 AS col1
----
NULL

query I rowsort
SELECT + 10 + - 36 AS col0
----
-26

query I rowsort
SELECT + 98 * 14 AS col2
----
1372

onlyif mysql # aggregate syntax: 
query II rowsort label-2312
SELECT - ( + COUNT( * ) ) AS col1, - 15 * 53 - + - ( + 36 ) AS col1
----
-1
-759

skipif mysql # not compatible
query II rowsort label-2312
SELECT - ( + COUNT ( * ) ) AS col1, - 15 * 53 - + - ( + 36 ) AS col1
----
-1
-759

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2313
SELECT ALL 68 + 1 * - ( - 24 ) DIV - 98 - - 34 * + - 34 + - CAST( COUNT( + 73 ) AS SIGNED ) - + 50 * 40
----
-3089

skipif mysql # not compatible
query I rowsort label-2313
SELECT ALL 68 + 1 * - ( - 24 ) / - 98 - - 34 * + - 34 + - CAST ( COUNT ( + 73 ) AS INTEGER ) - + 50 * 40
----
-3089

query I rowsort
SELECT + 74 + - 47 * - 99 col1
----
4727

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

skipif mysql # not compatible
query I rowsort label-2315
SELECT + 50 + - COUNT ( * ) / - 55 * - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2316
SELECT DISTINCT + COALESCE ( - - ( 8 ), 3 + + ( + MAX( DISTINCT 36 ) ) ) AS col1, + 94 * 34 + + COUNT( ALL 30 )
----
8
3197

skipif mysql # not compatible
query II rowsort label-2316
SELECT DISTINCT + COALESCE ( - - ( 8 ), 3 + + ( + MAX ( DISTINCT 36 ) ) ) AS col1, + 94 * 34 + + COUNT ( ALL 30 )
----
8
3197

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2318
SELECT ALL + 20 * + COUNT( * ) AS col1, - 13
----
20
-13

skipif mysql # not compatible
query II rowsort label-2318
SELECT ALL + 20 * + COUNT ( * ) AS col1, - 13
----
20
-13

query I rowsort
SELECT - - 83 + - + 37
----
46

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

query I rowsort
SELECT - + 67 * - + 46 AS col1
----
3082

query I rowsort
SELECT DISTINCT + NULLIF ( - 59, + 66 )
----
-59

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

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

query I rowsort
SELECT - 83 * + 20
----
-1660

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

query I rowsort
SELECT ALL - COALESCE ( - 12, + - 44, - 66 ) * + 24 + 95 AS col1
----
383

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2328
SELECT ( + + 99 ) AS col2, - COUNT( * ) * - 50 AS col2
----
99
50

skipif mysql # not compatible
query II rowsort label-2328
SELECT ( + + 99 ) AS col2, - COUNT ( * ) * - 50 AS col2
----
99
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2329
SELECT ALL - 2 + + NULLIF ( 43, 95 + 94 ) AS col2, COUNT( * ) - + - CAST( NULL AS SIGNED ) * + 72 AS col0
----
41
NULL

skipif mysql # not compatible
query II rowsort label-2329
SELECT ALL - 2 + + NULLIF ( 43, 95 + 94 ) AS col2, COUNT ( * ) - + - CAST ( NULL AS INTEGER ) * + 72 AS col0
----
41
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2330
SELECT CASE + 25 WHEN CAST( NULL AS SIGNED ) THEN - 70 WHEN - COUNT( * ) + - + 83 THEN + 0 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2330
SELECT CASE + 25 WHEN CAST ( NULL AS INTEGER ) THEN - 70 WHEN - COUNT ( * ) + - + 83 THEN + 0 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT 13 * + MIN( ALL + 28 )
----
364

skipif mysql # not compatible
query I rowsort label-2331
SELECT 13 * + MIN ( ALL + 28 )
----
364

query I rowsort
SELECT - 0 * 52 - 31 AS col1
----
-31

query I rowsort
SELECT 42 * - 6 * + 27
----
-6804

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2334
SELECT ALL + CAST( - 42 AS SIGNED ) * + 57 AS col1, 27
----
-2394
27

skipif mysql # not compatible
query II rowsort label-2334
SELECT ALL + CAST ( - 42 AS INTEGER ) * + 57 AS col1, 27
----
-2394
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT ( - MAX( + - 67 ) ) * - - COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-2335
SELECT ( - MAX ( + - 67 ) ) * - - COUNT ( * )
----
67

query I rowsort
SELECT 55 * + + 90 * - 82 * + 43 AS col1
----
-17453700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2337
SELECT ALL 81 / + + CASE - 75 WHEN - CAST( + 23 AS SIGNED ) THEN NULL WHEN - COUNT( * ) THEN MIN( ALL - ( - 51 ) ) END * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2337
SELECT ALL 81 / + + CASE - 75 WHEN - CAST ( + 23 AS INTEGER ) THEN NULL WHEN - COUNT ( * ) THEN MIN ( ALL - ( - 51 ) ) END * COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT 77 * + + 37 AS col0
----
2849

onlyif mysql # aggregate syntax: 
query II rowsort label-2339
SELECT 90 AS col1, + 41 * - COUNT( * )
----
90
-41

skipif mysql # not compatible
query II rowsort label-2339
SELECT 90 AS col1, + 41 * - COUNT ( * )
----
90
-41

query I rowsort
SELECT 90 * - 62
----
-5580

query I rowsort
SELECT 67 * 96
----
6432

query I rowsort
SELECT DISTINCT 73 * - 17
----
-1241

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT ALL 85 * - COUNT( DISTINCT + - 53 )
----
-85

skipif mysql # not compatible
query I rowsort label-2343
SELECT ALL 85 * - COUNT ( DISTINCT + - 53 )
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-2344
SELECT 90, CASE - 83 WHEN MIN( DISTINCT 71 ) THEN 92 * + 7 * + 24 WHEN 22 THEN NULL END * - 21 AS col0
----
90
NULL

skipif mysql # not compatible
query II rowsort label-2344
SELECT 90, CASE - 83 WHEN MIN ( DISTINCT 71 ) THEN 92 * + 7 * + 24 WHEN 22 THEN NULL END * - 21 AS col0
----
90
NULL

query II rowsort
SELECT ALL - 57, 67 * + 73 AS col2
----
-57
4891

query I rowsort
SELECT 69 * 24
----
1656

query I rowsort
SELECT 5 * - 12 AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2348
SELECT - 32 + + - CASE + COUNT( * ) WHEN + 81 + + 29 * - NULLIF ( + 44, + 77 ) THEN ( - + 61 ) + 4 - + 34 + + 67 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2348
SELECT - 32 + + - CASE + COUNT ( * ) WHEN + 81 + + 29 * - NULLIF ( + 44, + 77 ) THEN ( - + 61 ) + 4 - + 34 + + 67 ELSE NULL END
----
NULL

query I rowsort
SELECT + 34 * - 78 + + 16 * - - 52
----
-1820

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT + NULLIF ( - 91, - NULLIF ( - NULLIF ( - - COALESCE ( + + 49, + COUNT( - 96 ) + - - 53 * 15 * - - 85 * ( - - 35 ) + 21 ), 88 ), + 11 ) * - - MIN( + 46 ) )
----
-91

skipif mysql # not compatible
query I rowsort label-2350
SELECT + NULLIF ( - 91, - NULLIF ( - NULLIF ( - - COALESCE ( + + 49, + COUNT ( - 96 ) + - - 53 * 15 * - - 85 * ( - - 35 ) + 21 ), 88 ), + 11 ) * - - MIN ( + 46 ) )
----
-91

query II rowsort
SELECT DISTINCT - 7, 74 AS col2
----
-7
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2352
SELECT - CAST( - COUNT( - 93 ) AS SIGNED ) + - + 13
----
-12

skipif mysql # not compatible
query I rowsort label-2352
SELECT - CAST ( - COUNT ( - 93 ) AS INTEGER ) + - + 13
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-2353
SELECT - 4 DIV - - NULLIF ( - 3, + 86 + + ( - + 67 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2353
SELECT - 4 / - - NULLIF ( - 3, + 86 + + ( - + 67 ) ) AS col0
----
1

query II rowsort
SELECT 97 + 99 * + 63, - 48 + 50 - - + 97 AS col2
----
6334
99

query I rowsort
SELECT DISTINCT - - 25 + - 71
----
-46

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

skipif mysql # not compatible
query II rowsort label-2356
SELECT - - COUNT ( * ), 20 AS col0
----
1
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2357
SELECT DISTINCT 82 AS col1, - 32 + COUNT( * ) + - + CASE + ( - ( - ( + CASE - 65 WHEN + - 77 + - 98 + 60 * 87 THEN - ( - - 13 ) END ) ) ) WHEN + 17 THEN SUM( - 97 ) - - 21 + NULLIF ( 91, - 75 * + + CAST( NULL AS SIGNED ) ) END / + 35 - - 40 + - 99 * + 98 * + + COUNT( * ) / + - 70 + 12 AS col1
----
82
NULL

skipif mysql # not compatible
query II rowsort label-2357
SELECT DISTINCT 82 AS col1, - 32 + COUNT ( * ) + - + CASE + ( - ( - ( + CASE - 65 WHEN + - 77 + - 98 + 60 * 87 THEN - ( - - 13 ) END ) ) ) WHEN + 17 THEN SUM ( - 97 ) - - 21 + NULLIF ( 91, - 75 * + + CAST ( NULL AS INTEGER ) ) END / + 35 - - 40 + - 99 * + 98 * + + COUNT ( * ) / + - 70 + 12 AS col1
----
82
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2359
SELECT DISTINCT - 19 DIV - MIN( - - ( CASE + + 31 WHEN - + 1 - + CAST( CAST( + 3 AS SIGNED ) AS SIGNED ) * 37 + 12 * 45 THEN NULL ELSE + - 84 END ) )
----
0

skipif mysql # not compatible
query I rowsort label-2359
SELECT DISTINCT - 19 / - MIN ( - - ( CASE + + 31 WHEN - + 1 - + CAST ( CAST ( + 3 AS INTEGER ) AS INTEGER ) * 37 + 12 * 45 THEN NULL ELSE + - 84 END ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2360
SELECT AVG ( - 13 ) * + MIN( DISTINCT + 1 ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2360
SELECT AVG ( - 13 ) * + MIN ( DISTINCT + 1 ) / CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 20 * + - 55 AS col2
----
-1100

query I rowsort
SELECT 76 + - + 16 + - 29 AS col1
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2364
SELECT SUM( + - 41 ) DIV - 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2364
SELECT SUM ( + - 41 ) / - 95 AS col2
----
0

query I rowsort
SELECT ALL + 2 * - 83 AS col0
----
-166

query I rowsort
SELECT DISTINCT - 47 * 32 AS col0
----
-1504

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2367
SELECT ALL 17 AS col2, - 93 - - + CAST( NULL AS SIGNED ) + 27
----
17
NULL

skipif mysql # not compatible
query II rowsort label-2367
SELECT ALL 17 AS col2, - 93 - - + CAST ( NULL AS INTEGER ) + 27
----
17
NULL

query I rowsort
SELECT 95 + + - 36 * 98
----
-3433

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

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

query I rowsort
SELECT NULLIF ( 95, 49 + - COALESCE ( - + 98, - 85, - - 25 ) ) + 88 AS col2
----
183

query II rowsort
SELECT 81 AS col2, - 69 AS col1
----
81
-69

query II rowsort
SELECT DISTINCT 77, + 67 col2
----
77
67

query I rowsort
SELECT ALL 31 + 29
----
60

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

query II rowsort
SELECT ALL + + 22 AS col2, 71 AS col2
----
22
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT DISTINCT - MIN( ALL - - 48 ) * 34 + + 85 + 22 * - 19
----
-1965

skipif mysql # not compatible
query I rowsort label-2376
SELECT DISTINCT - MIN ( ALL - - 48 ) * 34 + + 85 + 22 * - 19
----
-1965

onlyif mysql # aggregate syntax: 
query II rowsort label-2377
SELECT + + 46 * - 54 + - COALESCE ( 8, 13, - COUNT( * ) ) * + 30 * - 6 - 88, - COUNT( * ) AS col2
----
-1132
-1

skipif mysql # not compatible
query II rowsort label-2377
SELECT + + 46 * - 54 + - COALESCE ( 8, 13, - COUNT ( * ) ) * + 30 * - 6 - 88, - COUNT ( * ) AS col2
----
-1132
-1

query I rowsort
SELECT + 90 * - - 13 * 43 + 9 - - 2 AS col2
----
50321

query I rowsort
SELECT + 19 * 76 + + - 30
----
1414

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT DISTINCT + CASE + 34 WHEN COUNT( * ) THEN NULL ELSE ( 51 ) * 76 END * + 89 * + 45 - NULLIF ( + + COUNT( 77 ), - 93 ) + - 92 AS col1
----
15523287

skipif mysql # not compatible
query I rowsort label-2380
SELECT DISTINCT + CASE + 34 WHEN COUNT ( * ) THEN NULL ELSE ( 51 ) * 76 END * + 89 * + 45 - NULLIF ( + + COUNT ( 77 ), - 93 ) + - 92 AS col1
----
15523287

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2381
SELECT ALL + + CAST( MAX( ALL + + ( - 68 ) ) AS SIGNED )
----
-68

skipif mysql # not compatible
query I rowsort label-2381
SELECT ALL + + CAST ( MAX ( ALL + + ( - 68 ) ) AS INTEGER )
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2382
SELECT + - CAST( NULL AS SIGNED ) * 17 * - 1 * + 27 - 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2382
SELECT + - CAST ( NULL AS INTEGER ) * 17 * - 1 * + 27 - 27 AS col1
----
NULL

query I rowsort
SELECT ALL + 2 * 87 AS col2
----
174

query I rowsort
SELECT - 4 + + 10 col1
----
6

query I rowsort
SELECT ALL 14 * 83 - 58
----
1104

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT + SUM( - 90 ) * 80 AS col2
----
-7200

skipif mysql # not compatible
query I rowsort label-2386
SELECT + SUM ( - 90 ) * 80 AS col2
----
-7200

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

skipif mysql # not compatible
query I rowsort label-2387
SELECT COUNT ( - 21 )
----
1

query II rowsort
SELECT + 34 * - 28 AS col0, - 71
----
-952
-71

query I rowsort
SELECT ALL - 33 * - ( - - 51 )
----
1683

onlyif mysql # aggregate syntax: 
query II rowsort label-2390
SELECT MIN( DISTINCT - 89 ) AS col1, 23 AS col2
----
-89
23

skipif mysql # not compatible
query II rowsort label-2390
SELECT MIN ( DISTINCT - 89 ) AS col1, 23 AS col2
----
-89
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT - SUM( ALL + 82 ) + + 47
----
-35

skipif mysql # not compatible
query I rowsort label-2391
SELECT - SUM ( ALL + 82 ) + + 47
----
-35

query I rowsort
SELECT ALL NULLIF ( - 76, - + 67 ) AS col0
----
-76

query I rowsort
SELECT ALL + 33 * - + 9
----
-297

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2394
SELECT ALL ( COALESCE ( - 21, + COUNT( * ) * + 75 DIV - 93 ) )
----
-21

skipif mysql # not compatible
query I rowsort label-2394
SELECT ALL ( COALESCE ( - 21, + COUNT ( * ) * + 75 / - 93 ) )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT ALL NULLIF ( MIN( - + 36 ), + + 73 )
----
-36

skipif mysql # not compatible
query I rowsort label-2395
SELECT ALL NULLIF ( MIN ( - + 36 ), + + 73 )
----
-36

query I rowsort
SELECT - ( 8 ) * + - 24 AS col1
----
192

query I rowsort
SELECT DISTINCT CASE 91 WHEN + 70 THEN 73 WHEN + 0 + - - 49 - + 3 + - 20 * + 92 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT ALL + 71 + + CASE COUNT( * ) WHEN - 49 * + + 4 THEN 43 WHEN - + 14 THEN + - 46 END + + + 69 * + + 25 * 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2398
SELECT ALL + 71 + + CASE COUNT ( * ) WHEN - 49 * + + 4 THEN 43 WHEN - + 14 THEN + - 46 END + + + 69 * + + 25 * 79 AS col1
----
NULL

query I rowsort
SELECT - ( + 62 ) * - - 43 AS col0
----
-2666

query II rowsort
SELECT DISTINCT + 89 + - 49 + + - 79 AS col0, + 18
----
-39
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2401
SELECT ALL 25 + + + CASE + 66 WHEN - 21 + + COUNT( * ) / - 3 - + AVG ( DISTINCT + + 51 ) THEN NULL WHEN - 78 THEN + + COUNT( * ) WHEN - 16 - - 78 THEN NULLIF ( + 76, + CAST( - 0 AS SIGNED ) ) * - + NULLIF ( + 54, - + 56 * + 69 ) / - - 50 + 74 ELSE NULL END / - - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-2401
SELECT ALL 25 + + + CASE + 66 WHEN - 21 + + COUNT ( * ) / - 3 - + AVG ( DISTINCT + + 51 ) THEN NULL WHEN - 78 THEN + + COUNT ( * ) WHEN - 16 - - 78 THEN NULLIF ( + 76, + CAST ( - 0 AS INTEGER ) ) * - + NULLIF ( + 54, - + 56 * + 69 ) / - - 50 + 74 ELSE NULL END / - - 67
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2402
SELECT - + 35 DIV - 61 + + 61 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-2402
SELECT - + 35 / - 61 + + 61 AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2403
SELECT ALL MIN( ALL + - 84 ) + - 15 + + - COUNT( * ) * + MIN( 38 ) AS col1
----
-137

skipif mysql # not compatible
query I rowsort label-2403
SELECT ALL MIN ( ALL + - 84 ) + - 15 + + - COUNT ( * ) * + MIN ( 38 ) AS col1
----
-137

onlyif mysql # DIV for integer division: 
query I rowsort label-2404
SELECT ALL - + 59 + - + 94 + 64 * 61 * 90 DIV + 17 AS col1
----
20515

skipif mysql # not compatible
query I rowsort label-2404
SELECT ALL - + 59 + - + 94 + 64 * 61 * 90 / + 17 AS col1
----
20515

query I rowsort
SELECT - + 83 + - + ( + ( + 59 ) )
----
-142

query I rowsort
SELECT + - 31 col1
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2407
SELECT - SUM( + 29 ) col1, + COUNT( * ) DIV 54 * - 72 * + - 42 AS col2
----
-29
0

skipif mysql # not compatible
query II rowsort label-2407
SELECT - SUM ( + 29 ) col1, + COUNT ( * ) / 54 * - 72 * + - 42 AS col2
----
-29
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT ALL + CASE 56 WHEN - COALESCE ( - 43, + 49, 35 + + 93 - - + COALESCE ( + + 41, - + 86 + CASE + - 25 WHEN + 44 + + 23 * 96 THEN - + 12 WHEN + 70 + - COUNT( * ) THEN NULL ELSE NULL END * - 42 / - COUNT( * ) ), + + 41 ) THEN NULL ELSE + 9 END AS col0
----
9

skipif mysql # not compatible
query I rowsort label-2408
SELECT ALL + CASE 56 WHEN - COALESCE ( - 43, + 49, 35 + + 93 - - + COALESCE ( + + 41, - + 86 + CASE + - 25 WHEN + 44 + + 23 * 96 THEN - + 12 WHEN + 70 + - COUNT ( * ) THEN NULL ELSE NULL END * - 42 / - COUNT ( * ) ), + + 41 ) THEN NULL ELSE + 9 END AS col0
----
9

query II rowsort
SELECT ALL 63 * + + 96 AS col2, - 2 - + 29 * 57 col1
----
6048
-1655

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2410
SELECT - 12 * 68 + - 16 + + COUNT( * ) * NULLIF ( + 21, CAST( NULL AS SIGNED ) ) + 62 AS col0
----
-749

skipif mysql # not compatible
query I rowsort label-2410
SELECT - 12 * 68 + - 16 + + COUNT ( * ) * NULLIF ( + 21, CAST ( NULL AS INTEGER ) ) + 62 AS col0
----
-749

query I rowsort
SELECT DISTINCT 81 * - CASE + - ( - - 32 ) WHEN + + 64 THEN - 35 * - CASE WHEN ( NULL ) <> + 28 THEN NULL WHEN 18 IS NOT NULL THEN + COALESCE ( + + 37, + NULLIF ( 9, + 54 * + - NULLIF ( - + ( + + 25 ), + 62 + + 55 ) ) ) - 23 + - 45 ELSE NULL END WHEN - + 31 THEN 87 ELSE NULL END
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2413
SELECT + ( - 89 ) * - 15 + + 48 * + CAST( + - 25 AS SIGNED ) + + CAST( NULL AS SIGNED ) + - ( - 6 ) - + 54 + - 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2413
SELECT + ( - 89 ) * - 15 + + 48 * + CAST ( + - 25 AS INTEGER ) + + CAST ( NULL AS INTEGER ) + - ( - 6 ) - + 54 + - 85 AS col1
----
NULL

query I rowsort
SELECT + 10 + - 57 AS col2
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2415
SELECT NULLIF ( - - 49, - 75 * + CAST( - 30 AS SIGNED ) / 72 - + + 72 - 50 / + 37 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-2415
SELECT NULLIF ( - - 49, - 75 * + CAST ( - 30 AS INTEGER ) / 72 - + + 72 - 50 / + 37 ) AS col1
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2416
SELECT DISTINCT CAST( - 93 AS SIGNED ) * - 52 + + - 93 + 42 * - 85 col2
----
1173

skipif mysql # not compatible
query I rowsort label-2416
SELECT DISTINCT CAST ( - 93 AS INTEGER ) * - 52 + + - 93 + 42 * - 85 col2
----
1173

onlyif mysql # DIV for integer division: 
query I rowsort label-2417
SELECT + ( - 58 ) DIV - 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2417
SELECT + ( - 58 ) / - 69 AS col0
----
0

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2420
SELECT + 68 / + NULLIF ( - CAST( NULL AS SIGNED ), 8 ) * 21
----
NULL

skipif mysql # not compatible
query I rowsort label-2420
SELECT + 68 / + NULLIF ( - CAST ( NULL AS INTEGER ), 8 ) * 21
----
NULL

query I rowsort
SELECT - 74 * - 26
----
1924

query I rowsort
SELECT - 67 - 85 AS col1
----
-152

query I rowsort
SELECT + 38 + + 24
----
62

query I rowsort
SELECT - 44 - + 25
----
-69

query I rowsort
SELECT ALL - 30 + - 65 AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT DISTINCT 61 + + - 80 - MAX( DISTINCT - 25 ) - - 74 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-2426
SELECT DISTINCT 61 + + - 80 - MAX ( DISTINCT - 25 ) - - 74 AS col1
----
80

query II rowsort
SELECT - 26, + 29 AS col1
----
-26
29

query II rowsort
SELECT - - 46, 6 * + - 69 - + 31 AS col2
----
46
-445

query I rowsort
SELECT ALL + 79 + 2
----
81

query I rowsort
SELECT ALL + 68 + - NULLIF ( - + 37, + ( + 27 ) )
----
105

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT COALESCE ( - + 0, + - COUNT( * ) + + - 75 ) + 93 * - - COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-2432
SELECT COALESCE ( - + 0, + - COUNT ( * ) + + - 75 ) + 93 * - - COUNT ( * )
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-2433
SELECT - - 54 AS col0, 36 * + 40 * - MAX( 16 ) * ( + - 47 ) + - 6 AS col1
----
54
1082874

skipif mysql # not compatible
query II rowsort label-2433
SELECT - - 54 AS col0, 36 * + 40 * - MAX ( 16 ) * ( + - 47 ) + - 6 AS col1
----
54
1082874

query I rowsort
SELECT ALL + 18 + 14 + 78 AS col2
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2435
SELECT CASE - 81 WHEN COUNT( ALL 91 ) THEN NULL WHEN - 22 THEN 60 * + + 17 * COUNT( * ) * + - CAST( NULL AS SIGNED ) END * + + NULLIF ( + + 56, + 56 ) * 86 * - 8 * + + ( + - 2 ) - + 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2435
SELECT CASE - 81 WHEN COUNT ( ALL 91 ) THEN NULL WHEN - 22 THEN 60 * + + 17 * COUNT ( * ) * + - CAST ( NULL AS INTEGER ) END * + + NULLIF ( + + 56, + 56 ) * 86 * - 8 * + + ( + - 2 ) - + 5 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2436
SELECT - 84 * CAST( COALESCE ( 11, + - 15 + - - CASE + + 94 WHEN MAX( + 53 ) * + 70 * + 87 THEN + 96 END, + 6 + + - CASE - + COUNT( - 48 ) WHEN - - COALESCE ( + 13, - + 42 ) + + 2 THEN + ( + 80 ) * 26 + + + 5 * - 33 ELSE NULL END ) AS SIGNED ) AS col2
----
-924

skipif mysql # not compatible
query I rowsort label-2436
SELECT - 84 * CAST ( COALESCE ( 11, + - 15 + - - CASE + + 94 WHEN MAX ( + 53 ) * + 70 * + 87 THEN + 96 END, + 6 + + - CASE - + COUNT ( - 48 ) WHEN - - COALESCE ( + 13, - + 42 ) + + 2 THEN + ( + 80 ) * 26 + + + 5 * - 33 ELSE NULL END ) AS INTEGER ) AS col2
----
-924

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

skipif mysql # not compatible
query II rowsort label-2437
SELECT - 78, + COUNT ( * ) col0
----
-78
1

query II rowsort
SELECT ALL 22 AS col0, + 57 AS col0
----
22
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT - ( MAX( + ( - ( + 14 ) ) ) ) * - MAX( ALL + 45 )
----
-630

skipif mysql # not compatible
query I rowsort label-2439
SELECT - ( MAX ( + ( - ( + 14 ) ) ) ) * - MAX ( ALL + 45 )
----
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT DISTINCT - ( - MIN( ALL + 38 ) ) * - 96 AS col1
----
-3648

skipif mysql # not compatible
query I rowsort label-2440
SELECT DISTINCT - ( - MIN ( ALL + 38 ) ) * - 96 AS col1
----
-3648

query I rowsort
SELECT DISTINCT - 24 - 83
----
-107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2442
SELECT ALL - - CASE SUM( - CAST( - 40 AS SIGNED ) ) WHEN - 2 + CAST( - ( + - NULLIF ( - 30, + 86 / - - ( - CASE + 94 WHEN 56 THEN + + 97 WHEN COUNT( * ) THEN + + 91 + + + 85 * COUNT( DISTINCT + 52 ) / + + 91 ELSE NULL END ) ) ) AS SIGNED ) THEN NULL WHEN + - NULLIF ( - + 19, - CAST( + AVG ( DISTINCT - - 36 ) AS DECIMAL ) ) / 78 + + 57 - 48 * 1 / - 78 THEN + 30 END * + + 45 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2442
SELECT ALL - - CASE SUM ( - CAST ( - 40 AS INTEGER ) ) WHEN - 2 + CAST ( - ( + - NULLIF ( - 30, + 86 / - - ( - CASE + 94 WHEN 56 THEN + + 97 WHEN COUNT ( * ) THEN + + 91 + + + 85 * COUNT ( DISTINCT + 52 ) / + + 91 ELSE NULL END ) ) ) AS INTEGER ) THEN NULL WHEN + - NULLIF ( - + 19, - CAST ( + AVG ( DISTINCT - - 36 ) AS REAL ) ) / 78 + + 57 - 48 * 1 / - 78 THEN + 30 END * + + 45 * COUNT ( * )
----
NULL

query I rowsort
SELECT + 17 * - 31
----
-527

query I rowsort
SELECT 2 * + 27 AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT - NULLIF ( - 81, COUNT( * ) * + 88 + AVG ( - + 38 ) )
----
81

skipif mysql # not compatible
query I rowsort label-2445
SELECT - NULLIF ( - 81, COUNT ( * ) * + 88 + AVG ( - + 38 ) )
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-2446
SELECT ALL - + 74, - MIN( ALL - - 36 ) AS col0
----
-74
-36

skipif mysql # not compatible
query II rowsort label-2446
SELECT ALL - + 74, - MIN ( ALL - - 36 ) AS col0
----
-74
-36

query II rowsort
SELECT - 18 AS col1, 93
----
-18
93

onlyif mysql # DIV for integer division: 
query I rowsort label-2448
SELECT NULLIF ( + 50, - 54 + - - NULLIF ( + 33, + 46 ) ) * 2 DIV - 29 + + 86 + + 11
----
94

skipif mysql # not compatible
query I rowsort label-2448
SELECT NULLIF ( + 50, - 54 + - - NULLIF ( + 33, + 46 ) ) * 2 / - 29 + + 86 + + 11
----
94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT DISTINCT COUNT( ALL - 85 ) * 83
----
83

skipif mysql # not compatible
query I rowsort label-2450
SELECT DISTINCT COUNT ( ALL - 85 ) * 83
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2451
SELECT ALL 56 + - CASE + 77 WHEN + + 56 THEN - 44 * + + 60 WHEN COALESCE ( 76, - 56 ) + - + 28 - + 36 + ( - - 34 ) + - + 73 THEN NULL END - + + 65 + + - CAST( COALESCE ( 11, COUNT( * ) ) AS SIGNED ) + ( + + 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2451
SELECT ALL 56 + - CASE + 77 WHEN + + 56 THEN - 44 * + + 60 WHEN COALESCE ( 76, - 56 ) + - + 28 - + 36 + ( - - 34 ) + - + 73 THEN NULL END - + + 65 + + - CAST ( COALESCE ( 11, COUNT ( * ) ) AS INTEGER ) + ( + + 53 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2452
SELECT 76 * - 81, - COUNT( * ) AS col0
----
-6156
-1

skipif mysql # not compatible
query II rowsort label-2452
SELECT 76 * - 81, - COUNT ( * ) AS col0
----
-6156
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT MAX( DISTINCT 6 ) - + 62 - ( + + COUNT( * ) )
----
-57

skipif mysql # not compatible
query I rowsort label-2453
SELECT MAX ( DISTINCT 6 ) - + 62 - ( + + COUNT ( * ) )
----
-57

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT ALL 20 + + MAX( + + 15 ) + - + 25
----
10

skipif mysql # not compatible
query I rowsort label-2455
SELECT ALL 20 + + MAX ( + + 15 ) + - + 25
----
10

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2457
SELECT DISTINCT 43 DIV 29 col2
----
1

skipif mysql # not compatible
query I rowsort label-2457
SELECT DISTINCT 43 / 29 col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT ALL COALESCE ( + - 54, 11, + COUNT( * ) + COUNT( * ) ) + + 67
----
13

skipif mysql # not compatible
query I rowsort label-2458
SELECT ALL COALESCE ( + - 54, 11, + COUNT ( * ) + COUNT ( * ) ) + + 67
----
13

onlyif mysql # DIV for integer division: 
query II rowsort label-2459
SELECT 14 * + 86 col0, - ( - 82 ) * 31 DIV - 42
----
1204
-60

skipif mysql # not compatible
query II rowsort label-2459
SELECT 14 * + 86 col0, - ( - 82 ) * 31 / - 42
----
1204
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2460
SELECT 20 DIV + SUM( DISTINCT + 21 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2460
SELECT 20 / + SUM ( DISTINCT + 21 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2461
SELECT ALL NULLIF ( - 28, + 72 * + 35 * 46 * + 92 * NULLIF ( + ( - 72 ), 45 ) + 31 + + 0 * + 69 * 87 - MAX( ALL - - CAST( - + 33 AS SIGNED ) ) ) AS col0, 33 AS col0
----
-28
33

skipif mysql # not compatible
query II rowsort label-2461
SELECT ALL NULLIF ( - 28, + 72 * + 35 * 46 * + 92 * NULLIF ( + ( - 72 ), 45 ) + 31 + + 0 * + 69 * 87 - MAX ( ALL - - CAST ( - + 33 AS INTEGER ) ) ) AS col0, 33 AS col0
----
-28
33

onlyif mysql # DIV for integer division: 
query I rowsort label-2462
SELECT DISTINCT 11 DIV + + 37 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2462
SELECT DISTINCT 11 / + + 37 AS col0
----
0

query I rowsort
SELECT 79 - - 60 AS col2
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT + ( + 24 ) * - + 1 * MIN( 97 ) col1
----
-2328

skipif mysql # not compatible
query I rowsort label-2464
SELECT + ( + 24 ) * - + 1 * MIN ( 97 ) col1
----
-2328

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

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

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

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

query I rowsort
SELECT - 98 - 34 * - 23
----
684

query I rowsort
SELECT - 82 * - 42 AS col1
----
3444

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT ALL + + COUNT( + NULLIF ( - 48, - - ( + 5 ) ) ) * - + MIN( ALL - 81 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-2469
SELECT ALL + + COUNT ( + NULLIF ( - 48, - - ( + 5 ) ) ) * - + MIN ( ALL - 81 ) AS col0
----
81

query II rowsort
SELECT DISTINCT 0 - + 35, 81 AS col0
----
-35
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2471
SELECT ALL - CASE - - 13 WHEN - 62 THEN NULL WHEN ( 83 ) * 33 * - 35 - + + COALESCE ( - 82, + + 36 + + - 88 - - - CAST( - 94 AS SIGNED ) * - - ( ( + 1 ) ) * - 62, + - 36 ) THEN - 20 + - 99 WHEN - 74 THEN 27 + - 24 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2471
SELECT ALL - CASE - - 13 WHEN - 62 THEN NULL WHEN ( 83 ) * 33 * - 35 - + + COALESCE ( - 82, + + 36 + + - 88 - - - CAST ( - 94 AS INTEGER ) * - - ( ( + 1 ) ) * - 62, + - 36 ) THEN - 20 + - 99 WHEN - 74 THEN 27 + - 24 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT + COUNT( * ) + - COUNT( * ) + 74 * - + 44 * + 43 col0
----
-140008

skipif mysql # not compatible
query I rowsort label-2472
SELECT + COUNT ( * ) + - COUNT ( * ) + 74 * - + 44 * + 43 col0
----
-140008

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2474
SELECT - 14 DIV - MIN( 63 ) * - 65 + + 82 * - + 86
----
-7052

skipif mysql # not compatible
query I rowsort label-2474
SELECT - 14 / - MIN ( 63 ) * - 65 + + 82 * - + 86
----
-7052

query I rowsort
SELECT 17 * - 45 AS col0
----
-765

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2476
SELECT 20 + - CASE 48 WHEN + - MIN( DISTINCT + 75 ) * + + ( + 46 ) THEN - + MAX( 1 ) * 21 WHEN - + 40 * - CAST( NULL AS SIGNED ) + + - 55 * - 72 * 48 + - - 59 * 59 THEN + COUNT( * ) ELSE NULL END + + NULLIF ( + + 63, - - 83 / - 64 + ( 78 ) / CASE - CAST( NULL AS SIGNED ) WHEN MAX( - + 49 ) THEN NULL WHEN - 79 THEN NULL ELSE + 10 END + - + 33 + 76 + 41 ) + 82 - 2 * + 34 * + 9 * + AVG ( - 35 + 37 * 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2476
SELECT 20 + - CASE 48 WHEN + - MIN ( DISTINCT + 75 ) * + + ( + 46 ) THEN - + MAX ( 1 ) * 21 WHEN - + 40 * - CAST ( NULL AS INTEGER ) + + - 55 * - 72 * 48 + - - 59 * 59 THEN + COUNT ( * ) ELSE NULL END + + NULLIF ( + + 63, - - 83 / - 64 + ( 78 ) / CASE - CAST ( NULL AS INTEGER ) WHEN MAX ( - + 49 ) THEN NULL WHEN - 79 THEN NULL ELSE + 10 END + - + 33 + 76 + 41 ) + 82 - 2 * + 34 * + 9 * + AVG ( - 35 + 37 * 89 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2477
SELECT 91 * 61 + - - ( - 24 ) + + 74 DIV + + 48 - - 58 * - - ( - - 85 ) + + 92 + - + 84 AS col1
----
10466

skipif mysql # not compatible
query I rowsort label-2477
SELECT 91 * 61 + - - ( - 24 ) + + 74 / + + 48 - - 58 * - - ( - - 85 ) + + 92 + - + 84 AS col1
----
10466

query I rowsort
SELECT 9 - + 78
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-2479
SELECT + 53 DIV + 43 + 14 * 94 * 91 AS col1
----
119757

skipif mysql # not compatible
query I rowsort label-2479
SELECT + 53 / + 43 + 14 * 94 * 91 AS col1
----
119757

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2481
SELECT DISTINCT - 92 DIV + 65 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2481
SELECT DISTINCT - 92 / + 65 AS col1
----
-1

query I rowsort
SELECT ALL 89 * - 18 + + + 99 + + 52
----
-1451

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT ALL MAX( ( COALESCE ( - 19, + - 70 + 37 ) ) ) * ( - 95 ) + + 77
----
1882

skipif mysql # not compatible
query I rowsort label-2483
SELECT ALL MAX ( ( COALESCE ( - 19, + - 70 + 37 ) ) ) * ( - 95 ) + + 77
----
1882

query I rowsort
SELECT ALL - 74 * + 45 AS col1
----
-3330

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT DISTINCT 51 * - 44 * - 68 + + COUNT( * ) AS col2
----
152593

skipif mysql # not compatible
query I rowsort label-2485
SELECT DISTINCT 51 * - 44 * - 68 + + COUNT ( * ) AS col2
----
152593

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2486
SELECT DISTINCT - 57 * - 69 / + 66 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2486
SELECT DISTINCT - 57 * - 69 / + 66 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 2 + 24 col2
----
26

query I rowsort
SELECT ALL - 48 + + + 88 * 51 AS col1
----
4440

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT NULLIF ( - + 45, - MIN( + 39 ) ) * - + 58 + + + 14 + + 50 * CASE - ( 7 ) WHEN + + SUM( ALL 92 ) THEN + 34 + - 31 * 21 END * + 14 * + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-2489
SELECT NULLIF ( - + 45, - MIN ( + 39 ) ) * - + 58 + + + 14 + + 50 * CASE - ( 7 ) WHEN + + SUM ( ALL 92 ) THEN + 34 + - 31 * 21 END * + 14 * + 0
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( + 22, 20 )
----
-22

query I rowsort
SELECT - 38 * - 26
----
988

query I rowsort
SELECT + 44 * - 93 AS col1
----
-4092

onlyif mysql # DIV for integer division: 
query II rowsort label-2493
SELECT ALL + 39 + 19 + + 53 + 1 * + 46 AS col1, - 89 DIV - 32
----
157
2

skipif mysql # not compatible
query II rowsort label-2493
SELECT ALL + 39 + 19 + + 53 + 1 * + 46 AS col1, - 89 / - 32
----
157
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT DISTINCT + NULLIF ( - + 81, + COALESCE ( + + 0, + AVG ( + + 33 ) / - COUNT( * ) ) )
----
-81

skipif mysql # not compatible
query I rowsort label-2495
SELECT DISTINCT + NULLIF ( - + 81, + COALESCE ( + + 0, + AVG ( + + 33 ) / - COUNT ( * ) ) )
----
-81

query I rowsort
SELECT ALL 2 + + 4 * - + NULLIF ( + + 88, - 91 ) - + 8
----
-358

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

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

query I rowsort
SELECT DISTINCT - 67 + - 63 AS col1
----
-130

onlyif mysql # aggregate syntax: 
query II rowsort label-2499
SELECT DISTINCT COALESCE ( + 26, - 51 ) AS col1, COUNT( * ) AS col0
----
26
1

skipif mysql # not compatible
query II rowsort label-2499
SELECT DISTINCT COALESCE ( + 26, - 51 ) AS col1, COUNT ( * ) AS col0
----
26
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2500
SELECT + 43 + CASE - - COUNT( * ) WHEN + - 88 - + 14 + + 92 * + - COUNT( * ) THEN NULL WHEN + 85 THEN NULL ELSE - CAST( NULL AS SIGNED ) * - COALESCE ( COUNT( * ), + + NULLIF ( - - 55, COUNT( * ) ) * 17 + + COUNT( * ) ) END + + CASE - 4 WHEN - COUNT( * ) + 40 THEN - 11 WHEN AVG ( ALL + 84 ) + 7 + + 86 * + AVG ( DISTINCT + - 15 ) + + COUNT( * ) * + + 67 THEN NULL WHEN + - 17 * 14 * - 14 + + + 3 + + - 8 + 44 * - 5 THEN + 67 / 62 ELSE NULL END * NULLIF ( 15 * 22, + MIN( DISTINCT + 40 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2500
SELECT + 43 + CASE - - COUNT ( * ) WHEN + - 88 - + 14 + + 92 * + - COUNT ( * ) THEN NULL WHEN + 85 THEN NULL ELSE - CAST ( NULL AS INTEGER ) * - COALESCE ( COUNT ( * ), + + NULLIF ( - - 55, COUNT ( * ) ) * 17 + + COUNT ( * ) ) END + + CASE - 4 WHEN - COUNT ( * ) + 40 THEN - 11 WHEN AVG ( ALL + 84 ) + 7 + + 86 * + AVG ( DISTINCT + - 15 ) + + COUNT ( * ) * + + 67 THEN NULL WHEN + - 17 * 14 * - 14 + + + 3 + + - 8 + 44 * - 5 THEN + 67 / 62 ELSE NULL END * NULLIF ( 15 * 22, + MIN ( DISTINCT + 40 ) ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT 74 AS col1, + 44
----
74
44

query I rowsort
SELECT ALL 67 * + 10 AS col2
----
670

query I rowsort
SELECT - 72 + + 43 col1
----
-29

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2505
SELECT ALL CASE - 1 WHEN - COALESCE ( + NULLIF ( 80, 70 * 82 + + 76 + - - 45 ), - + CAST( NULL AS SIGNED ) ) THEN NULL WHEN 81 + - ( + 43 ) THEN - ( CAST( - COALESCE ( - - 83, + COUNT( * ) ) AS DECIMAL ) ) ELSE NULL END AS col1, COUNT( * ) + + 65 col2
----
NULL
66

skipif mysql # not compatible
query II rowsort label-2505
SELECT ALL CASE - 1 WHEN - COALESCE ( + NULLIF ( 80, 70 * 82 + + 76 + - - 45 ), - + CAST ( NULL AS INTEGER ) ) THEN NULL WHEN 81 + - ( + 43 ) THEN - ( CAST ( - COALESCE ( - - 83, + COUNT ( * ) ) AS REAL ) ) ELSE NULL END AS col1, COUNT ( * ) + + 65 col2
----
NULL
66

onlyif mysql # DIV for integer division: 
query I rowsort label-2506
SELECT ALL - 35 DIV - + 10
----
3

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL - 35 / - + 10
----
3

query I rowsort
SELECT + 85 * - 93 AS col1
----
-7905

query I rowsort
SELECT + - 86 * - 93 AS col2
----
7998

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2509
SELECT + 59 + 71 DIV COUNT( * ) + + CAST( - 53 AS SIGNED ), 62 AS col0
----
77
62

skipif mysql # not compatible
query II rowsort label-2509
SELECT + 59 + 71 / COUNT ( * ) + + CAST ( - 53 AS INTEGER ), 62 AS col0
----
77
62

onlyif mysql # DIV for integer division: 
query II rowsort label-2510
SELECT ALL ( - - 67 ) DIV - 41, - 31 + + 24 AS col2
----
-1
-7

skipif mysql # not compatible
query II rowsort label-2510
SELECT ALL ( - - 67 ) / - 41, - 31 + + 24 AS col2
----
-1
-7

query I rowsort
SELECT - 73 + + 43 AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT DISTINCT - COUNT( * ) * - 25 col0
----
25

skipif mysql # not compatible
query I rowsort label-2512
SELECT DISTINCT - COUNT ( * ) * - 25 col0
----
25

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

skipif mysql # not compatible
query I rowsort label-2513
SELECT DISTINCT - 50 * COUNT ( * ) AS col0
----
-50

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2515
SELECT ALL + 50 / - MAX( 43 ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2515
SELECT ALL + 50 / - MAX ( 43 ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2516
SELECT ALL COUNT( * ) * + COUNT( * ) + COUNT( * ) AS col1, MIN( DISTINCT - 98 ) - - ( 78 )
----
2
-20

skipif mysql # not compatible
query II rowsort label-2516
SELECT ALL COUNT ( * ) * + COUNT ( * ) + COUNT ( * ) AS col1, MIN ( DISTINCT - 98 ) - - ( 78 )
----
2
-20

query I rowsort
SELECT ALL 85 * - + COALESCE ( - 37, - 0 * - 70 + + - 37 - + 87 * + 69 ) + 35 + - 52
----
3128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2518
SELECT DISTINCT MAX( 74 ) * + + 68 + + COALESCE ( - 69, + 26 * + 75 * + 81 + + 31 * - - 20 + + COALESCE ( NULLIF ( + 32, - ( + 8 ) ), - 10 + - 5, + CAST( - - 79 AS SIGNED ) ) * 82 * - - 84 * 5 * - 42 + - 80 + - 66, + COUNT( * ) ) * + COUNT( * ) + + 60 + 13 AS col0
----
5036

skipif mysql # not compatible
query I rowsort label-2518
SELECT DISTINCT MAX ( 74 ) * + + 68 + + COALESCE ( - 69, + 26 * + 75 * + 81 + + 31 * - - 20 + + COALESCE ( NULLIF ( + 32, - ( + 8 ) ), - 10 + - 5, + CAST ( - - 79 AS INTEGER ) ) * 82 * - - 84 * 5 * - 42 + - 80 + - 66, + COUNT ( * ) ) * + COUNT ( * ) + + 60 + 13 AS col0
----
5036

onlyif mysql # aggregate syntax: 
query II rowsort label-2519
SELECT DISTINCT 47 * - 75 + - 29 * - COUNT( * ), - 32 AS col1
----
-3496
-32

skipif mysql # not compatible
query II rowsort label-2519
SELECT DISTINCT 47 * - 75 + - 29 * - COUNT ( * ), - 32 AS col1
----
-3496
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2520
SELECT DISTINCT ( + 85 ) * - 94 + + COALESCE ( - 89, ( + - CASE + - 22 WHEN MIN( ALL 77 ) THEN + 1 DIV + 4 ELSE + COUNT( + - COALESCE ( 56, + 11, + 50 * - 17 ) ) - - 84 * + + COUNT( + + 91 ) * 3 * + + 53 END ), 50 * + COUNT( * ) * + 78 * - COUNT( * ) ) + + - MAX( - ( + 80 ) )
----
-7999

skipif mysql # not compatible
query I rowsort label-2520
SELECT DISTINCT ( + 85 ) * - 94 + + COALESCE ( - 89, ( + - CASE + - 22 WHEN MIN ( ALL 77 ) THEN + 1 / + 4 ELSE + COUNT ( + - COALESCE ( 56, + 11, + 50 * - 17 ) ) - - 84 * + + COUNT ( + + 91 ) * 3 * + + 53 END ), 50 * + COUNT ( * ) * + 78 * - COUNT ( * ) ) + + - MAX ( - ( + 80 ) )
----
-7999

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT ALL 22 * + 78 + + ( COUNT( * ) ) + - - 78 AS col2
----
1795

skipif mysql # not compatible
query I rowsort label-2521
SELECT ALL 22 * + 78 + + ( COUNT ( * ) ) + - - 78 AS col2
----
1795

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT 16 * NULLIF ( - COUNT( * ), 70 ) - - + 19
----
3

skipif mysql # not compatible
query I rowsort label-2523
SELECT 16 * NULLIF ( - COUNT ( * ), 70 ) - - + 19
----
3

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

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

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

skipif mysql # not compatible
query I rowsort label-2525
SELECT ALL - 43 / + - COUNT ( * ) col1
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2526
SELECT ALL 59 * COUNT( * ) + - - 82 - - 70 * ( - + COUNT( ALL - + 90 ) ) / + 65 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2526
SELECT ALL 59 * COUNT ( * ) + - - 82 - - 70 * ( - + COUNT ( ALL - + 90 ) ) / + 65 + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 2 AS col2, + 81 col0
----
2
81

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2529
SELECT ALL + 50 AS col2, + 62 DIV - - COALESCE ( - + 5, - - COUNT( * ) DIV - + AVG ( DISTINCT 81 ) + - 24 - - CAST( NULL AS SIGNED ) + COUNT( 94 ) * - 3 * - 4 * + 42 + + 82 + - ( + - 59 ) ) AS col0
----
50
-12

skipif mysql # not compatible
query II rowsort label-2529
SELECT ALL + 50 AS col2, + 62 / - - COALESCE ( - + 5, - - COUNT ( * ) / - + AVG ( DISTINCT 81 ) + - 24 - - CAST ( NULL AS INTEGER ) + COUNT ( 94 ) * - 3 * - 4 * + 42 + + 82 + - ( + - 59 ) ) AS col0
----
50
-12

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2531
SELECT - ( - 81 ) * + + 63 DIV - 1
----
-5103

skipif mysql # not compatible
query I rowsort label-2531
SELECT - ( - 81 ) * + + 63 / - 1
----
-5103

onlyif mysql # DIV for integer division: 
query I rowsort label-2532
SELECT - 40 * 43 + + 23 - - 27 DIV - NULLIF ( 90, + 92 ) * 25 + - 9
----
-1706

skipif mysql # not compatible
query I rowsort label-2532
SELECT - 40 * 43 + + 23 - - 27 / - NULLIF ( 90, + 92 ) * 25 + - 9
----
-1706

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2533
SELECT ALL + CASE 2 WHEN - MIN( + + 67 ) THEN - MIN( ALL - - ( + 5 ) ) * + + CAST( + 35 AS SIGNED ) / + 25 + 27 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2533
SELECT ALL + CASE 2 WHEN - MIN ( + + 67 ) THEN - MIN ( ALL - - ( + 5 ) ) * + + CAST ( + 35 AS INTEGER ) / + 25 + 27 END AS col0
----
NULL

query I rowsort
SELECT NULLIF ( ( - - 48 ), + 14 ) AS col0
----
48

query I rowsort
SELECT NULLIF ( - 90, + 27 + - ( - - ( - - 78 ) ) )
----
-90

query I rowsort
SELECT ALL + + 37 / + 80 - + - ( - + 52 ) / - CASE WHEN ( NOT NULL = + 29 ) THEN - 31 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT + + 20 + - COUNT( ALL - 92 )
----
19

skipif mysql # not compatible
query I rowsort label-2537
SELECT + + 20 + - COUNT ( ALL - 92 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2538
SELECT ALL - + COUNT( - ( 5 ) ) * - 96 * 58 AS col0
----
5568

skipif mysql # not compatible
query I rowsort label-2538
SELECT ALL - + COUNT ( - ( 5 ) ) * - 96 * 58 AS col0
----
5568

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

query II rowsort
SELECT 89 AS col2, - 8 * - 88 AS col0
----
89
704

query II rowsort
SELECT ALL + 44 AS col0, - 84 * - 72 AS col1
----
44
6048

query I rowsort
SELECT DISTINCT - 6 * - 16 AS col2
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2543
SELECT ALL - 90 col0, + 94 * + COUNT( * ) + - CAST( NULL AS SIGNED ) * 74 + - COALESCE ( + 98, COUNT( * ) * - 32, - SUM( - 47 ) * + 12 * 95 * + - COUNT( * ) ) * + SUM( ALL - + CAST( 47 AS SIGNED ) ) * + - 68 + - 57 col1
----
-90
NULL

skipif mysql # not compatible
query II rowsort label-2543
SELECT ALL - 90 col0, + 94 * + COUNT ( * ) + - CAST ( NULL AS INTEGER ) * 74 + - COALESCE ( + 98, COUNT ( * ) * - 32, - SUM ( - 47 ) * + 12 * 95 * + - COUNT ( * ) ) * + SUM ( ALL - + CAST ( 47 AS INTEGER ) ) * + - 68 + - 57 col1
----
-90
NULL

query I rowsort
SELECT DISTINCT NULLIF ( + 19, + 0 ) AS col0
----
19

query II rowsort
SELECT 26 col0, - 64 * + ( - - 23 ) + + 11 AS col2
----
26
-1461

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2546
SELECT - - 98 - 66, 52 + - CAST( + 92 AS SIGNED ) AS col1
----
32
-40

skipif mysql # not compatible
query II rowsort label-2546
SELECT - - 98 - 66, 52 + - CAST ( + 92 AS INTEGER ) AS col1
----
32
-40

query I rowsort
SELECT - 87 * - 34 col1
----
2958

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2548
SELECT + MAX( DISTINCT 6 ) * CAST( NULL AS SIGNED ) * - COALESCE ( + - ( - 55 ), - 34 * - + 96 + + 2 - 23 + + - 68 + + - 15 / + COALESCE ( 70, 12 ), + ( - COUNT( * ) ) - - 28 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2548
SELECT + MAX ( DISTINCT 6 ) * CAST ( NULL AS INTEGER ) * - COALESCE ( + - ( - 55 ), - 34 * - + 96 + + 2 - 23 + + - 68 + + - 15 / + COALESCE ( 70, 12 ), + ( - COUNT ( * ) ) - - 28 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT - + NULLIF ( + + MAX( 5 ), 53 * - - 46 ) - - SUM( + - 63 ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-2549
SELECT - + NULLIF ( + + MAX ( 5 ), 53 * - - 46 ) - - SUM ( + - 63 ) AS col1
----
-68

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

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

query I rowsort
SELECT ALL - 54 + 46 AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT ALL - COUNT( * ) + - NULLIF ( COUNT( * ), - CASE - + 83 WHEN - - 12 * - + 80 / - 12 + + - 65 + 37 THEN 98 WHEN 31 * 98 THEN NULL ELSE NULL END * - + 59 ) + - 40 + + 97 * 19
----
1801

skipif mysql # not compatible
query I rowsort label-2552
SELECT ALL - COUNT ( * ) + - NULLIF ( COUNT ( * ), - CASE - + 83 WHEN - - 12 * - + 80 / - 12 + + - 65 + 37 THEN 98 WHEN 31 * 98 THEN NULL ELSE NULL END * - + 59 ) + - 40 + + 97 * 19
----
1801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2553
SELECT DISTINCT + + CAST( + 58 AS SIGNED ) * - 48
----
-2784

skipif mysql # not compatible
query I rowsort label-2553
SELECT DISTINCT + + CAST ( + 58 AS INTEGER ) * - 48
----
-2784

query I rowsort
SELECT + + 74 * + 12
----
888

onlyif mysql # aggregate syntax: 
query II rowsort label-2555
SELECT ALL + COUNT( * ) AS col1, - 91 - + - 8
----
1
-83

skipif mysql # not compatible
query II rowsort label-2555
SELECT ALL + COUNT ( * ) AS col1, - 91 - + - 8
----
1
-83

query I rowsort
SELECT ALL 63 + 11
----
74

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

skipif mysql # not compatible
query I rowsort label-2557
SELECT ALL COUNT ( * ) / + - CAST ( + 26 AS INTEGER ) + - 77 AS col1
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2558
SELECT COUNT( * ) DIV + ( + - NULLIF ( + - 9, + ( - 44 ) * - 84 * + 73 + - MIN( ALL 61 ) * + MAX( 31 ) * 42 ) ) + + - 67
----
-67

skipif mysql # not compatible
query I rowsort label-2558
SELECT COUNT ( * ) / + ( + - NULLIF ( + - 9, + ( - 44 ) * - 84 * + 73 + - MIN ( ALL 61 ) * + MAX ( 31 ) * 42 ) ) + + - 67
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT ALL NULLIF ( - 38, 53 * + ( COUNT( * ) ) ) * - 3 * 82
----
9348

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL NULLIF ( - 38, 53 * + ( COUNT ( * ) ) ) * - 3 * 82
----
9348

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT ALL + ( + COUNT( - - ( - 58 ) ) ) - - 35 + 46
----
82

skipif mysql # not compatible
query I rowsort label-2560
SELECT ALL + ( + COUNT ( - - ( - 58 ) ) ) - - 35 + 46
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT ALL - SUM( - 66 )
----
66

skipif mysql # not compatible
query I rowsort label-2561
SELECT ALL - SUM ( - 66 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT DISTINCT MIN( DISTINCT 13 ) * - 62 + 20 AS col0
----
-786

skipif mysql # not compatible
query I rowsort label-2562
SELECT DISTINCT MIN ( DISTINCT 13 ) * - 62 + 20 AS col0
----
-786

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2563
SELECT ALL NULLIF ( - CASE - MIN( - 83 ) WHEN + 38 THEN + 60 + - 32 END, CAST( - - 37 AS SIGNED ) - - 66 ) - - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-2563
SELECT ALL NULLIF ( - CASE - MIN ( - 83 ) WHEN + 38 THEN + 60 + - 32 END, CAST ( - - 37 AS INTEGER ) - - 66 ) - - 57
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2565
SELECT DISTINCT + ( 94 ) DIV MIN( ALL - 61 ) + + 52
----
51

skipif mysql # not compatible
query I rowsort label-2565
SELECT DISTINCT + ( 94 ) / MIN ( ALL - 61 ) + + 52
----
51

query II rowsort
SELECT - 78 * - 98 AS col0, + 33 + + 11
----
7644
44

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

skipif mysql # not compatible
query I rowsort label-2567
SELECT DISTINCT + 41 / COUNT ( * ) AS col1
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2568
SELECT ALL + NULLIF ( - + CAST( + - 79 AS SIGNED ), + - 74 )
----
79

skipif mysql # not compatible
query I rowsort label-2568
SELECT ALL + NULLIF ( - + CAST ( + - 79 AS INTEGER ), + - 74 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2569
SELECT + 1 * 84 * - + 11 + + ( - COALESCE ( 16, + 13, + + 44 ) ) + + COUNT( * ) + NULLIF ( + COUNT( * ), - - 15 ) - - 71 AS col1
----
-867

skipif mysql # not compatible
query I rowsort label-2569
SELECT + 1 * 84 * - + 11 + + ( - COALESCE ( 16, + 13, + + 44 ) ) + + COUNT ( * ) + NULLIF ( + COUNT ( * ), - - 15 ) - - 71 AS col1
----
-867

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

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

query I rowsort
SELECT + ( + - 31 ) + + 82 * - + 9 col0
----
-769

onlyif mysql # DIV for integer division: 
query I rowsort label-2572
SELECT + 41 DIV - ( + 72 ) * + 98
----
0

skipif mysql # not compatible
query I rowsort label-2572
SELECT + 41 / - ( + 72 ) * + 98
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2573
SELECT ALL + 58 + - 3 AS col2, + CASE - 35 WHEN COUNT( * ) THEN + + 30 END
----
55
NULL

skipif mysql # not compatible
query II rowsort label-2573
SELECT ALL + 58 + - 3 AS col2, + CASE - 35 WHEN COUNT ( * ) THEN + + 30 END
----
55
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT COUNT( * ) + + COUNT( ALL + 92 ) * + SUM( ALL + - 24 )
----
-23

skipif mysql # not compatible
query I rowsort label-2574
SELECT COUNT ( * ) + + COUNT ( ALL + 92 ) * + SUM ( ALL + - 24 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT - ( 67 ) + 89 * + + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-2575
SELECT - ( 67 ) + 89 * + + COUNT ( * )
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2576
SELECT ALL - - COALESCE ( - NULLIF ( - - 11, 3 * - 45 ), 77 + + - 95 + - 50 + 0 + 23 * + COUNT( * ) + - 8 + + + ( 12 ) + + + 91 * - 84 ) + 12 AS col0, CAST( NULL AS SIGNED ) * 57 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2576
SELECT ALL - - COALESCE ( - NULLIF ( - - 11, 3 * - 45 ), 77 + + - 95 + - 50 + 0 + 23 * + COUNT ( * ) + - 8 + + + ( 12 ) + + + 91 * - 84 ) + 12 AS col0, CAST ( NULL AS INTEGER ) * 57 AS col2
----
1
NULL

query II rowsort
SELECT ALL + - 38 + - 59 AS col0, + 73 + + 72
----
-97
145

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

skipif mysql # not compatible
query I rowsort label-2578
SELECT DISTINCT - 65 + COUNT ( * ) / - - 87 AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT DISTINCT - ( MIN( ALL - + ( - 83 ) ) ) * - - 58 + - 79 AS col1
----
-4893

skipif mysql # not compatible
query I rowsort label-2579
SELECT DISTINCT - ( MIN ( ALL - + ( - 83 ) ) ) * - - 58 + - 79 AS col1
----
-4893

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2580
SELECT ALL CASE 77 WHEN + + 64 THEN + COUNT( * ) / + - 37 - + + CAST( - + 79 AS SIGNED ) - - 42 / - 84 - ( + + 35 ) + 47 + - 35 WHEN + CAST( + MIN( ALL 79 ) AS SIGNED ) THEN NULL END + 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2580
SELECT ALL CASE 77 WHEN + + 64 THEN + COUNT ( * ) / + - 37 - + + CAST ( - + 79 AS INTEGER ) - - 42 / - 84 - ( + + 35 ) + 47 + - 35 WHEN + CAST ( + MIN ( ALL 79 ) AS INTEGER ) THEN NULL END + 47 AS col1
----
NULL

query I rowsort
SELECT + 44 + 52 AS col0
----
96

query I rowsort
SELECT ALL - + 25 + - + 17
----
-42

query II rowsort
SELECT + ( - 39 ) AS col0, 7 AS col1
----
-39
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT + 57 + - SUM( DISTINCT + - 18 )
----
75

skipif mysql # not compatible
query I rowsort label-2584
SELECT + 57 + - SUM ( DISTINCT + - 18 )
----
75

query I rowsort
SELECT 70 * + 5 AS col0
----
350

query I rowsort
SELECT ALL - 89 + + 87 * COALESCE ( + 59, + - 31 - - + COALESCE ( + 29, - + 35 ) ) AS col2
----
5044

query I rowsort
SELECT 15 + 26
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-2588
SELECT DISTINCT 51 - - - CASE 70 WHEN 99 THEN + COUNT( * ) END * 25 AS col1, ( - + 52 )
----
NULL
-52

skipif mysql # not compatible
query II rowsort label-2588
SELECT DISTINCT 51 - - - CASE 70 WHEN 99 THEN + COUNT ( * ) END * 25 AS col1, ( - + 52 )
----
NULL
-52

query I rowsort
SELECT ALL + 44 * + 8 col1
----
352

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT ALL MIN( + 40 ) - 63 + - 38 * - 18 AS col1
----
661

skipif mysql # not compatible
query I rowsort label-2590
SELECT ALL MIN ( + 40 ) - 63 + - 38 * - 18 AS col1
----
661

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2591
SELECT DISTINCT - 71 - - 99 * + 6 + + 97 + + 63 / + CAST( NULL AS DECIMAL ) + ( - + 84 ) - 27 * AVG ( ALL + 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2591
SELECT DISTINCT - 71 - - 99 * + 6 + + 97 + + 63 / + CAST ( NULL AS REAL ) + ( - + 84 ) - 27 * AVG ( ALL + 72 )
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2593
SELECT 44 * - COUNT( * ) + + + ( 27 ) DIV + 98 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-2593
SELECT 44 * - COUNT ( * ) + + + ( 27 ) / + 98 AS col0
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-2594
SELECT ALL MIN( ALL - 37 ) - 3 AS col0, - 94
----
-40
-94

skipif mysql # not compatible
query II rowsort label-2594
SELECT ALL MIN ( ALL - 37 ) - 3 AS col0, - 94
----
-40
-94

query II rowsort
SELECT 41 col0, + 38 * + + 39 AS col2
----
41
1482

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2596
SELECT 4 DIV + 79 * 14 AS col0, CAST( + + 50 AS SIGNED )
----
0
50

skipif mysql # not compatible
query II rowsort label-2596
SELECT 4 / + 79 * 14 AS col0, CAST ( + + 50 AS INTEGER )
----
0
50

query I rowsort
SELECT 40 * + 46 AS col0
----
1840

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

query I rowsort
SELECT - 94 * + 55 - + 67
----
-5237

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2600
SELECT ( - + NULLIF ( - 25, COUNT( * ) * + 93 ) ) * + COUNT( ALL - ( + - 23 ) ) col1, 23 - - 37 + + 35 DIV 36
----
25
60

skipif mysql # not compatible
query II rowsort label-2600
SELECT ( - + NULLIF ( - 25, COUNT ( * ) * + 93 ) ) * + COUNT ( ALL - ( + - 23 ) ) col1, 23 - - 37 + + 35 / 36
----
25
60

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

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

query I rowsort
SELECT DISTINCT ( + 39 ) * - 75 + 57 AS col1
----
-2868

query I rowsort
SELECT ALL 72 * - - 94 AS col2
----
6768

query I rowsort
SELECT ( 62 ) * - - 65 * - + 99 * + - 4
----
1595880

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT ALL + COUNT( * ) * - 48 * 49 * + + 99 AS col0
----
-232848

skipif mysql # not compatible
query I rowsort label-2605
SELECT ALL + COUNT ( * ) * - 48 * 49 * + + 99 AS col0
----
-232848

query II rowsort
SELECT DISTINCT - - 50 AS col1, - 66 * + 16 AS col2
----
50
-1056

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2610
SELECT ALL COUNT( ALL - CAST( NULL AS DECIMAL ) ) + - - 20 + - 25
----
-5

skipif mysql # not compatible
query I rowsort label-2610
SELECT ALL COUNT ( ALL - CAST ( NULL AS REAL ) ) + - - 20 + - 25
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-2611
SELECT COUNT( * ) col2, - 17
----
1
-17

skipif mysql # not compatible
query II rowsort label-2611
SELECT COUNT ( * ) col2, - 17
----
1
-17

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2612
SELECT - 61 * - COALESCE ( + 55, 42 + - - 29 DIV - 99 ) + 39 + - 49 + - - CAST( 62 AS SIGNED ) * ( + 26 ) * - 31
----
-46627

skipif mysql # not compatible
query I rowsort label-2612
SELECT - 61 * - COALESCE ( + 55, 42 + - - 29 / - 99 ) + 39 + - 49 + - - CAST ( 62 AS INTEGER ) * ( + 26 ) * - 31
----
-46627

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2613
SELECT - 15 AS col2, - CAST( NULL AS SIGNED )
----
-15
NULL

skipif mysql # not compatible
query II rowsort label-2613
SELECT - 15 AS col2, - CAST ( NULL AS INTEGER )
----
-15
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2614
SELECT 40 * - + 2 + + + 22 col1, 31 + - CAST( + + 73 AS SIGNED ) + + 49 col1
----
-58
7

skipif mysql # not compatible
query II rowsort label-2614
SELECT 40 * - + 2 + + + 22 col1, 31 + - CAST ( + + 73 AS INTEGER ) + + 49 col1
----
-58
7

query I rowsort
SELECT DISTINCT ( - + 2 ) + - 31
----
-33

query I rowsort
SELECT ALL + 35 + + 42
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2617
SELECT ALL + CASE + CAST( - 58 AS SIGNED ) WHEN COUNT( * ) THEN + ( 64 ) END + + - 25 + + 19 * + 67 + - NULLIF ( 71, + - 82 ) + + - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2617
SELECT ALL + CASE + CAST ( - 58 AS INTEGER ) WHEN COUNT ( * ) THEN + ( 64 ) END + + - 25 + + 19 * + 67 + - NULLIF ( 71, + - 82 ) + + - COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2618
SELECT DISTINCT - 2 * COALESCE ( + 95, + - 41, COUNT( * ) * - 58 ) + + 88 - - - 2 * + 85
----
-272

skipif mysql # not compatible
query I rowsort label-2618
SELECT DISTINCT - 2 * COALESCE ( + 95, + - 41, COUNT ( * ) * - 58 ) + + 88 - - - 2 * + 85
----
-272

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2621
SELECT DISTINCT - 30, 81 DIV 92 + + 84 AS col1
----
-30
84

skipif mysql # not compatible
query II rowsort label-2621
SELECT DISTINCT - 30, 81 / 92 + + 84 AS col1
----
-30
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2622
SELECT DISTINCT MIN( ALL - 7 ) AS col0, - 52 DIV - 75
----
-7
0

skipif mysql # not compatible
query II rowsort label-2622
SELECT DISTINCT MIN ( ALL - 7 ) AS col0, - 52 / - 75
----
-7
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT ALL - 84 - MAX( + 90 )
----
-174

skipif mysql # not compatible
query I rowsort label-2623
SELECT ALL - 84 - MAX ( + 90 )
----
-174

onlyif mysql # aggregate syntax: 
query II rowsort label-2624
SELECT - COUNT( * ) * CASE + - ( - 5 ) WHEN - 58 / 84 * - + 63 + + - 69 THEN + - 37 ELSE NULL END AS col0, + 2 + + SUM( 9 )
----
NULL
11

skipif mysql # not compatible
query II rowsort label-2624
SELECT - COUNT ( * ) * CASE + - ( - 5 ) WHEN - 58 / 84 * - + 63 + + - 69 THEN + - 37 ELSE NULL END AS col0, + 2 + + SUM ( 9 )
----
NULL
11

onlyif mysql # aggregate syntax: 
query II rowsort label-2625
SELECT ALL MAX( DISTINCT 20 ) col1, 99 * + 76 + 16
----
20
7540

skipif mysql # not compatible
query II rowsort label-2625
SELECT ALL MAX ( DISTINCT 20 ) col1, 99 * + 76 + 16
----
20
7540

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2626
SELECT - 92 * + COALESCE ( - + 19, 56 DIV + NULLIF ( + 71, - COALESCE ( + 70, + 56 + + ( 34 ) + - CAST( NULL AS DECIMAL ) + + 17 * - + 9 ) ) )
----
1748

skipif mysql # not compatible
query I rowsort label-2626
SELECT - 92 * + COALESCE ( - + 19, 56 / + NULLIF ( + 71, - COALESCE ( + 70, + 56 + + ( 34 ) + - CAST ( NULL AS REAL ) + + 17 * - + 9 ) ) )
----
1748

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT DISTINCT MIN( - 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-2627
SELECT DISTINCT MIN ( - 30 )
----
-30

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

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

query I rowsort
SELECT - 44 - + 6 * ( + 23 )
----
-182

query I rowsort
SELECT - 32 + - + 20
----
-52

query I rowsort
SELECT ALL - 95 * NULLIF ( + 21, + 88 )
----
-1995

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

skipif mysql # not compatible
query I rowsort label-2632
SELECT - 9 + CAST ( - COUNT ( * ) AS INTEGER )
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-2633
SELECT DISTINCT - COUNT( * ) * + 65 AS col1, 28 * + 0 AS col2
----
-65
0

skipif mysql # not compatible
query II rowsort label-2633
SELECT DISTINCT - COUNT ( * ) * + 65 AS col1, 28 * + 0 AS col2
----
-65
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT + MIN( DISTINCT - 31 ) + 21
----
-10

skipif mysql # not compatible
query I rowsort label-2634
SELECT + MIN ( DISTINCT - 31 ) + 21
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2635
SELECT COALESCE ( 18, - 51, - + COUNT( * ) * + 99 + CASE 67 WHEN + CAST( + + 72 AS SIGNED ) THEN + 77 - - - 51 + 21 * + - 8 DIV 15 END + + 60 + + + 7 * - 98 * + 58 + - ( - 78 ) )
----
18

skipif mysql # not compatible
query I rowsort label-2635
SELECT COALESCE ( 18, - 51, - + COUNT ( * ) * + 99 + CASE 67 WHEN + CAST ( + + 72 AS INTEGER ) THEN + 77 - - - 51 + 21 * + - 8 / 15 END + + 60 + + + 7 * - 98 * + 58 + - ( - 78 ) )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT DISTINCT + SUM( DISTINCT 9 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-2636
SELECT DISTINCT + SUM ( DISTINCT 9 ) AS col0
----
9

query II rowsort
SELECT ALL + 70 * + 66 + 89 + - - 85 AS col0, 80
----
4794
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT - COUNT( * ) * - 56 + + 7 + - ( - 57 ) * + 78 * - 38
----
-168885

skipif mysql # not compatible
query I rowsort label-2638
SELECT - COUNT ( * ) * - 56 + + 7 + - ( - 57 ) * + 78 * - 38
----
-168885

query I rowsort
SELECT ALL 38 * - + 75 - + 72 + 99 * - 52 * + 24 - - + 86 + + 27 AS col2
----
-126361

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT + + 36 + 30 * - NULLIF ( + MIN( DISTINCT - 48 ), + 29 )
----
1476

skipif mysql # not compatible
query I rowsort label-2640
SELECT + + 36 + 30 * - NULLIF ( + MIN ( DISTINCT - 48 ), + 29 )
----
1476

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2641
SELECT ALL - 84 * + 15 + - - CASE 22 WHEN - + 78 + + 92 * 88 * + 71 + 92 + - ( + - 96 ) THEN - CAST( NULL AS SIGNED ) WHEN + - 24 THEN + NULLIF ( - + 98, 41 * - + 58 + + CAST( NULL AS SIGNED ) - 40 ) END + + - 58 / + 85 + + 20 * + ( COUNT( - 74 ) ), 31 AS col0
----
NULL
31

skipif mysql # not compatible
query II rowsort label-2641
SELECT ALL - 84 * + 15 + - - CASE 22 WHEN - + 78 + + 92 * 88 * + 71 + 92 + - ( + - 96 ) THEN - CAST ( NULL AS INTEGER ) WHEN + - 24 THEN + NULLIF ( - + 98, 41 * - + 58 + + CAST ( NULL AS INTEGER ) - 40 ) END + + - 58 / + 85 + + 20 * + ( COUNT ( - 74 ) ), 31 AS col0
----
NULL
31

query I rowsort
SELECT ALL - 67 * - 57
----
3819

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

query I rowsort
SELECT + ( + 4 ) * ( - 28 ) + - 0 + 44 * - - 82 + - 95 * + - ( 70 ) AS col1
----
10146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2645
SELECT ALL + ( - - 35 ) * 5 * + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2645
SELECT ALL + ( - - 35 ) * 5 * + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2646
SELECT + ( + 16 ) + - 37 + - COUNT( * ) * + - CAST( 4 AS SIGNED ) * - SUM( DISTINCT 73 ) * - 85 * 94 AS col2
----
2333059

skipif mysql # not compatible
query I rowsort label-2646
SELECT + ( + 16 ) + - 37 + - COUNT ( * ) * + - CAST ( 4 AS INTEGER ) * - SUM ( DISTINCT 73 ) * - 85 * 94 AS col2
----
2333059

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT - - 29 - + NULLIF ( + 84, + CASE + + 51 WHEN + 64 + - + 17 THEN + ( COUNT( * ) ) END )
----
-55

skipif mysql # not compatible
query I rowsort label-2648
SELECT - - 29 - + NULLIF ( + 84, + CASE + + 51 WHEN + 64 + - + 17 THEN + ( COUNT ( * ) ) END )
----
-55

query I rowsort
SELECT + + 60 + + + ( 66 ) * + ( - 55 )
----
-3570

onlyif mysql # aggregate syntax: 
query II rowsort label-2650
SELECT 86 AS col0, ( MAX( DISTINCT - 8 ) ) AS col0
----
86
-8

skipif mysql # not compatible
query II rowsort label-2650
SELECT 86 AS col0, ( MAX ( DISTINCT - 8 ) ) AS col0
----
86
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2651
SELECT DISTINCT COUNT( * ) - + CAST( + + ( - 83 ) AS SIGNED )
----
84

skipif mysql # not compatible
query I rowsort label-2651
SELECT DISTINCT COUNT ( * ) - + CAST ( + + ( - 83 ) AS INTEGER )
----
84

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT ALL MIN( DISTINCT - - 63 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-2654
SELECT ALL MIN ( DISTINCT - - 63 ) AS col0
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2655
SELECT - ( - ( - 96 ) ), COUNT( + + 16 ) * - 7 * + - 80 * + AVG ( - + 18 ) + CAST( NULL AS SIGNED ) * 64 + - AVG ( - 14 ) + - + 32 / 75 col2
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-2655
SELECT - ( - ( - 96 ) ), COUNT ( + + 16 ) * - 7 * + - 80 * + AVG ( - + 18 ) + CAST ( NULL AS INTEGER ) * 64 + - AVG ( - 14 ) + - + 32 / 75 col2
----
-96
NULL

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

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

query I rowsort
SELECT - 45 + - 55 AS col1
----
-100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2658
SELECT + MIN( - 31 ) DIV + - 28 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2658
SELECT + MIN ( - 31 ) / + - 28 AS col1
----
1

query I rowsort
SELECT - 62 * 91
----
-5642

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2660
SELECT DISTINCT - CASE - 77 WHEN + - ( + COUNT( * ) ) THEN + - MAX( DISTINCT + 90 ) / - COUNT( * ) END * - AVG ( DISTINCT - 18 ) + 28 + - CAST( + 79 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2660
SELECT DISTINCT - CASE - 77 WHEN + - ( + COUNT ( * ) ) THEN + - MAX ( DISTINCT + 90 ) / - COUNT ( * ) END * - AVG ( DISTINCT - 18 ) + 28 + - CAST ( + 79 AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 26 * - 29
----
-754

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

skipif mysql # not compatible
query I rowsort label-2662
SELECT - CAST ( COALESCE ( + - 74, + COUNT ( * ) ) AS INTEGER ) AS col1
----
74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT - 15 + + COUNT( * ) - - + 7 * + 64 * MIN( ALL - COALESCE ( + 81, 18 + - 46, 44 * + + NULLIF ( + COALESCE ( - 14, + 34 * + 41 ), - 65 ) - - 33 * + - 62 ) )
----
-36302

skipif mysql # not compatible
query I rowsort label-2664
SELECT - 15 + + COUNT ( * ) - - + 7 * + 64 * MIN ( ALL - COALESCE ( + 81, 18 + - 46, 44 * + + NULLIF ( + COALESCE ( - 14, + 34 * + 41 ), - 65 ) - - 33 * + - 62 ) )
----
-36302

query I rowsort
SELECT DISTINCT 73 * - 44 AS col1
----
-3212

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2666
SELECT DISTINCT COUNT( * ) + - + 27 DIV - 49
----
1

skipif mysql # not compatible
query I rowsort label-2666
SELECT DISTINCT COUNT ( * ) + - + 27 / - 49
----
1

query I rowsort
SELECT ALL 8 * + 49 AS col2
----
392

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2669
SELECT ALL + 80 DIV + 35 + 40 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-2669
SELECT ALL + 80 / + 35 + 40 AS col2
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2670
SELECT - CASE - 19 WHEN + + ( - COUNT( * ) ) THEN - 93 - - COALESCE ( CASE - CAST( - 60 AS SIGNED ) WHEN + 65 + + 45 + + - 89 * - COUNT( 81 ) * + 10 + + CAST( NULL AS SIGNED ) - - ( 7 ) * + 50 + + 13 * + 92 * 50 * + NULLIF ( - 93, - COUNT( DISTINCT 65 ) * - 40 + 86 - 39 + + COALESCE ( - 48, - - 24 * + 68 + - + 34, COUNT( * ), + 77 ) ) - + 54 THEN 85 ELSE - ( MIN( 98 ) ) + 67 / - 40 END, - 63 ) + 45 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2670
SELECT - CASE - 19 WHEN + + ( - COUNT ( * ) ) THEN - 93 - - COALESCE ( CASE - CAST ( - 60 AS INTEGER ) WHEN + 65 + + 45 + + - 89 * - COUNT ( 81 ) * + 10 + + CAST ( NULL AS INTEGER ) - - ( 7 ) * + 50 + + 13 * + 92 * 50 * + NULLIF ( - 93, - COUNT ( DISTINCT 65 ) * - 40 + 86 - 39 + + COALESCE ( - 48, - - 24 * + 68 + - + 34, COUNT ( * ), + 77 ) ) - + 54 THEN 85 ELSE - ( MIN ( 98 ) ) + 67 / - 40 END, - 63 ) + 45 END col0
----
NULL

query I rowsort
SELECT - + 40 * + 17 AS col0
----
-680

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2672
SELECT - COUNT( * ) DIV 10 - 90, COUNT( * ) + - 81 AS col0
----
-90
-80

skipif mysql # not compatible
query II rowsort label-2672
SELECT - COUNT ( * ) / 10 - 90, COUNT ( * ) + - 81 AS col0
----
-90
-80

query I rowsort
SELECT DISTINCT - 18 * - - 29 AS col1
----
-522

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

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

query I rowsort
SELECT ALL - 85 * 95
----
-8075

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2676
SELECT ALL 98 DIV + 25 + - SUM( ALL - 63 ) + - - 85 * 69
----
5931

skipif mysql # not compatible
query I rowsort label-2676
SELECT ALL 98 / + 25 + - SUM ( ALL - 63 ) + - - 85 * 69
----
5931

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2680
SELECT - 54 * - 55 DIV COUNT( * )
----
2970

skipif mysql # not compatible
query I rowsort label-2680
SELECT - 54 * - 55 / COUNT ( * )
----
2970

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT 39 * COUNT( - + 64 ) * + COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-2681
SELECT 39 * COUNT ( - + 64 ) * + COUNT ( * )
----
39

query I rowsort
SELECT ( + ( + + 43 ) ) + - - 13 + - 99 AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT DISTINCT 2 * - NULLIF ( + 85, + - 13 / MIN( ( + 25 ) ) * 2 ) AS col1
----
-170

skipif mysql # not compatible
query I rowsort label-2683
SELECT DISTINCT 2 * - NULLIF ( + 85, + - 13 / MIN ( ( + 25 ) ) * 2 ) AS col1
----
-170

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

query II rowsort
SELECT - + 72 AS col0, + 41 AS col0
----
-72
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT ALL NULLIF ( + + 0, - COUNT( * ) + + SUM( ALL - + 38 ) * - - 47 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2686
SELECT ALL NULLIF ( + + 0, - COUNT ( * ) + + SUM ( ALL - + 38 ) * - - 47 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT ALL - 20 * + - MIN( DISTINCT - 50 )
----
-1000

skipif mysql # not compatible
query I rowsort label-2687
SELECT ALL - 20 * + - MIN ( DISTINCT - 50 )
----
-1000

onlyif mysql # aggregate syntax: 
query II rowsort label-2688
SELECT ALL 81 AS col0, MAX( DISTINCT - - 53 ) * + + 88 col1
----
81
4664

skipif mysql # not compatible
query II rowsort label-2688
SELECT ALL 81 AS col0, MAX ( DISTINCT - - 53 ) * + + 88 col1
----
81
4664

query II rowsort
SELECT - 83, 4 AS col2
----
-83
4

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

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

query I rowsort
SELECT 4 - + + 30 + 14 AS col1
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2692
SELECT 95 AS col2, - 15 - - ( + - MIN( ALL CAST( - + ( 99 ) AS SIGNED ) ) ) + + 37 * + 19
----
95
787

skipif mysql # not compatible
query II rowsort label-2692
SELECT 95 AS col2, - 15 - - ( + - MIN ( ALL CAST ( - + ( 99 ) AS INTEGER ) ) ) + + 37 * + 19
----
95
787

query I rowsort
SELECT ( 64 ) + + + 91 col1
----
155

onlyif mysql # aggregate syntax: 
query II rowsort label-2694
SELECT DISTINCT 47 AS col1, - COUNT( * ) - - - 25 - 42 AS col1
----
47
-68

skipif mysql # not compatible
query II rowsort label-2694
SELECT DISTINCT 47 AS col1, - COUNT ( * ) - - - 25 - 42 AS col1
----
47
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2695
SELECT DISTINCT NULLIF ( + CASE CAST( NULL AS SIGNED ) WHEN 19 * - - 66 + + + 26 + + - 13 THEN + + 59 * - - 36 + + 44 * - COUNT( - - COALESCE ( - 4, 77 ) ) * - 78 + + 50 WHEN + 1 + COUNT( * ) * - 23 + - 68 THEN NULL END, + 63 ) + + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-2695
SELECT DISTINCT NULLIF ( + CASE CAST ( NULL AS INTEGER ) WHEN 19 * - - 66 + + + 26 + + - 13 THEN + + 59 * - - 36 + + 44 * - COUNT ( - - COALESCE ( - 4, 77 ) ) * - 78 + + 50 WHEN + 1 + COUNT ( * ) * - 23 + - 68 THEN NULL END, + 63 ) + + 73
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2696
SELECT ALL COUNT( DISTINCT + CAST( + 48 AS SIGNED ) ) + 34 col0
----
35

skipif mysql # not compatible
query I rowsort label-2696
SELECT ALL COUNT ( DISTINCT + CAST ( + 48 AS INTEGER ) ) + 34 col0
----
35

query I rowsort
SELECT DISTINCT 14 + + 72 + 53 * + 87
----
4697

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT ALL - 95 + ( - COUNT( + + 40 ) ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-2698
SELECT ALL - 95 + ( - COUNT ( + + 40 ) ) AS col0
----
-96

query II rowsort
SELECT ALL 7 AS col1, 7
----
7
7

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2701
SELECT 55 DIV + 64 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2701
SELECT 55 / + 64 AS col0
----
0

query II rowsort
SELECT - 17, 25 * - 69 AS col0
----
-17
-1725

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2703
SELECT ALL 55 + ( COUNT( * ) ) DIV 15 + + ( ( + SUM( DISTINCT - + 10 ) ) )
----
45

skipif mysql # not compatible
query I rowsort label-2703
SELECT ALL 55 + ( COUNT ( * ) ) / 15 + + ( ( + SUM ( DISTINCT - + 10 ) ) )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT ALL 13 + MAX( + + 9 )
----
22

skipif mysql # not compatible
query I rowsort label-2704
SELECT ALL 13 + MAX ( + + 9 )
----
22

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2706
SELECT - 88 * + 58 * NULLIF ( - ( + 80 ), + 42 * - 8 + + - ( - 41 ) / - CAST( NULL AS SIGNED ) ) + + + NULLIF ( - + 30, - CASE 57 WHEN - - ( - 36 ) THEN NULL WHEN + - AVG ( - 80 ) THEN NULL WHEN + 72 THEN NULL WHEN 62 + - COALESCE ( + + NULLIF ( + - 97, 28 * - 86 + - COUNT( 75 ) ), - 66 * + 71 ) THEN + CAST( NULL AS SIGNED ) * - 1 + MAX( - CAST( + 84 AS DECIMAL ) ) END )
----
408290

skipif mysql # not compatible
query I rowsort label-2706
SELECT - 88 * + 58 * NULLIF ( - ( + 80 ), + 42 * - 8 + + - ( - 41 ) / - CAST ( NULL AS INTEGER ) ) + + + NULLIF ( - + 30, - CASE 57 WHEN - - ( - 36 ) THEN NULL WHEN + - AVG ( - 80 ) THEN NULL WHEN + 72 THEN NULL WHEN 62 + - COALESCE ( + + NULLIF ( + - 97, 28 * - 86 + - COUNT ( 75 ) ), - 66 * + 71 ) THEN + CAST ( NULL AS INTEGER ) * - 1 + MAX ( - CAST ( + 84 AS REAL ) ) END )
----
408290

onlyif mysql # aggregate syntax: 
query II rowsort label-2707
SELECT ALL - + 62, COUNT( * ) + + + 45 col1
----
-62
46

skipif mysql # not compatible
query II rowsort label-2707
SELECT ALL - + 62, COUNT ( * ) + + + 45 col1
----
-62
46

onlyif mysql # DIV for integer division: 
query II rowsort label-2708
SELECT - 5, 4 DIV - 50 AS col2
----
-5
0

skipif mysql # not compatible
query II rowsort label-2708
SELECT - 5, 4 / - 50 AS col2
----
-5
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2710
SELECT ALL - 31 + 53 DIV + MAX( ALL 66 )
----
-31

skipif mysql # not compatible
query I rowsort label-2710
SELECT ALL - 31 + 53 / + MAX ( ALL 66 )
----
-31

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2711
SELECT ALL + + 58 DIV - - 24 AS col1, + CAST( NULL AS SIGNED ) AS col2
----
2
NULL

skipif mysql # not compatible
query II rowsort label-2711
SELECT ALL + + 58 / - - 24 AS col1, + CAST ( NULL AS INTEGER ) AS col2
----
2
NULL

query I rowsort
SELECT ALL + 76 - + - NULLIF ( + - 49, 73 ) AS col1
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-2713
SELECT ALL - - 42 AS col1, 40 * - 88 + + CASE + - MIN( ALL 83 ) WHEN - 87 THEN NULL WHEN 16 / 88 THEN 79 END AS col2
----
42
NULL

skipif mysql # not compatible
query II rowsort label-2713
SELECT ALL - - 42 AS col1, 40 * - 88 + + CASE + - MIN ( ALL 83 ) WHEN - 87 THEN NULL WHEN 16 / 88 THEN 79 END AS col2
----
42
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT + SUM( - 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-2714
SELECT + SUM ( - 78 )
----
-78

query II rowsort
SELECT + 89, + 10 AS col0
----
89
10

query I rowsort
SELECT + 25 * + ( + + 26 ) * - - 67 + + 15 col0
----
43565

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT DISTINCT + - SUM( ALL 93 ) * + - 36
----
3348

skipif mysql # not compatible
query I rowsort label-2717
SELECT DISTINCT + - SUM ( ALL 93 ) * + - 36
----
3348

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

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

query I rowsort
SELECT ALL + + 4 * 88
----
352

query II rowsort
SELECT ALL - + 35 AS col0, 58 AS col1
----
-35
58

query II rowsort
SELECT + + 87 AS col1, 52 - 77
----
87
-25

query I rowsort
SELECT + 83 - + - COALESCE ( 55, 14 * - 38 * 72 + + + 5 ) AS col0
----
138

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2724
SELECT 95 + + - 3 + + CAST( 34 AS SIGNED ) + - 23 * + 70 + - NULLIF ( + AVG ( ALL CAST( NULL AS DECIMAL ) ), 67 ) * - + 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2724
SELECT 95 + + - 3 + + CAST ( 34 AS INTEGER ) + - 23 * + 70 + - NULLIF ( + AVG ( ALL CAST ( NULL AS REAL ) ), 67 ) * - + 44 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2725
SELECT 98 DIV - 81
----
-1

skipif mysql # not compatible
query I rowsort label-2725
SELECT 98 / - 81
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT NULLIF ( - MAX( - - 59 ), + MAX( - 82 ) ) + + NULLIF ( - 22, - 72 ) - - - 79
----
-160

skipif mysql # not compatible
query I rowsort label-2726
SELECT NULLIF ( - MAX ( - - 59 ), + MAX ( - 82 ) ) + + NULLIF ( - 22, - 72 ) - - - 79
----
-160

query I rowsort
SELECT 4 + - 40
----
-36

query I rowsort
SELECT 63 * 33 + - 73 AS col0
----
2006

onlyif mysql # aggregate syntax: 
query II rowsort label-2729
SELECT 49 - COUNT( * ) AS col2, 46 * 86
----
48
3956

skipif mysql # not compatible
query II rowsort label-2729
SELECT 49 - COUNT ( * ) AS col2, 46 * 86
----
48
3956

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2730
SELECT ALL CAST( - CAST( - 53 AS DECIMAL ) AS SIGNED ) * - - 95 col0
----
5035

skipif mysql # not compatible
query I rowsort label-2730
SELECT ALL CAST ( - CAST ( - 53 AS REAL ) AS INTEGER ) * - - 95 col0
----
5035

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2731
SELECT COUNT( * ) + 7 + CAST( NULL AS SIGNED ) * + - 27 / + 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2731
SELECT COUNT ( * ) + 7 + CAST ( NULL AS INTEGER ) * + - 27 / + 94 AS col2
----
NULL

query I rowsort
SELECT 33 * - - 40 AS col2
----
1320

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT ALL 73 + + MIN( + 95 )
----
168

skipif mysql # not compatible
query I rowsort label-2733
SELECT ALL 73 + + MIN ( + 95 )
----
168

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

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

query I rowsort
SELECT 49 + - 92 * ( - + 14 )
----
1337

query I rowsort
SELECT CASE + 74 WHEN - + 83 THEN NULL ELSE + 96 * + ( + + 75 ) * - 22 + + 62 + - ( + 28 ) + + + 40 END + - 44
----
-158370

query I rowsort
SELECT ALL COALESCE ( - 3, + 55 ) + + 51 AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT - SUM( - - 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-2738
SELECT - SUM ( - - 61 )
----
-61

query I rowsort
SELECT 68 + + 42
----
110

query I rowsort
SELECT ALL 14 + + 31
----
45

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

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

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

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

query I rowsort
SELECT DISTINCT + 13 - + 52
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2744
SELECT + 43 * - + 41, 31 DIV - + COUNT( * ) DIV COUNT( * ) + - 89 + 46 AS col1
----
-1763
-74

skipif mysql # not compatible
query II rowsort label-2744
SELECT + 43 * - + 41, 31 / - + COUNT ( * ) / COUNT ( * ) + - 89 + 46 AS col1
----
-1763
-74

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

query I rowsort
SELECT DISTINCT - - 35 AS col0
----
35

query I rowsort
SELECT 39 * + 40 - - ( + - 42 )
----
1518

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT - 1 + - CASE + 38 WHEN + 37 * + 45 + + 61 THEN - COUNT( * ) * + - 59 + - NULLIF ( - 91, - 49 * - 9 ) + - - 76 + + 49 + 26 ELSE + COUNT( * ) END AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2748
SELECT - 1 + - CASE + 38 WHEN + 37 * + 45 + + 61 THEN - COUNT ( * ) * + - 59 + - NULLIF ( - 91, - 49 * - 9 ) + - - 76 + + 49 + 26 ELSE + COUNT ( * ) END AS col2
----
-2

query I rowsort
SELECT + 45 * 84
----
3780

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

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

query I rowsort
SELECT DISTINCT + + NULLIF ( 48, - 74 ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT ALL + + SUM( DISTINCT + 22 )
----
22

skipif mysql # not compatible
query I rowsort label-2752
SELECT ALL + + SUM ( DISTINCT + 22 )
----
22

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2754
SELECT - - 98 DIV + 69, + COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-2754
SELECT - - 98 / + 69, + COUNT ( * ) AS col1
----
1
1

query I rowsort
SELECT + + 12 * + 95 * + + 19 AS col2
----
21660

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

skipif mysql # not compatible
query I rowsort label-2756
SELECT - - CAST ( NULL AS INTEGER ) * + + 19 + + - 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2757
SELECT MAX( ALL 72 )
----
72

skipif mysql # not compatible
query I rowsort label-2757
SELECT MAX ( ALL 72 )
----
72

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT ALL COUNT( * ) + - 30 * + - 29 AS col0
----
871

skipif mysql # not compatible
query I rowsort label-2759
SELECT ALL COUNT ( * ) + - 30 * + - 29 AS col0
----
871

onlyif mysql # aggregate syntax: 
query II rowsort label-2760
SELECT ALL COALESCE ( 63, - 70, COUNT( * ) * 93 * + ( + 88 ) + - + 25 + + - 22 * COUNT( * ) + - 85 ), - 33 - + 47 + + + 12 AS col0
----
63
-68

skipif mysql # not compatible
query II rowsort label-2760
SELECT ALL COALESCE ( 63, - 70, COUNT ( * ) * 93 * + ( + 88 ) + - + 25 + + - 22 * COUNT ( * ) + - 85 ), - 33 - + 47 + + + 12 AS col0
----
63
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-2761
SELECT ALL + 31 + + - MAX( - 92 ) * + 16, + COALESCE ( - 12, + 80 + - COALESCE ( + 10, - 99 ) ) AS col1
----
1503
-12

skipif mysql # not compatible
query II rowsort label-2761
SELECT ALL + 31 + + - MAX ( - 92 ) * + 16, + COALESCE ( - 12, + 80 + - COALESCE ( + 10, - 99 ) ) AS col1
----
1503
-12

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

skipif mysql # not compatible
query I rowsort label-2762
SELECT - COUNT ( DISTINCT + 62 ) * + 61 AS col2
----
-61

query II rowsort
SELECT ALL + ( + - 33 ) * 68, 88 * - + 55 AS col0
----
-2244
-4840

onlyif mysql # aggregate syntax: 
query II rowsort label-2764
SELECT ALL COUNT( * ) AS col1, 26 * - ( - 99 )
----
1
2574

skipif mysql # not compatible
query II rowsort label-2764
SELECT ALL COUNT ( * ) AS col1, 26 * - ( - 99 )
----
1
2574

query I rowsort
SELECT DISTINCT + 50 + + + 96
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT - 26 + COUNT( * ) col0
----
-25

skipif mysql # not compatible
query I rowsort label-2766
SELECT - 26 + COUNT ( * ) col0
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2767
SELECT - 32 DIV + COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-2767
SELECT - 32 / + COUNT ( * )
----
-32

query I rowsort
SELECT - 44 * - + 7 AS col2
----
308

query II rowsort
SELECT 15 AS col1, - 54 AS col0
----
15
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT - SUM( - 13 )
----
13

skipif mysql # not compatible
query I rowsort label-2770
SELECT - SUM ( - 13 )
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-2771
SELECT ALL - 5 DIV 3
----
-1

skipif mysql # not compatible
query I rowsort label-2771
SELECT ALL - 5 / 3
----
-1

query I rowsort
SELECT - 14 * + + ( + + 8 )
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-2773
SELECT ALL 84 - + MIN( + - ( 50 ) ) + 78 * + - COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-2773
SELECT ALL 84 - + MIN ( + - ( 50 ) ) + 78 * + - COUNT ( * )
----
56

query I rowsort
SELECT ALL - 9 - - 28
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2775
SELECT + - 3 - + 2 + + COUNT( * ) AS col1, - 60 DIV - COUNT( * )
----
-4
60

skipif mysql # not compatible
query II rowsort label-2775
SELECT + - 3 - + 2 + + COUNT ( * ) AS col1, - 60 / - COUNT ( * )
----
-4
60

query I rowsort
SELECT ALL - 98 * NULLIF ( - 82, - + 89 ) * + + 41 AS col1
----
329476

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT DISTINCT - + 75 * COUNT( * ) * + 46 * - - COUNT( + + 0 )
----
-3450

skipif mysql # not compatible
query I rowsort label-2777
SELECT DISTINCT - + 75 * COUNT ( * ) * + 46 * - - COUNT ( + + 0 )
----
-3450

query I rowsort
SELECT - 80 * - 71 AS col0
----
5680

query II rowsort
SELECT + 1 AS col2, - 64 + - 3 AS col1
----
1
-67

query I rowsort
SELECT DISTINCT + 6 * - - 65
----
390

query I rowsort
SELECT DISTINCT - 90 * + 16
----
-1440

query I rowsort
SELECT - 7 + - 61
----
-68

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

skipif mysql # not compatible
query I rowsort label-2783
SELECT + 76 * - COUNT ( * ) + - 83 / 91 * + 1
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2784
SELECT ALL + - CASE + 92 WHEN 72 * + 25 THEN NULL WHEN + + 82 + + + CASE 76 WHEN + 92 THEN - ( + 60 ) ELSE - + 71 + CAST( NULL AS SIGNED ) END THEN - 12 * - - 51 * + COUNT( * ) ELSE - ( - - 60 ) END AS col1
----
60

skipif mysql # not compatible
query I rowsort label-2784
SELECT ALL + - CASE + 92 WHEN 72 * + 25 THEN NULL WHEN + + 82 + + + CASE 76 WHEN + 92 THEN - ( + 60 ) ELSE - + 71 + CAST ( NULL AS INTEGER ) END THEN - 12 * - - 51 * + COUNT ( * ) ELSE - ( - - 60 ) END AS col1
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2785
SELECT - ( - CAST( + 19 AS SIGNED ) ) AS col2, 90
----
19
90

skipif mysql # not compatible
query II rowsort label-2785
SELECT - ( - CAST ( + 19 AS INTEGER ) ) AS col2, 90
----
19
90

query I rowsort
SELECT + - 2 * - 80 AS col2
----
160

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

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

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

skipif mysql # not compatible
query I rowsort label-2788
SELECT DISTINCT SUM ( DISTINCT 52 ) * + COUNT ( * ) / + COUNT ( * ) AS col1
----
52

query I rowsort
SELECT DISTINCT - 13 * - 14 * 63 * 90
----
1031940

onlyif mysql # DIV for integer division: 
query I rowsort label-2790
SELECT - - 36 * + + 88 + - - 6 + + - 66 + - - 25 DIV 10 * - 81 col2
----
2946

skipif mysql # not compatible
query I rowsort label-2790
SELECT - - 36 * + + 88 + - - 6 + + - 66 + - - 25 / 10 * - 81 col2
----
2946

query II rowsort
SELECT 21, - 60 AS col0
----
21
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2792
SELECT ALL - 70 * + CASE - 25 WHEN - 39 * + 27 + + + 49 THEN NULL ELSE MIN( 86 ) * 92 DIV - + 46 - - 51 END + - 45 AS col1, - ( + NULLIF ( + CAST( NULL AS SIGNED ), ( - 55 ) * + CAST( NULL AS SIGNED ) + - + ( - 87 ) + 85 + + - CAST( NULL AS SIGNED ) ) ) AS col1
----
8425
NULL

skipif mysql # not compatible
query II rowsort label-2792
SELECT ALL - 70 * + CASE - 25 WHEN - 39 * + 27 + + + 49 THEN NULL ELSE MIN ( 86 ) * 92 / - + 46 - - 51 END + - 45 AS col1, - ( + NULLIF ( + CAST ( NULL AS INTEGER ), ( - 55 ) * + CAST ( NULL AS INTEGER ) + - + ( - 87 ) + 85 + + - CAST ( NULL AS INTEGER ) ) ) AS col1
----
8425
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2793
SELECT ALL 70 * + + 74 + + + 31 + + NULLIF ( - 8, - 90 + - CAST( NULL AS SIGNED ) + ( 28 ) ) DIV + 5
----
5210

skipif mysql # not compatible
query I rowsort label-2793
SELECT ALL 70 * + + 74 + + + 31 + + NULLIF ( - 8, - 90 + - CAST ( NULL AS INTEGER ) + ( 28 ) ) / + 5
----
5210

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT + 86 + + 23 + COUNT( * )
----
110

skipif mysql # not compatible
query I rowsort label-2794
SELECT + 86 + + 23 + COUNT ( * )
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT DISTINCT COALESCE ( 33, + 78 ) * + COUNT( * ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-2795
SELECT DISTINCT COALESCE ( 33, + 78 ) * + COUNT ( * ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT + 80 + COALESCE ( + + 62, - + ( 63 ) - + + 11, - 16 ) + - SUM( + + 14 )
----
128

skipif mysql # not compatible
query I rowsort label-2796
SELECT + 80 + COALESCE ( + + 62, - + ( 63 ) - + + 11, - 16 ) + - SUM ( + + 14 )
----
128

onlyif mysql # DIV for integer division: 
query II rowsort label-2797
SELECT DISTINCT - 91 DIV 35, - 79 AS col2
----
-2
-79

skipif mysql # not compatible
query II rowsort label-2797
SELECT DISTINCT - 91 / 35, - 79 AS col2
----
-2
-79

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

query I rowsort
SELECT - 13 * + - 19 + - 72 AS col1
----
175

query I rowsort
SELECT - 32 + 37 col1
----
5

query I rowsort
SELECT + 44 + 98 AS col2
----
142

query I rowsort
SELECT - 26 * + 13
----
-338

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT + 96 + - SUM( + 49 )
----
47

skipif mysql # not compatible
query I rowsort label-2804
SELECT + 96 + - SUM ( + 49 )
----
47

query I rowsort
SELECT DISTINCT ( - + 70 ) AS col2
----
-70

query I rowsort
SELECT - 90 * - - 43
----
-3870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2807
SELECT - 25 + - 52 + - - 93 + - 52 * 83 / - - CASE + 83 WHEN + 96 THEN - SUM( + 9 ) * - 14 + + 44 ELSE NULL END, CAST( 18 AS SIGNED ) AS col2
----
NULL
18

skipif mysql # not compatible
query II rowsort label-2807
SELECT - 25 + - 52 + - - 93 + - 52 * 83 / - - CASE + 83 WHEN + 96 THEN - SUM ( + 9 ) * - 14 + + 44 ELSE NULL END, CAST ( 18 AS INTEGER ) AS col2
----
NULL
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2808
SELECT ALL - SUM( ( + - CAST( NULL AS SIGNED ) ) ) - + 76 * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2808
SELECT ALL - SUM ( ( + - CAST ( NULL AS INTEGER ) ) ) - + 76 * + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2809
SELECT - MIN( DISTINCT ( + 71 ) ) * - + COUNT( * ) + + CAST( - 7 AS SIGNED )
----
64

skipif mysql # not compatible
query I rowsort label-2809
SELECT - MIN ( DISTINCT ( + 71 ) ) * - + COUNT ( * ) + + CAST ( - 7 AS INTEGER )
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-2810
SELECT - 38 + + - 66 DIV 64 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-2810
SELECT - 38 + + - 66 / 64 AS col0
----
-39

query I rowsort
SELECT 82 * - + 30 AS col2
----
-2460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2812
SELECT COUNT( * ) DIV + CAST( - 72 AS SIGNED ) * + 63 col2
----
0

skipif mysql # not compatible
query I rowsort label-2812
SELECT COUNT ( * ) / + CAST ( - 72 AS INTEGER ) * + 63 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2813
SELECT ALL - + 72 DIV + + 97 * 90 * 44
----
0

skipif mysql # not compatible
query I rowsort label-2813
SELECT ALL - + 72 / + + 97 * 90 * 44
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2814
SELECT ( - 24 ) + + + 15 * + 71, + 20 AS col2, COUNT( + - 22 ) * + + COUNT( * ) + - 59 + + + MIN( - 30 ) + - 69 * - 4 + + + 6 + COUNT( + ( 42 ) ) * - - NULLIF ( - 68, + - ( + 49 ) ) + 49 DIV + COUNT( * ) AS col0
----
1041
20
175

skipif mysql # not compatible
query III rowsort label-2814
SELECT ( - 24 ) + + + 15 * + 71, + 20 AS col2, COUNT ( + - 22 ) * + + COUNT ( * ) + - 59 + + + MIN ( - 30 ) + - 69 * - 4 + + + 6 + COUNT ( + ( 42 ) ) * - - NULLIF ( - 68, + - ( + 49 ) ) + 49 / + COUNT ( * ) AS col0
----
1041
20
175

query I rowsort
SELECT ALL + 67 + + 29 col1
----
96

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

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

query I rowsort
SELECT + 76 * 39 + + 30 AS col0
----
2994

query I rowsort
SELECT DISTINCT - - 68 + - - 48
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2819
SELECT ALL + - 5 * + 94 + - 12 + + + 28 - 0 * - 97 DIV - ( COUNT( * ) )
----
-454

skipif mysql # not compatible
query I rowsort label-2819
SELECT ALL + - 5 * + 94 + - 12 + + + 28 - 0 * - 97 / - ( COUNT ( * ) )
----
-454

query I rowsort
SELECT ALL - 1 + + - 81 AS col1
----
-82

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2822
SELECT DISTINCT MIN( 35 ) + - 69 + + + COUNT( * ) DIV - 13 * - COUNT( * ) + + 38
----
4

skipif mysql # not compatible
query I rowsort label-2822
SELECT DISTINCT MIN ( 35 ) + - 69 + + + COUNT ( * ) / - 13 * - COUNT ( * ) + + 38
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-2823
SELECT COUNT( * ) - 36, 81 * + NULLIF ( + 25, 6 * - MAX( 52 ) * + + 30 * + 35 - - 8 ) + COUNT( * ) * + + 47 AS col1
----
-35
2072

skipif mysql # not compatible
query II rowsort label-2823
SELECT COUNT ( * ) - 36, 81 * + NULLIF ( + 25, 6 * - MAX ( 52 ) * + + 30 * + 35 - - 8 ) + COUNT ( * ) * + + 47 AS col1
----
-35
2072

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT ALL - + 25 * - MIN( ALL + ( 71 ) ) col2
----
1775

skipif mysql # not compatible
query I rowsort label-2824
SELECT ALL - + 25 * - MIN ( ALL + ( 71 ) ) col2
----
1775

query I rowsort
SELECT ALL 98 + + 29 AS col2
----
127

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

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

query I rowsort
SELECT 43 * + 21 AS col0
----
903

onlyif mysql # aggregate syntax: 
query II rowsort label-2828
SELECT DISTINCT - 81, + 1 * COUNT( ALL - 54 ) AS col0
----
-81
1

skipif mysql # not compatible
query II rowsort label-2828
SELECT DISTINCT - 81, + 1 * COUNT ( ALL - 54 ) AS col0
----
-81
1

query I rowsort
SELECT 33 * 24
----
792

query I rowsort
SELECT ALL 15 * 79 AS col2
----
1185

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

skipif mysql # not compatible
query II rowsort label-2831
SELECT DISTINCT - 16 AS col0, COUNT ( * )
----
-16
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT DISTINCT CASE + COUNT( * ) WHEN + 97 THEN + 20 END * + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-2832
SELECT DISTINCT CASE + COUNT ( * ) WHEN + 97 THEN + 20 END * + 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT COUNT( * ) + 74 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-2833
SELECT COUNT ( * ) + 74 AS col0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2834
SELECT CASE + 53 WHEN - ( + 28 ) THEN 65 END / - - NULLIF ( CAST( NULL AS SIGNED ), + COUNT( * ) ) + 40 + - COUNT( * ) + - + 16 * - 58 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2834
SELECT CASE + 53 WHEN - ( + 28 ) THEN 65 END / - - NULLIF ( CAST ( NULL AS INTEGER ), + COUNT ( * ) ) + 40 + - COUNT ( * ) + - + 16 * - 58 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2835
SELECT + CASE + 39 WHEN + ( + 43 ) * 95 * - 28 + COUNT( * ) * + + 95 + - 97 + + 51 THEN + COALESCE ( + - 48, 96, + + SUM( DISTINCT - ( - 23 ) ) - + 37 ) * + 38 * - + CAST( - COUNT( * ) AS SIGNED ) END - - - 2 + + 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2835
SELECT + CASE + 39 WHEN + ( + 43 ) * 95 * - 28 + COUNT ( * ) * + + 95 + - 97 + + 51 THEN + COALESCE ( + - 48, 96, + + SUM ( DISTINCT - ( - 23 ) ) - + 37 ) * + 38 * - + CAST ( - COUNT ( * ) AS INTEGER ) END - - - 2 + + 98 AS col0
----
NULL

query I rowsort
SELECT 38 + - 14
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT ALL - 57 + - 21 * + 97 * COUNT( * ) AS col2
----
-2094

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL - 57 + - 21 * + 97 * COUNT ( * ) AS col2
----
-2094

query I rowsort
SELECT ALL - + 45 * 53 AS col2
----
-2385

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2839
SELECT DISTINCT ( - 60 ) + - CAST( NULL AS SIGNED ) / + + 66 / - CASE - CAST( 0 AS SIGNED ) WHEN - + 92 THEN NULL ELSE - 36 * + 4 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2839
SELECT DISTINCT ( - 60 ) + - CAST ( NULL AS INTEGER ) / + + 66 / - CASE - CAST ( 0 AS INTEGER ) WHEN - + 92 THEN NULL ELSE - 36 * + 4 END
----
NULL

query I rowsort
SELECT DISTINCT - 7 * + + 94
----
-658

query I rowsort
SELECT ALL - ( 42 ) + + 75 col1
----
33

query II rowsort
SELECT - 69 + - ( - 2 ), 60 AS col0
----
-67
60

query I rowsort
SELECT 53 + - - 17 AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT - CASE + SUM( - 95 ) WHEN 84 - - - 99 THEN 40 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2844
SELECT - CASE + SUM ( - 95 ) WHEN 84 - - - 99 THEN 40 ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2847
SELECT NULLIF ( + - 77, + - 15 ) + ( - 84 ) DIV - MAX( + 15 ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-2847
SELECT NULLIF ( + - 77, + - 15 ) + ( - 84 ) / - MAX ( + 15 ) AS col1
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-2848
SELECT ALL + SUM( DISTINCT 30 ) / 44 + CASE + 45 WHEN + COUNT( * ) THEN + + ( + COUNT( * ) ) ELSE NULL END AS col2, 46
----
NULL
46

skipif mysql # not compatible
query II rowsort label-2848
SELECT ALL + SUM ( DISTINCT 30 ) / 44 + CASE + 45 WHEN + COUNT ( * ) THEN + + ( + COUNT ( * ) ) ELSE NULL END AS col2, 46
----
NULL
46

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2850
SELECT + - 56, + 94 DIV ( + 10 ) AS col2
----
-56
9

skipif mysql # not compatible
query II rowsort label-2850
SELECT + - 56, + 94 / ( + 10 ) AS col2
----
-56
9

query I rowsort
SELECT ALL - 36 * - - 47 * + 27
----
-45684

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2852
SELECT 39 * - 48 * + - COALESCE ( + + 0, - CAST( NULL AS SIGNED ) * + 83 + SUM( CAST( NULL AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-2852
SELECT 39 * - 48 * + - COALESCE ( + + 0, - CAST ( NULL AS INTEGER ) * + 83 + SUM ( CAST ( NULL AS INTEGER ) ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT DISTINCT + NULLIF ( - 34, + COUNT( * ) * 80 + + - 61 * + 40 + - 68 ) * + COUNT( * ) - - 75 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-2853
SELECT DISTINCT + NULLIF ( - 34, + COUNT ( * ) * 80 + + - 61 * + 40 + - 68 ) * + COUNT ( * ) - - 75 AS col0
----
41

query I rowsort
SELECT 14 + + 23 - + 6 * + - 42
----
289

query I rowsort
SELECT 52 + 88 + + 12
----
152

query I rowsort
SELECT ALL - 45 * - 58 AS col2
----
2610

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2857
SELECT DISTINCT + CAST( 15 AS SIGNED ) * - + 44 AS col2
----
-660

skipif mysql # not compatible
query I rowsort label-2857
SELECT DISTINCT + CAST ( 15 AS INTEGER ) * - + 44 AS col2
----
-660

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

skipif mysql # not compatible
query II rowsort label-2858
SELECT ALL - CAST ( NULL AS INTEGER ) col1, - COUNT ( * ) AS col1
----
NULL
-1

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

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

query I rowsort
SELECT 78 * - - 71 col0
----
5538

onlyif mysql # DIV for integer division: 
query I rowsort label-2861
SELECT 48 + - + 58 + - 18 DIV + 81 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-2861
SELECT 48 + - + 58 + - 18 / + 81 AS col2
----
-10

query I rowsort
SELECT ALL 9 - - 9 + - + 56 AS col2
----
-38

query II rowsort
SELECT ALL - 23 AS col2, 89
----
-23
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT CASE 8 WHEN 83 + 19 * COUNT( * ) THEN + - COALESCE ( - 56, + ( - 5 ) / - - 47 ) * 34 WHEN + - MIN( - 30 ) / - 25 THEN NULL ELSE NULL END + + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2864
SELECT CASE 8 WHEN 83 + 19 * COUNT ( * ) THEN + - COALESCE ( - 56, + ( - 5 ) / - - 47 ) * 34 WHEN + - MIN ( - 30 ) / - 25 THEN NULL ELSE NULL END + + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2865
SELECT COUNT( * ), - 50 * + 36 col1
----
1
-1800

skipif mysql # not compatible
query II rowsort label-2865
SELECT COUNT ( * ), - 50 * + 36 col1
----
1
-1800

query I rowsort
SELECT 68 * - 94
----
-6392

query II rowsort
SELECT 36, + 55 AS col1
----
36
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT - COUNT( * ) * 75 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-2868
SELECT - COUNT ( * ) * 75 AS col0
----
-75

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

query I rowsort
SELECT DISTINCT 43 * - + 0
----
0

query I rowsort
SELECT ALL 1 + + 57 + + 31 + + ( - 86 )
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2872
SELECT ALL + + COUNT( * ) DIV + + 14, COUNT( * ) DIV - 61 col1
----
0
0

skipif mysql # not compatible
query II rowsort label-2872
SELECT ALL + + COUNT ( * ) / + + 14, COUNT ( * ) / - 61 col1
----
0
0

query I rowsort
SELECT + 73 * - 11 AS col1
----
-803

query I rowsort
SELECT DISTINCT + 58 + 89 AS col2
----
147

onlyif mysql # aggregate syntax: 
query II rowsort label-2875
SELECT + 92, COALESCE ( COUNT( * ), 66 ) * - 94 AS col0
----
92
-94

skipif mysql # not compatible
query II rowsort label-2875
SELECT + 92, COALESCE ( COUNT ( * ), 66 ) * - 94 AS col0
----
92
-94

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

skipif mysql # not compatible
query I rowsort label-2876
SELECT + 0 / + COUNT ( * ) * - 94
----
0

query I rowsort
SELECT ALL 40 + 5 AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2878
SELECT + - 14 * 69 * 60 * COUNT( * ) AS col1
----
-57960

skipif mysql # not compatible
query I rowsort label-2878
SELECT + - 14 * 69 * 60 * COUNT ( * ) AS col1
----
-57960

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

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

query I rowsort
SELECT + + 39 + 39 + + 35 + 85 AS col1
----
198

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2881
SELECT DISTINCT 97 / + 64 * + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + - 54 + - 80 AS col1, 86 + - CAST( - - 51 AS SIGNED ) AS col0
----
NULL
35

skipif mysql # not compatible
query II rowsort label-2881
SELECT DISTINCT 97 / + 64 * + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + - 54 + - 80 AS col1, 86 + - CAST ( - - 51 AS INTEGER ) AS col0
----
NULL
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT - NULLIF ( + COUNT( * ), - COUNT( + 5 ) * 67 * - 39 * + 76 + 0 * - - 32 * + 92 )
----
-1

skipif mysql # not compatible
query I rowsort label-2882
SELECT - NULLIF ( + COUNT ( * ), - COUNT ( + 5 ) * 67 * - 39 * + 76 + 0 * - - 32 * + 92 )
----
-1

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

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

query I rowsort
SELECT ALL - 84 + + 35 * + 69 col0
----
2331

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2885
SELECT + 89 * - - COUNT( * ) + + 30 + - - 10 + - + NULLIF ( - - 36, + CASE - + ( + CAST( 32 AS SIGNED ) ) WHEN + - 55 * - 88 + 60 * + - MAX( ( 80 ) ) + + 45 + + 30 THEN NULL WHEN - COUNT( ALL + 94 ) * 95 + 76 * - - 53 THEN - 65 * - - MAX( ALL - + 16 ) * 3 + + + 24 + + 69 + + 79 + + 80 - + COUNT( * ) END ) * + - 34 AS col1
----
1353

skipif mysql # not compatible
query I rowsort label-2885
SELECT + 89 * - - COUNT ( * ) + + 30 + - - 10 + - + NULLIF ( - - 36, + CASE - + ( + CAST ( 32 AS INTEGER ) ) WHEN + - 55 * - 88 + 60 * + - MAX ( ( 80 ) ) + + 45 + + 30 THEN NULL WHEN - COUNT ( ALL + 94 ) * 95 + 76 * - - 53 THEN - 65 * - - MAX ( ALL - + 16 ) * 3 + + + 24 + + 69 + + 79 + + 80 - + COUNT ( * ) END ) * + - 34 AS col1
----
1353

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2886
SELECT CAST( NULL AS SIGNED ) AS col2, 61 - - COALESCE ( - - 64, + COUNT( ALL - 88 ) - - 54 + + + 79 )
----
NULL
125

skipif mysql # not compatible
query II rowsort label-2886
SELECT CAST ( NULL AS INTEGER ) AS col2, 61 - - COALESCE ( - - 64, + COUNT ( ALL - 88 ) - - 54 + + + 79 )
----
NULL
125

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT DISTINCT - SUM( 7 ) col0
----
-7

skipif mysql # not compatible
query I rowsort label-2887
SELECT DISTINCT - SUM ( 7 ) col0
----
-7

query I rowsort
SELECT DISTINCT + - 0 + - - 86
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-2889
SELECT ALL - 22 AS col0, SUM( ALL 29 ) AS col0
----
-22
29

skipif mysql # not compatible
query II rowsort label-2889
SELECT ALL - 22 AS col0, SUM ( ALL 29 ) AS col0
----
-22
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2890
SELECT ALL 86 - + 11 - - COUNT( 23 ) - 73 * + 68 + + + 35 * - 78
----
-7618

skipif mysql # not compatible
query I rowsort label-2890
SELECT ALL 86 - + 11 - - COUNT ( 23 ) - 73 * + 68 + + + 35 * - 78
----
-7618

query I rowsort
SELECT + + 13 * - 30 * + 6 + + 4
----
-2336

query II rowsort
SELECT + 0 AS col1, + 93 AS col2
----
0
93

query I rowsort
SELECT 4 * - - 40 + + 36
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT - COUNT( * ) * + - 2 * - - 19
----
38

skipif mysql # not compatible
query I rowsort label-2894
SELECT - COUNT ( * ) * + - 2 * - - 19
----
38

query I rowsort
SELECT + 27 * + ( - 23 ) * + 54
----
-33534

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2896
SELECT + 2 DIV - 93 + + 27 * + + 68 * + 16 + + 3 + COUNT( * ) + 39 * 41
----
30979

skipif mysql # not compatible
query I rowsort label-2896
SELECT + 2 / - 93 + + 27 * + + 68 * + 16 + + 3 + COUNT ( * ) + 39 * 41
----
30979

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2898
SELECT ( 81 ) AS col1, MAX( ALL + CAST( NULL AS SIGNED ) )
----
81
NULL

skipif mysql # not compatible
query II rowsort label-2898
SELECT ( 81 ) AS col1, MAX ( ALL + CAST ( NULL AS INTEGER ) )
----
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2899
SELECT - COUNT( * ) * + SUM( + - 63 ) - + - 11 * 85 + - + 96 + 97 + - ( + - 10 ) AS col1
----
1009

skipif mysql # not compatible
query I rowsort label-2899
SELECT - COUNT ( * ) * + SUM ( + - 63 ) - + - 11 * 85 + - + 96 + 97 + - ( + - 10 ) AS col1
----
1009

onlyif mysql # DIV for integer division: 
query II rowsort label-2900
SELECT DISTINCT + 69 DIV - 99, 0
----
0
0

skipif mysql # not compatible
query II rowsort label-2900
SELECT DISTINCT + 69 / - 99, 0
----
0
0

query I rowsort
SELECT DISTINCT + 60 * - 61 * - 7 AS col0
----
25620

query I rowsort
SELECT ALL + 42 * - 70
----
-2940

onlyif mysql # DIV for integer division: 
query I rowsort label-2903
SELECT DISTINCT - 69 DIV ( - + 93 )
----
0

skipif mysql # not compatible
query I rowsort label-2903
SELECT DISTINCT - 69 / ( - + 93 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT COALESCE ( + + MIN( DISTINCT + 74 ), 9 + - 17 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-2904
SELECT COALESCE ( + + MIN ( DISTINCT + 74 ), 9 + - 17 ) AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT - 20 * - - 37 * + MIN( ALL 75 ) AS col0
----
-55500

skipif mysql # not compatible
query I rowsort label-2905
SELECT - 20 * - - 37 * + MIN ( ALL 75 ) AS col0
----
-55500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2906
SELECT ALL 13 * + 55 * + - 22 * + CAST( - 14 AS SIGNED ) + 98 AS col0
----
220318

skipif mysql # not compatible
query I rowsort label-2906
SELECT ALL 13 * + 55 * + - 22 * + CAST ( - 14 AS INTEGER ) + 98 AS col0
----
220318

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

query I rowsort
SELECT + 96 * + 6 AS col2
----
576

onlyif mysql # DIV for integer division: 
query I rowsort label-2909
SELECT ALL 19 * + NULLIF ( 4, + 25 * + 92 ) DIV 79 + + - 68 * 31 + 60 col1
----
-2048

skipif mysql # not compatible
query I rowsort label-2909
SELECT ALL 19 * + NULLIF ( 4, + 25 * + 92 ) / 79 + + - 68 * 31 + 60 col1
----
-2048

query I rowsort
SELECT COALESCE ( - 33, 19 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT + CASE + + COALESCE ( + 61, ( 42 ), + + 12, + - 72 ) WHEN + COUNT( * ) THEN + COUNT( + 11 ) * + 0 + - - 60 + - - 29 - + 57 + ( - 90 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2911
SELECT + CASE + + COALESCE ( + 61, ( 42 ), + + 12, + - 72 ) WHEN + COUNT ( * ) THEN + COUNT ( + 11 ) * + 0 + - - 60 + - - 29 - + 57 + ( - 90 ) ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT ALL + + ( + 18 ) * + - 60 + + 27 * + 0 + + COUNT( * )
----
-1079

skipif mysql # not compatible
query I rowsort label-2913
SELECT ALL + + ( + 18 ) * + - 60 + + 27 * + 0 + + COUNT ( * )
----
-1079

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2914
SELECT ALL - CASE - + 7 WHEN + AVG ( DISTINCT 20 ) * + + 38 THEN - 60 + + 16 * 95 WHEN + 86 THEN + 36 * + 98 + + ( - + 98 ) ELSE NULL END * COALESCE ( ( - + 33 ), + 67 + ( - + 39 ) + - 87 ) + - 87 - - ( - + 32 ) / + CASE - - 56 WHEN 10 THEN + 32 ELSE + 42 END * + CAST( NULL AS SIGNED ) + + 27 + - 84 * + 51 / + 57 * + 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2914
SELECT ALL - CASE - + 7 WHEN + AVG ( DISTINCT 20 ) * + + 38 THEN - 60 + + 16 * 95 WHEN + 86 THEN + 36 * + 98 + + ( - + 98 ) ELSE NULL END * COALESCE ( ( - + 33 ), + 67 + ( - + 39 ) + - 87 ) + - 87 - - ( - + 32 ) / + CASE - - 56 WHEN 10 THEN + 32 ELSE + 42 END * + CAST ( NULL AS INTEGER ) + + 27 + - 84 * + 51 / + 57 * + 38 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-2915
SELECT - - 74 + 2 AS col2, + 32 AS col1, - COUNT( * ) col1
----
76
32
-1

skipif mysql # not compatible
query III rowsort label-2915
SELECT - - 74 + 2 AS col2, + 32 AS col1, - COUNT ( * ) col1
----
76
32
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2916
SELECT + - 68 * - 52 * + 81, 31 * 14 * MAX( - CAST( 97 AS SIGNED ) ) + 5 AS col2
----
286416
-42093

skipif mysql # not compatible
query II rowsort label-2916
SELECT + - 68 * - 52 * + 81, 31 * 14 * MAX ( - CAST ( 97 AS INTEGER ) ) + 5 AS col2
----
286416
-42093

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2917
SELECT - 60 + + COUNT( DISTINCT + + 47 ) DIV - 9 * - - 24 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-2917
SELECT - 60 + + COUNT ( DISTINCT + + 47 ) / - 9 * - - 24 AS col2
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2918
SELECT NULLIF ( - MAX( ALL + - 80 ), - 59 * + + 92 + CAST( NULL AS SIGNED ) + + 14 * + COUNT( * ) * - COALESCE ( - - ( 86 ), + 97 * + 8 - 73 ) + - 19 )
----
80

skipif mysql # not compatible
query I rowsort label-2918
SELECT NULLIF ( - MAX ( ALL + - 80 ), - 59 * + + 92 + CAST ( NULL AS INTEGER ) + + 14 * + COUNT ( * ) * - COALESCE ( - - ( 86 ), + 97 * + 8 - 73 ) + - 19 )
----
80

query I rowsort
SELECT ALL 4 + 96
----
100

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2921
SELECT ALL - - COUNT( * ) * 49 DIV 21 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2921
SELECT ALL - - COUNT ( * ) * 49 / 21 AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2922
SELECT + - 42 * COALESCE ( - 62, + ( - + 91 ) ) - CAST( + + COUNT( * ) AS SIGNED )
----
2603

skipif mysql # not compatible
query I rowsort label-2922
SELECT + - 42 * COALESCE ( - 62, + ( - + 91 ) ) - CAST ( + + COUNT ( * ) AS INTEGER )
----
2603

query I rowsort
SELECT + + 67 + - 69
----
-2

query I rowsort
SELECT - CASE + 1 WHEN + 48 + - 67 THEN 75 + + 53 + + ( + COALESCE ( 30, + - 2, 96, + 24 + COALESCE ( + 5, + ( + + 18 ) ) ) ) * 59 ELSE NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2926
SELECT + 4 * - CASE - - COUNT( * ) WHEN + 81 / + + 65 THEN + CAST( NULL AS SIGNED ) / MAX( DISTINCT + 52 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2926
SELECT + 4 * - CASE - - COUNT ( * ) WHEN + 81 / + + 65 THEN + CAST ( NULL AS INTEGER ) / MAX ( DISTINCT + 52 ) END AS col2
----
NULL

query I rowsort
SELECT + NULLIF ( 68, + ( + 66 ) ) * + + 38 AS col0
----
2584

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2928
SELECT ALL COUNT( * ), CAST( NULL AS DECIMAL ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2928
SELECT ALL COUNT ( * ), CAST ( NULL AS REAL ) AS col1
----
1
NULL

query I rowsort
SELECT + 80 + + 0
----
80

query II rowsort
SELECT ALL + 84, 2 AS col2
----
84
2

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

query I rowsort
SELECT ALL + 73 * - - 55
----
4015

onlyif mysql # aggregate syntax: 
query II rowsort label-2933
SELECT ALL + 39 AS col2, SUM( 18 ) AS col0
----
39
18

skipif mysql # not compatible
query II rowsort label-2933
SELECT ALL + 39 AS col2, SUM ( 18 ) AS col0
----
39
18

query I rowsort
SELECT ALL 32 * + 42
----
1344

query I rowsort
SELECT 83 * + 8 AS col0
----
664

query I rowsort
SELECT 56 * + - NULLIF ( - + 95, - - 3 ) + 16 + - 11 * + 50
----
4786

query II rowsort
SELECT + 51 AS col0, 64 AS col0
----
51
64

query II rowsort
SELECT 85, - 16 AS col1
----
85
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2939
SELECT 3 DIV + - SUM( - + 11 ) * + + 85
----
0

skipif mysql # not compatible
query I rowsort label-2939
SELECT 3 / + - SUM ( - + 11 ) * + + 85
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2940
SELECT 11 * + + 67 + + 72 DIV - 20 + CAST( - 76 AS SIGNED ) + - SUM( 61 ) + - 30 * + + 16 AS col2
----
117

skipif mysql # not compatible
query I rowsort label-2940
SELECT 11 * + + 67 + + 72 / - 20 + CAST ( - 76 AS INTEGER ) + - SUM ( 61 ) + - 30 * + + 16 AS col2
----
117

query I rowsort
SELECT 75 * + ( 67 ) - + 4
----
5021

onlyif mysql # aggregate syntax: 
query II rowsort label-2942
SELECT ALL - COUNT( * ) AS col0, 34 * 31 * + 47 * - - 72 AS col2
----
-1
3566736

skipif mysql # not compatible
query II rowsort label-2942
SELECT ALL - COUNT ( * ) AS col0, 34 * 31 * + 47 * - - 72 AS col2
----
-1
3566736

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT ( - 72 ) + - - COUNT( * ) * + 54 - 79 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-2943
SELECT ( - 72 ) + - - COUNT ( * ) * + 54 - 79 AS col2
----
-97

query I rowsort
SELECT ALL 90 + + 20
----
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2945
SELECT ALL - COUNT( * ) DIV + - ( + ( - COALESCE ( NULLIF ( - 30, - 44 * 84 * COUNT( * ) + - COUNT( * ) * + MIN( DISTINCT 59 ) ), + 7 - 1 ) ) ) * - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2945
SELECT ALL - COUNT ( * ) / + - ( + ( - COALESCE ( NULLIF ( - 30, - 44 * 84 * COUNT ( * ) + - COUNT ( * ) * + MIN ( DISTINCT 59 ) ), + 7 - 1 ) ) ) * - - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2946
SELECT 93 + + 55 + - COUNT( * ) - ( - - 41 ) * - ( + - 87 ) - - 71, 41 AS col1
----
-3349
41

skipif mysql # not compatible
query II rowsort label-2946
SELECT 93 + + 55 + - COUNT ( * ) - ( - - 41 ) * - ( + - 87 ) - - 71, 41 AS col1
----
-3349
41

query I rowsort
SELECT ALL - COALESCE ( + 72, - 10, + 72 ) + - - 12
----
-60

query I rowsort
SELECT - 64 + + - 74
----
-138

query I rowsort
SELECT ALL + 78 + + + 96
----
174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2950
SELECT - COALESCE ( + 38, MIN( ALL - 99 ) ) * + 63 - + 75 DIV 53 + - CAST( + + COUNT( * ) AS SIGNED )
----
-2396

skipif mysql # not compatible
query I rowsort label-2950
SELECT - COALESCE ( + 38, MIN ( ALL - 99 ) ) * + 63 - + 75 / 53 + - CAST ( + + COUNT ( * ) AS INTEGER )
----
-2396

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

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

query I rowsort
SELECT - 5 + + + 93 AS col0
----
88

query I rowsort
SELECT 52 + - 58 col0
----
-6

query I rowsort
SELECT DISTINCT + 84 - - + 36 AS col2
----
120

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

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

query I rowsort
SELECT ALL + - 67 - + 77 AS col0
----
-144

query I rowsort
SELECT ( + 84 ) col1
----
84

query I rowsort
SELECT ALL + 76 - 93
----
-17

query I rowsort
SELECT 8 * 79 - + 66 + + 74
----
640

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT - COUNT( * ) * + ( + 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-2960
SELECT - COUNT ( * ) * + ( + 96 )
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2961
SELECT 6 AS col0, COUNT( * ) * - CAST( 43 AS SIGNED ) * - 98 + - 68 - - + 40 + - 60
----
6
4126

skipif mysql # not compatible
query II rowsort label-2961
SELECT 6 AS col0, COUNT ( * ) * - CAST ( 43 AS INTEGER ) * - 98 + - 68 - - + 40 + - 60
----
6
4126

query I rowsort
SELECT - CASE + + 35 WHEN 32 + + + 6 THEN NULL WHEN 49 THEN + + 57 END
----
NULL

query I rowsort
SELECT ALL - 41 * + + 11 AS col2
----
-451

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2964
SELECT COUNT( * ) * + 93 * + 61 * - 68 * - CAST( - + CASE - + 99 WHEN + 83 * - 32 THEN 63 / + COALESCE ( - 90, - 91 ) ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2964
SELECT COUNT ( * ) * + 93 * + 61 * - 68 * - CAST ( - + CASE - + 99 WHEN + 83 * - 32 THEN 63 / + COALESCE ( - 90, - 91 ) ELSE NULL END AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 33 * - 73 AS col0
----
-2409

query I rowsort
SELECT DISTINCT 51 * + 76 AS col2
----
3876

query I rowsort
SELECT ( - + 26 ) + + + 9 AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT 87 * 53 - + 47 * - 79 * - 71 + + - MAX( - - 82 ) + - 79 + CASE + + 56 WHEN 12 THEN + 97 END * - - COUNT( ALL + 67 ) * - + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-2968
SELECT 87 * 53 - + 47 * - 79 * - 71 + + - MAX ( - - 82 ) + - 79 + CASE + + 56 WHEN 12 THEN + 97 END * - - COUNT ( ALL + 67 ) * - + 30
----
NULL

query I rowsort
SELECT ALL 50 + - 64 AS col2
----
-14

query I rowsort
SELECT 83 * - - 2 AS col0
----
166

query I rowsort
SELECT ALL 90 + - 39 + 6 + + 24 + + 55 * 70
----
3931

query II rowsort
SELECT ALL 49 + 7 AS col1, 34 AS col0
----
56
34

query I rowsort
SELECT DISTINCT 13 * 32 * - 37 AS col0
----
-15392

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT ALL SUM( + 7 ) + 65 + 20
----
92

skipif mysql # not compatible
query I rowsort label-2974
SELECT ALL SUM ( + 7 ) + 65 + 20
----
92

query II rowsort
SELECT ALL 42 * - 77 AS col1, 37 AS col0
----
-3234
37

query I rowsort
SELECT 8 * + 42 * - 25 AS col2
----
-8400

query I rowsort
SELECT DISTINCT + 79 * + 24
----
1896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2978
SELECT ALL + COUNT( * ) - + 16 + CAST( - + COUNT( * ) AS SIGNED )
----
-16

skipif mysql # not compatible
query I rowsort label-2978
SELECT ALL + COUNT ( * ) - + 16 + CAST ( - + COUNT ( * ) AS INTEGER )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT + 28 - + 21 + ( + 88 ) * 15 + - 56 + + COUNT( * ) AS col2
----
1272

skipif mysql # not compatible
query I rowsort label-2979
SELECT + 28 - + 21 + ( + 88 ) * 15 + - 56 + + COUNT ( * ) AS col2
----
1272

onlyif mysql # aggregate syntax: 
query II rowsort label-2980
SELECT COUNT( * ) * - COUNT( * ), - 65 + - 51 - - 17 AS col1
----
-1
-99

skipif mysql # not compatible
query II rowsort label-2980
SELECT COUNT ( * ) * - COUNT ( * ), - 65 + - 51 - - 17 AS col1
----
-1
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2981
SELECT CAST( + + 34 AS SIGNED ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-2981
SELECT CAST ( + + 34 AS INTEGER ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2982
SELECT + + MIN( ALL + + 38 )
----
38

skipif mysql # not compatible
query I rowsort label-2982
SELECT + + MIN ( ALL + + 38 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT 84 * + MIN( ALL 9 ) AS col2
----
756

skipif mysql # not compatible
query I rowsort label-2983
SELECT 84 * + MIN ( ALL 9 ) AS col2
----
756

query I rowsort
SELECT DISTINCT - 47 * - 10 * - 10 * + + 82 AS col0
----
-385400

query I rowsort
SELECT 46 * - 49 * + 41 AS col0
----
-92414

query I rowsort
SELECT + 44 * - 29 AS col2
----
-1276

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT ( - 65 ) + - COUNT( * ) - + + 25
----
-91

skipif mysql # not compatible
query I rowsort label-2987
SELECT ( - 65 ) + - COUNT ( * ) - + + 25
----
-91

query I rowsort
SELECT + 72 + - 71 * - - 15
----
-993

query I rowsort
SELECT DISTINCT - ( + 20 ) AS col0
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2990
SELECT 52 + 58 * - 18 * - 63 + - - 80 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2990
SELECT 52 + 58 * - 18 * - 63 + - - 80 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 1 * - - 89 * 3
----
-267

query I rowsort
SELECT DISTINCT + 10 + - + 0 AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2993
SELECT ALL NULLIF ( + 86, COUNT( * ) * + 73 )
----
86

skipif mysql # not compatible
query I rowsort label-2993
SELECT ALL NULLIF ( + 86, COUNT ( * ) * + 73 )
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2994
SELECT DISTINCT CASE - - 49 WHEN + 27 + + - CAST( NULL AS SIGNED ) * 32 THEN NULL ELSE + 9 END AS col1
----
9

skipif mysql # not compatible
query I rowsort label-2994
SELECT DISTINCT CASE - - 49 WHEN + 27 + + - CAST ( NULL AS INTEGER ) * 32 THEN NULL ELSE + 9 END AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT DISTINCT + 10 + + 69 * + - 64 - + COUNT( * )
----
-4407

skipif mysql # not compatible
query I rowsort label-2995
SELECT DISTINCT + 10 + + 69 * + - 64 - + COUNT ( * )
----
-4407

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT ALL - 56 + + + ( - COUNT( * ) ) - + - 40 * + 17 * COUNT( * )
----
623

skipif mysql # not compatible
query I rowsort label-2996
SELECT ALL - 56 + + + ( - COUNT ( * ) ) - + - 40 * + 17 * COUNT ( * )
----
623

query I rowsort
SELECT DISTINCT - 38 * 8 AS col0
----
-304

query I rowsort
SELECT - ( + + 52 ) + + 90
----
38

query I rowsort
SELECT DISTINCT + 11 + ( - - 41 ) + - 60 col2
----
-8

query I rowsort
SELECT ALL + 5 * + 96 + + 98 * + 40 * - 26 - 64 AS col1
----
-101504

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3001
SELECT ALL - 22 * + ( 73 ) * - + ( + + 11 ) + + 24, - CAST( NULL AS SIGNED ) AS col0
----
17690
NULL

skipif mysql # not compatible
query II rowsort label-3001
SELECT ALL - 22 * + ( 73 ) * - + ( + + 11 ) + + 24, - CAST ( NULL AS INTEGER ) AS col0
----
17690
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT + 37 * - - COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-3002
SELECT + 37 * - - COUNT ( * )
----
37

query I rowsort
SELECT DISTINCT - 66 * 57 AS col0
----
-3762

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3004
SELECT NULLIF ( + CAST( NULL AS SIGNED ), - - 50 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3004
SELECT NULLIF ( + CAST ( NULL AS INTEGER ), - - 50 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3005
SELECT ALL - COUNT( * ) * ( + + 57 ) * - 98 + + + 89 + - NULLIF ( 22, + 17 ) DIV + + 16 - - ( - 8 ) AS col2
----
5666

skipif mysql # not compatible
query I rowsort label-3005
SELECT ALL - COUNT ( * ) * ( + + 57 ) * - 98 + + + 89 + - NULLIF ( 22, + 17 ) / + + 16 - - ( - 8 ) AS col2
----
5666

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3006
SELECT - ( CAST( NULL AS SIGNED ) ) * - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-3006
SELECT - ( CAST ( NULL AS INTEGER ) ) * - 1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3007
SELECT CASE + COUNT( * ) WHEN CAST( NULL AS SIGNED ) * + COALESCE ( 21, - 84 * COUNT( * ) ) - + 81 / - 27 THEN - 7 + 84 ELSE 86 + COUNT( * ) * + SUM( 91 ) END AS col2
----
177

skipif mysql # not compatible
query I rowsort label-3007
SELECT CASE + COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) * + COALESCE ( 21, - 84 * COUNT ( * ) ) - + 81 / - 27 THEN - 7 + 84 ELSE 86 + COUNT ( * ) * + SUM ( 91 ) END AS col2
----
177

query I rowsort
SELECT + 6 * - 71 + 2
----
-424

query I rowsort
SELECT NULLIF ( 8, - 10 * + ( - 43 ) )
----
8

query I rowsort
SELECT + NULLIF ( - 8, + 80 - 77 / 70 ) AS col1
----
-8

query I rowsort
SELECT + 71 + - 96
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3012
SELECT ALL + 12 * 79 - + COUNT( * ) AS col0
----
947

skipif mysql # not compatible
query I rowsort label-3012
SELECT ALL + 12 * 79 - + COUNT ( * ) AS col0
----
947

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3013
SELECT ALL COUNT( + ( - 43 ) ) * + ( COALESCE ( COUNT( * ), - 43 / + 88, 30 + - CAST( NULL AS SIGNED ) ) * CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3013
SELECT ALL COUNT ( + ( - 43 ) ) * + ( COALESCE ( COUNT ( * ), - 43 / + 88, 30 + - CAST ( NULL AS INTEGER ) ) * CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 65 + + 83
----
148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3015
SELECT + 17 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3015
SELECT + 17 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL COALESCE ( + 10, + 11 * - 4 ) * + 36 AS col2
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT + COUNT( * ) * 22 col1
----
22

skipif mysql # not compatible
query I rowsort label-3017
SELECT + COUNT ( * ) * 22 col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT + 93 + 14 * + COUNT( * ) AS col2
----
107

skipif mysql # not compatible
query I rowsort label-3018
SELECT + 93 + 14 * + COUNT ( * ) AS col2
----
107

query I rowsort
SELECT - NULLIF ( 99, 66 ) AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT - COUNT( DISTINCT + 6 ) * ( 57 * 8 - COUNT( * ) * 23 )
----
-433

skipif mysql # not compatible
query I rowsort label-3020
SELECT - COUNT ( DISTINCT + 6 ) * ( 57 * 8 - COUNT ( * ) * 23 )
----
-433

query I rowsort
SELECT ALL 75 + - 49 * 67 AS col1
----
-3208

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT ALL CASE 41 WHEN 98 THEN 30 WHEN - COUNT( * ) * COUNT( * ) THEN 64 ELSE COUNT( * ) END * + 96
----
96

skipif mysql # not compatible
query I rowsort label-3022
SELECT ALL CASE 41 WHEN 98 THEN 30 WHEN - COUNT ( * ) * COUNT ( * ) THEN 64 ELSE COUNT ( * ) END * + 96
----
96

query I rowsort
SELECT ALL 81 + + 95 col0
----
176

query I rowsort
SELECT ALL + 23 + - 63
----
-40

query I rowsort
SELECT DISTINCT 74 + + 82 col2
----
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3026
SELECT + COUNT( ALL 20 ) DIV ( + 59 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3026
SELECT + COUNT ( ALL 20 ) / ( + 59 ) AS col2
----
0

query I rowsort
SELECT - ( 91 ) * 20
----
-1820

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT - COUNT( DISTINCT 73 ) * - 17
----
17

skipif mysql # not compatible
query I rowsort label-3028
SELECT - COUNT ( DISTINCT 73 ) * - 17
----
17

query I rowsort
SELECT + 91 - 17
----
74

query I rowsort
SELECT ALL - 52 * 11
----
-572

query I rowsort
SELECT ALL + 97 + 1 * - 32 AS col2
----
65

query I rowsort
SELECT ALL 73 * 9 AS col0
----
657

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT - COUNT( * ) * - 99 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-3033
SELECT - COUNT ( * ) * - 99 AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT ALL ( MIN( - 49 ) ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-3034
SELECT ALL ( MIN ( - 49 ) ) AS col0
----
-49

query I rowsort
SELECT ALL - 52 * + ( + 66 ) col2
----
-3432

query I rowsort
SELECT ALL - 61 - + 99 * 26
----
-2635

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3037
SELECT DISTINCT CAST( + 97 AS SIGNED ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-3037
SELECT DISTINCT CAST ( + 97 AS INTEGER ) AS col0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3038
SELECT DISTINCT CASE ( + 5 ) WHEN 69 + + ( 61 ) THEN NULL WHEN - ( - CASE 61 WHEN 22 THEN NULL WHEN - 44 THEN 19 * + 19 + - MIN( ALL - 34 ) END ) + 68 THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN 70 * 50 - 34 * 2 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3038
SELECT DISTINCT CASE ( + 5 ) WHEN 69 + + ( 61 ) THEN NULL WHEN - ( - CASE 61 WHEN 22 THEN NULL WHEN - 44 THEN 19 * + 19 + - MIN ( ALL - 34 ) END ) + 68 THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN 70 * 50 - 34 * 2 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3039
SELECT - 65 / 1 - CAST( NULL AS SIGNED ) * - 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3039
SELECT - 65 / 1 - CAST ( NULL AS INTEGER ) * - 15 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3040
SELECT - 2 * + COUNT( * ) + - ( - CAST( NULL AS SIGNED ) + 59 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3040
SELECT - 2 * + COUNT ( * ) + - ( - CAST ( NULL AS INTEGER ) + 59 )
----
NULL

query I rowsort
SELECT - 78 * - 1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT + MAX( DISTINCT 93 ) * 66 AS col1
----
6138

skipif mysql # not compatible
query I rowsort label-3042
SELECT + MAX ( DISTINCT 93 ) * 66 AS col1
----
6138

query I rowsort
SELECT ALL + - 52 * 9 AS col1
----
-468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3044
SELECT 66 DIV - 34 + CAST( COUNT( * ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3044
SELECT 66 / - 34 + CAST ( COUNT ( * ) AS INTEGER )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3045
SELECT ALL CAST( + 16 AS SIGNED ) * - COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-3045
SELECT ALL CAST ( + 16 AS INTEGER ) * - COUNT ( * )
----
-16

query I rowsort
SELECT - + 75 * + 10 col1
----
-750

query I rowsort
SELECT ALL + 69 * + 40 AS col1
----
2760

query I rowsort
SELECT - - 14 * - ( + 46 )
----
-644

query I rowsort
SELECT + 74 * CASE 38 WHEN 96 * - 59 THEN 56 * - 24 END
----
NULL

query I rowsort
SELECT - + 39 * - ( - 9 ) col1
----
-351

onlyif mysql # aggregate syntax: 
query I rowsort label-3051
SELECT - 40 - - 33 * - COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-3051
SELECT - 40 - - 33 * - COUNT ( * )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT ALL + + NULLIF ( MIN( DISTINCT ( 40 ) ), 41 + - 2 / - 22 )
----
40

skipif mysql # not compatible
query I rowsort label-3052
SELECT ALL + + NULLIF ( MIN ( DISTINCT ( 40 ) ), 41 + - 2 / - 22 )
----
40

query I rowsort
SELECT + 54 * + 79 AS col2
----
4266

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3054
SELECT ALL + NULLIF ( + 27, 19 + 12 ) * 36 + + NULLIF ( + 2 + + COUNT( * ), - NULLIF ( NULLIF ( - 39, CAST( NULL AS SIGNED ) ), 17 / - 81 ) ) AS col1
----
975

skipif mysql # not compatible
query I rowsort label-3054
SELECT ALL + NULLIF ( + 27, 19 + 12 ) * 36 + + NULLIF ( + 2 + + COUNT ( * ), - NULLIF ( NULLIF ( - 39, CAST ( NULL AS INTEGER ) ), 17 / - 81 ) ) AS col1
----
975

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT - MAX( DISTINCT 20 ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-3055
SELECT - MAX ( DISTINCT 20 ) AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT ALL - + SUM( DISTINCT 6 ) + 32
----
26

skipif mysql # not compatible
query I rowsort label-3056
SELECT ALL - + SUM ( DISTINCT 6 ) + 32
----
26

query I rowsort
SELECT + ( 75 ) * - 52 - 26
----
-3926

query I rowsort
SELECT 65 + - 17 AS col1
----
48

query I rowsort
SELECT CASE - + 87 WHEN 47 * 38 THEN NULL ELSE + 22 END - - 97 AS col2
----
119

query I rowsort
SELECT ALL 33 * - + 77 AS col2
----
-2541

query I rowsort
SELECT DISTINCT 68 * - 61 AS col1
----
-4148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3062
SELECT CAST( - COUNT( * ) AS SIGNED ) * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3062
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * - COUNT ( * )
----
1

query I rowsort
SELECT 77 + 35 AS col0
----
112

query I rowsort
SELECT DISTINCT 32 * 88 * + 69
----
194304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3065
SELECT ( + COUNT( * ) ) + ( + COALESCE ( ( 36 ), CAST( NULL AS SIGNED ), - 14 ) )
----
37

skipif mysql # not compatible
query I rowsort label-3065
SELECT ( + COUNT ( * ) ) + ( + COALESCE ( ( 36 ), CAST ( NULL AS INTEGER ), - 14 ) )
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3066
SELECT CAST( + 48 AS SIGNED ) * COUNT( * ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-3066
SELECT CAST ( + 48 AS INTEGER ) * COUNT ( * ) AS col1
----
48

query I rowsort
SELECT DISTINCT 61 - - 5 - + 95
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3068
SELECT ALL 20 DIV - COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-3068
SELECT ALL 20 / - COUNT ( * )
----
-20

query I rowsort
SELECT 83 * - 62 col2
----
-5146

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT 21 + + COUNT( * ) * 90 AS col1
----
111

skipif mysql # not compatible
query I rowsort label-3070
SELECT 21 + + COUNT ( * ) * 90 AS col1
----
111

query I rowsort
SELECT DISTINCT 55 * + - 19 AS col2
----
-1045

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT CASE - 1 WHEN + ( MIN( DISTINCT + 11 ) ) THEN 79 + 76 WHEN 64 THEN NULL END + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-3072
SELECT CASE - 1 WHEN + ( MIN ( DISTINCT + 11 ) ) THEN 79 + 76 WHEN 64 THEN NULL END + - 26
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3073
SELECT 37 DIV + - 59 col1
----
0

skipif mysql # not compatible
query I rowsort label-3073
SELECT 37 / + - 59 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT 8 + + COUNT( * ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-3074
SELECT 8 + + COUNT ( * ) AS col0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3075
SELECT DISTINCT CAST( + 11 AS SIGNED ) * 58
----
638

skipif mysql # not compatible
query I rowsort label-3075
SELECT DISTINCT CAST ( + 11 AS INTEGER ) * 58
----
638

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3076
SELECT + CAST( 63 AS SIGNED ) col2
----
63

skipif mysql # not compatible
query I rowsort label-3076
SELECT + CAST ( 63 AS INTEGER ) col2
----
63

query I rowsort
SELECT DISTINCT + ( + 50 ) * NULLIF ( 87 - 75, 98 / - 74 ) AS col0
----
600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3078
SELECT 52 * COALESCE ( 13, - 92 * + 6, + NULLIF ( 27, CAST( NULL AS SIGNED ) * ( 4 ) ), - ( 60 ) )
----
676

skipif mysql # not compatible
query I rowsort label-3078
SELECT 52 * COALESCE ( 13, - 92 * + 6, + NULLIF ( 27, CAST ( NULL AS INTEGER ) * ( 4 ) ), - ( 60 ) )
----
676

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT - 75 + - ( MIN( DISTINCT 41 ) )
----
-116

skipif mysql # not compatible
query I rowsort label-3079
SELECT - 75 + - ( MIN ( DISTINCT 41 ) )
----
-116

onlyif mysql # DIV for integer division: 
query I rowsort label-3080
SELECT - - 20 DIV - 41 + - 82 col1
----
-82

skipif mysql # not compatible
query I rowsort label-3080
SELECT - - 20 / - 41 + - 82 col1
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3081
SELECT - 58 + - CAST( COUNT( * ) AS SIGNED ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-3081
SELECT - 58 + - CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
-59

query I rowsort
SELECT + 97 + + - 61 AS col1
----
36

query I rowsort
SELECT ALL + 57 + + - 9 + - ( 25 )
----
23

query I rowsort
SELECT - - 91 * + 68 + 17
----
6205

query I rowsort
SELECT COALESCE ( 64, 59 * - 37 )
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3086
SELECT + 24 + + 50 + - COUNT( * ) DIV 79
----
74

skipif mysql # not compatible
query I rowsort label-3086
SELECT + 24 + + 50 + - COUNT ( * ) / 79
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT ALL - + SUM( - + 86 ) col0
----
86

skipif mysql # not compatible
query I rowsort label-3087
SELECT ALL - + SUM ( - + 86 ) col0
----
86

query I rowsort
SELECT DISTINCT + + 3 + - 83 AS col1
----
-80

query I rowsort
SELECT DISTINCT - ( 78 ) + + COALESCE ( 64, - 89 * 70, + 76 )
----
-14

query I rowsort
SELECT + ( + - AVG ( ALL CASE 18 WHEN + 19 - 20 THEN + 20 END ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3091
SELECT - 4 DIV 19 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3091
SELECT - 4 / 19 AS col0
----
0

query I rowsort
SELECT ALL - 31 + - 21
----
-52

query I rowsort
SELECT ALL - - 48 col2
----
48

query I rowsort
SELECT - 87 + - 23 * 17
----
-478

query II rowsort
SELECT 24 AS col0, 59 AS col2
----
24
59

query II rowsort
SELECT 59 AS col2, - 77
----
59
-77

query I rowsort
SELECT ALL - 97 + ( ( + 82 ) ) + 68 * 23 AS col2
----
1549

onlyif mysql # DIV for integer division: 
query I rowsort label-3098
SELECT 67 DIV + + 10 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-3098
SELECT 67 / + + 10 AS col0
----
6

query I rowsort
SELECT 3 * - - 77 col1
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT SUM( DISTINCT - + 97 ) * 82 AS col2
----
-7954

skipif mysql # not compatible
query I rowsort label-3100
SELECT SUM ( DISTINCT - + 97 ) * 82 AS col2
----
-7954

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3101
SELECT DISTINCT 82, CAST( - 73 AS SIGNED ) AS col1
----
82
-73

skipif mysql # not compatible
query II rowsort label-3101
SELECT DISTINCT 82, CAST ( - 73 AS INTEGER ) AS col1
----
82
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-3102
SELECT 53, NULLIF ( + COUNT( * ), - COUNT( * ) + 82 ) * 85 + 22 AS col1
----
53
107

skipif mysql # not compatible
query II rowsort label-3102
SELECT 53, NULLIF ( + COUNT ( * ), - COUNT ( * ) + 82 ) * 85 + 22 AS col1
----
53
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3103
SELECT DISTINCT 38 AS col0, + COUNT( * ) * - ( 56 ) * CAST( NULL AS SIGNED ) AS col2
----
38
NULL

skipif mysql # not compatible
query II rowsort label-3103
SELECT DISTINCT 38 AS col0, + COUNT ( * ) * - ( 56 ) * CAST ( NULL AS INTEGER ) AS col2
----
38
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT DISTINCT - MIN( DISTINCT - 58 ) - 41 col2
----
17

skipif mysql # not compatible
query I rowsort label-3104
SELECT DISTINCT - MIN ( DISTINCT - 58 ) - 41 col2
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3105
SELECT DISTINCT CASE - 55 WHEN - 19 * 62 THEN 86 WHEN 60 * + 71 THEN NULL WHEN 83 THEN 19 - CAST( NULL AS SIGNED ) END * + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-3105
SELECT DISTINCT CASE - 55 WHEN - 19 * 62 THEN 86 WHEN 60 * + 71 THEN NULL WHEN 83 THEN 19 - CAST ( NULL AS INTEGER ) END * + 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT 92 * + SUM( - + 17 )
----
-1564

skipif mysql # not compatible
query I rowsort label-3106
SELECT 92 * + SUM ( - + 17 )
----
-1564

query I rowsort
SELECT ALL 14 * + - 32 * - NULLIF ( 2, + 91 + - 65 ) AS col0
----
896

query II rowsort
SELECT 91 AS col1, - 15 - 84 * + 18 AS col1
----
91
-1527

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT 11 - - - MIN( DISTINCT CASE + 65 WHEN 76 + + 5 THEN NULL ELSE 99 * + 89 END ) - 28
----
-8828

skipif mysql # not compatible
query I rowsort label-3109
SELECT 11 - - - MIN ( DISTINCT CASE + 65 WHEN 76 + + 5 THEN NULL ELSE 99 * + 89 END ) - 28
----
-8828

query II rowsort
SELECT ALL 12 AS col2, + 95
----
12
95

query I rowsort
SELECT ALL 78 * - + 35 AS col0
----
-2730

onlyif mysql # DIV for integer division: 
query I rowsort label-3112
SELECT DISTINCT - 80 DIV - 99
----
0

skipif mysql # not compatible
query I rowsort label-3112
SELECT DISTINCT - 80 / - 99
----
0

query I rowsort
SELECT ALL 45 + 92 AS col2
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT COUNT( * ) * - 96
----
-96

skipif mysql # not compatible
query I rowsort label-3114
SELECT COUNT ( * ) * - 96
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT + NULLIF ( + + MAX( - 84 ), + 50 ) + + 17 * + 95
----
1531

skipif mysql # not compatible
query I rowsort label-3115
SELECT + NULLIF ( + + MAX ( - 84 ), + 50 ) + + 17 * + 95
----
1531

query I rowsort
SELECT 66 - 61 AS col1
----
5

query II rowsort
SELECT ALL - - 3 AS col1, + 2
----
3
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3118
SELECT + - ( + 69 ) * + 86 - - 64 DIV 72 + 23 * 36 AS col2
----
-5106

skipif mysql # not compatible
query I rowsort label-3118
SELECT + - ( + 69 ) * + 86 - - 64 / 72 + 23 * 36 AS col2
----
-5106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3119
SELECT + COUNT( + ( 89 ) ) DIV COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3119
SELECT + COUNT ( + ( 89 ) ) / COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3120
SELECT ALL - CAST( - + 68 AS SIGNED ) * - COALESCE ( 76, ( - SUM( + 72 ) ), 14 * 5 ) + + 1 col0
----
-5167

skipif mysql # not compatible
query I rowsort label-3120
SELECT ALL - CAST ( - + 68 AS INTEGER ) * - COALESCE ( 76, ( - SUM ( + 72 ) ), 14 * 5 ) + + 1 col0
----
-5167

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT + 95 * + - COUNT( * ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-3121
SELECT + 95 * + - COUNT ( * ) AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT ALL - SUM( + 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-3122
SELECT ALL - SUM ( + 39 )
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3123
SELECT ALL + - 97 * CASE 92 WHEN - AVG ( DISTINCT 23 ) THEN - ( 7 ) WHEN 35 * 68 THEN - 94 ELSE NULL END - CAST( 71 AS SIGNED ) + - 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3123
SELECT ALL + - 97 * CASE 92 WHEN - AVG ( DISTINCT 23 ) THEN - ( 7 ) WHEN 35 * 68 THEN - 94 ELSE NULL END - CAST ( 71 AS INTEGER ) + - 63 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT ALL + 1 * + 35 + + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-3124
SELECT ALL + 1 * + 35 + + COUNT ( * )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT DISTINCT - 35 * + SUM( + 74 ) AS col2
----
-2590

skipif mysql # not compatible
query I rowsort label-3125
SELECT DISTINCT - 35 * + SUM ( + 74 ) AS col2
----
-2590

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT - ( + CASE + + ( 6 ) WHEN 87 * SUM( ALL 13 ) THEN NULL WHEN - 61 THEN 78 + 54 * - COUNT( * ) WHEN 53 THEN - 84 END ) * 69 + + COUNT( * ) * + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-3126
SELECT - ( + CASE + + ( 6 ) WHEN 87 * SUM ( ALL 13 ) THEN NULL WHEN - 61 THEN 78 + 54 * - COUNT ( * ) WHEN 53 THEN - 84 END ) * 69 + + COUNT ( * ) * + 1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3127
SELECT - 49, 98 + - 74 + COUNT( * ) * - COUNT( ALL + 69 ) AS col2
----
-49
23

skipif mysql # not compatible
query II rowsort label-3127
SELECT - 49, 98 + - 74 + COUNT ( * ) * - COUNT ( ALL + 69 ) AS col2
----
-49
23

query I rowsort
SELECT 79 * 10 * 96 - 97
----
75743

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3129
SELECT + - COUNT( * ) AS col0, 17 DIV + 40 AS col2
----
-1
0

skipif mysql # not compatible
query II rowsort label-3129
SELECT + - COUNT ( * ) AS col0, 17 / + 40 AS col2
----
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3130
SELECT ALL + + CASE - 0 WHEN + + MAX( - 24 ) + COUNT( * ) * 21 THEN + 86 * COUNT( * ) WHEN - CASE 71 WHEN - 1 + COALESCE ( - 77, 45 ) THEN NULL WHEN + 97 / - ( + 53 ) + 4 THEN + 38 WHEN + 61 / 5 + + 48 * - CAST( NULL AS SIGNED ) THEN 74 END THEN - 43 - + 45 / 27 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3130
SELECT ALL + + CASE - 0 WHEN + + MAX ( - 24 ) + COUNT ( * ) * 21 THEN + 86 * COUNT ( * ) WHEN - CASE 71 WHEN - 1 + COALESCE ( - 77, 45 ) THEN NULL WHEN + 97 / - ( + 53 ) + 4 THEN + 38 WHEN + 61 / 5 + + 48 * - CAST ( NULL AS INTEGER ) THEN 74 END THEN - 43 - + 45 / 27 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT - 68 + - 30 * + COUNT( * ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-3131
SELECT - 68 + - 30 * + COUNT ( * ) AS col1
----
-98

query I rowsort
SELECT - 86 * - 94
----
8084

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT - COUNT( * ) * + 40 * + 30 * 7
----
-8400

skipif mysql # not compatible
query I rowsort label-3133
SELECT - COUNT ( * ) * + 40 * + 30 * 7
----
-8400

query I rowsort
SELECT ALL ( - 41 )
----
-41

query I rowsort
SELECT - 38 - + 23 + - 66 AS col0
----
-127

query II rowsort
SELECT ALL - 93 * + - 42 AS col0, + 70
----
3906
70

query I rowsort
SELECT - 50 * + 37 AS col2
----
-1850

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT - ( COALESCE ( - 58, 81 * 74, + SUM( - 32 ) ) ) + 6 * + COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-3138
SELECT - ( COALESCE ( - 58, 81 * 74, + SUM ( - 32 ) ) ) + 6 * + COUNT ( * )
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3139
SELECT - 14 - CAST( 82 AS SIGNED ) + - 14 * 52
----
-824

skipif mysql # not compatible
query I rowsort label-3139
SELECT - 14 - CAST ( 82 AS INTEGER ) + - 14 * 52
----
-824

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3140
SELECT DISTINCT - MAX( + + 96 ) * ( - CAST( NULL AS SIGNED ) ) / + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-3140
SELECT DISTINCT - MAX ( + + 96 ) * ( - CAST ( NULL AS INTEGER ) ) / + 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT - MAX( - 76 ) + + MAX( + 80 ) AS col1
----
156

skipif mysql # not compatible
query I rowsort label-3141
SELECT - MAX ( - 76 ) + + MAX ( + 80 ) AS col1
----
156

query I rowsort
SELECT - 91 - + 47 AS col1
----
-138

onlyif mysql # DIV for integer division: 
query I rowsort label-3143
SELECT + 8 DIV + 12 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3143
SELECT + 8 / + 12 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3144
SELECT - 78 + - 77 + - ( + 8 ) * CAST( - COUNT( * ) * COUNT( * ) - COUNT( * ) AS SIGNED ) AS col2
----
-139

skipif mysql # not compatible
query I rowsort label-3144
SELECT - 78 + - 77 + - ( + 8 ) * CAST ( - COUNT ( * ) * COUNT ( * ) - COUNT ( * ) AS INTEGER ) AS col2
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT ALL - COUNT( * ) * - 50
----
50

skipif mysql # not compatible
query I rowsort label-3145
SELECT ALL - COUNT ( * ) * - 50
----
50

query I rowsort
SELECT DISTINCT NULLIF ( 92, + - 42 - + 21 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT ALL CASE + - 69 WHEN + ( + 23 ) THEN NULLIF ( 12, + 16 - COUNT( * ) * 19 ) END / 48
----
NULL

skipif mysql # not compatible
query I rowsort label-3147
SELECT ALL CASE + - 69 WHEN + ( + 23 ) THEN NULLIF ( 12, + 16 - COUNT ( * ) * 19 ) END / 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT ALL COALESCE ( + 96, - COUNT( * ) ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-3148
SELECT ALL COALESCE ( + 96, - COUNT ( * ) ) AS col2
----
96

query I rowsort
SELECT ALL 60 + - 94 * + - 53
----
5042

query I rowsort
SELECT ALL ( 96 ) AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT - - MIN( DISTINCT - 69 ) + COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-3151
SELECT - - MIN ( DISTINCT - 69 ) + COUNT ( * )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT - NULLIF ( + + 82, 42 * + MAX( + 58 ) - 56 ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-3152
SELECT - NULLIF ( + + 82, 42 * + MAX ( + 58 ) - 56 ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT + 17 + + + SUM( + 65 ) + + 32
----
114

skipif mysql # not compatible
query I rowsort label-3153
SELECT + 17 + + + SUM ( + 65 ) + + 32
----
114

query I rowsort
SELECT ALL - 90 + + 73
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-3155
SELECT - + SUM( - + 52 ), - 17 col0
----
52
-17

skipif mysql # not compatible
query II rowsort label-3155
SELECT - + SUM ( - + 52 ), - 17 col0
----
52
-17

query I rowsort
SELECT - - NULLIF ( - 9, - 24 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT DISTINCT COUNT( + 77 )
----
1

skipif mysql # not compatible
query I rowsort label-3157
SELECT DISTINCT COUNT ( + 77 )
----
1

query I rowsort
SELECT DISTINCT + CASE 37 WHEN + 76 THEN 49 ELSE + 92 END + + NULLIF ( - 55, + 41 * 4 + 5 / 60 ) AS col0
----
37

query I rowsort
SELECT ALL - NULLIF ( 62, - 81 * 93 ) + 0 * 59 AS col1
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-3160
SELECT DISTINCT - 90 DIV - 28 + - 72 + + 68 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3160
SELECT DISTINCT - 90 / - 28 + - 72 + + 68 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3161
SELECT ALL - + CAST( + 64 AS SIGNED ) DIV - 61 + + COUNT( * ) + - 92 DIV + 2
----
-44

skipif mysql # not compatible
query I rowsort label-3161
SELECT ALL - + CAST ( + 64 AS INTEGER ) / - 61 + + COUNT ( * ) + - 92 / + 2
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3162
SELECT ALL CASE - + 92 WHEN + 28 THEN - ( - CAST( CASE + 21 WHEN - 45 + + 92 THEN NULL WHEN - 94 * - CAST( NULLIF ( COUNT( * ), - 45 * CAST( COUNT( * ) AS SIGNED ) + 97 ) AS SIGNED ) THEN NULL WHEN 97 THEN 92 * - 28 END AS SIGNED ) ) ELSE NULL END / 40 + - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-3162
SELECT ALL CASE - + 92 WHEN + 28 THEN - ( - CAST ( CASE + 21 WHEN - 45 + + 92 THEN NULL WHEN - 94 * - CAST ( NULLIF ( COUNT ( * ), - 45 * CAST ( COUNT ( * ) AS INTEGER ) + 97 ) AS INTEGER ) THEN NULL WHEN 97 THEN 92 * - 28 END AS INTEGER ) ) ELSE NULL END / 40 + - 68
----
NULL

query I rowsort
SELECT + 57 * + + 26 - 10 + - 79 * + 55 AS col2
----
-2873

onlyif mysql # DIV for integer division: 
query I rowsort label-3164
SELECT DISTINCT + COALESCE ( - + 13, - 77 DIV + ( 55 ) + 4, - 98, 39 )
----
-13

skipif mysql # not compatible
query I rowsort label-3164
SELECT DISTINCT + COALESCE ( - + 13, - 77 / + ( 55 ) + 4, - 98, 39 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT DISTINCT + - COALESCE ( - - 90, - COUNT( * ) ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-3165
SELECT DISTINCT + - COALESCE ( - - 90, - COUNT ( * ) ) AS col2
----
-90

query I rowsort
SELECT ALL 73 * - ( - + 50 ) - + 56 + 58 - 22 col2
----
3630

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT + 65 * + + 99 * - 88 * + - 21 + - 72 + 18 * + COALESCE ( - ( + 46 ), 88 * COUNT( * ) + - ( 26 ) ) AS col2
----
11890980

skipif mysql # not compatible
query I rowsort label-3167
SELECT + 65 * + + 99 * - 88 * + - 21 + - 72 + 18 * + COALESCE ( - ( + 46 ), 88 * COUNT ( * ) + - ( 26 ) ) AS col2
----
11890980

query I rowsort
SELECT - 79 - + + 16 AS col1
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3169
SELECT ALL + CASE - 51 WHEN AVG ( ALL + + CAST( - 31 AS SIGNED ) ) THEN + COUNT( * ) WHEN + 0 THEN NULL WHEN + 81 THEN NULL ELSE NULL END / ( - 12 * ( ( - 24 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3169
SELECT ALL + CASE - 51 WHEN AVG ( ALL + + CAST ( - 31 AS INTEGER ) ) THEN + COUNT ( * ) WHEN + 0 THEN NULL WHEN + 81 THEN NULL ELSE NULL END / ( - 12 * ( ( - 24 ) ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3170
SELECT ALL - 6 * - CAST( NULL AS SIGNED ) * - COUNT( * ) / - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-3170
SELECT ALL - 6 * - CAST ( NULL AS INTEGER ) * - COUNT ( * ) / - 23
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3171
SELECT DISTINCT 6 * - 42 - 50 * + 59 + + 45 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3171
SELECT DISTINCT 6 * - 42 - 50 * + 59 + + 45 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3172
SELECT + CAST( NULL AS SIGNED ) * - + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-3172
SELECT + CAST ( NULL AS INTEGER ) * - + 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT ALL + CASE - 40 WHEN 44 THEN - ( + - COUNT( * ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3173
SELECT ALL + CASE - 40 WHEN 44 THEN - ( + - COUNT ( * ) ) END AS col1
----
NULL

query I rowsort
SELECT ALL 3 * 74
----
222

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3175
SELECT 34 * + + ( COUNT( * ) ) + + + COUNT( * ) + - - 70 DIV + 26 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-3175
SELECT 34 * + + ( COUNT ( * ) ) + + + COUNT ( * ) + - - 70 / + 26 AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT + COUNT( * ) * + - 40 col2
----
-40

skipif mysql # not compatible
query I rowsort label-3176
SELECT + COUNT ( * ) * + - 40 col2
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3177
SELECT + CAST( - 55 AS SIGNED )
----
-55

skipif mysql # not compatible
query I rowsort label-3177
SELECT + CAST ( - 55 AS INTEGER )
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3178
SELECT - 91 + - + 19 * + CASE + MAX( + 17 ) WHEN 51 THEN NULL WHEN NULLIF ( 71, 21 ) THEN NULL ELSE 4 DIV 9 END + - 88 AS col1
----
-179

skipif mysql # not compatible
query I rowsort label-3178
SELECT - 91 + - + 19 * + CASE + MAX ( + 17 ) WHEN 51 THEN NULL WHEN NULLIF ( 71, 21 ) THEN NULL ELSE 4 / 9 END + - 88 AS col1
----
-179

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3179
SELECT ALL + CASE + 59 WHEN + + CASE - 44 WHEN + CAST( NULL AS SIGNED ) THEN 63 ELSE NULL END THEN 69 ELSE 64 * 9 END AS col2
----
576

skipif mysql # not compatible
query I rowsort label-3179
SELECT ALL + CASE + 59 WHEN + + CASE - 44 WHEN + CAST ( NULL AS INTEGER ) THEN 63 ELSE NULL END THEN 69 ELSE 64 * 9 END AS col2
----
576

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT - 67 + - - NULLIF ( - + 73, 4 ) - - NULLIF ( NULLIF ( 30, MAX( ALL + 67 ) ), 33 )
----
-110

skipif mysql # not compatible
query I rowsort label-3180
SELECT - 67 + - - NULLIF ( - + 73, 4 ) - - NULLIF ( NULLIF ( 30, MAX ( ALL + 67 ) ), 33 )
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT DISTINCT MIN( - + 91 ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-3181
SELECT DISTINCT MIN ( - + 91 ) AS col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT DISTINCT 61 * + COUNT( * ) + + 48 - - + 76 AS col1
----
185

skipif mysql # not compatible
query I rowsort label-3182
SELECT DISTINCT 61 * + COUNT ( * ) + + 48 - - + 76 AS col1
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT DISTINCT + 44 * MIN( + 30 )
----
1320

skipif mysql # not compatible
query I rowsort label-3183
SELECT DISTINCT + 44 * MIN ( + 30 )
----
1320

query I rowsort
SELECT - 31 * 81 * 3
----
-7533

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT ALL - 97 * 9 + + 68 + + 95 * - ( + MIN( DISTINCT + 91 ) ) + 80 AS col2
----
-9370

skipif mysql # not compatible
query I rowsort label-3185
SELECT ALL - 97 * 9 + + 68 + + 95 * - ( + MIN ( DISTINCT + 91 ) ) + 80 AS col2
----
-9370

onlyif mysql # DIV for integer division: 
query I rowsort label-3186
SELECT DISTINCT COALESCE ( 14, + 45 DIV 94 )
----
14

skipif mysql # not compatible
query I rowsort label-3186
SELECT DISTINCT COALESCE ( 14, + 45 / 94 )
----
14

query I rowsort
SELECT ALL - 72 + 62 AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT ALL COALESCE ( - + ( - 20 ), - COUNT( - 84 ) )
----
20

skipif mysql # not compatible
query I rowsort label-3188
SELECT ALL COALESCE ( - + ( - 20 ), - COUNT ( - 84 ) )
----
20

query I rowsort
SELECT + 95 + - 15
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT - COUNT( * ) * + 44
----
-44

skipif mysql # not compatible
query I rowsort label-3190
SELECT - COUNT ( * ) * + 44
----
-44

query I rowsort
SELECT - 11 + + + ( ( 11 ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3192
SELECT DISTINCT + + 1 + - COUNT( * ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3192
SELECT DISTINCT + + 1 + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3193
SELECT ALL - + COALESCE ( 60, COALESCE ( - 17, 99 - + COUNT( * ), - 73 * - 20 ) + 50 * 33, + COALESCE ( 70, 26 + ( - 64 ), + ( 88 ), 0 + - 32 * - 88 ) ) + 70 DIV COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-3193
SELECT ALL - + COALESCE ( 60, COALESCE ( - 17, 99 - + COUNT ( * ), - 73 * - 20 ) + 50 * 33, + COALESCE ( 70, 26 + ( - 64 ), + ( 88 ), 0 + - 32 * - 88 ) ) + 70 / COUNT ( * )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT - 64 + - COUNT( * ) + - - 17 + - CASE 55 WHEN 69 / 42 THEN + MAX( DISTINCT - 64 ) END + 4 * COUNT( * ) * - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3194
SELECT - 64 + - COUNT ( * ) + - - 17 + - CASE 55 WHEN 69 / 42 THEN + MAX ( DISTINCT - 64 ) END + 4 * COUNT ( * ) * - COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT - COUNT( + 19 ) - - 53 + 75 col1
----
127

skipif mysql # not compatible
query I rowsort label-3195
SELECT - COUNT ( + 19 ) - - 53 + 75 col1
----
127

query I rowsort
SELECT ALL + + 9 + + 38 AS col2
----
47

query I rowsort
SELECT ALL - 79 + + 97
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3198
SELECT NULLIF ( CAST( NULL AS SIGNED ), 54 ) * + 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3198
SELECT NULLIF ( CAST ( NULL AS INTEGER ), 54 ) * + 6 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3199
SELECT DISTINCT + 11 col0, + 1 * + 20 DIV CAST( 93 AS SIGNED )
----
11
0

skipif mysql # not compatible
query II rowsort label-3199
SELECT DISTINCT + 11 col0, + 1 * + 20 / CAST ( 93 AS INTEGER )
----
11
0

query I rowsort
SELECT ALL + 85 - - 66 AS col0
----
151

query I rowsort
SELECT - 84 * + - 45
----
3780

query I rowsort
SELECT DISTINCT - 52 * - 55 * 26 - - ( - 21 ) AS col2
----
74339

onlyif mysql # aggregate syntax: 
query II rowsort label-3203
SELECT ALL - 65, + COUNT( * ) - 40 AS col1
----
-65
-39

skipif mysql # not compatible
query II rowsort label-3203
SELECT ALL - 65, + COUNT ( * ) - 40 AS col1
----
-65
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3204
SELECT SUM( + 80 ) DIV + + 88 col2
----
0

skipif mysql # not compatible
query I rowsort label-3204
SELECT SUM ( + 80 ) / + + 88 col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3205
SELECT COALESCE ( + - 54, - + 5 ) DIV 23, 98 AS col1
----
-2
98

skipif mysql # not compatible
query II rowsort label-3205
SELECT COALESCE ( + - 54, - + 5 ) / 23, 98 AS col1
----
-2
98

query II rowsort
SELECT ALL - 41, - 83 AS col2
----
-41
-83

query II rowsort
SELECT ALL - 57 AS col2, - ( COALESCE ( + 15, - + 30 ) )
----
-57
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3208
SELECT 66 DIV + 16 - COALESCE ( - 86, - 16 + - 47, COUNT( * ) ) - 62 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-3208
SELECT 66 / + 16 - COALESCE ( - 86, - 16 + - 47, COUNT ( * ) ) - 62 AS col1
----
28

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-3209
SELECT CAST( NULL AS DECIMAL ) * + 54 DIV - MIN( DISTINCT - 11 ), + 29 DIV + 35 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3209
SELECT CAST ( NULL AS REAL ) * + 54 / - MIN ( DISTINCT - 11 ), + 29 / + 35 AS col2
----
NULL
0

query I rowsort
SELECT 39 * + 86 + + 42
----
3396

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT ALL 61 + COUNT( * ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-3211
SELECT ALL 61 + COUNT ( * ) AS col2
----
62

query I rowsort
SELECT DISTINCT NULLIF ( 97, - - CASE WHEN ( NULL ) IS NOT NULL THEN 92 ELSE NULL END ) * + 11 AS col2
----
1067

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT ALL + COUNT( * ) + 36 * + 69
----
2485

skipif mysql # not compatible
query I rowsort label-3213
SELECT ALL + COUNT ( * ) + 36 * + 69
----
2485

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3214
SELECT ALL ( + 85 ) * ( + CAST( NULL AS SIGNED ) ) + + 25 * + - 62 + - 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3214
SELECT ALL ( + 85 ) * ( + CAST ( NULL AS INTEGER ) ) + + 25 * + - 62 + - 43 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3215
SELECT NULLIF ( COALESCE ( - + 45, + COALESCE ( - 76, + - 85, + CASE 72 WHEN 41 THEN NULL WHEN NULLIF ( + 35, + COUNT( * ) ) THEN - 37 END * 28, 13 ), 69 * ( 30 ) ), CAST( 73 AS SIGNED ) ) - 7 * 20 AS col2
----
-185

skipif mysql # not compatible
query I rowsort label-3215
SELECT NULLIF ( COALESCE ( - + 45, + COALESCE ( - 76, + - 85, + CASE 72 WHEN 41 THEN NULL WHEN NULLIF ( + 35, + COUNT ( * ) ) THEN - 37 END * 28, 13 ), 69 * ( 30 ) ), CAST ( 73 AS INTEGER ) ) - 7 * 20 AS col2
----
-185

query I rowsort
SELECT DISTINCT 90 + + - 17 + 65
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT 46 - 18 + - 71 * + + 15 - - COUNT( * )
----
-1036

skipif mysql # not compatible
query I rowsort label-3217
SELECT 46 - 18 + - 71 * + + 15 - - COUNT ( * )
----
-1036

query I rowsort
SELECT 56 + 40 - - 36 * 66
----
2472

query I rowsort
SELECT ALL ( + ( 67 ) ) + - + COALESCE ( - 26, + - 8 * - 81, + 87 )
----
93

query II rowsort
SELECT DISTINCT 14 AS col2, + ( + 50 ) * - 80 + + - 41 + - - 76 AS col0
----
14
-3965

query I rowsort
SELECT DISTINCT + 63 + - + CASE WHEN NULL IS NOT NULL THEN + 67 END - - 75
----
NULL

query I rowsort
SELECT DISTINCT - 88 + - 68 AS col1
----
-156

query I rowsort
SELECT ALL + 30 + - - 53 + + ( - 7 ) + - 55 * + 56 AS col1
----
-3004

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT + CASE - 93 WHEN + CASE - 34 WHEN - - 62 THEN 44 + - COUNT( * ) WHEN + CASE - 25 WHEN 37 * 90 THEN NULL WHEN COUNT( * ) / COUNT( ALL 71 ) THEN NULL WHEN - 35 THEN - 31 / + 33 + 91 * + 66 ELSE NULL END * 42 + 98 THEN - ( 3 ) / - 72 END THEN + 18 * 22 ELSE + MIN( - 80 ) END
----
-80

skipif mysql # not compatible
query I rowsort label-3224
SELECT + CASE - 93 WHEN + CASE - 34 WHEN - - 62 THEN 44 + - COUNT ( * ) WHEN + CASE - 25 WHEN 37 * 90 THEN NULL WHEN COUNT ( * ) / COUNT ( ALL 71 ) THEN NULL WHEN - 35 THEN - 31 / + 33 + 91 * + 66 ELSE NULL END * 42 + 98 THEN - ( 3 ) / - 72 END THEN + 18 * 22 ELSE + MIN ( - 80 ) END
----
-80

query I rowsort
SELECT DISTINCT + 8 - + 77 * + 6 AS col1
----
-454

query I rowsort
SELECT ALL - 49 - - - 22 AS col0
----
-71

query II rowsort
SELECT - 33 AS col0, 30 AS col1
----
-33
30

query I rowsort
SELECT ALL ( + + 81 )
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3229
SELECT + COALESCE ( + - 4, + COUNT( * ) ) DIV + 35 * - COUNT( * ) - COALESCE ( + 93, + 22 + MAX( DISTINCT 78 ) )
----
-93

skipif mysql # not compatible
query I rowsort label-3229
SELECT + COALESCE ( + - 4, + COUNT ( * ) ) / + 35 * - COUNT ( * ) - COALESCE ( + 93, + 22 + MAX ( DISTINCT 78 ) )
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3230
SELECT CAST( NULL AS SIGNED ) * 8 + + 17 - 84 + CAST( MIN( DISTINCT 64 ) AS SIGNED ) - + 17 / 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3230
SELECT CAST ( NULL AS INTEGER ) * 8 + + 17 - 84 + CAST ( MIN ( DISTINCT 64 ) AS INTEGER ) - + 17 / 30 AS col0
----
NULL

query II rowsort
SELECT - 17 AS col2, 41 AS col1
----
-17
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3232
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + COUNT( * ) - + 18 * - 8 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3232
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + COUNT ( * ) - + 18 * - 8 col0
----
NULL

query II rowsort
SELECT - 67 AS col0, + 48 * + + 2 + - 49
----
-67
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT ALL + + 31 - - COUNT( * ) * - ( + 98 ) * + 51 + - COUNT( * ) + 83 / - 88 / - CASE ( - 20 ) * CASE 96 * + 36 + + 64 WHEN - 21 * - 83 + COUNT( * ) * COUNT( * ) THEN 21 WHEN - 79 * + 70 THEN NULL WHEN + 51 * - 79 - 71 * - 53 THEN NULL ELSE + 35 / ( NULLIF ( 81, - 72 ) ) END WHEN 13 THEN + 79 - 68 * 16 END + 70 / 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3234
SELECT ALL + + 31 - - COUNT ( * ) * - ( + 98 ) * + 51 + - COUNT ( * ) + 83 / - 88 / - CASE ( - 20 ) * CASE 96 * + 36 + + 64 WHEN - 21 * - 83 + COUNT ( * ) * COUNT ( * ) THEN 21 WHEN - 79 * + 70 THEN NULL WHEN + 51 * - 79 - 71 * - 53 THEN NULL ELSE + 35 / ( NULLIF ( 81, - 72 ) ) END WHEN 13 THEN + 79 - 68 * 16 END + 70 / 28 AS col1
----
NULL

query I rowsort
SELECT 44 * + ( + 98 )
----
4312

query I rowsort
SELECT ALL - NULLIF ( - + 10, - + 20 + + 46 )
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3237
SELECT + ( - 19 ) + - 46 + - CAST( - ( - - 60 ) AS SIGNED ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-3237
SELECT + ( - 19 ) + - 46 + - CAST ( - ( - - 60 ) AS INTEGER ) AS col0
----
-5

query I rowsort
SELECT ALL NULLIF ( - 89, + - 12 * - 58 ) AS col0
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-3239
SELECT DISTINCT - 51 col0, COUNT( * ) AS col2
----
-51
1

skipif mysql # not compatible
query II rowsort label-3239
SELECT DISTINCT - 51 col0, COUNT ( * ) AS col2
----
-51
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3240
SELECT CAST( + 93 AS SIGNED ) * - - COUNT( * ) + + + 12 + + 37 * 45 - + 18 * NULLIF ( 22, - 47 ) * - 43
----
18798

skipif mysql # not compatible
query I rowsort label-3240
SELECT CAST ( + 93 AS INTEGER ) * - - COUNT ( * ) + + + 12 + + 37 * 45 - + 18 * NULLIF ( 22, - 47 ) * - 43
----
18798

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT - 10 * + - 73 * - + 60 * 43 * - 22 + - - MAX( 41 ) + + ( COUNT( 99 ) ) * - 17 AS col2
----
41434824

skipif mysql # not compatible
query I rowsort label-3241
SELECT - 10 * + - 73 * - + 60 * 43 * - 22 + - - MAX ( 41 ) + + ( COUNT ( 99 ) ) * - 17 AS col2
----
41434824

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3242
SELECT DISTINCT - COALESCE ( + SUM( 34 ), 3 + - - 52 + 25 * 25 DIV 35 * COUNT( * ) ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-3242
SELECT DISTINCT - COALESCE ( + SUM ( 34 ), 3 + - - 52 + 25 * 25 / 35 * COUNT ( * ) ) AS col2
----
-34

query I rowsort
SELECT 86 * - - 55 * + - 27 * - + 47 col1
----
6002370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3244
SELECT + 60 * ( - - 2 ) + 83 + + 25 / + 89 * - CASE - CAST( NULL AS SIGNED ) WHEN 38 + 6 THEN MAX( DISTINCT + 73 ) * CAST( NULL AS DECIMAL ) END * - 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3244
SELECT + 60 * ( - - 2 ) + 83 + + 25 / + 89 * - CASE - CAST ( NULL AS INTEGER ) WHEN 38 + 6 THEN MAX ( DISTINCT + 73 ) * CAST ( NULL AS REAL ) END * - 95 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 62 * + 66 AS col1
----
4092

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT ALL ( - SUM( 16 ) ) + - - 46 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL ( - SUM ( 16 ) ) + - - 46 AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3247
SELECT COUNT( * ) + - ( 17 ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-3247
SELECT COUNT ( * ) + - ( 17 ) AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT ALL + COUNT( ALL - + 4 ) + 10 + - COUNT( * ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-3248
SELECT ALL + COUNT ( ALL - + 4 ) + 10 + - COUNT ( * ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT DISTINCT - MAX( - + 14 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-3249
SELECT DISTINCT - MAX ( - + 14 ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT ALL COUNT( * ) + + 15
----
16

skipif mysql # not compatible
query I rowsort label-3250
SELECT ALL COUNT ( * ) + + 15
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-3251
SELECT MIN( + 18 ), 81 AS col1
----
18
81

skipif mysql # not compatible
query II rowsort label-3251
SELECT MIN ( + 18 ), 81 AS col1
----
18
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT ALL - MIN( ALL - 24 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-3252
SELECT ALL - MIN ( ALL - 24 ) AS col0
----
24

query I rowsort
SELECT ALL + 44 + + - 22 * - + 28 AS col2
----
660

query I rowsort
SELECT 1 * + 7 * + + 23 AS col2
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT - 22 * + MIN( ALL - - 34 ) + + 47 * - 59 * - + COUNT( * ) * + 21 AS col0
----
57485

skipif mysql # not compatible
query I rowsort label-3255
SELECT - 22 * + MIN ( ALL - - 34 ) + + 47 * - 59 * - + COUNT ( * ) * + 21 AS col0
----
57485

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT DISTINCT 49 + - COUNT( DISTINCT - 65 )
----
48

skipif mysql # not compatible
query I rowsort label-3256
SELECT DISTINCT 49 + - COUNT ( DISTINCT - 65 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT + MIN( - 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-3257
SELECT + MIN ( - 39 )
----
-39

query I rowsort
SELECT 27 * + NULLIF ( + 50, - 78 + + 99 * AVG ( - - 74 ) ) AS col2
----
1350

query I rowsort
SELECT ALL 1 * - 76 * + 92 AS col0
----
-6992

onlyif mysql # aggregate syntax: 
query II rowsort label-3260
SELECT DISTINCT - 27 + - ( - 50 ) col0, MIN( ALL + ( + 68 ) )
----
23
68

skipif mysql # not compatible
query II rowsort label-3260
SELECT DISTINCT - 27 + - ( - 50 ) col0, MIN ( ALL + ( + 68 ) )
----
23
68

query I rowsort
SELECT ALL - 59 - + 38 AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT + MIN( ALL - 61 ) * 93 + + 86 AS col0
----
-5587

skipif mysql # not compatible
query I rowsort label-3262
SELECT + MIN ( ALL - 61 ) * 93 + + 86 AS col0
----
-5587

query I rowsort
SELECT ALL 29 * + 42 AS col2
----
1218

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT ALL 3 - + + 1 * SUM( - 49 ) col2
----
52

skipif mysql # not compatible
query I rowsort label-3264
SELECT ALL 3 - + + 1 * SUM ( - 49 ) col2
----
52

query I rowsort
SELECT DISTINCT + ( - 37 )
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3266
SELECT ALL - 9 * - + COUNT( * ) * + - 38 AS col1, - CAST( NULL AS SIGNED ) * + - 73
----
-342
NULL

skipif mysql # not compatible
query II rowsort label-3266
SELECT ALL - 9 * - + COUNT ( * ) * + - 38 AS col1, - CAST ( NULL AS INTEGER ) * + - 73
----
-342
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3267
SELECT + 17 - 79 AS col1, - 7 + COUNT( * ) AS col2
----
-62
-6

skipif mysql # not compatible
query II rowsort label-3267
SELECT + 17 - 79 AS col1, - 7 + COUNT ( * ) AS col2
----
-62
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3268
SELECT + COUNT( DISTINCT + + 42 ) / - 46 + - CAST( NULL AS SIGNED ) * 74
----
NULL

skipif mysql # not compatible
query I rowsort label-3268
SELECT + COUNT ( DISTINCT + + 42 ) / - 46 + - CAST ( NULL AS INTEGER ) * 74
----
NULL

query I rowsort
SELECT + + 82 + + - 14 - + 14
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3270
SELECT DISTINCT CASE CAST( + MIN( + 83 ) AS DECIMAL ) WHEN - + 47 THEN NULL WHEN + - CAST( + - 45 AS SIGNED ) THEN + NULLIF ( + NULLIF ( 57, CAST( 85 AS SIGNED ) / - CAST( 51 / + ( + COUNT( * ) ) AS SIGNED ) ), - 19 ) * 62 ELSE + COUNT( * ) END AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3270
SELECT DISTINCT CASE CAST ( + MIN ( + 83 ) AS REAL ) WHEN - + 47 THEN NULL WHEN + - CAST ( + - 45 AS INTEGER ) THEN + NULLIF ( + NULLIF ( 57, CAST ( 85 AS INTEGER ) / - CAST ( 51 / + ( + COUNT ( * ) ) AS INTEGER ) ), - 19 ) * 62 ELSE + COUNT ( * ) END AS col2
----
1

query I rowsort
SELECT + - 12 * + + 58 * + 23 - 8 AS col1
----
-16016

query II rowsort
SELECT - - 7 + + ( 41 ) col1, + 32
----
48
32

onlyif mysql # aggregate syntax: 
query II rowsort label-3273
SELECT ALL - ( - COUNT( * ) ) AS col1, 24
----
1
24

skipif mysql # not compatible
query II rowsort label-3273
SELECT ALL - ( - COUNT ( * ) ) AS col1, 24
----
1
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT + - 63 - ( + CASE - + COUNT( * ) WHEN 98 * - 64 + + 83 THEN - 46 ELSE 79 * 28 END ) * 76 AS col1
----
-168175

skipif mysql # not compatible
query I rowsort label-3274
SELECT + - 63 - ( + CASE - + COUNT ( * ) WHEN 98 * - 64 + + 83 THEN - 46 ELSE 79 * 28 END ) * 76 AS col1
----
-168175

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT DISTINCT + COALESCE ( CASE + - 56 WHEN + - 50 THEN NULL WHEN ( - COUNT( * ) ) THEN NULL WHEN COUNT( * ) + + 62 THEN NULL WHEN 35 THEN NULL ELSE + 75 END, 3 + + 4 * 16 ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-3275
SELECT DISTINCT + COALESCE ( CASE + - 56 WHEN + - 50 THEN NULL WHEN ( - COUNT ( * ) ) THEN NULL WHEN COUNT ( * ) + + 62 THEN NULL WHEN 35 THEN NULL ELSE + 75 END, 3 + + 4 * 16 ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT ALL - COUNT( * ) * - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3276
SELECT ALL - COUNT ( * ) * - COUNT ( * ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3277
SELECT ALL CASE WHEN NOT 74 IS NULL THEN + 63 WHEN NULL = ( + 19 DIV + + NULLIF ( 72, + 98 * 10 ) ) THEN NULL END DIV ( - 71 * + 16 )
----
0

skipif mysql # not compatible
query I rowsort label-3277
SELECT ALL CASE WHEN NOT 74 IS NULL THEN + 63 WHEN NULL = ( + 19 / + + NULLIF ( 72, + 98 * 10 ) ) THEN NULL END / ( - 71 * + 16 )
----
0

query I rowsort
SELECT + 42 * + + 14 AS col0
----
588

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT + COUNT( * ) + - 79
----
-78

skipif mysql # not compatible
query I rowsort label-3279
SELECT + COUNT ( * ) + - 79
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT ALL - COUNT( * ) * ( 54 ) * + ( + SUM( ALL - 97 ) )
----
5238

skipif mysql # not compatible
query I rowsort label-3280
SELECT ALL - COUNT ( * ) * ( 54 ) * + ( + SUM ( ALL - 97 ) )
----
5238

onlyif mysql # DIV for integer division: 
query I rowsort label-3281
SELECT + 86 DIV 32 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3281
SELECT + 86 / 32 AS col1
----
2

query I rowsort
SELECT - 92 * + + 36 AS col0
----
-3312

onlyif mysql # aggregate syntax: 
query II rowsort label-3283
SELECT + 3 * - ( + - 57 ) * + 20, - COUNT( * ) * + + 53 AS col1
----
3420
-53

skipif mysql # not compatible
query II rowsort label-3283
SELECT + 3 * - ( + - 57 ) * + 20, - COUNT ( * ) * + + 53 AS col1
----
3420
-53

query I rowsort
SELECT + ( 92 )
----
92

query I rowsort
SELECT ( - - 11 ) AS col2
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3286
SELECT ALL + ( 13 ) * - - 23 + - 30 DIV COUNT( * ) + + 44 AS col2
----
313

skipif mysql # not compatible
query I rowsort label-3286
SELECT ALL + ( 13 ) * - - 23 + - 30 / COUNT ( * ) + + 44 AS col2
----
313

onlyif mysql # aggregate syntax: 
query II rowsort label-3287
SELECT ( + - NULLIF ( - 60, + 82 * - + COUNT( * ) * + + 97 ) ) AS col1, + 25 - + + COUNT( * )
----
60
24

skipif mysql # not compatible
query II rowsort label-3287
SELECT ( + - NULLIF ( - 60, + 82 * - + COUNT ( * ) * + + 97 ) ) AS col1, + 25 - + + COUNT ( * )
----
60
24

query I rowsort
SELECT ALL 6 * - - 65 + - 6
----
384

onlyif mysql # DIV for integer division: 
query I rowsort label-3289
SELECT - 56 DIV + 66 col1
----
0

skipif mysql # not compatible
query I rowsort label-3289
SELECT - 56 / + 66 col1
----
0

query I rowsort
SELECT ( 70 ) AS col0
----
70

query I rowsort
SELECT ALL - 65 * - 14 + + 60 AS col1
----
970

query I rowsort
SELECT DISTINCT - 85 * + - 69 AS col1
----
5865

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3293
SELECT NULLIF ( 70, - CAST( 17 AS SIGNED ) + - 17 )
----
70

skipif mysql # not compatible
query I rowsort label-3293
SELECT NULLIF ( 70, - CAST ( 17 AS INTEGER ) + - 17 )
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3294
SELECT ALL - 12 / CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3294
SELECT ALL - 12 / CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT - 26 * 71 AS col0
----
-1846

onlyif mysql # DIV for integer division: 
query I rowsort label-3296
SELECT - 42 * + - 23 + + 20 DIV - 68
----
966

skipif mysql # not compatible
query I rowsort label-3296
SELECT - 42 * + - 23 + + 20 / - 68
----
966

query I rowsort
SELECT ALL - 99 * - 45 + - - 8 AS col1
----
4463

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT + SUM( ALL - 19 ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-3298
SELECT + SUM ( ALL - 19 ) AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT DISTINCT + CASE - COUNT( * ) WHEN 84 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3299
SELECT DISTINCT + CASE - COUNT ( * ) WHEN 84 THEN - COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL - 13 * - + 29 AS col1
----
377

onlyif mysql # DIV for integer division: 
query I rowsort label-3301
SELECT - 66 + 55 DIV - + 41 + 4 * - + 37 AS col2
----
-215

skipif mysql # not compatible
query I rowsort label-3301
SELECT - 66 + 55 / - + 41 + 4 * - + 37 AS col2
----
-215

query I rowsort
SELECT - 98 * - - 30 + + - 6
----
-2946

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3303
SELECT DISTINCT - 23 * + CAST( - - 80 AS SIGNED ) AS col1
----
-1840

skipif mysql # not compatible
query I rowsort label-3303
SELECT DISTINCT - 23 * + CAST ( - - 80 AS INTEGER ) AS col1
----
-1840

query I rowsort
SELECT DISTINCT + CASE + 67 WHEN - 76 + + 31 THEN - - 71 * + 30 + - 0 WHEN + 21 THEN 8 / 65 ELSE - 40 + ( 56 + ( 94 ) ) * 7 END
----
1010

query II rowsort
SELECT ALL - 13 * 25 * + + 50, 84 AS col2
----
-16250
84

onlyif mysql # aggregate syntax: 
query II rowsort label-3306
SELECT ALL + - NULLIF ( - + 3, + - COUNT( * ) ), 21 col1
----
3
21

skipif mysql # not compatible
query II rowsort label-3306
SELECT ALL + - NULLIF ( - + 3, + - COUNT ( * ) ), 21 col1
----
3
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3307
SELECT - 1 + - + 0 + - - 42 * 20 * + 91 * - - NULLIF ( COALESCE ( + 72, 93 DIV + 98 + 67, COUNT( * ) ), MAX( - 47 ) ) + - 29 * - 90
----
5506289

skipif mysql # not compatible
query I rowsort label-3307
SELECT - 1 + - + 0 + - - 42 * 20 * + 91 * - - NULLIF ( COALESCE ( + 72, 93 / + 98 + 67, COUNT ( * ) ), MAX ( - 47 ) ) + - 29 * - 90
----
5506289

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT 58 * + + CASE COUNT( * ) WHEN 7 + + 93 THEN + - 33 WHEN ( + 54 ) THEN NULL END + 76 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3308
SELECT 58 * + + CASE COUNT ( * ) WHEN 7 + + 93 THEN + - 33 WHEN ( + 54 ) THEN NULL END + 76 AS col2
----
NULL

query I rowsort
SELECT + - 53 - - COALESCE ( 28, + - 4 - - + 44 ) AS col0
----
-25

query I rowsort
SELECT - + 42 * 38
----
-1596

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT + + COUNT( * ) * + 76 + + - COUNT( * ) + - 83 * + - 60 * 26 AS col2
----
129555

skipif mysql # not compatible
query I rowsort label-3311
SELECT + + COUNT ( * ) * + 76 + + - COUNT ( * ) + - 83 * + - 60 * 26 AS col2
----
129555

query I rowsort
SELECT + - 17 + - - 13 * ( 76 )
----
971

query I rowsort
SELECT - - 15 + - - 62 AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT + - COUNT( * ) * 71 * + 37 AS col1
----
-2627

skipif mysql # not compatible
query I rowsort label-3314
SELECT + - COUNT ( * ) * 71 * + 37 AS col1
----
-2627

query I rowsort
SELECT ALL + ( - + 76 ) * + 60 * - 8 + + + 68 + + + 2 + + 2 + + 61 + 0 * 47
----
36613

query I rowsort
SELECT + + 40 + + 17 * - 15 * - - 29
----
-7355

query I rowsort
SELECT + - 76 + + - 20 AS col2
----
-96

query II rowsort
SELECT ALL - 42 col1, 14 * - - 52 + + 15 col1
----
-42
743

query I rowsort
SELECT DISTINCT 88 + 31 AS col2
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT + 62 + + COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-3320
SELECT + 62 + + COUNT ( * )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT ALL 74 + - COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-3321
SELECT ALL 74 + - COUNT ( * )
----
73

query I rowsort
SELECT + 80 + 67 + 83
----
230

query I rowsort
SELECT ALL 86 + 2
----
88

query I rowsort
SELECT + 56 + - + 44 - - 15 AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT ALL - 17 * - COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-3325
SELECT ALL - 17 * - COUNT ( * )
----
17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3326
SELECT 80 * + 43 + - + ( - - 31 ) + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3326
SELECT 80 * + 43 + - + ( - - 31 ) + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3327
SELECT ALL - 21 DIV + 77 + - 19 * - + 46 AS col1
----
874

skipif mysql # not compatible
query I rowsort label-3327
SELECT ALL - 21 / + 77 + - 19 * - + 46 AS col1
----
874

query I rowsort
SELECT DISTINCT - ( - 18 ) * 54 AS col0
----
972

onlyif mysql # DIV for integer division: 
query I rowsort label-3329
SELECT ALL 91 * 43 DIV 67 col0
----
58

skipif mysql # not compatible
query I rowsort label-3329
SELECT ALL 91 * 43 / 67 col0
----
58

query I rowsort
SELECT + 14 * - + 70 * 32 AS col2
----
-31360

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT - 13 * - SUM( ALL 10 ) * - 4 - + 61 + + 64 - - 87 * + + SUM( + CASE 93 WHEN 39 THEN NULL WHEN 74 * 72 + - 31 THEN 14 END ) + 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3331
SELECT - 13 * - SUM ( ALL 10 ) * - 4 - + 61 + + 64 - - 87 * + + SUM ( + CASE 93 WHEN 39 THEN NULL WHEN 74 * 72 + - 31 THEN 14 END ) + 58 AS col1
----
NULL

query I rowsort
SELECT + 49 * + 98
----
4802

onlyif mysql # DIV for integer division: 
query I rowsort label-3333
SELECT 45 DIV + 34 + 83
----
84

skipif mysql # not compatible
query I rowsort label-3333
SELECT 45 / + 34 + 83
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT ALL - 9 - + ( - SUM( - - 28 ) )
----
19

skipif mysql # not compatible
query I rowsort label-3334
SELECT ALL - 9 - + ( - SUM ( - - 28 ) )
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-3335
SELECT DISTINCT + 9 DIV + - 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3335
SELECT DISTINCT + 9 / + - 71 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT ALL - CASE + - 45 WHEN + 39 / + - 29 + - 92 + - ( 92 ) * + COUNT( * ) THEN + 99 ELSE + 59 END
----
-59

skipif mysql # not compatible
query I rowsort label-3336
SELECT ALL - CASE + - 45 WHEN + 39 / + - 29 + - 92 + - ( 92 ) * + COUNT ( * ) THEN + 99 ELSE + 59 END
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3337
SELECT - 94 * - COUNT( * ) * + CAST( NULL AS SIGNED ) * 98 + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-3337
SELECT - 94 * - COUNT ( * ) * + CAST ( NULL AS INTEGER ) * 98 + 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT ( + 83 ) * - - COUNT( * ) * + 20 * - 0 + 49
----
49

skipif mysql # not compatible
query I rowsort label-3338
SELECT ( + 83 ) * - - COUNT ( * ) * + 20 * - 0 + 49
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3339
SELECT + 68 + - 96, - 53 * + 61 * - + CASE COALESCE ( + - CAST( NULL AS DECIMAL ), - 79 - - + 27 ) WHEN - 3 + 72 * + COALESCE ( + 82 - ( - 39 ), - 35, + COUNT( * ) * - NULLIF ( + 32, - 72 * 9 - + MIN( + CAST( NULL AS SIGNED ) ) ) ) THEN 71 * - CAST( NULL AS DECIMAL ) END * + 81 AS col2
----
-28
NULL

skipif mysql # not compatible
query II rowsort label-3339
SELECT + 68 + - 96, - 53 * + 61 * - + CASE COALESCE ( + - CAST ( NULL AS REAL ), - 79 - - + 27 ) WHEN - 3 + 72 * + COALESCE ( + 82 - ( - 39 ), - 35, + COUNT ( * ) * - NULLIF ( + 32, - 72 * 9 - + MIN ( + CAST ( NULL AS INTEGER ) ) ) ) THEN 71 * - CAST ( NULL AS REAL ) END * + 81 AS col2
----
-28
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3340
SELECT DISTINCT - 68 * + COUNT( * ) - 72 + - - 91 AS col0, + 13 AS col1
----
-49
13

skipif mysql # not compatible
query II rowsort label-3340
SELECT DISTINCT - 68 * + COUNT ( * ) - 72 + - - 91 AS col0, + 13 AS col1
----
-49
13

query II rowsort
SELECT DISTINCT - - 45 * + 44 AS col2, 55 + + + 33 AS col1
----
1980
88

query II rowsort
SELECT DISTINCT + - 83 + 94, 35 AS col0
----
11
35

query I rowsort
SELECT 29 * - 58 * - 90 AS col1
----
151380

query I rowsort
SELECT ALL - 24 + - + 93
----
-117

query I rowsort
SELECT ALL + 66 + + 22 + - 82 * - - 30 * - 20 AS col0
----
49288

onlyif mysql # aggregate syntax: 
query I rowsort label-3346
SELECT DISTINCT - - 70 * - COUNT( * ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-3346
SELECT DISTINCT - - 70 * - COUNT ( * ) AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT - ( MAX( DISTINCT 7 ) )
----
-7

skipif mysql # not compatible
query I rowsort label-3347
SELECT - ( MAX ( DISTINCT 7 ) )
----
-7

query I rowsort
SELECT ( 49 ) + - 27 AS col2
----
22

query II rowsort
SELECT - 93 + + 89, + 2 + - 36 AS col2
----
-4
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT 98 + + ( - COUNT( * ) ) + - 94 - + 29
----
-26

skipif mysql # not compatible
query I rowsort label-3350
SELECT 98 + + ( - COUNT ( * ) ) + - 94 - + 29
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3351
SELECT - 60 DIV - MAX( + - 90 )
----
0

skipif mysql # not compatible
query I rowsort label-3351
SELECT - 60 / - MAX ( + - 90 )
----
0

query I rowsort
SELECT 47 - - 19 AS col1
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-3353
SELECT DISTINCT + 30 DIV - + 96 * - - 34 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3353
SELECT DISTINCT + 30 / - + 96 * - - 34 AS col0
----
0

query II rowsort
SELECT ALL ( - 94 ) * - 30, 22 * + 94 col0
----
2820
2068

query I rowsort
SELECT DISTINCT - ( + - 9 ) + - ( + + 91 ) + 92
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT DISTINCT + COUNT( * ) * 97 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-3356
SELECT DISTINCT + COUNT ( * ) * 97 AS col0
----
97

query I rowsort
SELECT 37 * 59
----
2183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3358
SELECT DISTINCT 32 - - CAST( + 65 AS SIGNED ) + - COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-3358
SELECT DISTINCT 32 - - CAST ( + 65 AS INTEGER ) + - COUNT ( * )
----
96

query I rowsort
SELECT DISTINCT 72 * - 20 col1
----
-1440

query II rowsort
SELECT DISTINCT - 94 AS col1, + 37
----
-94
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT - 90 * + 8 * + 6 + COUNT( * )
----
-4319

skipif mysql # not compatible
query I rowsort label-3361
SELECT - 90 * + 8 * + 6 + COUNT ( * )
----
-4319

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3362
SELECT COUNT( - 17 ) DIV + 68 + + 1 + - - ( - 34 ), COUNT( * ) AS col0
----
-33
1

skipif mysql # not compatible
query II rowsort label-3362
SELECT COUNT ( - 17 ) / + 68 + + 1 + - - ( - 34 ), COUNT ( * ) AS col0
----
-33
1

query I rowsort
SELECT 44 + - 24 * - - 51
----
-1180

query I rowsort
SELECT - 66 * 52
----
-3432

query I rowsort
SELECT 75 + - - 84 AS col2
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT - 19 + - 28 + CASE - AVG ( 40 ) WHEN COUNT( * ) - - + 16 THEN NULL WHEN - + NULLIF ( + ( NULLIF ( 97, - 75 ) ), + COUNT( * ) + - 36 ) - 51 THEN + 23 WHEN 98 * + 70 + - 90 THEN NULL ELSE NULL END * 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3366
SELECT - 19 + - 28 + CASE - AVG ( 40 ) WHEN COUNT ( * ) - - + 16 THEN NULL WHEN - + NULLIF ( + ( NULLIF ( 97, - 75 ) ), + COUNT ( * ) + - 36 ) - 51 THEN + 23 WHEN 98 * + 70 + - 90 THEN NULL ELSE NULL END * 34 AS col0
----
NULL

query I rowsort
SELECT + ( + 4 ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT NULLIF ( + 66, 62 ) + + 89 + - COUNT( * )
----
154

skipif mysql # not compatible
query I rowsort label-3368
SELECT NULLIF ( + 66, 62 ) + + 89 + - COUNT ( * )
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT ALL + 95 + COUNT( * ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-3369
SELECT ALL + 95 + COUNT ( * ) AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT DISTINCT 20 + + + COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-3370
SELECT DISTINCT 20 + + + COUNT ( * )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT 31 * + - 57 + - COUNT( * )
----
-1768

skipif mysql # not compatible
query I rowsort label-3371
SELECT 31 * + - 57 + - COUNT ( * )
----
-1768

query I rowsort
SELECT + 99 + - - ( + 50 )
----
149

onlyif mysql # aggregate syntax: 
query II rowsort label-3373
SELECT - ( - ( COUNT( * ) ) ) - 64 * - 22 AS col1, MAX( ALL - - 21 ) AS col1
----
1409
21

skipif mysql # not compatible
query II rowsort label-3373
SELECT - ( - ( COUNT ( * ) ) ) - 64 * - 22 AS col1, MAX ( ALL - - 21 ) AS col1
----
1409
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3374
SELECT ALL + - 80 DIV COUNT( * ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-3374
SELECT ALL + - 80 / COUNT ( * ) AS col2
----
-80

query II rowsort
SELECT - 87 AS col2, - 90 col1
----
-87
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT DISTINCT + MIN( DISTINCT + 45 ) + 58
----
103

skipif mysql # not compatible
query I rowsort label-3376
SELECT DISTINCT + MIN ( DISTINCT + 45 ) + 58
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3377
SELECT CAST( NULL AS SIGNED ) AS col0, - 40 + + 41 AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3377
SELECT CAST ( NULL AS INTEGER ) AS col0, - 40 + + 41 AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT ALL - - COUNT( * ) + - 67
----
-66

skipif mysql # not compatible
query I rowsort label-3378
SELECT ALL - - COUNT ( * ) + - 67
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3379
SELECT ALL - NULLIF ( - + 86, - 44 + + ( - 53 ) / CAST( NULL AS SIGNED ) ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-3379
SELECT ALL - NULLIF ( - + 86, - 44 + + ( - 53 ) / CAST ( NULL AS INTEGER ) ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT ALL + - CASE + + 58 WHEN - COUNT( * ) THEN - 67 ELSE 12 END * + 6 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-3380
SELECT ALL + - CASE + + 58 WHEN - COUNT ( * ) THEN - 67 ELSE 12 END * + 6 AS col1
----
-72

query I rowsort
SELECT ALL + + 75 + + 96
----
171

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3382
SELECT ALL - - COUNT( * ) + + 98 DIV - 97 + 54
----
54

skipif mysql # not compatible
query I rowsort label-3382
SELECT ALL - - COUNT ( * ) + + 98 / - 97 + 54
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-3383
SELECT ALL - COUNT( * ) - - 25 + 33 * + 39 * 67 + + + COUNT( - 0 ) AS col0, - 82
----
86254
-82

skipif mysql # not compatible
query II rowsort label-3383
SELECT ALL - COUNT ( * ) - - 25 + 33 * + 39 * 67 + + + COUNT ( - 0 ) AS col0, - 82
----
86254
-82

query I rowsort
SELECT 2 + + 69 AS col0
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-3385
SELECT 11 + COUNT( * ) AS col1, - 22 * + - 56
----
12
1232

skipif mysql # not compatible
query II rowsort label-3385
SELECT 11 + COUNT ( * ) AS col1, - 22 * + - 56
----
12
1232

onlyif mysql # aggregate syntax: 
query II rowsort label-3386
SELECT ALL COUNT( * ) AS col1, 55 + - - 52 col2
----
1
107

skipif mysql # not compatible
query II rowsort label-3386
SELECT ALL COUNT ( * ) AS col1, 55 + - - 52 col2
----
1
107

query I rowsort
SELECT 21 * + 53 AS col2
----
1113

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT 27 + 86 * + + CASE + - 65 WHEN 70 - SUM( + + 91 ) + - 70 * 14 - 49 * 68 * - 55 THEN 97 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3388
SELECT 27 + 86 * + + CASE + - 65 WHEN 70 - SUM ( + + 91 ) + - 70 * 14 - 49 * 68 * - 55 THEN 97 ELSE NULL END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3389
SELECT DISTINCT + 72 DIV + + CAST( 82 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3389
SELECT DISTINCT + 72 / + + CAST ( 82 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT DISTINCT SUM( + 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3390
SELECT DISTINCT SUM ( + 0 ) AS col0
----
0

query II rowsort
SELECT ALL 37 * + 94 col2, COALESCE ( - + 2, + 18 + - 54, 48 )
----
3478
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3392
SELECT ALL + COUNT( 48 ) DIV + MIN( 19 ) * - + 2 * ( 77 ) - - - COUNT( * ) + - + 15 * + + 56 * COALESCE ( - COALESCE ( COUNT( * ), 81 DIV + 53, - 13 ), 21 + 80, 97 DIV + ( - CAST( 44 AS SIGNED ) * - AVG ( ALL 95 ) ) + MIN( DISTINCT 37 ) ) AS col1
----
839

skipif mysql # not compatible
query I rowsort label-3392
SELECT ALL + COUNT ( 48 ) / + MIN ( 19 ) * - + 2 * ( 77 ) - - - COUNT ( * ) + - + 15 * + + 56 * COALESCE ( - COALESCE ( COUNT ( * ), 81 / + 53, - 13 ), 21 + 80, 97 / + ( - CAST ( 44 AS INTEGER ) * - AVG ( ALL 95 ) ) + MIN ( DISTINCT 37 ) ) AS col1
----
839

query I rowsort
SELECT ALL 31 * - 45 * 50 AS col1
----
-69750

query I rowsort
SELECT ALL - 55 * 36
----
-1980

query I rowsort
SELECT - 7 * 3
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-3396
SELECT 82 DIV ( 77 ) + + 56 col1
----
57

skipif mysql # not compatible
query I rowsort label-3396
SELECT 82 / ( 77 ) + + 56 col1
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3397
SELECT COALESCE ( + 66, + 81 + - 20 + 33 DIV - 78 * - 74 + - 60 + - COUNT( * ) DIV + COUNT( - 97 ) ) col1
----
66

skipif mysql # not compatible
query I rowsort label-3397
SELECT COALESCE ( + 66, + 81 + - 20 + 33 / - 78 * - 74 + - 60 + - COUNT ( * ) / + COUNT ( - 97 ) ) col1
----
66

query I rowsort
SELECT ALL 95 * - 43 AS col2
----
-4085

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT COALESCE ( + 49, COUNT( * ), - 24 )
----
49

skipif mysql # not compatible
query I rowsort label-3399
SELECT COALESCE ( + 49, COUNT ( * ), - 24 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT ( - 77 ) * 64 + COUNT( * ) * + NULLIF ( - 94, - COUNT( ALL - ( 48 ) ) * 93 * + 50 * + 4 )
----
-5022

skipif mysql # not compatible
query I rowsort label-3400
SELECT ( - 77 ) * 64 + COUNT ( * ) * + NULLIF ( - 94, - COUNT ( ALL - ( 48 ) ) * 93 * + 50 * + 4 )
----
-5022

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3401
SELECT ALL 54 * - - 63 + - ( + + MAX( - 94 ) ) * 42 * - COUNT( * ) / - 73 * + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3401
SELECT ALL 54 * - - 63 + - ( + + MAX ( - 94 ) ) * 42 * - COUNT ( * ) / - 73 * + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3402
SELECT DISTINCT + - 25, COUNT( * ) AS col0
----
-25
1

skipif mysql # not compatible
query II rowsort label-3402
SELECT DISTINCT + - 25, COUNT ( * ) AS col0
----
-25
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT ALL + 90 * + 91 * + - 7 - - - COUNT( * )
----
-57331

skipif mysql # not compatible
query I rowsort label-3403
SELECT ALL + 90 * + 91 * + - 7 - - - COUNT ( * )
----
-57331

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3404
SELECT ALL - 88 * + - CAST( NULL AS SIGNED ) + + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-3404
SELECT ALL - 88 * + - CAST ( NULL AS INTEGER ) + + 32
----
NULL

query I rowsort
SELECT + - 30 * - 34 AS col0
----
1020

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3406
SELECT ALL - - 54 * - + 28 * + CAST( - - 85 AS SIGNED ) + 44 * 33 + - - 10 + + 39 AS col2
----
-127019

skipif mysql # not compatible
query I rowsort label-3406
SELECT ALL - - 54 * - + 28 * + CAST ( - - 85 AS INTEGER ) + 44 * 33 + - - 10 + + 39 AS col2
----
-127019

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT ALL - SUM( DISTINCT 79 ) * 63 + 78 + - 2 + ( 65 )
----
-4836

skipif mysql # not compatible
query I rowsort label-3407
SELECT ALL - SUM ( DISTINCT 79 ) * 63 + 78 + - 2 + ( 65 )
----
-4836

query II rowsort
SELECT - 43, 60 AS col0
----
-43
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3409
SELECT + SUM( DISTINCT - 69 ) DIV 95 DIV + 59 * + 88
----
0

skipif mysql # not compatible
query I rowsort label-3409
SELECT + SUM ( DISTINCT - 69 ) / 95 / + 59 * + 88
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3410
SELECT ALL + MAX( + 41 ) * 71 + 0 + - 63 * - COALESCE ( - 86, CAST( NULL AS SIGNED ) ) * ( + MIN( ALL - CASE - CAST( - 20 AS SIGNED ) WHEN - COALESCE ( - 15, 48 * - ( - 65 * + 37 ) ) THEN 55 END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3410
SELECT ALL + MAX ( + 41 ) * 71 + 0 + - 63 * - COALESCE ( - 86, CAST ( NULL AS INTEGER ) ) * ( + MIN ( ALL - CASE - CAST ( - 20 AS INTEGER ) WHEN - COALESCE ( - 15, 48 * - ( - 65 * + 37 ) ) THEN 55 END ) )
----
NULL

query I rowsort
SELECT NULLIF ( + COALESCE ( 8, - 71 - 5 * - 92 + - 37, 58 ), + 0 / + - 6 + + 36 - 88 / - 67 )
----
8

query I rowsort
SELECT ALL + + NULLIF ( + + 86, - 78 ) * + - 56 + + + 31 * 78
----
-2398

onlyif mysql # aggregate syntax: 
query II rowsort label-3413
SELECT + - COUNT( * ), - COUNT( * ) * - 39 + - + 54 col2
----
-1
-15

skipif mysql # not compatible
query II rowsort label-3413
SELECT + - COUNT ( * ), - COUNT ( * ) * - 39 + - + 54 col2
----
-1
-15

query I rowsort
SELECT ALL + + CASE 71 WHEN - - 69 THEN - 99 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3415
SELECT ALL + 23 - + 22 col2, 16 * - + MIN( DISTINCT 86 )
----
1
-1376

skipif mysql # not compatible
query II rowsort label-3415
SELECT ALL + 23 - + 22 col2, 16 * - + MIN ( DISTINCT 86 )
----
1
-1376

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT DISTINCT - MAX( ALL + 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-3416
SELECT DISTINCT - MAX ( ALL + 94 )
----
-94

query I rowsort
SELECT ALL - ( + + 53 ) - - 16 AS col1
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-3418
SELECT ALL COUNT( * ) AS col1, + 95 + 72 - - 52 AS col0
----
1
219

skipif mysql # not compatible
query II rowsort label-3418
SELECT ALL COUNT ( * ) AS col1, + 95 + 72 - - 52 AS col0
----
1
219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3419
SELECT - 27 + - + CAST( 6 AS SIGNED )
----
-33

skipif mysql # not compatible
query I rowsort label-3419
SELECT - 27 + - + CAST ( 6 AS INTEGER )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT ALL COUNT( 51 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3420
SELECT ALL COUNT ( 51 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3421
SELECT + 74 DIV + ( 48 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3421
SELECT + 74 / + ( 48 ) AS col1
----
1

query I rowsort
SELECT - 79 * + - ( + 69 )
----
5451

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT ALL CASE - ( + 11 ) WHEN + - SUM( + 51 ) * - 4 + - 95 + 91 * + 90 - 83 THEN MAX( - 90 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3423
SELECT ALL CASE - ( + 11 ) WHEN + - SUM ( + 51 ) * - 4 + - 95 + 91 * + 90 - 83 THEN MAX ( - 90 ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 50 * + + 15
----
750

query I rowsort
SELECT DISTINCT + 68 * + ( - + 24 ) AS col1
----
-1632

onlyif mysql # aggregate syntax: 
query II rowsort label-3426
SELECT - NULLIF ( - - 81, - 90 + - ( COUNT( DISTINCT 49 ) ) * - 26 ) * + 32 AS col2, COUNT( * ) * ( + COUNT( * ) )
----
-2592
1

skipif mysql # not compatible
query II rowsort label-3426
SELECT - NULLIF ( - - 81, - 90 + - ( COUNT ( DISTINCT 49 ) ) * - 26 ) * + 32 AS col2, COUNT ( * ) * ( + COUNT ( * ) )
----
-2592
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT + 90 + + + MIN( ALL 20 ) AS col2
----
110

skipif mysql # not compatible
query I rowsort label-3427
SELECT + 90 + + + MIN ( ALL 20 ) AS col2
----
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3428
SELECT DISTINCT + 68 * - CASE + 80 WHEN - + 26 * + - CASE + 29 WHEN - - 70 THEN + 60 ELSE + + 64 + + 20 END * - 22 THEN + - ( ( - 11 ) ) * + 78 ELSE 87 - - 56 DIV - 77 END DIV COUNT( * )
----
-5916

skipif mysql # not compatible
query I rowsort label-3428
SELECT DISTINCT + 68 * - CASE + 80 WHEN - + 26 * + - CASE + 29 WHEN - - 70 THEN + 60 ELSE + + 64 + + 20 END * - 22 THEN + - ( ( - 11 ) ) * + 78 ELSE 87 - - 56 / - 77 END / COUNT ( * )
----
-5916

onlyif mysql # aggregate syntax: 
query II rowsort label-3429
SELECT - SUM( DISTINCT - 58 ), - ( 84 ) + ( + MAX( ALL + 38 ) ) + + 75 AS col0
----
58
29

skipif mysql # not compatible
query II rowsort label-3429
SELECT - SUM ( DISTINCT - 58 ), - ( 84 ) + ( + MAX ( ALL + 38 ) ) + + 75 AS col0
----
58
29

query I rowsort
SELECT - 84 * + 86
----
-7224

query I rowsort
SELECT - 89 * + - 36 AS col0
----
3204

query I rowsort
SELECT - 1 - + + 62 + + - 0 - 35 * + - 83
----
2842

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3433
SELECT + COUNT( ALL NULLIF ( + 16, - 72 + CAST( NULL AS SIGNED ) / 80 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3433
SELECT + COUNT ( ALL NULLIF ( + 16, - 72 + CAST ( NULL AS INTEGER ) / 80 ) )
----
1

query I rowsort
SELECT DISTINCT + COALESCE ( + 81, + + 99 )
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3435
SELECT ALL 88 DIV - 59 + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3435
SELECT ALL 88 / - 59 + COUNT ( * ) AS col2
----
0

query I rowsort
SELECT DISTINCT - CASE - 48 WHEN + 27 THEN 33 + + 1 END / + 13 + 82 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3437
SELECT DISTINCT + + ( + + 43 ), 26 DIV 40 DIV + 14 + NULLIF ( - 22, 34 * 54 + - COUNT( * ) * 72 * - + 32 + + 87 ) AS col1
----
43
-22

skipif mysql # not compatible
query II rowsort label-3437
SELECT DISTINCT + + ( + + 43 ), 26 / 40 / + 14 + NULLIF ( - 22, 34 * 54 + - COUNT ( * ) * 72 * - + 32 + + 87 ) AS col1
----
43
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-3438
SELECT ALL - - 76 DIV + 37 + 99 + + 65 + 80 AS col0
----
246

skipif mysql # not compatible
query I rowsort label-3438
SELECT ALL - - 76 / + 37 + 99 + + 65 + 80 AS col0
----
246

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3439
SELECT - - 42 - + 31 + - 75 DIV - CAST( 88 AS SIGNED ) + 41 DIV - - COUNT( * ) + + 60 AS col0
----
112

skipif mysql # not compatible
query I rowsort label-3439
SELECT - - 42 - + 31 + - 75 / - CAST ( 88 AS INTEGER ) + 41 / - - COUNT ( * ) + + 60 AS col0
----
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3440
SELECT + + 48 * - COUNT( * ) + - 56 - - 61 DIV + 6 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-3440
SELECT + + 48 * - COUNT ( * ) + - 56 - - 61 / + 6 AS col0
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3441
SELECT - 81 + - 17 + - + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3441
SELECT - 81 + - 17 + - + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3442
SELECT ALL + 26 DIV + 23 + + 88
----
89

skipif mysql # not compatible
query I rowsort label-3442
SELECT ALL + 26 / + 23 + + 88
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT + + COALESCE ( - 5, - COUNT( * ) * - + 23 ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-3443
SELECT + + COALESCE ( - 5, - COUNT ( * ) * - + 23 ) AS col1
----
-5

query I rowsort
SELECT DISTINCT + ( - 57 ) * + 65 col2
----
-3705

query I rowsort
SELECT ALL + 97 * 24 * 19 * ( 96 ) - - + 46
----
4246318

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT - - 47 * ( + MIN( 65 ) ) + + 37 + - 34 + - ( + 19 ) * 82 * - 47
----
76284

skipif mysql # not compatible
query I rowsort label-3446
SELECT - - 47 * ( + MIN ( 65 ) ) + + 37 + - 34 + - ( + 19 ) * 82 * - 47
----
76284

query I rowsort
SELECT ALL - 90 * 25 - ( - - 4 ) + + - 48
----
-2302

onlyif mysql # DIV for integer division: 
query II rowsort label-3448
SELECT + 40 * 91 col2, + 99 DIV ( + + 52 ) * - 56 * + 84 AS col1
----
3640
-4704

skipif mysql # not compatible
query II rowsort label-3448
SELECT + 40 * 91 col2, + 99 / ( + + 52 ) * - 56 * + 84 AS col1
----
3640
-4704

query I rowsort
SELECT DISTINCT 9 * - 40 AS col0
----
-360

query I rowsort
SELECT ALL + 96 * + NULLIF ( 78, 52 / - + 58 * - + 37 ) * 0 - 8 + + 94 + 23 * + NULLIF ( + 72, + ( 16 ) * - 73 ) AS col1
----
1742

query I rowsort
SELECT DISTINCT 27 * - + 85
----
-2295

query I rowsort
SELECT ALL 62 * - 47 AS col0
----
-2914

query I rowsort
SELECT DISTINCT 73 * - 82
----
-5986

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3454
SELECT 75 + - 72 * - - NULLIF ( - + 99, - 74 * - 75 ) + + COUNT( * ) + - 57 col1, - NULLIF ( + 7, - + 13 - - + 17 + + CAST( - 85 AS SIGNED ) * 15 ) AS col1
----
7147
-7

skipif mysql # not compatible
query II rowsort label-3454
SELECT 75 + - 72 * - - NULLIF ( - + 99, - 74 * - 75 ) + + COUNT ( * ) + - 57 col1, - NULLIF ( + 7, - + 13 - - + 17 + + CAST ( - 85 AS INTEGER ) * 15 ) AS col1
----
7147
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3455
SELECT COUNT( * ) DIV + 49 col2
----
0

skipif mysql # not compatible
query I rowsort label-3455
SELECT COUNT ( * ) / + 49 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3456
SELECT 81 DIV + - 32
----
-2

skipif mysql # not compatible
query I rowsort label-3456
SELECT 81 / + - 32
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3457
SELECT ALL 96 + COUNT( * ) - COUNT( * ) / - CAST( NULL AS SIGNED ) + - 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3457
SELECT ALL 96 + COUNT ( * ) - COUNT ( * ) / - CAST ( NULL AS INTEGER ) + - 51 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3458
SELECT DISTINCT - 10 DIV - 99 * - MIN( + + 56 ), - 13 - ( + 36 ) col1
----
0
-49

skipif mysql # not compatible
query II rowsort label-3458
SELECT DISTINCT - 10 / - 99 * - MIN ( + + 56 ), - 13 - ( + 36 ) col1
----
0
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT DISTINCT 1 + 95 * - + ( + + COUNT( * ) ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-3459
SELECT DISTINCT 1 + 95 * - + ( + + COUNT ( * ) ) AS col2
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3460
SELECT DISTINCT - 37 + - CASE + COUNT( * ) WHEN - 75 / 76 - - - 22 THEN - 5 + 67 ELSE - COUNT( - ( - CAST( + 55 AS SIGNED ) ) ) END * COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-3460
SELECT DISTINCT - 37 + - CASE + COUNT ( * ) WHEN - 75 / 76 - - - 22 THEN - 5 + 67 ELSE - COUNT ( - ( - CAST ( + 55 AS INTEGER ) ) ) END * COUNT ( * )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT 81 + COUNT( * ) - COUNT( * ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-3461
SELECT 81 + COUNT ( * ) - COUNT ( * ) AS col2
----
81

query I rowsort
SELECT ALL - 20 + - 22
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT DISTINCT - COUNT( * ) * - COALESCE ( + + 51, - ( + 85 ) ) - + COALESCE ( + 48, + 13 * - + 38 + + - COUNT( * ) )
----
3

skipif mysql # not compatible
query I rowsort label-3463
SELECT DISTINCT - COUNT ( * ) * - COALESCE ( + + 51, - ( + 85 ) ) - + COALESCE ( + 48, + 13 * - + 38 + + - COUNT ( * ) )
----
3

query I rowsort
SELECT + + CASE 38 WHEN - 48 * - + 38 * + + CASE - - AVG ( ALL + + 90 ) WHEN NULLIF ( + 44, - 91 * 63 ) THEN + 68 WHEN - 10 * + 48 + - 80 THEN + 28 ELSE 85 * - 25 END THEN - 10 / 48 END
----
NULL

query I rowsort
SELECT ALL - 8 * + 26
----
-208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3466
SELECT 97 / - + ( 17 ) - - CAST( NULL AS SIGNED ) + - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-3466
SELECT 97 / - + ( 17 ) - - CAST ( NULL AS INTEGER ) + - 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT ALL - SUM( DISTINCT - ( - 63 ) ) + 42 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-3467
SELECT ALL - SUM ( DISTINCT - ( - 63 ) ) + 42 AS col2
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3468
SELECT + - CASE - COUNT( * ) WHEN - COALESCE ( - 6, - - COALESCE ( - ( - 22 ), CAST( + 87 AS SIGNED ) * - 62 * + - CAST( + + 32 AS DECIMAL ) * - 13 * 55, - 34 ) ) + 46 THEN + CASE 25 WHEN 75 * + CAST( NULL AS SIGNED ) + + 7 * - MIN( + CAST( NULL AS SIGNED ) ) THEN COALESCE ( - 70, - 4 / 9, COUNT( * ) * - NULLIF ( - COALESCE ( 20, - 40 ), - 95 * - 62 + + 34 ) ) + 2 ELSE 82 - 21 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-3468
SELECT + - CASE - COUNT ( * ) WHEN - COALESCE ( - 6, - - COALESCE ( - ( - 22 ), CAST ( + 87 AS INTEGER ) * - 62 * + - CAST ( + + 32 AS REAL ) * - 13 * 55, - 34 ) ) + 46 THEN + CASE 25 WHEN 75 * + CAST ( NULL AS INTEGER ) + + 7 * - MIN ( + CAST ( NULL AS INTEGER ) ) THEN COALESCE ( - 70, - 4 / 9, COUNT ( * ) * - NULLIF ( - COALESCE ( 20, - 40 ), - 95 * - 62 + + 34 ) ) + 2 ELSE 82 - 21 END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT + COUNT( * ) + COUNT( * ) - + + ( ( + - 77 ) ) + - MAX( + 62 ) + + COUNT( * ) - + 13 * + 42 * + + 90 + - 6 AS col1
----
-49128

skipif mysql # not compatible
query I rowsort label-3469
SELECT + COUNT ( * ) + COUNT ( * ) - + + ( ( + - 77 ) ) + - MAX ( + 62 ) + + COUNT ( * ) - + 13 * + 42 * + + 90 + - 6 AS col1
----
-49128

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT + NULLIF ( 50, - - 86 * + COUNT( * ) + + + 92 )
----
50

skipif mysql # not compatible
query I rowsort label-3470
SELECT + NULLIF ( 50, - - 86 * + COUNT ( * ) + + + 92 )
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3471
SELECT DISTINCT - COUNT( * ) - 96 + + 40 DIV + MAX( ALL 6 ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-3471
SELECT DISTINCT - COUNT ( * ) - 96 + + 40 / + MAX ( ALL 6 ) AS col1
----
-91

query I rowsort
SELECT DISTINCT - COALESCE ( + 48, CASE 25 WHEN - 11 THEN + 7 END )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT ( COUNT( * ) ) * - ( 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-3473
SELECT ( COUNT ( * ) ) * - ( 69 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT + NULLIF ( - 40, + 16 + 87 / + + MIN( + 56 ) * - 10 )
----
-40

skipif mysql # not compatible
query I rowsort label-3474
SELECT + NULLIF ( - 40, + 16 + 87 / + + MIN ( + 56 ) * - 10 )
----
-40

query I rowsort
SELECT ALL + 15 * - - ( - 86 ) * - 35 + + - 65 AS col2
----
45085

onlyif mysql # DIV for integer division: 
query I rowsort label-3476
SELECT 77 DIV - 70 - 48 AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-3476
SELECT 77 / - 70 - 48 AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT - 60 * - COUNT( * ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-3477
SELECT - 60 * - COUNT ( * ) AS col1
----
60

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3478
SELECT ALL - + 6 * 81 DIV 14, AVG ( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col0
----
-34
NULL

skipif mysql # not compatible
query II rowsort label-3478
SELECT ALL - + 6 * 81 / 14, AVG ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col0
----
-34
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT - 4 * + COUNT( * ) - 96
----
-100

skipif mysql # not compatible
query I rowsort label-3479
SELECT - 4 * + COUNT ( * ) - 96
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT 67 * - COUNT( * ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-3480
SELECT 67 * - COUNT ( * ) AS col2
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3481
SELECT DISTINCT - ( 75 ) * SUM( - 52 ) + - + 27 - CASE + - COALESCE ( + - COUNT( * ), + 42 / + + 40 ) WHEN CAST( - + 4 AS SIGNED ) + - ( - 86 ) * - 0 THEN NULL WHEN + ( + 16 ) * - 23 THEN + ( AVG ( 51 ) ) + ( + COALESCE ( - 78, - 46 ) ) END / 13
----
NULL

skipif mysql # not compatible
query I rowsort label-3481
SELECT DISTINCT - ( 75 ) * SUM ( - 52 ) + - + 27 - CASE + - COALESCE ( + - COUNT ( * ), + 42 / + + 40 ) WHEN CAST ( - + 4 AS INTEGER ) + - ( - 86 ) * - 0 THEN NULL WHEN + ( + 16 ) * - 23 THEN + ( AVG ( 51 ) ) + ( + COALESCE ( - 78, - 46 ) ) END / 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT COUNT( * ) + + COUNT( * ) * COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-3482
SELECT COUNT ( * ) + + COUNT ( * ) * COUNT ( * )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3483
SELECT ALL + 23 + - - NULLIF ( ( 17 ), + 83 - COUNT( * ) + + 10 - - 4 * - 35 * - 54 * + CAST( NULL AS SIGNED ) ) * + 19 * - 9 + + - 74 DIV + 8 AS col2
----
-2893

skipif mysql # not compatible
query I rowsort label-3483
SELECT ALL + 23 + - - NULLIF ( ( 17 ), + 83 - COUNT ( * ) + + 10 - - 4 * - 35 * - 54 * + CAST ( NULL AS INTEGER ) ) * + 19 * - 9 + + - 74 / + 8 AS col2
----
-2893

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3484
SELECT ALL - CAST( 13 AS SIGNED ) + 39
----
26

skipif mysql # not compatible
query I rowsort label-3484
SELECT ALL - CAST ( 13 AS INTEGER ) + 39
----
26

query I rowsort
SELECT 32 * + 12 + - 89 AS col0
----
295

query I rowsort
SELECT 36 * 70 AS col0
----
2520

query I rowsort
SELECT 72 + - 32
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3488
SELECT DISTINCT 20 + - NULLIF ( COALESCE ( + - CASE - 45 WHEN MAX( DISTINCT + 62 ) DIV - 15 * - 81 + - + 17 + + 11 * + 98 + + COUNT( + ( - 78 ) ) THEN - 82 END, + 69 * 57 + - 92 DIV 79, + 85 * - COUNT( * ) ), ( AVG ( DISTINCT + 48 ) ) ) col1
----
-3912

skipif mysql # not compatible
query I rowsort label-3488
SELECT DISTINCT 20 + - NULLIF ( COALESCE ( + - CASE - 45 WHEN MAX ( DISTINCT + 62 ) / - 15 * - 81 + - + 17 + + 11 * + 98 + + COUNT ( + ( - 78 ) ) THEN - 82 END, + 69 * 57 + - 92 / 79, + 85 * - COUNT ( * ) ), ( AVG ( DISTINCT + 48 ) ) ) col1
----
-3912

query I rowsort
SELECT ( - 19 ) + 36 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT MIN( DISTINCT + 99 ) * + 97 + - 25 * 84
----
7503

skipif mysql # not compatible
query I rowsort label-3490
SELECT MIN ( DISTINCT + 99 ) * + 97 + - 25 * 84
----
7503

query I rowsort
SELECT DISTINCT + 5 + + + 53 + 22 - 30 * 99 + 67 * + ( - 48 )
----
-6106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3492
SELECT DISTINCT - CAST( - + 9 AS SIGNED ) + 1
----
10

skipif mysql # not compatible
query I rowsort label-3492
SELECT DISTINCT - CAST ( - + 9 AS INTEGER ) + 1
----
10

query I rowsort
SELECT DISTINCT 7 + - 54 + - 99 AS col0
----
-146

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3494
SELECT DISTINCT 66 + + 41 * + ( + 46 ), COUNT( + 37 ) DIV + 88 + + 84 AS col1
----
1952
84

skipif mysql # not compatible
query II rowsort label-3494
SELECT DISTINCT 66 + + 41 * + ( + 46 ), COUNT ( + 37 ) / + 88 + + 84 AS col1
----
1952
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3495
SELECT ALL COUNT( * ) + + 1 DIV - 19 + + 74
----
75

skipif mysql # not compatible
query I rowsort label-3495
SELECT ALL COUNT ( * ) + + 1 / - 19 + + 74
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT DISTINCT 54 * + COUNT( * ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-3496
SELECT DISTINCT 54 * + COUNT ( * ) AS col1
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3497
SELECT 64 DIV + 45 AS col0, 67 * + SUM( - ( 17 ) ) * + 25 - + CAST( NULL AS SIGNED ) + - - 27
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3497
SELECT 64 / + 45 AS col0, 67 * + SUM ( - ( 17 ) ) * + 25 - + CAST ( NULL AS INTEGER ) + - - 27
----
1
NULL

query I rowsort
SELECT ALL 75 - + 95 AS col2
----
-20

query I rowsort
SELECT 13 * + 40
----
520

onlyif mysql # DIV for integer division: 
query II rowsort label-3500
SELECT COALESCE ( + 41, - 54 * 77 ) AS col1, - 79 DIV 85 * + + 84 * - - ( - 0 ) AS col0
----
41
0

skipif mysql # not compatible
query II rowsort label-3500
SELECT COALESCE ( + 41, - 54 * 77 ) AS col1, - 79 / 85 * + + 84 * - - ( - 0 ) AS col0
----
41
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT ALL 2 * - + SUM( ALL - 89 ) * - - ( - - 43 ) + - COUNT( * ) + + - 82 - 10 * + + 34
----
7231

skipif mysql # not compatible
query I rowsort label-3501
SELECT ALL 2 * - + SUM ( ALL - 89 ) * - - ( - - 43 ) + - COUNT ( * ) + + - 82 - 10 * + + 34
----
7231

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT 44 - - + 81 * - + 49 * NULLIF ( - - 51, - MIN( DISTINCT - 27 ) - + 20 + + + 67 ) AS col1
----
-202375

skipif mysql # not compatible
query I rowsort label-3502
SELECT 44 - - + 81 * - + 49 * NULLIF ( - - 51, - MIN ( DISTINCT - 27 ) - + 20 + + + 67 ) AS col1
----
-202375

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT ALL - - 58 * - 60 * + MIN( ALL + 58 ) col1
----
-201840

skipif mysql # not compatible
query I rowsort label-3503
SELECT ALL - - 58 * - 60 * + MIN ( ALL + 58 ) col1
----
-201840

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT + COUNT( DISTINCT - + 83 )
----
1

skipif mysql # not compatible
query I rowsort label-3504
SELECT + COUNT ( DISTINCT - + 83 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT ALL - 24 * + - ( - 22 ) - COUNT( * ) + - 89 * COUNT( * ) + SUM( + - 94 ) + 11 + 66 * + 33 * + 53
----
114733

skipif mysql # not compatible
query I rowsort label-3505
SELECT ALL - 24 * + - ( - 22 ) - COUNT ( * ) + - 89 * COUNT ( * ) + SUM ( + - 94 ) + 11 + 66 * + 33 * + 53
----
114733

query II rowsort
SELECT DISTINCT - - 83 * - - 17, ( 21 ) col1
----
1411
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT SUM( ALL + + 85 )
----
85

skipif mysql # not compatible
query I rowsort label-3507
SELECT SUM ( ALL + + 85 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT ALL + 35 * + + 50 - - + COUNT( * ) + + 43 + COALESCE ( 59, - 13 ) - - COALESCE ( - 63, + 43 * - CASE - 29 WHEN + - 15 THEN + 86 * 52 END, - 49 ) * ( + CASE + 80 WHEN COUNT( * ) * + 12 THEN - 20 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3508
SELECT ALL + 35 * + + 50 - - + COUNT ( * ) + + 43 + COALESCE ( 59, - 13 ) - - COALESCE ( - 63, + 43 * - CASE - 29 WHEN + - 15 THEN + 86 * 52 END, - 49 ) * ( + CASE + 80 WHEN COUNT ( * ) * + 12 THEN - 20 END ) AS col0
----
NULL

query I rowsort
SELECT 13 - + + 48
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-3510
SELECT - 35 - + 31 AS col2, + 10 * - 74 + + 16 + CASE 90 WHEN + 71 + + 87 * - 17 THEN - - 37 WHEN COUNT( * ) * + 72 THEN NULL ELSE 14 * 85 END
----
-66
466

skipif mysql # not compatible
query II rowsort label-3510
SELECT - 35 - + 31 AS col2, + 10 * - 74 + + 16 + CASE 90 WHEN + 71 + + 87 * - 17 THEN - - 37 WHEN COUNT ( * ) * + 72 THEN NULL ELSE 14 * 85 END
----
-66
466

query I rowsort
SELECT DISTINCT - + 9 col2
----
-9

query II rowsort
SELECT - - 58 * - 71 AS col0, 78
----
-4118
78

query I rowsort
SELECT - 2 + + NULLIF ( - + ( - 61 ), - - 96 ) * 59
----
3597

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT ALL + CASE WHEN NULL IS NULL THEN + COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-3514
SELECT ALL + CASE WHEN NULL IS NULL THEN + COUNT ( * ) END
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3515
SELECT ALL 40 * + 0 + + 58 + - 40 * 68 - - 97 + + + 23 DIV - - 76
----
-2565

skipif mysql # not compatible
query I rowsort label-3515
SELECT ALL 40 * + 0 + + 58 + - 40 * 68 - - 97 + + + 23 / - - 76
----
-2565

onlyif mysql # aggregate syntax: 
query I rowsort label-3516
SELECT ALL + MAX( DISTINCT - + 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-3516
SELECT ALL + MAX ( DISTINCT - + 42 )
----
-42

query I rowsort
SELECT ALL + 27 * - 31
----
-837

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3518
SELECT - COUNT( * ) DIV + - 62
----
0

skipif mysql # not compatible
query I rowsort label-3518
SELECT - COUNT ( * ) / + - 62
----
0

query I rowsort
SELECT DISTINCT + 9 * - + 5 AS col1
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3520
SELECT ALL + CAST( NULL AS SIGNED ) + + 44 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL + CAST ( NULL AS INTEGER ) + + 44 col0
----
NULL

query I rowsort
SELECT - 91 * - 7 * - 74
----
-47138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3522
SELECT - 8 DIV - - 47 * - 22 * COUNT( * ) * + - 99
----
0

skipif mysql # not compatible
query I rowsort label-3522
SELECT - 8 / - - 47 * - 22 * COUNT ( * ) * + - 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT - COALESCE ( + 38, - - COUNT( - 74 ) ) * - - 11 AS col1
----
-418

skipif mysql # not compatible
query I rowsort label-3523
SELECT - COALESCE ( + 38, - - COUNT ( - 74 ) ) * - - 11 AS col1
----
-418

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT ALL NULLIF ( - COUNT( * ), 88 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3524
SELECT ALL NULLIF ( - COUNT ( * ), 88 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT + 9 * - 42
----
-378

query II rowsort
SELECT - 85 AS col1, - 82 AS col0
----
-85
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT - COUNT( ALL - - 89 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3527
SELECT - COUNT ( ALL - - 89 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT ALL + 92 + + - 9 + - + 3 * + 74 + + - COUNT( * ) + - COUNT( * )
----
-141

skipif mysql # not compatible
query I rowsort label-3528
SELECT ALL + 92 + + - 9 + - + 3 * + 74 + + - COUNT ( * ) + - COUNT ( * )
----
-141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3529
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + - 48 - + - COUNT( * ) * - 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3529
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + - 48 - + - COUNT ( * ) * - 82 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3530
SELECT - COUNT( DISTINCT - 73 ) * 68 AS col0, - 72 AS col2
----
-68
-72

skipif mysql # not compatible
query II rowsort label-3530
SELECT - COUNT ( DISTINCT - 73 ) * 68 AS col0, - 72 AS col2
----
-68
-72

query II rowsort
SELECT - 94 AS col1, 36
----
-94
36

query I rowsort
SELECT DISTINCT - 47 * 2 col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3533
SELECT ALL CASE - COUNT( * ) WHEN + 94 THEN + 6 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3533
SELECT ALL CASE - COUNT ( * ) WHEN + 94 THEN + 6 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT - COUNT( 70 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3534
SELECT - COUNT ( 70 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT - 95 + - COUNT( * ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-3535
SELECT - 95 + - COUNT ( * ) AS col1
----
-96

query I rowsort
SELECT ALL 6 - + 28
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT - - COUNT( 22 ) + 91 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-3537
SELECT - - COUNT ( 22 ) + 91 AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT ALL - COUNT( - 89 )
----
-1

skipif mysql # not compatible
query I rowsort label-3538
SELECT ALL - COUNT ( - 89 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT ALL - + 89 - - COUNT( * ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-3539
SELECT ALL - + 89 - - COUNT ( * ) AS col2
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3540
SELECT ALL + + 27 * - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + + 1 / AVG ( DISTINCT 96 ) * + + MIN( ALL 9 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3540
SELECT ALL + + 27 * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + + 1 / AVG ( DISTINCT 96 ) * + + MIN ( ALL 9 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT + - COUNT( * ) + 63 col1
----
62

skipif mysql # not compatible
query I rowsort label-3541
SELECT + - COUNT ( * ) + 63 col1
----
62

query I rowsort
SELECT DISTINCT 49 * + - 29 * 0 + - 56 * - 7 * + - 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3543
SELECT ALL MIN( ALL NULLIF ( - CAST( + + 49 AS SIGNED ), - 71 + - 66 ) ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-3543
SELECT ALL MIN ( ALL NULLIF ( - CAST ( + + 49 AS INTEGER ), - 71 + - 66 ) ) AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT + - CASE + + 8 WHEN + - 46 - 15 THEN 22 * + + 20 * + 41 * + 39 + + ( - 26 ) WHEN + SUM( DISTINCT - + 28 ) * - - MIN( DISTINCT + 3 ) THEN NULL END * + 30 * + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-3544
SELECT + - CASE + + 8 WHEN + - 46 - 15 THEN 22 * + + 20 * + 41 * + 39 + + ( - 26 ) WHEN + SUM ( DISTINCT - + 28 ) * - - MIN ( DISTINCT + 3 ) THEN NULL END * + 30 * + 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT COALESCE ( - + 72, + + COUNT( * ), + + NULLIF ( CASE + 64 WHEN COUNT( * ) THEN ( - + ( 99 ) ) END, - 46 ) ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-3545
SELECT COALESCE ( - + 72, + + COUNT ( * ), + + NULLIF ( CASE + 64 WHEN COUNT ( * ) THEN ( - + ( 99 ) ) END, - 46 ) ) AS col0
----
-72

query I rowsort
SELECT 79 / - ( - CASE - 55 WHEN + 23 THEN - 0 END ) - + 17 + - ( + 64 )
----
NULL

query II rowsort
SELECT ALL + - 89 AS col2, 78
----
-89
78

query I rowsort
SELECT + - 68 * 36 + - 68 AS col1
----
-2516

query I rowsort
SELECT + 63 * 47 * - 88 AS col0
----
-260568

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT + COUNT( * ) + + ( - 49 )
----
-48

skipif mysql # not compatible
query I rowsort label-3550
SELECT + COUNT ( * ) + + ( - 49 )
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-3551
SELECT - + 87 DIV + 63
----
-1

skipif mysql # not compatible
query I rowsort label-3551
SELECT - + 87 / + 63
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3552
SELECT DISTINCT + 82 DIV ( + 20 ) * + CAST( - 2 AS SIGNED ) + - 41 * 44 * - 17
----
30660

skipif mysql # not compatible
query I rowsort label-3552
SELECT DISTINCT + 82 / ( + 20 ) * + CAST ( - 2 AS INTEGER ) + - 41 * 44 * - 17
----
30660

query II rowsort
SELECT DISTINCT 21 * + 44 * - - 34 AS col0, 2
----
31416
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3554
SELECT ALL + SUM( DISTINCT - 65 ) DIV 71 DIV + + ( ( + + COUNT( * ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-3554
SELECT ALL + SUM ( DISTINCT - 65 ) / 71 / + + ( ( + + COUNT ( * ) ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT + + NULLIF ( - - 64, ( + - MAX( DISTINCT - 49 ) ) ) * + ( - 13 )
----
-832

skipif mysql # not compatible
query I rowsort label-3555
SELECT + + NULLIF ( - - 64, ( + - MAX ( DISTINCT - 49 ) ) ) * + ( - 13 )
----
-832

query I rowsort
SELECT DISTINCT + + 74 col2
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3557
SELECT DISTINCT - COALESCE ( - 68, CASE + ( - - 35 ) WHEN 73 THEN COUNT( * ) END, + + MIN( + 0 ) ) * 49 * - - 89 * - + COALESCE ( - + COUNT( * ), 32 * + SUM( ALL + 85 ) + - CAST( NULL AS SIGNED ) ) * 67 - 1 + + COUNT( * ) col1
----
19868716

skipif mysql # not compatible
query I rowsort label-3557
SELECT DISTINCT - COALESCE ( - 68, CASE + ( - - 35 ) WHEN 73 THEN COUNT ( * ) END, + + MIN ( + 0 ) ) * 49 * - - 89 * - + COALESCE ( - + COUNT ( * ), 32 * + SUM ( ALL + 85 ) + - CAST ( NULL AS INTEGER ) ) * 67 - 1 + + COUNT ( * ) col1
----
19868716

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT ( MAX( ALL - - 83 ) )
----
83

skipif mysql # not compatible
query I rowsort label-3558
SELECT ( MAX ( ALL - - 83 ) )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT ALL + 87 * + COUNT( + 11 ) * 15 + 31 + + - 84
----
1252

skipif mysql # not compatible
query I rowsort label-3559
SELECT ALL + 87 * + COUNT ( + 11 ) * 15 + 31 + + - 84
----
1252

query II rowsort
SELECT ALL + 1, 11 AS col2
----
1
11

query I rowsort
SELECT ALL 79 * - 33
----
-2607

query II rowsort
SELECT + 75 col2, + 49
----
75
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT DISTINCT 85 * COUNT( * ) + + 36
----
121

skipif mysql # not compatible
query I rowsort label-3563
SELECT DISTINCT 85 * COUNT ( * ) + + 36
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT NULLIF ( + + 99, - + 11 * - COUNT( * ) * - 50 )
----
99

skipif mysql # not compatible
query I rowsort label-3564
SELECT NULLIF ( + + 99, - + 11 * - COUNT ( * ) * - 50 )
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3565
SELECT ALL 60 * + COALESCE ( + + ( + 79 ), 12 - - + 65 + + 50 + + 6 * - - 82, + 23 ) DIV - COUNT( * ) + - + 3 + + - 90 * - 47
----
-513

skipif mysql # not compatible
query I rowsort label-3565
SELECT ALL 60 * + COALESCE ( + + ( + 79 ), 12 - - + 65 + + 50 + + 6 * - - 82, + 23 ) / - COUNT ( * ) + - + 3 + + - 90 * - 47
----
-513

query I rowsort
SELECT + 72 * - 69 - - 90 col0
----
-4878

query I rowsort
SELECT ALL ( - - 31 )
----
31

query II rowsort
SELECT - 41 AS col0, 67
----
-41
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3569
SELECT - CAST( + CASE - + 88 WHEN + + COUNT( * ) THEN 18 - + 59 + - COUNT( * ) ELSE COALESCE ( - 4, + 44 * 33 ) END AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-3569
SELECT - CAST ( + CASE - + 88 WHEN + + COUNT ( * ) THEN 18 - + 59 + - COUNT ( * ) ELSE COALESCE ( - 4, + 44 * 33 ) END AS INTEGER )
----
4

query I rowsort
SELECT ALL ( - + 2 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT - 1 + + COUNT( ALL + - 30 ) + - COALESCE ( - 52, - 13, + 28 ) * 82 + + 4 AS col1
----
4268

skipif mysql # not compatible
query I rowsort label-3571
SELECT - 1 + + COUNT ( ALL + - 30 ) + - COALESCE ( - 52, - 13, + 28 ) * 82 + + 4 AS col1
----
4268

query I rowsort
SELECT - 60 - 70 AS col2
----
-130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3573
SELECT ALL - MIN( + + CAST( NULL AS SIGNED ) ) * - - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-3573
SELECT ALL - MIN ( + + CAST ( NULL AS INTEGER ) ) * - - 69
----
NULL

query I rowsort
SELECT - 71 * 70 AS col1
----
-4970

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT - CASE + 58 WHEN 80 THEN NULL WHEN - 48 THEN + 18 ELSE + - COUNT( * ) + - + 99 + - 49 * - 47 * ( + + 47 ) END col1
----
-108141

skipif mysql # not compatible
query I rowsort label-3575
SELECT - CASE + 58 WHEN 80 THEN NULL WHEN - 48 THEN + 18 ELSE + - COUNT ( * ) + - + 99 + - 49 * - 47 * ( + + 47 ) END col1
----
-108141

query II rowsort
SELECT ALL + 37 AS col0, 42 AS col0
----
37
42

onlyif mysql # aggregate syntax: 
query II rowsort label-3577
SELECT DISTINCT 29 col0, 94 * + COUNT( + 34 )
----
29
94

skipif mysql # not compatible
query II rowsort label-3577
SELECT DISTINCT 29 col0, 94 * + COUNT ( + 34 )
----
29
94

query I rowsort
SELECT ALL - - 87 * + 5 * 34 AS col2
----
14790

query II rowsort
SELECT ALL 13, - 96 AS col2
----
13
-96

query II rowsort
SELECT ALL 35, 67 AS col1
----
35
67

query I rowsort
SELECT DISTINCT - NULLIF ( + 40, - 91 )
----
-40

query I rowsort
SELECT ( - 19 ) AS col0
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-3583
SELECT - 21 + 57 DIV 70
----
-21

skipif mysql # not compatible
query I rowsort label-3583
SELECT - 21 + 57 / 70
----
-21

query II rowsort
SELECT 58, + 14 * - 98 AS col2
----
58
-1372

query II rowsort
SELECT - - 13 * - 57, + ( 59 ) col0
----
-741
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3586
SELECT - - CAST( - 23 AS SIGNED )
----
-23

skipif mysql # not compatible
query I rowsort label-3586
SELECT - - CAST ( - 23 AS INTEGER )
----
-23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3587
SELECT ALL - CAST( NULL AS DECIMAL ) + - + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-3587
SELECT ALL - CAST ( NULL AS REAL ) + - + 20
----
NULL

query I rowsort
SELECT + 57 - + 54
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3589
SELECT 63, + COUNT( * ) col2
----
63
1

skipif mysql # not compatible
query II rowsort label-3589
SELECT 63, + COUNT ( * ) col2
----
63
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3590
SELECT ALL + 53 + + ( + + 73 ) + + 42 + NULLIF ( - COUNT( * ), - 20 ) DIV COUNT( * ) AS col0
----
167

skipif mysql # not compatible
query I rowsort label-3590
SELECT ALL + 53 + + ( + + 73 ) + + 42 + NULLIF ( - COUNT ( * ), - 20 ) / COUNT ( * ) AS col0
----
167

query I rowsort
SELECT DISTINCT + 25 + + + 39 * + - 14
----
-521

query I rowsort
SELECT DISTINCT + 45 + - 38
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-3593
SELECT COALESCE ( 15, + - ( 61 ), - 35 - - 73 - + ( - + 27 ), + 38 ) * 6 * - + COUNT( * ) - + 20, + 87 AS col0
----
-110
87

skipif mysql # not compatible
query II rowsort label-3593
SELECT COALESCE ( 15, + - ( 61 ), - 35 - - 73 - + ( - + 27 ), + 38 ) * 6 * - + COUNT ( * ) - + 20, + 87 AS col0
----
-110
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3594
SELECT ( - 2 ) * - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3594
SELECT ( - 2 ) * - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 56 + + - 63
----
-7

query II rowsort
SELECT ALL - ( + + 57 ) AS col0, 45 AS col1
----
-57
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3597
SELECT ALL 32 + CAST( NULL AS SIGNED ) * + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-3597
SELECT ALL 32 + CAST ( NULL AS INTEGER ) * + 2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3598
SELECT 65 + - - 72 AS col1, - 27 DIV + 50
----
137
0

skipif mysql # not compatible
query II rowsort label-3598
SELECT 65 + - - 72 AS col1, - 27 / + 50
----
137
0

query II rowsort
SELECT ALL 49 * - 21 AS col1, 43
----
-1029
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3600
SELECT ALL COUNT( * ) * - 25 AS col0, - 0 + + CAST( NULL AS SIGNED ) AS col1
----
-25
NULL

skipif mysql # not compatible
query II rowsort label-3600
SELECT ALL COUNT ( * ) * - 25 AS col0, - 0 + + CAST ( NULL AS INTEGER ) AS col1
----
-25
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3601
SELECT CAST( NULL AS SIGNED ) * - + COUNT( * ) + + COUNT( + 29 ) / + + COUNT( * ) AS col1, + 20 - - 8 AS col1
----
NULL
28

skipif mysql # not compatible
query II rowsort label-3601
SELECT CAST ( NULL AS INTEGER ) * - + COUNT ( * ) + + COUNT ( + 29 ) / + + COUNT ( * ) AS col1, + 20 - - 8 AS col1
----
NULL
28

query I rowsort
SELECT ALL 96 - - 78
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT 61 + + MAX( ALL + 77 ) + + - 5
----
133

skipif mysql # not compatible
query I rowsort label-3603
SELECT 61 + + MAX ( ALL + 77 ) + + - 5
----
133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3604
SELECT ( + 43 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3604
SELECT ( + 43 ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 11 * - 53 * + 86 + + 51 + 12 * + + ( + 59 )
----
-49379

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT 90 * COUNT( + 58 ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-3606
SELECT 90 * COUNT ( + 58 ) AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT ALL 54 * 35 * - COUNT( * )
----
-1890

skipif mysql # not compatible
query I rowsort label-3607
SELECT ALL 54 * 35 * - COUNT ( * )
----
-1890

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT - COUNT( * ) + + 47 + + + 16 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-3608
SELECT - COUNT ( * ) + + 47 + + + 16 AS col2
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-3609
SELECT ALL - + 52 DIV 5 * - 64 + - 4
----
636

skipif mysql # not compatible
query I rowsort label-3609
SELECT ALL - + 52 / 5 * - 64 + - 4
----
636

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT COUNT( * ) * - 30 + 96 - - 1 + - 47
----
20

skipif mysql # not compatible
query I rowsort label-3610
SELECT COUNT ( * ) * - 30 + 96 - - 1 + - 47
----
20

query I rowsort
SELECT ALL - 92 * 86 col1
----
-7912

query I rowsort
SELECT DISTINCT NULLIF ( 99, 27 * + + 54 / - - 11 - - 58 * - + 88 ) AS col0
----
99

onlyif mysql # DIV for integer division: 
query II rowsort label-3613
SELECT COALESCE ( + 36, 94 * ( + - ( + 55 ) ) * + + AVG ( DISTINCT + 15 ) * + 50 DIV - + 74 + - 60 ) - 11 AS col2, + 90 col0
----
25
90

skipif mysql # not compatible
query II rowsort label-3613
SELECT COALESCE ( + 36, 94 * ( + - ( + 55 ) ) * + + AVG ( DISTINCT + 15 ) * + 50 / - + 74 + - 60 ) - 11 AS col2, + 90 col0
----
25
90

onlyif mysql # aggregate syntax: 
query II rowsort label-3614
SELECT + 88 + - COALESCE ( - MAX( ALL + 53 ), + 81 ), - 0 - 18 + + 36 AS col0
----
141
18

skipif mysql # not compatible
query II rowsort label-3614
SELECT + 88 + - COALESCE ( - MAX ( ALL + 53 ), + 81 ), - 0 - 18 + + 36 AS col0
----
141
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT CASE 72 WHEN + COUNT( * ) THEN NULL WHEN 0 * + 18 * - - 50 + - 17 THEN - + 1 + - - SUM( DISTINCT - 85 ) ELSE NULL END * + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-3615
SELECT CASE 72 WHEN + COUNT ( * ) THEN NULL WHEN 0 * + 18 * - - 50 + - 17 THEN - + 1 + - - SUM ( DISTINCT - 85 ) ELSE NULL END * + 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT ALL + + COUNT( * ) + + 28 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-3616
SELECT ALL + + COUNT ( * ) + + 28 AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT - 54 + + ( 88 ) * ( 96 ) * COUNT( * ) * - 63 AS col1
----
-532278

skipif mysql # not compatible
query I rowsort label-3617
SELECT - 54 + + ( 88 ) * ( 96 ) * COUNT ( * ) * - 63 AS col1
----
-532278

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT ALL + - 72 + COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL + - 72 + COUNT ( * )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT SUM( + 31 ) + + 60 + 59
----
150

skipif mysql # not compatible
query I rowsort label-3619
SELECT SUM ( + 31 ) + + 60 + 59
----
150

query I rowsort
SELECT 36 + - + 37 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT ALL - COUNT( * ) + + 30 * COALESCE ( - 46, 29 + 82 * + 94 ) - 14
----
-1395

skipif mysql # not compatible
query I rowsort label-3621
SELECT ALL - COUNT ( * ) + + 30 * COALESCE ( - 46, 29 + 82 * + 94 ) - 14
----
-1395

query I rowsort
SELECT ALL + 16 + - 22 + - 17
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT - + COUNT( DISTINCT 44 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-3623
SELECT - + COUNT ( DISTINCT 44 ) col0
----
-1

query I rowsort
SELECT 70 * + 97 col0
----
6790

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT ALL - SUM( - 94 )
----
94

skipif mysql # not compatible
query I rowsort label-3625
SELECT ALL - SUM ( - 94 )
----
94

onlyif mysql # aggregate syntax: 
query III rowsort label-3626
SELECT ALL - + SUM( DISTINCT + 51 ) col0, - COUNT( * ) AS col2, - COUNT( * ) * + 62
----
-51
-1
-62

skipif mysql # not compatible
query III rowsort label-3626
SELECT ALL - + SUM ( DISTINCT + 51 ) col0, - COUNT ( * ) AS col2, - COUNT ( * ) * + 62
----
-51
-1
-62

query I rowsort
SELECT DISTINCT - + 30 + - 42
----
-72

query I rowsort
SELECT 84 + - + 21 AS col2
----
63

query I rowsort
SELECT ALL - 5 - + 26 AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT 55 * + COUNT( * ) * + 89 * - - 33 col1
----
161535

skipif mysql # not compatible
query I rowsort label-3630
SELECT 55 * + COUNT ( * ) * + 89 * - - 33 col1
----
161535

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT ALL - CASE - 67 WHEN - 49 + 39 * + - 7 THEN NULL WHEN + - ( + 84 ) * - 76 * + 9 + + - 57 + - 39 + + + 72 * 99 + - - COUNT( * ) / 33 + - - 28 + + 41 THEN - - 67 * - 79 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3631
SELECT ALL - CASE - 67 WHEN - 49 + 39 * + - 7 THEN NULL WHEN + - ( + 84 ) * - 76 * + 9 + + - 57 + - 39 + + + 72 * 99 + - - COUNT ( * ) / 33 + - - 28 + + 41 THEN - - 67 * - 79 ELSE NULL END
----
NULL

query II rowsort
SELECT + 70 AS col0, + 92 * 3 AS col0
----
70
276

query I rowsort
SELECT ALL 8 * - ( 12 ) AS col1
----
-96

query I rowsort
SELECT ALL - 5 - - 97
----
92

query I rowsort
SELECT 81 * 52
----
4212

query I rowsort
SELECT 64 - + 7 * - 48 AS col2
----
400

onlyif mysql # DIV for integer division: 
query I rowsort label-3637
SELECT 0 DIV - + 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3637
SELECT 0 / - + 78 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3638
SELECT ALL 42 DIV 27 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3638
SELECT ALL 42 / 27 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3639
SELECT 90 DIV 9
----
10

skipif mysql # not compatible
query I rowsort label-3639
SELECT 90 / 9
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT ALL - COALESCE ( + 79, + 48, - + ( - MIN( DISTINCT 81 ) ), + 89 * 81 - + MIN( 30 ) + + 12 )
----
-79

skipif mysql # not compatible
query I rowsort label-3640
SELECT ALL - COALESCE ( + 79, + 48, - + ( - MIN ( DISTINCT 81 ) ), + 89 * 81 - + MIN ( 30 ) + + 12 )
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-3641
SELECT 43 * 25 - + 66 DIV - - 67
----
1075

skipif mysql # not compatible
query I rowsort label-3641
SELECT 43 * 25 - + 66 / - - 67
----
1075

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3642
SELECT ALL - 70, COUNT( + - 62 ) / - + CAST( NULL AS SIGNED ) * + - 4 - + 44 + 57 AS col2
----
-70
NULL

skipif mysql # not compatible
query II rowsort label-3642
SELECT ALL - 70, COUNT ( + - 62 ) / - + CAST ( NULL AS INTEGER ) * + - 4 - + 44 + 57 AS col2
----
-70
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT COUNT( * ) - 28 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-3643
SELECT COUNT ( * ) - 28 AS col2
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-3644
SELECT ALL 6 DIV 7 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3644
SELECT ALL 6 / 7 AS col1
----
0

query I rowsort
SELECT + 36 / - CASE + 77 WHEN - 53 THEN - 0 + 43 + + 10 * 81 * - COALESCE ( 47, + 2 ) END
----
NULL

query I rowsort
SELECT - - COALESCE ( - 5, + 96 * - 82 * - - 0 + - 83 + - + 52 * - 86 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT ALL + 52 * 19 + + - ( 9 ) - + COALESCE ( + 61, + MIN( DISTINCT 52 ), 29 ) * + 83
----
-4084

skipif mysql # not compatible
query I rowsort label-3647
SELECT ALL + 52 * 19 + + - ( 9 ) - + COALESCE ( + 61, + MIN ( DISTINCT 52 ), 29 ) * + 83
----
-4084

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3648
SELECT - 59 + CAST( + + 28 AS SIGNED ) * + 60 - 5 * ( 23 ) * + + ( - 59 ) * - - 16 AS col2
----
110181

skipif mysql # not compatible
query I rowsort label-3648
SELECT - 59 + CAST ( + + 28 AS INTEGER ) * + 60 - 5 * ( 23 ) * + + ( - 59 ) * - - 16 AS col2
----
110181

query I rowsort
SELECT DISTINCT + 19 + + 10
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT ALL ( COALESCE ( - - 9, + 36, - 72 + COUNT( * ), 46 ) ) + 60
----
69

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL ( COALESCE ( - - 9, + 36, - 72 + COUNT ( * ), 46 ) ) + 60
----
69

query I rowsort
SELECT - 86 * - 83
----
7138

query I rowsort
SELECT ALL 55 + - 39 col2
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3653
SELECT + - COUNT( * ) * SUM( ALL + 38 ) AS col2, + COUNT( * ) col2, + + 63 DIV 49 DIV 48 + 79 + - COUNT( * ) + 36
----
-38
1
114

skipif mysql # not compatible
query III rowsort label-3653
SELECT + - COUNT ( * ) * SUM ( ALL + 38 ) AS col2, + COUNT ( * ) col2, + + 63 / 49 / 48 + 79 + - COUNT ( * ) + 36
----
-38
1
114

query I rowsort
SELECT ALL + 45 + - 42
----
3

query I rowsort
SELECT + - 86 * - 1 AS col1
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-3656
SELECT + COUNT( * ) col1, 11
----
1
11

skipif mysql # not compatible
query II rowsort label-3656
SELECT + COUNT ( * ) col1, 11
----
1
11

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3657
SELECT ALL + CASE 54 WHEN - 93 THEN NULL WHEN - 0 * CAST( + 83 AS SIGNED ) + - 23 THEN + 93 + + 92 - CAST( NULL AS DECIMAL ) ELSE NULL END / - 75 + 95 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL + CASE 54 WHEN - 93 THEN NULL WHEN - 0 * CAST ( + 83 AS INTEGER ) + - 23 THEN + 93 + + 92 - CAST ( NULL AS REAL ) ELSE NULL END / - 75 + 95 AS col2
----
NULL

query I rowsort
SELECT + + 70 + + 49
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3659
SELECT - + CAST( + 98 AS SIGNED )
----
-98

skipif mysql # not compatible
query I rowsort label-3659
SELECT - + CAST ( + 98 AS INTEGER )
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3660
SELECT ALL - CASE - - ( - 3 ) WHEN 27 * + 19 THEN + + CAST( - 73 AS SIGNED ) DIV - 3 * 22 + + + 38 * + 10 ELSE SUM( + 93 ) END - + 5 AS col2, - ( - + 37 )
----
-98
37

skipif mysql # not compatible
query II rowsort label-3660
SELECT ALL - CASE - - ( - 3 ) WHEN 27 * + 19 THEN + + CAST ( - 73 AS INTEGER ) / - 3 * 22 + + + 38 * + 10 ELSE SUM ( + 93 ) END - + 5 AS col2, - ( - + 37 )
----
-98
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT + MAX( + 45 ) - - 73 AS col1
----
118

skipif mysql # not compatible
query I rowsort label-3661
SELECT + MAX ( + 45 ) - - 73 AS col1
----
118

onlyif mysql # aggregate syntax: 
query II rowsort label-3662
SELECT DISTINCT CASE - ( - 3 ) WHEN + 62 THEN + 77 * + SUM( - 62 ) * + 52 * - 50 END AS col0, - 76
----
NULL
-76

skipif mysql # not compatible
query II rowsort label-3662
SELECT DISTINCT CASE - ( - 3 ) WHEN + 62 THEN + 77 * + SUM ( - 62 ) * + 52 * - 50 END AS col0, - 76
----
NULL
-76

query I rowsort
SELECT ALL + NULLIF ( + 52, - - 50 * + - 65 ) AS col2
----
52

query I rowsort
SELECT DISTINCT - 19 * 82 * + - 51 AS col2
----
79458

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT ( + + SUM( - 26 ) ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-3665
SELECT ( + + SUM ( - 26 ) ) AS col1
----
-26

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3666
SELECT ALL + COALESCE ( + 53, + + 88 + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + + 96 DIV 50 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-3666
SELECT ALL + COALESCE ( + 53, + + 88 + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + + 96 / 50 ) AS col1
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3667
SELECT + 97 * - 36 * - + CASE + - 37 WHEN + 89 / 37 - - 65 + + COUNT( ALL + 80 ) THEN NULL ELSE + ( + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) ) - + 16 END * + 51 * - 8 + - 58 + + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-3667
SELECT + 97 * - 36 * - + CASE + - 37 WHEN + 89 / 37 - - 65 + + COUNT ( ALL + 80 ) THEN NULL ELSE + ( + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) - + 16 END * + 51 * - 8 + - 58 + + 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT 11 * + COUNT( * ) - - 42 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-3668
SELECT 11 * + COUNT ( * ) - - 42 AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT - MAX( - - ( + 36 ) ) * 30 * + COUNT( * ) * - 46
----
49680

skipif mysql # not compatible
query I rowsort label-3669
SELECT - MAX ( - - ( + 36 ) ) * 30 * + COUNT ( * ) * - 46
----
49680

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3670
SELECT ALL + CAST( 42 AS SIGNED ), + 80 DIV + 8 AS col2
----
42
10

skipif mysql # not compatible
query II rowsort label-3670
SELECT ALL + CAST ( 42 AS INTEGER ), + 80 / + 8 AS col2
----
42
10

onlyif mysql # aggregate syntax: 
query II rowsort label-3671
SELECT DISTINCT + ( + 47 ), COUNT( * ) AS col2
----
47
1

skipif mysql # not compatible
query II rowsort label-3671
SELECT DISTINCT + ( + 47 ), COUNT ( * ) AS col2
----
47
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT ALL COUNT( * ) * 31 * + + 55
----
1705

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL COUNT ( * ) * 31 * + + 55
----
1705

onlyif mysql # aggregate syntax: 
query II rowsort label-3673
SELECT DISTINCT + MIN( ALL + 33 ) * + COUNT( * ) + - 91 AS col1, - COUNT( * ) col0
----
-58
-1

skipif mysql # not compatible
query II rowsort label-3673
SELECT DISTINCT + MIN ( ALL + 33 ) * + COUNT ( * ) + - 91 AS col1, - COUNT ( * ) col0
----
-58
-1

query I rowsort
SELECT ALL + + 68 * 3 - 66 AS col2
----
138

query I rowsort
SELECT - 73 + 60 * - 59 AS col1
----
-3613

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT DISTINCT + COALESCE ( - 3, 30, - 62 ) * + COUNT( * ) + - 88 AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-3676
SELECT DISTINCT + COALESCE ( - 3, 30, - 62 ) * + COUNT ( * ) + - 88 AS col0
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3677
SELECT + + COUNT( * ) DIV + 41 AS col1, 23 AS col0
----
0
23

skipif mysql # not compatible
query II rowsort label-3677
SELECT + + COUNT ( * ) / + 41 AS col1, 23 AS col0
----
0
23

query I rowsort
SELECT ALL - 82 * - 15 * - - 52 + + 86 + + ( + ( - 72 ) ) * - 7 col2
----
64550

onlyif mysql # DIV for integer division: 
query I rowsort label-3679
SELECT DISTINCT 49 DIV - ( ( - ( + 52 ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3679
SELECT DISTINCT 49 / - ( ( - ( + 52 ) ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT ALL - - 69 * - + SUM( ALL - 96 ) + - - ( + 21 ) + - 89 AS col1
----
6556

skipif mysql # not compatible
query I rowsort label-3680
SELECT ALL - - 69 * - + SUM ( ALL - 96 ) + - - ( + 21 ) + - 89 AS col1
----
6556

onlyif mysql # DIV for integer division: 
query I rowsort label-3681
SELECT DISTINCT 15 DIV 41 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3681
SELECT DISTINCT 15 / 41 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT - 3 + CASE COUNT( * ) WHEN + 33 THEN - - 11 ELSE NULL END / - COUNT( ALL - + 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3682
SELECT - 3 + CASE COUNT ( * ) WHEN + 33 THEN - - 11 ELSE NULL END / - COUNT ( ALL - + 76 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3683
SELECT + 73 + + 62 DIV + SUM( - 40 ) AS col1, + ( + + 75 ) + - + NULLIF ( 73, 94 + - NULLIF ( - - 28, 55 ) * + + NULLIF ( - + 60, - 54 ) + - COUNT( * ) ) + + 15 * - 85 AS col1
----
72
-1273

skipif mysql # not compatible
query II rowsort label-3683
SELECT + 73 + + 62 / + SUM ( - 40 ) AS col1, + ( + + 75 ) + - + NULLIF ( 73, 94 + - NULLIF ( - - 28, 55 ) * + + NULLIF ( - + 60, - 54 ) + - COUNT ( * ) ) + + 15 * - 85 AS col1
----
72
-1273

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3684
SELECT + CAST( + 13 AS SIGNED ) + - 34 + + + 19 DIV + 7 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-3684
SELECT + CAST ( + 13 AS INTEGER ) + - 34 + + + 19 / + 7 AS col1
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3685
SELECT ALL + 13 - + 5 / NULLIF ( CAST( NULL AS SIGNED ), + 27 + - - 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3685
SELECT ALL + 13 - + 5 / NULLIF ( CAST ( NULL AS INTEGER ), + 27 + - - 54 )
----
NULL

query I rowsort
SELECT + + 33 + 80 AS col2
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT + COUNT( * ) * - + 2 + 15
----
13

skipif mysql # not compatible
query I rowsort label-3687
SELECT + COUNT ( * ) * - + 2 + 15
----
13

query I rowsort
SELECT ALL 44 - - 81 AS col1
----
125

query I rowsort
SELECT ALL NULLIF ( + - 83, + 17 ) AS col2
----
-83

query I rowsort
SELECT ALL - 5 - + 86 AS col0
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-3691
SELECT + ( + + 39 ) DIV + 1 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-3691
SELECT + ( + + 39 ) / + 1 AS col1
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-3692
SELECT DISTINCT 32 DIV + 90 * + + 44 col1
----
0

skipif mysql # not compatible
query I rowsort label-3692
SELECT DISTINCT 32 / + 90 * + + 44 col1
----
0

query I rowsort
SELECT + ( - 54 ) * + + 61
----
-3294

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT ALL MIN( DISTINCT - 27 ) * 67
----
-1809

skipif mysql # not compatible
query I rowsort label-3694
SELECT ALL MIN ( DISTINCT - 27 ) * 67
----
-1809

onlyif mysql # DIV for integer division: 
query I rowsort label-3695
SELECT - 78 DIV + 42
----
-1

skipif mysql # not compatible
query I rowsort label-3695
SELECT - 78 / + 42
----
-1

query I rowsort
SELECT 15 * 43 + + 36
----
681

query I rowsort
SELECT DISTINCT + 25 * - 42 AS col0
----
-1050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3698
SELECT ALL - 52 DIV - MAX( ALL + - 97 ) + - 99 AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-3698
SELECT ALL - 52 / - MAX ( ALL + - 97 ) + - 99 AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT ALL COUNT( * ) * - 49 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-3699
SELECT ALL COUNT ( * ) * - 49 AS col2
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3700
SELECT - COUNT( * ) DIV - NULLIF ( NULLIF ( + COUNT( * ), - - 74 ), + 67 ) + 41 * COUNT( * ) * 80 * + - MIN( + ( - 31 ) ) * + COALESCE ( - 74, + + COALESCE ( - 75, + + CAST( + CASE - 71 WHEN MAX( DISTINCT - 24 ) THEN - 76 * + CAST( + 8 AS SIGNED ) WHEN + 42 + + 17 THEN - 76 DIV COUNT( * ) ELSE NULL END AS SIGNED ) + + COUNT( * ) ) - - 50, + 55 * ( - 86 ) ) * - 53
----
398788961

skipif mysql # not compatible
query I rowsort label-3700
SELECT - COUNT ( * ) / - NULLIF ( NULLIF ( + COUNT ( * ), - - 74 ), + 67 ) + 41 * COUNT ( * ) * 80 * + - MIN ( + ( - 31 ) ) * + COALESCE ( - 74, + + COALESCE ( - 75, + + CAST ( + CASE - 71 WHEN MAX ( DISTINCT - 24 ) THEN - 76 * + CAST ( + 8 AS INTEGER ) WHEN + 42 + + 17 THEN - 76 / COUNT ( * ) ELSE NULL END AS INTEGER ) + + COUNT ( * ) ) - - 50, + 55 * ( - 86 ) ) * - 53
----
398788961

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3701
SELECT ALL - 59 DIV + + COUNT( * ) + - 21
----
-80

skipif mysql # not compatible
query I rowsort label-3701
SELECT ALL - 59 / + + COUNT ( * ) + - 21
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-3702
SELECT ALL + 26 DIV + - 51 + - 76 + 84 col2
----
8

skipif mysql # not compatible
query I rowsort label-3702
SELECT ALL + 26 / + - 51 + - 76 + 84 col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT - - 28 * - 7 * + 69 - + - COUNT( * ) + - 57 col2
----
-13580

skipif mysql # not compatible
query I rowsort label-3703
SELECT - - 28 * - 7 * + 69 - + - COUNT ( * ) + - 57 col2
----
-13580

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT DISTINCT + - 15 + + 64 - - 79 * + - NULLIF ( - COUNT( * ), + 20 - + 90 )
----
128

skipif mysql # not compatible
query I rowsort label-3704
SELECT DISTINCT + - 15 + + 64 - - 79 * + - NULLIF ( - COUNT ( * ), + 20 - + 90 )
----
128

query I rowsort
SELECT 49 * 44 + + 1 + 54 AS col2
----
2211

query I rowsort
SELECT - 59 * + + 26 col1
----
-1534

query I rowsort
SELECT + ( - - 13 ) AS col2
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3708
SELECT DISTINCT + CAST( + 44 AS SIGNED ) + + 49 + 88 col1
----
181

skipif mysql # not compatible
query I rowsort label-3708
SELECT DISTINCT + CAST ( + 44 AS INTEGER ) + + 49 + 88 col1
----
181

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3709
SELECT + 55 AS col1, + CAST( - + 96 AS SIGNED )
----
55
-96

skipif mysql # not compatible
query II rowsort label-3709
SELECT + 55 AS col1, + CAST ( - + 96 AS INTEGER )
----
55
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT + 25 - - + COUNT( * ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-3710
SELECT + 25 - - + COUNT ( * ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT ALL + 8 * - MAX( DISTINCT - + ( - - 90 ) )
----
720

skipif mysql # not compatible
query I rowsort label-3711
SELECT ALL + 8 * - MAX ( DISTINCT - + ( - - 90 ) )
----
720

query II rowsort
SELECT + 55 AS col2, 63
----
55
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT DISTINCT + - 98 * - COUNT( * ) * - 88
----
-8624

skipif mysql # not compatible
query I rowsort label-3713
SELECT DISTINCT + - 98 * - COUNT ( * ) * - 88
----
-8624

query I rowsort
SELECT DISTINCT - 17 - 65
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT MAX( - + 58 ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-3715
SELECT MAX ( - + 58 ) AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT ALL + NULLIF ( + COUNT( * ), - 75 * + - 24 * 53 + + 24 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3716
SELECT ALL + NULLIF ( + COUNT ( * ), - 75 * + - 24 * 53 + + 24 ) AS col0
----
1

query I rowsort
SELECT - - ( + 87 ) AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT DISTINCT NULLIF ( - + 1, + + COUNT( * ) * COUNT( * ) + 73 - - + COALESCE ( + SUM( + 8 ), COALESCE ( + 87, + ( - SUM( DISTINCT + + 18 ) ) ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3718
SELECT DISTINCT NULLIF ( - + 1, + + COUNT ( * ) * COUNT ( * ) + 73 - - + COALESCE ( + SUM ( + 8 ), COALESCE ( + 87, + ( - SUM ( DISTINCT + + 18 ) ) ) ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3719
SELECT 14 * - ( + CAST( - CAST( CAST( - + CAST( - + 38 AS DECIMAL ) AS SIGNED ) AS SIGNED ) AS SIGNED ) )
----
532

skipif mysql # not compatible
query I rowsort label-3719
SELECT 14 * - ( + CAST ( - CAST ( CAST ( - + CAST ( - + 38 AS REAL ) AS INTEGER ) AS INTEGER ) AS INTEGER ) )
----
532

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3720
SELECT DISTINCT - CASE 15 WHEN + 77 THEN + 41 * 97 + CASE + 31 WHEN - 33 * - 53 * - CAST( 53 AS SIGNED ) + - 44 THEN NULL WHEN COUNT( * ) + 41 THEN + 17 - 4 + + + NULLIF ( NULLIF ( COALESCE ( - 29, COUNT( * ) + 74, - MAX( DISTINCT + 10 ) ), + 9 + - 99 ), 3 ) ELSE - ( COUNT( * ) ) - - 74 * + 10 END * - ( 32 DIV 85 + 46 * - 88 ) WHEN + 2 THEN NULL ELSE 16 DIV 4 END * 52 AS col0
----
-208

skipif mysql # not compatible
query I rowsort label-3720
SELECT DISTINCT - CASE 15 WHEN + 77 THEN + 41 * 97 + CASE + 31 WHEN - 33 * - 53 * - CAST ( 53 AS INTEGER ) + - 44 THEN NULL WHEN COUNT ( * ) + 41 THEN + 17 - 4 + + + NULLIF ( NULLIF ( COALESCE ( - 29, COUNT ( * ) + 74, - MAX ( DISTINCT + 10 ) ), + 9 + - 99 ), 3 ) ELSE - ( COUNT ( * ) ) - - 74 * + 10 END * - ( 32 / 85 + 46 * - 88 ) WHEN + 2 THEN NULL ELSE 16 / 4 END * 52 AS col0
----
-208

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3721
SELECT ALL 85 * 31 DIV - - SUM( ALL 97 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-3721
SELECT ALL 85 * 31 / - - SUM ( ALL 97 ) AS col2
----
27

query I rowsort
SELECT 84 * + NULLIF ( + 38, 70 )
----
3192

onlyif mysql # DIV for integer division: 
query I rowsort label-3723
SELECT ALL - 46 DIV + 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3723
SELECT ALL - 46 / + 91 AS col0
----
0

query I rowsort
SELECT 55 + - 21 AS col1
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3725
SELECT CASE 97 WHEN NULLIF ( + COUNT( * ), - 90 - - + 45 ) THEN + - COUNT( * ) + - COALESCE ( + 80, COUNT( * ) ) END * - CAST( NULL AS SIGNED ) AS col0, + 83 * 7 * - + COUNT( * ) DIV - - COUNT( * ) AS col2
----
NULL
-581

skipif mysql # not compatible
query II rowsort label-3725
SELECT CASE 97 WHEN NULLIF ( + COUNT ( * ), - 90 - - + 45 ) THEN + - COUNT ( * ) + - COALESCE ( + 80, COUNT ( * ) ) END * - CAST ( NULL AS INTEGER ) AS col0, + 83 * 7 * - + COUNT ( * ) / - - COUNT ( * ) AS col2
----
NULL
-581

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3726
SELECT ALL 91 * + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3726
SELECT ALL 91 * + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3727
SELECT 74 + CASE + - 31 WHEN + 29 + - MIN( - - CAST( - - ( + 11 ) AS SIGNED ) ) THEN NULL ELSE - 13 * + + CASE + + COUNT( * ) WHEN + 79 THEN 78 / + + 19 - - COUNT( * ) WHEN + NULLIF ( - COALESCE ( - 11, - ( + + 80 ), + 95 ), 3 ) / + 16 THEN NULL END END * 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3727
SELECT 74 + CASE + - 31 WHEN + 29 + - MIN ( - - CAST ( - - ( + 11 ) AS INTEGER ) ) THEN NULL ELSE - 13 * + + CASE + + COUNT ( * ) WHEN + 79 THEN 78 / + + 19 - - COUNT ( * ) WHEN + NULLIF ( - COALESCE ( - 11, - ( + + 80 ), + 95 ), 3 ) / + 16 THEN NULL END END * 58 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT DISTINCT COUNT( * ) * + 86
----
86

skipif mysql # not compatible
query I rowsort label-3728
SELECT DISTINCT COUNT ( * ) * + 86
----
86

query II rowsort
SELECT DISTINCT 80 AS col0, + 6 * - 97 AS col0
----
80
-582

onlyif mysql # DIV for integer division: 
query I rowsort label-3730
SELECT ALL 19 + - 80 DIV - 6 + + + 86 AS col0
----
118

skipif mysql # not compatible
query I rowsort label-3730
SELECT ALL 19 + - 80 / - 6 + + + 86 AS col0
----
118

onlyif mysql # DIV for integer division: 
query I rowsort label-3731
SELECT - 13 DIV + + 79 + - 99 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-3731
SELECT - 13 / + + 79 + - 99 AS col0
----
-99

query I rowsort
SELECT ALL 83 + 15 + - 71
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT 89 + - 76 * - ( + MAX( DISTINCT + 29 ) ) AS col2
----
2293

skipif mysql # not compatible
query I rowsort label-3733
SELECT 89 + - 76 * - ( + MAX ( DISTINCT + 29 ) ) AS col2
----
2293

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3734
SELECT ALL 77 DIV - 61 * + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3734
SELECT ALL 77 / - 61 * + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3735
SELECT - MIN( ALL - 32 ) * - 25 - 66 AS col2, - 10
----
-866
-10

skipif mysql # not compatible
query II rowsort label-3735
SELECT - MIN ( ALL - 32 ) * - 25 - 66 AS col2, - 10
----
-866
-10

query I rowsort
SELECT ALL CASE - 90 WHEN - - 24 * - 50 THEN - 96 END + 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT DISTINCT 12 * + - COUNT( * ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-3737
SELECT DISTINCT 12 * + - COUNT ( * ) AS col1
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-3738
SELECT DISTINCT - 29, COALESCE ( + 50, - 89 - + - 71 + + COUNT( + 90 ) + 14 - - 57 * - 78 * - + ( - - 93 ) * - 36 * - 23 * - + 84 ) AS col2
----
-29
50

skipif mysql # not compatible
query II rowsort label-3738
SELECT DISTINCT - 29, COALESCE ( + 50, - 89 - + - 71 + + COUNT ( + 90 ) + 14 - - 57 * - 78 * - + ( - - 93 ) * - 36 * - 23 * - + 84 ) AS col2
----
-29
50

query I rowsort
SELECT DISTINCT 48 + + 50 * + 41 * 74
----
151748

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT ALL - 98 * + 62 * COALESCE ( + + 96, + - 86, - 13 + + COUNT( * ) )
----
-583296

skipif mysql # not compatible
query I rowsort label-3740
SELECT ALL - 98 * + 62 * COALESCE ( + + 96, + - 86, - 13 + + COUNT ( * ) )
----
-583296

query II rowsort
SELECT 37 AS col2, 55 * - 2 * 57 col0
----
37
-6270

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT - COUNT( * ) * + 40 + + COALESCE ( 51, - 96 - 15 + + 4 ) * + - 29 + + - 8 - + 10 + - 34 + - - COUNT( * ) * + - NULLIF ( + CASE COALESCE ( + 85, 5 ) WHEN + 16 THEN + COUNT( * ) WHEN - 0 THEN NULL END, + 56 ) * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3742
SELECT - COUNT ( * ) * + 40 + + COALESCE ( 51, - 96 - 15 + + 4 ) * + - 29 + + - 8 - + 10 + - 34 + - - COUNT ( * ) * + - NULLIF ( + CASE COALESCE ( + 85, 5 ) WHEN + 16 THEN + COUNT ( * ) WHEN - 0 THEN NULL END, + 56 ) * COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3743
SELECT DISTINCT - ( + COUNT( * ) ) * + - COUNT( * ) DIV + + 81 - - CAST( - 79 AS SIGNED ) + + COALESCE ( + 27, 67 * - 65 + + - NULLIF ( 41, - 72 ) + - 34 * 74 * 64 + - 31 * - 77, COALESCE ( 71, - 7 ) )
----
-52

skipif mysql # not compatible
query I rowsort label-3743
SELECT DISTINCT - ( + COUNT ( * ) ) * + - COUNT ( * ) / + + 81 - - CAST ( - 79 AS INTEGER ) + + COALESCE ( + 27, 67 * - 65 + + - NULLIF ( 41, - 72 ) + - 34 * 74 * 64 + - 31 * - 77, COALESCE ( 71, - 7 ) )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT 60 * - 36 + - COUNT( * )
----
-2161

skipif mysql # not compatible
query I rowsort label-3744
SELECT 60 * - 36 + - COUNT ( * )
----
-2161

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT COUNT( * ) * ( 92 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-3745
SELECT COUNT ( * ) * ( 92 ) AS col0
----
92

query I rowsort
SELECT - 62 * - 23 col2
----
1426

query I rowsort
SELECT + 71 + + 6 + 96 AS col1
----
173

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3748
SELECT + - MIN( ALL + 95 ), - 68 DIV 27 AS col2
----
-95
-2

skipif mysql # not compatible
query II rowsort label-3748
SELECT + - MIN ( ALL + 95 ), - 68 / 27 AS col2
----
-95
-2

query I rowsort
SELECT 49 + - 65
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3750
SELECT + 45 AS col0, NULLIF ( - CASE - - COUNT( - - 49 ) WHEN + + 38 + - COUNT( DISTINCT 40 ) THEN 44 END, + - AVG ( ALL CAST( + 77 AS SIGNED ) ) + - 95 ) * - 62 AS col2
----
45
NULL

skipif mysql # not compatible
query II rowsort label-3750
SELECT + 45 AS col0, NULLIF ( - CASE - - COUNT ( - - 49 ) WHEN + + 38 + - COUNT ( DISTINCT 40 ) THEN 44 END, + - AVG ( ALL CAST ( + 77 AS INTEGER ) ) + - 95 ) * - 62 AS col2
----
45
NULL

query II rowsort
SELECT DISTINCT 77 - - 36 AS col2, 24 * 67
----
113
1608

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3752
SELECT ALL - - 20 * - - 62 AS col0, 15 + CAST( - + 63 AS SIGNED ) * 9
----
1240
-552

skipif mysql # not compatible
query II rowsort label-3752
SELECT ALL - - 20 * - - 62 AS col0, 15 + CAST ( - + 63 AS INTEGER ) * 9
----
1240
-552

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT + MIN( - - 86 ) + + COUNT( * ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-3753
SELECT + MIN ( - - 86 ) + + COUNT ( * ) AS col0
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-3754
SELECT COALESCE ( 90, - + 55 ) + - 26 AS col0, + SUM( ALL - 94 ) AS col0
----
64
-94

skipif mysql # not compatible
query II rowsort label-3754
SELECT COALESCE ( 90, - + 55 ) + - 26 AS col0, + SUM ( ALL - 94 ) AS col0
----
64
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-3755
SELECT 0 + + - 34 DIV - 74 * - 29 * + 29 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3755
SELECT 0 + + - 34 / - 74 * - 29 * + 29 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT ALL - COUNT( * ) * 60 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-3756
SELECT ALL - COUNT ( * ) * 60 AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT ALL MAX( DISTINCT - - 49 )
----
49

skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL MAX ( DISTINCT - - 49 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT COUNT( * ) + + 12 col1
----
13

skipif mysql # not compatible
query I rowsort label-3758
SELECT COUNT ( * ) + + 12 col1
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-3759
SELECT 84 DIV 64
----
1

skipif mysql # not compatible
query I rowsort label-3759
SELECT 84 / 64
----
1

query II rowsort
SELECT ALL - 15 + 51, + 15 * - 4 AS col0
----
36
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3761
SELECT MAX( + + 54 ) + + - 33 + 94 * COUNT( * ) * 35 + - 60 + - 96 * AVG ( ALL + CAST( NULL AS SIGNED ) ) + - + 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3761
SELECT MAX ( + + 54 ) + + - 33 + 94 * COUNT ( * ) * 35 + - 60 + - 96 * AVG ( ALL + CAST ( NULL AS INTEGER ) ) + - + 30 AS col1
----
NULL

query II rowsort
SELECT DISTINCT - 98 + + 70 AS col0, + 66 AS col0
----
-28
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3763
SELECT - MIN( ALL + - CAST( NULL AS SIGNED ) ) / - NULLIF ( - COALESCE ( + 91, - + 25 ), 7 + - 1 / + + 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3763
SELECT - MIN ( ALL + - CAST ( NULL AS INTEGER ) ) / - NULLIF ( - COALESCE ( + 91, - + 25 ), 7 + - 1 / + + 21 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT NULLIF ( - - ( + + COUNT( * ) ), + ( - 79 ) * + 82 )
----
1

skipif mysql # not compatible
query I rowsort label-3764
SELECT NULLIF ( - - ( + + COUNT ( * ) ), + ( - 79 ) * + 82 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3765
SELECT + COALESCE ( + COUNT( * ), NULLIF ( - 42, 66 ) + - 44, + 66 + + 54, 75 ) + + 61 col1
----
62

skipif mysql # not compatible
query I rowsort label-3765
SELECT + COALESCE ( + COUNT ( * ), NULLIF ( - 42, 66 ) + - 44, + 66 + + 54, 75 ) + + 61 col1
----
62

query I rowsort
SELECT ALL - 72 * - ( 15 ) - - 64
----
1144

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT + 80 * + 75 + - - MAX( DISTINCT + 43 ) col2
----
6043

skipif mysql # not compatible
query I rowsort label-3767
SELECT + 80 * + 75 + - - MAX ( DISTINCT + 43 ) col2
----
6043

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT ALL + + COALESCE ( 63, + + 23 + - NULLIF ( 80, - + COUNT( * ) ) )
----
63

skipif mysql # not compatible
query I rowsort label-3768
SELECT ALL + + COALESCE ( 63, + + 23 + - NULLIF ( 80, - + COUNT ( * ) ) )
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3769
SELECT - COUNT( + COALESCE ( + + 79, + - 63 ) ) / + CASE + 60 WHEN - 32 * + - 26 + + AVG ( + - CAST( NULL AS SIGNED ) ) THEN NULL WHEN - 20 THEN - 36 * - + 19 END + - - ( COUNT( DISTINCT ( - - 15 ) ) ) + - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-3769
SELECT - COUNT ( + COALESCE ( + + 79, + - 63 ) ) / + CASE + 60 WHEN - 32 * + - 26 + + AVG ( + - CAST ( NULL AS INTEGER ) ) THEN NULL WHEN - 20 THEN - 36 * - + 19 END + - - ( COUNT ( DISTINCT ( - - 15 ) ) ) + - 8
----
NULL

query I rowsort
SELECT - ( - + 66 )
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3771
SELECT + 98 DIV - COUNT( * ) - + 17 + - - 2 - - NULLIF ( - + ( 54 ), 11 ) AS col0
----
-167

skipif mysql # not compatible
query I rowsort label-3771
SELECT + 98 / - COUNT ( * ) - + 17 + - - 2 - - NULLIF ( - + ( 54 ), 11 ) AS col0
----
-167

query I rowsort
SELECT + + 97 * + - ( + 34 ) col0
----
-3298

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT + 83 * - COUNT( * ) * - + 39 + - + 75 AS col1
----
3162

skipif mysql # not compatible
query I rowsort label-3773
SELECT + 83 * - COUNT ( * ) * - + 39 + - + 75 AS col1
----
3162

onlyif mysql # DIV for integer division: 
query I rowsort label-3774
SELECT ALL 22 * 72 DIV 55 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-3774
SELECT ALL 22 * 72 / 55 AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT + COUNT( + + 5 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3775
SELECT + COUNT ( + + 5 ) AS col0
----
1

query II rowsort
SELECT + - 71 * + + 61 * - ( + 87 ) + + 34 AS col2, 72
----
376831
72

query I rowsort
SELECT ALL - ( - 88 ) * - 76 AS col0
----
-6688

query I rowsort
SELECT - + 96 * + 89 + - 83 + 18 * + 58 AS col2
----
-7583

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3779
SELECT + + 96 * - - 69 * CAST( NULL AS DECIMAL ) + + + 85 + + ( 83 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3779
SELECT + + 96 * - - 69 * CAST ( NULL AS REAL ) + + + 85 + + ( 83 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3780
SELECT + 85 DIV - 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3780
SELECT + 85 / - 95 AS col2
----
0

query I rowsort
SELECT + 56 * 72 * + 79 * + 31 AS col0
----
9874368

query I rowsort
SELECT ALL + 84 + + 97
----
181

query II rowsort
SELECT 0 AS col1, 58 AS col0
----
0
58

query II rowsort
SELECT - 17 AS col0, 47
----
-17
47

query I rowsort
SELECT - 26 * + 17
----
-442

query I rowsort
SELECT ALL - 11 * + 93
----
-1023

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
SELECT ALL ( + CASE 78 WHEN - 19 + 70 THEN - 35 - - 76 WHEN + COUNT( ALL 19 ) THEN NULL ELSE + 19 END ) col2
----
19

skipif mysql # not compatible
query I rowsort label-3787
SELECT ALL ( + CASE 78 WHEN - 19 + 70 THEN - 35 - - 76 WHEN + COUNT ( ALL 19 ) THEN NULL ELSE + 19 END ) col2
----
19

onlyif mysql # DIV for integer division: 
query II rowsort label-3788
SELECT ALL + 84 + - + 19 DIV + - 24, - 48 col0
----
84
-48

skipif mysql # not compatible
query II rowsort label-3788
SELECT ALL + 84 + - + 19 / + - 24, - 48 col0
----
84
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT ALL - ( - 44 ) * 69 + - MAX( + 84 ) col0
----
2952

skipif mysql # not compatible
query I rowsort label-3789
SELECT ALL - ( - 44 ) * 69 + - MAX ( + 84 ) col0
----
2952

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3790
SELECT + 90 + + 89 DIV - 79 * - COUNT( * ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-3790
SELECT + 90 + + 89 / - 79 * - COUNT ( * ) AS col1
----
91

onlyif mysql # DIV for integer division: 
query II rowsort label-3791
SELECT - 96 * 94 DIV ( 59 ), - 74 AS col0
----
-152
-74

skipif mysql # not compatible
query II rowsort label-3791
SELECT - 96 * 94 / ( 59 ), - 74 AS col0
----
-152
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT ALL - 12 * + 25 * - 99 * + COUNT( - 56 ) AS col0
----
29700

skipif mysql # not compatible
query I rowsort label-3792
SELECT ALL - 12 * + 25 * - 99 * + COUNT ( - 56 ) AS col0
----
29700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3793
SELECT - CAST( COALESCE ( 30, 15, + + 8 * + 59 + - ( COUNT( * ) ) * - 50 + + 45 - - + 37 / - 36 * - - NULLIF ( - COUNT( * ), + 73 * - - COUNT( + COALESCE ( + 90, + - 68 * - - 71 * + ( - 88 ) + - - 2 + + 60 / + 36 ) ) * ( MAX( DISTINCT + 67 ) * 83 - COUNT( * ) ) + + 38 * + 34 ) / 21 + 42 ) AS SIGNED ) + CASE 30 - 54 WHEN + 97 THEN CASE 60 WHEN - 26 THEN NULL ELSE + COUNT( * ) END * - CAST( NULL AS SIGNED ) - - 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3793
SELECT - CAST ( COALESCE ( 30, 15, + + 8 * + 59 + - ( COUNT ( * ) ) * - 50 + + 45 - - + 37 / - 36 * - - NULLIF ( - COUNT ( * ), + 73 * - - COUNT ( + COALESCE ( + 90, + - 68 * - - 71 * + ( - 88 ) + - - 2 + + 60 / + 36 ) ) * ( MAX ( DISTINCT + 67 ) * 83 - COUNT ( * ) ) + + 38 * + 34 ) / 21 + 42 ) AS INTEGER ) + CASE 30 - 54 WHEN + 97 THEN CASE 60 WHEN - 26 THEN NULL ELSE + COUNT ( * ) END * - CAST ( NULL AS INTEGER ) - - 78 END
----
NULL

query I rowsort
SELECT ALL - 94 * - 91 * - 45
----
-384930

query I rowsort
SELECT - 42 + - 19 AS col2
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-3796
SELECT - 48 DIV 64 DIV + 70
----
0

skipif mysql # not compatible
query I rowsort label-3796
SELECT - 48 / 64 / + 70
----
0

query I rowsort
SELECT - 60 * 81 AS col1
----
-4860

query I rowsort
SELECT + 66 * 70
----
4620

query I rowsort
SELECT ALL + 21 - + - 28 + - 25 AS col2
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-3800
SELECT - 36 - + 42 * + COUNT( * ), 22 AS col1
----
-78
22

skipif mysql # not compatible
query II rowsort label-3800
SELECT - 36 - + 42 * + COUNT ( * ), 22 AS col1
----
-78
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3801
SELECT ALL CASE 53 WHEN + + ( + 80 ) THEN - CAST( + 20 AS SIGNED ) WHEN 98 + + 5 * - - 90 THEN NULL ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-3801
SELECT ALL CASE 53 WHEN + + ( + 80 ) THEN - CAST ( + 20 AS INTEGER ) WHEN 98 + + 5 * - - 90 THEN NULL ELSE COUNT ( * ) END
----
1

query I rowsort
SELECT - 61 * + + 84 + 63
----
-5061

query I rowsort
SELECT - 30 * - 79 AS col2
----
2370

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT DISTINCT + MAX( ALL - + 51 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-3804
SELECT DISTINCT + MAX ( ALL - + 51 ) AS col1
----
-51

query I rowsort
SELECT - + ( - - 21 ) + + 26 * - + 11 + 52 AS col0
----
-255

onlyif mysql # DIV for integer division: 
query I rowsort label-3806
SELECT + 1 DIV 86 * 42 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3806
SELECT + 1 / 86 * 42 AS col0
----
0

query I rowsort
SELECT ALL + 21 * 16 * + - ( 79 ) AS col1
----
-26544

query I rowsort
SELECT + 71 * + 28 + - - 85 AS col2
----
2073

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT + COUNT( * ) - + 30 + 37 + 9
----
17

skipif mysql # not compatible
query I rowsort label-3809
SELECT + COUNT ( * ) - + 30 + 37 + 9
----
17

query I rowsort
SELECT - 53 * 25 + - COALESCE ( + + 22, + - 51 )
----
-1347

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3811
SELECT + - ( - COUNT( + + 62 ) ) * ( 18 ) + + 72 + - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3811
SELECT + - ( - COUNT ( + + 62 ) ) * ( 18 ) + + 72 + - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3812
SELECT ALL ( - + 1 ) * - COALESCE ( - NULLIF ( + 43, - 99 / - CAST( 22 AS SIGNED ) ), + ( - 61 ), + CAST( NULL AS SIGNED ) ) col1
----
-43

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL ( - + 1 ) * - COALESCE ( - NULLIF ( + 43, - 99 / - CAST ( 22 AS INTEGER ) ), + ( - 61 ), + CAST ( NULL AS INTEGER ) ) col1
----
-43

query I rowsort
SELECT - + 91 + + 93 * - - 53 + - 84 AS col1
----
4754

query I rowsort
SELECT + + 71 * + 46 + - 82 AS col2
----
3184

query I rowsort
SELECT - CASE + 32 WHEN - 61 * + + 52 THEN - 71 ELSE ( 74 ) END col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT + 17 * - 69 + - MIN( + 68 ) AS col1
----
-1241

skipif mysql # not compatible
query I rowsort label-3816
SELECT + 17 * - 69 + - MIN ( + 68 ) AS col1
----
-1241

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT + ( SUM( DISTINCT + + 44 ) )
----
44

skipif mysql # not compatible
query I rowsort label-3817
SELECT + ( SUM ( DISTINCT + + 44 ) )
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3818
SELECT - 70 + + - 44 + - + ( + 53 ) + + 35 * + 86 * - - 14 + - 13 * - - COUNT( * ) - - CAST( + + 66 AS SIGNED )
----
42026

skipif mysql # not compatible
query I rowsort label-3818
SELECT - 70 + + - 44 + - + ( + 53 ) + + 35 * + 86 * - - 14 + - 13 * - - COUNT ( * ) - - CAST ( + + 66 AS INTEGER )
----
42026

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT + 74 * - COUNT( * ) * + + 52 AS col0
----
-3848

skipif mysql # not compatible
query I rowsort label-3819
SELECT + 74 * - COUNT ( * ) * + + 52 AS col0
----
-3848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3820
SELECT + 44 + - - COUNT( * ) / 77 + ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3820
SELECT + 44 + - - COUNT ( * ) / 77 + ( + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3821
SELECT + + SUM( NULLIF ( + - ( - 41 ), 60 ) ) * + 31, 16 col0
----
1271
16

skipif mysql # not compatible
query II rowsort label-3821
SELECT + + SUM ( NULLIF ( + - ( - 41 ), 60 ) ) * + 31, 16 col0
----
1271
16

query I rowsort
SELECT ALL 61 * - 74 + + - 90
----
-4604

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3823
SELECT + ( + CASE + 54 WHEN - 18 * - 86 THEN NULL WHEN + CAST( - ( ( + - ( 40 ) ) ) AS DECIMAL ) THEN - 76 * COUNT( * ) + + + 23 WHEN + 7 THEN NULL END ) AS col0, + ( - COUNT( * ) ) + + COUNT( * )
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3823
SELECT + ( + CASE + 54 WHEN - 18 * - 86 THEN NULL WHEN + CAST ( - ( ( + - ( 40 ) ) ) AS REAL ) THEN - 76 * COUNT ( * ) + + + 23 WHEN + 7 THEN NULL END ) AS col0, + ( - COUNT ( * ) ) + + COUNT ( * )
----
NULL
0

query I rowsort
SELECT DISTINCT COALESCE ( 82, + 0 ) * + 44 + - + 99 AS col1
----
3509

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT ALL COALESCE ( - + 93, + COUNT( ALL + - 16 ) * - 96 - + - 24 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL COALESCE ( - + 93, + COUNT ( ALL + - 16 ) * - 96 - + - 24 ) AS col0
----
-93

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3826
SELECT + 2 + - NULLIF ( + 81, - 58 * - + NULLIF ( + 73, 0 * + + CAST( NULL AS SIGNED ) ) - + 65 ) DIV - + ( - 16 )
----
-3

skipif mysql # not compatible
query I rowsort label-3826
SELECT + 2 + - NULLIF ( + 81, - 58 * - + NULLIF ( + 73, 0 * + + CAST ( NULL AS INTEGER ) ) - + 65 ) / - + ( - 16 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT ALL 8 * COUNT( * ) + - + 9 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL 8 * COUNT ( * ) + - + 9 AS col0
----
-1

query I rowsort
SELECT + ( + - ( 99 ) ) * + 98
----
-9702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3829
SELECT CAST( NULL AS SIGNED ) + + 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3829
SELECT CAST ( NULL AS INTEGER ) + + 28 AS col1
----
NULL

query I rowsort
SELECT 34 + + 31 + 45 - 93 * - - 80 AS col2
----
-7330

onlyif mysql # DIV for integer division: 
query I rowsort label-3831
SELECT 44 + + 77 * - COALESCE ( - + 23, + 95 DIV + + 29 ) AS col2
----
1815

skipif mysql # not compatible
query I rowsort label-3831
SELECT 44 + + 77 * - COALESCE ( - + 23, + 95 / + + 29 ) AS col2
----
1815

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT COUNT( * ) + + - CASE ( - + 46 ) WHEN + + 29 * - 53 - - 91 * 38 THEN + COUNT( * ) + + + COUNT( * ) + - NULLIF ( 52, + COUNT( * ) ) + - + 43 WHEN 84 + + - ( + - 53 ) + + - CASE CASE - MAX( + 82 ) WHEN - 64 THEN 54 END WHEN 44 + - ( 5 ) * + 67 THEN - 77 * 2 - 91 ELSE - 95 * ( 74 ) END + COUNT( * ) / 84 THEN NULL WHEN - 8 THEN NULL END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3832
SELECT COUNT ( * ) + + - CASE ( - + 46 ) WHEN + + 29 * - 53 - - 91 * 38 THEN + COUNT ( * ) + + + COUNT ( * ) + - NULLIF ( 52, + COUNT ( * ) ) + - + 43 WHEN 84 + + - ( + - 53 ) + + - CASE CASE - MAX ( + 82 ) WHEN - 64 THEN 54 END WHEN 44 + - ( 5 ) * + 67 THEN - 77 * 2 - 91 ELSE - 95 * ( 74 ) END + COUNT ( * ) / 84 THEN NULL WHEN - 8 THEN NULL END + COUNT ( * )
----
NULL

query I rowsort
SELECT 34 + - 85
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT ALL - 63 * + - SUM( DISTINCT + 69 ) AS col1
----
4347

skipif mysql # not compatible
query I rowsort label-3834
SELECT ALL - 63 * + - SUM ( DISTINCT + 69 ) AS col1
----
4347

query I rowsort
SELECT 50 * - ( + + 83 ) col2
----
-4150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3836
SELECT - CASE + + 85 WHEN ( 18 ) * - 4 * - - 16 * + 20 * + 36 * - 0 THEN - ( - 75 ) WHEN - + COUNT( * ) / 43 + 10 + 65 * - 46 / + COUNT( * ) + - 76 THEN NULL WHEN + 37 THEN - CASE - ( - + 24 ) WHEN + - 30 * + 69 * + CAST( NULL AS SIGNED ) THEN 6 WHEN COUNT( * ) * + 42 THEN 70 + + 82 END * ( 98 ) END + - 67 * + 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3836
SELECT - CASE + + 85 WHEN ( 18 ) * - 4 * - - 16 * + 20 * + 36 * - 0 THEN - ( - 75 ) WHEN - + COUNT ( * ) / 43 + 10 + 65 * - 46 / + COUNT ( * ) + - 76 THEN NULL WHEN + 37 THEN - CASE - ( - + 24 ) WHEN + - 30 * + 69 * + CAST ( NULL AS INTEGER ) THEN 6 WHEN COUNT ( * ) * + 42 THEN 70 + + 82 END * ( 98 ) END + - 67 * + 64 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT ALL + 92 * + 33 - - - 37 + 59 * - CASE + NULLIF ( - 39, - - SUM( DISTINCT 21 ) + 32 ) WHEN 82 THEN NULL WHEN + - 67 THEN 14 WHEN 11 THEN NULL END * + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-3837
SELECT ALL + 92 * + 33 - - - 37 + 59 * - CASE + NULLIF ( - 39, - - SUM ( DISTINCT 21 ) + 32 ) WHEN 82 THEN NULL WHEN + - 67 THEN 14 WHEN 11 THEN NULL END * + 89
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3838
SELECT + CAST( NULL AS SIGNED ) / - 0 + - MIN( DISTINCT + 85 ) + + - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-3838
SELECT + CAST ( NULL AS INTEGER ) / - 0 + - MIN ( DISTINCT + 85 ) + + - 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT MAX( ALL + - 67 ) * - 42
----
2814

skipif mysql # not compatible
query I rowsort label-3839
SELECT MAX ( ALL + - 67 ) * - 42
----
2814

query I rowsort
SELECT DISTINCT - NULLIF ( - + 70, - - 71 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT ALL + - COUNT( * ) + + 64 + - 78 * - - 66 * + 99 AS col1
----
-509589

skipif mysql # not compatible
query I rowsort label-3841
SELECT ALL + - COUNT ( * ) + + 64 + - 78 * - - 66 * + 99 AS col1
----
-509589

query I rowsort
SELECT + 40 * - 75 col1
----
-3000

query I rowsort
SELECT + 18 * + ( 42 ) + - 57 + + + 20 * - - 85 + + 31 AS col0
----
2430

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT - COUNT( * ) * + + 41 + COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-3844
SELECT - COUNT ( * ) * + + 41 + COUNT ( * )
----
-40

query I rowsort
SELECT - ( 25 )
----
-25

query II rowsort
SELECT ALL - + ( 48 ), - 99 AS col1
----
-48
-99

query I rowsort
SELECT - ( - COALESCE ( 67, - + 58 ) ) * - 3 AS col0
----
-201

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3848
SELECT DISTINCT + 38 * - COUNT( * ) DIV + + 24 DIV - 2 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3848
SELECT DISTINCT + 38 * - COUNT ( * ) / + + 24 / - 2 AS col1
----
0

query I rowsort
SELECT ALL - 84 + + 21 AS col1
----
-63

query I rowsort
SELECT DISTINCT - ( 68 ) AS col2
----
-68

onlyif mysql # DIV for integer division: 
query II rowsort label-3851
SELECT - 18 AS col1, 11 + 51 DIV - + 47 AS col0
----
-18
10

skipif mysql # not compatible
query II rowsort label-3851
SELECT - 18 AS col1, 11 + 51 / - + 47 AS col0
----
-18
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT + COUNT( * ) * - 91 * - 67 * + 62 + + + COUNT( * ) AS col2
----
378015

skipif mysql # not compatible
query I rowsort label-3852
SELECT + COUNT ( * ) * - 91 * - 67 * + 62 + + + COUNT ( * ) AS col2
----
378015

query II rowsort
SELECT ALL 29 AS col2, NULLIF ( 10, - 16 ) + - 37
----
29
-27

query II rowsort
SELECT ALL 38 AS col0, + 95 + + + 23 AS col1
----
38
118

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3855
SELECT CAST( NULL AS DECIMAL ) * 84 * + 24 * - 4 * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3855
SELECT CAST ( NULL AS REAL ) * 84 * + 24 * - 4 * + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3856
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - ( 61 ) AS col0, 75
----
NULL
75

skipif mysql # not compatible
query II rowsort label-3856
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - ( 61 ) AS col0, 75
----
NULL
75

query II rowsort
SELECT ALL 4 AS col1, + 11 AS col1
----
4
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3858
SELECT 33 + CAST( 84 AS DECIMAL ) * - 17 / + - COUNT( * ) / ( - COUNT( * ) ) / - - MAX( - 42 ) * - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3858
SELECT 33 + CAST ( 84 AS REAL ) * - 17 / + - COUNT ( * ) / ( - COUNT ( * ) ) / - - MAX ( - 42 ) * - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 80 + 12
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3860
SELECT - CAST( NULL AS SIGNED ), 88 AS col1
----
NULL
88

skipif mysql # not compatible
query II rowsort label-3860
SELECT - CAST ( NULL AS INTEGER ), 88 AS col1
----
NULL
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT ALL COALESCE ( COUNT( * ), - - 16 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3861
SELECT ALL COALESCE ( COUNT ( * ), - - 16 ) AS col2
----
1

query II rowsort
SELECT 2 AS col0, + 86
----
2
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3863
SELECT - 49 + + NULLIF ( - - 53, - - CAST( NULL AS SIGNED ) * - 32 ) - + CAST( NULL AS SIGNED ) * 49 * + 22 * - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-3863
SELECT - 49 + + NULLIF ( - - 53, - - CAST ( NULL AS INTEGER ) * - 32 ) - + CAST ( NULL AS INTEGER ) * 49 * + 22 * - 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT + MIN( DISTINCT + 69 ) * 17 * - 14
----
-16422

skipif mysql # not compatible
query I rowsort label-3864
SELECT + MIN ( DISTINCT + 69 ) * 17 * - 14
----
-16422

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3865
SELECT - 16 + + 63 / + CAST( - - 16 AS DECIMAL ) * - - COUNT( * ) * + NULLIF ( - COUNT( * ), - 55 ) * + - COUNT( * ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-3865
SELECT - 16 + + 63 / + CAST ( - - 16 AS REAL ) * - - COUNT ( * ) * + NULLIF ( - COUNT ( * ), - 55 ) * + - COUNT ( * ) AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT + - 33 * - 40 + - 59 + 53 + COUNT( * ) + - + 22 AS col0
----
1293

skipif mysql # not compatible
query I rowsort label-3866
SELECT + - 33 * - 40 + - 59 + 53 + COUNT ( * ) + - + 22 AS col0
----
1293

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT + MAX( ALL + + 80 )
----
80

skipif mysql # not compatible
query I rowsort label-3867
SELECT + MAX ( ALL + + 80 )
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-3868
SELECT 39 DIV 15 + 92
----
94

skipif mysql # not compatible
query I rowsort label-3868
SELECT 39 / 15 + 92
----
94

query I rowsort
SELECT - 28 * + 87 + - - 76
----
-2360

query II rowsort
SELECT DISTINCT - 77, - 39 - 81 AS col2
----
-77
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT - SUM( 26 ) + - COUNT( * ) * + 9 * - 70 * - 7
----
-4436

skipif mysql # not compatible
query I rowsort label-3871
SELECT - SUM ( 26 ) + - COUNT ( * ) * + 9 * - 70 * - 7
----
-4436

query II rowsort
SELECT 44 col1, + 60 AS col1
----
44
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT MIN( DISTINCT 89 )
----
89

skipif mysql # not compatible
query I rowsort label-3873
SELECT MIN ( DISTINCT 89 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT ALL + COUNT( 73 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3874
SELECT ALL + COUNT ( 73 ) AS col1
----
1

query I rowsort
SELECT - 55 * + 64 AS col2
----
-3520

onlyif mysql # aggregate syntax: 
query II rowsort label-3876
SELECT + 71, 43 + - 62 * + - COUNT( * ) AS col1
----
71
105

skipif mysql # not compatible
query II rowsort label-3876
SELECT + 71, 43 + - 62 * + - COUNT ( * ) AS col1
----
71
105

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT SUM( - 6 ) col2
----
-6

skipif mysql # not compatible
query I rowsort label-3877
SELECT SUM ( - 6 ) col2
----
-6

query II rowsort
SELECT ALL + 83, + 21 * + 11 AS col1
----
83
231

query I rowsort
SELECT DISTINCT + ( - 48 ) * 26 * - - 81
----
-101088

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT DISTINCT MIN( ALL - + ( + 89 ) )
----
-89

skipif mysql # not compatible
query I rowsort label-3880
SELECT DISTINCT MIN ( ALL - + ( + 89 ) )
----
-89

query I rowsort
SELECT - 96 * + 10 AS col0
----
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT - COUNT( * ) + + - 75 AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-3882
SELECT - COUNT ( * ) + + - 75 AS col0
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3883
SELECT ALL + 90 * + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3883
SELECT ALL + 90 * + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT ALL COALESCE ( - + 22, - 47, 61, 80 * + 38 ), 19 AS col2
----
-22
19

query II rowsort
SELECT - 89 + 51 AS col1, 53 * 54
----
-38
2862

query II rowsort
SELECT 27 AS col0, + 43 AS col1
----
27
43

query II rowsort
SELECT 65, - 22 col0
----
65
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT - 29 * + SUM( + + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-3888
SELECT - 29 * + SUM ( + + 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT + 35 + + - CASE + 4 WHEN + COUNT( * ) THEN 91 WHEN 68 * - - NULLIF ( - 19, 11 ) THEN NULL ELSE NULL END + - 99 * + 62 * - COUNT( + 75 ) + + MIN( + COALESCE ( + 73, 49 / + NULLIF ( - - ( + 80 ), 51 ) * 76 + + 38 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3889
SELECT + 35 + + - CASE + 4 WHEN + COUNT ( * ) THEN 91 WHEN 68 * - - NULLIF ( - 19, 11 ) THEN NULL ELSE NULL END + - 99 * + 62 * - COUNT ( + 75 ) + + MIN ( + COALESCE ( + 73, 49 / + NULLIF ( - - ( + 80 ), 51 ) * 76 + + 38 ) )
----
NULL

query I rowsort
SELECT DISTINCT ( 44 )
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3891
SELECT - COUNT( * ) AS col2, COUNT( * ) DIV + 48 - - 8 col2
----
-1
8

skipif mysql # not compatible
query II rowsort label-3891
SELECT - COUNT ( * ) AS col2, COUNT ( * ) / + 48 - - 8 col2
----
-1
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT DISTINCT - + COUNT( * ) + COUNT( * ) * 61 + 54 + - 32 + - 46 + + + COALESCE ( + - MIN( ALL 14 ), - - 23 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-3892
SELECT DISTINCT - + COUNT ( * ) + COUNT ( * ) * 61 + 54 + - 32 + - 46 + + + COALESCE ( + - MIN ( ALL 14 ), - - 23 ) AS col2
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-3893
SELECT ALL 77 + - 52 col1, + COUNT( * ) + 0 AS col2
----
25
1

skipif mysql # not compatible
query II rowsort label-3893
SELECT ALL 77 + - 52 col1, + COUNT ( * ) + 0 AS col2
----
25
1

query II rowsort
SELECT + 47 * 56 AS col1, - 51
----
2632
-51

query I rowsort
SELECT ALL - 98 + - + 94 AS col1
----
-192

query I rowsort
SELECT - + 18 - - + 48 * 3 AS col0
----
126

onlyif mysql # aggregate syntax: 
query II rowsort label-3897
SELECT ALL - COUNT( * ) * 59 + + + 19 + + 91 * + SUM( + - 20 ) AS col0, - 15 AS col2
----
-1860
-15

skipif mysql # not compatible
query II rowsort label-3897
SELECT ALL - COUNT ( * ) * 59 + + + 19 + + 91 * + SUM ( + - 20 ) AS col0, - 15 AS col2
----
-1860
-15

query I rowsort
SELECT ALL - 49 + - 19 col0
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3899
SELECT + - CAST( NULL AS SIGNED ) * + + 61 / + 9 + + 24 * ( 37 ) * - ( + - COALESCE ( + CAST( NULL AS SIGNED ), - 97 / + COUNT( * ) * + CAST( - 78 AS SIGNED ) * - CAST( + + COUNT( * ) AS SIGNED ), 73 ) ) + + - 70 + - 32 + + ( - - 58 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3899
SELECT + - CAST ( NULL AS INTEGER ) * + + 61 / + 9 + + 24 * ( 37 ) * - ( + - COALESCE ( + CAST ( NULL AS INTEGER ), - 97 / + COUNT ( * ) * + CAST ( - 78 AS INTEGER ) * - CAST ( + + COUNT ( * ) AS INTEGER ), 73 ) ) + + - 70 + - 32 + + ( - - 58 ) AS col2
----
NULL

query I rowsort
SELECT + + 68 * + + 54 AS col1
----
3672

onlyif mysql # DIV for integer division: 
query II rowsort label-3901
SELECT ALL + 84 AS col1, - 15 DIV 34
----
84
0

skipif mysql # not compatible
query II rowsort label-3901
SELECT ALL + 84 AS col1, - 15 / 34
----
84
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3902
SELECT - COALESCE ( - NULLIF ( 68, + 14 * + 60 ), 14 ) DIV + + 84
----
0

skipif mysql # not compatible
query I rowsort label-3902
SELECT - COALESCE ( - NULLIF ( 68, + 14 * + 60 ), 14 ) / + + 84
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3903
SELECT ALL + + ( + + ( - + MAX( 58 ) ) ) AS col2, NULLIF ( COUNT( * ), - - AVG ( ( - + ( - 96 ) ) ) ) * + SUM( DISTINCT - 83 )
----
-58
-83

skipif mysql # not compatible
query II rowsort label-3903
SELECT ALL + + ( + + ( - + MAX ( 58 ) ) ) AS col2, NULLIF ( COUNT ( * ), - - AVG ( ( - + ( - 96 ) ) ) ) * + SUM ( DISTINCT - 83 )
----
-58
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT DISTINCT 38 * - COUNT( * ) + 11 - 46 + - 44 AS col2
----
-117

skipif mysql # not compatible
query I rowsort label-3904
SELECT DISTINCT 38 * - COUNT ( * ) + 11 - 46 + - 44 AS col2
----
-117

query II rowsort
SELECT 40 col0, 42 * 23 + + 15 AS col1
----
40
981

onlyif mysql # aggregate syntax: 
query II rowsort label-3906
SELECT ALL 88 * MIN( - 59 ) - - 4 - 29 * + 9 AS col0, 31 AS col2
----
-5449
31

skipif mysql # not compatible
query II rowsort label-3906
SELECT ALL 88 * MIN ( - 59 ) - - 4 - 29 * + 9 AS col0, 31 AS col2
----
-5449
31

query I rowsort
SELECT + - 42 * + - 10 AS col1
----
420

onlyif mysql # aggregate syntax: 
query II rowsort label-3908
SELECT ALL 85 * + - 95, + NULLIF ( - 31, - MIN( ALL + 40 ) ) AS col2
----
-8075
-31

skipif mysql # not compatible
query II rowsort label-3908
SELECT ALL 85 * + - 95, + NULLIF ( - 31, - MIN ( ALL + 40 ) ) AS col2
----
-8075
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-3909
SELECT DISTINCT + SUM( + - 18 ) col2, - COUNT( * ) AS col0
----
-18
-1

skipif mysql # not compatible
query II rowsort label-3909
SELECT DISTINCT + SUM ( + - 18 ) col2, - COUNT ( * ) AS col0
----
-18
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3910
SELECT ALL - 66 * 30 DIV 87
----
-22

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL - 66 * 30 / 87
----
-22

query II rowsort
SELECT + 43 * + 81 AS col1, 75 AS col0
----
3483
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3912
SELECT + CAST( + + ( - 90 ) AS SIGNED )
----
-90

skipif mysql # not compatible
query I rowsort label-3912
SELECT + CAST ( + + ( - 90 ) AS INTEGER )
----
-90

query I rowsort
SELECT 3 * 89 - + 38 AS col0
----
229

query I rowsort
SELECT - 13 * + + ( + ( + 52 ) ) AS col0
----
-676

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3915
SELECT DISTINCT - 22 / - 61 / - - CAST( NULL AS SIGNED ) * 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3915
SELECT DISTINCT - 22 / - 61 / - - CAST ( NULL AS INTEGER ) * 57 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT COALESCE ( - - 92, + 49, COUNT( - 59 ) + + 39 ) col2
----
92

skipif mysql # not compatible
query I rowsort label-3916
SELECT COALESCE ( - - 92, + 49, COUNT ( - 59 ) + + 39 ) col2
----
92

query I rowsort
SELECT + 1 - + - 36
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3918
SELECT + 77 * - - COUNT( * ) * - CAST( NULL AS SIGNED ) / + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-3918
SELECT + 77 * - - COUNT ( * ) * - CAST ( NULL AS INTEGER ) / + 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT - SUM( - + 45 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-3919
SELECT - SUM ( - + 45 ) AS col1
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-3920
SELECT - SUM( DISTINCT - 32 ) AS col0, SUM( 51 )
----
32
51

skipif mysql # not compatible
query II rowsort label-3920
SELECT - SUM ( DISTINCT - 32 ) AS col0, SUM ( 51 )
----
32
51

query I rowsort
SELECT ALL ( 32 ) AS col0
----
32

query I rowsort
SELECT ALL - 4 * ( + + 94 ) AS col2
----
-376

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3923
SELECT - COUNT( * ) DIV - 49 * - 42 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3923
SELECT - COUNT ( * ) / - 49 * - 42 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3924
SELECT DISTINCT CAST( 51 AS SIGNED ) AS col2, - 36 + - 41 + - 43 + - 95 - 37 DIV - 16
----
51
-213

skipif mysql # not compatible
query II rowsort label-3924
SELECT DISTINCT CAST ( 51 AS INTEGER ) AS col2, - 36 + - 41 + - 43 + - 95 - 37 / - 16
----
51
-213

query I rowsort
SELECT ALL - 32 + - - 30 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT ALL - COUNT( * ) + - ( + + MIN( ALL 61 ) ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-3926
SELECT ALL - COUNT ( * ) + - ( + + MIN ( ALL 61 ) ) AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3927
SELECT DISTINCT 66 + + - MIN( - 52 ) * - 20 + + COUNT( * ) + - + 32 col1
----
-1005

skipif mysql # not compatible
query I rowsort label-3927
SELECT DISTINCT 66 + + - MIN ( - 52 ) * - 20 + + COUNT ( * ) + - + 32 col1
----
-1005

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3928
SELECT ALL CASE + SUM( - 38 ) WHEN - 81 + - CAST( + 40 AS SIGNED ) * - - 80 THEN NULL ELSE COUNT( ALL + 67 ) END col2
----
1

skipif mysql # not compatible
query I rowsort label-3928
SELECT ALL CASE + SUM ( - 38 ) WHEN - 81 + - CAST ( + 40 AS INTEGER ) * - - 80 THEN NULL ELSE COUNT ( ALL + 67 ) END col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT - 98 + + NULLIF ( + - 55, - + SUM( - - 96 ) + + - 65 ) col0
----
-153

skipif mysql # not compatible
query I rowsort label-3929
SELECT - 98 + + NULLIF ( + - 55, - + SUM ( - - 96 ) + + - 65 ) col0
----
-153

query I rowsort
SELECT + 67 - + + 4 + CASE - + ( 36 ) WHEN - - 94 + - + 3 THEN + 22 * - 30 - - 60 WHEN + + 43 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT - COUNT( * ) + - 90 * - CASE 80 WHEN + 15 + SUM( - 20 ) * - + ( - - 25 ) + + - 10 THEN + + 24 WHEN 84 * - + 17 * - SUM( ALL + NULLIF ( + 70, - 34 + - NULLIF ( - 21, + - 77 ) ) ) - + MIN( + 43 ) THEN + ( + COUNT( * ) ) ELSE 31 END
----
2789

skipif mysql # not compatible
query I rowsort label-3931
SELECT - COUNT ( * ) + - 90 * - CASE 80 WHEN + 15 + SUM ( - 20 ) * - + ( - - 25 ) + + - 10 THEN + + 24 WHEN 84 * - + 17 * - SUM ( ALL + NULLIF ( + 70, - 34 + - NULLIF ( - 21, + - 77 ) ) ) - + MIN ( + 43 ) THEN + ( + COUNT ( * ) ) ELSE 31 END
----
2789

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT ALL - + NULLIF ( - + 16, + + 64 ) + + 57 * + NULLIF ( + COUNT( * ), 15 )
----
73

skipif mysql # not compatible
query I rowsort label-3932
SELECT ALL - + NULLIF ( - + 16, + + 64 ) + + 57 * + NULLIF ( + COUNT ( * ), 15 )
----
73

query I rowsort
SELECT - 25 + 12 AS col1
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3934
SELECT DISTINCT - ( 47 ) - + 59 - CASE - 92 WHEN + 64 * 9 THEN - + 10 ELSE - + MIN( ALL + 20 ) * + 7 + 53 * + ( COUNT( * ) ) - - COALESCE ( + 31, 62 DIV 83 ) END AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-3934
SELECT DISTINCT - ( 47 ) - + 59 - CASE - 92 WHEN + 64 * 9 THEN - + 10 ELSE - + MIN ( ALL + 20 ) * + 7 + 53 * + ( COUNT ( * ) ) - - COALESCE ( + 31, 62 / 83 ) END AS col0
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3935
SELECT ALL MAX( DISTINCT + ( + CAST( 95 AS SIGNED ) ) ) * + 81 * + + 85 AS col1
----
654075

skipif mysql # not compatible
query I rowsort label-3935
SELECT ALL MAX ( DISTINCT + ( + CAST ( 95 AS INTEGER ) ) ) * + 81 * + + 85 AS col1
----
654075

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT ALL - COUNT( * ) * + + SUM( DISTINCT - 15 ) + - 8 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL - COUNT ( * ) * + + SUM ( DISTINCT - 15 ) + - 8 AS col1
----
7

query I rowsort
SELECT DISTINCT + NULLIF ( 98, - 1 + + - 8 ) - + 88 + - 14 * 56 * - 77
----
60378

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT - 23 * 26 + - 82 - + COALESCE ( - 90, - COUNT( * ) ) AS col2
----
-590

skipif mysql # not compatible
query I rowsort label-3938
SELECT - 23 * 26 + - 82 - + COALESCE ( - 90, - COUNT ( * ) ) AS col2
----
-590

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3939
SELECT COUNT( * ) DIV - 27 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3939
SELECT COUNT ( * ) / - 27 AS col2
----
0

query I rowsort
SELECT ALL - 7 * - 11 AS col1
----
77

query I rowsort
SELECT DISTINCT - ( - 15 ) col0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3942
SELECT 26 / - ( - NULLIF ( - AVG ( 16 ), NULLIF ( - 37, - COUNT( * ) ) * + - 2 * - 12 - - CASE + 75 WHEN + CAST( NULL AS SIGNED ) THEN + 34 WHEN + CASE + CAST( NULL AS SIGNED ) WHEN 52 / - 77 * - NULLIF ( + CAST( NULL AS SIGNED ), 5 ) * 70 + - 9 + - COALESCE ( - COUNT( * ), COUNT( - - 77 ) * - 0 / 60 ) THEN 25 END * - 79 THEN - 66 * ( 36 ) + + 1 END ) ) + - 28 / NULLIF ( + CASE 91 WHEN + 37 / + 91 THEN 53 ELSE NULL END + - 28, - CAST( - 82 AS SIGNED ) / 93 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3942
SELECT 26 / - ( - NULLIF ( - AVG ( 16 ), NULLIF ( - 37, - COUNT ( * ) ) * + - 2 * - 12 - - CASE + 75 WHEN + CAST ( NULL AS INTEGER ) THEN + 34 WHEN + CASE + CAST ( NULL AS INTEGER ) WHEN 52 / - 77 * - NULLIF ( + CAST ( NULL AS INTEGER ), 5 ) * 70 + - 9 + - COALESCE ( - COUNT ( * ), COUNT ( - - 77 ) * - 0 / 60 ) THEN 25 END * - 79 THEN - 66 * ( 36 ) + + 1 END ) ) + - 28 / NULLIF ( + CASE 91 WHEN + 37 / + 91 THEN 53 ELSE NULL END + - 28, - CAST ( - 82 AS INTEGER ) / 93 ) AS col2
----
NULL

query II rowsort
SELECT 79 AS col1, - 90
----
79
-90

query I rowsort
SELECT ALL - 35 * - 16 * + 94 * 32 AS col1
----
1684480

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3945
SELECT 44 * + CAST( NULL AS DECIMAL ) * - + 44 AS col2, 52 + - COUNT( * )
----
NULL
51

skipif mysql # not compatible
query II rowsort label-3945
SELECT 44 * + CAST ( NULL AS REAL ) * - + 44 AS col2, 52 + - COUNT ( * )
----
NULL
51

onlyif mysql # DIV for integer division: 
query II rowsort label-3946
SELECT 26 * 8 + - 54 DIV + + 27, + 87 AS col0
----
206
87

skipif mysql # not compatible
query II rowsort label-3946
SELECT 26 * 8 + - 54 / + + 27, + 87 AS col0
----
206
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3947
SELECT 60 AS col2, CAST( 94 AS SIGNED ) - + + 73 AS col1
----
60
21

skipif mysql # not compatible
query II rowsort label-3947
SELECT 60 AS col2, CAST ( 94 AS INTEGER ) - + + 73 AS col1
----
60
21

query I rowsort
SELECT 34 + + 63 AS col0
----
97

query I rowsort
SELECT 69 * + + 83 AS col1
----
5727

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3950
SELECT 72 + CAST( 42 AS SIGNED ) - - COUNT( * ) AS col1
----
115

skipif mysql # not compatible
query I rowsort label-3950
SELECT 72 + CAST ( 42 AS INTEGER ) - - COUNT ( * ) AS col1
----
115

query I rowsort
SELECT DISTINCT 83 + + 1 AS col1
----
84

query II rowsort
SELECT DISTINCT - 85 col1, + 62 * - + 34
----
-85
-2108

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT ALL - 0 + 13 + COUNT( * ) + - COUNT( - - 0 ) * + + 40
----
-26

skipif mysql # not compatible
query I rowsort label-3953
SELECT ALL - 0 + 13 + COUNT ( * ) + - COUNT ( - - 0 ) * + + 40
----
-26

query I rowsort
SELECT 64 * + 23 + + ( - 86 ) AS col1
----
1386

query I rowsort
SELECT 69 + - 9 AS col0
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-3956
SELECT ALL + - COALESCE ( 44, - 0, 53 - - 65 - + + 32 ) DIV + 40
----
-1

skipif mysql # not compatible
query I rowsort label-3956
SELECT ALL + - COALESCE ( 44, - 0, 53 - - 65 - + + 32 ) / + 40
----
-1

query I rowsort
SELECT 55 + + 3 AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT 86 * 62 + - - 41 * + - 7 * + + COUNT( * ) - - 29 AS col0
----
5074

skipif mysql # not compatible
query I rowsort label-3958
SELECT 86 * 62 + - - 41 * + - 7 * + + COUNT ( * ) - - 29 AS col0
----
5074

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT ALL - MAX( DISTINCT - 37 ) col0
----
37

skipif mysql # not compatible
query I rowsort label-3959
SELECT ALL - MAX ( DISTINCT - 37 ) col0
----
37

query I rowsort
SELECT 78 + - - 10
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT - COUNT( 3 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3961
SELECT - COUNT ( 3 ) AS col2
----
-1

query II rowsort
SELECT ALL 61, 32 AS col2
----
61
32

onlyif mysql # aggregate syntax: 
query II rowsort label-3963
SELECT ALL COUNT( * ), + 60 AS col2
----
1
60

skipif mysql # not compatible
query II rowsort label-3963
SELECT ALL COUNT ( * ), + 60 AS col2
----
1
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3964
SELECT DISTINCT - - 33 * - + 95 * - 54 AS col2, COUNT( * ) * + 95 * COUNT( * ) + + 85 - - MIN( DISTINCT + + 54 ) + - - 3 - + COUNT( DISTINCT - + 99 ) DIV - 71 * + 74 + CASE + - 67 WHEN COUNT( * ) * 38 * - 99 THEN + - 56 + 50 + - 69 - + 47 WHEN SUM( 54 ) + - 93 - - - 0 THEN NULL ELSE + 13 + + 99 DIV + 52 END * - 52 * 56
----
169290
-40531

skipif mysql # not compatible
query II rowsort label-3964
SELECT DISTINCT - - 33 * - + 95 * - 54 AS col2, COUNT ( * ) * + 95 * COUNT ( * ) + + 85 - - MIN ( DISTINCT + + 54 ) + - - 3 - + COUNT ( DISTINCT - + 99 ) / - 71 * + 74 + CASE + - 67 WHEN COUNT ( * ) * 38 * - 99 THEN + - 56 + 50 + - 69 - + 47 WHEN SUM ( 54 ) + - 93 - - - 0 THEN NULL ELSE + 13 + + 99 / + 52 END * - 52 * 56
----
169290
-40531

onlyif mysql # aggregate syntax: 
query II rowsort label-3965
SELECT 34 * + - 26 * + CASE + + 99 WHEN 39 THEN NULL WHEN - 9 THEN NULL ELSE - MIN( ALL - - 30 ) + - 93 + + 64 END * - - CASE + + 93 WHEN 35 + 39 THEN - 1 + - MAX( + 25 ) * + - 86 * - + 32 + 53 ELSE NULL END - 34, 16 AS col2
----
NULL
16

skipif mysql # not compatible
query II rowsort label-3965
SELECT 34 * + - 26 * + CASE + + 99 WHEN 39 THEN NULL WHEN - 9 THEN NULL ELSE - MIN ( ALL - - 30 ) + - 93 + + 64 END * - - CASE + + 93 WHEN 35 + 39 THEN - 1 + - MAX ( + 25 ) * + - 86 * - + 32 + 53 ELSE NULL END - 34, 16 AS col2
----
NULL
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3966
SELECT 37 - - CAST( + 2 AS SIGNED ) + - 92
----
-53

skipif mysql # not compatible
query I rowsort label-3966
SELECT 37 - - CAST ( + 2 AS INTEGER ) + - 92
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT COALESCE ( + 18, - - COUNT( * ) )
----
18

skipif mysql # not compatible
query I rowsort label-3967
SELECT COALESCE ( + 18, - - COUNT ( * ) )
----
18

query II rowsort
SELECT + 7 AS col0, + 28 * + ( + - 55 ) + - 97 AS col2
----
7
-1637

query II rowsort
SELECT - - 27 AS col2, 82 AS col2
----
27
82

query II rowsort
SELECT ALL + 70 AS col0, 9 - - 57
----
70
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT COUNT( ALL - 29 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3971
SELECT COUNT ( ALL - 29 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3972
SELECT 40 DIV + 47 - + 96 + 72 DIV - - 91 * + - 95 - + MAX( + ( + 27 ) ) * + 3 + 55
----
-122

skipif mysql # not compatible
query I rowsort label-3972
SELECT 40 / + 47 - + 96 + 72 / - - 91 * + - 95 - + MAX ( + ( + 27 ) ) * + 3 + 55
----
-122

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3973
SELECT DISTINCT + COUNT( * ) DIV - + 92, COUNT( * ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-3973
SELECT DISTINCT + COUNT ( * ) / - + 92, COUNT ( * ) AS col2
----
0
1

query I rowsort
SELECT ALL 84 * - 84 col2
----
-7056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3975
SELECT ALL + CAST( NULL AS SIGNED ) + 95 * + 36 - + 47 * + ( + - 16 ) * - 74 * - - COUNT( * ) * 62 - - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-3975
SELECT ALL + CAST ( NULL AS INTEGER ) + 95 * + 36 - + 47 * + ( + - 16 ) * - 74 * - - COUNT ( * ) * 62 - - 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT 40 * 88 + - COUNT( * ) * + + 26
----
3494

skipif mysql # not compatible
query I rowsort label-3976
SELECT 40 * 88 + - COUNT ( * ) * + + 26
----
3494

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3977
SELECT COUNT( * ) + ( + ( - - 13 ) ) + - + 56 - - 47 DIV NULLIF ( + 4, + - 77 ) * + 99 + + - 85
----
962

skipif mysql # not compatible
query I rowsort label-3977
SELECT COUNT ( * ) + ( + ( - - 13 ) ) + - + 56 - - 47 / NULLIF ( + 4, + - 77 ) * + 99 + + - 85
----
962

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3978
SELECT COUNT( * ) DIV + 1 AS col0, - 90 * COUNT( * ) + + 33 + - - 1 * - 32
----
1
-89

skipif mysql # not compatible
query II rowsort label-3978
SELECT COUNT ( * ) / + 1 AS col0, - 90 * COUNT ( * ) + + 33 + - - 1 * - 32
----
1
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-3979
SELECT + 80 * + COALESCE ( + + COALESCE ( 51, 80 ), - 62 * 93 - COUNT( * ) ) + + + COUNT( * ) AS col2, MAX( ALL + 41 ) col0
----
4081
41

skipif mysql # not compatible
query II rowsort label-3979
SELECT + 80 * + COALESCE ( + + COALESCE ( 51, 80 ), - 62 * 93 - COUNT ( * ) ) + + + COUNT ( * ) AS col2, MAX ( ALL + 41 ) col0
----
4081
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3980
SELECT ALL - CAST( + 21 AS SIGNED ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-3980
SELECT ALL - CAST ( + 21 AS INTEGER ) AS col0
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3981
SELECT ( - 44 ) DIV + - 91 * - + COUNT( * ) * + - 63
----
0

skipif mysql # not compatible
query I rowsort label-3981
SELECT ( - 44 ) / + - 91 * - + COUNT ( * ) * + - 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT CASE - 81 WHEN + 30 + + COUNT( * ) THEN - 79 * - 31 + - 35 END * 64 + COUNT( * ) + - 29 * + 34 + - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-3982
SELECT CASE - 81 WHEN + 30 + + COUNT ( * ) THEN - 79 * - 31 + - 35 END * 64 + COUNT ( * ) + - 29 * + 34 + - 66
----
NULL

query I rowsort
SELECT ALL - COALESCE ( - 19, 83 ) AS col1
----
19

query I rowsort
SELECT 49 - + 44
----
5

query I rowsort
SELECT - 57 * 46 - 10 AS col1
----
-2632

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT 0 * MAX( DISTINCT + 35 )
----
0

skipif mysql # not compatible
query I rowsort label-3986
SELECT 0 * MAX ( DISTINCT + 35 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3987
SELECT ALL - 70 * + + 46 * - 13 * CAST( - - 92 AS SIGNED ) AS col1, - COUNT( * ) * + + 53 DIV + + 49 + + 43 AS col0
----
3851120
42

skipif mysql # not compatible
query II rowsort label-3987
SELECT ALL - 70 * + + 46 * - 13 * CAST ( - - 92 AS INTEGER ) AS col1, - COUNT ( * ) * + + 53 / + + 49 + + 43 AS col0
----
3851120
42

query I rowsort
SELECT ALL 72 * - + 10 AS col2
----
-720

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3989
SELECT ALL - ( 10 ) AS col1, CAST( NULL AS DECIMAL ) + - COUNT( * )
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-3989
SELECT ALL - ( 10 ) AS col1, CAST ( NULL AS REAL ) + - COUNT ( * )
----
-10
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3990
SELECT ALL - CAST( NULL AS SIGNED ) * + 31 * - 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3990
SELECT ALL - CAST ( NULL AS INTEGER ) * + 31 * - 72 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3991
SELECT - + 98 * - 90 * + COUNT( * ) / + + 77 + + - CAST( NULL AS SIGNED ), 42 * + COUNT( * ) AS col0
----
NULL
42

skipif mysql # not compatible
query II rowsort label-3991
SELECT - + 98 * - 90 * + COUNT ( * ) / + + 77 + + - CAST ( NULL AS INTEGER ), 42 * + COUNT ( * ) AS col0
----
NULL
42

query I rowsort
SELECT - 56 * - - 3
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT + + CASE WHEN NOT ( NOT + 50 IS NULL ) THEN + CASE - 67 WHEN - COUNT( * ) / - 86 THEN NULL WHEN 95 + + + 61 THEN + 79 ELSE 41 * 42 + 31 - - + 25 + COUNT( * ) + - 43 + - 1 END + - - 95 ELSE NULL END + + 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3993
SELECT + + CASE WHEN NOT ( NOT + 50 IS NULL ) THEN + CASE - 67 WHEN - COUNT ( * ) / - 86 THEN NULL WHEN 95 + + + 61 THEN + 79 ELSE 41 * 42 + 31 - - + 25 + COUNT ( * ) + - 43 + - 1 END + - - 95 ELSE NULL END + + 33 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3994
SELECT + - 79 + - - 19 DIV + 45 * 43 + + - 26 AS col0
----
-105

skipif mysql # not compatible
query I rowsort label-3994
SELECT + - 79 + - - 19 / + 45 * 43 + + - 26 AS col0
----
-105

query I rowsort
SELECT + 18 * + 80
----
1440

query I rowsort
SELECT + + 5 + - 15 AS col2
----
-10

query I rowsort
SELECT ALL + - ( - 1 ) * + 83 + - 74 AS col2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3998
SELECT ALL 1 DIV + + 43 DIV + 3 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3998
SELECT ALL 1 / + + 43 / + 3 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT ALL COUNT( ALL + 78 ) + - 0
----
1

skipif mysql # not compatible
query I rowsort label-3999
SELECT ALL COUNT ( ALL + 78 ) + - 0
----
1

query I rowsort
SELECT - 97 + + 44
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT ALL + 35 * + MIN( DISTINCT + 97 )
----
3395

skipif mysql # not compatible
query I rowsort label-4001
SELECT ALL + 35 * + MIN ( DISTINCT + 97 )
----
3395

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4002
SELECT - 14 * + 45 * - ( + ( + MAX( - - CAST( NULL AS DECIMAL ) ) ) ) * - + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-4002
SELECT - 14 * + 45 * - ( + ( + MAX ( - - CAST ( NULL AS REAL ) ) ) ) * - + 53
----
NULL

query I rowsort
SELECT DISTINCT + 62 + + 18 * 64 AS col2
----
1214

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT ALL - ( + 46 ) + + COUNT( DISTINCT + + 54 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-4004
SELECT ALL - ( + 46 ) + + COUNT ( DISTINCT + + 54 ) AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT - COUNT( * ) + + 49 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-4005
SELECT - COUNT ( * ) + + 49 AS col1
----
48

query I rowsort
SELECT - 78 * + + 58 AS col0
----
-4524

query I rowsort
SELECT - 43 + 54 - + 64 + + ( 48 ) * - 67 + + + ( + - 45 ) * - 85
----
556

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4008
SELECT ALL 26 * CASE + + COUNT( * ) WHEN 22 + + 73 THEN + 12 * + COUNT( + 89 ) ELSE - NULLIF ( + 37, + COALESCE ( - - 38, + MAX( DISTINCT 98 ) + 17 ) ) END DIV - 88 + - 94
----
-84

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL 26 * CASE + + COUNT ( * ) WHEN 22 + + 73 THEN + 12 * + COUNT ( + 89 ) ELSE - NULLIF ( + 37, + COALESCE ( - - 38, + MAX ( DISTINCT 98 ) + 17 ) ) END / - 88 + - 94
----
-84

query I rowsort
SELECT ALL 95 * 84 + + 53
----
8033

query I rowsort
SELECT NULLIF ( + - 54, - 30 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT COALESCE ( + ( + + 28 ), 55 + COUNT( * ) ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-4011
SELECT COALESCE ( + ( + + 28 ), 55 + COUNT ( * ) ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT ALL COUNT( * ) * - 98 * 80 * + 71 * - - ( + 67 ) + + 86
----
-37294794

skipif mysql # not compatible
query I rowsort label-4012
SELECT ALL COUNT ( * ) * - 98 * 80 * + 71 * - - ( + 67 ) + + 86
----
-37294794

query I rowsort
SELECT - 65 + - - 53 AS col0
----
-12

query I rowsort
SELECT ( - - 53 ) * + 62 - - - 55
----
3231

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT - COUNT( 53 )
----
-1

skipif mysql # not compatible
query I rowsort label-4015
SELECT - COUNT ( 53 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT + 34 + + SUM( DISTINCT ( + 76 ) ) AS col2
----
110

skipif mysql # not compatible
query I rowsort label-4016
SELECT + 34 + + SUM ( DISTINCT ( + 76 ) ) AS col2
----
110

query I rowsort
SELECT ALL + 30 * + CASE - 74 WHEN + + 19 THEN - 80 ELSE NULL END + 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT + NULLIF ( 87, + MAX( 86 ) * + + 43 ) + - 65 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-4018
SELECT + NULLIF ( 87, + MAX ( 86 ) * + + 43 ) + - 65 AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT ALL - MIN( + - ( 76 ) )
----
76

skipif mysql # not compatible
query I rowsort label-4019
SELECT ALL - MIN ( + - ( 76 ) )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT + COUNT( * ) + - + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4020
SELECT + COUNT ( * ) + - + COUNT ( * ) AS col0
----
0

query I rowsort
SELECT - 57 * + 36 col1
----
-2052

query I rowsort
SELECT + - 69 + 81
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT - MAX( + 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-4023
SELECT - MAX ( + 78 )
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-4024
SELECT + - MAX( ALL + - 70 ) + 53 + + - 62 * - 1 AS col0, + ( - 80 ) AS col0
----
185
-80

skipif mysql # not compatible
query II rowsort label-4024
SELECT + - MAX ( ALL + - 70 ) + 53 + + - 62 * - 1 AS col0, + ( - 80 ) AS col0
----
185
-80

query I rowsort
SELECT ALL + 14 * + 4
----
56

query I rowsort
SELECT + 63 + - - 17 + ( 67 ) AS col0
----
147

query I rowsort
SELECT ALL 46 + - CASE + 32 WHEN - 59 THEN 58 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 64 * + + 96 col0
----
6144

onlyif mysql # aggregate syntax: 
query II rowsort label-4029
SELECT ALL + ( + 0 ) + - COUNT( * ), 84 AS col0
----
-1
84

skipif mysql # not compatible
query II rowsort label-4029
SELECT ALL + ( + 0 ) + - COUNT ( * ), 84 AS col0
----
-1
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4030
SELECT ALL SUM( DISTINCT + + 26 ) + - + ( COUNT( CAST( NULL AS SIGNED ) ) ) + + + COUNT( * ) DIV + 76 * - - 19 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-4030
SELECT ALL SUM ( DISTINCT + + 26 ) + - + ( COUNT ( CAST ( NULL AS INTEGER ) ) ) + + + COUNT ( * ) / + 76 * - - 19 AS col0
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-4031
SELECT + 49 DIV 98 * + 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4031
SELECT + 49 / 98 * + 69 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4032
SELECT ALL COUNT( * ) AS col0, 58 + - 36
----
1
22

skipif mysql # not compatible
query II rowsort label-4032
SELECT ALL COUNT ( * ) AS col0, 58 + - 36
----
1
22

query II rowsort
SELECT 76 AS col0, 57
----
76
57

query II rowsort
SELECT - 64 AS col2, - 78
----
-64
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4035
SELECT DISTINCT 8 DIV + + CAST( - + COUNT( * ) AS SIGNED ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-4035
SELECT DISTINCT 8 / + + CAST ( - + COUNT ( * ) AS INTEGER ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT - 19 * MAX( DISTINCT 42 ) AS col2
----
-798

skipif mysql # not compatible
query I rowsort label-4036
SELECT - 19 * MAX ( DISTINCT 42 ) AS col2
----
-798

query II rowsort
SELECT + 31 * 47 AS col0, 75
----
1457
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4038
SELECT ALL 37 DIV COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-4038
SELECT ALL 37 / COUNT ( * )
----
37

onlyif mysql # DIV for integer division: 
query II rowsort label-4039
SELECT ALL 22 DIV + - 61 * - 57 + + 59, + 71 col1
----
59
71

skipif mysql # not compatible
query II rowsort label-4039
SELECT ALL 22 / + - 61 * - 57 + + 59, + 71 col1
----
59
71

onlyif mysql # DIV for integer division: 
query I rowsort label-4040
SELECT DISTINCT 72 DIV - 27
----
-2

skipif mysql # not compatible
query I rowsort label-4040
SELECT DISTINCT 72 / - 27
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT DISTINCT + 87 * MIN( + 44 )
----
3828

skipif mysql # not compatible
query I rowsort label-4041
SELECT DISTINCT + 87 * MIN ( + 44 )
----
3828

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4042
SELECT CAST( NULL AS DECIMAL ) AS col1, CAST( - + 86 AS SIGNED ) * + + 47 AS col2
----
NULL
-4042

skipif mysql # not compatible
query II rowsort label-4042
SELECT CAST ( NULL AS REAL ) AS col1, CAST ( - + 86 AS INTEGER ) * + + 47 AS col2
----
NULL
-4042

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4043
SELECT CAST( - - 42 AS SIGNED )
----
42

skipif mysql # not compatible
query I rowsort label-4043
SELECT CAST ( - - 42 AS INTEGER )
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-4044
SELECT 14 DIV + - 71 + - - 86 - - 52 AS col2
----
138

skipif mysql # not compatible
query I rowsort label-4044
SELECT 14 / + - 71 + - - 86 - - 52 AS col2
----
138

query II rowsort
SELECT ALL + 23 AS col0, + 87 AS col1
----
23
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT - SUM( + 33 ) + - 41 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-4046
SELECT - SUM ( + 33 ) + - 41 AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT - 34 * + 98 * 93 + - - COUNT( * ) + + 79
----
-309796

skipif mysql # not compatible
query I rowsort label-4047
SELECT - 34 * + 98 * 93 + - - COUNT ( * ) + + 79
----
-309796

query I rowsort
SELECT - 6 - + 76
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT DISTINCT - 92 * + - ( - COUNT( ALL 77 ) ) + + COUNT( * ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-4049
SELECT DISTINCT - 92 * + - ( - COUNT ( ALL 77 ) ) + + COUNT ( * ) AS col0
----
-91

query II rowsort
SELECT ALL + 30, - 17 AS col2
----
30
-17

query I rowsort
SELECT - CASE + - 84 WHEN + 96 + + - 93 THEN + + 83 + - 95 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT - 75 * - MIN( DISTINCT - 9 ) AS col1
----
-675

skipif mysql # not compatible
query I rowsort label-4052
SELECT - 75 * - MIN ( DISTINCT - 9 ) AS col1
----
-675

query I rowsort
SELECT ALL + - ( + + 39 )
----
-39

onlyif mysql # DIV for integer division: 
query II rowsort label-4054
SELECT ALL - + 54, 15 DIV - + 9 AS col1
----
-54
-1

skipif mysql # not compatible
query II rowsort label-4054
SELECT ALL - + 54, 15 / - + 9 AS col1
----
-54
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4055
SELECT DISTINCT NULLIF ( - COUNT( * ), 75 ) * + 56 col1, - 78 * 26 * - 86 * + COUNT( * ) * + 75 + + + 90 * + 7 * - MAX( - 40 ) * + 9 + - 70 - + ( + COUNT( * ) ) + SUM( - CASE + - 39 WHEN - 60 / 79 + - 90 THEN + COALESCE ( - + CAST( NULL AS DECIMAL ), - 3 - - NULLIF ( - - 98, + ( 14 ) * + 20 + ( 79 ) / 30 ) ) END ) * 21 AS col2
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-4055
SELECT DISTINCT NULLIF ( - COUNT ( * ), 75 ) * + 56 col1, - 78 * 26 * - 86 * + COUNT ( * ) * + 75 + + + 90 * + 7 * - MAX ( - 40 ) * + 9 + - 70 - + ( + COUNT ( * ) ) + SUM ( - CASE + - 39 WHEN - 60 / 79 + - 90 THEN + COALESCE ( - + CAST ( NULL AS REAL ), - 3 - - NULLIF ( - - 98, + ( 14 ) * + 20 + ( 79 ) / 30 ) ) END ) * 21 AS col2
----
-56
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4056
SELECT ALL - + 27 DIV 36 - + 22 * + + 9 * + 65 + + 91 - 55 * - 63 + + 32 AS col1
----
-9282

skipif mysql # not compatible
query I rowsort label-4056
SELECT ALL - + 27 / 36 - + 22 * + + 9 * + 65 + + 91 - 55 * - 63 + + 32 AS col1
----
-9282

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4057
SELECT ( + + MIN( + 37 ) ) DIV + SUM( DISTINCT + ( + 46 ) ) * - 42 + COUNT( DISTINCT - 50 ) + + 4
----
5

skipif mysql # not compatible
query I rowsort label-4057
SELECT ( + + MIN ( + 37 ) ) / + SUM ( DISTINCT + ( + 46 ) ) * - 42 + COUNT ( DISTINCT - 50 ) + + 4
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT + 11 * - ( + - CASE + - MAX( 11 ) WHEN 93 THEN + 72 * 83 / - - 52 WHEN - 18 * COUNT( * ) + + + 30 THEN - 12 * + - 61 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4058
SELECT + 11 * - ( + - CASE + - MAX ( 11 ) WHEN 93 THEN + 72 * 83 / - - 52 WHEN - 18 * COUNT ( * ) + + + 30 THEN - 12 * + - 61 END ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4059
SELECT 43 - + COALESCE ( - - 6, - + CAST( - - 68 AS SIGNED ) ) + + 46 - 67 * - - 14 * SUM( - 80 ) + 52 AS col1
----
75175

skipif mysql # not compatible
query I rowsort label-4059
SELECT 43 - + COALESCE ( - - 6, - + CAST ( - - 68 AS INTEGER ) ) + + 46 - 67 * - - 14 * SUM ( - 80 ) + 52 AS col1
----
75175

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT ( - + MAX( ALL + 40 ) ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-4060
SELECT ( - + MAX ( ALL + 40 ) ) AS col0
----
-40

query I rowsort
SELECT DISTINCT - 76 * + COALESCE ( - 65, + 96 + - - 58 )
----
4940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4062
SELECT + + 79 * + + ( - 23 ) + - CAST( 99 AS SIGNED ) - - + 93 * - COUNT( * ) * + - 46 + + 45 AS col2, + 79 * - CAST( 35 AS SIGNED ) AS col2
----
2407
-2765

skipif mysql # not compatible
query II rowsort label-4062
SELECT + + 79 * + + ( - 23 ) + - CAST ( 99 AS INTEGER ) - - + 93 * - COUNT ( * ) * + - 46 + + 45 AS col2, + 79 * - CAST ( 35 AS INTEGER ) AS col2
----
2407
-2765

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4063
SELECT - NULLIF ( + COALESCE ( + + CAST( NULL AS SIGNED ), + 17 * - 20 - - AVG ( + 15 ) * + 41 * + CASE - 99 WHEN + 97 / + 37 + - ( + COUNT( * ) ) THEN 61 * + - 81 * - - 87 / + - COUNT( * ) WHEN - + 4 THEN NULL END ), + + CASE CAST( NULL AS SIGNED ) WHEN 38 * 68 + + AVG ( + 48 ) - + 84 + 58 THEN CAST( + - 49 AS DECIMAL ) WHEN - 13 + 54 * - CAST( - 24 AS SIGNED ) THEN ( + 2 ) * 3 WHEN 51 THEN NULL ELSE 14 * 24 END + 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4063
SELECT - NULLIF ( + COALESCE ( + + CAST ( NULL AS INTEGER ), + 17 * - 20 - - AVG ( + 15 ) * + 41 * + CASE - 99 WHEN + 97 / + 37 + - ( + COUNT ( * ) ) THEN 61 * + - 81 * - - 87 / + - COUNT ( * ) WHEN - + 4 THEN NULL END ), + + CASE CAST ( NULL AS INTEGER ) WHEN 38 * 68 + + AVG ( + 48 ) - + 84 + 58 THEN CAST ( + - 49 AS REAL ) WHEN - 13 + 54 * - CAST ( - 24 AS INTEGER ) THEN ( + 2 ) * 3 WHEN 51 THEN NULL ELSE 14 * 24 END + 32 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT 78 * COUNT( * ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-4064
SELECT 78 * COUNT ( * ) AS col1
----
78

query I rowsort
SELECT DISTINCT - - 85 * - 91 * - 85
----
657475

query I rowsort
SELECT 12 - - 92 AS col0
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT DISTINCT + + 72 + - - COUNT( * ) - + + 98 + 9 * + COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-4067
SELECT DISTINCT + + 72 + - - COUNT ( * ) - + + 98 + 9 * + COUNT ( * )
----
-16

query I rowsort
SELECT + 27 * - 89 AS col1
----
-2403

query II rowsort
SELECT ALL + CASE - 48 WHEN + 6 THEN + 90 ELSE NULL END + - 92 - - 64, + 77 AS col2
----
NULL
77

query I rowsort
SELECT 91 + - 81 * - - 52
----
-4121

query I rowsort
SELECT 27 + 27
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-4072
SELECT COUNT( * ) + - 19 AS col2, 5 * - - 14 col0
----
-18
70

skipif mysql # not compatible
query II rowsort label-4072
SELECT COUNT ( * ) + - 19 AS col2, 5 * - - 14 col0
----
-18
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4073
SELECT ALL - CAST( NULL AS SIGNED ) * 21 * + - 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4073
SELECT ALL - CAST ( NULL AS INTEGER ) * 21 * + - 84 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT 53 + + + COUNT( * ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-4074
SELECT 53 + + + COUNT ( * ) AS col0
----
54

query II rowsort
SELECT DISTINCT 31 - 15, 93 col0
----
16
93

onlyif mysql # DIV for integer division: 
query I rowsort label-4076
SELECT 72 + + 1 + - 3 - + 13 DIV NULLIF ( - + 81, - - 52 )
----
70

skipif mysql # not compatible
query I rowsort label-4076
SELECT 72 + + 1 + - 3 - + 13 / NULLIF ( - + 81, - - 52 )
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-4077
SELECT ALL 66 - 62 DIV 25
----
64

skipif mysql # not compatible
query I rowsort label-4077
SELECT ALL 66 - 62 / 25
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4078
SELECT 43 * - COUNT( * ) DIV 53
----
0

skipif mysql # not compatible
query I rowsort label-4078
SELECT 43 * - COUNT ( * ) / 53
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT 78 * - COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-4079
SELECT 78 * - COUNT ( * )
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4080
SELECT ( - - ( + COUNT( * ) ) ) + 4 DIV + - 15 - - 98 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-4080
SELECT ( - - ( + COUNT ( * ) ) ) + 4 / + - 15 - - 98 AS col2
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4081
SELECT DISTINCT 53 DIV 46 DIV 40
----
0

skipif mysql # not compatible
query I rowsort label-4081
SELECT DISTINCT 53 / 46 / 40
----
0

query I rowsort
SELECT ALL - NULLIF ( + + ( 16 ), - 70 )
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4083
SELECT CASE WHEN NOT NULL IS NULL THEN CAST( NULL AS SIGNED ) END / 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4083
SELECT CASE WHEN NOT NULL IS NULL THEN CAST ( NULL AS INTEGER ) END / 85 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4084
SELECT DISTINCT + MAX( - - 69 ) * + 89 AS col1, 80 AS col2
----
6141
80

skipif mysql # not compatible
query II rowsort label-4084
SELECT DISTINCT + MAX ( - - 69 ) * + 89 AS col1, 80 AS col2
----
6141
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT ALL CASE + COUNT( * ) WHEN + 59 THEN NULL ELSE + 11 END + - 83 * - 32 col1
----
2667

skipif mysql # not compatible
query I rowsort label-4085
SELECT ALL CASE + COUNT ( * ) WHEN + 59 THEN NULL ELSE + 11 END + - 83 * - 32 col1
----
2667

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT + 54 * + COUNT( * ) + + 59 AS col0
----
113

skipif mysql # not compatible
query I rowsort label-4086
SELECT + 54 * + COUNT ( * ) + + 59 AS col0
----
113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4087
SELECT ALL - 47 * + 48 + + 54 * 55 * - 62 * ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL - 47 * + 48 + + 54 * 55 * - 62 * ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4088
SELECT 57 + - 5 + + + 68 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4088
SELECT 57 + - 5 + + + 68 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4089
SELECT NULLIF ( - + CAST( 60 AS SIGNED ), 2 + 66 + COUNT( * ) * + AVG ( + 60 ) ) + 99 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-4089
SELECT NULLIF ( - + CAST ( 60 AS INTEGER ), 2 + 66 + COUNT ( * ) * + AVG ( + 60 ) ) + 99 AS col0
----
39

query I rowsort
SELECT ALL + 56 + + + 1 AS col1
----
57

query I rowsort
SELECT + COALESCE ( - + 61, - 74 + + 94 + 68 * + 59 ) col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT ALL - COUNT( DISTINCT - 6 ) + - 34 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-4092
SELECT ALL - COUNT ( DISTINCT - 6 ) + - 34 AS col0
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-4093
SELECT DISTINCT 50 + COUNT( * ) AS col1, 18 * - + CASE - 85 WHEN ( - + 77 ) THEN NULL WHEN - 80 THEN - + 86 ELSE NULL END + CASE 19 WHEN + 6 / 4 - + 18 + + - 15 - - 17 THEN + + 7 WHEN - 82 THEN NULL END AS col1
----
51
NULL

skipif mysql # not compatible
query II rowsort label-4093
SELECT DISTINCT 50 + COUNT ( * ) AS col1, 18 * - + CASE - 85 WHEN ( - + 77 ) THEN NULL WHEN - 80 THEN - + 86 ELSE NULL END + CASE 19 WHEN + 6 / 4 - + 18 + + - 15 - - 17 THEN + + 7 WHEN - 82 THEN NULL END AS col1
----
51
NULL

query II rowsort
SELECT 27 + - 64, 74 AS col1
----
-37
74

query II rowsort
SELECT 73 + - 44 AS col1, - 18
----
29
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-4096
SELECT - 34 + + 27 AS col2, + 11 * + SUM( - - 51 ) * + COUNT( * ) * - 67 * + 67 + + 33 + 59 AS col0
----
-7
-2518237

skipif mysql # not compatible
query II rowsort label-4096
SELECT - 34 + + 27 AS col2, + 11 * + SUM ( - - 51 ) * + COUNT ( * ) * - 67 * + 67 + + 33 + 59 AS col0
----
-7
-2518237

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT ALL + - 7 * - COUNT( + 8 ) + + 89
----
96

skipif mysql # not compatible
query I rowsort label-4097
SELECT ALL + - 7 * - COUNT ( + 8 ) + + 89
----
96

query I rowsort
SELECT 72 + - 40 AS col0
----
32

query I rowsort
SELECT ALL - 13 - + + 2 * - + 64 AS col1
----
115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4100
SELECT ALL + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4100
SELECT ALL + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - 7 AS col2
----
NULL

query I rowsort
SELECT 62 * + 95
----
5890

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4102
SELECT ALL NULLIF ( + 31, - - COUNT( * ) * - CASE - 64 WHEN - 69 THEN + ( - 11 ) ELSE 2 END * CAST( NULL AS SIGNED ) * - 16 + + + 98 + ( + + 92 ) - NULLIF ( 43, + 35 ) + - MIN( - 14 ) + + 63 + + 11 )
----
31

skipif mysql # not compatible
query I rowsort label-4102
SELECT ALL NULLIF ( + 31, - - COUNT ( * ) * - CASE - 64 WHEN - 69 THEN + ( - 11 ) ELSE 2 END * CAST ( NULL AS INTEGER ) * - 16 + + + 98 + ( + + 92 ) - NULLIF ( 43, + 35 ) + - MIN ( - 14 ) + + 63 + + 11 )
----
31

query I rowsort
SELECT 88 * - - 29
----
2552

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT MAX( ALL + 46 ) - - 37
----
83

skipif mysql # not compatible
query I rowsort label-4104
SELECT MAX ( ALL + 46 ) - - 37
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4105
SELECT 44 AS col2, 63 * - 4 * CAST( NULL AS SIGNED )
----
44
NULL

skipif mysql # not compatible
query II rowsort label-4105
SELECT 44 AS col2, 63 * - 4 * CAST ( NULL AS INTEGER )
----
44
NULL

query I rowsort
SELECT ALL 12 * + 4
----
48

query II rowsort
SELECT DISTINCT - 45 AS col1, 54
----
-45
54

query I rowsort
SELECT DISTINCT - 69 * + 82 AS col0
----
-5658

query I rowsort
SELECT + 25 * 37 + + - 7
----
918

query I rowsort
SELECT ALL 76 * - 47 AS col2
----
-3572

query II rowsort
SELECT 0 AS col2, - 96
----
0
-96

query II rowsort
SELECT 38, 47 AS col0
----
38
47

query I rowsort
SELECT ALL 22 * - 71 + + 13
----
-1549

query II rowsort
SELECT + 36 AS col0, 49 * 16 AS col1
----
36
784

onlyif mysql # DIV for integer division: 
query I rowsort label-4115
SELECT + + 71 * 24 DIV - - 79 - + 55
----
-34

skipif mysql # not compatible
query I rowsort label-4115
SELECT + + 71 * 24 / - - 79 - + 55
----
-34

query I rowsort
SELECT DISTINCT + + 73 * - - 54 + + + 45
----
3987

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4117
SELECT 75, 11 * 74 + + 25 + - 77 + - CAST( + 92 AS SIGNED ) + 55 * 96 + + + 31 + - - 95 AS col1, + 31 + + SUM( DISTINCT + 89 ) AS col1
----
75
6076
120

skipif mysql # not compatible
query III rowsort label-4117
SELECT 75, 11 * 74 + + 25 + - 77 + - CAST ( + 92 AS INTEGER ) + 55 * 96 + + + 31 + - - 95 AS col1, + 31 + + SUM ( DISTINCT + 89 ) AS col1
----
75
6076
120

onlyif mysql # DIV for integer division: 
query II rowsort label-4118
SELECT 90 * + 3 * 78 * + 57 + + - ( + 2 ) DIV + 88 + 83 col0, - 88 col1
----
1200503
-88

skipif mysql # not compatible
query II rowsort label-4118
SELECT 90 * + 3 * 78 * + 57 + + - ( + 2 ) / + 88 + 83 col0, - 88 col1
----
1200503
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT DISTINCT + COUNT( DISTINCT + + 81 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4119
SELECT DISTINCT + COUNT ( DISTINCT + + 81 ) AS col0
----
1

query I rowsort
SELECT DISTINCT - 27 * - 80 + + 58 + - 52 - 64
----
2102

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT ALL - + 47 * - COUNT( * ) + - 25
----
22

skipif mysql # not compatible
query I rowsort label-4121
SELECT ALL - + 47 * - COUNT ( * ) + - 25
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT + ( + 10 ) * MIN( DISTINCT + 50 ) * - + 89
----
-44500

skipif mysql # not compatible
query I rowsort label-4122
SELECT + ( + 10 ) * MIN ( DISTINCT + 50 ) * - + 89
----
-44500

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT ALL - - 55 * 29 * + SUM( 47 ) + + 33 + + 79 * - 25
----
73023

skipif mysql # not compatible
query I rowsort label-4123
SELECT ALL - - 55 * 29 * + SUM ( 47 ) + + 33 + + 79 * - 25
----
73023

query I rowsort
SELECT + - 44 - + 84 + - - 95
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-4125
SELECT 36 AS col2, MAX( + + 62 ) + + + 36 AS col0
----
36
98

skipif mysql # not compatible
query II rowsort label-4125
SELECT 36 AS col2, MAX ( + + 62 ) + + + 36 AS col0
----
36
98

query I rowsort
SELECT ALL 79 * + - 45 col1
----
-3555

onlyif mysql # aggregate syntax: 
query II rowsort label-4127
SELECT + + MIN( 94 ) + + 31 * - ( + 35 ) * + CASE - 54 WHEN - 65 + 51 + - 91 THEN + AVG ( ALL - 36 ) END - - 16, - 83 AS col2
----
NULL
-83

skipif mysql # not compatible
query II rowsort label-4127
SELECT + + MIN ( 94 ) + + 31 * - ( + 35 ) * + CASE - 54 WHEN - 65 + 51 + - 91 THEN + AVG ( ALL - 36 ) END - - 16, - 83 AS col2
----
NULL
-83

query I rowsort
SELECT - - 64 * - COALESCE ( - 44, + 27, - 58 )
----
2816

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT - ( - ( - COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4129
SELECT - ( - ( - COUNT ( * ) ) )
----
-1

query I rowsort
SELECT ALL + - 42 - - 4 AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT ALL CASE + - CASE + COALESCE ( 87, - COUNT( * ) * ( + - 88 ), - 35 * + 67 + 3 + + + 78 * 63 + COUNT( * ) ) WHEN - + 64 * 99 * + 56 * COUNT( * ) * + COUNT( * ) THEN 32 * - 34 WHEN + 77 / - - 27 * + MIN( DISTINCT - 13 ) + - 98 * + ( - - COUNT( * ) ) + + CASE - AVG ( + - 98 ) WHEN + + 2 THEN SUM( + 74 ) + 12 END / 76 THEN NULL ELSE 9 END WHEN + 32 + - 89 THEN 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4131
SELECT ALL CASE + - CASE + COALESCE ( 87, - COUNT ( * ) * ( + - 88 ), - 35 * + 67 + 3 + + + 78 * 63 + COUNT ( * ) ) WHEN - + 64 * 99 * + 56 * COUNT ( * ) * + COUNT ( * ) THEN 32 * - 34 WHEN + 77 / - - 27 * + MIN ( DISTINCT - 13 ) + - 98 * + ( - - COUNT ( * ) ) + + CASE - AVG ( + - 98 ) WHEN + + 2 THEN SUM ( + 74 ) + 12 END / 76 THEN NULL ELSE 9 END WHEN + 32 + - 89 THEN 50 END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4132
SELECT - 8 - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4132
SELECT - 8 - - CAST ( NULL AS REAL ) AS col1
----
NULL

query II rowsort
SELECT ALL + 54 * - 31 AS col1, - 41
----
-1674
-41

query I rowsort
SELECT + 72 + + 54 * - + CASE 10 WHEN - 90 THEN NULL ELSE 95 END AS col2
----
-5058

query I rowsort
SELECT ALL + 55 * + 61 col1
----
3355

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT - COUNT( * ) + + + 56 - + 89 + + 11 col1
----
-23

skipif mysql # not compatible
query I rowsort label-4136
SELECT - COUNT ( * ) + + + 56 - + 89 + + 11 col1
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4137
SELECT - ( 86 ) DIV + COUNT( * ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-4137
SELECT - ( 86 ) / + COUNT ( * ) AS col2
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4138
SELECT - 25 + - - 39 * + - 94 + + 57 + 52 + - 30 DIV + COUNT( * ) AS col2
----
-3612

skipif mysql # not compatible
query I rowsort label-4138
SELECT - 25 + - - 39 * + - 94 + + 57 + 52 + - 30 / + COUNT ( * ) AS col2
----
-3612

query I rowsort
SELECT - 30 - 61 + 83 * + - 66
----
-5569

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT DISTINCT + COUNT( * ) * - - 84
----
84

skipif mysql # not compatible
query I rowsort label-4140
SELECT DISTINCT + COUNT ( * ) * - - 84
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4141
SELECT - ( CASE - 23 WHEN + 17 THEN - + 18 WHEN - + 24 THEN - - 18 * + CASE + COUNT( * ) WHEN + - 58 THEN NULL WHEN - 23 * COALESCE ( - 93, - 65, + MIN( DISTINCT + + CAST( 81 AS SIGNED ) ) ) + - 88 THEN MAX( 56 ) WHEN 76 THEN + - 83 ELSE + COALESCE ( NULLIF ( - + 46, + ( + + 39 ) ), + - ( 47 ) * - ( SUM( 94 ) ) + + 39, - 19 ) END * + 99 ELSE 58 END ) + 61 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4141
SELECT - ( CASE - 23 WHEN + 17 THEN - + 18 WHEN - + 24 THEN - - 18 * + CASE + COUNT ( * ) WHEN + - 58 THEN NULL WHEN - 23 * COALESCE ( - 93, - 65, + MIN ( DISTINCT + + CAST ( 81 AS INTEGER ) ) ) + - 88 THEN MAX ( 56 ) WHEN 76 THEN + - 83 ELSE + COALESCE ( NULLIF ( - + 46, + ( + + 39 ) ), + - ( 47 ) * - ( SUM ( 94 ) ) + + 39, - 19 ) END * + 99 ELSE 58 END ) + 61 AS col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4142
SELECT ALL + 55 * + CAST( NULL AS SIGNED ) * - CASE - + COUNT( * ) WHEN 52 - - 67 THEN NULL ELSE 97 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4142
SELECT ALL + 55 * + CAST ( NULL AS INTEGER ) * - CASE - + COUNT ( * ) WHEN 52 - - 67 THEN NULL ELSE 97 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT ( + 36 ) col0
----
36

query I rowsort
SELECT ALL NULLIF ( + - 22, 56 ) AS col0
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-4145
SELECT DISTINCT + 38 * - 72 AS col1, SUM( - - NULLIF ( - 0, 72 * - 60 ) ) AS col0
----
-2736
0

skipif mysql # not compatible
query II rowsort label-4145
SELECT DISTINCT + 38 * - 72 AS col1, SUM ( - - NULLIF ( - 0, 72 * - 60 ) ) AS col0
----
-2736
0

query I rowsort
SELECT ALL - 83 * - 93 * + 68
----
524892

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT ALL CASE + 99 WHEN + 23 THEN - - CASE - 98 WHEN + - 67 THEN NULL ELSE - 48 END WHEN - 80 * 29 THEN NULL WHEN - + COUNT( * ) THEN NULL END + - 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL CASE + 99 WHEN + 23 THEN - - CASE - 98 WHEN + - 67 THEN NULL ELSE - 48 END WHEN - 80 * 29 THEN NULL WHEN - + COUNT ( * ) THEN NULL END + - 4 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4148
SELECT ALL + COUNT( * ) + - + 28 + + MIN( + + 57 ) + + CAST( - 44 AS SIGNED ) + - ( + + 45 ) col2
----
-59

skipif mysql # not compatible
query I rowsort label-4148
SELECT ALL + COUNT ( * ) + - + 28 + + MIN ( + + 57 ) + + CAST ( - 44 AS INTEGER ) + - ( + + 45 ) col2
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4149
SELECT ALL 83 / - + 10 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL 83 / - + 10 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4150
SELECT - + 75 + ( - SUM( CAST( NULL AS SIGNED ) ) ) + + ( + ( + 41 ) ), 6 col0
----
NULL
6

skipif mysql # not compatible
query II rowsort label-4150
SELECT - + 75 + ( - SUM ( CAST ( NULL AS INTEGER ) ) ) + + ( + ( + 41 ) ), 6 col0
----
NULL
6

query II rowsort
SELECT - - 0 + + 73 AS col2, 89
----
73
89

query I rowsort
SELECT + - 38 col1
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4153
SELECT ALL + CAST( + 29 AS SIGNED ) AS col1, - CASE + - 21 WHEN + + 30 + + 19 THEN - 21 WHEN - - 73 THEN NULL END
----
29
NULL

skipif mysql # not compatible
query II rowsort label-4153
SELECT ALL + CAST ( + 29 AS INTEGER ) AS col1, - CASE + - 21 WHEN + + 30 + + 19 THEN - 21 WHEN - - 73 THEN NULL END
----
29
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4154
SELECT ALL 28 DIV - 69 + + 63 + + + 47 AS col1
----
110

skipif mysql # not compatible
query I rowsort label-4154
SELECT ALL 28 / - 69 + + 63 + + + 47 AS col1
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4155
SELECT DISTINCT - CASE + 22 WHEN 41 THEN NULL WHEN 7 / - - MIN( DISTINCT + 31 ) THEN NULL ELSE + 86 END * + ( - - CAST( + 50 AS SIGNED ) ) * + - 76 * 36
----
11764800

skipif mysql # not compatible
query I rowsort label-4155
SELECT DISTINCT - CASE + 22 WHEN 41 THEN NULL WHEN 7 / - - MIN ( DISTINCT + 31 ) THEN NULL ELSE + 86 END * + ( - - CAST ( + 50 AS INTEGER ) ) * + - 76 * 36
----
11764800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4156
SELECT ALL - - CAST( - 74 AS SIGNED ) DIV COUNT( * ) + COUNT( DISTINCT - + 60 ) + 99 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-4156
SELECT ALL - - CAST ( - 74 AS INTEGER ) / COUNT ( * ) + COUNT ( DISTINCT - + 60 ) + 99 AS col2
----
26

onlyif mysql # DIV for integer division: 
query II rowsort label-4157
SELECT - 86 DIV + 94 + 31 + + 22, 20 AS col2
----
53
20

skipif mysql # not compatible
query II rowsort label-4157
SELECT - 86 / + 94 + 31 + + 22, 20 AS col2
----
53
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT DISTINCT - COUNT( * ) * + MAX( - 38 ) * MAX( ALL + 91 ) + + 87 + + - 46 - - - ( + 65 ) AS col0
----
3434

skipif mysql # not compatible
query I rowsort label-4158
SELECT DISTINCT - COUNT ( * ) * + MAX ( - 38 ) * MAX ( ALL + 91 ) + + 87 + + - 46 - - - ( + 65 ) AS col0
----
3434

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4159
SELECT DISTINCT + - 65 * - COALESCE ( + 5, + 84 * + 15 - + SUM( DISTINCT + 83 ) * 91 + + 23 + + + 55 + - 93 * + + MIN( ALL - 52 ) * + - 36 + 57 * 92 DIV - + 73 - 35, 86 DIV - 18 * - 33 + - 87 + + 48 * - 84 + - - 19 )
----
325

skipif mysql # not compatible
query I rowsort label-4159
SELECT DISTINCT + - 65 * - COALESCE ( + 5, + 84 * + 15 - + SUM ( DISTINCT + 83 ) * 91 + + 23 + + + 55 + - 93 * + + MIN ( ALL - 52 ) * + - 36 + 57 * 92 / - + 73 - 35, 86 / - 18 * - 33 + - 87 + + 48 * - 84 + - - 19 )
----
325

query I rowsort
SELECT ALL + + 79 * - - 28 + + 76 AS col2
----
2288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4161
SELECT + 94 * 84 + - + 20 + + ( 78 ) + + + 63 + + 39 + + COUNT( * ) * - SUM( DISTINCT + 44 ) * + 15 + + + COALESCE ( + - CAST( NULL AS SIGNED ), + - 37 ) * CAST( NULL AS SIGNED ) - - 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4161
SELECT + 94 * 84 + - + 20 + + ( 78 ) + + + 63 + + 39 + + COUNT ( * ) * - SUM ( DISTINCT + 44 ) * + 15 + + + COALESCE ( + - CAST ( NULL AS INTEGER ), + - 37 ) * CAST ( NULL AS INTEGER ) - - 0 AS col0
----
NULL

query II rowsort
SELECT - - 15 * + 79 AS col0, - 7 * 73
----
1185
-511

query I rowsort
SELECT - + 98 + + 90
----
-8

query I rowsort
SELECT DISTINCT + - 72 col1
----
-72

query I rowsort
SELECT ALL + - 48 * + 30 - + 45 AS col1
----
-1485

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT ALL + + MIN( 37 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-4166
SELECT ALL + + MIN ( 37 ) AS col2
----
37

query I rowsort
SELECT ALL + - NULLIF ( - - 20, - - 76 ) AS col0
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4168
SELECT DISTINCT + CASE - 64 WHEN + 45 THEN - 20 + 84 ELSE NULL END * 52 - + ( + NULLIF ( - 11, - + COUNT( * ) / - - CAST( NULL AS SIGNED ) * - - 50 ) ) - - 77 * 58
----
NULL

skipif mysql # not compatible
query I rowsort label-4168
SELECT DISTINCT + CASE - 64 WHEN + 45 THEN - 20 + 84 ELSE NULL END * 52 - + ( + NULLIF ( - 11, - + COUNT ( * ) / - - CAST ( NULL AS INTEGER ) * - - 50 ) ) - - 77 * 58
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4169
SELECT DISTINCT - 21 DIV + - COUNT( * ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-4169
SELECT DISTINCT - 21 / + - COUNT ( * ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT ALL - COUNT( * ) * - - 77
----
-77

skipif mysql # not compatible
query I rowsort label-4170
SELECT ALL - COUNT ( * ) * - - 77
----
-77

query II rowsort
SELECT DISTINCT 8 * + ( + + 96 ) AS col1, 85 AS col0
----
768
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT + 37 * + + COUNT( * ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-4172
SELECT + 37 * + + COUNT ( * ) AS col1
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-4173
SELECT ALL 43 * 52 DIV - + 74 col2
----
-30

skipif mysql # not compatible
query I rowsort label-4173
SELECT ALL 43 * 52 / - + 74 col2
----
-30

query I rowsort
SELECT - 54 + 12 AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT SUM( ALL - 69 ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-4175
SELECT SUM ( ALL - 69 ) AS col2
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4176
SELECT + 6 * - - 88 * - 42 / 13 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4176
SELECT + 6 * - - 88 * - 42 / 13 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4177
SELECT + NULLIF ( 24, 35 + + + CASE - 66 WHEN - - 57 THEN + 32 ELSE NULL END * - CAST( NULL AS DECIMAL ) ) * + - COUNT( * ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-4177
SELECT + NULLIF ( 24, 35 + + + CASE - 66 WHEN - - 57 THEN + 32 ELSE NULL END * - CAST ( NULL AS REAL ) ) * + - COUNT ( * ) AS col0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4178
SELECT - CAST( NULL AS SIGNED ) AS col0, + 63 * + 93
----
NULL
5859

skipif mysql # not compatible
query II rowsort label-4178
SELECT - CAST ( NULL AS INTEGER ) AS col0, + 63 * + 93
----
NULL
5859

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4179
SELECT DISTINCT 66 * + + CASE - COUNT( * ) WHEN + 63 * CAST( + 58 AS SIGNED ) + - - 78 DIV 82 THEN + ( 42 ) END, + 35 * - - 33 DIV - 71 DIV 65 * 72 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4179
SELECT DISTINCT 66 * + + CASE - COUNT ( * ) WHEN + 63 * CAST ( + 58 AS INTEGER ) + - - 78 / 82 THEN + ( 42 ) END, + 35 * - - 33 / - 71 / 65 * 72 AS col1
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT DISTINCT - 78 + COUNT( * ) * 11
----
-67

skipif mysql # not compatible
query I rowsort label-4180
SELECT DISTINCT - 78 + COUNT ( * ) * 11
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4181
SELECT ALL + NULLIF ( 94, + 78 ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4181
SELECT ALL + NULLIF ( 94, + 78 ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4182
SELECT 7, + COUNT( * ) col2
----
7
1

skipif mysql # not compatible
query II rowsort label-4182
SELECT 7, + COUNT ( * ) col2
----
7
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4183
SELECT DISTINCT 94 + COUNT( * ) DIV - 34 * - 49 * + 3 * 41
----
94

skipif mysql # not compatible
query I rowsort label-4183
SELECT DISTINCT 94 + COUNT ( * ) / - 34 * - 49 * + 3 * 41
----
94

query I rowsort
SELECT ALL + 24 + - 5 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT CASE - COUNT( * ) WHEN 50 THEN - 15 WHEN + COUNT( + + 43 ) * - 38 THEN NULL ELSE NULL END - 5 + - + 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4185
SELECT CASE - COUNT ( * ) WHEN 50 THEN - 15 WHEN + COUNT ( + + 43 ) * - 38 THEN NULL ELSE NULL END - 5 + - + 10 AS col2
----
NULL

query I rowsort
SELECT + 6 - - 39 * + 56 AS col0
----
2190

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT DISTINCT - CASE 2 WHEN + - 61 THEN + COUNT( * ) + - 17 ELSE + 2 - - 75 END col1
----
-77

skipif mysql # not compatible
query I rowsort label-4187
SELECT DISTINCT - CASE 2 WHEN + - 61 THEN + COUNT ( * ) + - 17 ELSE + 2 - - 75 END col1
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4188
SELECT DISTINCT - + 43 + - CAST( + 26 AS SIGNED ) + - COUNT( * ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-4188
SELECT DISTINCT - + 43 + - CAST ( + 26 AS INTEGER ) + - COUNT ( * ) AS col1
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4189
SELECT ALL - COUNT( * ) + + 24 - 20 DIV - 32 col2
----
23

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL - COUNT ( * ) + + 24 - 20 / - 32 col2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4190
SELECT ALL - - 76 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4190
SELECT ALL - - 76 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( + ( - 22 ) ) * 78 + - - 88 AS col0
----
-1628

query I rowsort
SELECT + 78 * + 36 * - 16 + + - 14
----
-44942

query II rowsort
SELECT DISTINCT - + 52 AS col1, 29
----
-52
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT + 22 + - SUM( - 2 )
----
24

skipif mysql # not compatible
query I rowsort label-4194
SELECT + 22 + - SUM ( - 2 )
----
24

query I rowsort
SELECT ALL - - 61 col0
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4196
SELECT + 71 * + 15 + CAST( NULL AS SIGNED ) * - 51 + - - 62 - - - 90 + + ( + 74 ) * - + 88 + - 58 * - 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4196
SELECT + 71 * + 15 + CAST ( NULL AS INTEGER ) * - 51 + - - 62 - - - 90 + + ( + 74 ) * - + 88 + - 58 * - 35 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4197
SELECT - 9 DIV 60 - - COUNT( * ) AS col2, CASE + + 42 WHEN + - 91 + COUNT( * ) THEN NULL ELSE + ( 47 ) END * + 1
----
1
47

skipif mysql # not compatible
query II rowsort label-4197
SELECT - 9 / 60 - - COUNT ( * ) AS col2, CASE + + 42 WHEN + - 91 + COUNT ( * ) THEN NULL ELSE + ( 47 ) END * + 1
----
1
47

query II rowsort
SELECT ALL - 91 col0, + 60 col2
----
-91
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT DISTINCT - MAX( DISTINCT + - NULLIF ( + - 35, + 42 ) )
----
-35

skipif mysql # not compatible
query I rowsort label-4199
SELECT DISTINCT - MAX ( DISTINCT + - NULLIF ( + - 35, + 42 ) )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT ALL + COUNT( - - ( 43 ) ) * 13 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-4200
SELECT ALL + COUNT ( - - ( 43 ) ) * 13 AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT DISTINCT + 64 * NULLIF ( - 85, - + COUNT( * ) )
----
-5440

skipif mysql # not compatible
query I rowsort label-4201
SELECT DISTINCT + 64 * NULLIF ( - 85, - + COUNT ( * ) )
----
-5440

query I rowsort
SELECT ALL - 55 * - + 32
----
1760

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT 43 - - MAX( DISTINCT + - 70 )
----
-27

skipif mysql # not compatible
query I rowsort label-4203
SELECT 43 - - MAX ( DISTINCT + - 70 )
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4204
SELECT 68 AS col0, - 80 AS col1, - + 57 * + - 56 DIV + - COUNT( * )
----
68
-80
-3192

skipif mysql # not compatible
query III rowsort label-4204
SELECT 68 AS col0, - 80 AS col1, - + 57 * + - 56 / + - COUNT ( * )
----
68
-80
-3192

query I rowsort
SELECT 52 + 97 AS col0
----
149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4206
SELECT 91 * 38 * 86 * ( + + CAST( COUNT( ALL CAST( - 60 AS SIGNED ) ) AS SIGNED ) ) + - 0 AS col0, - 1
----
297388
-1

skipif mysql # not compatible
query II rowsort label-4206
SELECT 91 * 38 * 86 * ( + + CAST ( COUNT ( ALL CAST ( - 60 AS INTEGER ) ) AS INTEGER ) ) + - 0 AS col0, - 1
----
297388
-1

query II rowsort
SELECT 82, 69 AS col0
----
82
69

query II rowsort
SELECT - 16 AS col1, 62 AS col0
----
-16
62

query I rowsort
SELECT DISTINCT 54 + + - 32
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT ALL COUNT( * ) + + 91
----
92

skipif mysql # not compatible
query I rowsort label-4210
SELECT ALL COUNT ( * ) + + 91
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-4211
SELECT 60 AS col0, + 33 - + 67 + + + COUNT( * )
----
60
-33

skipif mysql # not compatible
query II rowsort label-4211
SELECT 60 AS col0, + 33 - + 67 + + + COUNT ( * )
----
60
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4212
SELECT ALL 89 + MIN( - 26 ) * - + 45 * - 53 * - CASE + 79 WHEN + - 94 THEN 8 ELSE - SUM( + + 28 ) * 49 + 31 + - - CAST( NULL AS SIGNED ) + 40 - + 2 * - 60 * - - COUNT( 68 ) * - + 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4212
SELECT ALL 89 + MIN ( - 26 ) * - + 45 * - 53 * - CASE + 79 WHEN + - 94 THEN 8 ELSE - SUM ( + + 28 ) * 49 + 31 + - - CAST ( NULL AS INTEGER ) + 40 - + 2 * - 60 * - - COUNT ( 68 ) * - + 9 END
----
NULL

query I rowsort
SELECT 87 - + 59 * - 22 col1
----
1385

onlyif mysql # DIV for integer division: 
query I rowsort label-4214
SELECT ALL 1 DIV 4 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4214
SELECT ALL 1 / 4 AS col0
----
0

query I rowsort
SELECT ALL 60 + - 93 * - - 86
----
-7938

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT ALL CASE + - 58 WHEN 72 THEN + ( 7 ) + - COUNT( * ) + + + 67 * 63 END * + 51 + - - 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4216
SELECT ALL CASE + - 58 WHEN 72 THEN + ( 7 ) + - COUNT ( * ) + + + 67 * 63 END * + 51 + - - 65 AS col1
----
NULL

query II rowsort
SELECT - 82, 93 AS col1
----
-82
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT DISTINCT MIN( + 94 ) + - 2
----
92

skipif mysql # not compatible
query I rowsort label-4218
SELECT DISTINCT MIN ( + 94 ) + - 2
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4219
SELECT ALL 53 + + COUNT( * ) DIV COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-4219
SELECT ALL 53 + + COUNT ( * ) / COUNT ( * )
----
54

query I rowsort
SELECT 77 + + - 50 * 43 * - + 97 * + 83 * 19
----
328883427

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4221
SELECT 92 AS col1, CASE - - 36 WHEN - 14 THEN NULL WHEN + 86 THEN 12 ELSE + COUNT( * ) * + 67 * 36 + 93 + - 70 / + + CASE - - COUNT( * ) WHEN - 37 THEN + - COUNT( * ) * - - 75 * - COUNT( * ) * - CAST( - 5 AS DECIMAL ) * + 73 + + ( + 9 ) - + AVG ( - 45 ) * + 1 END END + 15 + - + 82
----
92
NULL

skipif mysql # not compatible
query II rowsort label-4221
SELECT 92 AS col1, CASE - - 36 WHEN - 14 THEN NULL WHEN + 86 THEN 12 ELSE + COUNT ( * ) * + 67 * 36 + 93 + - 70 / + + CASE - - COUNT ( * ) WHEN - 37 THEN + - COUNT ( * ) * - - 75 * - COUNT ( * ) * - CAST ( - 5 AS REAL ) * + 73 + + ( + 9 ) - + AVG ( - 45 ) * + 1 END END + 15 + - + 82
----
92
NULL

query II rowsort
SELECT 68 AS col2, - 84 AS col1
----
68
-84

query I rowsort
SELECT 32 - - 40 - + 92
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4224
SELECT ALL 73 + NULLIF ( COUNT( * ), + - CAST( + 30 AS SIGNED ) + + 15 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL 73 + NULLIF ( COUNT ( * ), + - CAST ( + 30 AS INTEGER ) + + 15 ) AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT ALL - COUNT( * ) + - 98 AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-4225
SELECT ALL - COUNT ( * ) + - 98 AS col1
----
-99

query III rowsort
SELECT 63 AS col0, 55 AS col0, 83 * 68
----
63
55
5644

query I rowsort
SELECT ALL + - 53 - + - 70 + 65 * ( 21 )
----
1382

query I rowsort
SELECT + 26 + + ( 97 ) + 62 * - 41 col2
----
-2419

query I rowsort
SELECT DISTINCT 5 - - + 89 AS col0
----
94

query I rowsort
SELECT ALL - 79 - - 88 + + 62 - - + 20 AS col1
----
91

query I rowsort
SELECT NULLIF ( 28, + - 77 + - 91 ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-4232
SELECT - + 93 AS col0, COUNT( - 22 ) AS col0
----
-93
1

skipif mysql # not compatible
query II rowsort label-4232
SELECT - + 93 AS col0, COUNT ( - 22 ) AS col0
----
-93
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4233
SELECT - COALESCE ( - + 12, + CAST( - 46 AS SIGNED ) * + 63 + - 82 * COUNT( * ) * COUNT( DISTINCT + - 94 ) + COUNT( * ), + + CAST( NULL AS SIGNED ) )
----
12

skipif mysql # not compatible
query I rowsort label-4233
SELECT - COALESCE ( - + 12, + CAST ( - 46 AS INTEGER ) * + 63 + - 82 * COUNT ( * ) * COUNT ( DISTINCT + - 94 ) + COUNT ( * ), + + CAST ( NULL AS INTEGER ) )
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-4234
SELECT + + 85 * + 0 DIV + 79 + - 19 * 51 AS col0
----
-969

skipif mysql # not compatible
query I rowsort label-4234
SELECT + + 85 * + 0 / + 79 + - 19 * 51 AS col0
----
-969

query I rowsort
SELECT ALL - + CASE + AVG ( - - 18 ) WHEN + 77 + + 72 THEN NULL WHEN - 36 THEN - 11 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT + 42 * + 31 + + SUM( - 40 ) - - 14 + + 1 + + 44
----
1321

skipif mysql # not compatible
query I rowsort label-4236
SELECT + 42 * + 31 + + SUM ( - 40 ) - - 14 + + 1 + + 44
----
1321

query I rowsort
SELECT ALL - 27 * - 19
----
513

onlyif mysql # DIV for integer division: 
query I rowsort label-4238
SELECT 16 DIV + ( - 40 ) - - 47 + 26 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-4238
SELECT 16 / + ( - 40 ) - - 47 + 26 AS col2
----
73

query I rowsort
SELECT ALL + - 69 * - + 3 - 48 AS col2
----
159

query I rowsort
SELECT DISTINCT - - 6 * - - 77 col2
----
462

query I rowsort
SELECT ALL + 35 * - 86 AS col2
----
-3010

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4242
SELECT + COUNT( * ) DIV + - 5 + 33 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-4242
SELECT + COUNT ( * ) / + - 5 + 33 AS col0
----
33

query I rowsort
SELECT ALL - NULLIF ( 22, + + NULLIF ( + 55, - 78 ) )
----
-22

query I rowsort
SELECT DISTINCT - 41 + + 21
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT 72 * - COUNT( + + 84 ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-4245
SELECT 72 * - COUNT ( + + 84 ) AS col1
----
-72

query I rowsort
SELECT ALL + 96 + + - 58 + + + 40 * - + 63 * - 40 AS col2
----
100838

query I rowsort
SELECT + 97 * - 47 + - 68
----
-4627

query I rowsort
SELECT ALL - 33 * - + 99 AS col0
----
3267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4249
SELECT ALL 66 + - 57 + - CAST( NULL AS SIGNED ) / 32 - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-4249
SELECT ALL 66 + - 57 + - CAST ( NULL AS INTEGER ) / 32 - 7
----
NULL

query I rowsort
SELECT ALL - 24 + 24 + - ( + + 88 ) AS col2
----
-88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4251
SELECT DISTINCT - 6 * - + 4, 16 * - 51 + + CASE - 59 WHEN + 24 * + COALESCE ( - ( COUNT( * ) ), - 45 ) + - - 74 THEN - CASE + + 27 WHEN + + 60 * + - CAST( NULL AS DECIMAL ) THEN - + COUNT( * ) WHEN + + 99 + - 18 * - ( + ( + + 19 ) ) THEN NULL ELSE 6 - - 59 END + + + ( - ( - 96 ) ) * - 29 * - CASE 75 WHEN + - 35 THEN COALESCE ( 84, 16 + + 99 ) WHEN + 3 THEN - 25 + 64 END WHEN + 29 THEN NULL END + 54 * + 56 AS col0
----
24
NULL

skipif mysql # not compatible
query II rowsort label-4251
SELECT DISTINCT - 6 * - + 4, 16 * - 51 + + CASE - 59 WHEN + 24 * + COALESCE ( - ( COUNT ( * ) ), - 45 ) + - - 74 THEN - CASE + + 27 WHEN + + 60 * + - CAST ( NULL AS REAL ) THEN - + COUNT ( * ) WHEN + + 99 + - 18 * - ( + ( + + 19 ) ) THEN NULL ELSE 6 - - 59 END + + + ( - ( - 96 ) ) * - 29 * - CASE 75 WHEN + - 35 THEN COALESCE ( 84, 16 + + 99 ) WHEN + 3 THEN - 25 + 64 END WHEN + 29 THEN NULL END + 54 * + 56 AS col0
----
24
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT DISTINCT 65 + CASE - 1 WHEN - 97 THEN 76 - + COUNT( * ) ELSE 72 END
----
137

skipif mysql # not compatible
query I rowsort label-4252
SELECT DISTINCT 65 + CASE - 1 WHEN - 97 THEN 76 - + COUNT ( * ) ELSE 72 END
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT ALL COUNT( * ) - + 37 * - 29 AS col1
----
1074

skipif mysql # not compatible
query I rowsort label-4253
SELECT ALL COUNT ( * ) - + 37 * - 29 AS col1
----
1074

query I rowsort
SELECT ALL NULLIF ( - 86, + 72 ) AS col1
----
-86

query I rowsort
SELECT - + ( + 96 ) AS col2
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4256
SELECT DISTINCT + + CAST( NULL AS SIGNED ) / + COUNT( DISTINCT + CAST( + 29 AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4256
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) / + COUNT ( DISTINCT + CAST ( + 29 AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4257
SELECT ALL - 93 * COALESCE ( + CAST( NULL AS SIGNED ), + 45 ) AS col0
----
-4185

skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL - 93 * COALESCE ( + CAST ( NULL AS INTEGER ), + 45 ) AS col0
----
-4185

query I rowsort
SELECT ALL 94 - + 95 col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT - 77 - COUNT( * ) + - 69
----
-147

skipif mysql # not compatible
query I rowsort label-4259
SELECT - 77 - COUNT ( * ) + - 69
----
-147

onlyif mysql # DIV for integer division: 
query I rowsort label-4260
SELECT + - 22 DIV ( - 72 )
----
0

skipif mysql # not compatible
query I rowsort label-4260
SELECT + - 22 / ( - 72 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT + + 5 + NULLIF ( - NULLIF ( + COUNT( * ), - 69 ), 8 * - 37 + ( + 54 ) ) * - SUM( 91 ) + COUNT( * ) * 65 + 31 AS col0
----
192

skipif mysql # not compatible
query I rowsort label-4261
SELECT + + 5 + NULLIF ( - NULLIF ( + COUNT ( * ), - 69 ), 8 * - 37 + ( + 54 ) ) * - SUM ( 91 ) + COUNT ( * ) * 65 + 31 AS col0
----
192

query I rowsort
SELECT - ( - 13 ) AS col2
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4263
SELECT + - 36 * + COALESCE ( 59, - NULLIF ( + CAST( - 83 AS SIGNED ), - 27 + + - 87 ) * - 17 * - + 14 )
----
-2124

skipif mysql # not compatible
query I rowsort label-4263
SELECT + - 36 * + COALESCE ( 59, - NULLIF ( + CAST ( - 83 AS INTEGER ), - 27 + + - 87 ) * - 17 * - + 14 )
----
-2124

onlyif mysql # DIV for integer division: 
query I rowsort label-4264
SELECT 86 DIV - 62 - - - 55
----
-56

skipif mysql # not compatible
query I rowsort label-4264
SELECT 86 / - 62 - - - 55
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT MAX( ALL - - ( + 48 ) ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-4265
SELECT MAX ( ALL - - ( + 48 ) ) AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT ALL 29 * - 54 + + SUM( ALL - + 42 ) * - COUNT( * )
----
-1524

skipif mysql # not compatible
query I rowsort label-4266
SELECT ALL 29 * - 54 + + SUM ( ALL - + 42 ) * - COUNT ( * )
----
-1524

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT + + 9 * + MAX( - + 40 )
----
-360

skipif mysql # not compatible
query I rowsort label-4267
SELECT + + 9 * + MAX ( - + 40 )
----
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT ALL + NULLIF ( MIN( - 33 ), + 52 )
----
-33

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL + NULLIF ( MIN ( - 33 ), + 52 )
----
-33

query I rowsort
SELECT + ( + 43 ) AS col1
----
43

query I rowsort
SELECT DISTINCT 25 * 48
----
1200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4271
SELECT DISTINCT + COUNT( * ), CAST( 28 AS SIGNED ) AS col0
----
1
28

skipif mysql # not compatible
query II rowsort label-4271
SELECT DISTINCT + COUNT ( * ), CAST ( 28 AS INTEGER ) AS col0
----
1
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4272
SELECT - ( + - SUM( + 31 ) ) DIV - 35 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4272
SELECT - ( + - SUM ( + 31 ) ) / - 35 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4273
SELECT ALL CAST( NULL AS SIGNED ) * 22 + - - COUNT( * ) + - 98 + CAST( NULL AS SIGNED ) * + COUNT( * ) / - 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4273
SELECT ALL CAST ( NULL AS INTEGER ) * 22 + - - COUNT ( * ) + - 98 + CAST ( NULL AS INTEGER ) * + COUNT ( * ) / - 78 AS col2
----
NULL

query I rowsort
SELECT CASE 75 WHEN 83 THEN + + ( + - 20 ) WHEN 74 THEN + - 16 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT NULLIF ( + COUNT( * ), + 6 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4275
SELECT NULLIF ( + COUNT ( * ), + 6 ) AS col2
----
1

query I rowsort
SELECT + 60 + 57 * + 11 AS col0
----
687

query II rowsort
SELECT + 24, 60 AS col0
----
24
60

onlyif mysql # aggregate syntax: 
query II rowsort label-4278
SELECT DISTINCT + 48 AS col0, 47 * - 58 * - COUNT( * ) AS col1
----
48
2726

skipif mysql # not compatible
query II rowsort label-4278
SELECT DISTINCT + 48 AS col0, 47 * - 58 * - COUNT ( * ) AS col1
----
48
2726

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4279
SELECT ALL + CASE - - COUNT( + 10 ) WHEN + + ( + 93 ) THEN NULL WHEN - + 7 THEN + CAST( - + 13 AS SIGNED ) * + 67 ELSE + + COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL + CASE - - COUNT ( + 10 ) WHEN + + ( + 93 ) THEN NULL WHEN - + 7 THEN + CAST ( - + 13 AS INTEGER ) * + 67 ELSE + + COUNT ( * ) END
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-4280
SELECT + 68 * - 9 + + - 64 AS col1, 50 DIV 13 col1
----
-676
3

skipif mysql # not compatible
query II rowsort label-4280
SELECT + 68 * - 9 + + - 64 AS col1, 50 / 13 col1
----
-676
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4281
SELECT - 42 DIV + 82
----
0

skipif mysql # not compatible
query I rowsort label-4281
SELECT - 42 / + 82
----
0

query I rowsort
SELECT - 18 * + 86
----
-1548

query I rowsort
SELECT - 88 + - 14 AS col1
----
-102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4284
SELECT ALL CASE - 4 WHEN - - MIN( - 12 ) * - - CAST( NULL AS SIGNED ) + - 14 - + 24 THEN - COUNT( * ) * - 87 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL CASE - 4 WHEN - - MIN ( - 12 ) * - - CAST ( NULL AS INTEGER ) + - 14 - + 24 THEN - COUNT ( * ) * - 87 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4285
SELECT DISTINCT CAST( + 86 AS SIGNED )
----
86

skipif mysql # not compatible
query I rowsort label-4285
SELECT DISTINCT CAST ( + 86 AS INTEGER )
----
86

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4286
SELECT ( + CAST( COALESCE ( - - CASE - 7 WHEN - 59 THEN NULL WHEN + 58 THEN 63 WHEN + - CAST( - 86 AS DECIMAL ) * + 44 THEN NULL ELSE + + 20 * - + 93 END, + CAST( 61 AS SIGNED ) ) AS SIGNED ) ) col1
----
-1860

skipif mysql # not compatible
query I rowsort label-4286
SELECT ( + CAST ( COALESCE ( - - CASE - 7 WHEN - 59 THEN NULL WHEN + 58 THEN 63 WHEN + - CAST ( - 86 AS REAL ) * + 44 THEN NULL ELSE + + 20 * - + 93 END, + CAST ( 61 AS INTEGER ) ) AS INTEGER ) ) col1
----
-1860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4287
SELECT - 22 + 43 * + 37 col0, - 83 * CASE - 95 WHEN + 9 THEN + SUM( - CAST( NULL AS SIGNED ) ) * 39 WHEN + 8 * + COALESCE ( - 17, - + 28, + + COUNT( * ) * - COUNT( * ) + ( - ( - CAST( - - 63 AS DECIMAL ) ) ) + + 14 + COUNT( + ( + - 27 ) ) * - 80 ) THEN NULL END
----
1569
NULL

skipif mysql # not compatible
query II rowsort label-4287
SELECT - 22 + 43 * + 37 col0, - 83 * CASE - 95 WHEN + 9 THEN + SUM ( - CAST ( NULL AS INTEGER ) ) * 39 WHEN + 8 * + COALESCE ( - 17, - + 28, + + COUNT ( * ) * - COUNT ( * ) + ( - ( - CAST ( - - 63 AS REAL ) ) ) + + 14 + COUNT ( + ( + - 27 ) ) * - 80 ) THEN NULL END
----
1569
NULL

query I rowsort
SELECT - - COALESCE ( - 99, - - 10, - 70 ) + + 82 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT - - ( + + ( + COUNT( * ) ) ) + - MIN( DISTINCT - 41 ) + - + 19 * + - COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-4289
SELECT - - ( + + ( + COUNT ( * ) ) ) + - MIN ( DISTINCT - 41 ) + - + 19 * + - COUNT ( * )
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-4290
SELECT + + 76 - + 72 DIV - - 70 - + - 80
----
155

skipif mysql # not compatible
query I rowsort label-4290
SELECT + + 76 - + 72 / - - 70 - + - 80
----
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4291
SELECT ALL SUM( - CAST( - + 69 AS SIGNED ) ), ( - ( + 25 ) ) + + CAST( NULL AS SIGNED ) AS col1
----
69
NULL

skipif mysql # not compatible
query II rowsort label-4291
SELECT ALL SUM ( - CAST ( - + 69 AS INTEGER ) ), ( - ( + 25 ) ) + + CAST ( NULL AS INTEGER ) AS col1
----
69
NULL

query II rowsort
SELECT ALL + 12, + 90 AS col2
----
12
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4293
SELECT DISTINCT - 38 DIV - NULLIF ( + - 53, - - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-4293
SELECT DISTINCT - 38 / - NULLIF ( + - 53, - - COUNT ( * ) )
----
0

query I rowsort
SELECT + - 99 * + - 39
----
3861

query I rowsort
SELECT DISTINCT + 93 + - 81
----
12

query I rowsort
SELECT DISTINCT - 88 * + 38 * + 64 col0
----
-214016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4297
SELECT ALL - COUNT( * ) / CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) / + 73 + 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL - COUNT ( * ) / CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) / + 73 + 99 AS col2
----
NULL

query I rowsort
SELECT + 83 * + ( 66 ) AS col1
----
5478

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4299
SELECT DISTINCT 76 DIV 71 + + SUM( - 25 ) + - - 57
----
33

skipif mysql # not compatible
query I rowsort label-4299
SELECT DISTINCT 76 / 71 + + SUM ( - 25 ) + - - 57
----
33

query I rowsort
SELECT ALL + 96 + COALESCE ( + 14, - 24 ) - 44
----
66

query I rowsort
SELECT ALL 84 * 4
----
336

query I rowsort
SELECT DISTINCT 2 + + 54
----
56

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4303
SELECT 97 + + 25 DIV NULLIF ( + 24, - + 35 ) + + COALESCE ( CAST( NULL AS SIGNED ), 67, - - 13 )
----
165

skipif mysql # not compatible
query I rowsort label-4303
SELECT 97 + + 25 / NULLIF ( + 24, - + 35 ) + + COALESCE ( CAST ( NULL AS INTEGER ), 67, - - 13 )
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT SUM( DISTINCT 7 ) * - 37 + - 16 + 28 * - - COUNT( * ) * 99 + + - 51 AS col1
----
2446

skipif mysql # not compatible
query I rowsort label-4304
SELECT SUM ( DISTINCT 7 ) * - 37 + - 16 + 28 * - - COUNT ( * ) * 99 + + - 51 AS col1
----
2446

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT ( + MIN( - 16 ) ) * + 79 AS col1
----
-1264

skipif mysql # not compatible
query I rowsort label-4305
SELECT ( + MIN ( - 16 ) ) * + 79 AS col1
----
-1264

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT DISTINCT SUM( DISTINCT 37 ) - - 72
----
109

skipif mysql # not compatible
query I rowsort label-4306
SELECT DISTINCT SUM ( DISTINCT 37 ) - - 72
----
109

onlyif mysql # aggregate syntax: 
query II rowsort label-4307
SELECT 26 * COUNT( * ) AS col1, 73 AS col2
----
26
73

skipif mysql # not compatible
query II rowsort label-4307
SELECT 26 * COUNT ( * ) AS col1, 73 AS col2
----
26
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT ( + + COUNT( * ) ) * NULLIF ( - 44, + + 66 ) * - 44
----
1936

skipif mysql # not compatible
query I rowsort label-4308
SELECT ( + + COUNT ( * ) ) * NULLIF ( - 44, + + 66 ) * - 44
----
1936

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4309
SELECT DISTINCT COUNT( * ) DIV + + 11 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4309
SELECT DISTINCT COUNT ( * ) / + + 11 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT ALL - CASE - 87 WHEN + 70 - - COALESCE ( + 42, - COUNT( ALL + 18 ) * - 21 * - 6, 45 ) THEN NULL WHEN - COUNT( * ) THEN - + 6 + 11 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4310
SELECT ALL - CASE - 87 WHEN + 70 - - COALESCE ( + 42, - COUNT ( ALL + 18 ) * - 21 * - 6, 45 ) THEN NULL WHEN - COUNT ( * ) THEN - + 6 + 11 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4311
SELECT DISTINCT - ( - 7 ) col0, CAST( NULL AS DECIMAL ) - 37
----
7
NULL

skipif mysql # not compatible
query II rowsort label-4311
SELECT DISTINCT - ( - 7 ) col0, CAST ( NULL AS REAL ) - 37
----
7
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4312
SELECT CAST( NULL AS SIGNED ) * + ( + CASE - + COALESCE ( - CAST( 53 AS SIGNED ), - COUNT( * ), - 67 + + 56 * - 60 * COUNT( * ) * + ( COALESCE ( 51, - 34, + CAST( + - 97 AS SIGNED ) - - 21, + 83 ) ) ) WHEN - 93 + + + 39 THEN - 73 + + ( COUNT( * ) ) ELSE 68 END ) * 72
----
NULL

skipif mysql # not compatible
query I rowsort label-4312
SELECT CAST ( NULL AS INTEGER ) * + ( + CASE - + COALESCE ( - CAST ( 53 AS INTEGER ), - COUNT ( * ), - 67 + + 56 * - 60 * COUNT ( * ) * + ( COALESCE ( 51, - 34, + CAST ( + - 97 AS INTEGER ) - - 21, + 83 ) ) ) WHEN - 93 + + + 39 THEN - 73 + + ( COUNT ( * ) ) ELSE 68 END ) * 72
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4313
SELECT - 15 DIV - - 64
----
0

skipif mysql # not compatible
query I rowsort label-4313
SELECT - 15 / - - 64
----
0

query I rowsort
SELECT 32 * + 3 * + + 57
----
5472

query I rowsort
SELECT 91 + - - 83 AS col1
----
174

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4316
SELECT ALL + 8 * 6 + 93 + COUNT( * ) + COUNT( * ) * 27 DIV - COUNT( * ), COUNT( * ) AS col1
----
115
1

skipif mysql # not compatible
query II rowsort label-4316
SELECT ALL + 8 * 6 + 93 + COUNT ( * ) + COUNT ( * ) * 27 / - COUNT ( * ), COUNT ( * ) AS col1
----
115
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4317
SELECT ALL - 50 + + - COALESCE ( + + 56, COUNT( * ) ) - - COALESCE ( - 94, 85 * + - 51 * - 51, - 67 * - 65 - CAST( NULL AS DECIMAL ) ) / - ( + - 41 ) * - + CASE + - ( ( CAST( NULL AS SIGNED ) ) ) WHEN - NULLIF ( - 0, - 97 ) THEN + 6 WHEN 21 + + COUNT( * ) THEN - 14 * + + 98 + 25 END * - 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4317
SELECT ALL - 50 + + - COALESCE ( + + 56, COUNT ( * ) ) - - COALESCE ( - 94, 85 * + - 51 * - 51, - 67 * - 65 - CAST ( NULL AS REAL ) ) / - ( + - 41 ) * - + CASE + - ( ( CAST ( NULL AS INTEGER ) ) ) WHEN - NULLIF ( - 0, - 97 ) THEN + 6 WHEN 21 + + COUNT ( * ) THEN - 14 * + + 98 + 25 END * - 36 AS col0
----
NULL

query II rowsort
SELECT + ( 12 ) AS col1, - 29 col0
----
12
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT 71 + + 61 + + 33 + - 10 * - COUNT( * )
----
175

skipif mysql # not compatible
query I rowsort label-4319
SELECT 71 + + 61 + + 33 + - 10 * - COUNT ( * )
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT DISTINCT + - COUNT( * ) + + + 53
----
52

skipif mysql # not compatible
query I rowsort label-4320
SELECT DISTINCT + - COUNT ( * ) + + + 53
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-4321
SELECT 88 DIV - 5
----
-17

skipif mysql # not compatible
query I rowsort label-4321
SELECT 88 / - 5
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-4322
SELECT DISTINCT - 92 + COALESCE ( + 2, - 74, + 38 + 54 * - 60 ) DIV - 71 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-4322
SELECT DISTINCT - 92 + COALESCE ( + 2, - 74, + 38 + 54 * - 60 ) / - 71 AS col0
----
-92

query I rowsort
SELECT 71 * - 20 * - 74 AS col1
----
105080

onlyif mysql # DIV for integer division: 
query I rowsort label-4324
SELECT ALL - 65 DIV - 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4324
SELECT ALL - 65 / - 80 AS col0
----
0

query I rowsort
SELECT DISTINCT 89 * 31
----
2759

query I rowsort
SELECT ALL 24 - 41 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT ALL + COUNT( * ) * + MAX( DISTINCT + + 22 )
----
22

skipif mysql # not compatible
query I rowsort label-4327
SELECT ALL + COUNT ( * ) * + MAX ( DISTINCT + + 22 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT NULLIF ( - COUNT( * ), - - 1 + - 8 + - 57 ) - + + 47 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-4328
SELECT NULLIF ( - COUNT ( * ), - - 1 + - 8 + - 57 ) - + + 47 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT DISTINCT - MAX( COALESCE ( 42, 63 ) ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-4329
SELECT DISTINCT - MAX ( COALESCE ( 42, 63 ) ) AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT + MAX( ALL + 88 )
----
88

skipif mysql # not compatible
query I rowsort label-4330
SELECT + MAX ( ALL + 88 )
----
88

query I rowsort
SELECT 12 + - 72 AS col0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4332
SELECT - - 34 * 51 + + CAST( 39 AS SIGNED )
----
1773

skipif mysql # not compatible
query I rowsort label-4332
SELECT - - 34 * 51 + + CAST ( 39 AS INTEGER )
----
1773

query I rowsort
SELECT ALL 82 * 72 AS col1
----
5904

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4334
SELECT 16 + + CAST( - MIN( ALL - 19 ) AS SIGNED ) col2
----
35

skipif mysql # not compatible
query I rowsort label-4334
SELECT 16 + + CAST ( - MIN ( ALL - 19 ) AS INTEGER ) col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT DISTINCT 1 * - 13 * 97 + COUNT( - - 53 )
----
-1260

skipif mysql # not compatible
query I rowsort label-4335
SELECT DISTINCT 1 * - 13 * 97 + COUNT ( - - 53 )
----
-1260

query I rowsort
SELECT - 70 + - NULLIF ( - 60, + 34 )
----
-10

query I rowsort
SELECT ALL 40 + - + 2
----
38

query I rowsort
SELECT DISTINCT - + 89 * 75 * + 96 * - - 92 - - 64 + + 16 AS col1
----
-58953520

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT ALL + + 26 + + - MIN( DISTINCT + 54 ) + + 11
----
-17

skipif mysql # not compatible
query I rowsort label-4339
SELECT ALL + + 26 + + - MIN ( DISTINCT + 54 ) + + 11
----
-17

query I rowsort
SELECT ( - 22 ) + - 81 AS col1
----
-103

query I rowsort
SELECT DISTINCT - ( + 35 ) * - 38
----
1330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4342
SELECT ALL CAST( 15 AS SIGNED ) + + COUNT( * ) * 99
----
114

skipif mysql # not compatible
query I rowsort label-4342
SELECT ALL CAST ( 15 AS INTEGER ) + + COUNT ( * ) * 99
----
114

query I rowsort
SELECT 19 + + 55 AS col1
----
74

query I rowsort
SELECT + 68 * - 72
----
-4896

query I rowsort
SELECT 65 + + 35 AS col0
----
100

query I rowsort
SELECT 8 - 57 + - 60 col2
----
-109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4347
SELECT - - 16 DIV COUNT( * ) + - - MIN( + 88 ) + - - 8 + MAX( ALL + 85 ) * + 24 * COALESCE ( + 16, + + 21 * - 5 )
----
32752

skipif mysql # not compatible
query I rowsort label-4347
SELECT - - 16 / COUNT ( * ) + - - MIN ( + 88 ) + - - 8 + MAX ( ALL + 85 ) * + 24 * COALESCE ( + 16, + + 21 * - 5 )
----
32752

query I rowsort
SELECT - NULLIF ( + 22, - 85 + + + 61 * ( - - 53 ) )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT ALL + - 9 + + COUNT( * ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL + - 9 + + COUNT ( * ) AS col2
----
-8

query I rowsort
SELECT DISTINCT 74 + - 50 AS col0
----
24

query I rowsort
SELECT ALL + COALESCE ( + 23, - + 90 ) - - 8 col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT - - 97 + - COALESCE ( - + COUNT( * ), 67 - + - 7 * 25, + ( - - 11 ) * 93 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-4352
SELECT - - 97 + - COALESCE ( - + COUNT ( * ), 67 - + - 7 * 25, + ( - - 11 ) * 93 ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT - 31 + COUNT( * ) * - 91 * 40 + - - 1 + - COUNT( * ) * - 57
----
-3613

skipif mysql # not compatible
query I rowsort label-4353
SELECT - 31 + COUNT ( * ) * - 91 * 40 + - - 1 + - COUNT ( * ) * - 57
----
-3613

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT DISTINCT - SUM( + COALESCE ( + + 79, ( - 7 ) + 16 ) ) * + 8 col1
----
-632

skipif mysql # not compatible
query I rowsort label-4354
SELECT DISTINCT - SUM ( + COALESCE ( + + 79, ( - 7 ) + 16 ) ) * + 8 col1
----
-632

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT ALL MIN( ALL + 60 ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-4355
SELECT ALL MIN ( ALL + 60 ) AS col0
----
60

query I rowsort
SELECT - 19 * NULLIF ( - ( ( + ( + + 7 ) ) ), + 98 ) AS col0
----
133

onlyif mysql # DIV for integer division: 
query I rowsort label-4357
SELECT 97 DIV - + 18 - + + 23 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-4357
SELECT 97 / - + 18 - + + 23 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT CASE - MIN( ALL + 84 ) WHEN - COUNT( * ) + MIN( ALL 17 ) + - 84 * - 27 THEN 44 + 95 + - 56 WHEN + ( - - 23 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4358
SELECT CASE - MIN ( ALL + 84 ) WHEN - COUNT ( * ) + MIN ( ALL 17 ) + - 84 * - 27 THEN 44 + 95 + - 56 WHEN + ( - - 23 ) THEN NULL END
----
NULL

query II rowsort
SELECT ALL + 71 AS col2, 5
----
71
5

query I rowsort
SELECT - 89 * + 57 AS col0
----
-5073

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4361
SELECT 98 * - NULLIF ( - 97, + CAST( NULL AS DECIMAL ) ) + + - 11 DIV 21 * + 42 * - 98 * - MIN( + - 41 ) DIV 57 * + - 35 + + + 24 + + 72 + 97 * 98 * + ( - 50 ) AS col1
----
-465698

skipif mysql # not compatible
query I rowsort label-4361
SELECT 98 * - NULLIF ( - 97, + CAST ( NULL AS REAL ) ) + + - 11 / 21 * + 42 * - 98 * - MIN ( + - 41 ) / 57 * + - 35 + + + 24 + + 72 + 97 * 98 * + ( - 50 ) AS col1
----
-465698

query I rowsort
SELECT NULLIF ( 28, + 34 * + - 28 + - 80 ) AS col0
----
28

query II rowsort
SELECT ALL + 61, 28 AS col0
----
61
28

query II rowsort
SELECT COALESCE ( - ( + - 99 ), - 24 ) AS col0, - 61
----
99
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4365
SELECT - 18 * - + 79 + - MAX( DISTINCT CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4365
SELECT - 18 * - + 79 + - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4366
SELECT ALL + CAST( 40 AS SIGNED ) AS col2, - MIN( ALL + + 40 )
----
40
-40

skipif mysql # not compatible
query II rowsort label-4366
SELECT ALL + CAST ( 40 AS INTEGER ) AS col2, - MIN ( ALL + + 40 )
----
40
-40

query I rowsort
SELECT DISTINCT - 17 * - 27
----
459

query I rowsort
SELECT NULLIF ( - 92, ( + 12 ) )
----
-92

query II rowsort
SELECT - 23 * - + 48, - ( - 46 ) + 98 * + 99 AS col0
----
1104
9748

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT ALL COUNT( * ) * + + 8
----
8

skipif mysql # not compatible
query I rowsort label-4370
SELECT ALL COUNT ( * ) * + + 8
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT ALL - COALESCE ( - 15, - - 6 + - COUNT( * ) * COUNT( * ) + + ( - 34 ) ) * 85 * 43 + + 74 * + SUM( - 65 ) + 25 + - - MIN( - - NULLIF ( - 77, - - 53 ) ) + 69
----
50032

skipif mysql # not compatible
query I rowsort label-4371
SELECT ALL - COALESCE ( - 15, - - 6 + - COUNT ( * ) * COUNT ( * ) + + ( - 34 ) ) * 85 * 43 + + 74 * + SUM ( - 65 ) + 25 + - - MIN ( - - NULLIF ( - 77, - - 53 ) ) + 69
----
50032

onlyif mysql # DIV for integer division: 
query II rowsort label-4372
SELECT - + 94 DIV + 59 AS col1, - 85 AS col1
----
-1
-85

skipif mysql # not compatible
query II rowsort label-4372
SELECT - + 94 / + 59 AS col1, - 85 AS col1
----
-1
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-4373
SELECT ALL + - 33 AS col0, 18 - COUNT( * ) AS col0
----
-33
17

skipif mysql # not compatible
query II rowsort label-4373
SELECT ALL + - 33 AS col0, 18 - COUNT ( * ) AS col0
----
-33
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4374
SELECT DISTINCT - 7 * + + 13 + + NULLIF ( ( - + ( + 37 ) ), + - 49 / 65 + - - NULLIF ( - + 8, ( + - 48 ) ) * - - NULLIF ( + 68, - 5 ) * - + 76 ) + + 69 * + CAST( ( + CASE 3 WHEN + 78 THEN 34 * + - COUNT( * ) + + + NULLIF ( - - COALESCE ( + 22, + 90 ), - 25 * - 15 ) + - + 93 / 10 / + 40 END ) AS SIGNED ) * ( - + COUNT( * ) ) / + 83 AS col0, + 10
----
NULL
10

skipif mysql # not compatible
query II rowsort label-4374
SELECT DISTINCT - 7 * + + 13 + + NULLIF ( ( - + ( + 37 ) ), + - 49 / 65 + - - NULLIF ( - + 8, ( + - 48 ) ) * - - NULLIF ( + 68, - 5 ) * - + 76 ) + + 69 * + CAST ( ( + CASE 3 WHEN + 78 THEN 34 * + - COUNT ( * ) + + + NULLIF ( - - COALESCE ( + 22, + 90 ), - 25 * - 15 ) + - + 93 / 10 / + 40 END ) AS INTEGER ) * ( - + COUNT ( * ) ) / + 83 AS col0, + 10
----
NULL
10

query I rowsort
SELECT DISTINCT + + 89 * - 92 + - 50 AS col2
----
-8238

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4376
SELECT DISTINCT + 28 AS col1, CAST( NULL AS SIGNED ) AS col2
----
28
NULL

skipif mysql # not compatible
query II rowsort label-4376
SELECT DISTINCT + 28 AS col1, CAST ( NULL AS INTEGER ) AS col2
----
28
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4377
SELECT - 49 AS col2, MIN( DISTINCT - 96 )
----
-49
-96

skipif mysql # not compatible
query II rowsort label-4377
SELECT - 49 AS col2, MIN ( DISTINCT - 96 )
----
-49
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT - - SUM( ALL - 96 ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-4378
SELECT - - SUM ( ALL - 96 ) AS col2
----
-96

query I rowsort
SELECT ALL + 87 + 75 AS col0
----
162

query I rowsort
SELECT DISTINCT 19 * + 15 + - 26 * + + 97 AS col0
----
-2237

query II rowsort
SELECT ALL - 0 col0, 61
----
0
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4382
SELECT ALL - CAST( 22 AS SIGNED ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-4382
SELECT ALL - CAST ( 22 AS INTEGER ) AS col0
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-4383
SELECT + 7 DIV 55 DIV - 7 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4383
SELECT + 7 / 55 / - 7 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4384
SELECT + 16 + + COUNT( * ) + + 48 + COALESCE ( + 80, + COUNT( * ) * + 17 DIV + 13 + 53 )
----
145

skipif mysql # not compatible
query I rowsort label-4384
SELECT + 16 + + COUNT ( * ) + + 48 + COALESCE ( + 80, + COUNT ( * ) * + 17 / + 13 + 53 )
----
145

query I rowsort
SELECT DISTINCT - ( - - 14 ) * + 23
----
-322

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT + COUNT( * ) + 4 + - 65
----
-60

skipif mysql # not compatible
query I rowsort label-4386
SELECT + COUNT ( * ) + 4 + - 65
----
-60

query I rowsort
SELECT - ( - 20 ) col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT + 96 + - + COUNT( * ) - 9 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-4388
SELECT + 96 + - + COUNT ( * ) - 9 AS col2
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4389
SELECT ALL COALESCE ( - 92, ( + 72 ) DIV - - 94 + - CASE - 84 WHEN + 24 - - MAX( DISTINCT + 35 ) - 69 THEN COUNT( * ) END + - COUNT( * ) + + CAST( + - 74 AS SIGNED ) + 32 )
----
-92

skipif mysql # not compatible
query I rowsort label-4389
SELECT ALL COALESCE ( - 92, ( + 72 ) / - - 94 + - CASE - 84 WHEN + 24 - - MAX ( DISTINCT + 35 ) - 69 THEN COUNT ( * ) END + - COUNT ( * ) + + CAST ( + - 74 AS INTEGER ) + 32 )
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-4390
SELECT DISTINCT + NULLIF ( + + 62, + + 69 * 38 ) DIV - - 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4390
SELECT DISTINCT + NULLIF ( + + 62, + + 69 * 38 ) / - - 97 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4391
SELECT + 90 DIV + 36
----
2

skipif mysql # not compatible
query I rowsort label-4391
SELECT + 90 / + 36
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT DISTINCT MIN( + ( + 17 ) ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-4392
SELECT DISTINCT MIN ( + ( + 17 ) ) AS col2
----
17

query I rowsort
SELECT - 42 - + 30 AS col2
----
-72

query I rowsort
SELECT ALL + ( + + 45 ) AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT ALL + SUM( 92 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-4395
SELECT ALL + SUM ( 92 ) AS col0
----
92

query I rowsort
SELECT + 30 * - 82 col0
----
-2460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4397
SELECT ALL - 52 / - 3 + 93 * - ( - 44 ) * + 47 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4397
SELECT ALL - 52 / - 3 + 93 * - ( - 44 ) * + 47 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT ALL + ( + COUNT( - 25 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4398
SELECT ALL + ( + COUNT ( - 25 ) )
----
1

query I rowsort
SELECT - 0 * + 92
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4400
SELECT ALL COUNT( * ) DIV + 44 + - + 33 col2
----
-33

skipif mysql # not compatible
query I rowsort label-4400
SELECT ALL COUNT ( * ) / + 44 + - + 33 col2
----
-33

query I rowsort
SELECT ALL + - NULLIF ( 56, 19 )
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4402
SELECT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * 84 + 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4402
SELECT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * 84 + 23 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4403
SELECT ALL - 21 DIV + 76 AS col0, 77 - - 30 + - 55 * + 9
----
0
-388

skipif mysql # not compatible
query II rowsort label-4403
SELECT ALL - 21 / + 76 AS col0, 77 - - 30 + - 55 * + 9
----
0
-388

query I rowsort
SELECT ALL - 67 * + 76 * 67 - + + ( - + 2 ) + ( - ( - 98 ) )
----
-341064

query II rowsort
SELECT + + ( 62 ) col1, - 21 * - + 70 AS col1
----
62
1470

query I rowsort
SELECT - - 71 + + 17 AS col1
----
88

query I rowsort
SELECT + - 66 * ( 13 ) AS col0
----
-858

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT ALL + MAX( ALL 20 ) * + 97 AS col2
----
1940

skipif mysql # not compatible
query I rowsort label-4408
SELECT ALL + MAX ( ALL 20 ) * + 97 AS col2
----
1940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4409
SELECT CAST( NULL AS SIGNED ) - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4409
SELECT CAST ( NULL AS INTEGER ) - COUNT ( * ) col1
----
NULL

query I rowsort
SELECT ALL + 27 * - 73 + - + 54 + - + 35
----
-2060

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4411
SELECT 48 + + + NULLIF ( 89, - 95 / - - CAST( - + 55 AS SIGNED ) + + - 63 + + 57 + + ( - 87 ) - + ( COUNT( * ) ) * + + 73 * 36 * + + AVG ( + 56 ) / + - 30 )
----
137

skipif mysql # not compatible
query I rowsort label-4411
SELECT 48 + + + NULLIF ( 89, - 95 / - - CAST ( - + 55 AS INTEGER ) + + - 63 + + 57 + + ( - 87 ) - + ( COUNT ( * ) ) * + + 73 * 36 * + + AVG ( + 56 ) / + - 30 )
----
137

query II rowsort
SELECT ALL + 16 - 10 AS col0, - 94 AS col0
----
6
-94

query I rowsort
SELECT 79 * - - 99 AS col2
----
7821

query I rowsort
SELECT + ( + - 29 ) + + 76 * - + 71 AS col0
----
-5425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4415
SELECT ALL CAST( NULL AS SIGNED ) - - + 30 + - COUNT( * ) / 52
----
NULL

skipif mysql # not compatible
query I rowsort label-4415
SELECT ALL CAST ( NULL AS INTEGER ) - - + 30 + - COUNT ( * ) / 52
----
NULL

query I rowsort
SELECT 25 + - 66 AS col0
----
-41

query I rowsort
SELECT 17 + + - 28
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4418
SELECT COUNT( * ) * + 14 + 43 DIV + + NULLIF ( 63, 70 + + - 2 + - - 90 )
----
14

skipif mysql # not compatible
query I rowsort label-4418
SELECT COUNT ( * ) * + 14 + 43 / + + NULLIF ( 63, 70 + + - 2 + - - 90 )
----
14

query I rowsort
SELECT - CASE - - AVG ( DISTINCT - 67 ) WHEN 48 THEN 14 + - + 85 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT COUNT( * ) + - ( - - 79 ) col0
----
-78

skipif mysql # not compatible
query I rowsort label-4420
SELECT COUNT ( * ) + - ( - - 79 ) col0
----
-78

onlyif mysql # aggregate syntax: 
query III rowsort label-4421
SELECT ALL 49 AS col2, + 33 + ( + COUNT( * ) ) + + - COUNT( * ) * + - 53, - + 81 + - COALESCE ( 36, - 94 ) + + 87 + + - 35 * - + NULLIF ( + - 60, - 29 * 33 + - 66 ) + - COALESCE ( + 10, 51 * + 11 ) AS col2
----
49
87
-2140

skipif mysql # not compatible
query III rowsort label-4421
SELECT ALL 49 AS col2, + 33 + ( + COUNT ( * ) ) + + - COUNT ( * ) * + - 53, - + 81 + - COALESCE ( 36, - 94 ) + + 87 + + - 35 * - + NULLIF ( + - 60, - 29 * 33 + - 66 ) + - COALESCE ( + 10, 51 * + 11 ) AS col2
----
49
87
-2140

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT DISTINCT COUNT( * ) * + 46
----
46

skipif mysql # not compatible
query I rowsort label-4422
SELECT DISTINCT COUNT ( * ) * + 46
----
46

query II rowsort
SELECT DISTINCT 10 AS col2, - 77 AS col2
----
10
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-4424
SELECT DISTINCT 12 AS col0, 17 DIV - - ( + 39 ) AS col0
----
12
0

skipif mysql # not compatible
query II rowsort label-4424
SELECT DISTINCT 12 AS col0, 17 / - - ( + 39 ) AS col0
----
12
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT ALL 66 + + MAX( ALL + 34 ) * 7 AS col2
----
304

skipif mysql # not compatible
query I rowsort label-4425
SELECT ALL 66 + + MAX ( ALL + 34 ) * 7 AS col2
----
304

query II rowsort
SELECT 58 AS col2, - NULLIF ( - 77, - 48 ) - + 16
----
58
61

query I rowsort
SELECT NULLIF ( + - 0, - + ( + 42 ) ) + 90
----
90

query I rowsort
SELECT ALL 18 + + 72 * + 24 + - 95 AS col2
----
1651

query I rowsort
SELECT 22 + 41 + 10 + - 55
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT ALL - COUNT( DISTINCT 32 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4430
SELECT ALL - COUNT ( DISTINCT 32 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4431
SELECT ( 94 ) / + - CASE + ( - ( + 95 ) ) WHEN - - ( 54 ) THEN 66 WHEN CAST( 97 AS SIGNED ) + + 95 THEN + 17 * + - 63 + + MAX( - 12 ) END + - 9 + + - 33 - + CASE + 33 WHEN + + 61 * 0 + - CAST( NULL AS SIGNED ) + 79 THEN - - 7 * - 50 + + 40 - + - 90 - - 74 WHEN MAX( + 50 ) THEN + COUNT( * ) ELSE NULL END * 0 * + 84 - 98 / NULLIF ( - 34, + + COALESCE ( + 45, + 48 * - + 68 - + COUNT( * ), + - 62 - + 70 * 57 ) * 29 ) * + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-4431
SELECT ( 94 ) / + - CASE + ( - ( + 95 ) ) WHEN - - ( 54 ) THEN 66 WHEN CAST ( 97 AS INTEGER ) + + 95 THEN + 17 * + - 63 + + MAX ( - 12 ) END + - 9 + + - 33 - + CASE + 33 WHEN + + 61 * 0 + - CAST ( NULL AS INTEGER ) + 79 THEN - - 7 * - 50 + + 40 - + - 90 - - 74 WHEN MAX ( + 50 ) THEN + COUNT ( * ) ELSE NULL END * 0 * + 84 - 98 / NULLIF ( - 34, + + COALESCE ( + 45, + 48 * - + 68 - + COUNT ( * ), + - 62 - + 70 * 57 ) * 29 ) * + 45
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4432
SELECT ALL + 72 + - ( - + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4432
SELECT ALL + 72 + - ( - + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4433
SELECT DISTINCT - 73, - COUNT( * ) AS col2
----
-73
-1

skipif mysql # not compatible
query II rowsort label-4433
SELECT DISTINCT - 73, - COUNT ( * ) AS col2
----
-73
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT ALL - 8 + + 92 + + COUNT( * ) * + 45
----
129

skipif mysql # not compatible
query I rowsort label-4434
SELECT ALL - 8 + + 92 + + COUNT ( * ) * + 45
----
129

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4435
SELECT CASE + 18 WHEN 35 * + 24 THEN - 65 * - + NULLIF ( - - 74, + 0 * - 50 + CAST( NULL AS DECIMAL ) ) + - ( + 84 ) END / 18 * ( 25 ) + + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-4435
SELECT CASE + 18 WHEN 35 * + 24 THEN - 65 * - + NULLIF ( - - 74, + 0 * - 50 + CAST ( NULL AS REAL ) ) + - ( + 84 ) END / 18 * ( 25 ) + + 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT DISTINCT COUNT( * ) + - 50 col1
----
-49

skipif mysql # not compatible
query I rowsort label-4436
SELECT DISTINCT COUNT ( * ) + - 50 col1
----
-49

query I rowsort
SELECT DISTINCT - ( - 39 )
----
39

query I rowsort
SELECT + 98 * + - 48
----
-4704

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4439
SELECT - 24 * + CAST( NULL AS SIGNED ) * 64 + 61 + - 42 - + + 52 * - + 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4439
SELECT - 24 * + CAST ( NULL AS INTEGER ) * 64 + 61 + - 42 - + + 52 * - + 91 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + 53 + + - 70 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT ALL + 31 * + 46 * COUNT( * ) - - - 93
----
1333

skipif mysql # not compatible
query I rowsort label-4441
SELECT ALL + 31 * + 46 * COUNT ( * ) - - - 93
----
1333

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4442
SELECT + 11 * - 62 + - 53 + CAST( NULL AS SIGNED ) + + - CASE 3 WHEN - - 69 THEN NULL WHEN 13 THEN NULL ELSE 29 END * + 9 * + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4442
SELECT + 11 * - 62 + - 53 + CAST ( NULL AS INTEGER ) + + - CASE 3 WHEN - - 69 THEN NULL WHEN 13 THEN NULL ELSE 29 END * + 9 * + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4443
SELECT DISTINCT - + CAST( - 98 AS SIGNED ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-4443
SELECT DISTINCT - + CAST ( - 98 AS INTEGER ) AS col1
----
98

query I rowsort
SELECT ALL - 40 - - 78 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT SUM( ALL + - 67 ) * + 26 + + 59 AS col2
----
-1683

skipif mysql # not compatible
query I rowsort label-4445
SELECT SUM ( ALL + - 67 ) * + 26 + + 59 AS col2
----
-1683

query I rowsort
SELECT DISTINCT - ( 68 ) AS col0
----
-68

query II rowsort
SELECT ALL - + 14 AS col0, + 8 * - + 37
----
-14
-296

query I rowsort
SELECT - 98 * - - 25 - - ( + 43 ) * 62 AS col1
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT 24 * + 75 * - ( MAX( DISTINCT ( ( 37 ) ) ) ) - - + 54 AS col2
----
-66546

skipif mysql # not compatible
query I rowsort label-4449
SELECT 24 * + 75 * - ( MAX ( DISTINCT ( ( 37 ) ) ) ) - - + 54 AS col2
----
-66546

query I rowsort
SELECT 63 * + 23
----
1449

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4451
SELECT - 68 AS col0, CAST( NULL AS SIGNED ) * + + 92 * + 3
----
-68
NULL

skipif mysql # not compatible
query II rowsort label-4451
SELECT - 68 AS col0, CAST ( NULL AS INTEGER ) * + + 92 * + 3
----
-68
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4452
SELECT - 64 DIV - 53 DIV + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4452
SELECT - 64 / - 53 / + COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT + 2 * - 2 AS col2
----
-4

query I rowsort
SELECT ALL - ( - 98 ) * + 53
----
5194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4455
SELECT 6 * - CAST( NULL AS SIGNED ) * - 48 * MIN( 19 ) / 6 * - 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4455
SELECT 6 * - CAST ( NULL AS INTEGER ) * - 48 * MIN ( 19 ) / 6 * - 44 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 57 + 35 AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT COUNT( * ) * + - 3 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-4457
SELECT COUNT ( * ) * + - 3 AS col2
----
-3

query I rowsort
SELECT ALL - 85 + + 48 col2
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4459
SELECT 15 + + + 42 col2, - COUNT( * ) * - COUNT( * ) + - + MAX( DISTINCT + 58 ) DIV - SUM( DISTINCT - 83 )
----
57
1

skipif mysql # not compatible
query II rowsort label-4459
SELECT 15 + + + 42 col2, - COUNT ( * ) * - COUNT ( * ) + - + MAX ( DISTINCT + 58 ) / - SUM ( DISTINCT - 83 )
----
57
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT - MIN( - 1 )
----
1

skipif mysql # not compatible
query I rowsort label-4460
SELECT - MIN ( - 1 )
----
1

query I rowsort
SELECT 25 + - 58 + - 24
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4462
SELECT DISTINCT CAST( - NULLIF ( 68, 96 + - ( + - 28 ) - - - 80 + ( - COUNT( 80 ) ) + - COALESCE ( - + 75, - 71 ) / - - 33 ) AS SIGNED ) + - 89
----
-157

skipif mysql # not compatible
query I rowsort label-4462
SELECT DISTINCT CAST ( - NULLIF ( 68, 96 + - ( + - 28 ) - - - 80 + ( - COUNT ( 80 ) ) + - COALESCE ( - + 75, - 71 ) / - - 33 ) AS INTEGER ) + - 89
----
-157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4463
SELECT ALL 12 + + CASE + + 23 WHEN + 51 * - ( CAST( AVG ( ALL - 75 ) AS SIGNED ) ) + + 16 + - 87 + + 10 * - NULLIF ( - ( - + 33 ), 90 ) * - 99 * CASE - 87 WHEN + - 56 + + - 30 THEN + NULLIF ( + NULLIF ( - 92, - 60 + - 64 ), + + 57 ) WHEN 27 THEN - 3 ELSE + ( - 96 ) END * - 74 - 31 * CASE + 11 WHEN - 89 + + + COUNT( * ) + + - 2 THEN NULL WHEN + 95 THEN NULL WHEN - 92 * 66 + - 20 + + 2 * + + 39 + - 3 / + 72 THEN NULL ELSE - 90 END THEN NULL WHEN + 31 / 13 THEN NULL ELSE COUNT( * ) + + 10 END
----
23

skipif mysql # not compatible
query I rowsort label-4463
SELECT ALL 12 + + CASE + + 23 WHEN + 51 * - ( CAST ( AVG ( ALL - 75 ) AS INTEGER ) ) + + 16 + - 87 + + 10 * - NULLIF ( - ( - + 33 ), 90 ) * - 99 * CASE - 87 WHEN + - 56 + + - 30 THEN + NULLIF ( + NULLIF ( - 92, - 60 + - 64 ), + + 57 ) WHEN 27 THEN - 3 ELSE + ( - 96 ) END * - 74 - 31 * CASE + 11 WHEN - 89 + + + COUNT ( * ) + + - 2 THEN NULL WHEN + 95 THEN NULL WHEN - 92 * 66 + - 20 + + 2 * + + 39 + - 3 / + 72 THEN NULL ELSE - 90 END THEN NULL WHEN + 31 / 13 THEN NULL ELSE COUNT ( * ) + + 10 END
----
23

query I rowsort
SELECT ALL 71 * - COALESCE ( + 14, - 41, 99 ) * - 62 * + - 49 col1
----
-3019772

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT ALL SUM( ALL - + 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-4465
SELECT ALL SUM ( ALL - + 42 )
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-4466
SELECT COALESCE ( - + 20, + + COUNT( * ) ) * - 21 AS col1, - 3 * - CASE - - COUNT( ALL - 33 ) WHEN - - 73 THEN NULL WHEN 59 THEN - - 93 END * - 35 AS col0
----
420
NULL

skipif mysql # not compatible
query II rowsort label-4466
SELECT COALESCE ( - + 20, + + COUNT ( * ) ) * - 21 AS col1, - 3 * - CASE - - COUNT ( ALL - 33 ) WHEN - - 73 THEN NULL WHEN 59 THEN - - 93 END * - 35 AS col0
----
420
NULL

query I rowsort
SELECT DISTINCT 6 * - 90
----
-540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4468
SELECT DISTINCT CAST( NULL AS SIGNED ) * 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4468
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 0 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT 47 - - - COUNT( * ) - + 64
----
-18

skipif mysql # not compatible
query I rowsort label-4469
SELECT 47 - - - COUNT ( * ) - + 64
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4470
SELECT + CAST( AVG ( + 39 ) AS SIGNED ) col0
----
39

skipif mysql # not compatible
query I rowsort label-4470
SELECT + CAST ( AVG ( + 39 ) AS INTEGER ) col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT - NULLIF ( - + 27, COUNT( + 78 ) + - 59 / - ( 55 ) ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-4471
SELECT - NULLIF ( - + 27, COUNT ( + 78 ) + - 59 / - ( 55 ) ) AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT + SUM( ALL + + 85 ) * + COUNT( * ) * + 2
----
170

skipif mysql # not compatible
query I rowsort label-4472
SELECT + SUM ( ALL + + 85 ) * + COUNT ( * ) * + 2
----
170

query I rowsort
SELECT ALL + - ( 35 )
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4474
SELECT DISTINCT - COUNT( * ) DIV - 45, 96 AS col2
----
0
96

skipif mysql # not compatible
query II rowsort label-4474
SELECT DISTINCT - COUNT ( * ) / - 45, 96 AS col2
----
0
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT ALL + CASE - COUNT( * ) WHEN + 90 THEN - - 81 * 99 END * + 59 * - + ( + 82 ) - - MIN( + + ( - - 63 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4475
SELECT ALL + CASE - COUNT ( * ) WHEN + 90 THEN - - 81 * 99 END * + 59 * - + ( + 82 ) - - MIN ( + + ( - - 63 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT DISTINCT - SUM( ALL - + CASE 95 WHEN 9 THEN - 38 ELSE - 71 END ) * 47 + 64
----
-3273

skipif mysql # not compatible
query I rowsort label-4476
SELECT DISTINCT - SUM ( ALL - + CASE 95 WHEN 9 THEN - 38 ELSE - 71 END ) * 47 + 64
----
-3273

query I rowsort
SELECT + 12 + - + 88 + 64 + + 8 + - 47
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4478
SELECT - + 64 * CAST( - + CAST( + 59 AS SIGNED ) AS SIGNED ) + + 1 * - - 4 + - 16
----
3764

skipif mysql # not compatible
query I rowsort label-4478
SELECT - + 64 * CAST ( - + CAST ( + 59 AS INTEGER ) AS INTEGER ) + + 1 * - - 4 + - 16
----
3764

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4479
SELECT + CAST( NULL AS SIGNED ) + + 92 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4479
SELECT + CAST ( NULL AS INTEGER ) + + 92 col1
----
NULL

query I rowsort
SELECT 78 * + 29 + - 68
----
2194

onlyif mysql # aggregate syntax: 
query II rowsort label-4481
SELECT - COUNT( * ) - 58, 15 + 5 AS col0
----
-59
20

skipif mysql # not compatible
query II rowsort label-4481
SELECT - COUNT ( * ) - 58, 15 + 5 AS col0
----
-59
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4482
SELECT CAST( - - ( + - COUNT( * ) ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4482
SELECT CAST ( - - ( + - COUNT ( * ) ) AS INTEGER ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT ALL 55 + SUM( ALL 64 ) * - + COUNT( ALL 74 ) + + 34
----
25

skipif mysql # not compatible
query I rowsort label-4483
SELECT ALL 55 + SUM ( ALL 64 ) * - + COUNT ( ALL 74 ) + + 34
----
25

query I rowsort
SELECT - 67 + + 87
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT - 90 * - ( 1 ) + + COUNT( * ) + 51 * COUNT( + ( - 77 ) ) * - - 85 + - 24 AS col1
----
4402

skipif mysql # not compatible
query I rowsort label-4485
SELECT - 90 * - ( 1 ) + + COUNT ( * ) + 51 * COUNT ( + ( - 77 ) ) * - - 85 + - 24 AS col1
----
4402

onlyif mysql # aggregate syntax: 
query II rowsort label-4486
SELECT - 7 * - - 47 * + COUNT( * ) AS col2, + 20 * ( - 37 ) col2
----
-329
-740

skipif mysql # not compatible
query II rowsort label-4486
SELECT - 7 * - - 47 * + COUNT ( * ) AS col2, + 20 * ( - 37 ) col2
----
-329
-740

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4487
SELECT - 24 DIV - COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-4487
SELECT - 24 / - COUNT ( * )
----
24

query II rowsort
SELECT - 66, 4 AS col2
----
-66
4

query II rowsort
SELECT ALL - 53 + + 15 * - - 87 AS col2, + 89 * - 50 AS col2
----
1252
-4450

query I rowsort
SELECT - 77 * 55
----
-4235

query I rowsort
SELECT ALL - ( 56 ) * + + 17 + - 53
----
-1005

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT DISTINCT + COUNT( * ) + + 31
----
32

skipif mysql # not compatible
query I rowsort label-4492
SELECT DISTINCT + COUNT ( * ) + + 31
----
32

query I rowsort
SELECT ALL COALESCE ( + + ( - 95 ), 16 + + - 32 ) AS col1
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4494
SELECT - COUNT( * ) * - CAST( NULL AS SIGNED ) * - 88, 89 * + 77 * + 25 - + COUNT( * ) AS col0
----
NULL
171324

skipif mysql # not compatible
query II rowsort label-4494
SELECT - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - 88, 89 * + 77 * + 25 - + COUNT ( * ) AS col0
----
NULL
171324

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4495
SELECT - SUM( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4495
SELECT - SUM ( - CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT - 85 - - 93 AS col1
----
8

query I rowsort
SELECT - - 84 + - 10 + NULLIF ( + + 71, - + 24 ) AS col0
----
145

query I rowsort
SELECT ALL - 98 * 73
----
-7154

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT 93 * CASE - 24 WHEN - - 23 / - 24 + - - 4 * 45 * - CASE + + 80 WHEN ( 81 ) THEN + 67 END THEN - 16 ELSE NULL END + NULLIF ( COUNT( * ), 19 * + COUNT( DISTINCT - - 66 ) + - MAX( DISTINCT + 31 ) ) + + + 18 + 25 - 14 * COUNT( * ) * 19 * 92
----
NULL

skipif mysql # not compatible
query I rowsort label-4499
SELECT 93 * CASE - 24 WHEN - - 23 / - 24 + - - 4 * 45 * - CASE + + 80 WHEN ( 81 ) THEN + 67 END THEN - 16 ELSE NULL END + NULLIF ( COUNT ( * ), 19 * + COUNT ( DISTINCT - - 66 ) + - MAX ( DISTINCT + 31 ) ) + + + 18 + 25 - 14 * COUNT ( * ) * 19 * 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT DISTINCT + + SUM( ALL - 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-4500
SELECT DISTINCT + + SUM ( ALL - 35 )
----
-35

query I rowsort
SELECT + + 60 * - 33 AS col0
----
-1980

query I rowsort
SELECT + 44 + - 28 - + + 85 col0
----
-69

query II rowsort
SELECT + 63 col2, - 49 AS col0
----
63
-49

query II rowsort
SELECT + 96, + 31 * + 26 * + + 28 col0
----
96
22568

query I rowsort
SELECT + 71 * + 21 AS col0
----
1491

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT ALL 40 * + - 87 + MIN( + + ( + 95 ) ) + - + CASE - + 48 WHEN - 63 THEN + 88 WHEN - 32 - - + 7 THEN + + COUNT( * ) END * - 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4506
SELECT ALL 40 * + - 87 + MIN ( + + ( + 95 ) ) + - + CASE - + 48 WHEN - 63 THEN + 88 WHEN - 32 - - + 7 THEN + + COUNT ( * ) END * - 84 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - ( - - 33 ) * + 32
----
-1056

query I rowsort
SELECT DISTINCT + 86 * + 36
----
3096

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT ALL + - COALESCE ( - + 46, + + COUNT( * ), COUNT( * ) ) * - 59 + - ( - + ( + 71 ) )
----
-2643

skipif mysql # not compatible
query I rowsort label-4509
SELECT ALL + - COALESCE ( - + 46, + + COUNT ( * ), COUNT ( * ) ) * - 59 + - ( - + ( + 71 ) )
----
-2643

query II rowsort
SELECT ALL 89 * 10 + + - 21 AS col2, 42
----
869
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4511
SELECT ALL - CASE CAST( + + 78 AS SIGNED ) WHEN 65 THEN - - 75 * - - 70 * - - ( + 56 ) END * 40 * - 19 * ( + COUNT( * ) ) + 6 - + 97 + + ( + 97 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4511
SELECT ALL - CASE CAST ( + + 78 AS INTEGER ) WHEN 65 THEN - - 75 * - - 70 * - - ( + 56 ) END * 40 * - 19 * ( + COUNT ( * ) ) + 6 - + 97 + + ( + 97 ) AS col1
----
NULL

query I rowsort
SELECT + 43 * 79 * - 8
----
-27176

query I rowsort
SELECT ALL - 92 * 52 * + 29 + + + 54 * ( 67 ) * + 92
----
194120

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT CASE - 76 WHEN + NULLIF ( + 80, 44 ) THEN + - COALESCE ( - SUM( ALL - 52 ), + + 62 ) + + CASE + + 16 WHEN COALESCE ( + - 26, COUNT( * ), - ( - 43 ) * + 33 ) * - COUNT( * ) + + ( - + 37 ) THEN - 15 + - - COUNT( ALL + + 93 ) WHEN + MIN( - 61 ) * - - 21 THEN - 61 + 20 END * MAX( DISTINCT - 67 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4514
SELECT CASE - 76 WHEN + NULLIF ( + 80, 44 ) THEN + - COALESCE ( - SUM ( ALL - 52 ), + + 62 ) + + CASE + + 16 WHEN COALESCE ( + - 26, COUNT ( * ), - ( - 43 ) * + 33 ) * - COUNT ( * ) + + ( - + 37 ) THEN - 15 + - - COUNT ( ALL + + 93 ) WHEN + MIN ( - 61 ) * - - 21 THEN - 61 + 20 END * MAX ( DISTINCT - 67 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT ALL - 93 * 48 + - 13 * COALESCE ( + + 25, + 67, - - COUNT( * ) ) * + - CASE + + COUNT( * ) WHEN + + COUNT( * ) * - - 18 + + MAX( + 41 ) + - 16 * 7 THEN 93 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4515
SELECT ALL - 93 * 48 + - 13 * COALESCE ( + + 25, + 67, - - COUNT ( * ) ) * + - CASE + + COUNT ( * ) WHEN + + COUNT ( * ) * - - 18 + + MAX ( + 41 ) + - 16 * 7 THEN 93 ELSE NULL END
----
NULL

query I rowsort
SELECT + 7 - - 48
----
55

query I rowsort
SELECT + 83 * + 4 AS col1
----
332

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT ALL 7 * SUM( - 95 )
----
-665

skipif mysql # not compatible
query I rowsort label-4518
SELECT ALL 7 * SUM ( - 95 )
----
-665

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT ALL 85 * + 54 + - COUNT( + 38 ) - - - COUNT( * ) + - 48 * - + 58 AS col2
----
7372

skipif mysql # not compatible
query I rowsort label-4519
SELECT ALL 85 * + 54 + - COUNT ( + 38 ) - - - COUNT ( * ) + - 48 * - + 58 AS col2
----
7372

query I rowsort
SELECT ALL ( + - 65 )
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4521
SELECT DISTINCT ( - + CAST( NULL AS SIGNED ) ) - + 65 + - - 48 + - + 15 + - - 79 + + - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-4521
SELECT DISTINCT ( - + CAST ( NULL AS INTEGER ) ) - + 65 + - - 48 + - + 15 + - - 79 + + - 50
----
NULL

query I rowsort
SELECT - 71 + 0 + + - NULLIF ( + - 78, - 80 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT - COALESCE ( + 77, 45, + 25 ) - + COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-4523
SELECT - COALESCE ( + 77, 45, + 25 ) - + COUNT ( * )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT DISTINCT COALESCE ( - - 75, COUNT( ALL + 99 ) ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-4524
SELECT DISTINCT COALESCE ( - - 75, COUNT ( ALL + 99 ) ) AS col2
----
75

query I rowsort
SELECT + 17 * 59 AS col2
----
1003

query I rowsort
SELECT - 23 * + 24
----
-552

query II rowsort
SELECT - 88 AS col1, 2
----
-88
2

query II rowsort
SELECT - 90 AS col2, + 85 col2
----
-90
85

query I rowsort
SELECT + 92 * 11 AS col2
----
1012

query I rowsort
SELECT ALL + - 33 * 15 AS col2
----
-495

query I rowsort
SELECT DISTINCT - 11 * + 9 col2
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-4532
SELECT DISTINCT + 43 AS col1, - COUNT( * ) AS col1
----
43
-1

skipif mysql # not compatible
query II rowsort label-4532
SELECT DISTINCT + 43 AS col1, - COUNT ( * ) AS col1
----
43
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT - COUNT( * ) * - 86 - 77 + + ( 49 )
----
58

skipif mysql # not compatible
query I rowsort label-4533
SELECT - COUNT ( * ) * - 86 - 77 + + ( 49 )
----
58

query I rowsort
SELECT ALL - 8 * - 34 AS col2
----
272

query I rowsort
SELECT 48 * - + 51 AS col0
----
-2448

onlyif mysql # aggregate syntax: 
query II rowsort label-4536
SELECT 52 AS col0, + COUNT( * )
----
52
1

skipif mysql # not compatible
query II rowsort label-4536
SELECT 52 AS col0, + COUNT ( * )
----
52
1

query I rowsort
SELECT ALL + + 29 + - 36
----
-7

query I rowsort
SELECT + 20 * + + 78 - - 8 AS col2
----
1568

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT + CASE + - COUNT( * ) WHEN + 62 THEN 38 WHEN + SUM( 95 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4539
SELECT + CASE + - COUNT ( * ) WHEN + 62 THEN 38 WHEN + SUM ( 95 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4540
SELECT DISTINCT - COUNT( * ) AS col0, 55
----
-1
55

skipif mysql # not compatible
query II rowsort label-4540
SELECT DISTINCT - COUNT ( * ) AS col0, 55
----
-1
55

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4541
SELECT + + CASE - - 99 WHEN - - ( + CAST( NULL AS DECIMAL ) ) * ( + - 64 ) - 35 THEN NULL WHEN 16 THEN - MIN( DISTINCT + 54 ) - + + 52 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4541
SELECT + + CASE - - 99 WHEN - - ( + CAST ( NULL AS REAL ) ) * ( + - 64 ) - 35 THEN NULL WHEN 16 THEN - MIN ( DISTINCT + 54 ) - + + 52 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4542
SELECT ALL SUM( - 66 ) + 21 * - COUNT( * ), 18 AS col1
----
-87
18

skipif mysql # not compatible
query II rowsort label-4542
SELECT ALL SUM ( - 66 ) + 21 * - COUNT ( * ), 18 AS col1
----
-87
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4543
SELECT - CAST( NULL AS SIGNED ) - 91 - - + NULLIF ( ( + 4 ), - 93 - + 31 ) - - 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4543
SELECT - CAST ( NULL AS INTEGER ) - 91 - - + NULLIF ( ( + 4 ), - 93 - + 31 ) - - 5 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT - COALESCE ( + + 80, - 21 * + NULLIF ( + - 91, 33 ) ) * ( - 62 ) * - 37 - + 86 - 34 / 62 - + COUNT( * ) - + 7 + 32 + + CASE - - 0 WHEN 9 * - - 24 THEN + - 82 * - - COUNT( * ) + 18 + 72 * + + 10 END / 6 / + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-4544
SELECT - COALESCE ( + + 80, - 21 * + NULLIF ( + - 91, 33 ) ) * ( - 62 ) * - 37 - + 86 - 34 / 62 - + COUNT ( * ) - + 7 + 32 + + CASE - - 0 WHEN 9 * - - 24 THEN + - 82 * - - COUNT ( * ) + 18 + 72 * + + 10 END / 6 / + 31
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4545
SELECT DISTINCT - + 74 * + - ( - COUNT( * ) ) * - 5 + 14 + - 84 + 70 * 24 - + 17 AS col0, - 69 * - + ( 75 ) + - ( 61 ) AS col1
----
1963
5114

skipif mysql # not compatible
query II rowsort label-4545
SELECT DISTINCT - + 74 * + - ( - COUNT ( * ) ) * - 5 + 14 + - 84 + 70 * 24 - + 17 AS col0, - 69 * - + ( 75 ) + - ( 61 ) AS col1
----
1963
5114

onlyif mysql # DIV for integer division: 
query I rowsort label-4546
SELECT 35 DIV - 55 DIV + - 1
----
0

skipif mysql # not compatible
query I rowsort label-4546
SELECT 35 / - 55 / + - 1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4547
SELECT 6 + - 15 AS col2, CASE 13 WHEN - 8 THEN NULL WHEN - 18 * 19 THEN + 10 / + - CASE - 76 WHEN - ( - + 90 ) / + + 27 * - 30 - - 73 * + 79 + - + COUNT( * ) THEN NULL WHEN + COUNT( * ) * - ( - COUNT( * ) ) THEN 89 + COUNT( * ) * - + AVG ( 53 ) * - - MAX( ALL 14 ) * COALESCE ( 87, 80, - 87 ) + + 21 ELSE NULL END END * - COUNT( + 4 ) * 75 / + - 97 * + 51 AS col0
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-4547
SELECT 6 + - 15 AS col2, CASE 13 WHEN - 8 THEN NULL WHEN - 18 * 19 THEN + 10 / + - CASE - 76 WHEN - ( - + 90 ) / + + 27 * - 30 - - 73 * + 79 + - + COUNT ( * ) THEN NULL WHEN + COUNT ( * ) * - ( - COUNT ( * ) ) THEN 89 + COUNT ( * ) * - + AVG ( 53 ) * - - MAX ( ALL 14 ) * COALESCE ( 87, 80, - 87 ) + + 21 ELSE NULL END END * - COUNT ( + 4 ) * 75 / + - 97 * + 51 AS col0
----
-9
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4548
SELECT 51 - + 36 + - 66 DIV - 33 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-4548
SELECT 51 - + 36 + - 66 / - 33 AS col0
----
17

query I rowsort
SELECT - 81 * + 14 * - - 89 + - 68
----
-100994

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4550
SELECT ALL + 81 * CAST( + + AVG ( DISTINCT - 31 ) AS SIGNED )
----
-2511

skipif mysql # not compatible
query I rowsort label-4550
SELECT ALL + 81 * CAST ( + + AVG ( DISTINCT - 31 ) AS INTEGER )
----
-2511

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4551
SELECT DISTINCT 30 DIV ( + CAST( 64 AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4551
SELECT DISTINCT 30 / ( + CAST ( 64 AS INTEGER ) ) AS col1
----
0

query II rowsort
SELECT ALL 48 - - 10, 33 AS col2
----
58
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT 60 + MIN( DISTINCT + 58 ) + + COUNT( * )
----
119

skipif mysql # not compatible
query I rowsort label-4553
SELECT 60 + MIN ( DISTINCT + 58 ) + + COUNT ( * )
----
119

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4554
SELECT DISTINCT CAST( - 5 AS SIGNED ) DIV + + 1
----
-5

skipif mysql # not compatible
query I rowsort label-4554
SELECT DISTINCT CAST ( - 5 AS INTEGER ) / + + 1
----
-5

query I rowsort
SELECT ( - 30 ) + + 83
----
53

query I rowsort
SELECT NULLIF ( - 34, 11 ) + + + 57
----
23

query I rowsort
SELECT 56 + - 52 AS col0
----
4

query I rowsort
SELECT DISTINCT 40 * 96 AS col0
----
3840

query II rowsort
SELECT ALL 52 * + 13 AS col2, - 41
----
676
-41

query I rowsort
SELECT - 90 * + + 35 AS col0
----
-3150

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT DISTINCT + 71 * + + 2 * - COUNT( * )
----
-142

skipif mysql # not compatible
query I rowsort label-4561
SELECT DISTINCT + 71 * + + 2 * - COUNT ( * )
----
-142

query II rowsort
SELECT 14 + - 3, 26 col0
----
11
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4563
SELECT + 56 DIV + 59 * ( + 41 ) - - 66 - + ( + - 12 ) * + - 30 * - - 44 * + + SUM( + ( + - 74 ) ) col1
----
1172226

skipif mysql # not compatible
query I rowsort label-4563
SELECT + 56 / + 59 * ( + 41 ) - - 66 - + ( + - 12 ) * + - 30 * - - 44 * + + SUM ( + ( + - 74 ) ) col1
----
1172226

query I rowsort
SELECT + NULLIF ( + + 20, - 75 ) * + + 19
----
380

query I rowsort
SELECT ALL + 21 + 47 + + 11 * + + 67 * 97 AS col1
----
71557

query II rowsort
SELECT + 65 + 42 AS col2, + 37 AS col0
----
107
37

onlyif mysql # DIV for integer division: 
query I rowsort label-4567
SELECT - COALESCE ( 87, - - ( + - 78 ) DIV - 0 * 81 * - + 37 ) * - 14 AS col1
----
1218

skipif mysql # not compatible
query I rowsort label-4567
SELECT - COALESCE ( 87, - - ( + - 78 ) / - 0 * 81 * - + 37 ) * - 14 AS col1
----
1218

query I rowsort
SELECT DISTINCT - 63 * - NULLIF ( - 21, + 65 + - - 87 - - 29 ) AS col1
----
-1323

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT ALL - 37 * + 72 + - SUM( 98 )
----
-2762

skipif mysql # not compatible
query I rowsort label-4569
SELECT ALL - 37 * + 72 + - SUM ( 98 )
----
-2762

query I rowsort
SELECT 16 * 72 col1
----
1152

query II rowsort
SELECT ALL - 15, 13 AS col1
----
-15
13

query I rowsort
SELECT DISTINCT 7 - 1 AS col0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4573
SELECT 31 * 9 DIV + 16
----
17

skipif mysql # not compatible
query I rowsort label-4573
SELECT 31 * 9 / + 16
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT MIN( ALL NULLIF ( 87, 60 * 54 ) ) * - + COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-4574
SELECT MIN ( ALL NULLIF ( 87, 60 * 54 ) ) * - + COUNT ( * )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT DISTINCT + 49 * COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-4575
SELECT DISTINCT + 49 * COUNT ( * )
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4576
SELECT ALL + 5, 9 + - 41 + + + NULLIF ( 48, - 41 + - 72 ) * + + COUNT( * ) DIV - COUNT( * ) AS col2
----
5
-80

skipif mysql # not compatible
query II rowsort label-4576
SELECT ALL + 5, 9 + - 41 + + + NULLIF ( 48, - 41 + - 72 ) * + + COUNT ( * ) / - COUNT ( * ) AS col2
----
5
-80

query I rowsort
SELECT 59 * - - 19 - + 8 col2
----
1113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4578
SELECT - COUNT( + CAST( + - 81 AS SIGNED ) ) - + 46 * + - 71 AS col2
----
3265

skipif mysql # not compatible
query I rowsort label-4578
SELECT - COUNT ( + CAST ( + - 81 AS INTEGER ) ) - + 46 * + - 71 AS col2
----
3265

onlyif mysql # aggregate syntax: 
query II rowsort label-4579
SELECT DISTINCT 34, MAX( DISTINCT - 45 ) AS col2
----
34
-45

skipif mysql # not compatible
query II rowsort label-4579
SELECT DISTINCT 34, MAX ( DISTINCT - 45 ) AS col2
----
34
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4580
SELECT DISTINCT NULLIF ( - 24, + + COUNT( * ) + 90 + + 60 / CASE - + 50 WHEN - - COUNT( * ) THEN + ( - ( + - CASE 72 WHEN 48 THEN + + 38 + + 62 * + + COUNT( * ) ELSE NULL END ) ) WHEN 92 THEN NULL WHEN - 32 * CAST( NULL AS SIGNED ) + + 59 THEN - CAST( NULL AS DECIMAL ) * 58 * + COUNT( * ) * - SUM( DISTINCT + - 20 ) * - + 11 + - COUNT( * ) END ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-4580
SELECT DISTINCT NULLIF ( - 24, + + COUNT ( * ) + 90 + + 60 / CASE - + 50 WHEN - - COUNT ( * ) THEN + ( - ( + - CASE 72 WHEN 48 THEN + + 38 + + 62 * + + COUNT ( * ) ELSE NULL END ) ) WHEN 92 THEN NULL WHEN - 32 * CAST ( NULL AS INTEGER ) + + 59 THEN - CAST ( NULL AS REAL ) * 58 * + COUNT ( * ) * - SUM ( DISTINCT + - 20 ) * - + 11 + - COUNT ( * ) END ) AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT ALL COUNT( ALL - 39 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4581
SELECT ALL COUNT ( ALL - 39 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4582
SELECT - COALESCE ( - MIN( + + 8 ), 18 ) AS col0, + 87
----
8
87

skipif mysql # not compatible
query II rowsort label-4582
SELECT - COALESCE ( - MIN ( + + 8 ), 18 ) AS col0, + 87
----
8
87

onlyif mysql # DIV for integer division: 
query I rowsort label-4583
SELECT + 10 DIV - + 75
----
0

skipif mysql # not compatible
query I rowsort label-4583
SELECT + 10 / - + 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT ALL MIN( - 95 ) + + 75 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-4584
SELECT ALL MIN ( - 95 ) + + 75 AS col2
----
-20

query II rowsort
SELECT 6 AS col2, 33 AS col2
----
6
33

query I rowsort
SELECT + 67 + - 60 + - - 10
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4587
SELECT NULLIF ( 57, - + 66 ) AS col1, + 34 DIV - ( + COALESCE ( - NULLIF ( COALESCE ( COUNT( * ), 71 * + 13 + + 30 - ( 16 ) ), - 67 ), - ( - 30 ) ) ) + ( + 84 ) AS col2
----
57
118

skipif mysql # not compatible
query II rowsort label-4587
SELECT NULLIF ( 57, - + 66 ) AS col1, + 34 / - ( + COALESCE ( - NULLIF ( COALESCE ( COUNT ( * ), 71 * + 13 + + 30 - ( 16 ) ), - 67 ), - ( - 30 ) ) ) + ( + 84 ) AS col2
----
57
118

query I rowsort
SELECT ALL - 9 + + 73 AS col2
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4589
SELECT + - CAST( NULL AS SIGNED ) * + + COUNT( * ) * + + 86 + 36 AS col0, 33 AS col2
----
NULL
33

skipif mysql # not compatible
query II rowsort label-4589
SELECT + - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) * + + 86 + 36 AS col0, 33 AS col2
----
NULL
33

query I rowsort
SELECT DISTINCT + 98 * 89 col0
----
8722

query I rowsort
SELECT ( + - 95 )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT + - 54 * - 43 - - - 80 - - ( ( + - 92 ) ) + - ( COUNT( * ) ) AS col2
----
2149

skipif mysql # not compatible
query I rowsort label-4592
SELECT + - 54 * - 43 - - - 80 - - ( ( + - 92 ) ) + - ( COUNT ( * ) ) AS col2
----
2149

query II rowsort
SELECT 86 col2, + ( + - 8 ) col0
----
86
-8

query I rowsort
SELECT 68 * - 61 - + + 24 col0
----
-4172

query II rowsort
SELECT + 33 AS col1, - 66 AS col0
----
33
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT - + ( + 26 ) * - 54 + - - NULLIF ( - NULLIF ( - 96, - 66 + + 88 * + 47 ), + 18 + + + 84 - - COUNT( * ) ) col0
----
1500

skipif mysql # not compatible
query I rowsort label-4596
SELECT - + ( + 26 ) * - 54 + - - NULLIF ( - NULLIF ( - 96, - 66 + + 88 * + 47 ), + 18 + + + 84 - - COUNT ( * ) ) col0
----
1500

onlyif mysql # DIV for integer division: 
query I rowsort label-4597
SELECT ALL + - 57 DIV - ( - ( - 63 ) ) + 86
----
86

skipif mysql # not compatible
query I rowsort label-4597
SELECT ALL + - 57 / - ( - ( - 63 ) ) + 86
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-4598
SELECT 19 DIV - - 95 + 96 * 77 * - 3
----
-22176

skipif mysql # not compatible
query I rowsort label-4598
SELECT 19 / - - 95 + 96 * 77 * - 3
----
-22176

query I rowsort
SELECT + ( - 11 ) AS col0
----
-11

query II rowsort
SELECT ALL + 26 * + + 63 AS col1, + 6 AS col1
----
1638
6

query I rowsort
SELECT + 86 * - 16 - 61
----
-1437

query I rowsort
SELECT ALL + COALESCE ( - 76, - - 19 + + - ( + 29 ) ) col2
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-4603
SELECT + 25 + + + 3 DIV + 54 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-4603
SELECT + 25 + + + 3 / + 54 AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT + 42 / - ( + 93 ) * - CASE + 25 WHEN - MIN( ALL + 70 ) + 24 THEN + + 13 WHEN + - 20 THEN NULL END - + 31 * - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-4604
SELECT + 42 / - ( + 93 ) * - CASE + 25 WHEN - MIN ( ALL + 70 ) + 24 THEN + + 13 WHEN + - 20 THEN NULL END - + 31 * - 71
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4605
SELECT - 48 DIV - 70 * + - 70
----
0

skipif mysql # not compatible
query I rowsort label-4605
SELECT - 48 / - 70 * + - 70
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4606
SELECT NULLIF ( + + 2, + CASE - + MIN( ALL - - 52 ) WHEN COUNT( * ) THEN - - 69 + - 31 + - + COUNT( * ) * + 0 WHEN + - 2 + COUNT( * ) THEN + CAST( NULL AS SIGNED ) ELSE - COUNT( * ) * + COUNT( * ) + - - 32 - + - 67 * + 65 END )
----
2

skipif mysql # not compatible
query I rowsort label-4606
SELECT NULLIF ( + + 2, + CASE - + MIN ( ALL - - 52 ) WHEN COUNT ( * ) THEN - - 69 + - 31 + - + COUNT ( * ) * + 0 WHEN + - 2 + COUNT ( * ) THEN + CAST ( NULL AS INTEGER ) ELSE - COUNT ( * ) * + COUNT ( * ) + - - 32 - + - 67 * + 65 END )
----
2

query I rowsort
SELECT - 0 - + 75 - 47 * - - 62 AS col1
----
-2989

query I rowsort
SELECT ALL + ( + 67 ) AS col0
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4609
SELECT + 35 * + 27 + NULLIF ( - CASE WHEN - 16 <> CAST( NULL AS SIGNED ) + + ( + + MAX( - 46 ) ) + + - 51 + - 67 THEN NULL ELSE + 44 END, + 26 ) AS col0
----
901

skipif mysql # not compatible
query I rowsort label-4609
SELECT + 35 * + 27 + NULLIF ( - CASE WHEN - 16 <> CAST ( NULL AS INTEGER ) + + ( + + MAX ( - 46 ) ) + + - 51 + - 67 THEN NULL ELSE + 44 END, + 26 ) AS col0
----
901

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4610
SELECT ALL ( + 35 ) * COALESCE ( - CAST( + 50 AS SIGNED ), - - 69 ) AS col2
----
-1750

skipif mysql # not compatible
query I rowsort label-4610
SELECT ALL ( + 35 ) * COALESCE ( - CAST ( + 50 AS INTEGER ), - - 69 ) AS col2
----
-1750

query II rowsort
SELECT - 47 + - 80, - 54 col1
----
-127
-54

query I rowsort
SELECT DISTINCT + NULLIF ( 82, - - 41 / - 20 ) AS col2
----
82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4613
SELECT - CAST( NULL AS DECIMAL ) + + - 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4613
SELECT - CAST ( NULL AS REAL ) + + - 25 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4614
SELECT ALL CASE + + 97 WHEN 63 DIV - 47 * + 33 THEN NULL ELSE - 96 DIV 1 END * - COUNT( * ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-4614
SELECT ALL CASE + + 97 WHEN 63 / - 47 * + 33 THEN NULL ELSE - 96 / 1 END * - COUNT ( * ) AS col1
----
96

query I rowsort
SELECT DISTINCT 34 * + 1 * - - ( 53 ) + - - 92 * - + 29
----
-866

query I rowsort
SELECT - + 99 + 27 AS col2
----
-72

query I rowsort
SELECT ALL + 19 + 94
----
113

query I rowsort
SELECT ALL - 60 + 81 * + - 80 AS col0
----
-6540

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4619
SELECT ALL - 80 + + - 45 + - + 97 + - 6 * + - 11 * + 36 + COUNT( * ) DIV - 23
----
2154

skipif mysql # not compatible
query I rowsort label-4619
SELECT ALL - 80 + + - 45 + - + 97 + - 6 * + - 11 * + 36 + COUNT ( * ) / - 23
----
2154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4620
SELECT MAX( DISTINCT + - 57 ) AS col2, + 60 * + 90 / + 55 * - CAST( NULL AS SIGNED ) AS col2
----
-57
NULL

skipif mysql # not compatible
query II rowsort label-4620
SELECT MAX ( DISTINCT + - 57 ) AS col2, + 60 * + 90 / + 55 * - CAST ( NULL AS INTEGER ) AS col2
----
-57
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4621
SELECT + 97 + CAST( NULL AS SIGNED ), - MAX( - - CAST( NULL AS SIGNED ) )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4621
SELECT + 97 + CAST ( NULL AS INTEGER ), - MAX ( - - CAST ( NULL AS INTEGER ) )
----
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - - ( - - 75 ) ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT ALL 80 - + MAX( COALESCE ( + 77, + 3 ) ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-4623
SELECT ALL 80 - + MAX ( COALESCE ( + 77, + 3 ) ) AS col2
----
3

query I rowsort
SELECT + NULLIF ( + 8, + + 70 ) + + 21
----
29

query I rowsort
SELECT + - 23 + - 74 + - 57 AS col2
----
-154

onlyif mysql # aggregate syntax: 
query II rowsort label-4626
SELECT + - COUNT( * ) + + + 95 AS col2, 40 AS col0
----
94
40

skipif mysql # not compatible
query II rowsort label-4626
SELECT + - COUNT ( * ) + + + 95 AS col2, 40 AS col0
----
94
40

query I rowsort
SELECT ALL + 53 * - + 45 AS col1
----
-2385

query II rowsort
SELECT ALL + ( + - 82 ), 72 AS col0
----
-82
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4629
SELECT DISTINCT - + COALESCE ( - COUNT( * ), - 12 * - - 20 - - + CAST( - COUNT( * ) AS SIGNED ) ) DIV - 20 - 85 * + 11 - + 24 AS col2
----
-959

skipif mysql # not compatible
query I rowsort label-4629
SELECT DISTINCT - + COALESCE ( - COUNT ( * ), - 12 * - - 20 - - + CAST ( - COUNT ( * ) AS INTEGER ) ) / - 20 - 85 * + 11 - + 24 AS col2
----
-959

query II rowsort
SELECT DISTINCT + 76 AS col2, 53 * 26 AS col2
----
76
1378

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4631
SELECT ALL CAST( NULL AS DECIMAL ) * - - 33 * - 3 AS col2, + 46
----
NULL
46

skipif mysql # not compatible
query II rowsort label-4631
SELECT ALL CAST ( NULL AS REAL ) * - - 33 * - 3 AS col2, + 46
----
NULL
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT DISTINCT + COALESCE ( - 7, - COUNT( * ) ) col1
----
-7

skipif mysql # not compatible
query I rowsort label-4632
SELECT DISTINCT + COALESCE ( - 7, - COUNT ( * ) ) col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT + CASE + 34 WHEN + - 18 * + SUM( + - 16 ) THEN - 2 WHEN - 48 + + COUNT( DISTINCT + + 97 ) THEN + 99 ELSE - - 96 + 82 * + COUNT( * ) * ( 18 ) END
----
1572

skipif mysql # not compatible
query I rowsort label-4633
SELECT + CASE + 34 WHEN + - 18 * + SUM ( + - 16 ) THEN - 2 WHEN - 48 + + COUNT ( DISTINCT + + 97 ) THEN + 99 ELSE - - 96 + 82 * + COUNT ( * ) * ( 18 ) END
----
1572

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT + COUNT( * ) + - - 47
----
48

skipif mysql # not compatible
query I rowsort label-4634
SELECT + COUNT ( * ) + - - 47
----
48

query I rowsort
SELECT 34 * - 83 AS col1
----
-2822

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT 70 * - MAX( ALL - 93 ) AS col2
----
6510

skipif mysql # not compatible
query I rowsort label-4636
SELECT 70 * - MAX ( ALL - 93 ) AS col2
----
6510

query I rowsort
SELECT + 68 * + + 72 * + + 93 + 84 AS col2
----
455412

onlyif mysql # DIV for integer division: 
query I rowsort label-4638
SELECT ALL 65 DIV + COALESCE ( + ( + + 15 ), - 94 ) col2
----
4

skipif mysql # not compatible
query I rowsort label-4638
SELECT ALL 65 / + COALESCE ( + ( + + 15 ), - 94 ) col2
----
4

query I rowsort
SELECT 60 * + + 78
----
4680

onlyif mysql # aggregate syntax: 
query II rowsort label-4640
SELECT 89, 32 - - - SUM( DISTINCT 37 ) AS col1
----
89
-5

skipif mysql # not compatible
query II rowsort label-4640
SELECT 89, 32 - - - SUM ( DISTINCT 37 ) AS col1
----
89
-5

query I rowsort
SELECT ALL + 32 + + ( - 56 ) + 14 AS col1
----
-10

query I rowsort
SELECT DISTINCT - 78 * - + 35 col2
----
2730

query I rowsort
SELECT ALL 29 + - 36
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4644
SELECT 85 * - 79 * CAST( 69 AS SIGNED ) * + - COALESCE ( + - 84, - + 5 * 5 ) col2, + CAST( NULL AS SIGNED )
----
-38920140
NULL

skipif mysql # not compatible
query II rowsort label-4644
SELECT 85 * - 79 * CAST ( 69 AS INTEGER ) * + - COALESCE ( + - 84, - + 5 * 5 ) col2, + CAST ( NULL AS INTEGER )
----
-38920140
NULL

query II rowsort
SELECT ALL - 56 AS col2, 93
----
-56
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT DISTINCT 64 + COUNT( * ) + 41 + + MIN( - 32 ) * + - 8
----
362

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT 64 + COUNT ( * ) + 41 + + MIN ( - 32 ) * + - 8
----
362

onlyif mysql # DIV for integer division: 
query I rowsort label-4647
SELECT 4 DIV - 49 DIV 9
----
0

skipif mysql # not compatible
query I rowsort label-4647
SELECT 4 / - 49 / 9
----
0

query I rowsort
SELECT 33 * - 9 - 85 * - 51 * + ( - + 36 ) * - 85
----
13264803

query I rowsort
SELECT 84 - 99 * 95 col1
----
-9321

query I rowsort
SELECT ALL 63 + 40 * - 5 AS col1
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT ALL - COUNT( DISTINCT - 58 ) + 67
----
66

skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL - COUNT ( DISTINCT - 58 ) + 67
----
66

query I rowsort
SELECT 16 * - 69 col1
----
-1104

query I rowsort
SELECT 19 - 86
----
-67

query I rowsort
SELECT 29 - 99 AS col2
----
-70

query I rowsort
SELECT ALL - 70 - + 46 AS col0
----
-116

query I rowsort
SELECT 0 * 0
----
0

query I rowsort
SELECT 54 * + 53
----
2862

query I rowsort
SELECT DISTINCT - 53 * 53 col2
----
-2809

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT ALL 32 - COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-4659
SELECT ALL 32 - COUNT ( * )
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-4660
SELECT 44 DIV 34
----
1

skipif mysql # not compatible
query I rowsort label-4660
SELECT 44 / 34
----
1

query I rowsort
SELECT 25 + 54
----
79

query I rowsort
SELECT 31 - - ( + 20 ) AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT - 77 * - COUNT( * ) + 2 * - CASE COUNT( * ) WHEN 37 + - 71 * 86 THEN NULL WHEN COUNT( + 8 ) * + COALESCE ( 72 * - 9, 49 * 80 + 40 ) THEN + 22 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4663
SELECT - 77 * - COUNT ( * ) + 2 * - CASE COUNT ( * ) WHEN 37 + - 71 * 86 THEN NULL WHEN COUNT ( + 8 ) * + COALESCE ( 72 * - 9, 49 * 80 + 40 ) THEN + 22 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4664
SELECT DISTINCT 31 DIV - 16
----
-1

skipif mysql # not compatible
query I rowsort label-4664
SELECT DISTINCT 31 / - 16
----
-1

query I rowsort
SELECT ALL 89 + 81
----
170

query I rowsort
SELECT DISTINCT - ( ( 40 ) )
----
-40

query I rowsort
SELECT ALL 29 + 45 AS col0
----
74

query I rowsort
SELECT DISTINCT 88 + 87 AS col0
----
175

query I rowsort
SELECT 59 * 65 col1
----
3835

query I rowsort
SELECT ALL 23 + - 43
----
-20

query I rowsort
SELECT 20 - - 93 AS col2
----
113

query I rowsort
SELECT + 34 + 70 AS col1
----
104

query I rowsort
SELECT ALL 73 + 30 AS col2
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT 7 * - MAX( 95 )
----
-665

skipif mysql # not compatible
query I rowsort label-4674
SELECT 7 * - MAX ( 95 )
----
-665

query I rowsort
SELECT ALL + + 42 * NULLIF ( + COALESCE ( + 60, 32 * 12, - 80 ), - 14 + - 78 )
----
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT DISTINCT + COUNT( * ) - + 9
----
-8

skipif mysql # not compatible
query I rowsort label-4676
SELECT DISTINCT + COUNT ( * ) - + 9
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4677
SELECT ALL - 78 - 85 DIV - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL - 78 - 85 / - COUNT ( * )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT MAX( DISTINCT 48 ) * + 67 AS col1
----
3216

skipif mysql # not compatible
query I rowsort label-4678
SELECT MAX ( DISTINCT 48 ) * + 67 AS col1
----
3216

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT + 92 * + NULLIF ( + MIN( 92 ), ( + 87 ) - 45 )
----
8464

skipif mysql # not compatible
query I rowsort label-4679
SELECT + 92 * + NULLIF ( + MIN ( 92 ), ( + 87 ) - 45 )
----
8464

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4680
SELECT 32 * CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4680
SELECT 32 * CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT + MAX( - 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-4681
SELECT + MAX ( - 75 )
----
-75

query I rowsort
SELECT DISTINCT + 59 * 41 AS col1
----
2419

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT 55 * - COUNT( * ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-4683
SELECT 55 * - COUNT ( * ) AS col1
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4684
SELECT DISTINCT - CAST( COALESCE ( 14, 41 * + COUNT( * ) + - 20 * CAST( NULL AS SIGNED ), COUNT( * ) ) AS SIGNED )
----
-14

skipif mysql # not compatible
query I rowsort label-4684
SELECT DISTINCT - CAST ( COALESCE ( 14, 41 * + COUNT ( * ) + - 20 * CAST ( NULL AS INTEGER ), COUNT ( * ) ) AS INTEGER )
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4685
SELECT 32 + CAST( NULL AS SIGNED ) * 63
----
NULL

skipif mysql # not compatible
query I rowsort label-4685
SELECT 32 + CAST ( NULL AS INTEGER ) * 63
----
NULL

query I rowsort
SELECT + + 71 * - 53 AS col2
----
-3763

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT - + 65 + + COUNT( * ) * 12 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-4687
SELECT - + 65 + + COUNT ( * ) * 12 AS col0
----
-53

query I rowsort
SELECT DISTINCT - 22 * + 18 * + 97
----
-38412

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT - COUNT( * ) + 28
----
27

skipif mysql # not compatible
query I rowsort label-4689
SELECT - COUNT ( * ) + 28
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT - 95 * - - COUNT( * ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-4690
SELECT - 95 * - - COUNT ( * ) AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT - NULLIF ( + 73, 11 * COUNT( * ) ) + 98 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-4691
SELECT - NULLIF ( + 73, 11 * COUNT ( * ) ) + 98 AS col0
----
25

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4692
SELECT DISTINCT + 23 + CAST( NULL AS DECIMAL ) + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-4692
SELECT DISTINCT + 23 + CAST ( NULL AS REAL ) + 5
----
NULL

query I rowsort
SELECT ALL - 32 + - + 33
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT NULLIF ( - COUNT( * ), + 20 * - 48 )
----
-1

skipif mysql # not compatible
query I rowsort label-4694
SELECT NULLIF ( - COUNT ( * ), + 20 * - 48 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT ALL 35 * + 89 + + 88 * COUNT( * ) AS col2
----
3203

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL 35 * + 89 + + 88 * COUNT ( * ) AS col2
----
3203

query I rowsort
SELECT DISTINCT 4 * 47 * - 1 + 11 * 59 AS col2
----
461

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT - 41 + COUNT( * ) + + COUNT( * ) * + 4 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-4697
SELECT - 41 + COUNT ( * ) + + COUNT ( * ) * + 4 AS col2
----
-36

query I rowsort
SELECT NULLIF ( 44, 94 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT + 72 * COUNT( * ) + 24 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-4699
SELECT + 72 * COUNT ( * ) + 24 AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT CASE - 10 WHEN MIN( + 5 ) / + 19 + 72 THEN NULL ELSE - COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-4700
SELECT CASE - 10 WHEN MIN ( + 5 ) / + 19 + 72 THEN NULL ELSE - COUNT ( * ) END
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4701
SELECT DISTINCT + 60 DIV + 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4701
SELECT DISTINCT + 60 / + 65 AS col2
----
0

query I rowsort
SELECT CASE - 57 WHEN + 23 THEN + 85 + + 79 * 79 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4703
SELECT - ( + 5 ) DIV COALESCE ( - CAST( NULL AS SIGNED ), 81 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-4703
SELECT - ( + 5 ) / COALESCE ( - CAST ( NULL AS INTEGER ), 81 ) col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4704
SELECT - ( 20 ) / MAX( ALL 79 ) + + 72 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4704
SELECT - ( 20 ) / MAX ( ALL 79 ) + + 72 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT ALL + COUNT( * ) * + 93 - 69 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-4705
SELECT ALL + COUNT ( * ) * + 93 - 69 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT CASE + COUNT( * ) WHEN + 43 - + COUNT( * ) THEN + 69 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4706
SELECT CASE + COUNT ( * ) WHEN + 43 - + COUNT ( * ) THEN + 69 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT ALL + + MAX( DISTINCT + + 14 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-4707
SELECT ALL + + MAX ( DISTINCT + + 14 ) AS col0
----
14

query I rowsort
SELECT + - 87 * - 1 AS col2
----
87

query I rowsort
SELECT ALL + 82 * - 66 * + 1
----
-5412

query I rowsort
SELECT - + 76 * 33 - + 65
----
-2573

query I rowsort
SELECT - + 31 * - + 75 + + 45 AS col2
----
2370

query I rowsort
SELECT + ( + - 30 ) AS col1
----
-30

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4713
SELECT - 40 * - COUNT( * ) * 80 - + CASE COUNT( * ) + 12 WHEN CAST( NULL AS DECIMAL ) THEN NULL WHEN - 96 / 46 + SUM( DISTINCT + 22 ) THEN 80 ELSE NULL END * 42
----
NULL

skipif mysql # not compatible
query I rowsort label-4713
SELECT - 40 * - COUNT ( * ) * 80 - + CASE COUNT ( * ) + 12 WHEN CAST ( NULL AS REAL ) THEN NULL WHEN - 96 / 46 + SUM ( DISTINCT + 22 ) THEN 80 ELSE NULL END * 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT + MAX( - 23 ) * 75
----
-1725

skipif mysql # not compatible
query I rowsort label-4714
SELECT + MAX ( - 23 ) * 75
----
-1725

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT - MAX( 66 ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-4715
SELECT - MAX ( 66 ) AS col1
----
-66

query I rowsort
SELECT + 34 - - + 42
----
76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4717
SELECT DISTINCT NULLIF ( 35, + CAST( NULL AS DECIMAL ) + 20 * - 93 )
----
35

skipif mysql # not compatible
query I rowsort label-4717
SELECT DISTINCT NULLIF ( 35, + CAST ( NULL AS REAL ) + 20 * - 93 )
----
35

query I rowsort
SELECT ALL ( + 31 ) * 88 AS col0
----
2728

onlyif mysql # DIV for integer division: 
query I rowsort label-4719
SELECT + + 60 DIV 18 + 16
----
19

skipif mysql # not compatible
query I rowsort label-4719
SELECT + + 60 / 18 + 16
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4720
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4720
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) AS col1
----
1

query I rowsort
SELECT ALL - ( 71 )
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4722
SELECT DISTINCT + + 73 * - CAST( NULL AS SIGNED ) - + SUM( ALL + 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4722
SELECT DISTINCT + + 73 * - CAST ( NULL AS INTEGER ) - + SUM ( ALL + 84 )
----
NULL

query I rowsort
SELECT + + 11 - + - 72 * + 42
----
3035

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT ALL - COUNT( * ) * - 58 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-4724
SELECT ALL - COUNT ( * ) * - 58 AS col0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4725
SELECT + - 0 DIV - NULLIF ( 10, 90 + + 55 ) * 64 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4725
SELECT + - 0 / - NULLIF ( 10, 90 + + 55 ) * 64 AS col2
----
0

query I rowsort
SELECT + 93 * - 39 * 10
----
-36270

query I rowsort
SELECT - ( 14 ) AS col2
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4728
SELECT + CASE - - 30 WHEN + 72 DIV COUNT( * ) + COALESCE ( 95, + 28 + - 65 * 70 ) THEN NULL ELSE 46 END DIV + 44
----
1

skipif mysql # not compatible
query I rowsort label-4728
SELECT + CASE - - 30 WHEN + 72 / COUNT ( * ) + COALESCE ( 95, + 28 + - 65 * 70 ) THEN NULL ELSE 46 END / + 44
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4729
SELECT - CAST( NULL AS SIGNED ) * + 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4729
SELECT - CAST ( NULL AS INTEGER ) * + 87 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 63 + + 83 * - 69 AS col0
----
-5664

query I rowsort
SELECT + 72 * - 39 * - 38 AS col1
----
106704

onlyif mysql # aggregate syntax: 
query I rowsort label-4732
SELECT ALL NULLIF ( SUM( DISTINCT 17 ), 59 ) col2
----
17

skipif mysql # not compatible
query I rowsort label-4732
SELECT ALL NULLIF ( SUM ( DISTINCT 17 ), 59 ) col2
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4733
SELECT ALL 54 + + 26 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4733
SELECT ALL 54 + + 26 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 13 + + 43
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4735
SELECT ALL + 73 + - 30 - - + CAST( CASE 7 WHEN 67 THEN - 96 WHEN + 56 * 20 THEN NULL ELSE NULL END AS SIGNED ) + - 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4735
SELECT ALL + 73 + - 30 - - + CAST ( CASE 7 WHEN 67 THEN - 96 WHEN + 56 * 20 THEN NULL ELSE NULL END AS INTEGER ) + - 72 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT ALL NULLIF ( - + COUNT( ALL - 2 ), COUNT( ALL + 21 ) / + 63 )
----
-1

skipif mysql # not compatible
query I rowsort label-4736
SELECT ALL NULLIF ( - + COUNT ( ALL - 2 ), COUNT ( ALL + 21 ) / + 63 )
----
-1

query I rowsort
SELECT + 12 + + 97
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4738
SELECT + CAST( ( + 21 ) AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-4738
SELECT + CAST ( ( + 21 ) AS INTEGER )
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4739
SELECT ALL 18 DIV CAST( + 28 AS SIGNED ) + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4739
SELECT ALL 18 / CAST ( + 28 AS INTEGER ) + - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4740
SELECT ( + COUNT( * ) ) DIV + - CAST( 11 AS SIGNED ) + + 74 + + 81
----
155

skipif mysql # not compatible
query I rowsort label-4740
SELECT ( + COUNT ( * ) ) / + - CAST ( 11 AS INTEGER ) + + 74 + + 81
----
155

query I rowsort
SELECT - 76 * + 76
----
-5776

query I rowsort
SELECT 47 * 77 + + 48 - - 12
----
3679

query I rowsort
SELECT ALL + ( - 87 ) AS col0
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4744
SELECT - - 48 * + COUNT( * ) * - - ( + CASE - 34 WHEN 30 / 32 THEN CAST( + 43 AS SIGNED ) ELSE + 37 * 14 + 62 END ) + - NULLIF ( + 93, + 76 + 53 * + 73 )
----
27747

skipif mysql # not compatible
query I rowsort label-4744
SELECT - - 48 * + COUNT ( * ) * - - ( + CASE - 34 WHEN 30 / 32 THEN CAST ( + 43 AS INTEGER ) ELSE + 37 * 14 + 62 END ) + - NULLIF ( + 93, + 76 + 53 * + 73 )
----
27747

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4745
SELECT ALL - 91 / 83 - CAST( + CASE + 19 WHEN - NULLIF ( - 84, + 75 ) THEN - ( + MIN( DISTINCT + 95 ) ) + CAST( NULL AS DECIMAL ) WHEN - 50 * CASE + CAST( 78 AS DECIMAL ) / 15 WHEN + 78 THEN NULL ELSE + 71 * 15 END + 69 * + 86 THEN - 78 ELSE NULL END AS SIGNED ) - + 14 / 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4745
SELECT ALL - 91 / 83 - CAST ( + CASE + 19 WHEN - NULLIF ( - 84, + 75 ) THEN - ( + MIN ( DISTINCT + 95 ) ) + CAST ( NULL AS REAL ) WHEN - 50 * CASE + CAST ( 78 AS REAL ) / 15 WHEN + 78 THEN NULL ELSE + 71 * 15 END + 69 * + 86 THEN - 78 ELSE NULL END AS INTEGER ) - + 14 / 6 AS col2
----
NULL

query I rowsort
SELECT - 78 * + ( 58 )
----
-4524

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4747
SELECT - 47 * + CAST( - 41 AS SIGNED ) + 7
----
1934

skipif mysql # not compatible
query I rowsort label-4747
SELECT - 47 * + CAST ( - 41 AS INTEGER ) + 7
----
1934

query I rowsort
SELECT - 91 * - 54
----
4914

onlyif mysql # DIV for integer division: 
query I rowsort label-4749
SELECT ALL - 61 DIV + 82
----
0

skipif mysql # not compatible
query I rowsort label-4749
SELECT ALL - 61 / + 82
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT 56 * - COUNT( * ) + - - 42
----
-14

skipif mysql # not compatible
query I rowsort label-4750
SELECT 56 * - COUNT ( * ) + - - 42
----
-14

query I rowsort
SELECT - + 39 * - CASE - ( 79 ) WHEN - 25 THEN NULL WHEN - ( - ( 57 ) ) THEN - 85 + 97 * 2 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT ALL + COALESCE ( - + ( + 53 ), + CASE COUNT( * ) WHEN 9 THEN 90 WHEN 51 THEN NULL END, 73 + 24 * COUNT( * ) ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-4752
SELECT ALL + COALESCE ( - + ( + 53 ), + CASE COUNT ( * ) WHEN 9 THEN 90 WHEN 51 THEN NULL END, 73 + 24 * COUNT ( * ) ) AS col1
----
-53

query I rowsort
SELECT - - 64 * - - ( - 77 )
----
-4928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4754
SELECT ALL + + 97 col2, - 36 + + + CASE - CAST( - 77 AS SIGNED ) WHEN COALESCE ( 90, 45 ) + - 41 * CASE COUNT( * ) * COUNT( * ) WHEN - 29 + 22 THEN - ( - 79 ) END THEN - 18 END
----
97
NULL

skipif mysql # not compatible
query II rowsort label-4754
SELECT ALL + + 97 col2, - 36 + + + CASE - CAST ( - 77 AS INTEGER ) WHEN COALESCE ( 90, 45 ) + - 41 * CASE COUNT ( * ) * COUNT ( * ) WHEN - 29 + 22 THEN - ( - 79 ) END THEN - 18 END
----
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT + - MIN( ALL + - 57 )
----
57

skipif mysql # not compatible
query I rowsort label-4755
SELECT + - MIN ( ALL + - 57 )
----
57

query I rowsort
SELECT ALL + - ( + 82 )
----
-82

query I rowsort
SELECT DISTINCT + - ( ( - + 31 ) )
----
31

query I rowsort
SELECT ALL + 9 * + 17 + 54
----
207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4759
SELECT + 63 * + 91 * - CASE + 74 WHEN 13 - - 89 THEN - CAST( + SUM( DISTINCT + 34 ) AS SIGNED ) WHEN 84 * 63 + - CASE - MAX( - 2 ) WHEN 79 THEN - 91 WHEN 23 + 14 THEN + 87 ELSE MAX( - 16 ) * + 97 END THEN NULL WHEN COUNT( * ) THEN 54 + - 79 WHEN - 99 THEN 35 * 95 + - 56 ELSE - SUM( 18 ) END
----
103194

skipif mysql # not compatible
query I rowsort label-4759
SELECT + 63 * + 91 * - CASE + 74 WHEN 13 - - 89 THEN - CAST ( + SUM ( DISTINCT + 34 ) AS INTEGER ) WHEN 84 * 63 + - CASE - MAX ( - 2 ) WHEN 79 THEN - 91 WHEN 23 + 14 THEN + 87 ELSE MAX ( - 16 ) * + 97 END THEN NULL WHEN COUNT ( * ) THEN 54 + - 79 WHEN - 99 THEN 35 * 95 + - 56 ELSE - SUM ( 18 ) END
----
103194

query I rowsort
SELECT + NULLIF ( - 34, + 54 + 54 / - 2 ) * 36 + + 86 AS col2
----
-1138

query I rowsort
SELECT ALL 60 + + + 1 AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT 95 + + COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-4762
SELECT 95 + + COUNT ( * )
----
96

query I rowsort
SELECT - 48 * 0 * + 14 + + 34 AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT ALL - MIN( ALL - 13 ) + - 12 - 65 + + 78
----
14

skipif mysql # not compatible
query I rowsort label-4764
SELECT ALL - MIN ( ALL - 13 ) + - 12 - 65 + + 78
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT DISTINCT COUNT( * ) * - - 30
----
30

skipif mysql # not compatible
query I rowsort label-4765
SELECT DISTINCT COUNT ( * ) * - - 30
----
30

query I rowsort
SELECT ALL 60 + - 95
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT 79 * - COALESCE ( + + 51, - COUNT( * ) )
----
-4029

skipif mysql # not compatible
query I rowsort label-4767
SELECT 79 * - COALESCE ( + + 51, - COUNT ( * ) )
----
-4029

onlyif mysql # DIV for integer division: 
query II rowsort label-4768
SELECT ALL 30 DIV + 67 AS col1, 54
----
0
54

skipif mysql # not compatible
query II rowsort label-4768
SELECT ALL 30 / + 67 AS col1, 54
----
0
54

onlyif mysql # DIV for integer division: 
query I rowsort label-4769
SELECT 85 + 48 + 18 DIV + 39 + 8 AS col1
----
141

skipif mysql # not compatible
query I rowsort label-4769
SELECT 85 + 48 + 18 / + 39 + 8 AS col1
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT DISTINCT 65 * + + CASE + + COUNT( * ) WHEN - 50 THEN NULL WHEN COALESCE ( ( + 74 ), - 19 + 32 ) THEN NULL ELSE - 59 * 62 END col0
----
-237770

skipif mysql # not compatible
query I rowsort label-4770
SELECT DISTINCT 65 * + + CASE + + COUNT ( * ) WHEN - 50 THEN NULL WHEN COALESCE ( ( + 74 ), - 19 + 32 ) THEN NULL ELSE - 59 * 62 END col0
----
-237770

query I rowsort
SELECT 69 * - + 42 AS col2
----
-2898

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4772
SELECT 4 + - 28 DIV + 72 * + - COUNT( * ) col0
----
4

skipif mysql # not compatible
query I rowsort label-4772
SELECT 4 + - 28 / + 72 * + - COUNT ( * ) col0
----
4

query I rowsort
SELECT 11 + - 1 AS col2
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4774
SELECT ALL SUM( DISTINCT + 2 ) - + - COUNT( * ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4774
SELECT ALL SUM ( DISTINCT + 2 ) - + - COUNT ( * ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 6 * - - 68 * + COALESCE ( ( 0 ), - 92 * + COALESCE ( 88 * - 96, 0, 73 ) ) AS col0
----
0

query I rowsort
SELECT DISTINCT 23 - - + COALESCE ( - 50, - 37 ) - - 97 * + 36 * - 95 AS col1
----
-331767

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4777
SELECT CAST( NULL AS SIGNED ) * 58
----
NULL

skipif mysql # not compatible
query I rowsort label-4777
SELECT CAST ( NULL AS INTEGER ) * 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT DISTINCT - COUNT( ALL + 46 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4778
SELECT DISTINCT - COUNT ( ALL + 46 ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4779
SELECT - + MIN( 26 ) * 85 DIV - 77 - 86 col1
----
-58

skipif mysql # not compatible
query I rowsort label-4779
SELECT - + MIN ( 26 ) * 85 / - 77 - 86 col1
----
-58

query I rowsort
SELECT + 45 * - 71 * - - 55
----
-175725

query I rowsort
SELECT ALL - - ( ( 15 ) )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT SUM( - 94 ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-4782
SELECT SUM ( - 94 ) AS col1
----
-94

query II rowsort
SELECT + - ( + 62 ), - 59 col1
----
-62
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4784
SELECT - 12 * - COALESCE ( ( + ( - ( ( + 34 ) ) ) ), ( - 43 ), + 68 * COUNT( * ) ) AS col0
----
-408

skipif mysql # not compatible
query I rowsort label-4784
SELECT - 12 * - COALESCE ( ( + ( - ( ( + 34 ) ) ) ), ( - 43 ), + 68 * COUNT ( * ) ) AS col0
----
-408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4785
SELECT DISTINCT COUNT( 87 ) * - CAST( NULL AS SIGNED ) * - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-4785
SELECT DISTINCT COUNT ( 87 ) * - CAST ( NULL AS INTEGER ) * - 0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4786
SELECT ALL - + ( - - ( - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4786
SELECT ALL - + ( - - ( - CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT DISTINCT + COUNT( * ) + - - 56 + + 8 * - COUNT( * ) * 59
----
-415

skipif mysql # not compatible
query I rowsort label-4787
SELECT DISTINCT + COUNT ( * ) + - - 56 + + 8 * - COUNT ( * ) * 59
----
-415

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT DISTINCT + + 2 + - + 9 + - COUNT( * ) + SUM( DISTINCT 52 ) * - 20
----
-1048

skipif mysql # not compatible
query I rowsort label-4788
SELECT DISTINCT + + 2 + - + 9 + - COUNT ( * ) + SUM ( DISTINCT 52 ) * - 20
----
-1048

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT - ( - 31 ) * - + 91 - - + 32 + COALESCE ( 84, 47, + 16 * - ( COUNT( * ) ) ) AS col2
----
-2705

skipif mysql # not compatible
query I rowsort label-4789
SELECT - ( - 31 ) * - + 91 - - + 32 + COALESCE ( 84, 47, + 16 * - ( COUNT ( * ) ) ) AS col2
----
-2705

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT + MIN( DISTINCT + 33 ) * + 75 * - ( + 23 ) + - 75 AS col0
----
-57000

skipif mysql # not compatible
query I rowsort label-4790
SELECT + MIN ( DISTINCT + 33 ) * + 75 * - ( + 23 ) + - 75 AS col0
----
-57000

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4791
SELECT DISTINCT + - 51 + + 99 AS col1, CAST( NULL AS DECIMAL ) AS col0
----
48
NULL

skipif mysql # not compatible
query II rowsort label-4791
SELECT DISTINCT + - 51 + + 99 AS col1, CAST ( NULL AS REAL ) AS col0
----
48
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4792
SELECT ALL + NULLIF ( + 11, - + CAST( 76 AS DECIMAL ) * + 84 + 75 * - 27 ) + COUNT( * ) * + 46 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-4792
SELECT ALL + NULLIF ( + 11, - + CAST ( 76 AS REAL ) * + 84 + 75 * - 27 ) + COUNT ( * ) * + 46 AS col2
----
57

query I rowsort
SELECT + 19 - - 57 + + + 32 AS col0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT + - COUNT( - + 78 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4794
SELECT + - COUNT ( - + 78 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4795
SELECT DISTINCT + - CAST( - + 69 AS SIGNED ) + + - MAX( + + 99 )
----
-30

skipif mysql # not compatible
query I rowsort label-4795
SELECT DISTINCT + - CAST ( - + 69 AS INTEGER ) + + - MAX ( + + 99 )
----
-30

query I rowsort
SELECT ALL - COALESCE ( - + 38, - - 42 * - 89 * 11 - 0 ) * + 51 AS col2
----
1938

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT ALL SUM( 37 ) * - + 1 * + - COUNT( * ) col1
----
37

skipif mysql # not compatible
query I rowsort label-4797
SELECT ALL SUM ( 37 ) * - + 1 * + - COUNT ( * ) col1
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4798
SELECT ALL 19 + 99 + + CAST( - - 20 AS SIGNED ) col1
----
138

skipif mysql # not compatible
query I rowsort label-4798
SELECT ALL 19 + 99 + + CAST ( - - 20 AS INTEGER ) col1
----
138

query I rowsort
SELECT 66 - - 76
----
142

query I rowsort
SELECT DISTINCT 59 - + + 44 AS col0
----
15

query I rowsort
SELECT 78 * - 50
----
-3900

query I rowsort
SELECT ALL - 74 * + 77
----
-5698

query II rowsort
SELECT 54 col1, 63
----
54
63

query I rowsort
SELECT DISTINCT - 56 - - + 50
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT DISTINCT MAX( ALL + 43 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-4805
SELECT DISTINCT MAX ( ALL + 43 ) AS col2
----
43

query I rowsort
SELECT ALL 47 * - 69 AS col1
----
-3243

onlyif mysql # DIV for integer division: 
query II rowsort label-4807
SELECT DISTINCT 76 DIV 28 * 8, 54 + 41 + ( - 62 ) AS col0
----
16
33

skipif mysql # not compatible
query II rowsort label-4807
SELECT DISTINCT 76 / 28 * 8, 54 + 41 + ( - 62 ) AS col0
----
16
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4808
SELECT 94 + COUNT( * ) DIV + CAST( + 72 AS SIGNED ) + COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-4808
SELECT 94 + COUNT ( * ) / + CAST ( + 72 AS INTEGER ) + COUNT ( * )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT 29 * COUNT( * ) * - ( - 2 ) * - SUM( + 89 ) + 8
----
-5154

skipif mysql # not compatible
query I rowsort label-4809
SELECT 29 * COUNT ( * ) * - ( - 2 ) * - SUM ( + 89 ) + 8
----
-5154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4810
SELECT COALESCE ( ( - 72 ), - 65 * - - 77 DIV - 84 ) * + COALESCE ( + 74, NULLIF ( MAX( ALL + 53 ), 39 - 46 DIV COUNT( * ) ) ) col2
----
-5328

skipif mysql # not compatible
query I rowsort label-4810
SELECT COALESCE ( ( - 72 ), - 65 * - - 77 / - 84 ) * + COALESCE ( + 74, NULLIF ( MAX ( ALL + 53 ), 39 - 46 / COUNT ( * ) ) ) col2
----
-5328

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT - 21 * + 20 + - COUNT( * ) + - + 65 AS col2
----
-486

skipif mysql # not compatible
query I rowsort label-4811
SELECT - 21 * + 20 + - COUNT ( * ) + - + 65 AS col2
----
-486

query I rowsort
SELECT + 43 - + 89 AS col2
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-4813
SELECT 83 DIV - - 35 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4813
SELECT 83 / - - 35 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT ALL + + 59 * - CASE COUNT( * ) WHEN 70 * 66 * 85 + CASE 38 WHEN COUNT( * ) * 53 THEN - 75 + + 39 WHEN - 57 * + 90 THEN NULL ELSE NULL END THEN 64 ELSE NULL END * + 23 + + 55 * - 75 + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4814
SELECT ALL + + 59 * - CASE COUNT ( * ) WHEN 70 * 66 * 85 + CASE 38 WHEN COUNT ( * ) * 53 THEN - 75 + + 39 WHEN - 57 * + 90 THEN NULL ELSE NULL END THEN 64 ELSE NULL END * + 23 + + 55 * - 75 + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT ALL CASE - 99 WHEN + 0 * + - 31 - + 35 THEN SUM( DISTINCT - 54 ) END * + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-4815
SELECT ALL CASE - 99 WHEN + 0 * + - 31 - + 35 THEN SUM ( DISTINCT - 54 ) END * + 18
----
NULL

query II rowsort
SELECT ALL + + 93 AS col0, + ( - 16 ) * - 72
----
93
1152

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT ALL - - 61 * + 76 + COUNT( * ) col2
----
4637

skipif mysql # not compatible
query I rowsort label-4817
SELECT ALL - - 61 * + 76 + COUNT ( * ) col2
----
4637

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT + MIN( - 21 ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-4818
SELECT + MIN ( - 21 ) AS col0
----
-21

query I rowsort
SELECT + ( 70 )
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4820
SELECT - + 48 + NULLIF ( - + 84, + COUNT( * ) ) - 18 - 87 DIV - 63
----
-149

skipif mysql # not compatible
query I rowsort label-4820
SELECT - + 48 + NULLIF ( - + 84, + COUNT ( * ) ) - 18 - 87 / - 63
----
-149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4821
SELECT - 53 * - + COUNT( 19 ) DIV 58 - - + COALESCE ( + 2, COUNT( * ) ) + + 36 + - 98 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-4821
SELECT - 53 * - + COUNT ( 19 ) / 58 - - + COALESCE ( + 2, COUNT ( * ) ) + + 36 + - 98 AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT ALL - COUNT( * ) * + 40 * + - 52 * ( + + 5 ) * 19 + COUNT( DISTINCT ( 62 ) ) AS col1
----
197601

skipif mysql # not compatible
query I rowsort label-4822
SELECT ALL - COUNT ( * ) * + 40 * + - 52 * ( + + 5 ) * 19 + COUNT ( DISTINCT ( 62 ) ) AS col1
----
197601

query I rowsort
SELECT ALL + + 10 * - 37 * - 93 + - 14 * + 58
----
33598

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT DISTINCT - + CASE + 85 WHEN - - 77 THEN NULL WHEN + COUNT( * ) THEN + 30 * ( ( - 34 ) + 80 ) END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4824
SELECT DISTINCT - + CASE + 85 WHEN - - 77 THEN NULL WHEN + COUNT ( * ) THEN + 30 * ( ( - 34 ) + 80 ) END * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT - 39 * + - COUNT( * ) - COUNT( * ) * 87
----
-48

skipif mysql # not compatible
query I rowsort label-4825
SELECT - 39 * + - COUNT ( * ) - COUNT ( * ) * 87
----
-48

query I rowsort
SELECT ALL 9 * - 22 AS col2
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT ALL + - 74 - - MAX( DISTINCT + 55 )
----
-19

skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL + - 74 - - MAX ( DISTINCT + 55 )
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-4828
SELECT - 72 col1, - COUNT( * ) AS col1
----
-72
-1

skipif mysql # not compatible
query II rowsort label-4828
SELECT - 72 col1, - COUNT ( * ) AS col1
----
-72
-1

query I rowsort
SELECT DISTINCT - 59 * + 56
----
-3304

onlyif mysql # aggregate syntax: 
query II rowsort label-4830
SELECT DISTINCT + 5 - 55 AS col2, + 61 * + 29 * - COUNT( * )
----
-50
-1769

skipif mysql # not compatible
query II rowsort label-4830
SELECT DISTINCT + 5 - 55 AS col2, + 61 * + 29 * - COUNT ( * )
----
-50
-1769

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT + 13 * COUNT( ALL + 22 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-4831
SELECT + 13 * COUNT ( ALL + 22 ) AS col0
----
13

query II rowsort
SELECT - 44 AS col2, + 65 * 54 * - 39 AS col0
----
-44
-136890

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT ALL + 87 - 79 * - COUNT( * )
----
166

skipif mysql # not compatible
query I rowsort label-4833
SELECT ALL + 87 - 79 * - COUNT ( * )
----
166

query II rowsort
SELECT 2 col1, + 70 * + + 7
----
2
490

query I rowsort
SELECT - 7 + - 60 AS col1
----
-67

query I rowsort
SELECT - 71 * + + CASE + + 56 WHEN + 1 THEN + - 58 * 91 * 30 + 44 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4837
SELECT ALL + COUNT( * ) DIV - 91 * + 48
----
0

skipif mysql # not compatible
query I rowsort label-4837
SELECT ALL + COUNT ( * ) / - 91 * + 48
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT ALL MAX( ALL - 66 ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-4838
SELECT ALL MAX ( ALL - 66 ) AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT DISTINCT + 97 * - + COUNT( * ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-4839
SELECT DISTINCT + 97 * - + COUNT ( * ) AS col2
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4840
SELECT DISTINCT COUNT( * ), CAST( NULL AS SIGNED ) AS col0, - CASE - + COUNT( * ) WHEN + ( + 88 ) THEN - 29 * CASE 58 WHEN ( + 43 ) THEN + COUNT( * ) END WHEN 35 THEN - 58 ELSE NULL END AS col0
----
1
NULL
NULL

skipif mysql # not compatible
query III rowsort label-4840
SELECT DISTINCT COUNT ( * ), CAST ( NULL AS INTEGER ) AS col0, - CASE - + COUNT ( * ) WHEN + ( + 88 ) THEN - 29 * CASE 58 WHEN ( + 43 ) THEN + COUNT ( * ) END WHEN 35 THEN - 58 ELSE NULL END AS col0
----
1
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4841
SELECT ALL CASE + NULLIF ( 66, + CAST( + - CAST( + - COUNT( * ) AS SIGNED ) AS DECIMAL ) ) WHEN - 32 * - 50 THEN - 91 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL CASE + NULLIF ( 66, + CAST ( + - CAST ( + - COUNT ( * ) AS INTEGER ) AS REAL ) ) WHEN - 32 * - 50 THEN - 91 END AS col2
----
NULL

query I rowsort
SELECT - 53 + 84 + - 22
----
9

query I rowsort
SELECT - 12 * - + 93 AS col2
----
1116

query I rowsort
SELECT ALL - 52 * - 23 AS col2
----
1196

onlyif mysql # DIV for integer division: 
query II rowsort label-4845
SELECT - 20 AS col1, 90 * 42 + CASE + 63 WHEN - + 20 + 53 THEN NULL ELSE 29 DIV 80 END * + 1 col1
----
-20
3780

skipif mysql # not compatible
query II rowsort label-4845
SELECT - 20 AS col1, 90 * 42 + CASE + 63 WHEN - + 20 + 53 THEN NULL ELSE 29 / 80 END * + 1 col1
----
-20
3780

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT - 29 + - + 3 + - 84 * MIN( DISTINCT 31 ) * 0 * 51 + + 24 * - 24
----
-608

skipif mysql # not compatible
query I rowsort label-4846
SELECT - 29 + - + 3 + - 84 * MIN ( DISTINCT 31 ) * 0 * 51 + + 24 * - 24
----
-608

query I rowsort
SELECT ALL - 43 * + - 14 * 65
----
39130

query I rowsort
SELECT + 5 + - 24
----
-19

query I rowsort
SELECT DISTINCT - COALESCE ( - + ( + 80 ), + 93 * + 73, 22 * + 28 ) * + 65
----
5200

query I rowsort
SELECT - 76 * + 59
----
-4484

query I rowsort
SELECT + 81 * + + 54 AS col2
----
4374

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4852
SELECT ALL CAST( - MAX( 74 ) AS SIGNED ) + - ( COUNT( * ) ) + - 39 col0
----
-114

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL CAST ( - MAX ( 74 ) AS INTEGER ) + - ( COUNT ( * ) ) + - 39 col0
----
-114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4853
SELECT ALL + 63 + - 6 DIV + 23 + MAX( ALL - NULLIF ( - - 38, 39 + + 94 ) ) + COUNT( * ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-4853
SELECT ALL + 63 + - 6 / + 23 + MAX ( ALL - NULLIF ( - - 38, 39 + + 94 ) ) + COUNT ( * ) AS col1
----
26

query I rowsort
SELECT DISTINCT - + 22 * - - 94 * - 85
----
175780

query I rowsort
SELECT - ( + 21 ) * + + ( + ( + - ( - 57 ) ) ) + 94 AS col2
----
-1103

query II rowsort
SELECT - - 98 col2, + 2
----
98
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4857
SELECT ALL - - 83 DIV 15 * + - 33 * - - 85 * + 84 + - + NULLIF ( - 47, 83 + - 16 ) * + 1 + 69
----
-1177984

skipif mysql # not compatible
query I rowsort label-4857
SELECT ALL - - 83 / 15 * + - 33 * - - 85 * + 84 + - + NULLIF ( - 47, 83 + - 16 ) * + 1 + 69
----
-1177984

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4858
SELECT + CASE - 17 WHEN - 25 + + 98 * - 41 * - CAST( NULL AS SIGNED ) / 46 THEN - 26 + 10 / 2 ELSE NULLIF ( - 44, COALESCE ( 10, 92 * 50 ) ) * 21 END AS col0
----
-924

skipif mysql # not compatible
query I rowsort label-4858
SELECT + CASE - 17 WHEN - 25 + + 98 * - 41 * - CAST ( NULL AS INTEGER ) / 46 THEN - 26 + 10 / 2 ELSE NULLIF ( - 44, COALESCE ( 10, 92 * 50 ) ) * 21 END AS col0
----
-924

query II rowsort
SELECT 98, - 52 AS col1
----
98
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT + + NULLIF ( - 45, + - COUNT( * ) ) col1
----
-45

skipif mysql # not compatible
query I rowsort label-4860
SELECT + + NULLIF ( - 45, + - COUNT ( * ) ) col1
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-4861
SELECT ALL + 91 DIV + 33 + - + 30 + - 79 - - NULLIF ( + 73, 19 )
----
-34

skipif mysql # not compatible
query I rowsort label-4861
SELECT ALL + 91 / + 33 + - + 30 + - 79 - - NULLIF ( + 73, 19 )
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4862
SELECT - COUNT( * ) DIV 90 * 89 - - - 61 + - + 43 col2
----
-104

skipif mysql # not compatible
query I rowsort label-4862
SELECT - COUNT ( * ) / 90 * 89 - - - 61 + - + 43 col2
----
-104

onlyif mysql # aggregate syntax: 
query II rowsort label-4863
SELECT ALL + 11, ( + COUNT( * ) ) AS col2
----
11
1

skipif mysql # not compatible
query II rowsort label-4863
SELECT ALL + 11, ( + COUNT ( * ) ) AS col2
----
11
1

query I rowsort
SELECT + 57 * - - 42
----
2394

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT ALL ( - + COUNT( ALL - 35 ) ) * - ( + COUNT( ALL + 53 ) ) * 84 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-4865
SELECT ALL ( - + COUNT ( ALL - 35 ) ) * - ( + COUNT ( ALL + 53 ) ) * 84 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT ALL + + 33 * + 5 + - NULLIF ( + COALESCE ( + 20, + 15 * 27 + + 84, - COUNT( * ) * 29 ), 35 ) + + 18 AS col1
----
163

skipif mysql # not compatible
query I rowsort label-4866
SELECT ALL + + 33 * + 5 + - NULLIF ( + COALESCE ( + 20, + 15 * 27 + + 84, - COUNT ( * ) * 29 ), 35 ) + + 18 AS col1
----
163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4867
SELECT ALL 22 * - 95 - - CAST( - 88 AS SIGNED ) - - COUNT( 78 )
----
-2177

skipif mysql # not compatible
query I rowsort label-4867
SELECT ALL 22 * - 95 - - CAST ( - 88 AS INTEGER ) - - COUNT ( 78 )
----
-2177

query I rowsort
SELECT + + 0 * 35 col0
----
0

query I rowsort
SELECT ALL + ( + ( - 81 ) ) AS col1
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4870
SELECT 26 * + 42 - + + 79 * - COUNT( * ) * - MIN( ALL - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4870
SELECT 26 * + 42 - + + 79 * - COUNT ( * ) * - MIN ( ALL - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT - MAX( ALL - 85 )
----
85

skipif mysql # not compatible
query I rowsort label-4871
SELECT - MAX ( ALL - 85 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT + 1 * + 20 * + SUM( 24 ) + + 6
----
486

skipif mysql # not compatible
query I rowsort label-4872
SELECT + 1 * + 20 * + SUM ( 24 ) + + 6
----
486

onlyif mysql # DIV for integer division: 
query I rowsort label-4873
SELECT - 95 * - - COALESCE ( - - 87, + + 92 ) * + 7 + 28 + + - COALESCE ( - 44, 22, 87 ) + 48 DIV - 84
----
-57783

skipif mysql # not compatible
query I rowsort label-4873
SELECT - 95 * - - COALESCE ( - - 87, + + 92 ) * + 7 + 28 + + - COALESCE ( - 44, 22, 87 ) + 48 / - 84
----
-57783

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4874
SELECT + CAST( - 1 AS SIGNED ) + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4874
SELECT + CAST ( - 1 AS INTEGER ) + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT ALL + COALESCE ( - COUNT( * ), - CASE - 2 WHEN - 47 * + COUNT( * ) * - 4 * - 48 THEN NULL WHEN 26 / + AVG ( + 66 ) THEN NULL ELSE 58 + 53 END )
----
-1

skipif mysql # not compatible
query I rowsort label-4875
SELECT ALL + COALESCE ( - COUNT ( * ), - CASE - 2 WHEN - 47 * + COUNT ( * ) * - 4 * - 48 THEN NULL WHEN 26 / + AVG ( + 66 ) THEN NULL ELSE 58 + 53 END )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT ALL + COALESCE ( 67, 97 + + 22 ) * COUNT( * ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-4876
SELECT ALL + COALESCE ( 67, 97 + + 22 ) * COUNT ( * ) AS col2
----
67

query I rowsort
SELECT DISTINCT 83 * - 57
----
-4731

query I rowsort
SELECT DISTINCT 0 * + 60
----
0

query I rowsort
SELECT DISTINCT ( - 23 ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT + COALESCE ( + 28, - MAX( DISTINCT + 3 ) - 43 ) * - COUNT( * ) + 45 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-4880
SELECT + COALESCE ( + 28, - MAX ( DISTINCT + 3 ) - 43 ) * - COUNT ( * ) + 45 AS col1
----
17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4881
SELECT DISTINCT ( + NULLIF ( + 68, + 2 * + CAST( - + 75 AS DECIMAL ) ) ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-4881
SELECT DISTINCT ( + NULLIF ( + 68, + 2 * + CAST ( - + 75 AS REAL ) ) ) AS col2
----
68

query I rowsort
SELECT ALL CASE 87 WHEN + - 12 THEN - 77 WHEN - + 77 * + 90 THEN + - 32 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4883
SELECT ALL + - 49 + + + 0 + + - CAST( NULL AS SIGNED ) / + COUNT( * ) * COUNT( * ) - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-4883
SELECT ALL + - 49 + + + 0 + + - CAST ( NULL AS INTEGER ) / + COUNT ( * ) * COUNT ( * ) - 87
----
NULL

query I rowsort
SELECT ALL - 42 + 7 AS col0
----
-35

query I rowsort
SELECT DISTINCT + 84 + 34
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4886
SELECT ( + COUNT( * ) ) + + 55 + + - CAST( - COUNT( * ) AS SIGNED )
----
57

skipif mysql # not compatible
query I rowsort label-4886
SELECT ( + COUNT ( * ) ) + + 55 + + - CAST ( - COUNT ( * ) AS INTEGER )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT DISTINCT - 93 * - COUNT( * ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-4887
SELECT DISTINCT - 93 * - COUNT ( * ) AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT DISTINCT + + ( - COUNT( * ) ) * - - 99
----
-99

skipif mysql # not compatible
query I rowsort label-4888
SELECT DISTINCT + + ( - COUNT ( * ) ) * - - 99
----
-99

query I rowsort
SELECT - ( - 39 ) * + + NULLIF ( 87, - 8 ) + 85 AS col2
----
3478

onlyif mysql # DIV for integer division: 
query I rowsort label-4890
SELECT + + 65 DIV - ( 54 ) + - 36
----
-37

skipif mysql # not compatible
query I rowsort label-4890
SELECT + + 65 / - ( 54 ) + - 36
----
-37

query I rowsort
SELECT ALL + - 78 - + - 27 + + + 83 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT ( ( + + 70 ) ) * - COUNT( * ) col0
----
-70

skipif mysql # not compatible
query I rowsort label-4892
SELECT ( ( + + 70 ) ) * - COUNT ( * ) col0
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-4893
SELECT + COALESCE ( + 35, - + 33, ( 76 ) DIV + 89 + + + NULLIF ( + 53, 97 ) + + 19 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-4893
SELECT + COALESCE ( + 35, - + 33, ( 76 ) / + 89 + + + NULLIF ( + 53, 97 ) + + 19 ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT ALL - COALESCE ( - COUNT( * ), + - 55, + 26 * - 9 )
----
1

skipif mysql # not compatible
query I rowsort label-4894
SELECT ALL - COALESCE ( - COUNT ( * ), + - 55, + 26 * - 9 )
----
1

query I rowsort
SELECT DISTINCT - - 40 - - ( + + 86 ) * - 46
----
-3916

query I rowsort
SELECT 95 * - + 38 * + 26 + + 15
----
-93845

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4897
SELECT + NULLIF ( CAST( - 73 AS SIGNED ), - 93 )
----
-73

skipif mysql # not compatible
query I rowsort label-4897
SELECT + NULLIF ( CAST ( - 73 AS INTEGER ), - 93 )
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4898
SELECT 80 * + 14 + CAST( + COUNT( * ) AS SIGNED ) AS col2
----
1121

skipif mysql # not compatible
query I rowsort label-4898
SELECT 80 * + 14 + CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
1121

query I rowsort
SELECT ALL - 74 - 65 AS col0
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT - 48 + - - ( + SUM( + 88 ) )
----
40

skipif mysql # not compatible
query I rowsort label-4900
SELECT - 48 + - - ( + SUM ( + 88 ) )
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-4901
SELECT - 87 DIV + - 52
----
1

skipif mysql # not compatible
query I rowsort label-4901
SELECT - 87 / + - 52
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4902
SELECT + 42 AS col2, + 71 + 73 - - + COUNT( * ) AS col2
----
42
145

skipif mysql # not compatible
query II rowsort label-4902
SELECT + 42 AS col2, + 71 + 73 - - + COUNT ( * ) AS col2
----
42
145

query I rowsort
SELECT ALL + 24 * - - 70
----
1680

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4904
SELECT DISTINCT - NULLIF ( - 60, 84 ) col2, 59 * - CAST( NULL AS DECIMAL )
----
60
NULL

skipif mysql # not compatible
query II rowsort label-4904
SELECT DISTINCT - NULLIF ( - 60, 84 ) col2, 59 * - CAST ( NULL AS REAL )
----
60
NULL

query I rowsort
SELECT ALL + 15 * + 33 AS col2
----
495

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT COUNT( * ) * CASE ( + COUNT( * ) ) WHEN + + 87 THEN - 45 END * - AVG ( + 50 ) + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4906
SELECT COUNT ( * ) * CASE ( + COUNT ( * ) ) WHEN + + 87 THEN - 45 END * - AVG ( + 50 ) + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT ALL 42 * + + COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-4907
SELECT ALL 42 * + + COUNT ( * )
----
42

query II rowsort
SELECT DISTINCT - 42, 75 col0
----
-42
75

query II rowsort
SELECT + 8 AS col0, 80 AS col1
----
8
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT DISTINCT 35 + + MIN( 77 )
----
112

skipif mysql # not compatible
query I rowsort label-4910
SELECT DISTINCT 35 + + MIN ( 77 )
----
112

query II rowsort
SELECT DISTINCT 67 AS col2, - 45
----
67
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT ALL 88 + + COUNT( + 72 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-4912
SELECT ALL 88 + + COUNT ( + 72 ) AS col0
----
89

query I rowsort
SELECT 10 + + 94 AS col2
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT ( - COUNT( * ) ) + - 30 + + 24 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-4914
SELECT ( - COUNT ( * ) ) + - 30 + + 24 AS col1
----
-7

query II rowsort
SELECT - 28, 65 AS col1
----
-28
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT COUNT( * ) + 91 * + - ( + 9 ) AS col2
----
-818

skipif mysql # not compatible
query I rowsort label-4916
SELECT COUNT ( * ) + 91 * + - ( + 9 ) AS col2
----
-818

query II rowsort
SELECT 94 AS col0, 80 AS col1
----
94
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT ALL ( + 77 ) * - COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-4918
SELECT ALL ( + 77 ) * - COUNT ( * )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT DISTINCT + 13 + + + COUNT( * ) - - 54
----
68

skipif mysql # not compatible
query I rowsort label-4919
SELECT DISTINCT + 13 + + + COUNT ( * ) - - 54
----
68

query I rowsort
SELECT - 89 + ( - 60 ) AS col0
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT ALL COUNT( - - 42 ) + + 23 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-4921
SELECT ALL COUNT ( - - 42 ) + + 23 AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT - CASE + + COUNT( * ) WHEN ( - - 26 ) + + - AVG ( ALL 22 ) / - 81 * - 74 THEN 9 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4922
SELECT - CASE + + COUNT ( * ) WHEN ( - - 26 ) + + - AVG ( ALL 22 ) / - 81 * - 74 THEN 9 ELSE NULL END
----
NULL

query II rowsort
SELECT 21 AS col0, + 31 + + 27 AS col1
----
21
58

query I rowsort
SELECT 61 * + 95 AS col1
----
5795

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT + 12 * - 84 * + 65 + - ( + COUNT( * ) ) AS col1
----
-65521

skipif mysql # not compatible
query I rowsort label-4925
SELECT + 12 * - 84 * + 65 + - ( + COUNT ( * ) ) AS col1
----
-65521

onlyif mysql # aggregate syntax: 
query II rowsort label-4926
SELECT DISTINCT COUNT( * ), - 17 col2
----
1
-17

skipif mysql # not compatible
query II rowsort label-4926
SELECT DISTINCT COUNT ( * ), - 17 col2
----
1
-17

query I rowsort
SELECT CASE 56 WHEN + 67 * - - 93 THEN + + 90 * - - 47 + + 51 + 32 + - 27 WHEN + 54 * - 81 THEN NULL ELSE NULL END + 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT + ( - COALESCE ( + 41, + COUNT( * ) + + 26 ) )
----
-41

skipif mysql # not compatible
query I rowsort label-4928
SELECT + ( - COALESCE ( + 41, + COUNT ( * ) + + 26 ) )
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-4929
SELECT DISTINCT 48 DIV + 33 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4929
SELECT DISTINCT 48 / + 33 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4930
SELECT + 96 * 37 - + 79 * COUNT( * ) DIV + 26 AS col0
----
3549

skipif mysql # not compatible
query I rowsort label-4930
SELECT + 96 * 37 - + 79 * COUNT ( * ) / + 26 AS col0
----
3549

onlyif mysql # DIV for integer division: 
query I rowsort label-4931
SELECT ALL - ( + 47 ) DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-4931
SELECT ALL - ( + 47 ) / - 82
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT - SUM( + COALESCE ( 40, 59, + + 21 * - - NULLIF ( 84, 61 + 29 * 99 ) ) )
----
-40

skipif mysql # not compatible
query I rowsort label-4932
SELECT - SUM ( + COALESCE ( 40, 59, + + 21 * - - NULLIF ( 84, 61 + 29 * 99 ) ) )
----
-40

query I rowsort
SELECT ALL + ( 43 ) * - + 46 * + 84 + + 99
----
-166053

query I rowsort
SELECT 9 * + 17 col2
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT - 46 * + COUNT( * ) col0
----
-46

skipif mysql # not compatible
query I rowsort label-4935
SELECT - 46 * + COUNT ( * ) col0
----
-46

query I rowsort
SELECT + ( - 51 ) AS col0
----
-51

query I rowsort
SELECT 85 * + 8
----
680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4938
SELECT DISTINCT - CAST( + 58 AS SIGNED ) AS col1, 13 * - CASE - - ( + 73 ) WHEN + - 69 THEN NULL ELSE COUNT( * ) END AS col0
----
-58
-13

skipif mysql # not compatible
query II rowsort label-4938
SELECT DISTINCT - CAST ( + 58 AS INTEGER ) AS col1, 13 * - CASE - - ( + 73 ) WHEN + - 69 THEN NULL ELSE COUNT ( * ) END AS col0
----
-58
-13

query I rowsort
SELECT ALL - ( 25 ) AS col0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4940
SELECT ALL CAST( NULL AS SIGNED ) + + 30 + 58 * 32 + + + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-4940
SELECT ALL CAST ( NULL AS INTEGER ) + + 30 + 58 * 32 + + + 93
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4941
SELECT 23 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4941
SELECT 23 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT ALL - CASE + 42 WHEN + COALESCE ( + 45, - 18, + 88, 95, + + 15 ) THEN ( COALESCE ( 52, MAX( + 22 ), 25 + - 48, 77 + - 41 ) ) END / 59
----
NULL

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL - CASE + 42 WHEN + COALESCE ( + 45, - 18, + 88, 95, + + 15 ) THEN ( COALESCE ( 52, MAX ( + 22 ), 25 + - 48, 77 + - 41 ) ) END / 59
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4943
SELECT ALL - 84 + - 77 + 98 DIV 89 * - + 44 + + + 77 + - 31
----
-159

skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL - 84 + - 77 + 98 / 89 * - + 44 + + + 77 + - 31
----
-159

query I rowsort
SELECT DISTINCT 47 + + - NULLIF ( 69, - + 59 ) + - 77 AS col2
----
-99

query I rowsort
SELECT DISTINCT - CASE + 75 WHEN 47 THEN - 17 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 82 + - 40
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT ALL + COUNT( * ) * - COUNT( + 76 )
----
-1

skipif mysql # not compatible
query I rowsort label-4947
SELECT ALL + COUNT ( * ) * - COUNT ( + 76 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4948
SELECT DISTINCT - 66 + - 32 DIV - 50 * + 3
----
-66

skipif mysql # not compatible
query I rowsort label-4948
SELECT DISTINCT - 66 + - 32 / - 50 * + 3
----
-66

query I rowsort
SELECT + 23 * - + 41
----
-943

onlyif mysql # DIV for integer division: 
query I rowsort label-4950
SELECT ALL 34 DIV + 43
----
0

skipif mysql # not compatible
query I rowsort label-4950
SELECT ALL 34 / + 43
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4951
SELECT + 40 DIV - 46 * 29 * - COALESCE ( - + ( 66 ), 85 )
----
0

skipif mysql # not compatible
query I rowsort label-4951
SELECT + 40 / - 46 * 29 * - COALESCE ( - + ( 66 ), 85 )
----
0

query I rowsort
SELECT DISTINCT 46 + 61
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT - MIN( 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-4953
SELECT - MIN ( 44 )
----
-44

query I rowsort
SELECT + ( - + 86 ) AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT + - COUNT( ALL 62 ) - - 54 * 44 - - ( - + 24 ) * + 20 + + 75 AS col0
----
1970

skipif mysql # not compatible
query I rowsort label-4955
SELECT + - COUNT ( ALL 62 ) - - 54 * 44 - - ( - + 24 ) * + 20 + + 75 AS col0
----
1970

query I rowsort
SELECT + 10 * - 26
----
-260

query II rowsort
SELECT DISTINCT 79 * + 35 + - + ( - 78 ), 29 * + + 18 + + + 73 col0
----
2843
595

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT DISTINCT MIN( - 68 ) col2
----
-68

skipif mysql # not compatible
query I rowsort label-4958
SELECT DISTINCT MIN ( - 68 ) col2
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-4959
SELECT ALL - 10 * 45 DIV + 90 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-4959
SELECT ALL - 10 * 45 / + 90 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT ALL 37 * - CASE COUNT( * ) WHEN - 89 THEN 16 * - - 24 WHEN - - 10 THEN COUNT( * ) WHEN - 71 * 62 + - 3 * 14 THEN COUNT( 64 ) ELSE + 79 END
----
-2923

skipif mysql # not compatible
query I rowsort label-4960
SELECT ALL 37 * - CASE COUNT ( * ) WHEN - 89 THEN 16 * - - 24 WHEN - - 10 THEN COUNT ( * ) WHEN - 71 * 62 + - 3 * 14 THEN COUNT ( 64 ) ELSE + 79 END
----
-2923

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4961
SELECT DISTINCT + SUM( ALL - 52 ) * + 56 * CAST( + + 76 AS SIGNED ) AS col2, 93 * - + 95 DIV COUNT( * ) AS col0
----
-221312
-8835

skipif mysql # not compatible
query II rowsort label-4961
SELECT DISTINCT + SUM ( ALL - 52 ) * + 56 * CAST ( + + 76 AS INTEGER ) AS col2, 93 * - + 95 / COUNT ( * ) AS col0
----
-221312
-8835

query I rowsort
SELECT ALL COALESCE ( 47, + 65 ) AS col2
----
47

query I rowsort
SELECT ALL 64 * 77 AS col2
----
4928

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT - - MIN( ALL + 95 )
----
95

skipif mysql # not compatible
query I rowsort label-4964
SELECT - - MIN ( ALL + 95 )
----
95

query I rowsort
SELECT + ( + + 2 )
----
2

query I rowsort
SELECT + - 52 + - 16 AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT - - 89 * COUNT( * ) + + 87 col2
----
176

skipif mysql # not compatible
query I rowsort label-4967
SELECT - - 89 * COUNT ( * ) + + 87 col2
----
176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4968
SELECT + NULLIF ( + 57, - COUNT( * ) + 15 + 47 + - + 71 * - 54 * - - 11 ) / - 72 * 59 + CASE NULLIF ( COUNT( * ), MIN( DISTINCT 35 ) * - 86 ) WHEN 47 THEN 9 + + COUNT( ALL CAST( - 81 AS SIGNED ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4968
SELECT + NULLIF ( + 57, - COUNT ( * ) + 15 + 47 + - + 71 * - 54 * - - 11 ) / - 72 * 59 + CASE NULLIF ( COUNT ( * ), MIN ( DISTINCT 35 ) * - 86 ) WHEN 47 THEN 9 + + COUNT ( ALL CAST ( - 81 AS INTEGER ) ) END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query III rowsort label-4969
SELECT ALL - + 10 DIV 73 AS col0, + 70 + 97 * - 79 * 73 - + 14, 87 + + + 49 - 98 AS col1
----
0
-559343
38

skipif mysql # not compatible
query III rowsort label-4969
SELECT ALL - + 10 / 73 AS col0, + 70 + 97 * - 79 * 73 - + 14, 87 + + + 49 - 98 AS col1
----
0
-559343
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4970
SELECT + 78 DIV - 49, - COUNT( * ) * + 94 + - + 48 AS col1
----
-1
-142

skipif mysql # not compatible
query II rowsort label-4970
SELECT + 78 / - 49, - COUNT ( * ) * + 94 + - + 48 AS col1
----
-1
-142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4971
SELECT DISTINCT 94 * + 26 + + 41 + - + 47 + - COUNT( * ) / - MIN( ALL + + 63 ) + + 95 + - + CAST( NULL AS SIGNED ) * 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4971
SELECT DISTINCT 94 * + 26 + + 41 + - + 47 + - COUNT ( * ) / - MIN ( ALL + + 63 ) + + 95 + - + CAST ( NULL AS INTEGER ) * 12 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 69 * + + 27
----
-1863

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT - COUNT( * ) + + - 73
----
-74

skipif mysql # not compatible
query I rowsort label-4973
SELECT - COUNT ( * ) + + - 73
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT ALL 15 * - + 34 + MAX( - 71 ) + - - 1
----
-580

skipif mysql # not compatible
query I rowsort