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 label-4974
SELECT ALL 15 * - + 34 + MAX ( - 71 ) + - - 1
----
-580

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4976
SELECT ALL - COUNT( * ) * - + 15 * CAST( NULL AS SIGNED ) + - 18 + + 0 AS col0, MAX( 72 ) + - 85 * 48 * 95 AS col0
----
NULL
-387528

skipif mysql # not compatible
query II rowsort label-4976
SELECT ALL - COUNT ( * ) * - + 15 * CAST ( NULL AS INTEGER ) + - 18 + + 0 AS col0, MAX ( 72 ) + - 85 * 48 * 95 AS col0
----
NULL
-387528

query I rowsort
SELECT - 46 * - 82 + - 43
----
3729

query I rowsort
SELECT ALL + NULLIF ( + ( + 30 ), + - 75 ) col0
----
30

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

query I rowsort
SELECT - 30 * + 33
----
-990

onlyif mysql # aggregate syntax: 
query II rowsort label-4981
SELECT ALL - 48 * - 49 + 11 AS col2, - 78 - + SUM( DISTINCT + ( - + 21 ) ) AS col0
----
2363
-57

skipif mysql # not compatible
query II rowsort label-4981
SELECT ALL - 48 * - 49 + 11 AS col2, - 78 - + SUM ( DISTINCT + ( - + 21 ) ) AS col0
----
2363
-57

query I rowsort
SELECT NULLIF ( ( 45 ), 54 + + - 13 ) AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT NULLIF ( + 62, MIN( ALL + 17 ) )
----
62

skipif mysql # not compatible
query I rowsort label-4983
SELECT NULLIF ( + 62, MIN ( ALL + 17 ) )
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4984
SELECT - 94 + + CAST( + 25 AS SIGNED ) + + 97 + + 40 col1
----
68

skipif mysql # not compatible
query I rowsort label-4984
SELECT - 94 + + CAST ( + 25 AS INTEGER ) + + 97 + + 40 col1
----
68

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4986
SELECT ALL MAX( + 43 ) * - 90 + + 39 + - CAST( NULL AS SIGNED ) * - ( 29 ) * 97 col2, 59 + + - 3 AS col2
----
NULL
56

skipif mysql # not compatible
query II rowsort label-4986
SELECT ALL MAX ( + 43 ) * - 90 + + 39 + - CAST ( NULL AS INTEGER ) * - ( 29 ) * 97 col2, 59 + + - 3 AS col2
----
NULL
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT COALESCE ( - - 69, + 88 * + NULLIF ( + 39, + ( - 95 ) * + 5 + - NULLIF ( - COUNT( * ), - 29 ) ), + 1 * ( + 4 ) + 89 * 20 )
----
69

skipif mysql # not compatible
query I rowsort label-4987
SELECT COALESCE ( - - 69, + 88 * + NULLIF ( + 39, + ( - 95 ) * + 5 + - NULLIF ( - COUNT ( * ), - 29 ) ), + 1 * ( + 4 ) + 89 * 20 )
----
69

query II rowsort
SELECT ALL + 9, - NULLIF ( + 8, + 3 ) AS col2
----
9
-8

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4990
SELECT COUNT( * ) AS col1, + 11 + COALESCE ( + CAST( NULL AS SIGNED ), + 14 * + + 94, MAX( - + 22 ) ) * + ( - + 32 ) + - COUNT( * ) AS col1
----
1
-42102

skipif mysql # not compatible
query II rowsort label-4990
SELECT COUNT ( * ) AS col1, + 11 + COALESCE ( + CAST ( NULL AS INTEGER ), + 14 * + + 94, MAX ( - + 22 ) ) * + ( - + 32 ) + - COUNT ( * ) AS col1
----
1
-42102

query I rowsort
SELECT - 13 * 52 + - + 46 * + 55 * + 99 - - 52 AS col2
----
-251094

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT - COUNT( * ) + 34 * 43 * - ( 59 ) + + 48 AS col2
----
-86211

skipif mysql # not compatible
query I rowsort label-4993
SELECT - COUNT ( * ) + 34 * 43 * - ( 59 ) + + 48 AS col2
----
-86211

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT ALL 68 * COUNT( + + 75 ) * ( + 12 ) + 85 + + 84
----
985

skipif mysql # not compatible
query I rowsort label-4994
SELECT ALL 68 * COUNT ( + + 75 ) * ( + 12 ) + 85 + + 84
----
985

query I rowsort
SELECT - 38 + 59 AS col0
----
21

query I rowsort
SELECT - 51 * + 66 - + 4 * + - 12 * + 76 + - 97 col1
----
185

query I rowsort
SELECT ALL - + 71 * 69 AS col1
----
-4899

onlyif mysql # aggregate syntax: 
query I rowsort label-4998
SELECT + - COUNT( * ) + 14 + - CASE + - 82 WHEN + 32 * 61 * - 86 * + 47 THEN 95 * - MIN( 66 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4998
SELECT + - COUNT ( * ) + 14 + - CASE + - 82 WHEN + 32 * 61 * - 86 * + 47 THEN 95 * - MIN ( 66 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT + + 42 + 1 + 95 + - + 11 + + 9 + - 55 * + - 6 * + COUNT( 21 ) col0
----
466

skipif mysql # not compatible
query I rowsort label-4999
SELECT + + 42 + 1 + 95 + - + 11 + + 9 + - 55 * + - 6 * + COUNT ( 21 ) col0
----
466

query I rowsort
SELECT - + 73 * + + 1 col1
----
-73

query I rowsort
SELECT - - 98 * - 39 col1
----
-3822

query I rowsort
SELECT + + 93 + 69
----
162

query II rowsort
SELECT - + 93, - 51 AS col1
----
-93
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT DISTINCT COUNT( 49 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5004
SELECT DISTINCT COUNT ( 49 ) AS col2
----
1

query I rowsort
SELECT ALL 98 * + 89 AS col1
----
8722

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

skipif mysql # not compatible
query I rowsort label-5006
SELECT + ( + - COUNT ( * ) ) * + CAST ( NULL AS INTEGER ) / - - 0
----
NULL

query II rowsort
SELECT ALL 37 + 21 + + 82, 41 * - - COALESCE ( + 11, 96 * - ( 16 ) ) AS col2
----
140
451

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT ALL - 46 + CASE MIN( DISTINCT - - 1 ) WHEN - - 86 + + CASE - + 96 WHEN 80 THEN + 94 * + 80 + - ( + 54 + + COUNT( * ) ) ELSE NULL END + 59 THEN 58 + - 12 END * 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5008
SELECT ALL - 46 + CASE MIN ( DISTINCT - - 1 ) WHEN - - 86 + + CASE - + 96 WHEN 80 THEN + 94 * + 80 + - ( + 54 + + COUNT ( * ) ) ELSE NULL END + 59 THEN 58 + - 12 END * 83 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT + 13 * + NULLIF ( + 23, COUNT( * ) )
----
299

skipif mysql # not compatible
query I rowsort label-5009
SELECT + 13 * + NULLIF ( + 23, COUNT ( * ) )
----
299

query I rowsort
SELECT ALL 19 * + ( + 27 ) * + + 69 AS col2
----
35397

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5011
SELECT ALL + ( 25 ) DIV - 57 + + 20 + + 76 + + 25 * - - COUNT( * ) * - 48
----
-1104

skipif mysql # not compatible
query I rowsort label-5011
SELECT ALL + ( 25 ) / - 57 + + 20 + + 76 + + 25 * - - COUNT ( * ) * - 48
----
-1104

onlyif mysql # DIV for integer division: 
query I rowsort label-5012
SELECT 29 DIV 51 - - 55 DIV + 48 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5012
SELECT 29 / 51 - - 55 / + 48 AS col0
----
1

query II rowsort
SELECT + 48, 5 AS col1
----
48
5

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5015
SELECT DISTINCT + 52, + MIN( DISTINCT + 14 ) + + + 16 col0
----
52
30

skipif mysql # not compatible
query II rowsort label-5015
SELECT DISTINCT + 52, + MIN ( DISTINCT + 14 ) + + + 16 col0
----
52
30

onlyif mysql # DIV for integer division: 
query I rowsort label-5016
SELECT ALL - 43 DIV 96 + + 6
----
6

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL - 43 / 96 + + 6
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5017
SELECT 48 - 3 DIV - 63 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-5017
SELECT 48 - 3 / - 63 AS col0
----
48

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

query I rowsort
SELECT ( + 68 ) * 30
----
2040

query I rowsort
SELECT 28 * - 88
----
-2464

onlyif mysql # aggregate syntax: 
query II rowsort label-5021
SELECT 24, + NULLIF ( 12, - 79 ) + - ( + + 66 ) + COUNT( * ) col1
----
24
-53

skipif mysql # not compatible
query II rowsort label-5021
SELECT 24, + NULLIF ( 12, - 79 ) + - ( + + 66 ) + COUNT ( * ) col1
----
24
-53

query I rowsort
SELECT ALL - COALESCE ( 30, - 61 )
----
-30

query II rowsort
SELECT + 79, 17 - + + 67 AS col1
----
79
-50

query II rowsort
SELECT ALL - 15 AS col0, 44
----
-15
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5025
SELECT + CASE - 36 WHEN 72 * + 17 THEN NULL ELSE - CAST( NULL AS SIGNED ) * + COUNT( * ) - + CAST( NULL AS SIGNED ) + CASE 86 WHEN - 4 - - 6 - 95 * 87 THEN 83 * 19 + + 25 WHEN 0 THEN - 79 ELSE NULL END - 36 / - AVG ( ( 59 ) / + 26 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5025
SELECT + CASE - 36 WHEN 72 * + 17 THEN NULL ELSE - CAST ( NULL AS INTEGER ) * + COUNT ( * ) - + CAST ( NULL AS INTEGER ) + CASE 86 WHEN - 4 - - 6 - 95 * 87 THEN 83 * 19 + + 25 WHEN 0 THEN - 79 ELSE NULL END - 36 / - AVG ( ( 59 ) / + 26 ) END
----
NULL

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

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

query II rowsort
SELECT ALL 85 AS col1, 64 + - + 42 - + 33 * - 33 * - + 16
----
85
-17402

onlyif mysql # aggregate syntax: 
query II rowsort label-5028
SELECT DISTINCT - 56, + 43 * - NULLIF ( - 90, + COUNT( * ) ) - + 52 AS col0
----
-56
3818

skipif mysql # not compatible
query II rowsort label-5028
SELECT DISTINCT - 56, + 43 * - NULLIF ( - 90, + COUNT ( * ) ) - + 52 AS col0
----
-56
3818

query I rowsort
SELECT ALL + 16 + + - 14 * 70 + - 89
----
-1053

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

query I rowsort
SELECT DISTINCT + - 2 + 13 AS col1
----
11

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5033
SELECT 54 DIV + + 38 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5033
SELECT 54 / + + 38 AS col2
----
1

query I rowsort
SELECT ALL + 56 + - - 0 AS col2
----
56

query I rowsort
SELECT ALL - 75 + 95 * - 21 AS col2
----
-2070

query I rowsort
SELECT + 74 - + ( 70 ) * - - 46
----
-3146

query I rowsort
SELECT NULLIF ( + 89, 87 - 82 ) + + 64
----
153

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

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

query I rowsort
SELECT ALL - CASE + - 85 WHEN 27 THEN NULL WHEN + - 94 * + 32 THEN - 48 WHEN - 48 THEN NULL ELSE + + NULLIF ( + 96, 56 * + + 10 * - 72 * + 4 + 28 * + 80 + - 19 ) * 70 END + 92
----
-6628

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5040
SELECT ALL ( - ( - - 3 ) ) + 47 * + - ( + - COUNT( * ) ) * - COALESCE ( - - ( - COUNT( * ) ), - 10 * 38 * CASE 57 WHEN CASE + 14 WHEN 40 THEN 66 ELSE NULL END + CAST( - COUNT( * ) - 78 AS SIGNED ) * 95 THEN 4 * - 73 WHEN 61 THEN - 58 + 47 END )
----
44

skipif mysql # not compatible
query I rowsort label-5040
SELECT ALL ( - ( - - 3 ) ) + 47 * + - ( + - COUNT ( * ) ) * - COALESCE ( - - ( - COUNT ( * ) ), - 10 * 38 * CASE 57 WHEN CASE + 14 WHEN 40 THEN 66 ELSE NULL END + CAST ( - COUNT ( * ) - 78 AS INTEGER ) * 95 THEN 4 * - 73 WHEN 61 THEN - 58 + 47 END )
----
44

query I rowsort
SELECT DISTINCT + 52 + 96 AS col1
----
148

query I rowsort
SELECT - 56 * + 51 + 20 + + 49
----
-2787

query I rowsort
SELECT ALL 18 - + + NULLIF ( - 74, + 37 ) + - 88 AS col0
----
4

query I rowsort
SELECT 44 + + - 86 - - + 2 AS col0
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5045
SELECT ( + 38 ) * COUNT( * ) * - 34 + COUNT( * ) * - 28 + 66 + - 12 * + CAST( + COUNT( * ) AS SIGNED )
----
-1266

skipif mysql # not compatible
query I rowsort label-5045
SELECT ( + 38 ) * COUNT ( * ) * - 34 + COUNT ( * ) * - 28 + 66 + - 12 * + CAST ( + COUNT ( * ) AS INTEGER )
----
-1266

onlyif mysql # DIV for integer division: 
query I rowsort label-5046
SELECT DISTINCT + 90 DIV + 63 col0
----
1

skipif mysql # not compatible
query I rowsort label-5046
SELECT DISTINCT + 90 / + 63 col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT ALL + NULLIF ( - 67, COUNT( * ) + - + ( 68 ) ) * + 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5047
SELECT ALL + NULLIF ( - 67, COUNT ( * ) + - + ( 68 ) ) * + 39 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5048
SELECT - 73 * 61 + ( CAST( + 17 AS SIGNED ) ) + + 71
----
-4365

skipif mysql # not compatible
query I rowsort label-5048
SELECT - 73 * 61 + ( CAST ( + 17 AS INTEGER ) ) + + 71
----
-4365

query I rowsort
SELECT 51 + - - 74 AS col2
----
125

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

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

query I rowsort
SELECT 53 * - 74 AS col1
----
-3922

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

skipif mysql # not compatible
query I rowsort label-5052
SELECT - 56 + CAST ( + + 59 AS INTEGER ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT ALL 30 * - COUNT( + 25 ) * - 65 AS col0
----
1950

skipif mysql # not compatible
query I rowsort label-5053
SELECT ALL 30 * - COUNT ( + 25 ) * - 65 AS col0
----
1950

query I rowsort
SELECT ( 9 ) + - - 89
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-5055
SELECT ALL + 71 + - 58 + + COUNT( * ) AS col1, COUNT( * ) + - 57
----
14
-56

skipif mysql # not compatible
query II rowsort label-5055
SELECT ALL + 71 + - 58 + + COUNT ( * ) AS col1, COUNT ( * ) + - 57
----
14
-56

query I rowsort
SELECT + 22 + - + 50 + + 96 * - 5 AS col2
----
-508

onlyif mysql # DIV for integer division: 
query I rowsort label-5057
SELECT DISTINCT + + 66 + 10 DIV - 66 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-5057
SELECT DISTINCT + + 66 + 10 / - 66 AS col2
----
66

query II rowsort
SELECT ALL - 79 + - 46, 11 AS col2
----
-125
11

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5060
SELECT DISTINCT MIN( - + 32 ) AS col2, + 35 AS col0
----
-32
35

skipif mysql # not compatible
query II rowsort label-5060
SELECT DISTINCT MIN ( - + 32 ) AS col2, + 35 AS col0
----
-32
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5061
SELECT DISTINCT + 77 + - - 27 + - 5 * + - 88 * COUNT( * ) - 58 DIV 88 * + - 48 AS col1
----
544

skipif mysql # not compatible
query I rowsort label-5061
SELECT DISTINCT + 77 + - - 27 + - 5 * + - 88 * COUNT ( * ) - 58 / 88 * + - 48 AS col1
----
544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5062
SELECT 91 + + CAST( NULL AS SIGNED ) * 40, COALESCE ( + MAX( DISTINCT - + 0 ), + 34 * - + 58 + 29 * 76 ) AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-5062
SELECT 91 + + CAST ( NULL AS INTEGER ) * 40, COALESCE ( + MAX ( DISTINCT - + 0 ), + 34 * - + 58 + 29 * 76 ) AS col2
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT ALL + - 24 + - COALESCE ( - 62, + CASE - - 21 WHEN + 14 + + SUM( 85 ) / 69 - MAX( ALL + - 2 ) THEN - 1 END )
----
38

skipif mysql # not compatible
query I rowsort label-5063
SELECT ALL + - 24 + - COALESCE ( - 62, + CASE - - 21 WHEN + 14 + + SUM ( 85 ) / 69 - MAX ( ALL + - 2 ) THEN - 1 END )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5064
SELECT CASE 64 WHEN + + ( - 38 ) THEN - 68 + MAX( DISTINCT + - 22 ) * + 37 END * + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-5064
SELECT CASE 64 WHEN + + ( - 38 ) THEN - 68 + MAX ( DISTINCT + - 22 ) * + 37 END * + 28
----
NULL

query II rowsort
SELECT 49 AS col2, + 0
----
49
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT ALL + COUNT( * ) * + 6 * + COALESCE ( 50, 92, + 50 * 12 + 9 ) AS col0
----
300

skipif mysql # not compatible
query I rowsort label-5066
SELECT ALL + COUNT ( * ) * + 6 * + COALESCE ( 50, 92, + 50 * 12 + 9 ) AS col0
----
300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5067
SELECT 13 / - 41 * CASE 95 WHEN + 24 THEN CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5067
SELECT 13 / - 41 * CASE 95 WHEN + 24 THEN CAST ( NULL AS INTEGER ) END AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL + COUNT ( + - 2 ) - + ( - + 17 ) / - 43 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT ALL COALESCE ( - - ( - 8 ), + COUNT( * ) - + + 42, + - 74 + - 59 - 52 ) col2
----
-8

skipif mysql # not compatible
query I rowsort label-5069
SELECT ALL COALESCE ( - - ( - 8 ), + COUNT ( * ) - + + 42, + - 74 + - 59 - 52 ) col2
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-5070
SELECT ALL COUNT( * ) col0, - 35 * - - 93 AS col0
----
1
-3255

skipif mysql # not compatible
query II rowsort label-5070
SELECT ALL COUNT ( * ) col0, - 35 * - - 93 AS col0
----
1
-3255

onlyif mysql # aggregate syntax: 
query II rowsort label-5071
SELECT ALL + 9, MAX( ALL 15 ) AS col0
----
9
15

skipif mysql # not compatible
query II rowsort label-5071
SELECT ALL + 9, MAX ( ALL 15 ) AS col0
----
9
15

onlyif mysql # aggregate syntax: 
query II rowsort label-5072
SELECT COALESCE ( - 73, 62 * - + ( + 0 ) + + 81 * 68 + + + 34 ) col2, + 29 * + COUNT( * )
----
-73
29

skipif mysql # not compatible
query II rowsort label-5072
SELECT COALESCE ( - 73, 62 * - + ( + 0 ) + + 81 * 68 + + + 34 ) col2, + 29 * + COUNT ( * )
----
-73
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT COALESCE ( COUNT( * ), + 97 * + - 7 + 0 + COUNT( * ) + 11 * - - ( - 85 ) * - 43 )
----
1

skipif mysql # not compatible
query I rowsort label-5073
SELECT COALESCE ( COUNT ( * ), + 97 * + - 7 + 0 + COUNT ( * ) + 11 * - - ( - 85 ) * - 43 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT + COUNT( * ) + 56 * - 19 col2
----
-1063

skipif mysql # not compatible
query I rowsort label-5074
SELECT + COUNT ( * ) + 56 * - 19 col2
----
-1063

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5075
SELECT DISTINCT + CASE 48 WHEN COUNT( * ) THEN - - CAST( NULL AS SIGNED ) END, + 60 + + + 99 * + 61 AS col2
----
NULL
6099

skipif mysql # not compatible
query II rowsort label-5075
SELECT DISTINCT + CASE 48 WHEN COUNT ( * ) THEN - - CAST ( NULL AS INTEGER ) END, + 60 + + + 99 * + 61 AS col2
----
NULL
6099

onlyif mysql # DIV for integer division: 
query I rowsort label-5076
SELECT + 94 DIV - 32 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5076
SELECT + 94 / - 32 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT + SUM( DISTINCT - 7 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-5077
SELECT + SUM ( DISTINCT - 7 ) AS col2
----
-7

query I rowsort
SELECT - 64 - 18
----
-82

query I rowsort
SELECT NULLIF ( + + 3, + 92 * 15 )
----
3

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5081
SELECT + COALESCE ( - + 71, NULLIF ( 39, - 55 ) * - 53 + - + 72 * - + ( 14 ) * - ( - COUNT( * ) ) + - - CAST( NULL AS SIGNED ) ) * - 63 AS col2
----
4473

skipif mysql # not compatible
query I rowsort label-5081
SELECT + COALESCE ( - + 71, NULLIF ( 39, - 55 ) * - 53 + - + 72 * - + ( 14 ) * - ( - COUNT ( * ) ) + - - CAST ( NULL AS INTEGER ) ) * - 63 AS col2
----
4473

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

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

query I rowsort
SELECT DISTINCT + 97 * + + 73 + - - 17 + - ( - 55 ) AS col2
----
7153

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

skipif mysql # not compatible
query I rowsort label-5084
SELECT - + 60 / - COUNT ( * )
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5085
SELECT + + 55 * - COALESCE ( COALESCE ( + COUNT( * ), + 50, + 25 - + - 33 + - 41 + - ( - 42 ) + - 59 + + 3 DIV - CAST( NULL AS SIGNED ) * - 20 ), 37 ) + - 47 col1
----
-102

skipif mysql # not compatible
query I rowsort label-5085
SELECT + + 55 * - COALESCE ( COALESCE ( + COUNT ( * ), + 50, + 25 - + - 33 + - 41 + - ( - 42 ) + - 59 + + 3 / - CAST ( NULL AS INTEGER ) * - 20 ), 37 ) + - 47 col1
----
-102

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

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

query I rowsort
SELECT + - CASE - 30 WHEN + - 49 THEN NULL WHEN + - NULLIF ( + 58, + 62 ) THEN - 32 + + 75 ELSE + 28 END
----
-28

query II rowsort
SELECT ALL + + 37, + 49 AS col2
----
37
49

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

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

query II rowsort
SELECT ALL + 4 AS col0, 66 col2
----
4
66

query I rowsort
SELECT DISTINCT + + 0 * - 98 + + ( + - 6 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT ALL + - ( - 3 ) * COUNT( * ) + + - 77 + 4 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-5092
SELECT ALL + - ( - 3 ) * COUNT ( * ) + + - 77 + 4 AS col2
----
-70

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5093
SELECT ALL CAST( 23 AS SIGNED ) DIV - 27
----
0

skipif mysql # not compatible
query I rowsort label-5093
SELECT ALL CAST ( 23 AS INTEGER ) / - 27
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5095
SELECT DISTINCT - COALESCE ( + 55, - - 11 + + CASE + - CAST( NULL AS SIGNED ) WHEN 43 * + 79 + - 43 * + 0 - - 3 + + COUNT( * ) + 20 - + 63 THEN 37 - ( + COUNT( * ) ) END + 28 * + 80 ) * + CAST( 45 AS SIGNED )
----
-2475

skipif mysql # not compatible
query I rowsort label-5095
SELECT DISTINCT - COALESCE ( + 55, - - 11 + + CASE + - CAST ( NULL AS INTEGER ) WHEN 43 * + 79 + - 43 * + 0 - - 3 + + COUNT ( * ) + 20 - + 63 THEN 37 - ( + COUNT ( * ) ) END + 28 * + 80 ) * + CAST ( 45 AS INTEGER )
----
-2475

query I rowsort
SELECT + + 53 * - + 30 AS col1
----
-1590

onlyif mysql # aggregate syntax: 
query II rowsort label-5097
SELECT ALL - 73 - 38 * + 24, - MIN( + 29 ) - 28 col0
----
-985
-57

skipif mysql # not compatible
query II rowsort label-5097
SELECT ALL - 73 - 38 * + 24, - MIN ( + 29 ) - 28 col0
----
-985
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT - 92 * + - COUNT( * ) + - COALESCE ( 9, ( - 58 ) + - + COUNT( * ), 39 ) col0
----
83

skipif mysql # not compatible
query I rowsort label-5098
SELECT - 92 * + - COUNT ( * ) + - COALESCE ( 9, ( - 58 ) + - + COUNT ( * ), 39 ) col0
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5099
SELECT + 54 + - 6 DIV COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-5099
SELECT + 54 + - 6 / COUNT ( * )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT ALL 60 - + + MAX( - 63 ) col1
----
123

skipif mysql # not compatible
query I rowsort label-5100
SELECT ALL 60 - + + MAX ( - 63 ) col1
----
123

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5102
SELECT - 48 * - - CAST( NULL AS SIGNED )
----
NULL

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

query I rowsort
SELECT DISTINCT ( - 64 ) * - + CASE - 26 WHEN - 65 THEN + 72 ELSE NULL END
----
NULL

query I rowsort
SELECT - 24 - + + 23 + 38 * + 43 * + - 7 * + 35
----
-400377

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT ALL SUM( ALL 69 ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-5105
SELECT ALL SUM ( ALL 69 ) AS col2
----
69

query I rowsort
SELECT + 94 + + 11 AS col0
----
105

query I rowsort
SELECT ALL - 35 - + - 84
----
49

query I rowsort
SELECT + 12 * + + 38
----
456

query I rowsort
SELECT DISTINCT COALESCE ( - - 34, - + COALESCE ( + 70, - 94 ) ) AS col1
----
34

query I rowsort
SELECT DISTINCT CASE + + 34 WHEN - 27 THEN 52 WHEN - ( + 73 ) THEN - 92 ELSE 40 END AS col0
----
40

query I rowsort
SELECT ALL - 99 * 82 AS col2
----
-8118

query I rowsort
SELECT ALL + NULLIF ( + 71, - 93 + + 76 / - 64 - + + 67 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT ALL + MIN( ALL 66 ) col1
----
66

skipif mysql # not compatible
query I rowsort label-5113
SELECT ALL + MIN ( ALL 66 ) col1
----
66

query I rowsort
SELECT - 17 + + - 72 + 97 col0
----
8

query I rowsort
SELECT ALL - 72 * 89
----
-6408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5116
SELECT ALL NULLIF ( - - 65, 68 * CAST( NULL AS SIGNED ) + - COUNT( * ) * + 80 * 94 + + 24 ) DIV 36 + - + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL NULLIF ( - - 65, 68 * CAST ( NULL AS INTEGER ) + - COUNT ( * ) * + 80 * 94 + + 24 ) / 36 + - + COUNT ( * ) AS col0
----
0

query I rowsort
SELECT - 72 * - 78 + - 58 col0
----
5558

query I rowsort
SELECT - 81 * 40 AS col0
----
-3240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5119
SELECT CAST( NULL AS SIGNED ) * 29 + + + 18 * - CASE + + 71 WHEN - - 95 * - ( 95 ) THEN NULL ELSE - 33 * + - 30 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5119
SELECT CAST ( NULL AS INTEGER ) * 29 + + + 18 * - CASE + + 71 WHEN - - 95 * - ( 95 ) THEN NULL ELSE - 33 * + - 30 END
----
NULL

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

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

query I rowsort
SELECT - + 65 * - + 46 * - 35
----
-104650

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5122
SELECT DISTINCT + + CAST( - 90 AS SIGNED ) col2, ( 53 ) * - 45
----
-90
-2385

skipif mysql # not compatible
query II rowsort label-5122
SELECT DISTINCT + + CAST ( - 90 AS INTEGER ) col2, ( 53 ) * - 45
----
-90
-2385

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT DISTINCT + 42 * - 70 * - 55 + - 47 * - - COUNT( * )
----
161653

skipif mysql # not compatible
query I rowsort label-5123
SELECT DISTINCT + 42 * - 70 * - 55 + - 47 * - - COUNT ( * )
----
161653

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5124
SELECT DISTINCT + COUNT( * ) * + ( + 37 ) DIV - COALESCE ( 23, - + 24 + + 46, + 14 )
----
-1

skipif mysql # not compatible
query I rowsort label-5124
SELECT DISTINCT + COUNT ( * ) * + ( + 37 ) / - COALESCE ( 23, - + 24 + + 46, + 14 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT DISTINCT + 56 * - 29 + - + COUNT( * ) + - + ( + 39 ) + - 86
----
-1750

skipif mysql # not compatible
query I rowsort label-5125
SELECT DISTINCT + 56 * - 29 + - + COUNT ( * ) + - + ( + 39 ) + - 86
----
-1750

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT + - MIN( ALL - 76 ) + - 54 + - + COUNT( * ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-5126
SELECT + - MIN ( ALL - 76 ) + - 54 + - + COUNT ( * ) AS col1
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5127
SELECT ALL 32 * - 77 + + CAST( 26 AS SIGNED ) * 81 - - - 20 * - COUNT( 22 )
----
-338

skipif mysql # not compatible
query I rowsort label-5127
SELECT ALL 32 * - 77 + + CAST ( 26 AS INTEGER ) * 81 - - - 20 * - COUNT ( 22 )
----
-338

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT ALL 37 * + COUNT( * ) + + 48 + - ( 13 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-5129
SELECT ALL 37 * + COUNT ( * ) + + 48 + - ( 13 ) AS col1
----
72

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

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

query I rowsort
SELECT + 20 + + 83
----
103

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5134
SELECT DISTINCT 60 DIV + - 74 * + 22 col2
----
0

skipif mysql # not compatible
query I rowsort label-5134
SELECT DISTINCT 60 / + - 74 * + 22 col2
----
0

query I rowsort
SELECT ( + COALESCE ( + 23, + - 59 ) ) + + 52 - - NULLIF ( - - 70, 59 ) AS col2
----
145

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5137
SELECT ALL COUNT( * ) DIV CASE + COUNT( * ) WHEN + 2 + 99 THEN COUNT( * ) WHEN COUNT( * ) THEN 99 ELSE + + 4 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5137
SELECT ALL COUNT ( * ) / CASE + COUNT ( * ) WHEN + 2 + 99 THEN COUNT ( * ) WHEN COUNT ( * ) THEN 99 ELSE + + 4 END AS col0
----
0

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

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

query I rowsort
SELECT ALL 35 + + + 2 + - ( - 76 ) col2
----
113

query I rowsort
SELECT 54 * + + 31 AS col0
----
1674

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

query I rowsort
SELECT ALL 99 + - - ( 32 ) col2
----
131

query I rowsort
SELECT DISTINCT 58 + + 29
----
87

query I rowsort
SELECT 89 + - 20
----
69

query I rowsort
SELECT 92 * - - 46
----
4232

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5147
SELECT - SUM( + CAST( NULL AS SIGNED ) ) - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-5147
SELECT - SUM ( + CAST ( NULL AS INTEGER ) ) - 32
----
NULL

query I rowsort
SELECT DISTINCT - 0 + 40
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT ALL - 83 * - COUNT( * ) col0
----
83

skipif mysql # not compatible
query I rowsort label-5149
SELECT ALL - 83 * - COUNT ( * ) col0
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-5150
SELECT - 54, - MAX( ALL - + 48 ) * - 68 AS col1
----
-54
-3264

skipif mysql # not compatible
query II rowsort label-5150
SELECT - 54, - MAX ( ALL - + 48 ) * - 68 AS col1
----
-54
-3264

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

skipif mysql # not compatible
query I rowsort label-5151
SELECT ALL + - 22 + + CAST ( NULL AS INTEGER ) + - + 7 AS col2
----
NULL

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

query I rowsort
SELECT ALL - 48 * + 14
----
-672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5154
SELECT - 82 * - - 75 + - CAST( NULL AS SIGNED ) - + MIN( ( - - 44 ) ) + - 30 * + SUM( 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5154
SELECT - 82 * - - 75 + - CAST ( NULL AS INTEGER ) - + MIN ( ( - - 44 ) ) + - 30 * + SUM ( 61 )
----
NULL

query I rowsort
SELECT 43 * + - 46 AS col2
----
-1978

query II rowsort
SELECT DISTINCT - - 26 AS col2, 86 * + ( 41 ) AS col0
----
26
3526

onlyif mysql # DIV for integer division: 
query I rowsort label-5157
SELECT 46 + - 81 DIV + 56 col1
----
45

skipif mysql # not compatible
query I rowsort label-5157
SELECT 46 + - 81 / + 56 col1
----
45

query I rowsort
SELECT ALL - ( + 16 ) * - 89
----
1424

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT ALL + 32 * - 8 + - COUNT( * ) AS col1
----
-257

skipif mysql # not compatible
query I rowsort label-5159
SELECT ALL + 32 * - 8 + - COUNT ( * ) AS col1
----
-257

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT ALL + COUNT( * ) * + 79 * - + 77
----
-6083

skipif mysql # not compatible
query I rowsort label-5160
SELECT ALL + COUNT ( * ) * + 79 * - + 77
----
-6083

query II rowsort
SELECT ALL 87 AS col0, - 86
----
87
-86

query I rowsort
SELECT ALL - ( + - 43 ) * 56
----
2408

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT 22 * + COUNT( * ) * + - COUNT( * ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-5163
SELECT 22 * + COUNT ( * ) * + - COUNT ( * ) AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT 58 * - - MAX( 80 ) * + 46 AS col2
----
213440

skipif mysql # not compatible
query I rowsort label-5164
SELECT 58 * - - MAX ( 80 ) * + 46 AS col2
----
213440

query I rowsort
SELECT 29 - - 61 * + - 35 + + - 17
----
-2123

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5166
SELECT ALL 98 col1, + ( NULLIF ( - CAST( NULL AS SIGNED ), 96 * - ( + - NULLIF ( CAST( + 15 AS SIGNED ), - 4 ) ) ) ) * - - 17
----
98
NULL

skipif mysql # not compatible
query II rowsort label-5166
SELECT ALL 98 col1, + ( NULLIF ( - CAST ( NULL AS INTEGER ), 96 * - ( + - NULLIF ( CAST ( + 15 AS INTEGER ), - 4 ) ) ) ) * - - 17
----
98
NULL

query I rowsort
SELECT ALL + 17 * + 14 AS col0
----
238

query I rowsort
SELECT 48 + - - 76
----
124

query I rowsort
SELECT ALL - 45 + NULLIF ( 6, 54 ) + + 91 * + 21 - + - 5 * + 49 AS col1
----
2117

query I rowsort
SELECT DISTINCT 46 + 90 + 23
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5171
SELECT ALL 5 + - ( 90 ) * + - 68 * - CAST( + 96 AS SIGNED )
----
-587515

skipif mysql # not compatible
query I rowsort label-5171
SELECT ALL 5 + - ( 90 ) * + - 68 * - CAST ( + 96 AS INTEGER )
----
-587515

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5172
SELECT CASE + ( - 20 ) WHEN 89 THEN NULL WHEN + 5 + + + 17 THEN ( + 8 ) WHEN - CASE - + 75 WHEN + 18 + + + 42 THEN NULL WHEN + AVG ( - 10 ) THEN + CAST( - - 23 AS SIGNED ) * - 44 END THEN NULL ELSE + 82 END - + COUNT( * ) * + 78
----
4

skipif mysql # not compatible
query I rowsort label-5172
SELECT CASE + ( - 20 ) WHEN 89 THEN NULL WHEN + 5 + + + 17 THEN ( + 8 ) WHEN - CASE - + 75 WHEN + 18 + + + 42 THEN NULL WHEN + AVG ( - 10 ) THEN + CAST ( - - 23 AS INTEGER ) * - 44 END THEN NULL ELSE + 82 END - + COUNT ( * ) * + 78
----
4

query I rowsort
SELECT ALL 93 + + 81 + - 85 + + 28 * - 57
----
-1507

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5174
SELECT DISTINCT 52 DIV + + SUM( DISTINCT - + 43 ) * + - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5174
SELECT DISTINCT 52 / + + SUM ( DISTINCT - + 43 ) * + - COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT DISTINCT 11 + COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-5175
SELECT DISTINCT 11 + COUNT ( * )
----
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT ALL 87 * COUNT( * ) * - 43
----
-3741

skipif mysql # not compatible
query I rowsort label-5177
SELECT ALL 87 * COUNT ( * ) * - 43
----
-3741

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT ALL 45 + - 1 + - COUNT( * ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-5178
SELECT ALL 45 + - 1 + - COUNT ( * ) AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT 72 + - MIN( ALL - 56 )
----
128

skipif mysql # not compatible
query I rowsort label-5179
SELECT 72 + - MIN ( ALL - 56 )
----
128

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5180
SELECT DISTINCT 54 AS col0, - 53 DIV - SUM( DISTINCT + - 69 ) * + 62 + ( COUNT( * ) ) + ( + 46 ) + + 77 * 57 AS col1
----
54
4436

skipif mysql # not compatible
query II rowsort label-5180
SELECT DISTINCT 54 AS col0, - 53 / - SUM ( DISTINCT + - 69 ) * + 62 + ( COUNT ( * ) ) + ( + 46 ) + + 77 * 57 AS col1
----
54
4436

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5181
SELECT + + 20 / + + CAST( NULL AS DECIMAL ) + + + 99 + + 83 - + 64 + 32 * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5181
SELECT + + 20 / + + CAST ( NULL AS REAL ) + + + 99 + + 83 - + 64 + 32 * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5182
SELECT ALL - CAST( - 15 AS SIGNED ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-5182
SELECT ALL - CAST ( - 15 AS INTEGER ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT 12 + + 5 * - + MIN( DISTINCT + 57 ) + + - 12
----
-285

skipif mysql # not compatible
query I rowsort label-5183
SELECT 12 + + 5 * - + MIN ( DISTINCT + 57 ) + + - 12
----
-285

query II rowsort
SELECT - 60, 16 AS col0
----
-60
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5185
SELECT ALL + ( CAST( + + 87 AS SIGNED ) ) * 94 * CASE + 47 WHEN - MIN( ALL + ( CAST( NULL AS SIGNED ) ) ) * 98 * + COUNT( * ) THEN + COALESCE ( 43, + 80 * - CAST( NULL AS SIGNED ) ) + - - CAST( 46 AS SIGNED ) END - - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-5185
SELECT ALL + ( CAST ( + + 87 AS INTEGER ) ) * 94 * CASE + 47 WHEN - MIN ( ALL + ( CAST ( NULL AS INTEGER ) ) ) * 98 * + COUNT ( * ) THEN + COALESCE ( 43, + 80 * - CAST ( NULL AS INTEGER ) ) + - - CAST ( 46 AS INTEGER ) END - - 95
----
NULL

query I rowsort
SELECT - - NULLIF ( + + 68, + 11 ) * 79 + - 79 AS col2
----
5293

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5187
SELECT + - COUNT( * ) * CASE - COALESCE ( + 91, + CAST( + - 35 AS DECIMAL ) * + - 91 - + ( 11 ) + - 92, 53 ) WHEN - - 46 THEN NULL ELSE - - 20 END + + + CASE 75 WHEN - ( 10 ) THEN - 22 WHEN 66 THEN COALESCE ( 98, AVG ( + 86 ), NULLIF ( + COALESCE ( 21, + 85, 75 ), 8 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5187
SELECT + - COUNT ( * ) * CASE - COALESCE ( + 91, + CAST ( + - 35 AS REAL ) * + - 91 - + ( 11 ) + - 92, 53 ) WHEN - - 46 THEN NULL ELSE - - 20 END + + + CASE 75 WHEN - ( 10 ) THEN - 22 WHEN 66 THEN COALESCE ( 98, AVG ( + 86 ), NULLIF ( + COALESCE ( 21, + 85, 75 ), 8 ) ) END
----
NULL

query II rowsort
SELECT + 50 AS col0, 76 AS col0
----
50
76

query II rowsort
SELECT 22 * + CASE 79 WHEN - + ( - - 42 ) THEN NULL ELSE - 12 + + 44 END AS col1, 86
----
704
86

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

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

query II rowsort
SELECT ALL - 9 AS col2, 17 col2
----
-9
17

onlyif mysql # DIV for integer division: 
query II rowsort label-5192
SELECT - 80 DIV 6, 72 DIV + 65 + - - 17 col2
----
-13
18

skipif mysql # not compatible
query II rowsort label-5192
SELECT - 80 / 6, 72 / + 65 + - - 17 col2
----
-13
18

query II rowsort
SELECT DISTINCT + - 54 AS col0, 7 AS col2
----
-54
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5194
SELECT DISTINCT + 94 * - 0 * 11 DIV - SUM( ALL - 68 ) * - + 47 * 73 * + 63
----
0

skipif mysql # not compatible
query I rowsort label-5194
SELECT DISTINCT + 94 * - 0 * 11 / - SUM ( ALL - 68 ) * - + 47 * 73 * + 63
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5195
SELECT - - 56 DIV + ( - 38 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5195
SELECT - - 56 / + ( - 38 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT - - COUNT( * ) * CASE + - 6 WHEN - COUNT( * ) THEN + + 58 WHEN 10 + + - 67 THEN NULL ELSE + CASE 44 WHEN + ( + + SUM( ALL + 73 ) ) THEN NULL ELSE + 95 + + 87 END + NULLIF ( + - 59, 69 + - 65 / 77 ) END * 70 + 71 col1
----
8681

skipif mysql # not compatible
query I rowsort label-5196
SELECT - - COUNT ( * ) * CASE + - 6 WHEN - COUNT ( * ) THEN + + 58 WHEN 10 + + - 67 THEN NULL ELSE + CASE 44 WHEN + ( + + SUM ( ALL + 73 ) ) THEN NULL ELSE + 95 + + 87 END + NULLIF ( + - 59, 69 + - 65 / 77 ) END * 70 + 71 col1
----
8681

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT DISTINCT + - COUNT( 2 ) * - + 95 * ( - 80 )
----
-7600

skipif mysql # not compatible
query I rowsort label-5197
SELECT DISTINCT + - COUNT ( 2 ) * - + 95 * ( - 80 )
----
-7600

onlyif mysql # DIV for integer division: 
query II rowsort label-5198
SELECT + - 71 AS col2, - 72 DIV + 2
----
-71
-36

skipif mysql # not compatible
query II rowsort label-5198
SELECT + - 71 AS col2, - 72 / + 2
----
-71
-36

query I rowsort
SELECT - 39 + - CASE - 57 WHEN + + 64 THEN + 19 ELSE NULL END * + + 75 * ( + 46 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5200
SELECT COUNT( * ) * 47 + + COUNT( * ) + + CAST( 55 AS SIGNED ) AS col1
----
103

skipif mysql # not compatible
query I rowsort label-5200
SELECT COUNT ( * ) * 47 + + COUNT ( * ) + + CAST ( 55 AS INTEGER ) AS col1
----
103

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

skipif mysql # not compatible
query I rowsort label-5201
SELECT DISTINCT + 58 + - COUNT ( * ) AS col1
----
57

query I rowsort
SELECT DISTINCT NULLIF ( 21, + 5 ) AS col0
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5203
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + + 31 * - CASE - MAX( + 19 ) WHEN + 84 THEN - + 50 END, - 2 * ( + 65 ) AS col1
----
NULL
-130

skipif mysql # not compatible
query II rowsort label-5203
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + + 31 * - CASE - MAX ( + 19 ) WHEN + 84 THEN - + 50 END, - 2 * ( + 65 ) AS col1
----
NULL
-130

query I rowsort
SELECT ALL + 40 + 80 AS col2
----
120

onlyif mysql # aggregate syntax: 
query II rowsort label-5205
SELECT - COUNT( * ) * - 90 AS col0, + 79 * + COUNT( * )
----
90
79

skipif mysql # not compatible
query II rowsort label-5205
SELECT - COUNT ( * ) * - 90 AS col0, + 79 * + COUNT ( * )
----
90
79

query I rowsort
SELECT ALL + 13 + - 83 * + 84
----
-6959

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5207
SELECT DISTINCT - CAST( + 14 AS SIGNED ) + - 23
----
-37

skipif mysql # not compatible
query I rowsort label-5207
SELECT DISTINCT - CAST ( + 14 AS INTEGER ) + - 23
----
-37

query I rowsort
SELECT DISTINCT 47 * - - 0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5209
SELECT ALL 6 + - + 84 + + 27 + + CASE + 74 WHEN + 5 THEN - 55 + - 21 ELSE - 59 + MIN( ALL + 97 ) + + 8 END, + 67 DIV + COUNT( * ) AS col1
----
-5
67

skipif mysql # not compatible
query II rowsort label-5209
SELECT ALL 6 + - + 84 + + 27 + + CASE + 74 WHEN + 5 THEN - 55 + - 21 ELSE - 59 + MIN ( ALL + 97 ) + + 8 END, + 67 / + COUNT ( * ) AS col1
----
-5
67

query I rowsort
SELECT - 11 + - 54 + + + 42 + 21 + - 31 * 19 col1
----
-591

query I rowsort
SELECT ALL NULLIF ( + ( + 82 ), - - 67 ) AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT ALL CASE - COUNT( * ) WHEN - CASE + COUNT( * ) WHEN + COALESCE ( - ( 60 ), - 22, 48, + 84 + + - ( + 89 ) * - 15 ) THEN NULL WHEN + 61 THEN NULL ELSE 32 END THEN + COUNT( * ) ELSE + 92 END
----
92

skipif mysql # not compatible
query I rowsort label-5212
SELECT ALL CASE - COUNT ( * ) WHEN - CASE + COUNT ( * ) WHEN + COALESCE ( - ( 60 ), - 22, 48, + 84 + + - ( + 89 ) * - 15 ) THEN NULL WHEN + 61 THEN NULL ELSE 32 END THEN + COUNT ( * ) ELSE + 92 END
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5213
SELECT - MIN( - + 43 ) * COALESCE ( + CAST( NULL AS SIGNED ), + + COALESCE ( - ( + - 45 ), - 9 DIV + 4 - - 95, + + 53 * - NULLIF ( ( - 55 ), + SUM( ALL + 3 ) + 94 ) + 85 DIV 22 ) * 70 - 8 ) * - COUNT( * ) AS col1
----
-135106

skipif mysql # not compatible
query I rowsort label-5213
SELECT - MIN ( - + 43 ) * COALESCE ( + CAST ( NULL AS INTEGER ), + + COALESCE ( - ( + - 45 ), - 9 / + 4 - - 95, + + 53 * - NULLIF ( ( - 55 ), + SUM ( ALL + 3 ) + 94 ) + 85 / 22 ) * 70 - 8 ) * - COUNT ( * ) AS col1
----
-135106

query I rowsort
SELECT DISTINCT + 68 * - - 12 * + - 8 AS col0
----
-6528

query II rowsort
SELECT ALL - 14 + + - 98 AS col1, + ( - + 8 ) AS col0
----
-112
-8

query II rowsort
SELECT ALL 46 * + 74, - 66 col0
----
3404
-66

query I rowsort
SELECT DISTINCT NULLIF ( ( + 38 ), - - 25 )
----
38

query II rowsort
SELECT DISTINCT + 69 * 12 AS col2, 87 col1
----
828
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5219
SELECT DISTINCT - COALESCE ( - + 60, 25 * CAST( NULL AS SIGNED ) ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-5219
SELECT DISTINCT - COALESCE ( - + 60, 25 * CAST ( NULL AS INTEGER ) ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT ALL CASE ( - + 50 ) WHEN COUNT( * ) + - COUNT( * ) * - + 85 THEN NULL ELSE - 0 * + 84 * + 76 * - + 58 - + 81 END AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-5220
SELECT ALL CASE ( - + 50 ) WHEN COUNT ( * ) + - COUNT ( * ) * - + 85 THEN NULL ELSE - 0 * + 84 * + 76 * - + 58 - + 81 END AS col1
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5221
SELECT DISTINCT COUNT( * ) DIV - 3 * + 55
----
0

skipif mysql # not compatible
query I rowsort label-5221
SELECT DISTINCT COUNT ( * ) / - 3 * + 55
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5222
SELECT + - 30 * + 93 * 25 + 74 - 28 DIV + + 97 * - 27 AS col1, 25
----
-69676
25

skipif mysql # not compatible
query II rowsort label-5222
SELECT + - 30 * + 93 * 25 + 74 - 28 / + + 97 * - 27 AS col1, 25
----
-69676
25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT + + 95 * - MAX( DISTINCT ( + 79 ) ) * 9
----
-67545

skipif mysql # not compatible
query I rowsort label-5224
SELECT + + 95 * - MAX ( DISTINCT ( + 79 ) ) * 9
----
-67545

onlyif mysql # DIV for integer division: 
query I rowsort label-5225
SELECT DISTINCT + ( + 53 ) DIV + + 36 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5225
SELECT DISTINCT + ( + 53 ) / + + 36 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5226
SELECT ALL + + CAST( - + 93 AS SIGNED ) AS col2, - 79 + + 63
----
-93
-16

skipif mysql # not compatible
query II rowsort label-5226
SELECT ALL + + CAST ( - + 93 AS INTEGER ) AS col2, - 79 + + 63
----
-93
-16

query I rowsort
SELECT + + 26 * + 7 AS col0
----
182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5228
SELECT CASE - 22 WHEN - COALESCE ( - 37, - 61 ) - + - 86 THEN + 3 - - 71 + + 70 + + 85 + + - AVG ( 50 ) * + - ( + 3 ) / + CAST( ( 1 ) AS SIGNED ) * 1 WHEN - 77 - 80 THEN + 67 * 98 ELSE 67 + 85 END
----
152

skipif mysql # not compatible
query I rowsort label-5228
SELECT CASE - 22 WHEN - COALESCE ( - 37, - 61 ) - + - 86 THEN + 3 - - 71 + + 70 + + 85 + + - AVG ( 50 ) * + - ( + 3 ) / + CAST ( ( 1 ) AS INTEGER ) * 1 WHEN - 77 - 80 THEN + 67 * 98 ELSE 67 + 85 END
----
152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5229
SELECT ALL - SUM( - CASE + 16 WHEN 37 THEN + CAST( NULL AS SIGNED ) WHEN - 16 THEN NULL ELSE + 24 * 51 END ) * 39 - + CASE 86 WHEN + + 9 * - - 63 - - 29 THEN NULL WHEN 87 THEN + ( 91 ) * + COALESCE ( + 43, ( CASE 83 WHEN + 92 * 70 THEN + COUNT( * ) END ), - NULLIF ( 80, + 33 ) - + 88 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5229
SELECT ALL - SUM ( - CASE + 16 WHEN 37 THEN + CAST ( NULL AS INTEGER ) WHEN - 16 THEN NULL ELSE + 24 * 51 END ) * 39 - + CASE 86 WHEN + + 9 * - - 63 - - 29 THEN NULL WHEN 87 THEN + ( 91 ) * + COALESCE ( + 43, ( CASE 83 WHEN + 92 * 70 THEN + COUNT ( * ) END ), - NULLIF ( 80, + 33 ) - + 88 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5230
SELECT + - CASE + + ( - COALESCE ( + - CAST( 4 AS SIGNED ), + + COALESCE ( - 34, + 6 ), - 54 ) ) WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE + 79 + - 41 END - - - 20
----
-58

skipif mysql # not compatible
query I rowsort label-5230
SELECT + - CASE + + ( - COALESCE ( + - CAST ( 4 AS INTEGER ), + + COALESCE ( - 34, + 6 ), - 54 ) ) WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE + 79 + - 41 END - - - 20
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT ALL + 40 * - 64 * - MAX( ( + 0 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5231
SELECT ALL + 40 * - 64 * - MAX ( ( + 0 ) ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5232
SELECT + 73 * + COUNT( * ) AS col0, 71 + CAST( - 34 AS SIGNED ) + + + 33 AS col2
----
73
70

skipif mysql # not compatible
query II rowsort label-5232
SELECT + 73 * + COUNT ( * ) AS col0, 71 + CAST ( - 34 AS INTEGER ) + + + 33 AS col2
----
73
70

query I rowsort
SELECT DISTINCT NULLIF ( - - 6, 4 / + + 12 * - 4 * - 26 ) * - 24 AS col1
----
-144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5234
SELECT ALL 17 * + CAST( - 90 AS SIGNED )
----
-1530

skipif mysql # not compatible
query I rowsort label-5234
SELECT ALL 17 * + CAST ( - 90 AS INTEGER )
----
-1530

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT + 87 * + - COUNT( * ) + + ( - 74 )
----
-161

skipif mysql # not compatible
query I rowsort label-5235
SELECT + 87 * + - COUNT ( * ) + + ( - 74 )
----
-161

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5237
SELECT DISTINCT + 37 * + 55 DIV COUNT( * ) AS col2
----
2035

skipif mysql # not compatible
query I rowsort label-5237
SELECT DISTINCT + 37 * + 55 / COUNT ( * ) AS col2
----
2035

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT ALL - COUNT( * ) * - 47 + - 62 + ( - 7 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-5238
SELECT ALL - COUNT ( * ) * - 47 + - 62 + ( - 7 ) AS col1
----
-22

query I rowsort
SELECT + - 99 * - 54 + - 24 AS col0
----
5322

query I rowsort
SELECT + + 93 * + + 91
----
8463

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

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

query I rowsort
SELECT + - CASE - + 92 WHEN + 77 THEN 94 WHEN - 11 THEN NULL WHEN + 3 + 8 * - 9 THEN NULL ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5243
SELECT + NULLIF ( ( - + COUNT( * ) ), - 76 * + NULLIF ( COUNT( * ), + COUNT( * ) ) ), - 72 col0
----
-1
-72

skipif mysql # not compatible
query II rowsort label-5243
SELECT + NULLIF ( ( - + COUNT ( * ) ), - 76 * + NULLIF ( COUNT ( * ), + COUNT ( * ) ) ), - 72 col0
----
-1
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5244
SELECT COALESCE ( + 41, + + ( - 70 ) * - COUNT( + - 18 ) ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-5244
SELECT COALESCE ( + 41, + + ( - 70 ) * - COUNT ( + - 18 ) ) AS col1
----
41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT ALL - 42 * + ( 1 ) + + 90 * - COUNT( * ) * 30 + - COUNT( * ) + 79 + - 15
----
-2679

skipif mysql # not compatible
query I rowsort label-5246
SELECT ALL - 42 * + ( 1 ) + + 90 * - COUNT ( * ) * 30 + - COUNT ( * ) + 79 + - 15
----
-2679

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT CASE WHEN + COUNT( * ) IS NOT NULL THEN NULL ELSE - 91 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5247
SELECT CASE WHEN + COUNT ( * ) IS NOT NULL THEN NULL ELSE - 91 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5248
SELECT ALL 38 * 34 * - COUNT( * ) * + COUNT( * ) + COUNT( + - 38 )
----
-1291

skipif mysql # not compatible
query I rowsort label-5248
SELECT ALL 38 * 34 * - COUNT ( * ) * + COUNT ( * ) + COUNT ( + - 38 )
----
-1291

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT - ( - MIN( ALL - + 55 ) ) - + 30 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-5249
SELECT - ( - MIN ( ALL - + 55 ) ) - + 30 AS col2
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-5250
SELECT - 44 * + 88 + 81, 39 + COUNT( 88 ) * 32 AS col2
----
-3791
71

skipif mysql # not compatible
query II rowsort label-5250
SELECT - 44 * + 88 + 81, 39 + COUNT ( 88 ) * 32 AS col2
----
-3791
71

query I rowsort
SELECT - 70 * - 75
----
5250

query I rowsort
SELECT ALL 76 * - 43
----
-3268

query I rowsort
SELECT + 82 + 71
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-5254
SELECT - 88 DIV + - 1
----
88

skipif mysql # not compatible
query I rowsort label-5254
SELECT - 88 / + - 1
----
88

query I rowsort
SELECT + 0 * 61 * + 91 * - 43 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5256
SELECT COUNT( * ) col0, 95 DIV + 55 + + 53 + 35 AS col0
----
1
89

skipif mysql # not compatible
query II rowsort label-5256
SELECT COUNT ( * ) col0, 95 / + 55 + + 53 + 35 AS col0
----
1
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT ALL ( + + 80 ) * + 74 + + MIN( 16 ) AS col0
----
5936

skipif mysql # not compatible
query I rowsort label-5257
SELECT ALL ( + + 80 ) * + 74 + + MIN ( 16 ) AS col0
----
5936

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-5259
SELECT ALL CAST( + + COUNT( - 42 ) AS SIGNED ) AS col0, + 39, + ( + 75 ) * - - 71 + COUNT( DISTINCT 62 ) + 49 DIV - 58 + + 58 - + COUNT( * ) + - 0 AS col2
----
1
39
5383

skipif mysql # not compatible
query III rowsort label-5259
SELECT ALL CAST ( + + COUNT ( - 42 ) AS INTEGER ) AS col0, + 39, + ( + 75 ) * - - 71 + COUNT ( DISTINCT 62 ) + 49 / - 58 + + 58 - + COUNT ( * ) + - 0 AS col2
----
1
39
5383

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5260
SELECT - ( 89 ) + CASE - 11 WHEN + 43 THEN + COALESCE ( COUNT( * ), - 41 * COUNT( * ), + CAST( NULL AS SIGNED ) + - COUNT( * ) ) / + 82 + - COUNT( * ) * + 7 * 77 * - 35 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5260
SELECT - ( 89 ) + CASE - 11 WHEN + 43 THEN + COALESCE ( COUNT ( * ), - 41 * COUNT ( * ), + CAST ( NULL AS INTEGER ) + - COUNT ( * ) ) / + 82 + - COUNT ( * ) * + 7 * 77 * - 35 END
----
NULL

query I rowsort
SELECT ALL 34 - + COALESCE ( - - ( - 20 ), - 86, + + 4 ) AS col0
----
54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT - 99 + + - MIN( ALL - 14 )
----
-85

skipif mysql # not compatible
query I rowsort label-5264
SELECT - 99 + + - MIN ( ALL - 14 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT - - 15 + - MIN( DISTINCT - + 25 )
----
40

skipif mysql # not compatible
query I rowsort label-5265
SELECT - - 15 + - MIN ( DISTINCT - + 25 )
----
40

query I rowsort
SELECT - - 4 * - - 67 + 51
----
319

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT + MIN( 54 )
----
54

skipif mysql # not compatible
query I rowsort label-5267
SELECT + MIN ( 54 )
----
54

query I rowsort
SELECT + - 66 + - - 24 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT ALL + MAX( DISTINCT + 88 ) * + 96 + 31 * + - 10 AS col1
----
8138

skipif mysql # not compatible
query I rowsort label-5269
SELECT ALL + MAX ( DISTINCT + 88 ) * + 96 + 31 * + - 10 AS col1
----
8138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5270
SELECT - - 55 + + CAST( + 49 AS SIGNED ) AS col2
----
104

skipif mysql # not compatible
query I rowsort label-5270
SELECT - - 55 + + CAST ( + 49 AS INTEGER ) AS col2
----
104

query I rowsort
SELECT + 5 * 86
----
430

query I rowsort
SELECT DISTINCT - - 27 col0
----
27

query I rowsort
SELECT ALL - - 31 * 88
----
2728

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

skipif mysql # not compatible
query I rowsort label-5274
SELECT COUNT ( * ) / + - 40
----
0

query II rowsort
SELECT DISTINCT - 3 col2, - 74 * - ( 11 ) + + 49
----
-3
863

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5276
SELECT - COUNT( * ) * - COALESCE ( + CAST( NULL AS SIGNED ), 44 ) + - 54 + - COUNT( * ) + + + 61 + - + 68 + 18 + - 66 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-5276
SELECT - COUNT ( * ) * - COALESCE ( + CAST ( NULL AS INTEGER ), 44 ) + - 54 + - COUNT ( * ) + + + 61 + - + 68 + 18 + - 66 AS col1
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-5277
SELECT 8 DIV 95
----
0

skipif mysql # not compatible
query I rowsort label-5277
SELECT 8 / 95
----
0

query I rowsort
SELECT 52 * - 48 AS col1
----
-2496

query I rowsort
SELECT DISTINCT 77 + + 46 + - - 37
----
160

query I rowsort
SELECT ( - 52 ) * 38
----
-1976

query II rowsort
SELECT DISTINCT - 72 AS col2, COALESCE ( + NULLIF ( + 58, + + 82 ), - 98 * - 65 )
----
-72
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT DISTINCT 78 * - MAX( - + 63 )
----
4914

skipif mysql # not compatible
query I rowsort label-5282
SELECT DISTINCT 78 * - MAX ( - + 63 )
----
4914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5283
SELECT - 34 * + - COUNT( * ) + - - 38 + + CAST( NULL AS SIGNED ) * - 38 * - COUNT( * ) * - 10, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5283
SELECT - 34 * + - COUNT ( * ) + - - 38 + + CAST ( NULL AS INTEGER ) * - 38 * - COUNT ( * ) * - 10, COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5284
SELECT ALL + COUNT( * ) + - + 23 * + NULLIF ( + 96, - ( - COUNT( * ) ) ) * + + 25 AS col1, + ( 58 ) + + + 30 + + 37
----
-55199
125

skipif mysql # not compatible
query II rowsort label-5284
SELECT ALL + COUNT ( * ) + - + 23 * + NULLIF ( + 96, - ( - COUNT ( * ) ) ) * + + 25 AS col1, + ( 58 ) + + + 30 + + 37
----
-55199
125

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5285
SELECT ALL - 58 + - 54 AS col1, CAST( NULL AS SIGNED ) - - 77
----
-112
NULL

skipif mysql # not compatible
query II rowsort label-5285
SELECT ALL - 58 + - 54 AS col1, CAST ( NULL AS INTEGER ) - - 77
----
-112
NULL

query I rowsort
SELECT DISTINCT 71 * + - 96 AS col1
----
-6816

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT ALL 30 + - + COUNT( ALL - 93 )
----
29

skipif mysql # not compatible
query I rowsort label-5287
SELECT ALL 30 + - + COUNT ( ALL - 93 )
----
29

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5289
SELECT CASE 46 WHEN + - 69 * + - 75 THEN 10 * + + AVG ( DISTINCT - + 73 ) + - CAST( 5 AS SIGNED ) + + 83 WHEN 39 THEN + + 43 * - 74 / - CAST( + - 69 AS SIGNED ) + - 43 END + - 66 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5289
SELECT CASE 46 WHEN + - 69 * + - 75 THEN 10 * + + AVG ( DISTINCT - + 73 ) + - CAST ( 5 AS INTEGER ) + + 83 WHEN 39 THEN + + 43 * - 74 / - CAST ( + - 69 AS INTEGER ) + - 43 END + - 66 col0
----
NULL

query I rowsort
SELECT ALL 94 - + 44 AS col1
----
50

query I rowsort
SELECT ( + + 3 ) * - 48 + + 35 + 34
----
-75

query I rowsort
SELECT ALL 23 * 35
----
805

onlyif mysql # aggregate syntax: 
query II rowsort label-5293
SELECT DISTINCT - COUNT( * ) * - + 5 AS col2, - COUNT( * ) * + 69 + + + 65
----
5
-4

skipif mysql # not compatible
query II rowsort label-5293
SELECT DISTINCT - COUNT ( * ) * - + 5 AS col2, - COUNT ( * ) * + 69 + + + 65
----
5
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-5294
SELECT DISTINCT - CASE + 57 WHEN - + 31 THEN 24 + - 33 DIV + - 49 WHEN 95 THEN NULL ELSE 14 END * + 84 * - + 61 * + 7 * + 5 AS col2
----
2510760

skipif mysql # not compatible
query I rowsort label-5294
SELECT DISTINCT - CASE + 57 WHEN - + 31 THEN 24 + - 33 / + - 49 WHEN 95 THEN NULL ELSE 14 END * + 84 * - + 61 * + 7 * + 5 AS col2
----
2510760

query II rowsort
SELECT 1 * + + 10 AS col2, + 21 AS col0
----
10
21

query I rowsort
SELECT ALL 87 * + 78
----
6786

query I rowsort
SELECT - - 97 col0
----
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT 28 * + COUNT( * ) + - 89
----
-61

skipif mysql # not compatible
query I rowsort label-5299
SELECT 28 * + COUNT ( * ) + - 89
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5300
SELECT 18 DIV + COUNT( * ) + + 97 + + ( + COUNT( * ) ) * + 17 col1
----
132

skipif mysql # not compatible
query I rowsort label-5300
SELECT 18 / + COUNT ( * ) + + 97 + + ( + COUNT ( * ) ) * + 17 col1
----
132

query I rowsort
SELECT ALL 93 * 31 AS col0
----
2883

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5302
SELECT + COALESCE ( - + COUNT( * ), + + CAST( NULL AS SIGNED ), 33 ) * + COUNT( * ) + 0
----
-1

skipif mysql # not compatible
query I rowsort label-5302
SELECT + COALESCE ( - + COUNT ( * ), + + CAST ( NULL AS INTEGER ), 33 ) * + COUNT ( * ) + 0
----
-1

query I rowsort
SELECT - 60 * - + 31 * - 57 AS col2
----
-106020

query I rowsort
SELECT ALL CASE - 79 WHEN - 77 * 89 - + - 48 THEN - 38 END col1
----
NULL

query I rowsort
SELECT - 8 * ( + + 54 ) col0
----
-432

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT 46 + 22 + - COUNT( * ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-5306
SELECT 46 + 22 + - COUNT ( * ) AS col2
----
67

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

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

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

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

query I rowsort
SELECT + + COALESCE ( - - 16, - 45 * - ( + 2 ) * + - 71 )
----
16

query I rowsort
SELECT DISTINCT + 85 + - - 58 + + - 44 + 84 * 35 + - 53
----
2986

query I rowsort
SELECT + + 98 * 7 + + + 10 AS col1
----
696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5312
SELECT ALL + 26 + NULLIF ( + CAST( NULL AS SIGNED ), + 44 * - 40 + 4 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5312
SELECT ALL + 26 + NULLIF ( + CAST ( NULL AS INTEGER ), + 44 * - 40 + 4 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT DISTINCT - ( + - 1 ) * MIN( + 36 )
----
36

skipif mysql # not compatible
query I rowsort label-5313
SELECT DISTINCT - ( + - 1 ) * MIN ( + 36 )
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5314
SELECT ALL 30 + + 43 DIV - - COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-5314
SELECT ALL 30 + + 43 / - - COUNT ( * )
----
73

query I rowsort
SELECT 67 * + 7 * - 85
----
-39865

onlyif mysql # DIV for integer division: 
query I rowsort label-5316
SELECT 73 DIV - 97 * + - 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5316
SELECT 73 / - 97 * + - 79 AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT ALL + 81 - + 96 - - MIN( DISTINCT 4 ) + - 20 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-5318
SELECT ALL + 81 - + 96 - - MIN ( DISTINCT 4 ) + - 20 AS col2
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-5319
SELECT ALL - 27 DIV + 7 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-5319
SELECT ALL - 27 / + 7 AS col0
----
-3

query I rowsort
SELECT 57 * + 77 AS col2
----
4389

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5321
SELECT 63 - 96 - NULLIF ( - 0, - ( + 11 ) ) + - SUM( - 45 ) * CAST( NULL AS SIGNED ) * - COUNT( * ) / - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-5321
SELECT 63 - 96 - NULLIF ( - 0, - ( + 11 ) ) + - SUM ( - 45 ) * CAST ( NULL AS INTEGER ) * - COUNT ( * ) / - 49
----
NULL

query I rowsort
SELECT DISTINCT 88 * + 9 AS col1
----
792

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT ALL - 82 - 80 * + MAX( DISTINCT + + 96 )
----
-7762

skipif mysql # not compatible
query I rowsort label-5323
SELECT ALL - 82 - 80 * + MAX ( DISTINCT + + 96 )
----
-7762

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT ALL 23 * - COUNT( * ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-5324
SELECT ALL 23 * - COUNT ( * ) AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT MAX( DISTINCT 13 ) * NULLIF ( + 52, + 51 ) AS col0
----
676

skipif mysql # not compatible
query I rowsort label-5325
SELECT MAX ( DISTINCT 13 ) * NULLIF ( + 52, + 51 ) AS col0
----
676

query I rowsort
SELECT DISTINCT + 10 * + 18
----
180

query I rowsort
SELECT 98 - 87 AS col1
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-5328
SELECT ALL 68, + 60 - - + 0 + + - COUNT( * ) AS col1
----
68
59

skipif mysql # not compatible
query II rowsort label-5328
SELECT ALL 68, + 60 - - + 0 + + - COUNT ( * ) AS col1
----
68
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT 82 + + 62 * - MIN( 78 )
----
-4754

skipif mysql # not compatible
query I rowsort label-5329
SELECT 82 + + 62 * - MIN ( 78 )
----
-4754

query I rowsort
SELECT NULLIF ( 86, 46 + - + 88 + - 83 * + 36 + + - 5 )
----
86

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT ALL NULLIF ( - + 62, 10 / + 17 + 48 ) + + + COUNT( ALL - 27 ) + - 22 AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-5332
SELECT ALL NULLIF ( - + 62, 10 / + 17 + 48 ) + + + COUNT ( ALL - 27 ) + - 22 AS col0
----
-83

query I rowsort
SELECT + - 38 + + - 19 + + + 6 * - - 96
----
519

query I rowsort
SELECT DISTINCT 9 + 58 AS col1
----
67

query I rowsort
SELECT ALL + 8 + - 29
----
-21

query I rowsort
SELECT DISTINCT + 50 + 99 AS col0
----
149

onlyif mysql # DIV for integer division: 
query I rowsort label-5337
SELECT + 10 DIV 41 DIV 75
----
0

skipif mysql # not compatible
query I rowsort label-5337
SELECT + 10 / 41 / 75
----
0

query I rowsort
SELECT - 80 + + - 49 AS col2
----
-129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5339
SELECT ALL + 56 * + - 51 * CAST( - - 9 AS SIGNED )
----
-25704

skipif mysql # not compatible
query I rowsort label-5339
SELECT ALL + 56 * + - 51 * CAST ( - - 9 AS INTEGER )
----
-25704

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

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

query I rowsort
SELECT - - 87 * - 70
----
-6090

query I rowsort
SELECT ALL - 22 * + 3 - - - NULLIF ( - - 7, + - 92 ) col1
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5343
SELECT - 26 * COALESCE ( 47, 42, + + 76 ) * NULLIF ( - + CAST( NULL AS SIGNED ), + + 71 * 92 + + 48 ) * + 45 * - + ( - 35 ) + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5343
SELECT - 26 * COALESCE ( 47, 42, + + 76 ) * NULLIF ( - + CAST ( NULL AS INTEGER ), + + 71 * 92 + + 48 ) * + 45 * - + ( - 35 ) + + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + 65 * 32
----
2080

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

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

query I rowsort
SELECT COALESCE ( - - 81, 30 )
----
81

query I rowsort
SELECT - ( - 54 ) + + 74 AS col1
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT - COUNT( * ) * - 54 * 82 * + + 67 * - 27 AS col0
----
-8010252

skipif mysql # not compatible
query I rowsort label-5348
SELECT - COUNT ( * ) * - 54 * 82 * + + 67 * - 27 AS col0
----
-8010252

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT ALL - 23 * + + 89 * + + MAX( - ( + 4 ) )
----
8188

skipif mysql # not compatible
query I rowsort label-5349
SELECT ALL - 23 * + + 89 * + + MAX ( - ( + 4 ) )
----
8188

query I rowsort
SELECT ALL 59 * + - 33 AS col0
----
-1947

onlyif mysql # aggregate syntax: 
query I rowsort label-5351
SELECT ALL + 23 * - 16 * + COUNT( * ) AS col0
----
-368

skipif mysql # not compatible
query I rowsort label-5351
SELECT ALL + 23 * - 16 * + COUNT ( * ) AS col0
----
-368

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT + 31 * + 7 * COUNT( * ) + + ( - 54 )
----
163

skipif mysql # not compatible
query I rowsort label-5352
SELECT + 31 * + 7 * COUNT ( * ) + + ( - 54 )
----
163

query I rowsort
SELECT NULLIF ( + 52, + ( - 32 ) / + 71 / - 11 )
----
52

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

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

query II rowsort
SELECT ALL + 43, - ( - 14 ) - 57 + 6 AS col0
----
43
-37

query I rowsort
SELECT - CASE 4 WHEN + - ( - + 11 ) THEN 71 * 24 END * + 61 + 21 col2
----
NULL

query I rowsort
SELECT + 75 + - 67 AS col1
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-5358
SELECT + 70 AS col2, 74 * 77 + + + COUNT( * ) + - 8
----
70
5691

skipif mysql # not compatible
query II rowsort label-5358
SELECT + 70 AS col2, 74 * 77 + + + COUNT ( * ) + - 8
----
70
5691

onlyif mysql # aggregate syntax: 
query II rowsort label-5359
SELECT COUNT( * ), - 1 + + 5 * - 90 AS col0
----
1
-451

skipif mysql # not compatible
query II rowsort label-5359
SELECT COUNT ( * ), - 1 + + 5 * - 90 AS col0
----
1
-451

query I rowsort
SELECT 60 * 77 + + 93 AS col2
----
4713

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT + NULLIF ( - 60, + + COALESCE ( - + ( - NULLIF ( - COUNT( * ), 2 + + - 76 ) ), + COALESCE ( ( 98 ), + 81 - ( + 70 ) + + 63 ) + 99 * 52, + 34 ) ) col2
----
-60

skipif mysql # not compatible
query I rowsort label-5361
SELECT + NULLIF ( - 60, + + COALESCE ( - + ( - NULLIF ( - COUNT ( * ), 2 + + - 76 ) ), + COALESCE ( ( 98 ), + 81 - ( + 70 ) + + 63 ) + 99 * 52, + 34 ) ) col2
----
-60

onlyif mysql # DIV for integer division: 
query II rowsort label-5362
SELECT ALL - 84 * 98 DIV 55 + - - ( 73 ) * - 7 AS col1, - 63 * - 50 + + ( + 0 )
----
-660
3150

skipif mysql # not compatible
query II rowsort label-5362
SELECT ALL - 84 * 98 / 55 + - - ( 73 ) * - 7 AS col1, - 63 * - 50 + + ( + 0 )
----
-660
3150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5363
SELECT ALL COUNT( - CAST( 21 AS SIGNED ) ) + - - 57 * - 13 + 19 + + 20 + - 72 AS col1
----
-773

skipif mysql # not compatible
query I rowsort label-5363
SELECT ALL COUNT ( - CAST ( 21 AS INTEGER ) ) + - - 57 * - 13 + 19 + + 20 + - 72 AS col1
----
-773

onlyif mysql # DIV for integer division: 
query I rowsort label-5364
SELECT + + 18 DIV - 13
----
-1

skipif mysql # not compatible
query I rowsort label-5364
SELECT + + 18 / - 13
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT - MAX( 99 ) * + ( - 15 ) + + 53 + + 56 AS col0
----
1594

skipif mysql # not compatible
query I rowsort label-5365
SELECT - MAX ( 99 ) * + ( - 15 ) + + 53 + + 56 AS col0
----
1594

query I rowsort
SELECT + 51 * 48 col2
----
2448

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5367
SELECT ALL COUNT( * ) * 10 DIV - 55 col2
----
0

skipif mysql # not compatible
query I rowsort label-5367
SELECT ALL COUNT ( * ) * 10 / - 55 col2
----
0

query II rowsort
SELECT DISTINCT 26, - 72 AS col2
----
26
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-5369
SELECT DISTINCT - COUNT( * ), - 38 / AVG ( - + 86 ) * + - CASE - 10 WHEN + 42 THEN + + 46 ELSE NULL END AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-5369
SELECT DISTINCT - COUNT ( * ), - 38 / AVG ( - + 86 ) * + - CASE - 10 WHEN + 42 THEN + + 46 ELSE NULL END AS col1
----
-1
NULL

query I rowsort
SELECT + + 66 - + - 83
----
149

query I rowsort
SELECT ALL ( + + 53 ) col0
----
53

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5373
SELECT ALL CAST( - 29 AS SIGNED ) * - 76
----
2204

skipif mysql # not compatible
query I rowsort label-5373
SELECT ALL CAST ( - 29 AS INTEGER ) * - 76
----
2204

query I rowsort
SELECT + 53 * - 33 * + + 32
----
-55968

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5376
SELECT + CAST( NULL AS SIGNED ) + + 0 * 76 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5376
SELECT + CAST ( NULL AS INTEGER ) + + 0 * 76 col2
----
NULL

query I rowsort
SELECT ALL 77 * 33 AS col2
----
2541

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5378
SELECT + ( - + 39 ) + 44 * CAST( NULL AS SIGNED ) * + + 24 + COUNT( * ) + - 73 / - COALESCE ( - 19, - ( + + COUNT( * ) ), + AVG ( DISTINCT ( - ( + 83 ) ) ) ) * 23 + - NULLIF ( + - 58, + 38 ) * - 42 * 87 + 15 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5378
SELECT + ( - + 39 ) + 44 * CAST ( NULL AS INTEGER ) * + + 24 + COUNT ( * ) + - 73 / - COALESCE ( - 19, - ( + + COUNT ( * ) ), + AVG ( DISTINCT ( - ( + 83 ) ) ) ) * 23 + - NULLIF ( + - 58, + 38 ) * - 42 * 87 + 15 col2
----
NULL

query I rowsort
SELECT DISTINCT 12 * 67 AS col1
----
804

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5380
SELECT + 71 DIV 87 * + + 89 + 26 DIV 8 + - + 57 * + + CAST( - 66 AS SIGNED ) AS col2
----
3765

skipif mysql # not compatible
query I rowsort label-5380
SELECT + 71 / 87 * + + 89 + 26 / 8 + - + 57 * + + CAST ( - 66 AS INTEGER ) AS col2
----
3765

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

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

query I rowsort
SELECT ALL 18 * + - 19
----
-342

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5383
SELECT ALL + 64 DIV - 34 AS col2, + COUNT( * ) * + - 40 + - CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-5383
SELECT ALL + 64 / - 34 AS col2, + COUNT ( * ) * + - 40 + - CAST ( NULL AS INTEGER )
----
-1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5384
SELECT - 58 - - - 68, SUM( 45 ) AS col0
----
-126
45

skipif mysql # not compatible
query II rowsort label-5384
SELECT - 58 - - - 68, SUM ( 45 ) AS col0
----
-126
45

query I rowsort
SELECT 27 * - + ( 20 ) AS col0
----
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT ALL + COUNT( ALL 58 ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5386
SELECT ALL + COUNT ( ALL 58 ) + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT DISTINCT + ( 15 ) + - COUNT( * ) + - 17 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-5387
SELECT DISTINCT + ( 15 ) + - COUNT ( * ) + - 17 AS col1
----
-3

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

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

query I rowsort
SELECT DISTINCT + ( - - ( 55 ) ) + 25 AS col0
----
80

query II rowsort
SELECT ALL + 50 + 97 AS col0, 24 col1
----
147
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT + COUNT( + 97 ) + + 26 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-5391
SELECT + COUNT ( + 97 ) + + 26 AS col0
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-5392
SELECT SUM( 32 ), - 39 * - - 37 AS col0
----
32
-1443

skipif mysql # not compatible
query II rowsort label-5392
SELECT SUM ( 32 ), - 39 * - - 37 AS col0
----
32
-1443

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5393
SELECT DISTINCT - CAST( 98 AS SIGNED ) DIV - COUNT( * ) + - 15
----
83

skipif mysql # not compatible
query I rowsort label-5393
SELECT DISTINCT - CAST ( 98 AS INTEGER ) / - COUNT ( * ) + - 15
----
83

query I rowsort
SELECT + ( + 8 ) * + + 71
----
568

query I rowsort
SELECT DISTINCT - 7 - - 50
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT COALESCE ( - + COUNT( DISTINCT 66 ), 70, + 71 * 77 * - 12, - 81, - - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5396
SELECT COALESCE ( - + COUNT ( DISTINCT 66 ), 70, + 71 * 77 * - 12, - 81, - - COUNT ( * ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5397
SELECT SUM( ALL + + CAST( + 53 AS SIGNED ) ) + - 55
----
-2

skipif mysql # not compatible
query I rowsort label-5397
SELECT SUM ( ALL + + CAST ( + 53 AS INTEGER ) ) + - 55
----
-2

query I rowsort
SELECT DISTINCT + - 42 * + + 27 AS col2
----
-1134

query I rowsort
SELECT + 78 + + 68 + + 58
----
204

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5401
SELECT ( + - 20 ) * + - 36, 27 DIV - 89 * - 2 AS col1
----
720
0

skipif mysql # not compatible
query II rowsort label-5401
SELECT ( + - 20 ) * + - 36, 27 / - 89 * - 2 AS col1
----
720
0

query I rowsort
SELECT 96 + + - 7 - - 79 * - 38 * + 0
----
89

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

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

query II rowsort
SELECT 52, - 84 AS col2
----
52
-84

query II rowsort
SELECT 63, 65 + + - 72 AS col0
----
63
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT ALL COUNT( * ) + COALESCE ( + - 94, + 5 - - - COUNT( * ) * - 19 ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-5406
SELECT ALL COUNT ( * ) + COALESCE ( + - 94, + 5 - - - COUNT ( * ) * - 19 ) AS col2
----
-93

query II rowsort
SELECT + 97 col1, + 86 + + 51 * + - 39 AS col2
----
97
-1903

query I rowsort
SELECT 8 + - 40 + 78 * + 28
----
2152

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT DISTINCT 23 + MAX( DISTINCT + 97 )
----
120

skipif mysql # not compatible
query I rowsort label-5409
SELECT DISTINCT 23 + MAX ( DISTINCT + 97 )
----
120

query I rowsort
SELECT 20 * 12
----
240

onlyif mysql # DIV for integer division: 
query I rowsort label-5411
SELECT 27 DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-5411
SELECT 27 / + 87
----
0

query I rowsort
SELECT ALL 58 + + 26 AS col0
----
84

query I rowsort
SELECT 98 + 69 AS col1
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT DISTINCT 69 + 72 * + 59 + - COUNT( * )
----
4316

skipif mysql # not compatible
query I rowsort label-5414
SELECT DISTINCT 69 + 72 * + 59 + - COUNT ( * )
----
4316

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT NULLIF ( ( - 89 ), - 64 ) + - COUNT( * ) - - + COUNT( * ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-5415
SELECT NULLIF ( ( - 89 ), - 64 ) + - COUNT ( * ) - - + COUNT ( * ) AS col0
----
-89

query I rowsort
SELECT 10 * - + 74
----
-740

query II rowsort
SELECT 92 AS col1, - 96 + ( + 49 ) + 25
----
92
-22

query I rowsort
SELECT - 28 * 83 + - - 0 AS col1
----
-2324

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5419
SELECT + 10 * 76 + + 15 DIV 11 * - - CAST( - - 58 AS SIGNED ) AS col0
----
818

skipif mysql # not compatible
query I rowsort label-5419
SELECT + 10 * 76 + + 15 / 11 * - - CAST ( - - 58 AS INTEGER ) AS col0
----
818

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT + 33 + 52 + - SUM( DISTINCT + 87 ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-5421
SELECT + 33 + 52 + - SUM ( DISTINCT + 87 ) col0
----
-2

query I rowsort
SELECT + 65 * 7 * - 49 + - - 86 + - 46
----
-22255

onlyif mysql # aggregate syntax: 
query II rowsort label-5423
SELECT ALL 11, 65 + - - COUNT( * ) + + 30 + - - ( 63 ) - + - 1 col1
----
11
160

skipif mysql # not compatible
query II rowsort label-5423
SELECT ALL 11, 65 + - - COUNT ( * ) + + 30 + - - ( 63 ) - + - 1 col1
----
11
160

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5425
SELECT - 26 * - 30 + 26 - - ( - 8 ) DIV - + 32 * - - COUNT( * )
----
806

skipif mysql # not compatible
query I rowsort label-5425
SELECT - 26 * - 30 + 26 - - ( - 8 ) / - + 32 * - - COUNT ( * )
----
806

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT ALL + SUM( DISTINCT 15 )
----
15

skipif mysql # not compatible
query I rowsort label-5426
SELECT ALL + SUM ( DISTINCT 15 )
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-5427
SELECT + 35 DIV + ( - 81 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-5427
SELECT + 35 / + ( - 81 ) col2
----
0

query I rowsort
SELECT ALL - + 53 * 40 AS col1
----
-2120

query I rowsort
SELECT 35 * - 78 AS col1
----
-2730

query I rowsort
SELECT ALL - 64 * - 11 * 30 AS col0
----
21120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5431
SELECT 82 DIV MAX( DISTINCT 2 )
----
41

skipif mysql # not compatible
query I rowsort label-5431
SELECT 82 / MAX ( DISTINCT 2 )
----
41

query I rowsort
SELECT DISTINCT - 91 + - + 71
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT ALL MAX( ALL + 1 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5433
SELECT ALL MAX ( ALL + 1 ) col1
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-5434
SELECT 72 DIV - + 38 AS col0, 41 AS col1
----
-1
41

skipif mysql # not compatible
query II rowsort label-5434
SELECT 72 / - + 38 AS col0, 41 AS col1
----
-1
41

onlyif mysql # aggregate syntax: 
query II rowsort label-5435
SELECT 75 + - ( - COUNT( * ) ) * - 27 AS col1, - 95 + + 26 * 83 * - 62
----
48
-133891

skipif mysql # not compatible
query II rowsort label-5435
SELECT 75 + - ( - COUNT ( * ) ) * - 27 AS col1, - 95 + + 26 * 83 * - 62
----
48
-133891

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5436
SELECT COALESCE ( CAST( NULL AS SIGNED ), - + 96 + - ( + + 17 ), + - CAST( + 15 AS SIGNED ) * - - 26 * - - 9 * - + 94 - CASE + 79 WHEN - 54 THEN + 31 WHEN + 31 THEN + + 70 - - + 85 - 90 + - 48 * - 99 WHEN + + 58 THEN NULL ELSE + 49 * + CASE COUNT( * ) WHEN - 90 + 84 THEN 11 END * ( 25 ) END ) - MIN( DISTINCT - 12 )
----
-101

skipif mysql # not compatible
query I rowsort label-5436
SELECT COALESCE ( CAST ( NULL AS INTEGER ), - + 96 + - ( + + 17 ), + - CAST ( + 15 AS INTEGER ) * - - 26 * - - 9 * - + 94 - CASE + 79 WHEN - 54 THEN + 31 WHEN + 31 THEN + + 70 - - + 85 - 90 + - 48 * - 99 WHEN + + 58 THEN NULL ELSE + 49 * + CASE COUNT ( * ) WHEN - 90 + 84 THEN 11 END * ( 25 ) END ) - MIN ( DISTINCT - 12 )
----
-101

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5437
SELECT DISTINCT - 46 + 38 + - CASE + 97 WHEN - COUNT( * ) - 2 THEN 79 WHEN - ( + CAST( + 8 AS DECIMAL ) ) + + - 42 THEN NULL ELSE 96 END * - 19 AS col2
----
1816

skipif mysql # not compatible
query I rowsort label-5437
SELECT DISTINCT - 46 + 38 + - CASE + 97 WHEN - COUNT ( * ) - 2 THEN 79 WHEN - ( + CAST ( + 8 AS REAL ) ) + + - 42 THEN NULL ELSE 96 END * - 19 AS col2
----
1816

query I rowsort
SELECT - 23 + - 80 AS col1
----
-103

query II rowsort
SELECT ALL - 1 * 16 AS col0, - 59 + - ( - + 35 ) AS col1
----
-16
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-5440
SELECT DISTINCT + COALESCE ( - 79, + + 92 * - 39, 48 DIV - 65 ) col0
----
-79

skipif mysql # not compatible
query I rowsort label-5440
SELECT DISTINCT + COALESCE ( - 79, + + 92 * - 39, 48 / - 65 ) col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT ALL - 93 * - 85 + + 15 * - + 50 * COUNT( * ) * - 17 AS col0
----
20655

skipif mysql # not compatible
query I rowsort label-5441
SELECT ALL - 93 * - 85 + + 15 * - + 50 * COUNT ( * ) * - 17 AS col0
----
20655

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT + CASE - 91 WHEN + - SUM( - 30 ) * COUNT( * ) THEN NULL WHEN + AVG ( DISTINCT + + ( + - 4 ) ) THEN + 62 + - + 86 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5442
SELECT + CASE - 91 WHEN + - SUM ( - 30 ) * COUNT ( * ) THEN NULL WHEN + AVG ( DISTINCT + + ( + - 4 ) ) THEN + 62 + - + 86 END AS col2
----
NULL

query I rowsort
SELECT + - 56 + + 3 - - + 36 AS col1
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5444
SELECT ALL + - 50 * + 98 * 43 - - COALESCE ( + 62, + 44 ) - - CAST( NULL AS SIGNED ) + + COALESCE ( + 53, COUNT( * ) ) * ( - 31 ) * + - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-5444
SELECT ALL + - 50 * + 98 * 43 - - COALESCE ( + 62, + 44 ) - - CAST ( NULL AS INTEGER ) + + COALESCE ( + 53, COUNT ( * ) ) * ( - 31 ) * + - 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT + ( COUNT( * ) ) - 67 + - - 23 * + + 27 + - COUNT( * ) * - + 62 - + COALESCE ( - ( + 38 ), 96 ) col0
----
655

skipif mysql # not compatible
query I rowsort label-5445
SELECT + ( COUNT ( * ) ) - 67 + - - 23 * + + 27 + - COUNT ( * ) * - + 62 - + COALESCE ( - ( + 38 ), 96 ) col0
----
655

query I rowsort
SELECT + 74 * - - 67
----
4958

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT ALL - + COUNT( * ) * MAX( 40 ) + - 13 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-5447
SELECT ALL - + COUNT ( * ) * MAX ( 40 ) + - 13 AS col2
----
-53

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT - 30 * - NULLIF ( COUNT( * ), 13 * - - 21 ) + + 6 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-5450
SELECT - 30 * - NULLIF ( COUNT ( * ), 13 * - - 21 ) + + 6 AS col0
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-5451
SELECT + 20 - COUNT( * ), - 69 AS col2
----
19
-69

skipif mysql # not compatible
query II rowsort label-5451
SELECT + 20 - COUNT ( * ), - 69 AS col2
----
19
-69

query I rowsort
SELECT + - 54 * - 96
----
5184

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5453
SELECT ALL - COALESCE ( + 73, COUNT( * ) * + 29 ) AS col0, - COALESCE ( - + 70, 90 + ( NULLIF ( - - 33, COUNT( ALL + 42 ) ) ) ) DIV - 31 col2
----
-73
-2

skipif mysql # not compatible
query II rowsort label-5453
SELECT ALL - COALESCE ( + 73, COUNT ( * ) * + 29 ) AS col0, - COALESCE ( - + 70, 90 + ( NULLIF ( - - 33, COUNT ( ALL + 42 ) ) ) ) / - 31 col2
----
-73
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT + CASE 58 WHEN - 43 THEN - 35 + + + 31 WHEN - - 42 THEN NULL END + MIN( DISTINCT - 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5454
SELECT + CASE 58 WHEN - 43 THEN - 35 + + + 31 WHEN - - 42 THEN NULL END + MIN ( DISTINCT - 37 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5455
SELECT - 34 * 83 - - COUNT( * ) + - + 9 * + - 98 * + CASE - - 1 WHEN - + 63 + - CASE - - 46 WHEN + 15 + - 99 THEN - + COUNT( * ) END + - COALESCE ( 97, + 84, + CAST( MIN( DISTINCT + ( - 90 ) ) AS SIGNED ) ) THEN - 1 * + COUNT( * ) + + 62 + + COUNT( * ) / 21 * + COALESCE ( - 51 - 21, 83, COUNT( * ) + 97 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5455
SELECT - 34 * 83 - - COUNT ( * ) + - + 9 * + - 98 * + CASE - - 1 WHEN - + 63 + - CASE - - 46 WHEN + 15 + - 99 THEN - + COUNT ( * ) END + - COALESCE ( 97, + 84, + CAST ( MIN ( DISTINCT + ( - 90 ) ) AS INTEGER ) ) THEN - 1 * + COUNT ( * ) + + 62 + + COUNT ( * ) / 21 * + COALESCE ( - 51 - 21, 83, COUNT ( * ) + 97 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 73 * 41 * - - 67
----
200531

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT + 77 + + 13 * - ( + 99 ) * 26 + - + 25 * + COUNT( * ) AS col0
----
-33410

skipif mysql # not compatible
query I rowsort label-5457
SELECT + 77 + + 13 * - ( + 99 ) * 26 + - + 25 * + COUNT ( * ) AS col0
----
-33410

query I rowsort
SELECT - 60 * + + 44 AS col2
----
-2640

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT ALL - MAX( DISTINCT - 19 ) * - ( + + MAX( ALL 70 ) ) * 19 col0
----
-25270

skipif mysql # not compatible
query I rowsort label-5459
SELECT ALL - MAX ( DISTINCT - 19 ) * - ( + + MAX ( ALL 70 ) ) * 19 col0
----
-25270

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT DISTINCT MIN( + 12 ) + - 55 col0
----
-43

skipif mysql # not compatible
query I rowsort label-5460
SELECT DISTINCT MIN ( + 12 ) + - 55 col0
----
-43

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5462
SELECT - 89 + + + COUNT( * ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-5462
SELECT - 89 + + + COUNT ( * ) AS col0
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5463
SELECT DISTINCT MAX( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5463
SELECT DISTINCT MAX ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT - ( - - 24 )
----
-24

query I rowsort
SELECT - 83 + + + 85
----
2

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

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

query I rowsort
SELECT - ( 80 )
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5468
SELECT - 59 + COALESCE ( MAX( ALL + + CAST( - 51 AS SIGNED ) ), 73 * + 8 ) AS col0
----
-110

skipif mysql # not compatible
query I rowsort label-5468
SELECT - 59 + COALESCE ( MAX ( ALL + + CAST ( - 51 AS INTEGER ) ), 73 * + 8 ) AS col0
----
-110

query I rowsort
SELECT - ( - 78 ) AS col2
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5470
SELECT ALL + 6 + SUM( + CAST( NULL AS SIGNED ) ) + COALESCE ( 41, - - 15 ) + - 2 * + 86 + - 21 - + 38 + 4 * - COUNT( * ) * - 47 / + 77 / 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5470
SELECT ALL + 6 + SUM ( + CAST ( NULL AS INTEGER ) ) + COALESCE ( 41, - - 15 ) + - 2 * + 86 + - 21 - + 38 + 4 * - COUNT ( * ) * - 47 / + 77 / 5 AS col0
----
NULL

query I rowsort
SELECT - 23 * ( + 41 ) AS col1
----
-943

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5472
SELECT ALL + 33 DIV + + NULLIF ( ( + ( - 93 ) ), + ( COUNT( * ) ) ) * + 20
----
0

skipif mysql # not compatible
query I rowsort label-5472
SELECT ALL + 33 / + + NULLIF ( ( + ( - 93 ) ), + ( COUNT ( * ) ) ) * + 20
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5473
SELECT - 40 + - 17 + CASE + 43 WHEN + ( - CAST( 16 AS SIGNED ) ) THEN NULL ELSE 23 * - CAST( - 22 AS SIGNED ) * 64 + + 66 + + 65 + - 68 * + - 65 + 79 + COUNT( * ) + + - 57 END + + + CAST( NULL AS SIGNED ) * - CASE WHEN - MAX( DISTINCT - - 3 ) BETWEEN - ( + - COUNT( * ) ) AND 29 * MIN( - COALESCE ( NULLIF ( + 7, + CAST( NULL AS DECIMAL ) ), 47 ) ) THEN 52 - + 38 * - 95 END * 32 / + AVG ( - CASE + 94 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN 87 THEN - CASE - 37 WHEN + 60 THEN - 87 + 48 END / - 18 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5473
SELECT - 40 + - 17 + CASE + 43 WHEN + ( - CAST ( 16 AS INTEGER ) ) THEN NULL ELSE 23 * - CAST ( - 22 AS INTEGER ) * 64 + + 66 + + 65 + - 68 * + - 65 + 79 + COUNT ( * ) + + - 57 END + + + CAST ( NULL AS INTEGER ) * - CASE WHEN - MAX ( DISTINCT - - 3 ) BETWEEN - ( + - COUNT ( * ) ) AND 29 * MIN ( - COALESCE ( NULLIF ( + 7, + CAST ( NULL AS REAL ) ), 47 ) ) THEN 52 - + 38 * - 95 END * 32 / + AVG ( - CASE + 94 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN 87 THEN - CASE - 37 WHEN + 60 THEN - 87 + 48 END / - 18 END )
----
NULL

query I rowsort
SELECT DISTINCT + 61 + - + ( + 24 ) col1
----
37

query I rowsort
SELECT ALL - 6 + - + 37 AS col0
----
-43

query I rowsort
SELECT DISTINCT + ( - - 62 ) * 59
----
3658

query I rowsort
SELECT - 93 * - + 97 AS col2
----
9021

query I rowsort
SELECT DISTINCT + 16 * + - 94 AS col2
----
-1504

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT + CASE + + 27 WHEN + NULLIF ( + 19, - COUNT( * ) ) THEN - - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5480
SELECT + CASE + + 27 WHEN + NULLIF ( + 19, - COUNT ( * ) ) THEN - - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT ALL - - 6 / 95 + - + SUM( DISTINCT - + 13 ) - + 74 + + - 61 * + CASE - + 89 WHEN + + ( 60 ) THEN COUNT( * ) + - 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5481
SELECT ALL - - 6 / 95 + - + SUM ( DISTINCT - + 13 ) - + 74 + + - 61 * + CASE - + 89 WHEN + + ( 60 ) THEN COUNT ( * ) + - 90 END
----
NULL

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

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

query I rowsort
SELECT ALL + CASE - 80 WHEN + 62 * - 6 THEN - 10 END AS col2
----
NULL

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

query II rowsort
SELECT DISTINCT + + 56 AS col2, 37 AS col2
----
56
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT - 48 * - - COUNT( * ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-5486
SELECT - 48 * - - COUNT ( * ) AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT + COUNT( * ) + COUNT( * ) * + 32
----
33

skipif mysql # not compatible
query I rowsort label-5487
SELECT + COUNT ( * ) + COUNT ( * ) * + 32
----
33

query I rowsort
SELECT + + 92 + NULLIF ( - 77, - + 54 + 80 )
----
15

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

query I rowsort
SELECT + + 29 col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT + - COUNT( * ) * - ( - - COALESCE ( - 69, + + 53 ) )
----
-69

skipif mysql # not compatible
query I rowsort label-5491
SELECT + - COUNT ( * ) * - ( - - COALESCE ( - 69, + + 53 ) )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT DISTINCT + COUNT( * ) * - 86 + - 62 + 29 - - ( + 64 )
----
-55

skipif mysql # not compatible
query I rowsort label-5492
SELECT DISTINCT + COUNT ( * ) * - 86 + - 62 + 29 - - ( + 64 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT ALL - 8 * + COUNT( * ) + 6 + + - 74 * - 46 col2
----
3402

skipif mysql # not compatible
query I rowsort label-5493
SELECT ALL - 8 * + COUNT ( * ) + 6 + + - 74 * - 46 col2
----
3402

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

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

query I rowsort
SELECT ALL + 93 * 42 + + 34
----
3940

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT DISTINCT - ( + + 82 ) * + ( - COUNT( * ) ) * + 82 + - MAX( + 90 )
----
6634

skipif mysql # not compatible
query I rowsort label-5496
SELECT DISTINCT - ( + + 82 ) * + ( - COUNT ( * ) ) * + 82 + - MAX ( + 90 )
----
6634

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5497
SELECT + + 56 DIV + MAX( ALL 33 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5497
SELECT + + 56 / + MAX ( ALL 33 ) col2
----
1

query I rowsort
SELECT ALL - - 95 * + 41 + + 40
----
3935

query I rowsort
SELECT + 65 * - 57
----
-3705

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT MAX( DISTINCT + 48 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-5500
SELECT MAX ( DISTINCT + 48 ) AS col1
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-5501
SELECT + ( + + 75 ) DIV + 82
----
0

skipif mysql # not compatible
query I rowsort label-5501
SELECT + ( + + 75 ) / + 82
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5502
SELECT CAST( NULL AS DECIMAL ) + + 49 + - 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5502
SELECT CAST ( NULL AS REAL ) + + 49 + - 79 AS col2
----
NULL

query I rowsort
SELECT 21 * - 88 AS col2
----
-1848

query I rowsort
SELECT ALL 41 + 58 * 82
----
4797

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5505
SELECT DISTINCT 90 AS col0, - 55 + 91 + + ( + 71 ) * + + 41 * - - 74 * + - CASE ( - 99 ) WHEN - + 49 THEN NULL WHEN 88 * 31 + - 96 + + CASE + COUNT( * ) WHEN 22 / NULLIF ( - - 75, - + 99 + ( 60 ) ) + - 5 + - 11 - 30 * - CAST( 69 AS SIGNED ) + - ( ( 52 ) ) - 53 THEN NULL WHEN 20 THEN + NULLIF ( + COALESCE ( 13, - 27 + 36 ), 48 ) END THEN 92 * 52 END AS col2
----
90
NULL

skipif mysql # not compatible
query II rowsort label-5505
SELECT DISTINCT 90 AS col0, - 55 + 91 + + ( + 71 ) * + + 41 * - - 74 * + - CASE ( - 99 ) WHEN - + 49 THEN NULL WHEN 88 * 31 + - 96 + + CASE + COUNT ( * ) WHEN 22 / NULLIF ( - - 75, - + 99 + ( 60 ) ) + - 5 + - 11 - 30 * - CAST ( 69 AS INTEGER ) + - ( ( 52 ) ) - 53 THEN NULL WHEN 20 THEN + NULLIF ( + COALESCE ( 13, - 27 + 36 ), 48 ) END THEN 92 * 52 END AS col2
----
90
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5506
SELECT DISTINCT 70 + + 48 - - 20 - + + 27 * - 81 * + + MAX( DISTINCT 47 ) * - - 64 - - + 23 + 80 * - COUNT( * ) / - - MAX( ALL + + 1 ) / COUNT( * ) * + CAST( NULL AS SIGNED ) * + 9 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5506
SELECT DISTINCT 70 + + 48 - - 20 - + + 27 * - 81 * + + MAX ( DISTINCT 47 ) * - - 64 - - + 23 + 80 * - COUNT ( * ) / - - MAX ( ALL + + 1 ) / COUNT ( * ) * + CAST ( NULL AS INTEGER ) * + 9 col1
----
NULL

query II rowsort
SELECT - 97, - 88 AS col0
----
-97
-88

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5509
SELECT ALL 5 + - 95 DIV - - MAX( - 23 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-5509
SELECT ALL 5 + - 95 / - - MAX ( - 23 ) AS col2
----
9

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5511
SELECT COALESCE ( + 79, + ( - - NULLIF ( 8, 13 ) ), - 40 + + + 10 ) + - 24 * - - 0 DIV ( + + 20 )
----
79

skipif mysql # not compatible
query I rowsort label-5511
SELECT COALESCE ( + 79, + ( - - NULLIF ( 8, 13 ) ), - 40 + + + 10 ) + - 24 * - - 0 / ( + + 20 )
----
79

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5513
SELECT 45 - 98 + - - 27 - 38 DIV + + MAX( - 17 ) col2
----
-24

skipif mysql # not compatible
query I rowsort label-5513
SELECT 45 - 98 + - - 27 - 38 / + + MAX ( - 17 ) col2
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5514
SELECT 22, 0 DIV + COALESCE ( 20, + + SUM( 79 ) DIV - + COALESCE ( + 60, - + 58 ), + 2 ) col2
----
22
0

skipif mysql # not compatible
query II rowsort label-5514
SELECT 22, 0 / + COALESCE ( 20, + + SUM ( 79 ) / - + COALESCE ( + 60, - + 58 ), + 2 ) col2
----
22
0

query II rowsort
SELECT - 69 AS col1, 83 AS col2
----
-69
83

query I rowsort
SELECT ALL + 12 - + + 8 AS col1
----
4

query I rowsort
SELECT 61 * - 7
----
-427

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT CASE 87 WHEN - 15 THEN + + MAX( ALL + 33 ) ELSE NULL END + - 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5518
SELECT CASE 87 WHEN - 15 THEN + + MAX ( ALL + 33 ) ELSE NULL END + - 85 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5519
SELECT DISTINCT + ( 56 ) DIV - 65
----
0

skipif mysql # not compatible
query I rowsort label-5519
SELECT DISTINCT + ( 56 ) / - 65
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5520
SELECT 41 * + 18 * + COUNT( * ) * - 59, ( + 79 ) AS col1
----
-43542
79

skipif mysql # not compatible
query II rowsort label-5520
SELECT 41 * + 18 * + COUNT ( * ) * - 59, ( + 79 ) AS col1
----
-43542
79

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

skipif mysql # not compatible
query I rowsort label-5521
SELECT ALL - - 75 * - + COUNT ( * ) AS col0
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-5522
SELECT - 79 * + - SUM( ALL - + 8 ) * - COUNT( * ) col1, 48
----
632
48

skipif mysql # not compatible
query II rowsort label-5522
SELECT - 79 * + - SUM ( ALL - + 8 ) * - COUNT ( * ) col1, 48
----
632
48

onlyif mysql # DIV for integer division: 
query I rowsort label-5523
SELECT 76 DIV + - 6 + + + 50 + 79
----
117

skipif mysql # not compatible
query I rowsort label-5523
SELECT 76 / + - 6 + + + 50 + 79
----
117

query II rowsort
SELECT + NULLIF ( - + 65, + 81 + + 97 ) AS col2, - 53 + 71
----
-65
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT NULLIF ( + - COUNT( * ), + 51 + 41 ) * + ( + SUM( + 16 ) ) * + 17 + - - 16
----
-256

skipif mysql # not compatible
query I rowsort label-5525
SELECT NULLIF ( + - COUNT ( * ), + 51 + 41 ) * + ( + SUM ( + 16 ) ) * + 17 + - - 16
----
-256

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT ALL + - ( + 54 ) * COUNT( * ) + + ( - + 16 ) + - NULLIF ( 74, - + 26 ) * + 59 + 39 AS col2
----
-4397

skipif mysql # not compatible
query I rowsort label-5526
SELECT ALL + - ( + 54 ) * COUNT ( * ) + + ( - + 16 ) + - NULLIF ( 74, - + 26 ) * + 59 + 39 AS col2
----
-4397

query I rowsort
SELECT 10 * - 78
----
-780

query I rowsort
SELECT - ( - 90 ) - - 52
----
142

query II rowsort
SELECT + 75, + 53 * - 26 AS col1
----
75
-1378

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT ALL - + 79 + + + SUM( + + 30 ) + - 21 + - + 17 AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-5530
SELECT ALL - + 79 + + + SUM ( + + 30 ) + - 21 + - + 17 AS col2
----
-87

query I rowsort
SELECT DISTINCT + 88 + + 20
----
108

query II rowsort
SELECT ALL - - 38, + 92 + - 48 AS col1
----
38
44

query I rowsort
SELECT ALL + 66 + 56 * + 73 col1
----
4154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5534
SELECT ALL + - MAX( - 25 ) + - 7 DIV + 66 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-5534
SELECT ALL + - MAX ( - 25 ) + - 7 / + 66 AS col0
----
25

query II rowsort
SELECT DISTINCT - + 60, + 97 col1
----
-60
97

onlyif mysql # aggregate syntax: 
query II rowsort label-5536
SELECT ALL 35 + + COUNT( * ) + 22 * 8 * + 11 * 38 AS col2, ( - 14 )
----
73604
-14

skipif mysql # not compatible
query II rowsort label-5536
SELECT ALL 35 + + COUNT ( * ) + 22 * 8 * + 11 * 38 AS col2, ( - 14 )
----
73604
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT DISTINCT 39 * - ( 83 ) * - - 39 + - COUNT( * ) + - ( + - ( 89 ) ) * 17 * 55 + + 95 - 20 AS col0
----
-42954

skipif mysql # not compatible
query I rowsort label-5537
SELECT DISTINCT 39 * - ( 83 ) * - - 39 + - COUNT ( * ) + - ( + - ( 89 ) ) * 17 * 55 + + 95 - 20 AS col0
----
-42954

query I rowsort
SELECT ALL + - 91 + 75
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5539
SELECT + - 67 * - 15 + - ( - 11 ) * + + 59 + + 74 + - ( 46 ) + CAST( NULL AS SIGNED ) + + 6 * - 23 * 88 + + COALESCE ( - 4, - - 98 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5539
SELECT + - 67 * - 15 + - ( - 11 ) * + + 59 + + 74 + - ( 46 ) + CAST ( NULL AS INTEGER ) + + 6 * - 23 * 88 + + COALESCE ( - 4, - - 98 ) AS col1
----
NULL

query II rowsort
SELECT ( 12 ) - 95 * + 66 AS col2, + 65 * - - 48 * + 14 AS col1
----
-6258
43680

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT ALL - COUNT( * ) + 23 + + 60 * 77 + - 25 * + COUNT( * ) col0
----
4617

skipif mysql # not compatible
query I rowsort label-5541
SELECT ALL - COUNT ( * ) + 23 + + 60 * 77 + - 25 * + COUNT ( * ) col0
----
4617

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

skipif mysql # not compatible
query I rowsort label-5542
SELECT ( COUNT ( * ) ) / + 89
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5543
SELECT MIN( + - 47 ) + + 34
----
-13

skipif mysql # not compatible
query I rowsort label-5543
SELECT MIN ( + - 47 ) + + 34
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT DISTINCT CASE + + 30 WHEN + - 60 THEN - COUNT( * ) END * 23 * + 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5544
SELECT DISTINCT CASE + + 30 WHEN + - 60 THEN - COUNT ( * ) END * 23 * + 71 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5545
SELECT DISTINCT + 60 + + + 6, - COUNT( * ) + - - CASE WHEN 8 IS NULL THEN NULL ELSE + + 34 / ( - 19 ) - - 33 + CAST( NULL AS SIGNED ) + - 33 + + 14 * + 88 * + 6 * + 14 / + 44 END / CAST( + 81 AS SIGNED ) / + - 6 * - + 14 AS col1
----
66
NULL

skipif mysql # not compatible
query II rowsort label-5545
SELECT DISTINCT + 60 + + + 6, - COUNT ( * ) + - - CASE WHEN 8 IS NULL THEN NULL ELSE + + 34 / ( - 19 ) - - 33 + CAST ( NULL AS INTEGER ) + - 33 + + 14 * + 88 * + 6 * + 14 / + 44 END / CAST ( + 81 AS INTEGER ) / + - 6 * - + 14 AS col1
----
66
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5546
SELECT NULLIF ( - 9, 69 ) + - - 36 + CAST( COUNT( * ) AS SIGNED ) * - 5 * + + 33
----
-138

skipif mysql # not compatible
query I rowsort label-5546
SELECT NULLIF ( - 9, 69 ) + - - 36 + CAST ( COUNT ( * ) AS INTEGER ) * - 5 * + + 33
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT ALL + 42 - MAX( + + 38 ) + 4 + + 33 * + 85 AS col1
----
2813

skipif mysql # not compatible
query I rowsort label-5547
SELECT ALL + 42 - MAX ( + + 38 ) + 4 + + 33 * + 85 AS col1
----
2813

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5548
SELECT ( + COUNT( * ) ) * + COUNT( * ) + MAX( + - CAST( 62 AS SIGNED ) )
----
-61

skipif mysql # not compatible
query I rowsort label-5548
SELECT ( + COUNT ( * ) ) * + COUNT ( * ) + MAX ( + - CAST ( 62 AS INTEGER ) )
----
-61

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5550
SELECT ALL CASE 32 WHEN + 48 THEN - - 30 ELSE NULL END - + 4 AS col1, - 38 + + + 34 + MIN( ALL + 28 ) AS col2
----
NULL
24

skipif mysql # not compatible
query II rowsort label-5550
SELECT ALL CASE 32 WHEN + 48 THEN - - 30 ELSE NULL END - + 4 AS col1, - 38 + + + 34 + MIN ( ALL + 28 ) AS col2
----
NULL
24

onlyif mysql # DIV for integer division: 
query I rowsort label-5551
SELECT DISTINCT 46 DIV - 28
----
-1

skipif mysql # not compatible
query I rowsort label-5551
SELECT DISTINCT 46 / - 28
----
-1

query I rowsort
SELECT 7 + + 86 * + 40
----
3447

onlyif mysql # DIV for integer division: 
query II rowsort label-5553
SELECT DISTINCT 93 DIV - + 83 AS col0, - 97 * + 32
----
-1
-3104

skipif mysql # not compatible
query II rowsort label-5553
SELECT DISTINCT 93 / - + 83 AS col0, - 97 * + 32
----
-1
-3104

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

skipif mysql # not compatible
query I rowsort label-5554
SELECT COUNT ( * ) * - 40
----
-40

query I rowsort
SELECT DISTINCT 67 col2
----
67

query I rowsort
SELECT DISTINCT 39 * + + 14 * - - 24 AS col2
----
13104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5557
SELECT ALL COALESCE ( - ( 39 ), + - 79 DIV ( + 17 ), - + COALESCE ( ( - 51 ), - NULLIF ( 69, - - COUNT( * ) * + 80 DIV + COUNT( ALL - 85 ) * + 78 * - 24 + - - NULLIF ( + + 4, 84 + - - 73 ) + COALESCE ( + - 15, + 22, + 30 + 68 ) * + - 90 + + 3 * NULLIF ( + 47, 18 * CASE 56 DIV + 28 WHEN 86 THEN - NULLIF ( 21, + 33 ) WHEN - 63 THEN 72 ELSE 32 - COUNT( * ) END ) - 55 ) DIV 13 ) - - 38 * + 60 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-5557
SELECT ALL COALESCE ( - ( 39 ), + - 79 / ( + 17 ), - + COALESCE ( ( - 51 ), - NULLIF ( 69, - - COUNT ( * ) * + 80 / + COUNT ( ALL - 85 ) * + 78 * - 24 + - - NULLIF ( + + 4, 84 + - - 73 ) + COALESCE ( + - 15, + 22, + 30 + 68 ) * + - 90 + + 3 * NULLIF ( + 47, 18 * CASE 56 / + 28 WHEN 86 THEN - NULLIF ( 21, + 33 ) WHEN - 63 THEN 72 ELSE 32 - COUNT ( * ) END ) - 55 ) / 13 ) - - 38 * + 60 ) AS col2
----
-39

query I rowsort
SELECT ALL + 22 * 14 col2
----
308

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT SUM( - 33 ) * - 92
----
3036

skipif mysql # not compatible
query I rowsort label-5559
SELECT SUM ( - 33 ) * - 92
----
3036

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5560
SELECT - 10 * 10 * + + 27 - 43 * - SUM( ALL COALESCE ( - 28, + - 1 ) ) + NULLIF ( CAST( NULL AS SIGNED ), + 87 + + 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5560
SELECT - 10 * 10 * + + 27 - 43 * - SUM ( ALL COALESCE ( - 28, + - 1 ) ) + NULLIF ( CAST ( NULL AS INTEGER ), + 87 + + 66 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5561
SELECT CAST( - - 1 AS SIGNED ) + 91
----
92

skipif mysql # not compatible
query I rowsort label-5561
SELECT CAST ( - - 1 AS INTEGER ) + 91
----
92

query I rowsort
SELECT + 86 + + + 6
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT ALL + 22 * - + ( + - 80 ) + + + 58 * + 22 * - + COUNT( * ) AS col2
----
484

skipif mysql # not compatible
query I rowsort label-5563
SELECT ALL + 22 * - + ( + - 80 ) + + + 58 * + 22 * - + COUNT ( * ) AS col2
----
484

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

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

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

query I rowsort
SELECT + + 71 * + - 0 + - 26 + COALESCE ( 41, - 15, - 49 ) AS col1
----
15

query I rowsort
SELECT ALL + 7 * - - CASE + 72 WHEN + + 73 / - + 67 THEN + - 98 END + - 72 AS col1
----
NULL

query I rowsort
SELECT ALL - 93 * + 68 + + - 73 + + - 72 * + 9 AS col1
----
-7045

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5570
SELECT ALL 18 * + 97 + 84 + + NULLIF ( + CASE + CAST( NULL AS SIGNED ) WHEN + 38 / + SUM( DISTINCT - - 57 ) * + 78 * - + COUNT( * ) THEN + CAST( NULL AS SIGNED ) / - 90 + + MAX( + 25 ) + + 58 * - 17 WHEN + ( 19 ) THEN NULL END, - 8 + + COALESCE ( 42, - - 71 * 37 ) ) + 82 + + - COUNT( + 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5570
SELECT ALL 18 * + 97 + 84 + + NULLIF ( + CASE + CAST ( NULL AS INTEGER ) WHEN + 38 / + SUM ( DISTINCT - - 57 ) * + 78 * - + COUNT ( * ) THEN + CAST ( NULL AS INTEGER ) / - 90 + + MAX ( + 25 ) + + 58 * - 17 WHEN + ( 19 ) THEN NULL END, - 8 + + COALESCE ( 42, - - 71 * 37 ) ) + 82 + + - COUNT ( + 45 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT + COALESCE ( 52, 51 * - + 93 + + MAX( DISTINCT - - 37 ) )
----
52

skipif mysql # not compatible
query I rowsort label-5571
SELECT + COALESCE ( 52, 51 * - + 93 + + MAX ( DISTINCT - - 37 ) )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT + COUNT( * ) + - + 23 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-5572
SELECT + COUNT ( * ) + - + 23 AS col0
----
-22

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5574
SELECT + - CAST( - - NULLIF ( - - 54, + 10 - - 37 ) AS SIGNED ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-5574
SELECT + - CAST ( - - NULLIF ( - - 54, + 10 - - 37 ) AS INTEGER ) AS col1
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-5575
SELECT - + 48 + + 30 AS col0, + 79 * - COUNT( * ) AS col1
----
-18
-79

skipif mysql # not compatible
query II rowsort label-5575
SELECT - + 48 + + 30 AS col0, + 79 * - COUNT ( * ) AS col1
----
-18
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT ALL + ( 85 ) + + 23 * + COUNT( * ) AS col0
----
108

skipif mysql # not compatible
query I rowsort label-5576
SELECT ALL + ( 85 ) + + 23 * + COUNT ( * ) AS col0
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5577
SELECT ALL - CAST( 86 AS SIGNED ) * 43
----
-3698

skipif mysql # not compatible
query I rowsort label-5577
SELECT ALL - CAST ( 86 AS INTEGER ) * 43
----
-3698

query II rowsort
SELECT + 27 AS col0, 66 AS col1
----
27
66

onlyif mysql # aggregate syntax: 
query II rowsort label-5579
SELECT COUNT( * ) AS col0, - 17 * + 92
----
1
-1564

skipif mysql # not compatible
query II rowsort label-5579
SELECT COUNT ( * ) AS col0, - 17 * + 92
----
1
-1564

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

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

query I rowsort
SELECT - 24 * + 63
----
-1512

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT ALL + 74 - + + COUNT( * ) + - - 35
----
108

skipif mysql # not compatible
query I rowsort label-5582
SELECT ALL + 74 - + + COUNT ( * ) + - - 35
----
108

query II rowsort
SELECT ALL + 40 AS col1, 3
----
40
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT DISTINCT CASE - - 49 WHEN - 16 THEN - 47 + COUNT( * ) * - - ( + 83 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5584
SELECT DISTINCT CASE - - 49 WHEN - 16 THEN - 47 + COUNT ( * ) * - - ( + 83 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5585
SELECT ALL COALESCE ( 18, + 98 * + MAX( + + 73 ) DIV - - NULLIF ( - + 25, - 90 ) * + 98 + + 51 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-5585
SELECT ALL COALESCE ( 18, + 98 * + MAX ( + + 73 ) / - - NULLIF ( - + 25, - 90 ) * + 98 + + 51 ) AS col0
----
18

query II rowsort
SELECT - 90, 78 AS col0
----
-90
78

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

skipif mysql # not compatible
query I rowsort label-5587
SELECT ALL - COUNT ( * ) - - MIN ( - + CAST ( - - 12 AS INTEGER ) ) + - 84
----
-97

query I rowsort
SELECT + 64 + + + 85
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT - MIN( + + 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-5589
SELECT - MIN ( + + 94 )
----
-94

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

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

query I rowsort
SELECT - 10 - - - 73
----
-83

query I rowsort
SELECT ALL - 12 * - CASE 30 WHEN + - 8 THEN NULL WHEN 35 * - + 21 * - + 69 THEN - 19 * + + 34 + + - 50 + + 20 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5593
SELECT ALL ( - CAST( - CASE + - 59 WHEN - SUM( ALL 96 ) THEN + - 21 WHEN 41 + NULLIF ( CAST( + + 62 AS SIGNED ), - - 51 - + - CASE + + 39 WHEN COUNT( * ) THEN - 28 + + 58 ELSE - 20 + - 65 + - - MAX( ALL + 59 ) * + - 6 END ) THEN NULL END AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5593
SELECT ALL ( - CAST ( - CASE + - 59 WHEN - SUM ( ALL 96 ) THEN + - 21 WHEN 41 + NULLIF ( CAST ( + + 62 AS INTEGER ), - - 51 - + - CASE + + 39 WHEN COUNT ( * ) THEN - 28 + + 58 ELSE - 20 + - 65 + - - MAX ( ALL + 59 ) * + - 6 END ) THEN NULL END AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT ALL - ( - NULLIF ( 25, + - 92 ) ) * 21 * - 81 AS col1
----
-42525

query I rowsort
SELECT - 87 * 39 + + 36 * 65 + - - 58 col0
----
-995

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

skipif mysql # not compatible
query I rowsort label-5596
SELECT - + 76 + 7 + + + COUNT ( * ) AS col0
----
-68

query II rowsort
SELECT ALL - 14, + ( 80 ) AS col2
----
-14
80

query I rowsort
SELECT + - 96 - 72 AS col0
----
-168

onlyif mysql # DIV for integer division: 
query I rowsort label-5599
SELECT ALL 44 DIV - 46 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5599
SELECT ALL 44 / - 46 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT DISTINCT + MIN( - + CASE 47 WHEN - 43 THEN + 20 WHEN 37 THEN + 91 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5600
SELECT DISTINCT + MIN ( - + CASE 47 WHEN - 43 THEN + 20 WHEN 37 THEN + 91 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT + - COUNT( DISTINCT 11 ) * 0 col1
----
0

skipif mysql # not compatible
query I rowsort label-5601
SELECT + - COUNT ( DISTINCT 11 ) * 0 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5602
SELECT DISTINCT 74 / ( - 57 ) + CAST( NULL AS SIGNED ) + - 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5602
SELECT DISTINCT 74 / ( - 57 ) + CAST ( NULL AS INTEGER ) + - 91 AS col0
----
NULL

query I rowsort
SELECT ALL - 49 * - ( 55 ) + - 65 * + 65 AS col0
----
-1530

query II rowsort
SELECT + 20 AS col0, - 94 - 78 + - 53
----
20
-225

query I rowsort
SELECT ALL 99 * + 12 + + + 53 - - 40 * - 25 + 91 + + - 77 + + 78
----
333

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT DISTINCT COUNT( * ) * - 57 + 16 * 97
----
1495

skipif mysql # not compatible
query I rowsort label-5606
SELECT DISTINCT COUNT ( * ) * - 57 + 16 * 97
----
1495

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

query II rowsort
SELECT + - 50 col0, + 58
----
-50
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT DISTINCT + COUNT( * ) * - 15 + - 33
----
-48

skipif mysql # not compatible
query I rowsort label-5609
SELECT DISTINCT + COUNT ( * ) * - 15 + - 33
----
-48

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT ALL + - CASE - - 68 WHEN - 14 THEN + 86 + COUNT( * ) * + - ( - - 37 ) WHEN SUM( DISTINCT 35 ) + 97 - - + 44 / COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5612
SELECT ALL + - CASE - - 68 WHEN - 14 THEN + 86 + COUNT ( * ) * + - ( - - 37 ) WHEN SUM ( DISTINCT 35 ) + 97 - - + 44 / COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + - 92 - 18 AS col2
----
-110

onlyif mysql # aggregate syntax: 
query II rowsort label-5614
SELECT 78 * + - COUNT( DISTINCT - - 84 ) + + + 8, 12 AS col1
----
-70
12

skipif mysql # not compatible
query II rowsort label-5614
SELECT 78 * + - COUNT ( DISTINCT - - 84 ) + + + 8, 12 AS col1
----
-70
12

query I rowsort
SELECT ALL 74 * - 95 - ( 92 )
----
-7122

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT ALL - ( - + 28 ) * - NULLIF ( - 5, + 34 + - + ( + 31 ) / CASE + 45 WHEN - + 38 THEN - NULLIF ( ( + ( - 94 ) ), - 25 + + - 88 * 90 ) WHEN + COUNT( * ) THEN - 57 WHEN 33 - + 95 * - ( COUNT( * ) ) / 76 + - 68 THEN + - 32 + - 46 END ) + 84
----
224

skipif mysql # not compatible
query I rowsort label-5617
SELECT ALL - ( - + 28 ) * - NULLIF ( - 5, + 34 + - + ( + 31 ) / CASE + 45 WHEN - + 38 THEN - NULLIF ( ( + ( - 94 ) ), - 25 + + - 88 * 90 ) WHEN + COUNT ( * ) THEN - 57 WHEN 33 - + 95 * - ( COUNT ( * ) ) / 76 + - 68 THEN + - 32 + - 46 END ) + 84
----
224

query I rowsort
SELECT - 5 * - 53 + + 53
----
318

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT - SUM( - 3 ) - + + 73 * + 46 * + 16 AS col1
----
-53725

skipif mysql # not compatible
query I rowsort label-5619
SELECT - SUM ( - 3 ) - + + 73 * + 46 * + 16 AS col1
----
-53725

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT ALL + CASE + 53 WHEN - 7 / - AVG ( ALL 65 ) - 80 THEN + COUNT( * ) + - 31 WHEN - + COALESCE ( 52, - - 42 - + 34 - + ( - 98 ) + - 39 + 21, + 83 ) * + + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5620
SELECT ALL + CASE + 53 WHEN - 7 / - AVG ( ALL 65 ) - 80 THEN + COUNT ( * ) + - 31 WHEN - + COALESCE ( 52, - - 42 - + 34 - + ( - 98 ) + - 39 + 21, + 83 ) * + + COUNT ( * ) THEN NULL END
----
NULL

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

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

query I rowsort
SELECT + 41 + 99
----
140

query I rowsort
SELECT 16 * 59 + + + 92 AS col2
----
1036

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5625
SELECT - 64 DIV - ( + 21 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-5625
SELECT - 64 / - ( + 21 ) AS col1
----
3

query I rowsort
SELECT - 34 + - + 92 * - 47
----
4290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5627
SELECT - 10 + 37 - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + 30 / 58 * 42 * - 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5627
SELECT - 10 + 37 - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + 30 / 58 * 42 * - 17 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 75 * + 70 col2
----
5250

query I rowsort
SELECT DISTINCT + 71 + ( - 89 ) AS col0
----
-18

query I rowsort
SELECT - 4 * 56
----
-224

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

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

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

query I rowsort
SELECT - 92 + + - 30 + - 80 + - 85 AS col2
----
-287

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT - 51 * - + SUM( DISTINCT - + 8 )
----
-408

skipif mysql # not compatible
query I rowsort label-5634
SELECT - 51 * - + SUM ( DISTINCT - + 8 )
----
-408

query I rowsort
SELECT - 57 + 6 AS col2
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-5636
SELECT DISTINCT + 36 + - 41 * + - MIN( + + 9 ) AS col2, 29 + 95 AS col1
----
405
124

skipif mysql # not compatible
query II rowsort label-5636
SELECT DISTINCT + 36 + - 41 * + - MIN ( + + 9 ) AS col2, 29 + 95 AS col1
----
405
124

query I rowsort
SELECT - ( - 29 ) + + ( 28 ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5638
SELECT - SUM( ALL - 43 )
----
43

skipif mysql # not compatible
query I rowsort label-5638
SELECT - SUM ( ALL - 43 )
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-5639
SELECT ALL + 3 + - 38 col2, 90 + - 58 + - CASE COUNT( DISTINCT + 27 ) WHEN 68 / - 79 * 3 / 79 - + + 44 + 8 THEN NULL ELSE - 70 + + - COUNT( * ) END * + - COUNT( * ) + 53 - - ( - 55 ) AS col2
----
-35
-41

skipif mysql # not compatible
query II rowsort label-5639
SELECT ALL + 3 + - 38 col2, 90 + - 58 + - CASE COUNT ( DISTINCT + 27 ) WHEN 68 / - 79 * 3 / 79 - + + 44 + 8 THEN NULL ELSE - 70 + + - COUNT ( * ) END * + - COUNT ( * ) + 53 - - ( - 55 ) AS col2
----
-35
-41

query I rowsort
SELECT - + 22 + - 2 AS col1
----
-24

query II rowsort
SELECT DISTINCT - 0 * - 75 AS col0, - 66 * + 52
----
0
-3432

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT 19 + + 92 * + COUNT( * ) AS col1
----
111

skipif mysql # not compatible
query I rowsort label-5643
SELECT 19 + + 92 * + COUNT ( * ) AS col1
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-5644
SELECT DISTINCT - + COUNT( * ) - 7 * + 50
----
-351

skipif mysql # not compatible
query I rowsort label-5644
SELECT DISTINCT - + COUNT ( * ) - 7 * + 50
----
-351

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5646
SELECT + 63 DIV + 53 + ( + - 47 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-5646
SELECT + 63 / + 53 + ( + - 47 ) AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT ALL - SUM( DISTINCT + 16 ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-5647
SELECT ALL - SUM ( DISTINCT + 16 ) AS col1
----
-16

query I rowsort
SELECT DISTINCT 30 * 5 AS col0
----
150

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

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

query I rowsort
SELECT ALL 76 * - 57 * - 67
----
290244

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

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

query II rowsort
SELECT DISTINCT - 74 col0, 69 * 37 * - 87
----
-74
-222111

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT DISTINCT + 39 + + MIN( - 19 ) + 96 * - NULLIF ( + + 40, + MAX( DISTINCT - - 44 ) * - - 23 + - + 80 )
----
-3820

skipif mysql # not compatible
query I rowsort label-5654
SELECT DISTINCT + 39 + + MIN ( - 19 ) + 96 * - NULLIF ( + + 40, + MAX ( DISTINCT - - 44 ) * - - 23 + - + 80 )
----
-3820

query II rowsort
SELECT 26 - - 72 * - - ( 1 ) * + 29, - 45 AS col0
----
2114
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT COALESCE ( + 89, - 49 ) + - COUNT( * ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-5656
SELECT COALESCE ( + 89, - 49 ) + - COUNT ( * ) AS col0
----
88

query I rowsort
SELECT 70 * + 81 col0
----
5670

onlyif mysql # aggregate syntax: 
query II rowsort label-5658
SELECT 80 AS col0, - 2 * + 52 * - - COUNT( * )
----
80
-104

skipif mysql # not compatible
query II rowsort label-5658
SELECT 80 AS col0, - 2 * + 52 * - - COUNT ( * )
----
80
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT 45 + COUNT( * ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-5659
SELECT 45 + COUNT ( * ) AS col0
----
46

query I rowsort
SELECT ALL + - 37 + + 50
----
13

query I rowsort
SELECT ALL - 63 * - 92 AS col0
----
5796

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT COUNT( * ) - 91
----
-90

skipif mysql # not compatible
query I rowsort label-5662
SELECT COUNT ( * ) - 91
----
-90

query I rowsort
SELECT DISTINCT 88 * - 64 AS col2
----
-5632

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

query II rowsort
SELECT DISTINCT 38 AS col2, + 8
----
38
8

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

query I rowsort
SELECT ALL + NULLIF ( 52, 49 * - 96 * - 74 - - 99 ) AS col0
----
52

query II rowsort
SELECT 3 - + + ( 19 ), - 62 AS col0
----
-16
-62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT + COUNT( ALL + - 94 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5670
SELECT + COUNT ( ALL + - 94 ) AS col1
----
1

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

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

query I rowsort
SELECT ALL + 55 * 49 AS col1
----
2695

onlyif mysql # aggregate syntax: 
query II rowsort label-5673
SELECT - 39 AS col0, + SUM( - 58 )
----
-39
-58

skipif mysql # not compatible
query II rowsort label-5673
SELECT - 39 AS col0, + SUM ( - 58 )
----
-39
-58

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

query I rowsort
SELECT ALL + 6 * - 30 AS col2
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-5676
SELECT - 48 * + COALESCE ( - 44, 27 * - MIN( - 27 ) )
----
2112

skipif mysql # not compatible
query I rowsort label-5676
SELECT - 48 * + COALESCE ( - 44, 27 * - MIN ( - 27 ) )
----
2112

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5678
SELECT CAST( NULL AS SIGNED ) * - 84 + - MAX( DISTINCT + 68 ) * - 92 + - 70 + + 19 / - 63 * + - 13 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5678
SELECT CAST ( NULL AS INTEGER ) * - 84 + - MAX ( DISTINCT + 68 ) * - 92 + - 70 + + 19 / - 63 * + - 13 col1
----
NULL

query I rowsort
SELECT ALL - ( - + ( 44 ) ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT 10 + - COUNT( * ) + + - 16 * - 49 + + 20 * + CASE COUNT( * ) WHEN + 5 * 37 * + 77 THEN - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5680
SELECT 10 + - COUNT ( * ) + + - 16 * - 49 + + 20 * + CASE COUNT ( * ) WHEN + 5 * 37 * + 77 THEN - COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5681
SELECT ALL - MIN( + - 41 )
----
41

skipif mysql # not compatible
query I rowsort label-5681
SELECT ALL - MIN ( + - 41 )
----
41

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5683
SELECT - 9 * + COUNT( - CAST( + 80 AS DECIMAL ) ) + 76 + COUNT( + COALESCE ( - 68, + 45 ) ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-5683
SELECT - 9 * + COUNT ( - CAST ( + 80 AS REAL ) ) + 76 + COUNT ( + COALESCE ( - 68, + 45 ) ) AS col2
----
68

query II rowsort
SELECT ALL - 7, 20 AS col1
----
-7
20

query I rowsort
SELECT ( + - 41 ) + + 74 AS col0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5686
SELECT ALL + CAST( + 16 AS SIGNED ) + - - 34 col1
----
50

skipif mysql # not compatible
query I rowsort label-5686
SELECT ALL + CAST ( + 16 AS INTEGER ) + - - 34 col1
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-5687
SELECT SUM( - 68 ) + 43 * + 45 AS col2, COALESCE ( 71, + MAX( - 54 ) ) + - 48 AS col2
----
1867
23

skipif mysql # not compatible
query II rowsort label-5687
SELECT SUM ( - 68 ) + 43 * + 45 AS col2, COALESCE ( 71, + MAX ( - 54 ) ) + - 48 AS col2
----
1867
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5688
SELECT - SUM( ALL - 78 ) * + CAST( NULL AS SIGNED ) * + - 78 - 45 + + - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-5688
SELECT - SUM ( ALL - 78 ) * + CAST ( NULL AS INTEGER ) * + - 78 - 45 + + - 97
----
NULL

query II rowsort
SELECT 71 col0, - 74 AS col2
----
71
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5690
SELECT ALL CASE WHEN ( NULL ) NOT BETWEEN NULL AND - 5 THEN + 23 END * MAX( + 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5690
SELECT ALL CASE WHEN ( NULL ) NOT BETWEEN NULL AND - 5 THEN + 23 END * MAX ( + 97 )
----
NULL

query I rowsort
SELECT ALL 46 + 49 - - + 27 + + 16
----
138

query I rowsort
SELECT 90 * - NULLIF ( - 91, + 10 * AVG ( DISTINCT - 0 ) ) * 2 + 28 + - 14 AS col0
----
16394

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT COUNT( * ) * 8 * + 5 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-5694
SELECT COUNT ( * ) * 8 * + 5 AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5695
SELECT - COUNT( DISTINCT + NULLIF ( + - 25, + 52 * + 56 * - + 84 / + 47 + + 13 * - 73 + - 4 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5695
SELECT - COUNT ( DISTINCT + NULLIF ( + - 25, + 52 * + 56 * - + 84 / + 47 + + 13 * - 73 + - 4 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5696
SELECT 90 + - 57 AS col0, COUNT( * ) DIV + + 97 AS col2
----
33
0

skipif mysql # not compatible
query II rowsort label-5696
SELECT 90 + - 57 AS col0, COUNT ( * ) / + + 97 AS col2
----
33
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5697
SELECT ALL 15 + CAST( + COUNT( * ) AS SIGNED ) DIV 70 * - + 16 * 47 + + 52 AS col0, MAX( - 78 )
----
67
-78

skipif mysql # not compatible
query II rowsort label-5697
SELECT ALL 15 + CAST ( + COUNT ( * ) AS INTEGER ) / 70 * - + 16 * 47 + + 52 AS col0, MAX ( - 78 )
----
67
-78

query I rowsort
SELECT 60 + - 17 AS col1
----
43

query I rowsort
SELECT DISTINCT + 33 * ( - 72 ) * + 74
----
-175824

query II rowsort
SELECT ALL 27 AS col2, + 92 AS col1
----
27
92

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

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

query I rowsort
SELECT + - 56 * 42 AS col2
----
-2352

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5703
SELECT ALL + 51 DIV + - 79 + MIN( + - 40 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-5703
SELECT ALL + 51 / + - 79 + MIN ( + - 40 ) AS col0
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-5704
SELECT + + 45 + 87 DIV - - 80 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-5704
SELECT + + 45 + 87 / - - 80 AS col1
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5705
SELECT - 78, 83 * 72 + + + CAST( NULL AS SIGNED ) + ( 5 ) AS col2
----
-78
NULL

skipif mysql # not compatible
query II rowsort label-5705
SELECT - 78, 83 * 72 + + + CAST ( NULL AS INTEGER ) + ( 5 ) AS col2
----
-78
NULL

query I rowsort
SELECT DISTINCT - 18 * 70 AS col0
----
-1260

query II rowsort
SELECT DISTINCT - 46, + 43 * + - 75 AS col0
----
-46
-3225

query I rowsort
SELECT ALL + 1 - - ( + 54 )
----
55

query II rowsort
SELECT ALL + 26 * 7 AS col1, + 87 - + + 5
----
182
82

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

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

query I rowsort
SELECT ALL + 10 * 62
----
620

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5713
SELECT - + 29 + + 25 + MIN( ALL + 2 ) * - COALESCE ( + 18, COUNT( * ) * + 22 * + 35 - COUNT( * ) DIV - - ( 14 ) * - + 72, - 79 - 85 ) - 59 * + 54 + + - 51 * + 50 * - 77 + + - 33 AS col2
----
193091

skipif mysql # not compatible
query I rowsort label-5713
SELECT - + 29 + + 25 + MIN ( ALL + 2 ) * - COALESCE ( + 18, COUNT ( * ) * + 22 * + 35 - COUNT ( * ) / - - ( 14 ) * - + 72, - 79 - 85 ) - 59 * + 54 + + - 51 * + 50 * - 77 + + - 33 AS col2
----
193091

query I rowsort
SELECT ALL 7 * - 1 * - 90
----
630

query I rowsort
SELECT + 41 * + COALESCE ( + 35, + 82, + + 44 )
----
1435

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT - 5 * + + 57 + - COUNT( * ) - - 97 * - 61 AS col0
----
-6203

skipif mysql # not compatible
query I rowsort label-5716
SELECT - 5 * + + 57 + - COUNT ( * ) - - 97 * - 61 AS col0
----
-6203

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5717
SELECT 57 DIV CAST( + 22 AS SIGNED ) + - - 59 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-5717
SELECT 57 / CAST ( + 22 AS INTEGER ) + - - 59 AS col1
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5718
SELECT NULLIF ( - SUM( ALL + + 12 ), + + 3 * - 74 + + - 88 - + 63 * + 7 * - 79 + - COALESCE ( 49, - - CAST( NULL AS SIGNED ) * + COALESCE ( - CASE CAST( NULL AS SIGNED ) WHEN + MAX( + - 79 ) THEN + - 21 + + + 57 * + 49 ELSE 33 END, 11 * + 55 + + - 92 + - 54, + - 82 ) + + 19 * - + 38 ) )
----
-12

skipif mysql # not compatible
query I rowsort label-5718
SELECT NULLIF ( - SUM ( ALL + + 12 ), + + 3 * - 74 + + - 88 - + 63 * + 7 * - 79 + - COALESCE ( 49, - - CAST ( NULL AS INTEGER ) * + COALESCE ( - CASE CAST ( NULL AS INTEGER ) WHEN + MAX ( + - 79 ) THEN + - 21 + + + 57 * + 49 ELSE 33 END, 11 * + 55 + + - 92 + - 54, + - 82 ) + + 19 * - + 38 ) )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT COALESCE ( - 45, - MIN( - + 1 ) + + 8 )
----
-45

skipif mysql # not compatible
query I rowsort label-5719
SELECT COALESCE ( - 45, - MIN ( - + 1 ) + + 8 )
----
-45

query I rowsort
SELECT ALL 30 * - + 67 + - + 72
----
-2082

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

skipif mysql # not compatible
query I rowsort label-5721
SELECT - COUNT ( * ) * + 21 * 11 AS col2
----
-231

query I rowsort
SELECT ALL - NULLIF ( - 43, + 84 ) * 82 + - 61 + + 93
----
3558

query I rowsort
SELECT - 75 * - 79 AS col0
----
5925

query I rowsort
SELECT + ( 87 ) * + 28 + 85
----
2521

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5726
SELECT COALESCE ( MIN( - - 69 ), + 29 )
----
69

skipif mysql # not compatible
query I rowsort label-5726
SELECT COALESCE ( MIN ( - - 69 ), + 29 )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5727
SELECT DISTINCT + COALESCE ( - + COUNT( * ), + 39 DIV - CAST( NULL AS SIGNED ), - 16 * - 58 + + - COUNT( * ) - COALESCE ( - 23, 66 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5727
SELECT DISTINCT + COALESCE ( - + COUNT ( * ), + 39 / - CAST ( NULL AS INTEGER ), - 16 * - 58 + + - COUNT ( * ) - COALESCE ( - 23, 66 ) ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5728
SELECT ALL 16 * 92 + + - CAST( NULL AS DECIMAL ) + + CAST( - + 34 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5728
SELECT ALL 16 * 92 + + - CAST ( NULL AS REAL ) + + CAST ( - + 34 AS INTEGER )
----
NULL

query I rowsort
SELECT - 45 * - 89
----
4005

query I rowsort
SELECT + 51 * - 57 AS col0
----
-2907

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-5731
SELECT ALL + 95 * + 47 AS col1, + 42, CAST( - + 5 AS SIGNED ) DIV + + COUNT( * ) + ( - 56 ) AS col2
----
4465
42
-61

skipif mysql # not compatible
query III rowsort label-5731
SELECT ALL + 95 * + 47 AS col1, + 42, CAST ( - + 5 AS INTEGER ) / + + COUNT ( * ) + ( - 56 ) AS col2
----
4465
42
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-5732
SELECT - COUNT( * ) * 7 AS col0, + 94 * 44 * ( - 2 )
----
-7
-8272

skipif mysql # not compatible
query II rowsort label-5732
SELECT - COUNT ( * ) * 7 AS col0, + 94 * 44 * ( - 2 )
----
-7
-8272

onlyif mysql # DIV for integer division: 
query I rowsort label-5733
SELECT ALL 92 DIV - - 63
----
1

skipif mysql # not compatible
query I rowsort label-5733
SELECT ALL 92 / - - 63
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5734
SELECT ALL 53 * - 44 * + 0 - - COUNT( ALL 14 ) + - + 77
----
-76

skipif mysql # not compatible
query I rowsort label-5734
SELECT ALL 53 * - 44 * + 0 - - COUNT ( ALL 14 ) + - + 77
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5735
SELECT - + 91 + - - CASE + 52 WHEN 82 * + 78 THEN + - 5 WHEN - - COUNT( * ) THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5735
SELECT - + 91 + - - CASE + 52 WHEN 82 * + 78 THEN + - 5 WHEN - - COUNT ( * ) THEN NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT ALL - COALESCE ( - - COUNT( * ), - 50 ) * + + NULLIF ( 84, - COUNT( + - 20 ) )
----
-84

skipif mysql # not compatible
query I rowsort label-5736
SELECT ALL - COALESCE ( - - COUNT ( * ), - 50 ) * + + NULLIF ( 84, - COUNT ( + - 20 ) )
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5737
SELECT - - COALESCE ( + 26, + - 50 * CAST( NULL AS SIGNED ) DIV + 26 DIV - COUNT( * ) + - COUNT( * ) + + + 52 + - COUNT( * ) ) + - 51 + + 13 * + + 40 + 70 DIV ( - 18 ) * + 50 + + NULLIF ( + 68, 65 + - + 29 ) AS col0
----
413

skipif mysql # not compatible
query I rowsort label-5737
SELECT - - COALESCE ( + 26, + - 50 * CAST ( NULL AS INTEGER ) / + 26 / - COUNT ( * ) + - COUNT ( * ) + + + 52 + - COUNT ( * ) ) + - 51 + + 13 * + + 40 + 70 / ( - 18 ) * + 50 + + NULLIF ( + 68, 65 + - + 29 ) AS col0
----
413

query I rowsort
SELECT - 67 * - 92
----
6164

onlyif mysql # aggregate syntax: 
query II rowsort label-5739
SELECT + - 33 * - 61, + COUNT( * ) + + MAX( + + 98 ) AS col1
----
2013
99

skipif mysql # not compatible
query II rowsort label-5739
SELECT + - 33 * - 61, + COUNT ( * ) + + MAX ( + + 98 ) AS col1
----
2013
99

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

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

query II rowsort
SELECT + 21 + 70 + + - 50 col2, ( - + 28 ) * 51 + - - 45 AS col0
----
41
-1383

onlyif mysql # DIV for integer division: 
query I rowsort label-5742
SELECT + - 84 DIV - - 6
----
-14

skipif mysql # not compatible
query I rowsort label-5742
SELECT + - 84 / - - 6
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT ( - - ( - NULLIF ( - ( 23 ), + 22 / + + CASE + - 46 WHEN ( 38 ) * - MAX( DISTINCT + 63 ) + - - 31 + + 0 THEN + AVG ( ALL + 73 ) + + 44 WHEN + 70 * + MAX( + 59 ) / 96 + - 92 + CASE WHEN NOT NULLIF ( + 35, - 49 + + 89 ) IS NULL THEN - - CASE - 81 WHEN - + 82 THEN ( 6 ) END ELSE 10 * 38 END THEN 47 ELSE NULL END ) ) )
----
23

skipif mysql # not compatible
query I rowsort label-5743
SELECT ( - - ( - NULLIF ( - ( 23 ), + 22 / + + CASE + - 46 WHEN ( 38 ) * - MAX ( DISTINCT + 63 ) + - - 31 + + 0 THEN + AVG ( ALL + 73 ) + + 44 WHEN + 70 * + MAX ( + 59 ) / 96 + - 92 + CASE WHEN NOT NULLIF ( + 35, - 49 + + 89 ) IS NULL THEN - - CASE - 81 WHEN - + 82 THEN ( 6 ) END ELSE 10 * 38 END THEN 47 ELSE NULL END ) ) )
----
23

query I rowsort
SELECT - + 19 col1
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-5745
SELECT DISTINCT - MAX( DISTINCT + 40 ) col1, 1 col2
----
-40
1

skipif mysql # not compatible
query II rowsort label-5745
SELECT DISTINCT - MAX ( DISTINCT + 40 ) col1, 1 col2
----
-40
1

onlyif mysql # DIV for integer division: 
query II rowsort label-5746
SELECT + 97 DIV - 78, - 66 AS col0
----
-1
-66

skipif mysql # not compatible
query II rowsort label-5746
SELECT + 97 / - 78, - 66 AS col0
----
-1
-66

query I rowsort
SELECT - 66 * 70 + - - 81 AS col1
----
-4539

query I rowsort
SELECT ALL 53 + + 19 AS col2
----
72

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

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

query I rowsort
SELECT DISTINCT 71 * - 43
----
-3053

query I rowsort
SELECT DISTINCT 83 + 71
----
154

onlyif mysql # DIV for integer division: 
query I rowsort label-5752
SELECT + 12 DIV + - 21
----
0

skipif mysql # not compatible
query I rowsort label-5752
SELECT + 12 / + - 21
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5754
SELECT ALL 0 DIV + ( + - ( - - ( 1 ) ) ) * + 94 + - 9 - - 62 + + 7 + + 33
----
93

skipif mysql # not compatible
query I rowsort label-5754
SELECT ALL 0 / + ( + - ( - - ( 1 ) ) ) * + 94 + - 9 - - 62 + + 7 + + 33
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5755
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 54 * + COUNT( * ) * 70 * + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-5755
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 54 * + COUNT ( * ) * 70 * + 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5756
SELECT CASE - COUNT( * ) WHEN 15 * + COUNT( * ) + - + 11 THEN - 96 - + 28 WHEN + 69 THEN - 38 END * + 78 * 22 - - - ( 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5756
SELECT CASE - COUNT ( * ) WHEN 15 * + COUNT ( * ) + - + 11 THEN - 96 - + 28 WHEN + 69 THEN - 38 END * + 78 * 22 - - - ( 53 )
----
NULL

query I rowsort
SELECT ALL + NULLIF ( ( - 86 ), - 41 + - 48 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5758
SELECT - ( - + NULLIF ( - COUNT( * ), - + 54 ) ) * - ( 87 ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-5758
SELECT - ( - + NULLIF ( - COUNT ( * ), - + 54 ) ) * - ( 87 ) AS col2
----
87

query I rowsort
SELECT + 28 + - + 12 AS col1
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5760
SELECT ALL COUNT( * ) DIV - 36 - + ( - COUNT( DISTINCT + - 61 ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5760
SELECT ALL COUNT ( * ) / - 36 - + ( - COUNT ( DISTINCT + - 61 ) ) col1
----
1

query I rowsort
SELECT + 46 + 12
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5762
SELECT DISTINCT + 60 DIV 56 * + 76 - - + 71 AS col2
----
147

skipif mysql # not compatible
query I rowsort label-5762
SELECT DISTINCT + 60 / 56 * + 76 - - + 71 AS col2
----
147

onlyif mysql # aggregate syntax: 
query II rowsort label-5763
SELECT + 68 * - ( + + 56 ) + + + 41 col1, + COUNT( * ) AS col0
----
-3767
1

skipif mysql # not compatible
query II rowsort label-5763
SELECT + 68 * - ( + + 56 ) + + + 41 col1, + COUNT ( * ) AS col0
----
-3767
1

onlyif mysql # DIV for integer division: 
query II rowsort label-5764
SELECT ALL 81 DIV 13 - 6 AS col1, 83 AS col0
----
0
83

skipif mysql # not compatible
query II rowsort label-5764
SELECT ALL 81 / 13 - 6 AS col1, 83 AS col0
----
0
83

onlyif mysql # DIV for integer division: 
query I rowsort label-5765
SELECT DISTINCT - 36 DIV + 8 col0
----
-4

skipif mysql # not compatible
query I rowsort label-5765
SELECT DISTINCT - 36 / + 8 col0
----
-4

query I rowsort
SELECT 86 * + - 82 AS col0
----
-7052

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT + 30 * - COUNT( * ) + - + COALESCE ( + + 87, + 80 + - 79 )
----
-117

skipif mysql # not compatible
query I rowsort label-5767
SELECT + 30 * - COUNT ( * ) + - + COALESCE ( + + 87, + 80 + - 79 )
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-5768
SELECT DISTINCT - ( + + MIN( DISTINCT ( 38 ) ) ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-5768
SELECT DISTINCT - ( + + MIN ( DISTINCT ( 38 ) ) ) AS col0
----
-38

query I rowsort
SELECT - 51 * - ( + 55 ) AS col0
----
2805

query I rowsort
SELECT - 26 + - + 71 AS col2
----
-97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5772
SELECT - COUNT( 22 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5772
SELECT - COUNT ( 22 ) AS col0
----
-1

query I rowsort
SELECT 88 + - + 0 * - + 3 AS col1
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-5774
SELECT ALL - 68 DIV 24
----
-2

skipif mysql # not compatible
query I rowsort label-5774
SELECT ALL - 68 / 24
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-5775
SELECT DISTINCT - ( - NULLIF ( - 84, 24 ) ) DIV 34
----
-2

skipif mysql # not compatible
query I rowsort label-5775
SELECT DISTINCT - ( - NULLIF ( - 84, 24 ) ) / 34
----
-2

query I rowsort
SELECT 80 + + - 86
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT ALL - CASE - ( - COUNT( * ) ) WHEN 29 THEN + 27 * ( + ( - - 49 ) ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5777
SELECT ALL - CASE - ( - COUNT ( * ) ) WHEN 29 THEN + 27 * ( + ( - - 49 ) ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + + 33 + 32
----
65

query I rowsort
SELECT - 42 + + 73 * - + 63 AS col1
----
-4641

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5780
SELECT 49 + + + MIN( - CAST( - + 12 AS SIGNED ) ) + + - ( + CAST( NULL AS SIGNED ) ) + + - 45 + + MAX( ALL + 0 ) - + 88 * - 25 * + ( - 16 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5780
SELECT 49 + + + MIN ( - CAST ( - + 12 AS INTEGER ) ) + + - ( + CAST ( NULL AS INTEGER ) ) + + - 45 + + MAX ( ALL + 0 ) - + 88 * - 25 * + ( - 16 ) AS col0
----
NULL

query II rowsort
SELECT 53, + 13 AS col1
----
53
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT ALL - CASE - 23 WHEN - - 39 THEN + COUNT( * ) / - 8 * 93 WHEN - 55 + + - 79 + + 10 * - 22 + 68 THEN NULL ELSE NULL END * 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5782
SELECT ALL - CASE - 23 WHEN - - 39 THEN + COUNT ( * ) / - 8 * 93 WHEN - 55 + + - 79 + + 10 * - 22 + 68 THEN NULL ELSE NULL END * 2 AS col2
----
NULL

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

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

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

query I rowsort
SELECT DISTINCT - 84 + + 64 + 46 AS col1
----
26

query I rowsort
SELECT DISTINCT 24 + + 28 AS col1
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-5787
SELECT 45 + - + 14 DIV 10 + 35
----
79

skipif mysql # not compatible
query I rowsort label-5787
SELECT 45 + - + 14 / 10 + 35
----
79

query II rowsort
SELECT 29 - - 37 AS col1, 53 * - 23 AS col0
----
66
-1219

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT MIN( DISTINCT + 0 ) + - 0 * 25
----
0

skipif mysql # not compatible
query I rowsort label-5789
SELECT MIN ( DISTINCT + 0 ) + - 0 * 25
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5790
SELECT + MIN( CAST( - + 75 AS SIGNED ) ) * + 12 + + 52 + + + 51 + + + COUNT( * ) + + + MAX( DISTINCT 70 ) AS col1
----
-726

skipif mysql # not compatible
query I rowsort label-5790
SELECT + MIN ( CAST ( - + 75 AS INTEGER ) ) * + 12 + + 52 + + + 51 + + + COUNT ( * ) + + + MAX ( DISTINCT 70 ) AS col1
----
-726

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5791
SELECT MAX( DISTINCT 28 ) DIV 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5791
SELECT MAX ( DISTINCT 28 ) / 93 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT ALL 93 * + COUNT( * ) * - 30 AS col0
----
-2790

skipif mysql # not compatible
query I rowsort label-5792
SELECT ALL 93 * + COUNT ( * ) * - 30 AS col0
----
-2790

query II rowsort
SELECT ALL 63 * 76, 23 col2
----
4788
23

onlyif mysql # aggregate syntax: 
query II rowsort label-5794
SELECT ALL - COUNT( ALL 47 ) AS col1, + 78 * + 85 * + + 12
----
-1
79560

skipif mysql # not compatible
query II rowsort label-5794
SELECT ALL - COUNT ( ALL 47 ) AS col1, + 78 * + 85 * + + 12
----
-1
79560

onlyif mysql # aggregate syntax: 
query II rowsort label-5795
SELECT ALL 57 * + COUNT( * ) AS col2, - 34 AS col1
----
57
-34

skipif mysql # not compatible
query II rowsort label-5795
SELECT ALL 57 * + COUNT ( * ) AS col2, - 34 AS col1
----
57
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5796
SELECT DISTINCT - COALESCE ( + - CAST( 17 AS SIGNED ), - 33 * + 56 * + - 10 ) col1
----
17

skipif mysql # not compatible
query I rowsort label-5796
SELECT DISTINCT - COALESCE ( + - CAST ( 17 AS INTEGER ), - 33 * + 56 * + - 10 ) col1
----
17

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5798
SELECT - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col1, 54
----
NULL
54

skipif mysql # not compatible
query II rowsort label-5798
SELECT - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col1, 54
----
NULL
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5799
SELECT + NULLIF ( NULLIF ( + - 82, - 19 ), - 55 / 15 + - 21 + 11 + + 46 / + - CAST( NULL AS SIGNED ) + + 65 * 55 ) AS col2, - ( + CAST( NULL AS SIGNED ) ) / - - 99 * + 9 + - 61 AS col1
----
-82
NULL

skipif mysql # not compatible
query II rowsort label-5799
SELECT + NULLIF ( NULLIF ( + - 82, - 19 ), - 55 / 15 + - 21 + 11 + + 46 / + - CAST ( NULL AS INTEGER ) + + 65 * 55 ) AS col2, - ( + CAST ( NULL AS INTEGER ) ) / - - 99 * + 9 + - 61 AS col1
----
-82
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5800
SELECT ALL - COALESCE ( NULLIF ( - 65, + 42 + - - 39 ), - COALESCE ( 96, - COUNT( * ) * 12 ) * 39 + - 75 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-5800
SELECT ALL - COALESCE ( NULLIF ( - 65, + 42 + - - 39 ), - COALESCE ( 96, - COUNT ( * ) * 12 ) * 39 + - 75 ) AS col0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5801
SELECT ALL - + 98 * + - 42 + - CAST( - 89 AS SIGNED ) AS col0
----
4205

skipif mysql # not compatible
query I rowsort label-5801
SELECT ALL - + 98 * + - 42 + - CAST ( - 89 AS INTEGER ) AS col0
----
4205

onlyif mysql # DIV for integer division: 
query I rowsort label-5802
SELECT 33 DIV - 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5802
SELECT 33 / - 90 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT DISTINCT ( + + 26 ) + - COUNT( * ) + COUNT( * ) + - 73 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-5803
SELECT DISTINCT ( + + 26 ) + - COUNT ( * ) + COUNT ( * ) + - 73 AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5804
SELECT ALL + 37 + COUNT( * ) * + + 21 * 1
----
58

skipif mysql # not compatible
query I rowsort label-5804
SELECT ALL + 37 + COUNT ( * ) * + + 21 * 1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT ALL - MAX( + - 72 ) + 60 AS col2
----
132

skipif mysql # not compatible
query I rowsort label-5805
SELECT ALL - MAX ( + - 72 ) + 60 AS col2
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5806
SELECT ( + - 29 ) / CAST( NULL AS SIGNED ) + - + ( - 20 ) + - - 53 * + - COUNT( * ) / MAX( DISTINCT - + 73 ) AS col2, 29
----
NULL
29

skipif mysql # not compatible
query II rowsort label-5806
SELECT ( + - 29 ) / CAST ( NULL AS INTEGER ) + - + ( - 20 ) + - - 53 * + - COUNT ( * ) / MAX ( DISTINCT - + 73 ) AS col2, 29
----
NULL
29

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

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

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

query I rowsort
SELECT + 39 * + 85
----
3315

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT DISTINCT - COUNT( * ) + - 52 * - 6
----
311

skipif mysql # not compatible
query I rowsort label-5810
SELECT DISTINCT - COUNT ( * ) + - 52 * - 6
----
311

query I rowsort
SELECT ALL 83 * - 9 AS col1
----
-747

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

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

query I rowsort
SELECT ALL 59 * - 12
----
-708

query II rowsort
SELECT - 27 col1, - 97 + - 56 - 6 + 0 - - 37 AS col1
----
-27
-122

query I rowsort
SELECT 29 + - 28 col2
----
1

query I rowsort
SELECT DISTINCT + 90 - - + 67 + + + 8 * - + 30
----
-83

query I rowsort
SELECT ALL - 35 * + 73
----
-2555

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT DISTINCT 48 * + + 93 - + + 16 + + MIN( DISTINCT + 58 ) * + - 90
----
-772

skipif mysql # not compatible
query I rowsort label-5818
SELECT DISTINCT 48 * + + 93 - + + 16 + + MIN ( DISTINCT + 58 ) * + - 90
----
-772

query II rowsort
SELECT ALL + 44 AS col2, 10 AS col1
----
44
10

query I rowsort
SELECT CASE 46 WHEN 83 THEN + 21 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5821
SELECT + MIN( DISTINCT + + NULLIF ( 7, 46 ) ) DIV - COUNT( * ) + + + 97 col2
----
90

skipif mysql # not compatible
query I rowsort label-5821
SELECT + MIN ( DISTINCT + + NULLIF ( 7, 46 ) ) / - COUNT ( * ) + + + 97 col2
----
90

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5825
SELECT + ( + - MIN( 78 ) ) + ( - + 5 ) * + 70 * + ( 15 ) + - 2
----
-5330

skipif mysql # not compatible
query I rowsort label-5825
SELECT + ( + - MIN ( 78 ) ) + ( - + 5 ) * + 70 * + ( 15 ) + - 2
----
-5330

query I rowsort
SELECT ALL + 74 * + + 24 * 52
----
92352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5827
SELECT - + CASE + 30 WHEN - 59 THEN AVG ( CAST( 21 AS SIGNED ) ) END * + 96 + - + 42 + ( + 53 ) + + COUNT( * ) - 78 * - - 83 * COUNT( DISTINCT - - ( + 69 ) ) * ( 45 ) + + 64 * - COALESCE ( 99, - CASE + 0 WHEN - 88 THEN 97 WHEN - CASE + AVG ( 32 ) WHEN 78 THEN - 17 * - + 74 + - 93 END THEN NULL END * 39 * - 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5827
SELECT - + CASE + 30 WHEN - 59 THEN AVG ( CAST ( 21 AS INTEGER ) ) END * + 96 + - + 42 + ( + 53 ) + + COUNT ( * ) - 78 * - - 83 * COUNT ( DISTINCT - - ( + 69 ) ) * ( 45 ) + + 64 * - COALESCE ( 99, - CASE + 0 WHEN - 88 THEN 97 WHEN - CASE + AVG ( 32 ) WHEN 78 THEN - 17 * - + 74 + - 93 END THEN NULL END * 39 * - 54 )
----
NULL

query I rowsort
SELECT + NULLIF ( - 65, 49 )
----
-65

query I rowsort
SELECT DISTINCT 41 * ( 76 ) * - 87 + + 36 + 75 + - 10 + - 34 + 49 AS col2
----
-270976

onlyif mysql # aggregate syntax: 
query I rowsort label-5830
SELECT ALL + ( + 36 ) * - + 65 + COUNT( * ) + + 30 + ( + + 41 )
----
-2268

skipif mysql # not compatible
query I rowsort label-5830
SELECT ALL + ( + 36 ) * - + 65 + COUNT ( * ) + + 30 + ( + + 41 )
----
-2268

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5831
SELECT ALL - - CAST( NULL AS SIGNED ) * - 97 + + 33 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5831
SELECT ALL - - CAST ( NULL AS INTEGER ) * - 97 + + 33 col0
----
NULL

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 89 + 84 + 4
----
177

onlyif mysql # DIV for integer division: 
query I rowsort label-5838
SELECT ALL + + 3 + 80 DIV 13 - - - 16 - - + ( - - 12 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-5838
SELECT ALL + + 3 + 80 / 13 - - - 16 - - + ( - - 12 ) AS col0
----
5

query I rowsort
SELECT + 77 * + 35 AS col0
----
2695

onlyif mysql # aggregate syntax: 
query II rowsort label-5840
SELECT - COALESCE ( + + 48, 53 ), - SUM( + 99 ) col0
----
-48
-99

skipif mysql # not compatible
query II rowsort label-5840
SELECT - COALESCE ( + + 48, 53 ), - SUM ( + 99 ) col0
----
-48
-99

query I rowsort
SELECT DISTINCT + 33 - 57 + - + 97 col0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT ALL + MAX( DISTINCT - 16 ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-5842
SELECT ALL + MAX ( DISTINCT - 16 ) AS col0
----
-16

query I rowsort
SELECT ALL 73 - + 63 col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT + 59 * NULLIF ( 68, + 61 ) * + NULLIF ( 28, + 37 ) + COUNT( ALL - 84 ) + - 18 + + - SUM( ALL + 51 ) * + MAX( ALL - - 73 ) * + 97
----
-248812

skipif mysql # not compatible
query I rowsort label-5844
SELECT + 59 * NULLIF ( 68, + 61 ) * + NULLIF ( 28, + 37 ) + COUNT ( ALL - 84 ) + - 18 + + - SUM ( ALL + 51 ) * + MAX ( ALL - - 73 ) * + 97
----
-248812

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT - SUM( ALL + 67 ) * + 63 + - COUNT( * ) * - 22 AS col0
----
-4199

skipif mysql # not compatible
query I rowsort label-5845
SELECT - SUM ( ALL + 67 ) * + 63 + - COUNT ( * ) * - 22 AS col0
----
-4199

onlyif mysql # DIV for integer division: 
query I rowsort label-5846
SELECT + 77 + + 38 DIV + - 20 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-5846
SELECT + 77 + + 38 / + - 20 AS col0
----
76

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

query II rowsort
SELECT 20, + NULLIF ( 47, - - 36 ) - ( - - 91 ) AS col0
----
20
-44

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

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

query I rowsort
SELECT + 53 + - 98 + + 99 * - 13 * + - 95 AS col2
----
122220

query II rowsort
SELECT 25, + 38 AS col2
----
25
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT - ( - COUNT( * ) ) + + - 55 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-5852
SELECT - ( - COUNT ( * ) ) + + - 55 AS col0
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-5853
SELECT ALL CASE - 38 WHEN - 35 - 16 THEN + - 44 * + COUNT( * ) + - - 92 * + 74 WHEN + 36 THEN - 26 WHEN 3 THEN NULL ELSE NULL END AS col0, 33 * + + 82
----
NULL
2706

skipif mysql # not compatible
query II rowsort label-5853
SELECT ALL CASE - 38 WHEN - 35 - 16 THEN + - 44 * + COUNT ( * ) + - - 92 * + 74 WHEN + 36 THEN - 26 WHEN 3 THEN NULL ELSE NULL END AS col0, 33 * + + 82
----
NULL
2706

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5855
SELECT DISTINCT CAST( 56 AS SIGNED ) * 54
----
3024

skipif mysql # not compatible
query I rowsort label-5855
SELECT DISTINCT CAST ( 56 AS INTEGER ) * 54
----
3024

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5856
SELECT - ( SUM( 89 ) ) DIV COUNT( * ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-5856
SELECT - ( SUM ( 89 ) ) / COUNT ( * ) AS col2
----
-89

query I rowsort
SELECT DISTINCT + 50 * - 4 AS col2
----
-200

onlyif mysql # DIV for integer division: 
query I rowsort label-5858
SELECT DISTINCT - 77 DIV 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5858
SELECT DISTINCT - 77 / 83 AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-5859
SELECT - 51 / 1
----
-51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT DISTINCT ( + MAX( ALL + 65 ) ) col0
----
65

skipif mysql # not compatible
query I rowsort label-5861
SELECT DISTINCT ( + MAX ( ALL + 65 ) ) col0
----
65

query II rowsort
SELECT ALL + NULLIF ( 55, + 16 * + 14 ) AS col2, 29
----
55
29

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

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

query I rowsort
SELECT - 45 + - - 41
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-5865
SELECT DISTINCT ( - - 31 ) DIV - 8 + + 42 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-5865
SELECT DISTINCT ( - - 31 ) / - 8 + + 42 AS col1
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5866
SELECT ALL - 30 DIV + 77 + + 36 DIV 62 + 1 + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5866
SELECT ALL - 30 / + 77 + + 36 / 62 + 1 + COUNT ( * ) AS col0
----
2

query II rowsort
SELECT DISTINCT + 21, 64 AS col2
----
21
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5868
SELECT DISTINCT + - 94 / + 7 + - 91 + - + CAST( NULL AS SIGNED ) / - 36 + + + 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5868
SELECT DISTINCT + - 94 / + 7 + - 91 + - + CAST ( NULL AS INTEGER ) / - 36 + + + 55 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5869
SELECT DISTINCT 2 DIV - 49 + - - ( - 86 ) AS col2, 94
----
-86
94

skipif mysql # not compatible
query II rowsort label-5869
SELECT DISTINCT 2 / - 49 + - - ( - 86 ) AS col2, 94
----
-86
94

onlyif mysql # DIV for integer division: 
query I rowsort label-5870
SELECT DISTINCT - + 97 DIV 86 * + 28 + - 73 + 45
----
-56

skipif mysql # not compatible
query I rowsort label-5870
SELECT DISTINCT - + 97 / 86 * + 28 + - 73 + 45
----
-56

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

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

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

query I rowsort
SELECT + 94 * - + 91 * + + 13
----
-111202

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

skipif mysql # not compatible
query I rowsort label-5874
SELECT DISTINCT + + COUNT ( ALL - + 81 ) AS col0
----
1

query I rowsort
SELECT ALL - + 12 * + - 5 * - 0 + - + 45 * - 31
----
1395

query II rowsort
SELECT ALL + - 17 AS col2, + 72
----
-17
72

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

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

query I rowsort
SELECT ALL + 79 * 18 + - 8 AS col0
----
1414

query I rowsort
SELECT DISTINCT + 68 * 39 AS col2
----
2652

query I rowsort
SELECT DISTINCT - 93 * + 64 AS col1
----
-5952

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT - + 29 + + + COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-5881
SELECT - + 29 + + + COUNT ( * )
----
-28

query I rowsort
SELECT + + 24 * + - 68
----
-1632

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT SUM( - + COALESCE ( + 51, + ( + + 78 ) + 52 ) ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-5884
SELECT SUM ( - + COALESCE ( + 51, + ( + + 78 ) + 52 ) ) AS col1
----
-51

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

skipif mysql # not compatible
query I rowsort label-5885
SELECT + 12 + + - COUNT ( * ) * - 11 AS col2
----
23

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5887
SELECT + COALESCE ( + COALESCE ( - 86, - 32 + CAST( NULL AS SIGNED ) * 63 ), 36 + + 94 * 1 * - COUNT( * ) * 65 ) * - 96 col2
----
8256

skipif mysql # not compatible
query I rowsort label-5887
SELECT + COALESCE ( + COALESCE ( - 86, - 32 + CAST ( NULL AS INTEGER ) * 63 ), 36 + + 94 * 1 * - COUNT ( * ) * 65 ) * - 96 col2
----
8256

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

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

query I rowsort
SELECT + 82 + + 35 - 51 * 28 * - + 26
----
37245

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT ALL NULLIF ( 38, CASE + + 3 WHEN - 47 THEN + 38 WHEN - 7 / ( - 71 ) THEN NULL END + 38 + - MIN( DISTINCT - 19 ) ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-5890
SELECT ALL NULLIF ( 38, CASE + + 3 WHEN - 47 THEN + 38 WHEN - 7 / ( - 71 ) THEN NULL END + 38 + - MIN ( DISTINCT - 19 ) ) AS col0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5891
SELECT CAST( - 95 AS SIGNED ) + - 46 AS col0
----
-141

skipif mysql # not compatible
query I rowsort label-5891
SELECT CAST ( - 95 AS INTEGER ) + - 46 AS col0
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT ALL + SUM( ALL - 9 ) * + + 5
----
-45

skipif mysql # not compatible
query I rowsort label-5892
SELECT ALL + SUM ( ALL - 9 ) * + + 5
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-5893
SELECT ALL 81 DIV 12 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-5893
SELECT ALL 81 / 12 AS col1
----
6

query II rowsort
SELECT 63 + + 70, + 45 + 13 + + 37 * 50 AS col0
----
133
1908

query I rowsort
SELECT ALL 34 * - + 30
----
-1020

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

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

query I rowsort
SELECT ALL + 0 + + - 21 * + 88
----
-1848

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

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

query I rowsort
SELECT 95 - - + 19 AS col0
----
114

onlyif mysql # aggregate syntax: 
query II rowsort label-5900
SELECT COUNT( - 93 ) AS col0, + 41 + SUM( - 45 ) AS col1
----
1
-4

skipif mysql # not compatible
query II rowsort label-5900
SELECT COUNT ( - 93 ) AS col0, + 41 + SUM ( - 45 ) AS col1
----
1
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5901
SELECT ALL - COALESCE ( - COUNT( * ), 76 * 32, + - COUNT( * ) + - COUNT( * ) + + ( - 10 ) + COALESCE ( + NULLIF ( + 59, - ( + 16 ) ), CAST( + - 11 AS SIGNED ), 32, + + 0 DIV - - 98 * - 30 ) + - 27 DIV + + COUNT( * ) ) + + ( - 10 ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-5901
SELECT ALL - COALESCE ( - COUNT ( * ), 76 * 32, + - COUNT ( * ) + - COUNT ( * ) + + ( - 10 ) + COALESCE ( + NULLIF ( + 59, - ( + 16 ) ), CAST ( + - 11 AS INTEGER ), 32, + + 0 / - - 98 * - 30 ) + - 27 / + + COUNT ( * ) ) + + ( - 10 ) AS col2
----
-9

query I rowsort
SELECT ALL - + 99 + - 71 + - - 92 * + + 90
----
8110

query II rowsort
SELECT - ( + + 6 ) * + 7 AS col2, - 32
----
-42
-32

onlyif mysql # DIV for integer division: 
query II rowsort label-5904
SELECT DISTINCT - - 74 DIV - 67 AS col1, 93
----
-1
93

skipif mysql # not compatible
query II rowsort label-5904
SELECT DISTINCT - - 74 / - 67 AS col1, 93
----
-1
93

onlyif mysql # aggregate syntax: 
query II rowsort label-5905
SELECT - 9 + - CASE ( - - 16 ) WHEN 31 * + COUNT( * ) * COUNT( * ) - - + 38 THEN + + 36 END + 92 AS col1, + 87 col1
----
NULL
87

skipif mysql # not compatible
query II rowsort label-5905
SELECT - 9 + - CASE ( - - 16 ) WHEN 31 * + COUNT ( * ) * COUNT ( * ) - - + 38 THEN + + 36 END + 92 AS col1, + 87 col1
----
NULL
87

query I rowsort
SELECT - - 99 * + COALESCE ( + 36, - CASE - - 44 WHEN + 27 * 32 / - 79 + - + 37 + + 16 THEN 19 ELSE NULL END, - CASE - 23 WHEN + + 69 + + - 55 THEN 70 ELSE NULL END, + + 29 ) * 0 + - + 87 + + + 47
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5907
SELECT ALL + COUNT( * ) - COALESCE ( + - 83, - + ( + NULLIF ( CAST( + COUNT( * ) AS SIGNED ), 38 - + - 84 / + COUNT( * ) ) ) )
----
84

skipif mysql # not compatible
query I rowsort label-5907
SELECT ALL + COUNT ( * ) - COALESCE ( + - 83, - + ( + NULLIF ( CAST ( + COUNT ( * ) AS INTEGER ), 38 - + - 84 / + COUNT ( * ) ) ) )
----
84

query I rowsort
SELECT DISTINCT - - 24 col2
----
24

query I rowsort
SELECT ALL - - 20 - + 57 + - 84 col0
----
-121

query I rowsort
SELECT 49 + 48 * - + 36 col0
----
-1679

query I rowsort
SELECT - 34 * - 56 * + - ( 37 )
----
-70448

query I rowsort
SELECT DISTINCT - + 73 col1
----
-73

query II rowsort
SELECT 37 AS col0, + 73
----
37
73

query I rowsort
SELECT 84 + - 99
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5915
SELECT 54 DIV - SUM( ALL - + 41 )
----
1

skipif mysql # not compatible
query I rowsort label-5915
SELECT 54 / - SUM ( ALL - + 41 )
----
1

query I rowsort
SELECT DISTINCT 35 * - - 10
----
350

query I rowsort
SELECT ALL 94 * 55
----
5170

onlyif mysql # aggregate syntax: 
query II rowsort label-5918
SELECT - 81 AS col0, MAX( DISTINCT + + 7 ) AS col2
----
-81
7

skipif mysql # not compatible
query II rowsort label-5918
SELECT - 81 AS col0, MAX ( DISTINCT + + 7 ) AS col2
----
-81
7

query I rowsort
SELECT ALL - 77 * - 60
----
4620

onlyif mysql # DIV for integer division: 
query I rowsort label-5920
SELECT 80 DIV - - 72
----
1

skipif mysql # not compatible
query I rowsort label-5920
SELECT 80 / - - 72
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5921
SELECT MIN( ALL + + 2 ) - CAST( - - 10 AS SIGNED ) + 79 + - COUNT( * ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-5921
SELECT MIN ( ALL + + 2 ) - CAST ( - - 10 AS INTEGER ) + 79 + - COUNT ( * ) AS col1
----
70

query I rowsort
SELECT ALL 58 * - 43
----
-2494

onlyif mysql # aggregate syntax: 
query I rowsort label-5923
SELECT DISTINCT COUNT( 38 ) + - - 13
----
14

skipif mysql # not compatible
query I rowsort label-5923
SELECT DISTINCT COUNT ( 38 ) + - - 13
----
14

query I rowsort
SELECT DISTINCT 51 + + 16
----
67

query I rowsort
SELECT 15 * 18
----
270

query I rowsort
SELECT ALL 28 + + 4 * - 97
----
-360

query II rowsort
SELECT 69 col2, 57
----
69
57

query I rowsort
SELECT 98 - - - 73
----
25

query I rowsort
SELECT ALL 80 * + 60 AS col0
----
4800

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

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

query I rowsort
SELECT 26 * - 43 AS col0
----
-1118

query I rowsort
SELECT ALL 10 * + - 92
----
-920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5933
SELECT COUNT( DISTINCT - 69 ) DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-5933
SELECT COUNT ( DISTINCT - 69 ) / + 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5934
SELECT + 49 + 5 + - 23 * - 90 * + - 75 * - COUNT( * ) * - 45 AS col1
----
-6986196

skipif mysql # not compatible
query I rowsort label-5934
SELECT + 49 + 5 + - 23 * - 90 * + - 75 * - COUNT ( * ) * - 45 AS col1
----
-6986196

query I rowsort
SELECT DISTINCT 28 * - + 66
----
-1848

onlyif mysql # DIV for integer division: 
query II rowsort label-5936
SELECT 53 AS col1, - 17 DIV + ( + - 3 ) - + 53 col1
----
53
-48

skipif mysql # not compatible
query II rowsort label-5936
SELECT 53 AS col1, - 17 / + ( + - 3 ) - + 53 col1
----
53
-48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5937
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, 87 col1
----
NULL
87

skipif mysql # not compatible
query II rowsort label-5937
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, 87 col1
----
NULL
87

onlyif mysql # DIV for integer division: 
query I rowsort label-5938
SELECT + 16 DIV 80 DIV COALESCE ( 58, 47 ) + - 9 * 41 DIV + 72 + - + 25 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-5938
SELECT + 16 / 80 / COALESCE ( 58, 47 ) + - 9 * 41 / + 72 + - + 25 AS col0
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-5939
SELECT ALL - 79 DIV - 1
----
79

skipif mysql # not compatible
query I rowsort label-5939
SELECT ALL - 79 / - 1
----
79

query II rowsort
SELECT + - 72, 82 + 44 col2
----
-72
126

query II rowsort
SELECT ALL - 15, + NULLIF ( 15, + 51 ) + 25 AS col1
----
-15
40

onlyif mysql # DIV for integer division: 
query I rowsort label-5942
SELECT 5 - 53 DIV 67 - + ( - 60 ) col0
----
65

skipif mysql # not compatible
query I rowsort label-5942
SELECT 5 - 53 / 67 - + ( - 60 ) col0
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5943
SELECT ALL + 18 DIV SUM( DISTINCT 84 ) DIV + 57 + - - 6 col2
----
6

skipif mysql # not compatible
query I rowsort label-5943
SELECT ALL + 18 / SUM ( DISTINCT 84 ) / + 57 + - - 6 col2
----
6

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5946
SELECT ALL - COALESCE ( 50, - 61 ) * + - COUNT( * ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-5946
SELECT ALL - COALESCE ( 50, - 61 ) * + - COUNT ( * ) AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT + 32 * 97 * + 78 + - ( - COUNT( * ) ) AS col2
----
242113

skipif mysql # not compatible
query I rowsort label-5947
SELECT + 32 * 97 * + 78 + - ( - COUNT ( * ) ) AS col2
----
242113

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT ALL + COALESCE ( - 15, - + 15 + + - COUNT( * ), + - 10 + - - 59 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-5948
SELECT ALL + COALESCE ( - 15, - + 15 + + - COUNT ( * ), + - 10 + - - 59 ) AS col0
----
-15

query I rowsort
SELECT DISTINCT - 90 * + 46 AS col1
----
-4140

onlyif mysql # aggregate syntax: 
query II rowsort label-5950
SELECT - 35 * 2 AS col2, MIN( - + 24 ) * - + 31
----
-70
744

skipif mysql # not compatible
query II rowsort label-5950
SELECT - 35 * 2 AS col2, MIN ( - + 24 ) * - + 31
----
-70
744

query I rowsort
SELECT - 46 + ( + 38 ) AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT - COALESCE ( ( + 79 ), + 21 ) + + SUM( + + 6 ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-5952
SELECT - COALESCE ( ( + 79 ), + 21 ) + + SUM ( + + 6 ) AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5953
SELECT DISTINCT - MAX( - - COALESCE ( 84, 78 ) ) + 89 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-5953
SELECT DISTINCT - MAX ( - - COALESCE ( 84, 78 ) ) + 89 AS col1
----
5

query I rowsort
SELECT + 5 - + 64 * + 83 AS col1
----
-5307

onlyif mysql # DIV for integer division: 
query I rowsort label-5955
SELECT ALL - 46 DIV + + 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5955
SELECT ALL - 46 / + + 70 AS col0
----
0

query II rowsort
SELECT DISTINCT 45 * 95, + 3 AS col1
----
4275
3

query I rowsort
SELECT DISTINCT + 55 + CASE - 9 WHEN 69 - 60 + + ( + 13 ) + + - 63 THEN + - 9 END * + - 54
----
NULL

query I rowsort
SELECT DISTINCT - 1 + 25 col1
----
24

query I rowsort
SELECT + 45 + + 28 col2
----
73

query I rowsort
SELECT ALL - 83 + 29
----
-54

query I rowsort
SELECT DISTINCT + 28 * + - 3 * COALESCE ( + - 94, + + ( - 22 ) ) AS col2
----
7896

query I rowsort
SELECT - 74 - + 14 + - - 70 + 80 - + - 63 + ( + 13 ) + CASE - + 79 WHEN - 82 THEN - - 28 ELSE NULL END / - 80 + - 38 AS col1
----
NULL

query I rowsort
SELECT - ( - NULLIF ( - 94, 47 ) ) * + 29 + + 98 col2
----
-2628

query II rowsort
SELECT + 39 * 21, 93 AS col2
----
819
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5965
SELECT - ( - MIN( - + 80 ) ) + 98
----
18

skipif mysql # not compatible
query I rowsort label-5965
SELECT - ( - MIN ( - + 80 ) ) + 98
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-5966
SELECT + - 13 DIV + 87 + - 5
----
-5

skipif mysql # not compatible
query I rowsort label-5966
SELECT + - 13 / + 87 + - 5
----
-5

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

query I rowsort
SELECT ALL - 33 - + + 40 AS col2
----
-73

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

skipif mysql # not compatible
query I rowsort label-5969
SELECT + COUNT ( * ) - + 35 + - + 67 AS col2
----
-101

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5970
SELECT + + 94 * + + 98 AS col0, + 57 + - MAX( + CAST( NULL AS DECIMAL ) )
----
9212
NULL

skipif mysql # not compatible
query II rowsort label-5970
SELECT + + 94 * + + 98 AS col0, + 57 + - MAX ( + CAST ( NULL AS REAL ) )
----
9212
NULL

query I rowsort
SELECT DISTINCT ( - + 42 ) AS col2
----
-42

query I rowsort
SELECT ALL 83 - + + 78
----
5

query I rowsort
SELECT DISTINCT + + 6 AS col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5974
SELECT ( - - 97 ) * + 86 + + COUNT( * ), - 66 - + + 33 + - 10 + - - CAST( NULL AS SIGNED ) AS col0
----
8343
NULL

skipif mysql # not compatible
query II rowsort label-5974
SELECT ( - - 97 ) * + 86 + + COUNT ( * ), - 66 - + + 33 + - 10 + - - CAST ( NULL AS INTEGER ) AS col0
----
8343
NULL

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

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

query I rowsort
SELECT + - 67 + + + NULLIF ( - 24, - ( - + 96 ) ) * 66
----
-1651

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT + CASE 55 WHEN - 23 THEN NULL WHEN + 8 * + - COUNT( * ) THEN MIN( DISTINCT - ( NULLIF ( - 86, - 3 ) ) ) WHEN + 33 THEN NULL ELSE NULL END / 8 - + + 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5977
SELECT + CASE 55 WHEN - 23 THEN NULL WHEN + 8 * + - COUNT ( * ) THEN MIN ( DISTINCT - ( NULLIF ( - 86, - 3 ) ) ) WHEN + 33 THEN NULL ELSE NULL END / 8 - + + 99 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT ALL + 56 * + + COALESCE ( + + 7, - + SUM( ( - 85 ) ) + - MAX( + - 89 ), - 83, - + MIN( ALL + 40 ) ) AS col0
----
392

skipif mysql # not compatible
query I rowsort label-5978
SELECT ALL + 56 * + + COALESCE ( + + 7, - + SUM ( ( - 85 ) ) + - MAX ( + - 89 ), - 83, - + MIN ( ALL + 40 ) ) AS col0
----
392

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5980
SELECT ALL 13 * + ( + CAST( 51 AS SIGNED ) ) * - 89 * + + 22 col2
----
-1298154

skipif mysql # not compatible
query I rowsort label-5980
SELECT ALL 13 * + ( + CAST ( 51 AS INTEGER ) ) * - 89 * + + 22 col2
----
-1298154

query I rowsort
SELECT ALL NULLIF ( 71, - - 19 ) * - 96 + 17 AS col1
----
-6799

query I rowsort
SELECT - 59 + - 13 AS col1
----
-72

query I rowsort
SELECT DISTINCT 78 * - + 25 + + 72 col1
----
-1878

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5984
SELECT COALESCE ( - ( + 42 ), - CAST( 25 AS SIGNED ) * + - 20, + - 90 + 67 * 34 * + 66 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-5984
SELECT COALESCE ( - ( + 42 ), - CAST ( 25 AS INTEGER ) * + - 20, + - 90 + 67 * 34 * + 66 ) AS col0
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5985
SELECT ALL 53 * 91 DIV - 67 + COUNT( * ) + COUNT( * ) col2
----
-69

skipif mysql # not compatible
query I rowsort label-5985
SELECT ALL 53 * 91 / - 67 + COUNT ( * ) + COUNT ( * ) col2
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5986
SELECT ALL ( COALESCE ( + 18, + - 34, 97 ) ) * + 42 + - 70 + + + SUM( - 30 ) + - CASE 28 WHEN + 80 / - 80 / - 13 + + 70 + + 9 + - CAST( NULL AS SIGNED ) - - 80 THEN + 19 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5986
SELECT ALL ( COALESCE ( + 18, + - 34, 97 ) ) * + 42 + - 70 + + + SUM ( - 30 ) + - CASE 28 WHEN + 80 / - 80 / - 13 + + 70 + + 9 + - CAST ( NULL AS INTEGER ) - - 80 THEN + 19 END AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5988
SELECT DISTINCT CAST( - 72 AS SIGNED )
----
-72

skipif mysql # not compatible
query I rowsort label-5988
SELECT DISTINCT CAST ( - 72 AS INTEGER )
----
-72

query I rowsort
SELECT - 45 * - + 33 * - - NULLIF ( + 74, + + 50 + 21 ) AS col1
----
109890

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

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

query I rowsort
SELECT - 33 - + - 30 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT - 56 + - SUM( ALL - 23 )
----
-33

skipif mysql # not compatible
query I rowsort label-5992
SELECT - 56 + - SUM ( ALL - 23 )
----
-33

query I rowsort
SELECT + 33 + + 39
----
72

query I rowsort
SELECT - + CASE - - 35 WHEN + - 40 * CASE + + 86 WHEN 56 * + 5 THEN 77 WHEN + 86 THEN NULL END THEN - 16 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5995
SELECT DISTINCT + + 55 / + CASE + - 22 WHEN + 46 + SUM( ALL + 50 ) / ( ( CAST( - 72 AS SIGNED ) ) ) THEN + 92 + + 59 WHEN + 4 - - ( CAST( - ( 87 ) AS SIGNED ) ) THEN 78 END * - - 75 * - 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5995
SELECT DISTINCT + + 55 / + CASE + - 22 WHEN + 46 + SUM ( ALL + 50 ) / ( ( CAST ( - 72 AS INTEGER ) ) ) THEN + 92 + + 59 WHEN + 4 - - ( CAST ( - ( 87 ) AS INTEGER ) ) THEN 78 END * - - 75 * - 24 AS col0
----
NULL

query I rowsort
SELECT - 89 * - 35
----
3115

query I rowsort
SELECT ALL 28 * 61 AS col2
----
1708

query I rowsort
SELECT - + ( - + 45 ) + + ( - COALESCE ( + 65, 91 * 60 + - + 31, - ( + 91 ) ) ) + + - 15 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-5999
SELECT ALL - COALESCE ( + 72, + 95 ) * + 74 + COUNT( * ) col2, + 1
----
-5327
1

skipif mysql # not compatible
query II rowsort label-5999
SELECT ALL - COALESCE ( + 72, + 95 ) * + 74 + COUNT ( * ) col2, + 1
----
-5327
1

query I rowsort
SELECT + + 57 * + 80 * + - 0 * 29 + - - 79 * - 47
----
-3713

query II rowsort
SELECT + 34 + - - 55 * - 50 AS col1, 20
----
-2716
20

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6002
SELECT - CAST( NULL AS DECIMAL ) AS col2, - 23
----
NULL
-23

skipif mysql # not compatible
query II rowsort label-6002
SELECT - CAST ( NULL AS REAL ) AS col2, - 23
----
NULL
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT ALL COALESCE ( - 65, - - COUNT( * ) ) * + - CASE + COUNT( * ) WHEN 99 * - AVG ( ALL + 37 ) + - MIN( - 97 ) * - 52 THEN - 82 * - 69 * - + 81 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6003
SELECT ALL COALESCE ( - 65, - - COUNT ( * ) ) * + - CASE + COUNT ( * ) WHEN 99 * - AVG ( ALL + 37 ) + - MIN ( - 97 ) * - 52 THEN - 82 * - 69 * - + 81 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6004
SELECT + + 57 * + + 9 + ( MAX( 44 ) ) - - 5 + + + COUNT( * ) DIV 13 * NULLIF ( 93, - 43 ) DIV + 6 + + 33 AS col2
----
595

skipif mysql # not compatible
query I rowsort label-6004
SELECT + + 57 * + + 9 + ( MAX ( 44 ) ) - - 5 + + + COUNT ( * ) / 13 * NULLIF ( 93, - 43 ) / + 6 + + 33 AS col2
----
595

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6005
SELECT ALL + - 66 / + - MAX( DISTINCT CASE 53 WHEN - 38 THEN + - 2 * + + CAST( NULL AS SIGNED ) END ) * - 55 + 3 - - - 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6005
SELECT ALL + - 66 / + - MAX ( DISTINCT CASE 53 WHEN - 38 THEN + - 2 * + + CAST ( NULL AS INTEGER ) END ) * - 55 + 3 - - - 54 AS col2
----
NULL

query I rowsort
SELECT ALL 58 + + 24
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6007
SELECT DISTINCT 62 + - COUNT( ALL + - 3 ) * 71 / + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6007
SELECT DISTINCT 62 + - COUNT ( ALL + - 3 ) * 71 / + CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6008
SELECT ALL - CAST ( NULL AS INTEGER ) + - 44 + 94 / + + COUNT ( * )
----
NULL

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

query II rowsort
SELECT + 21 AS col2, + 96
----
21
96

query II rowsort
SELECT 85 AS col2, 94
----
85
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT + 93 * 16 * + - MIN( DISTINCT - 32 ) - ( + 29 ) AS col0
----
47587

skipif mysql # not compatible
query I rowsort label-6012
SELECT + 93 * 16 * + - MIN ( DISTINCT - 32 ) - ( + 29 ) AS col0
----
47587

onlyif mysql # aggregate syntax: 
query I rowsort label-6013
SELECT ( 23 ) * - - COUNT( * ) * - + 83 - 85 col2
----
-1994

skipif mysql # not compatible
query I rowsort label-6013
SELECT ( 23 ) * - - COUNT ( * ) * - + 83 - 85 col2
----
-1994

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

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

query I rowsort
SELECT ALL 11 + - ( - 44 )
----
55

query II rowsort
SELECT + 32 AS col1, - 65 * - 38 col1
----
32
2470

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6018
SELECT ALL - 34 col2, 82 DIV + 30 + - 75
----
-34
-73

skipif mysql # not compatible
query II rowsort label-6018
SELECT ALL - 34 col2, 82 / + 30 + - 75
----
-34
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6019
SELECT ALL + CASE - - 77 WHEN + + CASE 19 WHEN + 17 THEN + + ( - 90 ) * 34 * + 21 END + - + COUNT( * ) THEN + + 75 ELSE NULL END / - 54 * - 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6019
SELECT ALL + CASE - - 77 WHEN + + CASE 19 WHEN + 17 THEN + + ( - 90 ) * 34 * + 21 END + - + COUNT ( * ) THEN + + 75 ELSE NULL END / - 54 * - 1 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6020
SELECT ALL - SUM( 18 ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-6020
SELECT ALL - SUM ( 18 ) AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT MAX( + - 65 ) + ( - + 87 ) - - 80 * + + 85 * 41 * - 87 + - 3 * CASE - - 16 WHEN - 89 THEN 84 WHEN - + 24 THEN - + 66 / + 69 + - 3 + + 96 + + - 7 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6021
SELECT MAX ( + - 65 ) + ( - + 87 ) - - 80 * + + 85 * 41 * - 87 + - 3 * CASE - - 16 WHEN - 89 THEN 84 WHEN - + 24 THEN - + 66 / + 69 + - 3 + + 96 + + - 7 END AS col1
----
NULL

query I rowsort
SELECT 98 + + + 40 AS col2
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6023
SELECT 33 - - NULLIF ( + CAST( NULL AS SIGNED ), - 1 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6023
SELECT 33 - - NULLIF ( + CAST ( NULL AS INTEGER ), - 1 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6024
SELECT ALL - 83 DIV - 54
----
1

skipif mysql # not compatible
query I rowsort label-6024
SELECT ALL - 83 / - 54
----
1

query I rowsort
SELECT ALL + 11 * + - 95
----
-1045

onlyif mysql # aggregate syntax: 
query I rowsort label-6026
SELECT DISTINCT + 5 - - COUNT( * ) - + 30
----
-24

skipif mysql # not compatible
query I rowsort label-6026
SELECT DISTINCT + 5 - - COUNT ( * ) - + 30
----
-24

query I rowsort
SELECT DISTINCT + 83 * - 88 AS col2
----
-7304

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT ( 6 ) * + + 97 + - COUNT( * ) * - + COUNT( * ) + + ( - 62 ) AS col1
----
521

skipif mysql # not compatible
query I rowsort label-6028
SELECT ( 6 ) * + + 97 + - COUNT ( * ) * - + COUNT ( * ) + + ( - 62 ) AS col1
----
521

query II rowsort
SELECT DISTINCT + 65, + 36 + 9 + + 32 AS col1
----
65
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT 11 + + - 69 + + + 77 + - COUNT( * ) + - ( - - 64 ) + 46 * + COUNT( * ) * 20 AS col1
----
874

skipif mysql # not compatible
query I rowsort label-6030
SELECT 11 + + - 69 + + + 77 + - COUNT ( * ) + - ( - - 64 ) + 46 * + COUNT ( * ) * 20 AS col1
----
874

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

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

query II rowsort
SELECT - 13, + 26 AS col1
----
-13
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6033
SELECT 80 - + COALESCE ( + - 26, 18 ) * - 66 * - - 2 DIV + CAST( + - COUNT( * ) AS SIGNED )
----
3512

skipif mysql # not compatible
query I rowsort label-6033
SELECT 80 - + COALESCE ( + - 26, 18 ) * - 66 * - - 2 / + CAST ( + - COUNT ( * ) AS INTEGER )
----
3512

query I rowsort
SELECT ALL + + 98 + + 20 + + 0 AS col0
----
118

query I rowsort
SELECT ( + 12 ) + - 60 + 25
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT ALL SUM( DISTINCT 35 ) + + 16
----
51

skipif mysql # not compatible
query I rowsort label-6036
SELECT ALL SUM ( DISTINCT 35 ) + + 16
----
51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT 49 - ( + 41 ) + + MIN( ALL + 32 ) * + - 76 AS col2
----
-2424

skipif mysql # not compatible
query I rowsort label-6038
SELECT 49 - ( + 41 ) + + MIN ( ALL + 32 ) * + - 76 AS col2
----
-2424

onlyif mysql # aggregate syntax: 
query II rowsort label-6039
SELECT + COALESCE ( + + COUNT( * ), - 50 - - 37 ), + COUNT( * ) * - + 68 + + - 77 AS col2
----
1
-145

skipif mysql # not compatible
query II rowsort label-6039
SELECT + COALESCE ( + + COUNT ( * ), - 50 - - 37 ), + COUNT ( * ) * - + 68 + + - 77 AS col2
----
1
-145

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT MAX( DISTINCT + - 96 ) * - 4 * 62 * + COUNT( - - 73 ) - + 16 AS col2
----
23792

skipif mysql # not compatible
query I rowsort label-6041
SELECT MAX ( DISTINCT + - 96 ) * - 4 * 62 * + COUNT ( - - 73 ) - + 16 AS col2
----
23792

query II rowsort
SELECT 73 + 29, + 48 AS col0
----
102
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6043
SELECT - 38 / - AVG ( + CAST( NULL AS SIGNED ) ) + + 51 * COUNT( * ) + - 84 - - + 57 + + 59 * - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-6043
SELECT - 38 / - AVG ( + CAST ( NULL AS INTEGER ) ) + + 51 * COUNT ( * ) + - 84 - - + 57 + + 59 * - 97
----
NULL

query I rowsort
SELECT ALL 88 - + - 92 * + 25 AS col1
----
2388

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6045
SELECT CAST( 10 AS SIGNED ) * 89 DIV + SUM( - + 54 ) + + ( + 15 ) DIV 98 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-6045
SELECT CAST ( 10 AS INTEGER ) * 89 / + SUM ( - + 54 ) + + ( + 15 ) / 98 AS col0
----
-16

query I rowsort
SELECT + ( + 80 ) * - 44 + - 8 AS col2
----
-3528

query I rowsort
SELECT 8 + + 61 + + 82 * - + 70 - 90 AS col1
----
-5761

query I rowsort
SELECT ( 89 ) + - 5 col0
----
84

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6050
SELECT - 31 * + 43 + - 49 * 64 - + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6050
SELECT - 31 * + 43 + - 49 * 64 - + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT 80 * - 95 * 72 AS col0
----
-547200

onlyif mysql # DIV for integer division: 
query II rowsort label-6052
SELECT 14 * 29 col2, + 32 DIV - - NULLIF ( + 99, - ( - 25 ) )
----
406
0

skipif mysql # not compatible
query II rowsort label-6052
SELECT 14 * 29 col2, + 32 / - - NULLIF ( + 99, - ( - 25 ) )
----
406
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6053
SELECT DISTINCT 27 * 26 col1, + 82 * + + 24 * + NULLIF ( - 24, 12 ) * 21 / - 57 * + + ( + CASE + ( COUNT( * ) ) WHEN - COALESCE ( 19, + 15 + 27, SUM( + 98 ) ) * 63 * 33 * COUNT( * ) THEN 61 END )
----
702
NULL

skipif mysql # not compatible
query II rowsort label-6053
SELECT DISTINCT 27 * 26 col1, + 82 * + + 24 * + NULLIF ( - 24, 12 ) * 21 / - 57 * + + ( + CASE + ( COUNT ( * ) ) WHEN - COALESCE ( 19, + 15 + 27, SUM ( + 98 ) ) * 63 * 33 * COUNT ( * ) THEN 61 END )
----
702
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6054
SELECT COALESCE ( - - 15, - + 31, + + ( COUNT( * ) ) + 99 ) + - - 42 * - + 64
----
-2673

skipif mysql # not compatible
query I rowsort label-6054
SELECT COALESCE ( - - 15, - + 31, + + ( COUNT ( * ) ) + 99 ) + - - 42 * - + 64
----
-2673

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6055
SELECT 46 + - COUNT( * ) DIV + + 39 + 51 DIV COUNT( * ) * 22 AS col1
----
1168

skipif mysql # not compatible
query I rowsort label-6055
SELECT 46 + - COUNT ( * ) / + + 39 + 51 / COUNT ( * ) * 22 AS col1
----
1168

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT 95 - + NULLIF ( - COUNT( * ), - 28 )
----
96

skipif mysql # not compatible
query I rowsort label-6056
SELECT 95 - + NULLIF ( - COUNT ( * ), - 28 )
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-6057
SELECT + 60 * + + 95 AS col1, MIN( DISTINCT 95 ) * + 93
----
5700
8835

skipif mysql # not compatible
query II rowsort label-6057
SELECT + 60 * + + 95 AS col1, MIN ( DISTINCT 95 ) * + 93
----
5700
8835

query I rowsort
SELECT ALL - - 46 + + 69
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT DISTINCT + + 33 * - MIN( - 15 ) + 6 AS col2
----
501

skipif mysql # not compatible
query I rowsort label-6059
SELECT DISTINCT + + 33 * - MIN ( - 15 ) + 6 AS col2
----
501

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

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

query I rowsort
SELECT ALL 79 + + - 10 AS col1
----
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6062
SELECT + CASE + + 93 WHEN 7 THEN CAST( NULL AS DECIMAL ) END * - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-6062
SELECT + CASE + + 93 WHEN 7 THEN CAST ( NULL AS REAL ) END * - 79
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT - + 22 + + 69 + - SUM( 20 ) * + - COUNT( * ) * + 94 col2
----
1927

skipif mysql # not compatible
query I rowsort label-6063
SELECT - + 22 + + 69 + - SUM ( 20 ) * + - COUNT ( * ) * + 94 col2
----
1927

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6065
SELECT DISTINCT 35 * - + 71 - + + 88 * + + 47 * COALESCE ( + 99, 42 - + 22 * - CAST( NULL AS SIGNED ) ) AS col1
----
-411949

skipif mysql # not compatible
query I rowsort label-6065
SELECT DISTINCT 35 * - + 71 - + + 88 * + + 47 * COALESCE ( + 99, 42 - + 22 * - CAST ( NULL AS INTEGER ) ) AS col1
----
-411949

query I rowsort
SELECT ALL + ( - 15 ) AS col0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6067
SELECT COALESCE ( 35, CASE ( 61 ) WHEN 97 * + 88 * - 74 * 71 + + 67 THEN NULL WHEN + 57 + + 62 * + 62 * - + 53 THEN - 86 * + ( - NULLIF ( + CAST( ( COALESCE ( + 23, + SUM( 15 ), - COUNT( * ) ) ) AS SIGNED ), - + COUNT( * ) * + 58 ) ) ELSE NULL END, + CASE + + 44 WHEN - SUM( - 95 ) * + 82 * + 37 - - + ( - COALESCE ( 69, + 2 * COALESCE ( - COUNT( * ), 82 ) / + COUNT( * ) * + 66 * - - 51 + 35 + 30 ) ) * 90 + 59 THEN + 53 ELSE NULL END + - 58 )
----
35

skipif mysql # not compatible
query I rowsort label-6067
SELECT COALESCE ( 35, CASE ( 61 ) WHEN 97 * + 88 * - 74 * 71 + + 67 THEN NULL WHEN + 57 + + 62 * + 62 * - + 53 THEN - 86 * + ( - NULLIF ( + CAST ( ( COALESCE ( + 23, + SUM ( 15 ), - COUNT ( * ) ) ) AS INTEGER ), - + COUNT ( * ) * + 58 ) ) ELSE NULL END, + CASE + + 44 WHEN - SUM ( - 95 ) * + 82 * + 37 - - + ( - COALESCE ( 69, + 2 * COALESCE ( - COUNT ( * ), 82 ) / + COUNT ( * ) * + 66 * - - 51 + 35 + 30 ) ) * 90 + 59 THEN + 53 ELSE NULL END + - 58 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT ALL - ( ( 22 ) ) * + NULLIF ( - 2, + 8 + - COUNT( * ) - + 92 + + - 44 + - + COALESCE ( + + 48, - 45, - - 91 ) / - 94 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-6068
SELECT ALL - ( ( 22 ) ) * + NULLIF ( - 2, + 8 + - COUNT ( * ) - + 92 + + - 44 + - + COALESCE ( + + 48, - 45, - - 91 ) / - 94 ) AS col1
----
44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6070
SELECT - 22 * - 92 * + 12 * - COUNT( ALL - 55 ) * + 79 col1
----
-1918752

skipif mysql # not compatible
query I rowsort label-6070
SELECT - 22 * - 92 * + 12 * - COUNT ( ALL - 55 ) * + 79 col1
----
-1918752

onlyif mysql # aggregate syntax: 
query I rowsort label-6071
SELECT - COUNT( * ) - + 32 + + 47 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-6071
SELECT - COUNT ( * ) - + 32 + + 47 AS col1
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-6072
SELECT - 40 DIV 12
----
-3

skipif mysql # not compatible
query I rowsort label-6072
SELECT - 40 / 12
----
-3

query I rowsort
SELECT ALL - 83 * - 49 AS col1
----
4067

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT COALESCE ( + SUM( DISTINCT 35 ), 20 * - COALESCE ( COUNT( * ), 40 + + + COUNT( * ) * - 44 - + - COUNT( * ) ) * - COUNT( ALL + 27 ) - - 6 * 58, - 57 ) col1
----
35

skipif mysql # not compatible
query I rowsort label-6074
SELECT COALESCE ( + SUM ( DISTINCT 35 ), 20 * - COALESCE ( COUNT ( * ), 40 + + + COUNT ( * ) * - 44 - + - COUNT ( * ) ) * - COUNT ( ALL + 27 ) - - 6 * 58, - 57 ) col1
----
35

query I rowsort
SELECT - 86 * 25 col2
----
-2150

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT DISTINCT - 38 * MAX( ALL 41 ) * MIN( + - 9 )
----
14022

skipif mysql # not compatible
query I rowsort label-6077
SELECT DISTINCT - 38 * MAX ( ALL 41 ) * MIN ( + - 9 )
----
14022

query II rowsort
SELECT ALL + 88 col2, + 90 AS col2
----
88
90

query I rowsort
SELECT - 80 - - 85 * + 31 AS col2
----
2555

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6080
SELECT DISTINCT + CASE CAST( + + 40 AS SIGNED ) WHEN - + 86 THEN NULL WHEN + NULLIF ( - 96, + 57 + - + 37 + + + ( + - 6 ) + ( - 28 ) * + 14 ) THEN NULL WHEN SUM( - + 58 ) THEN + 40 / + ( + NULLIF ( + COUNT( * ), 96 * 1 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6080
SELECT DISTINCT + CASE CAST ( + + 40 AS INTEGER ) WHEN - + 86 THEN NULL WHEN + NULLIF ( - 96, + 57 + - + 37 + + + ( + - 6 ) + ( - 28 ) * + 14 ) THEN NULL WHEN SUM ( - + 58 ) THEN + 40 / + ( + NULLIF ( + COUNT ( * ), 96 * 1 ) ) END AS col1
----
NULL

query I rowsort
SELECT - 56 - + + 2
----
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-6082
SELECT ALL + 4 AS col2, - NULLIF ( 80, 55 ) + + 30 DIV + 73
----
4
-80

skipif mysql # not compatible
query II rowsort label-6082
SELECT ALL + 4 AS col2, - NULLIF ( 80, 55 ) + + 30 / + 73
----
4
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6083
SELECT SUM( - 18 ) col1
----
-18

skipif mysql # not compatible
query I rowsort label-6083
SELECT SUM ( - 18 ) col1
----
-18

query I rowsort
SELECT DISTINCT + 2 * - 46 + + 65 * 6
----
298

query I rowsort
SELECT - + 33 * + - 18 * - + 0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6086
SELECT ALL 84 + + 78 + - COUNT( * ) DIV + + 34 * 66
----
162

skipif mysql # not compatible
query I rowsort label-6086
SELECT ALL 84 + + 78 + - COUNT ( * ) / + + 34 * 66
----
162

onlyif mysql # DIV for integer division: 
query I rowsort label-6087
SELECT DISTINCT - 62 DIV - - 34
----
-1

skipif mysql # not compatible
query I rowsort label-6087
SELECT DISTINCT - 62 / - - 34
----
-1

query I rowsort
SELECT + 85 + - 42
----
43

query II rowsort
SELECT + 48, 15 col1
----
48
15

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

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

query I rowsort
SELECT + 38 * - + 67 AS col1
----
-2546

query I rowsort
SELECT + - 57 + + + 81
----
24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6093
SELECT - NULLIF ( COALESCE ( 79, - 36, + 42 - + 48 + + - 28 * + + 45 ), - CAST( COUNT( * ) AS DECIMAL ) + 99 ), 27 AS col0
----
-79
27

skipif mysql # not compatible
query II rowsort label-6093
SELECT - NULLIF ( COALESCE ( 79, - 36, + 42 - + 48 + + - 28 * + + 45 ), - CAST ( COUNT ( * ) AS REAL ) + 99 ), 27 AS col0
----
-79
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6094
SELECT + + CASE + + COUNT( * ) WHEN + 76 * 61 / 71 THEN 54 * + - MIN( DISTINCT + 42 ) ELSE NULL END + - 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6094
SELECT + + CASE + + COUNT ( * ) WHEN + 76 * 61 / 71 THEN 54 * + - MIN ( DISTINCT + 42 ) ELSE NULL END + - 48 AS col0
----
NULL

query I rowsort
SELECT + + 77 * + 71 + + 10 * - 24 + + 61 AS col1
----
5288

onlyif mysql # aggregate syntax: 
query I rowsort label-6096
SELECT - + 18 * - + NULLIF ( - COUNT( * ), - 32 * + + 9 )
----
-18

skipif mysql # not compatible
query I rowsort label-6096
SELECT - + 18 * - + NULLIF ( - COUNT ( * ), - 32 * + + 9 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6097
SELECT - NULLIF ( + 55, 75 * COUNT( * ) )
----
-55

skipif mysql # not compatible
query I rowsort label-6097
SELECT - NULLIF ( + 55, 75 * COUNT ( * ) )
----
-55

query I rowsort
SELECT + 94 + ( + + COALESCE ( + ( - 73 ), 57 ) ) AS col1
----
21

query I rowsort
SELECT DISTINCT - 14 * 28
----
-392

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT ALL - MAX( DISTINCT 54 ) * 38 AS col1
----
-2052

skipif mysql # not compatible
query I rowsort label-6100
SELECT ALL - MAX ( DISTINCT 54 ) * 38 AS col1
----
-2052

query I rowsort
SELECT - 64 * + 3
----
-192

query I rowsort
SELECT - 99 * 5 * - 75 col2
----
37125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6103
SELECT + COUNT( * ) + - + 53 + + NULLIF ( CAST( NULL AS SIGNED ), - + 3 ) * + + 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6103
SELECT + COUNT ( * ) + - + 53 + + NULLIF ( CAST ( NULL AS INTEGER ), - + 3 ) * + + 49 AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6105
SELECT 24 * - 26 + - COUNT( * ) * + 9 * 83 - + 88
----
-1459

skipif mysql # not compatible
query I rowsort label-6105
SELECT 24 * - 26 + - COUNT ( * ) * + 9 * 83 - + 88
----
-1459

onlyif mysql # DIV for integer division: 
query I rowsort label-6106
SELECT DISTINCT - ( + 14 ) DIV - COALESCE ( - 6, - AVG ( - 29 ) + + 66 + + 16 ) + - 57 + + 94 col1
----
35

skipif mysql # not compatible
query I rowsort label-6106
SELECT DISTINCT - ( + 14 ) / - COALESCE ( - 6, - AVG ( - 29 ) + + 66 + + 16 ) + - 57 + + 94 col1
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6107
SELECT ALL - MIN( 11 ) / - 63 + 44 - 43 + + + ( + 47 ) / + 39 * CAST( NULL AS SIGNED ) * + COALESCE ( - 28, + CASE - MAX( + - 35 ) WHEN MAX( 16 ) THEN + - 1 ELSE + COUNT( * ) END / CAST( NULL AS SIGNED ) * + - 78 - 96 * + NULLIF ( 62, + ( ( CASE ( + + 83 ) WHEN - COUNT( * ) THEN NULL WHEN - + 74 THEN + + 37 + - 78 WHEN + 87 + 97 + 82 * + CAST( AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS SIGNED ) + + COUNT( * ) / 28 * 82 THEN 90 * - 79 + + COUNT( * ) + - 98 * - CAST( 37 AS SIGNED ) END ) ) ) * SUM( 49 ), 58 * MIN( - COALESCE ( - ( + 96 ), 93, 98 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6107
SELECT ALL - MIN ( 11 ) / - 63 + 44 - 43 + + + ( + 47 ) / + 39 * CAST ( NULL AS INTEGER ) * + COALESCE ( - 28, + CASE - MAX ( + - 35 ) WHEN MAX ( 16 ) THEN + - 1 ELSE + COUNT ( * ) END / CAST ( NULL AS INTEGER ) * + - 78 - 96 * + NULLIF ( 62, + ( ( CASE ( + + 83 ) WHEN - COUNT ( * ) THEN NULL WHEN - + 74 THEN + + 37 + - 78 WHEN + 87 + 97 + 82 * + CAST ( AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS INTEGER ) + + COUNT ( * ) / 28 * 82 THEN 90 * - 79 + + COUNT ( * ) + - 98 * - CAST ( 37 AS INTEGER ) END ) ) ) * SUM ( 49 ), 58 * MIN ( - COALESCE ( - ( + 96 ), 93, 98 ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6108
SELECT ( + + CASE 14 WHEN 79 - + SUM( + 27 ) THEN NULL ELSE - - COUNT( * ) END ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6108
SELECT ( + + CASE 14 WHEN 79 - + SUM ( + 27 ) THEN NULL ELSE - - COUNT ( * ) END ) AS col1
----
1

query I rowsort
SELECT - + 29 * + 91 col1
----
-2639

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

skipif mysql # not compatible
query I rowsort label-6110
SELECT DISTINCT + 84 * - COUNT ( * ) + - + COUNT ( * ) AS col0
----
-85

query I rowsort
SELECT + + 1 col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6112
SELECT DISTINCT - 0 * NULLIF ( - 37, + + 12 ) - + ( - - CASE + 33 WHEN - COUNT( * ) THEN NULL WHEN ( SUM( DISTINCT + COALESCE ( + 75, 91 + - 90 + - 26 ) ) ) THEN - 95 ELSE - 11 END ) DIV - 88 + - + COALESCE ( - 18, + - 79 + + CAST( NULL AS SIGNED ) * - - 63 * + 65 - - 88 - + 65 + 49 + + 55, + + SUM( DISTINCT - - 37 ) ) + + - 19
----
-1

skipif mysql # not compatible
query I rowsort label-6112
SELECT DISTINCT - 0 * NULLIF ( - 37, + + 12 ) - + ( - - CASE + 33 WHEN - COUNT ( * ) THEN NULL WHEN ( SUM ( DISTINCT + COALESCE ( + 75, 91 + - 90 + - 26 ) ) ) THEN - 95 ELSE - 11 END ) / - 88 + - + COALESCE ( - 18, + - 79 + + CAST ( NULL AS INTEGER ) * - - 63 * + 65 - - 88 - + 65 + 49 + + 55, + + SUM ( DISTINCT - - 37 ) ) + + - 19
----
-1

query I rowsort
SELECT DISTINCT + + 62 + - - 49 + - 13
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT - CASE COUNT( * ) WHEN + CASE - + 37 WHEN + - 72 THEN - ( + - 7 ) WHEN 45 + + 9 THEN NULL ELSE - + NULLIF ( 34, - 11 * + - 44 - 72 ) END * - 55 * + - 70 / - 15 + - 40 + SUM( DISTINCT 43 ) + + 24 * - COUNT( * ) * + AVG ( DISTINCT + + 93 ) + - 96 THEN - + NULLIF ( - - COUNT( * ), - ( - NULLIF ( - 95, - 92 ) ) / 99 ) + + 74 ELSE + 81 * - 94 + 9 END
----
7605

skipif mysql # not compatible
query I rowsort label-6114
SELECT - CASE COUNT ( * ) WHEN + CASE - + 37 WHEN + - 72 THEN - ( + - 7 ) WHEN 45 + + 9 THEN NULL ELSE - + NULLIF ( 34, - 11 * + - 44 - 72 ) END * - 55 * + - 70 / - 15 + - 40 + SUM ( DISTINCT 43 ) + + 24 * - COUNT ( * ) * + AVG ( DISTINCT + + 93 ) + - 96 THEN - + NULLIF ( - - COUNT ( * ), - ( - NULLIF ( - 95, - 92 ) ) / 99 ) + + 74 ELSE + 81 * - 94 + 9 END
----
7605

query I rowsort
SELECT + 35 - + 13 AS col1
----
22

query II rowsort
SELECT + 5 * 77, 64 * + 86 * 54 col1
----
385
297216

onlyif mysql # aggregate syntax: 
query I rowsort label-6117
SELECT - - NULLIF ( COUNT( - + 40 ), - 3 / + 32 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6117
SELECT - - NULLIF ( COUNT ( - + 40 ), - 3 / + 32 ) AS col1
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6119
SELECT - 72 * - COUNT( * ) * + 18 AS col1
----
1296

skipif mysql # not compatible
query I rowsort label-6119
SELECT - 72 * - COUNT ( * ) * + 18 AS col1
----
1296

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

query I rowsort
SELECT DISTINCT + 9 * + 74
----
666

query II rowsort
SELECT 41 AS col1, ( 62 ) - + + 47 + 93 * 57
----
41
5316

onlyif mysql # DIV for integer division: 
query I rowsort label-6123
SELECT ( - + 59 ) DIV + 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6123
SELECT ( - + 59 ) / + 73 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6124
SELECT CAST( NULL AS SIGNED ) + - + COALESCE ( - - ( - + 67 ), + COUNT( * ) * COUNT( * ) - NULLIF ( + 7, - COUNT( * ) / 53 + + - CAST( - + 69 AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6124
SELECT CAST ( NULL AS INTEGER ) + - + COALESCE ( - - ( - + 67 ), + COUNT ( * ) * COUNT ( * ) - NULLIF ( + 7, - COUNT ( * ) / 53 + + - CAST ( - + 69 AS INTEGER ) ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-6125
SELECT NULLIF ( 81, + - 57 * - - 31 DIV CAST( 9 AS DECIMAL ) * 49 * - + 17 * + 42 * + 74 + + 36 + 23 + + COALESCE ( - 58, - - 15 + - CAST( NULL AS SIGNED ) ) * 68 + - - 89 * + 9 ) DIV 10 + 89 DIV + 74
----
9

skipif mysql # not compatible
query I rowsort label-6125
SELECT NULLIF ( 81, + - 57 * - - 31 / CAST ( 9 AS REAL ) * 49 * - + 17 * + 42 * + 74 + + 36 + 23 + + COALESCE ( - 58, - - 15 + - CAST ( NULL AS INTEGER ) ) * 68 + - - 89 * + 9 ) / 10 + 89 / + 74
----
9

query II rowsort
SELECT - 35, 97 - - 39 * + 70 col1
----
-35
2827

onlyif mysql # aggregate syntax: 
query I rowsort label-6127
SELECT ALL CASE + + 42 WHEN - + 19 * - 82 + - COUNT( * ) + - ( - 52 ) + - 6 * 94 * ( + 60 ) + - 98 * - 86 THEN + 31 * - 47 WHEN - + 92 THEN NULL END + 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6127
SELECT ALL CASE + + 42 WHEN - + 19 * - 82 + - COUNT ( * ) + - ( - 52 ) + - 6 * 94 * ( + 60 ) + - 98 * - 86 THEN + 31 * - 47 WHEN - + 92 THEN NULL END + 44 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6128
SELECT CAST ( NULL AS REAL ) * - - 58 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT ALL COUNT( DISTINCT + 19 ) + + CASE + 71 WHEN - 35 + 13 + 75 + - + COUNT( * ) * + NULLIF ( - NULLIF ( 68, 57 * - - 82 ), 17 * + + ( 67 ) + - 65 ) * + + COUNT( * ) THEN + + COUNT( * ) * - 51 END - - ( - 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6129
SELECT ALL COUNT ( DISTINCT + 19 ) + + CASE + 71 WHEN - 35 + 13 + 75 + - + COUNT ( * ) * + NULLIF ( - NULLIF ( 68, 57 * - - 82 ), 17 * + + ( 67 ) + - 65 ) * + + COUNT ( * ) THEN + + COUNT ( * ) * - 51 END - - ( - 18 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6130
SELECT ALL - 2 + + COUNT ( * ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6131
SELECT 14 - + - 69 * - - CAST( NULL AS SIGNED ) * - 32 + - 24 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6131
SELECT 14 - + - 69 * - - CAST ( NULL AS INTEGER ) * - 32 + - 24 + - COUNT ( * )
----
NULL

query I rowsort
SELECT 52 * - 42
----
-2184

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

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

query I rowsort
SELECT ALL 91 + - 69
----
22

query II rowsort
SELECT ALL + ( - 70 ) * + + 9, 16 * + 23 * - - ( 67 ) col0
----
-630
24656

onlyif mysql # aggregate syntax: 
query II rowsort label-6136
SELECT + 53 - - 5 - - - 75 + - 74 * NULLIF ( + 98, - COUNT( * ) * + 17 + + + 5 - + 57 * 15 ) + + MAX( DISTINCT - 22 ), 30 AS col0
----
-7291
30

skipif mysql # not compatible
query II rowsort label-6136
SELECT + 53 - - 5 - - - 75 + - 74 * NULLIF ( + 98, - COUNT ( * ) * + 17 + + + 5 - + 57 * 15 ) + + MAX ( DISTINCT - 22 ), 30 AS col0
----
-7291
30

query I rowsort
SELECT ALL - 12 + - - 7 * + - 37 * 44 AS col2
----
-11408

query I rowsort
SELECT + CASE - + 32 WHEN + - 51 THEN NULL ELSE + 40 * + ( 55 ) END
----
2200

onlyif mysql # DIV for integer division: 
query II rowsort label-6139
SELECT DISTINCT + 79 DIV 8 * + 3 AS col1, - 2 AS col0
----
27
-2

skipif mysql # not compatible
query II rowsort label-6139
SELECT DISTINCT + 79 / 8 * + 3 AS col1, - 2 AS col0
----
27
-2

query I rowsort
SELECT 39 * + 35 AS col2
----
1365

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6141
SELECT DISTINCT - CAST( - - COALESCE ( - 19, - 48 ) AS SIGNED ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-6141
SELECT DISTINCT - CAST ( - - COALESCE ( - 19, - 48 ) AS INTEGER ) AS col0
----
19

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

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

query I rowsort
SELECT - 3 - - 91 * + ( - 28 )
----
-2551

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

skipif mysql # not compatible
query I rowsort label-6144
SELECT COUNT ( * ) / + - 79 col2
----
0

query I rowsort
SELECT ALL - + 67 * - 3 * + 13
----
2613

query I rowsort
SELECT DISTINCT + 27 * - 0 col1
----
0

query I rowsort
SELECT - 69 * + 81 * - 16 - 43 - + + 42 col2
----
89339

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6148
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, 12
----
NULL
12

skipif mysql # not compatible
query II rowsort label-6148
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, 12
----
NULL
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6149
SELECT 79 + - CAST( + + MIN( + + 97 ) AS SIGNED )
----
-18

skipif mysql # not compatible
query I rowsort label-6149
SELECT 79 + - CAST ( + + MIN ( + + 97 ) AS INTEGER )
----
-18

query I rowsort
SELECT 89 + + 12 - - 28
----
129

query II rowsort
SELECT - 22, 86 AS col1
----
-22
86

query I rowsort
SELECT 98 + + 46 col0
----
144

query II rowsort
SELECT 8 + - 61 + ( - 74 ) AS col0, - 16 AS col1
----
-127
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6154
SELECT ALL - COUNT( * ) + + - ( - - 94 )
----
-95

skipif mysql # not compatible
query I rowsort label-6154
SELECT ALL - COUNT ( * ) + + - ( - - 94 )
----
-95

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6156
SELECT ALL + CASE + 53 WHEN + 67 THEN COUNT( * ) * + 44 DIV + 84 + + - 68 WHEN - - 73 THEN NULL ELSE - - 5 END + - + 71 AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-6156
SELECT ALL + CASE + 53 WHEN + 67 THEN COUNT ( * ) * + 44 / + 84 + + - 68 WHEN - - 73 THEN NULL ELSE - - 5 END + - + 71 AS col0
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6157
SELECT DISTINCT COUNT( * ) AS col1, 96 DIV 9 AS col0
----
1
10

skipif mysql # not compatible
query II rowsort label-6157
SELECT DISTINCT COUNT ( * ) AS col1, 96 / 9 AS col0
----
1
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT COUNT( * ) + + + 66 col1
----
67

skipif mysql # not compatible
query I rowsort label-6158
SELECT COUNT ( * ) + + + 66 col1
----
67

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

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

query I rowsort
SELECT ALL - 37 * + 3 + + + 38 * - + 76 * 85 col1
----
-245591

onlyif mysql # DIV for integer division: 
query II rowsort label-6161
SELECT 98 DIV 20 * + + 5 + + + 85 col1, 79 AS col1
----
105
79

skipif mysql # not compatible
query II rowsort label-6161
SELECT 98 / 20 * + + 5 + + + 85 col1, 79 AS col1
----
105
79

query I rowsort
SELECT 62 * - 52 - + 33 AS col2
----
-3257

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6163
SELECT + 39 DIV 38 + + 38 DIV ( + COUNT( * ) )
----
39

skipif mysql # not compatible
query I rowsort label-6163
SELECT + 39 / 38 + + 38 / ( + COUNT ( * ) )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6164
SELECT CASE + 6 WHEN + - 76 THEN NULL WHEN - COUNT( * ) THEN 82 ELSE + 56 END
----
56

skipif mysql # not compatible
query I rowsort label-6164
SELECT CASE + 6 WHEN + - 76 THEN NULL WHEN - COUNT ( * ) THEN 82 ELSE + 56 END
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-6165
SELECT ALL + 60 * 25 + + CASE 20 WHEN - 86 THEN - 28 WHEN COUNT( * ) THEN NULL END AS col0, - 35 * - 99
----
NULL
3465

skipif mysql # not compatible
query II rowsort label-6165
SELECT ALL + 60 * 25 + + CASE 20 WHEN - 86 THEN - 28 WHEN COUNT ( * ) THEN NULL END AS col0, - 35 * - 99
----
NULL
3465

query I rowsort
SELECT + 91 * + 66 AS col2
----
6006

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6167
SELECT DISTINCT - COUNT( DISTINCT + + CAST( + 49 AS SIGNED ) ) * - ( - - 2 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6167
SELECT DISTINCT - COUNT ( DISTINCT + + CAST ( + 49 AS INTEGER ) ) * - ( - - 2 ) AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6168
SELECT DISTINCT - + MAX( + CAST( NULL AS SIGNED ) ) * 79 - - - NULLIF ( - 47, 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6168
SELECT DISTINCT - + MAX ( + CAST ( NULL AS INTEGER ) ) * 79 - - - NULLIF ( - 47, 86 )
----
NULL

query I rowsort
SELECT ALL + 52 * ( - 7 ) AS col0
----
-364

onlyif mysql # DIV for integer division: 
query I rowsort label-6170
SELECT + 28 DIV - 32 + + - 18 DIV + + 58 + - 2 * + 25 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-6170
SELECT + 28 / - 32 + + - 18 / + + 58 + - 2 * + 25 AS col1
----
-50

query I rowsort
SELECT ALL 20 * 31 - ( + 78 ) - + 83 AS col1
----
459

query I rowsort
SELECT + - 72 + + 26
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6173
SELECT + 90 * - 35 * CAST( NULL AS SIGNED ) + - 95 + NULLIF ( - + COALESCE ( - + 90, - 43 ), - - COUNT( + 11 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6173
SELECT + 90 * - 35 * CAST ( NULL AS INTEGER ) + - 95 + NULLIF ( - + COALESCE ( - + 90, - 43 ), - - COUNT ( + 11 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT + MIN( - 99 ) * + 91 AS col2
----
-9009

skipif mysql # not compatible
query I rowsort label-6174
SELECT + MIN ( - 99 ) * + 91 AS col2
----
-9009

onlyif mysql # aggregate syntax: 
query II rowsort label-6175
SELECT ALL 30 * - + 99 AS col0, - COUNT( * ) col1
----
-2970
-1

skipif mysql # not compatible
query II rowsort label-6175
SELECT ALL 30 * - + 99 AS col0, - COUNT ( * ) col1
----
-2970
-1

query II rowsort
SELECT + 5 AS col1, 18 * + - 33 * - 88
----
5
52272

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6178
SELECT DISTINCT + + CASE WHEN NULL = NULL THEN CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6178
SELECT DISTINCT + + CASE WHEN NULL = NULL THEN CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6179
SELECT + + 95 * - 49 DIV COUNT( * ) * SUM( 83 ) * - 14 + - - ( 93 )
----
5409203

skipif mysql # not compatible
query I rowsort label-6179
SELECT + + 95 * - 49 / COUNT ( * ) * SUM ( 83 ) * - 14 + - - ( 93 )
----
5409203

query II rowsort
SELECT + 40 AS col1, - 12 AS col0
----
40
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6181
SELECT DISTINCT + COUNT( * ), CAST( NULL AS SIGNED ) * - + 30 - - 16 * + + COALESCE ( 3, 2 / + 40 + + - 88 + 81 + - - CAST( - 9 AS DECIMAL ) + + 63 * - 65 / - 11 * COUNT( * ) / + - CAST( NULL AS SIGNED ) ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6181
SELECT DISTINCT + COUNT ( * ), CAST ( NULL AS INTEGER ) * - + 30 - - 16 * + + COALESCE ( 3, 2 / + 40 + + - 88 + 81 + - - CAST ( - 9 AS REAL ) + + 63 * - 65 / - 11 * COUNT ( * ) / + - CAST ( NULL AS INTEGER ) ) AS col2
----
1
NULL

query I rowsort
SELECT - 63 + - - 7
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6183
SELECT DISTINCT - 18 * CAST( NULL AS SIGNED ) * + ( - 22 ) AS col1, 9 AS col0
----
NULL
9

skipif mysql # not compatible
query II rowsort label-6183
SELECT DISTINCT - 18 * CAST ( NULL AS INTEGER ) * + ( - 22 ) AS col1, 9 AS col0
----
NULL
9

query II rowsort
SELECT DISTINCT + NULLIF ( + 19, + 93 * - 91 ) AS col0, - 67 * + 15 + + 43 col1
----
19
-962

query II rowsort
SELECT + 35 * - 74 AS col1, - 44 AS col1
----
-2590
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6186
SELECT - ( + MIN( 4 ) )
----
-4

skipif mysql # not compatible
query I rowsort label-6186
SELECT - ( + MIN ( 4 ) )
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6187
SELECT ALL - ( - COUNT( DISTINCT - - CAST( NULL AS SIGNED ) ) ) * + CASE + 53 WHEN + + 57 THEN - 55 * + 39 + - - 88 + + 94 END AS col1, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6187
SELECT ALL - ( - COUNT ( DISTINCT - - CAST ( NULL AS INTEGER ) ) ) * + CASE + 53 WHEN + + 57 THEN - 55 * + 39 + - - 88 + + 94 END AS col1, COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6188
SELECT - 88 DIV 16 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-6188
SELECT - 88 / 16 AS col0
----
-5

query I rowsort
SELECT DISTINCT COALESCE ( 30, - 74 )
----
30

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

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

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

skipif mysql # not compatible
query I rowsort label-6191
SELECT - 57 / - + 57 * - + COUNT ( * )
----
-1

query I rowsort
SELECT - 45 * 27 * + + 34
----
-41310

query II rowsort
SELECT ALL COALESCE ( + - 17, 13 ), - 74 * + - 52 + 87 AS col2
----
-17
3935

query I rowsort
SELECT DISTINCT + ( + 44 ) + - ( + 63 ) AS col0
----
-19

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6196
SELECT DISTINCT - 32 DIV + 29 - - 67 * + 76
----
5091

skipif mysql # not compatible
query I rowsort label-6196
SELECT DISTINCT - 32 / + 29 - - 67 * + 76
----
5091

onlyif mysql # aggregate syntax: 
query II rowsort label-6197
SELECT ALL 62 * + MAX( DISTINCT + 70 ) AS col1, COUNT( * ) * - 72
----
4340
-72

skipif mysql # not compatible
query II rowsort label-6197
SELECT ALL 62 * + MAX ( DISTINCT + 70 ) AS col1, COUNT ( * ) * - 72
----
4340
-72

query I rowsort
SELECT - 68 * - - 59 AS col1
----
-4012

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6200
SELECT DISTINCT 34 DIV 32 - - 94 + 35 - + 41 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-6200
SELECT DISTINCT 34 / 32 - - 94 + 35 - + 41 AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT DISTINCT - - 18 * - NULLIF ( - ( + MIN( DISTINCT + 88 ) ), 11 - - + 59 ) * 19
----
30096

skipif mysql # not compatible
query I rowsort label-6201
SELECT DISTINCT - - 18 * - NULLIF ( - ( + MIN ( DISTINCT + 88 ) ), 11 - - + 59 ) * 19
----
30096

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6203
SELECT - 75 - + 62 DIV - + MAX( - 68 ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-6203
SELECT - 75 - + 62 / - + MAX ( - 68 ) AS col0
----
-75

query I rowsort
SELECT - 88 + - 49 - - 3 AS col2
----
-134

onlyif mysql # aggregate syntax: 
query II rowsort label-6205
SELECT - SUM( ALL 37 ), 78 AS col1
----
-37
78

skipif mysql # not compatible
query II rowsort label-6205
SELECT - SUM ( ALL 37 ), 78 AS col1
----
-37
78

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6207
SELECT DISTINCT + - CAST( + + NULLIF ( + 57, NULLIF ( - - CAST( - 45 AS SIGNED ), 54 + + CAST( - + 11 AS DECIMAL ) ) ) AS SIGNED )
----
-57

skipif mysql # not compatible
query I rowsort label-6207
SELECT DISTINCT + - CAST ( + + NULLIF ( + 57, NULLIF ( - - CAST ( - 45 AS INTEGER ), 54 + + CAST ( - + 11 AS REAL ) ) ) AS INTEGER )
----
-57

query I rowsort
SELECT + 38 - + - 71
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT + 47 * + MAX( ALL - 12 )
----
-564

skipif mysql # not compatible
query I rowsort label-6209
SELECT + 47 * + MAX ( ALL - 12 )
----
-564

onlyif mysql # aggregate syntax: 
query I rowsort label-6210
SELECT ALL 91 * - + COUNT( - 87 ) * - COUNT( ALL 74 ) + - 37
----
54

skipif mysql # not compatible
query I rowsort label-6210
SELECT ALL 91 * - + COUNT ( - 87 ) * - COUNT ( ALL 74 ) + - 37
----
54

query I rowsort
SELECT + 60 * + - 9 AS col1
----
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT ALL 88 * - COUNT( * ) + - 31 AS col0
----
-119

skipif mysql # not compatible
query I rowsort label-6212
SELECT ALL 88 * - COUNT ( * ) + - 31 AS col0
----
-119

onlyif mysql # aggregate syntax: 
query II rowsort label-6213
SELECT + MAX( ALL 15 ) AS col1, 20 col2
----
15
20

skipif mysql # not compatible
query II rowsort label-6213
SELECT + MAX ( ALL 15 ) AS col1, 20 col2
----
15
20

query I rowsort
SELECT DISTINCT + 12 * + - 92 * - - 67 + + 97 - 92 - - 48 + + 21
----
-73894

query I rowsort
SELECT + 18 + + 39
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6216
SELECT + + 22 * - COALESCE ( + 96, - 25 + ( - 46 ), - 11 DIV - COUNT( * ) * - + 2 )
----
-2112

skipif mysql # not compatible
query I rowsort label-6216
SELECT + + 22 * - COALESCE ( + 96, - 25 + ( - 46 ), - 11 / - COUNT ( * ) * - + 2 )
----
-2112

query I rowsort
SELECT - + 17 * - + 44 * + 97
----
72556

query I rowsort
SELECT - 76 - - - 67 AS col0
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT ALL SUM( ALL 26 ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-6219
SELECT ALL SUM ( ALL 26 ) AS col0
----
26

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

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

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

query II rowsort
SELECT DISTINCT 70 AS col1, 24 + + 29 col2
----
70
53

query I rowsort
SELECT ALL + 75 * ( 93 ) + + 49
----
7024

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6224
SELECT DISTINCT + 98 * 98 * - CAST( NULL AS DECIMAL ) + - + 14 * - + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-6224
SELECT DISTINCT + 98 * 98 * - CAST ( NULL AS REAL ) + - + 14 * - + 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6225
SELECT SUM( + - 64 ) col0
----
-64

skipif mysql # not compatible
query I rowsort label-6225
SELECT SUM ( + - 64 ) col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT DISTINCT SUM( DISTINCT + - 37 ) col0
----
-37

skipif mysql # not compatible
query I rowsort label-6226
SELECT DISTINCT SUM ( DISTINCT + - 37 ) col0
----
-37

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6228
SELECT + 46 + 17 DIV 70 - - - 42 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-6228
SELECT + 46 + 17 / 70 - - - 42 AS col2
----
4

query I rowsort
SELECT + 22 + - - 92
----
114

query II rowsort
SELECT - 90 AS col2, - 17 * 90 AS col1
----
-90
-1530

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT + 98 + - + COUNT( * ) * - + 14 - 40 col1
----
72

skipif mysql # not compatible
query I rowsort label-6231
SELECT + 98 + - + COUNT ( * ) * - + 14 - 40 col1
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-6232
SELECT 68 DIV 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6232
SELECT 68 / 96 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT NULLIF ( + 3, - 97 + COUNT( * ) + 39 + COUNT( * ) / - + 25 ) * - - 92
----
276

skipif mysql # not compatible
query I rowsort label-6233
SELECT NULLIF ( + 3, - 97 + COUNT ( * ) + 39 + COUNT ( * ) / - + 25 ) * - - 92
----
276

onlyif mysql # aggregate syntax: 
query II rowsort label-6234
SELECT ALL 54, - COUNT( * ) * + + 31 AS col0
----
54
-31

skipif mysql # not compatible
query II rowsort label-6234
SELECT ALL 54, - COUNT ( * ) * + + 31 AS col0
----
54
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT 58 + - MIN( ALL - 16 ) + 81 AS col1
----
155

skipif mysql # not compatible
query I rowsort label-6235
SELECT 58 + - MIN ( ALL - 16 ) + 81 AS col1
----
155

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6237
SELECT + NULLIF ( + 75, - 45 * 70 * - 51 - - + 58 - + + 96 + - ( + - 30 ) + - - CAST( NULL AS SIGNED ) + COALESCE ( - + 14, - 65 - + + 85 + - + 44 * + COUNT( * ) ) * - 17 * + - 60 * 6 + CAST( CASE MIN( DISTINCT + + 11 ) WHEN + 77 THEN - 19 END AS SIGNED ) ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-6237
SELECT + NULLIF ( + 75, - 45 * 70 * - 51 - - + 58 - + + 96 + - ( + - 30 ) + - - CAST ( NULL AS INTEGER ) + COALESCE ( - + 14, - 65 - + + 85 + - + 44 * + COUNT ( * ) ) * - 17 * + - 60 * 6 + CAST ( CASE MIN ( DISTINCT + + 11 ) WHEN + 77 THEN - 19 END AS INTEGER ) ) AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT 39 * 38 * + SUM( + 50 ) + - + 88 AS col0
----
74012

skipif mysql # not compatible
query I rowsort label-6238
SELECT 39 * 38 * + SUM ( + 50 ) + - + 88 AS col0
----
74012

query I rowsort
SELECT - 82 * - 7 AS col0
----
574

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

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

query I rowsort
SELECT + - 37 * 56 + + 88 + - 21
----
-2005

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT DISTINCT - COUNT( * ) * - 55 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-6242
SELECT DISTINCT - COUNT ( * ) * - 55 AS col0
----
55

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

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

query I rowsort
SELECT ALL + 48 + 43 * - 73 AS col0
----
-3091

query II rowsort
SELECT + 52 * 38 + - - 33 AS col0, 72
----
2009
72

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6247
SELECT 27 DIV + COUNT( * ) + + - 51
----
-24

skipif mysql # not compatible
query I rowsort label-6247
SELECT 27 / + COUNT ( * ) + + - 51
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-6248
SELECT - 81 DIV 48 + + - 66
----
-67

skipif mysql # not compatible
query I rowsort label-6248
SELECT - 81 / 48 + + - 66
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6249
SELECT CAST( 78 AS SIGNED ) * + 35 * + 31 + 51 AS col0
----
84681

skipif mysql # not compatible
query I rowsort label-6249
SELECT CAST ( 78 AS INTEGER ) * + 35 * + 31 + 51 AS col0
----
84681

onlyif mysql # aggregate syntax: 
query I rowsort label-6250
SELECT ALL - CASE + + 80 WHEN + MIN( 51 ) THEN + 96 / + 48 + - COALESCE ( - + COALESCE ( 4, - 33 ), - - 58, - + 22, + 59 / 60 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6250
SELECT ALL - CASE + + 80 WHEN + MIN ( 51 ) THEN + 96 / + 48 + - COALESCE ( - + COALESCE ( 4, - 33 ), - - 58, - + 22, + 59 / 60 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6251
SELECT COUNT( * ) + - - 67 + + 85 - - + 86 * - 25 * - 17 * - - 89 AS col1
----
3253103

skipif mysql # not compatible
query I rowsort label-6251
SELECT COUNT ( * ) + - - 67 + + 85 - - + 86 * - 25 * - 17 * - - 89 AS col1
----
3253103

onlyif mysql # aggregate syntax: 
query I rowsort label-6252
SELECT DISTINCT ( + 80 ) * - COUNT( DISTINCT - 91 )
----
-80

skipif mysql # not compatible
query I rowsort label-6252
SELECT DISTINCT ( + 80 ) * - COUNT ( DISTINCT - 91 )
----
-80

onlyif mysql # DIV for integer division: 
query II rowsort label-6253
SELECT DISTINCT + 20 DIV 15 AS col0, + 91 + 55 AS col0
----
1
146

skipif mysql # not compatible
query II rowsort label-6253
SELECT DISTINCT + 20 / 15 AS col0, + 91 + 55 AS col0
----
1
146

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT 7 * MIN( ALL - 78 ) AS col2
----
-546

skipif mysql # not compatible
query I rowsort label-6254
SELECT 7 * MIN ( ALL - 78 ) AS col2
----
-546

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT - 72 * 48 + + COUNT( 58 ) * 48 * + 25 + + 33
----
-2223

skipif mysql # not compatible
query I rowsort label-6255
SELECT - 72 * 48 + + COUNT ( 58 ) * 48 * + 25 + + 33
----
-2223

query I rowsort
SELECT DISTINCT 99 + - - 23 + - 50
----
72

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

skipif mysql # not compatible
query I rowsort label-6257
SELECT DISTINCT COUNT ( * ) - 77 + + COUNT ( * ) AS col1
----
-75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT COUNT( * ) * + 54 * - COUNT( * ) col2
----
-54

skipif mysql # not compatible
query I rowsort label-6259
SELECT COUNT ( * ) * + 54 * - COUNT ( * ) col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6260
SELECT COUNT( * ) - - MAX( - + 22 ) * + - 1 * - SUM( + 67 ) + + 14 * 52 AS col1
----
-745

skipif mysql # not compatible
query I rowsort label-6260
SELECT COUNT ( * ) - - MAX ( - + 22 ) * + - 1 * - SUM ( + 67 ) + + 14 * 52 AS col1
----
-745

query I rowsort
SELECT 62 * - + 54 * + - 66
----
220968

onlyif mysql # DIV for integer division: 
query I rowsort label-6262
SELECT + + 90 DIV 9 - 94 col2
----
-84

skipif mysql # not compatible
query I rowsort label-6262
SELECT + + 90 / 9 - 94 col2
----
-84

query I rowsort
SELECT ALL - 2 * - 72 AS col0
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6264
SELECT ALL + 97 * - 0 * + - 31 * + + 64 + + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6264
SELECT ALL + 97 * - 0 * + - 31 * + + 64 + + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6266
SELECT COUNT( * ) * CASE - 0 WHEN SUM( + 82 ) THEN SUM( ALL + - 21 ) * - - 95 END * 87 + 64 + - 18 + - CASE + 22 WHEN + - 59 THEN - 57 WHEN + 55 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6266
SELECT COUNT ( * ) * CASE - 0 WHEN SUM ( + 82 ) THEN SUM ( ALL + - 21 ) * - - 95 END * 87 + 64 + - 18 + - CASE + 22 WHEN + - 59 THEN - 57 WHEN + 55 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6267
SELECT ALL - COUNT( * ) * 42 + MIN( DISTINCT 60 ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-6267
SELECT ALL - COUNT ( * ) * 42 + MIN ( DISTINCT 60 ) AS col1
----
18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6268
SELECT CAST( NULL AS DECIMAL ) + + 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6268
SELECT CAST ( NULL AS REAL ) + + 66 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT + + NULLIF ( - - 7, - 12 ) * COUNT( * ) + + NULLIF ( - ( + 29 ), + 12 )
----
-22

skipif mysql # not compatible
query I rowsort label-6269
SELECT + + NULLIF ( - - 7, - 12 ) * COUNT ( * ) + + NULLIF ( - ( + 29 ), + 12 )
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6270
SELECT DISTINCT - + NULLIF ( 31, + - 20 * - ( + - CAST( - 79 AS SIGNED ) ) / + CAST( 19 AS SIGNED ) * + 32 + AVG ( 22 ) ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-6270
SELECT DISTINCT - + NULLIF ( 31, + - 20 * - ( + - CAST ( - 79 AS INTEGER ) ) / + CAST ( 19 AS INTEGER ) * + 32 + AVG ( 22 ) ) AS col0
----
-31

query I rowsort
SELECT - 62 * COALESCE ( + 88, - 46 ) + + + 7 AS col1
----
-5449

query II rowsort
SELECT ALL + 95 + + 64 col0, 4
----
159
4

query I rowsort
SELECT 27 + - + 24 col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6274
SELECT ALL + COALESCE ( - 82, CAST( - 59 AS SIGNED ) ) * + - 76 AS col1
----
6232

skipif mysql # not compatible
query I rowsort label-6274
SELECT ALL + COALESCE ( - 82, CAST ( - 59 AS INTEGER ) ) * + - 76 AS col1
----
6232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6275
SELECT ALL + NULLIF ( MIN( DISTINCT 26 ), - 68 ) + + + 60 + - - COUNT( 14 ) + + - COUNT( * ) + 7 * - NULLIF ( - 73, + 13 ) + + 2 + + CAST( NULL AS SIGNED ) + - COUNT( * ) * + - 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6275
SELECT ALL + NULLIF ( MIN ( DISTINCT 26 ), - 68 ) + + + 60 + - - COUNT ( 14 ) + + - COUNT ( * ) + 7 * - NULLIF ( - 73, + 13 ) + + 2 + + CAST ( NULL AS INTEGER ) + - COUNT ( * ) * + - 43 AS col2
----
NULL

query I rowsort
SELECT 17 * ( - 33 ) AS col0
----
-561

query II rowsort
SELECT 57, + 9 AS col2
----
57
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6278
SELECT - MIN( - 68 ) * - 84
----
-5712

skipif mysql # not compatible
query I rowsort label-6278
SELECT - MIN ( - 68 ) * - 84
----
-5712

onlyif mysql # DIV for integer division: 
query I rowsort label-6279
SELECT ALL 87 DIV + - 14
----
-6

skipif mysql # not compatible
query I rowsort label-6279
SELECT ALL 87 / + - 14
----
-6

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6282
SELECT + ( + 30 ) * COALESCE ( - + ( - + CASE 26 WHEN + - 95 + + 80 + 82 * + + 47 THEN NULL ELSE + + 85 * + - 54 END ), - - 13 * + - ( + 42 ), 3 * + 95 + + - 21 ) + - 95 + COUNT( * ) - + + 41 * + 53 col2
----
-139967

skipif mysql # not compatible
query I rowsort label-6282
SELECT + ( + 30 ) * COALESCE ( - + ( - + CASE 26 WHEN + - 95 + + 80 + 82 * + + 47 THEN NULL ELSE + + 85 * + - 54 END ), - - 13 * + - ( + 42 ), 3 * + 95 + + - 21 ) + - 95 + COUNT ( * ) - + + 41 * + 53 col2
----
-139967

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6283
SELECT ALL + 71 DIV + NULLIF ( - COUNT( * ), - - 13 ) col0
----
-71

skipif mysql # not compatible
query I rowsort label-6283
SELECT ALL + 71 / + NULLIF ( - COUNT ( * ), - - 13 ) col0
----
-71

query I rowsort
SELECT - 15 * + - 70 AS col2
----
1050

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

query I rowsort
SELECT + NULLIF ( + + 26, 84 + 32 ) - + 40
----
-14

query I rowsort
SELECT - 9 + 46
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6288
SELECT + 15 - + CAST( - 38 AS SIGNED ) col1
----
53

skipif mysql # not compatible
query I rowsort label-6288
SELECT + 15 - + CAST ( - 38 AS INTEGER ) col1
----
53

query I rowsort
SELECT ALL 79 * - 85
----
-6715

query I rowsort
SELECT - CASE CASE - 30 WHEN - 1 + - 70 THEN 53 / 93 END WHEN 76 * + 58 THEN + 16 + 53 WHEN 16 * - ( 37 * + 10 ) THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 0 * - 6 AS col0
----
0

query I rowsort
SELECT ALL 73 + - 86 AS col2
----
-13

query I rowsort
SELECT + 79 + - 56 * 3 AS col1
----
-89

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

skipif mysql # not compatible
query I rowsort label-6294
SELECT - COUNT ( - 41 )
----
-1

query I rowsort
SELECT ALL 43 + + 79 * 55
----
4388

query I rowsort
SELECT DISTINCT 2 + 14
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6297
SELECT ALL 25 + 78 * + COUNT( DISTINCT 89 ) col1
----
103

skipif mysql # not compatible
query I rowsort label-6297
SELECT ALL 25 + 78 * + COUNT ( DISTINCT 89 ) col1
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6298
SELECT + 31 + 21 * - CASE 51 WHEN + 20 + - COALESCE ( 6, COUNT( * ) ) THEN 79 * + 46 WHEN + 28 THEN - NULLIF ( + 17, + 21 ) * 17 ELSE 37 DIV - 87 END
----
31

skipif mysql # not compatible
query I rowsort label-6298
SELECT + 31 + 21 * - CASE 51 WHEN + 20 + - COALESCE ( 6, COUNT ( * ) ) THEN 79 * + 46 WHEN + 28 THEN - NULLIF ( + 17, + 21 ) * 17 ELSE 37 / - 87 END
----
31

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6300
SELECT + 7 + 14 DIV + 26 col2
----
7

skipif mysql # not compatible
query I rowsort label-6300
SELECT + 7 + 14 / + 26 col2
----
7

query I rowsort
SELECT + ( - 38 ) * - 21
----
798

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6303
SELECT ALL NULLIF ( + 82, 19 + ( 64 ) ) DIV - 82
----
-1

skipif mysql # not compatible
query I rowsort label-6303
SELECT ALL NULLIF ( + 82, 19 + ( 64 ) ) / - 82
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT ( MAX( 15 ) )
----
15

skipif mysql # not compatible
query I rowsort label-6304
SELECT ( MAX ( 15 ) )
----
15

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

skipif mysql # not compatible
query I rowsort label-6305
SELECT 10 * CAST ( NULL AS INTEGER ) + - ( + 86 )
----
NULL

query I rowsort
SELECT + COALESCE ( - 6, 71 )
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6307
SELECT + 71 / - MIN( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT ALL COUNT( * ) * 46 + 20 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-6308
SELECT ALL COUNT ( * ) * 46 + 20 AS col0
----
66

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT ALL + COUNT( * ) * 18 + 93
----
111

skipif mysql # not compatible
query I rowsort label-6310
SELECT ALL + COUNT ( * ) * 18 + 93
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-6311
SELECT DISTINCT 30 * COUNT( * ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-6311
SELECT DISTINCT 30 * COUNT ( * ) AS col0
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6312
SELECT DISTINCT + 65 * SUM( DISTINCT 63 DIV - 88 ) - - 82
----
82

skipif mysql # not compatible
query I rowsort label-6312
SELECT DISTINCT + 65 * SUM ( DISTINCT 63 / - 88 ) - - 82
----
82

query I rowsort
SELECT - 17 * + 34
----
-578

query I rowsort
SELECT ALL - 33 * - 34 - + 3 AS col2
----
1119

query I rowsort
SELECT CASE + 89 WHEN 9 THEN - 56 WHEN 45 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT COALESCE ( - 20, + 32 - 16 ) AS col0
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-6317
SELECT + 5 DIV 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6317
SELECT + 5 / 82 AS col2
----
0

query I rowsort
SELECT NULLIF ( 22, - 68 ) AS col0
----
22

query I rowsort
SELECT 39 * - 8 + - 83 AS col1
----
-395

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

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

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

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

query I rowsort
SELECT ALL + 85 * + 89 AS col2
----
7565

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT - CASE 20 WHEN + COUNT( + 25 ) + + 24 THEN - 51 / 4 END + 86 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6324
SELECT - CASE 20 WHEN + COUNT ( + 25 ) + + 24 THEN - 51 / 4 END + 86 * COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6325
SELECT ALL NULLIF ( 40, NULLIF ( + 81, - SUM( 35 ) + 27 ) ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-6325
SELECT ALL NULLIF ( 40, NULLIF ( + 81, - SUM ( 35 ) + 27 ) ) AS col0
----
40

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6328
SELECT - CAST( NULL AS SIGNED ) * NULLIF ( 98 / - 23, 27 * 93 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6328
SELECT - CAST ( NULL AS INTEGER ) * NULLIF ( 98 / - 23, 27 * 93 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 67 * + 96
----
6432

query I rowsort
SELECT - NULLIF ( 76, + NULLIF ( ( + COALESCE ( - 24, 64, 38 / 24 ) ), + 89 * - CASE - ( - 69 ) WHEN + 6 / + 57 + - 84 * + 13 THEN NULL WHEN + 63 - 56 THEN - 95 + - 58 ELSE - 20 END ) + ( 18 ) / 2 ) + + 18 col2
----
-58

query I rowsort
SELECT - 85 * 53
----
-4505

query I rowsort
SELECT + 91 + 4 * + 70
----
371

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT ALL - COUNT( * ) + 89 * 31 AS col0
----
2758

skipif mysql # not compatible
query I rowsort label-6333
SELECT ALL - COUNT ( * ) + 89 * 31 AS col0
----
2758

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT DISTINCT NULLIF ( 32, + COUNT( * ) + CASE WHEN NULL IS NOT NULL THEN NULL ELSE + 91 + + COUNT( * ) END )
----
32

skipif mysql # not compatible
query I rowsort label-6334
SELECT DISTINCT NULLIF ( 32, + COUNT ( * ) + CASE WHEN NULL IS NOT NULL THEN NULL ELSE + 91 + + COUNT ( * ) END )
----
32

query I rowsort
SELECT ALL + - 54 + - 1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT DISTINCT - 13 + COUNT( * ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-6336
SELECT DISTINCT - 13 + COUNT ( * ) AS col2
----
-12

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

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

skipif mysql # not compatible
query I rowsort label-6338
SELECT ALL - - COUNT ( * ) + - 34 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT + 88 * MAX( DISTINCT 91 * - 36 )
----
-288288

skipif mysql # not compatible
query I rowsort label-6339
SELECT + 88 * MAX ( DISTINCT 91 * - 36 )
----
-288288

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT ALL + COUNT( * ) + + ( 19 + - 48 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-6340
SELECT ALL + COUNT ( * ) + + ( 19 + - 48 ) AS col1
----
-28

query I rowsort
SELECT - 28 - + 65
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT - NULLIF ( 48, - 95 * NULLIF ( - ( COUNT( * ) ) * NULLIF ( ( - 30 ), - 89 ), - 51 * - 83 ) + 41 ) - 24 * 81 AS col0
----
-1992

skipif mysql # not compatible
query I rowsort label-6342
SELECT - NULLIF ( 48, - 95 * NULLIF ( - ( COUNT ( * ) ) * NULLIF ( ( - 30 ), - 89 ), - 51 * - 83 ) + 41 ) - 24 * 81 AS col0
----
-1992

query I rowsort
SELECT + - 25 * + 43
----
-1075

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT - - 55 * - SUM( ALL 99 ) AS col0
----
-5445

skipif mysql # not compatible
query I rowsort label-6344
SELECT - - 55 * - SUM ( ALL 99 ) AS col0
----
-5445

query I rowsort
SELECT + + 50 * + 28 AS col1
----
1400

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

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

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

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

query I rowsort
SELECT + 91 - + 31 * + 16
----
-405

onlyif mysql # DIV for integer division: 
query I rowsort label-6350
SELECT DISTINCT + + 87 DIV ( - 55 ) - + 53
----
-54

skipif mysql # not compatible
query I rowsort label-6350
SELECT DISTINCT + + 87 / ( - 55 ) - + 53
----
-54

query I rowsort
SELECT ALL + - NULLIF ( - 86, + 33 * + 22 + - 78 ) AS col1
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-6352
SELECT ALL - - ( - 95 ) DIV + 14 - - 38
----
32

skipif mysql # not compatible
query I rowsort label-6352
SELECT ALL - - ( - 95 ) / + 14 - - 38
----
32

query I rowsort
SELECT - 57 * 11
----
-627

query I rowsort
SELECT + - 23 * + 19 AS col2
----
-437

query I rowsort
SELECT + 71 + 64 * - 58 AS col0
----
-3641

onlyif mysql # DIV for integer division: 
query I rowsort label-6356
SELECT ALL 76 DIV - 61
----
-1

skipif mysql # not compatible
query I rowsort label-6356
SELECT ALL 76 / - 61
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6357
SELECT 52 * - 60 + 80 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6357
SELECT 52 * - 60 + 80 * - CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT 68 + + ( - 40 )
----
28

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

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

query I rowsort
SELECT ALL 70 - - 28 + + 31
----
129

onlyif mysql # DIV for integer division: 
query I rowsort label-6362
SELECT ALL 40 DIV + 3 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-6362
SELECT ALL 40 / + 3 AS col1
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-6363
SELECT 52 DIV - 83
----
0

skipif mysql # not compatible
query I rowsort label-6363
SELECT 52 / - 83
----
0

query I rowsort
SELECT 58 * - + 41
----
-2378

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT DISTINCT SUM( DISTINCT 61 ) * - 27
----
-1647

skipif mysql # not compatible
query I rowsort label-6365
SELECT DISTINCT SUM ( DISTINCT 61 ) * - 27
----
-1647

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

skipif mysql # not compatible
query I rowsort label-6366
SELECT ALL CAST ( NULL AS INTEGER ) * - - 5 AS col2
----
NULL

query I rowsort
SELECT 90 * 46 + 43 AS col0
----
4183

onlyif mysql # DIV for integer division: 
query I rowsort label-6368
SELECT 77 DIV - 53
----
-1

skipif mysql # not compatible
query I rowsort label-6368
SELECT 77 / - 53
----
-1

query I rowsort
SELECT ALL 27 + + 2 AS col1
----
29

query I rowsort
SELECT 8 * + 41 - + 46 AS col1
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-6371
SELECT ALL - NULLIF ( - - NULLIF ( 57, MIN( DISTINCT - 28 ) + 20 ), 21 - 74 ) col2
----
-57

skipif mysql # not compatible
query I rowsort label-6371
SELECT ALL - NULLIF ( - - NULLIF ( 57, MIN ( DISTINCT - 28 ) + 20 ), 21 - 74 ) col2
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6372
SELECT CAST( - COALESCE ( 8, MIN( 82 ) ) AS SIGNED ) * - 93 AS col1
----
744

skipif mysql # not compatible
query I rowsort label-6372
SELECT CAST ( - COALESCE ( 8, MIN ( 82 ) ) AS INTEGER ) * - 93 AS col1
----
744

onlyif mysql # aggregate syntax: 
query I rowsort label-6373
SELECT ALL + COUNT( * ) + - 95 + + 80
----
-14

skipif mysql # not compatible
query I rowsort label-6373
SELECT ALL + COUNT ( * ) + - 95 + + 80
----
-14

query I rowsort
SELECT ALL 68 + - 61
----
7

query I rowsort
SELECT DISTINCT 26 + - + 0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6376
SELECT DISTINCT - COALESCE ( + 84, - NULLIF ( 99, + 71 + - MAX( - 7 ) ) ) * - CASE 91 + + ( + ( - COUNT( * ) ) + + 47 ) / + COUNT( * ) WHEN - 57 THEN 26 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6376
SELECT DISTINCT - COALESCE ( + 84, - NULLIF ( 99, + 71 + - MAX ( - 7 ) ) ) * - CASE 91 + + ( + ( - COUNT ( * ) ) + + 47 ) / + COUNT ( * ) WHEN - 57 THEN 26 ELSE NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6377
SELECT ALL + 25 + COUNT ( * ) AS col0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6378
SELECT ALL - 14 + + - CAST( 49 AS SIGNED ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-6378
SELECT ALL - 14 + + - CAST ( 49 AS INTEGER ) AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT - ( + MIN( DISTINCT 27 ) ) * 66
----
-1782

skipif mysql # not compatible
query I rowsort label-6379
SELECT - ( + MIN ( DISTINCT 27 ) ) * 66
----
-1782

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT DISTINCT - COUNT( * ) * + 77 + 85
----
8

skipif mysql # not compatible
query I rowsort label-6380
SELECT DISTINCT - COUNT ( * ) * + 77 + 85
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT COUNT( * ) + 32 - 95 * 64
----
-6047

skipif mysql # not compatible
query I rowsort label-6381
SELECT COUNT ( * ) + 32 - 95 * 64
----
-6047

query I rowsort
SELECT ALL - - ( + 21 ) * 77 col2
----
1617

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT + ( + 43 ) + SUM( - 21 - 75 )
----
-53

skipif mysql # not compatible
query I rowsort label-6383
SELECT + ( + 43 ) + SUM ( - 21 - 75 )
----
-53

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6385
SELECT COALESCE ( - + 90, CAST( 32 AS SIGNED ) DIV 79, - SUM( + 71 ) ) + 89 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6385
SELECT COALESCE ( - + 90, CAST ( 32 AS INTEGER ) / 79, - SUM ( + 71 ) ) + 89 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6386
SELECT DISTINCT + MAX( ALL + + 77 )
----
77

skipif mysql # not compatible
query I rowsort label-6386
SELECT DISTINCT + MAX ( ALL + + 77 )
----
77

query I rowsort
SELECT DISTINCT + 71 - - + ( - 76 ) * ( 24 )
----
-1753

onlyif mysql # DIV for integer division: 
query I rowsort label-6388
SELECT DISTINCT - + 14 DIV - 5 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6388
SELECT DISTINCT - + 14 / - 5 AS col0
----
2

query I rowsort
SELECT DISTINCT - ( + CASE 22 WHEN - 16 THEN 97 WHEN 38 THEN + 13 * + 68 END )
----
NULL

query I rowsort
SELECT ALL + + 34 - + 37
----
-3

query I rowsort
SELECT 86 + + 72 + + 65
----
223

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6392
SELECT MIN( ALL + 30 ) DIV - 35 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6392
SELECT MIN ( ALL + 30 ) / - 35 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-6393
SELECT DISTINCT + + COUNT ( * ) / - 49 * - COUNT ( * )
----
0

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

skipif mysql # not compatible
query I rowsort label-6394
SELECT - ( - COUNT ( 40 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6395
SELECT 62 * ( - 13 ) DIV 24 + ( 86 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-6395
SELECT 62 * ( - 13 ) / 24 + ( 86 ) AS col2
----
53

query I rowsort
SELECT ALL + 14 * - 96 AS col0
----
-1344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6397
SELECT DISTINCT - - 9 * + CASE 20 WHEN - 46 THEN 4 WHEN + 23 * + 37 THEN - 31 ELSE - 2 * + CAST( + 65 AS SIGNED ) END AS col2
----
-1170

skipif mysql # not compatible
query I rowsort label-6397
SELECT DISTINCT - - 9 * + CASE 20 WHEN - 46 THEN 4 WHEN + 23 * + 37 THEN - 31 ELSE - 2 * + CAST ( + 65 AS INTEGER ) END AS col2
----
-1170

query I rowsort
SELECT ALL 70 * - - 95
----
6650

query I rowsort
SELECT 42 * - - 45 * - 47 * - 25 AS col2
----
2220750

query I rowsort
SELECT ALL - ( - 3 ) * ( 56 )
----
168

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6402
SELECT ALL - 23 AS col0, 21 * - MAX( 46 ) + 63 * + 39 AS col0
----
-23
1491

skipif mysql # not compatible
query II rowsort label-6402
SELECT ALL - 23 AS col0, 21 * - MAX ( 46 ) + 63 * + 39 AS col0
----
-23
1491

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6403
SELECT + CASE 53 WHEN - 9 THEN NULL ELSE - 10 + CAST( NULL AS SIGNED ) END * 44 + ( ( - 76 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6403
SELECT + CASE 53 WHEN - 9 THEN NULL ELSE - 10 + CAST ( NULL AS INTEGER ) END * 44 + ( ( - 76 ) )
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6405
SELECT DISTINCT - CAST( NULL AS SIGNED ), 41 AS col2
----
NULL
41

skipif mysql # not compatible
query II rowsort label-6405
SELECT DISTINCT - CAST ( NULL AS INTEGER ), 41 AS col2
----
NULL
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6406
SELECT 67 AS col1, CAST( NULL AS SIGNED ) - ( - COUNT( * ) ) / - ( - 23 ) AS col2
----
67
NULL

skipif mysql # not compatible
query II rowsort label-6406
SELECT 67 AS col1, CAST ( NULL AS INTEGER ) - ( - COUNT ( * ) ) / - ( - 23 ) AS col2
----
67
NULL

query I rowsort
SELECT ALL 28 + ( + - 58 ) AS col1
----
-30

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6408
SELECT 81, + 70 * 20 DIV 15 + CAST( - COALESCE ( 64, - 75 * - CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col0
----
81
29

skipif mysql # not compatible
query II rowsort label-6408
SELECT 81, + 70 * 20 / 15 + CAST ( - COALESCE ( 64, - 75 * - CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0
----
81
29

query I rowsort
SELECT DISTINCT 21 + 77 AS col1
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6410
SELECT + 93 AS col0, COUNT( * ) + - ( + CAST( NULL AS SIGNED ) )
----
93
NULL

skipif mysql # not compatible
query II rowsort label-6410
SELECT + 93 AS col0, COUNT ( * ) + - ( + CAST ( NULL AS INTEGER ) )
----
93
NULL

query I rowsort
SELECT ALL + 13 + 11 AS col2
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6412
SELECT ALL 56 * 57 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6412
SELECT ALL 56 * 57 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6413
SELECT ALL 68 DIV - + 17 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-6413
SELECT ALL 68 / - + 17 AS col2
----
-4

query I rowsort
SELECT DISTINCT 27 + 64 - + 97
----
-6

query I rowsort
SELECT DISTINCT 85 + 8 col1
----
93

query II rowsort
SELECT ALL - 57 AS col2, 90 AS col2
----
-57
90

query I rowsort
SELECT 93 + + - COALESCE ( - - CASE 89 WHEN - 35 + + 40 THEN + 4 WHEN - 33 THEN NULL ELSE NULL END, 25, 49 ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6418
SELECT ALL 62 + 29 * - SUM( ALL 18 )
----
-460

skipif mysql # not compatible
query I rowsort label-6418
SELECT ALL 62 + 29 * - SUM ( ALL 18 )
----
-460

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT DISTINCT 79 * - COUNT( * ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-6420
SELECT DISTINCT 79 * - COUNT ( * ) AS col0
----
-79

query I rowsort
SELECT + 96 * + + 27 col2
----
2592

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT 93 * COUNT( * ) - 88 + ( ( 20 ) ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-6422
SELECT 93 * COUNT ( * ) - 88 + ( ( 20 ) ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT SUM( DISTINCT 83 ) * - + MAX( - 48 ) + COALESCE ( - 47, - 70 ) AS col2
----
3937

skipif mysql # not compatible
query I rowsort label-6423
SELECT SUM ( DISTINCT 83 ) * - + MAX ( - 48 ) + COALESCE ( - 47, - 70 ) AS col2
----
3937

query I rowsort
SELECT 52 * - ( - 78 )
----
4056

query II rowsort
SELECT DISTINCT 60, 53 AS col2
----
60
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6426
SELECT + 46 * + 88 + COUNT( - 93 ) - - 68 DIV - 47
----
4048

skipif mysql # not compatible
query I rowsort label-6426
SELECT + 46 * + 88 + COUNT ( - 93 ) - - 68 / - 47
----
4048

query II rowsort
SELECT 59 AS col1, 94 AS col0
----
59
94

onlyif mysql # aggregate syntax: 
query II rowsort label-6428
SELECT ALL + 6, - SUM( DISTINCT + 52 ) AS col0
----
6
-52

skipif mysql # not compatible
query II rowsort label-6428
SELECT ALL + 6, - SUM ( DISTINCT + 52 ) AS col0
----
6
-52

query I rowsort
SELECT ALL - 78 * + ( 91 ) - 76
----
-7174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6430
SELECT ALL + 67 - - MAX( DISTINCT - 81 ) DIV 98 col0
----
67

skipif mysql # not compatible
query I rowsort label-6430
SELECT ALL + 67 - - MAX ( DISTINCT - 81 ) / 98 col0
----
67

query I rowsort
SELECT DISTINCT ( - 88 ) * + ( - ( 22 ) )
----
1936

query I rowsort
SELECT 41 - - 20 + 96 AS col1
----
157

onlyif mysql # DIV for integer division: 
query I rowsort label-6433
SELECT + 30 * 49 DIV 69 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-6433
SELECT + 30 * 49 / 69 AS col2
----
21

query I rowsort
SELECT ALL - - 19 * + + 70
----
1330

onlyif mysql # DIV for integer division: 
query I rowsort label-6435
SELECT - 9 DIV - 15 col1
----
0

skipif mysql # not compatible
query I rowsort label-6435
SELECT - 9 / - 15 col1
----
0

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

query I rowsort
SELECT ALL 36 * - 79
----
-2844

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6438
SELECT DISTINCT NULLIF ( CAST( + + MAX( - 0 ) AS SIGNED ), COUNT( CASE + 48 WHEN + CASE 56 WHEN - 25 * - 85 THEN + ( + NULLIF ( 32, - ( 36 ) ) ) + + NULLIF ( 5 + 90, - NULLIF ( - 79, 74 ) ) END - + 98 THEN 7 * 56 + - 67 ELSE - 23 END ) )
----
0

skipif mysql # not compatible
query I rowsort label-6438
SELECT DISTINCT NULLIF ( CAST ( + + MAX ( - 0 ) AS INTEGER ), COUNT ( CASE + 48 WHEN + CASE 56 WHEN - 25 * - 85 THEN + ( + NULLIF ( 32, - ( 36 ) ) ) + + NULLIF ( 5 + 90, - NULLIF ( - 79, 74 ) ) END - + 98 THEN 7 * 56 + - 67 ELSE - 23 END ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT DISTINCT CASE - 53 WHEN - - ( 69 ) + - CASE + COUNT( * ) + 84 WHEN 76 THEN NULL WHEN - COUNT( * ) * 60 - - 0 THEN NULL WHEN - 19 THEN NULL ELSE - COUNT( * ) * 50 END THEN - 41 WHEN 22 * + COUNT( * ) THEN 21 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6439
SELECT DISTINCT CASE - 53 WHEN - - ( 69 ) + - CASE + COUNT ( * ) + 84 WHEN 76 THEN NULL WHEN - COUNT ( * ) * 60 - - 0 THEN NULL WHEN - 19 THEN NULL ELSE - COUNT ( * ) * 50 END THEN - 41 WHEN 22 * + COUNT ( * ) THEN 21 END
----
NULL

query I rowsort
SELECT ALL 51 * + 52 + - COALESCE ( 44, 18 - - 54 ) + 36 * 52 AS col1
----
4480

query I rowsort
SELECT ALL + CASE - 74 WHEN 74 THEN + + 89 WHEN 48 THEN NULL WHEN + 9 * 95 THEN - 71 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT DISTINCT 13 * + 55 + + + COUNT( * ) AS col2
----
716

skipif mysql # not compatible
query I rowsort label-6442
SELECT DISTINCT 13 * + 55 + + + COUNT ( * ) AS col2
----
716

query I rowsort
SELECT ALL 19 * - + 90 + - 66 + - - 25
----
-1751

query I rowsort
SELECT ALL 88 * 87 + + 97 * + 25 + 25 * 15 AS col1
----
10456

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT - COUNT( - + 50 ) + + COALESCE ( - 79, - 99 ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-6445
SELECT - COUNT ( - + 50 ) + + COALESCE ( - 79, - 99 ) AS col0
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-6446
SELECT + COUNT( DISTINCT - 93 ) AS col0, - 21 - - 66 AS col0
----
1
45

skipif mysql # not compatible
query II rowsort label-6446
SELECT + COUNT ( DISTINCT - 93 ) AS col0, - 21 - - 66 AS col0
----
1
45

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6447
SELECT - COALESCE ( - 51, 17 ) DIV CAST( 23 AS SIGNED ) * 1 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6447
SELECT - COALESCE ( - 51, 17 ) / CAST ( 23 AS INTEGER ) * 1 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6448
SELECT COUNT( * ) * 12 * - COUNT( * ) * - - 3 + 81
----
45

skipif mysql # not compatible
query I rowsort label-6448
SELECT COUNT ( * ) * 12 * - COUNT ( * ) * - - 3 + 81
----
45

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

skipif mysql # not compatible
query I rowsort label-6449
SELECT + COUNT ( - ( 95 ) ) - + COUNT ( * ) * 75 AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT ALL - 54 * CASE - COUNT( * ) WHEN + ( 78 ) * - 47 THEN - 47 WHEN - 30 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6450
SELECT ALL - 54 * CASE - COUNT ( * ) WHEN + ( 78 ) * - 47 THEN - 47 WHEN - 30 THEN NULL ELSE NULL END AS col2
----
NULL

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

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

query I rowsort
SELECT ALL 25 * 53 * - 23 + - 5
----
-30480

query I rowsort
SELECT DISTINCT 15 * 24 AS col0
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-6454
SELECT DISTINCT 0 * + 68 + - - 16 + + - 6 + COUNT( * ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-6454
SELECT DISTINCT 0 * + 68 + - - 16 + + - 6 + COUNT ( * ) AS col0
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6455
SELECT ALL - 54 * - 10 * - 4 DIV - COUNT( * ) AS col2
----
2160

skipif mysql # not compatible
query I rowsort label-6455
SELECT ALL - 54 * - 10 * - 4 / - COUNT ( * ) AS col2
----
2160

onlyif mysql # aggregate syntax: 
query II rowsort label-6456
SELECT + 15 + + + COUNT( * ) col2, - 89 AS col1
----
16
-89

skipif mysql # not compatible
query II rowsort label-6456
SELECT + 15 + + + COUNT ( * ) col2, - 89 AS col1
----
16
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT ALL COUNT( * ) * + 73 + - 67 * - 84 AS col0
----
5701

skipif mysql # not compatible
query I rowsort label-6457
SELECT ALL COUNT ( * ) * + 73 + - 67 * - 84 AS col0
----
5701

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6458
SELECT - COALESCE ( + ( 58 ), - - 0, 2 DIV + CAST( + MIN( 46 ) AS SIGNED ) + + 81 * MAX( - 82 ) ) * 46 col0
----
-2668

skipif mysql # not compatible
query I rowsort label-6458
SELECT - COALESCE ( + ( 58 ), - - 0, 2 / + CAST ( + MIN ( 46 ) AS INTEGER ) + + 81 * MAX ( - 82 ) ) * 46 col0
----
-2668

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6459
SELECT + CASE 3 WHEN - CASE + - CASE COALESCE ( - ( 91 ), + CASE COUNT( * ) WHEN 67 THEN - 98 ELSE NULL END ) WHEN COUNT( * ) / COUNT( * ) THEN 19 * - 45 END WHEN COALESCE ( - COUNT( * ), CASE COUNT( * ) WHEN ( + 33 ) * ( AVG ( + 7 ) ) + 48 * CASE 97 * COUNT( * ) WHEN + 18 - - 70 * 35 THEN 8 + - CAST( 97 AS DECIMAL ) END THEN + 89 / 26 + 44 WHEN - 19 * CAST( NULL AS SIGNED ) + - 44 * 42 THEN 15 WHEN + 43 THEN 97 ELSE - 6 END + 90 * 99 ) + - 2 * - 95 THEN 15 * 94 + 12 END THEN NULL ELSE 40 END col2
----
40

skipif mysql # not compatible
query I rowsort label-6459
SELECT + CASE 3 WHEN - CASE + - CASE COALESCE ( - ( 91 ), + CASE COUNT ( * ) WHEN 67 THEN - 98 ELSE NULL END ) WHEN COUNT ( * ) / COUNT ( * ) THEN 19 * - 45 END WHEN COALESCE ( - COUNT ( * ), CASE COUNT ( * ) WHEN ( + 33 ) * ( AVG ( + 7 ) ) + 48 * CASE 97 * COUNT ( * ) WHEN + 18 - - 70 * 35 THEN 8 + - CAST ( 97 AS REAL ) END THEN + 89 / 26 + 44 WHEN - 19 * CAST ( NULL AS INTEGER ) + - 44 * 42 THEN 15 WHEN + 43 THEN 97 ELSE - 6 END + 90 * 99 ) + - 2 * - 95 THEN 15 * 94 + 12 END THEN NULL ELSE 40 END col2
----
40

query I rowsort
SELECT + + 83 * - 38 + ( - - 84 )
----
-3070

query I rowsort
SELECT DISTINCT + NULLIF ( + 60, 4 + + + 79 + 21 )
----
60

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

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

query I rowsort
SELECT DISTINCT - CASE + - 77 WHEN - 57 THEN 40 ELSE - 20 END AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT - + 82 * - 34 + - 90 + COUNT( * )
----
2699

skipif mysql # not compatible
query I rowsort label-6464
SELECT - + 82 * - 34 + - 90 + COUNT ( * )
----
2699

query I rowsort
SELECT DISTINCT 36 * - 99
----
-3564

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6467
SELECT + 10 + + 85 + + - MIN( - 98 ) * + 58 AS col0
----
5779

skipif mysql # not compatible
query I rowsort label-6467
SELECT + 10 + + 85 + + - MIN ( - 98 ) * + 58 AS col0
----
5779

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6468
SELECT + AVG ( ALL + 93 ) * + 90 / CAST( NULL AS SIGNED ) * MIN( - 81 / CAST( ( 96 ) AS SIGNED ) ) - + 48 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6468
SELECT + AVG ( ALL + 93 ) * + 90 / CAST ( NULL AS INTEGER ) * MIN ( - 81 / CAST ( ( 96 ) AS INTEGER ) ) - + 48 col2
----
NULL

query I rowsort
SELECT + ( + 56 ) * - 53 AS col2
----
-2968

onlyif mysql # aggregate syntax: 
query II rowsort label-6470
SELECT + 24 + + 24 AS col1, - 60 * - COUNT( * ) + - COUNT( * )
----
48
59

skipif mysql # not compatible
query II rowsort label-6470
SELECT + 24 + + 24 AS col1, - 60 * - COUNT ( * ) + - COUNT ( * )
----
48
59

query I rowsort
SELECT + 93 - + - 18 AS col2
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT + 37 + - 59 * - COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-6472
SELECT + 37 + - 59 * - COUNT ( * )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6473
SELECT - COUNT( * ) - - NULLIF ( 22, + 19 * + 59 ) + - 10 * + 86 * - 92 col1
----
79141

skipif mysql # not compatible
query I rowsort label-6473
SELECT - COUNT ( * ) - - NULLIF ( 22, + 19 * + 59 ) + - 10 * + 86 * - 92 col1
----
79141

query I rowsort
SELECT ALL + CASE + + 31 WHEN - 99 THEN + 70 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6475
SELECT DISTINCT - 39 + 31 AS col2, COUNT( * ) col0
----
-8
1

skipif mysql # not compatible
query II rowsort label-6475
SELECT DISTINCT - 39 + 31 AS col2, COUNT ( * ) col0
----
-8
1

query I rowsort
SELECT + ( - + 8 ) * 36
----
-288

query I rowsort
SELECT + 29 + - 37 + + 93 * - 60 * 97 AS col0
----
-541268

query I rowsort
SELECT + 99 * - 14
----
-1386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6479
SELECT - COALESCE ( 94, 51, 10 * + CAST( NULL AS SIGNED ) - - 54 ) + COUNT( * ) * 25 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-6479
SELECT - COALESCE ( 94, 51, 10 * + CAST ( NULL AS INTEGER ) - - 54 ) + COUNT ( * ) * 25 AS col2
----
-69

query II rowsort
SELECT ALL 11 + 71 + - 42 AS col0, + 50
----
40
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6481
SELECT - 81 + + + SUM( DISTINCT - - 35 )
----
-46

skipif mysql # not compatible
query I rowsort label-6481
SELECT - 81 + + + SUM ( DISTINCT - - 35 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6482
SELECT ALL 87 + - + MAX( ALL 92 ) + 73 + + + 74 * 53 AS col1
----
3990

skipif mysql # not compatible
query I rowsort label-6482
SELECT ALL 87 + - + MAX ( ALL 92 ) + 73 + + + 74 * 53 AS col1
----
3990

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6483
SELECT DISTINCT + 40 + - COUNT( * ) DIV + 11 + + NULLIF ( ( + 28 ), 61 - NULLIF ( - 79, 21 ) )
----
68

skipif mysql # not compatible
query I rowsort label-6483
SELECT DISTINCT + 40 + - COUNT ( * ) / + 11 + + NULLIF ( ( + 28 ), 61 - NULLIF ( - 79, 21 ) )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6484
SELECT + CASE + COUNT( * ) WHEN - 2 THEN NULL WHEN + - 5 THEN 68 * 51 END * 90
----
NULL

skipif mysql # not compatible
query I rowsort label-6484
SELECT + CASE + COUNT ( * ) WHEN - 2 THEN NULL WHEN + - 5 THEN 68 * 51 END * 90
----
NULL

query I rowsort
SELECT ALL + COALESCE ( - 32, - 21, - 83 * + 64 + ( ( + 88 ) ) )
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6486
SELECT CAST( - 16 AS SIGNED ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-6486
SELECT CAST ( - 16 AS INTEGER ) AS col1
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6487
SELECT ALL 92 * + CAST( + - 28 AS SIGNED )
----
-2576

skipif mysql # not compatible
query I rowsort label-6487
SELECT ALL 92 * + CAST ( + - 28 AS INTEGER )
----
-2576

query I rowsort
SELECT DISTINCT 10 * + 96
----
960

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6490
SELECT + COUNT( * ) * + 41 * + + 15 + - 4 * + + 98 col2
----
223

skipif mysql # not compatible
query I rowsort label-6490
SELECT + COUNT ( * ) * + 41 * + + 15 + - 4 * + + 98 col2
----
223

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6491
SELECT DISTINCT + COUNT( * ) DIV 24 - - NULLIF ( + - 27, - ( 68 ) ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-6491
SELECT DISTINCT + COUNT ( * ) / 24 - - NULLIF ( + - 27, - ( 68 ) ) AS col1
----
-27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT ALL - COUNT( * ) * 18 + 54 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-6493
SELECT ALL - COUNT ( * ) * 18 + 54 AS col1
----
36

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

query I rowsort
SELECT - 28 + + 41 AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6496
SELECT DISTINCT + 84 * - MIN( + 24 ) + - 12 * - ( 12 ) + - 91 col2
----
-1963

skipif mysql # not compatible
query I rowsort label-6496
SELECT DISTINCT + 84 * - MIN ( + 24 ) + - 12 * - ( 12 ) + - 91 col2
----
-1963

query II rowsort
SELECT 51, - 38 AS col2
----
51
-38

query I rowsort
SELECT + ( - 7 ) + + - ( - 64 ) + - ( 36 )
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-6499
SELECT - 82 DIV + 4
----
-20

skipif mysql # not compatible
query I rowsort label-6499
SELECT - 82 / + 4
----
-20

query I rowsort
SELECT 71 * + 99 + - - 65 + 85 AS col1
----
7179

query I rowsort
SELECT + 91 + + 26 AS col0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-6502
SELECT SUM( 8 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-6502
SELECT SUM ( 8 ) AS col0
----
8

query I rowsort
SELECT ALL - + 48 + 65 AS col0
----
17

query I rowsort
SELECT ALL + 10 + + - ( + 84 ) + + - 51 - + 97
----
-222

onlyif mysql # DIV for integer division: 
query I rowsort label-6505
SELECT + 49 DIV 60 + - 3
----
-3

skipif mysql # not compatible
query I rowsort label-6505
SELECT + 49 / 60 + - 3
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT ALL 88 + + 76 + + - COUNT( * )
----
163

skipif mysql # not compatible
query I rowsort label-6506
SELECT ALL 88 + + 76 + + - COUNT ( * )
----
163

query I rowsort
SELECT - CASE + 57 WHEN + - 25 THEN - 24 WHEN - 74 THEN NULL WHEN - ( - 4 ) THEN NULL ELSE NULL END * + 68
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6508
SELECT ALL - - 35 DIV + ( 74 ) AS col0, 38 * ( 32 ) col2
----
0
1216

skipif mysql # not compatible
query II rowsort label-6508
SELECT ALL - - 35 / + ( 74 ) AS col0, 38 * ( 32 ) col2
----
0
1216

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT 71 / + CASE - - 85 WHEN + - 88 * + - 27 + + 91 THEN + MIN( 35 ) * 39 END * + MAX( ALL 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6510
SELECT 71 / + CASE - - 85 WHEN + - 88 * + - 27 + + 91 THEN + MIN ( 35 ) * 39 END * + MAX ( ALL 60 )
----
NULL

query I rowsort
SELECT 42 - + 96 + + - 51
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT COUNT( + + 80 ) - - 33 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-6512
SELECT COUNT ( + + 80 ) - - 33 AS col2
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6513
SELECT 89 col2, - ( - SUM( 5 ) ) + + 26 + 27 + 96 DIV 51
----
89
59

skipif mysql # not compatible
query II rowsort label-6513
SELECT 89 col2, - ( - SUM ( 5 ) ) + + 26 + 27 + 96 / 51
----
89
59

query I rowsort
SELECT 61 + + 45 * COALESCE ( - + 93, - 19 - - 83, - 43 )
----
-4124

onlyif mysql # DIV for integer division: 
query I rowsort label-6515
SELECT 97 DIV - 46 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6515
SELECT 97 / - 46 AS col0
----
-2

query I rowsort
SELECT 67 * + - 19 * + 78
----
-99294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6517
SELECT DISTINCT 98 + 50 - + CAST( 60 AS SIGNED ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-6517
SELECT DISTINCT 98 + 50 - + CAST ( 60 AS INTEGER ) AS col2
----
88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6518
SELECT - 78 col0, + 60 * + - 99 + 37 + + - 62 + COUNT( * ) * - CAST( NULL AS DECIMAL ) AS col0
----
-78
NULL

skipif mysql # not compatible
query II rowsort label-6518
SELECT - 78 col0, + 60 * + - 99 + 37 + + - 62 + COUNT ( * ) * - CAST ( NULL AS REAL ) AS col0
----
-78
NULL

query I rowsort
SELECT 87 - + 44
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-6520
SELECT DISTINCT - 28 col1, 23 + + ( - COUNT( * ) ) + + 28
----
-28
50

skipif mysql # not compatible
query II rowsort label-6520
SELECT DISTINCT - 28 col1, 23 + + ( - COUNT ( * ) ) + + 28
----
-28
50

query II rowsort
SELECT 97 AS col1, - NULLIF ( + - 23, - 12 ) + + 43 AS col0
----
97
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6522
SELECT ALL COUNT( * ) * + MIN( DISTINCT + ( - 7 ) ), + CAST( NULL AS SIGNED ) AS col1
----
-7
NULL

skipif mysql # not compatible
query II rowsort label-6522
SELECT ALL COUNT ( * ) * + MIN ( DISTINCT + ( - 7 ) ), + CAST ( NULL AS INTEGER ) AS col1
----
-7
NULL

query II rowsort
SELECT ALL 97 - 44, + 1 AS col2
----
53
1

query II rowsort
SELECT + 47 AS col2, 82 + - + 41
----
47
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6525
SELECT CAST( - + 30 AS SIGNED ) + - COUNT( * ) AS col0
----
-31

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6527
SELECT 19 DIV - ( + + 43 ) * + 54 + ( + CAST( + 3 AS SIGNED ) ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-6527
SELECT 19 / - ( + + 43 ) * + 54 + ( + CAST ( + 3 AS INTEGER ) ) AS col2
----
3

query I rowsort
SELECT 31 - - 58 * 83 AS col2
----
4845

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT 37 * + 23 + - CASE - 57 WHEN + SUM( - 21 ) + + 42 THEN - CASE 96 WHEN COUNT( * ) * 19 THEN 36 WHEN 99 * 62 + + 55 * + 21 THEN NULL END + - 1 END + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6529
SELECT 37 * + 23 + - CASE - 57 WHEN + SUM ( - 21 ) + + 42 THEN - CASE 96 WHEN COUNT ( * ) * 19 THEN 36 WHEN 99 * 62 + + 55 * + 21 THEN NULL END + - 1 END + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6530
SELECT ALL 73 * + 31 * 92 * - - 30 - + MAX( + 75 ) AS col0
----
6245805

skipif mysql # not compatible
query I rowsort label-6530
SELECT ALL 73 * + 31 * 92 * - - 30 - + MAX ( + 75 ) AS col0
----
6245805

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6531
SELECT + - 68, CAST( NULL AS SIGNED ) * - + 74 * + 97 col0
----
-68
NULL

skipif mysql # not compatible
query II rowsort label-6531
SELECT + - 68, CAST ( NULL AS INTEGER ) * - + 74 * + 97 col0
----
-68
NULL

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

skipif mysql # not compatible
query I rowsort label-6532
SELECT DISTINCT - + 55 / - - 98 * - - 78 / - COUNT ( * ) AS col0
----
0

query I rowsort
SELECT 29 + - 84 AS col1
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-6534
SELECT 16 DIV + + 52
----
0

skipif mysql # not compatible
query I rowsort label-6534
SELECT 16 / + + 52
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6535
SELECT ALL - - 88 DIV ( - - 76 )
----
1

skipif mysql # not compatible
query I rowsort label-6535
SELECT ALL - - 88 / ( - - 76 )
----
1

query I rowsort
SELECT - ( - 65 ) * - 94 + - - 56 AS col1
----
-6054

onlyif mysql # DIV for integer division: 
query II rowsort label-6537
SELECT DISTINCT - 63 DIV - 88 AS col0, 83 AS col2
----
0
83

skipif mysql # not compatible
query II rowsort label-6537
SELECT DISTINCT - 63 / - 88 AS col0, 83 AS col2
----
0
83

query II rowsort
SELECT + 41, 39 AS col2
----
41
39

onlyif mysql # aggregate syntax: 
query II rowsort label-6539
SELECT DISTINCT - - COUNT( * ) AS col0, - 23 * - 85
----
1
1955

skipif mysql # not compatible
query II rowsort label-6539
SELECT DISTINCT - - COUNT ( * ) AS col0, - 23 * - 85
----
1
1955

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT ALL - + 13 * - - SUM( - ( - - 56 ) ) * + 41 + + 42 + - 82 + 31
----
29839

skipif mysql # not compatible
query I rowsort label-6540
SELECT ALL - + 13 * - - SUM ( - ( - - 56 ) ) * + 41 + + 42 + - 82 + 31
----
29839

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT + COUNT( * ) + - ( + 55 ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-6541
SELECT + COUNT ( * ) + - ( + 55 ) AS col0
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6542
SELECT - CAST( ( + SUM( + 39 ) ) AS SIGNED ) * - - 20 * + + 2 * - 41 AS col1
----
63960

skipif mysql # not compatible
query I rowsort label-6542
SELECT - CAST ( ( + SUM ( + 39 ) ) AS INTEGER ) * - - 20 * + + 2 * - 41 AS col1
----
63960

query II rowsort
SELECT ALL - 98 AS col1, - 9 col2
----
-98
-9

query I rowsort
SELECT 16 - + 58
----
-42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6545
SELECT DISTINCT + COUNT( + - CAST( 12 AS DECIMAL ) )
----
1

skipif mysql # not compatible
query I rowsort label-6545
SELECT DISTINCT + COUNT ( + - CAST ( 12 AS REAL ) )
----
1

query II rowsort
SELECT DISTINCT + 50 AS col1, - 54
----
50
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6547
SELECT ALL - + 8 + - 88 - + 22 DIV + 86 + NULLIF ( - ( - 97 ), 22 - 65 * NULLIF ( + COUNT( * ) * 70, + COUNT( * ) + + CASE 54 WHEN MIN( ALL + 44 ) THEN + CAST( - 95 AS SIGNED ) WHEN + 80 * COUNT( 67 ) + + COALESCE ( + MAX( 6 ), + 64 * 47 + - NULLIF ( - MAX( 34 ) + - 0, 91 ) ) THEN NULL ELSE NULL END ) ) - 98 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-6547
SELECT ALL - + 8 + - 88 - + 22 / + 86 + NULLIF ( - ( - 97 ), 22 - 65 * NULLIF ( + COUNT ( * ) * 70, + COUNT ( * ) + + CASE 54 WHEN MIN ( ALL + 44 ) THEN + CAST ( - 95 AS INTEGER ) WHEN + 80 * COUNT ( 67 ) + + COALESCE ( + MAX ( 6 ), + 64 * 47 + - NULLIF ( - MAX ( 34 ) + - 0, 91 ) ) THEN NULL ELSE NULL END ) ) - 98 AS col1
----
-97

query II rowsort
SELECT - 14 AS col0, 84 AS col2
----
-14
84

query I rowsort
SELECT + 8 + + 1 + - ( - ( - 28 ) ) * 77 AS col2
----
-2147

query II rowsort
SELECT - 48 col0, - 59 AS col2
----
-48
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6551
SELECT 52 + - + 30 DIV - MIN( DISTINCT 41 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-6551
SELECT 52 + - + 30 / - MIN ( DISTINCT 41 ) AS col0
----
52

query I rowsort
SELECT 87 - - 95 * + 95
----
9112

query I rowsort
SELECT 61 + - ( - 34 )
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-6554
SELECT ALL 57 - 5 + + - 23 DIV - - 99 + + 12
----
64

skipif mysql # not compatible
query I rowsort label-6554
SELECT ALL 57 - 5 + + - 23 / - - 99 + + 12
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT ALL - 95 - SUM( DISTINCT + + 40 )
----
-135

skipif mysql # not compatible
query I rowsort label-6555
SELECT ALL - 95 - SUM ( DISTINCT + + 40 )
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-6556
SELECT 67 * 29 * + + COUNT( * ) AS col1
----
1943

skipif mysql # not compatible
query I rowsort label-6556
SELECT 67 * 29 * + + COUNT ( * ) AS col1
----
1943

query I rowsort
SELECT 2 * + 17 AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT ( + 89 ) + + 60 + COUNT( * )
----
150

skipif mysql # not compatible
query I rowsort label-6558
SELECT ( + 89 ) + + 60 + COUNT ( * )
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT ALL NULLIF ( 15, - - COUNT( * ) / - COUNT( * ) * + 8 - + - 46 * - - 55 ) * 62
----
930

skipif mysql # not compatible
query I rowsort label-6559
SELECT ALL NULLIF ( 15, - - COUNT ( * ) / - COUNT ( * ) * + 8 - + - 46 * - - 55 ) * 62
----
930

query I rowsort
SELECT ALL + 32 * - 65
----
-2080

query II rowsort
SELECT DISTINCT - NULLIF ( + 89, 88 ) AS col1, 77
----
-89
77

onlyif mysql # aggregate syntax: 
query II rowsort label-6562
SELECT MIN( + 5 ) AS col1, 7
----
5
7

skipif mysql # not compatible
query II rowsort label-6562
SELECT MIN ( + 5 ) AS col1, 7
----
5
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6563
SELECT + 44 * CAST( NULL AS SIGNED ) + 67 + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-6563
SELECT + 44 * CAST ( NULL AS INTEGER ) + 67 + 2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6564
SELECT ALL - COALESCE ( 31, 69 DIV - 77 + + - 25 + - - COUNT( * ) ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-6564
SELECT ALL - COALESCE ( 31, 69 / - 77 + + - 25 + - - COUNT ( * ) ) AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT + + 40 * - - COUNT( * ) + - 54 * - 91 * - COUNT( * ) * - + ( - SUM( 31 ) )
----
-152294

skipif mysql # not compatible
query I rowsort label-6565
SELECT + + 40 * - - COUNT ( * ) + - 54 * - 91 * - COUNT ( * ) * - + ( - SUM ( 31 ) )
----
-152294

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6566
SELECT ALL - 48 * - 34 + COUNT( + 96 ) DIV + COALESCE ( + 67, 9 ) * + 54 + - 33 col1
----
1599

skipif mysql # not compatible
query I rowsort label-6566
SELECT ALL - 48 * - 34 + COUNT ( + 96 ) / + COALESCE ( + 67, 9 ) * + 54 + - 33 col1
----
1599

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6567
SELECT + 52 * - 29 + - 64 * + CASE - NULLIF ( 58, 6 * 35 ) WHEN - 71 THEN COUNT( * ) * - CAST( NULL AS SIGNED ) WHEN - 24 THEN NULL WHEN + 34 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6567
SELECT + 52 * - 29 + - 64 * + CASE - NULLIF ( 58, 6 * 35 ) WHEN - 71 THEN COUNT ( * ) * - CAST ( NULL AS INTEGER ) WHEN - 24 THEN NULL WHEN + 34 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + - 21 col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6569
SELECT DISTINCT + CASE + COUNT( * ) WHEN + - COUNT( * ) THEN - 31 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6569
SELECT DISTINCT + CASE + COUNT ( * ) WHEN + - COUNT ( * ) THEN - 31 END AS col1
----
NULL

query I rowsort
SELECT ALL - 26 * - 26 + - + 87
----
589

onlyif mysql # aggregate syntax: 
query II rowsort label-6571
SELECT DISTINCT + MIN( ALL + 31 ), COUNT( - 99 ) col2
----
31
1

skipif mysql # not compatible
query II rowsort label-6571
SELECT DISTINCT + MIN ( ALL + 31 ), COUNT ( - 99 ) col2
----
31
1

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

skipif mysql # not compatible
query I rowsort label-6572
SELECT DISTINCT MIN ( + 98 ) + + - 1 AS col0
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-6573
SELECT - COUNT( * ) * + 50, - 61 col2
----
-50
-61

skipif mysql # not compatible
query II rowsort label-6573
SELECT - COUNT ( * ) * + 50, - 61 col2
----
-50
-61

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

skipif mysql # not compatible
query I rowsort label-6574
SELECT - - COUNT ( * ) + 24 / + 6 AS col1
----
5

query I rowsort
SELECT DISTINCT + + 18 + + + ( + 36 ) * + 38 AS col1
----
1386

query I rowsort
SELECT + - 69 * 95 * - 26 * + 73
----
12441390

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6577
SELECT ALL + 58 DIV - - 6 * + COUNT( - 35 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-6577
SELECT ALL + 58 / - - 6 * + COUNT ( - 35 ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT - 76 + 44 * MIN( ALL - - ( 61 ) )
----
2608

skipif mysql # not compatible
query I rowsort label-6578
SELECT - 76 + 44 * MIN ( ALL - - ( 61 ) )
----
2608

query I rowsort
SELECT DISTINCT + 81 * + - 73
----
-5913

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6580
SELECT - CASE + - CASE + CASE 1 WHEN 44 * - - CAST( + - 84 AS SIGNED ) THEN + ( + 89 ) ELSE NULL END WHEN + CAST( NULL AS DECIMAL ) * 49 THEN + 19 WHEN + 24 * 92 THEN - 34 + COUNT( * ) END WHEN 66 / + 89 THEN - CAST( CAST( 19 AS SIGNED ) AS SIGNED ) END / 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6580
SELECT - CASE + - CASE + CASE 1 WHEN 44 * - - CAST ( + - 84 AS INTEGER ) THEN + ( + 89 ) ELSE NULL END WHEN + CAST ( NULL AS REAL ) * 49 THEN + 19 WHEN + 24 * 92 THEN - 34 + COUNT ( * ) END WHEN 66 / + 89 THEN - CAST ( CAST ( 19 AS INTEGER ) AS INTEGER ) END / 41 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT DISTINCT CASE + + 36 WHEN - - NULLIF ( 14, + + MIN( DISTINCT - 31 ) + - 63 * + COALESCE ( MIN( DISTINCT ( - 81 ) ), 74 + - 67 ) - + 44 ) + + 76 THEN + 28 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6581
SELECT DISTINCT CASE + + 36 WHEN - - NULLIF ( 14, + + MIN ( DISTINCT - 31 ) + - 63 * + COALESCE ( MIN ( DISTINCT ( - 81 ) ), 74 + - 67 ) - + 44 ) + + 76 THEN + 28 ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6584
SELECT - 74 AS col2, - COUNT( * ) * + MIN( + - 57 ) DIV + + 8 AS col1
----
-74
7

skipif mysql # not compatible
query II rowsort label-6584
SELECT - 74 AS col2, - COUNT ( * ) * + MIN ( + - 57 ) / + + 8 AS col1
----
-74
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6585
SELECT ALL + 63 - COUNT( * ) DIV - ( - 98 ) * - CASE + ( - COUNT( ALL 73 ) ) WHEN COUNT( * ) THEN + CAST( NULL AS SIGNED ) WHEN - SUM( ALL 45 ) * + 45 THEN - 94 ELSE 37 END + MAX( + 8 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-6585
SELECT ALL + 63 - COUNT ( * ) / - ( - 98 ) * - CASE + ( - COUNT ( ALL 73 ) ) WHEN COUNT ( * ) THEN + CAST ( NULL AS INTEGER ) WHEN - SUM ( ALL 45 ) * + 45 THEN - 94 ELSE 37 END + MAX ( + 8 ) AS col1
----
71

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

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

query II rowsort
SELECT 3, 9 AS col1
----
3
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6588
SELECT - 29, + CAST( NULL AS SIGNED ) AS col2
----
-29
NULL

skipif mysql # not compatible
query II rowsort label-6588
SELECT - 29, + CAST ( NULL AS INTEGER ) AS col2
----
-29
NULL

query I rowsort
SELECT - 4 - - - 75
----
-79

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6590
SELECT - CAST( - + ( + CASE - - COUNT( * ) WHEN 28 THEN AVG ( + 20 ) WHEN - 57 * 42 + - 49 * + COUNT( * ) THEN - ( 74 ) * 36 END ) AS DECIMAL ) - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6590
SELECT - CAST ( - + ( + CASE - - COUNT ( * ) WHEN 28 THEN AVG ( + 20 ) WHEN - 57 * 42 + - 49 * + COUNT ( * ) THEN - ( 74 ) * 36 END ) AS REAL ) - + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL ( + COALESCE ( + - 54, - 62 ) ) AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT - MAX( 38 ) + + - MIN( DISTINCT + 36 ) + + 66
----
-8

skipif mysql # not compatible
query I rowsort label-6592
SELECT - MAX ( 38 ) + + - MIN ( DISTINCT + 36 ) + + 66
----
-8

query I rowsort
SELECT - 74 * - 21
----
1554

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT ALL NULLIF ( - COUNT( * ), 65 + + - 35 * - COUNT( * ) + ( 67 ) + - 27 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6594
SELECT ALL NULLIF ( - COUNT ( * ), 65 + + - 35 * - COUNT ( * ) + ( 67 ) + - 27 ) AS col1
----
-1

query II rowsort
SELECT ALL 99 col2, + 49 AS col2
----
99
49

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6597
SELECT ALL NULLIF ( NULLIF ( - CAST( NULL AS SIGNED ), + 56 + - 20 ), + - MIN( DISTINCT + 47 ) / 10 * 64 ) * + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-6597
SELECT ALL NULLIF ( NULLIF ( - CAST ( NULL AS INTEGER ), + 56 + - 20 ), + - MIN ( DISTINCT + 47 ) / 10 * 64 ) * + 80
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6598
SELECT DISTINCT - 30 DIV + - 20 + ( + 99 )
----
100

skipif mysql # not compatible
query I rowsort label-6598
SELECT DISTINCT - 30 / + - 20 + ( + 99 )
----
100

query I rowsort
SELECT DISTINCT + - ( + - 68 ) * - 81 - + - 59
----
-5449

query I rowsort
SELECT DISTINCT - ( - - 62 ) * + 15 - - 29 + 34
----
-867

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6601
SELECT ALL - + 82 DIV - CASE 28 WHEN - - 56 THEN NULL WHEN CAST( + 17 AS SIGNED ) THEN NULL ELSE + - 99 END + - COALESCE ( + 72, 71 * + 80 ) + 2
----
-70

skipif mysql # not compatible
query I rowsort label-6601
SELECT ALL - + 82 / - CASE 28 WHEN - - 56 THEN NULL WHEN CAST ( + 17 AS INTEGER ) THEN NULL ELSE + - 99 END + - COALESCE ( + 72, 71 * + 80 ) + 2
----
-70

query I rowsort
SELECT - ( - 12 ) * + + 52 * - + 30 + 82
----
-18638

onlyif mysql # aggregate syntax: 
query I rowsort label-6603
SELECT - + 94 * + 13 - CASE - + 26 WHEN 44 THEN + COUNT( ALL - 47 ) * - - MIN( 58 ) * + NULLIF ( + AVG ( 80 ) * + 77, 37 ) WHEN 82 * 94 THEN NULL ELSE NULL END * 14 + - 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6603
SELECT - + 94 * + 13 - CASE - + 26 WHEN 44 THEN + COUNT ( ALL - 47 ) * - - MIN ( 58 ) * + NULLIF ( + AVG ( 80 ) * + 77, 37 ) WHEN 82 * 94 THEN NULL ELSE NULL END * 14 + - 59 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 61 * - 89 AS col2
----
5429

query I rowsort
SELECT ALL + - 63 * 68 + - 4 * - - 21 * + 13 * - - 98 AS col1
----
-111300

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6606
SELECT ALL 58 * + 27 + + CASE + 85 WHEN + - COUNT( * ) THEN - 99 WHEN - + CAST( NULL AS DECIMAL ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6606
SELECT ALL 58 * + 27 + + CASE + 85 WHEN + - COUNT ( * ) THEN - 99 WHEN - + CAST ( NULL AS REAL ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6607
SELECT DISTINCT COUNT( * ) DIV + + 99 col1
----
0

skipif mysql # not compatible
query I rowsort label-6607
SELECT DISTINCT COUNT ( * ) / + + 99 col1
----
0

query I rowsort
SELECT + - 17 * 67 * + 60 AS col1
----
-68340

onlyif mysql # aggregate syntax: 
query I rowsort label-6609
SELECT DISTINCT + - 31 * + + COUNT( * ) + 39 - 49 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-6609
SELECT DISTINCT + - 31 * + + COUNT ( * ) + 39 - 49 AS col0
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-6610
SELECT ALL + + 54, NULLIF ( + COUNT( * ), ( + - 39 ) ) AS col2
----
54
1

skipif mysql # not compatible
query II rowsort label-6610
SELECT ALL + + 54, NULLIF ( + COUNT ( * ), ( + - 39 ) ) AS col2
----
54
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6611
SELECT ALL - - 32 * + + ( + ( 77 ) ) + - 58 + + 57 DIV - - 43 AS col0
----
2407

skipif mysql # not compatible
query I rowsort label-6611
SELECT ALL - - 32 * + + ( + ( 77 ) ) + - 58 + + 57 / - - 43 AS col0
----
2407

query I rowsort
SELECT ( - 39 ) * + 55 + 81 AS col2
----
-2064

onlyif mysql # aggregate syntax: 
query II rowsort label-6613
SELECT COUNT( * ) col2, 27 + ( + + 70 ) * + 16 + - + 82 + COALESCE ( + MIN( DISTINCT - 95 ), 5, 94 + - 26 ) * 95 * - ( 64 ) AS col2
----
1
578665

skipif mysql # not compatible
query II rowsort label-6613
SELECT COUNT ( * ) col2, 27 + ( + + 70 ) * + 16 + - + 82 + COALESCE ( + MIN ( DISTINCT - 95 ), 5, 94 + - 26 ) * 95 * - ( 64 ) AS col2
----
1
578665

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6614
SELECT + CAST( NULL AS SIGNED ) * - 94 + - 69 + - 31 * + - 5 - 31 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6614
SELECT + CAST ( NULL AS INTEGER ) * - 94 + - 69 + - 31 * + - 5 - 31 col1
----
NULL

query I rowsort
SELECT + COALESCE ( + COALESCE ( 91, - - 96 ), + NULLIF ( + + 40, 52 ), - - 43 ) col0
----
91

query I rowsort
SELECT ALL 28 * + 13 AS col1
----
364

query I rowsort
SELECT + 93 * + - 68 + 20 * + - 86 AS col0
----
-8044

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6619
SELECT - 93 + + - 4 + + COUNT( * ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-6619
SELECT - 93 + + - 4 + + COUNT ( * ) AS col2
----
-96

query I rowsort
SELECT + ( - 67 ) + 61 AS col0
----
-6

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6623
SELECT - 86 - + + COUNT( * ) - 53 DIV 39
----
-88

skipif mysql # not compatible
query I rowsort label-6623
SELECT - 86 - + + COUNT ( * ) - 53 / 39
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6624
SELECT ALL + COALESCE ( + SUM( - 57 ), - - COALESCE ( + + 39, + - 41 ) + 26 ) * - + 64 AS col2
----
3648

skipif mysql # not compatible
query I rowsort label-6624
SELECT ALL + COALESCE ( + SUM ( - 57 ), - - COALESCE ( + + 39, + - 41 ) + 26 ) * - + 64 AS col2
----
3648

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6625
SELECT + 74 DIV + + 6, - COUNT( * ) AS col2
----
12
-1

skipif mysql # not compatible
query II rowsort label-6625
SELECT + 74 / + + 6, - COUNT ( * ) AS col2
----
12
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6626
SELECT DISTINCT SUM( DISTINCT + 79 ) DIV 19
----
4

skipif mysql # not compatible
query I rowsort label-6626
SELECT DISTINCT SUM ( DISTINCT + 79 ) / 19
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6627
SELECT DISTINCT CAST( - 76 AS SIGNED ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-6627
SELECT DISTINCT CAST ( - 76 AS INTEGER ) AS col1
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-6628
SELECT ALL + 5 + - 59 AS col0, - 78 - + COUNT( * ) * + 42 + - COUNT( * ) AS col2
----
-54
-121

skipif mysql # not compatible
query II rowsort label-6628
SELECT ALL + 5 + - 59 AS col0, - 78 - + COUNT ( * ) * + 42 + - COUNT ( * ) AS col2
----
-54
-121

query I rowsort
SELECT - 26 + + 78 - - - 18 * + 52 * 13 + + 34 AS col2
----
-12082

query I rowsort
SELECT ALL CASE + + 7 WHEN 92 THEN NULL WHEN 77 + - 1 / + ( + - 77 ) THEN NULL ELSE + 30 END AS col2
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6631
SELECT ALL + 69 + + COUNT( * ) - + + 70 DIV + - 76 * + 44 - COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-6631
SELECT ALL + 69 + + COUNT ( * ) - + + 70 / + - 76 * + 44 - COUNT ( * )
----
69

query I rowsort
SELECT DISTINCT + 60 + - 81 + - 32 col1
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6633
SELECT ALL CASE + CAST( NULL AS SIGNED ) WHEN 62 THEN + - 25 * + - ( + 88 ) WHEN 7 + - - AVG ( DISTINCT + + 33 ) * + CASE - 15 + - 71 WHEN + 90 * 86 THEN - 97 ELSE 76 END THEN + 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6633
SELECT ALL CASE + CAST ( NULL AS INTEGER ) WHEN 62 THEN + - 25 * + - ( + 88 ) WHEN 7 + - - AVG ( DISTINCT + + 33 ) * + CASE - 15 + - 71 WHEN + 90 * 86 THEN - 97 ELSE 76 END THEN + 54 END
----
NULL

query II rowsort
SELECT 15 * - - 9 AS col2, 70
----
135
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6635
SELECT DISTINCT + - 68 + + 60 * + NULLIF ( CAST( NULL AS SIGNED ), 3 ) / - + 64 + + + 43 - - 45 * + 66 * 51 + + COUNT( * ) * + 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6635
SELECT DISTINCT + - 68 + + 60 * + NULLIF ( CAST ( NULL AS INTEGER ), 3 ) / - + 64 + + + 43 - - 45 * + 66 * 51 + + COUNT ( * ) * + 20 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6636
SELECT DISTINCT + 84 DIV 7 + 21 + + + CAST( - 50 AS SIGNED ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-6636
SELECT DISTINCT + 84 / 7 + 21 + + + CAST ( - 50 AS INTEGER ) AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6637
SELECT ALL + 73 + + NULLIF ( NULLIF ( + + 86, + COUNT( * ) * 26 ), 15 ) AS col0
----
159

skipif mysql # not compatible
query I rowsort label-6637
SELECT ALL + 73 + + NULLIF ( NULLIF ( + + 86, + COUNT ( * ) * 26 ), 15 ) AS col0
----
159

query I rowsort
SELECT + 86 * - 47 + + 85 * + 81 * + 99 AS col0
----
677573

query III rowsort
SELECT ALL 25 * + + 66 + - 22 * 66 AS col1, 53 AS col1, + - 8 AS col0
----
198
53
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT DISTINCT + - 77 + COUNT( DISTINCT - + 86 )
----
-76

skipif mysql # not compatible
query I rowsort label-6640
SELECT DISTINCT + - 77 + COUNT ( DISTINCT - + 86 )
----
-76

query I rowsort
SELECT 71 * + + 77 + + 5 - - - 6 + - 50
----
5416

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6642
SELECT NULLIF ( - 16, + NULLIF ( - ( + 54 ), + + 83 - + 79 * + + 54 ) * + + 4 ) DIV + COALESCE ( 40, 52 + + MAX( + ( 18 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-6642
SELECT NULLIF ( - 16, + NULLIF ( - ( + 54 ), + + 83 - + 79 * + + 54 ) * + + 4 ) / + COALESCE ( 40, 52 + + MAX ( + ( 18 ) ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6643
SELECT ALL + + 26 + - 73 DIV + 64 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-6643
SELECT ALL + + 26 + - 73 / + 64 AS col2
----
25

query I rowsort
SELECT - 52 * - NULLIF ( + - NULLIF ( + 77, + 33 ), - 24 + - ( + + 15 ) )
----
-4004

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6645
SELECT ALL + - CAST( NULL AS SIGNED ) * - CASE + 21 WHEN - ( + + 75 ) * 28 * - - 9 THEN 20 * CAST( NULL AS SIGNED ) + 16 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6645
SELECT ALL + - CAST ( NULL AS INTEGER ) * - CASE + 21 WHEN - ( + + 75 ) * 28 * - - 9 THEN 20 * CAST ( NULL AS INTEGER ) + 16 ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6646
SELECT + 61 DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-6646
SELECT + 61 / + 85
----
0

query I rowsort
SELECT + 44 + - 75 - - 33
----
2

query I rowsort
SELECT DISTINCT + 99 - + 83 + - 41 - 40 * 59 + - 26
----
-2411

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT ALL - 25 - CASE WHEN NULLIF ( ( - SUM( + - 43 ) ), - COUNT( * ) * COUNT( * ) ) IS NOT NULL THEN NULL WHEN NULL IS NOT NULL THEN 39 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6649
SELECT ALL - 25 - CASE WHEN NULLIF ( ( - SUM ( + - 43 ) ), - COUNT ( * ) * COUNT ( * ) ) IS NOT NULL THEN NULL WHEN NULL IS NOT NULL THEN 39 ELSE NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6651
SELECT 32 DIV COUNT( * ) + + CASE - 46 WHEN - ( + + 5 ) THEN NULL WHEN + CASE + 17 WHEN - 90 * - CAST( NULL AS SIGNED ) + - MAX( - 61 + 43 ) THEN 10 * COUNT( * ) + 40 WHEN + 31 THEN 80 END + 67 THEN NULL ELSE + 81 DIV + 48 - + 95 END * + COUNT( * ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-6651
SELECT 32 / COUNT ( * ) + + CASE - 46 WHEN - ( + + 5 ) THEN NULL WHEN + CASE + 17 WHEN - 90 * - CAST ( NULL AS INTEGER ) + - MAX ( - 61 + 43 ) THEN 10 * COUNT ( * ) + 40 WHEN + 31 THEN 80 END + 67 THEN NULL ELSE + 81 / + 48 - + 95 END * + COUNT ( * ) AS col0
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-6652
SELECT ALL 35 DIV - 59 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6652
SELECT ALL 35 / - 59 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6653
SELECT 87 + - 32 * + CAST( 43 AS SIGNED ) AS col1
----
-1289

skipif mysql # not compatible
query I rowsort label-6653
SELECT 87 + - 32 * + CAST ( 43 AS INTEGER ) AS col1
----
-1289

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6654
SELECT ALL - ( COUNT( ALL 94 ) ) AS col2, 49 + - ( + 51 ) DIV - 20 AS col2
----
-1
51

skipif mysql # not compatible
query II rowsort label-6654
SELECT ALL - ( COUNT ( ALL 94 ) ) AS col2, 49 + - ( + 51 ) / - 20 AS col2
----
-1
51

query I rowsort
SELECT ( 93 ) * - - 70 * - + 40
----
-260400

onlyif mysql # aggregate syntax: 
query II rowsort label-6656
SELECT ALL SUM( ALL - 22 ) * - ( - 52 ) + 70 AS col1, + 98 * + - ( + 0 ) col1
----
-1074
0

skipif mysql # not compatible
query II rowsort label-6656
SELECT ALL SUM ( ALL - 22 ) * - ( - 52 ) + 70 AS col1, + 98 * + - ( + 0 ) col1
----
-1074
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT ( - NULLIF ( + + 28, + 80 ) ) + - - COUNT( * ) - + 78 AS col1
----
-105

skipif mysql # not compatible
query I rowsort label-6657
SELECT ( - NULLIF ( + + 28, + 80 ) ) + - - COUNT ( * ) - + 78 AS col1
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT ( - + 5 ) * COUNT( * ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-6658
SELECT ( - + 5 ) * COUNT ( * ) AS col0
----
-5

query II rowsort
SELECT DISTINCT 86 AS col1, 27
----
86
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT ALL COUNT( * ) + - 13 - - 91
----
79

skipif mysql # not compatible
query I rowsort label-6660
SELECT ALL COUNT ( * ) + - 13 - - 91
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6661
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 34 + - ( + - 81 ) + - COUNT( * ) * - 25 - + CAST( - + 76 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6661
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 34 + - ( + - 81 ) + - COUNT ( * ) * - 25 - + CAST ( - + 76 AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT ( + 95 ) + - - 20 col1
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT ALL 61 + - - COUNT( * ) + + 33
----
95

skipif mysql # not compatible
query I rowsort label-6663
SELECT ALL 61 + - - COUNT ( * ) + + 33
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6664
SELECT ( + CASE + + 64 WHEN - 63 THEN - 94 WHEN + + SUM( ALL 10 ) * 46 THEN CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) - CAST( NULL AS SIGNED ) END ) * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6664
SELECT ( + CASE + + 64 WHEN - 63 THEN - 94 WHEN + + SUM ( ALL 10 ) * 46 THEN CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) - CAST ( NULL AS INTEGER ) END ) * COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6665
SELECT ALL + COALESCE ( - 27, 95 ) DIV + - 13 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6665
SELECT ALL + COALESCE ( - 27, 95 ) / + - 13 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT 29 + - 85 + - COUNT( * ) + 17 + + 2 + - 32 * + 21
----
-710

skipif mysql # not compatible
query I rowsort label-6666
SELECT 29 + - 85 + - COUNT ( * ) + 17 + + 2 + - 32 * + 21
----
-710

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT ALL + 72 + 96 * + - ( - + MAX( ALL + 85 ) ) * - COUNT( * ) AS col2
----
-8088

skipif mysql # not compatible
query I rowsort label-6667
SELECT ALL + 72 + 96 * + - ( - + MAX ( ALL + 85 ) ) * - COUNT ( * ) AS col2
----
-8088

query I rowsort
SELECT DISTINCT - - 4 * - 59 + + 79 * + + 83 + - 3 + - + 65 col2
----
6253

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT DISTINCT + - NULLIF ( 53, + COALESCE ( + 72, - + COUNT( * ), - + 31 + - AVG ( COALESCE ( - 67, - 95 ) ) * + 96 ) ) * 22 AS col1
----
-1166

skipif mysql # not compatible
query I rowsort label-6669
SELECT DISTINCT + - NULLIF ( 53, + COALESCE ( + 72, - + COUNT ( * ), - + 31 + - AVG ( COALESCE ( - 67, - 95 ) ) * + 96 ) ) * 22 AS col1
----
-1166

query I rowsort
SELECT DISTINCT + 44 + - 29 + + ( - 45 )
----
-30

query II rowsort
SELECT ALL 26 AS col1, + 8 AS col2
----
26
8

query I rowsort
SELECT ALL ( - 87 ) * - 83
----
7221

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6674
SELECT DISTINCT + MAX( ALL - - 79 ) * - 51 * + 41 - + COUNT( * ) AS col2
----
-165190

skipif mysql # not compatible
query I rowsort label-6674
SELECT DISTINCT + MAX ( ALL - - 79 ) * - 51 * + 41 - + COUNT ( * ) AS col2
----
-165190

query I rowsort
SELECT + 50 + + 69 * - NULLIF ( + + 61, 33 )
----
-4159

query I rowsort
SELECT + ( + + 90 ) col0
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6677
SELECT ALL - CASE - COUNT( * ) WHEN + + COUNT( * ) DIV + - 98 * - - COUNT( * ) - 76 THEN + + COUNT( * ) DIV + COUNT( * ) ELSE - 88 END AS col0
----
88

skipif mysql # not compatible
query I rowsort label-6677
SELECT ALL - CASE - COUNT ( * ) WHEN + + COUNT ( * ) / + - 98 * - - COUNT ( * ) - 76 THEN + + COUNT ( * ) / + COUNT ( * ) ELSE - 88 END AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6678
SELECT 55 * + CASE + + NULLIF ( 55, + AVG ( - - 18 ) * + 37 ) WHEN - 94 * 54 THEN - + 6 WHEN MAX( DISTINCT 61 ) + 45 * - COALESCE ( 76, COUNT( * ) * COUNT( * ), + 18 * - 96 ) THEN NULL WHEN 78 THEN 94 * 48 ELSE NULL END - 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6678
SELECT 55 * + CASE + + NULLIF ( 55, + AVG ( - - 18 ) * + 37 ) WHEN - 94 * 54 THEN - + 6 WHEN MAX ( DISTINCT 61 ) + 45 * - COALESCE ( 76, COUNT ( * ) * COUNT ( * ), + 18 * - 96 ) THEN NULL WHEN 78 THEN 94 * 48 ELSE NULL END - 55 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + 65 AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6680
SELECT 47 + 86 + - NULLIF ( + - 38, - MAX( ALL + - 74 ) ) AS col0
----
171

skipif mysql # not compatible
query I rowsort label-6680
SELECT 47 + 86 + - NULLIF ( + - 38, - MAX ( ALL + - 74 ) ) AS col0
----
171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6681
SELECT ALL - CAST( NULL AS SIGNED ) / + MIN( 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6681
SELECT ALL - CAST ( NULL AS INTEGER ) / + MIN ( 7 )
----
NULL

query I rowsort
SELECT 96 * + 81 * + + 60
----
466560

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6684
SELECT 15 DIV + - 96 * - 12 col1
----
0

skipif mysql # not compatible
query I rowsort label-6684
SELECT 15 / + - 96 * - 12 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6685
SELECT 86 + + - COUNT( * ) + - CASE + - 77 WHEN COUNT( * ) / + ( 63 ) + ( + 12 ) THEN + + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6685
SELECT 86 + + - COUNT ( * ) + - CASE + - 77 WHEN COUNT ( * ) / + ( 63 ) + ( + 12 ) THEN + + COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6686
SELECT + 17, COUNT( * ) * - + 59 * - + 88 * + 25 col2
----
17
129800

skipif mysql # not compatible
query II rowsort label-6686
SELECT + 17, COUNT ( * ) * - + 59 * - + 88 * + 25 col2
----
17
129800

query II rowsort
SELECT 62 AS col0, COALESCE ( + 22, + + 31 * 97 ) * + 52 + - 18 + - NULLIF ( + 23, - - 73 )
----
62
1103

query II rowsort
SELECT ALL - ( - + 78 ), + 1 AS col2
----
78
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6689
SELECT ALL + 5 + COUNT( * ) + + - 91 * - 69
----
6285

skipif mysql # not compatible
query I rowsort label-6689
SELECT ALL + 5 + COUNT ( * ) + + - 91 * - 69
----
6285

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6691
SELECT 12 + - 5 - ( + + 27 ) DIV - 56 * 84 + - COUNT( * ) * 51 + + + 66 + + - 50 + - 67 + 16 * NULLIF ( COUNT( * ), + 89 ) * COUNT( * ) col0
----
-79

skipif mysql # not compatible
query I rowsort label-6691
SELECT 12 + - 5 - ( + + 27 ) / - 56 * 84 + - COUNT ( * ) * 51 + + + 66 + + - 50 + - 67 + 16 * NULLIF ( COUNT ( * ), + 89 ) * COUNT ( * ) col0
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6692
SELECT - 46 * - + COUNT( * ) + + MIN( ALL 72 ) + + COUNT( * ) + - - 16 + + + 50 * + 30 DIV - + COUNT( * ) + - 18
----
-1383

skipif mysql # not compatible
query I rowsort label-6692
SELECT - 46 * - + COUNT ( * ) + + MIN ( ALL 72 ) + + COUNT ( * ) + - - 16 + + + 50 * + 30 / - + COUNT ( * ) + - 18
----
-1383

onlyif mysql # aggregate syntax: 
query I rowsort label-6693
SELECT ALL + 69 + + 5 * + ( + + SUM( - - 43 ) ) * - CASE + 89 WHEN + 93 THEN 66 END + 51 + + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-6693
SELECT ALL + 69 + + 5 * + ( + + SUM ( - - 43 ) ) * - CASE + 89 WHEN + 93 THEN 66 END + 51 + + 12
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6694
SELECT ALL COALESCE ( 0, - 85 - 52 - + - 38 - + NULLIF ( 92, - 82 ) + + - 62 * - + 56 DIV - 29 + ( + 7 + + 84 * - 94 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6694
SELECT ALL COALESCE ( 0, - 85 - 52 - + - 38 - + NULLIF ( 92, - 82 ) + + - 62 * - + 56 / - 29 + ( + 7 + + 84 * - 94 ) )
----
0

query II rowsort
SELECT - 36 col1, 31 AS col1
----
-36
31

query I rowsort
SELECT + 3 + - 55 + - 26
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6697
SELECT + SUM( DISTINCT + - 16 ) + ( + 99 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-6697
SELECT + SUM ( DISTINCT + - 16 ) + ( + 99 ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT ALL ( MIN( DISTINCT + 51 ) ) + 31 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL ( MIN ( DISTINCT + 51 ) ) + 31 AS col2
----
82

query I rowsort
SELECT - 91 + - - COALESCE ( - + 71, - 70 + 7 )
----
-162

query II rowsort
SELECT 75 AS col2, + 9 * - 1 AS col2
----
75
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT - 67 + 93 * + 20 + - COUNT( * ) AS col0
----
1792

skipif mysql # not compatible
query I rowsort label-6701
SELECT - 67 + 93 * + 20 + - COUNT ( * ) AS col0
----
1792

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6702
SELECT + 73 + - 48 - + 37 + - - COUNT( * ) * + - 74 DIV + + 74 - 87 + 62 DIV 17 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-6702
SELECT + 73 + - 48 - + 37 + - - COUNT ( * ) * + - 74 / + + 74 - 87 + 62 / 17 AS col2
----
-97

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6705
SELECT NULLIF ( - 14, MIN( ( 8 ) ) * + - 71 * - - COUNT( * ) + - MAX( - - NULLIF ( + 86, - ( 5 ) + 94 ) ) - COUNT( DISTINCT 36 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-6705
SELECT NULLIF ( - 14, MIN ( ( 8 ) ) * + - 71 * - - COUNT ( * ) + - MAX ( - - NULLIF ( + 86, - ( 5 ) + 94 ) ) - COUNT ( DISTINCT 36 ) )
----
-14

query I rowsort
SELECT DISTINCT - 84 * + 86
----
-7224

query I rowsort
SELECT ALL 84 - + ( - 46 ) AS col1
----
130

query I rowsort
SELECT + 68 + + ( - 45 ) col1
----
23

query I rowsort
SELECT - - 35 * 70 * 74 AS col1
----
181300

onlyif mysql # DIV for integer division: 
query I rowsort label-6710
SELECT + - 85 DIV - - 95 * + 41 * 47 * + 31 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6710
SELECT + - 85 / - - 95 * + 41 * 47 * + 31 AS col2
----
0

query I rowsort
SELECT + - 80 * - ( 17 ) AS col2
----
1360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6712
SELECT + CAST( COALESCE ( + 32, + 35 ) AS SIGNED ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-6712
SELECT + CAST ( COALESCE ( + 32, + 35 ) AS INTEGER ) AS col2
----
32

query II rowsort
SELECT + + 77 AS col1, - 8 col1
----
77
-8

query II rowsort
SELECT ALL + 21, 58 AS col0
----
21
58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6715
SELECT ALL 31 DIV + CAST( 52 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6715
SELECT ALL 31 / + CAST ( 52 AS INTEGER ) AS col1
----
0

query I rowsort
SELECT ALL - - 34 * 51 * 25
----
43350

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT ALL + 50 * + COALESCE ( COALESCE ( 8, NULLIF ( - 56, + 64 ) * - 7 + + COUNT( * ) ), + 35 ) AS col1
----
400

skipif mysql # not compatible
query I rowsort label-6717
SELECT ALL + 50 * + COALESCE ( COALESCE ( 8, NULLIF ( - 56, + 64 ) * - 7 + + COUNT ( * ) ), + 35 ) AS col1
----
400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6718
SELECT + 38 * + 5 - ( + COUNT( * ) ) * - - 43 DIV 20 + + - MAX( + 98 ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-6718
SELECT + 38 * + 5 - ( + COUNT ( * ) ) * - - 43 / 20 + + - MAX ( + 98 ) AS col2
----
90

query I rowsort
SELECT + + 58 / - + ( 16 ) * + 68 / - - CASE + 51 WHEN + 87 THEN + 37 WHEN 46 THEN NULL END / + ( - 39 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6720
SELECT ALL + 90 AS col2, COUNT( * ) * + - 97 + + + 50 * - 1 AS col1
----
90
-147

skipif mysql # not compatible
query II rowsort label-6720
SELECT ALL + 90 AS col2, COUNT ( * ) * + - 97 + + + 50 * - 1 AS col1
----
90
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT COALESCE ( + MIN( DISTINCT + COALESCE ( + 65, - + 64 ) ), + - 19 )
----
65

skipif mysql # not compatible
query I rowsort label-6721
SELECT COALESCE ( + MIN ( DISTINCT + COALESCE ( + 65, - + 64 ) ), + - 19 )
----
65

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

skipif mysql # not compatible
query I rowsort label-6722
SELECT - 87 + - COUNT ( * ) AS col1
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6723
SELECT DISTINCT + COUNT( 52 ) col2, COUNT( * ) * - - 17 DIV - COUNT( * ) - - - 22 AS col2
----
1
-39

skipif mysql # not compatible
query II rowsort label-6723
SELECT DISTINCT + COUNT ( 52 ) col2, COUNT ( * ) * - - 17 / - COUNT ( * ) - - - 22 AS col2
----
1
-39

query I rowsort
SELECT - 58 * 87 * + + 46 AS col2
----
-232116

query I rowsort
SELECT ALL COALESCE ( - 11, + 69 * + 16 * - ( - 51 ) ) * - - 83 + - 14
----
-927

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT DISTINCT 5 * 12 + - - SUM( - 86 )
----
-26

skipif mysql # not compatible
query I rowsort label-6726
SELECT DISTINCT 5 * 12 + - - SUM ( - 86 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT COALESCE ( 5, + - 56 * + COUNT( ALL - 0 ) + + + 86 * + + 62 * + ( + + COALESCE ( - 15, + + 45 + 19 + + 24, COUNT( * ) ) ), 44 - + 44 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-6727
SELECT COALESCE ( 5, + - 56 * + COUNT ( ALL - 0 ) + + + 86 * + + 62 * + ( + + COALESCE ( - 15, + + 45 + 19 + + 24, COUNT ( * ) ) ), 44 - + 44 ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT ALL - COUNT( * ) * 69 * + MAX( DISTINCT + + 78 ) * - 51 + + 68 + - 90 - + 70
----
274390

skipif mysql # not compatible
query I rowsort label-6728
SELECT ALL - COUNT ( * ) * 69 * + MAX ( DISTINCT + + 78 ) * - 51 + + 68 + - 90 - + 70
----
274390

query I rowsort
SELECT - 27 * + - 48 AS col0
----
1296

onlyif mysql # aggregate syntax: 
query II rowsort label-6730
SELECT - 5 * - - 37 * + - MIN( DISTINCT 52 ) - - NULLIF ( 32, - + 99 ) AS col0, + 48 AS col2
----
9652
48

skipif mysql # not compatible
query II rowsort label-6730
SELECT - 5 * - - 37 * + - MIN ( DISTINCT 52 ) - - NULLIF ( 32, - + 99 ) AS col0, + 48 AS col2
----
9652
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6731
SELECT ALL + 20 * 97 * CAST( NULL AS SIGNED ) + - 2 + - 9 + + 19 + + AVG ( 36 ) + - - 26 * 60 + COUNT( * ) * 41
----
NULL

skipif mysql # not compatible
query I rowsort label-6731
SELECT ALL + 20 * 97 * CAST ( NULL AS INTEGER ) + - 2 + - 9 + + 19 + + AVG ( 36 ) + - - 26 * 60 + COUNT ( * ) * 41
----
NULL

query I rowsort
SELECT DISTINCT - 1 * + 39 AS col1
----
-39

onlyif mysql # aggregate syntax: 
query III rowsort label-6733
SELECT COUNT( DISTINCT - 20 ) AS col1, + COUNT( + 61 ) + COUNT( * ) col1, MAX( DISTINCT ( 69 ) ) AS col2
----
1
2
69

skipif mysql # not compatible
query III rowsort label-6733
SELECT COUNT ( DISTINCT - 20 ) AS col1, + COUNT ( + 61 ) + COUNT ( * ) col1, MAX ( DISTINCT ( 69 ) ) AS col2
----
1
2
69

query I rowsort
SELECT ALL ( + 19 ) AS col0
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6735
SELECT DISTINCT CAST( 21 AS SIGNED ) col1, 65
----
21
65

skipif mysql # not compatible
query II rowsort label-6735
SELECT DISTINCT CAST ( 21 AS INTEGER ) col1, 65
----
21
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6736
SELECT DISTINCT + 56 - - COALESCE ( + 64, - 88 * 23 * 7 + - CAST( + - ( 23 ) AS SIGNED ) ) - + + 22 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-6736
SELECT DISTINCT + 56 - - COALESCE ( + 64, - 88 * 23 * 7 + - CAST ( + - ( 23 ) AS INTEGER ) ) - + + 22 AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT ALL 32 - + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-6737
SELECT ALL 32 - + COUNT ( * )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT - + ( + COUNT( * ) ) * + + COUNT( * ) * ( + 52 ) + - + 62 AS col0
----
-114

skipif mysql # not compatible
query I rowsort label-6738
SELECT - + ( + COUNT ( * ) ) * + + COUNT ( * ) * ( + 52 ) + - + 62 AS col0
----
-114

query II rowsort
SELECT - 5 * + 23, 92 AS col1
----
-115
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6740
SELECT + COUNT( ALL - 32 ) * - 15 * + - CAST( 62 AS SIGNED ) AS col2
----
930

skipif mysql # not compatible
query I rowsort label-6740
SELECT + COUNT ( ALL - 32 ) * - 15 * + - CAST ( 62 AS INTEGER ) AS col2
----
930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6741
SELECT - ( ( ( 1 ) ) ) + + + 14 * + + COALESCE ( - 5, - 50 + + CAST( + - COUNT( * ) AS SIGNED ) * NULLIF ( + 59, MAX( + 81 ) + + 11 ) * 69, + 40 ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-6741
SELECT - ( ( ( 1 ) ) ) + + + 14 * + + COALESCE ( - 5, - 50 + + CAST ( + - COUNT ( * ) AS INTEGER ) * NULLIF ( + 59, MAX ( + 81 ) + + 11 ) * 69, + 40 ) AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT - 32 + - + CASE COUNT( * ) WHEN + + COUNT( * ) THEN NULL ELSE + 17 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6742
SELECT - 32 + - + CASE COUNT ( * ) WHEN + + COUNT ( * ) THEN NULL ELSE + 17 END
----
NULL

query I rowsort
SELECT ALL 71 * - 25
----
-1775

onlyif mysql # aggregate syntax: 
query II rowsort label-6744
SELECT - + 23 * + - COUNT( * ) AS col2, 20 * - - COUNT( * ) + + 19 * + + 45 AS col0
----
23
875

skipif mysql # not compatible
query II rowsort label-6744
SELECT - + 23 * + - COUNT ( * ) AS col2, 20 * - - COUNT ( * ) + + 19 * + + 45 AS col0
----
23
875

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6745
SELECT DISTINCT - 1 * + 83, - 97 * - - 90 + - 25 - 43 + + 10 / + + CAST( NULL AS SIGNED ) / + COALESCE ( - COALESCE ( ( - 90 ), - 52 ), ( 31 ) / 67 ) * + 20 AS col0
----
-83
NULL

skipif mysql # not compatible
query II rowsort label-6745
SELECT DISTINCT - 1 * + 83, - 97 * - - 90 + - 25 - 43 + + 10 / + + CAST ( NULL AS INTEGER ) / + COALESCE ( - COALESCE ( ( - 90 ), - 52 ), ( 31 ) / 67 ) * + 20 AS col0
----
-83
NULL

query I rowsort
SELECT ALL - + 15 * 57 AS col0
----
-855

query II rowsort
SELECT + 77 * + 29 - 16, - 33 AS col1
----
2217
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-6748
SELECT + - ( + + 63 ) - 5 + 79 + 26 AS col0, - MAX( + 54 ) AS col0
----
37
-54

skipif mysql # not compatible
query II rowsort label-6748
SELECT + - ( + + 63 ) - 5 + 79 + 26 AS col0, - MAX ( + 54 ) AS col0
----
37
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-6749
SELECT ALL + 32 DIV - - 13 - - 32 + + + 68 DIV - + 36 + - 10 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-6749
SELECT ALL + 32 / - - 13 - - 32 + + + 68 / - + 36 + - 10 AS col1
----
23

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6751
SELECT + 4 DIV - 94 * - 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6751
SELECT + 4 / - 94 * - 87 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6752
SELECT + 43 * - NULLIF ( - 33, + + 83 - 55 / - SUM( 73 ) / + + CASE - + 92 WHEN - - 19 THEN 96 / - CAST( 78 AS SIGNED ) WHEN + COUNT( * ) THEN 81 ELSE NULL END + 1 ) * 56 + + 70 col2
----
79534

skipif mysql # not compatible
query I rowsort label-6752
SELECT + 43 * - NULLIF ( - 33, + + 83 - 55 / - SUM ( 73 ) / + + CASE - + 92 WHEN - - 19 THEN 96 / - CAST ( 78 AS INTEGER ) WHEN + COUNT ( * ) THEN 81 ELSE NULL END + 1 ) * 56 + + 70 col2
----
79534

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6755
SELECT + CASE + 29 WHEN - + 1 + + - 88 THEN - - ( 70 ) ELSE NULL END / - 89 * - 26 AS col2, + MAX( 5 ) + - 25 * - 3 * + 17 * NULLIF ( 2, - COUNT( - 63 ) * - 96 + - 60 )
----
NULL
2555

skipif mysql # not compatible
query II rowsort label-6755
SELECT + CASE + 29 WHEN - + 1 + + - 88 THEN - - ( 70 ) ELSE NULL END / - 89 * - 26 AS col2, + MAX ( 5 ) + - 25 * - 3 * + 17 * NULLIF ( 2, - COUNT ( - 63 ) * - 96 + - 60 )
----
NULL
2555

onlyif mysql # DIV for integer division: 
query I rowsort label-6756
SELECT DISTINCT 81 DIV 24 col2
----
3

skipif mysql # not compatible
query I rowsort label-6756
SELECT DISTINCT 81 / 24 col2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6757
SELECT ALL - COUNT( * ) DIV - - 27 + - ( - 42 )
----
42

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6758
SELECT ALL COUNT( * ) * + ( + COUNT( DISTINCT - 15 ) ) * 68
----
68

skipif mysql # not compatible
query I rowsort label-6758
SELECT ALL COUNT ( * ) * + ( + COUNT ( DISTINCT - 15 ) ) * 68
----
68

query I rowsort
SELECT DISTINCT 75 + + + 44
----
119

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6760
SELECT 24 + - 66 DIV + COUNT( * ) AS col1, + 94 AS col0
----
-42
94

skipif mysql # not compatible
query II rowsort label-6760
SELECT 24 + - 66 / + COUNT ( * ) AS col1, + 94 AS col0
----
-42
94

query I rowsort
SELECT ALL 10 + + 95 + - 62
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT 47 - + ( + 50 ) + + 33 * + COALESCE ( 19, + + 21 + 51, - + COUNT( * ) - - - 91 - + 95 * 5 * - 40 ) * 5 AS col2
----
3132

skipif mysql # not compatible
query I rowsort label-6762
SELECT 47 - + ( + 50 ) + + 33 * + COALESCE ( 19, + + 21 + 51, - + COUNT ( * ) - - - 91 - + 95 * 5 * - 40 ) * 5 AS col2
----
3132

onlyif mysql # aggregate syntax: 
query III rowsort label-6763
SELECT COUNT( * ) + + + 39 * 2, 71 + - 87 * 78 AS col2, 45 + + + 80 AS col2
----
79
-6715
125

skipif mysql # not compatible
query III rowsort label-6763
SELECT COUNT ( * ) + + + 39 * 2, 71 + - 87 * 78 AS col2, 45 + + + 80 AS col2
----
79
-6715
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6764
SELECT ALL - CASE + CAST( + 92 AS SIGNED ) WHEN + 83 + - 68 + + COUNT( - 70 ) THEN NULL WHEN 21 THEN CASE - 67 WHEN CAST( NULL AS SIGNED ) THEN + ( + 35 ) * 62 WHEN - 62 THEN NULLIF ( - COUNT( * ), AVG ( + 57 ) ) + - CASE COUNT( * ) WHEN - 57 * - 64 THEN 24 + + 25 WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE 80 END ELSE 68 END * 85 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6764
SELECT ALL - CASE + CAST ( + 92 AS INTEGER ) WHEN + 83 + - 68 + + COUNT ( - 70 ) THEN NULL WHEN 21 THEN CASE - 67 WHEN CAST ( NULL AS INTEGER ) THEN + ( + 35 ) * 62 WHEN - 62 THEN NULLIF ( - COUNT ( * ), AVG ( + 57 ) ) + - CASE COUNT ( * ) WHEN - 57 * - 64 THEN 24 + + 25 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE 80 END ELSE 68 END * 85 END
----
NULL

query I rowsort
SELECT ALL + 43 - - 17
----
60

query I rowsort
SELECT 46 + + ( + 2 )
----
48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6768
SELECT + MAX( DISTINCT ( - + 11 ) ) * ( + 35 ) AS col1
----
-385

skipif mysql # not compatible
query I rowsort label-6768
SELECT + MAX ( DISTINCT ( - + 11 ) ) * ( + 35 ) AS col1
----
-385

query I rowsort
SELECT 4 + - 2 - 5 - - 15 * - + 85 AS col0
----
-1278

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT ALL + - 68 * + - MIN( ALL - 93 ) AS col1
----
-6324

skipif mysql # not compatible
query I rowsort label-6770
SELECT ALL + - 68 * + - MIN ( ALL - 93 ) AS col1
----
-6324

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6771
SELECT COUNT( 44 ) DIV + 34
----
0

skipif mysql # not compatible
query I rowsort label-6771
SELECT COUNT ( 44 ) / + 34
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6772
SELECT 35 * - - COUNT( * ) * + - NULLIF ( + COUNT( * ), + 74 + - 28 + - + 19 + + 68 )
----
-35

skipif mysql # not compatible
query I rowsort label-6772
SELECT 35 * - - COUNT ( * ) * + - NULLIF ( + COUNT ( * ), + 74 + - 28 + - + 19 + + 68 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6773
SELECT DISTINCT + - COUNT( * ) * 1 * - NULLIF ( ( 21 ), + 70 ) * - COUNT( * ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-6773
SELECT DISTINCT + - COUNT ( * ) * 1 * - NULLIF ( ( 21 ), + 70 ) * - COUNT ( * ) AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT ALL + - MIN( DISTINCT 49 ) * 15 * + - 15 AS col1
----
11025

skipif mysql # not compatible
query I rowsort label-6774
SELECT ALL + - MIN ( DISTINCT 49 ) * 15 * + - 15 AS col1
----
11025

query I rowsort
SELECT ALL - 63 * - 86 + + 62
----
5480

onlyif mysql # DIV for integer division: 
query I rowsort label-6776
SELECT 14 DIV 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6776
SELECT 14 / 55 AS col1
----
0

query II rowsort
SELECT ALL 18 AS col2, - 82 AS col0
----
18
-82

query II rowsort
SELECT DISTINCT + 78 AS col1, + COALESCE ( + 64, + 4 ) * + 79 AS col1
----
78
5056

onlyif mysql # DIV for integer division: 
query I rowsort label-6779
SELECT DISTINCT + + 50 + 42 DIV - ( - 25 )
----
51

skipif mysql # not compatible
query I rowsort label-6779
SELECT DISTINCT + + 50 + 42 / - ( - 25 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6780
SELECT 84 * - - COUNT( 50 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-6780
SELECT 84 * - - COUNT ( 50 ) AS col1
----
84

query I rowsort
SELECT ALL + 47 + - 82
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6782
SELECT DISTINCT CASE - - ( 88 ) WHEN + + CASE COUNT( ALL 55 ) WHEN 43 THEN 12 WHEN + 73 * 13 + - 81 THEN + 30 + + 23 + 80 * - 44 END - - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) THEN NULL WHEN - CAST( 43 AS SIGNED ) THEN + 63 WHEN 48 * 45 - 95 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6782
SELECT DISTINCT CASE - - ( 88 ) WHEN + + CASE COUNT ( ALL 55 ) WHEN 43 THEN 12 WHEN + 73 * 13 + - 81 THEN + 30 + + 23 + 80 * - 44 END - - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) THEN NULL WHEN - CAST ( 43 AS INTEGER ) THEN + 63 WHEN 48 * 45 - 95 THEN NULL ELSE NULL END
----
NULL

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 74 + + + 93 AS col1
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-6788
SELECT - 34 DIV + - 13 + - 41
----
-39

skipif mysql # not compatible
query I rowsort label-6788
SELECT - 34 / + - 13 + - 41
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT - COUNT( * ) * - - 1 - + 47 + + 42 + COALESCE ( 28, + 69 + 25 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-6789
SELECT - COUNT ( * ) * - - 1 - + 47 + + 42 + COALESCE ( 28, + 69 + 25 ) AS col2
----
22

query I rowsort
SELECT ( - 62 ) * + 88
----
-5456

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT ALL - MAX( DISTINCT + 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-6791
SELECT ALL - MAX ( DISTINCT + 15 )
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6792
SELECT DISTINCT CAST( - 55 AS SIGNED ) / + CAST( NULL AS SIGNED ) * 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6792
SELECT DISTINCT CAST ( - 55 AS INTEGER ) / + CAST ( NULL AS INTEGER ) * 32 AS col0
----
NULL

query I rowsort
SELECT ALL 15 * + 86 AS col2
----
1290

onlyif mysql # DIV for integer division: 
query I rowsort label-6794
SELECT ALL ( - 41 ) DIV + 99
----
0

skipif mysql # not compatible
query I rowsort label-6794
SELECT ALL ( - 41 ) / + 99
----
0

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

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

query I rowsort
SELECT ALL - 84 * 92 AS col0
----
-7728

query I rowsort
SELECT 27 * - 91 AS col0
----
-2457

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6798
SELECT ( NULLIF ( - - 47, - - 38 + - - CASE COUNT( * ) WHEN + ( + 54 ) THEN + - CAST( NULL AS SIGNED ) WHEN 49 THEN NULL WHEN + 12 - - 3 + - ( + 2 ) / + COUNT( * ) THEN + 50 END + - AVG ( CAST( NULL AS SIGNED ) ) ) ) * + COUNT( * ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-6798
SELECT ( NULLIF ( - - 47, - - 38 + - - CASE COUNT ( * ) WHEN + ( + 54 ) THEN + - CAST ( NULL AS INTEGER ) WHEN 49 THEN NULL WHEN + 12 - - 3 + - ( + 2 ) / + COUNT ( * ) THEN + 50 END + - AVG ( CAST ( NULL AS INTEGER ) ) ) ) * + COUNT ( * ) AS col0
----
47

query I rowsort
SELECT 65 * + - 64 AS col0
----
-4160

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT 36 - + - COUNT( CASE - - 10 WHEN - 3 THEN 76 ELSE NULL END ) + - 41 - + - COUNT( * ) * 17 * 47 AS col0
----
794

skipif mysql # not compatible
query I rowsort label-6800
SELECT 36 - + - COUNT ( CASE - - 10 WHEN - 3 THEN 76 ELSE NULL END ) + - 41 - + - COUNT ( * ) * 17 * 47 AS col0
----
794

query I rowsort
SELECT - - 50 AS col2
----
50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT 98 * - 43 * - MIN( - 36 ) * - COUNT( * ) + - 94 + 12 + + - 57
----
151565

skipif mysql # not compatible
query I rowsort label-6803
SELECT 98 * - 43 * - MIN ( - 36 ) * - COUNT ( * ) + - 94 + 12 + + - 57
----
151565

onlyif mysql # aggregate syntax: 
query II rowsort label-6804
SELECT 75 - + 47 + + 54 + - COUNT( * ) AS col0, 21 * ( - - ( ( + - 90 ) ) ) * - MIN( DISTINCT - NULLIF ( - + 68, + 33 + - 8 ) ) AS col0
----
81
128520

skipif mysql # not compatible
query II rowsort label-6804
SELECT 75 - + 47 + + 54 + - COUNT ( * ) AS col0, 21 * ( - - ( ( + - 90 ) ) ) * - MIN ( DISTINCT - NULLIF ( - + 68, + 33 + - 8 ) ) AS col0
----
81
128520

onlyif mysql # aggregate syntax: 
query I rowsort label-6805
SELECT DISTINCT + 18 * + + 4 - + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-6805
SELECT DISTINCT + 18 * + + 4 - + COUNT ( * )
----
71

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT 47 + - + COUNT( * ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-6807
SELECT 47 + - + COUNT ( * ) AS col0
----
46

query I rowsort
SELECT ALL - 16 + + 52 + + + 69 * 44
----
3072

query I rowsort
SELECT - 53 * 93 AS col1
----
-4929

query I rowsort
SELECT ALL - 25 * + 87 AS col2
----
-2175

query I rowsort
SELECT ALL + 66 + + + 55 * 96
----
5346

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT ALL CASE + 92 WHEN 13 THEN + COUNT( * ) * - + 84 WHEN + 99 - - 96 + + 96 THEN + ( - + 67 ) * + 6 + - 5 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6812
SELECT ALL CASE + 92 WHEN 13 THEN + COUNT ( * ) * - + 84 WHEN + 99 - - 96 + + 96 THEN + ( - + 67 ) * + 6 + - 5 END AS col2
----
NULL

query I rowsort
SELECT + 81 + + 18
----
99

query I rowsort
SELECT - 99 * - - 74
----
-7326

query I rowsort
SELECT NULLIF ( + 77, ( + 39 ) ) AS col0
----
77

query I rowsort
SELECT - 51 + 65 + + 22
----
36

query I rowsort
SELECT NULLIF ( - 48, - 83 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT DISTINCT + 72 * ( - ( + 8 ) ) - MAX( - - 86 ) * - + 71 + 11 + 25
----
5566

skipif mysql # not compatible
query I rowsort label-6818
SELECT DISTINCT + 72 * ( - ( + 8 ) ) - MAX ( - - 86 ) * - + 71 + 11 + 25
----
5566

query I rowsort
SELECT ALL 56 * - - 80 AS col0
----
4480

query I rowsort
SELECT DISTINCT 74 * + 66 AS col1
----
4884

query I rowsort
SELECT ALL + 80 * - 15 * 77 AS col1
----
-92400

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6823
SELECT 80 * - - 17 * 27 + NULLIF ( + COUNT( * ), COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6823
SELECT 80 * - - 17 * 27 + NULLIF ( + COUNT ( * ), COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6824
SELECT COUNT( * ) * + 12 + + SUM( + + ( - 61 ) ) + - + 2 * - COALESCE ( + 8, + - 56 )
----
-33

skipif mysql # not compatible
query I rowsort label-6824
SELECT COUNT ( * ) * + 12 + + SUM ( + + ( - 61 ) ) + - + 2 * - COALESCE ( + 8, + - 56 )
----
-33

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

skipif mysql # not compatible
query I rowsort label-6825
SELECT - COUNT ( + + CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6826
SELECT ALL + 20 * + 22 * + - ( + 17 ) * + SUM( ALL + 92 ) + + + 11 - - COUNT( * ) + + 26 * + 30 * - + 98 / - 38 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6826
SELECT ALL + 20 * + 22 * + - ( + 17 ) * + SUM ( ALL + 92 ) + + + 11 - - COUNT ( * ) + + 26 * + 30 * - + 98 / - 38 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6827
SELECT DISTINCT + 85 * 58 * 77 + + - 28 + - 99 AS col2, COUNT( * ) AS col1
----
379483
1

skipif mysql # not compatible
query II rowsort label-6827
SELECT DISTINCT + 85 * 58 * 77 + + - 28 + - 99 AS col2, COUNT ( * ) AS col1
----
379483
1

query I rowsort
SELECT DISTINCT + 50 * + + 49 AS col2
----
2450

onlyif mysql # aggregate syntax: 
query II rowsort label-6829
SELECT ALL COUNT( 8 ) + + + 89 + - 58 + + COUNT( * ) * - + 73 AS col0, 39 * - 21 * + + 36
----
-41
-29484

skipif mysql # not compatible
query II rowsort label-6829
SELECT ALL COUNT ( 8 ) + + + 89 + - 58 + + COUNT ( * ) * - + 73 AS col0, 39 * - 21 * + + 36
----
-41
-29484

query I rowsort
SELECT ALL - 81 + + 44 AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT + - 11 + - + SUM( ALL + 30 )
----
-41

skipif mysql # not compatible
query I rowsort label-6831
SELECT + - 11 + - + SUM ( ALL + 30 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6832
SELECT DISTINCT 27 * + MAX( ALL 30 ) * 4 AS col1
----
3240

skipif mysql # not compatible
query I rowsort label-6832
SELECT DISTINCT 27 * + MAX ( ALL 30 ) * 4 AS col1
----
3240

query I rowsort
SELECT ALL - 31 + + + 55
----
24

query II rowsort
SELECT DISTINCT 93 col2, 21 AS col1
----
93
21

query I rowsort
SELECT DISTINCT 93 * + 40 AS col2
----
3720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6836
SELECT ALL - MAX( - 55 ) + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6836
SELECT ALL - MAX ( - 55 ) + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT DISTINCT - CASE - - 28 WHEN + 13 + + MAX( - 61 ) THEN NULL WHEN + - NULLIF ( 28, + + 92 ) * 38 * - 20 THEN - COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6837
SELECT DISTINCT - CASE - - 28 WHEN + 13 + + MAX ( - 61 ) THEN NULL WHEN + - NULLIF ( 28, + + 92 ) * 38 * - 20 THEN - COUNT ( * ) ELSE NULL END AS col0
----
NULL

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

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

query II rowsort
SELECT 3 AS col2, - 71 AS col0
----
3
-71

query II rowsort
SELECT 73 col0, + 20
----
73
20

query I rowsort
SELECT + 75 * + 97 AS col2
----
7275

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT + 93 + - + COUNT( * ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-6842
SELECT + 93 + - + COUNT ( * ) AS col2
----
92

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

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

query I rowsort
SELECT + 69 + 12 + - 28 AS col2
----
53

query I rowsort
SELECT - 45 * - NULLIF ( - - 65, - - 63 )
----
2925

query I rowsort
SELECT ALL 51 * - 74
----
-3774

query I rowsort
SELECT ALL + ( - 82 ) AS col0
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6848
SELECT - COUNT( * ) + + - 45 * + 7 + + CAST( + 30 AS SIGNED ) * - 73 - + - 84 + COALESCE ( ( 57 ), + 77, - + 72 + + MAX( ALL 38 ) ) + - - 6 * + - 34 AS col2
----
-2569

skipif mysql # not compatible
query I rowsort label-6848
SELECT - COUNT ( * ) + + - 45 * + 7 + + CAST ( + 30 AS INTEGER ) * - 73 - + - 84 + COALESCE ( ( 57 ), + 77, - + 72 + + MAX ( ALL 38 ) ) + - - 6 * + - 34 AS col2
----
-2569

query II rowsort
SELECT + 29, 81 AS col2
----
29
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6850
SELECT 84 * + ( - - 15 ) * - 13 - + 21 + 25 * - - COUNT( * ) * + - 31 * COUNT( * ) * + 80 * - 72 + + NULLIF ( + SUM( DISTINCT - - 43 ), - 22 DIV - + 68 - - 55 * COUNT( * ) ) + - COUNT( * ) DIV + MIN( 56 )
----
4447642

skipif mysql # not compatible
query I rowsort label-6850
SELECT 84 * + ( - - 15 ) * - 13 - + 21 + 25 * - - COUNT ( * ) * + - 31 * COUNT ( * ) * + 80 * - 72 + + NULLIF ( + SUM ( DISTINCT - - 43 ), - 22 / - + 68 - - 55 * COUNT ( * ) ) + - COUNT ( * ) / + MIN ( 56 )
----
4447642

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6852
SELECT + 88 DIV + 41 + + 18
----
20

skipif mysql # not compatible
query I rowsort label-6852
SELECT + 88 / + 41 + + 18
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6853
SELECT - MIN( DISTINCT - - 11 ) DIV - ( COALESCE ( 88, ( - 50 ) - + + 29 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6853
SELECT - MIN ( DISTINCT - - 11 ) / - ( COALESCE ( 88, ( - 50 ) - + + 29 ) ) AS col1
----
0

query I rowsort
SELECT - CASE + 94 WHEN + - 74 - 4 THEN 75 + 7 ELSE NULL END * - 13
----
NULL

query I rowsort
SELECT ALL - 49 * + 47
----
-2303

onlyif mysql # aggregate syntax: 
query II rowsort label-6856
SELECT ALL + NULLIF ( + + 96, + 96 - 47 ) AS col0, - NULLIF ( COUNT( * ), - + 3 / NULLIF ( + 89, 15 * 67 - + COUNT( * ) ) * + - ( + + 46 ) + + - 99 * + - 1 + - ( - CASE - 51 WHEN 39 THEN - 70 / COUNT( * ) + - 85 END ) ) AS col2
----
96
-1

skipif mysql # not compatible
query II rowsort label-6856
SELECT ALL + NULLIF ( + + 96, + 96 - 47 ) AS col0, - NULLIF ( COUNT ( * ), - + 3 / NULLIF ( + 89, 15 * 67 - + COUNT ( * ) ) * + - ( + + 46 ) + + - 99 * + - 1 + - ( - CASE - 51 WHEN 39 THEN - 70 / COUNT ( * ) + - 85 END ) ) AS col2
----
96
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6858
SELECT ALL - ( - MAX( 36 ) ) * - + CASE 20 WHEN - 51 + - 97 + - + COALESCE ( CASE + 78 WHEN 0 THEN NULL WHEN 26 * + - 85 + + 42 THEN + 0 + - 12 + COUNT( * ) / 88 * - CAST( NULL AS SIGNED ) ELSE NULL END, - 13 ) THEN NULL WHEN COUNT( * ) / + 3 THEN + 61 * 4 END * COUNT( * ) + 62 + + 9 * ( + COUNT( * ) * + 32 + + 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6858
SELECT ALL - ( - MAX ( 36 ) ) * - + CASE 20 WHEN - 51 + - 97 + - + COALESCE ( CASE + 78 WHEN 0 THEN NULL WHEN 26 * + - 85 + + 42 THEN + 0 + - 12 + COUNT ( * ) / 88 * - CAST ( NULL AS INTEGER ) ELSE NULL END, - 13 ) THEN NULL WHEN COUNT ( * ) / + 3 THEN + 61 * 4 END * COUNT ( * ) + 62 + + 9 * ( + COUNT ( * ) * + 32 + + 97 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT ALL - - COALESCE ( + 51, - + 15 * + - 51 + 19 ) * + + 43 + + - MIN( ALL - 87 )
----
2280

skipif mysql # not compatible
query I rowsort label-6860
SELECT ALL - - COALESCE ( + 51, - + 15 * + - 51 + 19 ) * + + 43 + + - MIN ( ALL - 87 )
----
2280

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

query I rowsort
SELECT + + 40 * - 54 AS col0
----
-2160

query I rowsort
SELECT - 71 - + 50
----
-121

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6864
SELECT - 99 DIV + - CAST( - 42 AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-6864
SELECT - 99 / + - CAST ( - 42 AS INTEGER )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT - + 63 * - - MAX( - + 57 ) AS col1
----
3591

skipif mysql # not compatible
query I rowsort label-6865
SELECT - + 63 * - - MAX ( - + 57 ) AS col1
----
3591

onlyif mysql # aggregate syntax: 
query II rowsort label-6866
SELECT - ( - 53 ), ( + + 83 ) * - - 25 + + SUM( ALL + 68 ) - - ( + + 70 ) + + - 85 AS col1
----
53
2128

skipif mysql # not compatible
query II rowsort label-6866
SELECT - ( - 53 ), ( + + 83 ) * - - 25 + + SUM ( ALL + 68 ) - - ( + + 70 ) + + - 85 AS col1
----
53
2128

onlyif mysql # aggregate syntax: 
query I rowsort label-6867
SELECT ALL - COUNT( * ) * + NULLIF ( + - 24, 30 * + 33 ) * + 73 + + 43 + + + 39 AS col2
----
1834

skipif mysql # not compatible
query I rowsort label-6867
SELECT ALL - COUNT ( * ) * + NULLIF ( + - 24, 30 * + 33 ) * + 73 + + 43 + + + 39 AS col2
----
1834

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6869
SELECT ALL - + 89 DIV + - 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6869
SELECT ALL - + 89 / + - 96 AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6870
SELECT + 78 + + - CASE 30 WHEN 94 * - 49 + - 29 * - CAST( NULL AS DECIMAL ) THEN - 86 END + - - 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6870
SELECT + 78 + + - CASE 30 WHEN 94 * - 49 + - 29 * - CAST ( NULL AS REAL ) THEN - 86 END + - - 53 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6871
SELECT - + 40 AS col0, COUNT( * ) * COALESCE ( - 14, + - CASE + + 15 WHEN - 60 - + - 48 * - 62 THEN NULL WHEN + 22 * + 26 * + 83 * + 66 THEN NULL WHEN 52 THEN + NULLIF ( - 8, ( + CAST( 13 AS SIGNED ) ) ) * - 38 ELSE NULL END * + 18 + 25 * 57, 66 * - 85 ) + COUNT( * ) AS col1
----
-40
-13

skipif mysql # not compatible
query II rowsort label-6871
SELECT - + 40 AS col0, COUNT ( * ) * COALESCE ( - 14, + - CASE + + 15 WHEN - 60 - + - 48 * - 62 THEN NULL WHEN + 22 * + 26 * + 83 * + 66 THEN NULL WHEN 52 THEN + NULLIF ( - 8, ( + CAST ( 13 AS INTEGER ) ) ) * - 38 ELSE NULL END * + 18 + 25 * 57, 66 * - 85 ) + COUNT ( * ) AS col1
----
-40
-13

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6872
SELECT COALESCE ( + COALESCE ( + 72, - - 97 ), + - CAST( NULL AS SIGNED ) ) DIV - ( - 30 ) + + 73
----
75

skipif mysql # not compatible
query I rowsort label-6872
SELECT COALESCE ( + COALESCE ( + 72, - - 97 ), + - CAST ( NULL AS INTEGER ) ) / - ( - 30 ) + + 73
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT ALL 46 * - - COUNT( * ) * + 55
----
2530

skipif mysql # not compatible
query I rowsort label-6873
SELECT ALL 46 * - - COUNT ( * ) * + 55
----
2530

query I rowsort
SELECT 50 * - 56 * 91 AS col1
----
-254800

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT COUNT( * ) + 83 + 42 * 53 + - - ( + 59 )
----
2369

skipif mysql # not compatible
query I rowsort label-6875
SELECT COUNT ( * ) + 83 + 42 * 53 + - - ( + 59 )
----
2369

query I rowsort
SELECT ALL 10 * - 54
----
-540

query I rowsort
SELECT 40 * 89 * - + 96
----
-341760

query I rowsort
SELECT ( ( + 57 ) ) + - 73
----
-16

query I rowsort
SELECT 30 * - - ( 26 ) AS col1
----
780

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6882
SELECT DISTINCT CAST( NULL AS SIGNED ) + 97 AS col2, 77 AS col0
----
NULL
77

skipif mysql # not compatible
query II rowsort label-6882
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 97 AS col2, 77 AS col0
----
NULL
77

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

query I rowsort
SELECT DISTINCT - 8 + - - 81 + + + 49 + 75 AS col2
----
197

query II rowsort
SELECT ALL + 25 + 65 AS col0, + 38 AS col1
----
90
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6886
SELECT + + 98 * + 19 * 15 - + ( - 18 ) * + ( - - COALESCE ( + 32, COUNT( * ) ) ) * CASE + 78 WHEN + 55 + + 3 + + 52 * + COUNT( * ) - + 14 THEN + 1 WHEN 23 + + 42 * + 29 THEN 92 * + CAST( NULL AS SIGNED ) + ( COUNT( * ) ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6886
SELECT + + 98 * + 19 * 15 - + ( - 18 ) * + ( - - COALESCE ( + 32, COUNT ( * ) ) ) * CASE + 78 WHEN + 55 + + 3 + + 52 * + COUNT ( * ) - + 14 THEN + 1 WHEN 23 + + 42 * + 29 THEN 92 * + CAST ( NULL AS INTEGER ) + ( COUNT ( * ) ) END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6887
SELECT + 46 * 90 * + - 37 + + 22 + - 1 * - 81 * - 51 + + + 2 - + 69 + - 51 * - + 26 + ( 18 ) + - COALESCE ( + + COUNT( * ), - 44 ) * + + 19 * + 93 + - 95
----
-157874

skipif mysql # not compatible
query I rowsort label-6887
SELECT + 46 * 90 * + - 37 + + 22 + - 1 * - 81 * - 51 + + + 2 - + 69 + - 51 * - + 26 + ( 18 ) + - COALESCE ( + + COUNT ( * ), - 44 ) * + + 19 * + 93 + - 95
----
-157874

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6888
SELECT ALL + - NULLIF ( - 76, - - ( - 54 ) * - - CAST( NULL AS SIGNED ) ) + - 78 + - 35 col1
----
-37

skipif mysql # not compatible
query I rowsort label-6888
SELECT ALL + - NULLIF ( - 76, - - ( - 54 ) * - - CAST ( NULL AS INTEGER ) ) + - 78 + - 35 col1
----
-37

query I rowsort
SELECT NULLIF ( + - 86, - 68 ) * - 9 AS col0
----
774

onlyif mysql # aggregate syntax: 
query I rowsort label-6890
SELECT 84 * - ( + MIN( ( + 21 ) ) ) * - 6 + 27 + - 55 AS col0
----
10556

skipif mysql # not compatible
query I rowsort label-6890
SELECT 84 * - ( + MIN ( ( + 21 ) ) ) * - 6 + 27 + - 55 AS col0
----
10556

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6891
SELECT 78 * + 40 * 12 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6891
SELECT 78 * + 40 * 12 - + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT - ( + 11 ), + 79 AS col2
----
-11
79

query I rowsort
SELECT ALL - 40 * - + 48
----
1920

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT + - NULLIF ( 77, COUNT( * ) - + + 16 )
----
-77

skipif mysql # not compatible
query I rowsort label-6894
SELECT + - NULLIF ( 77, COUNT ( * ) - + + 16 )
----
-77

query I rowsort
SELECT - - 68 * - 73 + COALESCE ( - 20, + - 29 * + 71 + 59 ) + 99 * + + 53 col2
----
263

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

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

query II rowsort
SELECT + ( 64 ) AS col0, ( + 45 ) + + 75 + 64 AS col2
----
64
184

onlyif mysql # aggregate syntax: 
query I rowsort label-6898
SELECT 22 + + + SUM( ALL + + 4 ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-6898
SELECT 22 + + + SUM ( ALL + + 4 ) AS col2
----
26

query I rowsort
SELECT - 72 * + 67 AS col0
----
-4824

query I rowsort
SELECT DISTINCT - 46 * 4
----
-184

onlyif mysql # aggregate syntax: 
query II rowsort label-6901
SELECT 14 + - 54, 88 + SUM( ALL - 18 ) AS col2
----
-40
70

skipif mysql # not compatible
query II rowsort label-6901
SELECT 14 + - 54, 88 + SUM ( ALL - 18 ) AS col2
----
-40
70

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

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

query I rowsort
SELECT 21 * - + 60
----
-1260

onlyif mysql # DIV for integer division: 
query I rowsort label-6904
SELECT DISTINCT ( + - 79 ) DIV 45 + + 79 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-6904
SELECT DISTINCT ( + - 79 ) / 45 + + 79 AS col1
----
78

query I rowsort
SELECT ALL 34 * 13
----
442

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6906
SELECT ALL 16, COUNT( * ) DIV - 57 AS col2
----
16
0

skipif mysql # not compatible
query II rowsort label-6906
SELECT ALL 16, COUNT ( * ) / - 57 AS col2
----
16
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6907
SELECT DISTINCT + COALESCE ( 63, - SUM( ALL ( 48 ) ) * - + 44 + 74 + MIN( DISTINCT - 71 ) ) DIV + 97
----
0

skipif mysql # not compatible
query I rowsort label-6907
SELECT DISTINCT + COALESCE ( 63, - SUM ( ALL ( 48 ) ) * - + 44 + 74 + MIN ( DISTINCT - 71 ) ) / + 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT ALL 56 + - SUM( ALL + 73 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-6908
SELECT ALL 56 + - SUM ( ALL + 73 ) AS col2
----
-17

query I rowsort
SELECT 46 + - 83
----
-37

query I rowsort
SELECT NULLIF ( + 18, 58 ) - 30 * + 93 AS col1
----
-2772

query II rowsort
SELECT DISTINCT 90, - COALESCE ( + 61, CASE + 6 WHEN - 4 THEN - 64 - + 28 WHEN 53 * - 37 * - - 90 THEN NULL END ) + - - 31 AS col0
----
90
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6912
SELECT ALL 10 * COUNT( * ) + - CAST( + - COALESCE ( - + 17, + + 9 + NULLIF ( 47, + COUNT( * ) + + 43 ) * - - 58 * - 0 ) AS SIGNED ) + + 53 * + 39 DIV - + COUNT( - - 41 ) * - - ( ( CAST( + COUNT( * ) AS SIGNED ) ) ) AS col1
----
-2074

skipif mysql # not compatible
query I rowsort label-6912
SELECT ALL 10 * COUNT ( * ) + - CAST ( + - COALESCE ( - + 17, + + 9 + NULLIF ( 47, + COUNT ( * ) + + 43 ) * - - 58 * - 0 ) AS INTEGER ) + + 53 * + 39 / - + COUNT ( - - 41 ) * - - ( ( CAST ( + COUNT ( * ) AS INTEGER ) ) ) AS col1
----
-2074

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

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

query I rowsort
SELECT ALL 16 * - + ( 72 ) + + 5 * - 14
----
-1222

query I rowsort
SELECT DISTINCT - CASE - 34 WHEN 81 THEN - + 29 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6916
SELECT MIN( DISTINCT - 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-6916
SELECT MIN ( DISTINCT - 57 )
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6917
SELECT + + CAST( NULL AS SIGNED ) * + 38 * - 24 + MIN( - - 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6917
SELECT + + CAST ( NULL AS INTEGER ) * + 38 * - 24 + MIN ( - - 61 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6918
SELECT + 98 AS col0, COUNT( * ) * 4
----
98
4

skipif mysql # not compatible
query II rowsort label-6918
SELECT + 98 AS col0, COUNT ( * ) * 4
----
98
4

query I rowsort
SELECT - 44 * + 48 * + ( + 15 ) AS col0
----
-31680

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT + + ( ( + COALESCE ( - COUNT( DISTINCT + ( - 37 ) ), - + 55 + + 57 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6920
SELECT + + ( ( + COALESCE ( - COUNT ( DISTINCT + ( - 37 ) ), - + 55 + + 57 ) ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6921
SELECT CAST( NULL AS SIGNED ) + - + 28 * + 0 * - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-6921
SELECT CAST ( NULL AS INTEGER ) + - + 28 * + 0 * - 43
----
NULL

query I rowsort
SELECT DISTINCT - ( 59 ) * + 97 col0
----
-5723

query II rowsort
SELECT - 83 col0, 17 AS col0
----
-83
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6924
SELECT DISTINCT 59 * - 8 + 12 + 89 / ( 77 ) - + 52 + + CASE + 58 WHEN + - MIN( ALL - 41 ) THEN 31 + COALESCE ( + 36, - - ( + MIN( + + 76 ) ) - 5 ) WHEN ( + COUNT( * ) ) * - 58 - + CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END + 9 * 83 * - 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6924
SELECT DISTINCT 59 * - 8 + 12 + 89 / ( 77 ) - + 52 + + CASE + 58 WHEN + - MIN ( ALL - 41 ) THEN 31 + COALESCE ( + 36, - - ( + MIN ( + + 76 ) ) - 5 ) WHEN ( + COUNT ( * ) ) * - 58 - + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END + 9 * 83 * - 82 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6925
SELECT DISTINCT + 35 * - + COUNT( 66 ) - + CASE - ( NULLIF ( - + 89, - NULLIF ( MIN( 78 ), COALESCE ( + 14, + 49, + 49 ) ) - + 47 ) ) WHEN + 37 - + + CAST( NULL AS DECIMAL ) + + - 7 * 62 THEN - 16 / + ( - 62 ) END + 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6925
SELECT DISTINCT + 35 * - + COUNT ( 66 ) - + CASE - ( NULLIF ( - + 89, - NULLIF ( MIN ( 78 ), COALESCE ( + 14, + 49, + 49 ) ) - + 47 ) ) WHEN + 37 - + + CAST ( NULL AS REAL ) + + - 7 * 62 THEN - 16 / + ( - 62 ) END + 55 AS col1
----
NULL

query I rowsort
SELECT + 47 * 20
----
940

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

query I rowsort
SELECT + + 11 - - - 19
----
-8

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6930
SELECT - 44 * + 54 + + - 60 AS col1, - 56 DIV + + 77
----
-2436
0

skipif mysql # not compatible
query II rowsort label-6930
SELECT - 44 * + 54 + + - 60 AS col1, - 56 / + + 77
----
-2436
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6931
SELECT + - ( 6 ) - + COUNT( * ) AS col0, 39
----
-7
39

skipif mysql # not compatible
query II rowsort label-6931
SELECT + - ( 6 ) - + COUNT ( * ) AS col0, 39
----
-7
39

onlyif mysql # DIV for integer division: 
query I rowsort label-6932
SELECT ALL + + 21 DIV + + 55 + + ( - NULLIF ( - 75, - 38 + + + 17 ) ) * + 40
----
3000

skipif mysql # not compatible
query I rowsort label-6932
SELECT ALL + + 21 / + + 55 + + ( - NULLIF ( - 75, - 38 + + + 17 ) ) * + 40
----
3000

query II rowsort
SELECT - 46 * 56, 55 AS col1
----
-2576
55

query II rowsort
SELECT + 10 * - 85, + 96 - + ( - + 15 ) AS col2
----
-850
111

onlyif mysql # aggregate syntax: 
query I rowsort label-6935
SELECT - COUNT( * ) * + 97 * 62 AS col0
----
-6014

skipif mysql # not compatible
query I rowsort label-6935
SELECT - COUNT ( * ) * + 97 * 62 AS col0
----
-6014

query I rowsort
SELECT DISTINCT + 52 + - + 48 * + 3 AS col2
----
-92

query I rowsort
SELECT ALL + 34 + - 36
----
-2

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6939
SELECT - COUNT( - 17 ) * COALESCE ( - + ( - + 33 ), - 87 - 2 ), 76 AS col0
----
-33
76

skipif mysql # not compatible
query II rowsort label-6939
SELECT - COUNT ( - 17 ) * COALESCE ( - + ( - + 33 ), - 87 - 2 ), 76 AS col0
----
-33
76

query I rowsort
SELECT DISTINCT + 7 + + 13 - + - 13 + + + ( COALESCE ( - - 20, - 12 ) ) * - 95
----
-1867

query I rowsort
SELECT ALL + 35 + + 50 * 60 * - 68 AS col1
----
-203965

onlyif mysql # aggregate syntax: 
query I rowsort label-6942
SELECT ALL COUNT( * ) + + 76 * - 73 * - 25 AS col2
----
138701

skipif mysql # not compatible
query I rowsort label-6942
SELECT ALL COUNT ( * ) + + 76 * - 73 * - 25 AS col2
----
138701

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

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

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

skipif mysql # not compatible
query I rowsort label-6944
SELECT + CAST ( 47 AS INTEGER ) + + + 25 AS col0
----
72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6946
SELECT ALL + 90 - 45 + + 60 + + 80 + + + 22 * - + 65 - - COUNT( * ) * + 98 AS col2
----
-1147

skipif mysql # not compatible
query I rowsort label-6946
SELECT ALL + 90 - 45 + + 60 + + 80 + + + 22 * - + 65 - - COUNT ( * ) * + 98 AS col2
----
-1147

onlyif mysql # DIV for integer division: 
query I rowsort label-6947
SELECT + NULLIF ( 58, 84 ) DIV + 39
----
1

skipif mysql # not compatible
query I rowsort label-6947
SELECT + NULLIF ( 58, 84 ) / + 39
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6948
SELECT ALL + COUNT( 40 ) * + 29 + MAX( - - 13 )
----
42

skipif mysql # not compatible
query I rowsort label-6948
SELECT ALL + COUNT ( 40 ) * + 29 + MAX ( - - 13 )
----
42

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

query I rowsort
SELECT ALL 7 * + - 50 - - 12 AS col0
----
-338

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6951
SELECT ALL 48 * ( + 84 ) - 53 DIV - CAST( + 53 AS SIGNED )
----
4033

skipif mysql # not compatible
query I rowsort label-6951
SELECT ALL 48 * ( + 84 ) - 53 / - CAST ( + 53 AS INTEGER )
----
4033

query II rowsort
SELECT NULLIF ( + ( - 86 ), - 11 ) AS col1, 11 + + - 48 + - + ( 61 )
----
-86
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6953
SELECT - CAST( - MIN( DISTINCT - 53 ) AS SIGNED ) col1
----
-53

skipif mysql # not compatible
query I rowsort label-6953
SELECT - CAST ( - MIN ( DISTINCT - 53 ) AS INTEGER ) col1
----
-53

query I rowsort
SELECT + - 57 * - 27
----
1539

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT - + COUNT( * ) * 76 + + 99
----
23

skipif mysql # not compatible
query I rowsort label-6955
SELECT - + COUNT ( * ) * 76 + + 99
----
23

query I rowsort
SELECT ALL - 96 * + 46 AS col2
----
-4416

onlyif mysql # DIV for integer division: 
query I rowsort label-6957
SELECT ALL 51 DIV - - NULLIF ( - 1, - 47 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-6957
SELECT ALL 51 / - - NULLIF ( - 1, - 47 ) AS col1
----
-51

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6959
SELECT ALL 7 * + 94 + + CAST( 36 AS SIGNED ) AS col1
----
694

skipif mysql # not compatible
query I rowsort label-6959
SELECT ALL 7 * + 94 + + CAST ( 36 AS INTEGER ) AS col1
----
694

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6960
SELECT + 3 + MAX( - + 27 ) DIV + ( - 85 )
----
3

skipif mysql # not compatible
query I rowsort label-6960
SELECT + 3 + MAX ( - + 27 ) / + ( - 85 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6961
SELECT ALL + 58 * CAST( - 49 AS SIGNED ) + - - 5 * + ( + COUNT( - COALESCE ( 41, 49 * ( + 88 ) * - + 93 + - 58 * - 44 ) ) ) AS col2
----
-2837

skipif mysql # not compatible
query I rowsort label-6961
SELECT ALL + 58 * CAST ( - 49 AS INTEGER ) + - - 5 * + ( + COUNT ( - COALESCE ( 41, 49 * ( + 88 ) * - + 93 + - 58 * - 44 ) ) ) AS col2
----
-2837

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT ALL + COALESCE ( - 13, - COUNT( * ), + + 84 ) * + - 27 + 12 + - 28
----
335

skipif mysql # not compatible
query I rowsort label-6963
SELECT ALL + COALESCE ( - 13, - COUNT ( * ), + + 84 ) * + - 27 + 12 + - 28
----
335

onlyif mysql # aggregate syntax: 
query I rowsort label-6964
SELECT SUM( - + 15 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-6964
SELECT SUM ( - + 15 ) AS col0
----
-15

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

skipif mysql # not compatible
query II rowsort label-6965
SELECT COUNT ( * ) col2, 47 AS col2
----
1
47

query I rowsort
SELECT + 63 * + + 61 * + - 38 col1
----
-146034

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

skipif mysql # not compatible
query I rowsort label-6967
SELECT ALL - 93 / COUNT ( * )
----
-93

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

skipif mysql # not compatible
query I rowsort label-6968
SELECT SUM ( + + 80 )
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6969
SELECT + 15 DIV SUM( - 23 ) AS col1, - MAX( + 96 ) AS col2
----
0
-96

skipif mysql # not compatible
query II rowsort label-6969
SELECT + 15 / SUM ( - 23 ) AS col1, - MAX ( + 96 ) AS col2
----
0
-96

query I rowsort
SELECT ALL 21 + 74
----
95

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

skipif mysql # not compatible
query I rowsort label-6971
SELECT DISTINCT COUNT ( ALL + - 75 ) AS col2
----
1

query I rowsort
SELECT ALL + 3 + 63
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT DISTINCT NULLIF ( - 56, + COUNT( * ) * 4 )
----
-56

skipif mysql # not compatible
query I rowsort label-6973
SELECT DISTINCT NULLIF ( - 56, + COUNT ( * ) * 4 )
----
-56

query II rowsort
SELECT 90, 18 + - + 24 - - - 79 * 66 * - 54 AS col1
----
90
281550

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6975
SELECT - COUNT( * ) + - - 37 DIV 60 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6975
SELECT - COUNT ( * ) + - - 37 / 60 AS col1
----
-1

query II rowsort
SELECT - 46 AS col2, ( 60 ) + - 56
----
-46
4

query I rowsort
SELECT - 22 + + 73 AS col2
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-6978
SELECT - 44 AS col1, + COUNT( * ) + + 84 AS col0
----
-44
85

skipif mysql # not compatible
query II rowsort label-6978
SELECT - 44 AS col1, + COUNT ( * ) + + 84 AS col0
----
-44
85

query I rowsort
SELECT ALL + - 68 - + ( + 7 )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT ALL - + NULLIF ( + + ( + COUNT( * ) ), + 62 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-6980
SELECT ALL - + NULLIF ( + + ( + COUNT ( * ) ), + 62 ) col2
----
-1

query II rowsort
SELECT DISTINCT - 10, 33 AS col2
----
-10
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6982
SELECT ALL - - MIN( 63 ) col0
----
63

skipif mysql # not compatible
query I rowsort label-6982
SELECT ALL - - MIN ( 63 ) col0
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6983
SELECT NULLIF ( 47, 70 * - 90 - - 95 ) DIV CASE WHEN NOT + CAST( - CAST( - + 83 AS SIGNED ) AS SIGNED ) BETWEEN 37 * MIN( + - 56 ) DIV 30 * - 46 + 59 + 65 - CAST( + 34 AS SIGNED ) * - 19 + 17 DIV 52 AND NULL THEN 92 * - 23 ELSE NULL END
----
0

skipif mysql # not compatible
query I rowsort label-6983
SELECT NULLIF ( 47, 70 * - 90 - - 95 ) / CASE WHEN NOT + CAST ( - CAST ( - + 83 AS INTEGER ) AS INTEGER ) BETWEEN 37 * MIN ( + - 56 ) / 30 * - 46 + 59 + 65 - CAST ( + 34 AS INTEGER ) * - 19 + 17 / 52 AND NULL THEN 92 * - 23 ELSE NULL END
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6984
SELECT 64 DIV - COALESCE ( - - 20, - + 55, - CAST( NULL AS SIGNED ) ) + 91
----
88

skipif mysql # not compatible
query I rowsort label-6984
SELECT 64 / - COALESCE ( - - 20, - + 55, - CAST ( NULL AS INTEGER ) ) + 91
----
88

query I rowsort
SELECT ALL 82 + - 9 AS col2
----
73

query I rowsort
SELECT ALL - + 88 * + 6
----
-528

query I rowsort
SELECT DISTINCT + 56 * + 86 * + + 18 + + - 11 + + 62 * - ( - + ( 81 ) ) * + + 57 AS col1
----
372931

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT 99 * - - CASE 97 WHEN - 65 THEN - 31 * 85 ELSE + CASE - - NULLIF ( - 62, MIN( ALL 34 ) ) WHEN COUNT( * ) THEN NULL WHEN NULLIF ( + 3, - + 45 - - + 87 + + 66 + - + 84 * 14 ) * + 29 * 77 + - 34 THEN 12 * 32 END END + + NULLIF ( COUNT( * ) + + 62 * AVG ( - 24 ), - 99 * 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6988
SELECT 99 * - - CASE 97 WHEN - 65 THEN - 31 * 85 ELSE + CASE - - NULLIF ( - 62, MIN ( ALL 34 ) ) WHEN COUNT ( * ) THEN NULL WHEN NULLIF ( + 3, - + 45 - - + 87 + + 66 + - + 84 * 14 ) * + 29 * 77 + - 34 THEN 12 * 32 END END + + NULLIF ( COUNT ( * ) + + 62 * AVG ( - 24 ), - 99 * 73 )
----
NULL

query I rowsort
SELECT DISTINCT + 6 + + - 89 + + ( - 65 ) * - 2
----
47

query I rowsort
SELECT 59 * + + 11
----
649

query III rowsort
SELECT 82 AS col0, 3, - 47 col2
----
82
3
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6992
SELECT COUNT( * ) - - 25 + 44
----
70

skipif mysql # not compatible
query I rowsort label-6992
SELECT COUNT ( * ) - - 25 + 44
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-6993
SELECT + 59 col0, + COUNT( * ) + - + 19 * + - COUNT( * ) * - - 48
----
59
913

skipif mysql # not compatible
query II rowsort label-6993
SELECT + 59 col0, + COUNT ( * ) + - + 19 * + - COUNT ( * ) * - - 48
----
59
913

query I rowsort
SELECT ALL 33 + + + 38 col0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6995
SELECT 49 - - COALESCE ( CAST( NULL AS SIGNED ), 27 * - 74 ) AS col0
----
-1949

skipif mysql # not compatible
query I rowsort label-6995
SELECT 49 - - COALESCE ( CAST ( NULL AS INTEGER ), 27 * - 74 ) AS col0
----
-1949

query I rowsort
SELECT ALL 27 + - + 96
----
-69

query I rowsort
SELECT DISTINCT 32 - + 69 AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6998
SELECT SUM( + 23 ) - - + MIN( + ( - + ( - 96 ) ) ) col1
----
119

skipif mysql # not compatible
query I rowsort label-6998
SELECT SUM ( + 23 ) - - + MIN ( + ( - + ( - 96 ) ) ) col1
----
119

query I rowsort
SELECT 64 * - + 6
----
-384

query I rowsort
SELECT 0 * + + 73 AS col2
----
0

query II rowsort
SELECT 81 col1, 59
----
81
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7002
SELECT DISTINCT + 14 / - + 25 + 35 * + - CAST( NULL AS SIGNED ) * + + COUNT( * ) / + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-7002
SELECT DISTINCT + 14 / - + 25 + 35 * + - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) / + 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7003
SELECT MAX( ALL ( + 96 ) ) * + + 50
----
4800

skipif mysql # not compatible
query I rowsort label-7003
SELECT MAX ( ALL ( + 96 ) ) * + + 50
----
4800

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7005
SELECT ALL 23, - 99 + COUNT( * ) AS col0
----
23
-98

skipif mysql # not compatible
query II rowsort label-7005
SELECT ALL 23, - 99 + COUNT ( * ) AS col0
----
23
-98

query II rowsort
SELECT - 34 AS col2, 80 + + 16 + 42 AS col1
----
-34
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7007
SELECT 53 * - MAX( CAST( + + 5 AS SIGNED ) ) AS col1
----
-265

skipif mysql # not compatible
query I rowsort label-7007
SELECT 53 * - MAX ( CAST ( + + 5 AS INTEGER ) ) AS col1
----
-265

query II rowsort
SELECT 96 * + 17 col0, ( - 57 )
----
1632
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7009
SELECT - 7 DIV + 98 + 35 + 20 + + - COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-7009
SELECT - 7 / + 98 + 35 + 20 + + - COUNT ( * )
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7010
SELECT 76 + 56 AS col2, CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - MIN( ALL + + ( ( 95 ) ) )
----
132
NULL

skipif mysql # not compatible
query II rowsort label-7010
SELECT 76 + 56 AS col2, CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - MIN ( ALL + + ( ( 95 ) ) )
----
132
NULL

query II rowsort
SELECT ALL - 18 + 14, - 12 * + 24 * 6 col2
----
-4
-1728

query I rowsort
SELECT DISTINCT 15 + - + 47 + 54
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT ALL - 69 + + 98 + + MIN( ALL - + 72 ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-7013
SELECT ALL - 69 + + 98 + + MIN ( ALL - + 72 ) AS col0
----
-43

query II rowsort
SELECT 71 AS col2, 63
----
71
63

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

skipif mysql # not compatible
query I rowsort label-7015
SELECT ALL + 88 + COUNT ( * ) AS col2
----
89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7016
SELECT ALL + CASE + ( - 37 ) WHEN 78 THEN - - CAST( + 80 AS DECIMAL ) WHEN + 81 THEN NULL ELSE NULL END + 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7016
SELECT ALL + CASE + ( - 37 ) WHEN 78 THEN - - CAST ( + 80 AS REAL ) WHEN + 81 THEN NULL ELSE NULL END + 8 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 93 * + + 59
----
5487

query I rowsort
SELECT 2 * 28 + - + 57 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT 49 + + 63 + + 56 + COUNT( * ) AS col1
----
169

skipif mysql # not compatible
query I rowsort label-7019
SELECT 49 + + 63 + + 56 + COUNT ( * ) AS col1
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-7020
SELECT ALL + COUNT( * ) + + 60 * + 6 AS col1
----
361

skipif mysql # not compatible
query I rowsort label-7020
SELECT ALL + COUNT ( * ) + + 60 * + 6 AS col1
----
361

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT DISTINCT + ( + 15 ) * - 31 - - + 12 * - 53 * CASE 73 WHEN - - MIN( ALL - + 72 ) + + + 64 THEN - + 22 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7021
SELECT DISTINCT + ( + 15 ) * - 31 - - + 12 * - 53 * CASE 73 WHEN - - MIN ( ALL - + 72 ) + + + 64 THEN - + 22 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7022
SELECT DISTINCT - 30 * COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-7022
SELECT DISTINCT - 30 * COUNT ( * )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT + 1 * + ( + 51 ) * - 24 + + - ( - + 25 ) * - - NULLIF ( COUNT( DISTINCT - + 26 ), 28 ) * + 8 - MIN( - - 93 ) AS col2
----
-1117

skipif mysql # not compatible
query I rowsort label-7023
SELECT + 1 * + ( + 51 ) * - 24 + + - ( - + 25 ) * - - NULLIF ( COUNT ( DISTINCT - + 26 ), 28 ) * + 8 - MIN ( - - 93 ) AS col2
----
-1117

onlyif mysql # aggregate syntax: 
query II rowsort label-7024
SELECT DISTINCT - ( + 39 ) AS col0, MIN( 13 )
----
-39
13

skipif mysql # not compatible
query II rowsort label-7024
SELECT DISTINCT - ( + 39 ) AS col0, MIN ( 13 )
----
-39
13

query I rowsort
SELECT 10 * - 49 AS col0
----
-490

query I rowsort
SELECT 80 + - - 62 + 57
----
199

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7027
SELECT DISTINCT 79 * - 25 AS col0, - COUNT( * ) DIV - 87 + 5 col2
----
-1975
5

skipif mysql # not compatible
query II rowsort label-7027
SELECT DISTINCT 79 * - 25 AS col0, - COUNT ( * ) / - 87 + 5 col2
----
-1975
5

onlyif mysql # aggregate syntax: 
query II rowsort label-7028
SELECT + NULLIF ( + + 9, + 40 * - 48 ) * + COUNT( * ) + + 2 + 91 * - 18 AS col0, COUNT( * ) col1
----
-1627
1

skipif mysql # not compatible
query II rowsort label-7028
SELECT + NULLIF ( + + 9, + 40 * - 48 ) * + COUNT ( * ) + + 2 + 91 * - 18 AS col0, COUNT ( * ) col1
----
-1627
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7029
SELECT DISTINCT COALESCE ( + - 32, + 15 * + 97, + 99 * + ( SUM( ALL - 19 ) ) - + 99, + 42 ) AS col1, 0 - + COUNT( * ) AS col0
----
-32
-1

skipif mysql # not compatible
query II rowsort label-7029
SELECT DISTINCT COALESCE ( + - 32, + 15 * + 97, + 99 * + ( SUM ( ALL - 19 ) ) - + 99, + 42 ) AS col1, 0 - + COUNT ( * ) AS col0
----
-32
-1

query I rowsort
SELECT ALL 14 * - 49 AS col0
----
-686

query I rowsort
SELECT + 54 + + + 51
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7032
SELECT + 67 * - 12 - + - CAST( - COUNT( * ) AS SIGNED )
----
-805

skipif mysql # not compatible
query I rowsort label-7032
SELECT + 67 * - 12 - + - CAST ( - COUNT ( * ) AS INTEGER )
----
-805

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7033
SELECT ALL - 33 + + - 91 + + ( CASE + COUNT( * ) WHEN + + 95 + COUNT( * ) + - 49 THEN 91 WHEN 16 + + 12 THEN + 68 WHEN - 84 * + COUNT( * ) - - COUNT( * ) / + CAST( NULL AS SIGNED ) * MIN( ALL 21 ) THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7033
SELECT ALL - 33 + + - 91 + + ( CASE + COUNT ( * ) WHEN + + 95 + COUNT ( * ) + - 49 THEN 91 WHEN 16 + + 12 THEN + 68 WHEN - 84 * + COUNT ( * ) - - COUNT ( * ) / + CAST ( NULL AS INTEGER ) * MIN ( ALL 21 ) THEN NULL END )
----
NULL

query I rowsort
SELECT + - 28 + + + 3 * - 92
----
-304

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7035
SELECT + + 53 DIV + + NULLIF ( - - 11, 7 ) + ( 44 ) * + CASE + 45 WHEN - 49 * - MIN( + - 24 ) + - 6 + - 25 THEN + ( 43 ) + COUNT( * ) + - COUNT( * ) ELSE + 58 END + - - 36 AS col1
----
2592

skipif mysql # not compatible
query I rowsort label-7035
SELECT + + 53 / + + NULLIF ( - - 11, 7 ) + ( 44 ) * + CASE + 45 WHEN - 49 * - MIN ( + - 24 ) + - 6 + - 25 THEN + ( 43 ) + COUNT ( * ) + - COUNT ( * ) ELSE + 58 END + - - 36 AS col1
----
2592

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT + COALESCE ( + 79, + 35, 87 * 50 - MAX( 58 ) + + + 38 * + ( - COALESCE ( 0, + 73 ) ) ) - - 2
----
81

skipif mysql # not compatible
query I rowsort label-7036
SELECT + COALESCE ( + 79, + 35, 87 * 50 - MAX ( 58 ) + + + 38 * + ( - COALESCE ( 0, + 73 ) ) ) - - 2
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7037
SELECT ALL - 73 + - 71 DIV 71 + - - 33
----
-41

skipif mysql # not compatible
query I rowsort label-7037
SELECT ALL - 73 + - 71 / 71 + - - 33
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7038
SELECT ALL ( + 93 ) + MIN( DISTINCT - 78 )
----
15

skipif mysql # not compatible
query I rowsort label-7038
SELECT ALL ( + 93 ) + MIN ( DISTINCT - 78 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT DISTINCT + 53 * + 83 + COUNT( * )
----
4400

skipif mysql # not compatible
query I rowsort label-7039
SELECT DISTINCT + 53 * + 83 + COUNT ( * )
----
4400

query I rowsort
SELECT ALL - 10 * 52 + + + 35 AS col0
----
-485

query I rowsort
SELECT ALL + - NULLIF ( - + ( - 7 ), - 9 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7042
SELECT MAX( 88 )
----
88

skipif mysql # not compatible
query I rowsort label-7042
SELECT MAX ( 88 )
----
88

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7044
SELECT COALESCE ( - + 76, - COUNT( * ) DIV - - 68 * + + 90 + + + CAST( + 2 AS SIGNED ) ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-7044
SELECT COALESCE ( - + 76, - COUNT ( * ) / - - 68 * + + 90 + + + CAST ( + 2 AS INTEGER ) ) AS col2
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7045
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + COALESCE ( + COUNT( * ), + 89 + - - COUNT( + 79 ) ) * - - 16 - - 94 * + - 6 - + 2 * 7 AS col1, - 38 + + - 90 AS col1
----
NULL
-128

skipif mysql # not compatible
query II rowsort label-7045
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + COALESCE ( + COUNT ( * ), + 89 + - - COUNT ( + 79 ) ) * - - 16 - - 94 * + - 6 - + 2 * 7 AS col1, - 38 + + - 90 AS col1
----
NULL
-128

query II rowsort
SELECT + 55 AS col2, 85 col0
----
55
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7047
SELECT ALL NULLIF ( 73, - COUNT( * ) + 13 ) * - 61 + - - 28 + + 30 DIV + 24 + + 39
----
-4385

skipif mysql # not compatible
query I rowsort label-7047
SELECT ALL NULLIF ( 73, - COUNT ( * ) + 13 ) * - 61 + - - 28 + + 30 / + 24 + + 39
----
-4385

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7048
SELECT NULLIF ( 71, - CAST( NULL AS SIGNED ) ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-7048
SELECT NULLIF ( 71, - CAST ( NULL AS INTEGER ) ) AS col2
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-7049
SELECT ALL + 4 AS col1, - MAX( DISTINCT + 95 )
----
4
-95

skipif mysql # not compatible
query II rowsort label-7049
SELECT ALL + 4 AS col1, - MAX ( DISTINCT + 95 )
----
4
-95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7050
SELECT - COUNT( * ) * + 25 + + MAX( DISTINCT ( + CAST( NULL AS DECIMAL ) ) ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7050
SELECT - COUNT ( * ) * + 25 + + MAX ( DISTINCT ( + CAST ( NULL AS REAL ) ) ) * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7051
SELECT COALESCE ( 25, + 40 * - COALESCE ( + 19, 54 ) + + 87 - + 58 + 62 * + 95 * - + MAX( DISTINCT - 67 ) * + 20 * - 27 DIV + 69 + - 62 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-7051
SELECT COALESCE ( 25, + 40 * - COALESCE ( + 19, 54 ) + + 87 - + 58 + 62 * + 95 * - + MAX ( DISTINCT - 67 ) * + 20 * - 27 / + 69 + - 62 ) AS col2
----
25

query I rowsort
SELECT - 38 * - 31
----
1178

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

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

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

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

query I rowsort
SELECT - 26 + - + 59 * CASE 30 WHEN - + ( - 29 ) THEN NULL ELSE 13 END * - - 55 AS col0
----
-42211

query II rowsort
SELECT DISTINCT NULLIF ( + 4, - - 84 * + 81 - 38 * 50 ) AS col1, + 13
----
4
13

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7058
SELECT - 20 DIV - 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7058
SELECT - 20 / - 76 AS col1
----
0

query I rowsort
SELECT ALL - 73 * 48 col0
----
-3504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7060
SELECT - CAST( + 43 AS SIGNED ) + + - 11 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-7060
SELECT - CAST ( + 43 AS INTEGER ) + + - 11 AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7061
SELECT + 29 - - 70 + + + NULLIF ( - NULLIF ( - 87, 19 ), 2 ) + + 29 * COUNT( * )
----
215

skipif mysql # not compatible
query I rowsort label-7061
SELECT + 29 - - 70 + + + NULLIF ( - NULLIF ( - 87, 19 ), 2 ) + + 29 * COUNT ( * )
----
215

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT - + CASE - 95 WHEN COUNT( * ) + 35 THEN - 89 WHEN - ( 6 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7062
SELECT - + CASE - 95 WHEN COUNT ( * ) + 35 THEN - 89 WHEN - ( 6 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7063
SELECT COUNT( - NULLIF ( - - 14, ( + 46 ) * 87 ) ) AS col1, 59 AS col0
----
1
59

skipif mysql # not compatible
query II rowsort label-7063
SELECT COUNT ( - NULLIF ( - - 14, ( + 46 ) * 87 ) ) AS col1, 59 AS col0
----
1
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7064
SELECT + 42 - - 26 + CAST( COUNT( * ) AS SIGNED ) * - 3
----
65

skipif mysql # not compatible
query I rowsort label-7064
SELECT + 42 - - 26 + CAST ( COUNT ( * ) AS INTEGER ) * - 3
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7065
SELECT + 36, + 26 / - CAST( NULL AS SIGNED ) col1
----
36
NULL

skipif mysql # not compatible
query II rowsort label-7065
SELECT + 36, + 26 / - CAST ( NULL AS INTEGER ) col1
----
36
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT - + MIN( ALL - 42 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-7066
SELECT - + MIN ( ALL - 42 ) AS col1
----
42

query I rowsort
SELECT ALL + 62 + 32
----
94

query I rowsort
SELECT ALL + 4 + 59 AS col2
----
63

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7069
SELECT - + CAST( 76 AS SIGNED ) + - - 0 DIV 89 AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-7069
SELECT - + CAST ( 76 AS INTEGER ) + - - 0 / 89 AS col0
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7070
SELECT DISTINCT + COUNT( * ) + - - NULLIF ( + 11, - 90 ) DIV + 6 + + ( - - 80 ) * + CAST( - 40 AS SIGNED ) - + 69 AS col0
----
-3267

skipif mysql # not compatible
query I rowsort label-7070
SELECT DISTINCT + COUNT ( * ) + - - NULLIF ( + 11, - 90 ) / + 6 + + ( - - 80 ) * + CAST ( - 40 AS INTEGER ) - + 69 AS col0
----
-3267

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7071
SELECT - - 24 + - 39 * - + 89 AS col1, CAST( NULL AS DECIMAL )
----
3495
NULL

skipif mysql # not compatible
query II rowsort label-7071
SELECT - - 24 + - 39 * - + 89 AS col1, CAST ( NULL AS REAL )
----
3495
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7072
SELECT ALL MAX( 84 ) + + + 42 AS col1
----
126

skipif mysql # not compatible
query I rowsort label-7072
SELECT ALL MAX ( 84 ) + + + 42 AS col1
----
126

query I rowsort
SELECT DISTINCT + 10 + - - 44
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7074
SELECT ALL CAST( NULL AS SIGNED ) * 31
----
NULL

skipif mysql # not compatible
query I rowsort label-7074
SELECT ALL CAST ( NULL AS INTEGER ) * 31
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7075
SELECT - + COUNT( * ) + - 26 * 75, 50 AS col1
----
-1951
50

skipif mysql # not compatible
query II rowsort label-7075
SELECT - + COUNT ( * ) + - 26 * 75, 50 AS col1
----
-1951
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7076
SELECT + - COALESCE ( 53, + - 82, - CAST( NULL AS SIGNED ) * - 62 ) DIV - COUNT( DISTINCT + 79 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-7076
SELECT + - COALESCE ( 53, + - 82, - CAST ( NULL AS INTEGER ) * - 62 ) / - COUNT ( DISTINCT + 79 ) AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7077
SELECT + 59 + COUNT( * ) + 50 + - + 9 + + + 8 * - 51 * - 2 + + CASE - 82 WHEN + 59 * + + MIN( ALL - 49 ) + + + 29 THEN + 2 + 78 END + 60 / 51
----
NULL

skipif mysql # not compatible
query I rowsort label-7077
SELECT + 59 + COUNT ( * ) + 50 + - + 9 + + + 8 * - 51 * - 2 + + CASE - 82 WHEN + 59 * + + MIN ( ALL - 49 ) + + + 29 THEN + 2 + 78 END + 60 / 51
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7078
SELECT - - 74 col2, - 83 - - 46 * - - COALESCE ( + 56, + - CAST( + COUNT( * ) AS SIGNED ) DIV - 46 - COUNT( * ) ) + - 70 * - - 17 * + - NULLIF ( - 91, + 79 * CAST( NULL AS SIGNED ) )
----
74
-105797

skipif mysql # not compatible
query II rowsort label-7078
SELECT - - 74 col2, - 83 - - 46 * - - COALESCE ( + 56, + - CAST ( + COUNT ( * ) AS INTEGER ) / - 46 - COUNT ( * ) ) + - 70 * - - 17 * + - NULLIF ( - 91, + 79 * CAST ( NULL AS INTEGER ) )
----
74
-105797

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7080
SELECT ALL + CASE - 44 WHEN - 40 THEN NULL WHEN - + 77 THEN NULL WHEN + NULLIF ( - 13, 10 DIV - + 36 ) THEN 26 DIV - - ( + COUNT( * ) ) ELSE - 35 * - - 55 END DIV - + COUNT( * ) * COUNT( * ) - + 80 col0
----
1845

skipif mysql # not compatible
query I rowsort label-7080
SELECT ALL + CASE - 44 WHEN - 40 THEN NULL WHEN - + 77 THEN NULL WHEN + NULLIF ( - 13, 10 / - + 36 ) THEN 26 / - - ( + COUNT ( * ) ) ELSE - 35 * - - 55 END / - + COUNT ( * ) * COUNT ( * ) - + 80 col0
----
1845

onlyif mysql # DIV for integer division: 
query I rowsort label-7081
SELECT ALL 11 DIV 66
----
0

skipif mysql # not compatible
query I rowsort label-7081
SELECT ALL 11 / 66
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7082
SELECT + 12 * + 21 + + MAX( ALL + 79 ) col0
----
331

skipif mysql # not compatible
query I rowsort label-7082
SELECT + 12 * + 21 + + MAX ( ALL + 79 ) col0
----
331

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7083
SELECT DISTINCT + 55 DIV + 17 - - ( + - COUNT( * ) ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7083
SELECT DISTINCT + 55 / + 17 - - ( + - COUNT ( * ) ) AS col2
----
2

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7085
SELECT CAST( + 26 AS SIGNED ) AS col1, - 76
----
26
-76

skipif mysql # not compatible
query II rowsort label-7085
SELECT CAST ( + 26 AS INTEGER ) AS col1, - 76
----
26
-76

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7086
SELECT CAST( + - 23 AS SIGNED ) DIV + 71 + + - 67
----
-67

skipif mysql # not compatible
query I rowsort label-7086
SELECT CAST ( + - 23 AS INTEGER ) / + 71 + + - 67
----
-67

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7089
SELECT 49 * + - 33 + + - 14 + + CAST( + 50 AS SIGNED ) - NULLIF ( 85, + 18 + - COUNT( * ) ) * 91 AS col2
----
-9316

skipif mysql # not compatible
query I rowsort label-7089
SELECT 49 * + - 33 + + - 14 + + CAST ( + 50 AS INTEGER ) - NULLIF ( 85, + 18 + - COUNT ( * ) ) * 91 AS col2
----
-9316

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT COUNT( DISTINCT 52 ) * + + 26 + 77 + - CASE + 72 WHEN + - COALESCE ( - 90, + COALESCE ( - COUNT( * ), - ( + + 32 ), + COALESCE ( - 47, + 28 ) ), 93 ) THEN NULL ELSE 13 END + - ( + 44 ) - 91 * + + 28 AS col0
----
-2502

skipif mysql # not compatible
query I rowsort label-7090
SELECT COUNT ( DISTINCT 52 ) * + + 26 + 77 + - CASE + 72 WHEN + - COALESCE ( - 90, + COALESCE ( - COUNT ( * ), - ( + + 32 ), + COALESCE ( - 47, + 28 ) ), 93 ) THEN NULL ELSE 13 END + - ( + 44 ) - 91 * + + 28 AS col0
----
-2502

query I rowsort
SELECT ALL 15 * + 14
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT ( MIN( DISTINCT 54 ) ) + - 22 + 70 * + 82 col2
----
5772

skipif mysql # not compatible
query I rowsort label-7092
SELECT ( MIN ( DISTINCT 54 ) ) + - 22 + 70 * + 82 col2
----
5772

query I rowsort
SELECT DISTINCT 50 * + - 2 col1
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT ALL 9 + + - MIN( ALL - 5 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-7094
SELECT ALL 9 + + - MIN ( ALL - 5 ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7095
SELECT DISTINCT 67 * + 91 * - COUNT( * ) AS col1
----
-6097

skipif mysql # not compatible
query I rowsort label-7095
SELECT DISTINCT 67 * + 91 * - COUNT ( * ) AS col1
----
-6097

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7096
SELECT 3 * + 52 / + - AVG ( ALL + - CAST( NULL AS SIGNED ) ) AS col1, - COUNT( - 39 ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-7096
SELECT 3 * + 52 / + - AVG ( ALL + - CAST ( NULL AS INTEGER ) ) AS col1, - COUNT ( - 39 ) AS col1
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7097
SELECT ALL + ( - - COUNT( * ) ) + - 87 + - 4 * - ( - COUNT( * ) ) * - 12 * COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-7097
SELECT ALL + ( - - COUNT ( * ) ) + - 87 + - 4 * - ( - COUNT ( * ) ) * - 12 * COUNT ( * )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7098
SELECT - CAST( + - COUNT( * ) AS SIGNED ) * - 45 + + + 34 + - COALESCE ( + + 39, + COUNT( * ) ) - - 73 + + - 27 * 65 + + MAX( + + 15 )
----
-1717

skipif mysql # not compatible
query I rowsort label-7098
SELECT - CAST ( + - COUNT ( * ) AS INTEGER ) * - 45 + + + 34 + - COALESCE ( + + 39, + COUNT ( * ) ) - - 73 + + - 27 * 65 + + MAX ( + + 15 )
----
-1717

query I rowsort
SELECT ALL - NULLIF ( + - 94, - - 34 - - 68 )
----
94

query I rowsort
SELECT 14 * - + 46 + - - 9
----
-635

onlyif mysql # aggregate syntax: 
query I rowsort label-7101
SELECT COUNT( * ) + + COALESCE ( - 34, + - 0 * - COUNT( * ) + - + 89 * - - 21 + - ( 34 ) * - 42 )
----
-33

skipif mysql # not compatible
query I rowsort label-7101
SELECT COUNT ( * ) + + COALESCE ( - 34, + - 0 * - COUNT ( * ) + - + 89 * - - 21 + - ( 34 ) * - 42 )
----
-33

query I rowsort
SELECT DISTINCT - 75 + 22 AS col0
----
-53

query I rowsort
SELECT DISTINCT 58 + - - 79 + ( + 68 )
----
205

query I rowsort
SELECT ALL - 42 * 13
----
-546

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT DISTINCT + 84 * + ( - COUNT( + 10 ) ) * + 78 * 40 AS col0
----
-262080

skipif mysql # not compatible
query I rowsort label-7105
SELECT DISTINCT + 84 * + ( - COUNT ( + 10 ) ) * + 78 * 40 AS col0
----
-262080

query I rowsort
SELECT - 7 * + + 25
----
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-7107
SELECT DISTINCT - - 79 * 81 - - 88 + 20 - + COALESCE ( COUNT( * ), - COUNT( * ), + 5 ) + - 67
----
6439

skipif mysql # not compatible
query I rowsort label-7107
SELECT DISTINCT - - 79 * 81 - - 88 + 20 - + COALESCE ( COUNT ( * ), - COUNT ( * ), + 5 ) + - 67
----
6439

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7108
SELECT ALL 60 + + + 86 * - + 37 * + CAST( NULL AS SIGNED ), - 39 + + 25 + MAX( DISTINCT 93 ) * CASE ( - 62 ) WHEN 60 * - 1 THEN + ( + - 89 ) * 52 + 17 WHEN - 72 THEN NULL END * 97 * COALESCE ( 50, + - 8 ) * + - 29
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7108
SELECT ALL 60 + + + 86 * - + 37 * + CAST ( NULL AS INTEGER ), - 39 + + 25 + MAX ( DISTINCT 93 ) * CASE ( - 62 ) WHEN 60 * - 1 THEN + ( + - 89 ) * 52 + 17 WHEN - 72 THEN NULL END * 97 * COALESCE ( 50, + - 8 ) * + - 29
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7109
SELECT + NULLIF ( - - 79, 87 ) * + + 14 * - COUNT( * ) AS col0
----
-1106

skipif mysql # not compatible
query I rowsort label-7109
SELECT + NULLIF ( - - 79, 87 ) * + + 14 * - COUNT ( * ) AS col0
----
-1106

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT CASE WHEN - CASE - ( + NULLIF ( - 37, + 2 * + 86 / + - 66 ) ) WHEN - + MAX( - ( - 18 ) ) THEN + 8 * - COUNT( * ) WHEN - 72 * + + COUNT( * ) + - 64 THEN NULL ELSE NULL END IN ( - - ( 66 ) + + + 13 + - + ( + COUNT( * ) ) ) THEN + MIN( + - 55 ) - 26 WHEN NOT NULL NOT BETWEEN ( NULL ) AND ( - COUNT( * ) + + 58 ) THEN MAX( DISTINCT + 47 ) ELSE 41 * CASE 67 / - 38 WHEN 36 THEN + 75 ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-7110
SELECT CASE WHEN - CASE - ( + NULLIF ( - 37, + 2 * + 86 / + - 66 ) ) WHEN - + MAX ( - ( - 18 ) ) THEN + 8 * - COUNT ( * ) WHEN - 72 * + + COUNT ( * ) + - 64 THEN NULL ELSE NULL END IN ( - - ( 66 ) + + + 13 + - + ( + COUNT ( * ) ) ) THEN + MIN ( + - 55 ) - 26 WHEN NOT NULL NOT BETWEEN ( NULL ) AND ( - COUNT ( * ) + + 58 ) THEN MAX ( DISTINCT + 47 ) ELSE 41 * CASE 67 / - 38 WHEN 36 THEN + 75 ELSE NULL END END
----
NULL

query I rowsort
SELECT 97 + - 18 + - - 10 * - 43 AS col1
----
-351

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT DISTINCT + - 66 - + - COUNT( + ( 51 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-7112
SELECT DISTINCT + - 66 - + - COUNT ( + ( 51 ) )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7113
SELECT 89 * - + MAX( DISTINCT NULLIF ( 74, + 73 ) )
----
-6586

skipif mysql # not compatible
query I rowsort label-7113
SELECT 89 * - + MAX ( DISTINCT NULLIF ( 74, + 73 ) )
----
-6586

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT - MAX( - 92 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-7114
SELECT - MAX ( - 92 ) AS col2
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7115
SELECT ALL COUNT( * ) * + 78 * NULLIF ( - 69, + AVG ( - 60 ) ) DIV 35
----
-153

skipif mysql # not compatible
query I rowsort label-7115
SELECT ALL COUNT ( * ) * + 78 * NULLIF ( - 69, + AVG ( - 60 ) ) / 35
----
-153

query I rowsort
SELECT ( + + ( - 89 ) ) + 42 AS col2
----
-47

query I rowsort
SELECT DISTINCT - 71 * + - 79
----
5609

query II rowsort
SELECT + 53, 0 * - 39 col0
----
53
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7119
SELECT ALL 69 * COUNT( * ) col2
----
69

skipif mysql # not compatible
query I rowsort label-7119
SELECT ALL 69 * COUNT ( * ) col2
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7120
SELECT ALL - 54 * - COALESCE ( + - CAST( + 48 AS SIGNED ), + 54 + + 66 ) AS col1
----
-2592

skipif mysql # not compatible
query I rowsort label-7120
SELECT ALL - 54 * - COALESCE ( + - CAST ( + 48 AS INTEGER ), + 54 + + 66 ) AS col1
----
-2592

query II rowsort
SELECT ALL - 58 AS col0, 85 AS col2
----
-58
85

query I rowsort
SELECT DISTINCT 56 + - 44 - 89
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-7123
SELECT DISTINCT - 35, - COUNT( * ) AS col2
----
-35
-1

skipif mysql # not compatible
query II rowsort label-7123
SELECT DISTINCT - 35, - COUNT ( * ) AS col2
----
-35
-1

query I rowsort
SELECT ALL 91 + + 27 - + - 88 * + + 4
----
470

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

skipif mysql # not compatible
query I rowsort label-7125
SELECT 9 * - COUNT ( * ) / - + 43 * - 14
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7126
SELECT ALL 3 DIV + COALESCE ( - + 71, + 65 * AVG ( DISTINCT 27 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7126
SELECT ALL 3 / + COALESCE ( - + 71, + 65 * AVG ( DISTINCT 27 ) ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7127
SELECT + 75 * + - 5 * 36 + 99 + CASE 41 WHEN - 8 / 90 THEN MAX( + 33 ) + - - 73 WHEN - 49 / - 20 * + MAX( + CAST( + 52 AS DECIMAL ) ) THEN 49 ELSE NULL END * - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-7127
SELECT + 75 * + - 5 * 36 + 99 + CASE 41 WHEN - 8 / 90 THEN MAX ( + 33 ) + - - 73 WHEN - 49 / - 20 * + MAX ( + CAST ( + 52 AS REAL ) ) THEN 49 ELSE NULL END * - 69
----
NULL

query I rowsort
SELECT 93 + - 73
----
20

query I rowsort
SELECT ALL 55 + 34
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7130
SELECT - 64 - - AVG ( DISTINCT + - 26 ) + - + ( + CASE - - CAST( NULL AS SIGNED ) WHEN - 11 * - + 30 * - 93 THEN - 81 + + 47 ELSE NULL END ) + - COUNT( * ) - - COUNT( * ) + - COUNT( * ) * + COUNT( * ) * + + 61 * CAST( NULL AS SIGNED ) + 90 * + 7 * - - 56 AS col1, 70 * + - 89 * - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7130
SELECT - 64 - - AVG ( DISTINCT + - 26 ) + - + ( + CASE - - CAST ( NULL AS INTEGER ) WHEN - 11 * - + 30 * - 93 THEN - 81 + + 47 ELSE NULL END ) + - COUNT ( * ) - - COUNT ( * ) + - COUNT ( * ) * + COUNT ( * ) * + + 61 * CAST ( NULL AS INTEGER ) + 90 * + 7 * - - 56 AS col1, 70 * + - 89 * - CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7131
SELECT ALL 47 + + + NULLIF ( 24, 80 + - + ( + 9 ) ) DIV - 88 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-7131
SELECT ALL 47 + + + NULLIF ( 24, 80 + - + ( + 9 ) ) / - 88 AS col1
----
47

query I rowsort
SELECT - 91 + + + 22
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7133
SELECT ALL 61 + + - MIN( ALL 17 ) col0
----
44

skipif mysql # not compatible
query I rowsort label-7133
SELECT ALL 61 + + - MIN ( ALL 17 ) col0
----
44

query I rowsort
SELECT 42 * - 4 - + 14 * - 15 AS col1
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7135
SELECT ALL - ( 73 ) * CAST( 24 AS SIGNED ) AS col1
----
-1752

skipif mysql # not compatible
query I rowsort label-7135
SELECT ALL - ( 73 ) * CAST ( 24 AS INTEGER ) AS col1
----
-1752

query I rowsort
SELECT ALL + - 6 - 43
----
-49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT NULLIF ( 30, - 83 ) * 17 + + COUNT( * ) + 87 + 28 AS col2
----
626

skipif mysql # not compatible
query I rowsort label-7138
SELECT NULLIF ( 30, - 83 ) * 17 + + COUNT ( * ) + 87 + 28 AS col2
----
626

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT COUNT( * ) - - 6 + - 35 + + 35 col2
----
7

skipif mysql # not compatible
query I rowsort label-7139
SELECT COUNT ( * ) - - 6 + - 35 + + 35 col2
----
7

query I rowsort
SELECT + ( - 25 ) + 62 + - 55 * - 5
----
312

query I rowsort
SELECT ALL + - 14 - + + 34
----
-48

query II rowsort
SELECT NULLIF ( + 65, - 51 ) * + 84 * + 67 AS col2, 4 * 27 AS col2
----
365820
108

onlyif mysql # aggregate syntax: 
query I rowsort label-7143
SELECT ALL - ( CASE - 11 WHEN 91 + + 73 / + - 75 / ( - 58 ) + 25 + + NULLIF ( 66, - + 38 * + ( + 93 ) - + ( + - 73 ) * + 4 ) * - + ( + - 69 ) THEN + 11 + COUNT( ( 87 ) ) END ) / + + NULLIF ( 98, - 75 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7143
SELECT ALL - ( CASE - 11 WHEN 91 + + 73 / + - 75 / ( - 58 ) + 25 + + NULLIF ( 66, - + 38 * + ( + 93 ) - + ( + - 73 ) * + 4 ) * - + ( + - 69 ) THEN + 11 + COUNT ( ( 87 ) ) END ) / + + NULLIF ( 98, - 75 ) AS col1
----
NULL

query I rowsort
SELECT ALL 77 - - 3 AS col1
----
80

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7146
SELECT ALL - CAST( NULL AS SIGNED ) * - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-7146
SELECT ALL - CAST ( NULL AS INTEGER ) * - 74
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7147
SELECT MIN( 56 ) * + + CASE + + 6 WHEN - + 26 THEN NULL WHEN 32 THEN 17 * + + CAST( NULL AS SIGNED ) WHEN - 29 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7147
SELECT MIN ( 56 ) * + + CASE + + 6 WHEN - + 26 THEN NULL WHEN 32 THEN 17 * + + CAST ( NULL AS INTEGER ) WHEN - 29 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + - 22 * + 24 AS col0
----
-528

query I rowsort
SELECT 49 + + - 27 * 80 AS col0
----
-2111

onlyif mysql # aggregate syntax: 
query II rowsort label-7150
SELECT ALL MAX( ALL + 9 ) AS col2, 93 AS col2
----
9
93

skipif mysql # not compatible
query II rowsort label-7150
SELECT ALL MAX ( ALL + 9 ) AS col2, 93 AS col2
----
9
93

query I rowsort
SELECT 3 * + 72 AS col2
----
216

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

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

query II rowsort
SELECT DISTINCT + 45 AS col0, 6 AS col1
----
45
6

query I rowsort
SELECT ALL 47 * + 92 + 14
----
4338

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7155
SELECT ALL 72 * + ( + - 32 ) + - + 28 AS col0, 45 * + CASE - ( 88 ) WHEN + CAST( - COALESCE ( + - AVG ( DISTINCT - 30 ), COUNT( * ) ) AS DECIMAL ) THEN + 63 END * - - 14 * + + 5 + + 98 col2
----
-2332
NULL

skipif mysql # not compatible
query II rowsort label-7155
SELECT ALL 72 * + ( + - 32 ) + - + 28 AS col0, 45 * + CASE - ( 88 ) WHEN + CAST ( - COALESCE ( + - AVG ( DISTINCT - 30 ), COUNT ( * ) ) AS REAL ) THEN + 63 END * - - 14 * + + 5 + + 98 col2
----
-2332
NULL

query I rowsort
SELECT ALL - 19 * + 66 + 36 * ( - 46 ) AS col0
----
-2910

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT NULLIF ( 47, - MIN( + 35 ) * - 73 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-7157
SELECT NULLIF ( 47, - MIN ( + 35 ) * - 73 ) AS col0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7158
SELECT - 67 DIV - 52 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7158
SELECT - 67 / - 52 AS col0
----
1

query I rowsort
SELECT + 73 + 9 AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT ALL + 42 * + - 57 + - COUNT( * ) * 95 * + 5 - - + 96 AS col0
----
-2773

skipif mysql # not compatible
query I rowsort label-7160
SELECT ALL + 42 * + - 57 + - COUNT ( * ) * 95 * + 5 - - + 96 AS col0
----
-2773

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7161
SELECT + 49 + + - NULLIF ( - - 66, - CASE - 22 WHEN + - 31 + + COUNT( DISTINCT 83 ) + + + COUNT( * ) * - 69 THEN NULL WHEN - 13 * 90 * - 1 * 5 + + - 76 / - - 60 THEN NULL ELSE 83 END + + + 34 ) - + + 34 + 18 * - - 44 AS col1, - CAST( NULL AS SIGNED ) AS col0
----
741
NULL

skipif mysql # not compatible
query II rowsort label-7161
SELECT + 49 + + - NULLIF ( - - 66, - CASE - 22 WHEN + - 31 + + COUNT ( DISTINCT 83 ) + + + COUNT ( * ) * - 69 THEN NULL WHEN - 13 * 90 * - 1 * 5 + + - 76 / - - 60 THEN NULL ELSE 83 END + + + 34 ) - + + 34 + 18 * - - 44 AS col1, - CAST ( NULL AS INTEGER ) AS col0
----
741
NULL

query I rowsort
SELECT ALL + 92 * + - 17 + + - 29 AS col2
----
-1593

onlyif mysql # aggregate syntax: 
query I rowsort label-7163
SELECT 23 * - 79 + - COALESCE ( 9, NULLIF ( + 47, - COUNT( ALL + + 7 ) ) ) - - MAX( + 55 ) AS col2
----
-1771

skipif mysql # not compatible
query I rowsort label-7163
SELECT 23 * - 79 + - COALESCE ( 9, NULLIF ( + 47, - COUNT ( ALL + + 7 ) ) ) - - MAX ( + 55 ) AS col2
----
-1771

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

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

query I rowsort
SELECT ALL - 87 * - + 18 * 66 + + 0 - + ( - 36 ) + + 23
----
103415

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7166
SELECT + 84 * + CAST( - COUNT( * ) AS SIGNED ) * + ( - 18 )
----
1512

skipif mysql # not compatible
query I rowsort label-7166
SELECT + 84 * + CAST ( - COUNT ( * ) AS INTEGER ) * + ( - 18 )
----
1512

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7168
SELECT COALESCE ( + + ( 5 ), + 3 * + 4 DIV + 6 ) * + ( - + 31 ) + - 93 AS col0
----
-248

skipif mysql # not compatible
query I rowsort label-7168
SELECT COALESCE ( + + ( 5 ), + 3 * + 4 / + 6 ) * + ( - + 31 ) + - 93 AS col0
----
-248

query II rowsort
SELECT 1 AS col2, + 16 * + + 81 AS col2
----
1
1296

onlyif mysql # aggregate syntax: 
query II rowsort label-7170
SELECT + 11 + + - 14 * + COUNT( * ) + + MIN( + + ( - 40 ) ) * - - 45, 15 AS col2
----
-1803
15

skipif mysql # not compatible
query II rowsort label-7170
SELECT + 11 + + - 14 * + COUNT ( * ) + + MIN ( + + ( - 40 ) ) * - - 45, 15 AS col2
----
-1803
15

onlyif mysql # DIV for integer division: 
query I rowsort label-7171
SELECT + 25 + + 52 DIV + 88
----
25

skipif mysql # not compatible
query I rowsort label-7171
SELECT + 25 + + 52 / + 88
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7172
SELECT + + 79 * - - COUNT( * ) * - ( - COALESCE ( + COUNT( ALL 66 ), 90 ) ) * - - 88 + 3 + - CAST( - + COUNT( ALL - 60 ) AS SIGNED ) + MAX( ALL 70 ) * + 31
----
9126

skipif mysql # not compatible
query I rowsort label-7172
SELECT + + 79 * - - COUNT ( * ) * - ( - COALESCE ( + COUNT ( ALL 66 ), 90 ) ) * - - 88 + 3 + - CAST ( - + COUNT ( ALL - 60 ) AS INTEGER ) + MAX ( ALL 70 ) * + 31
----
9126

query I rowsort
SELECT + - 93 + + 38 AS col0
----
-55

query II rowsort
SELECT - 62, - 53 AS col0
----
-62
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT ALL + COALESCE ( COUNT( * ), + + 75 ) * + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7175
SELECT ALL + COALESCE ( COUNT ( * ), + + 75 ) * + - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7176
SELECT ALL + MIN( + - 98 ), + NULLIF ( 56, + CAST( 55 AS SIGNED ) + - 67 ) AS col2
----
-98
56

skipif mysql # not compatible
query II rowsort label-7176
SELECT ALL + MIN ( + - 98 ), + NULLIF ( 56, + CAST ( 55 AS INTEGER ) + - 67 ) AS col2
----
-98
56

query I rowsort
SELECT DISTINCT + ( - 8 ) * 9 * + + 95 * 59
----
-403560

query II rowsort
SELECT - + 52, 74 AS col2
----
-52
74

query I rowsort
SELECT - 36 + + 65 * - 78 col0
----
-5106

onlyif mysql # DIV for integer division: 
query I rowsort label-7180
SELECT ALL - 26 DIV 10
----
-2

skipif mysql # not compatible
query I rowsort label-7180
SELECT ALL - 26 / 10
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7181
SELECT - ( - ( + CAST( - ( AVG ( - ( + 19 ) ) ) AS SIGNED ) ) )
----
19

skipif mysql # not compatible
query I rowsort label-7181
SELECT - ( - ( + CAST ( - ( AVG ( - ( + 19 ) ) ) AS INTEGER ) ) )
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7182
SELECT ALL + 17 + - 98 col2, 77 DIV + COUNT( * ) AS col0
----
-81
77

skipif mysql # not compatible
query II rowsort label-7182
SELECT ALL + 17 + - 98 col2, 77 / + COUNT ( * ) AS col0
----
-81
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT + COUNT( DISTINCT + 55 ) * + + 43
----
43

skipif mysql # not compatible
query I rowsort label-7183
SELECT + COUNT ( DISTINCT + 55 ) * + + 43
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7184
SELECT - 57 + + - 18 * - NULLIF ( + CAST( 81 AS SIGNED ), 75 * + + CAST( NULL AS SIGNED ) + - CASE - 41 WHEN + - 70 THEN + COALESCE ( + COUNT( * ), + 55 - + 82 + + - 68 * - - COUNT( * ) * - + 32 - 80, - COALESCE ( - - ( 60 ), 25 ) ) WHEN + + 49 THEN NULL END + - 80 ) * - + SUM( ALL 53 ) * - 30 * - COUNT( * ) col2
----
-2318277

skipif mysql # not compatible
query I rowsort label-7184
SELECT - 57 + + - 18 * - NULLIF ( + CAST ( 81 AS INTEGER ), 75 * + + CAST ( NULL AS INTEGER ) + - CASE - 41 WHEN + - 70 THEN + COALESCE ( + COUNT ( * ), + 55 - + 82 + + - 68 * - - COUNT ( * ) * - + 32 - 80, - COALESCE ( - - ( 60 ), 25 ) ) WHEN + + 49 THEN NULL END + - 80 ) * - + SUM ( ALL 53 ) * - 30 * - COUNT ( * ) col2
----
-2318277

onlyif mysql # DIV for integer division: 
query I rowsort label-7185
SELECT - ( - 97 ) DIV + + 35 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7185
SELECT - ( - 97 ) / + + 35 AS col2
----
2

query I rowsort
SELECT ALL + 82 + - NULLIF ( + 8, 37 / - - 74 + 17 * 27 / - 19 )
----
74

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7188
SELECT DISTINCT 27 * COUNT( * ) AS col1, - 12 + + ( + 54 )
----
27
42

skipif mysql # not compatible
query II rowsort label-7188
SELECT DISTINCT 27 * COUNT ( * ) AS col1, - 12 + + ( + 54 )
----
27
42

onlyif mysql # aggregate syntax: 
query II rowsort label-7189
SELECT DISTINCT + 0 + - - 68 AS col2, COUNT( + 93 ) col1
----
68
1

skipif mysql # not compatible
query II rowsort label-7189
SELECT DISTINCT + 0 + - - 68 AS col2, COUNT ( + 93 ) col1
----
68
1

query I rowsort
SELECT ALL - 28 * ( - 42 ) col0
----
1176

onlyif mysql # aggregate syntax: 
query II rowsort label-7191
SELECT - COUNT( DISTINCT - 72 ) * 6 + - + 87 * + ( + 0 ) + - 26 AS col1, COUNT( * )
----
-32
1

skipif mysql # not compatible
query II rowsort label-7191
SELECT - COUNT ( DISTINCT - 72 ) * 6 + - + 87 * + ( + 0 ) + - 26 AS col1, COUNT ( * )
----
-32
1

query II rowsort
SELECT ( - 0 ) AS col1, 91
----
0
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7193
SELECT ALL - 33 * CASE - 89 WHEN - - 51 * - - 5 * 9 + 64 THEN + - 88 / + CAST( - MIN( ALL + - 99 ) AS SIGNED ) + - 31 + - 87 * + 89 * + 12 + + NULLIF ( - ( 90 ), 81 - + + NULLIF ( ( 22 ), 35 * + 27 * 63 * 38 ) ) END - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-7193
SELECT ALL - 33 * CASE - 89 WHEN - - 51 * - - 5 * 9 + 64 THEN + - 88 / + CAST ( - MIN ( ALL + - 99 ) AS INTEGER ) + - 31 + - 87 * + 89 * + 12 + + NULLIF ( - ( 90 ), 81 - + + NULLIF ( ( 22 ), 35 * + 27 * 63 * 38 ) ) END - 36
----
NULL

query I rowsort
SELECT DISTINCT - 96 * + 41 + + 1 AS col0
----
-3935

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

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

query I rowsort
SELECT - - 63 * - 82 + - + 98 AS col0
----
-5264

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT 5 * - 18 + + MAX( ALL - 22 ) AS col1
----
-112

skipif mysql # not compatible
query I rowsort label-7197
SELECT 5 * - 18 + + MAX ( ALL - 22 ) AS col1
----
-112

onlyif mysql # aggregate syntax: 
query II rowsort label-7198
SELECT + + CASE - - 19 WHEN + 51 THEN + 75 + + COUNT( * ) WHEN + 20 THEN COUNT( * ) END AS col2, 70
----
NULL
70

skipif mysql # not compatible
query II rowsort label-7198
SELECT + + CASE - - 19 WHEN + 51 THEN + 75 + + COUNT ( * ) WHEN + 20 THEN COUNT ( * ) END AS col2, 70
----
NULL
70

query I rowsort
SELECT - - 14 + + + 95 col0
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT + - 8 * 8 + - 77 + + 47 * COUNT( * ) * + + 77
----
3478

skipif mysql # not compatible
query I rowsort label-7200
SELECT + - 8 * 8 + - 77 + + 47 * COUNT ( * ) * + + 77
----
3478

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT + + COUNT( * ) * - - 68 + 68
----
136

skipif mysql # not compatible
query I rowsort label-7202
SELECT + + COUNT ( * ) * - - 68 + 68
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT DISTINCT + MIN( + 40 ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-7203
SELECT DISTINCT + MIN ( + 40 ) AS col0
----
40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT DISTINCT - 20 / + CASE + + 90 WHEN - 84 / - - 32 THEN + COUNT( * ) + 64 * - 58 END + + 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7205
SELECT DISTINCT - 20 / + CASE + + 90 WHEN - 84 / - - 32 THEN + COUNT ( * ) + 64 * - 58 END + + 39 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7206
SELECT ALL 67 * + MIN( - CAST( + 7 AS SIGNED ) ) + + ( - 80 ) + - - 3 * - 43 col0
----
-678

skipif mysql # not compatible
query I rowsort label-7206
SELECT ALL 67 * + MIN ( - CAST ( + 7 AS INTEGER ) ) + + ( - 80 ) + - - 3 * - 43 col0
----
-678

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

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

query I rowsort
SELECT + 12 - + 67 * + 2
----
-122

onlyif mysql # DIV for integer division: 
query I rowsort label-7209
SELECT - + 87 DIV 79 * + ( 95 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-7209
SELECT - + 87 / 79 * + ( 95 ) AS col2
----
-95

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

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

query I rowsort
SELECT ALL + 26 + - 23 * 97
----
-2205

query I rowsort
SELECT DISTINCT 4 + - 96 AS col1
----
-92

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

skipif mysql # not compatible
query I rowsort label-7213
SELECT AVG ( DISTINCT 95 ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7214
SELECT MAX( ALL + 82 ) * + + 5 - 57 * - 17 * COUNT( * ) * - ( - 80 ) AS col1
----
77930

skipif mysql # not compatible
query I rowsort label-7214
SELECT MAX ( ALL + 82 ) * + + 5 - 57 * - 17 * COUNT ( * ) * - ( - 80 ) AS col1
----
77930

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7216
SELECT DISTINCT 51 * 64 * 27 DIV 37
----
2381

skipif mysql # not compatible
query I rowsort label-7216
SELECT DISTINCT 51 * 64 * 27 / 37
----
2381

onlyif mysql # aggregate syntax: 
query II rowsort label-7217
SELECT ALL 10 + COUNT( * ) + + SUM( DISTINCT - 16 ) + - + SUM( + 42 ) AS col1, + 54 AS col2
----
-47
54

skipif mysql # not compatible
query II rowsort label-7217
SELECT ALL 10 + COUNT ( * ) + + SUM ( DISTINCT - 16 ) + - + SUM ( + 42 ) AS col1, + 54 AS col2
----
-47
54

query I rowsort
SELECT ALL 86 * + NULLIF ( 29, 17 ) AS col2
----
2494

query I rowsort
SELECT DISTINCT 45 + - 55 AS col1
----
-10

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

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

query I rowsort
SELECT 83 + - + 57
----
26

query I rowsort
SELECT ALL 80 + + 39 + - - 43 * 46 + + 12 + + 45 AS col1
----
2154

query II rowsort
SELECT 7 AS col0, + 8 col2
----
7
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7224
SELECT CASE - 49 WHEN + - 1 * + + 50 - + - 34 + COUNT( * ) * + 15 * + + 16 THEN NULL WHEN - NULLIF ( + 39, + + 32 ) THEN - CASE - 85 WHEN - CAST( - NULLIF ( + 1, - 19 ) AS SIGNED ) + + 4 THEN + + 61 * 8 + + - 25 - - - 97 * - AVG ( 28 ) + 75 + + 22 / 53 + - 8 WHEN + ( - 91 ) * ( + 68 + + 45 * MAX( ALL - 41 ) ) THEN 51 ELSE + CAST( - 38 AS SIGNED ) END END + + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-7224
SELECT CASE - 49 WHEN + - 1 * + + 50 - + - 34 + COUNT ( * ) * + 15 * + + 16 THEN NULL WHEN - NULLIF ( + 39, + + 32 ) THEN - CASE - 85 WHEN - CAST ( - NULLIF ( + 1, - 19 ) AS INTEGER ) + + 4 THEN + + 61 * 8 + + - 25 - - - 97 * - AVG ( 28 ) + 75 + + 22 / 53 + - 8 WHEN + ( - 91 ) * ( + 68 + + 45 * MAX ( ALL - 41 ) ) THEN 51 ELSE + CAST ( - 38 AS INTEGER ) END END + + 47
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7225
SELECT DISTINCT CASE 7 WHEN + - 59 THEN - + CAST( + 78 AS SIGNED ) END / 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7225
SELECT DISTINCT CASE 7 WHEN + - 59 THEN - + CAST ( + 78 AS INTEGER ) END / 73 AS col2
----
NULL

query I rowsort
SELECT 9 + 64 * - 89 AS col1
----
-5687

query II rowsort
SELECT ALL 44 - + + 35 + + - 11, 94 AS col1
----
-2
94

query II rowsort
SELECT ALL - 47, 52 * + 97 - + 23 AS col2
----
-47
5021

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7229
SELECT ALL + 51 - + 36 + 29 * - CAST( - - CAST( + 56 AS SIGNED ) AS SIGNED )
----
-1609

skipif mysql # not compatible
query I rowsort label-7229
SELECT ALL + 51 - + 36 + 29 * - CAST ( - - CAST ( + 56 AS INTEGER ) AS INTEGER )
----
-1609

query II rowsort
SELECT 37 * + + 21 * + 17 AS col1, - 19 * + 65 AS col1
----
13209
-1235

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7231
SELECT - CAST( + 23 AS SIGNED ) DIV - 91 + + - 18
----
-18

skipif mysql # not compatible
query I rowsort label-7231
SELECT - CAST ( + 23 AS INTEGER ) / - 91 + + - 18
----
-18

query I rowsort
SELECT 41 + - - 6
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7233
SELECT ALL - COUNT( * ) * + ( 50 ) * 82
----
-4100

skipif mysql # not compatible
query I rowsort label-7233
SELECT ALL - COUNT ( * ) * + ( 50 ) * 82
----
-4100

query I rowsort
SELECT ALL 16 * + + 87
----
1392

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT DISTINCT - COALESCE ( 49, SUM( DISTINCT - - 76 ) * + + 87 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-7235
SELECT DISTINCT - COALESCE ( 49, SUM ( DISTINCT - - 76 ) * + + 87 ) AS col0
----
-49

query II rowsort
SELECT - 7 col2, 20
----
-7
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7237
SELECT ALL + 13 + + - 64 - - CAST( NULL AS SIGNED ) * - + 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7237
SELECT ALL + 13 + + - 64 - - CAST ( NULL AS INTEGER ) * - + 69 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7238
SELECT + + COUNT( * ) AS col2, 64 + - 80 + - + 26
----
1
-42

skipif mysql # not compatible
query II rowsort label-7238
SELECT + + COUNT ( * ) AS col2, 64 + - 80 + - + 26
----
1
-42

query I rowsort
SELECT ALL + 91 + 14 - - + 58 - 67 * + - 42
----
2977

onlyif mysql # aggregate syntax: 
query I rowsort label-7240
SELECT + COALESCE ( - + COUNT( * ), - 72 * + 83 + - 92 ) * + 99
----
-99

skipif mysql # not compatible
query I rowsort label-7240
SELECT + COALESCE ( - + COUNT ( * ), - 72 * + 83 + - 92 ) * + 99
----
-99

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7243
SELECT - ( - + 3 ) DIV - NULLIF ( - + 61, - ( - 78 ) + - 72 ) + + COUNT( * ) * - + 27
----
-27

skipif mysql # not compatible
query I rowsort label-7243
SELECT - ( - + 3 ) / - NULLIF ( - + 61, - ( - 78 ) + - 72 ) + + COUNT ( * ) * - + 27
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7244
SELECT ALL + 30 + - COALESCE ( + COUNT( * ), 69 DIV + 18, COUNT( * ) - COUNT( * ) ) + - 71 * + + 50, - 56 AS col0
----
-3521
-56

skipif mysql # not compatible
query II rowsort label-7244
SELECT ALL + 30 + - COALESCE ( + COUNT ( * ), 69 / + 18, COUNT ( * ) - COUNT ( * ) ) + - 71 * + + 50, - 56 AS col0
----
-3521
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT DISTINCT - - 85 + 43 + - + ( + - CASE - - 94 WHEN + - COALESCE ( + 18, - - 65 * - 30 + 24 * + - 8, - 14 ) * COUNT( * ) - 15 THEN - 23 WHEN + 6 + - 85 THEN NULL ELSE NULL END ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7245
SELECT DISTINCT - - 85 + 43 + - + ( + - CASE - - 94 WHEN + - COALESCE ( + 18, - - 65 * - 30 + 24 * + - 8, - 14 ) * COUNT ( * ) - 15 THEN - 23 WHEN + 6 + - 85 THEN NULL ELSE NULL END ) col1
----
NULL

query I rowsort
SELECT DISTINCT + 39 + - 35 * 10 - + + 39
----
-350

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT + ( COUNT( * ) ) * + - 55 + - 91 AS col1
----
-146

skipif mysql # not compatible
query I rowsort label-7247
SELECT + ( COUNT ( * ) ) * + - 55 + - 91 AS col1
----
-146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7248
SELECT DISTINCT COALESCE ( + - 87, + + 74 ) + ( - CAST( NULL AS SIGNED ) ) + 92 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7248
SELECT DISTINCT COALESCE ( + - 87, + + 74 ) + ( - CAST ( NULL AS INTEGER ) ) + 92 col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7249
SELECT ALL 92 DIV + 84 AS col0, - 85 AS col1
----
1
-85

skipif mysql # not compatible
query II rowsort label-7249
SELECT ALL 92 / + 84 AS col0, - 85 AS col1
----
1
-85

query I rowsort
SELECT 9 + - + COALESCE ( - 36, 21 * + ( - 16 ) * - 12 )
----
45

query I rowsort
SELECT DISTINCT - 82 + - 54 AS col0
----
-136

onlyif mysql # aggregate syntax: 
query II rowsort label-7252
SELECT ALL MIN( ALL - 44 ) AS col2, - 64
----
-44
-64

skipif mysql # not compatible
query II rowsort label-7252
SELECT ALL MIN ( ALL - 44 ) AS col2, - 64
----
-44
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-7253
SELECT ALL 39 DIV + 24
----
1

skipif mysql # not compatible
query I rowsort label-7253
SELECT ALL 39 / + 24
----
1

query I rowsort
SELECT 93 * + 2 AS col2
----
186

query I rowsort
SELECT 28 + - + 66 * 52 AS col2
----
-3404

query I rowsort
SELECT ALL 56 * - 26 AS col2
----
-1456

onlyif mysql # aggregate syntax: 
query I rowsort label-7257
SELECT COUNT( * ) * - 20 * + - 30 AS col2
----
600

skipif mysql # not compatible
query I rowsort label-7257
SELECT COUNT ( * ) * - 20 * + - 30 AS col2
----
600

query I rowsort
SELECT ALL + 19 - ( + - 77 ) + + 74 * 8
----
688

onlyif mysql # aggregate syntax: 
query I rowsort label-7259
SELECT DISTINCT MIN( ALL - + 95 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-7259
SELECT DISTINCT MIN ( ALL - + 95 ) AS col2
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7260
SELECT ( 73 ) * + + 24 DIV NULLIF ( - - COUNT( * ), ( + 5 ) ) + 37 * + + COUNT( * ) + + 75 * - ( - + 51 )
----
5614

skipif mysql # not compatible
query I rowsort label-7260
SELECT ( 73 ) * + + 24 / NULLIF ( - - COUNT ( * ), ( + 5 ) ) + 37 * + + COUNT ( * ) + + 75 * - ( - + 51 )
----
5614

query I rowsort
SELECT DISTINCT ( + 65 ) * - 5 AS col0
----
-325

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

query I rowsort
SELECT - 91 * ( - 93 )
----
8463

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT DISTINCT - 95 * - ( - - COUNT( * ) ) - + 47 + - - 23 - + + 22 + - 22 + 65 - + 97 * + MIN( 86 ) * - COUNT( * )
----
8434

skipif mysql # not compatible
query I rowsort label-7265
SELECT DISTINCT - 95 * - ( - - COUNT ( * ) ) - + 47 + - - 23 - + + 22 + - 22 + 65 - + 97 * + MIN ( 86 ) * - COUNT ( * )
----
8434

onlyif mysql # aggregate syntax: 
query I rowsort label-7266
SELECT + NULLIF ( - + 37, - + 4 + - COALESCE ( + - 74, + 98 - + COUNT( * ) / - 16 * 40 * + 22 ) - + 6 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-7266
SELECT + NULLIF ( - + 37, - + 4 + - COALESCE ( + - 74, + 98 - + COUNT ( * ) / - 16 * 40 * + 22 ) - + 6 ) AS col0
----
-37

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

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

query I rowsort
SELECT ALL 50 * + 64 + - 55
----
3145

query I rowsort
SELECT DISTINCT + 92 * - 0 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7270
SELECT 4 * + + 62 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7270
SELECT 4 * + + 62 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT DISTINCT + NULLIF ( + 15, - 69 + 16 + + - 61 ) * - - COUNT( * ) * 95 + - 74 * - 6 * + 54
----
25401

skipif mysql # not compatible
query I rowsort label-7271
SELECT DISTINCT + NULLIF ( + 15, - 69 + 16 + + - 61 ) * - - COUNT ( * ) * 95 + - 74 * - 6 * + 54
----
25401

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT DISTINCT - + CASE + 64 WHEN 39 THEN 1 WHEN + COUNT( * ) * ( CASE 38 WHEN + - SUM( ALL + + 56 ) + + 4 * ( - + 67 ) THEN NULL WHEN - 64 * + 78 * + + ( + - 69 ) THEN + COUNT( * ) * + + ( - - 30 ) END ) * 70 THEN NULL END + + 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7272
SELECT DISTINCT - + CASE + 64 WHEN 39 THEN 1 WHEN + COUNT ( * ) * ( CASE 38 WHEN + - SUM ( ALL + + 56 ) + + 4 * ( - + 67 ) THEN NULL WHEN - 64 * + 78 * + + ( + - 69 ) THEN + COUNT ( * ) * + + ( - - 30 ) END ) * 70 THEN NULL END + + 97 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7273
SELECT ALL - COUNT( * ) + + 37 AS col1, - 53 AS col2
----
36
-53

skipif mysql # not compatible
query II rowsort label-7273
SELECT ALL - COUNT ( * ) + + 37 AS col1, - 53 AS col2
----
36
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7274
SELECT - MAX( DISTINCT + 22 ) + - MIN( - - 66 )
----
-88

skipif mysql # not compatible
query I rowsort label-7274
SELECT - MAX ( DISTINCT + 22 ) + - MIN ( - - 66 )
----
-88

query I rowsort
SELECT + COALESCE ( - 9, - ( + - 27 ), - 12, + + 86 ) AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7276
SELECT DISTINCT + 18 + 25 + + MIN( - 67 ) * 27 AS col2
----
-1766

skipif mysql # not compatible
query I rowsort label-7276
SELECT DISTINCT + 18 + 25 + + MIN ( - 67 ) * 27 AS col2
----
-1766

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

skipif mysql # not compatible
query I rowsort label-7277
SELECT DISTINCT MAX ( 68 )
----
68

query I rowsort
SELECT - 57 + 80 AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7279
SELECT ALL - AVG ( 85 ) * 5 * CASE - - 97 WHEN - COUNT( - ( - - 58 ) ) THEN NULL WHEN - ( + 24 ) * - 16 * 0 * 98 + AVG ( + + 33 ) * + 12 * 23 THEN - 62 - - + CASE - + COUNT( * ) WHEN 66 * - + 7 - + - 40 - - 52 THEN - 9 ELSE + - ( + 1 ) END END
----
NULL

skipif mysql # not compatible
query I rowsort label-7279
SELECT ALL - AVG ( 85 ) * 5 * CASE - - 97 WHEN - COUNT ( - ( - - 58 ) ) THEN NULL WHEN - ( + 24 ) * - 16 * 0 * 98 + AVG ( + + 33 ) * + 12 * 23 THEN - 62 - - + CASE - + COUNT ( * ) WHEN 66 * - + 7 - + - 40 - - 52 THEN - 9 ELSE + - ( + 1 ) END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7280
SELECT DISTINCT MIN( 1 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7280
SELECT DISTINCT MIN ( 1 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7281
SELECT - 33 + 23 * - - 90 - 85 + + + 55 + - + 7 DIV ( - - 85 ) AS col2
----
2007

skipif mysql # not compatible
query I rowsort label-7281
SELECT - 33 + 23 * - - 90 - 85 + + + 55 + - + 7 / ( - - 85 ) AS col2
----
2007

onlyif mysql # aggregate syntax: 
query II rowsort label-7282
SELECT - 57 AS col0, COUNT( * ) - + COUNT( * ) AS col0
----
-57
0

skipif mysql # not compatible
query II rowsort label-7282
SELECT - 57 AS col0, COUNT ( * ) - + COUNT ( * ) AS col0
----
-57
0

query I rowsort
SELECT - 21 * 26 AS col0
----
-546

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

query I rowsort
SELECT - 97 + + - 6 + 27
----
-76

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

skipif mysql # not compatible
query I rowsort label-7286
SELECT ALL MIN ( 43 )
----
43

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

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

query I rowsort
SELECT ALL COALESCE ( - 76, - - 17 + + ( 51 ), 0 ) col1
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7289
SELECT ALL 3 DIV ( - MAX( 41 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7289
SELECT ALL 3 / ( - MAX ( 41 ) ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7290
SELECT DISTINCT COALESCE ( - + COALESCE ( - - 94, + 66 * - 99 * 67 + + 35 ), - 5 + CAST( + COUNT( * ) AS SIGNED ) * + 87 - + + 22 )
----
-94

skipif mysql # not compatible
query I rowsort label-7290
SELECT DISTINCT COALESCE ( - + COALESCE ( - - 94, + 66 * - 99 * 67 + + 35 ), - 5 + CAST ( + COUNT ( * ) AS INTEGER ) * + 87 - + + 22 )
----
-94

query I rowsort
SELECT - 79 + + 61 + - 74 AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7292
SELECT + MAX( ( + 64 ) ) - + COUNT( 32 )
----
63

skipif mysql # not compatible
query I rowsort label-7292
SELECT + MAX ( ( + 64 ) ) - + COUNT ( 32 )
----
63

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

query I rowsort
SELECT - 55 + + 81
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-7295
SELECT ALL 91 AS col1, 31 * - COALESCE ( + 34, - ( + - COUNT( DISTINCT + 79 ) ) + 89 )
----
91
-1054

skipif mysql # not compatible
query II rowsort label-7295
SELECT ALL 91 AS col1, 31 * - COALESCE ( + 34, - ( + - COUNT ( DISTINCT + 79 ) ) + 89 )
----
91
-1054

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

skipif mysql # not compatible
query I rowsort label-7296
SELECT - COUNT ( * ) + - 35 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-7297
SELECT 75 AS col2, COUNT( * ) - + 9 + - 37 * + 87 AS col1
----
75
-3227

skipif mysql # not compatible
query II rowsort label-7297
SELECT 75 AS col2, COUNT ( * ) - + 9 + - 37 * + 87 AS col1
----
75
-3227

query I rowsort
SELECT - - 26 + 11
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7299
SELECT ALL + MIN( 36 ) * + + 80 * ( - CASE 4 WHEN - COALESCE ( - 31, - - 99 ) + COUNT( * ) + + ( 42 ) / + COUNT( * ) + - ( 78 ) - ( + + CAST( - + NULLIF ( - 9, + 99 ) AS SIGNED ) ) THEN - 31 END ) / 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7299
SELECT ALL + MIN ( 36 ) * + + 80 * ( - CASE 4 WHEN - COALESCE ( - 31, - - 99 ) + COUNT ( * ) + + ( 42 ) / + COUNT ( * ) + - ( 78 ) - ( + + CAST ( - + NULLIF ( - 9, + 99 ) AS INTEGER ) ) THEN - 31 END ) / 94 AS col1
----
NULL

query I rowsort
SELECT - 32 * - - 11 + - 37 + - + COALESCE ( - 35, - 37 ) AS col1
----
-354

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7301
SELECT + + 83 * - CASE - 71 WHEN + - NULLIF ( + 17, 29 - + ( - 51 ) * + COUNT( * ) + NULLIF ( + CAST( NULLIF ( COUNT( * ), + 77 * 22 / + 6 + - 75 * - 90 ) AS SIGNED ), 28 ) ) THEN + CAST( NULL AS SIGNED ) ELSE NULL END / - 33 * - - 80 + + - 27, NULLIF ( 60, - 10 ) AS col0
----
NULL
60

skipif mysql # not compatible
query II rowsort label-7301
SELECT + + 83 * - CASE - 71 WHEN + - NULLIF ( + 17, 29 - + ( - 51 ) * + COUNT ( * ) + NULLIF ( + CAST ( NULLIF ( COUNT ( * ), + 77 * 22 / + 6 + - 75 * - 90 ) AS INTEGER ), 28 ) ) THEN + CAST ( NULL AS INTEGER ) ELSE NULL END / - 33 * - - 80 + + - 27, NULLIF ( 60, - 10 ) AS col0
----
NULL
60

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

query II rowsort
SELECT - 95 * - 29 * 81 AS col1, + 59
----
223155
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7304
SELECT 85 DIV SUM( - 24 ) + + 19 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-7304
SELECT 85 / SUM ( - 24 ) + + 19 AS col1
----
16

query I rowsort
SELECT ALL 34 * - 85 col1
----
-2890

onlyif mysql # aggregate syntax: 
query II rowsort label-7306
SELECT ALL + + COUNT( * ), 16 + + 67 AS col2
----
1
83

skipif mysql # not compatible
query II rowsort label-7306
SELECT ALL + + COUNT ( * ), 16 + + 67 AS col2
----
1
83

onlyif mysql # aggregate syntax: 
query II rowsort label-7307
SELECT + 92 AS col0, SUM( - 0 ) * - COUNT( * ) + - + 3
----
92
-3

skipif mysql # not compatible
query II rowsort label-7307
SELECT + 92 AS col0, SUM ( - 0 ) * - COUNT ( * ) + - + 3
----
92
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT + NULLIF ( + SUM( + 21 ), + - COUNT( * ) ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-7308
SELECT + NULLIF ( + SUM ( + 21 ), + - COUNT ( * ) ) AS col0
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7309
SELECT ALL + 4 * + 55 * CASE - - COUNT( + 30 ) WHEN 88 THEN 79 END * + 44 * AVG ( - CAST( NULL AS SIGNED ) ) + + 92 * + + 27 * - MAX( DISTINCT - ( + + 93 ) ) + + + 14 + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-7309
SELECT ALL + 4 * + 55 * CASE - - COUNT ( + 30 ) WHEN 88 THEN 79 END * + 44 * AVG ( - CAST ( NULL AS INTEGER ) ) + + 92 * + + 27 * - MAX ( DISTINCT - ( + + 93 ) ) + + + 14 + 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT + - 25 * ( 86 ) + COUNT( * ) AS col1
----
-2149

skipif mysql # not compatible
query I rowsort label-7310
SELECT + - 25 * ( 86 ) + COUNT ( * ) AS col1
----
-2149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7311
SELECT ALL + - COALESCE ( - 86, - 74 + + + 8 DIV 91, + + 81 * + 90 + + 93 + + SUM( - 16 ) - + ( - + 4 ) * 74 )
----
86

skipif mysql # not compatible
query I rowsort label-7311
SELECT ALL + - COALESCE ( - 86, - 74 + + + 8 / 91, + + 81 * + 90 + + 93 + + SUM ( - 16 ) - + ( - + 4 ) * 74 )
----
86

query II rowsort
SELECT DISTINCT + 11, - 91 * 26 * - + 61 AS col1
----
11
144326

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7313
SELECT + - ( 11 ) DIV + SUM( DISTINCT + 84 ) * + 30 - 27
----
-27

skipif mysql # not compatible
query I rowsort label-7313
SELECT + - ( 11 ) / + SUM ( DISTINCT + 84 ) * + 30 - 27
----
-27

query II rowsort
SELECT ALL 56 * + + 91 + + 15 AS col0, 59
----
5111
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT + 67 * - 35 * - - 20 + + COUNT( * ) AS col0
----
-46899

skipif mysql # not compatible
query I rowsort label-7315
SELECT + 67 * - 35 * - - 20 + + COUNT ( * ) AS col0
----
-46899

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

query II rowsort
SELECT ALL + 88, 83 AS col1
----
88
83

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7319
SELECT - 27 DIV + + 31 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7319
SELECT - 27 / + + 31 AS col2
----
0

query I rowsort
SELECT DISTINCT 86 * - 21
----
-1806

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7321
SELECT DISTINCT MIN( ALL - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7321
SELECT DISTINCT MIN ( ALL - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - 37 * + - 29
----
1073

query I rowsort
SELECT - 67 * 19 AS col2
----
-1273

query I rowsort
SELECT + 79 * + 1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT - 85 + COUNT( * ) + - 85 * 80 - 45 AS col2
----
-6929

skipif mysql # not compatible
query I rowsort label-7329
SELECT - 85 + COUNT ( * ) + - 85 * 80 - 45 AS col2
----
-6929

onlyif mysql # aggregate syntax: 
query I rowsort label-7330
SELECT - COUNT( * ) - 32 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-7330
SELECT - COUNT ( * ) - 32 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7331
SELECT ALL CASE + 58 WHEN MIN( DISTINCT + - 83 ) THEN 63 + - + 78 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7331
SELECT ALL CASE + 58 WHEN MIN ( DISTINCT + - 83 ) THEN 63 + - + 78 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 47 * + 57
----
-2679

onlyif mysql # aggregate syntax: 
query II rowsort label-7333
SELECT - 37 * + - ( + - MIN( - 9 ) ) AS col1, - 49 AS col2
----
333
-49

skipif mysql # not compatible
query II rowsort label-7333
SELECT - 37 * + - ( + - MIN ( - 9 ) ) AS col1, - 49 AS col2
----
333
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7334
SELECT ALL - COALESCE ( + + 75, 55 * COUNT( * ) + + NULLIF ( 96, + 21 + + 16 - 5 ) ) + - - 31 AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-7334
SELECT ALL - COALESCE ( + + 75, 55 * COUNT ( * ) + + NULLIF ( 96, + 21 + + 16 - 5 ) ) + - - 31 AS col2
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7335
SELECT DISTINCT CAST( - SUM( 21 ) AS SIGNED ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-7335
SELECT DISTINCT CAST ( - SUM ( 21 ) AS INTEGER ) AS col2
----
-21

query I rowsort
SELECT DISTINCT - 20 * - 28
----
560

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT DISTINCT MIN( - ( + - 55 ) ) + + + 60
----
115

skipif mysql # not compatible
query I rowsort label-7337
SELECT DISTINCT MIN ( - ( + - 55 ) ) + + + 60
----
115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7338
SELECT DISTINCT + 33 + + MAX( + 67 ) + + CASE + 52 WHEN - - ( - CASE COUNT( * ) WHEN 77 THEN NULL WHEN 90 * - 7 THEN 37 WHEN - 25 THEN + 87 + - ( + - 78 ) ELSE - + 63 END ) THEN + ( - AVG ( 83 ) ) ELSE 25 + + 43 END DIV + 45 * COUNT( * )
----
101

skipif mysql # not compatible
query I rowsort label-7338
SELECT DISTINCT + 33 + + MAX ( + 67 ) + + CASE + 52 WHEN - - ( - CASE COUNT ( * ) WHEN 77 THEN NULL WHEN 90 * - 7 THEN 37 WHEN - 25 THEN + 87 + - ( + - 78 ) ELSE - + 63 END ) THEN + ( - AVG ( 83 ) ) ELSE 25 + + 43 END / + 45 * COUNT ( * )
----
101

query I rowsort
SELECT DISTINCT + - 21 + + 83 + - - ( - 35 )
----
27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7340
SELECT DISTINCT + CASE + 75 WHEN + 49 * - + MIN( DISTINCT 58 ) * 61 + - 28 + CAST( NULL AS DECIMAL ) THEN - 69 ELSE NULL END + 65 - 68 + + 37 - 39 * - 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7340
SELECT DISTINCT + CASE + 75 WHEN + 49 * - + MIN ( DISTINCT 58 ) * 61 + - 28 + CAST ( NULL AS REAL ) THEN - 69 ELSE NULL END + 65 - 68 + + 37 - 39 * - 24 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7341
SELECT ALL 65 + + + 53 - + + 4 + - - MIN( DISTINCT 51 ) + 85 DIV 15 * - 69 DIV COUNT( * ) + 65 + + + 69 col0
----
-46

skipif mysql # not compatible
query I rowsort label-7341
SELECT ALL 65 + + + 53 - + + 4 + - - MIN ( DISTINCT 51 ) + 85 / 15 * - 69 / COUNT ( * ) + 65 + + + 69 col0
----
-46

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-7343
SELECT - MAX( - + 43 ) DIV + 63 * + 25 + - - CAST( + - 84 AS SIGNED ) AS col1, - 39, 67 AS col1
----
-84
-39
67

skipif mysql # not compatible
query III rowsort label-7343
SELECT - MAX ( - + 43 ) / + 63 * + 25 + - - CAST ( + - 84 AS INTEGER ) AS col1, - 39, 67 AS col1
----
-84
-39
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7344
SELECT - CAST( NULL AS SIGNED ) * + 73 * - + CASE 79 WHEN - - ( COALESCE ( + CAST( + - 26 AS SIGNED ), + ( 52 ) * + 95 + ( - 87 ) ) ) THEN + + 49 * - 5 + + NULLIF ( - COUNT( * ), - 79 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7344
SELECT - CAST ( NULL AS INTEGER ) * + 73 * - + CASE 79 WHEN - - ( COALESCE ( + CAST ( + - 26 AS INTEGER ), + ( 52 ) * + 95 + ( - 87 ) ) ) THEN + + 49 * - 5 + + NULLIF ( - COUNT ( * ), - 79 ) ELSE NULL END
----
NULL

query II rowsort
SELECT - 14 AS col0, + 5 * - - 15
----
-14
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT ALL - 34 + - ( COUNT( - 19 ) ) * + 92 - + SUM( - 35 )
----
-91

skipif mysql # not compatible
query I rowsort label-7346
SELECT ALL - 34 + - ( COUNT ( - 19 ) ) * + 92 - + SUM ( - 35 )
----
-91

query I rowsort
SELECT ALL + - 8 + + 55 AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7348
SELECT + 85 * 13 * + + 59 + COUNT( * ) - - 23 AS col0
----
65219

skipif mysql # not compatible
query I rowsort label-7348
SELECT + 85 * 13 * + + 59 + COUNT ( * ) - - 23 AS col0
----
65219

query II rowsort
SELECT DISTINCT 54 * 70 * + + 74 + - + 62, 66 AS col2
----
279658
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT DISTINCT 77 * + CASE COUNT( DISTINCT 71 ) WHEN + 14 THEN NULL ELSE + COUNT( * ) END AS col1
----
77

skipif mysql # not compatible
query I rowsort label-7350
SELECT DISTINCT 77 * + CASE COUNT ( DISTINCT 71 ) WHEN + 14 THEN NULL ELSE + COUNT ( * ) END AS col1
----
77

query I rowsort
SELECT DISTINCT - 40 * + - 63 AS col2
----
2520

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

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

query I rowsort
SELECT ALL 95 - - ( + 67 )
----
162

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

skipif mysql # not compatible
query I rowsort label-7354
SELECT COUNT ( * ) * - 8 / - 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT - MAX( - 85 ) - + COUNT( * ) + COUNT( * ) + - + 21 * 85 + + 53 AS col1
----
-1647

skipif mysql # not compatible
query I rowsort label-7355
SELECT - MAX ( - 85 ) - + COUNT ( * ) + COUNT ( * ) + - + 21 * 85 + + 53 AS col1
----
-1647

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

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

query I rowsort
SELECT 93 * 70 AS col0
----
6510

query I rowsort
SELECT NULLIF ( - - ( - 94 ), - 72 ) + - 38 * 84
----
-3286

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7359
SELECT DISTINCT - COALESCE ( 86, 28 - - 96 + + + 8 DIV - NULLIF ( - CASE - COUNT( * ) WHEN - 3 THEN 63 END, 35 * + 24 + - 67 ), + 15, - 16 )
----
-86

skipif mysql # not compatible
query I rowsort label-7359
SELECT DISTINCT - COALESCE ( 86, 28 - - 96 + + + 8 / - NULLIF ( - CASE - COUNT ( * ) WHEN - 3 THEN 63 END, 35 * + 24 + - 67 ), + 15, - 16 )
----
-86

query I rowsort
SELECT - 85 * + 26 + + - 89 - - + 23 AS col2
----
-2276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7361
SELECT ALL NULLIF ( COUNT( * ), - + COALESCE ( - 18, - SUM( - 60 ) ) + CAST( - 77 AS SIGNED ) ) * + 61 + - - CAST( + 66 AS SIGNED ) + - 74 * 12 AS col1
----
-761

skipif mysql # not compatible
query I rowsort label-7361
SELECT ALL NULLIF ( COUNT ( * ), - + COALESCE ( - 18, - SUM ( - 60 ) ) + CAST ( - 77 AS INTEGER ) ) * + 61 + - - CAST ( + 66 AS INTEGER ) + - 74 * 12 AS col1
----
-761

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7362
SELECT 42 * + 62 + + - CAST( NULL AS SIGNED ) / - 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7362
SELECT 42 * + 62 + + - CAST ( NULL AS INTEGER ) / - 50 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7363
SELECT DISTINCT COUNT ( * ) / + + 87
----
0

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

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

query I rowsort
SELECT ALL CASE 65 WHEN + 53 + - 47 THEN - 44 END * + 30 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 32 + + + 34 + + + 48 + + - 82 AS col0
----
32

query II rowsort
SELECT 47 + 85 - - - 1 - - - 61 + + 49, + 29 AS col0
----
119
29

query I rowsort
SELECT 18 * - 83 * - 16 * + 2
----
47808

query I rowsort
SELECT ALL 67 + - ( - ( - 24 ) ) * + 97 + 71
----
-2190

onlyif mysql # DIV for integer division: 
query I rowsort label-7370
SELECT 63 DIV 54 * - 94 col1
----
-94

skipif mysql # not compatible
query I rowsort label-7370
SELECT 63 / 54 * - 94 col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT COUNT( * ) * CASE - 66 WHEN - CASE + - 62 WHEN 46 * - 18 * + - 60 THEN NULL ELSE + COUNT( * ) * + MIN( + - 94 ) END - + - 81 + 41 * + + 10 * 19 THEN + ( + 7 ) + - + 85 WHEN 68 THEN 75 + 45 ELSE NULL END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7371
SELECT COUNT ( * ) * CASE - 66 WHEN - CASE + - 62 WHEN 46 * - 18 * + - 60 THEN NULL ELSE + COUNT ( * ) * + MIN ( + - 94 ) END - + - 81 + 41 * + + 10 * 19 THEN + ( + 7 ) + - + 85 WHEN 68 THEN 75 + 45 ELSE NULL END * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7372
SELECT + 19 - + COUNT( * ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-7372
SELECT + 19 - + COUNT ( * ) AS col0
----
18

query I rowsort
SELECT 20 + - 22
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT 79 * CASE + 16 WHEN + - 6 THEN + ( + - ( + + ( + + AVG ( ALL - + 64 ) ) ) ) ELSE NULL END - - - ( COUNT( * ) ) + - ( - 25 ) * 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7374
SELECT 79 * CASE + 16 WHEN + - 6 THEN + ( + - ( + + ( + + AVG ( ALL - + 64 ) ) ) ) ELSE NULL END - - - ( COUNT ( * ) ) + - ( - 25 ) * 72 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7375
SELECT ( - 70 ) * + + CASE - 4 WHEN MAX( ALL 77 ) - - 3 + + 4 + + + 69 * + + MIN( - 29 ) + - - MIN( - - 39 ) + + 74 / + + CAST( NULL AS SIGNED ) * - AVG ( - 48 ) THEN NULL WHEN + + NULLIF ( + AVG ( - CAST( NULL AS SIGNED ) ), - 12 ) + + 82 + - 52 THEN 31 END * + + 91 + + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-7375
SELECT ( - 70 ) * + + CASE - 4 WHEN MAX ( ALL 77 ) - - 3 + + 4 + + + 69 * + + MIN ( - 29 ) + - - MIN ( - - 39 ) + + 74 / + + CAST ( NULL AS INTEGER ) * - AVG ( - 48 ) THEN NULL WHEN + + NULLIF ( + AVG ( - CAST ( NULL AS INTEGER ) ), - 12 ) + + 82 + - 52 THEN 31 END * + + 91 + + 49
----
NULL

query II rowsort
SELECT ALL + + 56 + - + 64 AS col0, - 80 + 36 AS col2
----
-8
-44

query II rowsort
SELECT - ( + 50 ) AS col0, 34 AS col1
----
-50
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7378
SELECT - 99 + 90 * - CASE - COUNT( * ) WHEN 98 THEN - NULLIF ( - 63, - 96 + + 42 * 77 * - 63 - NULLIF ( + 41, 91 / + 13 * + COUNT( * ) ) ) WHEN + - NULLIF ( + 33, + 72 + - COUNT( DISTINCT + 45 ) * - 95 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7378
SELECT - 99 + 90 * - CASE - COUNT ( * ) WHEN 98 THEN - NULLIF ( - 63, - 96 + + 42 * 77 * - 63 - NULLIF ( + 41, 91 / + 13 * + COUNT ( * ) ) ) WHEN + - NULLIF ( + 33, + 72 + - COUNT ( DISTINCT + 45 ) * - 95 ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7379
SELECT - 85 * - 63 * + COUNT( * ) + - + 52 AS col0
----
5303

skipif mysql # not compatible
query I rowsort label-7379
SELECT - 85 * - 63 * + COUNT ( * ) + - + 52 AS col0
----
5303

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7380
SELECT ALL - - 68 - + + 31 AS col0, - 47 * + 51 + + 46 + + 21 * 85 + - + COALESCE ( - COUNT( * ), - 99 * + + 22 + + CAST( + ( - SUM( + + 0 ) ) AS SIGNED ) - - 61 + - 99 * - 38 )
----
37
-565

skipif mysql # not compatible
query II rowsort label-7380
SELECT ALL - - 68 - + + 31 AS col0, - 47 * + 51 + + 46 + + 21 * 85 + - + COALESCE ( - COUNT ( * ), - 99 * + + 22 + + CAST ( + ( - SUM ( + + 0 ) ) AS INTEGER ) - - 61 + - 99 * - 38 )
----
37
-565

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

skipif mysql # not compatible
query I rowsort label-7381
SELECT - SUM ( + ( + - 87 ) )
----
87

query II rowsort
SELECT DISTINCT - ( + 31 ) AS col0, 63 AS col1
----
-31
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7383
SELECT - 72 * - COUNT( * ) + - 75 * + 10 * - - 97
----
-72678

skipif mysql # not compatible
query I rowsort label-7383
SELECT - 72 * - COUNT ( * ) + - 75 * + 10 * - - 97
----
-72678

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7384
SELECT + MAX( + 79 ) DIV + 65 + 78
----
79

skipif mysql # not compatible
query I rowsort label-7384
SELECT + MAX ( + 79 ) / + 65 + 78
----
79

query I rowsort
SELECT 61 * 53 AS col0
----
3233

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7386
SELECT ALL + - SUM( 60 ) DIV + - 68 - - 74 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-7386
SELECT ALL + - SUM ( 60 ) / + - 68 - - 74 AS col2
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7387
SELECT - 85 / + + 64 + + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) - COUNT( * ) - + - 43 - + CASE - ( 77 ) WHEN 48 THEN 43 ELSE NULL END + 99 * NULLIF ( + CASE - + CAST( NULL AS DECIMAL ) WHEN + + COALESCE ( + - 3, + + 37 * CAST( 87 AS SIGNED ) * - ( + 64 ) - + CAST( - COUNT( * ) AS SIGNED ) ) THEN - 91 WHEN - 35 - - - ( + 25 ) THEN + 60 + + - CAST( NULL AS SIGNED ) + - 5 + 69 ELSE NULL END, 31 ) + - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-7387
SELECT - 85 / + + 64 + + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) - COUNT ( * ) - + - 43 - + CASE - ( 77 ) WHEN 48 THEN 43 ELSE NULL END + 99 * NULLIF ( + CASE - + CAST ( NULL AS REAL ) WHEN + + COALESCE ( + - 3, + + 37 * CAST ( 87 AS INTEGER ) * - ( + 64 ) - + CAST ( - COUNT ( * ) AS INTEGER ) ) THEN - 91 WHEN - 35 - - - ( + 25 ) THEN + 60 + + - CAST ( NULL AS INTEGER ) + - 5 + 69 ELSE NULL END, 31 ) + - 65
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7388
SELECT ALL - CASE + CASE + 77 WHEN 82 THEN - COALESCE ( + 11, 50 + + + 27, + - COUNT( * ) ) * + 90 - - CAST( NULL AS SIGNED ) ELSE - 11 END WHEN - CASE CAST( NULL AS SIGNED ) WHEN - - COUNT( * ) THEN NULL WHEN 34 THEN + + 36 END THEN NULL WHEN + ( + 87 ) * + + 36 THEN NULL ELSE + + COUNT( * ) + - 22 END AS col1
----
21

skipif mysql # not compatible
query I rowsort label-7388
SELECT ALL - CASE + CASE + 77 WHEN 82 THEN - COALESCE ( + 11, 50 + + + 27, + - COUNT ( * ) ) * + 90 - - CAST ( NULL AS INTEGER ) ELSE - 11 END WHEN - CASE CAST ( NULL AS INTEGER ) WHEN - - COUNT ( * ) THEN NULL WHEN 34 THEN + + 36 END THEN NULL WHEN + ( + 87 ) * + + 36 THEN NULL ELSE + + COUNT ( * ) + - 22 END AS col1
----
21

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

skipif mysql # not compatible
query I rowsort label-7389
SELECT ALL + CAST ( NULL AS INTEGER ) * 28
----
NULL

query II rowsort
SELECT DISTINCT - 89, 32 AS col0
----
-89
32

onlyif mysql # DIV for integer division: 
query II rowsort label-7391
SELECT ALL CASE + 76 WHEN 12 THEN + 64 + - 39 ELSE 56 DIV - 60 END * - - 56 DIV - 11 + + - 46 + 94, - 87 AS col0
----
48
-87

skipif mysql # not compatible
query II rowsort label-7391
SELECT ALL CASE + 76 WHEN 12 THEN + 64 + - 39 ELSE 56 / - 60 END * - - 56 / - 11 + + - 46 + 94, - 87 AS col0
----
48
-87

query II rowsort
SELECT + 11, + 34 * + - 70 AS col0
----
11
-2380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7393
SELECT DISTINCT - CAST( + + MAX( DISTINCT + - 89 ) AS SIGNED ) + - ( + COALESCE ( 43, + 42 + - COUNT( * ) + - 13 ) )
----
46

skipif mysql # not compatible
query I rowsort label-7393
SELECT DISTINCT - CAST ( + + MAX ( DISTINCT + - 89 ) AS INTEGER ) + - ( + COALESCE ( 43, + 42 + - COUNT ( * ) + - 13 ) )
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7394
SELECT DISTINCT ( + COUNT( * ) ) + - COUNT( * ) + - 3 * 92 DIV - + COUNT( * ) AS col2
----
276

skipif mysql # not compatible
query I rowsort label-7394
SELECT DISTINCT ( + COUNT ( * ) ) + - COUNT ( * ) + - 3 * 92 / - + COUNT ( * ) AS col2
----
276

query I rowsort
SELECT ALL 26 + - 29 * 55
----
-1569

query II rowsort
SELECT DISTINCT - 95 AS col0, - 11
----
-95
-11

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

query I rowsort
SELECT ALL COALESCE ( 98, - 68 ) AS col0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7399
SELECT DISTINCT 55 + + - CAST( - + 94 AS SIGNED ) col1, 63 AS col1
----
149
63

skipif mysql # not compatible
query II rowsort label-7399
SELECT DISTINCT 55 + + - CAST ( - + 94 AS INTEGER ) col1, 63 AS col1
----
149
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7400
SELECT DISTINCT 14 + + - COUNT( * ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-7400
SELECT DISTINCT 14 + + - COUNT ( * ) AS col2
----
13

query I rowsort
SELECT ALL 72 * - 11 AS col2
----
-792

query I rowsort
SELECT ( - + 80 ) + - 73 * - 34 - 3
----
2399

query I rowsort
SELECT - - ( - 41 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT + COUNT( * ) + - 25 - 33 * 52
----
-1740

skipif mysql # not compatible
query I rowsort label-7404
SELECT + COUNT ( * ) + - 25 - 33 * 52
----
-1740

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT + COUNT( * ) + 4 - - COUNT( DISTINCT + 21 ) + + + 35 * + 47 col0
----
1651

skipif mysql # not compatible
query I rowsort label-7405
SELECT + COUNT ( * ) + 4 - - COUNT ( DISTINCT + 21 ) + + + 35 * + 47 col0
----
1651

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7406
SELECT + COUNT( 55 ) DIV + 43 * - 14 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7406
SELECT + COUNT ( 55 ) / + 43 * - 14 AS col1
----
0

query I rowsort
SELECT + 84 * 9 AS col0
----
756

query II rowsort
SELECT - 60 AS col0, 3
----
-60
3

query I rowsort
SELECT ALL + 32 - + + 11
----
21

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

skipif mysql # not compatible
query I rowsort label-7410
SELECT ALL 71 * + + COUNT ( * ) - - + ( - COUNT ( * ) ) / ( + - 56 ) AS col1
----
71

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

query I rowsort
SELECT - - NULLIF ( - 86, + 82 * 4 )
----
-86

query II rowsort
SELECT ALL + 70, 97 * + + 1 AS col0
----
70
97

query I rowsort
SELECT + 86 * - - ( - 4 ) AS col1
----
-344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7415
SELECT + 0 - - MAX( ALL + 91 ) - 25 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7415
SELECT + 0 - - MAX ( ALL + 91 ) - 25 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + - 52 * - - 54 + 21 AS col2
----
-2787

query I rowsort
SELECT - 74 * - 6 + - 32
----
412

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7420
SELECT ALL + CAST ( + MIN ( - 38 ) AS INTEGER )
----
-38

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

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

query I rowsort
SELECT NULLIF ( 37, + 15 - + - 56 + + 17 ) col2
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7423
SELECT ALL + COALESCE ( + - 80, - + 4, + + CAST( + - COUNT( DISTINCT 24 ) AS SIGNED ) ) * 78 + - 2 * COUNT( * ) AS col1, 69
----
-6242
69

skipif mysql # not compatible
query II rowsort label-7423
SELECT ALL + COALESCE ( + - 80, - + 4, + + CAST ( + - COUNT ( DISTINCT 24 ) AS INTEGER ) ) * 78 + - 2 * COUNT ( * ) AS col1, 69
----
-6242
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7424
SELECT - 68 - + COUNT( * ) + - COUNT( * ) + 36
----
-34

skipif mysql # not compatible
query I rowsort label-7424
SELECT - 68 - + COUNT ( * ) + - COUNT ( * ) + 36
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7425
SELECT CASE COUNT( * ) WHEN - - MIN( + - 41 ) * - + MIN( - ( + 88 ) ) THEN NULL WHEN 87 - + ( - - 79 ) * + - 81 THEN NULL WHEN - 55 THEN + 40 ELSE - CASE WHEN NULL <> - 7 THEN + 36 ELSE NULL END / 87 + SUM( DISTINCT - CAST( + - 1 AS SIGNED ) ) * 39 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7425
SELECT CASE COUNT ( * ) WHEN - - MIN ( + - 41 ) * - + MIN ( - ( + 88 ) ) THEN NULL WHEN 87 - + ( - - 79 ) * + - 81 THEN NULL WHEN - 55 THEN + 40 ELSE - CASE WHEN NULL <> - 7 THEN + 36 ELSE NULL END / 87 + SUM ( DISTINCT - CAST ( + - 1 AS INTEGER ) ) * 39 END col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7426
SELECT 78 * + 73 + + + COALESCE ( + - 72, - + ( - 45 ) ) + - 42 * 14 - - + 85 + MAX( - + 8 ) * - - COUNT( * ) / + 80 * + - COUNT( * ) * + - CAST( NULL AS SIGNED ) + - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-7426
SELECT 78 * + 73 + + + COALESCE ( + - 72, - + ( - 45 ) ) + - 42 * 14 - - + 85 + MAX ( - + 8 ) * - - COUNT ( * ) / + 80 * + - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) + - 70
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7427
SELECT 42 * - + 91 - 79 + - - 21 - 41 DIV - - 22
----
-3881

skipif mysql # not compatible
query I rowsort label-7427
SELECT 42 * - + 91 - 79 + - - 21 - 41 / - - 22
----
-3881

onlyif mysql # DIV for integer division: 
query I rowsort label-7428
SELECT - 62 DIV + 93 * 14 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7428
SELECT - 62 / + 93 * 14 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7429
SELECT ALL - 64 * MAX( + - 7 ) DIV - + 3 + 57 DIV + 58
----
-149

skipif mysql # not compatible
query I rowsort label-7429
SELECT ALL - 64 * MAX ( + - 7 ) / - + 3 + 57 / + 58
----
-149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7430
SELECT COALESCE ( - 51, - 64 * - 76 DIV - COUNT( * ) )
----
-51

skipif mysql # not compatible
query I rowsort label-7430
SELECT COALESCE ( - 51, - 64 * - 76 / - COUNT ( * ) )
----
-51

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

skipif mysql # not compatible
query II rowsort label-7431
SELECT + SUM ( - 69 ) AS col1, 51
----
-69
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7432
SELECT ALL - 97 * 46 + + COUNT( * ) + + - MIN( + 21 ) * - + 80 + - + 46 * - ( - 7 ) AS col2
----
-3103

skipif mysql # not compatible
query I rowsort label-7432
SELECT ALL - 97 * 46 + + COUNT ( * ) + + - MIN ( + 21 ) * - + 80 + - + 46 * - ( - 7 ) AS col2
----
-3103

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7433
SELECT - 26 DIV COUNT( * ) AS col0, 8
----
-26
8

skipif mysql # not compatible
query II rowsort label-7433
SELECT - 26 / COUNT ( * ) AS col0, 8
----
-26
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT ALL + 87 * - + 28 * - COALESCE ( + + ( - + 24 ), - - 21, + ( - 54 ) ) + - COUNT( * )
----
-58465

skipif mysql # not compatible
query I rowsort label-7434
SELECT ALL + 87 * - + 28 * - COALESCE ( + + ( - + 24 ), - - 21, + ( - 54 ) ) + - COUNT ( * )
----
-58465

query I rowsort
SELECT DISTINCT 0 * 70 + - - 78 AS col1
----
78

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7437
SELECT DISTINCT CAST( NULL AS SIGNED ) * + NULLIF ( + + 80, + 2 ) - + - COUNT( * ) + + + 37 * + + COUNT( - - 15 ) * 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7437
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + NULLIF ( + + 80, + 2 ) - + - COUNT ( * ) + + + 37 * + + COUNT ( - - 15 ) * 6 AS col2
----
NULL

query I rowsort
SELECT ALL 89 - - - 31
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7439
SELECT DISTINCT + - 72 - - COALESCE ( - 51, + CAST( NULL AS SIGNED ), + 44 ) * - ( 6 ) AS col2
----
234

skipif mysql # not compatible
query I rowsort label-7439
SELECT DISTINCT + - 72 - - COALESCE ( - 51, + CAST ( NULL AS INTEGER ), + 44 ) * - ( 6 ) AS col2
----
234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7440
SELECT - - 66 + - - COALESCE ( - 37, - ( + NULLIF ( - 47, + 58 + CAST( NULL AS SIGNED ) / - - 88 ) ) - + ( - 75 ) * 85, - 66 ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-7440
SELECT - - 66 + - - COALESCE ( - 37, - ( + NULLIF ( - 47, + 58 + CAST ( NULL AS INTEGER ) / - - 88 ) ) - + ( - 75 ) * 85, - 66 ) AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7441
SELECT DISTINCT - 55 - - MIN( + 55 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7441
SELECT DISTINCT - 55 - - MIN ( + 55 ) AS col1
----
0

query II rowsort
SELECT + + ( + + 10 ) * + ( 12 ) AS col1, 70
----
120
70

query I rowsort
SELECT ALL + 80 * - + 33 + + 56 AS col1
----
-2584

query I rowsort
SELECT ALL 1 * + 23 * + 81 - - 46
----
1909

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7445
SELECT + COUNT( + + 12 ) DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-7445
SELECT + COUNT ( + + 12 ) / - 95
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7446
SELECT + 58 * - - COUNT( * ), - 41 AS col1
----
58
-41

skipif mysql # not compatible
query II rowsort label-7446
SELECT + 58 * - - COUNT ( * ), - 41 AS col1
----
58
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7447
SELECT + - CAST( - - COUNT( ALL - 83 ) AS SIGNED ) + 72
----
71

skipif mysql # not compatible
query I rowsort label-7447
SELECT + - CAST ( - - COUNT ( ALL - 83 ) AS INTEGER ) + 72
----
71

query I rowsort
SELECT ALL - 59 * + ( + 50 )
----
-2950

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7449
SELECT + + 90 + + CAST( + - 31 AS SIGNED ) + - 34, + 49 * - ( + - 19 ) * 91 AS col0
----
25
84721

skipif mysql # not compatible
query II rowsort label-7449
SELECT + + 90 + + CAST ( + - 31 AS INTEGER ) + - 34, + 49 * - ( + - 19 ) * 91 AS col0
----
25
84721

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7450
SELECT DISTINCT - + ( 86 ) DIV ( + 8 ) + - COUNT( 5 ) DIV + - 25 + 64 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-7450
SELECT DISTINCT - + ( 86 ) / ( + 8 ) + - COUNT ( 5 ) / + - 25 + 64 AS col0
----
54

query I rowsort
SELECT - NULLIF ( 14, - 39 ) * + 30 + - 20 * - 43
----
440

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7454
SELECT CAST( + - NULLIF ( + 77, - - MIN( DISTINCT - 50 ) * 14 ) AS SIGNED ) AS col0, 75 * 21 AS col2, + COALESCE ( + 71, - + 2 ) - - + 29
----
-77
1575
100

skipif mysql # not compatible
query III rowsort label-7454
SELECT CAST ( + - NULLIF ( + 77, - - MIN ( DISTINCT - 50 ) * 14 ) AS INTEGER ) AS col0, 75 * 21 AS col2, + COALESCE ( + 71, - + 2 ) - - + 29
----
-77
1575
100

query I rowsort
SELECT + 15 * - + 49
----
-735

onlyif mysql # aggregate syntax: 
query II rowsort label-7456
SELECT - 21 + - ( + 30 ) col2, + CASE + - 42 WHEN - - 19 + + SUM( DISTINCT + + 29 ) THEN + ( + - 45 ) WHEN + 57 THEN NULL END
----
-51
NULL

skipif mysql # not compatible
query II rowsort label-7456
SELECT - 21 + - ( + 30 ) col2, + CASE + - 42 WHEN - - 19 + + SUM ( DISTINCT + + 29 ) THEN + ( + - 45 ) WHEN + 57 THEN NULL END
----
-51
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7457
SELECT ALL - COALESCE ( + 20, - + CAST( - COALESCE ( + 94, - + 35 * + 14 * 85 + 13 + + 69 ) AS SIGNED ) ) * - COUNT( * ), MIN( - CAST( + - 85 AS SIGNED ) ) AS col0
----
20
85

skipif mysql # not compatible
query II rowsort label-7457
SELECT ALL - COALESCE ( + 20, - + CAST ( - COALESCE ( + 94, - + 35 * + 14 * 85 + 13 + + 69 ) AS INTEGER ) ) * - COUNT ( * ), MIN ( - CAST ( + - 85 AS INTEGER ) ) AS col0
----
20
85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT + 85 * MAX( 22 ) AS col0
----
1870

skipif mysql # not compatible
query I rowsort label-7459
SELECT + 85 * MAX ( 22 ) AS col0
----
1870

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7460
SELECT ALL - 75 * + CASE - ( SUM( DISTINCT 11 ) ) WHEN ( ( - 50 ) ) THEN - 45 - + 70 WHEN + 35 THEN - + 55 DIV - 24 + 16 + - + COUNT( * ) ELSE + ( 60 ) + - + 83 END
----
1725

skipif mysql # not compatible
query I rowsort label-7460
SELECT ALL - 75 * + CASE - ( SUM ( DISTINCT 11 ) ) WHEN ( ( - 50 ) ) THEN - 45 - + 70 WHEN + 35 THEN - + 55 / - 24 + 16 + - + COUNT ( * ) ELSE + ( 60 ) + - + 83 END
----
1725

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7461
SELECT ( NULLIF ( + 77, + + MIN( ALL - - CAST( 33 AS SIGNED ) ) + + 97 + - NULLIF ( 14, MIN( ALL + 51 ) ) ) ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-7461
SELECT ( NULLIF ( + 77, + + MIN ( ALL - - CAST ( 33 AS INTEGER ) ) + + 97 + - NULLIF ( 14, MIN ( ALL + 51 ) ) ) ) AS col1
----
77

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7463
SELECT ( COALESCE ( + 42, + COUNT( * ), - 92 + - COUNT( * ) * - 29 * + + 96, - - CASE - 41 WHEN + 33 * + 72 * 75 - - 17 + 26 - - 81 THEN - ( + CASE + + CAST( NULL AS SIGNED ) WHEN + 62 THEN + COUNT( * ) - - 44 END ) WHEN - ( + 73 ) + + 19 THEN + - ( - ( + - 44 ) ) + - 74 END DIV + 91 DIV + 39 ) ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-7463
SELECT ( COALESCE ( + 42, + COUNT ( * ), - 92 + - COUNT ( * ) * - 29 * + + 96, - - CASE - 41 WHEN + 33 * + 72 * 75 - - 17 + 26 - - 81 THEN - ( + CASE + + CAST ( NULL AS INTEGER ) WHEN + 62 THEN + COUNT ( * ) - - 44 END ) WHEN - ( + 73 ) + + 19 THEN + - ( - ( + - 44 ) ) + - 74 END / + 91 / + 39 ) ) AS col0
----
42

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

query I rowsort
SELECT + 49 - + + 35 AS col1
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-7466
SELECT ( + NULLIF ( - + 40, + 65 ) ) * + - 0 * + + 36 * - 53 DIV + - 26 + + - NULLIF ( - 34, 35 * + 31 )
----
34

skipif mysql # not compatible
query I rowsort label-7466
SELECT ( + NULLIF ( - + 40, + 65 ) ) * + - 0 * + + 36 * - 53 / + - 26 + + - NULLIF ( - 34, 35 * + 31 )
----
34

query I rowsort
SELECT DISTINCT - 66 - 61
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-7468
SELECT ALL - NULLIF ( + 67, - 83 * + 24 + + 67 / COUNT( * ) - - + 46 ) col1
----
-67

skipif mysql # not compatible
query I rowsort label-7468
SELECT ALL - NULLIF ( + 67, - 83 * + 24 + + 67 / COUNT ( * ) - - + 46 ) col1
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7469
SELECT 62 * ( + 45 ) AS col1, CAST( NULL AS SIGNED ) - - - 56
----
2790
NULL

skipif mysql # not compatible
query II rowsort label-7469
SELECT 62 * ( + 45 ) AS col1, CAST ( NULL AS INTEGER ) - - - 56
----
2790
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7470
SELECT 97 * CASE + 1 WHEN - - ( + - CASE 42 WHEN - 44 THEN - - 56 WHEN 54 / + 26 * + - 56 * + 81 * + 86 + 5 THEN - 94 WHEN - 81 + + - 65 + - COUNT( * ) * + CAST( NULL AS SIGNED ) * - + 4 THEN NULL ELSE NULL END ) + - MIN( DISTINCT 99 ) THEN - 40 + COUNT( * ) ELSE + + CASE - + ( + 6 ) WHEN + CASE - CAST( NULL AS SIGNED ) WHEN - 95 THEN NULL ELSE - CASE - + 93 WHEN + - 27 * + ( 67 ) + - COUNT( * ) THEN 59 END END THEN - 33 + CAST( NULL AS SIGNED ) ELSE NULL END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7470
SELECT 97 * CASE + 1 WHEN - - ( + - CASE 42 WHEN - 44 THEN - - 56 WHEN 54 / + 26 * + - 56 * + 81 * + 86 + 5 THEN - 94 WHEN - 81 + + - 65 + - COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - + 4 THEN NULL ELSE NULL END ) + - MIN ( DISTINCT 99 ) THEN - 40 + COUNT ( * ) ELSE + + CASE - + ( + 6 ) WHEN + CASE - CAST ( NULL AS INTEGER ) WHEN - 95 THEN NULL ELSE - CASE - + 93 WHEN + - 27 * + ( 67 ) + - COUNT ( * ) THEN 59 END END THEN - 33 + CAST ( NULL AS INTEGER ) ELSE NULL END END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7471
SELECT ALL - 76 DIV + 15
----
-5

skipif mysql # not compatible
query I rowsort label-7471
SELECT ALL - 76 / + 15
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT + 70 - + 18 * + - NULLIF ( - 62, + COUNT( * ) ) * + COUNT( * ) * + 47
----
-52382

skipif mysql # not compatible
query I rowsort label-7472
SELECT + 70 - + 18 * + - NULLIF ( - 62, + COUNT ( * ) ) * + COUNT ( * ) * + 47
----
-52382

query I rowsort
SELECT ALL - 26 * - 77
----
2002

query I rowsort
SELECT 87 * - - ( 62 ) + + + 71 * 66 + 2 AS col1
----
10082

onlyif mysql # aggregate syntax: 
query I rowsort label-7475
SELECT - - MAX( 3 ) col2
----
3

skipif mysql # not compatible
query I rowsort label-7475
SELECT - - MAX ( 3 ) col2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7476
SELECT DISTINCT - NULLIF ( COALESCE ( - 60, - 25 * + 27 DIV - MIN( DISTINCT + + 35 ) * 20 + + 17, - MAX( - - 53 ) - + - 10 + - 29 ), + - 60 * - AVG ( - 37 ) ) * + 75 + + + 12
----
4512

skipif mysql # not compatible
query I rowsort label-7476
SELECT DISTINCT - NULLIF ( COALESCE ( - 60, - 25 * + 27 / - MIN ( DISTINCT + + 35 ) * 20 + + 17, - MAX ( - - 53 ) - + - 10 + - 29 ), + - 60 * - AVG ( - 37 ) ) * + 75 + + + 12
----
4512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7477
SELECT ALL - - CAST( - AVG ( + - 18 ) AS SIGNED ) * - - 45
----
810

skipif mysql # not compatible
query I rowsort label-7477
SELECT ALL - - CAST ( - AVG ( + - 18 ) AS INTEGER ) * - - 45
----
810

onlyif mysql # aggregate syntax: 
query II rowsort label-7478
SELECT 63 AS col0, - 60 - - + SUM( ALL + 36 ) AS col1
----
63
-24

skipif mysql # not compatible
query II rowsort label-7478
SELECT 63 AS col0, - 60 - - + SUM ( ALL + 36 ) AS col1
----
63
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7479
SELECT ALL + - 82 + - - CASE - - CAST( 33 AS SIGNED ) WHEN - + 87 THEN - 22 WHEN + 47 THEN NULL ELSE + 69 * - NULLIF ( 26, 55 ) END + + - COUNT( * ) DIV COUNT( * )
----
-1877

skipif mysql # not compatible
query I rowsort label-7479
SELECT ALL + - 82 + - - CASE - - CAST ( 33 AS INTEGER ) WHEN - + 87 THEN - 22 WHEN + 47 THEN NULL ELSE + 69 * - NULLIF ( 26, 55 ) END + + - COUNT ( * ) / COUNT ( * )
----
-1877

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT - + CASE + COALESCE ( + 51, + - 30, + + 99 ) WHEN + 2 * 47 + - 3 - + + 94 / + + 82 THEN ( - 80 ) * + - MAX( + 30 ) + 46 + ( - 41 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7480
SELECT - + CASE + COALESCE ( + 51, + - 30, + + 99 ) WHEN + 2 * 47 + - 3 - + + 94 / + + 82 THEN ( - 80 ) * + - MAX ( + 30 ) + 46 + ( - 41 ) END AS col1
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7482
SELECT ALL + + SUM( ALL + 78 ) + - + 8 + + + CAST( NULL AS SIGNED ) * - 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7482
SELECT ALL + + SUM ( ALL + 78 ) + - + 8 + + + CAST ( NULL AS INTEGER ) * - 36 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 75 * - 78 + + 56 + 17 * + ( + 34 ) AS col0
----
6484

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7484
SELECT ALL - COALESCE ( - - 63, + - MIN( DISTINCT + 93 ), - 11 ) DIV + 43
----
-1

skipif mysql # not compatible
query I rowsort label-7484
SELECT ALL - COALESCE ( - - 63, + - MIN ( DISTINCT + 93 ), - 11 ) / + 43
----
-1

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

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

query I rowsort
SELECT 28 - + 79 - 20 AS col0
----
-71

query II rowsort
SELECT + 51 AS col2, 50 + 79 * - + 98 * - - 31 AS col0
----
51
-239952

query I rowsort
SELECT ALL 3 + 92 + + COALESCE ( 37, - + 33 ) * + 7 + + - 39
----
315

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

skipif mysql # not compatible
query I rowsort label-7489
SELECT 79 * - 15 - + COUNT ( * ) AS col1
----
-1186

query I rowsort
SELECT - 93 * + 55 + + 16
----
-5099

query II rowsort
SELECT ALL - 18 AS col0, - 60 - - 0 * - + 62 + + 6 AS col2
----
-18
-54

query I rowsort
SELECT ALL 67 - 15
----
52

query II rowsort
SELECT + 17 AS col1, - ( 83 ) AS col0
----
17
-83

query II rowsort
SELECT DISTINCT - 33 AS col2, 52
----
-33
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7495
SELECT - 30 * + 62 + - - ( + COUNT( * ) ) + - 16
----
-1875

skipif mysql # not compatible
query I rowsort label-7495
SELECT - 30 * + 62 + - - ( + COUNT ( * ) ) + - 16
----
-1875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7496
SELECT 53 DIV CAST( + ( - 74 ) AS SIGNED ) + - NULLIF ( + SUM( DISTINCT 97 ), + - NULLIF ( + 11, - 28 ) ) * + NULLIF ( - 1, + - AVG ( DISTINCT 8 ) * - COUNT( * ) + + + NULLIF ( - + ( COALESCE ( + 50, CASE - 10 WHEN - + 86 THEN + - COUNT( * ) END ) ), - - CAST( NULL AS SIGNED ) ) + + ( ( - 88 ) ) * - ( - - 39 ) * - + CASE - 95 WHEN CASE - + MAX( - 67 ) WHEN - 81 * + 67 - - 21 THEN + 90 * 87 + - 68 END THEN - 82 + CAST( + COUNT( * ) AS SIGNED ) END + 22 * 98 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-7496
SELECT 53 / CAST ( + ( - 74 ) AS INTEGER ) + - NULLIF ( + SUM ( DISTINCT 97 ), + - NULLIF ( + 11, - 28 ) ) * + NULLIF ( - 1, + - AVG ( DISTINCT 8 ) * - COUNT ( * ) + + + NULLIF ( - + ( COALESCE ( + 50, CASE - 10 WHEN - + 86 THEN + - COUNT ( * ) END ) ), - - CAST ( NULL AS INTEGER ) ) + + ( ( - 88 ) ) * - ( - - 39 ) * - + CASE - 95 WHEN CASE - + MAX ( - 67 ) WHEN - 81 * + 67 - - 21 THEN + 90 * 87 + - 68 END THEN - 82 + CAST ( + COUNT ( * ) AS INTEGER ) END + 22 * 98 ) AS col2
----
97

query I rowsort
SELECT 16 * 22 - 50 AS col1
----
302

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT 53 * 57 * - COUNT( * ) AS col1
----
-3021

skipif mysql # not compatible
query I rowsort label-7498
SELECT 53 * 57 * - COUNT ( * ) AS col1
----
-3021

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7499
SELECT 1, - 17 DIV - COUNT( * ) AS col0
----
1
17

skipif mysql # not compatible
query II rowsort label-7499
SELECT 1, - 17 / - COUNT ( * ) AS col0
----
1
17

query I rowsort
SELECT DISTINCT - 23 col0
----
-23

query II rowsort
SELECT 74 AS col2, - 49 * 27
----
74
-1323

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7502
SELECT ALL 90 * + + 44 * COALESCE ( ( COUNT( * ) ), + CAST( NULL AS SIGNED ) ), NULLIF ( - COUNT( * ), + 58 ) AS col2
----
3960
-1

skipif mysql # not compatible
query II rowsort label-7502
SELECT ALL 90 * + + 44 * COALESCE ( ( COUNT ( * ) ), + CAST ( NULL AS INTEGER ) ), NULLIF ( - COUNT ( * ), + 58 ) AS col2
----
3960
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7503
SELECT COUNT( 81 ) + + + 46 + + 33 * 93 AS col1
----
3116

skipif mysql # not compatible
query I rowsort label-7503
SELECT COUNT ( 81 ) + + + 46 + + 33 * 93 AS col1
----
3116

query II rowsort
SELECT ALL - 7, - 66 AS col2
----
-7
-66

query II rowsort
SELECT + - 10 AS col0, 91 AS col1
----
-10
91

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

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

query I rowsort
SELECT ALL 38 * + 65
----
2470

onlyif mysql # DIV for integer division: 
query I rowsort label-7508
SELECT - 77 DIV - 1 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-7508
SELECT - 77 / - 1 AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT DISTINCT + 53 * + CASE + NULLIF ( 52, + 83 ) WHEN 73 * 60 THEN NULL ELSE MIN( DISTINCT + - 11 ) - - 6 / 70 END - CASE - SUM( - 45 ) WHEN - COUNT( * ) * CASE + + 58 WHEN + 5 THEN + 10 * - 49 WHEN - - ( - 36 ) THEN NULL WHEN - COUNT( * ) THEN + - 14 END + + 2 - 12 THEN 73 ELSE NULL END + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-7509
SELECT DISTINCT + 53 * + CASE + NULLIF ( 52, + 83 ) WHEN 73 * 60 THEN NULL ELSE MIN ( DISTINCT + - 11 ) - - 6 / 70 END - CASE - SUM ( - 45 ) WHEN - COUNT ( * ) * CASE + + 58 WHEN + 5 THEN + 10 * - 49 WHEN - - ( - 36 ) THEN NULL WHEN - COUNT ( * ) THEN + - 14 END + + 2 - 12 THEN 73 ELSE NULL END + 78
----
NULL

query I rowsort
SELECT 89 + - 16 AS col0
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-7511
SELECT + 43 DIV 96 + - 11 + - 38 * + + 96 AS col2
----
-3659

skipif mysql # not compatible
query I rowsort label-7511
SELECT + 43 / 96 + - 11 + - 38 * + + 96 AS col2
----
-3659

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT 23 * + COUNT( * ) * + 82 - MAX( + 48 ) + + - 28 col2
----
1810

skipif mysql # not compatible
query I rowsort label-7513
SELECT 23 * + COUNT ( * ) * + 82 - MAX ( + 48 ) + + - 28 col2
----
1810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7514
SELECT CASE + 20 WHEN + 89 * 45 THEN NULL WHEN - 72 THEN NULL ELSE - + CAST( NULL AS SIGNED ) - 33 + 86 + + - 75 / + 80 * + COUNT( * ) * SUM( + + 9 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7514
SELECT CASE + 20 WHEN + 89 * 45 THEN NULL WHEN - 72 THEN NULL ELSE - + CAST ( NULL AS INTEGER ) - 33 + 86 + + - 75 / + 80 * + COUNT ( * ) * SUM ( + + 9 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7515
SELECT DISTINCT + COUNT( * ) + - CAST( - 51 AS SIGNED ) + - 26 - ( + + 96 ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-7515
SELECT DISTINCT + COUNT ( * ) + - CAST ( - 51 AS INTEGER ) + - 26 - ( + + 96 ) AS col1
----
-70

query I rowsort
SELECT ALL - 79 * - + 24 + - 54 AS col2
----
1842

query I rowsort
SELECT - 93 * + - 63 - - 8 AS col2
----
5867

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT DISTINCT + + 88 + - COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-7518
SELECT DISTINCT + + 88 + - COUNT ( * )
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7519
SELECT 38 + + 84 * + ( - COUNT( * ) ) * 70 + 9 DIV - + 95 AS col0
----
-5842

skipif mysql # not compatible
query I rowsort label-7519
SELECT 38 + + 84 * + ( - COUNT ( * ) ) * 70 + 9 / - + 95 AS col0
----
-5842

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT 81 - MIN( - 25 ) + + - 11 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-7520
SELECT 81 - MIN ( - 25 ) + + - 11 AS col1
----
95

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7522
SELECT MIN( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7522
SELECT MIN ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - ( - ( 18 ) ) * - 50 AS col0
----
-900

query I rowsort
SELECT ALL + 47 + 53 AS col2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT 28 + + COUNT( * ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-7525
SELECT 28 + + COUNT ( * ) AS col1
----
29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7527
SELECT ALL CASE - MIN( DISTINCT + - 36 ) WHEN + - 71 THEN - 8 + - - 15 + - 69 ELSE - 82 * - 66 END AS col2
----
5412

skipif mysql # not compatible
query I rowsort label-7527
SELECT ALL CASE - MIN ( DISTINCT + - 36 ) WHEN + - 71 THEN - 8 + - - 15 + - 69 ELSE - 82 * - 66 END AS col2
----
5412

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT DISTINCT SUM( 42 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-7528
SELECT DISTINCT SUM ( 42 ) AS col0
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-7529
SELECT ALL 56 DIV - - 46
----
1

skipif mysql # not compatible
query I rowsort label-7529
SELECT ALL 56 / - - 46
----
1

query I rowsort
SELECT DISTINCT - 21 * + - 76 * + - 66 - + - 0
----
-105336

query I rowsort
SELECT NULLIF ( 64, 36 )
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-7532
SELECT COALESCE ( + 37, + 75 DIV - + 26 )
----
37

skipif mysql # not compatible
query I rowsort label-7532
SELECT COALESCE ( + 37, + 75 / - + 26 )
----
37

query I rowsort
SELECT + ( - 58 ) + + - 66 - 70
----
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT - COUNT( * ) * MAX( ALL - 84 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-7534
SELECT - COUNT ( * ) * MAX ( ALL - 84 ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT DISTINCT 55 * CASE + 49 WHEN 60 THEN NULL WHEN + + MAX( ALL + - 7 ) THEN NULL ELSE + COUNT( * ) END * 2
----
110

skipif mysql # not compatible
query I rowsort label-7535
SELECT DISTINCT 55 * CASE + 49 WHEN 60 THEN NULL WHEN + + MAX ( ALL + - 7 ) THEN NULL ELSE + COUNT ( * ) END * 2
----
110

query I rowsort
SELECT DISTINCT + 40 * + 87
----
3480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7537
SELECT - - 35 - + 63 - - 4 DIV - COUNT( * ) col1
----
-32

skipif mysql # not compatible
query I rowsort label-7537
SELECT - - 35 - + 63 - - 4 / - COUNT ( * ) col1
----
-32

query I rowsort
SELECT + + 18 * - - 86 + + 33 + + 79 AS col2
----
1660

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT COALESCE ( + ( 38 ), + - MIN( DISTINCT - 89 ) ) * + - NULLIF ( + - COALESCE ( 70, + 87, - SUM( - + 33 ) ), + + AVG ( ALL + - 59 ) ) + - + 67
----
2593

skipif mysql # not compatible
query I rowsort label-7540
SELECT COALESCE ( + ( 38 ), + - MIN ( DISTINCT - 89 ) ) * + - NULLIF ( + - COALESCE ( 70, + 87, - SUM ( - + 33 ) ), + + AVG ( ALL + - 59 ) ) + - + 67
----
2593

query I rowsort
SELECT ALL - - 18 * 86 * + 34 + - 49 + 59
----
52642

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT ALL - + 51 * - CASE + 77 WHEN - 81 + - COUNT( * ) + - 40 THEN + - 9 END + + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-7542
SELECT ALL - + 51 * - CASE + 77 WHEN - 81 + - COUNT ( * ) + - 40 THEN + - 9 END + + 93
----
NULL

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

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

query II rowsort
SELECT ALL + - 27 * - 97, - 44 AS col0
----
2619
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7545
SELECT ALL + 91 + - - SUM( + 9 ) + + 17 + - 13 + 64 * + + 42
----
2792

skipif mysql # not compatible
query I rowsort label-7545
SELECT ALL + 91 + - - SUM ( + 9 ) + + 17 + - 13 + 64 * + + 42
----
2792

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT - - NULLIF ( - 16, - COUNT( * ) / 97 )
----
-16

skipif mysql # not compatible
query I rowsort label-7546
SELECT - - NULLIF ( - 16, - COUNT ( * ) / 97 )
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-7547
SELECT ALL ( - - 67 ), - MAX( 7 ) + 68 AS col2
----
67
61

skipif mysql # not compatible
query II rowsort label-7547
SELECT ALL ( - - 67 ), - MAX ( 7 ) + 68 AS col2
----
67
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7548
SELECT - 13 + 65, + COALESCE ( - 27, + 8 + - 4 + + - CAST( NULL AS SIGNED ), COUNT( * ) ) * + COUNT( * ) + - - NULLIF ( + 79, + 33 ) * 88 AS col0
----
52
6925

skipif mysql # not compatible
query II rowsort label-7548
SELECT - 13 + 65, + COALESCE ( - 27, + 8 + - 4 + + - CAST ( NULL AS INTEGER ), COUNT ( * ) ) * + COUNT ( * ) + - - NULLIF ( + 79, + 33 ) * 88 AS col0
----
52
6925

onlyif mysql # aggregate syntax: 
query II rowsort label-7549
SELECT DISTINCT + 98 - + 15 - NULLIF ( + COALESCE ( 75, - - COUNT( * ) * - - COUNT( * ), - MIN( - 67 ) ), COALESCE ( - + 34, - 72 * + 70 ) + + - 66 + COUNT( * ) ) AS col2, MIN( ALL + - COALESCE ( - - 41, 17 * + 21 + - + 86 + + 22 + + 88 ) ) - + 76 AS col1
----
8
-117

skipif mysql # not compatible
query II rowsort label-7549
SELECT DISTINCT + 98 - + 15 - NULLIF ( + COALESCE ( 75, - - COUNT ( * ) * - - COUNT ( * ), - MIN ( - 67 ) ), COALESCE ( - + 34, - 72 * + 70 ) + + - 66 + COUNT ( * ) ) AS col2, MIN ( ALL + - COALESCE ( - - 41, 17 * + 21 + - + 86 + + 22 + + 88 ) ) - + 76 AS col1
----
8
-117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7550
SELECT + 92 * + CAST( + - 91 AS SIGNED ) AS col1
----
-8372

skipif mysql # not compatible
query I rowsort label-7550
SELECT + 92 * + CAST ( + - 91 AS INTEGER ) AS col1
----
-8372

onlyif mysql # DIV for integer division: 
query II rowsort label-7551
SELECT DISTINCT + 43 DIV + - NULLIF ( + 81, + 91 ) AS col2, 90 + 77
----
0
167

skipif mysql # not compatible
query II rowsort label-7551
SELECT DISTINCT + 43 / + - NULLIF ( + 81, + 91 ) AS col2, 90 + 77
----
0
167

query I rowsort
SELECT ALL NULLIF ( + ( + 95 ), - 22 )
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-7553
SELECT - 47, SUM( DISTINCT + 37 ) AS col1
----
-47
37

skipif mysql # not compatible
query II rowsort label-7553
SELECT - 47, SUM ( DISTINCT + 37 ) AS col1
----
-47
37

query I rowsort
SELECT ALL - 25 * + 36
----
-900

query I rowsort
SELECT - 62 * + + CASE + 13 WHEN + + 69 THEN - 71 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 16 * + - 15 AS col0
----
240

onlyif mysql # DIV for integer division: 
query I rowsort label-7557
SELECT - 80 DIV + 71 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7557
SELECT - 80 / + 71 AS col2
----
-1

query I rowsort
SELECT + 50 + - 83 + 30 * 24 col0
----
687

onlyif mysql # DIV for integer division: 
query I rowsort label-7559
SELECT + 26 + + 64 + - 49 DIV 47
----
89

skipif mysql # not compatible
query I rowsort label-7559
SELECT + 26 + + 64 + - 49 / 47
----
89

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7561
SELECT - COUNT( * ) * - 72 / + + CASE 36 WHEN - 33 THEN - + 43 ELSE NULL END col1, + 23
----
NULL
23

skipif mysql # not compatible
query II rowsort label-7561
SELECT - COUNT ( * ) * - 72 / + + CASE 36 WHEN - 33 THEN - + 43 ELSE NULL END col1, + 23
----
NULL
23

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

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

query I rowsort
SELECT ALL + 53 * - 42 AS col1
----
-2226

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7564
SELECT - ( + 48 ) * + COUNT( * ) + + 24 DIV + 4
----
-42

skipif mysql # not compatible
query I rowsort label-7564
SELECT - ( + 48 ) * + COUNT ( * ) + + 24 / + 4
----
-42

onlyif mysql # DIV for integer division: 
query II rowsort label-7565
SELECT ALL + 1 AS col2, 89 DIV - 4
----
1
-22

skipif mysql # not compatible
query II rowsort label-7565
SELECT ALL + 1 AS col2, 89 / - 4
----
1
-22

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7566
SELECT ( + 43 ) * + 48 - - 36 + + 57 * CAST( 39 AS SIGNED ) DIV - + 45
----
2051

skipif mysql # not compatible
query I rowsort label-7566
SELECT ( + 43 ) * + 48 - - 36 + + 57 * CAST ( 39 AS INTEGER ) / - + 45
----
2051

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

skipif mysql # not compatible
query II rowsort label-7567
SELECT CAST ( NULL AS INTEGER ), - 16 col0
----
NULL
-16

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7568
SELECT - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) * + 52 + + 61 / - - 91 + - NULLIF ( - 64, + - 51 ) + - 39 + + 22 * - + 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7568
SELECT - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) * + 52 + + 61 / - - 91 + - NULLIF ( - 64, + - 51 ) + - 39 + + 22 * - + 48 AS col1
----
NULL

query I rowsort
SELECT ( - - 32 ) AS col2
----
32

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

query I rowsort
SELECT + 68 * + 0
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7573
SELECT ALL - - 74 * CAST( NULL AS SIGNED ) * - 80 + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-7573
SELECT ALL - - 74 * CAST ( NULL AS INTEGER ) * - 80 + 81
----
NULL

query I rowsort
SELECT DISTINCT - 63 * - + 57 + - + 19 - + 78
----
3494

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7575
SELECT - COUNT( * ) + SUM( DISTINCT + NULLIF ( - 5, - 30 * + CASE - 74 WHEN + ( 0 ) THEN NULL ELSE + 24 END * 55 ) ) + SUM( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7575
SELECT - COUNT ( * ) + SUM ( DISTINCT + NULLIF ( - 5, - 30 * + CASE - 74 WHEN + ( 0 ) THEN NULL ELSE + 24 END * 55 ) ) + SUM ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query II rowsort
SELECT 76 AS col0, - 98
----
76
-98

query I rowsort
SELECT ALL 58 * 56 + 23 AS col2
----
3271

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

skipif mysql # not compatible
query I rowsort label-7578
SELECT ALL + MIN ( ALL 58 ) * + COUNT ( * ) + + ( + 41 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT ALL + 55 * 87 + + MAX( ALL + - 65 ) + - COUNT( * )
----
4719

skipif mysql # not compatible
query I rowsort label-7579
SELECT ALL + 55 * 87 + + MAX ( ALL + - 65 ) + - COUNT ( * )
----
4719

onlyif mysql # aggregate syntax: 
query I rowsort label-7580
SELECT ALL - 19 * 15 + - 14 * + COUNT( * ) * + + 83
----
-1447

skipif mysql # not compatible
query I rowsort label-7580
SELECT ALL - 19 * 15 + - 14 * + COUNT ( * ) * + + 83
----
-1447

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7582
SELECT - 14 + - MIN( - 52 ) * - - CAST( - + COUNT( * ) AS SIGNED )
----
-66

skipif mysql # not compatible
query I rowsort label-7582
SELECT - 14 + - MIN ( - 52 ) * - - CAST ( - + COUNT ( * ) AS INTEGER )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT + 84 * COUNT( * ) * - 31 + + + 33 + ( COALESCE ( + 42, - 35 ) )
----
-2529

skipif mysql # not compatible
query I rowsort label-7583
SELECT + 84 * COUNT ( * ) * - 31 + + + 33 + ( COALESCE ( + 42, - 35 ) )
----
-2529

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT ALL + + 92 * + - ( - + 90 ) - + NULLIF ( + 52, + 23 + + COUNT( 20 ) ) * 6 - + 36 * COALESCE ( 32, - - 26 ) * + + 18 AS col2
----
-12768

skipif mysql # not compatible
query I rowsort label-7584
SELECT ALL + + 92 * + - ( - + 90 ) - + NULLIF ( + 52, + 23 + + COUNT ( 20 ) ) * 6 - + 36 * COALESCE ( 32, - - 26 ) * + + 18 AS col2
----
-12768

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7586
SELECT + - COUNT( * ) + - - 43 * - 10 + + + CAST( NULL AS SIGNED ) / + + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-7586
SELECT + - COUNT ( * ) + - - 43 * - 10 + + + CAST ( NULL AS INTEGER ) / + + 12
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7588
SELECT ALL CAST( COALESCE ( 21, + 3 ) AS SIGNED ) DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-7588
SELECT ALL CAST ( COALESCE ( 21, + 3 ) AS INTEGER ) / - 85
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7589
SELECT + 62 + + - CAST( + + 23 AS SIGNED ) * 40 + - 46 * + COUNT( * ) * 32 + + 97
----
-2233

skipif mysql # not compatible
query I rowsort label-7589
SELECT + 62 + + - CAST ( + + 23 AS INTEGER ) * 40 + - 46 * + COUNT ( * ) * 32 + + 97
----
-2233

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7590
SELECT ALL NULLIF ( - 29, 39 * + + COUNT( * ) * 87 * - CASE - 22 WHEN 50 * - MIN( + 84 ) THEN NULL ELSE 95 * CAST( NULL AS SIGNED ) * - 98 END )
----
-29

skipif mysql # not compatible
query I rowsort label-7590
SELECT ALL NULLIF ( - 29, 39 * + + COUNT ( * ) * 87 * - CASE - 22 WHEN 50 * - MIN ( + 84 ) THEN NULL ELSE 95 * CAST ( NULL AS INTEGER ) * - 98 END )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT COUNT( + + 93 ) - - 69
----
70

skipif mysql # not compatible
query I rowsort label-7591
SELECT COUNT ( + + 93 ) - - 69
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7592
SELECT 72 + + 51 * + COALESCE ( + 39, - - CAST( NULL AS SIGNED ) + 33 ) AS col0
----
2061

skipif mysql # not compatible
query I rowsort label-7592
SELECT 72 + + 51 * + COALESCE ( + 39, - - CAST ( NULL AS INTEGER ) + 33 ) AS col0
----
2061

query I rowsort
SELECT 56 * 94 * + + 51 AS col0
----
268464

query I rowsort
SELECT 91 + 61
----
152

query I rowsort
SELECT 62 + - + 82 - 92
----
-112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7596
SELECT ( 29 ) + + MAX( 93 ) * + COUNT( * ) + 1 + - + 46 * + - COUNT( * ) + - + COUNT( * ) - + 12 DIV + 4
----
165

skipif mysql # not compatible
query I rowsort label-7596
SELECT ( 29 ) + + MAX ( 93 ) * + COUNT ( * ) + 1 + - + 46 * + - COUNT ( * ) + - + COUNT ( * ) - + 12 / + 4
----
165

onlyif mysql # DIV for integer division: 
query I rowsort label-7597
SELECT ALL 78 DIV 25 col0
----
3

skipif mysql # not compatible
query I rowsort label-7597
SELECT ALL 78 / 25 col0
----
3

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7599
SELECT ALL + COUNT( * ) + - 76 + - COUNT( * ) + - 58 AS col0, - COUNT( ALL 8 )
----
-134
-1

skipif mysql # not compatible
query II rowsort label-7599
SELECT ALL + COUNT ( * ) + - 76 + - COUNT ( * ) + - 58 AS col0, - COUNT ( ALL 8 )
----
-134
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7600
SELECT ALL 31 + + 74 + + 41 DIV - 55 - - - 49
----
56

skipif mysql # not compatible
query I rowsort label-7600
SELECT ALL 31 + + 74 + + 41 / - 55 - - - 49
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-7601
SELECT 71 * + COUNT( * ), 79 AS col2
----
71
79

skipif mysql # not compatible
query II rowsort label-7601
SELECT 71 * + COUNT ( * ), 79 AS col2
----
71
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7602
SELECT 22 DIV 89 * - 63 + + ( + 71 ) + COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-7602
SELECT 22 / 89 * - 63 + + ( + 71 ) + COUNT ( * )
----
72

query II rowsort
SELECT ALL + 7 + + - 17 AS col1, 89 AS col1
----
-10
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7604
SELECT - NULLIF ( - - 74, + + CAST( + + 34 AS SIGNED ) ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-7604
SELECT - NULLIF ( - - 74, + + CAST ( + + 34 AS INTEGER ) ) AS col1
----
-74

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7606
SELECT DISTINCT - NULLIF ( 57, - ( - COUNT( * ) ) ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-7606
SELECT DISTINCT - NULLIF ( 57, - ( - COUNT ( * ) ) ) AS col2
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7607
SELECT DISTINCT + CAST( 25 AS SIGNED ) + + - 22 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-7607
SELECT DISTINCT + CAST ( 25 AS INTEGER ) + + - 22 AS col0
----
3

query I rowsort
SELECT 56 * + - ( + - 84 ) * - 80 + 5 AS col0
----
-376315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7609
SELECT - CAST( NULL AS SIGNED ) * - COUNT( * ) + - + 99 * 1 * - 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7609
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - + 99 * 1 * - 16 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT DISTINCT + MAX( ALL 16 ) - + 25 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-7610
SELECT DISTINCT + MAX ( ALL 16 ) - + 25 AS col0
----
-9

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

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

query I rowsort
SELECT ALL + COALESCE ( ( 77 ), ( 5 ) * 9 + - 20, NULLIF ( - + 41, + - 90 ) ) * - 55
----
-4235

onlyif mysql # aggregate syntax: 
query I rowsort label-7613
SELECT + 53 - 43 + + 21 + COUNT( * ) * + 20 * - - 72 * - - 19 * - 33 + + 29 AS col1
----
-902820

skipif mysql # not compatible
query I rowsort label-7613
SELECT + 53 - 43 + + 21 + COUNT ( * ) * + 20 * - - 72 * - - 19 * - 33 + + 29 AS col1
----
-902820

onlyif mysql # aggregate syntax: 
query II rowsort label-7614
SELECT - 62 * + + 47 col0, + COUNT( * )
----
-2914
1

skipif mysql # not compatible
query II rowsort label-7614
SELECT - 62 * + + 47 col0, + COUNT ( * )
----
-2914
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT DISTINCT - - 26 * + 36 * - COUNT( * ) - - - 34
----
-970

skipif mysql # not compatible
query I rowsort label-7615
SELECT DISTINCT - - 26 * + 36 * - COUNT ( * ) - - - 34
----
-970

onlyif mysql # DIV for integer division: 
query I rowsort label-7616
SELECT 30 DIV 35
----
0

skipif mysql # not compatible
query I rowsort label-7616
SELECT 30 / 35
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7617
SELECT 66 DIV - ( + MAX( ALL + 27 ) ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-7617
SELECT 66 / - ( + MAX ( ALL + 27 ) ) AS col1
----
-2

query II rowsort
SELECT 51 AS col1, + 14 * 14 AS col0
----
51
196

onlyif mysql # DIV for integer division: 
query II rowsort label-7619
SELECT - 8 col1, - 74 DIV 31 col0
----
-8
-2

skipif mysql # not compatible
query II rowsort label-7619
SELECT - 8 col1, - 74 / 31 col0
----
-8
-2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT ALL SUM( DISTINCT - - 42 ) + + + 5 * 20 - + 45 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-7621
SELECT ALL SUM ( DISTINCT - - 42 ) + + + 5 * 20 - + 45 AS col1
----
97

query I rowsort
SELECT DISTINCT 26 + - 35 AS col1
----
-9

query I rowsort
SELECT DISTINCT 37 * 82 AS col2
----
3034

query I rowsort
SELECT ALL 61 + 31 + + ( 37 )
----
129

query I rowsort
SELECT ALL 31 + + + 45
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7626
SELECT MAX( - 94 ) + 11 AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-7626
SELECT MAX ( - 94 ) + 11 AS col0
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7627
SELECT ALL 25 + 8 + - + 90 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7627
SELECT ALL 25 + 8 + - + 90 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7628
SELECT DISTINCT 84 AS col1, - 27 * - + NULLIF ( + COUNT( * ), + - 26 * - 66 ) AS col0
----
84
27

skipif mysql # not compatible
query II rowsort label-7628
SELECT DISTINCT 84 AS col1, - 27 * - + NULLIF ( + COUNT ( * ), + - 26 * - 66 ) AS col0
----
84
27

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

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

query I rowsort
SELECT + 94 - 42 AS col2
----
52

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7632
SELECT ALL ( + - 32 ) * 14 + - - COUNT( - 9 ) + - 56 col1, 76 col1
----
-503
76

skipif mysql # not compatible
query II rowsort label-7632
SELECT ALL ( + - 32 ) * 14 + - - COUNT ( - 9 ) + - 56 col1, 76 col1
----
-503
76

onlyif mysql # DIV for integer division: 
query I rowsort label-7633
SELECT DISTINCT + 43 DIV - 26
----
-1

skipif mysql # not compatible
query I rowsort label-7633
SELECT DISTINCT + 43 / - 26
----
-1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7635
SELECT - 44 * 71 * - + MIN( - 23 ) * + - 16, + 95 AS col0
----
1149632
95

skipif mysql # not compatible
query II rowsort label-7635
SELECT - 44 * 71 * - + MIN ( - 23 ) * + - 16, + 95 AS col0
----
1149632
95

query I rowsort
SELECT 46 * 75 + - + 27
----
3423

onlyif mysql # aggregate syntax: 
query II rowsort label-7637
SELECT MIN( - 39 ) - 44 AS col2, 94
----
-83
94

skipif mysql # not compatible
query II rowsort label-7637
SELECT MIN ( - 39 ) - 44 AS col2, 94
----
-83
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7638
SELECT + MIN( ALL 88 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-7638
SELECT + MIN ( ALL 88 ) AS col1
----
88

query II rowsort
SELECT 86 AS col0, 84
----
86
84

onlyif mysql # aggregate syntax: 
query II rowsort label-7640
SELECT + NULLIF ( + + 78, + COUNT( * ) ) * - 30 + - + 97 AS col1, 68 AS col1
----
-2437
68

skipif mysql # not compatible
query II rowsort label-7640
SELECT + NULLIF ( + + 78, + COUNT ( * ) ) * - 30 + - + 97 AS col1, 68 AS col1
----
-2437
68

query I rowsort
SELECT ALL + 60 - - 60 + - ( + + 78 )
----
42

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

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

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

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

query I rowsort
SELECT DISTINCT 2 * + ( + 60 ) * 67 + 19 AS col1
----
8059

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7646
SELECT ALL CASE + - 89 WHEN + 23 * + CAST( + 37 AS SIGNED ) THEN + 57 / + + 60 + - - SUM( - 22 ) + - COALESCE ( - - 90, + 75 * - 72 * 47 - + 23 * - 66 * - 81, COUNT( * ) ) - 93 + - 63 * - + ( + ( 59 ) ) - + - 47 * 77 WHEN + 13 THEN NULL WHEN - ( - 3 ) * + CAST( NULL AS SIGNED ) THEN NULL WHEN - - 98 + - 45 THEN - COALESCE ( - - 2, - + NULLIF ( + ( - 73 ), + - 29 * + 0 ), + 61 + - 78 * - - 90 - + 90, COUNT( * ) + + CAST( NULL AS SIGNED ) ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7646
SELECT ALL CASE + - 89 WHEN + 23 * + CAST ( + 37 AS INTEGER ) THEN + 57 / + + 60 + - - SUM ( - 22 ) + - COALESCE ( - - 90, + 75 * - 72 * 47 - + 23 * - 66 * - 81, COUNT ( * ) ) - 93 + - 63 * - + ( + ( 59 ) ) - + - 47 * 77 WHEN + 13 THEN NULL WHEN - ( - 3 ) * + CAST ( NULL AS INTEGER ) THEN NULL WHEN - - 98 + - 45 THEN - COALESCE ( - - 2, - + NULLIF ( + ( - 73 ), + - 29 * + 0 ), + 61 + - 78 * - - 90 - + 90, COUNT ( * ) + + CAST ( NULL AS INTEGER ) ) ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT - 97 AS col2, - 78 * - 45 + 35 * + - 79 AS col1
----
-97
745

query I rowsort
SELECT 21 * 53 + - + 36 * 49 * - 6
----
11697

query II rowsort
SELECT 23 col2, - 84 AS col1
----
23
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT - MIN( 86 ) + - 98
----
-184

skipif mysql # not compatible
query I rowsort label-7650
SELECT - MIN ( 86 ) + - 98
----
-184

query II rowsort
SELECT ALL + 21 + - 85 AS col1, 22
----
-64
22

onlyif mysql # aggregate syntax: 
query II rowsort label-7652
SELECT ALL COUNT( * ), 54 col2
----
1
54

skipif mysql # not compatible
query II rowsort label-7652
SELECT ALL COUNT ( * ), 54 col2
----
1
54

query I rowsort
SELECT - 73 + COALESCE ( - ( + ( + + 36 ) ), 27 - - 63 ) col0
----
-109

query I rowsort
SELECT DISTINCT - 49 * + - 90
----
4410

query I rowsort
SELECT ALL + 94 + 1 * - 15 AS col1
----
79

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7657
SELECT - 75 AS col2, 66 + - ( + + COUNT( * ) ) + + 44 + COALESCE ( + - 11, - 19 + - 19 ) DIV 11 * - + 75 * 29
----
-75
2284

skipif mysql # not compatible
query II rowsort label-7657
SELECT - 75 AS col2, 66 + - ( + + COUNT ( * ) ) + + 44 + COALESCE ( + - 11, - 19 + - 19 ) / 11 * - + 75 * 29
----
-75
2284

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7658
SELECT - 29 col2, 46 + COUNT( * ) * + 1 - - 15 + - CASE + + 77 WHEN + + 42 THEN + + 69 * - - 42 WHEN - + COUNT( * ) THEN + 3 / - - CAST( 78 AS SIGNED ) + + + 75 * - ( 49 ) END
----
-29
NULL

skipif mysql # not compatible
query II rowsort label-7658
SELECT - 29 col2, 46 + COUNT ( * ) * + 1 - - 15 + - CASE + + 77 WHEN + + 42 THEN + + 69 * - - 42 WHEN - + COUNT ( * ) THEN + 3 / - - CAST ( 78 AS INTEGER ) + + + 75 * - ( 49 ) END
----
-29
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7660
SELECT + 83 + CASE 88 WHEN - 33 THEN - COUNT( * ) * - 62 + AVG ( 9 ) * + - COALESCE ( - 37, + CAST( NULL AS SIGNED ), - 56 ) / + + 14 WHEN + - COUNT( * ) * + + 20 THEN 80 ELSE NULL END + - 87 + + + COALESCE ( + ( 93 ), + 74 ) - - 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7660
SELECT + 83 + CASE 88 WHEN - 33 THEN - COUNT ( * ) * - 62 + AVG ( 9 ) * + - COALESCE ( - 37, + CAST ( NULL AS INTEGER ), - 56 ) / + + 14 WHEN + - COUNT ( * ) * + + 20 THEN 80 ELSE NULL END + - 87 + + + COALESCE ( + ( 93 ), + 74 ) - - 66 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7661
SELECT ALL + 5 - - COUNT ( * ) AS col0
----
6

query II rowsort
SELECT 27 AS col1, + 74 * + 67 AS col1
----
27
4958

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT + - 19 * - CASE + 81 WHEN + + COUNT( * ) THEN NULL WHEN 15 - 17 THEN + 70 ELSE 64 END AS col1
----
1216

skipif mysql # not compatible
query I rowsort label-7663
SELECT + - 19 * - CASE + 81 WHEN + + COUNT ( * ) THEN NULL WHEN 15 - 17 THEN + 70 ELSE 64 END AS col1
----
1216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7664
SELECT + 56 DIV + + 55 + - 77 - 76 + - 49 * + 69 - COUNT( * ) * 65 * + ( - + COUNT( 71 ) ) * - 20 AS col1
----
-4833

skipif mysql # not compatible
query I rowsort label-7664
SELECT + 56 / + + 55 + - 77 - 76 + - 49 * + 69 - COUNT ( * ) * 65 * + ( - + COUNT ( 71 ) ) * - 20 AS col1
----
-4833

query II rowsort
SELECT + 81 * + 58 + - 17 * + 57 * - 34 - + 30 AS col0, + 5
----
37614
5

onlyif mysql # DIV for integer division: 
query II rowsort label-7666
SELECT 7 col2, 60 * + - 68 * 14 + - 92 DIV 67 AS col2
----
7
-57121

skipif mysql # not compatible
query II rowsort label-7666
SELECT 7 col2, 60 * + - 68 * 14 + - 92 / 67 AS col2
----
7
-57121

query I rowsort
SELECT + 10 * - 53 + - + 46
----
-576

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-7668
SELECT + 8 DIV + 23 + + 78 + NULLIF ( - 91, CAST( - ( - - 44 ) AS DECIMAL ) ) + ( 67 ) col0
----
54

skipif mysql # not compatible
query I rowsort label-7668
SELECT + 8 / + 23 + + 78 + NULLIF ( - 91, CAST ( - ( - - 44 ) AS REAL ) ) + ( 67 ) col0
----
54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-7669
SELECT - - ( 0 ) * + - COUNT( + ( - - 78 ) ) * - 8 DIV - - NULLIF ( 74, + + 24 - + CAST( 22 AS DECIMAL ) ) * + 34 * - 25 * + + 38 * + ( - + ( + 62 ) ) + - 47 + - ( + 77 ) + + CASE - COALESCE ( 2, - 69 - + MAX( 46 ), + 46 - - + 52 * 98 ) WHEN - + AVG ( 94 ) + 89 - NULLIF ( + 69, - - 52 * + ( 38 ) ) + 78 + 92 DIV + 14 + 73 THEN NULL WHEN + 49 THEN 22 + + 41 ELSE + 43 END AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-7669
SELECT - - ( 0 ) * + - COUNT ( + ( - - 78 ) ) * - 8 / - - NULLIF ( 74, + + 24 - + CAST ( 22 AS REAL ) ) * + 34 * - 25 * + + 38 * + ( - + ( + 62 ) ) + - 47 + - ( + 77 ) + + CASE - COALESCE ( 2, - 69 - + MAX ( 46 ), + 46 - - + 52 * 98 ) WHEN - + AVG ( 94 ) + 89 - NULLIF ( + 69, - - 52 * + ( 38 ) ) + 78 + 92 / + 14 + 73 THEN NULL WHEN + 49 THEN 22 + + 41 ELSE + 43 END AS col0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-7670
SELECT DISTINCT + 81 DIV + + 48 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7670
SELECT DISTINCT + 81 / + + 48 AS col0
----
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7672
SELECT ALL + 37 DIV - NULLIF ( + 20, + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7672
SELECT ALL + 37 / - NULLIF ( + 20, + COUNT ( * ) )
----
-1

query II rowsort
SELECT ALL + - 18 AS col2, 38 * - 46 + + 69 + 39 AS col1
----
-18
-1640

onlyif mysql # aggregate syntax: 
query I rowsort label-7674
SELECT - 67 + - COUNT( * ) + + 66 * COALESCE ( + - 59, COALESCE ( - 4, + ( + COUNT( * ) ) ) * 12 ) + + 86 AS col1
----
-3876

skipif mysql # not compatible
query I rowsort label-7674
SELECT - 67 + - COUNT ( * ) + + 66 * COALESCE ( + - 59, COALESCE ( - 4, + ( + COUNT ( * ) ) ) * 12 ) + + 86 AS col1
----
-3876

query I rowsort
SELECT DISTINCT + - NULLIF ( - - 47, - - 49 ) AS col0
----
-47

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

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

query I rowsort
SELECT ALL 31 * + 85 + + 68 AS col1
----
2703

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7678
SELECT CASE COUNT( * ) WHEN 59 THEN ( - ( - 62 ) ) * + ( - + 13 ) WHEN 98 THEN - + 79 * + + COUNT( - + 13 ) / - CAST( NULL AS SIGNED ) + 37 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7678
SELECT CASE COUNT ( * ) WHEN 59 THEN ( - ( - 62 ) ) * + ( - + 13 ) WHEN 98 THEN - + 79 * + + COUNT ( - + 13 ) / - CAST ( NULL AS INTEGER ) + 37 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT DISTINCT COALESCE ( - + 2, + 24 + - 12, 26 + - 31 + CASE + + MAX( DISTINCT 64 ) WHEN - 53 THEN NULL ELSE - 11 END * - 22 ) * + - COUNT( * ) - - COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-7679
SELECT DISTINCT COALESCE ( - + 2, + 24 + - 12, 26 + - 31 + CASE + + MAX ( DISTINCT 64 ) WHEN - 53 THEN NULL ELSE - 11 END * - 22 ) * + - COUNT ( * ) - - COUNT ( * )
----
3

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

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

query II rowsort
SELECT ALL 62 * - 4, - 32 * 61 AS col0
----
-248
-1952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7682
SELECT - CAST( MIN( DISTINCT - 36 ) AS SIGNED ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-7682
SELECT - CAST ( MIN ( DISTINCT - 36 ) AS INTEGER ) AS col1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7683
SELECT - 31 - - CASE - 15 WHEN - - 97 THEN - - 21 * 76 ELSE - + CAST( + SUM( ALL 72 ) AS SIGNED ) END + + 82 * - 53 AS col1
----
-4449

skipif mysql # not compatible
query I rowsort label-7683
SELECT - 31 - - CASE - 15 WHEN - - 97 THEN - - 21 * 76 ELSE - + CAST ( + SUM ( ALL 72 ) AS INTEGER ) END + + 82 * - 53 AS col1
----
-4449

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7684
SELECT - CAST( NULL AS SIGNED ) * CASE - - 39 WHEN + + 42 / + + 98 + - COUNT( * ) + 23 THEN 4 WHEN + + 82 * - 15 THEN + AVG ( DISTINCT - 40 ) * - + 87 * 20 WHEN + 54 * - 36 * + MAX( DISTINCT + 21 ) THEN + 61 * - + 1 + 15 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7684
SELECT - CAST ( NULL AS INTEGER ) * CASE - - 39 WHEN + + 42 / + + 98 + - COUNT ( * ) + 23 THEN 4 WHEN + + 82 * - 15 THEN + AVG ( DISTINCT - 40 ) * - + 87 * 20 WHEN + 54 * - 36 * + MAX ( DISTINCT + 21 ) THEN + 61 * - + 1 + 15 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7685
SELECT ALL 13 DIV + MAX( - 33 )
----
0

skipif mysql # not compatible
query I rowsort label-7685
SELECT ALL 13 / + MAX ( - 33 )
----
0

query II rowsort
SELECT DISTINCT + 45 - 6 AS col2, 93 * - 81
----
39
-7533

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT DISTINCT + 73 * + 92 * COUNT( * )
----
6716

skipif mysql # not compatible
query I rowsort label-7687
SELECT DISTINCT + 73 * + 92 * COUNT ( * )
----
6716

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT - + 48 * SUM( DISTINCT 36 )
----
-1728

skipif mysql # not compatible
query I rowsort label-7689
SELECT - + 48 * SUM ( DISTINCT 36 )
----
-1728

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

skipif mysql # not compatible
query I rowsort label-7690
SELECT ALL - + ( - + 65 ) * - MAX ( - + 0 ) AS col2
----
0

query I rowsort
SELECT - - 73 - + 76 AS col0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7692
SELECT - + COUNT( * ) + - 84 * - 94 DIV - COUNT( ALL + ( + - CAST( 62 AS SIGNED ) ) ) * - COALESCE ( + COUNT( * ), + 45 * - 22 + + - 32 ) - + 55 AS col0
----
7840

skipif mysql # not compatible
query I rowsort label-7692
SELECT - + COUNT ( * ) + - 84 * - 94 / - COUNT ( ALL + ( + - CAST ( 62 AS INTEGER ) ) ) * - COALESCE ( + COUNT ( * ), + 45 * - 22 + + - 32 ) - + 55 AS col0
----
7840

query I rowsort
SELECT - - 29 + + 0 + - COALESCE ( + 25, - 10 + + 94 + - 34 - + 78 * + 69, + 97 * + 54 ) * - 63
----
1604

query I rowsort
SELECT - 79 * + 74 AS col2
----
-5846

query I rowsort
SELECT - 65 * + 41 + - - 32
----
-2633

query I rowsort
SELECT + + 47 * + COALESCE ( + 9, 30 ) AS col2
----
423

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7697
SELECT + 78 DIV - 24 + + COALESCE ( - 93, 74, + ( + COUNT( * ) ) * + 32 ) + + + 17 AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-7697
SELECT + 78 / - 24 + + COALESCE ( - 93, 74, + ( + COUNT ( * ) ) * + 32 ) + + + 17 AS col0
----
-79

query I rowsort
SELECT ALL + + 82 + + 30 + + 60 col2
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT - 74 * + + 62 - - COUNT( DISTINCT 17 ) + - 30 AS col2
----
-4617

skipif mysql # not compatible
query I rowsort label-7699
SELECT - 74 * + + 62 - - COUNT ( DISTINCT 17 ) + - 30 AS col2
----
-4617

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT - ( SUM( ALL - - 0 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7700
SELECT - ( SUM ( ALL - - 0 ) ) AS col2
----
0

query I rowsort
SELECT - 81 * - - 40
----
-3240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7702
SELECT 22 * - 5 + - COUNT( * ) - - + 11 * + COUNT( * ) * - + 45 + - - 15 + + COUNT( * ) DIV + 78 * CAST( 99 AS SIGNED )
----
-591

skipif mysql # not compatible
query I rowsort label-7702
SELECT 22 * - 5 + - COUNT ( * ) - - + 11 * + COUNT ( * ) * - + 45 + - - 15 + + COUNT ( * ) / + 78 * CAST ( 99 AS INTEGER )
----
-591

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7703
SELECT DISTINCT + 58 + CAST( - CAST( NULL AS DECIMAL ) AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7703
SELECT DISTINCT + 58 + CAST ( - CAST ( NULL AS REAL ) AS REAL ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7704
SELECT 80 DIV - + 82 * - ( ( - - 88 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7704
SELECT 80 / - + 82 * - ( ( - - 88 ) )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7706
SELECT ALL 74 + MAX( + 52 ) AS col1
----
126

skipif mysql # not compatible
query I rowsort label-7706
SELECT ALL 74 + MAX ( + 52 ) AS col1
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7707
SELECT 62, 99 DIV NULLIF ( - 68, + + 74 ) + - NULLIF ( + 28, + 24 ) + + 51 * + - COALESCE ( + 20, 74 ) * 48 DIV - COUNT( * ) + + - 44 * - CAST( 48 AS SIGNED ) + COUNT( * ) AS col2
----
62
51044

skipif mysql # not compatible
query II rowsort label-7707
SELECT 62, 99 / NULLIF ( - 68, + + 74 ) + - NULLIF ( + 28, + 24 ) + + 51 * + - COALESCE ( + 20, 74 ) * 48 / - COUNT ( * ) + + - 44 * - CAST ( 48 AS INTEGER ) + COUNT ( * ) AS col2
----
62
51044

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7708
SELECT 0 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7708
SELECT 0 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 71 + + 25
----
96

onlyif mysql # DIV for integer division: 
query II rowsort label-7710
SELECT 7 DIV - 55 * 71 AS col2, 94 AS col1
----
0
94

skipif mysql # not compatible
query II rowsort label-7710
SELECT 7 / - 55 * 71 AS col2, 94 AS col1
----
0
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7711
SELECT DISTINCT 67 * + CAST( NULL AS SIGNED ) * - COALESCE ( + + COUNT( * ), CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7711
SELECT DISTINCT 67 * + CAST ( NULL AS INTEGER ) * - COALESCE ( + + COUNT ( * ), CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT 78, 67 AS col0
----
78
67

query I rowsort
SELECT ALL 14 - 90 * 48 * - 3
----
12974

query I rowsort
SELECT ALL 72 * - 39
----
-2808

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

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

query II rowsort
SELECT ALL 76 col0, 55 + + 39 AS col0
----
76
94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT ALL + SUM( DISTINCT + 7 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-7718
SELECT ALL + SUM ( DISTINCT + 7 ) AS col2
----
7

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

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

query I rowsort
SELECT - 24 + + + 23 AS col2
----
-1

query I rowsort
SELECT + 33 * + 23 col0
----
759

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7724
SELECT ALL CAST( 79 AS SIGNED )
----
79

skipif mysql # not compatible
query I rowsort label-7724
SELECT ALL CAST ( 79 AS INTEGER )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT CASE - COUNT( DISTINCT 83 ) WHEN - 8 THEN + + AVG ( + 47 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7725
SELECT CASE - COUNT ( DISTINCT 83 ) WHEN - 8 THEN + + AVG ( + 47 ) END
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7727
SELECT 95 DIV 4 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-7727
SELECT 95 / 4 AS col1
----
23

query I rowsort
SELECT - 56 * + 71
----
-3976

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7729
SELECT - 65 DIV 31 * - - COALESCE ( - ( - COUNT( * ) ), + 5, 1 * - - 78 ) * - - 59 AS col0
----
-118

skipif mysql # not compatible
query I rowsort label-7729
SELECT - 65 / 31 * - - COALESCE ( - ( - COUNT ( * ) ), + 5, 1 * - - 78 ) * - - 59 AS col0
----
-118

onlyif mysql # aggregate syntax: 
query II rowsort label-7730
SELECT + 49 * 41 * COUNT( * ) AS col1, 80 * - 21 + - 49 AS col1
----
2009
-1729

skipif mysql # not compatible
query II rowsort label-7730
SELECT + 49 * 41 * COUNT ( * ) AS col1, 80 * - 21 + - 49 AS col1
----
2009
-1729

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7731
SELECT ALL + - COUNT( ALL 64 ) + + CAST( + 18 AS SIGNED ) DIV + 62
----
-1

skipif mysql # not compatible
query I rowsort label-7731
SELECT ALL + - COUNT ( ALL 64 ) + + CAST ( + 18 AS INTEGER ) / + 62
----
-1

query I rowsort
SELECT ALL + 8 + - - 1 AS col1
----
9

query I rowsort
SELECT 62 * + 30 * + + 59 AS col1
----
109740

query I rowsort
SELECT 65 + - 78 + 99 * 47 * - 22 + 37 AS col1
----
-102342

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT ALL - NULLIF ( - 94, + MIN( + + 47 ) ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-7735
SELECT ALL - NULLIF ( - 94, + MIN ( + + 47 ) ) AS col2
----
94

query I rowsort
SELECT 10 * + 53
----
530

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT 99 * + - 56 + - SUM( + - 62 ) * + 17
----
-4490

skipif mysql # not compatible
query I rowsort label-7737
SELECT 99 * + - 56 + - SUM ( + - 62 ) * + 17
----
-4490

query I rowsort
SELECT ALL 26 * + 77 AS col2
----
2002

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7739
SELECT ALL - COALESCE ( + 96, 89 * 55 + 74 + + 88 * 1 * + + 92 * + - 86 ) AS col2, + CAST( NULL AS SIGNED ) + 77 + ( 7 ) / 1 * + 15 + - + 22
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-7739
SELECT ALL - COALESCE ( + 96, 89 * 55 + 74 + + 88 * 1 * + + 92 * + - 86 ) AS col2, + CAST ( NULL AS INTEGER ) + 77 + ( 7 ) / 1 * + 15 + - + 22
----
-96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT DISTINCT 61 - - MAX( 62 )
----
123

skipif mysql # not compatible
query I rowsort label-7740
SELECT DISTINCT 61 - - MAX ( 62 )
----
123

query I rowsort
SELECT ALL - 73 * + 2 AS col2
----
-146

query II rowsort
SELECT DISTINCT - ( - 37 ) AS col1, + 25
----
37
25

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

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

query I rowsort
SELECT 25 * - 3 AS col0
----
-75

query I rowsort
SELECT ALL - 76 * + 26 AS col0
----
-1976

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7747
SELECT + 88 * + CAST( + - 15 AS SIGNED ) - 51
----
-1371

skipif mysql # not compatible
query I rowsort label-7747
SELECT + 88 * + CAST ( + - 15 AS INTEGER ) - 51
----
-1371

query II rowsort
SELECT - + 55 - - 68 AS col2, 64 AS col2
----
13
64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT ALL + 0 + + COUNT( * ) - - 42 + + + 38 - 71 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-7750
SELECT ALL + 0 + + COUNT ( * ) - - 42 + + + 38 - 71 AS col1
----
10

query I rowsort
SELECT ALL - - 90 * + - 15 AS col1
----
-1350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7752
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 69 + COUNT( * ) + + 46 + - ( + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7752
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 69 + COUNT ( * ) + + 46 + - ( + COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7753
SELECT DISTINCT - + COUNT( * ) * - COALESCE ( + NULLIF ( - - 51, MAX( 36 ) ), - 43 ) AS col1, - 13 + + CAST( 86 AS SIGNED ) * - 46 * + ( 63 ) AS col2
----
51
-249241

skipif mysql # not compatible
query II rowsort label-7753
SELECT DISTINCT - + COUNT ( * ) * - COALESCE ( + NULLIF ( - - 51, MAX ( 36 ) ), - 43 ) AS col1, - 13 + + CAST ( 86 AS INTEGER ) * - 46 * + ( 63 ) AS col2
----
51
-249241

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7754
SELECT COALESCE ( + 24, + CASE + 8 WHEN + 40 DIV + 1 THEN 68 DIV - - 95 END * + CAST( NULL AS SIGNED ) ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-7754
SELECT COALESCE ( + 24, + CASE + 8 WHEN + 40 / + 1 THEN 68 / - - 95 END * + CAST ( NULL AS INTEGER ) ) AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT COALESCE ( COUNT( * ), + 68 * COUNT( * ) - + COUNT( * ) - + 0 + - ( - ( + 21 ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7755
SELECT COALESCE ( COUNT ( * ), + 68 * COUNT ( * ) - + COUNT ( * ) - + 0 + - ( - ( + 21 ) ) ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7756
SELECT COALESCE ( + - COUNT( * ), COUNT( * ) DIV - - 14 + + SUM( ( - 21 ) ) * 27 + + NULLIF ( - - 30, 41 ), + 58 DIV 88 DIV - 87 )
----
-1

skipif mysql # not compatible
query I rowsort label-7756
SELECT COALESCE ( + - COUNT ( * ), COUNT ( * ) / - - 14 + + SUM ( ( - 21 ) ) * 27 + + NULLIF ( - - 30, 41 ), + 58 / 88 / - 87 )
----
-1

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

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

query II rowsort
SELECT ALL + ( 83 ) * + 0 * - + 45 - - 47, + 64 AS col0
----
47
64

query I rowsort
SELECT - 91 * 55
----
-5005

query I rowsort
SELECT ALL - 4 * + - 11
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-7761
SELECT 31 DIV 27 - - 6 + - - 58 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-7761
SELECT 31 / 27 - - 6 + - - 58 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7762
SELECT COALESCE ( - COUNT( * ), - 86, + - 39 )
----
-1

skipif mysql # not compatible
query I rowsort label-7762
SELECT COALESCE ( - COUNT ( * ), - 86, + - 39 )
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT COALESCE ( 65, - ( - + COUNT( * ) ) * + 50 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-7764
SELECT COALESCE ( 65, - ( - + COUNT ( * ) ) * + 50 ) AS col1
----
65

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT - ( + + 47 ) + - ( COUNT( * ) ) * - 7 - - 2 AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-7767
SELECT - ( + + 47 ) + - ( COUNT ( * ) ) * - 7 - - 2 AS col1
----
-38

query I rowsort
SELECT - 80 * + - 63 - + 90 * - - 34
----
1980

query I rowsort
SELECT + 13 * - - 8
----
104

query I rowsort
SELECT ALL - 41 * - 15 * - 95 col1
----
-58425

query I rowsort
SELECT - 25 + 68
----
43

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

skipif mysql # not compatible
query I rowsort label-7772
SELECT MAX ( + - 48 )
----
-48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT - 18 + + MAX( ( 12 ) )
----
-6

skipif mysql # not compatible
query I rowsort label-7774
SELECT - 18 + + MAX ( ( 12 ) )
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-7775
SELECT - - 42 DIV - 40
----
-1

skipif mysql # not compatible
query I rowsort label-7775
SELECT - - 42 / - 40
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7776
SELECT ALL - 36 * + + 81 * CAST( NULL AS SIGNED ) + - + ( ( 9 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7776
SELECT ALL - 36 * + + 81 * CAST ( NULL AS INTEGER ) + - + ( ( 9 ) )
----
NULL

query I rowsort
SELECT DISTINCT + - 88 + + 99 + + 41
----
52

query I rowsort
SELECT ALL 89 + + 62 AS col1
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT + 58 + 18 - + + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-7779
SELECT + 58 + 18 - + + COUNT ( * )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT ALL + 65 + - - COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-7780
SELECT ALL + 65 + - - COUNT ( * )
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-7781
SELECT + - ( + - 13 ) + - 86 AS col2, COUNT( * ) AS col2
----
-73
1

skipif mysql # not compatible
query II rowsort label-7781
SELECT + - ( + - 13 ) + - 86 AS col2, COUNT ( * ) AS col2
----
-73
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7782
SELECT - + 15 DIV - 7 col1
----
2

skipif mysql # not compatible
query I rowsort label-7782
SELECT - + 15 / - 7 col1
----
2

query I rowsort
SELECT + + 10 + 50
----
60

query I rowsort
SELECT + - 35 + - 15 AS col0
----
-50

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7786
SELECT ALL + 60 DIV - 97
----
0

skipif mysql # not compatible
query I rowsort label-7786
SELECT ALL + 60 / - 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT DISTINCT - 2 + - MIN( + + 63 ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-7787
SELECT DISTINCT - 2 + - MIN ( + + 63 ) AS col0
----
-65

query I rowsort
SELECT ALL COALESCE ( + 51, 56 ) * + 42 AS col1
----
2142

query I rowsort
SELECT + 88 * + 68 * + 74
----
442816

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT ALL ( COUNT( DISTINCT + 99 ) ) - + - MAX( + 74 ) - COUNT( + 97 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-7790
SELECT ALL ( COUNT ( DISTINCT + 99 ) ) - + - MAX ( + 74 ) - COUNT ( + 97 ) AS col1
----
74

query I rowsort
SELECT + 21 * ( - 86 ) AS col2
----
-1806

query I rowsort
SELECT + 27 * 97 AS col2
----
2619

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7795
SELECT CAST( + + CASE + 78 WHEN + 64 THEN NULL WHEN + 18 * - COUNT( * ) + - 87 + + - 26 * - ( 86 ) * - - 18 THEN NULL WHEN - 68 THEN NULL ELSE - - MIN( DISTINCT 26 ) END AS SIGNED )
----
26

skipif mysql # not compatible
query I rowsort label-7795
SELECT CAST ( + + CASE + 78 WHEN + 64 THEN NULL WHEN + 18 * - COUNT ( * ) + - 87 + + - 26 * - ( 86 ) * - - 18 THEN NULL WHEN - 68 THEN NULL ELSE - - MIN ( DISTINCT 26 ) END AS INTEGER )
----
26

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

skipif mysql # not compatible
query II rowsort label-7796
SELECT CAST ( NULL AS INTEGER ) col0, 2
----
NULL
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7797
SELECT ALL + 26 AS col1, 8 DIV + 86 * COUNT( - - 38 )
----
26
0

skipif mysql # not compatible
query II rowsort label-7797
SELECT ALL + 26 AS col1, 8 / + 86 * COUNT ( - - 38 )
----
26
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7798
SELECT DISTINCT + 29 AS col1, 36 DIV - 58 * - 49 * - + 89 * 77 AS col1
----
29
0

skipif mysql # not compatible
query II rowsort label-7798
SELECT DISTINCT + 29 AS col1, 36 / - 58 * - 49 * - + 89 * 77 AS col1
----
29
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7799
SELECT DISTINCT + 32, - CAST( NULL AS SIGNED ) * - + CAST( - 58 AS SIGNED ) AS col2
----
32
NULL

skipif mysql # not compatible
query II rowsort label-7799
SELECT DISTINCT + 32, - CAST ( NULL AS INTEGER ) * - + CAST ( - 58 AS INTEGER ) AS col2
----
32
NULL

query III rowsort
SELECT ALL + 71 AS col0, 76 + 9 * + 62 AS col0, + 90 AS col2
----
71
634
90

query II rowsort
SELECT DISTINCT + 42 AS col0, + 86 * - + 48
----
42
-4128

query I rowsort
SELECT - 55 + 3 AS col2
----
-52

query I rowsort
SELECT + 25 * - + 58
----
-1450

query I rowsort
SELECT - 13 * + 27 + + + ( 67 ) col0
----
-284

query I rowsort
SELECT - 1 * 29 AS col0
----
-29

query I rowsort
SELECT 74 * - 74 + - 53 * 56 * + 74 * - 49
----
10756492

query I rowsort
SELECT ( - ( 28 ) )
----
-28

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7809
SELECT ALL - 30 * - 33 + 92 DIV + + COUNT( * ) AS col0, COUNT( * ) - - 50
----
1082
51

skipif mysql # not compatible
query II rowsort label-7809
SELECT ALL - 30 * - 33 + 92 / + + COUNT ( * ) AS col0, COUNT ( * ) - - 50
----
1082
51

query I rowsort
SELECT + 43 * - + 96 * + 2 - - - 18 AS col2
----
-8274

query II rowsort
SELECT ALL - + 98 + - 55 AS col1, 36
----
-153
36

query II rowsort
SELECT - - 85 col0, 35
----
85
35

query II rowsort
SELECT DISTINCT + 29, - 87 AS col2
----
29
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT ALL - - 23 + COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-7814
SELECT ALL - - 23 + COUNT ( * )
----
24

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

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

query I rowsort
SELECT ALL - - 10 + + + 54 AS col2
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7817
SELECT - 76 AS col0, 43 * 8 + - + CAST( + - CASE + + 68 WHEN + 10 * - 35 - 36 + + - 54 - + 33 * - + CAST( + + COUNT( * ) AS SIGNED ) * 57 THEN NULL WHEN - 67 * - 5 * + + COUNT( * ) * - - 39 + - 99 / - + 41 THEN - CAST( + 29 AS DECIMAL ) + - + 33 ELSE NULL END AS SIGNED ) + + - COUNT( * ) AS col2
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-7817
SELECT - 76 AS col0, 43 * 8 + - + CAST ( + - CASE + + 68 WHEN + 10 * - 35 - 36 + + - 54 - + 33 * - + CAST ( + + COUNT ( * ) AS INTEGER ) * 57 THEN NULL WHEN - 67 * - 5 * + + COUNT ( * ) * - - 39 + - 99 / - + 41 THEN - CAST ( + 29 AS REAL ) + - + 33 ELSE NULL END AS INTEGER ) + + - COUNT ( * ) AS col2
----
-76
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7818
SELECT + 92 AS col1, MAX( ALL - 95 ) * + 75 + + + 61 AS col0
----
92
-7064

skipif mysql # not compatible
query II rowsort label-7818
SELECT + 92 AS col1, MAX ( ALL - 95 ) * + 75 + + + 61 AS col0
----
92
-7064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7819
SELECT 23 / - 8 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7819
SELECT 23 / - 8 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7820
SELECT 11 - + 63 + COUNT( * ) + - - 27 + + 85 * 86, + COUNT( * ) * 8 AS col2
----
7286
8

skipif mysql # not compatible
query II rowsort label-7820
SELECT 11 - + 63 + COUNT ( * ) + - - 27 + + 85 * 86, + COUNT ( * ) * 8 AS col2
----
7286
8

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

query I rowsort
SELECT ALL - NULLIF ( - 65, + 2 * ( - 65 ) )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT DISTINCT 7 - - - COUNT( * ) * + - 88
----
95

skipif mysql # not compatible
query I rowsort label-7823
SELECT DISTINCT 7 - - - COUNT ( * ) * + - 88
----
95

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

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

query I rowsort
SELECT + 99 * + 14 col2
----
1386

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

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

query I rowsort
SELECT - 8 - - + 60
----
52

query I rowsort
SELECT 13 * 5 * 58 AS col1
----
3770

query I rowsort
SELECT 28 + 87 + + ( + 50 ) * 98 * 68 * ( - 38 ) * + + ( - 24 ) - 27 AS col1
----
303878488

query I rowsort
SELECT 10 - + 12 AS col1
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7831
SELECT ALL 9 - 42 AS col2, + 93 + - 0 DIV ( + 80 ) + 77 * - ( 87 ) * ( - - NULLIF ( - COUNT( * ), + + SUM( - - 91 ) * 57 * + ( - 10 ) ) )
----
-33
6792

skipif mysql # not compatible
query II rowsort label-7831
SELECT ALL 9 - 42 AS col2, + 93 + - 0 / ( + 80 ) + 77 * - ( 87 ) * ( - - NULLIF ( - COUNT ( * ), + + SUM ( - - 91 ) * 57 * + ( - 10 ) ) )
----
-33
6792

query I rowsort
SELECT ALL ( 23 ) * 26
----
598

onlyif mysql # aggregate syntax: 
query II rowsort label-7833
SELECT DISTINCT - MAX( ALL - 39 ), + 46 - + - ( 4 ) - - + 33 AS col2
----
39
83

skipif mysql # not compatible
query II rowsort label-7833
SELECT DISTINCT - MAX ( ALL - 39 ), + 46 - + - ( 4 ) - - + 33 AS col2
----
39
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7834
SELECT 50 DIV + 28 + - + 50 AS col0, + 61 + + COUNT( * ) * + + 55
----
-49
116

skipif mysql # not compatible
query II rowsort label-7834
SELECT 50 / + 28 + - + 50 AS col0, + 61 + + COUNT ( * ) * + + 55
----
-49
116

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT NULLIF ( 5, COUNT( + 24 ) * - 1 * - ( + 23 ) ) * - COUNT( * ) * - 27
----
135

skipif mysql # not compatible
query I rowsort label-7835
SELECT NULLIF ( 5, COUNT ( + 24 ) * - 1 * - ( + 23 ) ) * - COUNT ( * ) * - 27
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7836
SELECT ALL COUNT( * ) * CASE 30 WHEN 39 THEN + 56 * 71 ELSE + - 79 * ( + - 35 ) + - + 5 / + CASE + CAST( + + COUNT( * ) AS SIGNED ) WHEN + + 75 THEN + COALESCE ( - + 18, 93, - 78 * + 9 ) / 36 * + 39 + 85 WHEN + 21 THEN + 44 END / - 66 + 54 + + - 88 + COUNT( - 34 ) + + - ( + MAX( ALL 81 ) ) * 53 * + 25 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7836
SELECT ALL COUNT ( * ) * CASE 30 WHEN 39 THEN + 56 * 71 ELSE + - 79 * ( + - 35 ) + - + 5 / + CASE + CAST ( + + COUNT ( * ) AS INTEGER ) WHEN + + 75 THEN + COALESCE ( - + 18, 93, - 78 * + 9 ) / 36 * + 39 + 85 WHEN + 21 THEN + 44 END / - 66 + 54 + + - 88 + COUNT ( - 34 ) + + - ( + MAX ( ALL 81 ) ) * 53 * + 25 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7837
SELECT MIN( - 81 ) + - 39 AS col1, 92 AS col1
----
-120
92

skipif mysql # not compatible
query II rowsort label-7837
SELECT MIN ( - 81 ) + - 39 AS col1, 92 AS col1
----
-120
92

query I rowsort
SELECT DISTINCT 37 + - 62 * 61
----
-3745

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7839
SELECT DISTINCT ( + ( NULLIF ( 24, + CASE - - 38 WHEN + - 70 THEN 10 * + CAST( + + 30 AS SIGNED ) WHEN - - 22 DIV CAST( NULL AS SIGNED ) + + 98 THEN NULL WHEN - + MIN( DISTINCT - - 32 ) - + 6 THEN NULL END ) ) ) DIV + 1 AS col0, ( 50 )
----
24
50

skipif mysql # not compatible
query II rowsort label-7839
SELECT DISTINCT ( + ( NULLIF ( 24, + CASE - - 38 WHEN + - 70 THEN 10 * + CAST ( + + 30 AS INTEGER ) WHEN - - 22 / CAST ( NULL AS INTEGER ) + + 98 THEN NULL WHEN - + MIN ( DISTINCT - - 32 ) - + 6 THEN NULL END ) ) ) / + 1 AS col0, ( 50 )
----
24
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7840
SELECT ALL 89 + + - ( + - 54 ) + + - 68 * + ( - COUNT( * ) ) * 75 + - 21 + COALESCE ( 16, - 1 * 83 - 61 * - 5 ) + + + 79 + - COALESCE ( + 69, + 27 - + 36 * + 56 * - 15, - + COALESCE ( + 29, + CAST( + 9 AS SIGNED ) * + - 10 + + 49 ) * 84 + COUNT( * ) - 89 + MIN( - ( - 11 ) ) + - + COUNT( DISTINCT 30 ) ) + - 26 AS col2
----
5222

skipif mysql # not compatible
query I rowsort label-7840
SELECT ALL 89 + + - ( + - 54 ) + + - 68 * + ( - COUNT ( * ) ) * 75 + - 21 + COALESCE ( 16, - 1 * 83 - 61 * - 5 ) + + + 79 + - COALESCE ( + 69, + 27 - + 36 * + 56 * - 15, - + COALESCE ( + 29, + CAST ( + 9 AS INTEGER ) * + - 10 + + 49 ) * 84 + COUNT ( * ) - 89 + MIN ( - ( - 11 ) ) + - + COUNT ( DISTINCT 30 ) ) + - 26 AS col2
----
5222

query I rowsort
SELECT 31 + + 9
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7842
SELECT DISTINCT 1 + + - 19 + + + 53 * + 84 * - 10 + - + 92 - + 22 * - 92 + 8 - 59 + + 41 * CAST( NULL AS SIGNED ) * 15 / + 64 * - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-7842
SELECT DISTINCT 1 + + - 19 + + + 53 * + 84 * - 10 + - + 92 - + 22 * - 92 + 8 - 59 + + 41 * CAST ( NULL AS INTEGER ) * 15 / + 64 * - 45
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 70 + + - 48 + - 87
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7845
SELECT DISTINCT COUNT( * ) DIV - + COALESCE ( + 82, AVG ( - + 73 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7845
SELECT DISTINCT COUNT ( * ) / - + COALESCE ( + 82, AVG ( - + 73 ) )
----
0

query I rowsort
SELECT ALL ( - CASE - 64 WHEN 93 THEN - + 62 - - 57 * + - 41 END ) + + + 54 + 48
----
NULL

query I rowsort
SELECT + 84 * - + 22 AS col2
----
-1848

onlyif mysql # aggregate syntax: 
query II rowsort label-7848
SELECT 56 + 52 * + COUNT( * ) * + + 6 * 93 AS col0, - 63 - + + 8 + 1 AS col2
----
29072
-70

skipif mysql # not compatible
query II rowsort label-7848
SELECT 56 + 52 * + COUNT ( * ) * + + 6 * 93 AS col0, - 63 - + + 8 + 1 AS col2
----
29072
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT + 67 * 71 + + - COUNT( * ) - - ( + COALESCE ( 74, - 13 * + 22 ) ) - + - COUNT( * ) + + 22 * - 11 + + 26
----
4615

skipif mysql # not compatible
query I rowsort label-7849
SELECT + 67 * 71 + + - COUNT ( * ) - - ( + COALESCE ( 74, - 13 * + 22 ) ) - + - COUNT ( * ) + + 22 * - 11 + + 26
----
4615

query I rowsort
SELECT - 7 + - - 6 * 74 * 18
----
7985

query I rowsort
SELECT 46 + + - 59 * - CASE - + 82 WHEN - + 2 THEN 68 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT ALL - SUM( DISTINCT + 94 ) + + ( - - 86 )
----
-8

skipif mysql # not compatible
query I rowsort label-7852
SELECT ALL - SUM ( DISTINCT + 94 ) + + ( - - 86 )
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7853
SELECT ( - SUM( + - 76 ) ) + - MIN( ALL - ( + 74 ) ) - COUNT( * ) / 82 * + SUM( + 75 ) + - ( CASE 63 WHEN + CAST( NULL AS SIGNED ) - + 83 THEN - NULLIF ( + 10, - - 87 + + 62 ) * - 1 WHEN + + 35 THEN NULL END ) * - NULLIF ( - + 77, - 26 ) * + COUNT( * ) * - 85 - - 45 AS col0, 22
----
NULL
22

skipif mysql # not compatible
query II rowsort label-7853
SELECT ( - SUM ( + - 76 ) ) + - MIN ( ALL - ( + 74 ) ) - COUNT ( * ) / 82 * + SUM ( + 75 ) + - ( CASE 63 WHEN + CAST ( NULL AS INTEGER ) - + 83 THEN - NULLIF ( + 10, - - 87 + + 62 ) * - 1 WHEN + + 35 THEN NULL END ) * - NULLIF ( - + 77, - 26 ) * + COUNT ( * ) * - 85 - - 45 AS col0, 22
----
NULL
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT DISTINCT - CASE + 65 WHEN - + 96 * - COUNT( * ) THEN + AVG ( + - 93 ) END / + - 20 * + 77 + - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-7854
SELECT DISTINCT - CASE + 65 WHEN - + 96 * - COUNT ( * ) THEN + AVG ( + - 93 ) END / + - 20 * + 77 + - 78
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7855
SELECT ALL - 2 - - COUNT( * ) * - + 17 * + - 16 * COUNT( ALL - 60 ) * - - 48 - + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7855
SELECT ALL - 2 - - COUNT ( * ) * - + 17 * + - 16 * COUNT ( ALL - 60 ) * - - 48 - + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT + ( - 36 ) + - ( - 33 ) + COALESCE ( - - 31, + + 63 * + ( COALESCE ( COUNT( * ), 49 + - + 34, + + CASE 94 WHEN + - 30 / + + 42 THEN NULL WHEN 7 THEN + 71 * 22 ELSE 79 END ) ) ) * - 64 AS col0
----
-1987

skipif mysql # not compatible
query I rowsort label-7857
SELECT + ( - 36 ) + - ( - 33 ) + COALESCE ( - - 31, + + 63 * + ( COALESCE ( COUNT ( * ), 49 + - + 34, + + CASE 94 WHEN + - 30 / + + 42 THEN NULL WHEN 7 THEN + 71 * 22 ELSE 79 END ) ) ) * - 64 AS col0
----
-1987

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT COUNT( * ) + - + 23 * 73 * + COUNT( * ) * - - 82
----
-137677

skipif mysql # not compatible
query I rowsort label-7858
SELECT COUNT ( * ) + - + 23 * 73 * + COUNT ( * ) * - - 82
----
-137677

onlyif mysql # aggregate syntax: 
query II rowsort label-7859
SELECT 48 * - 81, COUNT( * ) * - - 95 AS col1
----
-3888
95

skipif mysql # not compatible
query II rowsort label-7859
SELECT 48 * - 81, COUNT ( * ) * - - 95 AS col1
----
-3888
95

query I rowsort
SELECT 94 + ( + 83 ) * + 18 * - 8
----
-11858

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

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

query II rowsort
SELECT + 15 * + + 34 AS col0, 98
----
510
98

query I rowsort
SELECT 87 + 64
----
151

query I rowsort
SELECT DISTINCT + 63 * + 83 AS col2
----
5229

onlyif mysql # aggregate syntax: 
query II rowsort label-7865
SELECT ALL COUNT( * ) AS col2, + 64 + - 39 AS col0
----
1
25

skipif mysql # not compatible
query II rowsort label-7865
SELECT ALL COUNT ( * ) AS col2, + 64 + - 39 AS col0
----
1
25

query II rowsort
SELECT 33 AS col2, - 70 col0
----
33
-70

query I rowsort
SELECT ALL + 45 * - 63 AS col0
----
-2835

query II rowsort
SELECT ALL 45 AS col0, - 2
----
45
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-7869
SELECT ALL COUNT( * ) AS col0, - 99 + + 4
----
1
-95

skipif mysql # not compatible
query II rowsort label-7869
SELECT ALL COUNT ( * ) AS col0, - 99 + + 4
----
1
-95

query I rowsort
SELECT ALL + 18 + + 49
----
67

query I rowsort
SELECT 90 - 6 AS col1
----
84

query I rowsort
SELECT 96 * + - ( COALESCE ( - 99, 18, + 70 + + 23 ) )
----
9504

query I rowsort
SELECT 0 - 10
----
-10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT 6 * NULLIF ( - 82, + 47 * 73 + - 93 + 31 / + 81 ) / CASE + + 54 WHEN 19 * - - 56 - - 89 THEN NULL WHEN COUNT( * ) THEN - 99 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7875
SELECT 6 * NULLIF ( - 82, + 47 * 73 + - 93 + 31 / + 81 ) / CASE + + 54 WHEN 19 * - - 56 - - 89 THEN NULL WHEN COUNT ( * ) THEN - 99 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7876
SELECT - 68 / CASE - COUNT( * ) WHEN + 74 + - 73 THEN NULL WHEN + COUNT( * ) THEN NULL WHEN + 64 * + COUNT( * ) THEN NULL ELSE CAST( NULL AS SIGNED ) END + - + ( + 82 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7876
SELECT - 68 / CASE - COUNT ( * ) WHEN + 74 + - 73 THEN NULL WHEN + COUNT ( * ) THEN NULL WHEN + 64 * + COUNT ( * ) THEN NULL ELSE CAST ( NULL AS INTEGER ) END + - + ( + 82 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT 45 * - COUNT( DISTINCT 40 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-7877
SELECT 45 * - COUNT ( DISTINCT 40 ) AS col2
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-7878
SELECT ALL 96 DIV - 49 col0
----
-1

skipif mysql # not compatible
query I rowsort label-7878
SELECT ALL 96 / - 49 col0
----
-1

query I rowsort
SELECT NULLIF ( - 42, - 2 ) AS col2
----
-42

onlyif mysql # DIV for integer division: 
query II rowsort label-7880
SELECT 51 DIV 84 * + 57 AS col0, + 1
----
0
1

skipif mysql # not compatible
query II rowsort label-7880
SELECT 51 / 84 * + 57 AS col0, + 1
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7881
SELECT CASE + COUNT( * ) WHEN - + 13 THEN NULL WHEN + - 55 * 88 - - 6 + - 0 + 16 THEN + + 61 * 86 * - + CAST( NULL AS DECIMAL ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7881
SELECT CASE + COUNT ( * ) WHEN - + 13 THEN NULL WHEN + - 55 * 88 - - 6 + - 0 + 16 THEN + + 61 * 86 * - + CAST ( NULL AS REAL ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7882
SELECT DISTINCT - 91 * + - CAST( NULL AS SIGNED ) + 43 - + + MIN( + 19 ) * + - 37 * + 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7882
SELECT DISTINCT - 91 * + - CAST ( NULL AS INTEGER ) + 43 - + + MIN ( + 19 ) * + - 37 * + 13 AS col2
----
NULL

query I rowsort
SELECT ALL + 19 * - + 40 + + - 28 AS col2
----
-788

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7884
SELECT DISTINCT - 42 * 39 + + 25 * - 85 + + CASE - - 22 WHEN + 74 DIV - 40 - - NULLIF ( 24, 58 ) * - 16 THEN + 98 END, 55 DIV + MAX( ALL - 42 ) + - + 81 AS col1
----
NULL
-82

skipif mysql # not compatible
query II rowsort label-7884
SELECT DISTINCT - 42 * 39 + + 25 * - 85 + + CASE - - 22 WHEN + 74 / - 40 - - NULLIF ( 24, 58 ) * - 16 THEN + 98 END, 55 / + MAX ( ALL - 42 ) + - + 81 AS col1
----
NULL
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7885
SELECT ALL - COUNT( DISTINCT - 83 ) * + 93 DIV + 77 + + + 95 + + 70
----
164

skipif mysql # not compatible
query I rowsort label-7885
SELECT ALL - COUNT ( DISTINCT - 83 ) * + 93 / + 77 + + + 95 + + 70
----
164

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7888
SELECT ALL ( + 9 ) * 13 / - - COUNT ( * ) AS col1
----
117

query I rowsort
SELECT - 60 * - 45 * - 92 AS col1
----
-248400

query II rowsort
SELECT + 4, 1 AS col2
----
4
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT + - MAX( ALL + 98 ) + - - 62
----
-36

skipif mysql # not compatible
query I rowsort label-7891
SELECT + - MAX ( ALL + 98 ) + - - 62
----
-36

query II rowsort
SELECT ALL + - 22, + 13 * 86 + - 62 * 11 col1
----
-22
436

query I rowsort
SELECT + 65 - + 83
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7894
SELECT ALL + CASE - 58 WHEN 37 * + NULLIF ( + + COUNT( * ), + + COUNT( * ) * + 38 * + - 94 ) THEN - 24 - - NULLIF ( 51, - + COUNT( * ) ) - + 52 WHEN - 63 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7894
SELECT ALL + CASE - 58 WHEN 37 * + NULLIF ( + + COUNT ( * ), + + COUNT ( * ) * + 38 * + - 94 ) THEN - 24 - - NULLIF ( 51, - + COUNT ( * ) ) - + 52 WHEN - 63 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT + NULLIF ( + + COUNT( * ), - 84 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7895
SELECT + NULLIF ( + + COUNT ( * ), - 84 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7896
SELECT - - COALESCE ( - + 95, + + 15 * - + COUNT( * ) * 88 ) + - 15, - ( - 58 ) + + 84 AS col1
----
-110
142

skipif mysql # not compatible
query II rowsort label-7896
SELECT - - COALESCE ( - + 95, + + 15 * - + COUNT ( * ) * 88 ) + - 15, - ( - 58 ) + + 84 AS col1
----
-110
142

query II rowsort
SELECT DISTINCT + 91 AS col0, + 78 * - 74 AS col1
----
91
-5772

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7899
SELECT DISTINCT + COUNT( ALL ( - 53 ) ) - + 83 DIV + + 75
----
0

skipif mysql # not compatible
query I rowsort label-7899
SELECT DISTINCT + COUNT ( ALL ( - 53 ) ) - + 83 / + + 75
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7900
SELECT ALL + 53, 96 * - - 72 + + CAST( + - 76 AS SIGNED ) AS col1
----
53
6836

skipif mysql # not compatible
query II rowsort label-7900
SELECT ALL + 53, 96 * - - 72 + + CAST ( + - 76 AS INTEGER ) AS col1
----
53
6836

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT ALL 24 * + 58 * + - MIN( - 41 ) - + - 91 + + 73 AS col1
----
57236

skipif mysql # not compatible
query I rowsort label-7901
SELECT ALL 24 * + 58 * + - MIN ( - 41 ) - + - 91 + + 73 AS col1
----
57236

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

query II rowsort
SELECT 59 AS col2, - 71 * + 73 AS col0
----
59
-5183

query I rowsort
SELECT ALL 51 * 80 + - 46
----
4034

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7905
SELECT + - COUNT( * ) DIV - COALESCE ( - - 20, + 89 ) * - 23 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7905
SELECT + - COUNT ( * ) / - COALESCE ( - - 20, + 89 ) * - 23 * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT - + CASE - 84 WHEN COUNT( * ) * - 48 + - + 74 THEN + 26 ELSE 4 + 90 END
----
-94

skipif mysql # not compatible
query I rowsort label-7906
SELECT - + CASE - 84 WHEN COUNT ( * ) * - 48 + - + 74 THEN + 26 ELSE 4 + 90 END
----
-94

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

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

query II rowsort
SELECT ALL - 86 + 80, + ( - ( 17 ) ) AS col1
----
-6
-17

query I rowsort
SELECT + 9 + - 56 * + - 61
----
3425

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

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

query I rowsort
SELECT ALL - 14 * - - 34 AS col0
----
-476

query I rowsort
SELECT - 85 + + 86
----
1

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

skipif mysql # not compatible
query I rowsort label-7913
SELECT - 91 - + CAST ( NULL AS REAL ) * + + 55
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT DISTINCT - CASE - 50 WHEN - 74 THEN NULL WHEN - 43 THEN - COUNT( * ) END * + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-7914
SELECT DISTINCT - CASE - 50 WHEN - 74 THEN NULL WHEN - 43 THEN - COUNT ( * ) END * + 10
----
NULL

query I rowsort
SELECT DISTINCT + 42 + + ( - - 33 ) AS col2
----
75

query I rowsort
SELECT ALL + COALESCE ( - + 28, 50, 71 * + 65 * 31 * + 75 ) + - 69
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7917
SELECT - NULLIF ( - 85, CAST( + CAST( + - 60 AS SIGNED ) AS DECIMAL ) * 51 ) * + COUNT( * ) + 7 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-7917
SELECT - NULLIF ( - 85, CAST ( + CAST ( + - 60 AS INTEGER ) AS REAL ) * 51 ) * + COUNT ( * ) + 7 AS col2
----
92

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

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

query I rowsort
SELECT DISTINCT - 97 * - 10
----
970

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7920
SELECT DISTINCT + 48 DIV + + 2 * - + COUNT( * ) + + + 7 AS col2, 59 + - COUNT( * ) col0
----
-17
58

skipif mysql # not compatible
query II rowsort label-7920
SELECT DISTINCT + 48 / + + 2 * - + COUNT ( * ) + + + 7 AS col2, 59 + - COUNT ( * ) col0
----
-17
58

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

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

query I rowsort
SELECT + + 94 * - + 74 + + 98 AS col0
----
-6858

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7923
SELECT - - 82 DIV 71 + CAST( - + ( 35 ) AS SIGNED ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-7923
SELECT - - 82 / 71 + CAST ( - + ( 35 ) AS INTEGER ) AS col1
----
-34

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7925
SELECT DISTINCT - - SUM( ALL 79 ) * - MIN( - 30 ) * - 83 - - COUNT( * ) DIV + 88 col0
----
-196710

skipif mysql # not compatible
query I rowsort label-7925
SELECT DISTINCT - - SUM ( ALL 79 ) * - MIN ( - 30 ) * - 83 - - COUNT ( * ) / + 88 col0
----
-196710

query I rowsort
SELECT DISTINCT + COALESCE ( - 5, - - 73 + 88 * - 82 + - 22 ) AS col2
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7927
SELECT + 16 * + ( + COUNT( * ) ) * MAX( - - 62 ) + + AVG ( ALL + 51 ) + 6 * + + CASE - COUNT( ALL - 68 ) WHEN - 60 + + 89 THEN - - 7 END + - - CAST( + COUNT( * ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7927
SELECT + 16 * + ( + COUNT ( * ) ) * MAX ( - - 62 ) + + AVG ( ALL + 51 ) + 6 * + + CASE - COUNT ( ALL - 68 ) WHEN - 60 + + 89 THEN - - 7 END + - - CAST ( + COUNT ( * ) AS INTEGER )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7929
SELECT 24 * + 63 / - - ( CAST( NULL AS SIGNED ) ) * - ( MAX( + 65 ) ) * 71 - + 90 - + SUM( 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7929
SELECT 24 * + 63 / - - ( CAST ( NULL AS INTEGER ) ) * - ( MAX ( + 65 ) ) * 71 - + 90 - + SUM ( 49 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT ALL + MAX( 40 ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-7930
SELECT ALL + MAX ( 40 ) AS col0
----
40

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

query I rowsort
SELECT + + NULLIF ( + 20, - + 83 )
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7933
SELECT + + ( + NULLIF ( CAST( NULL AS SIGNED ), - + 48 ) ) + + ( ( - 75 ) ) + 39 * - 58, - 10 * - - 59 AS col2
----
NULL
-590

skipif mysql # not compatible
query II rowsort label-7933
SELECT + + ( + NULLIF ( CAST ( NULL AS INTEGER ), - + 48 ) ) + + ( ( - 75 ) ) + 39 * - 58, - 10 * - - 59 AS col2
----
NULL
-590

query I rowsort
SELECT + - 80 * + 81
----
-6480

query I rowsort
SELECT + 41 + 96 * - - 64 AS col2
----
6185

query I rowsort
SELECT DISTINCT 7 * 65 + + 17
----
472

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT ALL 44 * 59 + - - MIN( - 46 ) * - 8 + - 67 * 0 * - 60 * - 34 + - 54 - - 77 AS col0
----
2987

skipif mysql # not compatible
query I rowsort label-7937
SELECT ALL 44 * 59 + - - MIN ( - 46 ) * - 8 + - 67 * 0 * - 60 * - 34 + - 54 - - 77 AS col0
----
2987

query I rowsort
SELECT + 21 + - 10 + 16 * - 48
----
-757

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7939
SELECT ALL COALESCE ( + - 97, COUNT( * ) + - 85 + 80 DIV + 73 + + 2 * 56 ) + + 43
----
-54

skipif mysql # not compatible
query I rowsort label-7939
SELECT ALL COALESCE ( + - 97, COUNT ( * ) + - 85 + 80 / + 73 + + 2 * 56 ) + + 43
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7940
SELECT - CASE MIN( DISTINCT 37 ) WHEN + 74 / + - 78 THEN - 96 / - NULLIF ( - - 82, + 79 ) * 23 - - - 82 - + 5 + + CAST( + 60 AS SIGNED ) + 43 WHEN - 86 THEN NULLIF ( 56, + - 91 * - 76 ) END, + COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7940
SELECT - CASE MIN ( DISTINCT 37 ) WHEN + 74 / + - 78 THEN - 96 / - NULLIF ( - - 82, + 79 ) * 23 - - - 82 - + 5 + + CAST ( + 60 AS INTEGER ) + 43 WHEN - 86 THEN NULLIF ( 56, + - 91 * - 76 ) END, + COUNT ( * ) AS col0
----
NULL
1

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

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

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

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

query I rowsort
SELECT - 15 + - - 47 + + + 5 + - 91 * - 67 * + 60
----
365857

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

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

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

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

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

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

query I rowsort
SELECT ALL + ( + ( 26 ) ) + - 35
----
-9

query I rowsort
SELECT ALL 43 * NULLIF ( 74, + 55 ) AS col2
----
3182

query I rowsort
SELECT 35 * + 76 * - + 85 * - 6
----
1356600

query II rowsort
SELECT ALL 10, 36 AS col2
----
10
36

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

skipif mysql # not compatible
query I rowsort label-7951
SELECT 44 / - COUNT ( * ) AS col2
----
-44

query I rowsort
SELECT ALL COALESCE ( + + 35, + 51 * + 69, - + ( - 97 ) ) - - 90
----
125

query I rowsort
SELECT 25 - + 6
----
19

query II rowsort
SELECT - 20 AS col2, + 88 + - - 78 + + 20
----
-20
186

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7957
SELECT DISTINCT - NULLIF ( + + 22, + 79 ) AS col2, - COUNT( * ) AS col2
----
-22
-1

skipif mysql # not compatible
query II rowsort label-7957
SELECT DISTINCT - NULLIF ( + + 22, + 79 ) AS col2, - COUNT ( * ) AS col2
----
-22
-1

query I rowsort
SELECT 50 * - 67 * 78
----
-261300

query I rowsort
SELECT ALL - 48 * 13 AS col1
----
-624

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT ALL - SUM( + 82 ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-7961
SELECT ALL - SUM ( + 82 ) AS col1
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7962
SELECT DISTINCT COUNT( * ) * - CASE CAST( NULL AS SIGNED ) WHEN NULLIF ( - 96, 37 + 46 ) + + 90 THEN NULL WHEN + COALESCE ( 93, - ( + 91 ) * + CASE - 86 - + 16 * ( - 87 + + 45 ) WHEN - 21 THEN 58 ELSE NULL END - 20, 39 * - 49 ) / 61 THEN ( + ( - 74 ) ) / NULLIF ( COUNT( * ), - 87 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7962
SELECT DISTINCT COUNT ( * ) * - CASE CAST ( NULL AS INTEGER ) WHEN NULLIF ( - 96, 37 + 46 ) + + 90 THEN NULL WHEN + COALESCE ( 93, - ( + 91 ) * + CASE - 86 - + 16 * ( - 87 + + 45 ) WHEN - 21 THEN 58 ELSE NULL END - 20, 39 * - 49 ) / 61 THEN ( + ( - 74 ) ) / NULLIF ( COUNT ( * ), - 87 ) END AS col1
----
NULL

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

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

query I rowsort
SELECT ALL - 48 * + 14 AS col0
----
-672

onlyif mysql # DIV for integer division: 
query I rowsort label-7965
SELECT + 64 DIV 76 + + 41
----
41

skipif mysql # not compatible
query I rowsort label-7965
SELECT + 64 / 76 + + 41
----
41

query I rowsort
SELECT 94 / CASE - 37 WHEN 57 THEN + 84 END
----
NULL

query I rowsort
SELECT 65 * 73 AS col2
----
4745

query I rowsort
SELECT 1 + 45 AS col0
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-7969
SELECT DISTINCT + 3 DIV - 32
----
0

skipif mysql # not compatible
query I rowsort label-7969
SELECT DISTINCT + 3 / - 32
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7970
SELECT 84 DIV + 49
----
1

skipif mysql # not compatible
query I rowsort label-7970
SELECT 84 / + 49
----
1

query I rowsort
SELECT 91 * - 80
----
-7280

onlyif mysql # DIV for integer division: 
query I rowsort label-7972
SELECT DISTINCT + 13 DIV - 87 col1
----
0

skipif mysql # not compatible
query I rowsort label-7972
SELECT DISTINCT + 13 / - 87 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT DISTINCT + 4 + + MIN( ALL 63 )
----
67

skipif mysql # not compatible
query I rowsort label-7973
SELECT DISTINCT + 4 + + MIN ( ALL 63 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT DISTINCT 81 * ( - CASE + 72 WHEN 52 * - 5 + - 12 * 23 THEN 18 WHEN CASE + MAX( 24 ) WHEN + 93 THEN + 12 END - + 12 * - ( - ( - 93 ) * 40 ) THEN + 64 WHEN - 20 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7974
SELECT DISTINCT 81 * ( - CASE + 72 WHEN 52 * - 5 + - 12 * 23 THEN 18 WHEN CASE + MAX ( 24 ) WHEN + 93 THEN + 12 END - + 12 * - ( - ( - 93 ) * 40 ) THEN + 64 WHEN - 20 THEN NULL ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7975
SELECT ALL COALESCE ( 36, CAST( CASE - 27 WHEN + 32 / ( 90 * + 52 ) THEN NULL WHEN + 17 * + 33 + + 14 THEN NULL WHEN - COALESCE ( 33, - 69, 47, - 44 ) THEN MAX( 32 ) - + 20 / + MAX( + 35 ) ELSE NULL END AS SIGNED ) / 39 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7975
SELECT ALL COALESCE ( 36, CAST ( CASE - 27 WHEN + 32 / ( 90 * + 52 ) THEN NULL WHEN + 17 * + 33 + + 14 THEN NULL WHEN - COALESCE ( 33, - 69, 47, - 44 ) THEN MAX ( 32 ) - + 20 / + MAX ( + 35 ) ELSE NULL END AS INTEGER ) / 39 ) + CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7976
SELECT COUNT ( * ) / 8 AS col0
----
0

query I rowsort
SELECT ALL + 86 + 5 col0
----
91

query I rowsort
SELECT 90 - + 58
----
32

query I rowsort
SELECT DISTINCT - 14 * 31
----
-434

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7980
SELECT ALL COALESCE ( COUNT( 19 ), CAST( + COUNT( * ) AS SIGNED ) ) + 57 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-7980
SELECT ALL COALESCE ( COUNT ( 19 ), CAST ( + COUNT ( * ) AS INTEGER ) ) + 57 AS col1
----
58

query I rowsort
SELECT - 0 * 83 + - 76 AS col0
----
-76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7982
SELECT DISTINCT ( + CAST( NULL AS DECIMAL ) ) + - 93 * - 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7982
SELECT DISTINCT ( + CAST ( NULL AS REAL ) ) + - 93 * - 79 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7983
SELECT ALL COUNT( + CASE WHEN NOT 22 NOT IN ( NULLIF ( - 72, 55 * CAST( 72 * 18 AS SIGNED ) ) * + 79 ) THEN + ( + 88 ) ELSE NULL END ) + 64
----
64

skipif mysql # not compatible
query I rowsort label-7983
SELECT ALL COUNT ( + CASE WHEN NOT 22 NOT IN ( NULLIF ( - 72, 55 * CAST ( 72 * 18 AS INTEGER ) ) * + 79 ) THEN + ( + 88 ) ELSE NULL END ) + 64
----
64

query I rowsort
SELECT DISTINCT - 42 + 87 AS col0
----
45

query I rowsort
SELECT ALL 67 * + 94
----
6298

query I rowsort
SELECT ALL 37 - - 37
----
74

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

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

query I rowsort
SELECT ALL ( + 3 ) * 75
----
225

query I rowsort
SELECT 34 + 54 * - 57
----
-3044

query I rowsort
SELECT DISTINCT 66 * 49 AS col0
----
3234

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT COALESCE ( COUNT( * ), 39, 59 ) + 63 * 15 AS col1
----
946

skipif mysql # not compatible
query I rowsort label-7991
SELECT COALESCE ( COUNT ( * ), 39, 59 ) + 63 * 15 AS col1
----
946

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

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

query I rowsort
SELECT ALL 83 - + 49
----
34

query I rowsort
SELECT ALL ( 14 ) * + 46
----
644

query I rowsort
SELECT 60 * - 69 AS col1
----
-4140

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT ALL COUNT( ALL + COALESCE ( + 61, + 4 - + 6 ) ) * - 47 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-7996
SELECT ALL COUNT ( ALL + COALESCE ( + 61, + 4 - + 6 ) ) * - 47 AS col0
----
-47

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

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

query I rowsort
SELECT DISTINCT + 18 * 85 AS col1
----
1530

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT + 94 * MAX( - 78 ) AS col1
----
-7332

skipif mysql # not compatible
query I rowsort label-7999
SELECT + 94 * MAX ( - 78 ) AS col1
----
-7332

onlyif mysql # DIV for integer division: 
query I rowsort label-8000
SELECT ( 66 ) DIV 83 + - 36
----
-36

skipif mysql # not compatible
query I rowsort label-8000
SELECT ( 66 ) / 83 + - 36
----
-36

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8002
SELECT DISTINCT 72 DIV 21 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-8002
SELECT DISTINCT 72 / 21 AS col1
----
3

query I rowsort
SELECT 79 + 60 AS col2
----
139

query I rowsort
SELECT - 60 + - 48 * 74
----
-3612

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT + + COALESCE ( ( - 75 ), CASE + 58 WHEN 74 + - 88 * + NULLIF ( - 37, AVG ( - 93 ) ) THEN 9 WHEN + ( 48 ) * 83 THEN NULL WHEN + COUNT( * ) THEN NULL END * - 45 ) col2
----
-75

skipif mysql # not compatible
query I rowsort label-8005
SELECT + + COALESCE ( ( - 75 ), CASE + 58 WHEN 74 + - 88 * + NULLIF ( - 37, AVG ( - 93 ) ) THEN 9 WHEN + ( 48 ) * 83 THEN NULL WHEN + COUNT ( * ) THEN NULL END * - 45 ) col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT - - 63 * - COALESCE ( 3, - ( + 52 ) * 97, COUNT( * ) ) + 28
----
-161

skipif mysql # not compatible
query I rowsort label-8006
SELECT - - 63 * - COALESCE ( 3, - ( + 52 ) * 97, COUNT ( * ) ) + 28
----
-161

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

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

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

skipif mysql # not compatible
query I rowsort label-8008
SELECT - 43 * NULLIF ( COUNT ( * ), 40 * 42 + COUNT ( * ) )
----
-43

query I rowsort
SELECT ALL + 2 + 78 AS col1
----
80

query I rowsort
SELECT - 48 * - 31 + 58
----
1546

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

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

query I rowsort
SELECT ALL + 58 * + 35 AS col2
----
2030

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

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

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

skipif mysql # not compatible
query I rowsort label-8014
SELECT ALL - COUNT ( * ) + 84 AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT ALL - MIN( DISTINCT 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-8015
SELECT ALL - MIN ( DISTINCT 83 )
----
-83

query I rowsort
SELECT + 23 + + 60 * - 5 col0
----
-277

query I rowsort
SELECT ALL - + ( 8 ) + + 38 * - 35 AS col0
----
-1338

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

query I rowsort
SELECT - 76 + 65 * - 91
----
-5991

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT - SUM( DISTINCT - 98 ) * + COUNT( * ) - 42 * - COUNT( * )
----
140

skipif mysql # not compatible
query I rowsort label-8020
SELECT - SUM ( DISTINCT - 98 ) * + COUNT ( * ) - 42 * - COUNT ( * )
----
140

query I rowsort
SELECT - 90 + 11
----
-79

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8024
SELECT ALL + CAST( - 70 AS SIGNED ) + - 93
----
-163

skipif mysql # not compatible
query I rowsort label-8024
SELECT ALL + CAST ( - 70 AS INTEGER ) + - 93
----
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT DISTINCT + CASE + + 58 WHEN + NULLIF ( 0, 31 ) * 2 THEN NULL WHEN 94 / 56 THEN + 46 + - COALESCE ( - 94, - ( - 81 ), 5 + COUNT( DISTINCT + NULLIF ( 7, 25 ) ), + 74 * + COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8025
SELECT DISTINCT + CASE + + 58 WHEN + NULLIF ( 0, 31 ) * 2 THEN NULL WHEN 94 / 56 THEN + 46 + - COALESCE ( - 94, - ( - 81 ), 5 + COUNT ( DISTINCT + NULLIF ( 7, 25 ) ), + 74 * + COUNT ( * ) ) END
----
NULL

query I rowsort
SELECT ALL 26 * + ( - 60 )
----
-1560

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

skipif mysql # not compatible
query I rowsort label-8027
SELECT - 32 + COUNT ( * ) AS col2
----
-31

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

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

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

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

query I rowsort
SELECT DISTINCT + CASE 61 WHEN - CASE + 37 WHEN 47 THEN NULL WHEN 73 * - ( + 10 ) THEN 71 WHEN + COALESCE ( ( + 49 ), + 84 ) THEN NULL END THEN + 78 + + 6 ELSE NULL END * + 51
----
NULL

query I rowsort
SELECT ALL COALESCE ( 39, - 76, 40 )
----
39

query I rowsort
SELECT DISTINCT NULLIF ( + 73, 35 ) col0
----
73

query I rowsort
SELECT - 13 * 16 AS col2
----
-208

query I rowsort
SELECT + 78 + 88
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT - SUM( DISTINCT - 7 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-8035
SELECT - SUM ( DISTINCT - 7 ) AS col0
----
7

query I rowsort
SELECT ALL NULLIF ( - 88, 75 * + 93 ) AS col2
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8037
SELECT ALL 61 / - MIN( ALL CAST( NULL AS SIGNED ) ) + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-8037
SELECT ALL 61 / - MIN ( ALL CAST ( NULL AS INTEGER ) ) + 62
----
NULL

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

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

query I rowsort
SELECT DISTINCT ( - + 60 ) + + 7
----
-53

query I rowsort
SELECT + 49 - - + ( 52 )
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-8041
SELECT + - 43 DIV - 15 + + 87 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-8041
SELECT + - 43 / - 15 + + 87 AS col2
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8042
SELECT - - 38 DIV - COUNT( * ) + + 7 * - 36 + 51 col1
----
-239

skipif mysql # not compatible
query I rowsort label-8042
SELECT - - 38 / - COUNT ( * ) + + 7 * - 36 + 51 col1
----
-239

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT ALL COUNT( * ) * - 62 - CASE + 55 WHEN COALESCE ( + 7, + 79, - 88 ) THEN NULL WHEN 21 * + 15 THEN NULL ELSE - 38 END + 94 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-8043
SELECT ALL COUNT ( * ) * - 62 - CASE + 55 WHEN COALESCE ( + 7, + 79, - 88 ) THEN NULL WHEN 21 * + 15 THEN NULL ELSE - 38 END + 94 AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT + CASE + 82 WHEN + 8 * - 49 THEN + COUNT( * ) ELSE NULL END / 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8044
SELECT + CASE + 82 WHEN + 8 * - 49 THEN + COUNT ( * ) ELSE NULL END / 4 AS col1
----
NULL

query I rowsort
SELECT ALL + 87 * + 19 + 74 * 95
----
8683

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

skipif mysql # not compatible
query I rowsort label-8046
SELECT ALL CAST ( + 50 AS INTEGER ) / ( - 37 )
----
-1

query I rowsort
SELECT ALL - 58 * - + 38 + 37
----
2241

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

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

query I rowsort
SELECT ALL + 50 * - 53 + + 26 - - 82 AS col2
----
-2542

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8052
SELECT DISTINCT - 71 * - 32 * COUNT( * ) - - 59 DIV + 76
----
2272

skipif mysql # not compatible
query I rowsort label-8052
SELECT DISTINCT - 71 * - 32 * COUNT ( * ) - - 59 / + 76
----
2272

query I rowsort
SELECT DISTINCT + 42 * - 12 AS col1
----
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT ALL ( - + SUM( ALL 44 ) ) * 38 AS col2
----
-1672

skipif mysql # not compatible
query I rowsort label-8054
SELECT ALL ( - + SUM ( ALL 44 ) ) * 38 AS col2
----
-1672

query I rowsort
SELECT - CASE + 11 WHEN - 93 THEN + 59 END * 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT + 20 + - - 25 + 17 - - ( - COUNT( * ) )
----
61

skipif mysql # not compatible
query I rowsort label-8056
SELECT + 20 + - - 25 + 17 - - ( - COUNT ( * ) )
----
61

query I rowsort
SELECT - 84 * - - 33 * + ( 23 ) AS col0
----
-63756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8058
SELECT ALL COALESCE ( - ( + - CAST( NULL AS SIGNED ) ), 50 * 62 )
----
3100

skipif mysql # not compatible
query I rowsort label-8058
SELECT ALL COALESCE ( - ( + - CAST ( NULL AS INTEGER ) ), 50 * 62 )
----
3100

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT ALL NULLIF ( - NULLIF ( 65, - 59 / 61 ), COUNT( * ) )
----
-65

skipif mysql # not compatible
query I rowsort label-8059
SELECT ALL NULLIF ( - NULLIF ( 65, - 59 / 61 ), COUNT ( * ) )
----
-65

query I rowsort
SELECT - 14 * + 65 AS col1
----
-910

query I rowsort
SELECT - 72 + - + 29
----
-101

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8064
SELECT ALL - 89 * 70 DIV 54 * 73
----
-8395

skipif mysql # not compatible
query I rowsort label-8064
SELECT ALL - 89 * 70 / 54 * 73
----
-8395

query I rowsort
SELECT - COALESCE ( - - 94, 28, 75, + ( - COALESCE ( 58, - 19 * 62, + 61 ) ) * 29 ) + + 0 * 29 AS col1
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-8066
SELECT DISTINCT - 7 DIV - + 73
----
0

skipif mysql # not compatible
query I rowsort label-8066
SELECT DISTINCT - 7 / - + 73
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8067
SELECT - 18 + + 81 + + + 50 * - CAST( 6 AS SIGNED ) col1
----
-237

skipif mysql # not compatible
query I rowsort label-8067
SELECT - 18 + + 81 + + + 50 * - CAST ( 6 AS INTEGER ) col1
----
-237

query I rowsort
SELECT DISTINCT ( + - 88 ) AS col2
----
-88

query I rowsort
SELECT ALL - 89 * + 14 col1
----
-1246

onlyif mysql # aggregate syntax: 
query I rowsort label-8070
SELECT ALL + + COUNT( * ) + - - 33
----
34

skipif mysql # not compatible
query I rowsort label-8070
SELECT ALL + + COUNT ( * ) + - - 33
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT - - 47 * - COUNT( 32 ) col2
----
-47

skipif mysql # not compatible
query I rowsort label-8071
SELECT - - 47 * - COUNT ( 32 ) col2
----
-47

query I rowsort
SELECT - + 88 + + 78
----
-10

query I rowsort
SELECT + + 83 - + + 85 + 41 * 62 AS col0
----
2540

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT ALL + ( - SUM( ALL - NULLIF ( 78, 15 ) ) ) col2
----
78

skipif mysql # not compatible
query I rowsort label-8074
SELECT ALL + ( - SUM ( ALL - NULLIF ( 78, 15 ) ) ) col2
----
78

query I rowsort
SELECT + - 8 - + 44 + + 61 * ( 36 + 86 )
----
7390

onlyif mysql # DIV for integer division: 
query I rowsort label-8076
SELECT ALL 95 + + 76 DIV - 8 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-8076
SELECT ALL 95 + + 76 / - 8 AS col2
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8077
SELECT DISTINCT + - 61 + - + CAST( 88 AS SIGNED )
----
-149

skipif mysql # not compatible
query I rowsort label-8077
SELECT DISTINCT + - 61 + - + CAST ( 88 AS INTEGER )
----
-149

query I rowsort
SELECT DISTINCT - 53 + + 11
----
-42

query I rowsort
SELECT + 83 + - 33 + - 25 col1
----
25

query I rowsort
SELECT ALL + - CASE - 82 WHEN + 47 THEN NULL ELSE 3 END
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8081
SELECT DISTINCT + 33 DIV COALESCE ( - 97, 57 + - 37 ) + + 83 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-8081
SELECT DISTINCT + 33 / COALESCE ( - 97, 57 + - 37 ) + + 83 AS col1
----
83

query II rowsort
SELECT - 15 AS col0, ( - - 72 ) AS col1
----
-15
72

query I rowsort
SELECT - - 45 + + 60 AS col2
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT + + 81 * COALESCE ( + COUNT( * ), + 62 * + SUM( + 43 ) ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-8084
SELECT + + 81 * COALESCE ( + COUNT ( * ), + 62 * + SUM ( + 43 ) ) AS col0
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8085
SELECT + - 65 DIV + COALESCE ( - COUNT( * ), SUM( DISTINCT 14 ) * - 11 )
----
65

skipif mysql # not compatible
query I rowsort label-8085
SELECT + - 65 / + COALESCE ( - COUNT ( * ), SUM ( DISTINCT 14 ) * - 11 )
----
65

query I rowsort
SELECT ALL - NULLIF ( + 2, + + 4 ) * 44
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8087
SELECT DISTINCT - 8 AS col0, 36 * CAST( NULL AS SIGNED ) * + 68 + - 6 * - 82
----
-8
NULL

skipif mysql # not compatible
query II rowsort label-8087
SELECT DISTINCT - 8 AS col0, 36 * CAST ( NULL AS INTEGER ) * + 68 + - 6 * - 82
----
-8
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8088
SELECT DISTINCT - 98 - + - 73 + + CAST( NULL AS SIGNED ) + + 66 / 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8088
SELECT DISTINCT - 98 - + - 73 + + CAST ( NULL AS INTEGER ) + + 66 / 62 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8089
SELECT ALL - MIN ( ALL - - 99 )
----
-99

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

skipif mysql # not compatible
query I rowsort label-8090
SELECT ( COUNT ( * ) ) + 86 / - 78 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT 65 * 98 + - COUNT( * ) AS col1
----
6369

skipif mysql # not compatible
query I rowsort label-8091
SELECT 65 * 98 + - COUNT ( * ) AS col1
----
6369

query I rowsort
SELECT + 50 * - 12 + 22
----
-578

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8093
SELECT NULLIF ( - SUM( - + 3 ), - + CAST( NULL AS SIGNED ) ) + 27 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-8093
SELECT NULLIF ( - SUM ( - + 3 ), - + CAST ( NULL AS INTEGER ) ) + 27 AS col1
----
30

query I rowsort
SELECT + 87 * 98 + + 6 AS col0
----
8532

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT 44 * - MIN( 84 )
----
-3696

skipif mysql # not compatible
query I rowsort label-8095
SELECT 44 * - MIN ( 84 )
----
-3696

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT 79 + - 54 * + MIN( + 75 ) * + 8
----
-32321

skipif mysql # not compatible
query I rowsort label-8096
SELECT 79 + - 54 * + MIN ( + 75 ) * + 8
----
-32321

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

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

query I rowsort
SELECT + 30 * + + 51 + - 46
----
1484

query I rowsort
SELECT ALL - 2 + + + 54
----
52

query I rowsort
SELECT 69 + ( + 74 )
----
143

query I rowsort
SELECT ALL 48 * 54
----
2592

query II rowsort
SELECT 76 * + 32 AS col0, - 93 AS col1
----
2432
-93

query I rowsort
SELECT DISTINCT 66 + + 27 AS col2
----
93

query I rowsort
SELECT 88 * - ( - - 70 ) AS col2
----
-6160

onlyif mysql # DIV for integer division: 
query I rowsort label-8105
SELECT 66 DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-8105
SELECT 66 / 94
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8106
SELECT CASE 88 WHEN - - ( 1 ) * - 72 THEN + 67 * - 47 WHEN 58 THEN NULL WHEN CAST( + 37 AS SIGNED ) THEN NULL ELSE NULL END / + 66 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8106
SELECT CASE 88 WHEN - - ( 1 ) * - 72 THEN + 67 * - 47 WHEN 58 THEN NULL WHEN CAST ( + 37 AS INTEGER ) THEN NULL ELSE NULL END / + 66 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8107
SELECT CAST( NULL AS SIGNED ) + - CASE - + 95 WHEN + + 11 + + 41 THEN 40 * COUNT( * ) + COALESCE ( 36, + COUNT( * ) * SUM( DISTINCT + 93 * 7 ) ) WHEN 66 + - COUNT( * ) * COUNT( * ) THEN NULL END / - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-8107
SELECT CAST ( NULL AS INTEGER ) + - CASE - + 95 WHEN + + 11 + + 41 THEN 40 * COUNT ( * ) + COALESCE ( 36, + COUNT ( * ) * SUM ( DISTINCT + 93 * 7 ) ) WHEN 66 + - COUNT ( * ) * COUNT ( * ) THEN NULL END / - 93
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8108
SELECT ALL - 15 DIV + NULLIF ( + + 12, + 29 * 90 ) + + 13 * COALESCE ( - 94, + COUNT( * ) + CAST( NULL AS SIGNED ), 74 + + COUNT( 80 ), + ( - 43 ) ) AS col2
----
-1223

skipif mysql # not compatible
query I rowsort label-8108
SELECT ALL - 15 / + NULLIF ( + + 12, + 29 * 90 ) + + 13 * COALESCE ( - 94, + COUNT ( * ) + CAST ( NULL AS INTEGER ), 74 + + COUNT ( 80 ), + ( - 43 ) ) AS col2
----
-1223

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

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

query I rowsort
SELECT + 62 + + 22 AS col2
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8111
SELECT COUNT( * ) DIV + + 50 + + 15 + + 65 + 2 * MIN( ALL 19 )
----
118

skipif mysql # not compatible
query I rowsort label-8111
SELECT COUNT ( * ) / + + 50 + + 15 + + 65 + 2 * MIN ( ALL 19 )
----
118

query I rowsort
SELECT ALL - 71 + 68 - + 17 + - - ( - 77 )
----
-97

query I rowsort
SELECT ALL - 65 * + + 76 + - - 78
----
-4862

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT CASE + 84 WHEN + - 72 THEN NULL WHEN + + COUNT( * ) THEN + ( CASE + 24 WHEN 31 THEN + 63 * 50 ELSE + COUNT( * ) + 7 END ) * CASE 79 + 18 WHEN - 29 + + 79 THEN + 13 / - 62 END ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8114
SELECT CASE + 84 WHEN + - 72 THEN NULL WHEN + + COUNT ( * ) THEN + ( CASE + 24 WHEN 31 THEN + 63 * 50 ELSE + COUNT ( * ) + 7 END ) * CASE 79 + 18 WHEN - 29 + + 79 THEN + 13 / - 62 END ELSE NULL END AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8115
SELECT ALL + COUNT ( * ) - - COUNT ( * ) / 33
----
1

query I rowsort
SELECT 95 - - 29 + 48
----
172

query I rowsort
SELECT - COALESCE ( + + ( + + 65 ), + NULLIF ( 17, 27 - 84 * + 9 ) ) + + 48 AS col1
----
-17

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

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

query I rowsort
SELECT ALL - - 83 * 50 - - NULLIF ( - - 59, + 49 ) AS col0
----
4209

onlyif mysql # DIV for integer division: 
query I rowsort label-8120
SELECT 19 DIV + + 8 + - 64 * + - 53 AS col2
----
3394

skipif mysql # not compatible
query I rowsort label-8120
SELECT 19 / + + 8 + - 64 * + - 53 AS col2
----
3394

query I rowsort
SELECT DISTINCT - + COALESCE ( 1, - 23 )
----
-1

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

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

query I rowsort
SELECT ALL - - 53 col1
----
53

query I rowsort
SELECT 10 - - 27 AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT ALL - SUM( ALL + 45 ) col0
----
-45

skipif mysql # not compatible
query I rowsort label-8125
SELECT ALL - SUM ( ALL + 45 ) col0
----
-45

query II rowsort
SELECT 50 AS col1, - 14 - + 82
----
50
-96

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

query I rowsort
SELECT 18 * 13
----
234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8129
SELECT DISTINCT - CAST( - 86 AS SIGNED )
----
86

skipif mysql # not compatible
query I rowsort label-8129
SELECT DISTINCT - CAST ( - 86 AS INTEGER )
----
86

query I rowsort
SELECT ALL 67 * - 56 AS col0
----
-3752

query I rowsort
SELECT 44 * + 29 * 83
----
105908

onlyif mysql # aggregate syntax: 
query I rowsort label-8132
SELECT SUM( + NULLIF ( + 9, + 76 ) ) * + 20 * ( 5 )
----
900

skipif mysql # not compatible
query I rowsort label-8132
SELECT SUM ( + NULLIF ( + 9, + 76 ) ) * + 20 * ( 5 )
----
900

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

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

query II rowsort
SELECT DISTINCT - 21, + 62 AS col2
----
-21
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT ALL 61 + ( + COUNT( DISTINCT + 35 ) ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-8135
SELECT ALL 61 + ( + COUNT ( DISTINCT + 35 ) ) AS col0
----
62

query II rowsort
SELECT ALL - 95 AS col1, NULLIF ( - 30, - 10 / 24 * 89 ) * + 46 - 46 * - 84
----
-95
2484

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

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

query I rowsort
SELECT DISTINCT 66 + 10
----
76

query I rowsort
SELECT ALL 25 + + - 24
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8140
SELECT 50 + + COALESCE ( - 19, + - 70 DIV - 72, 31 DIV COUNT( * ) - - 55 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-8140
SELECT 50 + + COALESCE ( - 19, + - 70 / - 72, 31 / COUNT ( * ) - - 55 ) AS col2
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-8141
SELECT + COUNT( * ) AS col0, 91 * - 41 + + 57
----
1
-3674

skipif mysql # not compatible
query II rowsort label-8141
SELECT + COUNT ( * ) AS col0, 91 * - 41 + + 57
----
1
-3674

query II rowsort
SELECT 82 col0, 38 AS col0
----
82
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT ALL 1 + COUNT( DISTINCT - 12 ) * 75 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-8143
SELECT ALL 1 + COUNT ( DISTINCT - 12 ) * 75 AS col0
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-8144
SELECT ALL 19 DIV - + 80
----
0

skipif mysql # not compatible
query I rowsort label-8144
SELECT ALL 19 / - + 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT ( MIN( DISTINCT 10 ) ) * NULLIF ( 50, 48 * 46 - 8 ) + + 42 AS col2
----
542

skipif mysql # not compatible
query I rowsort label-8145
SELECT ( MIN ( DISTINCT 10 ) ) * NULLIF ( 50, 48 * 46 - 8 ) + + 42 AS col2
----
542

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT 4 * - 35 * + + ( - 70 ) * - MAX( DISTINCT - 32 )
----
313600

skipif mysql # not compatible
query I rowsort label-8146
SELECT 4 * - 35 * + + ( - 70 ) * - MAX ( DISTINCT - 32 )
----
313600

query I rowsort
SELECT ALL 95 + - 87 AS col0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8148
SELECT CASE 38 WHEN + + CAST( NULL AS SIGNED ) THEN + ( + 48 ) + - 84 END + 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8148
SELECT CASE 38 WHEN + + CAST ( NULL AS INTEGER ) THEN + ( + 48 ) + - 84 END + 72 AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT 38 - + NULLIF ( + 10, ( + CASE 17 WHEN + COUNT( * ) THEN 41 + + 9 WHEN 59 THEN - ( MAX( - 97 ) ) END ) / - 79 )
----
28

skipif mysql # not compatible
query I rowsort label-8150
SELECT 38 - + NULLIF ( + 10, ( + CASE 17 WHEN + COUNT ( * ) THEN 41 + + 9 WHEN 59 THEN - ( MAX ( - 97 ) ) END ) / - 79 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT DISTINCT COUNT( * ) * - 98 * + 49 AS col1
----
-4802

skipif mysql # not compatible
query I rowsort label-8151
SELECT DISTINCT COUNT ( * ) * - 98 * + 49 AS col1
----
-4802

onlyif mysql # DIV for integer division: 
query I rowsort label-8152
SELECT 30 + - COALESCE ( - - 5, 60 DIV + 31 ) + - 83
----
-58

skipif mysql # not compatible
query I rowsort label-8152
SELECT 30 + - COALESCE ( - - 5, 60 / + 31 ) + - 83
----
-58

query I rowsort
SELECT 18 + - 29
----
-11

query I rowsort
SELECT 61 * - 51 AS col0
----
-3111

query I rowsort
SELECT + NULLIF ( - + 99, 29 ) + - 89 AS col1
----
-188

onlyif mysql # aggregate syntax: 
query II rowsort label-8156
SELECT ALL 99 AS col0, + 66 * + 3 * COUNT( * ) AS col1
----
99
198

skipif mysql # not compatible
query II rowsort label-8156
SELECT ALL 99 AS col0, + 66 * + 3 * COUNT ( * ) AS col1
----
99
198

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8158
SELECT - 1 - - 71 * + - 11 + - ( COUNT( * ) ) DIV 3
----
-782

skipif mysql # not compatible
query I rowsort label-8158
SELECT - 1 - - 71 * + - 11 + - ( COUNT ( * ) ) / 3
----
-782

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

query I rowsort
SELECT DISTINCT - COALESCE ( 4, - 89 * 33 + 0 ) AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT DISTINCT NULLIF ( + ( + 54 ), - COALESCE ( + COUNT( * ), COUNT( * ) * 46, 48 + + 0, - 98 ) ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-8161
SELECT DISTINCT NULLIF ( + ( + 54 ), - COALESCE ( + COUNT ( * ), COUNT ( * ) * 46, 48 + + 0, - 98 ) ) AS col0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-8162
SELECT ALL + + 68 DIV - 38 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8162
SELECT ALL + + 68 / - 38 AS col0
----
-1

query I rowsort
SELECT - + 4 + 62 * 61 * - - 72 AS col0
----
272300

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT DISTINCT COUNT( + 85 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8164
SELECT DISTINCT COUNT ( + 85 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT - - ( 49 ) + 97 * - NULLIF ( - 40, COUNT( * ) + - ( 83 ) )
----
3929

skipif mysql # not compatible
query I rowsort label-8165
SELECT - - ( 49 ) + 97 * - NULLIF ( - 40, COUNT ( * ) + - ( 83 ) )
----
3929

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

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

query I rowsort
SELECT DISTINCT + + 93 * 70
----
6510

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8168
SELECT + 30 DIV - - COUNT( * ) + + + 59 * + ( 36 ) + - 12
----
2142

skipif mysql # not compatible
query I rowsort label-8168
SELECT + 30 / - - COUNT ( * ) + + + 59 * + ( 36 ) + - 12
----
2142

onlyif mysql # DIV for integer division: 
query I rowsort label-8169
SELECT - NULLIF ( 8, 54 ) DIV 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8169
SELECT - NULLIF ( 8, 54 ) / 77 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8170
SELECT + 21 + - COALESCE ( + - NULLIF ( + CASE - 11 WHEN 7 + + 75 * + COUNT( * ) THEN + ( + 5 ) + 6 WHEN - 37 + MAX( - 1 ) THEN NULL END, - 95 ), + 58 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-8170
SELECT + 21 + - COALESCE ( + - NULLIF ( + CASE - 11 WHEN 7 + + 75 * + COUNT ( * ) THEN + ( + 5 ) + 6 WHEN - 37 + MAX ( - 1 ) THEN NULL END, - 95 ), + 58 ) AS col0
----
-37

query II rowsort
SELECT + 82 AS col1, - 36 AS col2
----
82
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT DISTINCT + MIN( 84 ) * + COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-8172
SELECT DISTINCT + MIN ( 84 ) * + COUNT ( * )
----
84

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

query II rowsort
SELECT + 89, 21 * 26 * 87 AS col1
----
89
47502

query I rowsort
SELECT COALESCE ( - - 26, - 26 )
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8176
SELECT ALL CASE SUM( + - 83 ) WHEN COUNT( * ) * - 70 THEN NULLIF ( SUM( ALL - 17 ), + 24 ) * - CAST( NULL AS SIGNED ) + - 79 * 82 END * 86 + + 79 * + 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8176
SELECT ALL CASE SUM ( + - 83 ) WHEN COUNT ( * ) * - 70 THEN NULLIF ( SUM ( ALL - 17 ), + 24 ) * - CAST ( NULL AS INTEGER ) + - 79 * 82 END * 86 + + 79 * + 77 AS col1
----
NULL

query I rowsort
SELECT + 79 * + 25 + + CASE 33 WHEN - 86 * + 79 - - 1 THEN + ( + 98 ) END
----
NULL

query I rowsort
SELECT - 67 + + - 17 + - + 97 * 14 AS col0
----
-1442

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8180
SELECT + 97 * - 83 + - - COUNT( ALL 80 ) + + - 5 - + COUNT( - 89 ) * CAST( AVG ( - 10 ) AS SIGNED )
----
-8045

skipif mysql # not compatible
query I rowsort label-8180
SELECT + 97 * - 83 + - - COUNT ( ALL 80 ) + + - 5 - + COUNT ( - 89 ) * CAST ( AVG ( - 10 ) AS INTEGER )
----
-8045

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8181
SELECT ALL 10 * 95 + + - COUNT( DISTINCT CAST( 67 AS SIGNED ) ) DIV - 84 AS col1
----
950

skipif mysql # not compatible
query I rowsort label-8181
SELECT ALL 10 * 95 + + - COUNT ( DISTINCT CAST ( 67 AS INTEGER ) ) / - 84 AS col1
----
950

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT - COUNT( * ) * - + COALESCE ( + COUNT( * ), - - 49 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8182
SELECT - COUNT ( * ) * - + COALESCE ( + COUNT ( * ), - - 49 ) AS col2
----
1

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

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

query I rowsort
SELECT ALL + 76 * - 66 AS col2
----
-5016

query I rowsort
SELECT + 89 + + 90 AS col2
----
179

query I rowsort
SELECT ALL 65 * - + 95 + + 56 AS col2
----
-6119

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT + 87 * + 25 + - 14 + - COUNT( - 14 ) + - 94 * - 30
----
4980

skipif mysql # not compatible
query I rowsort label-8187
SELECT + 87 * + 25 + - 14 + - COUNT ( - 14 ) + - 94 * - 30
----
4980

onlyif mysql # aggregate syntax: 
query II rowsort label-8188
SELECT ALL 87 AS col0, + COUNT( * ) + - COUNT( 94 ) + - 17 * + + COUNT( * )
----
87
-17

skipif mysql # not compatible
query II rowsort label-8188
SELECT ALL 87 AS col0, + COUNT ( * ) + - COUNT ( 94 ) + - 17 * + + COUNT ( * )
----
87
-17

query II rowsort
SELECT 27, + 68 AS col1
----
27
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8190
SELECT - CAST( + + 99 AS SIGNED ), - 40 AS col0
----
-99
-40

skipif mysql # not compatible
query II rowsort label-8190
SELECT - CAST ( + + 99 AS INTEGER ), - 40 AS col0
----
-99
-40

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8191
SELECT - CAST( - + 52 AS SIGNED ) DIV 26 - + 95 * - 40
----
3802

skipif mysql # not compatible
query I rowsort label-8191
SELECT - CAST ( - + 52 AS INTEGER ) / 26 - + 95 * - 40
----
3802

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8192
SELECT + 58 * - 58 - NULLIF ( 75, CAST( + 98 AS SIGNED ) ) + 59
----
-3380

skipif mysql # not compatible
query I rowsort label-8192
SELECT + 58 * - 58 - NULLIF ( 75, CAST ( + 98 AS INTEGER ) ) + 59
----
-3380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8193
SELECT DISTINCT - 21 - - + CAST( 91 AS SIGNED )
----
70

skipif mysql # not compatible
query I rowsort label-8193
SELECT DISTINCT - 21 - - + CAST ( 91 AS INTEGER )
----
70

query I rowsort
SELECT + 85 + - 98 - 47 AS col0
----
-60

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

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

query I rowsort
SELECT DISTINCT - + 62 - + - 82 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT ALL + ( - NULLIF ( - COUNT( * ), - + 32 - - COUNT( * ) * - 16 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8197
SELECT ALL + ( - NULLIF ( - COUNT ( * ), - + 32 - - COUNT ( * ) * - 16 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT ALL COALESCE ( + 80, + 9 * - MAX( + 28 ) ) col2
----
80

skipif mysql # not compatible
query I rowsort label-8198
SELECT ALL COALESCE ( + 80, + 9 * - MAX ( + 28 ) ) col2
----
80

query I rowsort
SELECT DISTINCT 86 * + - 67 * + 8
----
-46096

query II rowsort
SELECT ALL + 89 AS col0, 25
----
89
25

query I rowsort
SELECT + 61 + + - 59
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8202
SELECT ALL + - 16 * 9 + - 15 DIV - COALESCE ( - + 57, + 86 * 53, - MIN( ALL + 5 ) )
----
-144

skipif mysql # not compatible
query I rowsort label-8202
SELECT ALL + - 16 * 9 + - 15 / - COALESCE ( - + 57, + 86 * 53, - MIN ( ALL + 5 ) )
----
-144

query I rowsort
SELECT + 74 * + 30 col0
----
2220

query I rowsort
SELECT ALL 44 * 26 - 71
----
1073

query II rowsort
SELECT ALL + 37, 9 AS col1
----
37
9

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

query I rowsort
SELECT + 31 - - 65 * + 66 AS col1
----
4321

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

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

query I rowsort
SELECT ALL AVG ( - 56 ) / 4 + + 84 * - + CASE - 31 WHEN ( + 59 ) * - 7 THEN 12 END * 72 + - 41
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8210
SELECT + CAST( + + COALESCE ( + 6, + - 14 ) AS SIGNED ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-8210
SELECT + CAST ( + + COALESCE ( + 6, + - 14 ) AS INTEGER ) AS col0
----
6

query I rowsort
SELECT DISTINCT + 61 * - 45 AS col2
----
-2745

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8212
SELECT ALL 31 DIV - 34 + CAST( + - 2 AS SIGNED ) + ( - + 23 ) + + COUNT( * ) * + 27 * 95 * 53 col2
----
135920

skipif mysql # not compatible
query I rowsort label-8212
SELECT ALL 31 / - 34 + CAST ( + - 2 AS INTEGER ) + ( - + 23 ) + + COUNT ( * ) * + 27 * 95 * 53 col2
----
135920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8213
SELECT ALL 37 DIV - CASE + COUNT( * ) WHEN + - COALESCE ( - + 65, - 30 + COUNT( * ) ) THEN + 84 ELSE 58 END + + 82 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-8213
SELECT ALL 37 / - CASE + COUNT ( * ) WHEN + - COALESCE ( - + 65, - 30 + COUNT ( * ) ) THEN + 84 ELSE 58 END + + 82 AS col2
----
82

query I rowsort
SELECT + 31 * - 29
----
-899

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8215
SELECT + CAST( - 4 AS SIGNED ) AS col1, 55
----
-4
55

skipif mysql # not compatible
query II rowsort label-8215
SELECT + CAST ( - 4 AS INTEGER ) AS col1, 55
----
-4
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT + COUNT( * ) * + 40 * - + 95
----
-3800

skipif mysql # not compatible
query I rowsort label-8216
SELECT + COUNT ( * ) * + 40 * - + 95
----
-3800

query I rowsort
SELECT ALL - 44 * + 56 AS col2
----
-2464

onlyif mysql # aggregate syntax: 
query II rowsort label-8218
SELECT ( + - SUM( ALL + 72 ) ) AS col2, NULLIF ( + CASE + - 65 WHEN - + 53 THEN 9 + - 41 ELSE NULL END, - NULLIF ( COUNT( * ), + 21 ) ) AS col2
----
-72
NULL

skipif mysql # not compatible
query II rowsort label-8218
SELECT ( + - SUM ( ALL + 72 ) ) AS col2, NULLIF ( + CASE + - 65 WHEN - + 53 THEN 9 + - 41 ELSE NULL END, - NULLIF ( COUNT ( * ), + 21 ) ) AS col2
----
-72
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8219
SELECT - 89 DIV + 93 * + 68
----
0

skipif mysql # not compatible
query I rowsort label-8219
SELECT - 89 / + 93 * + 68
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8220
SELECT ALL CASE - - 80 WHEN - 1 * - + COUNT( * ) THEN NULL ELSE - COUNT( * ) + + 12 END * - 78 - 34 DIV 15 AS col0
----
-860

skipif mysql # not compatible
query I rowsort label-8220
SELECT ALL CASE - - 80 WHEN - 1 * - + COUNT ( * ) THEN NULL ELSE - COUNT ( * ) + + 12 END * - 78 - 34 / 15 AS col0
----
-860

query I rowsort
SELECT - ( - - 55 ) - + + 77 AS col1
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT DISTINCT 83 * - COALESCE ( + - COUNT( * ), + 17 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-8222
SELECT DISTINCT 83 * - COALESCE ( + - COUNT ( * ), + 17 ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT DISTINCT - COUNT( * ) * 49 - 71
----
-120

skipif mysql # not compatible
query I rowsort label-8223
SELECT DISTINCT - COUNT ( * ) * 49 - 71
----
-120

onlyif mysql # aggregate syntax: 
query II rowsort label-8224
SELECT ALL + ( + - 9 ), + ( - 27 ) * COUNT( * ) + 16 + - 82 AS col0
----
-9
-93

skipif mysql # not compatible
query II rowsort label-8224
SELECT ALL + ( + - 9 ), + ( - 27 ) * COUNT ( * ) + 16 + - 82 AS col0
----
-9
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT ALL 29 * + - COUNT( * ) - - 22 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-8225
SELECT ALL 29 * + - COUNT ( * ) - - 22 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-8226
SELECT - + 47 * + 60, COUNT( * ) AS col1
----
-2820
1

skipif mysql # not compatible
query II rowsort label-8226
SELECT - + 47 * + 60, COUNT ( * ) AS col1
----
-2820
1

query I rowsort
SELECT - 73 + + 42 * + 37
----
1481

query I rowsort
SELECT ALL + NULLIF ( + 31, - - 25 )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8229
SELECT + 68 * + + 11 + - + CAST( NULL AS SIGNED ) - + 68 / COUNT( * ) / + 56 + 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8229
SELECT + 68 * + + 11 + - + CAST ( NULL AS INTEGER ) - + 68 / COUNT ( * ) / + 56 + 68 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8230
SELECT + - 98 DIV - 89 + 70, + 54 - - MIN( - - ( 6 ) ) + - 39 AS col2
----
71
21

skipif mysql # not compatible
query II rowsort label-8230
SELECT + - 98 / - 89 + 70, + 54 - - MIN ( - - ( 6 ) ) + - 39 AS col2
----
71
21

query II rowsort
SELECT 32 * + + 76 AS col1, 35 AS col0
----
2432
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8232
SELECT 47 + + NULLIF ( + 84, - 42 * - COUNT( * ) + + 54 * 68 * 17 + CASE - 10 WHEN + 35 THEN - 17 END ) + + NULLIF ( - 99 - NULLIF ( + 4 + 33, + 7 ), - 80 / 66 ) * 70
----
-9389

skipif mysql # not compatible
query I rowsort label-8232
SELECT 47 + + NULLIF ( + 84, - 42 * - COUNT ( * ) + + 54 * 68 * 17 + CASE - 10 WHEN + 35 THEN - 17 END ) + + NULLIF ( - 99 - NULLIF ( + 4 + 33, + 7 ), - 80 / 66 ) * 70
----
-9389

onlyif mysql # aggregate syntax: 
query II rowsort label-8233
SELECT - - SUM( + 63 ), 40 * 85 col0
----
63
3400

skipif mysql # not compatible
query II rowsort label-8233
SELECT - - SUM ( + 63 ), 40 * 85 col0
----
63
3400

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8235
SELECT + CAST( NULL AS DECIMAL ) + + 7 * + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-8235
SELECT + CAST ( NULL AS REAL ) + + 7 * + 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT NULLIF ( - 16, SUM( - 63 ) )
----
-16

skipif mysql # not compatible
query I rowsort label-8236
SELECT NULLIF ( - 16, SUM ( - 63 ) )
----
-16

query I rowsort
SELECT ALL - ( + + 57 ) * + + 46 AS col1
----
-2622

query I rowsort
SELECT 70 + + 20 AS col2
----
90

query I rowsort
SELECT 16 + 76 * - ( + ( 28 ) )
----
-2112

query I rowsort
SELECT ALL - 82 * - - 61 AS col2
----
-5002

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

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

query I rowsort
SELECT - CASE + - 2 WHEN 66 THEN NULL ELSE + 51 END + + 30 * 3
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8243
SELECT - COALESCE ( 6, - - CAST( NULL AS SIGNED ) + - 34 )
----
-6

skipif mysql # not compatible
query I rowsort label-8243
SELECT - COALESCE ( 6, - - CAST ( NULL AS INTEGER ) + - 34 )
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8244
SELECT CAST( NULL AS SIGNED ) / + - 33 * + 69 * - - 24 + + 44 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8244
SELECT CAST ( NULL AS INTEGER ) / + - 33 * + 69 * - - 24 + + 44 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8245
SELECT 70 DIV - 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8245
SELECT 70 / - 81 AS col2
----
0

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

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

query I rowsort
SELECT ALL 85 + + + 70 AS col0
----
155

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

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

query I rowsort
SELECT DISTINCT + 20 + - 75 col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT ( + + COUNT( * ) ) + 3 + - + 19 + 13 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-8250
SELECT ( + + COUNT ( * ) ) + 3 + - + 19 + 13 AS col0
----
-2

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8252
SELECT 90 col0, 29 * - CAST( + - 45 AS SIGNED )
----
90
1305

skipif mysql # not compatible
query II rowsort label-8252
SELECT 90 col0, 29 * - CAST ( + - 45 AS INTEGER )
----
90
1305

query I rowsort
SELECT ALL 2 * + 44 AS col1
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-8254
SELECT ( - SUM( DISTINCT - 99 ) ) + - - COUNT( * ) AS col0, 37 - - 80 + - ( - 65 ) - 48 * - 18
----
100
1046

skipif mysql # not compatible
query II rowsort label-8254
SELECT ( - SUM ( DISTINCT - 99 ) ) + - - COUNT ( * ) AS col0, 37 - - 80 + - ( - 65 ) - 48 * - 18
----
100
1046

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8255
SELECT 3 DIV + - 43 - + + COUNT( ALL + NULLIF ( + 64, - - 12 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8255
SELECT 3 / + - 43 - + + COUNT ( ALL + NULLIF ( + 64, - - 12 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8256
SELECT ALL - 33 AS col0, 71 * - 46 + - - 66 + COUNT( * ) * - 59
----
-33
-3259

skipif mysql # not compatible
query II rowsort label-8256
SELECT ALL - 33 AS col0, 71 * - 46 + - - 66 + COUNT ( * ) * - 59
----
-33
-3259

query I rowsort
SELECT ALL 96 - - 96
----
192

query II rowsort
SELECT + 8 AS col2, - 31
----
8
-31

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT ALL - 13 * ( + 53 ) * 1 * + + COUNT( * ) AS col0
----
-689

skipif mysql # not compatible
query I rowsort label-8261
SELECT ALL - 13 * ( + 53 ) * 1 * + + COUNT ( * ) AS col0
----
-689

query I rowsort
SELECT 4 + 29
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8263
SELECT DISTINCT - 42 AS col1, CAST( NULL AS SIGNED ) * 29
----
-42
NULL

skipif mysql # not compatible
query II rowsort label-8263
SELECT DISTINCT - 42 AS col1, CAST ( NULL AS INTEGER ) * 29
----
-42
NULL

query I rowsort
SELECT - 50 * - 7 + + 12
----
362

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT DISTINCT 92 - + COUNT( * ) * - + COALESCE ( - + 31, - 71, 22 )
----
61

skipif mysql # not compatible
query I rowsort label-8265
SELECT DISTINCT 92 - + COUNT ( * ) * - + COALESCE ( - + 31, - 71, 22 )
----
61

query I rowsort
SELECT + 31 * + 15
----
465

query I rowsort
SELECT ALL - 38 * 41 - + + 14 AS col1
----
-1572

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT + ( MAX( DISTINCT + - ( - 5 ) ) )
----
5

skipif mysql # not compatible
query I rowsort label-8268
SELECT + ( MAX ( DISTINCT + - ( - 5 ) ) )
----
5

query I rowsort
SELECT - 20 * + 64 * + NULLIF ( - - 68, - + 52 * + COALESCE ( - 1, 12 + + 57 ) * AVG ( 47 ) + + 95 ) + + 70
----
-86970

query I rowsort
SELECT ALL + + 49 * - - 16
----
784

onlyif mysql # aggregate syntax: 
query I rowsort label-8271
SELECT DISTINCT - 5 * - COUNT( * ) col0
----
5

skipif mysql # not compatible
query I rowsort label-8271
SELECT DISTINCT - 5 * - COUNT ( * ) col0
----
5

query I rowsort
SELECT 46 * - + CASE + 15 WHEN - 45 THEN NULL WHEN + 23 / + + ( - 16 ) + - 55 - + 72 THEN + 21 + 93 ELSE NULL END * 96 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT DISTINCT - - MAX( ( - + 92 ) ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-8273
SELECT DISTINCT - - MAX ( ( - + 92 ) ) AS col2
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8274
SELECT DISTINCT - CAST( + 8 AS SIGNED )
----
-8

skipif mysql # not compatible
query I rowsort label-8274
SELECT DISTINCT - CAST ( + 8 AS INTEGER )
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8275
SELECT ALL 81 * + 59 * CASE + 95 WHEN - 39 * + 78 THEN NULL WHEN + NULLIF ( + 59, - 41 * + COALESCE ( + 99 * + COUNT( * ), - 51, - 91 * + 94 ) ) THEN + 35 END * CASE 30 WHEN + 6 + - 83 * - COALESCE ( 88 - 98 * 2, - MAX( DISTINCT + 65 ) - CAST( 75 AS SIGNED ) * + 84, + 4 ) THEN - 92 * - ( MIN( ALL - 39 ) ) WHEN + ( + 93 ) - + 41 THEN NULL WHEN 74 + 3 * 68 THEN CAST( NULL AS SIGNED ) * - COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8275
SELECT ALL 81 * + 59 * CASE + 95 WHEN - 39 * + 78 THEN NULL WHEN + NULLIF ( + 59, - 41 * + COALESCE ( + 99 * + COUNT ( * ), - 51, - 91 * + 94 ) ) THEN + 35 END * CASE 30 WHEN + 6 + - 83 * - COALESCE ( 88 - 98 * 2, - MAX ( DISTINCT + 65 ) - CAST ( 75 AS INTEGER ) * + 84, + 4 ) THEN - 92 * - ( MIN ( ALL - 39 ) ) WHEN + ( + 93 ) - + 41 THEN NULL WHEN 74 + 3 * 68 THEN CAST ( NULL AS INTEGER ) * - COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT ALL + - 61 + - 31 * 37 * + SUM( ALL 24 ) + - + 30 + + 92 col2
----
-27527

skipif mysql # not compatible
query I rowsort label-8276
SELECT ALL + - 61 + - 31 * 37 * + SUM ( ALL 24 ) + - + 30 + + 92 col2
----
-27527

query II rowsort
SELECT DISTINCT - 44, + 56 AS col1
----
-44
56

query II rowsort
SELECT - 47 * - 94 * - + 12 AS col1, 8 + + 44 + + 51 * - - 88 - + 10 AS col1
----
-53016
4530

query I rowsort
SELECT ALL + - 69 + + 69 - + + 51 * - - 19
----
-969

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT DISTINCT - COUNT( - - 26 ) + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8280
SELECT DISTINCT - COUNT ( - - 26 ) + COUNT ( * )
----
0

query II rowsort
SELECT + 14 * + 29 + - + 70, 79 * + 63 AS col0
----
336
4977

onlyif mysql # aggregate syntax: 
query II rowsort label-8282
SELECT ( 15 ) * - 83, - MAX( DISTINCT - 73 ) AS col2
----
-1245
73

skipif mysql # not compatible
query II rowsort label-8282
SELECT ( 15 ) * - 83, - MAX ( DISTINCT - 73 ) AS col2
----
-1245
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT ALL - COUNT( ALL + 54 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8283
SELECT ALL - COUNT ( ALL + 54 ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8284
SELECT - + 87, + 91 DIV MAX( - 67 ) * + - ( - 53 ) AS col1
----
-87
-53

skipif mysql # not compatible
query II rowsort label-8284
SELECT - + 87, + 91 / MAX ( - 67 ) * + - ( - 53 ) AS col1
----
-87
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT ALL - SUM( ALL - NULLIF ( NULLIF ( 4, - + 12 ), + ( + 80 ) * - + 89 ) ) col1
----
4

skipif mysql # not compatible
query I rowsort label-8285
SELECT ALL - SUM ( ALL - NULLIF ( NULLIF ( 4, - + 12 ), + ( + 80 ) * - + 89 ) ) col1
----
4

query I rowsort
SELECT 69 + - 44 + - 48 * - 66 * + 90 AS col1
----
285145

onlyif mysql # aggregate syntax: 
query I rowsort label-8287
SELECT DISTINCT 56 + + 16 * 22 + COUNT( * ) AS col0
----
409

skipif mysql # not compatible
query I rowsort label-8287
SELECT DISTINCT 56 + + 16 * 22 + COUNT ( * ) AS col0
----
409

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT DISTINCT - 61 * COUNT( * ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-8288
SELECT DISTINCT - 61 * COUNT ( * ) AS col1
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-8289
SELECT 50 * 86 DIV + + 8
----
537

skipif mysql # not compatible
query I rowsort label-8289
SELECT 50 * 86 / + + 8
----
537

onlyif mysql # aggregate syntax: 
query I rowsort label-8290
SELECT 89 * + NULLIF ( - COUNT( * ), + 84 * COUNT( - 3 ) ) * + COUNT( * ) col2
----
-89

skipif mysql # not compatible
query I rowsort label-8290
SELECT 89 * + NULLIF ( - COUNT ( * ), + 84 * COUNT ( - 3 ) ) * + COUNT ( * ) col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8291
SELECT DISTINCT MAX( DISTINCT - 11 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-8291
SELECT DISTINCT MAX ( DISTINCT - 11 ) AS col1
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8292
SELECT DISTINCT 37 / 32 * - 17 / + + ( - AVG ( ALL + + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8292
SELECT DISTINCT 37 / 32 * - 17 / + + ( - AVG ( ALL + + CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8293
SELECT ALL 96 - 11 + + NULLIF ( + 78, 11 ) AS col0, COUNT( * ) * - + 91
----
163
-91

skipif mysql # not compatible
query II rowsort label-8293
SELECT ALL 96 - 11 + + NULLIF ( + 78, 11 ) AS col0, COUNT ( * ) * - + 91
----
163
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8294
SELECT ALL 48 * NULLIF ( + 98, + CAST( + 96 AS SIGNED ) * - 97 )
----
4704

skipif mysql # not compatible
query I rowsort label-8294
SELECT ALL 48 * NULLIF ( + 98, + CAST ( + 96 AS INTEGER ) * - 97 )
----
4704

query I rowsort
SELECT ALL 95 * + + 48 * - - 81 * 26 AS col1
----
9603360

query I rowsort
SELECT 78 * 44
----
3432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8297
SELECT 13 * CASE - 47 WHEN - + 29 THEN + CAST( NULL AS SIGNED ) + + COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8297
SELECT 13 * CASE - 47 WHEN - + 29 THEN + CAST ( NULL AS INTEGER ) + + COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT 9 * + 58 - - - 94 - + + COUNT( * ) + + - 8
----
419

skipif mysql # not compatible
query I rowsort label-8298
SELECT 9 * + 58 - - - 94 - + + COUNT ( * ) + + - 8
----
419

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT MAX( 53 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-8299
SELECT MAX ( 53 ) AS col1
----
53

query I rowsort
SELECT DISTINCT 30 * + 12 * 34 AS col0
----
12240

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT DISTINCT 47 * COUNT( 12 )
----
47

skipif mysql # not compatible
query I rowsort label-8301
SELECT DISTINCT 47 * COUNT ( 12 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT + CASE COUNT( * ) WHEN 4 * 16 THEN + 83 END * + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8302
SELECT + CASE COUNT ( * ) WHEN 4 * 16 THEN + 83 END * + COUNT ( * ) col0
----
NULL

query I rowsort
SELECT DISTINCT + 65 * - + 84
----
-5460

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8304
SELECT + MAX( + 90 ) DIV - 81
----
-1

skipif mysql # not compatible
query I rowsort label-8304
SELECT + MAX ( + 90 ) / - 81
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT ALL - 29 * + + 59 + - MAX( ALL - + 16 ) * - 66 AS col1
----
-2767

skipif mysql # not compatible
query I rowsort label-8305
SELECT ALL - 29 * + + 59 + - MAX ( ALL - + 16 ) * - 66 AS col1
----
-2767

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT + + 20 * + 91 + MIN( DISTINCT 70 ) * 53
----
5530

skipif mysql # not compatible
query I rowsort label-8306
SELECT + + 20 * + 91 + MIN ( DISTINCT 70 ) * 53
----
5530

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8307
SELECT ALL + CAST( 48 AS SIGNED ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-8307
SELECT ALL + CAST ( 48 AS INTEGER ) AS col1
----
48

query I rowsort
SELECT + ( + ( + 36 ) )
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8309
SELECT ALL + COALESCE ( 71, + 2 * - CAST( + CASE WHEN NOT NULL <> ( NULL ) THEN 55 END AS SIGNED ) * 8, NULLIF ( - COUNT( * ), 33 ) DIV + 5 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-8309
SELECT ALL + COALESCE ( 71, + 2 * - CAST ( + CASE WHEN NOT NULL <> ( NULL ) THEN 55 END AS INTEGER ) * 8, NULLIF ( - COUNT ( * ), 33 ) / + 5 ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT + + CASE 85 WHEN + 99 THEN - ( + 31 ) * - 23 - - CASE COUNT( * ) WHEN - 60 THEN NULL WHEN MAX( 94 ) THEN MAX( - 24 ) END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8310
SELECT + + CASE 85 WHEN + 99 THEN - ( + 31 ) * - 23 - - CASE COUNT ( * ) WHEN - 60 THEN NULL WHEN MAX ( 94 ) THEN MAX ( - 24 ) END END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8311
SELECT + + 71 DIV + 4 + + 67 - + 71 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-8311
SELECT + + 71 / + 4 + + 67 - + 71 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT + 71 + COUNT( * ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-8312
SELECT + 71 + COUNT ( * ) AS col1
----
72

query I rowsort
SELECT ALL - 91 + - + 55 + + 13 AS col0
----
-133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8314
SELECT - CAST( NULL AS SIGNED ) * - 45 + + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-8314
SELECT - CAST ( NULL AS INTEGER ) * - 45 + + 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT - + COUNT( DISTINCT + 86 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8315
SELECT - + COUNT ( DISTINCT + 86 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT + 98 + + CASE - 28 WHEN - + CASE - + COUNT( * ) WHEN + + 93 * + COUNT( * ) * - COALESCE ( - ( 33 ), - 16 - + 77 / + 62 ) * 53 THEN + 58 - COALESCE ( + 39, 90 ) / + 21 END * - ( + 74 ) + + 19 THEN MIN( 45 ) + - 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8316
SELECT + 98 + + CASE - 28 WHEN - + CASE - + COUNT ( * ) WHEN + + 93 * + COUNT ( * ) * - COALESCE ( - ( 33 ), - 16 - + 77 / + 62 ) * 53 THEN + 58 - COALESCE ( + 39, 90 ) / + 21 END * - ( + 74 ) + + 19 THEN MIN ( 45 ) + - 11 END
----
NULL

query I rowsort
SELECT - 67 * + 50 * - 71
----
237850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8318
SELECT DISTINCT - COUNT( * ) * + 80 + - - CAST( NULL AS SIGNED ) - - 26 AS col2, 85 + - 39 * - 85 * + - 60 AS col1
----
NULL
-198815

skipif mysql # not compatible
query II rowsort label-8318
SELECT DISTINCT - COUNT ( * ) * + 80 + - - CAST ( NULL AS INTEGER ) - - 26 AS col2, 85 + - 39 * - 85 * + - 60 AS col1
----
NULL
-198815

onlyif mysql # aggregate syntax: 
query II rowsort label-8319
SELECT DISTINCT NULLIF ( + MAX( DISTINCT ( - 1 ) ), - - 89 ) AS col0, 32
----
-1
32

skipif mysql # not compatible
query II rowsort label-8319
SELECT DISTINCT NULLIF ( + MAX ( DISTINCT ( - 1 ) ), - - 89 ) AS col0, 32
----
-1
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT DISTINCT NULLIF ( COUNT( * ), + + 39 )
----
1

skipif mysql # not compatible
query I rowsort label-8320
SELECT DISTINCT NULLIF ( COUNT ( * ), + + 39 )
----
1

query I rowsort
SELECT - 67 * 16 col2
----
-1072

onlyif mysql # aggregate syntax: 
query II rowsort label-8322
SELECT - COUNT( 60 ) + + ( + - 23 ) + - 71 AS col1, 42
----
-95
42

skipif mysql # not compatible
query II rowsort label-8322
SELECT - COUNT ( 60 ) + + ( + - 23 ) + - 71 AS col1, 42
----
-95
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT DISTINCT - COUNT( * ) * + 17
----
-17

skipif mysql # not compatible
query I rowsort label-8323
SELECT DISTINCT - COUNT ( * ) * + 17
----
-17

query I rowsort
SELECT DISTINCT - 30 * 3 * + - CASE - 42 WHEN 54 THEN - - 85 * + 87 + 77 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8325
SELECT ALL + COUNT( * ) * + 88
----
88

skipif mysql # not compatible
query I rowsort label-8325
SELECT ALL + COUNT ( * ) * + 88
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT DISTINCT + 40 * COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-8326
SELECT DISTINCT + 40 * COUNT ( * )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT - 7 * CASE COUNT( * ) WHEN - + 47 THEN 50 END * 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8327
SELECT - 7 * CASE COUNT ( * ) WHEN - + 47 THEN 50 END * 5 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8328
SELECT - COALESCE ( 31, + + ( - 47 ) DIV - 47 ) + - 91 * - ( + COUNT( * ) ) * + 50 * - + 41
----
-186581

skipif mysql # not compatible
query I rowsort label-8328
SELECT - COALESCE ( 31, + + ( - 47 ) / - 47 ) + - 91 * - ( + COUNT ( * ) ) * + 50 * - + 41
----
-186581

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT ( - CASE - 81 WHEN + - 99 * - + COUNT( * ) - 13 THEN + + 1 WHEN + 99 / - + 4 THEN NULL ELSE + + ( COALESCE ( ( - 50 ), + 60 * - 90 ) ) END )
----
50

skipif mysql # not compatible
query I rowsort label-8329
SELECT ( - CASE - 81 WHEN + - 99 * - + COUNT ( * ) - 13 THEN + + 1 WHEN + 99 / - + 4 THEN NULL ELSE + + ( COALESCE ( ( - 50 ), + 60 * - 90 ) ) END )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT - 95 + - 75 + - COUNT( * )
----
-171

skipif mysql # not compatible
query I rowsort label-8330
SELECT - 95 + - 75 + - COUNT ( * )
----
-171

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8331
SELECT 77 DIV 96 - 31 - 21 + - 96 * COUNT( * ) * + ( - COUNT( * ) ) * - 86 - + 91 + - COUNT( + 7 ) AS col1
----
-8400

skipif mysql # not compatible
query I rowsort label-8331
SELECT 77 / 96 - 31 - 21 + - 96 * COUNT ( * ) * + ( - COUNT ( * ) ) * - 86 - + 91 + - COUNT ( + 7 ) AS col1
----
-8400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8332
SELECT ALL - - AVG ( + 35 ) * + CASE + CAST( NULL AS SIGNED ) WHEN - + 84 + + COALESCE ( - + 3, 22 + + + 32, + NULLIF ( 32, + 78 + COUNT( ALL - CASE + 75 WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE 74 - 8 END ) ) * 87, 22 - 89 ) THEN 53 + ( 59 + 98 ) END + 67 + 89 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8332
SELECT ALL - - AVG ( + 35 ) * + CASE + CAST ( NULL AS INTEGER ) WHEN - + 84 + + COALESCE ( - + 3, 22 + + + 32, + NULLIF ( 32, + 78 + COUNT ( ALL - CASE + 75 WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE 74 - 8 END ) ) * 87, 22 - 89 ) THEN 53 + ( 59 + 98 ) END + 67 + 89 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT ALL + COALESCE ( 64, MAX( - 78 ) * - 18 * - - 63 )
----
64

skipif mysql # not compatible
query I rowsort label-8333
SELECT ALL + COALESCE ( 64, MAX ( - 78 ) * - 18 * - - 63 )
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-8334
SELECT DISTINCT MIN( + 42 ) * 97, COUNT( * ) * 99 * - 13 col2
----
4074
-1287

skipif mysql # not compatible
query II rowsort label-8334
SELECT DISTINCT MIN ( + 42 ) * 97, COUNT ( * ) * 99 * - 13 col2
----
4074
-1287

query II rowsort
SELECT 29 AS col2, 52 col1
----
29
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT + COUNT( 92 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8336
SELECT + COUNT ( 92 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8337
SELECT - 69 * 59 DIV + - COUNT( * ) - + COUNT( * )
----
4070

skipif mysql # not compatible
query I rowsort label-8337
SELECT - 69 * 59 / + - COUNT ( * ) - + COUNT ( * )
----
4070

onlyif mysql # DIV for integer division: 
query I rowsort label-8338
SELECT + 73 * 52 * - - 40 + + - 62 + - - 33 DIV - 71
----
151778

skipif mysql # not compatible
query I rowsort label-8338
SELECT + 73 * 52 * - - 40 + + - 62 + - - 33 / - 71
----
151778

onlyif mysql # aggregate syntax: 
query III rowsort label-8339
SELECT + + 48 AS col2, - 33 * + 32, + + MAX( 36 ) * - 32 - + 19 + - COUNT( * ) AS col0
----
48
-1056
-1172

skipif mysql # not compatible
query III rowsort label-8339
SELECT + + 48 AS col2, - 33 * + 32, + + MAX ( 36 ) * - 32 - + 19 + - COUNT ( * ) AS col0
----
48
-1056
-1172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8340
SELECT + + CAST( + + COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-8340
SELECT + + CAST ( + + COUNT ( * ) AS INTEGER )
----
1

query II rowsort
SELECT + 15 col0, - ( - NULLIF ( + ( + 90 ), - - 10 ) ) * - - 42 AS col1
----
15
3780

query I rowsort
SELECT ALL + 59 * - + 53 + - - 3 * - 46
----
-3265

query I rowsort
SELECT - CASE 57 WHEN + 3 + + 88 THEN + 62 + + ( + 41 ) END
----
NULL

query II rowsort
SELECT DISTINCT + 30 AS col2, 7 AS col2
----
30
7

query I rowsort
SELECT + 71 * + 73 * + 90
----
466470

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT + COUNT( * ) * + - 90 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-8346
SELECT + COUNT ( * ) * + - 90 AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT + 91 - SUM( - + 14 ) + 31
----
136

skipif mysql # not compatible
query I rowsort label-8347
SELECT + 91 - SUM ( - + 14 ) + 31
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT COUNT( DISTINCT - 86 )
----
1

skipif mysql # not compatible
query I rowsort label-8348
SELECT COUNT ( DISTINCT - 86 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT + ( - 12 ) * + COUNT( ALL - 49 ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-8349
SELECT + ( - 12 ) * + COUNT ( ALL - 49 ) AS col2
----
-12

query II rowsort
SELECT - 86, 78 + 30 AS col2
----
-86
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8351
SELECT ALL - COUNT( * ) * + CAST( + 22 AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-8351
SELECT ALL - COUNT ( * ) * + CAST ( + 22 AS INTEGER )
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-8352
SELECT DISTINCT 43, COUNT( * ) + + 78 DIV - 1 AS col2, + + CASE + - 25 WHEN - COALESCE ( 81, - - 89 ) THEN NULL WHEN - + 8 DIV 36 * 69 THEN ( + CASE + ( - 70 ) WHEN - COUNT( * ) THEN NULL WHEN + 82 THEN - 55 WHEN COUNT( * ) THEN NULL ELSE NULL END ) END AS col1
----
43
-77
NULL

skipif mysql # not compatible
query III rowsort label-8352
SELECT DISTINCT 43, COUNT ( * ) + + 78 / - 1 AS col2, + + CASE + - 25 WHEN - COALESCE ( 81, - - 89 ) THEN NULL WHEN - + 8 / 36 * 69 THEN ( + CASE + ( - 70 ) WHEN - COUNT ( * ) THEN NULL WHEN + 82 THEN - 55 WHEN COUNT ( * ) THEN NULL ELSE NULL END ) END AS col1
----
43
-77
NULL

query I rowsort
SELECT ALL ( 73 ) col2
----
73

query I rowsort
SELECT DISTINCT ( - + 71 ) AS col2
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-8355
SELECT DISTINCT COUNT( * ), - 13 AS col2
----
1
-13

skipif mysql # not compatible
query II rowsort label-8355
SELECT DISTINCT COUNT ( * ), - 13 AS col2
----
1
-13

query I rowsort
SELECT ALL NULLIF ( 59, + 95 ) AS col0
----
59

query I rowsort
SELECT ( - 94 ) * 45 col2
----
-4230

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT 29 + - SUM( DISTINCT + COALESCE ( NULLIF ( + 82, NULLIF ( + 60, + 92 ) ), - 19 * 32 * - - ( 15 ), - 8 - 96 ) )
----
-53

skipif mysql # not compatible
query I rowsort label-8358
SELECT 29 + - SUM ( DISTINCT + COALESCE ( NULLIF ( + 82, NULLIF ( + 60, + 92 ) ), - 19 * 32 * - - ( 15 ), - 8 - 96 ) )
----
-53

query II rowsort
SELECT ALL 16 AS col1, - 9
----
16
-9

query I rowsort
SELECT 39 + - - 17 * 30 - 79
----
470

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT ALL + SUM( - + 0 ) * - 51 col1
----
0

skipif mysql # not compatible
query I rowsort label-8361
SELECT ALL + SUM ( - + 0 ) * - 51 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT ALL + CASE COUNT( 39 ) WHEN + 38 THEN + 18 ELSE NULL END + 51 + + 57 / - 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8362
SELECT ALL + CASE COUNT ( 39 ) WHEN + 38 THEN + 18 ELSE NULL END + 51 + + 57 / - 63 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8363
SELECT 19 * - - 76 * - COALESCE ( - 18, - ( - ( 21 ) ) * + 44 DIV + 79 )
----
25992

skipif mysql # not compatible
query I rowsort label-8363
SELECT 19 * - - 76 * - COALESCE ( - 18, - ( - ( 21 ) ) * + 44 / + 79 )
----
25992

query I rowsort
SELECT ALL - - 30 + - - 30
----
60

query I rowsort
SELECT DISTINCT - 57 + + 88 col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT MAX( ALL + 66 ) - + - COUNT( * ) * MAX( - 88 ) - - 37 col1
----
15

skipif mysql # not compatible
query I rowsort label-8366
SELECT MAX ( ALL + 66 ) - + - COUNT ( * ) * MAX ( - 88 ) - - 37 col1
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-8367
SELECT - COUNT( * ) AS col0, 95 * + 49
----
-1
4655

skipif mysql # not compatible
query II rowsort label-8367
SELECT - COUNT ( * ) AS col0, 95 * + 49
----
-1
4655

query II rowsort
SELECT + + 83, + 79 AS col1
----
83
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8369
SELECT CASE - + COUNT( * ) WHEN - - COUNT( * ) THEN - + 32 * - - 3 * NULLIF ( + + COUNT( * ), - 81 DIV 80 DIV 3 * - + 96 DIV + MAX( + 20 ) ) WHEN ( + 55 ) THEN NULL ELSE + 46 END DIV NULLIF ( 66 + ( - 75 ) * 30, COALESCE ( + 45, + 14, + 82 - + 64 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8369
SELECT CASE - + COUNT ( * ) WHEN - - COUNT ( * ) THEN - + 32 * - - 3 * NULLIF ( + + COUNT ( * ), - 81 / 80 / 3 * - + 96 / + MAX ( + 20 ) ) WHEN ( + 55 ) THEN NULL ELSE + 46 END / NULLIF ( 66 + ( - 75 ) * 30, COALESCE ( + 45, + 14, + 82 - + 64 ) )
----
0

query I rowsort
SELECT + 22 * 14 * 62 * 84 AS col1
----
1604064

onlyif mysql # DIV for integer division: 
query I rowsort label-8371
SELECT DISTINCT - - 75 DIV - 33
----
-2

skipif mysql # not compatible
query I rowsort label-8371
SELECT DISTINCT - - 75 / - 33
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8372
SELECT SUM( DISTINCT + 24 ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-8372
SELECT SUM ( DISTINCT + 24 ) AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT + 54 * + COALESCE ( - 98, - 53 + - 87 * + 61 ) * - - 3 * - 68 * + COUNT( * ) + - + 44 + + - 56 - COUNT( * ) AS col2
----
1079467

skipif mysql # not compatible
query I rowsort label-8373
SELECT + 54 * + COALESCE ( - 98, - 53 + - 87 * + 61 ) * - - 3 * - 68 * + COUNT ( * ) + - + 44 + + - 56 - COUNT ( * ) AS col2
----
1079467

query I rowsort
SELECT ALL 42 * - 70 AS col2
----
-2940

query II rowsort
SELECT DISTINCT - + 81 AS col1, 96
----
-81
96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8376
SELECT ALL + + CASE + 13 WHEN - ( - CASE + 6 WHEN - 2 THEN NULL WHEN - CASE + COUNT( * ) WHEN - 95 + + 48 * 0 + - 39 * 66 THEN NULL ELSE + 77 * CAST( NULL AS DECIMAL ) END THEN 98 END ) + - 26 THEN - 0 WHEN 61 + + COUNT( * ) * COALESCE ( 49, + 90 ) THEN + 34 * + 98 END * ( - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8376
SELECT ALL + + CASE + 13 WHEN - ( - CASE + 6 WHEN - 2 THEN NULL WHEN - CASE + COUNT ( * ) WHEN - 95 + + 48 * 0 + - 39 * 66 THEN NULL ELSE + 77 * CAST ( NULL AS REAL ) END THEN 98 END ) + - 26 THEN - 0 WHEN 61 + + COUNT ( * ) * COALESCE ( 49, + 90 ) THEN + 34 * + 98 END * ( - COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 40 * + + 61 AS col2
----
2440

onlyif mysql # DIV for integer division: 
query I rowsort label-8378
SELECT ALL ( - + 56 ) DIV - 98 * - 28
----
0

skipif mysql # not compatible
query I rowsort label-8378
SELECT ALL ( - + 56 ) / - 98 * - 28
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8379
SELECT COUNT( * ) + - 2 + 77 DIV + 25
----
2

skipif mysql # not compatible
query I rowsort label-8379
SELECT COUNT ( * ) + - 2 + 77 / + 25
----
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8380
SELECT 84 + - - 31 - - COUNT( * ) + - CASE 22 WHEN + COUNT( * ) * + + AVG ( 49 ) * + CAST( NULL AS DECIMAL ) + + 68 * - MIN( DISTINCT 35 ) + 60 THEN - ( + 19 ) END * + 88 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8380
SELECT 84 + - - 31 - - COUNT ( * ) + - CASE 22 WHEN + COUNT ( * ) * + + AVG ( 49 ) * + CAST ( NULL AS REAL ) + + 68 * - MIN ( DISTINCT 35 ) + 60 THEN - ( + 19 ) END * + 88 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8381
SELECT 29 * - COUNT( * ) DIV - - 52 * + 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8381
SELECT 29 * - COUNT ( * ) / - - 52 * + 91 AS col0
----
0

query II rowsort
SELECT ( 23 ) + 67 + + - 23 + + 89 AS col2, ( + 33 )
----
156
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8383
SELECT COUNT( * ) * + + CAST( - 56 AS SIGNED )
----
-56

skipif mysql # not compatible
query I rowsort label-8383
SELECT COUNT ( * ) * + + CAST ( - 56 AS INTEGER )
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8384
SELECT ALL 36 + - ( - NULLIF ( - 70, + 35 + + 55 ) ) DIV + CAST( + COUNT( * ) AS SIGNED )
----
-34

skipif mysql # not compatible
query I rowsort label-8384
SELECT ALL 36 + - ( - NULLIF ( - 70, + 35 + + 55 ) ) / + CAST ( + COUNT ( * ) AS INTEGER )
----
-34

query I rowsort
SELECT DISTINCT NULLIF ( 50, - + ( + ( + - 76 ) ) - + 42 ) * 17
----
850

onlyif mysql # aggregate syntax: 
query I rowsort label-8386
SELECT ALL 59 + - 60 + - 18 + + COUNT( * ) * - 32 * - 96 AS col2
----
3053

skipif mysql # not compatible
query I rowsort label-8386
SELECT ALL 59 + - 60 + - 18 + + COUNT ( * ) * - 32 * - 96 AS col2
----
3053

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8387
SELECT 19 - - CASE WHEN NULL BETWEEN CAST( NULL AS SIGNED ) AND - 8 + + + 55 * ( NULLIF ( + 87, 47 * - + COUNT( * ) * - 66 + - COALESCE ( + 49 - 33, - 17 ) + 81 / - 82 ) ) THEN 72 + 96 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8387
SELECT 19 - - CASE WHEN NULL BETWEEN CAST ( NULL AS INTEGER ) AND - 8 + + + 55 * ( NULLIF ( + 87, 47 * - + COUNT ( * ) * - 66 + - COALESCE ( + 49 - 33, - 17 ) + 81 / - 82 ) ) THEN 72 + 96 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-8388
SELECT ALL COUNT( * ) * 72 AS col1, 6 AS col2, - MIN( + + ( 29 ) )
----
72
6
-29

skipif mysql # not compatible
query III rowsort label-8388
SELECT ALL COUNT ( * ) * 72 AS col1, 6 AS col2, - MIN ( + + ( 29 ) )
----
72
6
-29

query I rowsort
SELECT ( + 64 ) + - ( + + 17 ) * + + 55 AS col1
----
-871

query I rowsort
SELECT ALL - 28 + + 13 * + 49
----
609

query I rowsort
SELECT 46 + + + 22
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT NULLIF ( - 50, + 39 * + + 44 * + + COUNT( * ) + + COUNT( * ) )
----
-50

skipif mysql # not compatible
query I rowsort label-8392
SELECT NULLIF ( - 50, + 39 * + + 44 * + + COUNT ( * ) + + COUNT ( * ) )
----
-50

query I rowsort
SELECT + ( + 37 ) + - 46 * - ( - 98 ) AS col2
----
-4471

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8394
SELECT DISTINCT - - CAST( - - AVG ( - - CAST( NULL AS SIGNED ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8394
SELECT DISTINCT - - CAST ( - - AVG ( - - CAST ( NULL AS INTEGER ) ) AS INTEGER )
----
NULL

query I rowsort
SELECT + NULLIF ( 12, 6 ) * - ( + 19 ) * - + 4
----
912

onlyif mysql # DIV for integer division: 
query I rowsort label-8396
SELECT + 2 DIV - 22 * - 61 + + 10
----
10

skipif mysql # not compatible
query I rowsort label-8396
SELECT + 2 / - 22 * - 61 + + 10
----
10

query I rowsort
SELECT - ( - 85 ) * - 43 + - NULLIF ( + 38, + + 54 )
----
-3693

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8398
SELECT ALL 47 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8398
SELECT ALL 47 / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 87 + - 91
----
-178

onlyif mysql # aggregate syntax: 
query I rowsort label-8400
SELECT ALL - 20 * + COUNT( * ) - + - 32
----
12

skipif mysql # not compatible
query I rowsort label-8400
SELECT ALL - 20 * + COUNT ( * ) - + - 32
----
12

query II rowsort
SELECT DISTINCT - + 81 * + 31, ( + 66 ) + + - 27 AS col1
----
-2511
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8402
SELECT ALL - + ( - COALESCE ( - CAST( - 51 AS SIGNED ), + 5, 66 - - 85 - - MAX( - + 38 ) - ( + - 24 ) + 11 * + 17 * + 76 ) )
----
51

skipif mysql # not compatible
query I rowsort label-8402
SELECT ALL - + ( - COALESCE ( - CAST ( - 51 AS INTEGER ), + 5, 66 - - 85 - - MAX ( - + 38 ) - ( + - 24 ) + 11 * + 17 * + 76 ) )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT + MIN( - 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-8403
SELECT + MIN ( - 47 )
----
-47

query I rowsort
SELECT 82 * 56 * ( - + 13 ) + - 71 * 93
----
-66299

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT 65 * NULLIF ( - 10, 5 * - + 36 + - 14 ) - + + COALESCE ( - 40, + - 64 ) + - + COUNT( * ) AS col1
----
-611

skipif mysql # not compatible
query I rowsort label-8405
SELECT 65 * NULLIF ( - 10, 5 * - + 36 + - 14 ) - + + COALESCE ( - 40, + - 64 ) + - + COUNT ( * ) AS col1
----
-611

query II rowsort
SELECT + ( - 38 ), 64 * + 64 * 51 AS col1
----
-38
208896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8407
SELECT - CAST( NULL AS SIGNED ) + - ( + 69 ) * 19 * - 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8407
SELECT - CAST ( NULL AS INTEGER ) + - ( + 69 ) * 19 * - 28 AS col0
----
NULL

query II rowsort
SELECT + 80 * 14, - 96 AS col1
----
1120
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-8409
SELECT 79 DIV + 52
----
1

skipif mysql # not compatible
query I rowsort label-8409
SELECT 79 / + 52
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8410
SELECT DISTINCT - MIN( DISTINCT 42 ) DIV - COUNT( * ) + + - 59 + 78
----
61

skipif mysql # not compatible
query I rowsort label-8410
SELECT DISTINCT - MIN ( DISTINCT 42 ) / - COUNT ( * ) + + - 59 + 78
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8411
SELECT ALL - CAST( 32 AS SIGNED )
----
-32

skipif mysql # not compatible
query I rowsort label-8411
SELECT ALL - CAST ( 32 AS INTEGER )
----
-32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8412
SELECT DISTINCT - 99 / + 46 * - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8412
SELECT DISTINCT - 99 / + 46 * - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 98 * 49 AS col2
----
4802

query I rowsort
SELECT DISTINCT ( + 42 ) + 15 + + 30 * - + 81 AS col1
----
-2373

query II rowsort
SELECT 52 AS col1, 25
----
52
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT - MAX( DISTINCT + 67 ) - + - 66 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8416
SELECT - MAX ( DISTINCT + 67 ) - + - 66 AS col2
----
-1

query I rowsort
SELECT - 54 * + - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT DISTINCT COUNT( * ) + - 78
----
-77

skipif mysql # not compatible
query I rowsort label-8418
SELECT DISTINCT COUNT ( * ) + - 78
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT DISTINCT - COALESCE ( 36, + + 43 ) * + COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-8419
SELECT DISTINCT - COALESCE ( 36, + + 43 ) * + COUNT ( * )
----
-36

query I rowsort
SELECT ALL 18 + - 4 + - + 50
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT + 0 - - 88 + COUNT( * ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-8421
SELECT + 0 - - 88 + COUNT ( * ) AS col1
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8422
SELECT ALL 82 + COUNT( * ) - + CASE + - MAX( ALL - 49 ) WHEN ( - - 28 ) THEN NULL WHEN + 56 / - 70 + 93 + - COUNT( * ) * - CASE + 41 WHEN 75 THEN NULL WHEN - NULLIF ( COALESCE ( 54, 62 * CAST( 53 AS SIGNED ) + - MIN( ALL - 52 ) ), + 0 ) THEN - 91 ELSE 7 END THEN 29 WHEN + NULLIF ( + CAST( NULL AS SIGNED ), ( - 34 ) ) THEN NULL ELSE - 92 END * COUNT( * ) AS col2
----
175

skipif mysql # not compatible
query I rowsort label-8422
SELECT ALL 82 + COUNT ( * ) - + CASE + - MAX ( ALL - 49 ) WHEN ( - - 28 ) THEN NULL WHEN + 56 / - 70 + 93 + - COUNT ( * ) * - CASE + 41 WHEN 75 THEN NULL WHEN - NULLIF ( COALESCE ( 54, 62 * CAST ( 53 AS INTEGER ) + - MIN ( ALL - 52 ) ), + 0 ) THEN - 91 ELSE 7 END THEN 29 WHEN + NULLIF ( + CAST ( NULL AS INTEGER ), ( - 34 ) ) THEN NULL ELSE - 92 END * COUNT ( * ) AS col2
----
175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8423
SELECT - 88 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8423
SELECT - 88 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8424
SELECT - 8 DIV + ( + 32 )
----
0

skipif mysql # not compatible
query I rowsort label-8424
SELECT - 8 / + ( + 32 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8425
SELECT - - 18 + + ( + + ( - 23 ) ) + - + ( - CAST( + COUNT( * ) AS SIGNED ) ) DIV 90 + COUNT( * ) + - - 10 + 0 col1
----
6

skipif mysql # not compatible
query I rowsort label-8425
SELECT - - 18 + + ( + + ( - 23 ) ) + - + ( - CAST ( + COUNT ( * ) AS INTEGER ) ) / 90 + COUNT ( * ) + - - 10 + 0 col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT - - COALESCE ( 34, - COUNT( * ) * + MAX( - - 20 ) + + COUNT( * ) * - 34 )
----
34

skipif mysql # not compatible
query I rowsort label-8426
SELECT - - COALESCE ( 34, - COUNT ( * ) * + MAX ( - - 20 ) + + COUNT ( * ) * - 34 )
----
34

query II rowsort
SELECT ALL + 64 AS col2, 77 AS col0
----
64
77

query I rowsort
SELECT NULLIF ( - - 37, 87 + + 96 ) AS col0
----
37

query I rowsort
SELECT ALL 74 - - 75 AS col2
----
149

query I rowsort
SELECT + - 35 * - 16
----
560

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT ALL COUNT( * ) * + + 38 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-8431
SELECT ALL COUNT ( * ) * + + 38 AS col1
----
38

query I rowsort
SELECT DISTINCT 36 * 21 AS col2
----
756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8433
SELECT DISTINCT + + COALESCE ( - + 44, - + 75, 20 - + ( - CAST( - 88 AS SIGNED ) ) )
----
-44

skipif mysql # not compatible
query I rowsort label-8433
SELECT DISTINCT + + COALESCE ( - + 44, - + 75, 20 - + ( - CAST ( - 88 AS INTEGER ) ) )
----
-44

query II rowsort
SELECT ALL + 79, 15 + + 49 AS col2
----
79
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8435
SELECT - CAST( NULL AS SIGNED ) AS col0, + 23 + + 43 + MIN( DISTINCT 21 ) DIV - 10 + - 44 col1
----
NULL
20

skipif mysql # not compatible
query II rowsort label-8435
SELECT - CAST ( NULL AS INTEGER ) AS col0, + 23 + + 43 + MIN ( DISTINCT 21 ) / - 10 + - 44 col1
----
NULL
20

query I rowsort
SELECT + 24 - + ( + 40 ) * 0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT + - 96 * - 96 * + - 2 * + - 71 * - SUM( ALL 77 ) + - 19 * + 26 - 26
----
-100768264

skipif mysql # not compatible
query I rowsort label-8437
SELECT + - 96 * - 96 * + - 2 * + - 71 * - SUM ( ALL 77 ) + - 19 * + 26 - 26
----
-100768264

query II rowsort
SELECT + 0 AS col2, 34
----
0
34

query I rowsort
SELECT ALL + - 77 col2
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8440
SELECT + + 9 * - CAST( + - COUNT( * ) AS SIGNED ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8440
SELECT + + 9 * - CAST ( + - COUNT ( * ) AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT ALL - COUNT( ALL 83 ) * + COUNT( * ) - - ( + - COUNT( * ) )
----
-2

skipif mysql # not compatible
query I rowsort label-8441
SELECT ALL - COUNT ( ALL 83 ) * + COUNT ( * ) - - ( + - COUNT ( * ) )
----
-2

query I rowsort
SELECT DISTINCT 15 * - 20 + + 11 AS col1
----
-289

query I rowsort
SELECT ALL + ( - 54 )
----
-54

query I rowsort
SELECT - 91 * 78
----
-7098

query I rowsort
SELECT + 2 + - 73 + + + 59 AS col2
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8446
SELECT + CAST( NULL AS SIGNED ) * - 33 + + 14 + + ( ( - - 26 ) ) * - 52 * - 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8446
SELECT + CAST ( NULL AS INTEGER ) * - 33 + + 14 + + ( ( - - 26 ) ) * - 52 * - 70 AS col2
----
NULL

query I rowsort
SELECT ALL - 86 * - + 69 + + 88 * + + 9 * 0 AS col0
----
5934

query II rowsort
SELECT NULLIF ( + + 8, - - 96 ) * + - 62 + - 47 AS col1, 71 AS col0
----
-543
71

query I rowsort
SELECT - 60 - 21
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8450
SELECT - 31 + ( COUNT( * ) ) + 81
----
51

skipif mysql # not compatible
query I rowsort label-8450
SELECT - 31 + ( COUNT ( * ) ) + 81
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8451
SELECT ALL - CASE - 99 WHEN - + 44 * + 20 * CAST( NULL AS SIGNED ) * 47 + + + MIN( + 47 ) THEN CAST( NULL AS SIGNED ) + + 75 * + COUNT( DISTINCT - 34 ) ELSE 1 DIV ( - ( 74 ) ) + 76 END * 73 + 28 AS col2
----
-5520

skipif mysql # not compatible
query I rowsort label-8451
SELECT ALL - CASE - 99 WHEN - + 44 * + 20 * CAST ( NULL AS INTEGER ) * 47 + + + MIN ( + 47 ) THEN CAST ( NULL AS INTEGER ) + + 75 * + COUNT ( DISTINCT - 34 ) ELSE 1 / ( - ( 74 ) ) + 76 END * 73 + 28 AS col2
----
-5520

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT - 25 + + 86 * + + CASE WHEN NOT 1 NOT BETWEEN ( - 58 * + COUNT( * ) * + 63 ) AND NULL THEN 76 * + 0 * - 92 + + 34 END - + - 93 / - - SUM( ALL - 62 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8452
SELECT - 25 + + 86 * + + CASE WHEN NOT 1 NOT BETWEEN ( - 58 * + COUNT ( * ) * + 63 ) AND NULL THEN 76 * + 0 * - 92 + + 34 END - + - 93 / - - SUM ( ALL - 62 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT ALL + COUNT( * ) * + - 36
----
-36

skipif mysql # not compatible
query I rowsort label-8453
SELECT ALL + COUNT ( * ) * + - 36
----
-36

query I rowsort
SELECT - 77 + - 6 * - 17 * ( - + 14 )
----
-1505

query II rowsort
SELECT ALL + ( - 68 ) - + 41 + + + 87, 0 AS col0
----
-22
0

query I rowsort
SELECT DISTINCT ( + - NULLIF ( - + 93, - 96 + - 23 + - 36 ) ) col1
----
93

query I rowsort
SELECT - 65 * 67 * + 58
----
-252590

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8458
SELECT ALL - CAST( + 30 AS SIGNED ) * - + 4
----
120

skipif mysql # not compatible
query I rowsort label-8458
SELECT ALL - CAST ( + 30 AS INTEGER ) * - + 4
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8459
SELECT + 80 + + - 99 + - CAST( NULL AS SIGNED ) * ( - 34 ) + + ( + 36 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8459
SELECT + 80 + + - 99 + - CAST ( NULL AS INTEGER ) * ( - 34 ) + + ( + 36 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT - + NULLIF ( 64, - 1 + COUNT( - + 47 ) ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-8460
SELECT - + NULLIF ( 64, - 1 + COUNT ( - + 47 ) ) AS col2
----
-64

query I rowsort
SELECT - - 81 * 23 + 65 AS col2
----
1928

onlyif mysql # aggregate syntax: 
query I rowsort label-8462
SELECT - + MAX( ALL NULLIF ( 90, - - 54 ) ) + - - 34 * 94 AS col0
----
3106

skipif mysql # not compatible
query I rowsort label-8462
SELECT - + MAX ( ALL NULLIF ( 90, - - 54 ) ) + - - 34 * 94 AS col0
----
3106

query I rowsort
SELECT + 55 + - 61 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT + ( MIN( - - 24 ) ) * + 68 * + COALESCE ( 0, 69 * 69 * + COUNT( * ) * ( - ( MIN( DISTINCT + CASE 93 WHEN 16 THEN NULL ELSE + 94 END ) ) ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8464
SELECT + ( MIN ( - - 24 ) ) * + 68 * + COALESCE ( 0, 69 * 69 * + COUNT ( * ) * ( - ( MIN ( DISTINCT + CASE 93 WHEN 16 THEN NULL ELSE + 94 END ) ) ) ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8465
SELECT - CAST( NULL AS SIGNED ) + - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-8465
SELECT - CAST ( NULL AS INTEGER ) + - 66
----
NULL

query II rowsort
SELECT - 22 + 7 AS col2, - 33 AS col1
----
-15
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT ALL 65 / + CASE 74 WHEN 56 THEN - 54 - 45 + 48 * 7 + COUNT( * ) * - 74 WHEN - NULLIF ( + - 5, + + 68 ) THEN NULL ELSE NULL END + - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-8467
SELECT ALL 65 / + CASE 74 WHEN 56 THEN - 54 - 45 + 48 * 7 + COUNT ( * ) * - 74 WHEN - NULLIF ( + - 5, + + 68 ) THEN NULL ELSE NULL END + - 97
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8468
SELECT + - COUNT( * ) * - ( - 85 ) + - 14, - COUNT( * ) * - COUNT( ALL + - 0 ) AS col1
----
-99
1

skipif mysql # not compatible
query II rowsort label-8468
SELECT + - COUNT ( * ) * - ( - 85 ) + - 14, - COUNT ( * ) * - COUNT ( ALL + - 0 ) AS col1
----
-99
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8469
SELECT + - 49 + NULLIF ( - 39, - - 66 * + 61 + + CAST( NULL AS SIGNED ) ) * + 63 * + COALESCE ( - + 74, + COALESCE ( - 19, 3 * - 49 + + + 52 ) + 45, MIN( DISTINCT + 19 ) ) AS col2
----
181769

skipif mysql # not compatible
query I rowsort label-8469
SELECT + - 49 + NULLIF ( - 39, - - 66 * + 61 + + CAST ( NULL AS INTEGER ) ) * + 63 * + COALESCE ( - + 74, + COALESCE ( - 19, 3 * - 49 + + + 52 ) + 45, MIN ( DISTINCT + 19 ) ) AS col2
----
181769

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT + NULLIF ( - + 10, - + COUNT( * ) / - 7 + - - 24 + 26 )
----
-10

skipif mysql # not compatible
query I rowsort label-8470
SELECT + NULLIF ( - + 10, - + COUNT ( * ) / - 7 + - - 24 + 26 )
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8471
SELECT + + COUNT( * ) / - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8471
SELECT + + COUNT ( * ) / - ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT + + COUNT( * ) + 25 + ( - ( + 41 ) ) col2
----
-15

skipif mysql # not compatible
query I rowsort label-8472
SELECT + + COUNT ( * ) + 25 + ( - ( + 41 ) ) col2
----
-15

query I rowsort
SELECT DISTINCT 55 * - 48 AS col2
----
-2640

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT COUNT( * ) * - + 83
----
-83

skipif mysql # not compatible
query I rowsort label-8474
SELECT COUNT ( * ) * - + 83
----
-83

query I rowsort
SELECT 88 * + + 18 col2
----
1584

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT ALL - MIN( + - ( - + 58 ) )
----
-58

skipif mysql # not compatible
query I rowsort label-8476
SELECT ALL - MIN ( + - ( - + 58 ) )
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-8477
SELECT DISTINCT 8 + - ( + 81 ) DIV + 58
----
7

skipif mysql # not compatible
query I rowsort label-8477
SELECT DISTINCT 8 + - ( + 81 ) / + 58
----
7

query III rowsort
SELECT 77 AS col2, 51 + 23 AS col0, - 76 AS col0
----
77
74
-76

query I rowsort
SELECT DISTINCT - CASE 42 WHEN - 72 THEN NULL ELSE - 54 END
----
54

query I rowsort
SELECT 32 * 11 AS col2
----
352

onlyif mysql # aggregate syntax: 
query I rowsort label-8481
SELECT ALL COUNT( * ) - NULLIF ( 72, + + 27 + + 32 ) + 89 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-8481
SELECT ALL COUNT ( * ) - NULLIF ( 72, + + 27 + + 32 ) + 89 AS col0
----
18

query I rowsort
SELECT 39 + 92 + - 73
----
58

query II rowsort
SELECT - 11, + 12 + + 90 AS col1
----
-11
102

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT ( CASE - - 22 WHEN - COUNT( ALL 10 ) / - 72 * - + AVG ( COALESCE ( + 28, - 83 ) ) THEN NULL WHEN 33 + - 29 THEN - 57 WHEN - 9 THEN + 71 END ) - + 26 * - 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8484
SELECT ( CASE - - 22 WHEN - COUNT ( ALL 10 ) / - 72 * - + AVG ( COALESCE ( + 28, - 83 ) ) THEN NULL WHEN 33 + - 29 THEN - 57 WHEN - 9 THEN + 71 END ) - + 26 * - 26 AS col2
----
NULL

query I rowsort
SELECT 58 * + - 46 col2
----
-2668

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8486
SELECT 93 AS col2, 93 * + ( 0 ) DIV + + 97 DIV - ( + + COUNT( * ) ) + - MIN( DISTINCT - 44 ) + + + ( 65 ) * + + 44 + + - 39 + + 86 + COUNT( * ) AS col0
----
93
2952

skipif mysql # not compatible
query II rowsort label-8486
SELECT 93 AS col2, 93 * + ( 0 ) / + + 97 / - ( + + COUNT ( * ) ) + - MIN ( DISTINCT - 44 ) + + + ( 65 ) * + + 44 + + - 39 + + 86 + COUNT ( * ) AS col0
----
93
2952

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT DISTINCT NULLIF ( + 66, + 42 ) * + - COUNT( * ) * 29
----
-1914

skipif mysql # not compatible
query I rowsort label-8487
SELECT DISTINCT NULLIF ( + 66, + 42 ) * + - COUNT ( * ) * 29
----
-1914

query I rowsort
SELECT ALL + + 16 - ( - 16 ) AS col1
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8489
SELECT + COUNT( * ) DIV 65
----
0

skipif mysql # not compatible
query I rowsort label-8489
SELECT + COUNT ( * ) / 65
----
0

query I rowsort
SELECT DISTINCT COALESCE ( - 48, 22 )
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8491
SELECT MAX( - 51 ) * + 12, COUNT( * ) + - 55 * + 84 + - - 2 DIV 44 col1
----
-612
-4619

skipif mysql # not compatible
query II rowsort label-8491
SELECT MAX ( - 51 ) * + 12, COUNT ( * ) + - 55 * + 84 + - - 2 / 44 col1
----
-612
-4619

onlyif mysql # DIV for integer division: 
query I rowsort label-8492
SELECT ALL + 55 DIV 2
----
27

skipif mysql # not compatible
query I rowsort label-8492
SELECT ALL + 55 / 2
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8493
SELECT - 83 / - 94 + + - 71 - - + CAST( 5 AS SIGNED ) - 85 * CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8493
SELECT - 83 / - 94 + + - 71 - - + CAST ( 5 AS INTEGER ) - 85 * CAST ( NULL AS INTEGER ) col2
----
NULL

query II rowsort
SELECT 58 AS col1, - 92 AS col1
----
58
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-8495
SELECT 62 * + ( - + 6 ) AS col2, - COALESCE ( - + COALESCE ( - 70, + + COUNT( * ), - 16 + 98 ), + - 36 ) + - 24 + - COUNT( * )
----
-372
-95

skipif mysql # not compatible
query II rowsort label-8495
SELECT 62 * + ( - + 6 ) AS col2, - COALESCE ( - + COALESCE ( - 70, + + COUNT ( * ), - 16 + 98 ), + - 36 ) + - 24 + - COUNT ( * )
----
-372
-95

query I rowsort
SELECT - 67 * - + 40 AS col1
----
2680

onlyif mysql # aggregate syntax: 
query II rowsort label-8497
SELECT ALL - NULLIF ( + ( - 66 ), - 23 + 37 ), + COUNT( * ) AS col0
----
66
1

skipif mysql # not compatible
query II rowsort label-8497
SELECT ALL - NULLIF ( + ( - 66 ), - 23 + 37 ), + COUNT ( * ) AS col0
----
66
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT + 76 + 10 + COUNT( ALL - 60 ) * - 50 + - COALESCE ( + 64, + 82 ) * 74 + 32 + + + 89 * + 79 AS col1
----
2363

skipif mysql # not compatible
query I rowsort label-8498
SELECT + 76 + 10 + COUNT ( ALL - 60 ) * - 50 + - COALESCE ( + 64, + 82 ) * 74 + 32 + + + 89 * + 79 AS col1
----
2363

query I rowsort
SELECT DISTINCT + - 61 + + 89 + - + 93
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-8500
SELECT ALL + ( + COUNT( ALL 83 ) ) AS col0, - 31
----
1
-31

skipif mysql # not compatible
query II rowsort label-8500
SELECT ALL + ( + COUNT ( ALL 83 ) ) AS col0, - 31
----
1
-31

query I rowsort
SELECT + 33 * + 23 col1
----
759

onlyif mysql # aggregate syntax: 
query II rowsort label-8502
SELECT DISTINCT + 3 col2, COUNT( * )
----
3
1

skipif mysql # not compatible
query II rowsort label-8502
SELECT DISTINCT + 3 col2, COUNT ( * )
----
3
1

query I rowsort
SELECT ALL 99 + + 32 AS col2
----
131

query I rowsort
SELECT ALL + 37 + 2
----
39

query I rowsort
SELECT ( 25 ) AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT ALL + MIN( 67 ) + - 17
----
50

skipif mysql # not compatible
query I rowsort label-8506
SELECT ALL + MIN ( 67 ) + - 17
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8507
SELECT + 63 * + CAST( - + 80 AS SIGNED ) + - 48 - + 69 AS col2
----
-5157

skipif mysql # not compatible
query I rowsort label-8507
SELECT + 63 * + CAST ( - + 80 AS INTEGER ) + - 48 - + 69 AS col2
----
-5157

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT COALESCE ( - + CASE 18 WHEN ( - 91 ) - - 74 * COALESCE ( + 9, + 15 ) + + - 54 THEN + ( - 57 ) * COUNT( * ) * 72 * - - 55 ELSE 16 * CASE 87 - - 76 WHEN - 67 + 45 THEN + ( 57 ) END END, COALESCE ( 29, 56, - 10 - - 23 * + 9 ) * + 4 ) * 86
----
9976

skipif mysql # not compatible
query I rowsort label-8508
SELECT COALESCE ( - + CASE 18 WHEN ( - 91 ) - - 74 * COALESCE ( + 9, + 15 ) + + - 54 THEN + ( - 57 ) * COUNT ( * ) * 72 * - - 55 ELSE 16 * CASE 87 - - 76 WHEN - 67 + 45 THEN + ( 57 ) END END, COALESCE ( 29, 56, - 10 - - 23 * + 9 ) * + 4 ) * 86
----
9976

query I rowsort
SELECT 97 + 34 * - 26
----
-787

onlyif mysql # DIV for integer division: 
query I rowsort label-8510
SELECT ALL 67 + + 57 DIV + NULLIF ( - - 84, + 89 )
----
67

skipif mysql # not compatible
query I rowsort label-8510
SELECT ALL 67 + + 57 / + NULLIF ( - - 84, + 89 )
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8511
SELECT NULLIF ( COALESCE ( + 83, + 53 + COUNT( + 58 ) + + SUM( + 72 ) ), - 18 * + - CASE - 13 WHEN - ( - 74 ) + + - ( CASE 1 WHEN + ( COUNT( DISTINCT - 77 ) ) THEN + 59 / + ( 79 ) END ) - 36 THEN + 80 ELSE 50 END - CAST( NULL AS SIGNED ) ) * - 51 AS col0
----
-4233

skipif mysql # not compatible
query I rowsort label-8511
SELECT NULLIF ( COALESCE ( + 83, + 53 + COUNT ( + 58 ) + + SUM ( + 72 ) ), - 18 * + - CASE - 13 WHEN - ( - 74 ) + + - ( CASE 1 WHEN + ( COUNT ( DISTINCT - 77 ) ) THEN + 59 / + ( 79 ) END ) - 36 THEN + 80 ELSE 50 END - CAST ( NULL AS INTEGER ) ) * - 51 AS col0
----
-4233

onlyif mysql # aggregate syntax: 
query I rowsort label-8512
SELECT ALL - COUNT( - - 53 )
----
-1

skipif mysql # not compatible
query I rowsort label-8512
SELECT ALL - COUNT ( - - 53 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT ALL ( + ( + SUM( - + 24 ) ) ) - + ( + 19 ) - MAX( ALL + - 25 )
----
-18

skipif mysql # not compatible
query I rowsort label-8513
SELECT ALL ( + ( + SUM ( - + 24 ) ) ) - + ( + 19 ) - MAX ( ALL + - 25 )
----
-18

query I rowsort
SELECT 3 * 42 AS col2
----
126

query I rowsort
SELECT 39 * 85
----
3315

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT COUNT( * ) + + 3
----
4

skipif mysql # not compatible
query I rowsort label-8516
SELECT COUNT ( * ) + + 3
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT 13 + + MIN( - 69 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-8517
SELECT 13 + + MIN ( - 69 ) AS col1
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-8518
SELECT 84 AS col2, ( COUNT( * ) ) + ( - - 11 ) - + ( + - MAX( 93 ) ) col0
----
84
105

skipif mysql # not compatible
query II rowsort label-8518
SELECT 84 AS col2, ( COUNT ( * ) ) + ( - - 11 ) - + ( + - MAX ( 93 ) ) col0
----
84
105

query II rowsort
SELECT ALL - 84, 19 + - 64 AS col2
----
-84
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-8520
SELECT ALL - 87 AS col0, 88 + COUNT( * ) * - 17 * + + 44
----
-87
-660

skipif mysql # not compatible
query II rowsort label-8520
SELECT ALL - 87 AS col0, 88 + COUNT ( * ) * - 17 * + + 44
----
-87
-660

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT 69 * - COUNT( * ) + 22 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-8521
SELECT 69 * - COUNT ( * ) + 22 AS col0
----
-47

query II rowsort
SELECT DISTINCT 16 AS col1, - 59 col1
----
16
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT DISTINCT SUM( DISTINCT + + 33 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-8523
SELECT DISTINCT SUM ( DISTINCT + + 33 ) AS col0
----
33

query I rowsort
SELECT DISTINCT + ( - 5 )
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8525
SELECT + 24 * + 15 * MIN( - 47 ) + - COUNT( - + CAST( NULL AS SIGNED ) ) AS col1
----
-16920

skipif mysql # not compatible
query I rowsort label-8525
SELECT + 24 * + 15 * MIN ( - 47 ) + - COUNT ( - + CAST ( NULL AS INTEGER ) ) AS col1
----
-16920

query I rowsort
SELECT 98 + - - 59 AS col2
----
157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8527
SELECT CASE 11 WHEN - - 56 THEN - + 22 WHEN - COUNT( * ) + - CAST( NULL AS SIGNED ) THEN + 38 * 17 WHEN 3 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8527
SELECT CASE 11 WHEN - - 56 THEN - + 22 WHEN - COUNT ( * ) + - CAST ( NULL AS INTEGER ) THEN + 38 * 17 WHEN 3 THEN NULL END col1
----
NULL

query I rowsort
SELECT ALL - 93 * + + 97 + + - 77 col1
----
-9098

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT + COUNT( ALL 69 ) + + - 7
----
-6

skipif mysql # not compatible
query I rowsort label-8529
SELECT + COUNT ( ALL 69 ) + + - 7
----
-6

query I rowsort
SELECT + 4 + ( - + 33 ) AS col2
----
-29

query II rowsort
SELECT + 18 AS col2, - 10 AS col0
----
18
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT DISTINCT - COUNT( * ) + + 2
----
1

skipif mysql # not compatible
query I rowsort label-8532
SELECT DISTINCT - COUNT ( * ) + + 2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8533
SELECT 54 DIV + 50 + + 12 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-8533
SELECT 54 / + 50 + + 12 AS col1
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8534
SELECT DISTINCT - NULLIF ( + COUNT( * ), ( - 56 ) - - - 24 ) DIV COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8534
SELECT DISTINCT - NULLIF ( + COUNT ( * ), ( - 56 ) - - - 24 ) / COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT ALL + ( + 29 ) + + 57 + - - 84
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-8536
SELECT + ( + COUNT( ALL 98 ) ) + - 31 * + 87
----
-2696

skipif mysql # not compatible
query I rowsort label-8536
SELECT + ( + COUNT ( ALL 98 ) ) + - 31 * + 87
----
-2696

onlyif mysql # aggregate syntax: 
query II rowsort label-8537
SELECT + COUNT( * ) AS col0, + 57
----
1
57

skipif mysql # not compatible
query II rowsort label-8537
SELECT + COUNT ( * ) AS col0, + 57
----
1
57

query I rowsort
SELECT - - 97 + + 84 AS col2
----
181

query I rowsort
SELECT + + 86 + 81 + + 44
----
211

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8540
SELECT + + 28 * 32 + - COUNT( 94 ) - 58 DIV 23
----
893

skipif mysql # not compatible
query I rowsort label-8540
SELECT + + 28 * 32 + - COUNT ( 94 ) - 58 / 23
----
893

query I rowsort
SELECT - + ( - 91 ) AS col2
----
91

query I rowsort
SELECT - - 11 + 68 + 66
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT 5 / - - CASE + 68 WHEN - 26 THEN COUNT( * ) ELSE NULL END - 60 * COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8543
SELECT 5 / - - CASE + 68 WHEN - 26 THEN COUNT ( * ) ELSE NULL END - 60 * COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT COALESCE ( 36, + 69 * + NULLIF ( 13, + 10 / + - SUM( - + 51 ) ) * - - COUNT( * ) ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-8544
SELECT COALESCE ( 36, + 69 * + NULLIF ( 13, + 10 / + - SUM ( - + 51 ) ) * - - COUNT ( * ) ) AS col2
----
36

query I rowsort
SELECT + 96 * - COALESCE ( + - 18, - 15 + + ( - 26 ) ) + 51 AS col2
----
1779

query I rowsort
SELECT - 61 + - NULLIF ( + + 33, 83 ) AS col1
----
-94

query I rowsort
SELECT ALL + 87 * + 90 + - + 53
----
7777

query I rowsort
SELECT COALESCE ( + 51, + 38, 29 * + 9 )
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-8549
SELECT COALESCE ( + - 86, + 23 DIV + 68 * - 55 * + ( - 94 ) )
----
-86

skipif mysql # not compatible
query I rowsort label-8549
SELECT COALESCE ( + - 86, + 23 / + 68 * - 55 * + ( - 94 ) )
----
-86

query I rowsort
SELECT - 25 + - 59 + + 13 * + 18 col2
----
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8551
SELECT - 2 + - CAST( NULL AS SIGNED ) + COALESCE ( - AVG ( + + ( - 5 ) ), + + 22 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8551
SELECT - 2 + - CAST ( NULL AS INTEGER ) + COALESCE ( - AVG ( + + ( - 5 ) ), + + 22 ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8552
SELECT DISTINCT + CAST( - 30 AS SIGNED ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-8552
SELECT DISTINCT + CAST ( - 30 AS INTEGER ) AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT - ( COUNT( * ) ) * 69 + + COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-8553
SELECT - ( COUNT ( * ) ) * 69 + + COUNT ( * )
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-8554
SELECT + MIN( ALL 25 ) AS col0, + 63 * + + 81 AS col2
----
25
5103

skipif mysql # not compatible
query II rowsort label-8554
SELECT + MIN ( ALL 25 ) AS col0, + 63 * + + 81 AS col2
----
25
5103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8555
SELECT + 1 * + - 7 + + - COUNT( ALL 2 ) + - + 87 + NULLIF ( 22, 14 - 29 * + 3 ) * - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8555
SELECT + 1 * + - 7 + + - COUNT ( ALL 2 ) + - + 87 + NULLIF ( 22, 14 - 29 * + 3 ) * - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) col0
----
NULL

query II rowsort
SELECT + 48 + 54 col1, - 23 - + 98
----
102
-121

query I rowsort
SELECT ALL 47 * - 80 AS col0
----
-3760

query I rowsort
SELECT ALL 6 * - 81 col0
----
-486

query I rowsort
SELECT ALL - 2 * + 14 AS col2
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8560
SELECT DISTINCT 87 * + - 47 * CASE + 51 WHEN - - 94 * - NULLIF ( + - AVG ( + - 47 ), + CAST( + 59 AS SIGNED ) * + 46 + COUNT( * ) ) / - - 78 + + CAST( NULL AS SIGNED ) + + 23 + - + 37 + - 75 * 91 * + 70 * 41 THEN - 18 WHEN + 20 + + 60 THEN + 23 / - 5 - 2 ELSE NULL END + - 91 * COUNT( 95 * - 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8560
SELECT DISTINCT 87 * + - 47 * CASE + 51 WHEN - - 94 * - NULLIF ( + - AVG ( + - 47 ), + CAST ( + 59 AS INTEGER ) * + 46 + COUNT ( * ) ) / - - 78 + + CAST ( NULL AS INTEGER ) + + 23 + - + 37 + - 75 * 91 * + 70 * 41 THEN - 18 WHEN + 20 + + 60 THEN + 23 / - 5 - 2 ELSE NULL END + - 91 * COUNT ( 95 * - 31 )
----
NULL

query I rowsort
SELECT ALL 91 + + 34 AS col0
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT + 49 * - ( COUNT( ALL - ( 93 ) ) ) - - - 88 AS col1
----
-137

skipif mysql # not compatible
query I rowsort label-8562
SELECT + 49 * - ( COUNT ( ALL - ( 93 ) ) ) - - - 88 AS col1
----
-137

query I rowsort
SELECT ALL - 64 + 44 col0
----
-20

query I rowsort
SELECT + 58 + ( 40 ) + - + 4 + + 2 - - 47 AS col0
----
143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8565
SELECT DISTINCT - COUNT( * ) + 60 DIV 29 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8565
SELECT DISTINCT - COUNT ( * ) + 60 / 29 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8566
SELECT ALL + MIN( ( + + 36 ) ) + 47
----
83

skipif mysql # not compatible
query I rowsort label-8566
SELECT ALL + MIN ( ( + + 36 ) ) + 47
----
83

query I rowsort
SELECT + + 76 * 5 + - 87 AS col2
----
293

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8568
SELECT - NULLIF ( CAST( NULL AS SIGNED ), - COUNT( * ) * - + CASE - CASE 14 WHEN - + 6 THEN - + 78 * - + MAX( ALL - 25 ) + 44 / COUNT( * ) * + - 86 + + CASE - 67 WHEN 20 / + MIN( ALL 38 ) / + NULLIF ( + 35 * 72, 80 * - 52 + - 21 ) THEN 34 END ELSE NULL END WHEN 88 THEN - 32 * 53 WHEN CAST( NULL AS SIGNED ) THEN + 51 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8568
SELECT - NULLIF ( CAST ( NULL AS INTEGER ), - COUNT ( * ) * - + CASE - CASE 14 WHEN - + 6 THEN - + 78 * - + MAX ( ALL - 25 ) + 44 / COUNT ( * ) * + - 86 + + CASE - 67 WHEN 20 / + MIN ( ALL 38 ) / + NULLIF ( + 35 * 72, 80 * - 52 + - 21 ) THEN 34 END ELSE NULL END WHEN 88 THEN - 32 * 53 WHEN CAST ( NULL AS INTEGER ) THEN + 51 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT + COUNT( * ) - 48 * - 7 * - CASE - + MIN( + 3 ) WHEN - 51 THEN + 22 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8569
SELECT + COUNT ( * ) - 48 * - 7 * - CASE - + MIN ( + 3 ) WHEN - 51 THEN + 22 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT - - ( - - CASE + - 55 WHEN - - ( 59 ) THEN + 7 * 37 * COUNT( * ) + + + MAX( ALL - 14 ) WHEN + 42 * - - 87 * 30 / + - 77 + 97 THEN NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8570
SELECT - - ( - - CASE + - 55 WHEN - - ( 59 ) THEN + 7 * 37 * COUNT ( * ) + + + MAX ( ALL - 14 ) WHEN + 42 * - - 87 * 30 / + - 77 + 97 THEN NULL END ) AS col0
----
NULL

query I rowsort
SELECT + 90 * - 24
----
-2160

query I rowsort
SELECT - + ( - 12 ) * 57
----
684

query I rowsort
SELECT DISTINCT 97 - + - 59 AS col0
----
156

query II rowsort
SELECT DISTINCT 77, 58 AS col1
----
77
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8575
SELECT ALL - 4 DIV - 83
----
0

skipif mysql # not compatible
query I rowsort label-8575
SELECT ALL - 4 / - 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT + 72 * + COUNT( * ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-8576
SELECT + 72 * + COUNT ( * ) AS col0
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8577
SELECT ALL - ( COUNT( + 88 ) ) DIV + + 33 + 97
----
97

skipif mysql # not compatible
query I rowsort label-8577
SELECT ALL - ( COUNT ( + 88 ) ) / + + 33 + 97
----
97

query I rowsort
SELECT 69 * - 43 - - 85 + 69
----
-2813

query I rowsort
SELECT - 16 * 9 * + 52 + - - 43 + + 44
----
-7401

query I rowsort
SELECT DISTINCT - 15 * 54 AS col1
----
-810

query I rowsort
SELECT - 18 * - 21 AS col1
----
378

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT DISTINCT + COUNT( ALL 21 )
----
1

skipif mysql # not compatible
query I rowsort label-8582
SELECT DISTINCT + COUNT ( ALL 21 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8583
SELECT ALL - COUNT( * ) * + - 63 DIV + 50 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8583
SELECT ALL - COUNT ( * ) * + - 63 / + 50 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT ALL + NULLIF ( SUM( + 63 ), - SUM( DISTINCT 66 ) * - NULLIF ( COUNT( ALL - - 19 ), 71 / + - COUNT( * ) ) + - COUNT( * ) / 96 )
----
63

skipif mysql # not compatible
query I rowsort label-8584
SELECT ALL + NULLIF ( SUM ( + 63 ), - SUM ( DISTINCT 66 ) * - NULLIF ( COUNT ( ALL - - 19 ), 71 / + - COUNT ( * ) ) + - COUNT ( * ) / 96 )
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8585
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-8585
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 68
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8586
SELECT - 6 DIV COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-8586
SELECT - 6 / COUNT ( * )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT DISTINCT 28 * - 19 + + - 74 + + ( - + ( + COUNT( 55 ) ) ) AS col2
----
-607

skipif mysql # not compatible
query I rowsort label-8587
SELECT DISTINCT 28 * - 19 + + - 74 + + ( - + ( + COUNT ( 55 ) ) ) AS col2
----
-607

onlyif mysql # DIV for integer division: 
query II rowsort label-8588
SELECT ALL COALESCE ( 17, + 81 DIV + 35 ) * - 9 * + 13 + + 78 - 8, + 6 * - 30 AS col2
----
-1919
-180

skipif mysql # not compatible
query II rowsort label-8588
SELECT ALL COALESCE ( 17, + 81 / + 35 ) * - 9 * + 13 + + 78 - 8, + 6 * - 30 AS col2
----
-1919
-180

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8589
SELECT - 50 + + + ( - 69 ) AS col0, + COALESCE ( - 27, - - 59 + - 55, - CAST( - 13 AS SIGNED ) )
----
-119
-27

skipif mysql # not compatible
query II rowsort label-8589
SELECT - 50 + + + ( - 69 ) AS col0, + COALESCE ( - 27, - - 59 + - 55, - CAST ( - 13 AS INTEGER ) )
----
-119
-27

query I rowsort
SELECT - COALESCE ( 76, + + 42, - 73 ) * - 75 + - 99 + + 40 AS col0
----
5641

query I rowsort
SELECT + - 45 col0
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8592
SELECT - 77 + + COALESCE ( CAST( + + 79 AS SIGNED ), 86 * - 73 - + COUNT( * ), - + 20 + + 75 + 53, - 34 ) + + + COUNT( * ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-8592
SELECT - 77 + + COALESCE ( CAST ( + + 79 AS INTEGER ), 86 * - 73 - + COUNT ( * ), - + 20 + + 75 + 53, - 34 ) + + + COUNT ( * ) AS col2
----
3

query I rowsort
SELECT ALL 25 * - ( 31 ) + ( + 1 ) AS col1
----
-774

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT - COUNT( DISTINCT - - COALESCE ( - + ( - - 36 ), - 37, 40 * - + 83 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8594
SELECT - COUNT ( DISTINCT - - COALESCE ( - + ( - - 36 ), - 37, 40 * - + 83 ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8595
SELECT ALL - CAST( 70 AS SIGNED ) * - 73 + - 54 * - 38 AS col1
----
7162

skipif mysql # not compatible
query I rowsort label-8595
SELECT ALL - CAST ( 70 AS INTEGER ) * - 73 + - 54 * - 38 AS col1
----
7162

onlyif mysql # DIV for integer division: 
query I rowsort label-8596
SELECT ALL - NULLIF ( - 62, - + 30 ) DIV - 5 - 73
----
-85

skipif mysql # not compatible
query I rowsort label-8596
SELECT ALL - NULLIF ( - 62, - + 30 ) / - 5 - 73
----
-85

query II rowsort
SELECT ALL 81, - 14 * - - 65 AS col2
----
81
-910

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8598
SELECT DISTINCT - - CAST( + 63 AS SIGNED ) * 18 AS col0
----
1134

skipif mysql # not compatible
query I rowsort label-8598
SELECT DISTINCT - - CAST ( + 63 AS INTEGER ) * 18 AS col0
----
1134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8599
SELECT + 26 + - + CAST( NULL AS SIGNED ) * COUNT( * ) * + 16 / + 97 * + + 57 + + - ( 26 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8599
SELECT + 26 + - + CAST ( NULL AS INTEGER ) * COUNT ( * ) * + 16 / + 97 * + + 57 + + - ( 26 ) AS col0
----
NULL

query II rowsort
SELECT 17 * + - ( - 76 ), 53 AS col0
----
1292
53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-8601
SELECT - MIN( - 48 ) + - COUNT( ALL CAST( NULL AS DECIMAL ) ) - + 13 + - 63 DIV ( - COALESCE ( - MAX( ALL + + 78 ), - 81, - 21 ) )
----
35

skipif mysql # not compatible
query I rowsort label-8601
SELECT - MIN ( - 48 ) + - COUNT ( ALL CAST ( NULL AS REAL ) ) - + 13 + - 63 / ( - COALESCE ( - MAX ( ALL + + 78 ), - 81, - 21 ) )
----
35

query I rowsort
SELECT 94 + - + 85 + - 69 * + + 60 AS col1
----
-4131

query I rowsort
SELECT + 58 * - + 29
----
-1682

query I rowsort
SELECT DISTINCT - 58 - + + 37 AS col1
----
-95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8605
SELECT ALL - CAST( NULL AS DECIMAL ) - + - 95 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8605
SELECT ALL - CAST ( NULL AS REAL ) - + - 95 + COUNT ( * )
----
NULL

query I rowsort
SELECT 16 * 37 AS col0
----
592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8607
SELECT 22 + - 23 + + 89 * ( + CAST( - - 61 AS SIGNED ) )
----
5428

skipif mysql # not compatible
query I rowsort label-8607
SELECT 22 + - 23 + + 89 * ( + CAST ( - - 61 AS INTEGER ) )
----
5428

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT ALL - MAX( - - ( + 39 ) )
----
-39

skipif mysql # not compatible
query I rowsort label-8608
SELECT ALL - MAX ( - - ( + 39 ) )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT DISTINCT COUNT( * ) * + MAX( - 22 ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-8609
SELECT DISTINCT COUNT ( * ) * + MAX ( - 22 ) AS col0
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-8610
SELECT - 93 DIV + 15 + - 62 - ( + 66 ) col0
----
-134

skipif mysql # not compatible
query I rowsort label-8610
SELECT - 93 / + 15 + - 62 - ( + 66 ) col0
----
-134

query I rowsort
SELECT ALL NULLIF ( 61, + 29 ) * - 76 * + ( - ( - NULLIF ( - 76, - + 5 ) ) )
----
352336

query II rowsort
SELECT 57 + + CASE + 89 WHEN - 26 + + 11 THEN NULL WHEN + 25 THEN - + 32 WHEN + 32 THEN NULL END + - ( + 23 ), - 33 AS col0
----
NULL
-33

query I rowsort
SELECT 41 * + 7
----
287

query I rowsort
SELECT 76 * - + 73 * 7
----
-38836

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT ALL 71 + + + 8 + + SUM( ALL 60 ) AS col0
----
139

skipif mysql # not compatible
query I rowsort label-8615
SELECT ALL 71 + + + 8 + + SUM ( ALL 60 ) AS col0
----
139

query I rowsort
SELECT DISTINCT 29 + - - ( - 40 ) * + 14
----
-531

query I rowsort
SELECT 83 * + 85
----
7055

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8618
SELECT ALL - CASE - 13 WHEN + 42 THEN - 82 ELSE NULL END AS col1, COUNT( * ) DIV - + 66 col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8618
SELECT ALL - CASE - 13 WHEN + 42 THEN - 82 ELSE NULL END AS col1, COUNT ( * ) / - + 66 col0
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT ALL - 36 + + 27 + + COUNT( * ) - + COALESCE ( 13, + 71 * - MIN( DISTINCT - - ( - CASE + 37 WHEN + - 99 THEN - - 6 + + 34 WHEN - 55 * + 92 / + 33 THEN NULL WHEN - ( - 16 ) THEN NULL END ) ) + 75 + 99 ) * 48 * 6 AS col1
----
-3752

skipif mysql # not compatible
query I rowsort label-8619
SELECT ALL - 36 + + 27 + + COUNT ( * ) - + COALESCE ( 13, + 71 * - MIN ( DISTINCT - - ( - CASE + 37 WHEN + - 99 THEN - - 6 + + 34 WHEN - 55 * + 92 / + 33 THEN NULL WHEN - ( - 16 ) THEN NULL END ) ) + 75 + 99 ) * 48 * 6 AS col1
----
-3752

query I rowsort
SELECT DISTINCT - 14 + + 11 AS col1
----
-3

query II rowsort
SELECT ALL + + 90 + - - 62, 33 AS col2
----
152
33

query I rowsort
SELECT 52 * + 85 + 7
----
4427

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT DISTINCT - COALESCE ( - 97, + COUNT( * ) * + 29 * - + 43 + + - 44 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-8623
SELECT DISTINCT - COALESCE ( - 97, + COUNT ( * ) * + 29 * - + 43 + + - 44 ) AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT - + MIN( DISTINCT 77 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-8624
SELECT - + MIN ( DISTINCT 77 ) AS col0
----
-77

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8625
SELECT ALL - CAST( NULL AS SIGNED ) - - 80 + + - ( - + 13 ) - + CAST( NULL AS DECIMAL ) * - 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8625
SELECT ALL - CAST ( NULL AS INTEGER ) - - 80 + + - ( - + 13 ) - + CAST ( NULL AS REAL ) * - 2 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT 15 * - 5 - ( COUNT( * ) ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-8626
SELECT 15 * - 5 - ( COUNT ( * ) ) AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT - NULLIF ( + - 47, - + 19 * + MAX( 44 ) + + COUNT( * ) ) * COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-8627
SELECT - NULLIF ( + - 47, - + 19 * + MAX ( 44 ) + + COUNT ( * ) ) * COUNT ( * )
----
47

query I rowsort
SELECT - - ( - + 47 )
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-8629
SELECT DISTINCT + 71 DIV 18 * + - ( + 29 )
----
-87

skipif mysql # not compatible
query I rowsort label-8629
SELECT DISTINCT + 71 / 18 * + - ( + 29 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8630
SELECT ALL + + COUNT( * ) - + + 48 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-8630
SELECT ALL + + COUNT ( * ) - + + 48 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT + NULLIF ( - 84, + COUNT( * ) * 11 / + 48 * 4 - - - 15 ) * + + 32
----
-2688

skipif mysql # not compatible
query I rowsort label-8631
SELECT + NULLIF ( - 84, + COUNT ( * ) * 11 / + 48 * 4 - - - 15 ) * + + 32
----
-2688

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT ALL - 80 - COUNT( * ) + + 17 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-8632
SELECT ALL - 80 - COUNT ( * ) + + 17 AS col2
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-8633
SELECT + COUNT( * ) - - 23, + 65 + COUNT( DISTINCT - 40 ) * - 81 AS col2
----
24
-16

skipif mysql # not compatible
query II rowsort label-8633
SELECT + COUNT ( * ) - - 23, + 65 + COUNT ( DISTINCT - 40 ) * - 81 AS col2
----
24
-16

query I rowsort
SELECT 6 * - + 57 * - + 44 * ( 0 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT DISTINCT COUNT( - ( - - 98 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8635
SELECT DISTINCT COUNT ( - ( - - 98 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT COUNT( * ) * - 46 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-8636
SELECT COUNT ( * ) * - 46 AS col1
----
-46

query I rowsort
SELECT 32 * 4
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT ALL - COUNT( * ) + COALESCE ( + 75, - + 44 ) + ( + 33 ) AS col0
----
107

skipif mysql # not compatible
query I rowsort label-8638
SELECT ALL - COUNT ( * ) + COALESCE ( + 75, - + 44 ) + ( + 33 ) AS col0
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT DISTINCT SUM( + 82 )
----
82

skipif mysql # not compatible
query I rowsort label-8639
SELECT DISTINCT SUM ( + 82 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT DISTINCT - NULLIF ( - 37, + 64 / - ( - 41 ) ) * 22 * - + 62 * - - 32 + - COUNT( * ) * ( - + 56 ) AS col2
----
-1614920

skipif mysql # not compatible
query I rowsort label-8640
SELECT DISTINCT - NULLIF ( - 37, + 64 / - ( - 41 ) ) * 22 * - + 62 * - - 32 + - COUNT ( * ) * ( - + 56 ) AS col2
----
-1614920

onlyif mysql # aggregate syntax: 
query II rowsort label-8641
SELECT ALL 31 + - 30 + 50, COUNT( * ) col0
----
51
1

skipif mysql # not compatible
query II rowsort label-8641
SELECT ALL 31 + - 30 + 50, COUNT ( * ) col0
----
51
1

query I rowsort
SELECT ALL 24 * + - 65 * + - 67
----
104520

query I rowsort
SELECT ALL 20 * - 22 + - NULLIF ( + 49, - 74 ) AS col2
----
-489

onlyif mysql # aggregate syntax: 
query II rowsort label-8644
SELECT + COUNT( * ) col0, 74
----
1
74

skipif mysql # not compatible
query II rowsort label-8644
SELECT + COUNT ( * ) col0, 74
----
1
74

query I rowsort
SELECT 38 + + + 24
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT - MIN( + 86 ) * - 52 + - - 82 col2
----
4554

skipif mysql # not compatible
query I rowsort label-8646
SELECT - MIN ( + 86 ) * - 52 + - - 82 col2
----
4554

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT SUM( DISTINCT ( - - 67 ) )
----
67

skipif mysql # not compatible
query I rowsort label-8647
SELECT SUM ( DISTINCT ( - - 67 ) )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT ALL 23 * + 81 * COUNT( * ) AS col0
----
1863

skipif mysql # not compatible
query I rowsort label-8648
SELECT ALL 23 * + 81 * COUNT ( * ) AS col0
----
1863

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8649
SELECT ALL CAST( - + 36 AS SIGNED ) * - 33 - 14 + 65 * - + 19
----
-61

skipif mysql # not compatible
query I rowsort label-8649
SELECT ALL CAST ( - + 36 AS INTEGER ) * - 33 - 14 + 65 * - + 19
----
-61

query I rowsort
SELECT 74 - - + 72 * - - 19 + - 53 * - 18
----
2396

query I rowsort
SELECT DISTINCT 8 * - 95 - + - 48 - + 82 + - 2 + - 25 + + - 40 + - + 48 * 1 * + 41 * 77 AS col0
----
-152397

onlyif mysql # DIV for integer division: 
query I rowsort label-8652
SELECT ALL + 94 DIV 8 + ( + 89 ) * - - 67 * + 35
----
208716

skipif mysql # not compatible
query I rowsort label-8652
SELECT ALL + 94 / 8 + ( + 89 ) * - - 67 * + 35
----
208716

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8653
SELECT + COALESCE ( + 83, - COUNT( * ) + + 11 DIV - 82 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-8653
SELECT + COALESCE ( + 83, - COUNT ( * ) + + 11 / - 82 ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT + - CASE - ( - 35 ) WHEN + + COUNT( * ) THEN + - 8 + 93 + - + 80 * - COUNT( * ) * - 32 WHEN - 12 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8654
SELECT + - CASE - ( - 35 ) WHEN + + COUNT ( * ) THEN + - 8 + 93 + - + 80 * - COUNT ( * ) * - 32 WHEN - 12 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8655
SELECT - 8 + + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + + 52 * 79 + - - 51 - 11 / + 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8655
SELECT - 8 + + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + + 52 * 79 + - - 51 - 11 / + 7 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8656
SELECT + - 44 + - 55 + 40 * - - 88 * + - COUNT( 49 ) + + + CAST( NULL AS DECIMAL ) + - ( - 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8656
SELECT + - 44 + - 55 + 40 * - - 88 * + - COUNT ( 49 ) + + + CAST ( NULL AS REAL ) + - ( - 19 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8657
SELECT DISTINCT + + NULLIF ( + 19, + + ( + MAX( - 64 ) ) * 37 + CAST( NULL AS SIGNED ) - + 45 * - - 78 * - 40 + - + 17 * + - 82 - - 33 )
----
19

skipif mysql # not compatible
query I rowsort label-8657
SELECT DISTINCT + + NULLIF ( + 19, + + ( + MAX ( - 64 ) ) * 37 + CAST ( NULL AS INTEGER ) - + 45 * - - 78 * - 40 + - + 17 * + - 82 - - 33 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT + - ( - 92 ) + MAX( ALL 29 )
----
121

skipif mysql # not compatible
query I rowsort label-8658
SELECT + - ( - 92 ) + MAX ( ALL 29 )
----
121

query I rowsort
SELECT - ( 61 ) * 15
----
-915

query I rowsort
SELECT ALL 67 * + - 53 AS col0
----
-3551

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8661
SELECT ALL CASE WHEN NOT ( + 45 NOT IN ( 92, - ( - - MAX( ALL - - 55 ) ), + ( - + 45 ) * + - CAST( - 65 AS DECIMAL ) ) ) THEN + 57 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8661
SELECT ALL CASE WHEN NOT ( + 45 NOT IN ( 92, - ( - - MAX ( ALL - - 55 ) ), + ( - + 45 ) * + - CAST ( - 65 AS REAL ) ) ) THEN + 57 END
----
NULL

query II rowsort
SELECT ALL + 48 * + 31 * + 61 AS col0, + 96 + - 42 col2
----
90768
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT + 91 + - 31 + + 64 * + + 1 - + 77 / + CASE - 9 WHEN + 78 THEN MAX( DISTINCT + 43 ) END * 11 + + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-8663
SELECT + 91 + - 31 + + 64 * + + 1 - + 77 / + CASE - 9 WHEN + 78 THEN MAX ( DISTINCT + 43 ) END * 11 + + 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT DISTINCT COUNT( + 39 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8664
SELECT DISTINCT COUNT ( + 39 ) AS col2
----
1

query I rowsort
SELECT ALL COALESCE ( + 94, - 30 * - - 37 ) AS col1
----
94

query I rowsort
SELECT - 67 + - 19 + + 54 AS col0
----
-32

query I rowsort
SELECT ALL + 74 + - + 50 + 88
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT ALL - 47 + + 68 - - ( - COALESCE ( - 60, - 35 + - + COUNT( * ) ) )
----
81

skipif mysql # not compatible
query I rowsort label-8668
SELECT ALL - 47 + + 68 - - ( - COALESCE ( - 60, - 35 + - + COUNT ( * ) ) )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT - 37 + 5 + - + 61 * + NULLIF ( + ( COALESCE ( - - 21, - 38 * + 87, + 57 ) ), - + 59 * - 31 ) + - 3 * ( - 33 ) - - + 96 * + 94 * - COUNT( * )
----
-10238

skipif mysql # not compatible
query I rowsort label-8669
SELECT - 37 + 5 + - + 61 * + NULLIF ( + ( COALESCE ( - - 21, - 38 * + 87, + 57 ) ), - + 59 * - 31 ) + - 3 * ( - 33 ) - - + 96 * + 94 * - COUNT ( * )
----
-10238

query I rowsort
SELECT DISTINCT ( - 22 ) AS col0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8671
SELECT DISTINCT - COALESCE ( - ( - CAST( NULL AS SIGNED ) ), + - 46 ) + 55
----
101

skipif mysql # not compatible
query I rowsort label-8671
SELECT DISTINCT - COALESCE ( - ( - CAST ( NULL AS INTEGER ) ), + - 46 ) + 55
----
101

query I rowsort
SELECT ALL + 74 + + ( ( - - 85 ) ) * - 99
----
-8341

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT - MIN( ALL 35 ) + 2 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-8673
SELECT - MIN ( ALL 35 ) + 2 AS col0
----
-33

query I rowsort
SELECT ALL - 11 + - 42 AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8675
SELECT DISTINCT - 56 * COUNT( * ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-8675
SELECT DISTINCT - 56 * COUNT ( * ) AS col1
----
-56

query I rowsort
SELECT DISTINCT ( - - 25 )
----
25

query II rowsort
SELECT - 77 * + 5 col1, ( + 3 )
----
-385
3

query I rowsort
SELECT + 83 + - 80
----
3

query I rowsort
SELECT ALL + 84 * - - 31 AS col0
----
2604

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT - MIN( DISTINCT 70 ) * - + 18 * 89
----
112140

skipif mysql # not compatible
query I rowsort label-8680
SELECT - MIN ( DISTINCT 70 ) * - + 18 * 89
----
112140

onlyif mysql # aggregate syntax: 
query II rowsort label-8681
SELECT + COUNT( * ) AS col1, 7 + 1 + + + COUNT( ALL 74 ) * + + COUNT( * ) + - + 99 + - - 48 AS col1
----
1
-42

skipif mysql # not compatible
query II rowsort label-8681
SELECT + COUNT ( * ) AS col1, 7 + 1 + + + COUNT ( ALL 74 ) * + + COUNT ( * ) + - + 99 + - - 48 AS col1
----
1
-42

query I rowsort
SELECT ALL + 84 * 84 AS col1
----
7056

query II rowsort
SELECT DISTINCT + 30 col0, + 35
----
30
35

onlyif mysql # aggregate syntax: 
query II rowsort label-8684
SELECT ALL - 69 * + COUNT( * ) * 69 - + 37 AS col0, + 71 + 36 * + 47
----
-4798
1763

skipif mysql # not compatible
query II rowsort label-8684
SELECT ALL - 69 * + COUNT ( * ) * 69 - + 37 AS col0, + 71 + 36 * + 47
----
-4798
1763

query I rowsort
SELECT + - ( - COALESCE ( 70, - 83 ) ) * - 26 AS col1
----
-1820

query I rowsort
SELECT DISTINCT 58 * - 96 - 37
----
-5605

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8687
SELECT ALL + - CASE + + 94 WHEN - + 72 THEN + NULLIF ( - 35, 50 ) + + 51 + + COALESCE ( + + NULLIF ( - 15, + + 37 ), CAST( - 56 AS SIGNED ) + - 97 + + 94 + - 44 + - - 74 * + + 85 * + - 72 * - 50 * - - ( + 68 ) + COUNT( * ) ) WHEN - CASE - COUNT( * ) WHEN - COUNT( * ) THEN - ( 74 ) * - COALESCE ( - 37 * + 85 + + COALESCE ( - 87, 18, 0 ), + 27 * 92 + + 91 ) + 26 END THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8687
SELECT ALL + - CASE + + 94 WHEN - + 72 THEN + NULLIF ( - 35, 50 ) + + 51 + + COALESCE ( + + NULLIF ( - 15, + + 37 ), CAST ( - 56 AS INTEGER ) + - 97 + + 94 + - 44 + - - 74 * + + 85 * + - 72 * - 50 * - - ( + 68 ) + COUNT ( * ) ) WHEN - CASE - COUNT ( * ) WHEN - COUNT ( * ) THEN - ( 74 ) * - COALESCE ( - 37 * + 85 + + COALESCE ( - 87, 18, 0 ), + 27 * 92 + + 91 ) + 26 END THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8688
SELECT ALL - NULLIF ( + COUNT( * ), CAST( 75 AS DECIMAL ) * + 28 + + 75 * - 74 * + COUNT( * ) + 83 ) * - - CASE 17 WHEN + 42 THEN + + 67 ELSE NULL END + - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-8688
SELECT ALL - NULLIF ( + COUNT ( * ), CAST ( 75 AS REAL ) * + 28 + + 75 * - 74 * + COUNT ( * ) + 83 ) * - - CASE 17 WHEN + 42 THEN + + 67 ELSE NULL END + - 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT - - 40 / - + CASE - + COALESCE ( + MAX( - + 15 ), + - 1, 31 ) WHEN - 59 * - 85 + - 31 - - + 59 / + 54 THEN - ( - 25 ) END + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8689
SELECT - - 40 / - + CASE - + COALESCE ( + MAX ( - + 15 ), + - 1, 31 ) WHEN - 59 * - 85 + - 31 - - + 59 / + 54 THEN - ( - 25 ) END + COUNT ( * ) AS col2
----
NULL

query II rowsort
SELECT + 61 AS col1, 50
----
61
50

query I rowsort
SELECT DISTINCT + - 76 * + + ( + 66 )
----
-5016

query I rowsort
SELECT ALL 42 * 26
----
1092

query I rowsort
SELECT DISTINCT + - ( 88 )
----
-88

query II rowsort
SELECT ALL + + 65 AS col1, + 77 * - 0 + - - 6 AS col1
----
65
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT + - 41 + - NULLIF ( + 79, 56 ) + + MIN( - + 22 ) + - + 80 AS col2
----
-222

skipif mysql # not compatible
query I rowsort label-8695
SELECT + - 41 + - NULLIF ( + 79, 56 ) + + MIN ( - + 22 ) + - + 80 AS col2
----
-222

onlyif mysql # DIV for integer division: 
query I rowsort label-8696
SELECT + + 66 DIV + 79 * + - 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8696
SELECT + + 66 / + 79 * + - 79 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8697
SELECT ALL + + 1 * + - 62 + + CAST( + COUNT( * ) AS SIGNED ) + 31 + + COUNT( ALL 20 ) * - 77 col2
----
-107

skipif mysql # not compatible
query I rowsort label-8697
SELECT ALL + + 1 * + - 62 + + CAST ( + COUNT ( * ) AS INTEGER ) + 31 + + COUNT ( ALL 20 ) * - 77 col2
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT + - MIN( ALL - 95 ) - + 93
----
2

skipif mysql # not compatible
query I rowsort label-8698
SELECT + - MIN ( ALL - 95 ) - + 93
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-8699
SELECT - + 7, COUNT( * ) AS col0
----
-7
1

skipif mysql # not compatible
query II rowsort label-8699
SELECT - + 7, COUNT ( * ) AS col0
----
-7
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT ALL COUNT( ALL 97 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8700
SELECT ALL COUNT ( ALL 97 ) AS col1
----
1

query I rowsort
SELECT - ( + - 64 ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT - MIN( 31 ) + + + 63 * - 81 + + 9 + - ( + - COUNT( + 7 ) ) AS col1
----
-5124

skipif mysql # not compatible
query I rowsort label-8702
SELECT - MIN ( 31 ) + + + 63 * - 81 + + 9 + - ( + - COUNT ( + 7 ) ) AS col1
----
-5124

onlyif mysql # DIV for integer division: 
query I rowsort label-8703
SELECT + 43 DIV + 69 * - 8 * 49
----
0

skipif mysql # not compatible
query I rowsort label-8703
SELECT + 43 / + 69 * - 8 * 49
----
0

query I rowsort
SELECT ALL ( - - 99 ) + - NULLIF ( + 65, 24 )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8705
SELECT DISTINCT 84 + - + 26 + - NULLIF ( + ( - 9 ), + + 61 + - ( - + 96 ) ) * NULLIF ( - CAST( NULL AS SIGNED ), COUNT( * ) ) * 21 * + 36 * - - MIN( ALL 54 ) + + 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8705
SELECT DISTINCT 84 + - + 26 + - NULLIF ( + ( - 9 ), + + 61 + - ( - + 96 ) ) * NULLIF ( - CAST ( NULL AS INTEGER ), COUNT ( * ) ) * 21 * + 36 * - - MIN ( ALL 54 ) + + 45 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 69 * 73
----
5037

query I rowsort
SELECT ALL - 15 + + 10
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8708
SELECT ALL COUNT( * ) + - + 36 * + 84 * - ( - - 18 ) AS col0
----
54433

skipif mysql # not compatible
query I rowsort label-8708
SELECT ALL COUNT ( * ) + - + 36 * + 84 * - ( - - 18 ) AS col0
----
54433

query I rowsort
SELECT - ( 45 ) * - 43 * + 78
----
150930

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT + COUNT( * ) - + 38 - + 98 AS col0
----
-135

skipif mysql # not compatible
query I rowsort label-8710
SELECT + COUNT ( * ) - + 38 - + 98 AS col0
----
-135

query I rowsort
SELECT ALL - 15 + - + 21 + 55 col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT + NULLIF ( - COUNT( * ), - + 68 ) * + 66 col1
----
-66

skipif mysql # not compatible
query I rowsort label-8712
SELECT + NULLIF ( - COUNT ( * ), - + 68 ) * + 66 col1
----
-66

query I rowsort
SELECT DISTINCT + 98 + - 47
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8714
SELECT ALL + 80 - + 21 * + + COALESCE ( - CAST( NULL AS SIGNED ), ( + - 79 ) + + ( + COUNT( * ) ) ) AS col2
----
1718

skipif mysql # not compatible
query I rowsort label-8714
SELECT ALL + 80 - + 21 * + + COALESCE ( - CAST ( NULL AS INTEGER ), ( + - 79 ) + + ( + COUNT ( * ) ) ) AS col2
----
1718

query I rowsort
SELECT ALL NULLIF ( - - 85, + 14 * - ( 13 ) + - - 3 ) AS col1
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8716
SELECT DISTINCT + 98 - + COALESCE ( + ( - CAST( NULL AS SIGNED ) ), + + CASE + ( - 97 ) WHEN - + 18 * + - COUNT( * ) - + COUNT( * ) THEN 78 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8716
SELECT DISTINCT + 98 - + COALESCE ( + ( - CAST ( NULL AS INTEGER ) ), + + CASE + ( - 97 ) WHEN - + 18 * + - COUNT ( * ) - + COUNT ( * ) THEN 78 ELSE NULL END )
----
NULL

query I rowsort
SELECT DISTINCT - 7 * + + 43 AS col1
----
-301

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8718
SELECT DISTINCT - 35 DIV MAX( - 61 )
----
0

skipif mysql # not compatible
query I rowsort label-8718
SELECT DISTINCT - 35 / MAX ( - 61 )
----
0

query I rowsort
SELECT ALL + 57 - 93 AS col1
----
-36

query I rowsort
SELECT ALL - 99 * 50 AS col2
----
-4950

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8721
SELECT MIN( - 99 ) AS col2, ( - 69 ) DIV - 55
----
-99
1

skipif mysql # not compatible
query II rowsort label-8721
SELECT MIN ( - 99 ) AS col2, ( - 69 ) / - 55
----
-99
1

query I rowsort
SELECT - ( ( + - 21 ) ) + - + 2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT ALL + COALESCE ( + MIN( DISTINCT + - 58 ), + MAX( - 31 ) ) * - + 4
----
232

skipif mysql # not compatible
query I rowsort label-8723
SELECT ALL + COALESCE ( + MIN ( DISTINCT + - 58 ), + MAX ( - 31 ) ) * - + 4
----
232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8724
SELECT - 86 * + 28 - CAST( + 32 AS SIGNED )
----
-2440

skipif mysql # not compatible
query I rowsort label-8724
SELECT - 86 * + 28 - CAST ( + 32 AS INTEGER )
----
-2440

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT CASE - 22 WHEN - + 83 THEN - 81 + - MAX( 81 ) WHEN + 59 THEN NULL ELSE NULL END * - AVG ( + 94 ) + 48 + + - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-8725
SELECT CASE - 22 WHEN - + 83 THEN - 81 + - MAX ( 81 ) WHEN + 59 THEN NULL ELSE NULL END * - AVG ( + 94 ) + 48 + + - 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT DISTINCT + - 24 * - - COUNT( * ) col0
----
-24

skipif mysql # not compatible
query I rowsort label-8726
SELECT DISTINCT + - 24 * - - COUNT ( * ) col0
----
-24

query II rowsort
SELECT DISTINCT - 5 * - 75 AS col2, 98 AS col0
----
375
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT + MAX( DISTINCT - 15 ) * + 3 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-8728
SELECT + MAX ( DISTINCT - 15 ) * + 3 AS col2
----
-45

query I rowsort
SELECT ALL + - 74 * + 49 AS col1
----
-3626

query I rowsort
SELECT + ( 67 ) * + - 39 + - - ( - 34 ) + - - 92
----
-2555

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8731
SELECT ALL - ( - 93 ) AS col2, + CAST( NULL AS SIGNED ) - - 20 * + NULLIF ( 32, + - 6 ) AS col1
----
93
NULL

skipif mysql # not compatible
query II rowsort label-8731
SELECT ALL - ( - 93 ) AS col2, + CAST ( NULL AS INTEGER ) - - 20 * + NULLIF ( 32, + - 6 ) AS col1
----
93
NULL

query I rowsort
SELECT + 93 + + 61 + + 65 AS col2
----
219

query I rowsort
SELECT 63 * - 94 + + + 96 AS col0
----
-5826

onlyif mysql # aggregate syntax: 
query II rowsort label-8734
SELECT - + 13 * ( - + 99 ) + 61 * + 65 AS col0, NULLIF ( - + 78, 97 + - SUM( - - 61 ) + - ( COUNT( * ) ) ) + - 26 + + 16 * + MIN( - 2 ) * ( 98 )
----
5252
-3240

skipif mysql # not compatible
query II rowsort label-8734
SELECT - + 13 * ( - + 99 ) + 61 * + 65 AS col0, NULLIF ( - + 78, 97 + - SUM ( - - 61 ) + - ( COUNT ( * ) ) ) + - 26 + + 16 * + MIN ( - 2 ) * ( 98 )
----
5252
-3240

query I rowsort
SELECT - 29 + - 32
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8736
SELECT DISTINCT - - MAX( DISTINCT + ( - 14 ) ) DIV - COUNT( * ) + + 28 + + 13 * - - 43 * 32 * + - 17
----
-304054

skipif mysql # not compatible
query I rowsort label-8736
SELECT DISTINCT - - MAX ( DISTINCT + ( - 14 ) ) / - COUNT ( * ) + + 28 + + 13 * - - 43 * 32 * + - 17
----
-304054

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8737
SELECT ALL + COUNT( * ) + - 87 - 28 DIV - 36 * - 59 col1
----
-86

skipif mysql # not compatible
query I rowsort label-8737
SELECT ALL + COUNT ( * ) + - 87 - 28 / - 36 * - 59 col1
----
-86

query I rowsort
SELECT ALL 14 * + 46
----
644

query I rowsort
SELECT ALL - 83 * - - ( - 21 )
----
1743

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT DISTINCT + ( - - COUNT( 71 ) ) + - 2 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8740
SELECT DISTINCT + ( - - COUNT ( 71 ) ) + - 2 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8741
SELECT DISTINCT - AVG ( ALL + - CAST( NULL AS SIGNED ) ) + + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-8741
SELECT DISTINCT - AVG ( ALL + - CAST ( NULL AS INTEGER ) ) + + 37
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8742
SELECT DISTINCT 67 + - COALESCE ( MIN( ALL + + 73 ), - 7, - + ( + COUNT( * ) ) + + 4 + + CAST( NULL AS SIGNED ) DIV + 75, + + 53, - - 91 )
----
-6

skipif mysql # not compatible
query I rowsort label-8742
SELECT DISTINCT 67 + - COALESCE ( MIN ( ALL + + 73 ), - 7, - + ( + COUNT ( * ) ) + + 4 + + CAST ( NULL AS INTEGER ) / + 75, + + 53, - - 91 )
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8743
SELECT 61 + 30 DIV MIN( ALL + 70 ) + + 6 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-8743
SELECT 61 + 30 / MIN ( ALL + 70 ) + + 6 AS col1
----
67

query II rowsort
SELECT - 35 col0, 47
----
-35
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT 51 * + CASE + + 90 WHEN + 60 + + 78 + - COUNT( * ) - 86 + MIN( DISTINCT + 0 ) THEN - 69 + 18 + + - 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8745
SELECT 51 * + CASE + + 90 WHEN + 60 + + 78 + - COUNT ( * ) - 86 + MIN ( DISTINCT + 0 ) THEN - 69 + 18 + + - 50 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8746
SELECT MIN( DISTINCT - 40 ) + - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8746
SELECT MIN ( DISTINCT - 40 ) + - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8747
SELECT 92 DIV - 56
----
-1

skipif mysql # not compatible
query I rowsort label-8747
SELECT 92 / - 56
----
-1

query I rowsort
SELECT DISTINCT 66 - - 39
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT DISTINCT CASE - 80 WHEN - 59 + + ( - + 6 ) + - 20 / + - 52 THEN - MAX( DISTINCT + - 79 ) - 55 END / + + 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8749
SELECT DISTINCT CASE - 80 WHEN - 59 + + ( - + 6 ) + - 20 / + - 52 THEN - MAX ( DISTINCT + - 79 ) - 55 END / + + 47 AS col1
----
NULL

query II rowsort
SELECT 82 AS col1, 98 + - 17 AS col2
----
82
81

onlyif mysql # aggregate syntax: 
query II rowsort label-8751
SELECT DISTINCT 7, COUNT( * ) AS col1
----
7
1

skipif mysql # not compatible
query II rowsort label-8751
SELECT DISTINCT 7, COUNT ( * ) AS col1
----
7
1

query I rowsort
SELECT 85 * + ( + - 74 )
----
-6290

query I rowsort
SELECT 92 + 80 col2
----
172

query I rowsort
SELECT ALL 6 - + 97
----
-91

query I rowsort
SELECT 63 * + 15
----
945

query I rowsort
SELECT - 61 + 60 + + 75 AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT COALESCE ( + 65, - + 42 * 0 ) + + COUNT( * ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-8757
SELECT COALESCE ( + 65, - + 42 * 0 ) + + COUNT ( * ) AS col0
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8758
SELECT + MIN( - 87 ) + - 0 + + 25 DIV 24 * 17 + 82 col1
----
12

skipif mysql # not compatible
query I rowsort label-8758
SELECT + MIN ( - 87 ) + - 0 + + 25 / 24 * 17 + 82 col1
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-8759
SELECT ALL - COUNT( * ) AS col2, COUNT( * ) AS col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-8759
SELECT ALL - COUNT ( * ) AS col2, COUNT ( * ) AS col0
----
-1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8760
SELECT + CAST( NULL AS DECIMAL ) * - - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-8760
SELECT + CAST ( NULL AS REAL ) * - - 87
----
NULL

query I rowsort
SELECT + NULLIF ( - ( 2 ), + 65 + + 17 + - 90 + + 68 * - - 90 )
----
-2

query I rowsort
SELECT ALL - 2 + 11 col1
----
9

query I rowsort
SELECT ALL - + 76 + - + 11
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-8764
SELECT ALL - 10 DIV - + 49
----
0

skipif mysql # not compatible
query I rowsort label-8764
SELECT ALL - 10 / - + 49
----
0

query I rowsort
SELECT + + NULLIF ( 80, 2 + - 55 ) AS col1
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-8766
SELECT + + 67 AS col2, ( COUNT( * ) ) AS col0
----
67
1

skipif mysql # not compatible
query II rowsort label-8766
SELECT + + 67 AS col2, ( COUNT ( * ) ) AS col0
----
67
1

query I rowsort
SELECT ALL - 19 + ( - 26 )
----
-45

onlyif mysql # aggregate syntax: 
query III rowsort label-8768
SELECT ALL + COUNT( - 87 ) + + 13 AS col0, MIN( 86 ) + 61 * - 61 * 91 * - + 86 AS col1, + + COUNT( ALL - + 97 ) + + ( + 69 ) AS col1
----
14
29120632
70

skipif mysql # not compatible
query III rowsort label-8768
SELECT ALL + COUNT ( - 87 ) + + 13 AS col0, MIN ( 86 ) + 61 * - 61 * 91 * - + 86 AS col1, + + COUNT ( ALL - + 97 ) + + ( + 69 ) AS col1
----
14
29120632
70

onlyif mysql # DIV for integer division: 
query I rowsort label-8769
SELECT 0 * 99 DIV + 72 + + - 71 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-8769
SELECT 0 * 99 / + 72 + + - 71 AS col2
----
-71

query II rowsort
SELECT + + 44, 84 AS col2
----
44
84

query II rowsort
SELECT 49 AS col2, - ( - 15 ) + 21
----
49
36

query II rowsort
SELECT DISTINCT + 16 * + 96 + + 91 AS col0, + 44 * + - 27
----
1627
-1188

query II rowsort
SELECT ALL - 58 + - 46 + + - 24, + COALESCE ( - 60, - 72, + 14 ) * - 13 + + 75 AS col0
----
-128
855

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8774
SELECT ALL + 0 + - + 3 DIV - 16 * + + COUNT( * ) + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8774
SELECT ALL + 0 + - + 3 / - 16 * + + COUNT ( * ) + + COUNT ( * ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8775
SELECT + 66 * + 20 * + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8775
SELECT + 66 * + 20 * + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8776
SELECT ALL + 15 + 29 AS col0, 46 * - COUNT( * ) + - 21 / ( - - 80 ) * + 26 - CASE + 10 WHEN + - 12 THEN NULL WHEN + 11 * - SUM( DISTINCT + ( + CASE + 67 WHEN - + 31 THEN - + 77 ELSE NULL END ) ) * - + ( + 62 ) THEN + + 81 - - ( + 90 ) END * + COUNT( - 98 ) + 50 * - 2
----
44
NULL

skipif mysql # not compatible
query II rowsort label-8776
SELECT ALL + 15 + 29 AS col0, 46 * - COUNT ( * ) + - 21 / ( - - 80 ) * + 26 - CASE + 10 WHEN + - 12 THEN NULL WHEN + 11 * - SUM ( DISTINCT + ( + CASE + 67 WHEN - + 31 THEN - + 77 ELSE NULL END ) ) * - + ( + 62 ) THEN + + 81 - - ( + 90 ) END * + COUNT ( - 98 ) + 50 * - 2
----
44
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8777
SELECT 15 * 82 / - 83 * - 53 * - 4 + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8777
SELECT 15 * 82 / - 83 * - 53 * - 4 + + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL - ( + - 56 )
----
56

query I rowsort
SELECT ALL - ( + - 29 ) AS col0
----
29

query I rowsort
SELECT 41 * - + 38 col1
----
-1558

query I rowsort
SELECT ALL NULLIF ( - 89, - - 5 ) AS col0
----
-89

query I rowsort
SELECT ALL + 97 - + - 76 AS col1
----
173

query I rowsort
SELECT 51 + 39 - + 72
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-8784
SELECT - COUNT( - 27 ) AS col1, + 97 * 8 AS col2
----
-1
776

skipif mysql # not compatible
query II rowsort label-8784
SELECT - COUNT ( - 27 ) AS col1, + 97 * 8 AS col2
----
-1
776

onlyif mysql # DIV for integer division: 
query I rowsort label-8785
SELECT ( - 5 ) + 64 DIV + + 34 + + + 10
----
6

skipif mysql # not compatible
query I rowsort label-8785
SELECT ( - 5 ) + 64 / + + 34 + + + 10
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8786
SELECT DISTINCT 66 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8786
SELECT DISTINCT 66 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 25 * - 81 col0
----
-2025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8788
SELECT DISTINCT + 98 - COUNT( * ) * - - CAST( - + 92 AS SIGNED ) + 31
----
221

skipif mysql # not compatible
query I rowsort label-8788
SELECT DISTINCT + 98 - COUNT ( * ) * - - CAST ( - + 92 AS INTEGER ) + 31
----
221

query I rowsort
SELECT DISTINCT + 34 * + - 97
----
-3298

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8790
SELECT DISTINCT - 80 - + COUNT( * ) - - NULLIF ( + 7, - 79 ) DIV - ( + CASE - 39 WHEN - 56 THEN - 91 WHEN MAX( 8 ) DIV + COALESCE ( + 51, 28 * - 30 * - 95 + - + 24 + - - 12, COALESCE ( + 34, 97, COUNT( * ) ) ) THEN NULL ELSE 94 END ) + 31 col1
----
-50

skipif mysql # not compatible
query I rowsort label-8790
SELECT DISTINCT - 80 - + COUNT ( * ) - - NULLIF ( + 7, - 79 ) / - ( + CASE - 39 WHEN - 56 THEN - 91 WHEN MAX ( 8 ) / + COALESCE ( + 51, 28 * - 30 * - 95 + - + 24 + - - 12, COALESCE ( + 34, 97, COUNT ( * ) ) ) THEN NULL ELSE 94 END ) + 31 col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT ALL + 25 * ( MAX( DISTINCT + 64 ) ) AS col0
----
1600

skipif mysql # not compatible
query I rowsort label-8791
SELECT ALL + 25 * ( MAX ( DISTINCT + 64 ) ) AS col0
----
1600

query I rowsort
SELECT - 88 - - 53
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT + 53 * + COUNT( * ) * - 42 * + 86
----
-191436

skipif mysql # not compatible
query I rowsort label-8793
SELECT + 53 * + COUNT ( * ) * - 42 * + 86
----
-191436

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT - COUNT( DISTINCT 67 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8794
SELECT - COUNT ( DISTINCT 67 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-8795
SELECT DISTINCT + 50 DIV - 19 AS col2, 33 AS col2
----
-2
33

skipif mysql # not compatible
query II rowsort label-8795
SELECT DISTINCT + 50 / - 19 AS col2, 33 AS col2
----
-2
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8796
SELECT - CASE + MAX( ALL 97 ) WHEN - 12 + - 7 - - 85 + - 66 / - CASE 22 WHEN - + COUNT( * ) + - - 49 THEN NULL WHEN 7 THEN - + NULLIF ( + 89, - 49 + - + ( CAST( COUNT( 93 ) AS SIGNED ) ) * - + 69 + 26 * - 27 * + - 90 ) ELSE + NULLIF ( 31, - 21 * 19 + - AVG ( ALL + ( 15 ) ) ) * 24 END * 35 THEN + 20 + + 92 * CAST( NULLIF ( + ( 53 ), 43 ) AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8796
SELECT - CASE + MAX ( ALL 97 ) WHEN - 12 + - 7 - - 85 + - 66 / - CASE 22 WHEN - + COUNT ( * ) + - - 49 THEN NULL WHEN 7 THEN - + NULLIF ( + 89, - 49 + - + ( CAST ( COUNT ( 93 ) AS INTEGER ) ) * - + 69 + 26 * - 27 * + - 90 ) ELSE + NULLIF ( 31, - 21 * 19 + - AVG ( ALL + ( 15 ) ) ) * 24 END * 35 THEN + 20 + + 92 * CAST ( NULLIF ( + ( 53 ), 43 ) AS INTEGER ) END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8797
SELECT + - 11 DIV 32
----
0

skipif mysql # not compatible
query I rowsort label-8797
SELECT + - 11 / 32
----
0

query I rowsort
SELECT ALL - 5 + 64 AS col2
----
59

query I rowsort
SELECT + + 36 * - 3 AS col0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT ALL 65 + - COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-8800
SELECT ALL 65 + - COUNT ( * )
----
64

query I rowsort
SELECT DISTINCT COALESCE ( + + 82, 19 ) * + 38 + - 73 + - 11 + - 28 AS col0
----
3004

query II rowsort
SELECT + 62 * - + 51 AS col0, 77 AS col0
----
-3162
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT 59 * 52 * COUNT( * ) + + 36 * - 72
----
476

skipif mysql # not compatible
query I rowsort label-8803
SELECT 59 * 52 * COUNT ( * ) + + 36 * - 72
----
476

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT + - SUM( ALL - 99 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-8804
SELECT + - SUM ( ALL - 99 ) AS col1
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8805
SELECT - - COUNT( * ) * + 50 * + + CAST( - - 6 AS SIGNED ) + - + 87 AS col1
----
213

skipif mysql # not compatible
query I rowsort label-8805
SELECT - - COUNT ( * ) * + 50 * + + CAST ( - - 6 AS INTEGER ) + - + 87 AS col1
----
213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8806
SELECT + CASE 26 WHEN - 77 * - 42 * 61 / - - NULLIF ( - 93, + ( COALESCE ( - 53, + ( - - 74 ) * CAST( ( - 18 ) AS SIGNED ) ) ) ) + + + 43 THEN + + 2 * 32 - - 53 * - 14 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8806
SELECT + CASE 26 WHEN - 77 * - 42 * 61 / - - NULLIF ( - 93, + ( COALESCE ( - 53, + ( - - 74 ) * CAST ( ( - 18 ) AS INTEGER ) ) ) ) + + + 43 THEN + + 2 * 32 - - 53 * - 14 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8807
SELECT - 48 DIV 38 + 41 + + + 18 + 14 + - 68 * - 66 * + 59 * - - 71 + + ( + - 29 ) AS col0
----
18800275

skipif mysql # not compatible
query I rowsort label-8807
SELECT - 48 / 38 + 41 + + + 18 + 14 + - 68 * - 66 * + 59 * - - 71 + + ( + - 29 ) AS col0
----
18800275

onlyif mysql # aggregate syntax: 
query II rowsort label-8808
SELECT + + 35 + - SUM( - 13 ) * - + 80 col0, ( 78 ) * 95 AS col2
----
-1005
7410

skipif mysql # not compatible
query II rowsort label-8808
SELECT + + 35 + - SUM ( - 13 ) * - + 80 col0, ( 78 ) * 95 AS col2
----
-1005
7410

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT ALL - 41 * - ( - 20 ) + - 45 + - 75 - COUNT( + 25 ) - - - MAX( - 45 ) - + COUNT( * ) + MAX( - + ( - + 90 ) ) + - - ( - 14 ) AS col2
----
-821

skipif mysql # not compatible
query I rowsort label-8809
SELECT ALL - 41 * - ( - 20 ) + - 45 + - 75 - COUNT ( + 25 ) - - - MAX ( - 45 ) - + COUNT ( * ) + MAX ( - + ( - + 90 ) ) + - - ( - 14 ) AS col2
----
-821

query I rowsort
SELECT DISTINCT + + 16 AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT - COALESCE ( - 79, 82 + 68 * - + COALESCE ( - 3, + COUNT( * ) * - COUNT( DISTINCT 64 ) * + - 75 + - COUNT( * ) ), + 51 ) + 51 AS col0
----
130

skipif mysql # not compatible
query I rowsort label-8811
SELECT - COALESCE ( - 79, 82 + 68 * - + COALESCE ( - 3, + COUNT ( * ) * - COUNT ( DISTINCT 64 ) * + - 75 + - COUNT ( * ) ), + 51 ) + 51 AS col0
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-8812
SELECT + COUNT( DISTINCT + 48 ) * - + ( + + COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8812
SELECT + COUNT ( DISTINCT + 48 ) * - + ( + + COUNT ( * ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT + COUNT( 24 ) + + 13 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-8813
SELECT + COUNT ( 24 ) + + 13 AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT - 37 * ( - + SUM( - - 5 ) ) AS col1
----
185

skipif mysql # not compatible
query I rowsort label-8814
SELECT - 37 * ( - + SUM ( - - 5 ) ) AS col1
----
185

query II rowsort
SELECT + 33 AS col0, 31 AS col0
----
33
31

query I rowsort
SELECT ALL + ( + + 67 ) AS col2
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8817
SELECT - ( - CAST( 96 AS SIGNED ) ) * - 61
----
-5856

skipif mysql # not compatible
query I rowsort label-8817
SELECT - ( - CAST ( 96 AS INTEGER ) ) * - 61
----
-5856

query I rowsort
SELECT ALL 37 * 2 AS col1
----
74

query I rowsort
SELECT DISTINCT + 11 * + + 98
----
1078

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8820
SELECT ALL ( + SUM( - - CAST( NULL AS DECIMAL ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8820
SELECT ALL ( + SUM ( - - CAST ( NULL AS REAL ) ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT - COUNT( * ) - - + 14 * - ( 16 ) * - COUNT( * ) + NULLIF ( 54, - COALESCE ( 64, - 61 ) * - 81 - + COUNT( * ) )
----
277

skipif mysql # not compatible
query I rowsort label-8821
SELECT - COUNT ( * ) - - + 14 * - ( 16 ) * - COUNT ( * ) + NULLIF ( 54, - COALESCE ( 64, - 61 ) * - 81 - + COUNT ( * ) )
----
277

query I rowsort
SELECT DISTINCT NULLIF ( - 49, + + 25 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT DISTINCT NULLIF ( - COALESCE ( - COUNT( * ), + 85 + + - 46, + COUNT( * ) ), 38 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8823
SELECT DISTINCT NULLIF ( - COALESCE ( - COUNT ( * ), + 85 + + - 46, + COUNT ( * ) ), 38 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT - COUNT( DISTINCT + 27 )
----
-1

skipif mysql # not compatible
query I rowsort label-8824
SELECT - COUNT ( DISTINCT + 27 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8825
SELECT - COUNT( ALL + + 70 ) * 93 * - CASE + + 12 WHEN + MIN( + COALESCE ( - 52, + 86 * - COALESCE ( + 68, CAST( NULL AS SIGNED ) ) ) ) THEN NULL WHEN - 81 * ( + 71 ) THEN - 17 * + 93 END + - - 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8825
SELECT - COUNT ( ALL + + 70 ) * 93 * - CASE + + 12 WHEN + MIN ( + COALESCE ( - 52, + 86 * - COALESCE ( + 68, CAST ( NULL AS INTEGER ) ) ) ) THEN NULL WHEN - 81 * ( + 71 ) THEN - 17 * + 93 END + - - 14 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8826
SELECT - 77 * + - MIN( ALL + - 47 ) AS col2, + COUNT( * ) DIV + + 60 - - 77
----
-3619
77

skipif mysql # not compatible
query II rowsort label-8826
SELECT - 77 * + - MIN ( ALL + - 47 ) AS col2, + COUNT ( * ) / + + 60 - - 77
----
-3619
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8827
SELECT + CAST( + - COALESCE ( + ( + 1 ), - COUNT( * ) / + COALESCE ( - + CAST( 52 AS SIGNED ), - COUNT( * ) * - - 64 ) + 91 + SUM( DISTINCT 29 ) + + + 89, - - 12 ) AS SIGNED ) * - 57 + 28 + + + MAX( + 7 ) + - 54 * - 47 + CASE + COUNT( * ) WHEN - AVG ( ALL - + 49 ) THEN NULL WHEN - 53 + 17 THEN 77 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8827
SELECT + CAST ( + - COALESCE ( + ( + 1 ), - COUNT ( * ) / + COALESCE ( - + CAST ( 52 AS INTEGER ), - COUNT ( * ) * - - 64 ) + 91 + SUM ( DISTINCT 29 ) + + + 89, - - 12 ) AS INTEGER ) * - 57 + 28 + + + MAX ( + 7 ) + - 54 * - 47 + CASE + COUNT ( * ) WHEN - AVG ( ALL - + 49 ) THEN NULL WHEN - 53 + 17 THEN 77 END col1
----
NULL

query I rowsort
SELECT + 70 - + - 46 AS col1
----
116

query I rowsort
SELECT ALL + 94 * - 55 col1
----
-5170

query I rowsort
SELECT ALL + 22 + + 20
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8831
SELECT DISTINCT + 87 + CASE + MAX( DISTINCT - 45 ) WHEN + 57 + + 1 - + 83 THEN NULL ELSE + + 12 + - 73 DIV - 16 END AS col1
----
103

skipif mysql # not compatible
query I rowsort label-8831
SELECT DISTINCT + 87 + CASE + MAX ( DISTINCT - 45 ) WHEN + 57 + + 1 - + 83 THEN NULL ELSE + + 12 + - 73 / - 16 END AS col1
----
103

query I rowsort
SELECT ALL 35 + - 84 AS col2
----
-49

query I rowsort
SELECT - 5 + 0 AS col1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8834
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 22 * + 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8834
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 22 * + 94 AS col1
----
NULL

query I rowsort
SELECT ALL + 94 + + 3
----
97

query I rowsort
SELECT - + 35 col0
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8837
SELECT ALL + 44 DIV + COUNT( * ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-8837
SELECT ALL + 44 / + COUNT ( * ) AS col1
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8838
SELECT + CAST( NULL AS SIGNED ) / - + MAX( ALL 85 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8838
SELECT + CAST ( NULL AS INTEGER ) / - + MAX ( ALL 85 ) AS col1
----
NULL

query I rowsort
SELECT + 21 * + 7 - NULLIF ( 54, - 66 )
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-8840
SELECT + 76 AS col2, COALESCE ( - 5, SUM( - 26 ) )
----
76
-5

skipif mysql # not compatible
query II rowsort label-8840
SELECT + 76 AS col2, COALESCE ( - 5, SUM ( - 26 ) )
----
76
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8841
SELECT + - 72 DIV COUNT( * ) * + + 3 + + 88 * - + 20 + 28
----
-1948

skipif mysql # not compatible
query I rowsort label-8841
SELECT + - 72 / COUNT ( * ) * + + 3 + + 88 * - + 20 + 28
----
-1948

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8842
SELECT + + 87 * - 76 * - NULLIF ( COUNT( * ), + - 69 + + + COUNT( * ) + + CAST( + ( + 28 ) AS SIGNED ) * + 34 + + 63 - - + 90 ) AS col2
----
6612

skipif mysql # not compatible
query I rowsort label-8842
SELECT + + 87 * - 76 * - NULLIF ( COUNT ( * ), + - 69 + + + COUNT ( * ) + + CAST ( + ( + 28 ) AS INTEGER ) * + 34 + + 63 - - + 90 ) AS col2
----
6612

query I rowsort
SELECT DISTINCT 97 * - - 13
----
1261

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT ALL CASE + 12 WHEN - COUNT( * ) THEN NULL WHEN - 47 * 95 THEN + 97 END / 5 - + 51 * + - 10 * - 69 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8844
SELECT ALL CASE + 12 WHEN - COUNT ( * ) THEN NULL WHEN - 47 * 95 THEN + 97 END / 5 - + 51 * + - 10 * - 69 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8845
SELECT + COUNT( * ) - - COUNT( * ) DIV - + CAST( - 85 AS SIGNED ) - + 2 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8845
SELECT + COUNT ( * ) - - COUNT ( * ) / - + CAST ( - 85 AS INTEGER ) - + 2 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8846
SELECT - ( - - 89 ) * SUM( DISTINCT 76 ) + - SUM( + 16 ) AS col1, + 54 * + 5 * + 9 AS col0
----
-6780
2430

skipif mysql # not compatible
query II rowsort label-8846
SELECT - ( - - 89 ) * SUM ( DISTINCT 76 ) + - SUM ( + 16 ) AS col1, + 54 * + 5 * + 9 AS col0
----
-6780
2430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8847
SELECT DISTINCT CAST( 13 AS SIGNED ) * - 97
----
-1261

skipif mysql # not compatible
query I rowsort label-8847
SELECT DISTINCT CAST ( 13 AS INTEGER ) * - 97
----
-1261

onlyif mysql # aggregate syntax: 
query II rowsort label-8848
SELECT DISTINCT + COUNT( * ) AS col2, SUM( ALL ( 97 ) ) * + - 45 * 82 + + 25 * 16
----
1
-357530

skipif mysql # not compatible
query II rowsort label-8848
SELECT DISTINCT + COUNT ( * ) AS col2, SUM ( ALL ( 97 ) ) * + - 45 * 82 + + 25 * 16
----
1
-357530

onlyif mysql # aggregate syntax: 
query II rowsort label-8849
SELECT DISTINCT - 37, - ( + - 74 ) * - ( - COUNT( * ) ) AS col2
----
-37
74

skipif mysql # not compatible
query II rowsort label-8849
SELECT DISTINCT - 37, - ( + - 74 ) * - ( - COUNT ( * ) ) AS col2
----
-37
74

query I rowsort
SELECT ALL - NULLIF ( - + ( + - 19 ), - 60 / 14 - + 21 )
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8851
SELECT CAST( + + 90 AS SIGNED ) * - 81
----
-7290

skipif mysql # not compatible
query I rowsort label-8851
SELECT CAST ( + + 90 AS INTEGER ) * - 81
----
-7290

query I rowsort
SELECT 2 * - 6
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT ALL COUNT( + 16 ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8853
SELECT ALL COUNT ( + 16 ) * + COUNT ( * )
----
1

query II rowsort
SELECT - 7, 15 AS col2
----
-7
15

query I rowsort
SELECT ALL 47 + 84 * - 98 AS col1
----
-8185

query I rowsort
SELECT 1 * + 88 AS col2
----
88

query I rowsort
SELECT DISTINCT + NULLIF ( 96, + 93 * - - 68 ) * + 21 col1
----
2016

query I rowsort
SELECT + 3 * - + 72 col1
----
-216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8859
SELECT DISTINCT - AVG ( 46 ) / + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8859
SELECT DISTINCT - AVG ( 46 ) / + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT DISTINCT - + NULLIF ( - 17, SUM( DISTINCT + - 99 ) ) + - + 49 * 13
----
-620

skipif mysql # not compatible
query I rowsort label-8860
SELECT DISTINCT - + NULLIF ( - 17, SUM ( DISTINCT + - 99 ) ) + - + 49 * 13
----
-620

query I rowsort
SELECT COALESCE ( + 51, + + 39 * - 43 - 18 + + + 49 ) col0
----
51

query I rowsort
SELECT 6 - - 0 * - - 27
----
6

query II rowsort
SELECT - 53 * - 34, - 58 * 72 col2
----
1802
-4176

query I rowsort
SELECT ALL + 31 * 52
----
1612

query II rowsort
SELECT DISTINCT + 11 AS col0, 66
----
11
66

query II rowsort
SELECT 37 AS col2, - 44 AS col2
----
37
-44

query I rowsort
SELECT + 19 * + 35
----
665

query I rowsort
SELECT ALL + ( 77 ) * - 72 + - - 36 * + + COALESCE ( + + 10, + 35, 88 + - 63 + CASE + - 94 WHEN + 30 * + 81 + - + AVG ( + 2 ) THEN NULL WHEN + ( - + 48 ) * - 5 THEN NULL WHEN + - 81 THEN - 43 ELSE NULL END )
----
-5184

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT ALL - COUNT( + - 84 )
----
-1

skipif mysql # not compatible
query I rowsort label-8869
SELECT ALL - COUNT ( + - 84 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8870
SELECT ( 8 ) - + COUNT( * ) + - SUM( + NULLIF ( + 8, + 50 ) ) + - 57 + 3 * + 74 * - 39, 4 - 90 AS col2
----
-8716
-86

skipif mysql # not compatible
query II rowsort label-8870
SELECT ( 8 ) - + COUNT ( * ) + - SUM ( + NULLIF ( + 8, + 50 ) ) + - 57 + 3 * + 74 * - 39, 4 - 90 AS col2
----
-8716
-86

query I rowsort
SELECT 78 + + ( - 81 ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT ALL - 21 - MIN( - 81 ) * 7
----
546

skipif mysql # not compatible
query I rowsort label-8872
SELECT ALL - 21 - MIN ( - 81 ) * 7
----
546

query I rowsort
SELECT - 85 * 39 + - - 73 AS col0
----
-3242

query II rowsort
SELECT ALL - - 38, + 63 * - + 69 - + - 44 + 55 + + - ( + 64 ) + 66 col2
----
38
-4246

onlyif mysql # DIV for integer division: 
query I rowsort label-8875
SELECT 65 DIV + ( 92 ) + + 74 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-8875
SELECT 65 / + ( 92 ) + + 74 AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT 86 - - COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-8876
SELECT 86 - - COUNT ( * )
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-8877
SELECT ALL 49 DIV - + 74
----
0

skipif mysql # not compatible
query I rowsort label-8877
SELECT ALL 49 / - + 74
----
0

query I rowsort
SELECT 57 * + + 80
----
4560

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8879
SELECT ALL - ( + 87 ) AS col2, COUNT( * ) DIV + 89 AS col2
----
-87
0

skipif mysql # not compatible
query II rowsort label-8879
SELECT ALL - ( + 87 ) AS col2, COUNT ( * ) / + 89 AS col2
----
-87
0

query I rowsort
SELECT ALL 2 * + - 44 AS col0
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8881
SELECT 76 DIV 88 col1, - COUNT( DISTINCT - - 23 ) AS col2
----
0
-1

skipif mysql # not compatible
query II rowsort label-8881
SELECT 76 / 88 col1, - COUNT ( DISTINCT - - 23 ) AS col2
----
0
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8882
SELECT ( - - CAST( NULL AS SIGNED ) ) * 39 + + 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8882
SELECT ( - - CAST ( NULL AS INTEGER ) ) * 39 + + 54 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8883
SELECT CAST( NULL AS SIGNED ) + - ( - 68 ) + - 77 + + 21 * + - AVG ( 25 ) * - - COUNT( * ) + + - 99 * COUNT( ALL + 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8883
SELECT CAST ( NULL AS INTEGER ) + - ( - 68 ) + - 77 + + 21 * + - AVG ( 25 ) * - - COUNT ( * ) + + - 99 * COUNT ( ALL + 9 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT ALL COUNT( * ) * - 66 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-8884
SELECT ALL COUNT ( * ) * - 66 AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT ALL CASE - 34 WHEN + ( 61 ) THEN - 42 WHEN - COUNT( * ) * + 24 THEN NULL ELSE NULL END + - 44 + ( - 17 ) / - 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8885
SELECT ALL CASE - 34 WHEN + ( 61 ) THEN - 42 WHEN - COUNT ( * ) * + 24 THEN NULL ELSE NULL END + - 44 + ( - 17 ) / - 8 AS col0
----
NULL

query II rowsort
SELECT DISTINCT 94 + + + 17 AS col1, 91 AS col1
----
111
91

query I rowsort
SELECT 95 * - 43
----
-4085

query II rowsort
SELECT ALL 6 + + 19, + 26 AS col2
----
25
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT ALL 29 + MIN( ALL - + 30 ) - + 36 * - 94 col1
----
3383

skipif mysql # not compatible
query I rowsort label-8889
SELECT ALL 29 + MIN ( ALL - + 30 ) - + 36 * - 94 col1
----
3383

onlyif mysql # aggregate syntax: 
query II rowsort label-8890
SELECT - COUNT( * ) + + - 8, - 29 AS col0
----
-9
-29

skipif mysql # not compatible
query II rowsort label-8890
SELECT - COUNT ( * ) + + - 8, - 29 AS col0
----
-9
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8891
SELECT - 4 * + 64 * + + COUNT( * ) + + NULLIF ( - CAST( NULL AS SIGNED ), + - CAST( NULL AS SIGNED ) / - + AVG ( + 3 ) * + + 11 + COUNT( * ) + 28 + + - 56 / - 97 * + CAST( - 99 AS DECIMAL ) + - 90 ) + + CASE ( - 9 ) WHEN 1 THEN + + 32 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8891
SELECT - 4 * + 64 * + + COUNT ( * ) + + NULLIF ( - CAST ( NULL AS INTEGER ), + - CAST ( NULL AS INTEGER ) / - + AVG ( + 3 ) * + + 11 + COUNT ( * ) + 28 + + - 56 / - 97 * + CAST ( - 99 AS REAL ) + - 90 ) + + CASE ( - 9 ) WHEN 1 THEN + + 32 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8892
SELECT + SUM( + + 79 ) + - 52 + 20 * - CAST( NULL AS SIGNED ) * - ( 42 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8892
SELECT + SUM ( + + 79 ) + - 52 + 20 * - CAST ( NULL AS INTEGER ) * - ( 42 ) AS col2
----
NULL

query I rowsort
SELECT + 37 - + - 51 + 76 - 46 * - - 87 col1
----
-3838

onlyif mysql # DIV for integer division: 
query I rowsort label-8894
SELECT 21 + - 41 DIV - + 14
----
23

skipif mysql # not compatible
query I rowsort label-8894
SELECT 21 + - 41 / - + 14
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT ALL - MAX( DISTINCT 33 ) - - - NULLIF ( 47, + + 36 ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL - MAX ( DISTINCT 33 ) - - - NULLIF ( 47, + + 36 ) AS col0
----
-80

query I rowsort
SELECT ALL + 86 - + 55
----
31

query II rowsort
SELECT ALL - + 25 - ( - + 38 ), + 89 AS col1
----
13
89

query I rowsort
SELECT - 17 + - NULLIF ( - 32, + AVG ( 10 ) )
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8899
SELECT - SUM( ALL + 38 ) * + CASE + - 24 WHEN - 6 / 59 THEN + CAST( NULL AS SIGNED ) WHEN - 99 / 17 THEN NULL ELSE NULL END / - CAST( NULL AS SIGNED ) * - + 42 - + 80 * + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-8899
SELECT - SUM ( ALL + 38 ) * + CASE + - 24 WHEN - 6 / 59 THEN + CAST ( NULL AS INTEGER ) WHEN - 99 / 17 THEN NULL ELSE NULL END / - CAST ( NULL AS INTEGER ) * - + 42 - + 80 * + 95
----
NULL

query II rowsort
SELECT 90 + 31 AS col2, 0 - + - 14 - - - 61
----
121
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8901
SELECT - 44 + 52 + - - 51 * - MAX( - - 87 ) * - SUM( ( 93 ) ) * + 33 + - 68 + + 75 + - COUNT( * ) * - 15 + - NULLIF ( - SUM( - 97 ), ( + CASE - 36 WHEN - 3 * - 6 THEN + 75 + + 98 + - 15 END ) + + 16 * - CASE + - AVG ( - ( 71 ) ) WHEN - 15 * + 94 + COUNT( * ) THEN COALESCE ( - 67, - 8 + + 57, ( + 44 ) * 71 ) WHEN - 55 THEN + 75 + + 99 ELSE NULL END + - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) * + 5 ) * 80
----
13609423

skipif mysql # not compatible
query I rowsort label-8901
SELECT - 44 + 52 + - - 51 * - MAX ( - - 87 ) * - SUM ( ( 93 ) ) * + 33 + - 68 + + 75 + - COUNT ( * ) * - 15 + - NULLIF ( - SUM ( - 97 ), ( + CASE - 36 WHEN - 3 * - 6 THEN + 75 + + 98 + - 15 END ) + + 16 * - CASE + - AVG ( - ( 71 ) ) WHEN - 15 * + 94 + COUNT ( * ) THEN COALESCE ( - 67, - 8 + + 57, ( + 44 ) * 71 ) WHEN - 55 THEN + 75 + + 99 ELSE NULL END + - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) * + 5 ) * 80
----
13609423

query I rowsort
SELECT DISTINCT + + 83 - + 72 + + 83 AS col1
----
94

query I rowsort
SELECT + 66 + - 68 * - 92
----
6322

query II rowsort
SELECT ALL 17 AS col2, 16
----
17
16

query I rowsort
SELECT ALL + ( + 87 )
----
87

query I rowsort
SELECT ALL + NULLIF ( + 70, + 31 + - COALESCE ( - + 57, ( + 21 ) ) ) AS col1
----
70

query II rowsort
SELECT DISTINCT + NULLIF ( + 25, - ( + 61 ) * 2 * - 17 ) AS col2, 66
----
25
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8908
SELECT DISTINCT 56 * - 12 + 17 + + SUM( + 21 ) + + 79 * + - 39 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8908
SELECT DISTINCT 56 * - 12 + 17 + + SUM ( + 21 ) + + 79 * + - 39 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT ALL + ( - SUM( + 94 ) ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-8909
SELECT ALL + ( - SUM ( + 94 ) ) AS col1
----
-94

query II rowsort
SELECT + 84 col1, + 54 AS col1
----
84
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT CASE + COALESCE ( + COUNT( * ), - 88, + - 37 ) WHEN 40 THEN - 53 * + - 1 WHEN 83 THEN NULL ELSE 53 + - + 14 - + 80 * - - COUNT( * ) * + 90 END
----
-7161

skipif mysql # not compatible
query I rowsort label-8911
SELECT CASE + COALESCE ( + COUNT ( * ), - 88, + - 37 ) WHEN 40 THEN - 53 * + - 1 WHEN 83 THEN NULL ELSE 53 + - + 14 - + 80 * - - COUNT ( * ) * + 90 END
----
-7161

query I rowsort
SELECT + 36 * 86 AS col2
----
3096

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8913
SELECT COUNT( * ) DIV + 81 - - 93 + - + 2 + - 61
----
30

skipif mysql # not compatible
query I rowsort label-8913
SELECT COUNT ( * ) / + 81 - - 93 + - + 2 + - 61
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8914
SELECT ALL MIN( + ( + 11 ) ) * + 26 + - 26 DIV + 69 + - + COALESCE ( - SUM( ( + 49 ) ), - 88 ) * + SUM( - - ( + 10 ) ) * 23 * 52 * COALESCE ( + MIN( DISTINCT + + CAST( NULL AS SIGNED ) ), SUM( 34 ), + 62 )
----
19925646

skipif mysql # not compatible
query I rowsort label-8914
SELECT ALL MIN ( + ( + 11 ) ) * + 26 + - 26 / + 69 + - + COALESCE ( - SUM ( ( + 49 ) ), - 88 ) * + SUM ( - - ( + 10 ) ) * 23 * 52 * COALESCE ( + MIN ( DISTINCT + + CAST ( NULL AS INTEGER ) ), SUM ( 34 ), + 62 )
----
19925646

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8915
SELECT - MAX( DISTINCT 54 ) * ( MAX( ALL - CAST( 73 AS SIGNED ) ) ), - 91 AS col1
----
3942
-91

skipif mysql # not compatible
query II rowsort label-8915
SELECT - MAX ( DISTINCT 54 ) * ( MAX ( ALL - CAST ( 73 AS INTEGER ) ) ), - 91 AS col1
----
3942
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8916
SELECT - CAST( NULL AS SIGNED ) - + - 82 * - + 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8916
SELECT - CAST ( NULL AS INTEGER ) - + - 82 * - + 95 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT + MAX( + 37 )
----
37

skipif mysql # not compatible
query I rowsort label-8917
SELECT + MAX ( + 37 )
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-8918
SELECT COUNT( * ) AS col2, 25
----
1
25

skipif mysql # not compatible
query II rowsort label-8918
SELECT COUNT ( * ) AS col2, 25
----
1
25

query I rowsort
SELECT ALL + ( - - 8 ) * - 31 + - - 84
----
-164

onlyif mysql # aggregate syntax: 
query II rowsort label-8920
SELECT + COUNT( * ), 99 + - 9 AS col1
----
1
90

skipif mysql # not compatible
query II rowsort label-8920
SELECT + COUNT ( * ), 99 + - 9 AS col1
----
1
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT - + SUM( 80 ) * + COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-8921
SELECT - + SUM ( 80 ) * + COUNT ( * )
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-8922
SELECT - + 44 AS col2, 56 * COUNT( * ) AS col2
----
-44
56

skipif mysql # not compatible
query II rowsort label-8922
SELECT - + 44 AS col2, 56 * COUNT ( * ) AS col2
----
-44
56

query I rowsort
SELECT + - 95 + - + 31 AS col1
----
-126

query I rowsort
SELECT + - 37 * + 77 col2
----
-2849

onlyif mysql # aggregate syntax: 
query II rowsort label-8925
SELECT 86 col0, - COALESCE ( 61, - 24 * + - 75 + 84, - COUNT( * ) ) AS col0
----
86
-61

skipif mysql # not compatible
query II rowsort label-8925
SELECT 86 col0, - COALESCE ( 61, - 24 * + - 75 + 84, - COUNT ( * ) ) AS col0
----
86
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8926
SELECT + + CAST( + + ( - - COUNT( * ) ) AS SIGNED ) * + + 26 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-8926
SELECT + + CAST ( + + ( - - COUNT ( * ) ) AS INTEGER ) * + + 26 AS col1
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-8927
SELECT ALL - 25 AS col0, COUNT( ALL 24 )
----
-25
1

skipif mysql # not compatible
query II rowsort label-8927
SELECT ALL - 25 AS col0, COUNT ( ALL 24 )
----
-25
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8928
SELECT ALL 71 - - 26 - + 83 * - + 25 * + CAST( - 37 AS SIGNED ) - 2 + - CASE 45 WHEN - 3 * COUNT( DISTINCT - + 42 ) + - 80 - 93 * + 99 THEN NULL WHEN 55 * 98 THEN NULL ELSE - 68 + CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8928
SELECT ALL 71 - - 26 - + 83 * - + 25 * + CAST ( - 37 AS INTEGER ) - 2 + - CASE 45 WHEN - 3 * COUNT ( DISTINCT - + 42 ) + - 80 - 93 * + 99 THEN NULL WHEN 55 * 98 THEN NULL ELSE - 68 + CAST ( NULL AS INTEGER ) END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 88 * + 60 AS col1
----
-5280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8930
SELECT + + COUNT( * ) + + CAST( NULL AS SIGNED ) + + + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-8930
SELECT + + COUNT ( * ) + + CAST ( NULL AS INTEGER ) + + + 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT - + CASE - 85 WHEN 26 THEN NULL WHEN AVG ( - 30 ) + - + 17 + + + COUNT( * ) * + - 73 + + + COUNT( * ) THEN + 9 + + 29 END / + 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8931
SELECT - + CASE - 85 WHEN 26 THEN NULL WHEN AVG ( - 30 ) + - + 17 + + + COUNT ( * ) * + - 73 + + + COUNT ( * ) THEN + 9 + + 29 END / + 25 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT ALL - CASE + COUNT( * ) WHEN + 56 * + 36 THEN NULL ELSE + + 24 END AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-8932
SELECT ALL - CASE + COUNT ( * ) WHEN + 56 * + 36 THEN NULL ELSE + + 24 END AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT ALL ( SUM( ALL + 36 ) ) + 60
----
96

skipif mysql # not compatible
query I rowsort label-8933
SELECT ALL ( SUM ( ALL + 36 ) ) + 60
----
96

query II rowsort
SELECT + 8 - - 60, + 55 + 74 AS col2
----
68
129

query I rowsort
SELECT ALL 73 + - 11 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT ALL + COUNT( * ) + + - 17
----
-16

skipif mysql # not compatible
query I rowsort label-8936
SELECT ALL + COUNT ( * ) + + - 17
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT - ( 86 ) - - ( - 88 ) - + NULLIF ( + 1, + 67 / + NULLIF ( - NULLIF ( ( + + 74 ), - 7 - + + 5 ), COUNT( * ) ) ) + - 30 * - COUNT( * ) AS col2
----
-145

skipif mysql # not compatible
query I rowsort label-8937
SELECT - ( 86 ) - - ( - 88 ) - + NULLIF ( + 1, + 67 / + NULLIF ( - NULLIF ( ( + + 74 ), - 7 - + + 5 ), COUNT ( * ) ) ) + - 30 * - COUNT ( * ) AS col2
----
-145

onlyif mysql # aggregate syntax: 
query II rowsort label-8938
SELECT - ( + + 8 ) AS col2, + MAX( - + 74 ) AS col2
----
-8
-74

skipif mysql # not compatible
query II rowsort label-8938
SELECT - ( + + 8 ) AS col2, + MAX ( - + 74 ) AS col2
----
-8
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8939
SELECT + 55 + - CAST( - 96 AS SIGNED )
----
151

skipif mysql # not compatible
query I rowsort label-8939
SELECT + 55 + - CAST ( - 96 AS INTEGER )
----
151

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8940
SELECT CAST( + CAST( + 52 AS DECIMAL ) AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-8940
SELECT CAST ( + CAST ( + 52 AS REAL ) AS INTEGER )
----
52

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8941
SELECT DISTINCT CAST( 8 AS SIGNED ) DIV - ( + 16 ) + - 71
----
-71

skipif mysql # not compatible
query I rowsort label-8941
SELECT DISTINCT CAST ( 8 AS INTEGER ) / - ( + 16 ) + - 71
----
-71

query I rowsort
SELECT + 71 * + + 57 + - 15
----
4032

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8943
SELECT ALL + COALESCE ( 59, 78 DIV - 86 ), 7 - + COUNT( * ) AS col1
----
59
6

skipif mysql # not compatible
query II rowsort label-8943
SELECT ALL + COALESCE ( 59, 78 / - 86 ), 7 - + COUNT ( * ) AS col1
----
59
6

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8944
SELECT 40 DIV - CAST( 92 AS SIGNED ) + - NULLIF ( - ( - COALESCE ( - 38, 7 ) ), - + AVG ( ALL + + 65 ) )
----
38

skipif mysql # not compatible
query I rowsort label-8944
SELECT 40 / - CAST ( 92 AS INTEGER ) + - NULLIF ( - ( - COALESCE ( - 38, 7 ) ), - + AVG ( ALL + + 65 ) )
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-8945
SELECT ( COUNT( * ) ), 31 * - 9 AS col0
----
1
-279

skipif mysql # not compatible
query II rowsort label-8945
SELECT ( COUNT ( * ) ), 31 * - 9 AS col0
----
1
-279

query I rowsort
SELECT ALL + 31 * + 77 AS col0
----
2387

query I rowsort
SELECT ALL + 98 * + 77 + 92 * 92
----
16010

query I rowsort
SELECT 40 * - 2 + 78 AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8949
SELECT - COUNT( * ) / - - CAST( NULL AS SIGNED ) + - COALESCE ( + + MAX( ALL - 15 ), - - 16, 28 + + NULLIF ( - 41, + CAST( NULL AS SIGNED ) / 85 ), - 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8949
SELECT - COUNT ( * ) / - - CAST ( NULL AS INTEGER ) + - COALESCE ( + + MAX ( ALL - 15 ), - - 16, 28 + + NULLIF ( - 41, + CAST ( NULL AS INTEGER ) / 85 ), - 89 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT ALL + 71 * - + 49 * + ( + 96 ) - + 95 * COUNT( * )
----
-334079

skipif mysql # not compatible
query I rowsort label-8950
SELECT ALL + 71 * - + 49 * + ( + 96 ) - + 95 * COUNT ( * )
----
-334079

onlyif mysql # aggregate syntax: 
query II rowsort label-8951
SELECT - 59 * 38, - CASE MIN( - 31 ) WHEN - + 13 THEN + 33 END * - + ( + 78 ) * - - 73 + - 46 + - 45 AS col2
----
-2242
NULL

skipif mysql # not compatible
query II rowsort label-8951
SELECT - 59 * 38, - CASE MIN ( - 31 ) WHEN - + 13 THEN + 33 END * - + ( + 78 ) * - - 73 + - 46 + - 45 AS col2
----
-2242
NULL

query II rowsort
SELECT ( - - 37 ) AS col2, - 73 + - 28
----
37
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT ALL + + MAX( 79 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-8953
SELECT ALL + + MAX ( 79 ) AS col1
----
79

query I rowsort
SELECT - 36 + + 10
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-8955
SELECT - + 72 DIV - + 38
----
1

skipif mysql # not compatible
query I rowsort label-8955
SELECT - + 72 / - + 38
----
1

query I rowsort
SELECT + + 66 * - + 20 * 81
----
-106920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8957
SELECT - - 35 * 37 * - MAX( ALL - + 93 ) + + - CAST( 16 AS SIGNED ) AS col1
----
120419

skipif mysql # not compatible
query I rowsort label-8957
SELECT - - 35 * 37 * - MAX ( ALL - + 93 ) + + - CAST ( 16 AS INTEGER ) AS col1
----
120419

onlyif mysql # DIV for integer division: 
query I rowsort label-8958
SELECT - 76 DIV + 55 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8958
SELECT - 76 / + 55 AS col0
----
-1

query I rowsort
SELECT + - 14 + + + 22 AS col1
----
8

query I rowsort
SELECT ALL + COALESCE ( - + 24, - ( + 52 ) ) col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT + - 64 * - - 96 + ( CASE + 43 WHEN + + MAX( DISTINCT + + 76 ) THEN + 53 + - 91 * + 85 END ) + + + 7 * - 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8961
SELECT + - 64 * - - 96 + ( CASE + 43 WHEN + + MAX ( DISTINCT + + 76 ) THEN + 53 + - 91 * + 85 END ) + + + 7 * - 61 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8962
SELECT ALL - ( + 80 ) * - COUNT( * ) * - CAST( 74 AS SIGNED ) AS col1
----
-5920

skipif mysql # not compatible
query I rowsort label-8962
SELECT ALL - ( + 80 ) * - COUNT ( * ) * - CAST ( 74 AS INTEGER ) AS col1
----
-5920

query I rowsort
SELECT - 65 + 72 + - + 32 + + 51 - 88 * 95
----
-8334

query I rowsort
SELECT + 35 - - - 83
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT ALL NULLIF ( + 19, 7 * + 58 ) * + COUNT( * ) + + COUNT( * ) * + - 1 - COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-8965
SELECT ALL NULLIF ( + 19, 7 * + 58 ) * + COUNT ( * ) + + COUNT ( * ) * + - 1 - COUNT ( * )
----
17

query I rowsort
SELECT DISTINCT + + 37 * - + 40 * + 79 AS col0
----
-116920

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT - COALESCE ( COUNT( * ), 1, + 26 - - 50 )
----
-1

skipif mysql # not compatible
query I rowsort label-8967
SELECT - COALESCE ( COUNT ( * ), 1, + 26 - - 50 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT ALL COUNT( * ) + - + COUNT( + + 62 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8968
SELECT ALL COUNT ( * ) + - + COUNT ( + + 62 ) AS col0
----
0

query I rowsort
SELECT ALL 90 + - ( - ( + 24 ) ) AS col0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT MIN( + 54 ) * 84 + 48 AS col0
----
4584

skipif mysql # not compatible
query I rowsort label-8970
SELECT MIN ( + 54 ) * 84 + 48 AS col0
----
4584

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT ( 68 ) + + + MAX( + 33 ) AS col0
----
101

skipif mysql # not compatible
query I rowsort label-8971
SELECT ( 68 ) + + + MAX ( + 33 ) AS col0
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-8972
SELECT DISTINCT 84 DIV - + 36 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-8972
SELECT DISTINCT 84 / - + 36 AS col1
----
-2

query I rowsort
SELECT ALL 43 + 32
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT ALL COUNT( * ) + 34 * - 19 + - 90 + + 86 * - + 20 * - - 21
----
-36855

skipif mysql # not compatible
query I rowsort label-8974
SELECT ALL COUNT ( * ) + 34 * - 19 + - 90 + + 86 * - + 20 * - - 21
----
-36855

query I rowsort
SELECT ALL NULLIF ( + 60, - + 51 + + 71 + + + 70 ) * 31 + - + 51 AS col2
----
1809

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8976
SELECT DISTINCT 48 DIV + - NULLIF ( - + MAX( DISTINCT 75 ), - 90 + - ( ( 90 ) ) + NULLIF ( + 11, + 23 * - CAST( + 61 AS SIGNED ) * - - 87 + + 53 ) * - 56 + + 28 * + ( ( 70 ) ) + + + 53 ) * - 83 - - 73 + 62 - + MIN( ALL - 78 ), - 53 + - 29 AS col2
----
213
-82

skipif mysql # not compatible
query II rowsort label-8976
SELECT DISTINCT 48 / + - NULLIF ( - + MAX ( DISTINCT 75 ), - 90 + - ( ( 90 ) ) + NULLIF ( + 11, + 23 * - CAST ( + 61 AS INTEGER ) * - - 87 + + 53 ) * - 56 + + 28 * + ( ( 70 ) ) + + + 53 ) * - 83 - - 73 + 62 - + MIN ( ALL - 78 ), - 53 + - 29 AS col2
----
213
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8977
SELECT ALL 13 + - - MIN( 70 ) + 45 DIV - 71
----
83

skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL 13 + - - MIN ( 70 ) + 45 / - 71
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT ALL - ( - COALESCE ( 17, - COUNT( * ) ) )
----
17

skipif mysql # not compatible
query I rowsort label-8978
SELECT ALL - ( - COALESCE ( 17, - COUNT ( * ) ) )
----
17

query I rowsort
SELECT 20 * - 81 AS col0
----
-1620

query I rowsort
SELECT ALL 77 * + 54
----
4158

onlyif mysql # DIV for integer division: 
query I rowsort label-8981
SELECT 30 DIV + 82 col2
----
0

skipif mysql # not compatible
query I rowsort label-8981
SELECT 30 / + 82 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT 1 * + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8982
SELECT 1 * + - COUNT ( * )
----
-1

query I rowsort
SELECT 36 * - 50 col1
----
-1800

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT ALL - MAX( 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-8984
SELECT ALL - MAX ( 66 )
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8985
SELECT 46 * 97 DIV - - CASE + ( + - 47 ) WHEN - 44 + - - 22 + - 53 + - 72 THEN + - NULLIF ( COUNT( - 28 ), + 48 + - 2 * - ( - 89 ) + + + 53 - 78 ) * 22 + 66 WHEN COUNT( * ) + + 37 * + 8 + 97 * + COUNT( * ) THEN AVG ( DISTINCT + - 58 ) * + 61 ELSE 61 END AS col2
----
73

skipif mysql # not compatible
query I rowsort label-8985
SELECT 46 * 97 / - - CASE + ( + - 47 ) WHEN - 44 + - - 22 + - 53 + - 72 THEN + - NULLIF ( COUNT ( - 28 ), + 48 + - 2 * - ( - 89 ) + + + 53 - 78 ) * 22 + 66 WHEN COUNT ( * ) + + 37 * + 8 + 97 * + COUNT ( * ) THEN AVG ( DISTINCT + - 58 ) * + 61 ELSE 61 END AS col2
----
73

query I rowsort
SELECT 20 - - 47 + 64 + - 18 AS col0
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT DISTINCT - + MAX( DISTINCT 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-8987
SELECT DISTINCT - + MAX ( DISTINCT 72 )
----
-72

query I rowsort
SELECT - 47 * - 4 AS col1
----
188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8989
SELECT 65 - + CASE - + 64 WHEN + 15 THEN NULL WHEN + - 49 + + + 20 + 54 * + CAST( NULL AS SIGNED ) * + 50 THEN 71 ELSE + - ( - - ( + + COUNT( * ) ) ) END * - + 1 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-8989
SELECT 65 - + CASE - + 64 WHEN + 15 THEN NULL WHEN + - 49 + + + 20 + 54 * + CAST ( NULL AS INTEGER ) * + 50 THEN 71 ELSE + - ( - - ( + + COUNT ( * ) ) ) END * - + 1 AS col1
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8990
SELECT CASE - COALESCE ( - + 9, + - 80 * + COUNT( * ) + - + 9 - - - 40 + + 35 - 19 / + 38 ) WHEN + 91 THEN NULL WHEN - + ( - 68 ) * CAST( ( + 80 ) AS SIGNED ) * - - COUNT( DISTINCT - ( + 51 ) ) - 45 + + MIN( ALL - ( + + 57 ) ) + 7 * + - 57 * - - 63 + - ( NULLIF ( + + MAX( DISTINCT - 73 ), - 48 ) ) * + ( - 39 ) THEN MIN( - 75 ) * + ( 39 + 30 ) ELSE 16 END * - COUNT( - 14 * - NULLIF ( 27, + 43 * - 54 ) ) col0
----
-16

skipif mysql # not compatible
query I rowsort label-8990
SELECT CASE - COALESCE ( - + 9, + - 80 * + COUNT ( * ) + - + 9 - - - 40 + + 35 - 19 / + 38 ) WHEN + 91 THEN NULL WHEN - + ( - 68 ) * CAST ( ( + 80 ) AS INTEGER ) * - - COUNT ( DISTINCT - ( + 51 ) ) - 45 + + MIN ( ALL - ( + + 57 ) ) + 7 * + - 57 * - - 63 + - ( NULLIF ( + + MAX ( DISTINCT - 73 ), - 48 ) ) * + ( - 39 ) THEN MIN ( - 75 ) * + ( 39 + 30 ) ELSE 16 END * - COUNT ( - 14 * - NULLIF ( 27, + 43 * - 54 ) ) col0
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8991
SELECT 88 DIV + COALESCE ( + 83, - - COUNT( * ), - ( - 13 ) ) + COALESCE ( - - 66, - 53 * 60 * - + 34 - 38 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-8991
SELECT 88 / + COALESCE ( + 83, - - COUNT ( * ), - ( - 13 ) ) + COALESCE ( - - 66, - 53 * 60 * - + 34 - 38 ) AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT COUNT( * ) + + 94 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-8992
SELECT COUNT ( * ) + + 94 AS col0
----
95

query I rowsort
SELECT ALL - 2 + + 24
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-8994
SELECT ALL - - 63 DIV - ( - 14 ) col1
----
4

skipif mysql # not compatible
query I rowsort label-8994
SELECT ALL - - 63 / - ( - 14 ) col1
----
4

query I rowsort
SELECT ALL - 22 + - 88
----
-110

query I rowsort
SELECT 98 * - 97
----
-9506

query I rowsort
SELECT DISTINCT ( 42 ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT ALL + 47 + - CASE 21 WHEN 64 THEN + 54 * + 23 + - + COUNT( * ) + ( - 88 ) + + 93 * - - ( SUM( ALL - 23 ) ) WHEN 16 + - 91 * - - 25 - + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8998
SELECT ALL + 47 + - CASE 21 WHEN 64 THEN + 54 * + 23 + - + COUNT ( * ) + ( - 88 ) + + 93 * - - ( SUM ( ALL - 23 ) ) WHEN 16 + - 91 * - - 25 - + COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT - - COALESCE ( + 75, + + 40 )
----
75

query I rowsort
SELECT ALL + + 34 + + 33 col2
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9001
SELECT ALL - - ( + COALESCE ( - 79, ( - + 17 ) + + COUNT( * ) * - - 44 ) ) DIV ( 7 ) DIV - 78 col1
----
0

skipif mysql # not compatible
query I rowsort label-9001
SELECT ALL - - ( + COALESCE ( - 79, ( - + 17 ) + + COUNT ( * ) * - - 44 ) ) / ( 7 ) / - 78 col1
----
0

query I rowsort
SELECT DISTINCT + 20 + - 79 AS col0
----
-59

query I rowsort
SELECT 66 - 44 AS col1
----
22

query II rowsort
SELECT - 66 AS col2, - 74
----
-66
-74

query I rowsort
SELECT 76 - - 52
----
128

query II rowsort
SELECT 66 AS col0, 45 AS col2
----
66
45

onlyif mysql # aggregate syntax: 
query II rowsort label-9007
SELECT ALL 26 AS col1, + COUNT( * ) col0
----
26
1

skipif mysql # not compatible
query II rowsort label-9007
SELECT ALL 26 AS col1, + COUNT ( * ) col0
----
26
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT ALL + 76 + + 55 + - 94 + + 38 + - 2 * + 8 * - NULLIF ( ( + CASE + 73 WHEN + - 41 * + COUNT( * ) THEN NULL ELSE - COUNT( * ) END ), + COUNT( * ) * + 92 ) + - - ( - 49 ) * + 6 * - 35 AS col0
----
10349

skipif mysql # not compatible
query I rowsort label-9008
SELECT ALL + 76 + + 55 + - 94 + + 38 + - 2 * + 8 * - NULLIF ( ( + CASE + 73 WHEN + - 41 * + COUNT ( * ) THEN NULL ELSE - COUNT ( * ) END ), + COUNT ( * ) * + 92 ) + - - ( - 49 ) * + 6 * - 35 AS col0
----
10349

query I rowsort
SELECT ALL 89 - + 55 * - 87 AS col2
----
4874

query II rowsort
SELECT ALL 91 AS col0, 51 + - 62 AS col0
----
91
-11

query I rowsort
SELECT 94 + + - 88 col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT COUNT( * ) + + + COUNT( - 19 ) + + - 46
----
-44

skipif mysql # not compatible
query I rowsort label-9012
SELECT COUNT ( * ) + + + COUNT ( - 19 ) + + - 46
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT COUNT( - - 78 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9013
SELECT COUNT ( - - 78 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9014
SELECT ALL 29 DIV ( + 32 )
----
0

skipif mysql # not compatible
query I rowsort label-9014
SELECT ALL 29 / ( + 32 )
----
0

query I rowsort
SELECT 77 * - 14 + - 60 col0
----
-1138

query I rowsort
SELECT 46 * - NULLIF ( + + 98, - 83 * - 29 ) * - + 88 AS col1
----
396704

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9017
SELECT ALL 94 DIV ( - 45 ) * - + MAX( ( + 48 ) ) + 78
----
174

skipif mysql # not compatible
query I rowsort label-9017
SELECT ALL 94 / ( - 45 ) * - + MAX ( ( + 48 ) ) + 78
----
174

query II rowsort
SELECT ALL - 44 AS col2, - 93 * - - 17 AS col0
----
-44
-1581

query II rowsort
SELECT + 62, 57 col2
----
62
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9020
SELECT - NULLIF ( + COUNT( * ), + 61 ) * CAST( - + 17 AS SIGNED ) + + CAST( NULL AS SIGNED ) + - + 24 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9020
SELECT - NULLIF ( + COUNT ( * ), + 61 ) * CAST ( - + 17 AS INTEGER ) + + CAST ( NULL AS INTEGER ) + - + 24 col1
----
NULL

query I rowsort
SELECT 65 * + 94 AS col2
----
6110

query II rowsort
SELECT ALL - - 37 col0, 59 * + + 26
----
37
1534

query I rowsort
SELECT 11 * + 53
----
583

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9024
SELECT + CAST( NULL AS DECIMAL ) + + - ( COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9024
SELECT + CAST ( NULL AS REAL ) + + - ( COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - + 60 col2
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9026
SELECT + - 12 + - ( 87 ) + + - COUNT( * ) AS col0, + COUNT( * ) + - CAST( NULL AS SIGNED ) AS col0
----
-100
NULL

skipif mysql # not compatible
query II rowsort label-9026
SELECT + - 12 + - ( 87 ) + + - COUNT ( * ) AS col0, + COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col0
----
-100
NULL

query I rowsort
SELECT - COALESCE ( + CASE - 87 WHEN + 32 * + 91 - + 33 * + 74 THEN - 49 ELSE + - NULLIF ( + 45, 55 ) END, - - 78 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT ALL + + MIN( + 93 )
----
93

skipif mysql # not compatible
query I rowsort label-9028
SELECT ALL + + MIN ( + 93 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT + - 96 * 52 + + - COUNT( * ) - + 91 * + COUNT( ALL - + 57 ) + 90 * - 23 - - + 64
----
-7090

skipif mysql # not compatible
query I rowsort label-9029
SELECT + - 96 * 52 + + - COUNT ( * ) - + 91 * + COUNT ( ALL - + 57 ) + 90 * - 23 - - + 64
----
-7090

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT ALL - - 99 + - COUNT( * ) * - 57
----
156

skipif mysql # not compatible
query I rowsort label-9030
SELECT ALL - - 99 + - COUNT ( * ) * - 57
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT ALL + 82 * COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-9031
SELECT ALL + 82 * COUNT ( * )
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9032
SELECT - NULLIF ( - - 99, - CASE - - 67 WHEN CAST( - 23 AS SIGNED ) + - + 52 * - 43 THEN 41 WHEN - + CAST( + 23 AS SIGNED ) * 5 - - 85 * ( MIN( DISTINCT + CAST( NULL AS SIGNED ) ) ) THEN + - ( - 78 ) ELSE 79 * + + 81 END ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-9032
SELECT - NULLIF ( - - 99, - CASE - - 67 WHEN CAST ( - 23 AS INTEGER ) + - + 52 * - 43 THEN 41 WHEN - + CAST ( + 23 AS INTEGER ) * 5 - - 85 * ( MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) THEN + - ( - 78 ) ELSE 79 * + + 81 END ) AS col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT DISTINCT - + COUNT( - 54 ) * 73
----
-73

skipif mysql # not compatible
query I rowsort label-9033
SELECT DISTINCT - + COUNT ( - 54 ) * 73
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT ALL + - ( - COUNT( * ) ) + + MAX( 37 )
----
38

skipif mysql # not compatible
query I rowsort label-9034
SELECT ALL + - ( - COUNT ( * ) ) + + MAX ( 37 )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9035
SELECT + COUNT( ALL - CAST( NULL AS SIGNED ) ) * 61 * - 43 * - 80 - 8 + 1 + COUNT( * ) * - 87 col2
----
-94

skipif mysql # not compatible
query I rowsort label-9035
SELECT + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) * 61 * - 43 * - 80 - 8 + 1 + COUNT ( * ) * - 87 col2
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-9036
SELECT - 9 AS col1, COUNT( * )
----
-9
1

skipif mysql # not compatible
query II rowsort label-9036
SELECT - 9 AS col1, COUNT ( * )
----
-9
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT ALL - COUNT( * ) + + MAX( 54 )
----
53

skipif mysql # not compatible
query I rowsort label-9037
SELECT ALL - COUNT ( * ) + + MAX ( 54 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT - 55 - + 8 * - SUM( 1 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-9038
SELECT - 55 - + 8 * - SUM ( 1 ) AS col1
----
-47

query I rowsort
SELECT - ( - 44 ) + + 93 + - 65 * 93
----
-5908

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9040
SELECT ALL COALESCE ( + 79, - - COALESCE ( - 31, - + 37 * - - 96 * - 67 * + 9 * - 31, - + COUNT( * ) * 17 * COUNT( * ) DIV + + 44 ) )
----
79

skipif mysql # not compatible
query I rowsort label-9040
SELECT ALL COALESCE ( + 79, - - COALESCE ( - 31, - + 37 * - - 96 * - 67 * + 9 * - 31, - + COUNT ( * ) * 17 * COUNT ( * ) / + + 44 ) )
----
79

query I rowsort
SELECT DISTINCT CASE + 34 WHEN + 17 THEN - - 26 * - ( + - 92 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT DISTINCT + 90 - COUNT( * ) + - 44 * + 88
----
-3783

skipif mysql # not compatible
query I rowsort label-9042
SELECT DISTINCT + 90 - COUNT ( * ) + - 44 * + 88
----
-3783

onlyif mysql # DIV for integer division: 
query I rowsort label-9043
SELECT DISTINCT - 99 DIV + 63
----
-1

skipif mysql # not compatible
query I rowsort label-9043
SELECT DISTINCT - 99 / + 63
----
-1

query I rowsort
SELECT ALL ( 58 ) AS col1
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9045
SELECT - 95 + CAST( COUNT( * ) AS SIGNED ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9045
SELECT - 95 + CAST ( COUNT ( * ) AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9046
SELECT ALL - COUNT( * ) DIV + - 38
----
0

skipif mysql # not compatible
query I rowsort label-9046
SELECT ALL - COUNT ( * ) / + - 38
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT - SUM( - ( 95 ) ) * + 55 + + + 18 * - 97
----
3479

skipif mysql # not compatible
query I rowsort label-9047
SELECT - SUM ( - ( 95 ) ) * + 55 + + + 18 * - 97
----
3479

query I rowsort
SELECT - 59 * 6 AS col0
----
-354

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT + 24 * COUNT( * ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-9049
SELECT + 24 * COUNT ( * ) AS col2
----
24

query I rowsort
SELECT ALL - 82 * - 74
----
6068

query I rowsort
SELECT DISTINCT + ( + - 97 ) - + 39 AS col0
----
-136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9052
SELECT ALL - ( - COUNT( + 4 ) ) * - CASE 27 WHEN SUM( + + 9 ) THEN - MAX( - - 31 ) ELSE CASE - - 80 WHEN + NULLIF ( + 23, 44 + + - 2 ) * + 23 THEN + + 31 WHEN - - ( + 20 ) + + 42 - + - 60 / 43 + - ( - 6 ) - - - CASE + 87 WHEN - CAST( NULL AS SIGNED ) + - CAST( - 20 AS DECIMAL ) * 6 + - - COUNT( DISTINCT 51 ) + - 15 / 38 THEN - 62 ELSE NULL END THEN 73 END END * + COALESCE ( - COUNT( * ) - - 61, + 58 - 69, 95 / 49 + + ( ( - COUNT( * ) ) + + 91 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9052
SELECT ALL - ( - COUNT ( + 4 ) ) * - CASE 27 WHEN SUM ( + + 9 ) THEN - MAX ( - - 31 ) ELSE CASE - - 80 WHEN + NULLIF ( + 23, 44 + + - 2 ) * + 23 THEN + + 31 WHEN - - ( + 20 ) + + 42 - + - 60 / 43 + - ( - 6 ) - - - CASE + 87 WHEN - CAST ( NULL AS INTEGER ) + - CAST ( - 20 AS REAL ) * 6 + - - COUNT ( DISTINCT 51 ) + - 15 / 38 THEN - 62 ELSE NULL END THEN 73 END END * + COALESCE ( - COUNT ( * ) - - 61, + 58 - 69, 95 / 49 + + ( ( - COUNT ( * ) ) + + 91 ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9053
SELECT - + 7 * - 75 + - - CAST( - + CASE + MIN( + 57 ) WHEN NULLIF ( - ( - 69 ), - 31 * 11 + + - CAST( NULL AS SIGNED ) ) THEN + + 77 / - + 72 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9053
SELECT - + 7 * - 75 + - - CAST ( - + CASE + MIN ( + 57 ) WHEN NULLIF ( - ( - 69 ), - 31 * 11 + + - CAST ( NULL AS INTEGER ) ) THEN + + 77 / - + 72 END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT DISTINCT + COUNT( * ) * + 61 + + 44 - 7 * + 44 + 92 - 30 AS col2
----
-141

skipif mysql # not compatible
query I rowsort label-9054
SELECT DISTINCT + COUNT ( * ) * + 61 + + 44 - 7 * + 44 + 92 - 30 AS col2
----
-141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9055
SELECT + - COALESCE ( MIN( DISTINCT - - 41 ), - + COUNT( * ) ) DIV + 56
----
0

skipif mysql # not compatible
query I rowsort label-9055
SELECT + - COALESCE ( MIN ( DISTINCT - - 41 ), - + COUNT ( * ) ) / + 56
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT - + 57 - - + 13 + - 9 * + MAX( - 37 )
----
289

skipif mysql # not compatible
query I rowsort label-9056
SELECT - + 57 - - + 13 + - 9 * + MAX ( - 37 )
----
289

onlyif mysql # DIV for integer division: 
query II rowsort label-9057
SELECT ALL + ( + 72 ) AS col0, + 4 + 13 DIV - + 63 AS col0
----
72
4

skipif mysql # not compatible
query II rowsort label-9057
SELECT ALL + ( + 72 ) AS col0, + 4 + 13 / - + 63 AS col0
----
72
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9058
SELECT DISTINCT - - COUNT( * ) * 72 + - 72 + - COALESCE ( - 65, - SUM( + 51 ), + + COALESCE ( + 29, + + ( + + 35 ) + CAST( - 51 AS SIGNED ) + ( - 59 ) + + 9, - + 73 ) * + CASE 64 WHEN + 0 * - - COUNT( * ) + - 49 THEN 51 ELSE - + 40 END * + 40 + - + 8 * + COUNT( * ) + + ( + 98 ) + + CAST( - 50 AS SIGNED ) + - 42 * + 39 ) * 23 + - 25 AS col1
----
1470

skipif mysql # not compatible
query I rowsort label-9058
SELECT DISTINCT - - COUNT ( * ) * 72 + - 72 + - COALESCE ( - 65, - SUM ( + 51 ), + + COALESCE ( + 29, + + ( + + 35 ) + CAST ( - 51 AS INTEGER ) + ( - 59 ) + + 9, - + 73 ) * + CASE 64 WHEN + 0 * - - COUNT ( * ) + - 49 THEN 51 ELSE - + 40 END * + 40 + - + 8 * + COUNT ( * ) + + ( + 98 ) + + CAST ( - 50 AS INTEGER ) + - 42 * + 39 ) * 23 + - 25 AS col1
----
1470

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT ALL - 72 * + MAX( DISTINCT - 4 )
----
288

skipif mysql # not compatible
query I rowsort label-9059
SELECT ALL - 72 * + MAX ( DISTINCT - 4 )
----
288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9060
SELECT DISTINCT 9 * + CAST( COUNT( * ) AS SIGNED ) + SUM( - 15 ) + - 93
----
-99

skipif mysql # not compatible
query I rowsort label-9060
SELECT DISTINCT 9 * + CAST ( COUNT ( * ) AS INTEGER ) + SUM ( - 15 ) + - 93
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-9061
SELECT DISTINCT COUNT( * ) * - COUNT( * ), - 0 AS col2
----
-1
0

skipif mysql # not compatible
query II rowsort label-9061
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ), - 0 AS col2
----
-1
0

query II rowsort
SELECT + 59 * 0, + 85 AS col2
----
0
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9063
SELECT ALL NULLIF ( - COUNT( * ), 22 ) * + 98 DIV + 20
----
-4

skipif mysql # not compatible
query I rowsort label-9063
SELECT ALL NULLIF ( - COUNT ( * ), 22 ) * + 98 / + 20
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT DISTINCT 17 * 12 + - + COUNT( * ) * 7 AS col2
----
197

skipif mysql # not compatible
query I rowsort label-9064
SELECT DISTINCT 17 * 12 + - + COUNT ( * ) * 7 AS col2
----
197

query I rowsort
SELECT ALL + 56 * 35 + - - 36 AS col1
----
1996

query I rowsort
SELECT + 25 * + 35
----
875

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9067
SELECT DISTINCT 73 DIV - COUNT( * ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-9067
SELECT DISTINCT 73 / - COUNT ( * ) AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT SUM( + - 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-9068
SELECT SUM ( + - 10 )
----
-10

query I rowsort
SELECT DISTINCT 19 * + 89 col2
----
1691

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT + COUNT( * ) + + + 6 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-9070
SELECT + COUNT ( * ) + + + 6 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT - 66 * COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-9071
SELECT - 66 * COUNT ( * )
----
-66

query II rowsort
SELECT 29 AS col2, 95 + - 81 * - 47
----
29
3902

query I rowsort
SELECT - 0 * - 33
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT DISTINCT MIN( DISTINCT + 40 )
----
40

skipif mysql # not compatible
query I rowsort label-9074
SELECT DISTINCT MIN ( DISTINCT + 40 )
----
40

query I rowsort
SELECT ALL 18 * - 36
----
-648

onlyif mysql # DIV for integer division: 
query I rowsort label-9076
SELECT - 30 DIV + 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9076
SELECT - 30 / + 71 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9077
SELECT ALL CAST( 54 AS SIGNED ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-9077
SELECT ALL CAST ( 54 AS INTEGER ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT ALL COALESCE ( + + 15, - COUNT( * ) + - 18 )
----
15

skipif mysql # not compatible
query I rowsort label-9078
SELECT ALL COALESCE ( + + 15, - COUNT ( * ) + - 18 )
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-9079
SELECT ALL + 51 DIV 11
----
4

skipif mysql # not compatible
query I rowsort label-9079
SELECT ALL + 51 / 11
----
4

query I rowsort
SELECT - 82 - 41
----
-123

query I rowsort
SELECT ALL + 42 * + + 8 AS col0
----
336

query I rowsort
SELECT + 52 + - 59 AS col0
----
-7

query I rowsort
SELECT - 58 + + 60
----
2

query I rowsort
SELECT - 76 * 69 AS col0
----
-5244

query I rowsort
SELECT - 40 + - - 73 AS col2
----
33

query I rowsort
SELECT ALL + + 32 + - 98 AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT DISTINCT + - NULLIF ( + + MAX( DISTINCT 30 ), - + 28 )
----
-30

skipif mysql # not compatible
query I rowsort label-9087
SELECT DISTINCT + - NULLIF ( + + MAX ( DISTINCT 30 ), - + 28 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT ALL - 76 * - COALESCE ( + - 10, COUNT( * ) + COUNT( * ) * MIN( DISTINCT 97 ) ) AS col1
----
-760

skipif mysql # not compatible
query I rowsort label-9088
SELECT ALL - 76 * - COALESCE ( + - 10, COUNT ( * ) + COUNT ( * ) * MIN ( DISTINCT 97 ) ) AS col1
----
-760

query I rowsort
SELECT 81 * + 39 * + 16 AS col1
----
50544

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT DISTINCT - - NULLIF ( 67, + 18 + - COUNT( * ) ) + + ( - - 71 )
----
138

skipif mysql # not compatible
query I rowsort label-9090
SELECT DISTINCT - - NULLIF ( 67, + 18 + - COUNT ( * ) ) + + ( - - 71 )
----
138

query I rowsort
SELECT 43 + + - 82
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-9092
SELECT ALL 60 + + 84 + - 83 AS col1, + 23 + + 9 * - - SUM( DISTINCT - 79 )
----
61
-688

skipif mysql # not compatible
query II rowsort label-9092
SELECT ALL 60 + + 84 + - 83 AS col1, + 23 + + 9 * - - SUM ( DISTINCT - 79 )
----
61
-688

query II rowsort
SELECT + 47 AS col1, + 35 + - 79 AS col2
----
47
-44

query I rowsort
SELECT ALL - - 28 * 34 * - 99
----
-94248

query I rowsort
SELECT ALL ( + - 16 ) + - 22
----
-38

query II rowsort
SELECT DISTINCT - 91 col2, 52 * 90
----
-91
4680

query I rowsort
SELECT DISTINCT - - 17 col2
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9098
SELECT 22 * + 32 * + ( + - CAST( NULL AS SIGNED ) ) * + 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9098
SELECT 22 * + 32 * + ( + - CAST ( NULL AS INTEGER ) ) * + 83 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT SUM( DISTINCT + 30 ) * + 75 * 69 + 38
----
155288

skipif mysql # not compatible
query I rowsort label-9099
SELECT SUM ( DISTINCT + 30 ) * + 75 * 69 + 38
----
155288

query I rowsort
SELECT + + ( - 60 ) AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT COALESCE ( - + 19, COALESCE ( 78, - 40 * - 1 - + 45 ) * + ( - COUNT( * ) ) * - 91 * - 36 ) + - - 13 * - 99 * + + COALESCE ( - SUM( + - ( 83 ) ), - 7 + - + COUNT( * ) )
----
-106840

skipif mysql # not compatible
query I rowsort label-9101
SELECT COALESCE ( - + 19, COALESCE ( 78, - 40 * - 1 - + 45 ) * + ( - COUNT ( * ) ) * - 91 * - 36 ) + - - 13 * - 99 * + + COALESCE ( - SUM ( + - ( 83 ) ), - 7 + - + COUNT ( * ) )
----
-106840

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT ALL + 90 - MIN( ALL + 42 )
----
48

skipif mysql # not compatible
query I rowsort label-9102
SELECT ALL + 90 - MIN ( ALL + 42 )
----
48

query II rowsort
SELECT + 32, + 40 AS col1
----
32
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9104
SELECT 30 + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9104
SELECT 30 + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9105
SELECT + CAST( 65 AS SIGNED ) * + 77
----
5005

skipif mysql # not compatible
query I rowsort label-9105
SELECT + CAST ( 65 AS INTEGER ) * + 77
----
5005

onlyif mysql # aggregate syntax: 
query II rowsort label-9106
SELECT ALL COUNT( ALL + 87 ) * + 62 * - 91, 64 AS col1
----
-5642
64

skipif mysql # not compatible
query II rowsort label-9106
SELECT ALL COUNT ( ALL + 87 ) * + 62 * - 91, 64 AS col1
----
-5642
64

query I rowsort
SELECT - 32 + - + 55 + 74 * - 32 * + + 43 AS col0
----
-101911

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT ALL + COUNT( * ) * + ( - + 56 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-9108
SELECT ALL + COUNT ( * ) * + ( - + 56 ) AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT DISTINCT COUNT( * ) * - 67 AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-9109
SELECT DISTINCT COUNT ( * ) * - 67 AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT 54 * + + 50 + + 58 + - 11 + + NULLIF ( 70, + + COUNT( * ) ) AS col0
----
2817

skipif mysql # not compatible
query I rowsort label-9110
SELECT 54 * + + 50 + + 58 + - 11 + + NULLIF ( 70, + + COUNT ( * ) ) AS col0
----
2817

query I rowsort
SELECT 10 + - 85 AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT COUNT( * ) + + 15 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-9112
SELECT COUNT ( * ) + + 15 AS col0
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9113
SELECT ALL CAST( NULL AS SIGNED ) / - 16 / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9113
SELECT ALL CAST ( NULL AS INTEGER ) / - 16 / + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT COUNT( * ) * + 55 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-9114
SELECT COUNT ( * ) * + 55 AS col2
----
55

query I rowsort
SELECT 55 + - 16 AS col2
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9116
SELECT 64 + + 1, CAST( NULL AS SIGNED ) col2
----
65
NULL

skipif mysql # not compatible
query II rowsort label-9116
SELECT 64 + + 1, CAST ( NULL AS INTEGER ) col2
----
65
NULL

query I rowsort
SELECT DISTINCT 99 * + 67 * + 90 AS col1
----
596970

onlyif mysql # DIV for integer division: 
query II rowsort label-9118
SELECT 74 * 27, + 69 DIV 30 AS col0
----
1998
2

skipif mysql # not compatible
query II rowsort label-9118
SELECT 74 * 27, + 69 / 30 AS col0
----
1998
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9119
SELECT 19 * - CASE + 76 WHEN 30 - + SUM( + - 69 ) + - + 79 + + 81 + - 40 * CAST( NULL AS DECIMAL ) * - 28 * + 19 - 32 * + 54 + COUNT( * ) + + 18 / 96 * - 52 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9119
SELECT 19 * - CASE + 76 WHEN 30 - + SUM ( + - 69 ) + - + 79 + + 81 + - 40 * CAST ( NULL AS REAL ) * - 28 * + 19 - 32 * + 54 + COUNT ( * ) + + 18 / 96 * - 52 THEN COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9120
SELECT DISTINCT + 88 + - - 47 - + 25 - + + CAST( 49 AS SIGNED ) col0
----
61

skipif mysql # not compatible
query I rowsort label-9120
SELECT DISTINCT + 88 + - - 47 - + 25 - + + CAST ( 49 AS INTEGER ) col0
----
61

query II rowsort
SELECT DISTINCT - 77 * 47 * + ( 14 ) AS col0, 42
----
-50666
42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9122
SELECT - 5 DIV - - NULLIF ( + 54, 78 + - 48 + + 19 * + 97 * + 70 * CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9122
SELECT - 5 / - - NULLIF ( + 54, 78 + - 48 + + 19 * + 97 * + 70 * CAST ( NULL AS INTEGER ) ) AS col1
----
0

query I rowsort
SELECT + 14 * + - 92 AS col2
----
-1288

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT ALL 88 + - 89 - - - 29 + 38 - - 72 * - 16 * - COUNT( + 36 )
----
1160

skipif mysql # not compatible
query I rowsort label-9124
SELECT ALL 88 + - 89 - - - 29 + 38 - - 72 * - 16 * - COUNT ( + 36 )
----
1160

query I rowsort
SELECT DISTINCT - + 75 - - + 11
----
-64

query I rowsort
SELECT 65 + 93 * - - 14 - + 32 AS col0
----
1335

onlyif mysql # DIV for integer division: 
query I rowsort label-9127
SELECT DISTINCT + - 62 * 23 DIV + + 36
----
-39

skipif mysql # not compatible
query I rowsort label-9127
SELECT DISTINCT + - 62 * 23 / + + 36
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT - 7 - + ( + COUNT( * ) ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-9128
SELECT - 7 - + ( + COUNT ( * ) ) AS col2
----
-8

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9129
SELECT 57 DIV - CAST( 97 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9129
SELECT 57 / - CAST ( 97 AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9130
SELECT ALL + - NULLIF ( + COUNT( * ), - 40 * + 50 ) - + COUNT( * ) DIV - + 6
----
-1

skipif mysql # not compatible
query I rowsort label-9130
SELECT ALL + - NULLIF ( + COUNT ( * ), - 40 * + 50 ) - + COUNT ( * ) / - + 6
----
-1

query I rowsort
SELECT DISTINCT + + 58 * 27 * - + 64
----
-100224

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT 14 * + - COUNT( * ) * ( - 83 ) AS col0
----
1162

skipif mysql # not compatible
query I rowsort label-9132
SELECT 14 * + - COUNT ( * ) * ( - 83 ) AS col0
----
1162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9133
SELECT ALL - CASE CAST( + NULLIF ( - MAX( DISTINCT 33 ), - 76 * + 46 * - 66 * 52 ) AS SIGNED ) WHEN + COUNT( * ) THEN NULL ELSE - - 33 + - 45 + - + 28 * + 6 END
----
180

skipif mysql # not compatible
query I rowsort label-9133
SELECT ALL - CASE CAST ( + NULLIF ( - MAX ( DISTINCT 33 ), - 76 * + 46 * - 66 * 52 ) AS INTEGER ) WHEN + COUNT ( * ) THEN NULL ELSE - - 33 + - 45 + - + 28 * + 6 END
----
180

query I rowsort
SELECT 4 * 60
----
240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9135
SELECT ALL - CAST( - 14 AS SIGNED ) col2
----
14

skipif mysql # not compatible
query I rowsort label-9135
SELECT ALL - CAST ( - 14 AS INTEGER ) col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT ALL MIN( DISTINCT + 10 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-9136
SELECT ALL MIN ( DISTINCT + 10 ) AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT ALL 1 + + COUNT( * ) * - 68 * + 1 * - - 46
----
-3127

skipif mysql # not compatible
query I rowsort label-9137
SELECT ALL 1 + + COUNT ( * ) * - 68 * + 1 * - - 46
----
-3127

query I rowsort
SELECT DISTINCT 18 + - ( - 78 )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9139
SELECT - MIN( ( CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9139
SELECT - MIN ( ( CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9140
SELECT COUNT( * ) + + SUM( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9140
SELECT COUNT ( * ) + + SUM ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT ( 66 ) * + - COUNT( * ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-9141
SELECT ( 66 ) * + - COUNT ( * ) AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT MAX( + 96 ) * SUM( 98 ) * - - 79 + + 21
----
743253

skipif mysql # not compatible
query I rowsort label-9142
SELECT MAX ( + 96 ) * SUM ( 98 ) * - - 79 + + 21
----
743253

query I rowsort
SELECT 35 + 78 AS col1
----
113

query II rowsort
SELECT ALL 17 + 82 + - 26, 53 + + 71 + - ( - + ( - 33 ) ) AS col0
----
73
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT + 23 + - COUNT( * ) + + 38 col1
----
60

skipif mysql # not compatible
query I rowsort label-9145
SELECT + 23 + - COUNT ( * ) + + 38 col1
----
60

query I rowsort
SELECT + 29 - 67 AS col1
----
-38

query I rowsort
SELECT DISTINCT ( + 10 ) AS col2
----
10

query I rowsort
SELECT ALL - 84 + - 88
----
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT + CASE + 16 WHEN + 18 THEN 3 + 87 + + SUM( + ( + 54 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9149
SELECT + CASE + 16 WHEN + 18 THEN 3 + 87 + + SUM ( + ( + 54 ) ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9150
SELECT - COALESCE ( - 11, - 8 * - 99 + + 39 - + + MIN( - 65 ) + + 98 + 76 * - 72 * - 30 * + 24 DIV - + 31, - 11 - MIN( ALL + 71 ) ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-9150
SELECT - COALESCE ( - 11, - 8 * - 99 + + 39 - + + MIN ( - 65 ) + + 98 + 76 * - 72 * - 30 * + 24 / - + 31, - 11 - MIN ( ALL + 71 ) ) AS col2
----
11

query I rowsort
SELECT + + 29 + + + 34 * - - 43 AS col1
----
1491

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9152
SELECT ALL MAX( ALL - 34 ) - + 62 + + 15 + + CASE - SUM( - CAST( + 41 AS SIGNED ) ) WHEN + + 86 THEN - 85 * 89 * 64 + + 85 + - 83 / + 23 * 89 WHEN + + 9 * 5 * 27 + COUNT( * ) / 6 / + ( + 7 ) THEN NULL END * - 91 * - 87 + + 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9152
SELECT ALL MAX ( ALL - 34 ) - + 62 + + 15 + + CASE - SUM ( - CAST ( + 41 AS INTEGER ) ) WHEN + + 86 THEN - 85 * 89 * 64 + + 85 + - 83 / + 23 * 89 WHEN + + 9 * 5 * 27 + COUNT ( * ) / 6 / + ( + 7 ) THEN NULL END * - 91 * - 87 + + 88 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + ( - + 65 ) * + + ( 16 )
----
-1040

query I rowsort
SELECT + 78 * 41
----
3198

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT - COUNT( * ) * + 11 + - - 95 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-9155
SELECT - COUNT ( * ) * + 11 + - - 95 AS col2
----
84

query II rowsort
SELECT ALL + - 22 col2, + 94 - - 37 AS col2
----
-22
131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9157
SELECT + 5 + - CAST( 12 AS SIGNED ) + 28 * - 18 / - CASE WHEN NOT - 92 IS NOT NULL THEN - - 41 + 85 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9157
SELECT + 5 + - CAST ( 12 AS INTEGER ) + 28 * - 18 / - CASE WHEN NOT - 92 IS NOT NULL THEN - - 41 + 85 END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9158
SELECT DISTINCT + - CASE + ( - 51 ) WHEN + NULLIF ( - COUNT( * ), - 73 + + 53 ) * - 78 - - 85 THEN - + CAST( - - 93 AS SIGNED ) WHEN + 37 * + 33 * + + NULLIF ( + 38, - + 51 * + + 37 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9158
SELECT DISTINCT + - CASE + ( - 51 ) WHEN + NULLIF ( - COUNT ( * ), - 73 + + 53 ) * - 78 - - 85 THEN - + CAST ( - - 93 AS INTEGER ) WHEN + 37 * + 33 * + + NULLIF ( + 38, - + 51 * + + 37 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT ALL + 72 * + MAX( 58 )
----
4176

skipif mysql # not compatible
query I rowsort label-9159
SELECT ALL + 72 * + MAX ( 58 )
----
4176

onlyif mysql # aggregate syntax: 
query II rowsort label-9160
SELECT ALL + 62 AS col0, 5 + 16 - - COUNT( * ) + 10 + - ( + - 74 ) + + 95 * 38 + 58 AS col2
----
62
3774

skipif mysql # not compatible
query II rowsort label-9160
SELECT ALL + 62 AS col0, 5 + 16 - - COUNT ( * ) + 10 + - ( + - 74 ) + + 95 * 38 + 58 AS col2
----
62
3774

query I rowsort
SELECT + - ( + 75 ) AS col1
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-9162
SELECT - 85 * 50 + - 57 DIV - 33 AS col1
----
-4249

skipif mysql # not compatible
query I rowsort label-9162
SELECT - 85 * 50 + - 57 / - 33 AS col1
----
-4249

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT - 50 * - CASE + + 46 WHEN + 63 THEN NULL WHEN + 6 * ( COALESCE ( 90, - 23 + - + COUNT( * ) + 8, - 94 * 90 ) ) + - 38 * - - 46 THEN NULL ELSE - 49 END + - MAX( + 74 ) * - 38 col0
----
362

skipif mysql # not compatible
query I rowsort label-9163
SELECT - 50 * - CASE + + 46 WHEN + 63 THEN NULL WHEN + 6 * ( COALESCE ( 90, - 23 + - + COUNT ( * ) + 8, - 94 * 90 ) ) + - 38 * - - 46 THEN NULL ELSE - 49 END + - MAX ( + 74 ) * - 38 col0
----
362

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9164
SELECT - + 28 * + + CAST( - ( + - 97 ) AS SIGNED ) + + 46 * + MIN( - 80 ) AS col2
----
-6396

skipif mysql # not compatible
query I rowsort label-9164
SELECT - + 28 * + + CAST ( - ( + - 97 ) AS INTEGER ) + + 46 * + MIN ( - 80 ) AS col2
----
-6396

query II rowsort
SELECT + 63, - 3 AS col1
----
63
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9166
SELECT - 25 DIV - 56 * + 67
----
0

skipif mysql # not compatible
query I rowsort label-9166
SELECT - 25 / - 56 * + 67
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9167
SELECT ALL - 12 * CASE - CASE - 41 WHEN - - CAST( NULL AS SIGNED ) * + 91 + - + 23 * 1 + - 20 THEN + COUNT( * ) / + 72 * 58 ELSE - - 67 * 52 + + 54 + + 14 * + 11 + - + 94 + + + 69 * 47 END WHEN + 68 * + COUNT( * ) THEN + ( + - 31 ) / + - COUNT( * ) END / + 8 * 46 + + AVG ( - + 13 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9167
SELECT ALL - 12 * CASE - CASE - 41 WHEN - - CAST ( NULL AS INTEGER ) * + 91 + - + 23 * 1 + - 20 THEN + COUNT ( * ) / + 72 * 58 ELSE - - 67 * 52 + + 54 + + 14 * + 11 + - + 94 + + + 69 * 47 END WHEN + 68 * + COUNT ( * ) THEN + ( + - 31 ) / + - COUNT ( * ) END / + 8 * 46 + + AVG ( - + 13 ) col0
----
NULL

query I rowsort
SELECT - 37 + 66 col2
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9169
SELECT DISTINCT - CAST( - - COALESCE ( + - COUNT( * ), + 0, + + COUNT( * ) ) AS SIGNED ) * NULLIF ( SUM( + ( + 40 ) ), - 0 / - + ( - + COALESCE ( + + 94, + - 78, - - 21 ) ) * 99 + NULLIF ( COUNT( * ), + 9 ) - - 17 * - 81 * ( + NULLIF ( - + ( 52 ), + COUNT( * ) + + 63 ) ) + ( 45 ) ) + - - 2 + - 90 * - ( + 18 )
----
1662

skipif mysql # not compatible
query I rowsort label-9169
SELECT DISTINCT - CAST ( - - COALESCE ( + - COUNT ( * ), + 0, + + COUNT ( * ) ) AS INTEGER ) * NULLIF ( SUM ( + ( + 40 ) ), - 0 / - + ( - + COALESCE ( + + 94, + - 78, - - 21 ) ) * 99 + NULLIF ( COUNT ( * ), + 9 ) - - 17 * - 81 * ( + NULLIF ( - + ( 52 ), + COUNT ( * ) + + 63 ) ) + ( 45 ) ) + - - 2 + - 90 * - ( + 18 )
----
1662

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT DISTINCT + MAX( + + 24 )
----
24

skipif mysql # not compatible
query I rowsort label-9170
SELECT DISTINCT + MAX ( + + 24 )
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-9171
SELECT COUNT( * ) AS col0, 78 AS col1
----
1
78

skipif mysql # not compatible
query II rowsort label-9171
SELECT COUNT ( * ) AS col0, 78 AS col1
----
1
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9172
SELECT ALL COALESCE ( - + 87, - 37 * 87 + CASE 68 WHEN - CAST( + 11 AS DECIMAL ) * ( - 12 ) - 54 * + ( - 86 ) / + + CASE WHEN ( NULL ) IN ( 59 ) THEN - 9 - - + 51 END THEN NULL WHEN - 52 THEN 40 END - + 42 + - 24 * + + 74 ) * - + MIN( 30 ) * - 69 * 4 + + - 91 + + MIN( ALL - 43 ) + - NULLIF ( - + COALESCE ( + CAST( NULL AS SIGNED ), + + NULLIF ( + - 94, - ( - 29 ) / + 46 + - 66 ), + 74 * ( + 81 ) ), - COUNT( * ) * CAST( NULL AS SIGNED ) ) * - AVG ( ALL ( - CAST( NULL AS DECIMAL ) ) / 24 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9172
SELECT ALL COALESCE ( - + 87, - 37 * 87 + CASE 68 WHEN - CAST ( + 11 AS REAL ) * ( - 12 ) - 54 * + ( - 86 ) / + + CASE WHEN ( NULL ) IN ( 59 ) THEN - 9 - - + 51 END THEN NULL WHEN - 52 THEN 40 END - + 42 + - 24 * + + 74 ) * - + MIN ( 30 ) * - 69 * 4 + + - 91 + + MIN ( ALL - 43 ) + - NULLIF ( - + COALESCE ( + CAST ( NULL AS INTEGER ), + + NULLIF ( + - 94, - ( - 29 ) / + 46 + - 66 ), + 74 * ( + 81 ) ), - COUNT ( * ) * CAST ( NULL AS INTEGER ) ) * - AVG ( ALL ( - CAST ( NULL AS REAL ) ) / 24 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT - 59 + + - ( + + COUNT( * ) ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-9173
SELECT - 59 + + - ( + + COUNT ( * ) ) AS col0
----
-60

query II rowsort
SELECT - 42, 57 AS col2
----
-42
57

query I rowsort
SELECT DISTINCT ( 17 ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT - COUNT( * ) * 49 AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-9176
SELECT - COUNT ( * ) * 49 AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT - SUM( DISTINCT + - ( + 93 ) )
----
93

skipif mysql # not compatible
query I rowsort label-9177
SELECT - SUM ( DISTINCT + - ( + 93 ) )
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-9178
SELECT COUNT( * ) AS col1, - 78 AS col2
----
1
-78

skipif mysql # not compatible
query II rowsort label-9178
SELECT COUNT ( * ) AS col1, - 78 AS col2
----
1
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT + 72 * - 75 + + + COUNT( * )
----
-5399

skipif mysql # not compatible
query I rowsort label-9179
SELECT + 72 * - 75 + + + COUNT ( * )
----
-5399

query I rowsort
SELECT ALL COALESCE ( 59, - 39 )
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9181
SELECT - 17 * - 29 * - - 4 * - COALESCE ( 33, - COUNT( * ) * 59 - - 62 - + 97, + + CAST( + ( + 93 ) AS SIGNED ) ) * - 23 + - 87 * - + CAST( NULL AS SIGNED ) * - - 98 + + COUNT( - + 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9181
SELECT - 17 * - 29 * - - 4 * - COALESCE ( 33, - COUNT ( * ) * 59 - - 62 - + 97, + + CAST ( + ( + 93 ) AS INTEGER ) ) * - 23 + - 87 * - + CAST ( NULL AS INTEGER ) * - - 98 + + COUNT ( - + 78 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT - SUM( ALL + 87 ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-9182
SELECT - SUM ( ALL + 87 ) AS col2
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9183
SELECT ALL + CAST( 66 AS SIGNED ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-9183
SELECT ALL + CAST ( 66 AS INTEGER ) AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT DISTINCT - 55 * - - MIN( + + 15 )
----
-825

skipif mysql # not compatible
query I rowsort label-9184
SELECT DISTINCT - 55 * - - MIN ( + + 15 )
----
-825

query I rowsort
SELECT + COALESCE ( + + 40, - 62 ) AS col0
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-9186
SELECT + 96 DIV - 58 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9186
SELECT + 96 / - 58 AS col1
----
-1

query I rowsort
SELECT ALL - + 21 * - + 43 AS col2
----
903

query I rowsort
SELECT - 35 * 79 AS col0
----
-2765

query I rowsort
SELECT + + 67 * 77
----
5159

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT - COALESCE ( 19, - - 33 + + COUNT( * ) * - + 72 + - 64, - - 40, - - 90 ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-9190
SELECT - COALESCE ( 19, - - 33 + + COUNT ( * ) * - + 72 + - 64, - - 40, - - 90 ) AS col1
----
-19

query I rowsort
SELECT - - ( 26 )
----
26

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9192
SELECT + 98 / CAST( NULL AS DECIMAL ) + - - 16 + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-9192
SELECT + 98 / CAST ( NULL AS REAL ) + - - 16 + 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT ALL - SUM( + - 13 )
----
13

skipif mysql # not compatible
query I rowsort label-9193
SELECT ALL - SUM ( + - 13 )
----
13

query I rowsort
SELECT ALL ( - - 77 ) * - 12 AS col0
----
-924

query II rowsort
SELECT ALL + 77 AS col1, + 52 AS col0
----
77
52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9196
SELECT NULLIF ( - COUNT( * ), + 16 * - 61 / COUNT( * ) + + CAST( NULL AS DECIMAL ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9196
SELECT NULLIF ( - COUNT ( * ), + 16 * - 61 / COUNT ( * ) + + CAST ( NULL AS REAL ) ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9197
SELECT - - 10 DIV + 80 + 77 col0
----
77

skipif mysql # not compatible
query I rowsort label-9197
SELECT - - 10 / + 80 + 77 col0
----
77

query II rowsort
SELECT 20 AS col2, 16
----
20
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9199
SELECT ALL + 45 DIV + NULLIF ( + - 82, + + 81 + 89 DIV - CAST( + MIN( ALL - 36 ) AS SIGNED ) + + 87 ) + 37
----
37

skipif mysql # not compatible
query I rowsort label-9199
SELECT ALL + 45 / + NULLIF ( + - 82, + + 81 + 89 / - CAST ( + MIN ( ALL - 36 ) AS INTEGER ) + + 87 ) + 37
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT + NULLIF ( + COUNT( * ), 39 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9200
SELECT + NULLIF ( + COUNT ( * ), 39 ) AS col2
----
1

query I rowsort
SELECT + 96 - - + 10
----
106

query II rowsort
SELECT ALL 2 * + + 81, + 94 + - + 38 AS col1
----
162
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT ALL + COUNT( DISTINCT 21 )
----
1

skipif mysql # not compatible
query I rowsort label-9203
SELECT ALL + COUNT ( DISTINCT 21 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9204
SELECT DISTINCT + COALESCE ( + - 51, + - 75 * 37 + - 3 + - 35 * ( COUNT( * ) ) ) DIV ( - + 94 ) * - 21 + + 5 AS col2, + COUNT( * )
----
5
1

skipif mysql # not compatible
query II rowsort label-9204
SELECT DISTINCT + COALESCE ( + - 51, + - 75 * 37 + - 3 + - 35 * ( COUNT ( * ) ) ) / ( - + 94 ) * - 21 + + 5 AS col2, + COUNT ( * )
----
5
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9205
SELECT - 83 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9205
SELECT - 83 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT DISTINCT + MIN( 30 ) * - 86 + 63 - + ( + + 12 ) + - + 66 + - 94
----
-2689

skipif mysql # not compatible
query I rowsort label-9206
SELECT DISTINCT + MIN ( 30 ) * - 86 + 63 - + ( + + 12 ) + - + 66 + - 94
----
-2689

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT ALL + MIN( ALL - 52 ) col2
----
-52

skipif mysql # not compatible
query I rowsort label-9207
SELECT ALL + MIN ( ALL - 52 ) col2
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-9208
SELECT ( - 57 ) AS col2, 43 - - - NULLIF ( + 52, + NULLIF ( COALESCE ( + - 80, - - 86 ), - NULLIF ( - 19, - 89 / 27 * - + 0 + COUNT( * ) ) / 97 + - 66 + 44 ) )
----
-57
-9

skipif mysql # not compatible
query II rowsort label-9208
SELECT ( - 57 ) AS col2, 43 - - - NULLIF ( + 52, + NULLIF ( COALESCE ( + - 80, - - 86 ), - NULLIF ( - 19, - 89 / 27 * - + 0 + COUNT ( * ) ) / 97 + - 66 + 44 ) )
----
-57
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9209
SELECT COUNT( * ) - - CAST( NULL AS SIGNED ) + - ( + 73 ) * 66 / - 96 * - 4 * 87 * - + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-9209
SELECT COUNT ( * ) - - CAST ( NULL AS INTEGER ) + - ( + 73 ) * 66 / - 96 * - 4 * 87 * - + 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT DISTINCT - ( + ( - COUNT( ALL - 98 ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9210
SELECT DISTINCT - ( + ( - COUNT ( ALL - 98 ) ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9211
SELECT DISTINCT - MIN( ALL 33 ) AS col1, NULLIF ( 41, + + 72 ) + - + ( + 45 ) + - 14 AS col2
----
-33
-18

skipif mysql # not compatible
query II rowsort label-9211
SELECT DISTINCT - MIN ( ALL 33 ) AS col1, NULLIF ( 41, + + 72 ) + - + ( + 45 ) + - 14 AS col2
----
-33
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT ALL - 33 * - + CASE 35 WHEN - 39 THEN 64 / ( + - MIN( ALL - - 68 ) ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9212
SELECT ALL - 33 * - + CASE 35 WHEN - 39 THEN 64 / ( + - MIN ( ALL - - 68 ) ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 40 - + - 72 AS col1
----
112

query I rowsort
SELECT ALL - AVG ( DISTINCT ( - 3 ) ) * - CASE WHEN NULL <= ( - 35 ) THEN 55 ELSE NULL END / 79 - + - 62 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9215
SELECT - ( - + COALESCE ( + COUNT( * ), - + ( + 51 ) ) ) + + - 1 + COUNT( * ) * 6 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-9215
SELECT - ( - + COALESCE ( + COUNT ( * ), - + ( + 51 ) ) ) + + - 1 + COUNT ( * ) * 6 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT - MIN( DISTINCT + 5 ) col1
----
-5

skipif mysql # not compatible
query I rowsort label-9216
SELECT - MIN ( DISTINCT + 5 ) col1
----
-5

query II rowsort
SELECT - COALESCE ( - 59, 72 ) AS col1, 36 AS col2
----
59
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT MIN( - + 55 ) col2
----
-55

skipif mysql # not compatible
query I rowsort label-9218
SELECT MIN ( - + 55 ) col2
----
-55

query I rowsort
SELECT NULLIF ( - 43, - - 18 ) * - + 23 * + 0 * - - 36 - ( + + 61 ) AS col1
----
-61

query II rowsort
SELECT DISTINCT + 83 * 19 AS col0, - 36
----
1577
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9221
SELECT - ( + COUNT( * ) ) + - ( 36 ) + + + CAST( + + 24 AS SIGNED ) + + - NULLIF ( + 53, - 43 ) * + 73 AS col2
----
-3882

skipif mysql # not compatible
query I rowsort label-9221
SELECT - ( + COUNT ( * ) ) + - ( 36 ) + + + CAST ( + + 24 AS INTEGER ) + + - NULLIF ( + 53, - 43 ) * + 73 AS col2
----
-3882

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT ALL - COALESCE ( + - CASE 97 WHEN + COUNT( 6 ) THEN 63 END, + - 11 )
----
11

skipif mysql # not compatible
query I rowsort label-9222
SELECT ALL - COALESCE ( + - CASE 97 WHEN + COUNT ( 6 ) THEN 63 END, + - 11 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT DISTINCT - COUNT( * ) * - + 94
----
94

skipif mysql # not compatible
query I rowsort label-9223
SELECT DISTINCT - COUNT ( * ) * - + 94
----
94

query I rowsort
SELECT - 23 + 55 AS col1
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9225
SELECT + COUNT( * ) DIV - 12
----
0

skipif mysql # not compatible
query I rowsort label-9225
SELECT + COUNT ( * ) / - 12
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT DISTINCT - COUNT( * ) * + NULLIF ( 80, + 92 ) * - 56
----
4480

skipif mysql # not compatible
query I rowsort label-9226
SELECT DISTINCT - COUNT ( * ) * + NULLIF ( 80, + 92 ) * - 56
----
4480

query I rowsort
SELECT ALL + 54 + - 32 * - 38 * - - 67 AS col1
----
81526

onlyif mysql # DIV for integer division: 
query I rowsort label-9228
SELECT DISTINCT ( + 94 ) DIV 13 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-9228
SELECT DISTINCT ( + 94 ) / 13 AS col0
----
7

query I rowsort
SELECT ALL 1 + + 69 AS col0
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9230
SELECT ALL 78 + + - 15 * + CAST( 14 AS SIGNED )
----
-132

skipif mysql # not compatible
query I rowsort label-9230
SELECT ALL 78 + + - 15 * + CAST ( 14 AS INTEGER )
----
-132

query II rowsort
SELECT 78, ( - 1 ) * 27 * + 26 col0
----
78
-702

onlyif mysql # aggregate syntax: 
query II rowsort label-9232
SELECT 39 * + 18 * + - COUNT( * ) AS col0, - 37 * NULLIF ( - - 36, - 58 ) + + - 46
----
-702
-1378

skipif mysql # not compatible
query II rowsort label-9232
SELECT 39 * + 18 * + - COUNT ( * ) AS col0, - 37 * NULLIF ( - - 36, - 58 ) + + - 46
----
-702
-1378

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9233
SELECT 45 + - 34 - 38 + - 81 AS col2, CAST( 37 AS SIGNED ) AS col0
----
-108
37

skipif mysql # not compatible
query II rowsort label-9233
SELECT 45 + - 34 - 38 + - 81 AS col2, CAST ( 37 AS INTEGER ) AS col0
----
-108
37

onlyif mysql # aggregate syntax: 
query II rowsort label-9234
SELECT + 47 col0, + CASE - 28 WHEN - 42 THEN - MAX( DISTINCT 63 ) WHEN + 35 + + 97 THEN NULL END / - + 2 + - 36
----
47
NULL

skipif mysql # not compatible
query II rowsort label-9234
SELECT + 47 col0, + CASE - 28 WHEN - 42 THEN - MAX ( DISTINCT 63 ) WHEN + 35 + + 97 THEN NULL END / - + 2 + - 36
----
47
NULL

query II rowsort
SELECT ALL - 35 AS col0, - 91 + - 48
----
-35
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT DISTINCT 99 * - COUNT( ALL 86 ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-9236
SELECT DISTINCT 99 * - COUNT ( ALL 86 ) AS col2
----
-99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9237
SELECT MIN( DISTINCT + + CAST( NULL AS DECIMAL ) ) * + 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9237
SELECT MIN ( DISTINCT + + CAST ( NULL AS REAL ) ) * + 73 AS col2
----
NULL

query I rowsort
SELECT 89 + - + 92
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT + COUNT( ALL + 56 ) * - 68 * + - ( 47 ) + - 88 + 65 col2
----
3173

skipif mysql # not compatible
query I rowsort label-9239
SELECT + COUNT ( ALL + 56 ) * - 68 * + - ( 47 ) + - 88 + 65 col2
----
3173

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT ALL COUNT( ALL 7 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9240
SELECT ALL COUNT ( ALL 7 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9241
SELECT 57 DIV 59 * - 88 - + 6 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-9241
SELECT 57 / 59 * - 88 - + 6 AS col1
----
-6

query I rowsort
SELECT 1 * + 79 + + 86
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT ALL + + MIN( 92 ) * - + 60 + - 97
----
-5617

skipif mysql # not compatible
query I rowsort label-9243
SELECT ALL + + MIN ( 92 ) * - + 60 + - 97
----
-5617

query II rowsort
SELECT + 67 * + 51 * - 35 * - 27, + 86 col0
----
3229065
86

onlyif mysql # DIV for integer division: 
query I rowsort label-9245
SELECT - + COALESCE ( - ( + 78 ), - + 13 * 99 DIV - - 59 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-9245
SELECT - + COALESCE ( - ( + 78 ), - + 13 * 99 / - - 59 ) AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT ALL - 20 + COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-9246
SELECT ALL - 20 + COUNT ( * )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT + CASE + + 61 WHEN + 27 * NULLIF ( COUNT( * ), + 33 ) * + ( 99 ) * + 26 + + 5 + + 76 THEN + COUNT( * ) * - AVG ( 45 ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9247
SELECT + CASE + + 61 WHEN + 27 * NULLIF ( COUNT ( * ), + 33 ) * + ( 99 ) * + 26 + + 5 + + 76 THEN + COUNT ( * ) * - AVG ( 45 ) END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT MAX( ALL - 89 ) * 36 - + COUNT( * )
----
-3205

skipif mysql # not compatible
query I rowsort label-9248
SELECT MAX ( ALL - 89 ) * 36 - + COUNT ( * )
----
-3205

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9249
SELECT 37 - - COALESCE ( + + 25, 55 - + - SUM( + 78 ) ) + - 34 + + CASE + 37 WHEN - + CAST( NULL AS SIGNED ) * 34 + + 72 + - - 31 + 80 * - 96 * + - ( - + 99 ) THEN NULL WHEN - - 73 THEN NULL ELSE COUNT( * ) - - 69 + SUM( ALL - + 81 ) END AS col2
----
17

skipif mysql # not compatible
query I rowsort label-9249
SELECT 37 - - COALESCE ( + + 25, 55 - + - SUM ( + 78 ) ) + - 34 + + CASE + 37 WHEN - + CAST ( NULL AS INTEGER ) * 34 + + 72 + - - 31 + 80 * - 96 * + - ( - + 99 ) THEN NULL WHEN - - 73 THEN NULL ELSE COUNT ( * ) - - 69 + SUM ( ALL - + 81 ) END AS col2
----
17

query II rowsort
SELECT - 69 AS col2, 73
----
-69
73

query I rowsort
SELECT DISTINCT + 10 + 30 + + 98 * + 80
----
7880

query I rowsort
SELECT 29 * - 16 AS col0
----
-464

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9253
SELECT ALL + + ( + - ( + + 42 ) ) + + + 57 + - COUNT( * ) DIV 62 * - 13
----
15

skipif mysql # not compatible
query I rowsort label-9253
SELECT ALL + + ( + - ( + + 42 ) ) + + + 57 + - COUNT ( * ) / 62 * - 13
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9254
SELECT DISTINCT + 23 + CASE 91 WHEN 71 THEN - 5 * 36 * - CAST( - + CASE + 76 WHEN - NULLIF ( 27, 66 + - 34 ) THEN + + SUM( DISTINCT + 36 ) END AS SIGNED ) + - 97 - + 63 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9254
SELECT DISTINCT + 23 + CASE 91 WHEN 71 THEN - 5 * 36 * - CAST ( - + CASE + 76 WHEN - NULLIF ( 27, 66 + - 34 ) THEN + + SUM ( DISTINCT + 36 ) END AS INTEGER ) + - 97 - + 63 END AS col2
----
NULL

query I rowsort
SELECT ALL - 68 + - + 25 col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT - 55 * - + COUNT( DISTINCT 92 ) + 11 + COUNT( * ) + - - 9 + + 71 * + MAX( - 31 ) AS col0
----
-2125

skipif mysql # not compatible
query I rowsort label-9256
SELECT - 55 * - + COUNT ( DISTINCT 92 ) + 11 + COUNT ( * ) + - - 9 + + 71 * + MAX ( - 31 ) AS col0
----
-2125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9257
SELECT COALESCE ( SUM( ALL + ( - ( + + 37 ) ) ), + 26 DIV - 93, 22 ) col0
----
-37

skipif mysql # not compatible
query I rowsort label-9257
SELECT COALESCE ( SUM ( ALL + ( - ( + + 37 ) ) ), + 26 / - 93, 22 ) col0
----
-37

query I rowsort
SELECT DISTINCT + 37 * 78 - - - 58 AS col0
----
2828

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT ALL 92 * + 81 - + + 52 + COUNT( * ) AS col2
----
7401

skipif mysql # not compatible
query I rowsort label-9259
SELECT ALL 92 * + 81 - + + 52 + COUNT ( * ) AS col2
----
7401

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9260
SELECT - COUNT( * ) * - + 15 DIV + + COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-9260
SELECT - COUNT ( * ) * - + 15 / + + COUNT ( * )
----
15

query I rowsort
SELECT + ( + ( 90 ) ) * 50 * 32 AS col1
----
144000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9262
SELECT NULLIF ( CAST( NULL AS SIGNED ), + 78 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9262
SELECT NULLIF ( CAST ( NULL AS INTEGER ), + 78 ) AS col2
----
NULL

query I rowsort
SELECT ALL - 60 * - - 36
----
-2160

query II rowsort
SELECT ALL + 27 * + - 22 - + ( + 4 ) AS col0, + 49 col1
----
-598
49

query I rowsort
SELECT + ( ( 35 ) ) * + 42 + 45 AS col0
----
1515

query I rowsort
SELECT ALL 47 * + 6 * - - 44 - 45 + + 96 * - 5 * - 6 * - 56
----
-148917

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT - 58 - COUNT( + NULLIF ( + 6, 15 ) ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-9267
SELECT - 58 - COUNT ( + NULLIF ( + 6, 15 ) ) AS col0
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-9268
SELECT - COUNT( * ) * + 49 AS col2, + MIN( DISTINCT 37 )
----
-49
37

skipif mysql # not compatible
query II rowsort label-9268
SELECT - COUNT ( * ) * + 49 AS col2, + MIN ( DISTINCT 37 )
----
-49
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT + ( + 24 ) * 78 - 81 + - - 28 - - MAX( + ( + NULLIF ( - 90, - - NULLIF ( - 27, - 73 ) ) ) ) * - 53 AS col2
----
6589

skipif mysql # not compatible
query I rowsort label-9269
SELECT + ( + 24 ) * 78 - 81 + - - 28 - - MAX ( + ( + NULLIF ( - 90, - - NULLIF ( - 27, - 73 ) ) ) ) * - 53 AS col2
----
6589

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT + COUNT( * ) - - + SUM( ALL + - 28 ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-9270
SELECT + COUNT ( * ) - - + SUM ( ALL + - 28 ) AS col0
----
-27

query II rowsort
SELECT + 42 * 9 * 18 * + - 74 AS col0, + 24 col1
----
-503496
24

query I rowsort
SELECT ALL + 5 + - 54 + ( 70 ) col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT + - NULLIF ( - 53, + 26 ) - + ( + 80 ) + + COUNT( * ) * 51 col2
----
24

skipif mysql # not compatible
query I rowsort label-9273
SELECT + - NULLIF ( - 53, + 26 ) - + ( + 80 ) + + COUNT ( * ) * 51 col2
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9274
SELECT ALL + 55 + - CAST( + 73 AS SIGNED )
----
-18

skipif mysql # not compatible
query I rowsort label-9274
SELECT ALL + 55 + - CAST ( + 73 AS INTEGER )
----
-18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9275
SELECT + + 49 + + + 11 + + CAST( NULL AS DECIMAL ) * - - 62 * 46
----
NULL

skipif mysql # not compatible
query I rowsort label-9275
SELECT + + 49 + + + 11 + + CAST ( NULL AS REAL ) * - - 62 * 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9276
SELECT + + 44 - - COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-9276
SELECT + + 44 - - COUNT ( * )
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-9277
SELECT - 5 DIV + 17 * + 15 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9277
SELECT - 5 / + 17 * + 15 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9278
SELECT + 45 + ( 89 ) * - - CAST( - - 69 AS SIGNED ) * 84
----
515889

skipif mysql # not compatible
query I rowsort label-9278
SELECT + 45 + ( 89 ) * - - CAST ( - - 69 AS INTEGER ) * 84
----
515889

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9279
SELECT ALL - CAST( - - NULLIF ( COUNT( * ), + - 4 ) AS SIGNED ) DIV - 90 + - 16
----
-16

skipif mysql # not compatible
query I rowsort label-9279
SELECT ALL - CAST ( - - NULLIF ( COUNT ( * ), + - 4 ) AS INTEGER ) / - 90 + - 16
----
-16

query II rowsort
SELECT DISTINCT + 61 + + 44 + - + 98 + - 38 AS col1, + 49 AS col0
----
-31
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT ALL + 3 + + 32 + ( 8 ) - - SUM( + 79 ) + - COUNT( * ) * + ( 17 ) * + - 56 + - COUNT( * )
----
1073

skipif mysql # not compatible
query I rowsort label-9281
SELECT ALL + 3 + + 32 + ( 8 ) - - SUM ( + 79 ) + - COUNT ( * ) * + ( 17 ) * + - 56 + - COUNT ( * )
----
1073

query I rowsort
SELECT ALL + 39 * - - ( 15 ) * + 85 * - + 50 AS col1
----
-2486250

onlyif mysql # aggregate syntax: 
query II rowsort label-9283
SELECT + 72 + - - 52 AS col2, + COUNT( * ) AS col1
----
124
1

skipif mysql # not compatible
query II rowsort label-9283
SELECT + 72 + - - 52 AS col2, + COUNT ( * ) AS col1
----
124
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9284
SELECT + - 17 * - - 89 DIV - + 87
----
17

skipif mysql # not compatible
query I rowsort label-9284
SELECT + - 17 * - - 89 / - + 87
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT + + COUNT( ALL - 34 ) + 37
----
38

skipif mysql # not compatible
query I rowsort label-9285
SELECT + + COUNT ( ALL - 34 ) + 37
----
38

query I rowsort
SELECT - ( - + 30 )
----
30

query II rowsort
SELECT 84 AS col0, 87 - - - 72 + - ( + ( + + 7 ) ) AS col1
----
84
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT - COUNT( * ) + + - 82
----
-83

skipif mysql # not compatible
query I rowsort label-9288
SELECT - COUNT ( * ) + + - 82
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9289
SELECT ALL + 37 - - 23 - + SUM( DISTINCT + + 61 ) + + COUNT( * ) * 33 + + 85 + - + 13 DIV 79 * - ( - + 23 ) col0
----
117

skipif mysql # not compatible
query I rowsort label-9289
SELECT ALL + 37 - - 23 - + SUM ( DISTINCT + + 61 ) + + COUNT ( * ) * 33 + + 85 + - + 13 / 79 * - ( - + 23 ) col0
----
117

query I rowsort
SELECT - 95 + + 83 col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT ALL + COUNT( + 14 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9291
SELECT ALL + COUNT ( + 14 ) AS col2
----
1

query I rowsort
SELECT DISTINCT + 92 * + 35
----
3220

query I rowsort
SELECT ALL + 74 * - 15
----
-1110

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT - ( - MAX( - + 31 ) ) * + 16 * + - NULLIF ( - COUNT( * ), COUNT( * ) + 8 - 68 ) AS col1
----
-496

skipif mysql # not compatible
query I rowsort label-9294
SELECT - ( - MAX ( - + 31 ) ) * + 16 * + - NULLIF ( - COUNT ( * ), COUNT ( * ) + 8 - 68 ) AS col1
----
-496

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9295
SELECT ALL + 2 DIV COUNT( * ) * + 18 * + + COUNT( * ) * + 5 * 80 col1
----
14400

skipif mysql # not compatible
query I rowsort label-9295
SELECT ALL + 2 / COUNT ( * ) * + 18 * + + COUNT ( * ) * + 5 * 80 col1
----
14400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9296
SELECT - CAST( COUNT( 49 ) AS SIGNED ) + - 77 col2
----
-78

skipif mysql # not compatible
query I rowsort label-9296
SELECT - CAST ( COUNT ( 49 ) AS INTEGER ) + - 77 col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT ALL + 75 * MIN( - 60 ) AS col1
----
-4500

skipif mysql # not compatible
query I rowsort label-9297
SELECT ALL + 75 * MIN ( - 60 ) AS col1
----
-4500

onlyif mysql # DIV for integer division: 
query I rowsort label-9298
SELECT - 17 DIV 76 * + - 16
----
0

skipif mysql # not compatible
query I rowsort label-9298
SELECT - 17 / 76 * + - 16
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT - 23 * - 50 * COUNT( * )
----
1150

skipif mysql # not compatible
query I rowsort label-9299
SELECT - 23 * - 50 * COUNT ( * )
----
1150

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT - 35 + COUNT( * ) - ( + + 27 ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-9300
SELECT - 35 + COUNT ( * ) - ( + + 27 ) AS col2
----
-61

query I rowsort
SELECT + 99 * 15 AS col2
----
1485

query I rowsort
SELECT ALL 55 * + 4 + + - NULLIF ( ( - 48 ), + + 72 + - 76 ) * - - 40
----
2140

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT 39 * COUNT( * ) * + 28 + + 60 + 49
----
1201

skipif mysql # not compatible
query I rowsort label-9303
SELECT 39 * COUNT ( * ) * + 28 + + 60 + 49
----
1201

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9304
SELECT ALL + - SUM( DISTINCT - 44 ) * + + 34 * + COALESCE ( 42, - 78 ) * - COUNT( * ) + + COUNT( CAST( NULL AS SIGNED ) )
----
-62832

skipif mysql # not compatible
query I rowsort label-9304
SELECT ALL + - SUM ( DISTINCT - 44 ) * + + 34 * + COALESCE ( 42, - 78 ) * - COUNT ( * ) + + COUNT ( CAST ( NULL AS INTEGER ) )
----
-62832

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT - + 64 * 49 + - - COUNT( * ) + + + 10
----
-3125

skipif mysql # not compatible
query I rowsort label-9305
SELECT - + 64 * 49 + - - COUNT ( * ) + + + 10
----
-3125

query II rowsort
SELECT + - 51 AS col0, 10 AS col1
----
-51
10

onlyif mysql # aggregate syntax: 
query II rowsort label-9307
SELECT ALL - 0 * - + 22 + + COUNT( * ) * + ( - 28 ) AS col0, + 14
----
-28
14

skipif mysql # not compatible
query II rowsort label-9307
SELECT ALL - 0 * - + 22 + + COUNT ( * ) * + ( - 28 ) AS col0, + 14
----
-28
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9308
SELECT CAST( NULL AS SIGNED ) * + + 20 + - - SUM( DISTINCT + 24 ) + + 69 * + 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9308
SELECT CAST ( NULL AS INTEGER ) * + + 20 + - - SUM ( DISTINCT + 24 ) + + 69 * + 11 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9309
SELECT DISTINCT CAST( - 87 AS SIGNED ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-9309
SELECT DISTINCT CAST ( - 87 AS INTEGER ) AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT + - 38 * CASE AVG ( - ( - 84 ) ) WHEN + - 45 * + - 61 - + + COUNT( * ) THEN NULL WHEN + COUNT( * ) * 43 - 65 THEN - - 22 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9310
SELECT + - 38 * CASE AVG ( - ( - 84 ) ) WHEN + - 45 * + - 61 - + + COUNT ( * ) THEN NULL WHEN + COUNT ( * ) * 43 - 65 THEN - - 22 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9311
SELECT ALL - 71 * + ( 77 ) + COUNT( * ) - + + 81
----
-5547

skipif mysql # not compatible
query I rowsort label-9311
SELECT ALL - 71 * + ( 77 ) + COUNT ( * ) - + + 81
----
-5547

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT ALL + + 25 * 57 * - 90 + - COUNT( * ) + 57 + 31 + + - 30 * - ( - 68 ) + - MAX( DISTINCT - 83 ) AS col1
----
-130120

skipif mysql # not compatible
query I rowsort label-9312
SELECT ALL + + 25 * 57 * - 90 + - COUNT ( * ) + 57 + 31 + + - 30 * - ( - 68 ) + - MAX ( DISTINCT - 83 ) AS col1
----
-130120

query I rowsort
SELECT + 78 * - ( + 71 ) AS col0
----
-5538

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9314
SELECT ALL CAST( - 56 AS SIGNED ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-9314
SELECT ALL CAST ( - 56 AS INTEGER ) AS col1
----
-56

query I rowsort
SELECT DISTINCT + 49 - + 91
----
-42

query I rowsort
SELECT 29 * 13 AS col1
----
377

onlyif mysql # aggregate syntax: 
query II rowsort label-9317
SELECT 65 * NULLIF ( ( COUNT( * ) ), 3 ) * + - 67 AS col1, + 39
----
-4355
39

skipif mysql # not compatible
query II rowsort label-9317
SELECT 65 * NULLIF ( ( COUNT ( * ) ), 3 ) * + - 67 AS col1, + 39
----
-4355
39

query I rowsort
SELECT ALL 78 * + + 45
----
3510

query I rowsort
SELECT ALL 89 - + - 78 AS col0
----
167

query I rowsort
SELECT 55 * - 65 AS col0
----
-3575

query I rowsort
SELECT DISTINCT - 60 * 91
----
-5460

query I rowsort
SELECT ALL + 6 * + - 62 * - + 55 * - + ( - NULLIF ( + + 19, - + 54 ) )
----
388740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9323
SELECT ( + + ( + NULLIF ( CASE - 69 WHEN - 82 - - CAST( - 47 AS SIGNED ) * - 49 THEN NULL WHEN + COALESCE ( COALESCE ( - AVG ( ALL - 51 ), CAST( + 64 AS SIGNED ), - - 10 / + 61 ), NULLIF ( - + ( + - 21 ), + - 70 / + MAX( 68 ) ) ) THEN 59 * + 80 END, 85 ) ) ) * - 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9323
SELECT ( + + ( + NULLIF ( CASE - 69 WHEN - 82 - - CAST ( - 47 AS INTEGER ) * - 49 THEN NULL WHEN + COALESCE ( COALESCE ( - AVG ( ALL - 51 ), CAST ( + 64 AS INTEGER ), - - 10 / + 61 ), NULLIF ( - + ( + - 21 ), + - 70 / + MAX ( 68 ) ) ) THEN 59 * + 80 END, 85 ) ) ) * - 70 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9324
SELECT ( - 12 ) DIV 43 DIV 18 * 88 + 32 - - 89 * + 51 * + - 89
----
-403939

skipif mysql # not compatible
query I rowsort label-9324
SELECT ( - 12 ) / 43 / 18 * 88 + 32 - - 89 * + 51 * + - 89
----
-403939

query I rowsort
SELECT ( + 45 ) * + 49 + + 54
----
2259

query I rowsort
SELECT 90 + + 11
----
101

query II rowsort
SELECT + 46 AS col2, + 13
----
46
13

query II rowsort
SELECT 91 col1, ( - 35 ) + - COALESCE ( + 82, COALESCE ( + 80, + 3 ), 25 + - 68 )
----
91
-117

query I rowsort
SELECT 79 * - 16
----
-1264

query I rowsort
SELECT ALL 17 + 71
----
88

query II rowsort
SELECT ALL - 18 AS col1, - 83 * 56 AS col0
----
-18
-4648

query II rowsort
SELECT DISTINCT 34 + - - 69 * COALESCE ( - 14, + + 71 * - 35 ) AS col0, - 83
----
-932
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-9333
SELECT ALL + ( - + 49 ) + - 28 + 8 + - 55 DIV - 66 * - 1
----
-69

skipif mysql # not compatible
query I rowsort label-9333
SELECT ALL + ( - + 49 ) + - 28 + 8 + - 55 / - 66 * - 1
----
-69

query I rowsort
SELECT ALL - 99 * - - 99
----
-9801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9335
SELECT ALL 94 + - COUNT( - + 91 ) * + 97 * - + NULLIF ( - 53, COUNT( ALL 12 ) * - - 67 - + 8 * - - 80 + + 59 * - + COUNT( * ) + COUNT( * ) ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9335
SELECT ALL 94 + - COUNT ( - + 91 ) * + 97 * - + NULLIF ( - 53, COUNT ( ALL 12 ) * - - 67 - + 8 * - - 80 + + 59 * - + COUNT ( * ) + COUNT ( * ) ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 33 * + 16 AS col1
----
-528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9337
SELECT DISTINCT - - NULLIF ( + + 60, + - ( - - 45 ) - + CAST( NULL AS SIGNED ) ) * SUM( - - COALESCE ( - 44, 74 ) ) AS col0
----
-2640

skipif mysql # not compatible
query I rowsort label-9337
SELECT DISTINCT - - NULLIF ( + + 60, + - ( - - 45 ) - + CAST ( NULL AS INTEGER ) ) * SUM ( - - COALESCE ( - 44, 74 ) ) AS col0
----
-2640

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT DISTINCT - + 17 + - SUM( + 33 ) * - 63 * - - MIN( DISTINCT + 63 ) * + 82 AS col0
----
10740097

skipif mysql # not compatible
query I rowsort label-9338
SELECT DISTINCT - + 17 + - SUM ( + 33 ) * - 63 * - - MIN ( DISTINCT + 63 ) * + 82 AS col0
----
10740097

query I rowsort
SELECT ALL + 97 + + 38 AS col2
----
135

query II rowsort
SELECT - 42 AS col2, - 9
----
-42
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9341
SELECT + 60 DIV - MAX( + 93 )
----
0

skipif mysql # not compatible
query I rowsort label-9341
SELECT + 60 / - MAX ( + 93 )
----
0

query I rowsort
SELECT DISTINCT - + 42 * - + 15 AS col0
----
630

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT + 84 * + COUNT( * ) + 6 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-9343
SELECT + 84 * + COUNT ( * ) + 6 AS col0
----
90

query I rowsort
SELECT ALL - - ( 4 ) - - + CASE - 14 WHEN - ( 46 ) THEN + - 60 ELSE 26 END
----
30

query I rowsort
SELECT ALL + 3 * + 92 * ( - 27 ) - ( 13 ) AS col2
----
-7465

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT DISTINCT - 45 * - - MIN( DISTINCT + - 49 )
----
2205

skipif mysql # not compatible
query I rowsort label-9346
SELECT DISTINCT - 45 * - - MIN ( DISTINCT + - 49 )
----
2205

query I rowsort
SELECT ALL + 81 - + 60 * - 19 AS col2
----
1221

onlyif mysql # aggregate syntax: 
query III rowsort label-9348
SELECT 37 AS col2, + 82 + + MAX( - 75 ) AS col2, - COUNT( * ) + - - 18 + 3 + - + 46 * COUNT( * ) * - 83 * + + 60
----
37
7
229100

skipif mysql # not compatible
query III rowsort label-9348
SELECT 37 AS col2, + 82 + + MAX ( - 75 ) AS col2, - COUNT ( * ) + - - 18 + 3 + - + 46 * COUNT ( * ) * - 83 * + + 60
----
37
7
229100

query I rowsort
SELECT 12 - + - 61 AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9350
SELECT 14 + + COUNT( * ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-9350
SELECT 14 + + COUNT ( * ) AS col2
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9351
SELECT - MAX( DISTINCT + + 61 ) - - 52 + + 60 + ( - SUM( - + 70 ) ) * COUNT( * ) + + 63 * 81 DIV + + 99 AS col1
----
172

skipif mysql # not compatible
query I rowsort label-9351
SELECT - MAX ( DISTINCT + + 61 ) - - 52 + + 60 + ( - SUM ( - + 70 ) ) * COUNT ( * ) + + 63 * 81 / + + 99 AS col1
----
172

query I rowsort
SELECT ALL - - 87 - + - 67 - + 97
----
57

query I rowsort
SELECT ( 13 ) * + 64
----
832

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT CASE CASE - 16 WHEN - + 93 THEN - CASE - + 37 WHEN + - COUNT( * ) / + + 43 - + COUNT( * ) THEN NULL ELSE + 33 + AVG ( DISTINCT + 80 ) END / + + 57 + - + 85 - + 57 WHEN + 35 THEN + + COUNT( * ) ELSE + 95 + - 78 END WHEN - MIN( ALL - + 66 ) * - 15 THEN + 56 / + - 5 * - 2 * + - ( + 28 ) END + - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-9354
SELECT CASE CASE - 16 WHEN - + 93 THEN - CASE - + 37 WHEN + - COUNT ( * ) / + + 43 - + COUNT ( * ) THEN NULL ELSE + 33 + AVG ( DISTINCT + 80 ) END / + + 57 + - + 85 - + 57 WHEN + 35 THEN + + COUNT ( * ) ELSE + 95 + - 78 END WHEN - MIN ( ALL - + 66 ) * - 15 THEN + 56 / + - 5 * - 2 * + - ( + 28 ) END + - 54
----
NULL

query II rowsort
SELECT - 44, - 81 AS col2
----
-44
-81

query II rowsort
SELECT DISTINCT 55 AS col2, + 10
----
55
10

query II rowsort
SELECT 39 + + - 90, 87 AS col0
----
-51
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT COUNT( * ) + - 81 + + COUNT( * ) + 73 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-9358
SELECT COUNT ( * ) + - 81 + + COUNT ( * ) + 73 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT DISTINCT - COUNT( * ) * + - 94
----
94

skipif mysql # not compatible
query I rowsort label-9359
SELECT DISTINCT - COUNT ( * ) * + - 94
----
94

query I rowsort
SELECT 58 + + 50 AS col1
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9361
SELECT 83 + NULLIF ( - 64, + - ( ( + CASE + - CASE + + 5 WHEN + + 90 THEN - + COUNT( * ) ELSE NULL END WHEN - - 33 + - - ( MAX( ALL - - 40 ) ) * + COUNT( * ) * + - ( - COUNT( DISTINCT - 39 ) ) + + NULLIF ( 96, - AVG ( ALL - ( + COALESCE ( - + 17, - 18, 29 ) ) ) + + 75 + CAST( NULL AS SIGNED ) ) + 98 * + SUM( + + ( 12 ) ) THEN - + 3 END ) ) * + 39 + CASE - + COUNT( - + 95 ) WHEN + 61 THEN + 51 ELSE + CAST( NULL AS SIGNED ) + + - COUNT( * ) + - 7 END + + COALESCE ( - 32, - 67 ) ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-9361
SELECT 83 + NULLIF ( - 64, + - ( ( + CASE + - CASE + + 5 WHEN + + 90 THEN - + COUNT ( * ) ELSE NULL END WHEN - - 33 + - - ( MAX ( ALL - - 40 ) ) * + COUNT ( * ) * + - ( - COUNT ( DISTINCT - 39 ) ) + + NULLIF ( 96, - AVG ( ALL - ( + COALESCE ( - + 17, - 18, 29 ) ) ) + + 75 + CAST ( NULL AS INTEGER ) ) + 98 * + SUM ( + + ( 12 ) ) THEN - + 3 END ) ) * + 39 + CASE - + COUNT ( - + 95 ) WHEN + 61 THEN + 51 ELSE + CAST ( NULL AS INTEGER ) + + - COUNT ( * ) + - 7 END + + COALESCE ( - 32, - 67 ) ) AS col2
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-9362
SELECT 54 DIV 36 col0
----
1

skipif mysql # not compatible
query I rowsort label-9362
SELECT 54 / 36 col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9363
SELECT 90 * NULLIF ( CAST( + NULLIF ( - - 99, + 74 ) AS SIGNED ), + - CASE + 21 WHEN - 3 / 34 THEN + 84 END * - 53 + 12 * + + 29 ) * - 19 AS col1, 67
----
-169290
67

skipif mysql # not compatible
query II rowsort label-9363
SELECT 90 * NULLIF ( CAST ( + NULLIF ( - - 99, + 74 ) AS INTEGER ), + - CASE + 21 WHEN - 3 / 34 THEN + 84 END * - 53 + 12 * + + 29 ) * - 19 AS col1, 67
----
-169290
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9364
SELECT ( - + COUNT( * ) ) + + - 56 * 12 + + 46 col0
----
-627

skipif mysql # not compatible
query I rowsort label-9364
SELECT ( - + COUNT ( * ) ) + + - 56 * 12 + + 46 col0
----
-627

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT - COUNT( - - 64 )
----
-1

skipif mysql # not compatible
query I rowsort label-9365
SELECT - COUNT ( - - 64 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT ALL COUNT( * ) + 5 - + - COUNT( * ) + + 42
----
49

skipif mysql # not compatible
query I rowsort label-9366
SELECT ALL COUNT ( * ) + 5 - + - COUNT ( * ) + + 42
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT 2 * COUNT( * ) * 72 + - + 96 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-9367
SELECT 2 * COUNT ( * ) * 72 + - + 96 AS col1
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-9368
SELECT DISTINCT 35 DIV + - ( 16 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-9368
SELECT DISTINCT 35 / + - ( 16 ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT ALL 41 * - SUM( ALL - ( + + 16 ) ) + - - COUNT( * ) * 35 + 3 AS col0
----
694

skipif mysql # not compatible
query I rowsort label-9369
SELECT ALL 41 * - SUM ( ALL - ( + + 16 ) ) + - - COUNT ( * ) * 35 + 3 AS col0
----
694

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT MIN( DISTINCT 25 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-9370
SELECT MIN ( DISTINCT 25 ) AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT DISTINCT 16 * - COUNT( * ) * 22 + - + 97
----
-449

skipif mysql # not compatible
query I rowsort label-9371
SELECT DISTINCT 16 * - COUNT ( * ) * 22 + - + 97
----
-449

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9372
SELECT DISTINCT + 99 * + 72 + + + CAST( NULL AS SIGNED ) * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9372
SELECT DISTINCT + 99 * + 72 + + + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9373
SELECT ALL - CASE - 10 WHEN ( - - NULLIF ( 58, - 59 * - 24 ) ) * - 9 THEN NULL ELSE + + 0 DIV - 46 * + - 44 - + + 31 + - 64 * + + 69 END
----
4447

skipif mysql # not compatible
query I rowsort label-9373
SELECT ALL - CASE - 10 WHEN ( - - NULLIF ( 58, - 59 * - 24 ) ) * - 9 THEN NULL ELSE + + 0 / - 46 * + - 44 - + + 31 + - 64 * + + 69 END
----
4447

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT + CASE + COUNT( * ) WHEN 7 * - ( - + 85 ) THEN - + 15 WHEN + COALESCE ( + 28, - COALESCE ( - COUNT( DISTINCT 93 ), + + 40 ) ) * + CASE + 23 WHEN - COUNT( * ) THEN NULL WHEN 24 THEN NULL ELSE + - SUM( + 56 ) END + + 76 THEN + ( - NULLIF ( + 33, - - 69 * + + 31 ) ) + + 99 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9374
SELECT + CASE + COUNT ( * ) WHEN 7 * - ( - + 85 ) THEN - + 15 WHEN + COALESCE ( + 28, - COALESCE ( - COUNT ( DISTINCT 93 ), + + 40 ) ) * + CASE + 23 WHEN - COUNT ( * ) THEN NULL WHEN 24 THEN NULL ELSE + - SUM ( + 56 ) END + + 76 THEN + ( - NULLIF ( + 33, - - 69 * + + 31 ) ) + + 99 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT + COALESCE ( - - 66, 93, + 33 + 95 ) * + 3 - + COUNT( - 21 ) + - ( + + 35 ) - - SUM( + 25 )
----
187

skipif mysql # not compatible
query I rowsort label-9375
SELECT + COALESCE ( - - 66, 93, + 33 + 95 ) * + 3 - + COUNT ( - 21 ) + - ( + + 35 ) - - SUM ( + 25 )
----
187

onlyif mysql # aggregate syntax: 
query II rowsort label-9376
SELECT DISTINCT - 94 * + ( + - 8 ) AS col2, MIN( + + 11 ) - - 40
----
752
51

skipif mysql # not compatible
query II rowsort label-9376
SELECT DISTINCT - 94 * + ( + - 8 ) AS col2, MIN ( + + 11 ) - - 40
----
752
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9377
SELECT - - 34 * + CAST( NULL AS SIGNED ) + - 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9377
SELECT - - 34 * + CAST ( NULL AS INTEGER ) + - 11 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9378
SELECT - CAST( - 39 AS SIGNED ) * - + CAST( - 0 AS SIGNED ) col2
----
0

skipif mysql # not compatible
query I rowsort label-9378
SELECT - CAST ( - 39 AS INTEGER ) * - + CAST ( - 0 AS INTEGER ) col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9379
SELECT + COALESCE ( - CAST( NULL AS SIGNED ), 27 * 9, 66 + + CASE + 1 WHEN - 8 + - CAST( NULL AS SIGNED ) + 98 + 33 * - - 47 * + 47 THEN NULL WHEN - 81 THEN - 9 * - 62 * + 65 * - 72 END - + 84 ) AS col0
----
243

skipif mysql # not compatible
query I rowsort label-9379
SELECT + COALESCE ( - CAST ( NULL AS INTEGER ), 27 * 9, 66 + + CASE + 1 WHEN - 8 + - CAST ( NULL AS INTEGER ) + 98 + 33 * - - 47 * + 47 THEN NULL WHEN - 81 THEN - 9 * - 62 * + 65 * - 72 END - + 84 ) AS col0
----
243

query I rowsort
SELECT - - 55 + + - 80 + 78 * - 31
----
-2443

onlyif mysql # aggregate syntax: 
query II rowsort label-9381
SELECT + 0 * 89 AS col1, + COUNT( DISTINCT + 94 ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-9381
SELECT + 0 * 89 AS col1, + COUNT ( DISTINCT + 94 ) AS col0
----
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9382
SELECT - - 11 * + + COALESCE ( + COUNT( * ), - 35 * + - 34 * - 16, 28 * 32 - - 57 ) DIV + ( + 88 ) DIV + NULLIF ( + - ( + - COUNT( * ) ), + 70 ) + - ( - - 58 ) - - 16 * 54 * - - 3 + + 0 + + 68 + - ( - 60 ) col0
----
2662

skipif mysql # not compatible
query I rowsort label-9382
SELECT - - 11 * + + COALESCE ( + COUNT ( * ), - 35 * + - 34 * - 16, 28 * 32 - - 57 ) / + ( + 88 ) / + NULLIF ( + - ( + - COUNT ( * ) ), + 70 ) + - ( - - 58 ) - - 16 * 54 * - - 3 + + 0 + + 68 + - ( - 60 ) col0
----
2662

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT + 81 * - 16 + - + 3 + - + ( COUNT( * ) ) + - 10 * - 95 + + COUNT( * ) + + - 67
----
-416

skipif mysql # not compatible
query I rowsort label-9383
SELECT + 81 * - 16 + - + 3 + - + ( COUNT ( * ) ) + - 10 * - 95 + + COUNT ( * ) + + - 67
----
-416

onlyif mysql # aggregate syntax: 
query II rowsort label-9384
SELECT ALL + COUNT( * ) * + - 25 * 99 AS col1, 2
----
-2475
2

skipif mysql # not compatible
query II rowsort label-9384
SELECT ALL + COUNT ( * ) * + - 25 * 99 AS col1, 2
----
-2475
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9385
SELECT - 97 DIV + - 7 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-9385
SELECT - 97 / + - 7 AS col0
----
13

query I rowsort
SELECT ALL + ( + - 3 )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9387
SELECT 14, - MIN( DISTINCT 54 ) / - + CAST( NULL AS SIGNED ) * - NULLIF ( + - 35, - 64 ) + - 45 AS col2
----
14
NULL

skipif mysql # not compatible
query II rowsort label-9387
SELECT 14, - MIN ( DISTINCT 54 ) / - + CAST ( NULL AS INTEGER ) * - NULLIF ( + - 35, - 64 ) + - 45 AS col2
----
14
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9388
SELECT ALL NULLIF ( - COUNT( * ), - COUNT( * ) ) AS col1, + 93 * - ( COUNT( * ) )
----
NULL
-93

skipif mysql # not compatible
query II rowsort label-9388
SELECT ALL NULLIF ( - COUNT ( * ), - COUNT ( * ) ) AS col1, + 93 * - ( COUNT ( * ) )
----
NULL
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT ALL + ( + COUNT( * ) ) * + 58 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-9389
SELECT ALL + ( + COUNT ( * ) ) * + 58 AS col1
----
58

query I rowsort
SELECT DISTINCT NULLIF ( + + 46, - - 53 )
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9391
SELECT DISTINCT + COUNT( * ) + AVG ( ALL CAST( 25 AS SIGNED ) ) + 30 + - AVG ( + 97 ) * - 49 * CAST( 92 AS SIGNED ) / + + 39 / - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9391
SELECT DISTINCT + COUNT ( * ) + AVG ( ALL CAST ( 25 AS INTEGER ) ) + 30 + - AVG ( + 97 ) * - 49 * CAST ( 92 AS INTEGER ) / + + 39 / - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT - COUNT( * ) * + 57 AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-9392
SELECT - COUNT ( * ) * + 57 AS col2
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9393
SELECT ALL + 43 DIV + - 46 * COUNT( ALL - 7 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9393
SELECT ALL + 43 / + - 46 * COUNT ( ALL - 7 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9394
SELECT DISTINCT NULLIF ( - 32, - + 41 * - + CAST( NULL AS SIGNED ) )
----
-32

skipif mysql # not compatible
query I rowsort label-9394
SELECT DISTINCT NULLIF ( - 32, - + 41 * - + CAST ( NULL AS INTEGER ) )
----
-32

query I rowsort
SELECT - 0 * + 61 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT ALL - 70 + MIN( ALL + - COALESCE ( 97, - + 65 ) ) - 13
----
-180

skipif mysql # not compatible
query I rowsort label-9396
SELECT ALL - 70 + MIN ( ALL + - COALESCE ( 97, - + 65 ) ) - 13
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT ALL + COUNT( * ) + + 61 col1
----
62

skipif mysql # not compatible
query I rowsort label-9397
SELECT ALL + COUNT ( * ) + + 61 col1
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-9398
SELECT - ( - 90 ) - COUNT( * ) - - 58 AS col0, - 38 * 54 AS col2
----
147
-2052

skipif mysql # not compatible
query II rowsort label-9398
SELECT - ( - 90 ) - COUNT ( * ) - - 58 AS col0, - 38 * 54 AS col2
----
147
-2052

onlyif mysql # aggregate syntax: 
query II rowsort label-9399
SELECT DISTINCT COUNT( * ), - 62 AS col0
----
1
-62

skipif mysql # not compatible
query II rowsort label-9399
SELECT DISTINCT COUNT ( * ), - 62 AS col0
----
1
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9400
SELECT - AVG ( + + 95 ) - - - ( 30 ) - + CASE + + 76 WHEN - ( - - COUNT( * ) ) * + COUNT( * ) THEN + 21 + + 6 + - 26 * - COUNT( * ) * + + 82 + - 32 * - CASE WHEN + 43 NOT IN ( + - CAST( - + CASE - + 3 WHEN - 30 / + COUNT( * ) + 80 + + ( - + 29 ) THEN NULL ELSE + ( 75 ) * - - COUNT( * ) - 1 - 84 END AS SIGNED ) ) THEN + CASE - + 72 WHEN - 64 THEN + 39 WHEN 99 * + 4 THEN NULL END - - 30 * 22 WHEN NOT ( NULL ) IS NOT NULL THEN NULLIF ( - 87, + 53 ) ELSE - 14 / 33 END END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9400
SELECT - AVG ( + + 95 ) - - - ( 30 ) - + CASE + + 76 WHEN - ( - - COUNT ( * ) ) * + COUNT ( * ) THEN + 21 + + 6 + - 26 * - COUNT ( * ) * + + 82 + - 32 * - CASE WHEN + 43 NOT IN ( + - CAST ( - + CASE - + 3 WHEN - 30 / + COUNT ( * ) + 80 + + ( - + 29 ) THEN NULL ELSE + ( 75 ) * - - COUNT ( * ) - 1 - 84 END AS INTEGER ) ) THEN + CASE - + 72 WHEN - 64 THEN + 39 WHEN 99 * + 4 THEN NULL END - - 30 * 22 WHEN NOT ( NULL ) IS NOT NULL THEN NULLIF ( - 87, + 53 ) ELSE - 14 / 33 END END + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9401
SELECT ALL - 71 + 48 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9401
SELECT ALL - 71 + 48 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT - COUNT( ALL + + 55 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-9402
SELECT - COUNT ( ALL + + 55 ) col2
----
-1

query II rowsort
SELECT ALL ( 76 ) + - 76, + 86 AS col2
----
0
86

query I rowsort
SELECT ALL + 44 * + 8 col0
----
352

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9405
SELECT - COUNT( * ) DIV + 16 * - + 48 + + 40 DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-9405
SELECT - COUNT ( * ) / + 16 * - + 48 + + 40 / 96
----
0

query I rowsort
SELECT + 16 - + NULLIF ( + 1, - 97 * - 47 + 15 )
----
15

query II rowsort
SELECT ALL + + 89 AS col1, ( + 70 )
----
89
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9408
SELECT - 73 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9408
SELECT - 73 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT 17, 58 * + 67 AS col0
----
17
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9410
SELECT DISTINCT + CAST( - + 89 AS SIGNED )
----
-89

skipif mysql # not compatible
query I rowsort label-9410
SELECT DISTINCT + CAST ( - + 89 AS INTEGER )
----
-89

query I rowsort
SELECT ALL 39 * - + 73
----
-2847

query I rowsort
SELECT + - 50 * - 2 col1
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-9413
SELECT ALL - 45 DIV + 31 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9413
SELECT ALL - 45 / + 31 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9414
SELECT DISTINCT - + COUNT( * ) * - 41 - - - 28 col2
----
13

skipif mysql # not compatible
query I rowsort label-9414
SELECT DISTINCT - + COUNT ( * ) * - 41 - - - 28 col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT + + NULLIF ( - + 72, + COUNT( ALL 95 ) + + - 16 )
----
-72

skipif mysql # not compatible
query I rowsort label-9415
SELECT + + NULLIF ( - + 72, + COUNT ( ALL 95 ) + + - 16 )
----
-72

query I rowsort
SELECT ALL - 64 * 46 + + 64
----
-2880

query II rowsort
SELECT DISTINCT + 93, + 23 AS col2
----
93
23

query I rowsort
SELECT ALL + 95 * - 92
----
-8740

onlyif mysql # aggregate syntax: 
query II rowsort label-9419
SELECT + 72 AS col0, + COUNT( DISTINCT + COALESCE ( 6, + 8 ) ) + - COALESCE ( + ( + + 14 ), + - MIN( - 6 ) * CASE + 41 WHEN COUNT( * ) THEN - 4 WHEN 22 THEN - + 92 * - COUNT( * ) + + MAX( 63 ) WHEN MAX( - 38 ) + 84 THEN - - 56 + + COUNT( * ) + 48 + + 2 - + 59 * + + COUNT( * ) ELSE NULL END )
----
72
-13

skipif mysql # not compatible
query II rowsort label-9419
SELECT + 72 AS col0, + COUNT ( DISTINCT + COALESCE ( 6, + 8 ) ) + - COALESCE ( + ( + + 14 ), + - MIN ( - 6 ) * CASE + 41 WHEN COUNT ( * ) THEN - 4 WHEN 22 THEN - + 92 * - COUNT ( * ) + + MAX ( 63 ) WHEN MAX ( - 38 ) + 84 THEN - - 56 + + COUNT ( * ) + 48 + + 2 - + 59 * + + COUNT ( * ) ELSE NULL END )
----
72
-13

query I rowsort
SELECT ALL - 20 * 92 AS col1
----
-1840

query I rowsort
SELECT DISTINCT + + 23 AS col1
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9422
SELECT + 73 AS col1, ( - CAST( - - CASE 45 WHEN COUNT( * ) + - - CAST( + 61 AS SIGNED ) THEN NULL WHEN - + 22 + 67 THEN + 76 * - 3 END AS SIGNED ) )
----
73
228

skipif mysql # not compatible
query II rowsort label-9422
SELECT + 73 AS col1, ( - CAST ( - - CASE 45 WHEN COUNT ( * ) + - - CAST ( + 61 AS INTEGER ) THEN NULL WHEN - + 22 + 67 THEN + 76 * - 3 END AS INTEGER ) )
----
73
228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9423
SELECT - - 43 * + + 5 * - 0 * + 34 + + - CAST( NULL AS SIGNED ) - 95 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9423
SELECT - - 43 * + + 5 * - 0 * + 34 + + - CAST ( NULL AS INTEGER ) - 95 AS col2
----
NULL

query I rowsort
SELECT ALL 85 * + + 42 * + 71 + + 47
----
253517

query I rowsort
SELECT + 25 + 6 + + + ( 19 ) col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT ALL + COUNT( * ) * + 44 + + 80 AS col0
----
124

skipif mysql # not compatible
query I rowsort label-9426
SELECT ALL + COUNT ( * ) * + 44 + + 80 AS col0
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT + COUNT( * ) * + 97
----
97

skipif mysql # not compatible
query I rowsort label-9427
SELECT + COUNT ( * ) * + 97
----
97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9428
SELECT ALL 78 * + 7 + - 90 + + CAST( + 50 AS SIGNED ) DIV + - 4 AS col1
----
444

skipif mysql # not compatible
query I rowsort label-9428
SELECT ALL 78 * + 7 + - 90 + + CAST ( + 50 AS INTEGER ) / + - 4 AS col1
----
444

query I rowsort
SELECT 47 * 3 - - ( 96 )
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT MAX( ALL - 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-9430
SELECT MAX ( ALL - 69 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT + COUNT( * ) + + 60
----
61

skipif mysql # not compatible
query I rowsort label-9431
SELECT + COUNT ( * ) + + 60
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT - ( - + COUNT( * ) ) + 62 col1
----
63

skipif mysql # not compatible
query I rowsort label-9432
SELECT - ( - + COUNT ( * ) ) + 62 col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9433
SELECT SUM( ALL 88 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-9433
SELECT SUM ( ALL 88 ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT ALL - MAX( 85 ) + - 74 - 29 * - 90 * - 44 * 66
----
-7579599

skipif mysql # not compatible
query I rowsort label-9434
SELECT ALL - MAX ( 85 ) + - 74 - 29 * - 90 * - 44 * 66
----
-7579599

query I rowsort
SELECT + 94 + + 14 AS col2
----
108

query I rowsort
SELECT DISTINCT 59 * - - 48 AS col2
----
2832

query I rowsort
SELECT DISTINCT 18 + - - 29
----
47

query I rowsort
SELECT ALL ( + ( + 6 ) )
----
6

query I rowsort
SELECT ALL 94 * - ( + 12 )
----
-1128

query II rowsort
SELECT ALL ( + 74 ) AS col1, - 55
----
74
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9441
SELECT + CAST( + - MIN( + 22 ) AS SIGNED ) + + 37
----
15

skipif mysql # not compatible
query I rowsort label-9441
SELECT + CAST ( + - MIN ( + 22 ) AS INTEGER ) + + 37
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT - COUNT( * ) * ( - 58 )
----
58

skipif mysql # not compatible
query I rowsort label-9442
SELECT - COUNT ( * ) * ( - 58 )
----
58

query I rowsort
SELECT - 17 + + + 66 AS col1
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9444
SELECT - 70 * + 91 + 95 * + + 82 / + COUNT( * ) * + 24 * NULLIF ( - CAST( NULL AS SIGNED ), + 3 * + - 31 * + 36 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9444
SELECT - 70 * + 91 + 95 * + + 82 / + COUNT ( * ) * + 24 * NULLIF ( - CAST ( NULL AS INTEGER ), + 3 * + - 31 * + 36 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9445
SELECT - + COUNT( * ) * 46 + - 18 + 57
----
-7

skipif mysql # not compatible
query I rowsort label-9445
SELECT - + COUNT ( * ) * 46 + - 18 + 57
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT DISTINCT 28 * 58 * - SUM( + 13 )
----
-21112

skipif mysql # not compatible
query I rowsort label-9446
SELECT DISTINCT 28 * 58 * - SUM ( + 13 )
----
-21112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9447
SELECT ALL + - COALESCE ( - 83, 27 DIV + 27, MAX( ALL - 80 ), 3 )
----
83

skipif mysql # not compatible
query I rowsort label-9447
SELECT ALL + - COALESCE ( - 83, 27 / + 27, MAX ( ALL - 80 ), 3 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT DISTINCT + + ( + 8 ) - - COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-9448
SELECT DISTINCT + + ( + 8 ) - - COUNT ( * )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT + 89 * 22 + + - SUM( ALL + + 87 )
----
1871

skipif mysql # not compatible
query I rowsort label-9449
SELECT + 89 * 22 + + - SUM ( ALL + + 87 )
----
1871

onlyif mysql # DIV for integer division: 
query I rowsort label-9450
SELECT - + 97 DIV + + 99 + - - 46
----
46

skipif mysql # not compatible
query I rowsort label-9450
SELECT - + 97 / + + 99 + - - 46
----
46

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9451
SELECT + 95 + + CAST( - - 19 AS DECIMAL ) - + - 46 + + 68 + - CAST( NULL AS SIGNED ) / 89 * - + 43 * + - 92 * - 56 * + - 60 / + 37 + - + 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9451
SELECT + 95 + + CAST ( - - 19 AS REAL ) - + - 46 + + 68 + - CAST ( NULL AS INTEGER ) / 89 * - + 43 * + - 92 * - 56 * + - 60 / + 37 + - + 30 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - ( + 48 )
----
-48

query I rowsort
SELECT DISTINCT - - 51 + + 18 AS col1
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9454
SELECT DISTINCT - + COUNT( * ) DIV - 30 * + 53
----
0

skipif mysql # not compatible
query I rowsort label-9454
SELECT DISTINCT - + COUNT ( * ) / - 30 * + 53
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9455
SELECT + 36 DIV 2 DIV CAST( + 99 AS SIGNED ) * + 68 + - 4 * - 7 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-9455
SELECT + 36 / 2 / CAST ( + 99 AS INTEGER ) * + 68 + - 4 * - 7 AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT ALL 60 * COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL 60 * COUNT ( * )
----
60

query I rowsort
SELECT DISTINCT 78 + + 60
----
138

query I rowsort
SELECT ALL 13 + 97 AS col1
----
110

query II rowsort
SELECT + 18 AS col1, COALESCE ( 93, 37 )
----
18
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9460
SELECT CASE 65 WHEN - - 34 * CAST( 32 AS SIGNED ) THEN NULL WHEN 83 THEN + + 94 WHEN 1 THEN NULL END * + - 99 * + - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-9460
SELECT CASE 65 WHEN - - 34 * CAST ( 32 AS INTEGER ) THEN NULL WHEN 83 THEN + + 94 WHEN 1 THEN NULL END * + - 99 * + - 3
----
NULL

query I rowsort
SELECT DISTINCT 18 + - + 93
----
-75

query I rowsort
SELECT ALL 77 + - 70 col2
----
7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9463
SELECT CAST( - - CAST( 91 AS DECIMAL ) AS SIGNED ) * - - 16 - + 2
----
1454

skipif mysql # not compatible
query I rowsort label-9463
SELECT CAST ( - - CAST ( 91 AS REAL ) AS INTEGER ) * - - 16 - + 2
----
1454

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9464
SELECT CAST( - 67 AS SIGNED ) * + + 56 * + + 24
----
-90048

skipif mysql # not compatible
query I rowsort label-9464
SELECT CAST ( - 67 AS INTEGER ) * + + 56 * + + 24
----
-90048

onlyif mysql # aggregate syntax: 
query III rowsort label-9465
SELECT DISTINCT ( - - 22 ) * 27 col1, - ( - COUNT( * ) ) + ( + - ( - 84 ) ) AS col0, - 35
----
594
85
-35

skipif mysql # not compatible
query III rowsort label-9465
SELECT DISTINCT ( - - 22 ) * 27 col1, - ( - COUNT ( * ) ) + ( + - ( - 84 ) ) AS col0, - 35
----
594
85
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT ALL MIN( - 58 ) - - 59
----
1

skipif mysql # not compatible
query I rowsort label-9466
SELECT ALL MIN ( - 58 ) - - 59
----
1

query I rowsort
SELECT 8 - + 1 * + + 13
----
-5

query I rowsort
SELECT 63 * + + 81 * - - 23
----
117369

onlyif mysql # aggregate syntax: 
query II rowsort label-9469
SELECT DISTINCT 33 * - - 8 * 85 AS col0, - 90 * - + COUNT( * )
----
22440
90

skipif mysql # not compatible
query II rowsort label-9469
SELECT DISTINCT 33 * - - 8 * 85 AS col0, - 90 * - + COUNT ( * )
----
22440
90

query I rowsort
SELECT ALL - 20 - + - 62 * + 52 AS col1
----
3204

query I rowsort
SELECT ( + 85 ) AS col0
----
85

onlyif mysql # DIV for integer division: 
query II rowsort label-9472
SELECT DISTINCT + 61 col1, - 65 DIV - + 63
----
61
1

skipif mysql # not compatible
query II rowsort label-9472
SELECT DISTINCT + 61 col1, - 65 / - + 63
----
61
1

query I rowsort
SELECT DISTINCT - ( 69 ) AS col1
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-9474
SELECT 35 DIV + - 72 col0
----
0

skipif mysql # not compatible
query I rowsort label-9474
SELECT 35 / + - 72 col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9475
SELECT + 27 * - CASE MAX( DISTINCT + 1 ) WHEN - + ( 36 ) * 17 THEN 39 + - - 28 * 45 ELSE NULL END col0, + 13
----
NULL
13

skipif mysql # not compatible
query II rowsort label-9475
SELECT + 27 * - CASE MAX ( DISTINCT + 1 ) WHEN - + ( 36 ) * 17 THEN 39 + - - 28 * 45 ELSE NULL END col0, + 13
----
NULL
13

onlyif mysql # DIV for integer division: 
query I rowsort label-9476
SELECT ALL - 62 DIV 9
----
-6

skipif mysql # not compatible
query I rowsort label-9476
SELECT ALL - 62 / 9
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-9477
SELECT ALL - - 1, COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-9477
SELECT ALL - - 1, COUNT ( * ) AS col0
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT ( ( - + 93 ) ) * MAX( ALL - 31 ) + ( - - 27 ) AS col1
----
2910

skipif mysql # not compatible
query I rowsort label-9478
SELECT ( ( - + 93 ) ) * MAX ( ALL - 31 ) + ( - - 27 ) AS col1
----
2910

query I rowsort
SELECT + 84 + - - 4 AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT DISTINCT + + COUNT( * ) + + ( + 4 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-9480
SELECT DISTINCT + + COUNT ( * ) + + ( + 4 ) AS col2
----
5

query I rowsort
SELECT ALL - - 49 + NULLIF ( 93, NULLIF ( + - ( + + 44 ), - 74 ) + + - 77 )
----
142

query I rowsort
SELECT 4 * - 2 AS col2
----
-8

query I rowsort
SELECT DISTINCT + + 36 * + - 9
----
-324

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT + - CASE + + 44 WHEN COUNT( * ) * + COUNT( * ) * 6 + - ( 39 ) / - + 56 THEN NULLIF ( + 66, + 83 ) / + 66 + - 32 WHEN + + 78 THEN + CASE + ( - 28 ) WHEN + + 89 THEN NULL ELSE + 58 END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9484
SELECT + - CASE + + 44 WHEN COUNT ( * ) * + COUNT ( * ) * 6 + - ( 39 ) / - + 56 THEN NULLIF ( + 66, + 83 ) / + 66 + - 32 WHEN + + 78 THEN + CASE + ( - 28 ) WHEN + + 89 THEN NULL ELSE + 58 END END AS col0
----
NULL

query I rowsort
SELECT ALL - 77 * - 3
----
231

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9486
SELECT 83 + + - 76 * - 57 DIV - COUNT( * ) AS col1
----
-4249

skipif mysql # not compatible
query I rowsort label-9486
SELECT 83 + + - 76 * - 57 / - COUNT ( * ) AS col1
----
-4249

query I rowsort
SELECT + 43 * + + 65 * + - 75 * - 90 AS col2
----
18866250

query I rowsort
SELECT ALL + 84 + - ( 98 ) AS col2
----
-14

query I rowsort
SELECT 64 - - - 3 + + - 7
----
54

query II rowsort
SELECT + 14, ( + 22 ) AS col1
----
14
22

query I rowsort
SELECT DISTINCT + 2 + ( 82 ) + + + 48 AS col1
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT ALL + 84 - + - COUNT( * ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-9492
SELECT ALL + 84 - + - COUNT ( * ) AS col1
----
85

query II rowsort
SELECT + 73 AS col1, + ( - 43 )
----
73
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT 92 + - 62 + SUM( + 12 ) * + 21 AS col0
----
282

skipif mysql # not compatible
query I rowsort label-9494
SELECT 92 + - 62 + SUM ( + 12 ) * + 21 AS col0
----
282

query I rowsort
SELECT 99 * - 32
----
-3168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9496
SELECT ALL - 12 / - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9496
SELECT ALL - 12 / - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9497
SELECT + 37 * 58 DIV + + 11 + - + 86
----
109

skipif mysql # not compatible
query I rowsort label-9497
SELECT + 37 * 58 / + + 11 + - + 86
----
109

onlyif mysql # aggregate syntax: 
query II rowsort label-9498
SELECT - 84 AS col2, 67 - - COUNT( * )
----
-84
68

skipif mysql # not compatible
query II rowsort label-9498
SELECT - 84 AS col2, 67 - - COUNT ( * )
----
-84
68

query I rowsort
SELECT 82 + 31 - + 59
----
54

query I rowsort
SELECT ALL 23 - 98 - 14 + + - 64 * + 56
----
-3673

query I rowsort
SELECT 89 * ( ( + 85 ) )
----
7565

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT COUNT( * ) * + 1
----
1

skipif mysql # not compatible
query I rowsort label-9502
SELECT COUNT ( * ) * + 1
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9503
SELECT CAST( NULL AS DECIMAL ) + + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-9503
SELECT CAST ( NULL AS REAL ) + + 68
----
NULL

query I rowsort
SELECT ALL ( - + 81 ) * + - 6 AS col1
----
486

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9505
SELECT CAST( NULL AS SIGNED ) * + 51 / 27 * - ( + 8 ) * 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9505
SELECT CAST ( NULL AS INTEGER ) * + 51 / 27 * - ( + 8 ) * 86 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 40 * + 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9507
SELECT ALL 50 AS col0, + 31 + COUNT( * ) AS col2
----
50
32

skipif mysql # not compatible
query II rowsort label-9507
SELECT ALL 50 AS col0, + 31 + COUNT ( * ) AS col2
----
50
32

onlyif mysql # aggregate syntax: 
query III rowsort label-9508
SELECT DISTINCT 52 AS col1, - 71 * - + 41 + - - 65, - COUNT( * ) AS col2
----
52
2976
-1

skipif mysql # not compatible
query III rowsort label-9508
SELECT DISTINCT 52 AS col1, - 71 * - + 41 + - - 65, - COUNT ( * ) AS col2
----
52
2976
-1

query I rowsort
SELECT - 66 + - - 27
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-9510
SELECT ALL 45 AS col0, COUNT( * )
----
45
1

skipif mysql # not compatible
query II rowsort label-9510
SELECT ALL 45 AS col0, COUNT ( * )
----
45
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT ALL + MIN( ALL + 96 )
----
96

skipif mysql # not compatible
query I rowsort label-9511
SELECT ALL + MIN ( ALL + 96 )
----
96

query II rowsort
SELECT + - 77 + - 68 - - - 92 + + + 16 AS col0, - 79
----
-221
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT + - 72 * - MAX( - - 71 ) * - 54 * 65 + + + 75 - + + 41
----
-17943086

skipif mysql # not compatible
query I rowsort label-9513
SELECT + - 72 * - MAX ( - - 71 ) * - 54 * 65 + + + 75 - + + 41
----
-17943086

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT ALL - 33 * MAX( - 82 )
----
2706

skipif mysql # not compatible
query I rowsort label-9514
SELECT ALL - 33 * MAX ( - 82 )
----
2706

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9515
SELECT - - 22 / - CAST( - + ( + 61 ) AS SIGNED ) + - CASE - 17 WHEN + 9 THEN + - 88 END + 81 * + + 46 + - COUNT( * ) AS col0, - 96
----
NULL
-96

skipif mysql # not compatible
query II rowsort label-9515
SELECT - - 22 / - CAST ( - + ( + 61 ) AS INTEGER ) + - CASE - 17 WHEN + 9 THEN + - 88 END + 81 * + + 46 + - COUNT ( * ) AS col0, - 96
----
NULL
-96

query I rowsort
SELECT + 77 + - - 9
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT ALL + 17 * - 26 + - - 6 + - 40 + COUNT( * ) AS col0
----
-475

skipif mysql # not compatible
query I rowsort label-9517
SELECT ALL + 17 * - 26 + - - 6 + - 40 + COUNT ( * ) AS col0
----
-475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9518
SELECT ALL - 52 * + 82 + 7 + + - COUNT( * ) DIV + 23 + - - 38 * - COUNT( * ) + + + 84 * + - CAST( 55 AS SIGNED )
----
-8915

skipif mysql # not compatible
query I rowsort label-9518
SELECT ALL - 52 * + 82 + 7 + + - COUNT ( * ) / + 23 + - - 38 * - COUNT ( * ) + + + 84 * + - CAST ( 55 AS INTEGER )
----
-8915

query II rowsort
SELECT ALL + - 35 AS col1, ( - + 6 ) * - 67 + 87 AS col0
----
-35
489

query I rowsort
SELECT DISTINCT + 66 * - 14 + + 25 + - 34
----
-933

query I rowsort
SELECT + ( 24 ) AS col0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9522
SELECT + 30 * - - 99 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9522
SELECT + 30 * - - 99 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9523
SELECT ALL + + 1, + 85 * + + 69 * - + CAST( NULL AS DECIMAL ) + + 32 + - - 14 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9523
SELECT ALL + + 1, + 85 * + + 69 * - + CAST ( NULL AS REAL ) + + 32 + - - 14 AS col0
----
1
NULL

query I rowsort
SELECT 20 * + 33 + + - 45 - + 62 AS col1
----
553

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT - SUM( DISTINCT ( - - 68 ) ) * + 1
----
-68

skipif mysql # not compatible
query I rowsort label-9525
SELECT - SUM ( DISTINCT ( - - 68 ) ) * + 1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT COALESCE ( + 55, COUNT( * ) )
----
55

skipif mysql # not compatible
query I rowsort label-9526
SELECT COALESCE ( + 55, COUNT ( * ) )
----
55

query I rowsort
SELECT ALL 34 * + 23 - 50
----
732

onlyif mysql # aggregate syntax: 
query I rowsort label-9528
SELECT ALL - COUNT( * ) * - 49 col2
----
49

skipif mysql # not compatible
query I rowsort label-9528
SELECT ALL - COUNT ( * ) * - 49 col2
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9529
SELECT ALL COUNT( * ) * + 5 * + 2 DIV - - 98 - 78 * - ( + 3 ) AS col2, + 56 * + + 10 * + - 74 - + 47 AS col2
----
234
-41487

skipif mysql # not compatible
query II rowsort label-9529
SELECT ALL COUNT ( * ) * + 5 * + 2 / - - 98 - 78 * - ( + 3 ) AS col2, + 56 * + + 10 * + - 74 - + 47 AS col2
----
234
-41487

onlyif mysql # aggregate syntax: 
query II rowsort label-9530
SELECT ALL + COUNT( * ) * + 48 - - + ( 27 ) + - + 93 + - - 4 + - 42 AS col2, 33 col1
----
-56
33

skipif mysql # not compatible
query II rowsort label-9530
SELECT ALL + COUNT ( * ) * + 48 - - + ( 27 ) + - + 93 + - - 4 + - 42 AS col2, 33 col1
----
-56
33

onlyif mysql # aggregate syntax: 
query II rowsort label-9531
SELECT DISTINCT - 98 * + 19 AS col1, 87 * + MIN( ALL 65 ) * - - ( - 91 ) * - 80 AS col2
----
-1862
41168400

skipif mysql # not compatible
query II rowsort label-9531
SELECT DISTINCT - 98 * + 19 AS col1, 87 * + MIN ( ALL 65 ) * - - ( - 91 ) * - 80 AS col2
----
-1862
41168400

query I rowsort
SELECT ALL - 26 * + + CASE - 17 WHEN + 80 + + + 4 * - 60 + + 25 * + 10 * 8 + - 71 + AVG ( ALL 51 ) THEN - 44 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT DISTINCT - COUNT( * ) * 65 AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-9533
SELECT DISTINCT - COUNT ( * ) * 65 AS col2
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9534
SELECT - COUNT( * ) DIV - - 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9534
SELECT - COUNT ( * ) / - - 70 AS col0
----
0

query I rowsort
SELECT + 11 * - 89 * - 34 * + + ( - - 25 )
----
832150

query II rowsort
SELECT DISTINCT ( - 89 ) col2, 90 * - + 20
----
-89
-1800

query I rowsort
SELECT ALL ( - 40 ) col2
----
-40

query I rowsort
SELECT ALL ( + - ( + - 99 ) )
----
99

query I rowsort
SELECT DISTINCT 5 * + ( - - 22 ) * + 38 * + 55
----
229900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9540
SELECT - + 23 + + COUNT( * ) DIV + 56 + + ( - + 98 ) AS col0
----
-121

skipif mysql # not compatible
query I rowsort label-9540
SELECT - + 23 + + COUNT ( * ) / + 56 + + ( - + 98 ) AS col0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT DISTINCT 51 + - 83 * - NULLIF ( - 55, + - COUNT( * ) / + NULLIF ( + CASE + 32 WHEN - ( + - 82 ) * + ( - 48 ) THEN - COUNT( * ) * + - COUNT( * ) - 4 * - 92 / + AVG ( + 8 ) ELSE NULL END, - 47 ) ) * + + 27 AS col1
----
-123204

skipif mysql # not compatible
query I rowsort label-9541
SELECT DISTINCT 51 + - 83 * - NULLIF ( - 55, + - COUNT ( * ) / + NULLIF ( + CASE + 32 WHEN - ( + - 82 ) * + ( - 48 ) THEN - COUNT ( * ) * + - COUNT ( * ) - 4 * - 92 / + AVG ( + 8 ) ELSE NULL END, - 47 ) ) * + + 27 AS col1
----
-123204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9542
SELECT ALL 79 + - 57 * MAX( DISTINCT + CAST( + + 29 AS SIGNED ) ) AS col1
----
-1574

skipif mysql # not compatible
query I rowsort label-9542
SELECT ALL 79 + - 57 * MAX ( DISTINCT + CAST ( + + 29 AS INTEGER ) ) AS col1
----
-1574

onlyif mysql # DIV for integer division: 
query I rowsort label-9543
SELECT + - 40 DIV - + 89
----
0

skipif mysql # not compatible
query I rowsort label-9543
SELECT + - 40 / - + 89
----
0

query I rowsort
SELECT ALL - 76 * - 29 + + 41
----
2245

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT + + ( SUM( - 58 ) ) * - 25 * 82 + + 29 + SUM( DISTINCT - 94 )
----
118835

skipif mysql # not compatible
query I rowsort label-9545
SELECT + + ( SUM ( - 58 ) ) * - 25 * 82 + + 29 + SUM ( DISTINCT - 94 )
----
118835

query I rowsort
SELECT + 66 - + 0 AS col0
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-9547
SELECT ALL + + 7 + - COUNT( * ) AS col1, 5
----
6
5

skipif mysql # not compatible
query II rowsort label-9547
SELECT ALL + + 7 + - COUNT ( * ) AS col1, 5
----
6
5

query I rowsort
SELECT DISTINCT 40 * 31 + - + 15 AS col0
----
1225

query I rowsort
SELECT ALL + 21 + - 99
----
-78

query II rowsort
SELECT - + 5 * + 34, + 78 AS col0
----
-170
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT + 98 * + + COUNT( ( - 70 ) ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-9551
SELECT + 98 * + + COUNT ( ( - 70 ) ) AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT DISTINCT 67 + + + COALESCE ( + - 95, + 54 ) + - 35 * - COUNT( * ) col1
----
7

skipif mysql # not compatible
query I rowsort label-9552
SELECT DISTINCT 67 + + + COALESCE ( + - 95, + 54 ) + - 35 * - COUNT ( * ) col1
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9553
SELECT ALL 82 DIV - + COUNT( * ) - - - NULLIF ( - - COUNT( * ), + CASE 60 WHEN ( 32 ) * + ( 83 ) THEN + - SUM( DISTINCT - 12 ) WHEN + 26 * - 70 * - + 46 + - + 38 THEN + - 41 * - 36 * + + 0 END DIV - - 49 DIV - COUNT( * ) ) + + - COUNT( * ) + + NULLIF ( - ( 88 ), - + MIN( + 17 ) ) - + + 47 * - 45 * - - COUNT( * )
----
1943

skipif mysql # not compatible
query I rowsort label-9553
SELECT ALL 82 / - + COUNT ( * ) - - - NULLIF ( - - COUNT ( * ), + CASE 60 WHEN ( 32 ) * + ( 83 ) THEN + - SUM ( DISTINCT - 12 ) WHEN + 26 * - 70 * - + 46 + - + 38 THEN + - 41 * - 36 * + + 0 END / - - 49 / - COUNT ( * ) ) + + - COUNT ( * ) + + NULLIF ( - ( 88 ), - + MIN ( + 17 ) ) - + + 47 * - 45 * - - COUNT ( * )
----
1943

query II rowsort
SELECT + 64 * + 75 AS col1, - 86
----
4800
-86

query I rowsort
SELECT DISTINCT + ( - ( + 15 ) )
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9556
SELECT DISTINCT 44 DIV - 82 + + COALESCE ( + - COUNT( * ), 52 ) + + ( + 67 ) + - 43 - 26 + 57 DIV 72 DIV + + 63 * + 53 DIV - - 40 - 90 + + 19 * - 76
----
-1537

skipif mysql # not compatible
query I rowsort label-9556
SELECT DISTINCT 44 / - 82 + + COALESCE ( + - COUNT ( * ), 52 ) + + ( + 67 ) + - 43 - 26 + 57 / 72 / + + 63 * + 53 / - - 40 - 90 + + 19 * - 76
----
-1537

onlyif mysql # aggregate syntax: 
query II rowsort label-9557
SELECT + SUM( - + 95 ) + - - 77, 19 * - - 33 AS col0
----
-18
627

skipif mysql # not compatible
query II rowsort label-9557
SELECT + SUM ( - + 95 ) + - - 77, 19 * - - 33 AS col0
----
-18
627

onlyif mysql # DIV for integer division: 
query I rowsort label-9558
SELECT ALL 60 DIV 30
----
2

skipif mysql # not compatible
query I rowsort label-9558
SELECT ALL 60 / 30
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9559
SELECT CAST( - CASE COUNT( * ) WHEN + NULLIF ( ( + - 9 ), + + 6 * - 72 * + - 13 * - + 66 ) THEN - 56 + + 72 END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9559
SELECT CAST ( - CASE COUNT ( * ) WHEN + NULLIF ( ( + - 9 ), + + 6 * - 72 * + - 13 * - + 66 ) THEN - 56 + + 72 END AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9560
SELECT ALL + ( + + 80 ) DIV 91 - + COUNT( * ) * + 57 col1
----
-57

skipif mysql # not compatible
query I rowsort label-9560
SELECT ALL + ( + + 80 ) / 91 - + COUNT ( * ) * + 57 col1
----
-57

query II rowsort
SELECT ALL + 28 AS col2, 40 AS col0
----
28
40

query I rowsort
SELECT - 24 * 11 AS col1
----
-264

query I rowsort
SELECT ALL 30 * + 38 AS col2
----
1140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9564
SELECT + 12 + + - COUNT( * ) DIV MIN( + 72 ) DIV 32
----
12

skipif mysql # not compatible
query I rowsort label-9564
SELECT + 12 + + - COUNT ( * ) / MIN ( + 72 ) / 32
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9565
SELECT + CAST( - - 24 AS SIGNED ) * + 94 + 64 * 13 AS col2
----
3088

skipif mysql # not compatible
query I rowsort label-9565
SELECT + CAST ( - - 24 AS INTEGER ) * + 94 + 64 * 13 AS col2
----
3088

query I rowsort
SELECT - 94 * - + 96 * - + 35 * - 88
----
27793920

onlyif mysql # DIV for integer division: 
query I rowsort label-9567
SELECT DISTINCT + 49 DIV - - 92
----
0

skipif mysql # not compatible
query I rowsort label-9567
SELECT DISTINCT + 49 / - - 92
----
0

query II rowsort
SELECT ALL + 72 AS col0, 25 AS col2
----
72
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT 58 * COUNT( * ) + + + 93 + 88 + COUNT( * ) + - 55 * - + 15 AS col1
----
1065

skipif mysql # not compatible
query I rowsort label-9569
SELECT 58 * COUNT ( * ) + + + 93 + 88 + COUNT ( * ) + - 55 * - + 15 AS col1
----
1065

onlyif mysql # aggregate syntax: 
query I rowsort label-9570
SELECT - 58 + MAX( + 28 ) * - 17 AS col1
----
-534

skipif mysql # not compatible
query I rowsort label-9570
SELECT - 58 + MAX ( + 28 ) * - 17 AS col1
----
-534

query I rowsort
SELECT COALESCE ( 98, 36 + - - 71 )
----
98

query I rowsort
SELECT 7 + - + 89 + + 9 AS col1
----
-73

query I rowsort
SELECT 43 - 33 AS col0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-9574
SELECT - 3, + 62 - - 38 * MAX( ALL + 85 ) + - 59 AS col0
----
-3
3233

skipif mysql # not compatible
query II rowsort label-9574
SELECT - 3, + 62 - - 38 * MAX ( ALL + 85 ) + - 59 AS col0
----
-3
3233

query I rowsort
SELECT NULLIF ( - 28, + 26 ) + + 37 AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT + + MAX( 90 ) * + + ( 81 ) + 58
----
7348

skipif mysql # not compatible
query I rowsort label-9576
SELECT + + MAX ( 90 ) * + + ( 81 ) + 58
----
7348

query I rowsort
SELECT ALL + + 47 + 37 AS col0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9578
SELECT DISTINCT + 49 + - - CAST( MIN( ALL 61 ) AS SIGNED ) + - + CAST( + + 51 AS SIGNED ) + + - 61 + + 85 * + - CASE - 79 WHEN + 9 THEN NULL WHEN - 83 THEN + 56 END * - 38 * + + COUNT( * ) * - COALESCE ( + 46, - 22 * 6 * - COUNT( * ) ) * - 23 - + 78 * - COALESCE ( + 67, - 24, - COUNT( * ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9578
SELECT DISTINCT + 49 + - - CAST ( MIN ( ALL 61 ) AS INTEGER ) + - + CAST ( + + 51 AS INTEGER ) + + - 61 + + 85 * + - CASE - 79 WHEN + 9 THEN NULL WHEN - 83 THEN + 56 END * - 38 * + + COUNT ( * ) * - COALESCE ( + 46, - 22 * 6 * - COUNT ( * ) ) * - 23 - + 78 * - COALESCE ( + 67, - 24, - COUNT ( * ) ) col2
----
NULL

query II rowsort
SELECT + 52, 68 AS col1
----
52
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT ALL + + 72 + + 39 + + COUNT( * ) AS col0
----
112

skipif mysql # not compatible
query I rowsort label-9580
SELECT ALL + + 72 + + 39 + + COUNT ( * ) AS col0
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT - COUNT( * ) + 19 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-9581
SELECT - COUNT ( * ) + 19 AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT ALL + 5 * + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-9582
SELECT ALL + 5 * + COUNT ( * )
----
5

query I rowsort
SELECT 79 + - 0
----
79

query I rowsort
SELECT - 12 + + 43
----
31

query I rowsort
SELECT DISTINCT + - 30 + + - 1 AS col2
----
-31

query II rowsort
SELECT ALL 87, + 47 + - - 18 * + - 38 AS col0
----
87
-637

query I rowsort
SELECT 48 + - 3 - + COALESCE ( + 61, - + 52 ) col2
----
-16

query I rowsort
SELECT ALL + ( + 53 ) * + 18 AS col1
----
954

query I rowsort
SELECT - 39 * + - 87
----
3393

query II rowsort
SELECT - 59 AS col1, ( 75 ) AS col0
----
-59
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT ALL + 73 * - - 59 * + 42 * COUNT( * )
----
180894

skipif mysql # not compatible
query I rowsort label-9591
SELECT ALL + 73 * - - 59 * + 42 * COUNT ( * )
----
180894

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT - + MIN( - 96 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-9592
SELECT - + MIN ( - 96 ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT DISTINCT + + COUNT( * ) * 70 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-9593
SELECT DISTINCT + + COUNT ( * ) * 70 AS col1
----
70

query I rowsort
SELECT DISTINCT 15 - 93 AS col0
----
-78

query I rowsort
SELECT ALL + 25 * + 75
----
1875

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9596
SELECT + COUNT( * ) DIV - 30 * 16 * - 86 + - 61
----
-61

skipif mysql # not compatible
query I rowsort label-9596
SELECT + COUNT ( * ) / - 30 * 16 * - 86 + - 61
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT - 38 * - COUNT( * ) * + + MAX( DISTINCT 37 ) + + 58
----
1464

skipif mysql # not compatible
query I rowsort label-9597
SELECT - 38 * - COUNT ( * ) * + + MAX ( DISTINCT 37 ) + + 58
----
1464

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9598
SELECT DISTINCT COUNT( * ) + + 16 + + + 28 * + - 11, - 28 * - ( + 49 ) + + 4 * + COUNT( * ) DIV SUM( 99 ) DIV - 72 + - + 11 DIV + 88 AS col1
----
-291
1372

skipif mysql # not compatible
query II rowsort label-9598
SELECT DISTINCT COUNT ( * ) + + 16 + + + 28 * + - 11, - 28 * - ( + 49 ) + + 4 * + COUNT ( * ) / SUM ( 99 ) / - 72 + - + 11 / + 88 AS col1
----
-291
1372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9599
SELECT CAST( NULL AS SIGNED ) * + + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-9599
SELECT CAST ( NULL AS INTEGER ) * + + 51
----
NULL

query I rowsort
SELECT DISTINCT 99 + - 49 + - + ( - - ( - + 43 ) ) + + - 33 * + - 30 AS col1
----
1083

onlyif mysql # aggregate syntax: 
query II rowsort label-9601
SELECT ALL - COUNT( - 34 ) AS col2, - COUNT( * )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-9601
SELECT ALL - COUNT ( - 34 ) AS col2, - COUNT ( * )
----
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9602
SELECT CAST( NULL AS SIGNED ) / NULLIF ( + - 39, + 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9602
SELECT CAST ( NULL AS INTEGER ) / NULLIF ( + - 39, + 22 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9603
SELECT 52 + 16 AS col0, - SUM( ALL - 2 ) DIV 94 + - - 53 AS col2
----
68
53

skipif mysql # not compatible
query II rowsort label-9603
SELECT 52 + 16 AS col0, - SUM ( ALL - 2 ) / 94 + - - 53 AS col2
----
68
53

query II rowsort
SELECT ALL + - 20 + + 85, 91 AS col0
----
65
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9605
SELECT ALL - COUNT( * ) + - ( + - CASE + 59 WHEN - COUNT( + 52 ) * - + ( + 61 ) THEN NULL WHEN + + 79 THEN + + 36 * - NULLIF ( 60, COUNT( * ) ) * + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) * - - 31 + + 95 + + COUNT( * ) + 13 * + 1 + - 55 * + 29 - - - 33 + + 81 END ) + + SUM( - 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9605
SELECT ALL - COUNT ( * ) + - ( + - CASE + 59 WHEN - COUNT ( + 52 ) * - + ( + 61 ) THEN NULL WHEN + + 79 THEN + + 36 * - NULLIF ( 60, COUNT ( * ) ) * + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) * - - 31 + + 95 + + COUNT ( * ) + 13 * + 1 + - 55 * + 29 - - - 33 + + 81 END ) + + SUM ( - 86 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9606
SELECT + 21 DIV + 60, + COUNT( * ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-9606
SELECT + 21 / + 60, + COUNT ( * ) AS col2
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT ALL - + 7 * - + COUNT( * ) * + 20 + - + 99 + + 36
----
77

skipif mysql # not compatible
query I rowsort label-9607
SELECT ALL - + 7 * - + COUNT ( * ) * + 20 + - + 99 + + 36
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT COALESCE ( - COUNT( * ), - + 27 )
----
-1

skipif mysql # not compatible
query I rowsort label-9608
SELECT COALESCE ( - COUNT ( * ), - + 27 )
----
-1

query I rowsort
SELECT DISTINCT ( 69 ) + + 84 AS col2
----
153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9610
SELECT ALL + 54 * COUNT( * ) * + + COUNT( * ) DIV + 66 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9610
SELECT ALL + 54 * COUNT ( * ) * + + COUNT ( * ) / + 66 AS col1
----
0

query I rowsort
SELECT 27 + 44
----
71

query I rowsort
SELECT - 71 * - 63
----
4473

query I rowsort
SELECT ALL + 94 * ( + ( 84 ) ) AS col2
----
7896

query I rowsort
SELECT + 80 + 2 + + 78
----
160

query II rowsort
SELECT + 37 * - 64 AS col1, 76 AS col2
----
-2368
76

query II rowsort
SELECT ALL + 33 * 82 AS col1, 94
----
2706
94

query I rowsort
SELECT 96 - + + 8 AS col1
----
88

query I rowsort
SELECT 73 * + 14 AS col1
----
1022

onlyif mysql # DIV for integer division: 
query I rowsort label-9619
SELECT ALL - 67 DIV - NULLIF ( - 3, + 85 ) col0
----
-22

skipif mysql # not compatible
query I rowsort label-9619
SELECT ALL - 67 / - NULLIF ( - 3, + 85 ) col0
----
-22

query I rowsort
SELECT 83 * 45
----
3735

query I rowsort
SELECT 18 * 88
----
1584

query I rowsort
SELECT 92 * + 51 * + - 48
----
-225216

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9623
SELECT CASE CAST( NULL AS DECIMAL ) WHEN + - 53 THEN NULL WHEN + COALESCE ( - 83, - 74 * - 31 * + 36 ) THEN COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9623
SELECT CASE CAST ( NULL AS REAL ) WHEN + - 53 THEN NULL WHEN + COALESCE ( - 83, - 74 * - 31 * + 36 ) THEN COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT ALL + 94 * + 11 col0
----
1034

onlyif mysql # aggregate syntax: 
query II rowsort label-9625
SELECT DISTINCT - COUNT( * ) * - 76 * - + 26 AS col2, 26 + - COUNT( * ) * + - ( - 45 )
----
-1976
-19

skipif mysql # not compatible
query II rowsort label-9625
SELECT DISTINCT - COUNT ( * ) * - 76 * - + 26 AS col2, 26 + - COUNT ( * ) * + - ( - 45 )
----
-1976
-19

query I rowsort
SELECT NULLIF ( 47, + ( NULLIF ( ( 97 ), - - 78 ) ) * 2 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT ALL - 67 * - MAX( ALL 94 ) * + ( - 17 ) AS col1
----
-107066

skipif mysql # not compatible
query I rowsort label-9627
SELECT ALL - 67 * - MAX ( ALL 94 ) * + ( - 17 ) AS col1
----
-107066

query I rowsort
SELECT 8 * + - 49 * - 75
----
29400

query I rowsort
SELECT ALL - 82 col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT COUNT( * ) * - + 80
----
-80

skipif mysql # not compatible
query I rowsort label-9630
SELECT COUNT ( * ) * - + 80
----
-80

query I rowsort
SELECT - 23 + 42
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-9632
SELECT + COUNT( * ) * + + ( 55 ) AS col1, 2 AS col2
----
55
2

skipif mysql # not compatible
query II rowsort label-9632
SELECT + COUNT ( * ) * + + ( 55 ) AS col1, 2 AS col2
----
55
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT ALL - COUNT( * ) * + - 53 + + 49 AS col0
----
102

skipif mysql # not compatible
query I rowsort label-9633
SELECT ALL - COUNT ( * ) * + - 53 + + 49 AS col0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT - 99 + - 64 * + - NULLIF ( - 86, COUNT( * ) + COUNT( * ) ) col2
----
-5603

skipif mysql # not compatible
query I rowsort label-9634
SELECT - 99 + - 64 * + - NULLIF ( - 86, COUNT ( * ) + COUNT ( * ) ) col2
----
-5603

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT MIN( ALL + 90 ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-9635
SELECT MIN ( ALL + 90 ) AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT + ( + 48 ) * + + 31 + - SUM( DISTINCT + + 67 )
----
1421

skipif mysql # not compatible
query I rowsort label-9636
SELECT + ( + 48 ) * + + 31 + - SUM ( DISTINCT + + 67 )
----
1421

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT ALL + 42 * - 90 * + + 79 + - - COUNT( * ) - + MIN( DISTINCT + 73 )
----
-298692

skipif mysql # not compatible
query I rowsort label-9637
SELECT ALL + 42 * - 90 * + + 79 + - - COUNT ( * ) - + MIN ( DISTINCT + 73 )
----
-298692

query I rowsort
SELECT - 1 * 69 + - ( 34 + 18 ) AS col0
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-9639
SELECT DISTINCT 34 DIV 29 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9639
SELECT DISTINCT 34 / 29 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9640
SELECT ALL 39 * MIN( CAST( - 57 AS SIGNED ) ) AS col1
----
-2223

skipif mysql # not compatible
query I rowsort label-9640
SELECT ALL 39 * MIN ( CAST ( - 57 AS INTEGER ) ) AS col1
----
-2223

query I rowsort
SELECT + 45 + - 96
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9642
SELECT ALL 51 - + CAST( COUNT( * ) AS SIGNED )
----
50

skipif mysql # not compatible
query I rowsort label-9642
SELECT ALL 51 - + CAST ( COUNT ( * ) AS INTEGER )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT + 63 * - COUNT( * ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-9643
SELECT + 63 * - COUNT ( * ) AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT ALL 33 - COUNT( * ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-9644
SELECT ALL 33 - COUNT ( * ) AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT - MAX( ALL - 9 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-9645
SELECT - MAX ( ALL - 9 ) AS col1
----
9

query I rowsort
SELECT + 15 + - 96
----
-81

query I rowsort
SELECT + 27 * + 94
----
2538

query I rowsort
SELECT - ( + 29 ) + + NULLIF ( COALESCE ( - 59, 78 ), ( - 94 ) )
----
-88

query I rowsort
SELECT + 79 + 68
----
147

query I rowsort
SELECT + 97 * 49
----
4753

query I rowsort
SELECT + ( 99 ) + + 77
----
176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9652
SELECT ALL MIN( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9652
SELECT ALL MIN ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT - ( + MAX( DISTINCT ( ( 36 ) ) ) ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-9653
SELECT - ( + MAX ( DISTINCT ( ( 36 ) ) ) ) AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT + COUNT( * ) + 18
----
19

skipif mysql # not compatible
query I rowsort label-9654
SELECT + COUNT ( * ) + 18
----
19

query I rowsort
SELECT DISTINCT + 80 * + 49 AS col1
----
3920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9656
SELECT - CASE 90 WHEN + 36 * + ( 83 ) THEN CASE MAX( ALL 13 ) WHEN + 94 THEN 50 * - ( + 31 ) WHEN 54 THEN NULL END * + 5 WHEN - 66 - - CAST( CAST( + 29 AS SIGNED ) AS SIGNED ) THEN + CASE 6 WHEN - 58 + + 72 THEN NULL ELSE + MIN( DISTINCT - 92 ) DIV - 27 END - - COUNT( * ) ELSE - COUNT( * ) * + 94 END AS col1
----
94

skipif mysql # not compatible
query I rowsort label-9656
SELECT - CASE 90 WHEN + 36 * + ( 83 ) THEN CASE MAX ( ALL 13 ) WHEN + 94 THEN 50 * - ( + 31 ) WHEN 54 THEN NULL END * + 5 WHEN - 66 - - CAST ( CAST ( + 29 AS INTEGER ) AS INTEGER ) THEN + CASE 6 WHEN - 58 + + 72 THEN NULL ELSE + MIN ( DISTINCT - 92 ) / - 27 END - - COUNT ( * ) ELSE - COUNT ( * ) * + 94 END AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT ALL MAX( 68 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-9657
SELECT ALL MAX ( 68 ) AS col0
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9658
SELECT + CAST( NULL AS SIGNED ) + 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9658
SELECT + CAST ( NULL AS INTEGER ) + 98 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT ALL MIN( 69 ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-9659
SELECT ALL MIN ( 69 ) AS col2
----
69

query I rowsort
SELECT - ( - 12 ) AS col1
----
12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9661
SELECT - 78 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9661
SELECT - 78 + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 89 * 67
----
5963

query I rowsort
SELECT - 95 * + 7 AS col1
----
-665

query I rowsort
SELECT ALL - 62 + + 69
----
7

query I rowsort
SELECT - 7 + + 99
----
92

query I rowsort
SELECT DISTINCT 30 + 83 * - 53 AS col2
----
-4369

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT DISTINCT ( COUNT( ALL - 86 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9667
SELECT DISTINCT ( COUNT ( ALL - 86 ) ) AS col1
----
1

query I rowsort
SELECT ALL ( 5 )
----
5

query I rowsort
SELECT - 59 + - 29 * - 93
----
2638

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9670
SELECT ALL - MIN( ALL 19 ) + - SUM( - CAST( 26 AS SIGNED ) )
----
7

skipif mysql # not compatible
query I rowsort label-9670
SELECT ALL - MIN ( ALL 19 ) + - SUM ( - CAST ( 26 AS INTEGER ) )
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-9671
SELECT ALL - 80 DIV 53 + 10
----
9

skipif mysql # not compatible
query I rowsort label-9671
SELECT ALL - 80 / 53 + 10
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9672
SELECT DISTINCT + 8 DIV 82 + + 15
----
15

skipif mysql # not compatible
query I rowsort label-9672
SELECT DISTINCT + 8 / 82 + + 15
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9673
SELECT ALL - COUNT( * ) DIV 20 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9673
SELECT ALL - COUNT ( * ) / 20 + - COUNT ( * )
----
-1

query I rowsort
SELECT - 79 / ( 13 * + 58 ) + CASE WHEN NOT ( NULL ) = - 23 + + NULLIF ( 78, + 46 * 29 ) THEN NULLIF ( 51, 58 * 11 ) END AS col0
----
NULL

query I rowsort
SELECT - 29 + 11 * + 90 AS col1
----
961

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT + MIN( ALL + 58 ) col1
----
58

skipif mysql # not compatible
query I rowsort label-9676
SELECT + MIN ( ALL + 58 ) col1
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9677
SELECT DISTINCT + 31 DIV + 82 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9677
SELECT DISTINCT + 31 / + 82 + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9678
SELECT ALL - 47 DIV NULLIF ( - 40, - NULLIF ( 85, - MAX( DISTINCT 87 ) ) ) + - 94 * + 83
----
-7801

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL - 47 / NULLIF ( - 40, - NULLIF ( 85, - MAX ( DISTINCT 87 ) ) ) + - 94 * + 83
----
-7801

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT ( + MIN( ALL - 21 ) )
----
-21

skipif mysql # not compatible
query I rowsort label-9679
SELECT ( + MIN ( ALL - 21 ) )
----
-21

query I rowsort
SELECT ALL + 98 * 40 + 21 * + 83
----
5663

onlyif mysql # DIV for integer division: 
query I rowsort label-9681
SELECT - 93 DIV - 76 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9681
SELECT - 93 / - 76 AS col2
----
1

query I rowsort
SELECT DISTINCT - 91 * 16 AS col1
----
-1456

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT DISTINCT - 19 * + COUNT( ALL 31 ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-9683
SELECT DISTINCT - 19 * + COUNT ( ALL 31 ) AS col2
----
-19

query I rowsort
SELECT ALL + - 70 * + 99 - 94 AS col0
----
-7024

onlyif mysql # aggregate syntax: 
query I rowsort label-9685
SELECT DISTINCT - COUNT( ALL + 90 ) * + 2 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-9685
SELECT DISTINCT - COUNT ( ALL + 90 ) * + 2 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT - MAX( ( 89 ) )
----
-89

skipif mysql # not compatible
query I rowsort label-9686
SELECT - MAX ( ( 89 ) )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT ALL 52 * COUNT( * ) - - 36
----
88

skipif mysql # not compatible
query I rowsort label-9687
SELECT ALL 52 * COUNT ( * ) - - 36
----
88

query I rowsort
SELECT ALL + + 0 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9689
SELECT + + ( + ( CAST( 65 AS SIGNED ) ) ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-9689
SELECT + + ( + ( CAST ( 65 AS INTEGER ) ) ) AS col0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9690
SELECT + - CAST( 16 AS SIGNED )
----
-16

skipif mysql # not compatible
query I rowsort label-9690
SELECT + - CAST ( 16 AS INTEGER )
----
-16

query I rowsort
SELECT - 92 * + 67 AS col2
----
-6164

query I rowsort
SELECT + 62 * - 35
----
-2170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9693
SELECT + + COALESCE ( - CAST( ( 70 ) AS SIGNED ), + 47 ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-9693
SELECT + + COALESCE ( - CAST ( ( 70 ) AS INTEGER ), + 47 ) AS col2
----
-70

query I rowsort
SELECT ALL - 11 * - 1 AS col1
----
11

query I rowsort
SELECT + + 5 * + 31 AS col1
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT DISTINCT + MAX( DISTINCT 18 ) * COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-9696
SELECT DISTINCT + MAX ( DISTINCT 18 ) * COUNT ( * )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT DISTINCT COUNT( * ) * - 47 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-9697
SELECT DISTINCT COUNT ( * ) * - 47 AS col2
----
-47

query I rowsort
SELECT - - 61 + 94 AS col1
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT - MIN( ALL 69 ) * 86 AS col1
----
-5934

skipif mysql # not compatible
query I rowsort label-9699
SELECT - MIN ( ALL 69 ) * 86 AS col1
----
-5934

query I rowsort
SELECT + + ( - 92 ) + + 4
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT + 78 + + COUNT( * ) * - COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-9701
SELECT + 78 + + COUNT ( * ) * - COUNT ( * )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT DISTINCT COUNT( * ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-9702
SELECT DISTINCT COUNT ( * ) + COUNT ( * )
----
2

query I rowsort
SELECT - ( - - 90 ) AS col1
----
-90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9704
SELECT ALL 60 + + CASE - 39 WHEN - 1 THEN 74 * - COUNT( * ) WHEN 93 * 81 THEN - 78 + ( - 65 + CASE 40 + 43 WHEN CASE - 54 WHEN 68 THEN 34 + 70 END THEN NULL ELSE 62 + - CAST( NULL AS DECIMAL ) END * - 86 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9704
SELECT ALL 60 + + CASE - 39 WHEN - 1 THEN 74 * - COUNT ( * ) WHEN 93 * 81 THEN - 78 + ( - 65 + CASE 40 + 43 WHEN CASE - 54 WHEN 68 THEN 34 + 70 END THEN NULL ELSE 62 + - CAST ( NULL AS REAL ) END * - 86 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9705
SELECT DISTINCT COUNT( * ) / 82 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9705
SELECT DISTINCT COUNT ( * ) / 82 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 89 + - 85 + 15 * + 90 * NULLIF ( - 92, - 61 + - 84 ) col2
----
-124196

query I rowsort
SELECT ALL + COALESCE ( - 70, - 78, 3 + - 17 ) * 97
----
-6790

query I rowsort
SELECT DISTINCT + ( - 86 ) + 74
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT NULLIF ( - 96, - COUNT( * ) ) + 0 * - 72 col1
----
-96

skipif mysql # not compatible
query I rowsort label-9709
SELECT NULLIF ( - 96, - COUNT ( * ) ) + 0 * - 72 col1
----
-96

query I rowsort
SELECT DISTINCT 76 + 88 AS col1
----
164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9711
SELECT 46 - + COUNT( * ) / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9711
SELECT 46 - + COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT ALL - 32 + + + 95 - + ( + COALESCE ( + 76, + 80, + CASE + 78 WHEN + COUNT( * ) THEN COUNT( + 54 ) END ) + + 59 )
----
-72

skipif mysql # not compatible
query I rowsort label-9712
SELECT ALL - 32 + + + 95 - + ( + COALESCE ( + 76, + 80, + CASE + 78 WHEN + COUNT ( * ) THEN COUNT ( + 54 ) END ) + + 59 )
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9713
SELECT - SUM( DISTINCT - 11 ) * CASE + 35 * + CASE 84 WHEN AVG ( DISTINCT 57 ) THEN + COUNT( * ) END WHEN + 17 THEN NULL WHEN + 44 * 21 THEN NULL ELSE - CASE - COUNT( + 98 ) WHEN 25 THEN 50 WHEN + 11 THEN NULL ELSE NULL END END - + 47 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9713
SELECT - SUM ( DISTINCT - 11 ) * CASE + 35 * + CASE 84 WHEN AVG ( DISTINCT 57 ) THEN + COUNT ( * ) END WHEN + 17 THEN NULL WHEN + 44 * 21 THEN NULL ELSE - CASE - COUNT ( + 98 ) WHEN 25 THEN 50 WHEN + 11 THEN NULL ELSE NULL END END - + 47 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9714
SELECT COUNT( * ) * + - CAST( - CASE 82 WHEN 75 * 17 THEN 62 + - 65 END AS DECIMAL ) * + SUM( ( - 49 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9714
SELECT COUNT ( * ) * + - CAST ( - CASE 82 WHEN 75 * 17 THEN 62 + - 65 END AS REAL ) * + SUM ( ( - 49 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT ALL MAX( ALL + - 67 ) - COUNT( * ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-9715
SELECT ALL MAX ( ALL + - 67 ) - COUNT ( * ) AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT ALL - CASE 54 WHEN - COUNT( ALL 42 ) * 49 THEN 96 * - CASE 3 WHEN 12 + + ( - 91 ) THEN NULL WHEN 82 / 76 THEN NULL WHEN 30 THEN NULL ELSE 49 END + - ( + 14 + 36 ) ELSE COUNT( * ) END AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9716
SELECT ALL - CASE 54 WHEN - COUNT ( ALL 42 ) * 49 THEN 96 * - CASE 3 WHEN 12 + + ( - 91 ) THEN NULL WHEN 82 / 76 THEN NULL WHEN 30 THEN NULL ELSE 49 END + - ( + 14 + 36 ) ELSE COUNT ( * ) END AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT DISTINCT - CASE + 81 WHEN + NULLIF ( 63, - ( 47 ) + 66 * + MAX( DISTINCT 18 ) ) THEN - 55 WHEN + 4 * - 4 THEN 94 - + NULLIF ( - 16, 15 + + 67 * - 52 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9717
SELECT DISTINCT - CASE + 81 WHEN + NULLIF ( 63, - ( 47 ) + 66 * + MAX ( DISTINCT 18 ) ) THEN - 55 WHEN + 4 * - 4 THEN 94 - + NULLIF ( - 16, 15 + + 67 * - 52 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9718
SELECT - - 92 DIV - - 49 + 62
----
63

skipif mysql # not compatible
query I rowsort label-9718
SELECT - - 92 / - - 49 + 62
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9719
SELECT + 4 * NULLIF ( + 57, - CAST( 59 AS SIGNED ) ) - - 97
----
325

skipif mysql # not compatible
query I rowsort label-9719
SELECT + 4 * NULLIF ( + 57, - CAST ( 59 AS INTEGER ) ) - - 97
----
325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9720
SELECT + + 77 * - + 45 + 56 DIV - COALESCE ( COUNT( * ), COALESCE ( + 30, 44, - CASE 4 WHEN 0 THEN + CASE 53 WHEN CAST( NULL AS SIGNED ) * 20 THEN ( 60 ) * - 30 ELSE + 40 + 11 END ELSE NULL END * - ( + 11 ) ), - 44 ) + 63
----
-3458

skipif mysql # not compatible
query I rowsort label-9720
SELECT + + 77 * - + 45 + 56 / - COALESCE ( COUNT ( * ), COALESCE ( + 30, 44, - CASE 4 WHEN 0 THEN + CASE 53 WHEN CAST ( NULL AS INTEGER ) * 20 THEN ( 60 ) * - 30 ELSE + 40 + 11 END ELSE NULL END * - ( + 11 ) ), - 44 ) + 63
----
-3458

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9721
SELECT ALL + + 21 * + ( 46 ) * + MAX( NULLIF ( 69, 46 ) * + CAST( NULL AS SIGNED ) - 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9721
SELECT ALL + + 21 * + ( 46 ) * + MAX ( NULLIF ( 69, 46 ) * + CAST ( NULL AS INTEGER ) - 34 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9722
SELECT COUNT( * ) DIV - + 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9722
SELECT COUNT ( * ) / - + 74 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT DISTINCT - ( - SUM( 79 ) ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-9723
SELECT DISTINCT - ( - SUM ( 79 ) ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT ALL + - COUNT( * ) * - 30 * 39
----
1170

skipif mysql # not compatible
query I rowsort label-9724
SELECT ALL + - COUNT ( * ) * - 30 * 39
----
1170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9725
SELECT + 13 DIV COUNT( * ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-9725
SELECT + 13 / COUNT ( * ) AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT 48 + 96 + + COUNT( * )
----
145

skipif mysql # not compatible
query I rowsort label-9726
SELECT 48 + 96 + + COUNT ( * )
----
145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9727
SELECT ALL - CAST( - 65 AS SIGNED ) * - 29 AS col1
----
-1885

skipif mysql # not compatible
query I rowsort label-9727
SELECT ALL - CAST ( - 65 AS INTEGER ) * - 29 AS col1
----
-1885

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9728
SELECT ALL - - COALESCE ( 11, - CAST( NULL AS SIGNED ) DIV + 55 + 16, 80 * - MIN( ALL 54 ) ) * COALESCE ( 82 * 31, + 88 ) AS col2
----
27962

skipif mysql # not compatible
query I rowsort label-9728
SELECT ALL - - COALESCE ( 11, - CAST ( NULL AS INTEGER ) / + 55 + 16, 80 * - MIN ( ALL 54 ) ) * COALESCE ( 82 * 31, + 88 ) AS col2
----
27962

onlyif mysql # aggregate syntax: 
query I rowsort label-9729
SELECT ALL - 21 + - COUNT( * ) col0
----
-22

skipif mysql # not compatible
query I rowsort label-9729
SELECT ALL - 21 + - COUNT ( * ) col0
----
-22

query I rowsort
SELECT + NULLIF ( 0, - 10 - - 69 )
----
0

query I rowsort
SELECT - 62 * - + 28 * 29 AS col0
----
50344

query I rowsort
SELECT DISTINCT - 88 + - + 53 + 23 AS col2
----
-118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9733
SELECT ALL + 30 + + 39 + CASE AVG ( 81 ) WHEN + CAST( NULL AS SIGNED ) THEN - COUNT( * ) * - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9733
SELECT ALL + 30 + + 39 + CASE AVG ( 81 ) WHEN + CAST ( NULL AS INTEGER ) THEN - COUNT ( * ) * - COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9734
SELECT DISTINCT COALESCE ( - 65, ( - 9 ) DIV 53 + 41 * + ( + COUNT( + COALESCE ( - 73, 44 + 24, + 16 + 16 ) ) * + 52 + - ( - MAX( + CAST( 57 AS SIGNED ) ) - 83 * + 8 ) * NULLIF ( 84 + + COUNT( * ), - MIN( DISTINCT 72 ) * + ( - 21 - COUNT( * ) ) + MIN( + 10 ) * COUNT( * ) ) ) ) col2
----
-65

skipif mysql # not compatible
query I rowsort label-9734
SELECT DISTINCT COALESCE ( - 65, ( - 9 ) / 53 + 41 * + ( + COUNT ( + COALESCE ( - 73, 44 + 24, + 16 + 16 ) ) * + 52 + - ( - MAX ( + CAST ( 57 AS INTEGER ) ) - 83 * + 8 ) * NULLIF ( 84 + + COUNT ( * ), - MIN ( DISTINCT 72 ) * + ( - 21 - COUNT ( * ) ) + MIN ( + 10 ) * COUNT ( * ) ) ) ) col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT - SUM( DISTINCT - 23 ) + 69
----
92

skipif mysql # not compatible
query I rowsort label-9735
SELECT - SUM ( DISTINCT - 23 ) + 69
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9736
SELECT DISTINCT + COUNT( + CAST( NULL AS SIGNED ) ) + - - 23 + ( - 25 ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-9736
SELECT DISTINCT + COUNT ( + CAST ( NULL AS INTEGER ) ) + - - 23 + ( - 25 ) col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT DISTINCT NULLIF ( - ( - 67 ), 55 * - 42 + 28 * + COUNT( * ) ) + + COUNT( * ) * CASE ( - 95 ) + - 79 WHEN - 72 THEN NULL WHEN + 57 THEN 15 * 46 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9737
SELECT DISTINCT NULLIF ( - ( - 67 ), 55 * - 42 + 28 * + COUNT ( * ) ) + + COUNT ( * ) * CASE ( - 95 ) + - 79 WHEN - 72 THEN NULL WHEN + 57 THEN 15 * 46 END
----
NULL

query I rowsort
SELECT DISTINCT 71 + - 58 + + 11
----
24

query I rowsort
SELECT ALL + 36 * 87 AS col2
----
3132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9740
SELECT 98 + + - COALESCE ( - 84, 46 ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9740
SELECT 98 + + - COALESCE ( - 84, 46 ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9741
SELECT ALL 17 AS col0, + 40 * COUNT( * ) * 18 col2
----
17
720

skipif mysql # not compatible
query II rowsort label-9741
SELECT ALL 17 AS col0, + 40 * COUNT ( * ) * 18 col2
----
17
720

query I rowsort
SELECT DISTINCT 35 + + 26 * 52
----
1387

query I rowsort
SELECT ALL ( - + COALESCE ( + + 47, 69 ) ) - 8 AS col0
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9744
SELECT ALL 70 - + - COUNT( * ) + + 47 + CAST( COUNT( * ) + + 26 AS SIGNED ) * CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9744
SELECT ALL 70 - + - COUNT ( * ) + + 47 + CAST ( COUNT ( * ) + + 26 AS INTEGER ) * CAST ( NULL AS REAL ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT 78 AS col2, 59 AS col2
----
78
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT DISTINCT + 18 * COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-9746
SELECT DISTINCT + 18 * COUNT ( * )
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-9747
SELECT ALL 64 DIV + 75 * 67
----
0

skipif mysql # not compatible
query I rowsort label-9747
SELECT ALL 64 / + 75 * 67
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9748
SELECT ( + + COALESCE ( - 43, + 29 ) ) + COALESCE ( 67, ( 86 ), + CAST( 76 AS SIGNED ) ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-9748
SELECT ( + + COALESCE ( - 43, + 29 ) ) + COALESCE ( 67, ( 86 ), + CAST ( 76 AS INTEGER ) ) AS col2
----
24

query II rowsort
SELECT ALL 37 AS col1, 99 - + 49
----
37
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT MIN( DISTINCT - + 85 ) + + 76 * - 76 AS col2
----
-5861

skipif mysql # not compatible
query I rowsort label-9750
SELECT MIN ( DISTINCT - + 85 ) + + 76 * - 76 AS col2
----
-5861

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9751
SELECT DISTINCT - ( - 23 ) * - + 63 + + 87 - COUNT( * ) DIV - ( - 34 )
----
-1362

skipif mysql # not compatible
query I rowsort label-9751
SELECT DISTINCT - ( - 23 ) * - + 63 + + 87 - COUNT ( * ) / - ( - 34 )
----
-1362

query I rowsort
SELECT ALL + 46 * + 0 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9753
SELECT COUNT( CAST( NULL AS DECIMAL ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9753
SELECT COUNT ( CAST ( NULL AS REAL ) ) AS col2
----
0

query I rowsort
SELECT CASE 31 WHEN + 91 THEN - 18 + 14 END * 90 AS col2
----
NULL

query II rowsort
SELECT DISTINCT - 10 AS col1, - 40 AS col2
----
-10
-40

query I rowsort
SELECT ALL + ( 79 ) * - - 20 + 24 AS col0
----
1604

query I rowsort
SELECT 41 * + + 58 - - - 20 + 35
----
2393

query II rowsort
SELECT ALL - 35 AS col0, - 56 AS col0
----
-35
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-9759
SELECT + 28 AS col2, 0 * - 87 + + SUM( ALL + 4 )
----
28
4

skipif mysql # not compatible
query II rowsort label-9759
SELECT + 28 AS col2, 0 * - 87 + + SUM ( ALL + 4 )
----
28
4

query I rowsort
SELECT 94 * + 79
----
7426

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9761
SELECT + 2 / + + COUNT( * ) - - + CAST( NULL AS SIGNED ) + + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-9761
SELECT + 2 / + + COUNT ( * ) - - + CAST ( NULL AS INTEGER ) + + 29
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT + MAX( DISTINCT + NULLIF ( + 38, - 93 * - 44 ) ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-9762
SELECT + MAX ( DISTINCT + NULLIF ( + 38, - 93 * - 44 ) ) AS col1
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-9763
SELECT ALL - COUNT( * ) col2, COUNT( * ) col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-9763
SELECT ALL - COUNT ( * ) col2, COUNT ( * ) col1
----
-1
1

query I rowsort
SELECT DISTINCT + 16 * 16
----
256

query I rowsort
SELECT ( - + 35 ) * - 23 AS col2
----
805

onlyif mysql # aggregate syntax: 
query II rowsort label-9766
SELECT ALL - 4, 52 + NULLIF ( MAX( 80 ), - 2 * SUM( 76 ) ) AS col0
----
-4
132

skipif mysql # not compatible
query II rowsort label-9766
SELECT ALL - 4, 52 + NULLIF ( MAX ( 80 ), - 2 * SUM ( 76 ) ) AS col0
----
-4
132

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT - COALESCE ( 14, + + CASE ( - COUNT( * ) ) WHEN + 17 THEN NULL WHEN + 21 * + 90 THEN + 24 * - COUNT( * ) WHEN - 62 * + 59 THEN NULL ELSE NULL END ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-9767
SELECT - COALESCE ( 14, + + CASE ( - COUNT ( * ) ) WHEN + 17 THEN NULL WHEN + 21 * + 90 THEN + 24 * - COUNT ( * ) WHEN - 62 * + 59 THEN NULL ELSE NULL END ) AS col1
----
-14

query II rowsort
SELECT 31 AS col0, + ( - - 59 )
----
31
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT ALL + + COALESCE ( 3, + 60 + ( - 81 ) * COUNT( * ) ) + + 1 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-9769
SELECT ALL + + COALESCE ( 3, + 60 + ( - 81 ) * COUNT ( * ) ) + + 1 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT 96 * - - 67 * + 88 * MIN( 72 ) AS col2
----
40753152

skipif mysql # not compatible
query I rowsort label-9770
SELECT 96 * - - 67 * + 88 * MIN ( 72 ) AS col2
----
40753152

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9771
SELECT ALL + 34 DIV + CAST( - 29 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-9771
SELECT ALL + 34 / + CAST ( - 29 AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9772
SELECT + COUNT( * ) DIV 20 + + + ( - 19 ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-9772
SELECT + COUNT ( * ) / 20 + + + ( - 19 ) AS col1
----
-19

query I rowsort
SELECT ALL - - 13 + - 29 AS col2
----
-16

query I rowsort
SELECT + - ( + 12 )
----
-12

query I rowsort
SELECT ALL - 42 + 75
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT DISTINCT 69 + + + COUNT( * ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-9776
SELECT DISTINCT 69 + + + COUNT ( * ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT ALL + - COUNT( * ) * 32 * 98 * - 70
----
219520

skipif mysql # not compatible
query I rowsort label-9777
SELECT ALL + - COUNT ( * ) * 32 * 98 * - 70
----
219520

query I rowsort
SELECT DISTINCT + - 76 + + 65 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-9779
SELECT DISTINCT - 22 * - COUNT( * ) AS col0, - 11 AS col0
----
22
-11

skipif mysql # not compatible
query II rowsort label-9779
SELECT DISTINCT - 22 * - COUNT ( * ) AS col0, - 11 AS col0
----
22
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9780
SELECT - 19 DIV COUNT( * ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-9780
SELECT - 19 / COUNT ( * ) AS col1
----
-19

query II rowsort
SELECT ALL - 77 + + 63, 33 AS col2
----
-14
33

query I rowsort
SELECT - 36 * 98 AS col0
----
-3528

query I rowsort
SELECT ALL + 49 + COALESCE ( - + 36, + 55, + 0 * + 93 )
----
13

query I rowsort
SELECT - 30 + - 60 * + 82
----
-4950

query I rowsort
SELECT ALL COALESCE ( + 71, + 1, - - 51 ) AS col1
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9786
SELECT + 6 + 56 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9786
SELECT + 6 + 56 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT + MIN( 42 ) * - 31
----
-1302

skipif mysql # not compatible
query I rowsort label-9787
SELECT + MIN ( 42 ) * - 31
----
-1302

query I rowsort
SELECT ALL + ( - 59 ) - + - 93
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9789
SELECT - 77 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9789
SELECT - 77 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9790
SELECT DISTINCT + 32 - - 51 + - COUNT( * ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-9790
SELECT DISTINCT + 32 - - 51 + - COUNT ( * ) AS col2
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9791
SELECT DISTINCT 23 * + - CAST( NULL AS SIGNED ) AS col0, + 51 * + 17
----
NULL
867

skipif mysql # not compatible
query II rowsort label-9791
SELECT DISTINCT 23 * + - CAST ( NULL AS INTEGER ) AS col0, + 51 * + 17
----
NULL
867

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT - COUNT( * ) + - 75 * 54 + + 60
----
-3991

skipif mysql # not compatible
query I rowsort label-9792
SELECT - COUNT ( * ) + - 75 * 54 + + 60
----
-3991

query I rowsort
SELECT DISTINCT COALESCE ( ( 26 ), + 56 ) AS col1
----
26

query I rowsort
SELECT ALL 58 * - 89 AS col2
----
-5162

query I rowsort
SELECT DISTINCT + 87 * - 46
----
-4002

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9796
SELECT + ( + 68 ) DIV - COUNT( - + 21 )
----
-68

skipif mysql # not compatible
query I rowsort label-9796
SELECT + ( + 68 ) / - COUNT ( - + 21 )
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9797
SELECT - COUNT( * ) * - 97 AS col0, CAST( NULL AS SIGNED ) AS col0
----
97
NULL

skipif mysql # not compatible
query II rowsort label-9797
SELECT - COUNT ( * ) * - 97 AS col0, CAST ( NULL AS INTEGER ) AS col0
----
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT - CASE - 17 WHEN - ( COUNT( * ) ) * - 93 THEN NULL WHEN - 60 THEN 88 * - 26 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9798
SELECT - CASE - 17 WHEN - ( COUNT ( * ) ) * - 93 THEN NULL WHEN - 60 THEN 88 * - 26 END AS col2
----
NULL

query II rowsort
SELECT ALL 22 * + 32, ( - ( - 80 ) ) col2
----
704
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9800
SELECT + 33 * + - 23 - - COUNT( * )
----
-758

skipif mysql # not compatible
query I rowsort label-9800
SELECT + 33 * + - 23 - - COUNT ( * )
----
-758

query I rowsort
SELECT DISTINCT + 37 * + + 4 * + + 66 + 93
----
9861

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9802
SELECT ALL - 40 * + COALESCE ( - 14, + COUNT( * ) ) * - 33 + CAST( 49 AS SIGNED ) + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9802
SELECT ALL - 40 * + COALESCE ( - 14, + COUNT ( * ) ) * - 33 + CAST ( 49 AS INTEGER ) + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT DISTINCT COALESCE ( + - 19, + - ( - - COUNT( * ) ) * - COUNT( * ) ) * + 10 + 12
----
-178

skipif mysql # not compatible
query I rowsort label-9803
SELECT DISTINCT COALESCE ( + - 19, + - ( - - COUNT ( * ) ) * - COUNT ( * ) ) * + 10 + 12
----
-178

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT ALL - 61 * - NULLIF ( 58, - 53 + 87 * 81 ) * - 15 + COUNT( * ) * COUNT( * ) AS col0
----
-53069

skipif mysql # not compatible
query I rowsort label-9804
SELECT ALL - 61 * - NULLIF ( 58, - 53 + 87 * 81 ) * - 15 + COUNT ( * ) * COUNT ( * ) AS col0
----
-53069

query I rowsort
SELECT DISTINCT + - ( + ( + 57 ) )
----
-57

query I rowsort
SELECT + 99 * + 66 AS col1
----
6534

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT ALL + COUNT( * ) * + + 57 + ( - 20 ) + COUNT( * ) * ( 48 * COALESCE ( + COUNT( * ), NULLIF ( ( 1 ), 78 * 65 ), - MAX( DISTINCT 69 ) * - 8 + + 35 ) )
----
85

skipif mysql # not compatible
query I rowsort label-9807
SELECT ALL + COUNT ( * ) * + + 57 + ( - 20 ) + COUNT ( * ) * ( 48 * COALESCE ( + COUNT ( * ), NULLIF ( ( 1 ), 78 * 65 ), - MAX ( DISTINCT 69 ) * - 8 + + 35 ) )
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-9808
SELECT + 66 DIV + 19 + 83 * 11
----
916

skipif mysql # not compatible
query I rowsort label-9808
SELECT + 66 / + 19 + 83 * 11
----
916

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9809
SELECT - - 96 * - 19 - + 38 DIV + - COUNT( * )
----
-1786

skipif mysql # not compatible
query I rowsort label-9809
SELECT - - 96 * - 19 - + 38 / + - COUNT ( * )
----
-1786

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT + + SUM( + + 53 ) + 43 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-9810
SELECT + + SUM ( + + 53 ) + 43 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT - 70 * + 60 * + 72 - - - 97 + 99 * COUNT( * )
----
-302398

skipif mysql # not compatible
query I rowsort label-9811
SELECT - 70 * + 60 * + 72 - - - 97 + 99 * COUNT ( * )
----
-302398

onlyif mysql # DIV for integer division: 
query I rowsort label-9812
SELECT - ( - - COALESCE ( - 72, + 80 DIV 46 ) )
----
72

skipif mysql # not compatible
query I rowsort label-9812
SELECT - ( - - COALESCE ( - 72, + 80 / 46 ) )
----
72

query I rowsort
SELECT - - 94 * + + 70
----
6580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9814
SELECT + 78 * + 51 + + - CAST( NULL AS SIGNED ) + + 59 + - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-9814
SELECT + 78 * + 51 + + - CAST ( NULL AS INTEGER ) + + 59 + - 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT ALL + MAX( 38 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-9815
SELECT ALL + MAX ( 38 ) AS col0
----
38

query I rowsort
SELECT + 2 + + 38 + + 78 AS col1
----
118

query I rowsort
SELECT DISTINCT + + ( 51 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT ALL - - 32 * MIN( DISTINCT - 27 ) + - + 63 AS col1
----
-927

skipif mysql # not compatible
query I rowsort label-9818
SELECT ALL - - 32 * MIN ( DISTINCT - 27 ) + - + 63 AS col1
----
-927

query I rowsort
SELECT + 7 * - 21 * - 74 col1
----
10878

query I rowsort
SELECT - 13 + + 21 AS col2
----
8

query I rowsort
SELECT + ( - 22 ) AS col0
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9822
SELECT - CAST( - NULLIF ( + 68, + 54 ) AS SIGNED ) * + COALESCE ( - SUM( 79 ), 90 ) + - 81 * + 58
----
-10070

skipif mysql # not compatible
query I rowsort label-9822
SELECT - CAST ( - NULLIF ( + 68, + 54 ) AS INTEGER ) * + COALESCE ( - SUM ( 79 ), 90 ) + - 81 * + 58
----
-10070

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT DISTINCT - CASE 21 WHEN - ( 93 ) THEN + 3 WHEN + ( MAX( 17 ) ) + + 54 THEN NULL ELSE NULL END / + 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9823
SELECT DISTINCT - CASE 21 WHEN - ( 93 ) THEN + 3 WHEN + ( MAX ( 17 ) ) + + 54 THEN NULL ELSE NULL END / + 87 AS col0
----
NULL

query I rowsort
SELECT - 65 + - 26
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT + 77 * COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-9825
SELECT + 77 * COUNT ( * )
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9826
SELECT DISTINCT 0 DIV + 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9826
SELECT DISTINCT 0 / + 93 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT ALL SUM( ALL + 1 )
----
1

skipif mysql # not compatible
query I rowsort label-9827
SELECT ALL SUM ( ALL + 1 )
----
1

query II rowsort
SELECT - 72, + 81 AS col1
----
-72
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT DISTINCT + 0 * - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9829
SELECT DISTINCT + 0 * - COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT - 47 * CASE + + 79 WHEN - MIN( ALL 38 ) THEN 41 WHEN 17 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9830
SELECT - 47 * CASE + + 79 WHEN - MIN ( ALL 38 ) THEN 41 WHEN 17 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9831
SELECT ALL - CASE - NULLIF ( - 91, + 17 ) WHEN 67 THEN MAX( + 93 ) + + COUNT( * ) * 61 WHEN 75 + 27 * + CAST( COUNT( * ) AS SIGNED ) THEN NULL END * - COALESCE ( 57 + 66, + 69, - 54 + 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9831
SELECT ALL - CASE - NULLIF ( - 91, + 17 ) WHEN 67 THEN MAX ( + 93 ) + + COUNT ( * ) * 61 WHEN 75 + 27 * + CAST ( COUNT ( * ) AS INTEGER ) THEN NULL END * - COALESCE ( 57 + 66, + 69, - 54 + 27 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9832
SELECT ALL CAST( + + ( - 25 ) AS SIGNED ) AS col1, 21
----
-25
21

skipif mysql # not compatible
query II rowsort label-9832
SELECT ALL CAST ( + + ( - 25 ) AS INTEGER ) AS col1, 21
----
-25
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT - NULLIF ( - 20, + 84 ) * 30 + MIN( DISTINCT - 28 ) + + 58 * COUNT( ALL 41 ) AS col1
----
630

skipif mysql # not compatible
query I rowsort label-9833
SELECT - NULLIF ( - 20, + 84 ) * 30 + MIN ( DISTINCT - 28 ) + + 58 * COUNT ( ALL 41 ) AS col1
----
630

query I rowsort
SELECT + 35 + + + 47 * - 2 / - CASE - 8 WHEN ( 93 ) THEN 18 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 1 * - 31 col2
----
-31

query I rowsort
SELECT DISTINCT ( - 41 ) AS col0
----
-41

query I rowsort
SELECT ALL ( - - 49 )
----
49

query I rowsort
SELECT - NULLIF ( - - 54, - 41 ) + - 4 - + 6
----
-64

query I rowsort
SELECT ALL - 11 + 46
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT - SUM( + 37 ) + + 26
----
-11

skipif mysql # not compatible
query I rowsort label-9840
SELECT - SUM ( + 37 ) + + 26
----
-11

query I rowsort
SELECT - 56 + 87
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-9842
SELECT + - 85 AS col1, COUNT( * ) * 29 AS col0
----
-85
29

skipif mysql # not compatible
query II rowsort label-9842
SELECT + - 85 AS col1, COUNT ( * ) * 29 AS col0
----
-85
29

query I rowsort
SELECT - + 78 * 33
----
-2574

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT ALL - + COUNT( * ) * + - 20 + - 98
----
-78

skipif mysql # not compatible
query I rowsort label-9844
SELECT ALL - + COUNT ( * ) * + - 20 + - 98
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT - - COUNT( * ) * - CASE - SUM( DISTINCT + + 27 ) WHEN + + 40 * MAX( DISTINCT + 89 * 96 + - ( ( 24 ) + + 17 ) * - ( 40 ) ) THEN NULL WHEN COUNT( * ) + + 53 THEN NULL ELSE + 94 END * - 56 + - COUNT( * )
----
5263

skipif mysql # not compatible
query I rowsort label-9845
SELECT - - COUNT ( * ) * - CASE - SUM ( DISTINCT + + 27 ) WHEN + + 40 * MAX ( DISTINCT + 89 * 96 + - ( ( 24 ) + + 17 ) * - ( 40 ) ) THEN NULL WHEN COUNT ( * ) + + 53 THEN NULL ELSE + 94 END * - 56 + - COUNT ( * )
----
5263

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9846
SELECT ALL + COUNT( * ) * - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9846
SELECT ALL + COUNT ( * ) * - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9847
SELECT - 59 * - MIN( DISTINCT - 74 ), 36 AS col1
----
-4366
36

skipif mysql # not compatible
query II rowsort label-9847
SELECT - 59 * - MIN ( DISTINCT - 74 ), 36 AS col1
----
-4366
36

onlyif mysql # DIV for integer division: 
query I rowsort label-9848
SELECT ALL + 63 DIV + 30 + + + COALESCE ( ( 79 ), - 55 ) + - 74 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-9848
SELECT ALL + 63 / + 30 + + + COALESCE ( ( 79 ), - 55 ) + - 74 AS col2
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-9849
SELECT ALL - 51 DIV + 7 + + + 63 * + 25 col1
----
1568

skipif mysql # not compatible
query I rowsort label-9849
SELECT ALL - 51 / + 7 + + + 63 * + 25 col1
----
1568

onlyif mysql # aggregate syntax: 
query II rowsort label-9850
SELECT 33 * - - ( 7 ) AS col1, - COUNT( * )
----
231
-1

skipif mysql # not compatible
query II rowsort label-9850
SELECT 33 * - - ( 7 ) AS col1, - COUNT ( * )
----
231
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT ALL + ( + COUNT( * ) ) - + - ( + MAX( DISTINCT - + 80 ) )
----
-79

skipif mysql # not compatible
query I rowsort label-9851
SELECT ALL + ( + COUNT ( * ) ) - + - ( + MAX ( DISTINCT - + 80 ) )
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9852
SELECT 26 DIV 38 + - COUNT( * ) * + + 67 col0
----
-67

skipif mysql # not compatible
query I rowsort label-9852
SELECT 26 / 38 + - COUNT ( * ) * + + 67 col0
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9853
SELECT ALL - ( - 61 ) DIV - 28 DIV - + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-9853
SELECT ALL - ( - 61 ) / - 28 / - + COUNT ( * )
----
2

query II rowsort
SELECT 87, 77 + 90 col0
----
87
167

query I rowsort
SELECT ALL 95 - - 77 AS col2
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT 17 * - COUNT( * ) col0
----
-17

skipif mysql # not compatible
query I rowsort label-9856
SELECT 17 * - COUNT ( * ) col0
----
-17

query I rowsort
SELECT DISTINCT 13 * - 33
----
-429

query II rowsort
SELECT ALL - 98 AS col2, 76
----
-98
76

query I rowsort
SELECT ALL 48 * - - 10 AS col0
----
480

query II rowsort
SELECT 36 - + 41 AS col0, 87 * + 11 * 86 AS col1
----
-5
82302

query II rowsort
SELECT 87 AS col2, 59 + + 50 - - 0 * + 83 * - 54 AS col0
----
87
109

query I rowsort
SELECT ALL 12 * + - 41 col0
----
-492

query I rowsort
SELECT 62 * ( - 45 )
----
-2790

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9864
SELECT 33 * + COUNT( - CAST( NULL AS SIGNED ) ) * COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9864
SELECT 33 * + COUNT ( - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) AS col0
----
0

query I rowsort
SELECT COALESCE ( - 6, - 74 * - + 23 ) + 92
----
86

query I rowsort
SELECT 78 + - 77
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9867
SELECT ALL - 42 + + COUNT( + + 35 ) * - + 62 col1, 64
----
-104
64

skipif mysql # not compatible
query II rowsort label-9867
SELECT ALL - 42 + + COUNT ( + + 35 ) * - + 62 col1, 64
----
-104
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT ALL + 79 + + 62 + + 80 * + COUNT( DISTINCT - 83 ) + NULLIF ( 74, + 68 ) + 26
----
321

skipif mysql # not compatible
query I rowsort label-9868
SELECT ALL + 79 + + 62 + + 80 * + COUNT ( DISTINCT - 83 ) + NULLIF ( 74, + 68 ) + 26
----
321

onlyif mysql # DIV for integer division: 
query I rowsort label-9869
SELECT ALL 45 DIV - + 32
----
-1

skipif mysql # not compatible
query I rowsort label-9869
SELECT ALL 45 / - + 32
----
-1

query I rowsort
SELECT DISTINCT 4 + - 52 AS col0
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9871
SELECT COUNT( * ) * + 11 * - 69 + - + 22 + + + CASE - 81 WHEN AVG ( - 52 ) * 61 THEN COUNT( ALL + 44 ) + CAST( NULL AS SIGNED ) WHEN - SUM( 6 ) * 71 THEN - COUNT( * ) + + 61 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9871
SELECT COUNT ( * ) * + 11 * - 69 + - + 22 + + + CASE - 81 WHEN AVG ( - 52 ) * 61 THEN COUNT ( ALL + 44 ) + CAST ( NULL AS INTEGER ) WHEN - SUM ( 6 ) * 71 THEN - COUNT ( * ) + + 61 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + 87 + + 68
----
155

query I rowsort
SELECT DISTINCT + 29 + - + 85
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-9874
SELECT - SUM( ALL 88 ) AS col0, 97 * 41
----
-88
3977

skipif mysql # not compatible
query II rowsort label-9874
SELECT - SUM ( ALL 88 ) AS col0, 97 * 41
----
-88
3977

query I rowsort
SELECT - 7 + + ( + + 87 ) AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT 99 * - ( + COUNT( * ) ) - + MIN( - + 20 ) + + - 17 * 7 * + 21
----
-2578

skipif mysql # not compatible
query I rowsort label-9876
SELECT 99 * - ( + COUNT ( * ) ) - + MIN ( - + 20 ) + + - 17 * 7 * + 21
----
-2578

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT ALL - + 7 * - ( + COUNT( * ) ) + + + 54 + - 75 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-9877
SELECT ALL - + 7 * - ( + COUNT ( * ) ) + + + 54 + - 75 AS col2
----
-14

query I rowsort
SELECT ALL + 46 + 25 AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT 79 - + COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-9879
SELECT 79 - + COUNT ( * )
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9880
SELECT DISTINCT - COUNT( * ), - CAST( + 25 AS SIGNED ) AS col1
----
-1
-25

skipif mysql # not compatible
query II rowsort label-9880
SELECT DISTINCT - COUNT ( * ), - CAST ( + 25 AS INTEGER ) AS col1
----
-1
-25

query II rowsort
SELECT DISTINCT - 12 AS col1, - 9
----
-12
-9

query I rowsort
SELECT ALL + + 94 - - - 86 AS col2
----
8

query I rowsort
SELECT ALL + 22 * + 58 col2
----
1276

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT + + COUNT( 29 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9884
SELECT + + COUNT ( 29 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9885
SELECT - - 15 DIV + - 81 + + + 17
----
17

skipif mysql # not compatible
query I rowsort label-9885
SELECT - - 15 / + - 81 + + + 17
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9886
SELECT - - 58 * - - 91 * COALESCE ( + 10, MAX( ALL - 10 ), 53 + - 85 DIV + 53 ) - + COALESCE ( 41 - + 96, 33 * 72 )
----
52835

skipif mysql # not compatible
query I rowsort label-9886
SELECT - - 58 * - - 91 * COALESCE ( + 10, MAX ( ALL - 10 ), 53 + - 85 / + 53 ) - + COALESCE ( 41 - + 96, 33 * 72 )
----
52835

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9887
SELECT ALL - CASE - - AVG ( DISTINCT + 98 ) WHEN + NULLIF ( + - 80, CAST( - 24 AS SIGNED ) ) / COALESCE ( 40, MIN( ALL - 88 ) ) THEN 83 END * - ( 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9887
SELECT ALL - CASE - - AVG ( DISTINCT + 98 ) WHEN + NULLIF ( + - 80, CAST ( - 24 AS INTEGER ) ) / COALESCE ( 40, MIN ( ALL - 88 ) ) THEN 83 END * - ( 71 )
----
NULL

query I rowsort
SELECT - 50 + 61 + COALESCE ( 73, + - 87 ) * - 1
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9889
SELECT 50 / 76 * - ( - CASE + CASE + + COALESCE ( + 9, + CASE 89 WHEN 77 THEN 42 / 56 ELSE - 58 END ) WHEN 21 THEN NULL WHEN COUNT( + 0 ) * 57 THEN - CASE - NULLIF ( + 13, COUNT( * ) * 46 - 13 ) WHEN 62 * 94 THEN - 15 END ELSE NULL END WHEN + 67 THEN - 7 * COUNT( * ) END ) / 38 + 87 - - AVG ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9889
SELECT 50 / 76 * - ( - CASE + CASE + + COALESCE ( + 9, + CASE 89 WHEN 77 THEN 42 / 56 ELSE - 58 END ) WHEN 21 THEN NULL WHEN COUNT ( + 0 ) * 57 THEN - CASE - NULLIF ( + 13, COUNT ( * ) * 46 - 13 ) WHEN 62 * 94 THEN - 15 END ELSE NULL END WHEN + 67 THEN - 7 * COUNT ( * ) END ) / 38 + 87 - - AVG ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9890
SELECT 27 * - + CAST( NULL AS SIGNED ) * + - ( + - 41 ) / 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9890
SELECT 27 * - + CAST ( NULL AS INTEGER ) * + - ( + - 41 ) / 34 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9891
SELECT - NULLIF ( - 28, - 24 * + - 63 ) * - MAX( 62 ) + - 61
----
-1797

skipif mysql # not compatible
query I rowsort label-9891
SELECT - NULLIF ( - 28, - 24 * + - 63 ) * - MAX ( 62 ) + - 61
----
-1797

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT 82 * COUNT( * ) * - - 12 + - 32
----
952

skipif mysql # not compatible
query I rowsort label-9892
SELECT 82 * COUNT ( * ) * - - 12 + - 32
----
952

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT - 55 * - 86 + + - COUNT( * )
----
4729

skipif mysql # not compatible
query I rowsort label-9893
SELECT - 55 * - 86 + + - COUNT ( * )
----
4729

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT COUNT( * ) * - - 87 * COALESCE ( - + 83, + - 10 ) AS col2
----
-7221

skipif mysql # not compatible
query I rowsort label-9894
SELECT COUNT ( * ) * - - 87 * COALESCE ( - + 83, + - 10 ) AS col2
----
-7221

query I rowsort
SELECT 52 * 90 * 78
----
365040

onlyif mysql # aggregate syntax: 
query II rowsort label-9896
SELECT ALL - ( + - COUNT( * ) ), COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-9896
SELECT ALL - ( + - COUNT ( * ) ), COUNT ( * )
----
1
1

query I rowsort
SELECT 33 + 29 col0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9898
SELECT 71 + CAST( NULL AS SIGNED ) + - - 54 * 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9898
SELECT 71 + CAST ( NULL AS INTEGER ) + - - 54 * 70 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9899
SELECT 42 * 32 * 17 DIV + + 18
----
1269

skipif mysql # not compatible
query I rowsort label-9899
SELECT 42 * 32 * 17 / + + 18
----
1269

query I rowsort
SELECT 78 * 57 AS col1
----
4446

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9901
SELECT + COALESCE ( 99, + 46 + - + COUNT( * ) DIV - CAST( NULL AS SIGNED ) + ( 6 ) ) * 96 + + ( + 63 - 98 * + 28 ) * 12
----
-22668

skipif mysql # not compatible
query I rowsort label-9901
SELECT + COALESCE ( 99, + 46 + - + COUNT ( * ) / - CAST ( NULL AS INTEGER ) + ( 6 ) ) * 96 + + ( + 63 - 98 * + 28 ) * 12
----
-22668

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT DISTINCT 40 * + - MIN( ALL + 59 )
----
-2360

skipif mysql # not compatible
query I rowsort label-9902
SELECT DISTINCT 40 * + - MIN ( ALL + 59 )
----
-2360

query I rowsort
SELECT ALL 58 + - CASE - 4 WHEN - - 15 THEN 91 * ( 42 ) WHEN 83 * 91 THEN 90 * 1 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT - SUM( - ( - 37 ) ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-9904
SELECT - SUM ( - ( - 37 ) ) AS col1
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9905
SELECT ALL 63 + + 67 - + - CAST( + 58 AS SIGNED ) + + 91
----
279

skipif mysql # not compatible
query I rowsort label-9905
SELECT ALL 63 + + 67 - + - CAST ( + 58 AS INTEGER ) + + 91
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT - COALESCE ( - ( - 31 ), + + 51 * + - COUNT( * ) * - COUNT( * ) )
----
-31

skipif mysql # not compatible
query I rowsort label-9906
SELECT - COALESCE ( - ( - 31 ), + + 51 * + - COUNT ( * ) * - COUNT ( * ) )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT SUM( 0 ) + NULLIF ( + 52, - ( + 0 ) - 43 * - 42 ) * - 85 AS col0
----
-4420

skipif mysql # not compatible
query I rowsort label-9907
SELECT SUM ( 0 ) + NULLIF ( + 52, - ( + 0 ) - 43 * - 42 ) * - 85 AS col0
----
-4420

query I rowsort
SELECT - + 30 col2
----
-30

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9909
SELECT DISTINCT + NULLIF ( + 68, - CAST( 81 AS SIGNED ) ) DIV - CASE + + ( + - 78 ) WHEN 2 THEN ( 40 ) WHEN 28 THEN NULL ELSE + 45 * + 29 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9909
SELECT DISTINCT + NULLIF ( + 68, - CAST ( 81 AS INTEGER ) ) / - CASE + + ( + - 78 ) WHEN 2 THEN ( 40 ) WHEN 28 THEN NULL ELSE + 45 * + 29 END AS col1
----
0

query I rowsort
SELECT ALL + 75 + NULLIF ( + 58, + 54 ) * 67
----
3961

query I rowsort
SELECT 48 + 15
----
63

query I rowsort
SELECT + 32 * 85 * - 68 + 24
----
-184936

query I rowsort
SELECT ALL NULLIF ( 11, + - 68 )
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-9914
SELECT - + ( + 2 ) * - + 27 DIV 21 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9914
SELECT - + ( + 2 ) * - + 27 / 21 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT DISTINCT + 82 - 74 + COALESCE ( - + COUNT( * ), + ( - 49 ) + - - ( COALESCE ( + 17, 24 * - 9 ) ), NULLIF ( - 32, - 15 ) ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-9915
SELECT DISTINCT + 82 - 74 + COALESCE ( - + COUNT ( * ), + ( - 49 ) + - - ( COALESCE ( + 17, 24 * - 9 ) ), NULLIF ( - 32, - 15 ) ) AS col0
----
7

query I rowsort
SELECT NULLIF ( 76, - - 25 * + 70 * + - 34 * 40 + + 9 ) AS col0
----
76

query I rowsort
SELECT - 91 + 46 * 8
----
277

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT + COALESCE ( + + 23, - - 89 ) * - + MIN( + + 36 ) + + - 95 AS col2
----
-923

skipif mysql # not compatible
query I rowsort label-9918
SELECT + COALESCE ( + + 23, - - 89 ) * - + MIN ( + + 36 ) + + - 95 AS col2
----
-923

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9919
SELECT - 83 * + + 52 + CAST( + - 4 AS SIGNED )
----
-4320

skipif mysql # not compatible
query I rowsort label-9919
SELECT - 83 * + + 52 + CAST ( + - 4 AS INTEGER )
----
-4320

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT DISTINCT + COUNT( DISTINCT + ( + 31 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9920
SELECT DISTINCT + COUNT ( DISTINCT + ( + 31 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9921
SELECT SUM( - + 52 ), + 54 AS col0
----
-52
54

skipif mysql # not compatible
query II rowsort label-9921
SELECT SUM ( - + 52 ), + 54 AS col0
----
-52
54

query I rowsort
SELECT ALL + 88 * - - 51
----
4488

query I rowsort
SELECT ALL + NULLIF ( - 48, + 64 * + 36 ) AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT ALL + MAX( ALL 55 )
----
55

skipif mysql # not compatible
query I rowsort label-9924
SELECT ALL + MAX ( ALL 55 )
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9925
SELECT - COUNT( * ) * - ( + - 43 ) * + + 33 - - COUNT( * ) DIV - 11 + - 44 DIV + 3 AS col0
----
-1433

skipif mysql # not compatible
query I rowsort label-9925
SELECT - COUNT ( * ) * - ( + - 43 ) * + + 33 - - COUNT ( * ) / - 11 + - 44 / + 3 AS col0
----
-1433

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9926
SELECT DISTINCT 51 * - 44 + + 51 + - 48 * 53 DIV + COUNT( * ) AS col0
----
-4737

skipif mysql # not compatible
query I rowsort label-9926
SELECT DISTINCT 51 * - 44 + + 51 + - 48 * 53 / + COUNT ( * ) AS col0
----
-4737

query I rowsort
SELECT + 18 - 52 AS col2
----
-34

query I rowsort
SELECT - 25 * - - 44 - + 8 + + + 24 * - ( 8 ) col2
----
-1300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9929
SELECT - COUNT( * ) DIV + 11
----
0

skipif mysql # not compatible
query I rowsort label-9929
SELECT - COUNT ( * ) / + 11
----
0

query II rowsort
SELECT + 23 AS col2, 13 + - 74 AS col2
----
23
-61

query I rowsort
SELECT + 94 + - 32 + - - 55 col2
----
117

query I rowsort
SELECT ALL 62 * 68 + 57 + + 71
----
4344

query II rowsort
SELECT DISTINCT 56 * + 5 + - 50, 59 col2
----
230
59

query I rowsort
SELECT - 40 - + 6 AS col2
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9935
SELECT DISTINCT NULLIF ( + 30, + 72 ) * - CASE - - ( - + 60 ) WHEN - - 24 * - + 31 / MAX( + CAST( 54 AS SIGNED ) ) - - 68 THEN 18 + 47 END - 31 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9935
SELECT DISTINCT NULLIF ( + 30, + 72 ) * - CASE - - ( - + 60 ) WHEN - - 24 * - + 31 / MAX ( + CAST ( 54 AS INTEGER ) ) - - 68 THEN 18 + 47 END - 31 + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT - COUNT( - - 41 )
----
-1

skipif mysql # not compatible
query I rowsort label-9936
SELECT - COUNT ( - - 41 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9937
SELECT DISTINCT COALESCE ( - 99, + + 11 * + COUNT( * ) DIV - - 95 - - + 79 DIV - 59, + 81 ) + + 50 AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-9937
SELECT DISTINCT COALESCE ( - 99, + + 11 * + COUNT ( * ) / - - 95 - - + 79 / - 59, + 81 ) + + 50 AS col0
----
-49

query I rowsort
SELECT + 86 * 95
----
8170

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT + MAX( DISTINCT + 5 )
----
5

skipif mysql # not compatible
query I rowsort label-9939
SELECT + MAX ( DISTINCT + 5 )
----
5

query I rowsort
SELECT + + CASE - 19 WHEN - 58 THEN NULL WHEN + 85 + 64 THEN NULL WHEN - 11 THEN - + 3 END + NULLIF ( + 6, ( 14 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9941
SELECT ALL + COUNT( * ) - - 10 + - - 57 * + 47 AS col0, - MAX( - 97 )
----
2690
97

skipif mysql # not compatible
query II rowsort label-9941
SELECT ALL + COUNT ( * ) - - 10 + - - 57 * + 47 AS col0, - MAX ( - 97 )
----
2690
97

query I rowsort
SELECT DISTINCT 51 * + 82 AS col2
----
4182

query I rowsort
SELECT + - 66 + + - 19 col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT ALL COUNT( * ) * - 29
----
-29

skipif mysql # not compatible
query I rowsort label-9944
SELECT ALL COUNT ( * ) * - 29
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT ALL + 86 - + + 43 + COALESCE ( COALESCE ( 36, + 34 + + 34 - - 5 ), 43 - - COUNT( * ) * ( + 22 ) )
----
79

skipif mysql # not compatible
query I rowsort label-9945
SELECT ALL + 86 - + + 43 + COALESCE ( COALESCE ( 36, + 34 + + 34 - - 5 ), 43 - - COUNT ( * ) * ( + 22 ) )
----
79

query I rowsort
SELECT - 92 + + 98
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT + 66 * 50 * - ( - + SUM( 41 ) )
----
135300

skipif mysql # not compatible
query I rowsort label-9947
SELECT + 66 * 50 * - ( - + SUM ( 41 ) )
----
135300

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT ALL MIN( + 93 )
----
93

skipif mysql # not compatible
query I rowsort label-9948
SELECT ALL MIN ( + 93 )
----
93

query I rowsort
SELECT + + 89 + - 23
----
66

query II rowsort
SELECT - 0, 37 AS col2
----
0
37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9951
SELECT NULLIF ( + COUNT( * ), - + MIN( DISTINCT - 70 ) + - CAST( NULL AS DECIMAL ) )
----
1

skipif mysql # not compatible
query I rowsort label-9951
SELECT NULLIF ( + COUNT ( * ), - + MIN ( DISTINCT - 70 ) + - CAST ( NULL AS REAL ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9952
SELECT CAST( 89 AS SIGNED )
----
89

skipif mysql # not compatible
query I rowsort label-9952
SELECT CAST ( 89 AS INTEGER )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT CASE + COUNT( * ) WHEN + 46 * + + 70 THEN 23 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9953
SELECT CASE + COUNT ( * ) WHEN + 46 * + + 70 THEN 23 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - COALESCE ( 37, + 48, 52 ) AS col2
----
-37

query I rowsort
SELECT + + 39 * + CASE - + 59 WHEN - - COALESCE ( ( + 33 ), - 20 ) * + 38 + + 42 THEN NULL ELSE + 42 * 33 END
----
54054

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT + 41 - 7 + + COUNT( * ) + + 59 * 3
----
212

skipif mysql # not compatible
query I rowsort label-9956
SELECT + 41 - 7 + + COUNT ( * ) + + 59 * 3
----
212

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT DISTINCT CASE COUNT( * ) WHEN - - COUNT( * ) - - NULLIF ( + 42, + - COALESCE ( - 33, - + 75 * - COUNT( * ) ) ) THEN NULL ELSE - ( + 82 ) END * + 10 AS col2
----
-820

skipif mysql # not compatible
query I rowsort label-9957
SELECT DISTINCT CASE COUNT ( * ) WHEN - - COUNT ( * ) - - NULLIF ( + 42, + - COALESCE ( - 33, - + 75 * - COUNT ( * ) ) ) THEN NULL ELSE - ( + 82 ) END * + 10 AS col2
----
-820

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT DISTINCT + + ( COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9958
SELECT DISTINCT + + ( COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9959
SELECT ALL + ( - + 1 ) * - ( + 14 ) * + COUNT( * ) DIV - 20 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9959
SELECT ALL + ( - + 1 ) * - ( + 14 ) * + COUNT ( * ) / - 20 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT + COALESCE ( - ( COUNT( * ) ), - COUNT( * ) / 58 + COUNT( * ), - 40, + 4 ) + + CASE 34 WHEN - 96 THEN 6 WHEN + 26 + 33 THEN 90 WHEN - COUNT( * ) - - MAX( + 25 ) * 61 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9960
SELECT + COALESCE ( - ( COUNT ( * ) ), - COUNT ( * ) / 58 + COUNT ( * ), - 40, + 4 ) + + CASE 34 WHEN - 96 THEN 6 WHEN + 26 + 33 THEN 90 WHEN - COUNT ( * ) - - MAX ( + 25 ) * 61 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9961
SELECT + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ), + 89 AS col2
----
NULL
89

skipif mysql # not compatible
query II rowsort label-9961
SELECT + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ), + 89 AS col2
----
NULL
89

onlyif mysql # DIV for integer division: 
query I rowsort label-9962
SELECT ALL 40 DIV 98 + - 26
----
-26

skipif mysql # not compatible
query I rowsort label-9962
SELECT ALL 40 / 98 + - 26
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT + 94 + - 32 * - - COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-9963
SELECT + 94 + - 32 * - - COUNT ( * )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT 55 * + MIN( DISTINCT 60 ) - - 33 + - 72 - + + 24 - + COUNT( * ) * + MIN( ALL - - 39 )
----
3198

skipif mysql # not compatible
query I rowsort label-9964
SELECT 55 * + MIN ( DISTINCT 60 ) - - 33 + - 72 - + + 24 - + COUNT ( * ) * + MIN ( ALL - - 39 )
----
3198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9965
SELECT ALL CASE AVG ( ALL 0 ) WHEN MIN( ALL - 11 ) THEN - 98 - - 10 WHEN - - 29 * + + 96 / 56 THEN NULL ELSE + COUNT( * ) END / + 58 + CAST( NULL AS SIGNED ) * 37
----
NULL

skipif mysql # not compatible
query I rowsort label-9965
SELECT ALL CASE AVG ( ALL 0 ) WHEN MIN ( ALL - 11 ) THEN - 98 - - 10 WHEN - - 29 * + + 96 / 56 THEN NULL ELSE + COUNT ( * ) END / + 58 + CAST ( NULL AS INTEGER ) * 37
----
NULL

query I rowsort
SELECT ( - - 4 ) AS col0
----
4

query I rowsort
SELECT ALL 29 * + + 92 * - 59 AS col1
----
-157412

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9968
SELECT DISTINCT 52 * - 59 + - 91 + + 8 DIV + 61 + + + 67 * COUNT( * ) - + + 13
----
-3105

skipif mysql # not compatible
query I rowsort label-9968
SELECT DISTINCT 52 * - 59 + - 91 + + 8 / + 61 + + + 67 * COUNT ( * ) - + + 13
----
-3105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9969
SELECT - CAST( 5 AS SIGNED ) + - COUNT( * ) + - + COUNT( * ) + - + 36 DIV + MIN( DISTINCT - 61 ) * - - 26
----
-7

skipif mysql # not compatible
query I rowsort label-9969
SELECT - CAST ( 5 AS INTEGER ) + - COUNT ( * ) + - + COUNT ( * ) + - + 36 / + MIN ( DISTINCT - 61 ) * - - 26
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT + COALESCE ( + + 40, + - 97, 16 + + COUNT( * ) ) * + 64 * + 3 + ( + - 94 ) * 11 AS col2
----
6646

skipif mysql # not compatible
query I rowsort label-9970
SELECT + COALESCE ( + + 40, + - 97, 16 + + COUNT ( * ) ) * + 64 * + 3 + ( + - 94 ) * 11 AS col2
----
6646

query I rowsort
SELECT ALL + 20 * + 64
----
1280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9972
SELECT CAST( NULL AS SIGNED ) * + COUNT( * ) * + - 43 * 66 + - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-9972
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + - 43 * 66 + - 51
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9973
SELECT - 70 * + 21 + - 13 DIV - + COALESCE ( - COALESCE ( + 54, + 13 + + 93 DIV 33 DIV ( 26 DIV 99 ) ), SUM( DISTINCT 47 ), 29 ) * COUNT( + 85 ) - + 64 AS col0
----
-1534

skipif mysql # not compatible
query I rowsort label-9973
SELECT - 70 * + 21 + - 13 / - + COALESCE ( - COALESCE ( + 54, + 13 + + 93 / 33 / ( 26 / 99 ) ), SUM ( DISTINCT 47 ), 29 ) * COUNT ( + 85 ) - + 64 AS col0
----
-1534

onlyif mysql # aggregate syntax: 
query II rowsort label-9974
SELECT - + COALESCE ( 47, - 1 ) * - COUNT( * ) AS col2, 92 * + COUNT( * ) * + 12 AS col2
----
47
1104

skipif mysql # not compatible
query II rowsort label-9974
SELECT - + COALESCE ( 47, - 1 ) * - COUNT ( * ) AS col2, 92 * + COUNT ( * ) * + 12 AS col2
----
47
1104

query I rowsort
SELECT DISTINCT COALESCE ( - + 67, + + CASE + - 13 WHEN - 20 THEN NULL WHEN 30 THEN NULL WHEN 0 / + 42 THEN NULL ELSE + - 78 END )
----
-67

query I rowsort
SELECT DISTINCT - + 33 * - 56
----
1848

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT DISTINCT - SUM( - + 18 ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-9977
SELECT DISTINCT - SUM ( - + 18 ) AS col2
----
18

query I rowsort
SELECT 77 + + ( + 98 ) + + 35 AS col0
----
210

query I rowsort
SELECT DISTINCT + ( 21 ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-9980
SELECT 26 - 88, 52 - - COUNT( * ) * 81 + + 0 + 35 col0
----
-62
168

skipif mysql # not compatible
query II rowsort label-9980
SELECT 26 - 88, 52 - - COUNT ( * ) * 81 + + 0 + 35 col0
----
-62
168

query I rowsort
SELECT + 59 + - 68 + - COALESCE ( + 31, 81, + 20 ) AS col2
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9982
SELECT - - COALESCE ( + 1, CAST( + 1 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-9982
SELECT - - COALESCE ( + 1, CAST ( + 1 AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT 46 + + COUNT( * ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-9983
SELECT 46 + + COUNT ( * ) AS col2
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-9984
SELECT + 16 DIV - 8 col1
----
-2

skipif mysql # not compatible
query I rowsort label-9984
SELECT + 16 / - 8 col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT - CASE 61 WHEN - COUNT( * ) * + 95 THEN NULL WHEN - 77 THEN - 6 * - - MIN( DISTINCT - - 21 ) ELSE + CASE + 5 WHEN - 72 THEN NULL WHEN 2 THEN 14 * + 44 END END + - MAX( ALL - 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9985
SELECT - CASE 61 WHEN - COUNT ( * ) * + 95 THEN NULL WHEN - 77 THEN - 6 * - - MIN ( DISTINCT - - 21 ) ELSE + CASE + 5 WHEN - 72 THEN NULL WHEN 2 THEN 14 * + 44 END END + - MAX ( ALL - 45 )
----
NULL

query I rowsort
SELECT - ( - 59 ) + - NULLIF ( - 13, - 51 ) AS col1
----
72

query I rowsort
SELECT ALL 69 + - 34 AS col0
----
35

query I rowsort
SELECT 26 + - 28
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-9989
SELECT ALL MAX( ALL 60 ) col0, ( + 85 ) * CASE COUNT( * ) WHEN + 78 * + + 32 + + + 72 THEN COUNT( * ) END
----
60
NULL

skipif mysql # not compatible
query II rowsort label-9989
SELECT ALL MAX ( ALL 60 ) col0, ( + 85 ) * CASE COUNT ( * ) WHEN + 78 * + + 32 + + + 72 THEN COUNT ( * ) END
----
60
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT - ( 54 ) + + - 47 + - MIN( + 18 ) + - 27 AS col1
----
-146

skipif mysql # not compatible
query I rowsort label-9990
SELECT - ( 54 ) + + - 47 + - MIN ( + 18 ) + - 27 AS col1
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT COUNT( * ) * 30 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-9991
SELECT COUNT ( * ) * 30 AS col0
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9992
SELECT CASE - 57 WHEN + 61 THEN 41 + 6 * - - ( + ( - SUM( + ( - CAST( ( 57 ) AS SIGNED ) ) ) ) ) * - 14 END + + 25 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9992
SELECT CASE - 57 WHEN + 61 THEN 41 + 6 * - - ( + ( - SUM ( + ( - CAST ( ( 57 ) AS INTEGER ) ) ) ) ) * - 14 END + + 25 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9993
SELECT 45 DIV + - 69
----
0

skipif mysql # not compatible
query I rowsort label-9993
SELECT 45 / + - 69
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9994
SELECT + NULLIF ( - 50, - 18 + 52 + - ( + 66 ) ) DIV - + 60 * + 89 - - 26 * - 57 * - 97 + 62 + - 82 * 41
----
140454

skipif mysql # not compatible
query I rowsort label-9994
SELECT + NULLIF ( - 50, - 18 + 52 + - ( + 66 ) ) / - + 60 * + 89 - - 26 * - 57 * - 97 + 62 + - 82 * 41
----
140454

query II rowsort
SELECT DISTINCT - 32 AS col1, - 34
----
-32
-34

query I rowsort
SELECT ALL 35 + + - 17
----
18

query I rowsort
SELECT 71 * - 69 AS col2
----
-4899

query I rowsort
SELECT ALL 47 + + - 50 + - 1 AS col0
----
-4

query I rowsort
SELECT ALL + 25 * + 9 AS col1
----
225

