hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-0
SELECT - COUNT( * ) * 60 * + 11
----
-660

skipif mysql # not compatible
query I rowsort label-0
SELECT - COUNT ( * ) * 60 * + 11
----
-660

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

query I rowsort
SELECT + 71 + + 42
----
113

query I rowsort
SELECT + 89 * - 63 AS col2
----
-5607

query I rowsort
SELECT - ( + 0 ) * + 85 * 13
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6
SELECT - MAX( 62 ) + + - 52 AS col2
----
-114

skipif mysql # not compatible
query I rowsort label-6
SELECT - MAX ( 62 ) + + - 52 AS col2
----
-114

query I rowsort
SELECT ALL + - 8 * - 65
----
520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8
SELECT - + NULLIF ( - 70, + 98 ) * 6 * + COALESCE ( + COALESCE ( 6, + COUNT( * ), CAST( + COUNT( * ) AS SIGNED ), + 95 - 39 ), COUNT( * ) * + 92, + - 34 + - 86 - + COUNT( * ) )
----
2520

skipif mysql # not compatible
query I rowsort label-8
SELECT - + NULLIF ( - 70, + 98 ) * 6 * + COALESCE ( + COALESCE ( 6, + COUNT ( * ), CAST ( + COUNT ( * ) AS INTEGER ), + 95 - 39 ), COUNT ( * ) * + 92, + - 34 + - 86 - + COUNT ( * ) )
----
2520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9
SELECT ALL - 11 * - + 52 * - 17 DIV COUNT( * ) AS col2
----
-9724

skipif mysql # not compatible
query I rowsort label-9
SELECT ALL - 11 * - + 52 * - 17 / COUNT ( * ) AS col2
----
-9724

query II rowsort
SELECT - 48, 98 - - 22 AS col2
----
-48
120

query I rowsort
SELECT ALL + + 4 + 55
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-12
SELECT ALL + - 95 + 12 * - 49 + - MAX( ALL 69 )
----
-752

skipif mysql # not compatible
query I rowsort label-12
SELECT ALL + - 95 + 12 * - 49 + - MAX ( ALL 69 )
----
-752

onlyif mysql # aggregate syntax: 
query I rowsort label-13
SELECT DISTINCT + + 79 * - MAX( DISTINCT + 46 )
----
-3634

skipif mysql # not compatible
query I rowsort label-13
SELECT DISTINCT + + 79 * - MAX ( DISTINCT + 46 )
----
-3634

query I rowsort
SELECT ALL 31 + + 85
----
116

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

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

query I rowsort
SELECT - 44 + + - 25
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-17
SELECT + ( - 88 ) * - 1 / ( - ( ( + CAST( NULL AS SIGNED ) ) ) ) - - + 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-17
SELECT + ( - 88 ) * - 1 / ( - ( ( + CAST ( NULL AS INTEGER ) ) ) ) - - + 5 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-18
SELECT + 20 / - - CAST( NULL AS SIGNED ) - CASE - + 68 WHEN - + 48 * + 22 + - 32 + - 41 - - 48 + 54 * CAST( NULL AS SIGNED ) THEN NULL WHEN - + COUNT( * ) * - + 48 THEN NULL ELSE + 51 + - 86 * - 34 END
----
NULL

skipif mysql # not compatible
query I rowsort label-18
SELECT + 20 / - - CAST ( NULL AS INTEGER ) - CASE - + 68 WHEN - + 48 * + 22 + - 32 + - 41 - - 48 + 54 * CAST ( NULL AS INTEGER ) THEN NULL WHEN - + COUNT ( * ) * - + 48 THEN NULL ELSE + 51 + - 86 * - 34 END
----
NULL

query II rowsort
SELECT ALL - - 55 AS col1, 76 AS col0
----
55
76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-20
SELECT DISTINCT + + CASE 56 WHEN + 52 THEN - NULLIF ( - 36, - NULLIF ( + 12, - 95 - + 18 - - 38 * + 23 ) ) WHEN + - 58 THEN + 71 * - CASE + - NULLIF ( - ( 31 ), + 21 + MIN( 70 ) ) WHEN 87 THEN NULL ELSE - CAST( CASE 95 WHEN + NULLIF ( 33, - 97 ) THEN + 61 - - 52 END AS DECIMAL ) END / ( 79 + 80 ) + 5 WHEN 33 - - MIN( ALL 12 - + 28 ) THEN NULL ELSE NULL END + + NULLIF ( - 28, 71 * 84 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-20
SELECT DISTINCT + + CASE 56 WHEN + 52 THEN - NULLIF ( - 36, - NULLIF ( + 12, - 95 - + 18 - - 38 * + 23 ) ) WHEN + - 58 THEN + 71 * - CASE + - NULLIF ( - ( 31 ), + 21 + MIN ( 70 ) ) WHEN 87 THEN NULL ELSE - CAST ( CASE 95 WHEN + NULLIF ( 33, - 97 ) THEN + 61 - - 52 END AS REAL ) END / ( 79 + 80 ) + 5 WHEN 33 - - MIN ( ALL 12 - + 28 ) THEN NULL ELSE NULL END + + NULLIF ( - 28, 71 * 84 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-21
SELECT ALL + CASE NULLIF ( 63, + 64 ) WHEN SUM( ALL 54 ) THEN + 61 ELSE NULL END + + COUNT( - 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-21
SELECT ALL + CASE NULLIF ( 63, + 64 ) WHEN SUM ( ALL 54 ) THEN + 61 ELSE NULL END + + COUNT ( - 47 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-22
SELECT ALL - 55 + 10 + + ( + - 79 ) * + ( COUNT( * ) )
----
-124

skipif mysql # not compatible
query I rowsort label-22
SELECT ALL - 55 + 10 + + ( + - 79 ) * + ( COUNT ( * ) )
----
-124

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

query I rowsort
SELECT DISTINCT + 14 * - 90 * 69 * - 44
----
3825360

onlyif mysql # DIV for integer division: 
query I rowsort label-25
SELECT 87 * 43 - 5 * + 72 DIV - 64 + 45
----
3791

skipif mysql # not compatible
query I rowsort label-25
SELECT 87 * 43 - 5 * + 72 / - 64 + 45
----
3791

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-28
SELECT - 19 DIV - 27 - 36 - 7
----
-43

skipif mysql # not compatible
query I rowsort label-28
SELECT - 19 / - 27 - 36 - 7
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-29
SELECT COUNT( * ) + + - AVG ( DISTINCT + - 86 ) * - - 22 + CAST( NULL AS SIGNED ) - - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-29
SELECT COUNT ( * ) + + - AVG ( DISTINCT + - 86 ) * - - 22 + CAST ( NULL AS INTEGER ) - - 86
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-30
SELECT ALL - ( + 84 ) AS col2, ( + - 99 ) * + NULLIF ( CAST( NULL AS SIGNED ), - 99 * - COUNT( DISTINCT 22 ) * CAST( NULL AS SIGNED ) + + 16 ) + - - 22 - - ( - 79 ) + + 71 + - AVG ( DISTINCT - 91 ) * + 3 AS col2
----
-84
NULL

skipif mysql # not compatible
query II rowsort label-30
SELECT ALL - ( + 84 ) AS col2, ( + - 99 ) * + NULLIF ( CAST ( NULL AS INTEGER ), - 99 * - COUNT ( DISTINCT 22 ) * CAST ( NULL AS INTEGER ) + + 16 ) + - - 22 - - ( - 79 ) + + 71 + - AVG ( DISTINCT - 91 ) * + 3 AS col2
----
-84
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-31
SELECT ALL 19 * 21 / CASE + - NULLIF ( - + CASE 43 WHEN - + MAX( - 98 ) THEN - 85 / + CAST( NULLIF ( - 55, - 40 - + COUNT( * ) * - CAST( - 17 AS SIGNED ) * + 5 ) AS SIGNED ) ELSE NULL END, 63 ) WHEN - 80 THEN + COUNT( * ) * - 20 WHEN - 55 / + COALESCE ( + 89, + 83 ) + 84 THEN + 9 + 16 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-31
SELECT ALL 19 * 21 / CASE + - NULLIF ( - + CASE 43 WHEN - + MAX ( - 98 ) THEN - 85 / + CAST ( NULLIF ( - 55, - 40 - + COUNT ( * ) * - CAST ( - 17 AS INTEGER ) * + 5 ) AS INTEGER ) ELSE NULL END, 63 ) WHEN - 80 THEN + COUNT ( * ) * - 20 WHEN - 55 / + COALESCE ( + 89, + 83 ) + 84 THEN + 9 + 16 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-32
SELECT ALL 31 DIV - 67 AS col2, 44 - - COUNT( ALL 15 )
----
0
45

skipif mysql # not compatible
query II rowsort label-32
SELECT ALL 31 / - 67 AS col2, 44 - - COUNT ( ALL 15 )
----
0
45

query II rowsort
SELECT 27 * + 75, - 79 - - 88 AS col1
----
2025
9

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT CASE - 29 WHEN - - 85 * - 69 THEN + 30 ELSE NULL END * - ( - + COUNT( * ) ) + + + 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-34
SELECT CASE - 29 WHEN - - 85 * - 69 THEN + 30 ELSE NULL END * - ( - + COUNT ( * ) ) + + + 90 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-35
SELECT 34 DIV + 42, + COUNT( * ) DIV 20 DIV + 78 + 56 + - - 92 AS col2
----
0
148

skipif mysql # not compatible
query II rowsort label-35
SELECT 34 / + 42, + COUNT ( * ) / 20 / + 78 + 56 + - - 92 AS col2
----
0
148

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

skipif mysql # not compatible
query I rowsort label-36
SELECT 69 * + - 47 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-37
SELECT ALL 59 * - + COALESCE ( + - 70, + ( + + 35 ) + - COALESCE ( + - 26, + + 15 * + 12 ), + 86, - NULLIF ( + 67, - 13 * - 48 * + - 87 ) DIV + + COUNT( 58 ) + + 8 )
----
4130

skipif mysql # not compatible
query I rowsort label-37
SELECT ALL 59 * - + COALESCE ( + - 70, + ( + + 35 ) + - COALESCE ( + - 26, + + 15 * + 12 ), + 86, - NULLIF ( + 67, - 13 * - 48 * + - 87 ) / + + COUNT ( 58 ) + + 8 )
----
4130

query I rowsort
SELECT + 49 + - 85
----
-36

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

query I rowsort
SELECT ALL + 82 * + 48 AS col2
----
3936

query I rowsort
SELECT DISTINCT + 60 + + + 73
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-42
SELECT ALL COALESCE ( + + 96, 5, - 3 + - + 30 * - 0 ) + 25 + - + 52 * - COUNT( * )
----
173

skipif mysql # not compatible
query I rowsort label-42
SELECT ALL COALESCE ( + + 96, 5, - 3 + - + 30 * - 0 ) + 25 + - + 52 * - COUNT ( * )
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT + COUNT( * ) - - NULLIF ( + - 79, 41 - + 91 ) + - CASE + - 75 WHEN + NULLIF ( - - COUNT( * ), 49 ) THEN NULL ELSE - + 93 END * - - 70 + + COUNT( * )
----
6433

skipif mysql # not compatible
query I rowsort label-43
SELECT + COUNT ( * ) - - NULLIF ( + - 79, 41 - + 91 ) + - CASE + - 75 WHEN + NULLIF ( - - COUNT ( * ), 49 ) THEN NULL ELSE - + 93 END * - - 70 + + COUNT ( * )
----
6433

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-44
SELECT - 29 * COUNT( * ) DIV - MIN( DISTINCT + + 55 ) * + 85 * 79 col0
----
0

skipif mysql # not compatible
query I rowsort label-44
SELECT - 29 * COUNT ( * ) / - MIN ( DISTINCT + + 55 ) * + 85 * 79 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-45
SELECT - 98 + + + 68 + 56 + + + 7 * + COUNT( * ) * ( 38 ) DIV 1 + - 97
----
195

skipif mysql # not compatible
query I rowsort label-45
SELECT - 98 + + + 68 + 56 + + + 7 * + COUNT ( * ) * ( 38 ) / 1 + - 97
----
195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-46
SELECT DISTINCT - COUNT( * ) + + CASE ( 50 ) WHEN 76 THEN - - 57 + CAST( + 94 AS SIGNED ) * - 15 END * - 80 * - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-46
SELECT DISTINCT - COUNT ( * ) + + CASE ( 50 ) WHEN 76 THEN - - 57 + CAST ( + 94 AS INTEGER ) * - 15 END * - 80 * - 36
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-47
SELECT + NULLIF ( + 49, - ( CAST( + 56 AS SIGNED ) ) * - 41 ) + + 96 AS col1
----
145

skipif mysql # not compatible
query I rowsort label-47
SELECT + NULLIF ( + 49, - ( CAST ( + 56 AS INTEGER ) ) * - 41 ) + + 96 AS col1
----
145

query I rowsort
SELECT ALL - 67 + + 11 + - + 89
----
-145

query I rowsort
SELECT DISTINCT - + 63 * + 94 AS col1
----
-5922

query I rowsort
SELECT + 78 + + 33 * NULLIF ( + - 49, - AVG ( ALL - - 85 ) + + 13 )
----
-1539

query I rowsort
SELECT ALL 48 + - 99 - - + 58 + - 67 + + 79 * + + 45 col1
----
3495

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-53
SELECT ALL - + 88 - + SUM( DISTINCT + 82 ) * - 11 AS col2
----
814

skipif mysql # not compatible
query I rowsort label-53
SELECT ALL - + 88 - + SUM ( DISTINCT + 82 ) * - 11 AS col2
----
814

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-54
SELECT 78 * COALESCE ( + + 82, - 65 / - COUNT( * ) + 3 + 93 + + 55 / - 5 * + 70 + 34 * - 28 * - - ( - 93 ) * + COUNT( * ) + - 96 + 56 + - 9 * 81 ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-54
SELECT 78 * COALESCE ( + + 82, - 65 / - COUNT ( * ) + 3 + 93 + + 55 / - 5 * + 70 + 34 * - 28 * - - ( - 93 ) * + COUNT ( * ) + - 96 + 56 + - 9 * 81 ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT + 35 AS col1, 37
----
35
37

query I rowsort
SELECT 92 * 26 + 72 + + 55 AS col0
----
2519

query I rowsort
SELECT ALL - ( - 80 ) - - + 76 AS col0
----
156

query I rowsort
SELECT 99 * - 13 AS col1
----
-1287

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-59
SELECT - 53 DIV 35 + COUNT( ALL 97 )
----
0

skipif mysql # not compatible
query I rowsort label-59
SELECT - 53 / 35 + COUNT ( ALL 97 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-60
SELECT DISTINCT - CAST( + NULLIF ( - 38, 2 ) AS SIGNED ) col1
----
38

skipif mysql # not compatible
query I rowsort label-60
SELECT DISTINCT - CAST ( + NULLIF ( - 38, 2 ) AS INTEGER ) col1
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-61
SELECT ALL - CASE + CAST( - - 97 AS SIGNED ) WHEN + 25 * - + CASE - MAX( DISTINCT + 73 ) WHEN CAST( 78 AS DECIMAL ) / 10 * - 57 THEN 60 WHEN ( - 27 ) THEN NULL WHEN COUNT( ( 42 ) ) - - CASE 17 WHEN + 19 * + 31 + 45 THEN - 18 * 44 WHEN COUNT( * ) * COALESCE ( - 50, 90 ) THEN + 39 ELSE NULL END THEN 30 END * - COUNT( * ) + 28 THEN - 1 - 57 * - 47 WHEN - 15 * - 50 THEN 54 ELSE 38 END
----
-38

skipif mysql # not compatible
query I rowsort label-61
SELECT ALL - CASE + CAST ( - - 97 AS INTEGER ) WHEN + 25 * - + CASE - MAX ( DISTINCT + 73 ) WHEN CAST ( 78 AS REAL ) / 10 * - 57 THEN 60 WHEN ( - 27 ) THEN NULL WHEN COUNT ( ( 42 ) ) - - CASE 17 WHEN + 19 * + 31 + 45 THEN - 18 * 44 WHEN COUNT ( * ) * COALESCE ( - 50, 90 ) THEN + 39 ELSE NULL END THEN 30 END * - COUNT ( * ) + 28 THEN - 1 - 57 * - 47 WHEN - 15 * - 50 THEN 54 ELSE 38 END
----
-38

query II rowsort
SELECT ALL - 92, 65 + 84 AS col0
----
-92
149

query I rowsort
SELECT 34 * 16 AS col2
----
544

query II rowsort
SELECT DISTINCT - 76 col1, + 72 + + - 58
----
-76
14

query I rowsort
SELECT DISTINCT 78 * 6 * + 89 AS col1
----
41652

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-66
SELECT ALL - CAST( + 72 AS SIGNED ) * - 37 AS col0, + CAST( NULL AS DECIMAL ) col0
----
2664
NULL

skipif mysql # not compatible
query II rowsort label-66
SELECT ALL - CAST ( + 72 AS INTEGER ) * - 37 AS col0, + CAST ( NULL AS REAL ) col0
----
2664
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-67
SELECT 29 * COALESCE ( - 39, + MAX( 65 ) * + ( - CASE ( + - 75 ) WHEN + 66 THEN + COUNT( * ) * + ( 48 ) * 29 * + ( + + COALESCE ( + - 16, - 89 * 55 ) ) + - COUNT( ALL 86 + + 96 * + 80 ) DIV + 26 END ), + CAST( NULL AS SIGNED ) - 11 * - 53 ) - + COUNT( * ) AS col2
----
-1132

skipif mysql # not compatible
query I rowsort label-67
SELECT 29 * COALESCE ( - 39, + MAX ( 65 ) * + ( - CASE ( + - 75 ) WHEN + 66 THEN + COUNT ( * ) * + ( 48 ) * 29 * + ( + + COALESCE ( + - 16, - 89 * 55 ) ) + - COUNT ( ALL 86 + + 96 * + 80 ) / + 26 END ), + CAST ( NULL AS INTEGER ) - 11 * - 53 ) - + COUNT ( * ) AS col2
----
-1132

query I rowsort
SELECT 24 * - 64
----
-1536

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-69
SELECT - NULLIF ( - COUNT( * ), 35 + - 91 - - - 2 ) * 84 * ( - 19 ) DIV - - 69 + - ( - + 96 ) + ( + 49 )
----
122

skipif mysql # not compatible
query I rowsort label-69
SELECT - NULLIF ( - COUNT ( * ), 35 + - 91 - - - 2 ) * 84 * ( - 19 ) / - - 69 + - ( - + 96 ) + ( + 49 )
----
122

query I rowsort
SELECT ALL - ( + 54 ) AS col0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-71
SELECT + 70, 84 * - - CAST( NULL AS SIGNED ) - + 27 AS col0
----
70
NULL

skipif mysql # not compatible
query II rowsort label-71
SELECT + 70, 84 * - - CAST ( NULL AS INTEGER ) - + 27 AS col0
----
70
NULL

query II rowsort
SELECT ALL - 8 AS col0, 48
----
-8
48

query I rowsort
SELECT ALL 77 + - 3
----
74

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

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

query I rowsort
SELECT + 38 - + - 96 AS col2
----
134

query I rowsort
SELECT ALL - 11 + + - 67
----
-78

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-78
SELECT ALL ( + 62 ) + + 61 + + - ( - CASE + ( + 61 ) WHEN + COALESCE ( 56, + COUNT( 22 ) + + ( COALESCE ( + 46, - 10 * - ( + 2 ) + + + 36 ) ) ) THEN - 81 ELSE 53 END ) + 60 * COUNT( * ) * MIN( DISTINCT ( 38 ) )
----
2456

skipif mysql # not compatible
query I rowsort label-78
SELECT ALL ( + 62 ) + + 61 + + - ( - CASE + ( + 61 ) WHEN + COALESCE ( 56, + COUNT ( 22 ) + + ( COALESCE ( + 46, - 10 * - ( + 2 ) + + + 36 ) ) ) THEN - 81 ELSE 53 END ) + 60 * COUNT ( * ) * MIN ( DISTINCT ( 38 ) )
----
2456

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-79
SELECT DISTINCT - CAST( 60 AS SIGNED ) * - 10 + + ( + 94 ) + 72
----
766

skipif mysql # not compatible
query I rowsort label-79
SELECT DISTINCT - CAST ( 60 AS INTEGER ) * - 10 + + ( + 94 ) + 72
----
766

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-80
SELECT CAST( 51 AS SIGNED ) DIV - 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-80
SELECT CAST ( 51 AS INTEGER ) / - 91 AS col2
----
0

query I rowsort
SELECT DISTINCT - 29 + - 8 col0
----
-37

query II rowsort
SELECT - + 85, - 75 * 29 AS col2
----
-85
-2175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-83
SELECT CASE - 69 WHEN + CAST( + ( - - 18 ) AS SIGNED ) THEN + CAST( NULL AS SIGNED ) + - + 69 / - + 51 * - + 74 * - - 17 WHEN + 65 + - - CAST( - - 38 AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-83
SELECT CASE - 69 WHEN + CAST ( + ( - - 18 ) AS INTEGER ) THEN + CAST ( NULL AS INTEGER ) + - + 69 / - + 51 * - + 74 * - - 17 WHEN + 65 + - - CAST ( - - 38 AS INTEGER ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL + ( - 47 ) + - 27
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-85
SELECT ( COUNT( * ) ) * CAST( + + 6 AS SIGNED ) DIV + 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-85
SELECT ( COUNT ( * ) ) * CAST ( + + 6 AS INTEGER ) / + 90 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-86
SELECT + 49 / - 59 + + 70 * - CASE + NULLIF ( - 86, + - 25 - - ( 45 ) * - 19 ) WHEN + + 57 * - - 97 * + COUNT( * ) * + + 8 THEN NULL WHEN + + 69 THEN COUNT( * ) + - + SUM( ALL - + 95 ) ELSE NULL END * COUNT( * ) - + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-86
SELECT + 49 / - 59 + + 70 * - CASE + NULLIF ( - 86, + - 25 - - ( 45 ) * - 19 ) WHEN + + 57 * - - 97 * + COUNT ( * ) * + + 8 THEN NULL WHEN + + 69 THEN COUNT ( * ) + - + SUM ( ALL - + 95 ) ELSE NULL END * COUNT ( * ) - + 9
----
NULL

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-89
SELECT ALL + 57, - 14 DIV + - 93 AS col1
----
57
0

skipif mysql # not compatible
query II rowsort label-89
SELECT ALL + 57, - 14 / + - 93 AS col1
----
57
0

query II rowsort
SELECT - - 0 AS col1, 76 + 21
----
0
97

query I rowsort
SELECT + - 63 + - - 37 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT ALL + COALESCE ( + + 11, - - COUNT( * ) * + COUNT( * ) ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-92
SELECT ALL + COALESCE ( + + 11, - - COUNT ( * ) * + COUNT ( * ) ) AS col2
----
11

query I rowsort
SELECT + 62 * 95 * - 23 AS col1
----
-135470

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-94
SELECT - COUNT( * ) DIV + COUNT( * ) + - 4 DIV - + 15 * - + 95
----
-1

skipif mysql # not compatible
query I rowsort label-94
SELECT - COUNT ( * ) / + COUNT ( * ) + - 4 / - + 15 * - + 95
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-95
SELECT ALL - 33 * + COUNT( * ) AS col1, 21 col0
----
-33
21

skipif mysql # not compatible
query II rowsort label-95
SELECT ALL - 33 * + COUNT ( * ) AS col1, 21 col0
----
-33
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-96
SELECT ALL - NULLIF ( + 32, + + CAST( NULL AS SIGNED ) * - COUNT( * ) * - 63 * + MAX( + 26 ) ) * 75 * 73 DIV - - 55 AS col0
----
-3185

skipif mysql # not compatible
query I rowsort label-96
SELECT ALL - NULLIF ( + 32, + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * - 63 * + MAX ( + 26 ) ) * 75 * 73 / - - 55 AS col0
----
-3185

onlyif mysql # aggregate syntax: 
query I rowsort label-97
SELECT DISTINCT MIN( DISTINCT - 35 ) * + COUNT( ALL - 66 ) * 35 AS col0
----
-1225

skipif mysql # not compatible
query I rowsort label-97
SELECT DISTINCT MIN ( DISTINCT - 35 ) * + COUNT ( ALL - 66 ) * 35 AS col0
----
-1225

query I rowsort
SELECT NULLIF ( - - 80, + 52 )
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-99
SELECT - 84 DIV - 58
----
1

skipif mysql # not compatible
query I rowsort label-99
SELECT - 84 / - 58
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-100
SELECT ALL + CAST( NULL AS SIGNED ) * 97 col1
----
NULL

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

query I rowsort
SELECT + 96 + + + 77 * + NULLIF ( - 74, 24 ) AS col1
----
-5602

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-102
SELECT + 66 * - CAST( NULL AS SIGNED ) * + - 67 - + ( + 6 ) * 98 - - - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-102
SELECT + 66 * - CAST ( NULL AS INTEGER ) * + - 67 - + ( + 6 ) * 98 - - - 87
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-103
SELECT + 72 + - + CAST( + 69 AS SIGNED ) + 72 + CAST( - 90 AS SIGNED ) - - - 44 * ( CAST( 99 AS SIGNED ) ) * + 82 col1
----
-357207

skipif mysql # not compatible
query I rowsort label-103
SELECT + 72 + - + CAST ( + 69 AS INTEGER ) + 72 + CAST ( - 90 AS INTEGER ) - - - 44 * ( CAST ( 99 AS INTEGER ) ) * + 82 col1
----
-357207

onlyif mysql # aggregate syntax: 
query I rowsort label-104
SELECT NULLIF ( + + COUNT( * ), - + 78 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-104
SELECT NULLIF ( + + COUNT ( * ), - + 78 ) AS col2
----
1

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

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

query I rowsort
SELECT COALESCE ( + 14, - + 52 )
----
14

query I rowsort
SELECT ALL 97 * - 57 + + 37 AS col2
----
-5492

query I rowsort
SELECT 98 * 6 + - 92 + - - 95 col0
----
591

query I rowsort
SELECT - 59 * - - 23 AS col1
----
-1357

query I rowsort
SELECT - NULLIF ( 62, + ( - 3 ) * + + 50 ) + + 49 col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT ALL MAX( ALL 18 ) * 91 + - 70 + + 24 AS col0
----
1592

skipif mysql # not compatible
query I rowsort label-111
SELECT ALL MAX ( ALL 18 ) * 91 + - 70 + + 24 AS col0
----
1592

query I rowsort
SELECT ALL COALESCE ( - 22, - + 4 + - 65, + 68 - + - ( ( + 18 ) ) + 94 ) * + + 87 + - 10
----
-1924

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-113
SELECT ALL + NULLIF ( - 92, 75 + + 31 ) AS col0, 45 DIV - MAX( DISTINCT - - 56 ) * 17
----
-92
0

skipif mysql # not compatible
query II rowsort label-113
SELECT ALL + NULLIF ( - 92, 75 + + 31 ) AS col0, 45 / - MAX ( DISTINCT - - 56 ) * 17
----
-92
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-114
SELECT ALL + COALESCE ( - CAST( - 36 AS SIGNED ), + 95 + 63 + - COUNT( * ) * - + 67, COALESCE ( + COUNT( DISTINCT - - 9 ), + 98 * + 55 ) ) * 44 * - + COUNT( * ) * + COUNT( * ) * + COUNT( * ) * 61
----
-96624

skipif mysql # not compatible
query I rowsort label-114
SELECT ALL + COALESCE ( - CAST ( - 36 AS INTEGER ), + 95 + 63 + - COUNT ( * ) * - + 67, COALESCE ( + COUNT ( DISTINCT - - 9 ), + 98 * + 55 ) ) * 44 * - + COUNT ( * ) * + COUNT ( * ) * + COUNT ( * ) * 61
----
-96624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-115
SELECT - + 11 * - 64 + + + COALESCE ( 62, - MIN( - 27 ) DIV + 1 ) - + - COUNT( * )
----
767

skipif mysql # not compatible
query I rowsort label-115
SELECT - + 11 * - 64 + + + COALESCE ( 62, - MIN ( - 27 ) / + 1 ) - + - COUNT ( * )
----
767

query I rowsort
SELECT + + NULLIF ( 83, + + 7 * + 40 ) + + - 30 + 67 AS col0
----
120

query I rowsort
SELECT ALL - - 22 * + + ( + COALESCE ( ( - 97 ), - 67 ) ) - - 96
----
-2038

query I rowsort
SELECT + - 30 + - 27 AS col0
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-119
SELECT - 33 + + 94, - COUNT( * ) + + 43 + - + 52 + + COUNT( * ) * - + ( + 74 ) AS col0
----
61
-84

skipif mysql # not compatible
query II rowsort label-119
SELECT - 33 + + 94, - COUNT ( * ) + + 43 + - + 52 + + COUNT ( * ) * - + ( + 74 ) AS col0
----
61
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT DISTINCT - + 92 - 23 + COUNT( * ) + - + 14 * - NULLIF ( - 66, + 97 ) AS col2
----
-1038

skipif mysql # not compatible
query I rowsort label-120
SELECT DISTINCT - + 92 - 23 + COUNT ( * ) + - + 14 * - NULLIF ( - 66, + 97 ) AS col2
----
-1038

query I rowsort
SELECT - 47 + - 77
----
-124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-122
SELECT DISTINCT - COALESCE ( + CAST( - 98 AS SIGNED ), - + 73 ) - 0 * - COUNT( * ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-122
SELECT DISTINCT - COALESCE ( + CAST ( - 98 AS INTEGER ), - + 73 ) - 0 * - COUNT ( * ) AS col0
----
98

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-124
SELECT ALL 4 * - + 68 AS col1, - ( ( 57 ) ) AS col0, + 15 * + 79 * CAST( NULL AS SIGNED ) AS col2
----
-272
-57
NULL

skipif mysql # not compatible
query III rowsort label-124
SELECT ALL 4 * - + 68 AS col1, - ( ( 57 ) ) AS col0, + 15 * + 79 * CAST ( NULL AS INTEGER ) AS col2
----
-272
-57
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-125
SELECT ALL NULLIF ( 88, - + 32 * + MAX( ALL - NULLIF ( 37, - - 18 * 14 ) ) ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-125
SELECT ALL NULLIF ( 88, - + 32 * + MAX ( ALL - NULLIF ( 37, - - 18 * 14 ) ) ) AS col1
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-126
SELECT + + 62 + + - 9 + - 33 + 23 AS col1, 11 * + + NULLIF ( + 63, - - 36 ) + MAX( - 12 ) + 96 * - 30 - + - 56 * + + COUNT( * )
----
43
-2143

skipif mysql # not compatible
query II rowsort label-126
SELECT + + 62 + + - 9 + - 33 + 23 AS col1, 11 * + + NULLIF ( + 63, - - 36 ) + MAX ( - 12 ) + 96 * - 30 - + - 56 * + + COUNT ( * )
----
43
-2143

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT DISTINCT MIN( - - 57 ) - + MAX( ALL - - 24 ) - + MIN( ALL + 28 ) + COALESCE ( + 51, + 23 * + 72 + - 80 * - COUNT( * ), 43 )
----
56

skipif mysql # not compatible
query I rowsort label-127
SELECT DISTINCT MIN ( - - 57 ) - + MAX ( ALL - - 24 ) - + MIN ( ALL + 28 ) + COALESCE ( + 51, + 23 * + 72 + - 80 * - COUNT ( * ), 43 )
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-128
SELECT + 97 + COALESCE ( - NULLIF ( - 55, - COUNT( * ) + + 19 * + + 41 ), + ( + CAST( NULL AS SIGNED ) ) * - 15 + + 73 + 36 - - - 23 DIV + - 97 * + 65 * - + NULLIF ( 30, - - 73 ) * + 90 * + ( 4 ) + - 75, 19 ) - 53 * 49
----
-2445

skipif mysql # not compatible
query I rowsort label-128
SELECT + 97 + COALESCE ( - NULLIF ( - 55, - COUNT ( * ) + + 19 * + + 41 ), + ( + CAST ( NULL AS INTEGER ) ) * - 15 + + 73 + 36 - - - 23 / + - 97 * + 65 * - + NULLIF ( 30, - - 73 ) * + 90 * + ( 4 ) + - 75, 19 ) - 53 * 49
----
-2445

query I rowsort
SELECT + NULLIF ( - 22, + 66 + - 51 ) + - - 68
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT + ( 29 ) + COUNT( * ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-130
SELECT + ( 29 ) + COUNT ( * ) AS col0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-131
SELECT + 44 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-131
SELECT + 44 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-132
SELECT ALL 50 * - MAX( + + 18 )
----
-900

skipif mysql # not compatible
query I rowsort label-132
SELECT ALL 50 * - MAX ( + + 18 )
----
-900

query I rowsort
SELECT + 56 + + 42
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-134
SELECT ALL + 38 * + CAST( 32 AS SIGNED ) AS col2
----
1216

skipif mysql # not compatible
query I rowsort label-134
SELECT ALL + 38 * + CAST ( 32 AS INTEGER ) AS col2
----
1216

query I rowsort
SELECT - ( + - NULLIF ( + 59, - 87 ) )
----
59

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

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

query I rowsort
SELECT + 2 + - 1
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-139
SELECT + 72 * MIN( ALL 13 ) * CASE + ( - ( + COUNT( * ) ) ) WHEN + 5 THEN NULL WHEN + NULLIF ( + 14, - 87 + + MIN( ALL 94 ) * + COUNT( * ) - + 44 + + 57 ) THEN - 14 END - - - 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-139
SELECT + 72 * MIN ( ALL 13 ) * CASE + ( - ( + COUNT ( * ) ) ) WHEN + 5 THEN NULL WHEN + NULLIF ( + 14, - 87 + + MIN ( ALL 94 ) * + COUNT ( * ) - + 44 + + 57 ) THEN - 14 END - - - 21 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-140
SELECT ALL 24 DIV + 60 + + - 88 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-140
SELECT ALL 24 / + 60 + + - 88 AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-141
SELECT + COUNT( * ) * - 60 * - 84 col2
----
5040

skipif mysql # not compatible
query I rowsort label-141
SELECT + COUNT ( * ) * - 60 * - 84 col2
----
5040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-142
SELECT ALL - 99 DIV + + MAX( + 22 ) + + 27 * ( + 15 )
----
401

skipif mysql # not compatible
query I rowsort label-142
SELECT ALL - 99 / + + MAX ( + 22 ) + + 27 * ( + 15 )
----
401

onlyif mysql # aggregate syntax: 
query I rowsort label-143
SELECT - ( + 20 ) * + 18 + - COUNT( * )
----
-361

skipif mysql # not compatible
query I rowsort label-143
SELECT - ( + 20 ) * + 18 + - COUNT ( * )
----
-361

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

query I rowsort
SELECT 14 - - 41 col2
----
55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT + COUNT( * ) * + + 53 * 11 AS col0
----
583

skipif mysql # not compatible
query I rowsort label-147
SELECT + COUNT ( * ) * + + 53 * 11 AS col0
----
583

query II rowsort
SELECT DISTINCT - 63 AS col2, 10
----
-63
10

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

query II rowsort
SELECT - 2, + 47 AS col2
----
-2
47

query I rowsort
SELECT 84 * - 61 AS col2
----
-5124

query I rowsort
SELECT ALL + 27 * 17 AS col2
----
459

query I rowsort
SELECT 71 * + 10
----
710

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-155
SELECT 63 DIV 21
----
3

skipif mysql # not compatible
query I rowsort label-155
SELECT 63 / 21
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-156
SELECT - + ( - + MAX( ALL - 27 ) ), 88 * + 31 DIV 88 DIV - + 60 AS col1
----
-27
0

skipif mysql # not compatible
query II rowsort label-156
SELECT - + ( - + MAX ( ALL - 27 ) ), 88 * + 31 / 88 / - + 60 AS col1
----
-27
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-157
SELECT DISTINCT + CASE 90 WHEN + 85 THEN NULL WHEN + COUNT( * ) * - + 18 - + ( - 90 ) * + 31 * + 33 + - 38 THEN - - 47 * + - 23 * + COALESCE ( - CAST( 0 AS SIGNED ), + COUNT( * ), - 56 - - - 92 ) + - 60 + + 34 * + + NULLIF ( 81, + COALESCE ( + CAST( - 37 AS DECIMAL ), + 64 ) + 10 ) + + 29 END * + 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-157
SELECT DISTINCT + CASE 90 WHEN + 85 THEN NULL WHEN + COUNT ( * ) * - + 18 - + ( - 90 ) * + 31 * + 33 + - 38 THEN - - 47 * + - 23 * + COALESCE ( - CAST ( 0 AS INTEGER ), + COUNT ( * ), - 56 - - - 92 ) + - 60 + + 34 * + + NULLIF ( 81, + COALESCE ( + CAST ( - 37 AS REAL ), + 64 ) + 10 ) + + 29 END * + 69 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-158
SELECT ALL 3 DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-158
SELECT ALL 3 / 96
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-159
SELECT COUNT( * ) * 11 DIV 62 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-159
SELECT COUNT ( * ) * 11 / 62 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-160
SELECT ALL + 33 + + 39 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-160
SELECT ALL + 33 + + 39 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT DISTINCT - CASE COUNT( * ) WHEN 56 THEN NULL ELSE 60 END + - - 79 + 42 + + - COUNT( * ) - + CASE - - 57 WHEN + 92 THEN + + 48 ELSE - + 94 END + + + 71
----
225

skipif mysql # not compatible
query I rowsort label-161
SELECT DISTINCT - CASE COUNT ( * ) WHEN 56 THEN NULL ELSE 60 END + - - 79 + 42 + + - COUNT ( * ) - + CASE - - 57 WHEN + 92 THEN + + 48 ELSE - + 94 END + + + 71
----
225

query I rowsort
SELECT DISTINCT 38 * - - 72 AS col0
----
2736

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

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

query II rowsort
SELECT - 44 AS col0, - 58
----
-44
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-165
SELECT 63 AS col1, NULLIF ( - + MIN( 50 ), - + 43 + + + CAST( - 45 AS SIGNED ) )
----
63
-50

skipif mysql # not compatible
query II rowsort label-165
SELECT 63 AS col1, NULLIF ( - + MIN ( 50 ), - + 43 + + + CAST ( - 45 AS INTEGER ) )
----
63
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-166
SELECT ALL + ( - + 26 ) DIV + - 96 + - + COUNT( ALL + 93 )
----
-1

skipif mysql # not compatible
query I rowsort label-166
SELECT ALL + ( - + 26 ) / + - 96 + - + COUNT ( ALL + 93 )
----
-1

query I rowsort
SELECT ALL 60 + + - 41 + 76
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-168
SELECT ALL 37 + + ( - 28 ) * - + ( + ( 29 ) ) * - + COUNT( * ) + + 79
----
-696

skipif mysql # not compatible
query I rowsort label-168
SELECT ALL 37 + + ( - 28 ) * - + ( + ( 29 ) ) * - + COUNT ( * ) + + 79
----
-696

onlyif mysql # DIV for integer division: 
query II rowsort label-169
SELECT 34 DIV - 13 + - 36 + + 46 * + 2 - 7 * - 21 AS col2, 63 + + + ( + - 10 ) AS col2
----
201
53

skipif mysql # not compatible
query II rowsort label-169
SELECT 34 / - 13 + - 36 + + 46 * + 2 - 7 * - 21 AS col2, 63 + + + ( + - 10 ) AS col2
----
201
53

query I rowsort
SELECT DISTINCT - ( + + 20 ) * 85 AS col1
----
-1700

onlyif mysql # DIV for integer division: 
query I rowsort label-171
SELECT ALL 30 + 52 DIV + 79 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-171
SELECT ALL 30 + 52 / + 79 AS col1
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-172
SELECT ALL 1 + - NULLIF ( - 67, + - COUNT( * ) ) * + + ( + - 82 ) col2, 20 DIV - 35 + - 77 * 89 + + - 50 * + + NULLIF ( + + 10, - 13 ) * + 95 col0
----
-5493
-54353

skipif mysql # not compatible
query II rowsort label-172
SELECT ALL 1 + - NULLIF ( - 67, + - COUNT ( * ) ) * + + ( + - 82 ) col2, 20 / - 35 + - 77 * 89 + + - 50 * + + NULLIF ( + + 10, - 13 ) * + 95 col0
----
-5493
-54353

onlyif mysql # aggregate syntax: 
query II rowsort label-173
SELECT + 73 AS col2, + COUNT( * ) + + 44
----
73
45

skipif mysql # not compatible
query II rowsort label-173
SELECT + 73 AS col2, + COUNT ( * ) + + 44
----
73
45

onlyif mysql # aggregate syntax: 
query II rowsort label-174
SELECT COUNT( ALL - 89 ) + ( - 72 ) + NULLIF ( + 14, 46 ), - 46 * 94 * - + 56 AS col2
----
-57
242144

skipif mysql # not compatible
query II rowsort label-174
SELECT COUNT ( ALL - 89 ) + ( - 72 ) + NULLIF ( + 14, 46 ), - 46 * 94 * - + 56 AS col2
----
-57
242144

onlyif mysql # aggregate syntax: 
query I rowsort label-175
SELECT 97 + MAX( ALL - 98 ) * - - 10 * + - 11 AS col1
----
10877

skipif mysql # not compatible
query I rowsort label-175
SELECT 97 + MAX ( ALL - 98 ) * - - 10 * + - 11 AS col1
----
10877

onlyif mysql # aggregate syntax: 
query I rowsort label-176
SELECT + COALESCE ( + 40, + 38, 39, - COUNT( * ) ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-176
SELECT + COALESCE ( + 40, + 38, 39, - COUNT ( * ) ) AS col2
----
40

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-178
SELECT + CAST( NULL AS DECIMAL ) * 10 + + CASE - COUNT( * ) WHEN + + 73 THEN + - 16 + - + 61 WHEN + ( COUNT( * ) ) + + + 42 THEN NULL ELSE - 64 + - - 9 END + COUNT( - - 27 ) col0, + COUNT( * ) * - - ( + 80 ) AS col2
----
NULL
80

skipif mysql # not compatible
query II rowsort label-178
SELECT + CAST ( NULL AS REAL ) * 10 + + CASE - COUNT ( * ) WHEN + + 73 THEN + - 16 + - + 61 WHEN + ( COUNT ( * ) ) + + + 42 THEN NULL ELSE - 64 + - - 9 END + COUNT ( - - 27 ) col0, + COUNT ( * ) * - - ( + 80 ) AS col2
----
NULL
80

query I rowsort
SELECT ALL - NULLIF ( 6, + 52 + 63 ) col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT 3 * + COUNT( * ) * - 29 * + + 47 + - 34 AS col1
----
-4123

skipif mysql # not compatible
query I rowsort label-180
SELECT 3 * + COUNT ( * ) * - 29 * + + 47 + - 34 AS col1
----
-4123

query II rowsort
SELECT ALL - 70, ( + 1 ) AS col2
----
-70
1

query II rowsort
SELECT DISTINCT - 57 AS col1, 79
----
-57
79

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

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

query I rowsort
SELECT DISTINCT - 89 * 38
----
-3382

onlyif mysql # aggregate syntax: 
query I rowsort label-185
SELECT + 65 * COUNT( - 14 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-185
SELECT + 65 * COUNT ( - 14 ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-186
SELECT 98 + - COUNT( * ) * - 30 AS col1
----
128

skipif mysql # not compatible
query I rowsort label-186
SELECT 98 + - COUNT ( * ) * - 30 AS col1
----
128

query I rowsort
SELECT - - COALESCE ( + 17, - + ( - ( 37 ) ) ) AS col1
----
17

query II rowsort
SELECT ALL 20 col2, 98 AS col2
----
20
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-189
SELECT DISTINCT - - COALESCE ( 61, - - 64 ) DIV COUNT( * ) + 16 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-189
SELECT DISTINCT - - COALESCE ( 61, - - 64 ) / COUNT ( * ) + 16 AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT ALL 15 + + COUNT( * ) + + - 10
----
6

skipif mysql # not compatible
query I rowsort label-190
SELECT ALL 15 + + COUNT ( * ) + + - 10
----
6

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

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

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

skipif mysql # not compatible
query II rowsort label-192
SELECT 5, - COUNT ( * ) AS col2
----
5
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-193
SELECT ALL - 65 + - COUNT( * ), + 27 AS col0
----
-66
27

skipif mysql # not compatible
query II rowsort label-193
SELECT ALL - 65 + - COUNT ( * ), + 27 AS col0
----
-66
27

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-195
SELECT 53 + + CAST( + 9 AS SIGNED ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-195
SELECT 53 + + CAST ( + 9 AS INTEGER ) AS col1
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-196
SELECT DISTINCT + 20 + 11 DIV - 78 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-196
SELECT DISTINCT + 20 + 11 / - 78 AS col0
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-197
SELECT ALL + 2 + + CASE - CAST( NULL AS SIGNED ) WHEN + 19 * + - 64 + + - SUM( ALL 16 ) + - COUNT( * ) * + - 38 * - 15 * 79 THEN + + 7 ELSE NULL END - + + 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-197
SELECT ALL + 2 + + CASE - CAST ( NULL AS INTEGER ) WHEN + 19 * + - 64 + + - SUM ( ALL 16 ) + - COUNT ( * ) * + - 38 * - 15 * 79 THEN + + 7 ELSE NULL END - + + 45 AS col1
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 84 + - 82 + - 34
----
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-200
SELECT DISTINCT MAX( ALL - 53 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-200
SELECT DISTINCT MAX ( ALL - 53 ) AS col2
----
-53

query I rowsort
SELECT ALL NULLIF ( + 77, - 46 * 11 ) AS col1
----
77

query II rowsort
SELECT ALL - 3 + 19 AS col0, + 93
----
16
93

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

skipif mysql # not compatible
query I rowsort label-203
SELECT DISTINCT 48 / + + 39
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT ALL 7 - COUNT( * ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-204
SELECT ALL 7 - COUNT ( * ) AS col2
----
6

query I rowsort
SELECT DISTINCT - NULLIF ( + 10, + AVG ( ALL + 11 ) )
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-206
SELECT 88 DIV - + 56 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-206
SELECT 88 / - + 56 AS col2
----
-1

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

query I rowsort
SELECT ALL 47 * 20
----
940

onlyif mysql # DIV for integer division: 
query II rowsort label-209
SELECT - 53 DIV 9 AS col2, - 53
----
-5
-53

skipif mysql # not compatible
query II rowsort label-209
SELECT - 53 / 9 AS col2, - 53
----
-5
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-210
SELECT + - 1 DIV + 75 * MIN( DISTINCT - - CAST( + + 30 AS SIGNED ) ) DIV 69 + + 74 + 45
----
119

skipif mysql # not compatible
query I rowsort label-210
SELECT + - 1 / + 75 * MIN ( DISTINCT - - CAST ( + + 30 AS INTEGER ) ) / 69 + + 74 + 45
----
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-211
SELECT ALL COUNT( * ) * CAST( - CASE + 95 WHEN 70 * - ( - 34 ) THEN + 66 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-211
SELECT ALL COUNT ( * ) * CAST ( - CASE + 95 WHEN 70 * - ( - 34 ) THEN + 66 END AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-212
SELECT ALL - MAX( ALL - CAST( + 40 AS SIGNED ) ) * + 78 col0
----
3120

skipif mysql # not compatible
query I rowsort label-212
SELECT ALL - MAX ( ALL - CAST ( + 40 AS INTEGER ) ) * + 78 col0
----
3120

query I rowsort
SELECT + ( + 39 ) * - + 80 AS col0
----
-3120

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-215
SELECT ALL + 89 * COUNT( * ) DIV 13 + - 69 + - - 11
----
-52

skipif mysql # not compatible
query I rowsort label-215
SELECT ALL + 89 * COUNT ( * ) / 13 + - 69 + - - 11
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT DISTINCT COALESCE ( + 29, - - 43 ) * - CASE + - ( 54 ) WHEN SUM( 30 ) - ( - COUNT( * ) ) THEN NULL WHEN + 36 THEN + - 15 WHEN - ( + 12 ) + - ( 99 ) THEN + 91 - - 77 END + NULLIF ( + - ( + - AVG ( 7 ) ), 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-216
SELECT DISTINCT COALESCE ( + 29, - - 43 ) * - CASE + - ( 54 ) WHEN SUM ( 30 ) - ( - COUNT ( * ) ) THEN NULL WHEN + 36 THEN + - 15 WHEN - ( + 12 ) + - ( 99 ) THEN + 91 - - 77 END + NULLIF ( + - ( + - AVG ( 7 ) ), 39 )
----
NULL

query I rowsort
SELECT + - 56 - - 88 * - 37
----
-3312

onlyif mysql # aggregate syntax: 
query I rowsort label-218
SELECT ALL 60 * NULLIF ( - - ( + 18 ), - 6 ) * COUNT( * ) col2
----
1080

skipif mysql # not compatible
query I rowsort label-218
SELECT ALL 60 * NULLIF ( - - ( + 18 ), - 6 ) * COUNT ( * ) col2
----
1080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-219
SELECT DISTINCT + SUM( + 25 ) + - + COALESCE ( - 92, 44 DIV COUNT( * ) - 81 + + - 45 * - + COUNT( * ) DIV + 89 * + - 87 + ( - - MAX( - 61 ) ) * COUNT( * ) DIV - ( + + 57 ), 52 + + 47 ) AS col0
----
117

skipif mysql # not compatible
query I rowsort label-219
SELECT DISTINCT + SUM ( + 25 ) + - + COALESCE ( - 92, 44 / COUNT ( * ) - 81 + + - 45 * - + COUNT ( * ) / + 89 * + - 87 + ( - - MAX ( - 61 ) ) * COUNT ( * ) / - ( + + 57 ), 52 + + 47 ) AS col0
----
117

onlyif mysql # DIV for integer division: 
query II rowsort label-220
SELECT ALL 3 + 37 * - - 38 DIV + 2 + - - 41 col1, 17
----
747
17

skipif mysql # not compatible
query II rowsort label-220
SELECT ALL 3 + 37 * - - 38 / + 2 + - - 41 col1, 17
----
747
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-221
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 24 AS col2, + ( 23 ) AS col0
----
NULL
23

skipif mysql # not compatible
query II rowsort label-221
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 24 AS col2, + ( 23 ) AS col0
----
NULL
23

onlyif mysql # aggregate syntax: 
query I rowsort label-222
SELECT ALL + 53 + - CASE - COUNT( * ) WHEN - 0 THEN + COUNT( * ) WHEN COUNT( * ) - - 33 + - - 16 + + SUM( + 96 ) - + - 63 / ( - + 78 ) THEN COUNT( * ) * + + 25 * + 21 END
----
NULL

skipif mysql # not compatible
query I rowsort label-222
SELECT ALL + 53 + - CASE - COUNT ( * ) WHEN - 0 THEN + COUNT ( * ) WHEN COUNT ( * ) - - 33 + - - 16 + + SUM ( + 96 ) - + - 63 / ( - + 78 ) THEN COUNT ( * ) * + + 25 * + 21 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT ALL - 95 + - - 34 - - - ( - 26 ) - + - 84 * - COUNT( * ) * + ( - + 96 )
----
8029

skipif mysql # not compatible
query I rowsort label-223
SELECT ALL - 95 + - - 34 - - - ( - 26 ) - + - 84 * - COUNT ( * ) * + ( - + 96 )
----
8029

query I rowsort
SELECT ALL + 84 * 83
----
6972

query I rowsort
SELECT - NULLIF ( 26, - - ( 39 ) ) AS col0
----
-26

query I rowsort
SELECT ALL - 70 + - 47
----
-117

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

skipif mysql # not compatible
query I rowsort label-227
SELECT + 67 / 80
----
0

query I rowsort
SELECT + 2 + - - ( 76 ) + 87 AS col2
----
165

onlyif mysql # DIV for integer division: 
query I rowsort label-229
SELECT ALL + 44 DIV + 96 * - 77
----
0

skipif mysql # not compatible
query I rowsort label-229
SELECT ALL + 44 / + 96 * - 77
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-230
SELECT DISTINCT NULLIF ( - ( - 42 ), + 49 * + 64 / 85 + + - COUNT( ALL - 12 ) ), SUM( ALL - - 47 ) AS col2
----
42
47

skipif mysql # not compatible
query II rowsort label-230
SELECT DISTINCT NULLIF ( - ( - 42 ), + 49 * + 64 / 85 + + - COUNT ( ALL - 12 ) ), SUM ( ALL - - 47 ) AS col2
----
42
47

query I rowsort
SELECT ALL 84 - - 73
----
157

query I rowsort
SELECT DISTINCT + 26 * + 30
----
780

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-233
SELECT ALL - 71 * + - AVG ( + + 57 ) * + - 74 / + CASE + 79 WHEN + ( COUNT( * ) ) THEN + CAST( 72 AS DECIMAL ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-233
SELECT ALL - 71 * + - AVG ( + + 57 ) * + - 74 / + CASE + 79 WHEN + ( COUNT ( * ) ) THEN + CAST ( 72 AS REAL ) ELSE NULL END
----
NULL

query I rowsort
SELECT - 13 - - + 23 + ( - 72 )
----
-62

query II rowsort
SELECT - 63 col2, 53
----
-63
53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-236
SELECT + 60 + + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-236
SELECT + 60 + + + CAST ( NULL AS REAL ) AS col2
----
NULL

query II rowsort
SELECT 39 AS col1, 70 + + 95
----
39
165

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-238
SELECT + COUNT( * ) DIV + - 7 * 33 + - 33 + + COUNT( * ) DIV - 79
----
-33

skipif mysql # not compatible
query I rowsort label-238
SELECT + COUNT ( * ) / + - 7 * 33 + - 33 + + COUNT ( * ) / - 79
----
-33

query I rowsort
SELECT DISTINCT + ( - 82 ) AS col1
----
-82

query I rowsort
SELECT - CASE WHEN NOT ( NOT + 61 NOT BETWEEN + 95 * + 46 AND - 46 * - - 50 + + - 85 ) THEN - 0 END + - NULLIF ( + - 47, 61 ) + + - 33 * + 48
----
-1537

query II rowsort
SELECT 61 col2, 62 AS col1
----
61
62

query I rowsort
SELECT 11 * + 76 + - 77
----
759

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-243
SELECT - - 71 DIV SUM( DISTINCT - 37 ) + 9 col0
----
8

skipif mysql # not compatible
query I rowsort label-243
SELECT - - 71 / SUM ( DISTINCT - 37 ) + 9 col0
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-244
SELECT + COUNT( * ) AS col2, MAX( DISTINCT - 4 )
----
1
-4

skipif mysql # not compatible
query II rowsort label-244
SELECT + COUNT ( * ) AS col2, MAX ( DISTINCT - 4 )
----
1
-4

query I rowsort
SELECT - - ( + - 14 ) * - 54 - + - 72 AS col2
----
828

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

skipif mysql # not compatible
query I rowsort label-246
SELECT + - 45 + COUNT ( * ) - + - 59 AS col2
----
15

query I rowsort
SELECT ALL + + 95 / + 47 + + 6 - - 32 + - CASE WHEN NOT 58 NOT BETWEEN + 35 AND 57 THEN + 93 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-248
SELECT COALESCE ( - 95, 64 * + 27 + COALESCE ( NULLIF ( + + 17, - CAST( NULL AS SIGNED ) ), CAST( - 38 AS SIGNED ) + + + 62 ) ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-248
SELECT COALESCE ( - 95, 64 * + 27 + COALESCE ( NULLIF ( + + 17, - CAST ( NULL AS INTEGER ) ), CAST ( - 38 AS INTEGER ) + + + 62 ) ) AS col0
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-249
SELECT + COUNT( * ) * - 26 * + COUNT( * ) * + 27 + - + 35 + + + 86 + - COALESCE ( + ( + - COUNT( * ) ), - ( + CAST( NULL AS SIGNED ) ) ) * + - ( - 88 ) * + + 32 + - + 71 * - 8 * - 99 * MIN( + 51 ) AS col1
----
-2865667

skipif mysql # not compatible
query I rowsort label-249
SELECT + COUNT ( * ) * - 26 * + COUNT ( * ) * + 27 + - + 35 + + + 86 + - COALESCE ( + ( + - COUNT ( * ) ), - ( + CAST ( NULL AS INTEGER ) ) ) * + - ( - 88 ) * + + 32 + - + 71 * - 8 * - 99 * MIN ( + 51 ) AS col1
----
-2865667

query I rowsort
SELECT ALL - 99 * + 69 * - 89 + - - 44 AS col0
----
608003

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-251
SELECT ALL + COUNT( * ) * + - 34 + - 58 DIV + 53 + + 5 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-251
SELECT ALL + COUNT ( * ) * + - 34 + - 58 / + 53 + + 5 AS col1
----
-30

query I rowsort
SELECT DISTINCT + - 40 * + 75 + + - 59
----
-3059

query II rowsort
SELECT ALL + - 44 AS col1, 90 AS col0
----
-44
90

onlyif mysql # DIV for integer division: 
query I rowsort label-254
SELECT - - 68 DIV + - 38 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-254
SELECT - - 68 / + - 38 AS col0
----
-1

query I rowsort
SELECT - 18 + - 17 + + - 45
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-256
SELECT ALL + - 75 * + COUNT( * ) + - 62 + COUNT( ALL 68 ) + - 87 DIV - 98
----
-136

skipif mysql # not compatible
query I rowsort label-256
SELECT ALL + - 75 * + COUNT ( * ) + - 62 + COUNT ( ALL 68 ) + - 87 / - 98
----
-136

query I rowsort
SELECT DISTINCT + 46 * - 46 AS col2
----
-2116

query I rowsort
SELECT ALL + 5 * + + 20 + + 56 + 34
----
190

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

skipif mysql # not compatible
query I rowsort label-259
SELECT - - COUNT ( * ) * + 41 + + 48 AS col0
----
89

query I rowsort
SELECT ALL 90 * - 17 + + + 39 + 7
----
-1484

query I rowsort
SELECT ALL 96 * - 69 - + - 90
----
-6534

onlyif mysql # aggregate syntax: 
query II rowsort label-262
SELECT + 43 + 85 AS col1, 98 + + - COUNT( * ) * + 8 AS col2
----
128
90

skipif mysql # not compatible
query II rowsort label-262
SELECT + 43 + 85 AS col1, 98 + + - COUNT ( * ) * + 8 AS col2
----
128
90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-264
SELECT DISTINCT COUNT( * ) - - 66 - - COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-264
SELECT DISTINCT COUNT ( * ) - - 66 - - COUNT ( * )
----
68

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

skipif mysql # not compatible
query I rowsort label-265
SELECT ALL 7 * COUNT ( * ) / - 86 AS col0
----
0

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

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

query I rowsort
SELECT + 89 + + - 53
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-268
SELECT + COALESCE ( - ( + 42 ), 73, - + 5 ) DIV + - 43 + ( 51 ) + 43 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-268
SELECT + COALESCE ( - ( + 42 ), 73, - + 5 ) / + - 43 + ( 51 ) + 43 AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT SUM( + 58 ) * - - 79 AS col0
----
4582

skipif mysql # not compatible
query I rowsort label-269
SELECT SUM ( + 58 ) * - - 79 AS col0
----
4582

onlyif mysql # aggregate syntax: 
query I rowsort label-270
SELECT 97 + 70 + + COALESCE ( + - COUNT( * ), - - 96 ) * 28 AS col1
----
139

skipif mysql # not compatible
query I rowsort label-270
SELECT 97 + 70 + + COALESCE ( + - COUNT ( * ), - - 96 ) * 28 AS col1
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT 7 + - 2 + - SUM( + - 55 ) - 30 + - 35 - 11 * + - 86 + ( - 30 ) + 19 - + 65
----
865

skipif mysql # not compatible
query I rowsort label-271
SELECT 7 + - 2 + - SUM ( + - 55 ) - 30 + - 35 - 11 * + - 86 + ( - 30 ) + 19 - + 65
----
865

onlyif mysql # aggregate syntax: 
query I rowsort label-272
SELECT + ( - + 47 ) / + + COUNT( ALL 33 ) * - ( - CASE MIN( + COALESCE ( ( + 40 ), - 98 ) ) WHEN - 4 THEN ( 79 ) END ) + - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-272
SELECT + ( - + 47 ) / + + COUNT ( ALL 33 ) * - ( - CASE MIN ( + COALESCE ( ( + 40 ), - 98 ) ) WHEN - 4 THEN ( 79 ) END ) + - 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-273
SELECT + 0 * + COUNT( * ) + 98
----
98

skipif mysql # not compatible
query I rowsort label-273
SELECT + 0 * + COUNT ( * ) + 98
----
98

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-274
SELECT DISTINCT - ( 36 ) * + 20 / CAST( NULL AS SIGNED ) + + CAST( + 84 AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-274
SELECT DISTINCT - ( 36 ) * + 20 / CAST ( NULL AS INTEGER ) + + CAST ( + 84 AS REAL ) AS col0
----
NULL

query I rowsort
SELECT - 36 * + 87 AS col1
----
-3132

onlyif mysql # aggregate syntax: 
query II rowsort label-276
SELECT - COUNT( DISTINCT - + 3 ) - + 97 * 40 AS col2, CASE 64 WHEN - 17 / - AVG ( + 51 ) * - ( - 11 ) - - 8 * - + 50 THEN NULL WHEN - COUNT( DISTINCT - 60 ) THEN + - COUNT( * ) END
----
-3881
NULL

skipif mysql # not compatible
query II rowsort label-276
SELECT - COUNT ( DISTINCT - + 3 ) - + 97 * 40 AS col2, CASE 64 WHEN - 17 / - AVG ( + 51 ) * - ( - 11 ) - - 8 * - + 50 THEN NULL WHEN - COUNT ( DISTINCT - 60 ) THEN + - COUNT ( * ) END
----
-3881
NULL

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

query I rowsort
SELECT ALL - 8 + + 99 AS col2
----
91

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-280
SELECT MIN( DISTINCT - ( 70 ) ) + ( 11 ) AS col1, ( - + 99 )
----
-59
-99

skipif mysql # not compatible
query II rowsort label-280
SELECT MIN ( DISTINCT - ( 70 ) ) + ( 11 ) AS col1, ( - + 99 )
----
-59
-99

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

query I rowsort
SELECT 53 * + 63 + + 57 AS col1
----
3396

query I rowsort
SELECT ALL - - 88 - ( + 49 ) AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-284
SELECT DISTINCT + + 26 * - - MIN( DISTINCT + 87 ) * - 0 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-284
SELECT DISTINCT + + 26 * - - MIN ( DISTINCT + 87 ) * - 0 AS col1
----
0

query I rowsort
SELECT ALL + 43 * + 45 AS col1
----
1935

onlyif mysql # aggregate syntax: 
query II rowsort label-286
SELECT 32 AS col0, NULLIF ( - 42, - 32 ) * - COUNT( ALL - 18 ) * + - 53 + - 54
----
32
-2280

skipif mysql # not compatible
query II rowsort label-286
SELECT 32 AS col0, NULLIF ( - 42, - 32 ) * - COUNT ( ALL - 18 ) * + - 53 + - 54
----
32
-2280

onlyif mysql # DIV for integer division: 
query I rowsort label-287
SELECT 46 + + 73 * + - 2 + + ( - 21 ) - - + 33 DIV 99
----
-121

skipif mysql # not compatible
query I rowsort label-287
SELECT 46 + + 73 * + - 2 + + ( - 21 ) - - + 33 / 99
----
-121

query I rowsort
SELECT 82 * - - 89
----
7298

query II rowsort
SELECT DISTINCT 51, + 93 * - + 19 * + 12 AS col1
----
51
-21204

onlyif mysql # aggregate syntax: 
query II rowsort label-290
SELECT 70, + 91 * CASE - - COUNT( * ) WHEN 33 THEN 76 WHEN + + ( 74 ) * - COUNT( DISTINCT 4 ) + 37 THEN + + 99 * + NULLIF ( 45, + 8 ) ELSE NULL END AS col2
----
70
NULL

skipif mysql # not compatible
query II rowsort label-290
SELECT 70, + 91 * CASE - - COUNT ( * ) WHEN 33 THEN 76 WHEN + + ( 74 ) * - COUNT ( DISTINCT 4 ) + 37 THEN + + 99 * + NULLIF ( 45, + 8 ) ELSE NULL END AS col2
----
70
NULL

query I rowsort
SELECT 72 * 31 * - + 41 AS col2
----
-91512

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT MIN( + - 50 ) - + - 36
----
-14

skipif mysql # not compatible
query I rowsort label-292
SELECT MIN ( + - 50 ) - + - 36
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT CASE 34 WHEN - 42 / - 16 - 25 / COUNT( * ) THEN NULL WHEN + 9 THEN - + 44 END * - 4 + + 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-293
SELECT CASE 34 WHEN - 42 / - 16 - 25 / COUNT ( * ) THEN NULL WHEN + 9 THEN - + 44 END * - 4 + + 32 AS col2
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-296
SELECT 29 + ( + + COUNT( 66 ) )
----
30

skipif mysql # not compatible
query I rowsort label-296
SELECT 29 + ( + + COUNT ( 66 ) )
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-297
SELECT COALESCE ( + 50, + - 55 ), + 96 + - 49 + + COUNT( * ) col0
----
50
48

skipif mysql # not compatible
query II rowsort label-297
SELECT COALESCE ( + 50, + - 55 ), + 96 + - 49 + + COUNT ( * ) col0
----
50
48

onlyif mysql # DIV for integer division: 
query I rowsort label-298
SELECT 19 DIV + 69
----
0

skipif mysql # not compatible
query I rowsort label-298
SELECT 19 / + 69
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-299
SELECT DISTINCT 25 + - - COUNT( * ) * + 75
----
100

skipif mysql # not compatible
query I rowsort label-299
SELECT DISTINCT 25 + - - COUNT ( * ) * + 75
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-300
SELECT ALL - 69 * COUNT( * ) + - - 52 + - 37
----
-54

skipif mysql # not compatible
query I rowsort label-300
SELECT ALL - 69 * COUNT ( * ) + - - 52 + - 37
----
-54

query I rowsort
SELECT ALL - 4 * + 97 + + 66 * - 20 AS col0
----
-1708

query I rowsort
SELECT 29 * + + 75 AS col2
----
2175

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-303
SELECT DISTINCT ( - 2 ) DIV - 49 + COUNT( ALL 20 ) DIV 15 * 21 DIV - 62 * + + 55
----
0

skipif mysql # not compatible
query I rowsort label-303
SELECT DISTINCT ( - 2 ) / - 49 + COUNT ( ALL 20 ) / 15 * 21 / - 62 * + + 55
----
0

query I rowsort
SELECT ALL + + 22 * + 65 + - 76 AS col2
----
1354

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

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

query I rowsort
SELECT 67 + - + 39 AS col0
----
28

query I rowsort
SELECT 55 * - 93 * 51
----
-260865

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-308
SELECT ALL + - 24 * + CAST( + + 8 AS SIGNED ) DIV COUNT( * ) + 45 AS col2
----
-147

skipif mysql # not compatible
query I rowsort label-308
SELECT ALL + - 24 * + CAST ( + + 8 AS INTEGER ) / COUNT ( * ) + 45 AS col2
----
-147

query I rowsort
SELECT DISTINCT 54 - - 49
----
103

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-310
SELECT ALL CAST( NULL AS DECIMAL ) - - MIN( DISTINCT + ( 23 ) ) * + 90 + + + COUNT( * ) - + MIN( ALL + + 55 ) * 81
----
NULL

skipif mysql # not compatible
query I rowsort label-310
SELECT ALL CAST ( NULL AS REAL ) - - MIN ( DISTINCT + ( 23 ) ) * + 90 + + + COUNT ( * ) - + MIN ( ALL + + 55 ) * 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT 63 * 60 * - COALESCE ( - 61, COUNT( * ) )
----
230580

skipif mysql # not compatible
query I rowsort label-311
SELECT 63 * 60 * - COALESCE ( - 61, COUNT ( * ) )
----
230580

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-312
SELECT COUNT( * ), COUNT( * ) DIV SUM( DISTINCT - 22 ) - - + 11 + - 31 * - COUNT( * ) AS col2
----
1
42

skipif mysql # not compatible
query II rowsort label-312
SELECT COUNT ( * ), COUNT ( * ) / SUM ( DISTINCT - 22 ) - - + 11 + - 31 * - COUNT ( * ) AS col2
----
1
42

onlyif mysql # aggregate syntax: 
query II rowsort label-313
SELECT COUNT( * ) + 98 AS col1, - COUNT( * ) + + 12 AS col0
----
99
11

skipif mysql # not compatible
query II rowsort label-313
SELECT COUNT ( * ) + 98 AS col1, - COUNT ( * ) + + 12 AS col0
----
99
11

query I rowsort
SELECT 82 * + 52 AS col2
----
4264

onlyif mysql # aggregate syntax: 
query I rowsort label-315
SELECT + 44 * + - 80 * + COUNT( * ) + 35 * + 29
----
-2505

skipif mysql # not compatible
query I rowsort label-315
SELECT + 44 * + - 80 * + COUNT ( * ) + 35 * + 29
----
-2505

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

query II rowsort
SELECT 4, + 67 col1
----
4
67

onlyif mysql # aggregate syntax: 
query I rowsort label-318
SELECT - 25 + + - COUNT( * ) + - 24 * + NULLIF ( - + ( - + 43 ), + + 12 + 4 ) AS col1
----
-1058

skipif mysql # not compatible
query I rowsort label-318
SELECT - 25 + + - COUNT ( * ) + - 24 * + NULLIF ( - + ( - + 43 ), + + 12 + 4 ) AS col1
----
-1058

onlyif mysql # DIV for integer division: 
query I rowsort label-319
SELECT - 37 DIV + + 52
----
0

skipif mysql # not compatible
query I rowsort label-319
SELECT - 37 / + + 52
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-320
SELECT - 43 * 82 DIV COUNT( * )
----
-3526

skipif mysql # not compatible
query I rowsort label-320
SELECT - 43 * 82 / COUNT ( * )
----
-3526

query I rowsort
SELECT ALL - 13 * - - 42 col2
----
-546

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-322
SELECT DISTINCT - 40 DIV CASE - 15 WHEN MIN( DISTINCT + NULLIF ( - - 59, 98 + 21 ) ) + + MAX( 77 ) THEN NULL ELSE 16 END AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-322
SELECT DISTINCT - 40 / CASE - 15 WHEN MIN ( DISTINCT + NULLIF ( - - 59, 98 + 21 ) ) + + MAX ( 77 ) THEN NULL ELSE 16 END AS col1
----
-2

query II rowsort
SELECT 28, 41 * - 84 + 60 + - 53 AS col2
----
28
-3437

query I rowsort
SELECT 50 * + 12 + + 28 + - 29 - + + 85 - + 43
----
471

query I rowsort
SELECT ALL 18 + + - 1 + + 4
----
21

query II rowsort
SELECT ALL 67 AS col2, 20 + 33
----
67
53

query I rowsort
SELECT - 83 * - 0 * + 54
----
0

query I rowsort
SELECT - 53 - 53 AS col0
----
-106

query II rowsort
SELECT - 25 AS col1, + ( - 91 ) + - 54
----
-25
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-330
SELECT + 76 + + - COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-330
SELECT + 76 + + - COUNT ( * )
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-331
SELECT ALL CASE - 30 WHEN - + 15 * - + 31 THEN NULL WHEN + 18 THEN 39 ELSE + CASE WHEN NOT ( NULL ) NOT BETWEEN + - 17 AND NULL THEN 34 * + + ( - 52 ) + - 31 * + 48 ELSE 57 END * + 14 - - 16 + + - 62 DIV + + 15 END AS col0
----
810

skipif mysql # not compatible
query I rowsort label-331
SELECT ALL CASE - 30 WHEN - + 15 * - + 31 THEN NULL WHEN + 18 THEN 39 ELSE + CASE WHEN NOT ( NULL ) NOT BETWEEN + - 17 AND NULL THEN 34 * + + ( - 52 ) + - 31 * + 48 ELSE 57 END * + 14 - - 16 + + - 62 / + + 15 END AS col0
----
810

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT - COALESCE ( - + 30, - - COUNT( * ) )
----
30

skipif mysql # not compatible
query I rowsort label-332
SELECT - COALESCE ( - + 30, - - COUNT ( * ) )
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-333
SELECT + - COUNT( * ) + - + NULLIF ( + + 40, COUNT( * ) + 53 + - 90 DIV - COUNT( * ) * + 31 * 48 ), + ( - 30 ) DIV + 55 AS col2
----
-41
0

skipif mysql # not compatible
query II rowsort label-333
SELECT + - COUNT ( * ) + - + NULLIF ( + + 40, COUNT ( * ) + 53 + - 90 / - COUNT ( * ) * + 31 * 48 ), + ( - 30 ) / + 55 AS col2
----
-41
0

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT CASE - - COUNT( * ) WHEN + 34 THEN - + 40 + - 58 ELSE - 8 END
----
-8

skipif mysql # not compatible
query I rowsort label-334
SELECT CASE - - COUNT ( * ) WHEN + 34 THEN - + 40 + - 58 ELSE - 8 END
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-335
SELECT + + 58 + - COUNT( * ) + 22 DIV - + 90 + 23 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-335
SELECT + + 58 + - COUNT ( * ) + 22 / - + 90 + 23 AS col2
----
80

query I rowsort
SELECT ALL + 52 + - 77 + 88 AS col1
----
63

query II rowsort
SELECT 92 AS col1, - 22 col1
----
92
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-338
SELECT - - 72 * + - 9 + + CAST( NULL AS SIGNED ) + 48 + NULLIF ( + 33, + + 23 * - 45 + 0 - - 32 + - ( 6 ) + - + COUNT( * ) * - + 43 + 91 + - 30 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-338
SELECT - - 72 * + - 9 + + CAST ( NULL AS INTEGER ) + 48 + NULLIF ( + 33, + + 23 * - 45 + 0 - - 32 + - ( 6 ) + - + COUNT ( * ) * - + 43 + 91 + - 30 ) AS col1
----
NULL

query I rowsort
SELECT ALL 97 * + 5 AS col0
----
485

onlyif mysql # aggregate syntax: 
query II rowsort label-340
SELECT - + 67 AS col1, + COUNT( * ) + + - 73
----
-67
-72

skipif mysql # not compatible
query II rowsort label-340
SELECT - + 67 AS col1, + COUNT ( * ) + + - 73
----
-67
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-341
SELECT ALL 10 + + 12 DIV - - 76
----
10

skipif mysql # not compatible
query I rowsort label-341
SELECT ALL 10 + + 12 / - - 76
----
10

query I rowsort
SELECT DISTINCT - 28 * 15
----
-420

query I rowsort
SELECT - 24 * 5 AS col1
----
-120

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-345
SELECT + + 45 * CAST( - 72 AS SIGNED )
----
-3240

skipif mysql # not compatible
query I rowsort label-345
SELECT + + 45 * CAST ( - 72 AS INTEGER )
----
-3240

query I rowsort
SELECT + - 40 * + 78 - + 70 + + 24 * + 19 * - 43
----
-22798

query II rowsort
SELECT DISTINCT + 10 AS col1, 31
----
10
31

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

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

query I rowsort
SELECT ALL 43 * - + 85 - + 38 AS col2
----
-3693

query II rowsort
SELECT DISTINCT + + 22, - 30 * - 68 AS col2
----
22
2040

query I rowsort
SELECT CASE 61 WHEN 73 * 74 THEN - + AVG ( ALL + 69 ) END
----
NULL

query I rowsort
SELECT + 85 * + 81 AS col1
----
6885

query I rowsort
SELECT + 40 * - + ( - - 70 ) + 1 * + 77 AS col1
----
-2723

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-354
SELECT - CAST( NULL AS SIGNED ) - + 24 + 76 / + 79 + + CASE + 6 WHEN COUNT( * ) + + + 72 THEN NULL WHEN - + 19 THEN + - CASE - 17 WHEN + 75 THEN NULL WHEN COUNT( * ) THEN + 36 + + 66 ELSE - 29 END * 98 / - COUNT( * ) * + 37 END
----
NULL

skipif mysql # not compatible
query I rowsort label-354
SELECT - CAST ( NULL AS INTEGER ) - + 24 + 76 / + 79 + + CASE + 6 WHEN COUNT ( * ) + + + 72 THEN NULL WHEN - + 19 THEN + - CASE - 17 WHEN + 75 THEN NULL WHEN COUNT ( * ) THEN + 36 + + 66 ELSE - 29 END * 98 / - COUNT ( * ) * + 37 END
----
NULL

query I rowsort
SELECT + ( - + 93 ) * + 33
----
-3069

onlyif mysql # aggregate syntax: 
query I rowsort label-356
SELECT ALL 77 * - + 40 * + + COUNT( * ) * COUNT( * ) + + + 81 AS col2
----
-2999

skipif mysql # not compatible
query I rowsort label-356
SELECT ALL 77 * - + 40 * + + COUNT ( * ) * COUNT ( * ) + + + 81 AS col2
----
-2999

onlyif mysql # DIV for integer division: 
query I rowsort label-357
SELECT + 13 + - 93 + 41 + - 36 DIV 14 col1
----
-41

skipif mysql # not compatible
query I rowsort label-357
SELECT + 13 + - 93 + 41 + - 36 / 14 col1
----
-41

query I rowsort
SELECT + 96 * - + 81 + - + 24 * + 54 AS col0
----
-9072

query I rowsort
SELECT ALL 45 * + 51 + + 18 + ( - - 10 ) AS col0
----
2323

query II rowsort
SELECT ALL ( - 3 ) AS col0, 18
----
-3
18

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-362
SELECT + 95 + - 81 * 17 + - ( + + SUM( DISTINCT + NULLIF ( + 33, - 18 + + - 20 ) ) ) DIV - NULLIF ( 67, + + 89 - + COALESCE ( + - MIN( + 79 ), - 24 ) ) + - 41, CAST( - - 33 AS SIGNED ) AS col1
----
-1323
33

skipif mysql # not compatible
query II rowsort label-362
SELECT + 95 + - 81 * 17 + - ( + + SUM ( DISTINCT + NULLIF ( + 33, - 18 + + - 20 ) ) ) / - NULLIF ( 67, + + 89 - + COALESCE ( + - MIN ( + 79 ), - 24 ) ) + - 41, CAST ( - - 33 AS INTEGER ) AS col1
----
-1323
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-363
SELECT - ( + 55 ) AS col2, 20 DIV COUNT( * )
----
-55
20

skipif mysql # not compatible
query II rowsort label-363
SELECT - ( + 55 ) AS col2, 20 / COUNT ( * )
----
-55
20

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT SUM( DISTINCT 41 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-364
SELECT SUM ( DISTINCT 41 ) AS col1
----
41

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

skipif mysql # not compatible
query I rowsort label-365
SELECT - 35 + 88 + COUNT ( * ) AS col2
----
54

query I rowsort
SELECT ALL COALESCE ( + 76, + - 76 * - + 74 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-367
SELECT DISTINCT CASE + 88 WHEN + - 14 + + 44 THEN NULL ELSE 64 * + COUNT( * ) * + 16 * - ( COUNT( * ) ) * 84 + - 37 END AS col1
----
-86053

skipif mysql # not compatible
query I rowsort label-367
SELECT DISTINCT CASE + 88 WHEN + - 14 + + 44 THEN NULL ELSE 64 * + COUNT ( * ) * + 16 * - ( COUNT ( * ) ) * 84 + - 37 END AS col1
----
-86053

query I rowsort
SELECT - 65 - + - 93 AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT - 28 - 39 + + + MIN( ALL + 41 ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-369
SELECT - 28 - 39 + + + MIN ( ALL + 41 ) AS col0
----
-26

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-370
SELECT ALL CASE + ( 89 ) WHEN - 54 THEN NULL WHEN - CAST( NULL AS DECIMAL ) + - 53 THEN + MAX( ALL - 72 ) END + + 82 + - 11 * COUNT( * ) + + 51 - 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-370
SELECT ALL CASE + ( 89 ) WHEN - 54 THEN NULL WHEN - CAST ( NULL AS REAL ) + - 53 THEN + MAX ( ALL - 72 ) END + + 82 + - 11 * COUNT ( * ) + + 51 - 43 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-371
SELECT ALL 2 DIV 45 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-371
SELECT ALL 2 / 45 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-372
SELECT - CAST( NULL AS SIGNED ) / 69 * + 25 + + - NULLIF ( + 65, - 37 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-372
SELECT - CAST ( NULL AS INTEGER ) / 69 * + 25 + + - NULLIF ( + 65, - 37 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-373
SELECT - CAST( - + 21 AS SIGNED ) * + 56 + + 51
----
1227

skipif mysql # not compatible
query I rowsort label-373
SELECT - CAST ( - + 21 AS INTEGER ) * + 56 + + 51
----
1227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-374
SELECT - + 66 + + 44 * NULLIF ( - + 3, - + 79 + - + 69 * + + 13 + MAX( - ( 99 ) ) ) * 27 + - + CAST( - + 16 AS SIGNED ) + 22 * + + 87
----
-1700

skipif mysql # not compatible
query I rowsort label-374
SELECT - + 66 + + 44 * NULLIF ( - + 3, - + 79 + - + 69 * + + 13 + MAX ( - ( 99 ) ) ) * 27 + - + CAST ( - + 16 AS INTEGER ) + 22 * + + 87
----
-1700

query I rowsort
SELECT - 31 * + ( 46 ) AS col1
----
-1426

onlyif mysql # aggregate syntax: 
query II rowsort label-376
SELECT - - 91 + - - 91 + COUNT( * ) * + 92 - 0, + 54 * - + 99 AS col1
----
274
-5346

skipif mysql # not compatible
query II rowsort label-376
SELECT - - 91 + - - 91 + COUNT ( * ) * + 92 - 0, + 54 * - + 99 AS col1
----
274
-5346

query I rowsort
SELECT - NULLIF ( - 8, + 59 ) AS col0
----
8

query I rowsort
SELECT - + 16 * + 91 * + + 84
----
-122304

query I rowsort
SELECT - 58 + - 62 AS col1
----
-120

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT ALL + - NULLIF ( 94, - MIN( + 25 ) )
----
-94

skipif mysql # not compatible
query I rowsort label-381
SELECT ALL + - NULLIF ( 94, - MIN ( + 25 ) )
----
-94

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

skipif mysql # not compatible
query I rowsort label-382
SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( * ) / + 38 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-384
SELECT + + 73 DIV + 81 + + 45 - + - COUNT( * ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-384
SELECT + + 73 / + 81 + + 45 - + - COUNT ( * ) AS col0
----
46

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

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

query I rowsort
SELECT + 74 * - - 25 + + + 84 + - - 98 col1
----
2032

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-387
SELECT ALL - CAST( NULL AS DECIMAL ) col2, 5 * 52 * + 80 AS col1
----
NULL
20800

skipif mysql # not compatible
query II rowsort label-387
SELECT ALL - CAST ( NULL AS REAL ) col2, 5 * 52 * + 80 AS col1
----
NULL
20800

query I rowsort
SELECT 56 * + 10 col1
----
560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-389
SELECT 62 DIV + + ( - MIN( ALL - 69 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-389
SELECT 62 / + + ( - MIN ( ALL - 69 ) ) AS col0
----
0

query I rowsort
SELECT 98 * - + 30 col0
----
-2940

query I rowsort
SELECT ALL 8 + 88 AS col2
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-392
SELECT DISTINCT + 67 + - - 6 DIV + + 98 * - 42
----
67

skipif mysql # not compatible
query I rowsort label-392
SELECT DISTINCT + 67 + - - 6 / + + 98 * - 42
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-393
SELECT DISTINCT SUM( + 63 ) + - COUNT( * ) col2, CASE + - COUNT( * ) WHEN 79 THEN - 52 + 62 * - ( + COUNT( * ) ) END - + 81 * - - 63 AS col0
----
62
NULL

skipif mysql # not compatible
query II rowsort label-393
SELECT DISTINCT SUM ( + 63 ) + - COUNT ( * ) col2, CASE + - COUNT ( * ) WHEN 79 THEN - 52 + 62 * - ( + COUNT ( * ) ) END - + 81 * - - 63 AS col0
----
62
NULL

query I rowsort
SELECT ALL 72 + + 41 * + + 59
----
2491

query II rowsort
SELECT 81 - + 16 * 3 + - - 97 + + ( + 64 ), 15 AS col0
----
194
15

onlyif mysql # aggregate syntax: 
query II rowsort label-396
SELECT + 10, + CASE + 8 WHEN - + 44 / 91 - - 61 THEN + + 65 * + 20 * + 35 + - + ( 49 ) - - + 34 WHEN - - 65 * - 77 + - 59 THEN - 89 + - COUNT( * ) * AVG ( - - 6 ) END AS col1
----
10
NULL

skipif mysql # not compatible
query II rowsort label-396
SELECT + 10, + CASE + 8 WHEN - + 44 / 91 - - 61 THEN + + 65 * + 20 * + 35 + - + ( 49 ) - - + 34 WHEN - - 65 * - 77 + - 59 THEN - 89 + - COUNT ( * ) * AVG ( - - 6 ) END AS col1
----
10
NULL

query II rowsort
SELECT + 12 col2, ( - 67 )
----
12
-67

onlyif mysql # aggregate syntax: 
query III rowsort label-398
SELECT 12 + ( COUNT( * ) ), 13 * - 71 * + - 60 AS col1, - 59 AS col2
----
13
55380
-59

skipif mysql # not compatible
query III rowsort label-398
SELECT 12 + ( COUNT ( * ) ), 13 * - 71 * + - 60 AS col1, - 59 AS col2
----
13
55380
-59

query I rowsort
SELECT + 66 * 31 AS col2
----
2046

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

onlyif mysql # aggregate syntax: 
query I rowsort label-401
SELECT DISTINCT - COALESCE ( 80, + - COUNT( * ) ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-401
SELECT DISTINCT - COALESCE ( 80, + - COUNT ( * ) ) AS col0
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-402
SELECT - 33 * 60 DIV 8 AS col1
----
-247

skipif mysql # not compatible
query I rowsort label-402
SELECT - 33 * 60 / 8 AS col1
----
-247

query I rowsort
SELECT DISTINCT + + 17 * 5 AS col2
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-404
SELECT DISTINCT - 7 DIV - 24 * + + 59 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-404
SELECT DISTINCT - 7 / - 24 * + + 59 AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-405
SELECT + ( - 11 ) * + COUNT ( * ) / + 84
----
0

query I rowsort
SELECT 32 - - 47
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT ALL - - COALESCE ( + 31, + - ( + COUNT( * ) ), + 37 * + 30 + + 49 ) * + 88 AS col1
----
2728

skipif mysql # not compatible
query I rowsort label-407
SELECT ALL - - COALESCE ( + 31, + - ( + COUNT ( * ) ), + 37 * + 30 + + 49 ) * + 88 AS col1
----
2728

query I rowsort
SELECT + ( 36 ) * + 29 AS col0
----
1044

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

skipif mysql # not compatible
query I rowsort label-409
SELECT 22 * CAST ( + COUNT ( * ) AS INTEGER )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-410
SELECT 65 * MAX( 43 ) AS col2
----
2795

skipif mysql # not compatible
query I rowsort label-410
SELECT 65 * MAX ( 43 ) AS col2
----
2795

query I rowsort
SELECT ALL - 53 * + + 50
----
-2650

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-413
SELECT + 44 * 34 * - 36 - + CAST( NULL AS SIGNED ), + COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-413
SELECT + 44 * 34 * - 36 - + CAST ( NULL AS INTEGER ), + COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT DISTINCT + 81 + 52 * + + COUNT( * ) AS col1
----
133

skipif mysql # not compatible
query I rowsort label-414
SELECT DISTINCT + 81 + 52 * + + COUNT ( * ) AS col1
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-415
SELECT DISTINCT COUNT( * ) + COALESCE ( ( + 55 ), - 56 * + ( + 78 ) ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-415
SELECT DISTINCT COUNT ( * ) + COALESCE ( ( + 55 ), - 56 * + ( + 78 ) ) AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT COUNT( * ) * - 73 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-416
SELECT COUNT ( * ) * - 73 AS col1
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-417
SELECT COUNT( * ) + - 44 AS col2, + 66 + + - NULLIF ( 65, 31 ) AS col1
----
-43
1

skipif mysql # not compatible
query II rowsort label-417
SELECT COUNT ( * ) + - 44 AS col2, + 66 + + - NULLIF ( 65, 31 ) AS col1
----
-43
1

onlyif mysql # aggregate syntax: 
query I rowsort label-418
SELECT 64 * - NULLIF ( 43, - 39 + + COUNT( * ) ) - + + 23 AS col1
----
-2775

skipif mysql # not compatible
query I rowsort label-418
SELECT 64 * - NULLIF ( 43, - 39 + + COUNT ( * ) ) - + + 23 AS col1
----
-2775

query I rowsort
SELECT ALL COALESCE ( - + 71, - 32 ) - + 89
----
-160

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-421
SELECT 16 + - 86 - COUNT( * ) col2
----
-71

skipif mysql # not compatible
query I rowsort label-421
SELECT 16 + - 86 - COUNT ( * ) col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-422
SELECT DISTINCT + MAX( + - 34 ) * - 47
----
1598

skipif mysql # not compatible
query I rowsort label-422
SELECT DISTINCT + MAX ( + - 34 ) * - 47
----
1598

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-423
SELECT - 49 * + 73 + + COUNT( * ) * - 22 DIV 2
----
-3588

skipif mysql # not compatible
query I rowsort label-423
SELECT - 49 * + 73 + + COUNT ( * ) * - 22 / 2
----
-3588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-424
SELECT - 76 + + 78 / - ( + COALESCE ( + + MAX( ALL - - 10 ), 25 ) ) / + 9 + - CAST( NULL AS SIGNED ) * + + ( + 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-424
SELECT - 76 + + 78 / - ( + COALESCE ( + + MAX ( ALL - - 10 ), 25 ) ) / + 9 + - CAST ( NULL AS INTEGER ) * + + ( + 64 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-425
SELECT + MAX( + 75 ) DIV - + 18 - + 55 AS col2, 53 AS col0
----
-59
53

skipif mysql # not compatible
query II rowsort label-425
SELECT + MAX ( + 75 ) / - + 18 - + 55 AS col2, 53 AS col0
----
-59
53

onlyif mysql # DIV for integer division: 
query I rowsort label-426
SELECT ALL 20 DIV NULLIF ( + 51, + 25 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-426
SELECT ALL 20 / NULLIF ( + 51, + 25 ) AS col0
----
0

query I rowsort
SELECT 11 + 25 * + ( - - 68 ) + + 12 AS col0
----
1723

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-428
SELECT NULLIF ( - - CASE - - AVG ( - + 33 ) WHEN - 5 THEN NULL WHEN + + 74 + 52 + + - MIN( ALL - 74 ) + - COUNT( * ) - - 42 THEN NULL WHEN 19 THEN + CASE WHEN ( NOT NULL IS NULL ) THEN - 52 ELSE NULL END * - 34 DIV + 53 * COALESCE ( - - 95, - ( - - 7 ) ) * 31 + + + 24 DIV 93 ELSE COUNT( * ) + + 95 END, - 19 + 0 ) - 31 * - 28
----
964

skipif mysql # not compatible
query I rowsort label-428
SELECT NULLIF ( - - CASE - - AVG ( - + 33 ) WHEN - 5 THEN NULL WHEN + + 74 + 52 + + - MIN ( ALL - 74 ) + - COUNT ( * ) - - 42 THEN NULL WHEN 19 THEN + CASE WHEN ( NOT NULL IS NULL ) THEN - 52 ELSE NULL END * - 34 / + 53 * COALESCE ( - - 95, - ( - - 7 ) ) * 31 + + + 24 / 93 ELSE COUNT ( * ) + + 95 END, - 19 + 0 ) - 31 * - 28
----
964

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-430
SELECT + 26 - - 24 + + COUNT( * ) + MAX( 31 ) * + 44 * + 50 AS col1
----
68251

skipif mysql # not compatible
query I rowsort label-430
SELECT + 26 - - 24 + + COUNT ( * ) + MAX ( 31 ) * + 44 * + 50 AS col1
----
68251

onlyif mysql # aggregate syntax: 
query I rowsort label-431
SELECT ALL + CASE - + COUNT( ALL - 23 ) WHEN - ( 85 ) * 52 * 83 THEN + 75 WHEN - - 61 THEN NULL END * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-431
SELECT ALL + CASE - + COUNT ( ALL - 23 ) WHEN - ( 85 ) * 52 * 83 THEN + 75 WHEN - - 61 THEN NULL END * - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT + 40 + + - 37 col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT DISTINCT + SUM( ALL 49 ) + 99 AS col2
----
148

skipif mysql # not compatible
query I rowsort label-433
SELECT DISTINCT + SUM ( ALL 49 ) + 99 AS col2
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-434
SELECT DISTINCT MIN( 71 )
----
71

skipif mysql # not compatible
query I rowsort label-434
SELECT DISTINCT MIN ( 71 )
----
71

query I rowsort
SELECT + 6 + + - 64
----
-58

query I rowsort
SELECT ALL 50 + NULLIF ( ( 90 ), - + 60 ) + - 96
----
44

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

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

skipif mysql # not compatible
query I rowsort label-438
SELECT + CAST ( NULL AS INTEGER ) / 99
----
NULL

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

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

query I rowsort
SELECT ALL + ( + + 57 ) + + - 96 + + 98 - - - 76 - - - 19 * 27 * + 53 AS col0
----
-27206

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-441
SELECT + COALESCE ( - SUM( 52 ), - - COUNT( * ) * - + 13 + 56 + + MIN( - 55 ) * 18 * - + ( 38 ) * + CAST( NULL AS SIGNED ) * 95 ) + + - 42 AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-441
SELECT + COALESCE ( - SUM ( 52 ), - - COUNT ( * ) * - + 13 + 56 + + MIN ( - 55 ) * 18 * - + ( 38 ) * + CAST ( NULL AS INTEGER ) * 95 ) + + - 42 AS col2
----
-94

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

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

query I rowsort
SELECT DISTINCT 61 + + + 68 AS col0
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-444
SELECT ALL + COALESCE ( + 6, - - 21 * - COUNT( * ) - ( - - 27 ) + + 37 + + AVG ( + 67 ) - - 53 * + CAST( NULL AS DECIMAL ) + - 61 + + CAST( NULL AS DECIMAL ), - - 59 ) * COUNT( * ) * - 95 + - 3 - + + 68 * - CAST( NULL AS SIGNED ) + + + 47 * + + 7 + + 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-444
SELECT ALL + COALESCE ( + 6, - - 21 * - COUNT ( * ) - ( - - 27 ) + + 37 + + AVG ( + 67 ) - - 53 * + CAST ( NULL AS REAL ) + - 61 + + CAST ( NULL AS REAL ), - - 59 ) * COUNT ( * ) * - 95 + - 3 - + + 68 * - CAST ( NULL AS INTEGER ) + + + 47 * + + 7 + + 82 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-445
SELECT - CAST( + NULLIF ( - + 67, - 64 / + - 51 ) AS SIGNED ) + - + 19
----
48

skipif mysql # not compatible
query I rowsort label-445
SELECT - CAST ( + NULLIF ( - + 67, - 64 / + - 51 ) AS INTEGER ) + - + 19
----
48

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-447
SELECT + CAST( 41 AS SIGNED ) DIV + 41 AS col2, + 27
----
1
27

skipif mysql # not compatible
query II rowsort label-447
SELECT + CAST ( 41 AS INTEGER ) / + 41 AS col2, + 27
----
1
27

onlyif mysql # DIV for integer division: 
query I rowsort label-448
SELECT COALESCE ( 16, - 77 DIV - + 83 )
----
16

skipif mysql # not compatible
query I rowsort label-448
SELECT COALESCE ( 16, - 77 / - + 83 )
----
16

query I rowsort
SELECT - 36 + + 17 AS col2
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-450
SELECT COALESCE ( + + 74, ( + - CAST( - ( 98 ) AS SIGNED ) ) )
----
74

skipif mysql # not compatible
query I rowsort label-450
SELECT COALESCE ( + + 74, ( + - CAST ( - ( 98 ) AS INTEGER ) ) )
----
74

query I rowsort
SELECT - 13 + - - 53 AS col0
----
40

query I rowsort
SELECT DISTINCT 14 * 95 - 47 col2
----
1283

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT DISTINCT + MAX( ALL - - 5 )
----
5

skipif mysql # not compatible
query I rowsort label-453
SELECT DISTINCT + MAX ( ALL - - 5 )
----
5

query I rowsort
SELECT - 65 * ( - 79 )
----
5135

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-456
SELECT - + 26 * 65 + - 42 + + 83 + + - 2 + 29 DIV + 68
----
-1651

skipif mysql # not compatible
query I rowsort label-456
SELECT - + 26 * 65 + - 42 + + 83 + + - 2 + 29 / + 68
----
-1651

query I rowsort
SELECT DISTINCT + 0 * 85
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-458
SELECT ALL + COUNT( * ) + 85 * + COALESCE ( 2, - 37 ) - CAST( NULL AS SIGNED ) * 0 + - ( + - 9 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-458
SELECT ALL + COUNT ( * ) + 85 * + COALESCE ( 2, - 37 ) - CAST ( NULL AS INTEGER ) * 0 + - ( + - 9 ) AS col2
----
NULL

query I rowsort
SELECT ALL 77 + - 81 - - 34
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-460
SELECT + - 47 * + - CASE + AVG ( + - 11 ) WHEN - - 37 - + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) THEN + 68 WHEN - - COUNT( * ) THEN NULL ELSE - 74 END - + 5 + + 91 + + + COUNT( * ) AS col1
----
-3391

skipif mysql # not compatible
query I rowsort label-460
SELECT + - 47 * + - CASE + AVG ( + - 11 ) WHEN - - 37 - + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) THEN + 68 WHEN - - COUNT ( * ) THEN NULL ELSE - 74 END - + 5 + + 91 + + + COUNT ( * ) AS col1
----
-3391

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-461
SELECT - MIN( DISTINCT - 57 ) * + - COALESCE ( + - CAST( NULL AS SIGNED ), - 97 + + SUM( - 2 ) * MAX( ALL 65 ), + 14 ) AS col0, - CAST( + 71 AS SIGNED ) AS col0
----
12939
-71

skipif mysql # not compatible
query II rowsort label-461
SELECT - MIN ( DISTINCT - 57 ) * + - COALESCE ( + - CAST ( NULL AS INTEGER ), - 97 + + SUM ( - 2 ) * MAX ( ALL 65 ), + 14 ) AS col0, - CAST ( + 71 AS INTEGER ) AS col0
----
12939
-71

query I rowsort
SELECT + + 46 + + + 17 + 27 col2
----
90

query II rowsort
SELECT - 71, 52 AS col0
----
-71
52

query I rowsort
SELECT - 4 * + + 5 - - ( - 20 ) * 73 + 19 * - 79 AS col1
----
-2981

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-465
SELECT ALL - 66 + - 77 * + - NULLIF ( - + ( + + MIN( 69 ) ), 52 - + MAX( DISTINCT - 98 ) + CAST( - 3 AS SIGNED ) * - ( + - 70 ) / - 36 )
----
-5379

skipif mysql # not compatible
query I rowsort label-465
SELECT ALL - 66 + - 77 * + - NULLIF ( - + ( + + MIN ( 69 ) ), 52 - + MAX ( DISTINCT - 98 ) + CAST ( - 3 AS INTEGER ) * - ( + - 70 ) / - 36 )
----
-5379

query II rowsort
SELECT - 44 AS col2, + 57
----
-44
57

query I rowsort
SELECT + + 96 + + - 50
----
46

query I rowsort
SELECT DISTINCT CASE - 73 WHEN - + 87 - 98 * - 27 THEN + 55 END * 87 * - 73 * 56 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-469
SELECT DISTINCT - 63 + - 0 * + COUNT( * ), 12 DIV 63 AS col2
----
-63
0

skipif mysql # not compatible
query II rowsort label-469
SELECT DISTINCT - 63 + - 0 * + COUNT ( * ), 12 / 63 AS col2
----
-63
0

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

skipif mysql # not compatible
query I rowsort label-470
SELECT ALL COUNT ( * ) + 87 AS col2
----
88

query I rowsort
SELECT DISTINCT 55 * - 78 AS col1
----
-4290

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

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT + COALESCE ( + ( - - 45 ), - + 16 + - MAX( - 75 ) ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-473
SELECT + COALESCE ( + ( - - 45 ), - + 16 + - MAX ( - 75 ) ) AS col1
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-474
SELECT - 37 DIV - 23
----
1

skipif mysql # not compatible
query I rowsort label-474
SELECT - 37 / - 23
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-475
SELECT CAST( + MAX( DISTINCT - + 1 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-475
SELECT CAST ( + MAX ( DISTINCT - + 1 ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-476
SELECT 1 * + - COUNT( * ) - + 32
----
-33

skipif mysql # not compatible
query I rowsort label-476
SELECT 1 * + - COUNT ( * ) - + 32
----
-33

query I rowsort
SELECT + 18 * - - NULLIF ( - + 57, ( - + 84 ) + 20 + 7 / + 61 )
----
-1026

onlyif mysql # aggregate syntax: 
query I rowsort label-478
SELECT - COUNT( * ) * - 79 - + + SUM( DISTINCT 21 ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-478
SELECT - COUNT ( * ) * - 79 - + + SUM ( DISTINCT 21 ) AS col1
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-479
SELECT DISTINCT 42 DIV + 38 AS col0, - 3 + SUM( 72 ) + 80 + CAST( - ( - 51 ) AS SIGNED ) * 15 + - + 42 + - 34 * - 76 * - + COUNT( * ) * + 34 + + 97 AS col2
----
1
-86887

skipif mysql # not compatible
query II rowsort label-479
SELECT DISTINCT 42 / + 38 AS col0, - 3 + SUM ( 72 ) + 80 + CAST ( - ( - 51 ) AS INTEGER ) * 15 + - + 42 + - 34 * - 76 * - + COUNT ( * ) * + 34 + + 97 AS col2
----
1
-86887

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-480
SELECT CAST( NULL AS SIGNED ) AS col2, NULLIF ( 12, + - 8 * - + COALESCE ( + ( - 97 ), 56 + + + 55 ) )
----
NULL
12

skipif mysql # not compatible
query II rowsort label-480
SELECT CAST ( NULL AS INTEGER ) AS col2, NULLIF ( 12, + - 8 * - + COALESCE ( + ( - 97 ), 56 + + + 55 ) )
----
NULL
12

query I rowsort
SELECT + 65 + 81
----
146

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-484
SELECT + CAST( + COALESCE ( - 26, + 85 ) AS SIGNED ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-484
SELECT + CAST ( + COALESCE ( - 26, + 85 ) AS INTEGER ) AS col0
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-485
SELECT + - 7 DIV 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-485
SELECT + - 7 / 89 AS col0
----
0

query I rowsort
SELECT ALL - 36 * - 99 + + 89 * 35 + 59
----
6738

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT DISTINCT 64 * MIN( DISTINCT + 44 ) AS col1
----
2816

skipif mysql # not compatible
query I rowsort label-487
SELECT DISTINCT 64 * MIN ( DISTINCT + 44 ) AS col1
----
2816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-488
SELECT ALL + 71 AS col2, CAST( - MAX( DISTINCT + + 14 ) AS SIGNED )
----
71
-14

skipif mysql # not compatible
query II rowsort label-488
SELECT ALL + 71 AS col2, CAST ( - MAX ( DISTINCT + + 14 ) AS INTEGER )
----
71
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT DISTINCT COUNT( DISTINCT - 33 ) * - + 97 + 27 * MIN( + 17 ) + - - COUNT( * )
----
363

skipif mysql # not compatible
query I rowsort label-489
SELECT DISTINCT COUNT ( DISTINCT - 33 ) * - + 97 + 27 * MIN ( + 17 ) + - - COUNT ( * )
----
363

query I rowsort
SELECT ALL + + 43 + + 86 AS col2
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-491
SELECT COALESCE ( CAST( - CAST( NULL AS SIGNED ) AS SIGNED ), - NULLIF ( + 67, + 0 ) ) * - 29
----
1943

skipif mysql # not compatible
query I rowsort label-491
SELECT COALESCE ( CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ), - NULLIF ( + 67, + 0 ) ) * - 29
----
1943

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-492
SELECT ALL - + 30 + CASE 57 WHEN + 76 THEN 52 * CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-492
SELECT ALL - + 30 + CASE 57 WHEN + 76 THEN 52 * CAST ( NULL AS REAL ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-493
SELECT 95, 71 + - - COUNT( * ) + 11 AS col1
----
95
83

skipif mysql # not compatible
query II rowsort label-493
SELECT 95, 71 + - - COUNT ( * ) + 11 AS col1
----
95
83

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-496
SELECT ALL - + COUNT( * ) + - 88 + + - 96 * + - 76 + 81
----
7288

skipif mysql # not compatible
query I rowsort label-496
SELECT ALL - + COUNT ( * ) + - 88 + + - 96 * + - 76 + 81
----
7288

query II rowsort
SELECT ALL - 66 col1, - 30 * + 89 col1
----
-66
-2670

query I rowsort
SELECT - 38 + + 67 * + 79 + - 3 col0
----
5252

onlyif mysql # aggregate syntax: 
query II rowsort label-499
SELECT 71 + - 97 - + - 13 + - COUNT( + - 24 ), - 43 AS col2
----
-14
-43

skipif mysql # not compatible
query II rowsort label-499
SELECT 71 + - 97 - + - 13 + - COUNT ( + - 24 ), - 43 AS col2
----
-14
-43

query I rowsort
SELECT 7 * + - 94
----
-658

query I rowsort
SELECT 81 + - ( + 45 ) * + - 66 col2
----
3051

query I rowsort
SELECT 90 + - 81
----
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-503
SELECT DISTINCT - 50 DIV + 91, 63 AS col0, + ( CAST( 86 AS SIGNED ) ) + - + 51 + - 96 col0
----
0
63
-61

skipif mysql # not compatible
query III rowsort label-503
SELECT DISTINCT - 50 / + 91, 63 AS col0, + ( CAST ( 86 AS INTEGER ) ) + - + 51 + - 96 col0
----
0
63
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-504
SELECT ALL CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) AS col0, COUNT( * ) + - + COALESCE ( - + 69, AVG ( ALL + + 59 ) DIV 25 + + 91 * 56 * 93 + - ( - ( 44 ) ) )
----
NULL
70

skipif mysql # not compatible
query II rowsort label-504
SELECT ALL CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) + - + COALESCE ( - + 69, AVG ( ALL + + 59 ) / 25 + + 91 * 56 * 93 + - ( - ( 44 ) ) )
----
NULL
70

onlyif mysql # aggregate syntax: 
query I rowsort label-505
SELECT COUNT( * ) + - 41
----
-40

skipif mysql # not compatible
query I rowsort label-505
SELECT COUNT ( * ) + - 41
----
-40

query I rowsort
SELECT 25 + 81 + ( + 1 ) * 14
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT 32 * + COALESCE ( + COALESCE ( - + COUNT( * ), + + 52 ), + + 2, - 26, + 63 ) * 44 + - 52 * + 63 * 70 AS col0
----
-230728

skipif mysql # not compatible
query I rowsort label-507
SELECT 32 * + COALESCE ( + COALESCE ( - + COUNT ( * ), + + 52 ), + + 2, - 26, + 63 ) * 44 + - 52 * + 63 * 70 AS col0
----
-230728

onlyif mysql # DIV for integer division: 
query II rowsort label-508
SELECT ALL 1 * + + 47 col1, - 78 DIV + 78
----
47
-1

skipif mysql # not compatible
query II rowsort label-508
SELECT ALL 1 * + + 47 col1, - 78 / + 78
----
47
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-509
SELECT - CASE + - 61 WHEN + - 50 THEN NULL ELSE - NULLIF ( 69, - 98 + - 19 ) - - - 78 END DIV - 95 + + NULLIF ( - + 42, 76 ) + - - COUNT( * ) * 80
----
37

skipif mysql # not compatible
query I rowsort label-509
SELECT - CASE + - 61 WHEN + - 50 THEN NULL ELSE - NULLIF ( 69, - 98 + - 19 ) - - - 78 END / - 95 + + NULLIF ( - + 42, 76 ) + - - COUNT ( * ) * 80
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-510
SELECT 69 / - CASE WHEN NOT NULL > NULL THEN NULL WHEN NULL BETWEEN + 38 AND - + 21 / + - ( 27 ) + CASE - 42 WHEN - - ( + - 40 ) THEN NULL WHEN + - NULLIF ( 29, + 63 ) / + 75 * + 43 - - 6 * + 49 THEN - 41 * - 85 + + - ( - - 25 ) END - + CAST( + + COALESCE ( - 72, - 56 ) AS SIGNED ) THEN - CASE - 24 WHEN + + 78 * + 45 + + 64 THEN NULL WHEN CASE COUNT( * ) WHEN CAST( NULL AS SIGNED ) THEN - 65 WHEN + COUNT( * ) THEN NULL END + 76 * - 7 THEN - 6 + 57 WHEN 56 THEN - 92 * - 98 END * + 3 END + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-510
SELECT 69 / - CASE WHEN NOT NULL > NULL THEN NULL WHEN NULL BETWEEN + 38 AND - + 21 / + - ( 27 ) + CASE - 42 WHEN - - ( + - 40 ) THEN NULL WHEN + - NULLIF ( 29, + 63 ) / + 75 * + 43 - - 6 * + 49 THEN - 41 * - 85 + + - ( - - 25 ) END - + CAST ( + + COALESCE ( - 72, - 56 ) AS INTEGER ) THEN - CASE - 24 WHEN + + 78 * + 45 + + 64 THEN NULL WHEN CASE COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) THEN - 65 WHEN + COUNT ( * ) THEN NULL END + 76 * - 7 THEN - 6 + 57 WHEN 56 THEN - 92 * - 98 END * + 3 END + 57
----
NULL

query I rowsort
SELECT 22 * + 71 AS col0
----
1562

onlyif mysql # aggregate syntax: 
query I rowsort label-512
SELECT ( + MAX( DISTINCT - NULLIF ( + + 89, 58 ) ) ) + + 77 + + 32 * + 6 AS col2
----
180

skipif mysql # not compatible
query I rowsort label-512
SELECT ( + MAX ( DISTINCT - NULLIF ( + + 89, 58 ) ) ) + + 77 + + 32 * + 6 AS col2
----
180

query I rowsort
SELECT ALL - 73 + + 68 + - 4
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT ALL 9 + + 69 - + COUNT( * ) * + 52 * 89 * - - 6
----
-27690

skipif mysql # not compatible
query I rowsort label-514
SELECT ALL 9 + + 69 - + COUNT ( * ) * + 52 * 89 * - - 6
----
-27690

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT DISTINCT + 40 + + 1 - - SUM( 11 ) * 24 AS col2
----
305

skipif mysql # not compatible
query I rowsort label-515
SELECT DISTINCT + 40 + + 1 - - SUM ( 11 ) * 24 AS col2
----
305

query I rowsort
SELECT DISTINCT 58 + + 78 col0
----
136

query II rowsort
SELECT 42 * - + 67 AS col2, + 33
----
-2814
33

query I rowsort
SELECT ALL + 90 + 25 * 69 * + + 44 AS col2
----
75990

query I rowsort
SELECT - + 60 * - - 96 - + - 4
----
-5756

query I rowsort
SELECT + 59 * - 56 - 3 AS col2
----
-3307

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-521
SELECT COALESCE ( 83, - 86 + 21 - + + 82 * - 17 ) - + CASE 15 WHEN 46 THEN + COUNT( * ) * + + 90 + + 74 END + - 20 + + 91 * - 42, + 77 + - MAX( - ( - + 5 ) ) + - 24 DIV ( + 57 ) AS col2
----
NULL
72

skipif mysql # not compatible
query II rowsort label-521
SELECT COALESCE ( 83, - 86 + 21 - + + 82 * - 17 ) - + CASE 15 WHEN 46 THEN + COUNT ( * ) * + + 90 + + 74 END + - 20 + + 91 * - 42, + 77 + - MAX ( - ( - + 5 ) ) + - 24 / ( + 57 ) AS col2
----
NULL
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-522
SELECT ( MIN( DISTINCT + 22 ) ) * + CAST( NULL AS SIGNED )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-523
SELECT + - COUNT( * ) * 24 + - 92 - + 52
----
-168

skipif mysql # not compatible
query I rowsort label-523
SELECT + - COUNT ( * ) * 24 + - 92 - + 52
----
-168

query I rowsort
SELECT DISTINCT - + NULLIF ( + 95, 88 ) AS col1
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-525
SELECT + COUNT( * ) + + COUNT( * ) + - 98 * + + 76 * - 40 - ( 30 ), CASE 75 WHEN - - 31 * + CASE + + 58 WHEN 52 * - 33 THEN NULL WHEN + - NULLIF ( + 81, - - 77 ) * + 91 THEN 99 END + + 3 THEN CAST( NULL AS SIGNED ) * - 71 + 23 + - + AVG ( DISTINCT 39 ) * - 14 + + AVG ( 21 ) * 49 END / - + ( - + 82 ) + + - NULLIF ( + 9, 13 ) AS col1
----
297892
NULL

skipif mysql # not compatible
query II rowsort label-525
SELECT + COUNT ( * ) + + COUNT ( * ) + - 98 * + + 76 * - 40 - ( 30 ), CASE 75 WHEN - - 31 * + CASE + + 58 WHEN 52 * - 33 THEN NULL WHEN + - NULLIF ( + 81, - - 77 ) * + 91 THEN 99 END + + 3 THEN CAST ( NULL AS INTEGER ) * - 71 + 23 + - + AVG ( DISTINCT 39 ) * - 14 + + AVG ( 21 ) * 49 END / - + ( - + 82 ) + + - NULLIF ( + 9, 13 ) AS col1
----
297892
NULL

query I rowsort
SELECT ALL + 63 - - 60 * + - 6 AS col1
----
-297

query I rowsort
SELECT ALL - 83 - - + 9
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-528
SELECT DISTINCT - - 61 - MAX( ALL - 0 ) + COUNT( * ) * - ( 3 ) * - CASE 75 WHEN + + COUNT( * ) THEN - COALESCE ( + + CAST( + COUNT( * ) AS SIGNED ), + + CASE + 10 WHEN + 18 / - 32 + - - 95 * + + 18 THEN - COUNT( * ) ELSE + + ( 42 ) * 13 END + + 13 + + COUNT( * ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-528
SELECT DISTINCT - - 61 - MAX ( ALL - 0 ) + COUNT ( * ) * - ( 3 ) * - CASE 75 WHEN + + COUNT ( * ) THEN - COALESCE ( + + CAST ( + COUNT ( * ) AS INTEGER ), + + CASE + 10 WHEN + 18 / - 32 + - - 95 * + + 18 THEN - COUNT ( * ) ELSE + + ( 42 ) * 13 END + + 13 + + COUNT ( * ) ) ELSE NULL END
----
NULL

query I rowsort
SELECT 16 + 77
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-530
SELECT ALL - MAX( - + 0 ) * + 1 * - 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-530
SELECT ALL - MAX ( - + 0 ) * + 1 * - 74 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT 0 * COALESCE ( - - 94, - 34 + - 49 - + 54, - + CASE WHEN NOT ( 79 ) BETWEEN - 31 AND + 79 + 65 + - - MIN( ALL + 55 ) * - - COALESCE ( + COUNT( * ), - + COUNT( * ), + 22 * 13 ) * + + 28 THEN 28 WHEN NOT ( - 13 ) + 32 * - - 40 + + 56 IS NULL THEN NULL ELSE NULL END * - ( + 88 ) + 64 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-531
SELECT 0 * COALESCE ( - - 94, - 34 + - 49 - + 54, - + CASE WHEN NOT ( 79 ) BETWEEN - 31 AND + 79 + 65 + - - MIN ( ALL + 55 ) * - - COALESCE ( + COUNT ( * ), - + COUNT ( * ), + 22 * 13 ) * + + 28 THEN 28 WHEN NOT ( - 13 ) + 32 * - - 40 + + 56 IS NULL THEN NULL ELSE NULL END * - ( + 88 ) + 64 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-532
SELECT 35 + ( - 87 ) AS col2, - CASE + CASE + COUNT( * ) WHEN + ( - + 23 ) THEN NULL WHEN + 92 THEN 80 ELSE NULL END WHEN + 63 + - CAST( NULL AS SIGNED ) + + 32 THEN - - 13 END
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-532
SELECT 35 + ( - 87 ) AS col2, - CASE + CASE + COUNT ( * ) WHEN + ( - + 23 ) THEN NULL WHEN + 92 THEN 80 ELSE NULL END WHEN + 63 + - CAST ( NULL AS INTEGER ) + + 32 THEN - - 13 END
----
-52
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-533
SELECT ALL - 64 * + COUNT( - + 33 ) AS col2, - ( - - 65 ) col0
----
-64
-65

skipif mysql # not compatible
query II rowsort label-533
SELECT ALL - 64 * + COUNT ( - + 33 ) AS col2, - ( - - 65 ) col0
----
-64
-65

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-535
SELECT 32 DIV + 13
----
2

skipif mysql # not compatible
query I rowsort label-535
SELECT 32 / + 13
----
2

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

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

query I rowsort
SELECT 6 - - 62
----
68

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-539
SELECT ALL + NULLIF ( 26, - 74 ) DIV - ( COUNT( * ) ) + 82
----
56

skipif mysql # not compatible
query I rowsort label-539
SELECT ALL + NULLIF ( 26, - 74 ) / - ( COUNT ( * ) ) + 82
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-540
SELECT 22 DIV + 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-540
SELECT 22 / + 94 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-541
SELECT DISTINCT ( - + ( ( + COUNT( - 34 ) ) ) ) / 3 + + - MIN( ALL + CAST( NULL AS SIGNED ) ) * - 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-541
SELECT DISTINCT ( - + ( ( + COUNT ( - 34 ) ) ) ) / 3 + + - MIN ( ALL + CAST ( NULL AS INTEGER ) ) * - 87 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-542
SELECT DISTINCT 64 * + - SUM( DISTINCT 92 ) + - 67 - - - 18 + - - 59 * + + 7
----
-5560

skipif mysql # not compatible
query I rowsort label-542
SELECT DISTINCT 64 * + - SUM ( DISTINCT 92 ) + - 67 - - - 18 + - - 59 * + + 7
----
-5560

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT DISTINCT - COUNT( * ) * + - 65 + - 4
----
61

skipif mysql # not compatible
query I rowsort label-544
SELECT DISTINCT - COUNT ( * ) * + - 65 + - 4
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-545
SELECT + - COUNT( * ) AS col1, CAST( + 92 AS SIGNED ) + + COALESCE ( - + 38, + 96, - 29 DIV + - 47 + - + COALESCE ( 57, + 28 + ( + 89 ) ) )
----
-1
54

skipif mysql # not compatible
query II rowsort label-545
SELECT + - COUNT ( * ) AS col1, CAST ( + 92 AS INTEGER ) + + COALESCE ( - + 38, + 96, - 29 / + - 47 + - + COALESCE ( 57, + 28 + ( + 89 ) ) )
----
-1
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-546
SELECT ALL + 99 * + + 52 + + + COUNT( * ) DIV - - 43 AS col0
----
5148

skipif mysql # not compatible
query I rowsort label-546
SELECT ALL + 99 * + + 52 + + + COUNT ( * ) / - - 43 AS col0
----
5148

query I rowsort
SELECT - + 55 + - 30
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-548
SELECT + - CAST( + 23 AS SIGNED ) * - 87 - + 97 * - + 79 * 33 + - + 82 * + 65 + - + 85 / + - CASE ( - - COALESCE ( - ( + - 9 ), - COUNT( * ) * + - 89 + + 17 + 55 * - 54 / CAST( + + 90 AS SIGNED ) ) ) WHEN - 41 * 55 THEN + - CASE - - 89 WHEN - + 56 THEN - 89 + 7 + + 5 * 34 * + CAST( NULL AS SIGNED ) END END * + SUM( - 90 ) + + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-548
SELECT + - CAST ( + 23 AS INTEGER ) * - 87 - + 97 * - + 79 * 33 + - + 82 * + 65 + - + 85 / + - CASE ( - - COALESCE ( - ( + - 9 ), - COUNT ( * ) * + - 89 + + 17 + 55 * - 54 / CAST ( + + 90 AS INTEGER ) ) ) WHEN - 41 * 55 THEN + - CASE - - 89 WHEN - + 56 THEN - 89 + 7 + + 5 * 34 * + CAST ( NULL AS INTEGER ) END END * + SUM ( - 90 ) + + 56
----
NULL

query II rowsort
SELECT ALL + 78 col2, + 6 col0
----
78
6

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

query I rowsort
SELECT + 97 * + 86 - + 8 - - 95 + - 75 + - + ( 88 ) * + + 32 * 34 AS col0
----
-87390

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT DISTINCT COUNT( * ) * - 96 - - COALESCE ( - 36, - 71, + + ( - + 84 ) ) AS col1
----
-132

skipif mysql # not compatible
query I rowsort label-552
SELECT DISTINCT COUNT ( * ) * - 96 - - COALESCE ( - 36, - 71, + + ( - + 84 ) ) AS col1
----
-132

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-554
SELECT - CASE - + 69 WHEN + MIN( DISTINCT - + 86 ) THEN 15 * + COUNT( * ) + - 59 WHEN - - 5 THEN - + 8 + + 79 + + - ( + 91 ) + - 77 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-554
SELECT - CASE - + 69 WHEN + MIN ( DISTINCT - + 86 ) THEN 15 * + COUNT ( * ) + - 59 WHEN - - 5 THEN - + 8 + + 79 + + - ( + 91 ) + - 77 ELSE NULL END
----
NULL

query I rowsort
SELECT + - ( + 92 ) + + - 12 AS col1
----
-104

query II rowsort
SELECT ALL + + 67, 84 + 23 AS col1
----
67
107

onlyif mysql # aggregate syntax: 
query II rowsort label-557
SELECT ALL + + 76, + 38 + - 90 * - 44 * + + 82 + COUNT( DISTINCT + + 89 ) AS col0
----
76
324759

skipif mysql # not compatible
query II rowsort label-557
SELECT ALL + + 76, + 38 + - 90 * - 44 * + + 82 + COUNT ( DISTINCT + + 89 ) AS col0
----
76
324759

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-558
SELECT 37 * - + 23 - - + 86 - + + COUNT( * ) * + 26 + - + CAST( NULL AS SIGNED ) + + + 74 * - 73 + 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-558
SELECT 37 * - + 23 - - + 86 - + + COUNT ( * ) * + 26 + - + CAST ( NULL AS INTEGER ) + + + 74 * - 73 + 46 AS col2
----
NULL

query I rowsort
SELECT + - 74 * + 73
----
-5402

onlyif mysql # aggregate syntax: 
query II rowsort label-560
SELECT - + COUNT( * ), + 71 * + 45 AS col1
----
-1
3195

skipif mysql # not compatible
query II rowsort label-560
SELECT - + COUNT ( * ), + 71 * + 45 AS col1
----
-1
3195

query I rowsort
SELECT ALL 26 * - 24
----
-624

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT + 49 * ( + COALESCE ( 44, + 59, - ( - + 78 ) ) ) * - + COUNT( * ) + - CASE - 1 WHEN - 82 * - - 84 * - - 61 * - 93 THEN + - 87 * - - ( 59 ) END * ( 85 ) * + + ( + AVG ( 83 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-562
SELECT + 49 * ( + COALESCE ( 44, + 59, - ( - + 78 ) ) ) * - + COUNT ( * ) + - CASE - 1 WHEN - 82 * - - 84 * - - 61 * - 93 THEN + - 87 * - - ( 59 ) END * ( 85 ) * + + ( + AVG ( 83 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT ALL SUM( ( 29 ) )
----
29

skipif mysql # not compatible
query I rowsort label-563
SELECT ALL SUM ( ( 29 ) )
----
29

query I rowsort
SELECT ALL 90 * + 66 AS col2
----
5940

query II rowsort
SELECT + 2 + - - 5, - 5 + + ( 0 ) - + 20 - - 82 AS col1
----
7
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-566
SELECT - 78 + 79 * - 55 + CAST( + - ( + - 83 ) AS SIGNED )
----
-4340

skipif mysql # not compatible
query I rowsort label-566
SELECT - 78 + 79 * - 55 + CAST ( + - ( + - 83 ) AS INTEGER )
----
-4340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-567
SELECT - 54 + MIN( - 65 ) DIV + ( + COUNT( DISTINCT + 12 ) ) + 44 AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-567
SELECT - 54 + MIN ( - 65 ) / + ( + COUNT ( DISTINCT + 12 ) ) + 44 AS col1
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-568
SELECT + 66 + - - CAST( 70 AS SIGNED ) + ( - 69 ) * - - 74 * + 10
----
-50924

skipif mysql # not compatible
query I rowsort label-568
SELECT + 66 + - - CAST ( 70 AS INTEGER ) + ( - 69 ) * - - 74 * + 10
----
-50924

query I rowsort
SELECT - 72 - + 41
----
-113

query I rowsort
SELECT + 42 + - 93 AS col1
----
-51

query I rowsort
SELECT - 48 - 68 AS col1
----
-116

query I rowsort
SELECT ALL COALESCE ( + ( - - ( - ( - 72 ) ) ), 27 )
----
72

query I rowsort
SELECT ALL + 15 * 84 AS col2
----
1260

onlyif mysql # aggregate syntax: 
query I rowsort label-574
SELECT - 18 * - MAX( + + 86 )
----
1548

skipif mysql # not compatible
query I rowsort label-574
SELECT - 18 * - MAX ( + + 86 )
----
1548

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

skipif mysql # not compatible
query I rowsort label-575
SELECT - COUNT ( * ) + + 46 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT DISTINCT + 97 + - 18 + COALESCE ( - 35, - 43 + - COALESCE ( - ( - + 30 ), + - 57 ) + + 27 ) + + 43 * - COUNT( * ) + - + 64 col2
----
-63

skipif mysql # not compatible
query I rowsort label-576
SELECT DISTINCT + 97 + - 18 + COALESCE ( - 35, - 43 + - COALESCE ( - ( - + 30 ), + - 57 ) + + 27 ) + + 43 * - COUNT ( * ) + - + 64 col2
----
-63

query I rowsort
SELECT ALL - 43 + ( + - 35 ) AS col0
----
-78

query I rowsort
SELECT - 12 + + ( - 55 ) AS col2
----
-67

query I rowsort
SELECT ALL + ( - - 30 ) + 1
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-580
SELECT ALL + 16 DIV - 1 + 21 - + ( - 68 ) DIV - 71 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-580
SELECT ALL + 16 / - 1 + 21 - + ( - 68 ) / - 71 AS col1
----
5

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-582
SELECT - 16 DIV + 26 + - - ( + 35 ) AS col1, 25 + - 19
----
35
6

skipif mysql # not compatible
query II rowsort label-582
SELECT - 16 / + 26 + - - ( + 35 ) AS col1, 25 + - 19
----
35
6

onlyif mysql # DIV for integer division: 
query I rowsort label-583
SELECT - 45 DIV + - 28 + - + 18
----
-17

skipif mysql # not compatible
query I rowsort label-583
SELECT - 45 / + - 28 + - + 18
----
-17

query I rowsort
SELECT ALL + 7 * + 13 AS col2
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-585
SELECT - + 69 DIV + COUNT( * ) AS col0, - 36 AS col2
----
-69
-36

skipif mysql # not compatible
query II rowsort label-585
SELECT - + 69 / + COUNT ( * ) AS col0, - 36 AS col2
----
-69
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-586
SELECT + - 86 + + 7 * - + COALESCE ( - + 38, 28 ) * - CAST( + CASE + 45 WHEN + + COUNT( * ) THEN NULL WHEN + SUM( ALL - CAST( NULL AS SIGNED ) ) THEN 73 ELSE COALESCE ( - CASE - - MIN( CAST( NULL AS SIGNED ) ) WHEN - 57 THEN NULL ELSE + + 69 END, - CAST( NULL AS SIGNED ) ) END AS SIGNED ) AS col1, + 84 + + 78
----
18268
162

skipif mysql # not compatible
query II rowsort label-586
SELECT + - 86 + + 7 * - + COALESCE ( - + 38, 28 ) * - CAST ( + CASE + 45 WHEN + + COUNT ( * ) THEN NULL WHEN + SUM ( ALL - CAST ( NULL AS INTEGER ) ) THEN 73 ELSE COALESCE ( - CASE - - MIN ( CAST ( NULL AS INTEGER ) ) WHEN - 57 THEN NULL ELSE + + 69 END, - CAST ( NULL AS INTEGER ) ) END AS INTEGER ) AS col1, + 84 + + 78
----
18268
162

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT + NULLIF ( + 80, + + 5 * + COUNT( * ) + 30 - - ( - + SUM( DISTINCT + 14 ) ) ) * - 3 * - COUNT( * ) + ( CASE 1 WHEN 45 THEN + - 0 ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-587
SELECT + NULLIF ( + 80, + + 5 * + COUNT ( * ) + 30 - - ( - + SUM ( DISTINCT + 14 ) ) ) * - 3 * - COUNT ( * ) + ( CASE 1 WHEN 45 THEN + - 0 ELSE NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-588
SELECT - + ( - 79 ) * 26 * + CASE 70 WHEN + 18 THEN - COALESCE ( + 49, - 61 - - - 54 - - 80, + COUNT( * ) + 84 ) * + 66 / 46 WHEN + COUNT( * ) * 90 + + 38 THEN NULL END * - MAX( + + 27 ) * + - 78 * - + 85 * + COUNT( * ) + - + COUNT( 0 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-588
SELECT - + ( - 79 ) * 26 * + CASE 70 WHEN + 18 THEN - COALESCE ( + 49, - 61 - - - 54 - - 80, + COUNT ( * ) + 84 ) * + 66 / 46 WHEN + COUNT ( * ) * 90 + + 38 THEN NULL END * - MAX ( + + 27 ) * + - 78 * - + 85 * + COUNT ( * ) + - + COUNT ( 0 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-589
SELECT - 52 * - COUNT( * ) + - 9
----
43

skipif mysql # not compatible
query I rowsort label-589
SELECT - 52 * - COUNT ( * ) + - 9
----
43

query I rowsort
SELECT + 26 + + + 94
----
120

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

skipif mysql # not compatible
query I rowsort label-591
SELECT + 2 * - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-592
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 73
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-593
SELECT + MIN( 12 ) DIV + 30 + 53 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-593
SELECT + MIN ( 12 ) / + 30 + 53 AS col0
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-594
SELECT DISTINCT CAST( + 29 AS SIGNED ) * - - 34 col2
----
986

skipif mysql # not compatible
query I rowsort label-594
SELECT DISTINCT CAST ( + 29 AS INTEGER ) * - - 34 col2
----
986

onlyif mysql # DIV for integer division: 
query I rowsort label-595
SELECT + 18 DIV 73
----
0

skipif mysql # not compatible
query I rowsort label-595
SELECT + 18 / 73
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT ALL 6 + + COUNT( * ) col2
----
7

skipif mysql # not compatible
query I rowsort label-597
SELECT ALL 6 + + COUNT ( * ) col2
----
7

query I rowsort
SELECT DISTINCT NULLIF ( 68, + AVG ( DISTINCT - + 59 ) ) + - + 44
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-599
SELECT ALL - 38 DIV 57 * - 83
----
0

skipif mysql # not compatible
query I rowsort label-599
SELECT ALL - 38 / 57 * - 83
----
0

query I rowsort
SELECT 60 * - 44
----
-2640

onlyif mysql # aggregate syntax: 
query I rowsort label-601
SELECT ALL ( 56 ) + 95 + 96 * + + COUNT( ALL + 86 ) col1
----
247

skipif mysql # not compatible
query I rowsort label-601
SELECT ALL ( 56 ) + 95 + 96 * + + COUNT ( ALL + 86 ) col1
----
247

query I rowsort
SELECT 28 + ( + - 41 ) col1
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-603
SELECT COUNT( + ( - 27 ) ) * - CAST( - - 97 AS SIGNED )
----
-97

skipif mysql # not compatible
query I rowsort label-603
SELECT COUNT ( + ( - 27 ) ) * - CAST ( - - 97 AS INTEGER )
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-604
SELECT CAST( NULL AS SIGNED ) + - AVG ( + + ( + - ( - - 82 ) ) ) * - SUM( + - 11 ) / + 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-604
SELECT CAST ( NULL AS INTEGER ) + - AVG ( + + ( + - ( - - 82 ) ) ) * - SUM ( + - 11 ) / + 15 AS col2
----
NULL

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

query I rowsort
SELECT ALL + - ( 9 ) * - 72 AS col1
----
648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-607
SELECT CAST( + 61 AS SIGNED ) - 58 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-607
SELECT CAST ( + 61 AS INTEGER ) - 58 AS col2
----
3

query II rowsort
SELECT + 57, - 47 AS col2
----
57
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT ALL - MIN( DISTINCT 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-609
SELECT ALL - MIN ( DISTINCT 9 )
----
-9

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

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

query I rowsort
SELECT - 88 * 78
----
-6864

query I rowsort
SELECT + 15 - + 95 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT MAX( + 4 ) * ( - + SUM( + - 26 ) )
----
104

skipif mysql # not compatible
query I rowsort label-613
SELECT MAX ( + 4 ) * ( - + SUM ( + - 26 ) )
----
104

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-615
SELECT CAST( - - 79 AS SIGNED ) * COUNT( - 15 ) * + + 78
----
6162

skipif mysql # not compatible
query I rowsort label-615
SELECT CAST ( - - 79 AS INTEGER ) * COUNT ( - 15 ) * + + 78
----
6162

query I rowsort
SELECT ALL - 2 * - 50 * - 63 + + 87 AS col2
----
-6213

query I rowsort
SELECT CASE - - 42 WHEN + 75 THEN - + 16 * 70 - + 38 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-618
SELECT DISTINCT + 59 + 78 + - CAST( NULL AS SIGNED ) + 90 * - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-618
SELECT DISTINCT + 59 + 78 + - CAST ( NULL AS INTEGER ) + 90 * - 47
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-619
SELECT ALL - 5 DIV 41 * + - 46
----
0

skipif mysql # not compatible
query I rowsort label-619
SELECT ALL - 5 / 41 * + - 46
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-620
SELECT DISTINCT 31 + 14 + + ( - 7 ) * - ( CAST( NULL AS DECIMAL ) ) AS col2, 82 AS col2
----
NULL
82

skipif mysql # not compatible
query II rowsort label-620
SELECT DISTINCT 31 + 14 + + ( - 7 ) * - ( CAST ( NULL AS REAL ) ) AS col2, 82 AS col2
----
NULL
82

query I rowsort
SELECT DISTINCT + 33 * + + 95 col1
----
3135

query I rowsort
SELECT 6 + + + 47
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-623
SELECT COUNT( * ) + - 78 * - - 19
----
-1481

skipif mysql # not compatible
query I rowsort label-623
SELECT COUNT ( * ) + - 78 * - - 19
----
-1481

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-624
SELECT 25 + + 52 + - NULLIF ( SUM( ALL + 16 ), + + 10 ) AS col2, CAST( + CASE - 24 WHEN - MAX( ( 92 ) ) THEN + - NULLIF ( ( 45 ), - - 13 / - AVG ( 57 ) ) END AS SIGNED ) + 42 col2
----
61
NULL

skipif mysql # not compatible
query II rowsort label-624
SELECT 25 + + 52 + - NULLIF ( SUM ( ALL + 16 ), + + 10 ) AS col2, CAST ( + CASE - 24 WHEN - MAX ( ( 92 ) ) THEN + - NULLIF ( ( 45 ), - - 13 / - AVG ( 57 ) ) END AS INTEGER ) + 42 col2
----
61
NULL

query I rowsort
SELECT ALL NULLIF ( + 81, - + 17 ) + - - 75 - - - 77 * + 42
----
-3078

query I rowsort
SELECT 31 + COALESCE ( + 22, + - 4 )
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-627
SELECT - 99, 71 * 15 - + + 78 + MAX( ALL - 94 ) DIV + 98 AS col2
----
-99
987

skipif mysql # not compatible
query II rowsort label-627
SELECT - 99, 71 * 15 - + + 78 + MAX ( ALL - 94 ) / + 98 AS col2
----
-99
987

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-628
SELECT ALL + CAST( NULL AS SIGNED ) + - - 0 AS col1, 46 AS col1
----
NULL
46

skipif mysql # not compatible
query II rowsort label-628
SELECT ALL + CAST ( NULL AS INTEGER ) + - - 0 AS col1, 46 AS col1
----
NULL
46

query I rowsort
SELECT 60 + + 50
----
110

onlyif mysql # aggregate syntax: 
query II rowsort label-630
SELECT ALL 71 + + 6 * + 21 + - - 86 AS col1, MIN( DISTINCT - 73 ) + + 61 - - 1
----
283
-11

skipif mysql # not compatible
query II rowsort label-630
SELECT ALL 71 + + 6 * + 21 + - - 86 AS col1, MIN ( DISTINCT - 73 ) + + 61 - - 1
----
283
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-631
SELECT DISTINCT 88 DIV + 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-631
SELECT DISTINCT 88 / + 92 AS col2
----
0

query I rowsort
SELECT 27 * + 23
----
621

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-633
SELECT - NULLIF ( + - COUNT( DISTINCT - 31 ), 42 - - CAST( NULL AS DECIMAL ) * 74 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-633
SELECT - NULLIF ( + - COUNT ( DISTINCT - 31 ), 42 - - CAST ( NULL AS REAL ) * 74 ) AS col0
----
1

query I rowsort
SELECT ALL 53 - 60 * + 28 AS col1
----
-1627

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

query I rowsort
SELECT - 37 + - 44
----
-81

query I rowsort
SELECT 65 + - 99
----
-34

query I rowsort
SELECT ALL 20 - - 12 col1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-639
SELECT + 13 AS col1, CAST( - - CAST( - 79 AS SIGNED ) AS SIGNED ) * + - 10 col0
----
13
790

skipif mysql # not compatible
query II rowsort label-639
SELECT + 13 AS col1, CAST ( - - CAST ( - 79 AS INTEGER ) AS INTEGER ) * + - 10 col0
----
13
790

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT 52 * - CASE 76 WHEN 82 + - COUNT( * ) THEN 71 END + + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-640
SELECT 52 * - CASE 76 WHEN 82 + - COUNT ( * ) THEN 71 END + + 79
----
NULL

query II rowsort
SELECT ALL - 55, + 93 AS col1
----
-55
93

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

skipif mysql # not compatible
query I rowsort label-642
SELECT SUM ( - + 40 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT ALL - ( + + MAX( DISTINCT - 68 ) )
----
68

skipif mysql # not compatible
query I rowsort label-643
SELECT ALL - ( + + MAX ( DISTINCT - 68 ) )
----
68

query II rowsort
SELECT ALL - 32 AS col2, ( - 22 ) AS col2
----
-32
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-645
SELECT 50 DIV - - 89 * - COALESCE ( + + NULLIF ( - 50, - + COUNT( * ) ), - + ( + 66 ) DIV + COUNT( * ) * - 30 + + CASE - 85 WHEN + COUNT( * ) THEN 18 * - - 15 + + + CAST( NULL AS SIGNED ) WHEN 73 THEN NULL END + + 57 + + 38 ) + + MIN( + 98 ) AS col1, + 55 * 15 + 80 AS col2
----
98
905

skipif mysql # not compatible
query II rowsort label-645
SELECT 50 / - - 89 * - COALESCE ( + + NULLIF ( - 50, - + COUNT ( * ) ), - + ( + 66 ) / + COUNT ( * ) * - 30 + + CASE - 85 WHEN + COUNT ( * ) THEN 18 * - - 15 + + + CAST ( NULL AS INTEGER ) WHEN 73 THEN NULL END + + 57 + + 38 ) + + MIN ( + 98 ) AS col1, + 55 * 15 + 80 AS col2
----
98
905

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-646
SELECT + 98 AS col2, CAST( + 18 AS SIGNED )
----
98
18

skipif mysql # not compatible
query II rowsort label-646
SELECT + 98 AS col2, CAST ( + 18 AS INTEGER )
----
98
18

onlyif mysql # aggregate syntax: 
query II rowsort label-647
SELECT DISTINCT + 37 + + + COUNT( * ) AS col0, - 42 AS col2
----
38
-42

skipif mysql # not compatible
query II rowsort label-647
SELECT DISTINCT + 37 + + + COUNT ( * ) AS col0, - 42 AS col2
----
38
-42

query I rowsort
SELECT - 81 * - 74 * - 12 + - 37
----
-71965

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-649
SELECT 26 + + CAST( - ( + 0 ) AS SIGNED ) * - COUNT( * ) AS col0, 75
----
26
75

skipif mysql # not compatible
query II rowsort label-649
SELECT 26 + + CAST ( - ( + 0 ) AS INTEGER ) * - COUNT ( * ) AS col0, 75
----
26
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-650
SELECT + AVG ( - CAST( NULL AS SIGNED ) ) AS col0, 44
----
NULL
44

skipif mysql # not compatible
query II rowsort label-650
SELECT + AVG ( - CAST ( NULL AS INTEGER ) ) AS col0, 44
----
NULL
44

query I rowsort
SELECT ALL + COALESCE ( - 71, - - 86, - 50 ) + + - 17 AS col0
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-652
SELECT 41 + - - ( - 26 ) + CASE - 50 WHEN 43 THEN + MAX( - 77 ) + + 12 DIV CAST( + 43 AS SIGNED ) END * 43 AS col2, + 23 DIV + MIN( 85 ) - + 38 + - MAX( + + 39 ) + 4 - - 89 * + + 68 * - 62
----
NULL
-375297

skipif mysql # not compatible
query II rowsort label-652
SELECT 41 + - - ( - 26 ) + CASE - 50 WHEN 43 THEN + MAX ( - 77 ) + + 12 / CAST ( + 43 AS INTEGER ) END * 43 AS col2, + 23 / + MIN ( 85 ) - + 38 + - MAX ( + + 39 ) + 4 - - 89 * + + 68 * - 62
----
NULL
-375297

onlyif mysql # DIV for integer division: 
query I rowsort label-653
SELECT 16 DIV 83 DIV 52
----
0

skipif mysql # not compatible
query I rowsort label-653
SELECT 16 / 83 / 52
----
0

query I rowsort
SELECT 51 + + 39
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-655
SELECT ALL - CASE - + 68 WHEN - 0 THEN + 85 WHEN - COUNT( * ) + - 33 THEN 27 * - COUNT( * ) * - COUNT( + + 67 ) / 57 WHEN - + 30 THEN NULL WHEN + 79 / - + 67 THEN NULL END + + - COUNT( + + 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-655
SELECT ALL - CASE - + 68 WHEN - 0 THEN + 85 WHEN - COUNT ( * ) + - 33 THEN 27 * - COUNT ( * ) * - COUNT ( + + 67 ) / 57 WHEN - + 30 THEN NULL WHEN + 79 / - + 67 THEN NULL END + + - COUNT ( + + 23 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-656
SELECT + 23 * + 55 + + COUNT( * ), - 60 + - 85 + - 45 - + 22 * - COUNT( * ) + + 44 * 83 AS col0
----
1266
3484

skipif mysql # not compatible
query II rowsort label-656
SELECT + 23 * + 55 + + COUNT ( * ), - 60 + - 85 + - 45 - + 22 * - COUNT ( * ) + + 44 * 83 AS col0
----
1266
3484

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-657
SELECT DISTINCT + COALESCE ( 17, - - 53, - 23 + - 94 ) + NULLIF ( - + 4, + AVG ( ALL - + ( - CAST( - + 3 AS SIGNED ) ) ) * - + 18 * - 22 * + + ( + MAX( - 79 ) ) + - + ( + ( 94 ) ) / 86 )
----
13

skipif mysql # not compatible
query I rowsort label-657
SELECT DISTINCT + COALESCE ( 17, - - 53, - 23 + - 94 ) + NULLIF ( - + 4, + AVG ( ALL - + ( - CAST ( - + 3 AS INTEGER ) ) ) * - + 18 * - 22 * + + ( + MAX ( - 79 ) ) + - + ( + ( 94 ) ) / 86 )
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-658
SELECT 50 * - 88 AS col1, + COUNT( * )
----
-4400
1

skipif mysql # not compatible
query II rowsort label-658
SELECT 50 * - 88 AS col1, + COUNT ( * )
----
-4400
1

query I rowsort
SELECT DISTINCT 18 * - - 5 AS col0
----
90

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-661
SELECT - SUM( 59 ) AS col1, + COUNT( * ) AS col2
----
-59
1

skipif mysql # not compatible
query II rowsort label-661
SELECT - SUM ( 59 ) AS col1, + COUNT ( * ) AS col2
----
-59
1

onlyif mysql # aggregate syntax: 
query I rowsort label-662
SELECT DISTINCT - 66 * + - 70 * 0 * - COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-662
SELECT DISTINCT - 66 * + - 70 * 0 * - COUNT ( * ) col2
----
0

query I rowsort
SELECT ALL + 12 - - - 57 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-664
SELECT - 7 * COUNT( * ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-664
SELECT - 7 * COUNT ( * ) AS col1
----
-7

query I rowsort
SELECT ALL - ( + - 30 ) * + 1 * - 13
----
-390

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-666
SELECT DISTINCT - - CAST( - + COUNT( * ) AS SIGNED ) * + 45 * - ( 67 ) * 64 * + 89 * - - 58, + 99 AS col0
----
996059520
99

skipif mysql # not compatible
query II rowsort label-666
SELECT DISTINCT - - CAST ( - + COUNT ( * ) AS INTEGER ) * + 45 * - ( 67 ) * 64 * + 89 * - - 58, + 99 AS col0
----
996059520
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-667
SELECT ALL ( - + MAX( DISTINCT + - 56 ) ) AS col2, - 36 DIV - + 83 * + CAST( 27 AS SIGNED ) + - 50 + - 36 DIV 50 * + - 53 AS col2
----
56
-50

skipif mysql # not compatible
query II rowsort label-667
SELECT ALL ( - + MAX ( DISTINCT + - 56 ) ) AS col2, - 36 / - + 83 * + CAST ( 27 AS INTEGER ) + - 50 + - 36 / 50 * + - 53 AS col2
----
56
-50

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-669
SELECT ALL - 1 DIV - 80, 43 * + 9 col0
----
0
387

skipif mysql # not compatible
query II rowsort label-669
SELECT ALL - 1 / - 80, 43 * + 9 col0
----
0
387

onlyif mysql # aggregate syntax: 
query I rowsort label-670
SELECT - COUNT( * ) * - + 24 * 14 * 81 - - + 77 col0
----
27293

skipif mysql # not compatible
query I rowsort label-670
SELECT - COUNT ( * ) * - + 24 * 14 * 81 - - + 77 col0
----
27293

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-671
SELECT - 14 + - - CAST( - - 85 AS SIGNED ) AS col2, 60 * + 4
----
71
240

skipif mysql # not compatible
query II rowsort label-671
SELECT - 14 + - - CAST ( - - 85 AS INTEGER ) AS col2, 60 * + 4
----
71
240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-672
SELECT ALL CAST( + 59 AS SIGNED ) * - 79 col1
----
-4661

skipif mysql # not compatible
query I rowsort label-672
SELECT ALL CAST ( + 59 AS INTEGER ) * - 79 col1
----
-4661

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT ALL - - 68 * + 44 + + 65 + + MAX( + - 12 ) + - + 48 col1
----
2997

skipif mysql # not compatible
query I rowsort label-673
SELECT ALL - - 68 * + 44 + + 65 + + MAX ( + - 12 ) + - + 48 col1
----
2997

onlyif mysql # DIV for integer division: 
query I rowsort label-674
SELECT DISTINCT 20 * NULLIF ( - 69, - - 80 ) + - 95 + - - 17 * 76 DIV - 76
----
-1492

skipif mysql # not compatible
query I rowsort label-674
SELECT DISTINCT 20 * NULLIF ( - 69, - - 80 ) + - 95 + - - 17 * 76 / - 76
----
-1492

query I rowsort
SELECT + + 38 * + 52 + + ( 34 ) AS col1
----
2010

query I rowsort
SELECT DISTINCT - 37 * - 9 + - ( 88 ) AS col0
----
245

query I rowsort
SELECT DISTINCT 38 * 53 AS col2
----
2014

query I rowsort
SELECT DISTINCT + 72 * - 72 + + 78
----
-5106

query I rowsort
SELECT + 67 * - 58
----
-3886

query I rowsort
SELECT + ( + NULLIF ( + 73, 40 ) ) AS col1
----
73

query I rowsort
SELECT ALL - 52 * - 51 * - 67 AS col2
----
-177684

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-682
SELECT NULLIF ( AVG ( CAST( NULL AS SIGNED ) ), - + 99 - 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-682
SELECT NULLIF ( AVG ( CAST ( NULL AS INTEGER ) ), - + 99 - 81 )
----
NULL

query I rowsort
SELECT 79 * - 91 + - 69 - 59 AS col2
----
-7317

query I rowsort
SELECT + 36 * 24
----
864

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

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

query I rowsort
SELECT ALL + 52 * + 46 AS col1
----
2392

query I rowsort
SELECT + 29 + 61
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-688
SELECT COUNT( * ), - 6 DIV - 80 AS col1
----
1
0

skipif mysql # not compatible
query II rowsort label-688
SELECT COUNT ( * ), - 6 / - 80 AS col1
----
1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-689
SELECT CAST( NULL AS SIGNED ) * - 89 + - + 4 * 83 * 24 * - 27 * - MIN( ALL + + ( 24 ) ) * - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-689
SELECT CAST ( NULL AS INTEGER ) * - 89 + - + 4 * 83 * 24 * - 27 * - MIN ( ALL + + ( 24 ) ) * - COUNT ( * ) col0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-691
SELECT ALL + COUNT( DISTINCT - 60 ) DIV + NULLIF ( 24, + - ( 11 ) + - 51 )
----
0

skipif mysql # not compatible
query I rowsort label-691
SELECT ALL + COUNT ( DISTINCT - 60 ) / + NULLIF ( 24, + - ( 11 ) + - 51 )
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-693
SELECT DISTINCT + CAST( - 66 AS SIGNED ) DIV 19 * - + 39
----
117

skipif mysql # not compatible
query I rowsort label-693
SELECT DISTINCT + CAST ( - 66 AS INTEGER ) / 19 * - + 39
----
117

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-694
SELECT COALESCE ( + 76, - 57 - CASE - 2 WHEN + - 62 * + ( 41 ) THEN NULL WHEN CAST( + 68 AS SIGNED ) THEN + 61 + + 64 * - 72 * + - 26 DIV - 74 END ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-694
SELECT COALESCE ( + 76, - 57 - CASE - 2 WHEN + - 62 * + ( 41 ) THEN NULL WHEN CAST ( + 68 AS INTEGER ) THEN + 61 + + 64 * - 72 * + - 26 / - 74 END ) AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT - 99 * - COUNT( * ) + + 25 AS col2
----
124

skipif mysql # not compatible
query I rowsort label-695
SELECT - 99 * - COUNT ( * ) + + 25 AS col2
----
124

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

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

query I rowsort
SELECT + - 28 * + - 55 AS col1
----
1540

query I rowsort
SELECT + 82 + 91 col0
----
173

query I rowsort
SELECT ALL + 89 + 51 col1
----
140

onlyif mysql # aggregate syntax: 
query II rowsort label-700
SELECT - + 84 + 3 - + 45 AS col1, ( + - COUNT( * ) ) + + 99 + - + 22 + - COUNT( * )
----
-126
75

skipif mysql # not compatible
query II rowsort label-700
SELECT - + 84 + 3 - + 45 AS col1, ( + - COUNT ( * ) ) + + 99 + - + 22 + - COUNT ( * )
----
-126
75

query I rowsort
SELECT ALL + 78 * 78 AS col0
----
6084

query I rowsort
SELECT ALL - - 31 + + 98
----
129

query II rowsort
SELECT 28, + 78 AS col1
----
28
78

query II rowsort
SELECT 22 AS col1, - 56 * + 22 col0
----
22
-1232

onlyif mysql # DIV for integer division: 
query I rowsort label-705
SELECT - 2 DIV + ( - 22 )
----
0

skipif mysql # not compatible
query I rowsort label-705
SELECT - 2 / + ( - 22 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT + COUNT( * ) + + 53 * - 77 AS col0
----
-4080

skipif mysql # not compatible
query I rowsort label-706
SELECT + COUNT ( * ) + + 53 * - 77 AS col0
----
-4080

onlyif mysql # DIV for integer division: 
query I rowsort label-707
SELECT ALL + 84 DIV - 96 - + 72 col1
----
-72

skipif mysql # not compatible
query I rowsort label-707
SELECT ALL + 84 / - 96 - + 72 col1
----
-72

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

onlyif mysql # aggregate syntax: 
query I rowsort label-709
SELECT DISTINCT + CASE - 24 WHEN + 77 + 3 THEN 4 + - NULLIF ( - + 44, + 2 ) + + + COUNT( * ) END * + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-709
SELECT DISTINCT + CASE - 24 WHEN + 77 + 3 THEN 4 + - NULLIF ( - + 44, + 2 ) + + + COUNT ( * ) END * + 87
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-710
SELECT ALL 65 DIV ( - 44 ) - + 2
----
-3

skipif mysql # not compatible
query I rowsort label-710
SELECT ALL 65 / ( - 44 ) - + 2
----
-3

query I rowsort
SELECT ALL + ( + 64 ) * - 41 - 57 AS col1
----
-2681

onlyif mysql # aggregate syntax: 
query I rowsort label-712
SELECT ALL COUNT( ALL - 2 ) * - 84
----
-84

skipif mysql # not compatible
query I rowsort label-712
SELECT ALL COUNT ( ALL - 2 ) * - 84
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT SUM( 83 ) + + 64
----
147

skipif mysql # not compatible
query I rowsort label-713
SELECT SUM ( 83 ) + + 64
----
147

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-714
SELECT NULLIF ( + ( + 51 ), + 99 ) DIV - - 31 * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-714
SELECT NULLIF ( + ( + 51 ), + 99 ) / - - 31 * - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-715
SELECT CAST( - 15 AS SIGNED ) * - NULLIF ( ( + + COUNT( * ) ), 96 ) * + 3 * - 70 + 85 + 69 * + CASE + - 76 WHEN 28 THEN - 32 END
----
NULL

skipif mysql # not compatible
query I rowsort label-715
SELECT CAST ( - 15 AS INTEGER ) * - NULLIF ( ( + + COUNT ( * ) ), 96 ) * + 3 * - 70 + 85 + 69 * + CASE + - 76 WHEN 28 THEN - 32 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-716
SELECT + SUM( + - CAST( NULL AS SIGNED ) ) * + - 67 * 28 * ( 60 ) * - 19 + + 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-716
SELECT + SUM ( + - CAST ( NULL AS INTEGER ) ) * + - 67 * 28 * ( 60 ) * - 19 + + 70 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT ALL + COUNT( * ) * + 92 * + + 91 * - - 96
----
803712

skipif mysql # not compatible
query I rowsort label-717
SELECT ALL + COUNT ( * ) * + 92 * + + 91 * - - 96
----
803712

query I rowsort
SELECT DISTINCT + 3 * + 63
----
189

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

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

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

query I rowsort
SELECT - 56 - + - 53 AS col2
----
-3

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

onlyif mysql # aggregate syntax: 
query II rowsort label-723
SELECT + 83 * + 71 AS col0, 15 + COUNT( * ) AS col1
----
5893
16

skipif mysql # not compatible
query II rowsort label-723
SELECT + 83 * + 71 AS col0, 15 + COUNT ( * ) AS col1
----
5893
16

query I rowsort
SELECT ALL + 68 + 47 - 8 AS col2
----
107

onlyif mysql # aggregate syntax: 
query II rowsort label-725
SELECT + ( MAX( ALL - ( 75 ) ) ) AS col1, - 31
----
-75
-31

skipif mysql # not compatible
query II rowsort label-725
SELECT + ( MAX ( ALL - ( 75 ) ) ) AS col1, - 31
----
-75
-31

query II rowsort
SELECT ALL + ( - 39 ) + - 79 + - 55, 84 AS col1
----
-173
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-727
SELECT DISTINCT 71 + CAST( COUNT( * ) AS SIGNED ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-727
SELECT DISTINCT 71 + CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-728
SELECT ALL + COUNT( * ) + + CAST( - 3 AS SIGNED ) col1
----
-2

skipif mysql # not compatible
query I rowsort label-728
SELECT ALL + COUNT ( * ) + + CAST ( - 3 AS INTEGER ) col1
----
-2

query I rowsort
SELECT 20 * + 98 AS col1
----
1960

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT DISTINCT - 85 + - + MIN( + + 24 ) AS col1
----
-109

skipif mysql # not compatible
query I rowsort label-730
SELECT DISTINCT - 85 + - + MIN ( + + 24 ) AS col1
----
-109

onlyif mysql # DIV for integer division: 
query I rowsort label-731
SELECT DISTINCT - 74 DIV - 48 + 80 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-731
SELECT DISTINCT - 74 / - 48 + 80 AS col0
----
81

query II rowsort
SELECT ALL - + 3 + 6 + - + COALESCE ( + 2, 5 + + 70 * - - 25 * - - 1, 17 ) - + + 49 * - 10 * 73 col0, - 64 + + 89 + - 50 col2
----
35771
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-733
SELECT ALL + 83 + NULLIF ( 30, COUNT( * ) * + + 80 + + 61 + CAST( + AVG ( ( - 57 ) ) AS SIGNED ) + 86 * CAST( NULL AS SIGNED ) )
----
113

skipif mysql # not compatible
query I rowsort label-733
SELECT ALL + 83 + NULLIF ( 30, COUNT ( * ) * + + 80 + + 61 + CAST ( + AVG ( ( - 57 ) ) AS INTEGER ) + 86 * CAST ( NULL AS INTEGER ) )
----
113

query I rowsort
SELECT - 99 + - 89 AS col1
----
-188

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

skipif mysql # not compatible
query I rowsort label-735
SELECT 89 - + COUNT ( * ) * 16 AS col0
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-736
SELECT ALL + - 91 * + 67 * COUNT( * ) + CAST( NULL AS SIGNED ) - + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-736
SELECT ALL + - 91 * + 67 * COUNT ( * ) + CAST ( NULL AS INTEGER ) - + 50
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-737
SELECT - MAX( DISTINCT + 10 ), + COUNT( * ) DIV + + 62 * + - 69 AS col1
----
-10
0

skipif mysql # not compatible
query II rowsort label-737
SELECT - MAX ( DISTINCT + 10 ), + COUNT ( * ) / + + 62 * + - 69 AS col1
----
-10
0

onlyif mysql # aggregate syntax: 
query I rowsort label-738
SELECT DISTINCT + NULLIF ( ( - 40 ), 81 ) * + + COUNT( * ) * 83 AS col1
----
-3320

skipif mysql # not compatible
query I rowsort label-738
SELECT DISTINCT + NULLIF ( ( - 40 ), 81 ) * + + COUNT ( * ) * 83 AS col1
----
-3320

onlyif mysql # aggregate syntax: 
query I rowsort label-739
SELECT DISTINCT - COUNT( * ) - - + COALESCE ( - - 37, - 7 + - 87 ) + 97 * + 22 AS col1
----
2170

skipif mysql # not compatible
query I rowsort label-739
SELECT DISTINCT - COUNT ( * ) - - + COALESCE ( - - 37, - 7 + - 87 ) + 97 * + 22 AS col1
----
2170

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-741
SELECT + COALESCE ( - - ( + CAST( NULL AS SIGNED ) ), - 81 * - - 99 + - + 62 + - 28 * 1 ) DIV + NULLIF ( 69, + 71 ) + + 63 - 56 AS col0, 58 + + + 24 DIV - NULLIF ( + 34, - COALESCE ( 1, - + 82 * - - NULLIF ( 43, + - 91 + + 46 + 61 ) * 88 - 16, + COUNT( * ), ( 85 ) ) * + 30 ) + - 29 + 99 * + + COUNT( * ) + - COUNT( DISTINCT 39 ) + + 72 + + + 26 * 49 AS col0
----
-110
1473

skipif mysql # not compatible
query II rowsort label-741
SELECT + COALESCE ( - - ( + CAST ( NULL AS INTEGER ) ), - 81 * - - 99 + - + 62 + - 28 * 1 ) / + NULLIF ( 69, + 71 ) + + 63 - 56 AS col0, 58 + + + 24 / - NULLIF ( + 34, - COALESCE ( 1, - + 82 * - - NULLIF ( 43, + - 91 + + 46 + 61 ) * 88 - 16, + COUNT ( * ), ( 85 ) ) * + 30 ) + - 29 + 99 * + + COUNT ( * ) + - COUNT ( DISTINCT 39 ) + + 72 + + + 26 * 49 AS col0
----
-110
1473

onlyif mysql # aggregate syntax: 
query II rowsort label-742
SELECT SUM( ALL 17 ) * 23 AS col0, CASE - - NULLIF ( + COUNT( * ), - - ( 64 ) + MAX( 72 ) ) WHEN - + COUNT( * ) THEN + 23 END
----
391
NULL

skipif mysql # not compatible
query II rowsort label-742
SELECT SUM ( ALL 17 ) * 23 AS col0, CASE - - NULLIF ( + COUNT ( * ), - - ( 64 ) + MAX ( 72 ) ) WHEN - + COUNT ( * ) THEN + 23 END
----
391
NULL

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

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

query I rowsort
SELECT - 48 * - - 61 * 44 + 64 AS col1
----
-128768

onlyif mysql # DIV for integer division: 
query I rowsort label-745
SELECT ALL + 25 DIV - - 28
----
0

skipif mysql # not compatible
query I rowsort label-745
SELECT ALL + 25 / - - 28
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-746
SELECT DISTINCT 59 * 92 DIV + 43 AS col1
----
126

skipif mysql # not compatible
query I rowsort label-746
SELECT DISTINCT 59 * 92 / + 43 AS col1
----
126

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

query I rowsort
SELECT 53 * 89 - + 68
----
4649

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

skipif mysql # not compatible
query I rowsort label-749
SELECT ALL - 17 * CAST ( COUNT ( * ) AS INTEGER )
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-750
SELECT ALL 47 DIV - 28
----
-1

skipif mysql # not compatible
query I rowsort label-750
SELECT ALL 47 / - 28
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-751
SELECT 94 DIV - - 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-751
SELECT 94 / - - 96 AS col2
----
0

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

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

query I rowsort
SELECT + 14 * + - NULLIF ( - NULLIF ( 60, + ( + - 63 ) ), 54 ) AS col0
----
840

query I rowsort
SELECT + 54 + + 3 AS col0
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-755
SELECT - - 40 * - + COUNT( * ) + - NULLIF ( + - COUNT( * ), - 2 * - 78 + - ( COALESCE ( 84, - - 36 ) ) ) + - - 10 - + - CAST( 63 AS SIGNED ) + 93
----
127

skipif mysql # not compatible
query I rowsort label-755
SELECT - - 40 * - + COUNT ( * ) + - NULLIF ( + - COUNT ( * ), - 2 * - 78 + - ( COALESCE ( 84, - - 36 ) ) ) + - - 10 - + - CAST ( 63 AS INTEGER ) + 93
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-756
SELECT ( - COALESCE ( 40, + 0 + + NULLIF ( 9, 33 ) * + CAST( NULL AS SIGNED ), - + 40 ) ) + - ( - - CASE + 15 WHEN - - COUNT( ALL - 64 ) THEN 1 WHEN + COALESCE ( 88, - CAST( 34 AS SIGNED ) + + 85 + - 63 + 90, COUNT( * ) ) * + 0 / + 87 THEN - ( 34 ) * + 76 * - MAX( ALL - - 53 ) + + 90 WHEN + ( SUM( DISTINCT - - 60 ) ) + CAST( NULL AS SIGNED ) + 16 THEN 21 - CAST( NULL AS SIGNED ) ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-756
SELECT ( - COALESCE ( 40, + 0 + + NULLIF ( 9, 33 ) * + CAST ( NULL AS INTEGER ), - + 40 ) ) + - ( - - CASE + 15 WHEN - - COUNT ( ALL - 64 ) THEN 1 WHEN + COALESCE ( 88, - CAST ( 34 AS INTEGER ) + + 85 + - 63 + 90, COUNT ( * ) ) * + 0 / + 87 THEN - ( 34 ) * + 76 * - MAX ( ALL - - 53 ) + + 90 WHEN + ( SUM ( DISTINCT - - 60 ) ) + CAST ( NULL AS INTEGER ) + 16 THEN 21 - CAST ( NULL AS INTEGER ) ELSE NULL END ) AS col1
----
NULL

query I rowsort
SELECT + 60 * + 44 + - ( + 78 ) + - ( + 21 )
----
2541

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-758
SELECT ALL NULLIF ( 67, - MAX( + - 41 ) / + 29 - 23 + + - CAST( - 61 AS SIGNED ) + + 78 - + - 61 * - 15 * - 31 + + - 45 ) + + 66
----
133

skipif mysql # not compatible
query I rowsort label-758
SELECT ALL NULLIF ( 67, - MAX ( + - 41 ) / + 29 - 23 + + - CAST ( - 61 AS INTEGER ) + + 78 - + - 61 * - 15 * - 31 + + - 45 ) + + 66
----
133

query I rowsort
SELECT - 90 + + 23 AS col2
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-760
SELECT 96 col1, - 95 + - + CAST( NULL AS SIGNED ) + 9 * - 44 col0
----
96
NULL

skipif mysql # not compatible
query II rowsort label-760
SELECT 96 col1, - 95 + - + CAST ( NULL AS INTEGER ) + 9 * - 44 col0
----
96
NULL

query I rowsort
SELECT ALL 33 + + 21
----
54

query I rowsort
SELECT 42 * + 12 + - ( + ( 80 ) ) AS col0
----
424

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

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

query I rowsort
SELECT ALL - 87 + - + 58 + + - 70 AS col1
----
-215

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-765
SELECT DISTINCT 4 + + - CAST( + 5 AS SIGNED ), MAX( 17 ) AS col0
----
-1
17

skipif mysql # not compatible
query II rowsort label-765
SELECT DISTINCT 4 + + - CAST ( + 5 AS INTEGER ), MAX ( 17 ) AS col0
----
-1
17

onlyif mysql # DIV for integer division: 
query I rowsort label-766
SELECT ( - 17 ) DIV + ( 44 )
----
0

skipif mysql # not compatible
query I rowsort label-766
SELECT ( - 17 ) / + ( 44 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT ALL - COALESCE ( + 53, + + 70 ) - COUNT( + 22 ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-767
SELECT ALL - COALESCE ( + 53, + + 70 ) - COUNT ( + 22 ) AS col0
----
-54

query I rowsort
SELECT - 19 * 60 + 12 AS col0
----
-1128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-769
SELECT - MAX( - 27 ) * CAST( COUNT( * ) AS SIGNED ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-769
SELECT - MAX ( - 27 ) * CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
27

query II rowsort
SELECT 10, 24 * + 88 AS col1
----
10
2112

query I rowsort
SELECT ALL - 93 * - 16 * 55
----
81840

query I rowsort
SELECT - 66 * + - 77 * - 44
----
-223608

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-773
SELECT ALL - ( + MAX( ALL - 65 ) ) DIV - + 55, ( + - COUNT( * ) ) AS col2
----
-1
-1

skipif mysql # not compatible
query II rowsort label-773
SELECT ALL - ( + MAX ( ALL - 65 ) ) / - + 55, ( + - COUNT ( * ) ) AS col2
----
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-774
SELECT + 37 AS col2, 69 - CAST( NULL AS SIGNED )
----
37
NULL

skipif mysql # not compatible
query II rowsort label-774
SELECT + 37 AS col2, 69 - CAST ( NULL AS INTEGER )
----
37
NULL

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

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

query II rowsort
SELECT + 40 AS col0, - 65 col0
----
40
-65

query I rowsort
SELECT COALESCE ( + COALESCE ( + 40, 93 + 15 - 20 ), - + 11, + + 28 )
----
40

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

skipif mysql # not compatible
query I rowsort label-778
SELECT - COALESCE ( + COUNT ( * ), + 95 ) * - COUNT ( * ) * + 80
----
80

query I rowsort
SELECT DISTINCT + NULLIF ( - 3, 62 ) col2
----
-3

query I rowsort
SELECT DISTINCT 12 * - - 24 + + + 40 AS col2
----
328

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT ALL 81 * + 91 + + 95 + 8 * + 80 * - + COUNT( * ) * + 61
----
-31574

skipif mysql # not compatible
query I rowsort label-781
SELECT ALL 81 * + 91 + + 95 + 8 * + 80 * - + COUNT ( * ) * + 61
----
-31574

query I rowsort
SELECT COALESCE ( + + 52, 6 ) AS col2
----
52

query I rowsort
SELECT - 41 * - - 9 AS col1
----
-369

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-784
SELECT + 46 + - COUNT( DISTINCT CAST( NULL AS SIGNED ) )
----
46

skipif mysql # not compatible
query I rowsort label-784
SELECT + 46 + - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) )
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-785
SELECT DISTINCT - 40 DIV + + COUNT( * ) + - 57 + - MIN( 14 ) * + + 87 * ( + + 23 ) * 16 AS col0
----
-448321

skipif mysql # not compatible
query I rowsort label-785
SELECT DISTINCT - 40 / + + COUNT ( * ) + - 57 + - MIN ( 14 ) * + + 87 * ( + + 23 ) * 16 AS col0
----
-448321

onlyif mysql # aggregate syntax: 
query I rowsort label-786
SELECT + + COUNT( ALL NULLIF ( - 15, 6 ) )
----
1

skipif mysql # not compatible
query I rowsort label-786
SELECT + + COUNT ( ALL NULLIF ( - 15, 6 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-787
SELECT + - 47 * NULLIF ( + + COUNT( ALL - 3 ), - 21 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-787
SELECT + - 47 * NULLIF ( + + COUNT ( ALL - 3 ), - 21 ) AS col1
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-788
SELECT + 37 DIV 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-788
SELECT + 37 / 66 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-789
SELECT ALL NULLIF ( NULLIF ( 53, + 85 + - NULLIF ( + + 36, - - AVG ( - 9 ) ) DIV 90 * - 67 + + NULLIF ( COUNT( * ), - + ( - + CASE - 5 WHEN - 61 THEN - - ( + - 61 ) END ) ) * - 39 ), + + CASE - 31 WHEN + 92 DIV + - 41 THEN 7 END - - - 17 ) DIV + + 39 AS col2, - COUNT( * ) * + 48 * + 74 col0
----
1
-3552

skipif mysql # not compatible
query II rowsort label-789
SELECT ALL NULLIF ( NULLIF ( 53, + 85 + - NULLIF ( + + 36, - - AVG ( - 9 ) ) / 90 * - 67 + + NULLIF ( COUNT ( * ), - + ( - + CASE - 5 WHEN - 61 THEN - - ( + - 61 ) END ) ) * - 39 ), + + CASE - 31 WHEN + 92 / + - 41 THEN 7 END - - - 17 ) / + + 39 AS col2, - COUNT ( * ) * + 48 * + 74 col0
----
1
-3552

query II rowsort
SELECT + 90 * 75 col0, 36
----
6750
36

query I rowsort
SELECT NULLIF ( + 64, - ( + COALESCE ( + - 7, + 56 + + 44 ) ) * - + 38 )
----
64

query II rowsort
SELECT ALL + 62, 94 AS col1
----
62
94

onlyif mysql # aggregate syntax: 
query I rowsort label-793
SELECT + + 70 - MAX( ALL - - NULLIF ( - 31, + + 84 * - 20 ) ) AS col1
----
101

skipif mysql # not compatible
query I rowsort label-793
SELECT + + 70 - MAX ( ALL - - NULLIF ( - 31, + + 84 * - 20 ) ) AS col1
----
101

query II rowsort
SELECT ALL + 65 AS col1, - 95
----
65
-95

query I rowsort
SELECT + - 95 - - 41
----
-54

query I rowsort
SELECT + + 78 * + ( + 70 )
----
5460

query I rowsort
SELECT ALL 31 * 26 AS col2
----
806

query II rowsort
SELECT + 43 * - 97 AS col2, 82
----
-4171
82

query I rowsort
SELECT ALL 49 * 93 AS col2
----
4557

onlyif mysql # aggregate syntax: 
query I rowsort label-800
SELECT + COUNT( * ) + + 23 + + 43 col1
----
67

skipif mysql # not compatible
query I rowsort label-800
SELECT + COUNT ( * ) + + 23 + + 43 col1
----
67

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-802
SELECT DISTINCT MAX( - 14 ) AS col1, + 42 * + - COUNT( * ) col1
----
-14
-42

skipif mysql # not compatible
query II rowsort label-802
SELECT DISTINCT MAX ( - 14 ) AS col1, + 42 * + - COUNT ( * ) col1
----
-14
-42

onlyif mysql # DIV for integer division: 
query II rowsort label-803
SELECT + 7 DIV - 39, 18 AS col0
----
0
18

skipif mysql # not compatible
query II rowsort label-803
SELECT + 7 / - 39, 18 AS col0
----
0
18

onlyif mysql # aggregate syntax: 
query I rowsort label-804
SELECT ALL + COALESCE ( + 24, MIN( DISTINCT - 73 ), - 72, + 74 )
----
24

skipif mysql # not compatible
query I rowsort label-804
SELECT ALL + COALESCE ( + 24, MIN ( DISTINCT - 73 ), - 72, + 74 )
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-805
SELECT DISTINCT 33 DIV + 91 + - - 52
----
52

skipif mysql # not compatible
query I rowsort label-805
SELECT DISTINCT 33 / + 91 + - - 52
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-806
SELECT - MAX( ALL - - 32 ) DIV 62
----
0

skipif mysql # not compatible
query I rowsort label-806
SELECT - MAX ( ALL - - 32 ) / 62
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-807
SELECT ALL 77 DIV 94 + - 14 + - - ( - 82 )
----
-96

skipif mysql # not compatible
query I rowsort label-807
SELECT ALL 77 / 94 + - 14 + - - ( - 82 )
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-808
SELECT CASE + CAST( + 54 AS SIGNED ) WHEN - 20 THEN 17 END / 50 * + 22 + + - CASE WHEN NOT - 15 IN ( - + 56, - 47 * 36 + COUNT( * ), - 54, - + 25, 28, + 82, - - 84 ) THEN + - 60 ELSE NULL END + - 63 * + 10 / + - COUNT( * ) * 77 - - 2 AS col2, - MIN( - - 71 ) AS col0
----
NULL
-71

skipif mysql # not compatible
query II rowsort label-808
SELECT CASE + CAST ( + 54 AS INTEGER ) WHEN - 20 THEN 17 END / 50 * + 22 + + - CASE WHEN NOT - 15 IN ( - + 56, - 47 * 36 + COUNT ( * ), - 54, - + 25, 28, + 82, - - 84 ) THEN + - 60 ELSE NULL END + - 63 * + 10 / + - COUNT ( * ) * 77 - - 2 AS col2, - MIN ( - - 71 ) AS col0
----
NULL
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-809
SELECT ALL + 63 * - 69 AS col1, + COUNT( * ) col0
----
-4347
1

skipif mysql # not compatible
query II rowsort label-809
SELECT ALL + 63 * - 69 AS col1, + COUNT ( * ) col0
----
-4347
1

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

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

query I rowsort
SELECT ALL - 99 * 52 * 41
----
-211068

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-812
SELECT ALL - ( - 26 ) / - - 38 * ( - + 41 ) + - CAST( NULL AS DECIMAL ) * + 30 - - ( + ( + 25 ) ) - + + ( COUNT( * ) ) + CAST( CASE + 45 WHEN COUNT( * ) THEN + - 8 ELSE - - 31 / + 45 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-812
SELECT ALL - ( - 26 ) / - - 38 * ( - + 41 ) + - CAST ( NULL AS REAL ) * + 30 - - ( + ( + 25 ) ) - + + ( COUNT ( * ) ) + CAST ( CASE + 45 WHEN COUNT ( * ) THEN + - 8 ELSE - - 31 / + 45 END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-813
SELECT ALL - + COUNT( * ) * 40 * 49 + - MAX( DISTINCT + 99 ) + + 18
----
-2041

skipif mysql # not compatible
query I rowsort label-813
SELECT ALL - + COUNT ( * ) * 40 * 49 + - MAX ( DISTINCT + 99 ) + + 18
----
-2041

onlyif mysql # aggregate syntax: 
query I rowsort label-814
SELECT - + COUNT( * ) * 94 - COUNT( * ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-814
SELECT - + COUNT ( * ) * 94 - COUNT ( * ) AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-815
SELECT ALL - 11 * - 39 * - + COUNT( DISTINCT - 17 ) AS col2
----
-429

skipif mysql # not compatible
query I rowsort label-815
SELECT ALL - 11 * - 39 * - + COUNT ( DISTINCT - 17 ) AS col2
----
-429

query I rowsort
SELECT ALL + NULLIF ( 87, + - 57 ) AS col0
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-817
SELECT 40 * + - 99 + + 1 + MIN( 1 ) + + - 27 * + 97 AS col2, - 28 DIV + COUNT( * ) col1
----
-6577
-28

skipif mysql # not compatible
query II rowsort label-817
SELECT 40 * + - 99 + + 1 + MIN ( 1 ) + + - 27 * + 97 AS col2, - 28 / + COUNT ( * ) col1
----
-6577
-28

query I rowsort
SELECT - 8 - 43 AS col2
----
-51

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

onlyif mysql # DIV for integer division: 
query I rowsort label-820
SELECT ALL - CASE - 53 WHEN 90 THEN NULL ELSE 88 END DIV + 70 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-820
SELECT ALL - CASE - 53 WHEN 90 THEN NULL ELSE 88 END / + 70 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-821
SELECT - CASE + 92 WHEN - 86 * - - CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) THEN NULL WHEN 9 THEN NULL WHEN - 7 - - 26 THEN - 94 + + 93 + - 10 END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-821
SELECT - CASE + 92 WHEN - 86 * - - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) THEN NULL WHEN 9 THEN NULL WHEN - 7 - - 26 THEN - 94 + + 93 + - 10 END + COUNT ( * )
----
NULL

query II rowsort
SELECT - + 74 * + - 32 AS col2, - 96 AS col2
----
2368
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-823
SELECT 74 + + - 84 DIV - COUNT( * ), + 71 AS col1
----
158
71

skipif mysql # not compatible
query II rowsort label-823
SELECT 74 + + - 84 / - COUNT ( * ), + 71 AS col1
----
158
71

onlyif mysql # DIV for integer division: 
query I rowsort label-824
SELECT ALL + - 17 DIV + 27 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-824
SELECT ALL + - 17 / + 27 AS col2
----
0

query I rowsort
SELECT + 1 + + + 76 AS col2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-826
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 4 / 86
----
NULL

skipif mysql # not compatible
query I rowsort label-826
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 4 / 86
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-829
SELECT ALL 71, CAST( NULL AS SIGNED ) * + 60 AS col1
----
71
NULL

skipif mysql # not compatible
query II rowsort label-829
SELECT ALL 71, CAST ( NULL AS INTEGER ) * + 60 AS col1
----
71
NULL

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

skipif mysql # not compatible
query I rowsort label-830
SELECT 79 + COUNT ( * ) + + NULLIF ( + 28, + COUNT ( * ) )
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-831
SELECT 50 * + 13 / + ( CAST( CAST( NULL AS SIGNED ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-831
SELECT 50 * + 13 / + ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-832
SELECT COUNT( + 3 ) * - COUNT( * ) * - 54 * + - 28 AS col0
----
-1512

skipif mysql # not compatible
query I rowsort label-832
SELECT COUNT ( + 3 ) * - COUNT ( * ) * - 54 * + - 28 AS col0
----
-1512

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

skipif mysql # not compatible
query I rowsort label-833
SELECT ALL 78 + - COUNT ( * ) AS col1
----
77

query II rowsort
SELECT - 36 col2, - 73 AS col1
----
-36
-73

query I rowsort
SELECT ALL 95 + NULLIF ( 57, 24 ) AS col1
----
152

query I rowsort
SELECT DISTINCT - 21 + + 69 AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT DISTINCT 30 + + 3 + - MIN( 84 ) * - 51 * - 19 * COUNT( * )
----
-81363

skipif mysql # not compatible
query I rowsort label-837
SELECT DISTINCT 30 + + 3 + - MIN ( 84 ) * - 51 * - 19 * COUNT ( * )
----
-81363

query I rowsort
SELECT NULLIF ( 87, - ( + 22 ) ) * + 30
----
2610

onlyif mysql # aggregate syntax: 
query I rowsort label-839
SELECT ALL COUNT( * ) + + 85 * + 34 + 51 * + + 41 * + 72
----
153443

skipif mysql # not compatible
query I rowsort label-839
SELECT ALL COUNT ( * ) + + 85 * + 34 + 51 * + + 41 * + 72
----
153443

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-843
SELECT - + 41 * - COUNT( * ) * - - 94 + + 75
----
3929

skipif mysql # not compatible
query I rowsort label-843
SELECT - + 41 * - COUNT ( * ) * - - 94 + + 75
----
3929

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-844
SELECT ALL COUNT( * ) - - NULLIF ( + + 4, - 67 ) + + 5 * - + 73 * - CAST( 44 AS SIGNED )
----
16065

skipif mysql # not compatible
query I rowsort label-844
SELECT ALL COUNT ( * ) - - NULLIF ( + + 4, - 67 ) + + 5 * - + 73 * - CAST ( 44 AS INTEGER )
----
16065

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-845
SELECT MIN( + - CAST( NULL AS SIGNED ) ) / + 1 / + 46 + + 21 + ( + CAST( NULL AS DECIMAL ) ) * - COALESCE ( + 37, + ( - 52 ) ) + - ( + - 79 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-845
SELECT MIN ( + - CAST ( NULL AS INTEGER ) ) / + 1 / + 46 + + 21 + ( + CAST ( NULL AS REAL ) ) * - COALESCE ( + 37, + ( - 52 ) ) + - ( + - 79 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT 43 * - 18 + + - 38 - COUNT( - + 12 ) * - 4 + + 30 * - 81
----
-3238

skipif mysql # not compatible
query I rowsort label-846
SELECT 43 * - 18 + + - 38 - COUNT ( - + 12 ) * - 4 + + 30 * - 81
----
-3238

query I rowsort
SELECT - ( - 9 ) * - - 32 AS col2
----
288

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-848
SELECT + 92 + + 33 - - 8, CASE + ( + 58 ) WHEN + ( 17 ) + 84 THEN 80 END * - + CAST( NULL AS SIGNED ) * + - ( - 52 ) + - + 80 AS col2
----
133
NULL

skipif mysql # not compatible
query II rowsort label-848
SELECT + 92 + + 33 - - 8, CASE + ( + 58 ) WHEN + ( 17 ) + 84 THEN 80 END * - + CAST ( NULL AS INTEGER ) * + - ( - 52 ) + - + 80 AS col2
----
133
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-849
SELECT + 52, CASE 0 WHEN - + 3 THEN NULL WHEN 45 + + 39 * - 16 THEN - ( COUNT( * ) ) END AS col1
----
52
NULL

skipif mysql # not compatible
query II rowsort label-849
SELECT + 52, CASE 0 WHEN - + 3 THEN NULL WHEN 45 + + 39 * - 16 THEN - ( COUNT ( * ) ) END AS col1
----
52
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-851
SELECT AVG ( + CAST( NULL AS SIGNED ) ) / 26 / - - 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-851
SELECT AVG ( + CAST ( NULL AS INTEGER ) ) / 26 / - - 97 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-852
SELECT ALL - + 89, - 66 - + 15 * + + COUNT( * ) AS col1
----
-89
-81

skipif mysql # not compatible
query II rowsort label-852
SELECT ALL - + 89, - 66 - + 15 * + + COUNT ( * ) AS col1
----
-89
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-853
SELECT COUNT( * ) * - + MAX( ALL - 89 ) - 11 * + 57 * + + 7 + + 74 * 95 AS col1, 63 * + 0
----
2730
0

skipif mysql # not compatible
query II rowsort label-853
SELECT COUNT ( * ) * - + MAX ( ALL - 89 ) - 11 * + 57 * + + 7 + + 74 * 95 AS col1, 63 * + 0
----
2730
0

onlyif mysql # DIV for integer division: 
query II rowsort label-854
SELECT DISTINCT - + 7 AS col0, 46 DIV + 71 * ( + 87 )
----
-7
0

skipif mysql # not compatible
query II rowsort label-854
SELECT DISTINCT - + 7 AS col0, 46 / + 71 * ( + 87 )
----
-7
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-855
SELECT ALL - - 16 AS col2, 52 * - CAST( 66 AS SIGNED ) * - - 83 - + COUNT( * ) - + COUNT( * )
----
16
-284858

skipif mysql # not compatible
query II rowsort label-855
SELECT ALL - - 16 AS col2, 52 * - CAST ( 66 AS INTEGER ) * - - 83 - + COUNT ( * ) - + COUNT ( * )
----
16
-284858

query II rowsort
SELECT + - 89 AS col0, 73 AS col0
----
-89
73

query II rowsort
SELECT ALL 75 AS col2, - NULLIF ( 92, + 52 )
----
75
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-858
SELECT - 37 AS col2, 9 DIV - 2 + 86 - 45 DIV COUNT( * )
----
-37
37

skipif mysql # not compatible
query II rowsort label-858
SELECT - 37 AS col2, 9 / - 2 + 86 - 45 / COUNT ( * )
----
-37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-859
SELECT ALL + + 89 + + CASE + NULLIF ( 19, + 1 * - - MAX( DISTINCT - 52 ) + - 16 + MIN( - 15 ) ) WHEN + COALESCE ( - 2, - + 97 ) THEN 98 + + + AVG ( - ( + + 53 ) ) + + 48 * - 68 * 11 WHEN - 8 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-859
SELECT ALL + + 89 + + CASE + NULLIF ( 19, + 1 * - - MAX ( DISTINCT - 52 ) + - 16 + MIN ( - 15 ) ) WHEN + COALESCE ( - 2, - + 97 ) THEN 98 + + + AVG ( - ( + + 53 ) ) + + 48 * - 68 * 11 WHEN - 8 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 65 - + 50
----
15

query I rowsort
SELECT DISTINCT + 89 + 41 AS col1
----
130

query I rowsort
SELECT DISTINCT + 80 * + 54
----
4320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-863
SELECT 63 DIV - - COUNT( - - 23 )
----
63

skipif mysql # not compatible
query I rowsort label-863
SELECT 63 / - - COUNT ( - - 23 )
----
63

query I rowsort
SELECT 69 - + 74
----
-5

query I rowsort
SELECT ALL - 7 + 67 + + 78
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-866
SELECT 79 - - + CAST( NULL AS SIGNED ) - + AVG ( ALL + 27 ) + - + 55 - + ( - 75 ) / - NULLIF ( - 54, + CASE ( SUM( DISTINCT + 76 ) ) WHEN 77 * + MIN( DISTINCT 26 ) + - - ( + 49 ) THEN NULL ELSE + ( + + 31 ) END ) * - + 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-866
SELECT 79 - - + CAST ( NULL AS INTEGER ) - + AVG ( ALL + 27 ) + - + 55 - + ( - 75 ) / - NULLIF ( - 54, + CASE ( SUM ( DISTINCT + 76 ) ) WHEN 77 * + MIN ( DISTINCT 26 ) + - - ( + 49 ) THEN NULL ELSE + ( + + 31 ) END ) * - + 28 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-867
SELECT 59 * + NULLIF ( - 52, - CAST( NULL AS SIGNED ) - - 0 + - 22 ) AS col1
----
-3068

skipif mysql # not compatible
query I rowsort label-867
SELECT 59 * + NULLIF ( - 52, - CAST ( NULL AS INTEGER ) - - 0 + - 22 ) AS col1
----
-3068

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-868
SELECT AVG ( - 42 ) + + + CAST( NULL AS SIGNED ) * - + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-868
SELECT AVG ( - 42 ) + + + CAST ( NULL AS INTEGER ) * - + 67
----
NULL

query I rowsort
SELECT DISTINCT 29 - + 59
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT ALL MAX( - 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-870
SELECT ALL MAX ( - 26 )
----
-26

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-872
SELECT DISTINCT - - CAST( + - 38 AS SIGNED )
----
-38

skipif mysql # not compatible
query I rowsort label-872
SELECT DISTINCT - - CAST ( + - 38 AS INTEGER )
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-873
SELECT DISTINCT + + NULLIF ( - 98, + 23 * + 27 ) * 38 - - - 74 DIV - 16
----
-3720

skipif mysql # not compatible
query I rowsort label-873
SELECT DISTINCT + + NULLIF ( - 98, + 23 * + 27 ) * 38 - - - 74 / - 16
----
-3720

query I rowsort
SELECT DISTINCT - 62 * + 74 AS col2
----
-4588

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

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

query I rowsort
SELECT 88 + 29 AS col1
----
117

query I rowsort
SELECT DISTINCT 59 * + 35 + + 96 * + 75 * 37 * + - 48 + - 19 AS col0
----
-12785154

onlyif mysql # aggregate syntax: 
query I rowsort label-878
SELECT + - MAX( ( 24 ) ) * 10 AS col1
----
-240

skipif mysql # not compatible
query I rowsort label-878
SELECT + - MAX ( ( 24 ) ) * 10 AS col1
----
-240

query I rowsort
SELECT ALL 17 * - - 24 * - 47 AS col2
----
-19176

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT - COUNT( * ) * - 85 - + ( + + 72 ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-880
SELECT - COUNT ( * ) * - 85 - + ( + + 72 ) AS col1
----
13

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

query I rowsort
SELECT + 83 * - 14 AS col0
----
-1162

onlyif mysql # aggregate syntax: 
query II rowsort label-883
SELECT DISTINCT + CASE MAX( ALL - 65 ) WHEN - 44 THEN NULLIF ( 37, ( - 83 ) + + 63 ) - - + 66 END / + ( 39 ) / 61 + - 87 AS col2, - 24
----
NULL
-24

skipif mysql # not compatible
query II rowsort label-883
SELECT DISTINCT + CASE MAX ( ALL - 65 ) WHEN - 44 THEN NULLIF ( 37, ( - 83 ) + + 63 ) - - + 66 END / + ( 39 ) / 61 + - 87 AS col2, - 24
----
NULL
-24

query I rowsort
SELECT ALL - ( + 28 ) + + - 53 AS col0
----
-81

query I rowsort
SELECT + - 22 + + 71
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-886
SELECT + - 71 * - - 28 + - 56 + - 97 - + - COUNT( 93 ) + - + CAST( 80 AS SIGNED ) - - 15 + + 66 * - - 80 AS col0
----
3075

skipif mysql # not compatible
query I rowsort label-886
SELECT + - 71 * - - 28 + - 56 + - 97 - + - COUNT ( 93 ) + - + CAST ( 80 AS INTEGER ) - - 15 + + 66 * - - 80 AS col0
----
3075

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT ALL + MIN( DISTINCT + + 96 ) + 0 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-887
SELECT ALL + MIN ( DISTINCT + + 96 ) + 0 AS col0
----
96

onlyif mysql # DIV for integer division: 
query II rowsort label-888
SELECT - 33 * + 9 * + ( - 68 ) - 41 + + - 50 DIV 2 AS col1, + 85
----
20130
85

skipif mysql # not compatible
query II rowsort label-888
SELECT - 33 * + 9 * + ( - 68 ) - 41 + + - 50 / 2 AS col1, + 85
----
20130
85

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

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

query II rowsort
SELECT - 33 + + - 41 AS col0, 65
----
-74
65

query I rowsort
SELECT ALL + 2 + - NULLIF ( - 31, - + 92 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-892
SELECT - COALESCE ( + - 80, + COUNT( * ), - + CASE + - MIN( DISTINCT - 77 ) WHEN - 25 + - + 99 + - 8 THEN NULL ELSE - COUNT( * ) - + SUM( DISTINCT + 29 ) + 42 END, + - 90 ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-892
SELECT - COALESCE ( + - 80, + COUNT ( * ), - + CASE + - MIN ( DISTINCT - 77 ) WHEN - 25 + - + 99 + - 8 THEN NULL ELSE - COUNT ( * ) - + SUM ( DISTINCT + 29 ) + 42 END, + - 90 ) AS col1
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-893
SELECT ALL 72 + - 41 + - 78 DIV - MIN( ALL ( 40 ) ) AS col1, 39
----
32
39

skipif mysql # not compatible
query II rowsort label-893
SELECT ALL 72 + - 41 + - 78 / - MIN ( ALL ( 40 ) ) AS col1, 39
----
32
39

query I rowsort
SELECT DISTINCT 31 + - 98
----
-67

query I rowsort
SELECT ALL + 76 + - 66
----
10

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

skipif mysql # not compatible
query I rowsort label-896
SELECT ALL 66 + + COUNT ( * ) AS col1
----
67

query II rowsort
SELECT 9 col0, - 23 AS col1
----
9
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-898
SELECT - CAST( NULL AS SIGNED ) + CASE WHEN + 61 NOT BETWEEN + + 8 AND - COUNT( * ) * + + 56 + + + 12 THEN + COUNT( * ) * + - 75 * - + 37 END + 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-898
SELECT - CAST ( NULL AS INTEGER ) + CASE WHEN + 61 NOT BETWEEN + + 8 AND - COUNT ( * ) * + + 56 + + + 12 THEN + COUNT ( * ) * + - 75 * - + 37 END + 19 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT ALL + 76 + + COUNT( * ) * - NULLIF ( - MAX( DISTINCT 73 ), + + 25 ) * - + 86 + + - 7 AS col0
----
-6209

skipif mysql # not compatible
query I rowsort label-899
SELECT ALL + 76 + + COUNT ( * ) * - NULLIF ( - MAX ( DISTINCT 73 ), + + 25 ) * - + 86 + + - 7 AS col0
----
-6209

query I rowsort
SELECT - 30 * 24 AS col1
----
-720

query I rowsort
SELECT DISTINCT + 58 - - - 40
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-902
SELECT ALL NULLIF ( - ( - COALESCE ( - + COUNT( * ), + - 35, - 81 * + - 82 + - 33 ) ), + 35 )
----
-1

skipif mysql # not compatible
query I rowsort label-902
SELECT ALL NULLIF ( - ( - COALESCE ( - + COUNT ( * ), + - 35, - 81 * + - 82 + - 33 ) ), + 35 )
----
-1

query I rowsort
SELECT - 94 * + 35
----
-3290

query I rowsort
SELECT ALL - 31 * - + 14 AS col1
----
434

query I rowsort
SELECT DISTINCT - 59 - - 84 + - 87 * - 59
----
5158

query I rowsort
SELECT ALL ( + + ( + NULLIF ( + 89, + 3 * - 12 ) ) )
----
89

query I rowsort
SELECT - 88 + - - 87
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-908
SELECT DISTINCT + CAST( - 27 AS SIGNED ) - + - 9
----
-18

skipif mysql # not compatible
query I rowsort label-908
SELECT DISTINCT + CAST ( - 27 AS INTEGER ) - + - 9
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT DISTINCT CASE - - 85 WHEN - - COUNT( * ) THEN NULL ELSE COALESCE ( + - 49, - 12 + - ( 40 ) + MAX( ALL - 57 ) * 22 ) * 19 END
----
-931

skipif mysql # not compatible
query I rowsort label-909
SELECT DISTINCT CASE - - 85 WHEN - - COUNT ( * ) THEN NULL ELSE COALESCE ( + - 49, - 12 + - ( 40 ) + MAX ( ALL - 57 ) * 22 ) * 19 END
----
-931

query II rowsort
SELECT - 65 AS col2, 11 * - 97 + 12 - - 29 + - 11 AS col1
----
-65
-1037

query II rowsort
SELECT 41 AS col0, ( + - 73 )
----
41
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-912
SELECT - COUNT( * ) * + + 89 + - - 33 * + 26 AS col0
----
769

skipif mysql # not compatible
query I rowsort label-912
SELECT - COUNT ( * ) * + + 89 + - - 33 * + 26 AS col0
----
769

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-913
SELECT + ( + + 49 ) DIV - 21 + + - 54 + - 94 * - 57 - + + COUNT( ALL - 78 ) * COALESCE ( + + MIN( - 70 ), 5 ) + + 98 + - - 62 AS col2
----
5532

skipif mysql # not compatible
query I rowsort label-913
SELECT + ( + + 49 ) / - 21 + + - 54 + - 94 * - 57 - + + COUNT ( ALL - 78 ) * COALESCE ( + + MIN ( - 70 ), 5 ) + + 98 + - - 62 AS col2
----
5532

onlyif mysql # DIV for integer division: 
query I rowsort label-914
SELECT ALL 62 DIV - 7
----
-8

skipif mysql # not compatible
query I rowsort label-914
SELECT ALL 62 / - 7
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-915
SELECT - + SUM( + - 82 ) + + + 36 + 94 * - 23
----
-2044

skipif mysql # not compatible
query I rowsort label-915
SELECT - + SUM ( + - 82 ) + + + 36 + 94 * - 23
----
-2044

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

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

query I rowsort
SELECT + - 62 * + 58 AS col2
----
-3596

query I rowsort
SELECT - 20 * + - ( 35 ) AS col0
----
700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-919
SELECT + MIN( ALL 69 ) + - - 98 + - + 89 DIV 15 AS col2
----
162

skipif mysql # not compatible
query I rowsort label-919
SELECT + MIN ( ALL 69 ) + - - 98 + - + 89 / 15 AS col2
----
162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-920
SELECT + ( + - 83 ) DIV ( 45 ) + + 11 + + COUNT( * ) * 46
----
56

skipif mysql # not compatible
query I rowsort label-920
SELECT + ( + - 83 ) / ( 45 ) + + 11 + + COUNT ( * ) * 46
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-921
SELECT - 6 * 6 + - 91 DIV COUNT( * ) + 50 AS col1, - CAST( NULL AS SIGNED )
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-921
SELECT - 6 * 6 + - 91 / COUNT ( * ) + 50 AS col1, - CAST ( NULL AS INTEGER )
----
-77
NULL

query I rowsort
SELECT ALL 10 * 39 - + 65 - + 11 + - 96
----
218

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-924
SELECT ALL 72 DIV ( + + 3 )
----
24

skipif mysql # not compatible
query I rowsort label-924
SELECT ALL 72 / ( + + 3 )
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-925
SELECT + COALESCE ( + 64, + - COUNT( 23 ) ) - + - 21 + - 21 + - + 87 * 33 * - 55 - - CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-925
SELECT + COALESCE ( + 64, + - COUNT ( 23 ) ) - + - 21 + - 21 + - + 87 * 33 * - 55 - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-927
SELECT ALL 19 DIV 41 * + 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-927
SELECT ALL 19 / 41 * + 90 AS col2
----
0

query I rowsort
SELECT + 25 - 71
----
-46

query I rowsort
SELECT + ( - + 32 ) + - 33 + - 39
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-930
SELECT - 7 * - COUNT( DISTINCT + 4 )
----
7

skipif mysql # not compatible
query I rowsort label-930
SELECT - 7 * - COUNT ( DISTINCT + 4 )
----
7

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-933
SELECT ALL 83 DIV 49 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-933
SELECT ALL 83 / 49 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-934
SELECT + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) / + CASE - 92 WHEN - NULLIF ( COUNT( + 52 ), COUNT( * ) * 37 + + 31 * 77 + + + COALESCE ( - 41, 83 * 55 * + COUNT( * ) - - COUNT( * ) * - 14, COALESCE ( - - COUNT( * ), + + 96, + 18 ) * + - 5 + + SUM( DISTINCT + 56 ) + - + 51 ) * + COUNT( * ) ) / - CAST( NULL AS SIGNED ) THEN NULL WHEN + 23 THEN - + 80 * 76 + - 68 + + 77 ELSE 73 END / + 84 + + + 59 + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-934
SELECT + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) / + CASE - 92 WHEN - NULLIF ( COUNT ( + 52 ), COUNT ( * ) * 37 + + 31 * 77 + + + COALESCE ( - 41, 83 * 55 * + COUNT ( * ) - - COUNT ( * ) * - 14, COALESCE ( - - COUNT ( * ), + + 96, + 18 ) * + - 5 + + SUM ( DISTINCT + 56 ) + - + 51 ) * + COUNT ( * ) ) / - CAST ( NULL AS INTEGER ) THEN NULL WHEN + 23 THEN - + 80 * 76 + - 68 + + 77 ELSE 73 END / + 84 + + + 59 + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( 15, - 93 )
----
15

query I rowsort
SELECT + 71 - - 69 AS col2
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-937
SELECT ALL SUM( ALL + 76 ) * + + 28 AS col1
----
2128

skipif mysql # not compatible
query I rowsort label-937
SELECT ALL SUM ( ALL + 76 ) * + + 28 AS col1
----
2128

query I rowsort
SELECT + 47 - - 21
----
68

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

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

query I rowsort
SELECT + 35 * - 59
----
-2065

query I rowsort
SELECT - 41 * - ( - - 29 ) AS col2
----
1189

onlyif mysql # aggregate syntax: 
query I rowsort label-942
SELECT ALL CASE 33 WHEN - CASE WHEN ( + 27 ) BETWEEN - COALESCE ( + + 64, - - 30 + - ( + ( - NULLIF ( + 0, - - 66 ) ) ) ) * 17 + - - 16 AND + 25 THEN 49 ELSE 61 + + 73 END + - MAX( ALL 34 ) THEN NULL WHEN - + 64 THEN - - ( + 45 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-942
SELECT ALL CASE 33 WHEN - CASE WHEN ( + 27 ) BETWEEN - COALESCE ( + + 64, - - 30 + - ( + ( - NULLIF ( + 0, - - 66 ) ) ) ) * 17 + - - 16 AND + 25 THEN 49 ELSE 61 + + 73 END + - MAX ( ALL 34 ) THEN NULL WHEN - + 64 THEN - - ( + 45 ) END AS col1
----
NULL

query I rowsort
SELECT + 11 + + 57 - + 58 AS col1
----
10

query I rowsort
SELECT + 93 + - 63 AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT + NULLIF ( + ( 55 ), + + 50 + + 39 ) * + + 70 + MAX( 33 )
----
3883

skipif mysql # not compatible
query I rowsort label-945
SELECT + NULLIF ( + ( 55 ), + + 50 + + 39 ) * + + 70 + MAX ( 33 )
----
3883

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-946
SELECT ALL + 21 + - + MAX( DISTINCT - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-946
SELECT ALL + 21 + - + MAX ( DISTINCT - - CAST ( NULL AS INTEGER ) )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-949
SELECT ALL + 51 DIV + - 68 col0
----
0

skipif mysql # not compatible
query I rowsort label-949
SELECT ALL + 51 / + - 68 col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-950
SELECT 95 * + 83 AS col0, COUNT( * )
----
7885
1

skipif mysql # not compatible
query II rowsort label-950
SELECT 95 * + 83 AS col0, COUNT ( * )
----
7885
1

onlyif mysql # DIV for integer division: 
query II rowsort label-951
SELECT + + 41 AS col1, - 7 + 77 DIV + 20 AS col1
----
41
-4

skipif mysql # not compatible
query II rowsort label-951
SELECT + + 41 AS col1, - 7 + 77 / + 20 AS col1
----
41
-4

query I rowsort
SELECT ALL + + 45 + + - NULLIF ( - 66, - - ( + + ( + 12 ) ) ) col1
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-953
SELECT 74 + - + 73, 82 + + CASE - 11 WHEN + 4 / 53 - - 33 THEN NULL WHEN - COUNT( * ) + + CASE + 77 WHEN - 94 THEN - AVG ( ALL + + CAST( NULL AS SIGNED ) ) ELSE - 29 END THEN - ( - - 47 ) / - 59 END AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-953
SELECT 74 + - + 73, 82 + + CASE - 11 WHEN + 4 / 53 - - 33 THEN NULL WHEN - COUNT ( * ) + + CASE + 77 WHEN - 94 THEN - AVG ( ALL + + CAST ( NULL AS INTEGER ) ) ELSE - 29 END THEN - ( - - 47 ) / - 59 END AS col2
----
1
NULL

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

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

query I rowsort
SELECT - 18 + 88 AS col1
----
70

query II rowsort
SELECT ALL - 23 AS col1, + 87
----
-23
87

query I rowsort
SELECT ALL + 25 + + 10
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-958
SELECT DISTINCT - - 3 + + 31 + + 74 + - 83 DIV 61 * + - 78 * 52 * - ( - 87 )
----
352980

skipif mysql # not compatible
query I rowsort label-958
SELECT DISTINCT - - 3 + + 31 + + 74 + - 83 / 61 * + - 78 * 52 * - ( - 87 )
----
352980

query II rowsort
SELECT + 78, - 21 AS col1
----
78
-21

query I rowsort
SELECT ALL - 44 + ( + - ( 37 ) ) * 5
----
-229

query I rowsort
SELECT 39 * - - 53 + + - 96 * 27 - - - 70 AS col1
----
-595

query II rowsort
SELECT ALL 31 * + 76 AS col0, + 97 AS col2
----
2356
97

query II rowsort
SELECT 88 + - 16 AS col1, 16 AS col2
----
72
16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT COUNT( * ) * + ( - + 53 ) + - 95 AS col2
----
-148

skipif mysql # not compatible
query I rowsort label-965
SELECT COUNT ( * ) * + ( - + 53 ) + - 95 AS col2
----
-148

query I rowsort
SELECT 69 + + 25 + - 39 + 15 * + - 89
----
-1280

onlyif mysql # DIV for integer division: 
query I rowsort label-967
SELECT - 45 * - - 86 - COALESCE ( + 71, + 56, 12 DIV - 64 ) * + 68 * + + 85 AS col0
----
-414250

skipif mysql # not compatible
query I rowsort label-967
SELECT - 45 * - - 86 - COALESCE ( + 71, + 56, 12 / - 64 ) * + 68 * + + 85 AS col0
----
-414250

query I rowsort
SELECT 8 * + 3 col2
----
24

query I rowsort
SELECT 78 + + ( 53 ) AS col0
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-970
SELECT 14 - - SUM( ALL + - 37 )
----
-23

skipif mysql # not compatible
query I rowsort label-970
SELECT 14 - - SUM ( ALL + - 37 )
----
-23

query I rowsort
SELECT 85 * - 49 AS col2
----
-4165

onlyif mysql # aggregate syntax: 
query I rowsort label-972
SELECT + COUNT( * ) * + + 74 + + 49
----
123

skipif mysql # not compatible
query I rowsort label-972
SELECT + COUNT ( * ) * + + 74 + + 49
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT DISTINCT - 58 - MAX( DISTINCT 7 ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-973
SELECT DISTINCT - 58 - MAX ( DISTINCT 7 ) AS col0
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-974
SELECT ALL - COUNT( * ) * - 37 AS col0, - 95 AS col0
----
37
-95

skipif mysql # not compatible
query II rowsort label-974
SELECT ALL - COUNT ( * ) * - 37 AS col0, - 95 AS col0
----
37
-95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-976
SELECT COUNT( * ) + COALESCE ( + - COUNT( * ), - 84 + - - 18 )
----
0

skipif mysql # not compatible
query I rowsort label-976
SELECT COUNT ( * ) + COALESCE ( + - COUNT ( * ), - 84 + - - 18 )
----
0

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

skipif mysql # not compatible
query I rowsort label-977
SELECT 32 + COUNT ( * ) AS col1
----
33

query I rowsort
SELECT 10 + + 60 - + + 35
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-979
SELECT COUNT( * ) * + - 45, - 90 + - - CAST( - 32 AS SIGNED ) + - ( + - MIN( ALL 21 ) ) + + + 98 + - COUNT( * ) * 61 + + CASE - - 88 WHEN + 0 THEN NULL WHEN 35 * + 85 THEN - 55 * - 84 + 38 WHEN ( + CAST( + 27 AS SIGNED ) ) + 96 THEN NULL END col2
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-979
SELECT COUNT ( * ) * + - 45, - 90 + - - CAST ( - 32 AS INTEGER ) + - ( + - MIN ( ALL 21 ) ) + + + 98 + - COUNT ( * ) * 61 + + CASE - - 88 WHEN + 0 THEN NULL WHEN 35 * + 85 THEN - 55 * - 84 + 38 WHEN ( + CAST ( + 27 AS INTEGER ) ) + 96 THEN NULL END col2
----
-45
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-980
SELECT ( - COUNT( * ) ) + + - COALESCE ( - COUNT( DISTINCT + 4 ), 67 ) DIV - 82 + - + 30 + CAST( 70 AS SIGNED ) - - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-980
SELECT ( - COUNT ( * ) ) + + - COALESCE ( - COUNT ( DISTINCT + 4 ), 67 ) / - 82 + - + 30 + CAST ( 70 AS INTEGER ) - - COUNT ( * )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-981
SELECT DISTINCT - 25 + + 14 + - 18 * - - 59 * - 11 * - + 9 + + MIN( DISTINCT 48 ) AS col1
----
-105101

skipif mysql # not compatible
query I rowsort label-981
SELECT DISTINCT - 25 + + 14 + - 18 * - - 59 * - 11 * - + 9 + + MIN ( DISTINCT 48 ) AS col1
----
-105101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-982
SELECT DISTINCT 65 DIV - COUNT( - + 74 ) + 16 * 7
----
47

skipif mysql # not compatible
query I rowsort label-982
SELECT DISTINCT 65 / - COUNT ( - + 74 ) + 16 * 7
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-983
SELECT ALL CAST( NULL AS SIGNED ) + 61 * + - 71 * - - ( 78 ) AS col1, 35 + - - COALESCE ( + + 23, COUNT( * ) ) AS col0
----
NULL
58

skipif mysql # not compatible
query II rowsort label-983
SELECT ALL CAST ( NULL AS INTEGER ) + 61 * + - 71 * - - ( 78 ) AS col1, 35 + - - COALESCE ( + + 23, COUNT ( * ) ) AS col0
----
NULL
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-984
SELECT ALL - MAX( - 10 ) + - COALESCE ( - 54, - - CAST( NULL AS SIGNED ) * - + ( + - 48 ), 0 DIV 22 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-984
SELECT ALL - MAX ( - 10 ) + - COALESCE ( - 54, - - CAST ( NULL AS INTEGER ) * - + ( + - 48 ), 0 / 22 ) AS col1
----
64

query I rowsort
SELECT DISTINCT 48 * 57 + + 10 * - + 47 + - ( NULLIF ( - - 56, - + 81 ) )
----
2210

query I rowsort
SELECT 63 + 73 - 78
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT 9 + + COUNT( DISTINCT - 62 ) * - ( - + 95 )
----
104

skipif mysql # not compatible
query I rowsort label-987
SELECT 9 + + COUNT ( DISTINCT - 62 ) * - ( - + 95 )
----
104

query I rowsort
SELECT ALL 6 + 89
----
95

query II rowsort
SELECT ALL 10 + + CASE + + NULLIF ( - + 48, 22 ) WHEN + CASE + 6 WHEN + 42 * - ( 3 ) THEN NULL WHEN + 77 + - 54 THEN + - 62 END THEN - - 72 WHEN 19 THEN NULL END, + 91 * ( + ( + - 35 ) ) - 98 AS col2
----
NULL
-3283

onlyif mysql # aggregate syntax: 
query II rowsort label-990
SELECT - MIN( ALL - + 1 ) AS col2, - COUNT( * ) + - - 22
----
1
21

skipif mysql # not compatible
query II rowsort label-990
SELECT - MIN ( ALL - + 1 ) AS col2, - COUNT ( * ) + - - 22
----
1
21

onlyif mysql # aggregate syntax: 
query II rowsort label-991
SELECT - ( + 56 ) - + 48 AS col0, - 14 + + COALESCE ( - 26, + 33 * + + 97 + + 84 + - 94 * COUNT( * ) )
----
-104
-40

skipif mysql # not compatible
query II rowsort label-991
SELECT - ( + 56 ) - + 48 AS col0, - 14 + + COALESCE ( - 26, + 33 * + + 97 + + 84 + - 94 * COUNT ( * ) )
----
-104
-40

query II rowsort
SELECT 29 * + 8 + + - 6 AS col1, 66
----
226
66

query I rowsort
SELECT ALL + 48 + - 1 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-994
SELECT + CASE 41 WHEN + 99 THEN NULL WHEN + 62 THEN NULL ELSE - CASE + 15 WHEN COALESCE ( + + ( + + 75 ), 14 * + 21 * - 30 - - - 86 + - 50 * - 49 * + 44, + - 50 + MAX( ALL - 92 ) + 27 ) - + COUNT( * ) + COUNT( * ) * + 69 THEN - 44 * COUNT( * ) ELSE NULL END * 25 / - 9 * + - 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-994
SELECT + CASE 41 WHEN + 99 THEN NULL WHEN + 62 THEN NULL ELSE - CASE + 15 WHEN COALESCE ( + + ( + + 75 ), 14 * + 21 * - 30 - - - 86 + - 50 * - 49 * + 44, + - 50 + MAX ( ALL - 92 ) + 27 ) - + COUNT ( * ) + COUNT ( * ) * + 69 THEN - 44 * COUNT ( * ) ELSE NULL END * 25 / - 9 * + - 11 END
----
NULL

query I rowsort
SELECT ALL + + 55 * + 45 * - ( + 91 ) AS col1
----
-225225

query I rowsort
SELECT ALL + - 38 * - 62
----
2356

query I rowsort
SELECT ALL - COALESCE ( + - 78, - 32 )
----
78

onlyif mysql # DIV for integer division: 
query II rowsort label-998
SELECT - 78 * + 68 + + 53 + + + COALESCE ( + 35, - 11 ) AS col2, + 96 DIV + 53 - 5
----
-5216
-4

skipif mysql # not compatible
query II rowsort label-998
SELECT - 78 * + 68 + + 53 + + + COALESCE ( + 35, - 11 ) AS col2, + 96 / + 53 - 5
----
-5216
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-999
SELECT 94 * - NULLIF ( + + 56, 23 ) * + 25 + + CAST( + 8 AS SIGNED ) * - 25
----
-131800

skipif mysql # not compatible
query I rowsort label-999
SELECT 94 * - NULLIF ( + + 56, 23 ) * + 25 + + CAST ( + 8 AS INTEGER ) * - 25
----
-131800

query I rowsort
SELECT DISTINCT - 72 * ( - 28 ) AS col0
----
2016

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

skipif mysql # not compatible
query I rowsort label-1001
SELECT DISTINCT - MAX ( 23 )
----
-23

query II rowsort
SELECT + 40, + 4 + - 40 * - 96 AS col1
----
40
3844

onlyif mysql # aggregate syntax: 
query I rowsort label-1003
SELECT ALL MIN( + 97 )
----
97

skipif mysql # not compatible
query I rowsort label-1003
SELECT ALL MIN ( + 97 )
----
97

query I rowsort
SELECT 94 - - 28 AS col0
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1005
SELECT 32 * - ( + COUNT( ALL - 58 ) ) * - CAST( NULL AS SIGNED ) + 67 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1005
SELECT 32 * - ( + COUNT ( ALL - 58 ) ) * - CAST ( NULL AS INTEGER ) + 67 AS col2
----
NULL

query I rowsort
SELECT 3 - + 13
----
-10

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

skipif mysql # not compatible
query I rowsort label-1007
SELECT ALL + 9 * - - COUNT ( * ) AS col0
----
9

query I rowsort
SELECT 10 * - 23
----
-230

query I rowsort
SELECT + 98 - 84 AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1010
SELECT DISTINCT + CASE + 49 WHEN 1 THEN + 42 WHEN - 44 * 69 + - COUNT( * ) * 0 THEN NULL WHEN + 86 * - COUNT( * ) / + 96 + - 36 THEN + - 15 END + + 22 * + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-1010
SELECT DISTINCT + CASE + 49 WHEN 1 THEN + 42 WHEN - 44 * 69 + - COUNT ( * ) * 0 THEN NULL WHEN + 86 * - COUNT ( * ) / + 96 + - 36 THEN + - 15 END + + 22 * + 49
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1011
SELECT DISTINCT - ( + - 32 ) + + 15 col0, - COUNT( * ) AS col0
----
47
-1

skipif mysql # not compatible
query II rowsort label-1011
SELECT DISTINCT - ( + - 32 ) + + 15 col0, - COUNT ( * ) AS col0
----
47
-1

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

skipif mysql # not compatible
query I rowsort label-1012
SELECT - - MAX ( + 76 )
----
76

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1015
SELECT ALL + 69 DIV + 41
----
1

skipif mysql # not compatible
query I rowsort label-1015
SELECT ALL + 69 / + 41
----
1

query I rowsort
SELECT DISTINCT + NULLIF ( ( 74 ), + 75 ) col1
----
74

query I rowsort
SELECT + - 99 - + + 77
----
-176

query I rowsort
SELECT ALL + 19 - - - 73 AS col0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1019
SELECT ALL 84 / + 77 * + CAST( NULL AS SIGNED ) * + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-1019
SELECT ALL 84 / + 77 * + CAST ( NULL AS INTEGER ) * + 84
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1020
SELECT + 23 / + - 18
----
-1

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

query I rowsort
SELECT ALL + 17 * + 28
----
476

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1023
SELECT + CASE + - 81 WHEN - ( + MIN( - - 54 ) ) + 44 + 53 * - + 76 / NULLIF ( + - 10, - 74 ) + - CAST( NULL AS SIGNED ) THEN 95 WHEN 4 THEN CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED ) END * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1023
SELECT + CASE + - 81 WHEN - ( + MIN ( - - 54 ) ) + 44 + 53 * - + 76 / NULLIF ( + - 10, - 74 ) + - CAST ( NULL AS INTEGER ) THEN 95 WHEN 4 THEN CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) END * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1024
SELECT + + 73 * 94 + COUNT( + + COALESCE ( + - 36, + - 43 ) ) AS col1, 86 col0
----
6863
86

skipif mysql # not compatible
query II rowsort label-1024
SELECT + + 73 * 94 + COUNT ( + + COALESCE ( + - 36, + - 43 ) ) AS col1, 86 col0
----
6863
86

query I rowsort
SELECT + + 62 + 65
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-1026
SELECT NULLIF ( + COALESCE ( + 10, - + COUNT( * ), + 90 ), + 68 )
----
10

skipif mysql # not compatible
query I rowsort label-1026
SELECT NULLIF ( + COALESCE ( + 10, - + COUNT ( * ), + 90 ), + 68 )
----
10

query II rowsort
SELECT 49 * - - 71 + ( + - 45 ) + + + 41 AS col2, ( - 44 ) AS col0
----
3475
-44

query I rowsort
SELECT + ( 7 ) * - - 81 + - - COALESCE ( - 19, + 15 )
----
548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1029
SELECT + CAST( NULL AS SIGNED ) * SUM( ALL + 29 ) / 3 - + 66 + + + 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1029
SELECT + CAST ( NULL AS INTEGER ) * SUM ( ALL + 29 ) / 3 - + 66 + + + 25 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1030
SELECT CASE + ( + SUM( ALL 22 ) ) WHEN + + COUNT( * ) THEN NULL ELSE - 89 END
----
-89

skipif mysql # not compatible
query I rowsort label-1030
SELECT CASE + ( + SUM ( ALL 22 ) ) WHEN + + COUNT ( * ) THEN NULL ELSE - 89 END
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1031
SELECT ALL + MAX( 65 ) * - 93
----
-6045

skipif mysql # not compatible
query I rowsort label-1031
SELECT ALL + MAX ( 65 ) * - 93
----
-6045

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1032
SELECT + COALESCE ( - COUNT( ALL + 19 ), + COUNT( * ) * - 8 + - - 38 + + COUNT( * ) * 30 DIV 82 + + + COALESCE ( + 30, COUNT( * ) + - 12 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1032
SELECT + COALESCE ( - COUNT ( ALL + 19 ), + COUNT ( * ) * - 8 + - - 38 + + COUNT ( * ) * 30 / 82 + + + COALESCE ( + 30, COUNT ( * ) + - 12 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1033
SELECT COUNT( * ) * - + 84 + - 34 AS col0
----
-118

skipif mysql # not compatible
query I rowsort label-1033
SELECT COUNT ( * ) * - + 84 + - 34 AS col0
----
-118

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

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

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

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

query I rowsort
SELECT - 98 * - + 65 - + + 61
----
6309

query I rowsort
SELECT ALL + 93 * - COALESCE ( - 6, - 33 + + 76 ) + + 7
----
565

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1038
SELECT + 88 + CAST( 5 AS SIGNED ) / - ( 83 ) / + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1038
SELECT + 88 + CAST ( 5 AS INTEGER ) / - ( 83 ) / + + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT - 94 + + 89
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-1040
SELECT - 64 DIV 74 * + 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1040
SELECT - 64 / 74 * + 74 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1041
SELECT ALL + 77 * + 75 + - ( + CAST( NULL AS SIGNED ) ) AS col1, + 43
----
NULL
43

skipif mysql # not compatible
query II rowsort label-1041
SELECT ALL + 77 * + 75 + - ( + CAST ( NULL AS INTEGER ) ) AS col1, + 43
----
NULL
43

query I rowsort
SELECT - 82 * 48
----
-3936

onlyif mysql # aggregate syntax: 
query I rowsort label-1043
SELECT ALL - 16 * - + COUNT( * ) * COALESCE ( + - COUNT( * ), + 96 ) + 80
----
64

skipif mysql # not compatible
query I rowsort label-1043
SELECT ALL - 16 * - + COUNT ( * ) * COALESCE ( + - COUNT ( * ), + 96 ) + 80
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1044
SELECT - COUNT( * ) * - 95 + - CAST( - COUNT( * ) AS SIGNED ) - 25 - 80
----
-9

skipif mysql # not compatible
query I rowsort label-1044
SELECT - COUNT ( * ) * - 95 + - CAST ( - COUNT ( * ) AS INTEGER ) - 25 - 80
----
-9

query I rowsort
SELECT ALL - 24 + - 95 + - + 74
----
-193

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1047
SELECT - MIN( - 24 )
----
24

skipif mysql # not compatible
query I rowsort label-1047
SELECT - MIN ( - 24 )
----
24

query I rowsort
SELECT - 71 + + + 64 * + 96 AS col2
----
6073

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1050
SELECT ALL 28 - 99 + + 7 * + 0 * 22 AS col2, COUNT( * )
----
-71
1

skipif mysql # not compatible
query II rowsort label-1050
SELECT ALL 28 - 99 + + 7 * + 0 * 22 AS col2, COUNT ( * )
----
-71
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1051
SELECT DISTINCT COUNT( - - NULLIF ( - 60, 1 ) ) AS col0, + 81 DIV - 46 AS col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-1051
SELECT DISTINCT COUNT ( - - NULLIF ( - 60, 1 ) ) AS col0, + 81 / - 46 AS col0
----
1
-1

query I rowsort
SELECT + - 51 + + + 19
----
-32

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1055
SELECT - - COUNT( * ) DIV + 22, - 50 * + CAST( NULL AS SIGNED ) AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1055
SELECT - - COUNT ( * ) / + 22, - 50 * + CAST ( NULL AS INTEGER ) AS col2
----
0
NULL

query I rowsort
SELECT + 57 + + 17 * - 7
----
-62

query I rowsort
SELECT DISTINCT + NULLIF ( - - 6, - - 57 * - 40 ) AS col1
----
6

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

query I rowsort
SELECT DISTINCT - 99 * 97
----
-9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1060
SELECT + 48 * 64 * + ( - ( + + 70 ) ) AS col1, MAX( + - 74 ) / - - 97 + + CAST( NULL AS SIGNED )
----
-215040
NULL

skipif mysql # not compatible
query II rowsort label-1060
SELECT + 48 * 64 * + ( - ( + + 70 ) ) AS col1, MAX ( + - 74 ) / - - 97 + + CAST ( NULL AS INTEGER )
----
-215040
NULL

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

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

query I rowsort
SELECT + 24 * + 38
----
912

query I rowsort
SELECT DISTINCT NULLIF ( + 15, - NULLIF ( 4, 69 * + - 81 ) ) * - 60
----
-900

onlyif mysql # DIV for integer division: 
query I rowsort label-1064
SELECT ALL - 99 DIV 38 + - 33
----
-35

skipif mysql # not compatible
query I rowsort label-1064
SELECT ALL - 99 / 38 + - 33
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT ( ( - 89 ) ) * + 25 - 93 - + - 31 * - 34 * + COUNT( + 81 ) * - + 20 * - CASE 62 WHEN + CASE 31 WHEN + + 13 THEN - + 59 END THEN - + 68 WHEN 15 THEN - COALESCE ( 16, + - 42 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1065
SELECT ( ( - 89 ) ) * + 25 - 93 - + - 31 * - 34 * + COUNT ( + 81 ) * - + 20 * - CASE 62 WHEN + CASE 31 WHEN + + 13 THEN - + 59 END THEN - + 68 WHEN 15 THEN - COALESCE ( 16, + - 42 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1066
SELECT - 31 * + - 4 + + + 52 * 40 + - COUNT( * ) + + NULLIF ( 69, - + 8 + - 4 DIV - MIN( + + 4 ) ) DIV 45 * - - 15 * + 53 + + 17 + - CAST( 86 AS SIGNED ) - + 20 * - + 94 * 9 * - + 41 + ( - + 91 ), + ( 40 ) AS col1
----
-690882
40

skipif mysql # not compatible
query II rowsort label-1066
SELECT - 31 * + - 4 + + + 52 * 40 + - COUNT ( * ) + + NULLIF ( 69, - + 8 + - 4 / - MIN ( + + 4 ) ) / 45 * - - 15 * + 53 + + 17 + - CAST ( 86 AS INTEGER ) - + 20 * - + 94 * 9 * - + 41 + ( - + 91 ), + ( 40 ) AS col1
----
-690882
40

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

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

query I rowsort
SELECT DISTINCT - 38 + - 80 AS col1
----
-118

query I rowsort
SELECT 28 - 33
----
-5

query I rowsort
SELECT 64 * 28 AS col0
----
1792

query I rowsort
SELECT ALL 34 * 5 AS col1
----
170

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1073
SELECT 83 DIV + 54
----
1

skipif mysql # not compatible
query I rowsort label-1073
SELECT 83 / + 54
----
1

query I rowsort
SELECT 54 * + 41 AS col2
----
2214

onlyif mysql # aggregate syntax: 
query I rowsort label-1075
SELECT ALL 98 * MAX( 1 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-1075
SELECT ALL 98 * MAX ( 1 ) AS col1
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-1076
SELECT DISTINCT - 2 DIV 17
----
0

skipif mysql # not compatible
query I rowsort label-1076
SELECT DISTINCT - 2 / 17
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1077
SELECT ALL - 84 DIV + 86
----
0

skipif mysql # not compatible
query I rowsort label-1077
SELECT ALL - 84 / + 86
----
0

query I rowsort
SELECT 79 * - 64
----
-5056

query I rowsort
SELECT 82 + - 22 AS col1
----
60

query I rowsort
SELECT ALL + 57 - 44
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1081
SELECT 72 + + COUNT( * ) DIV 75 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-1081
SELECT 72 + + COUNT ( * ) / 75 AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1082
SELECT 79 * COUNT( ALL + 81 )
----
79

skipif mysql # not compatible
query I rowsort label-1082
SELECT 79 * COUNT ( ALL + 81 )
----
79

query I rowsort
SELECT DISTINCT - 13 * + 34
----
-442

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1084
SELECT ALL 66 + + 53 DIV COUNT( * ) AS col1
----
119

skipif mysql # not compatible
query I rowsort label-1084
SELECT ALL 66 + + 53 / COUNT ( * ) AS col1
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-1085
SELECT DISTINCT - COUNT( * ) * 91 AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-1085
SELECT DISTINCT - COUNT ( * ) * 91 AS col0
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-1086
SELECT 23 DIV 93
----
0

skipif mysql # not compatible
query I rowsort label-1086
SELECT 23 / 93
----
0

query I rowsort
SELECT 3 + 1
----
4

query I rowsort
SELECT 23 * 14 + + 6 * - 85 col2
----
-188

query I rowsort
SELECT 48 * + 28 AS col2
----
1344

onlyif mysql # aggregate syntax: 
query I rowsort label-1090
SELECT ALL COUNT( * ) + + 3 * - 55
----
-164

skipif mysql # not compatible
query I rowsort label-1090
SELECT ALL COUNT ( * ) + + 3 * - 55
----
-164

query I rowsort
SELECT DISTINCT 94 * - 76 AS col2
----
-7144

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT ALL 53 + COALESCE ( + 74, + 12 * 51, - 63 * + CASE 54 WHEN 72 THEN 18 - + 73 WHEN - 27 THEN - 84 ELSE NULL END + - COUNT( * ) ) AS col2
----
127

skipif mysql # not compatible
query I rowsort label-1092
SELECT ALL 53 + COALESCE ( + 74, + 12 * 51, - 63 * + CASE 54 WHEN 72 THEN 18 - + 73 WHEN - 27 THEN - 84 ELSE NULL END + - COUNT ( * ) ) AS col2
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT COUNT( * ) + 68 * + 1
----
69

skipif mysql # not compatible
query I rowsort label-1093
SELECT COUNT ( * ) + 68 * + 1
----
69

query I rowsort
SELECT 48 + 64
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-1095
SELECT DISTINCT CASE - 5 WHEN 98 THEN + 7 * + 19 WHEN + 60 THEN COUNT( DISTINCT - 59 ) - - 83 END * AVG ( 6 * - 36 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1095
SELECT DISTINCT CASE - 5 WHEN 98 THEN + 7 * + 19 WHEN + 60 THEN COUNT ( DISTINCT - 59 ) - - 83 END * AVG ( 6 * - 36 )
----
NULL

query I rowsort
SELECT DISTINCT 58 * + 43
----
2494

query I rowsort
SELECT - 33 * + 76 + 9 col2
----
-2499

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1098
SELECT ( - 81 ) * + COALESCE ( + SUM( DISTINCT 25 ), 2 * 29 + - ( 17 ) * CAST( - CASE 84 WHEN 15 + + AVG ( - 62 ) THEN - 27 WHEN - 10 THEN + 98 + COUNT( * ) END AS SIGNED ) ) + - 1
----
-2026

skipif mysql # not compatible
query I rowsort label-1098
SELECT ( - 81 ) * + COALESCE ( + SUM ( DISTINCT 25 ), 2 * 29 + - ( 17 ) * CAST ( - CASE 84 WHEN 15 + + AVG ( - 62 ) THEN - 27 WHEN - 10 THEN + 98 + COUNT ( * ) END AS INTEGER ) ) + - 1
----
-2026

query I rowsort
SELECT 38 + 31 AS col2
----
69

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

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

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

query I rowsort
SELECT - 94 + 78 AS col1
----
-16

query I rowsort
SELECT ALL - 29 * + 98 AS col1
----
-2842

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1104
SELECT COALESCE ( 22, COUNT( * ), - CAST( NULL AS SIGNED ) ) + + COALESCE ( - ( + 52 ), 42 - ( COUNT( * ) - - 38 * + 12 ) ) * ( NULLIF ( + 49, COUNT( * ) ) * 87 ) col0
----
-221654

skipif mysql # not compatible
query I rowsort label-1104
SELECT COALESCE ( 22, COUNT ( * ), - CAST ( NULL AS INTEGER ) ) + + COALESCE ( - ( + 52 ), 42 - ( COUNT ( * ) - - 38 * + 12 ) ) * ( NULLIF ( + 49, COUNT ( * ) ) * 87 ) col0
----
-221654

query I rowsort
SELECT + 69 * + 78 AS col2
----
5382

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT 2 * ( 98 + COUNT( * ) * + 51 )
----
298

skipif mysql # not compatible
query I rowsort label-1106
SELECT 2 * ( 98 + COUNT ( * ) * + 51 )
----
298

query I rowsort
SELECT + 83 * - 82 AS col1
----
-6806

query I rowsort
SELECT ALL + 94 + - 54 AS col0
----
40

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

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

query I rowsort
SELECT ALL + 14 + - 89 AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT DISTINCT 75 + + CASE - NULLIF ( - COUNT( * ), - 27 ) WHEN + 49 THEN NULL ELSE + 69 * + 97 + 43 END
----
6811

skipif mysql # not compatible
query I rowsort label-1111
SELECT DISTINCT 75 + + CASE - NULLIF ( - COUNT ( * ), - 27 ) WHEN + 49 THEN NULL ELSE + 69 * + 97 + 43 END
----
6811

query I rowsort
SELECT 14 + 92
----
106

query I rowsort
SELECT 23 + + 99 + - 8
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT - COALESCE ( + - 66, - 27, 8 * 31 + - 47 * - MAX( ALL 12 * - 75 ), + 58 * - 58 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-1114
SELECT - COALESCE ( + - 66, - 27, 8 * 31 + - 47 * - MAX ( ALL 12 * - 75 ), + 58 * - 58 ) AS col1
----
66

query I rowsort
SELECT + 13 * + 45 * - 91 AS col0
----
-53235

query I rowsort
SELECT - 19 + 5
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT DISTINCT - 82 + + 58 * + COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-1117
SELECT DISTINCT - 82 + + 58 * + COUNT ( * )
----
-24

query I rowsort
SELECT COALESCE ( + ( - 52 ), 95, + 40 * 67 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT DISTINCT - 50 * + COUNT( * ) * CASE 15 * - 25 WHEN 85 * 17 THEN NULL ELSE + 25 END + + 22 AS col0
----
-1228

skipif mysql # not compatible
query I rowsort label-1119
SELECT DISTINCT - 50 * + COUNT ( * ) * CASE 15 * - 25 WHEN 85 * 17 THEN NULL ELSE + 25 END + + 22 AS col0
----
-1228

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT DISTINCT 79 * + 19 * 27 - COALESCE ( 72, SUM( + 0 ) * 94, - COUNT( * ), + 52 - 60 * CASE ( - 7 ) - 82 WHEN COUNT( * ) * - 76 THEN + 63 + COUNT( * ) WHEN 89 THEN NULL END )
----
40455

skipif mysql # not compatible
query I rowsort label-1120
SELECT DISTINCT 79 * + 19 * 27 - COALESCE ( 72, SUM ( + 0 ) * 94, - COUNT ( * ), + 52 - 60 * CASE ( - 7 ) - 82 WHEN COUNT ( * ) * - 76 THEN + 63 + COUNT ( * ) WHEN 89 THEN NULL END )
----
40455

query I rowsort
SELECT ALL - 65 * - 46 AS col2
----
2990

query I rowsort
SELECT - 47 - - + ( - 69 ) + 15
----
-101

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT + SUM( - ( - CASE + 29 WHEN 86 * + 25 THEN 38 END ) ) * 27
----
NULL

skipif mysql # not compatible
query I rowsort label-1124
SELECT + SUM ( - ( - CASE + 29 WHEN 86 * + 25 THEN 38 END ) ) * 27
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1125
SELECT + COALESCE ( - 78, COALESCE ( - 81, 6 + 98, 89 * - 67, 71 DIV 92 ) ) DIV 38
----
-2

skipif mysql # not compatible
query I rowsort label-1125
SELECT + COALESCE ( - 78, COALESCE ( - 81, 6 + 98, 89 * - 67, 71 / 92 ) ) / 38
----
-2

query I rowsort
SELECT ALL + NULLIF ( - + 7, + 75 * 2 )
----
-7

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT - 51 - + - COUNT( DISTINCT 74 )
----
-50

skipif mysql # not compatible
query I rowsort label-1129
SELECT - 51 - + - COUNT ( DISTINCT 74 )
----
-50

query I rowsort
SELECT ALL 95 * + 91
----
8645

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1132
SELECT DISTINCT + - SUM( DISTINCT - 83 ) * COUNT( 9 * ( 83 ) + + ( 25 + - COALESCE ( ( 95 ) - 44, CAST( NULL AS DECIMAL ) ) * + 95 ) )
----
83

skipif mysql # not compatible
query I rowsort label-1132
SELECT DISTINCT + - SUM ( DISTINCT - 83 ) * COUNT ( 9 * ( 83 ) + + ( 25 + - COALESCE ( ( 95 ) - 44, CAST ( NULL AS REAL ) ) * + 95 ) )
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1133
SELECT + - MIN( ALL 48 ) DIV + 47 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1133
SELECT + - MIN ( ALL 48 ) / + 47 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1134
SELECT ALL 61 * + ( - 3 ) - - 88 * COALESCE ( 62 * COUNT( * ) - - COUNT( * ), - 91 )
----
5361

skipif mysql # not compatible
query I rowsort label-1134
SELECT ALL 61 * + ( - 3 ) - - 88 * COALESCE ( 62 * COUNT ( * ) - - COUNT ( * ), - 91 )
----
5361

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT - + 95 + + CASE 54 WHEN + ( - NULLIF ( 49, 50 ) ) THEN NULL WHEN + COUNT( ALL 31 ) * 48 THEN 82 + + 21 WHEN 55 * - 96 THEN - 20 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1135
SELECT - + 95 + + CASE 54 WHEN + ( - NULLIF ( 49, 50 ) ) THEN NULL WHEN + COUNT ( ALL 31 ) * 48 THEN 82 + + 21 WHEN 55 * - 96 THEN - 20 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1136
SELECT - COUNT( 72 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1136
SELECT - COUNT ( 72 ) AS col2
----
-1

query I rowsort
SELECT ALL + CASE - 46 WHEN 31 THEN 89 END col0
----
NULL

query I rowsort
SELECT + + 45 + + + 38
----
83

query I rowsort
SELECT ALL - + 85 + + 46 col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1140
SELECT DISTINCT 6 + - SUM( + 39 ) - - 40
----
7

skipif mysql # not compatible
query I rowsort label-1140
SELECT DISTINCT 6 + - SUM ( + 39 ) - - 40
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT ALL 24 + - + COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-1141
SELECT ALL 24 + - + COUNT ( * )
----
23

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

skipif mysql # not compatible
query I rowsort label-1142
SELECT + 94 - - COUNT ( * ) / 32
----
94

query I rowsort
SELECT + 8 + + ( + 42 ) AS col2
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1144
SELECT ALL 31 + COALESCE ( + COUNT( * ), - 37 * + 51 + 36 DIV 48 ) - 5
----
27

skipif mysql # not compatible
query I rowsort label-1144
SELECT ALL 31 + COALESCE ( + COUNT ( * ), - 37 * + 51 + 36 / 48 ) - 5
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1145
SELECT - COALESCE ( + + 70, + 28 * CAST( 67 AS SIGNED ), + AVG ( 15 ) DIV - CASE 53 - - 65 * 21 WHEN SUM( ALL 74 ) * + 34 THEN + 43 END - - COALESCE ( + COUNT( * ), + 32 + + CAST( NULL AS SIGNED ), - 2 - 52, + 86 + 17 ) )
----
-70

skipif mysql # not compatible
query I rowsort label-1145
SELECT - COALESCE ( + + 70, + 28 * CAST ( 67 AS INTEGER ), + AVG ( 15 ) / - CASE 53 - - 65 * 21 WHEN SUM ( ALL 74 ) * + 34 THEN + 43 END - - COALESCE ( + COUNT ( * ), + 32 + + CAST ( NULL AS INTEGER ), - 2 - 52, + 86 + 17 ) )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT + ( - - ( - 35 ) ) + ( + COUNT( * ) ) * 82
----
47

skipif mysql # not compatible
query I rowsort label-1146
SELECT + ( - - ( - 35 ) ) + ( + COUNT ( * ) ) * 82
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1147
SELECT DISTINCT COALESCE ( - - ( 73 ), 33, - 54 - - 18 ) + 83 DIV - COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-1147
SELECT DISTINCT COALESCE ( - - ( 73 ), 33, - 54 - - 18 ) + 83 / - COUNT ( * )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT ALL 95 + + 46 + + - COUNT( 54 )
----
140

skipif mysql # not compatible
query I rowsort label-1148
SELECT ALL 95 + + 46 + + - COUNT ( 54 )
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1149
SELECT ALL SUM( DISTINCT + - 9 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1149
SELECT ALL SUM ( DISTINCT + - 9 ) + - CAST ( NULL AS INTEGER )
----
NULL

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

query I rowsort
SELECT + 83 - 91 * + + 64 * + 29
----
-168813

query I rowsort
SELECT DISTINCT + 5 - + CASE + 15 WHEN - 83 - - ( + ( 56 ) ) / 75 THEN NULL ELSE + 3 * 59 END
----
-172

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1155
SELECT CAST( NULL AS SIGNED ), MIN( ALL - + 90 ) AS col0
----
NULL
-90

skipif mysql # not compatible
query II rowsort label-1155
SELECT CAST ( NULL AS INTEGER ), MIN ( ALL - + 90 ) AS col0
----
NULL
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1156
SELECT - MAX( DISTINCT + - 92 ) * + 54 + - 9 + NULLIF ( + 88, 19 DIV + 32 + 8 ) DIV 5 col1
----
4976

skipif mysql # not compatible
query I rowsort label-1156
SELECT - MAX ( DISTINCT + - 92 ) * + 54 + - 9 + NULLIF ( + 88, 19 / + 32 + 8 ) / 5 col1
----
4976

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1159
SELECT 24 DIV + 42 + + + 66 + 36 * 39
----
1470

skipif mysql # not compatible
query I rowsort label-1159
SELECT 24 / + 42 + + + 66 + 36 * 39
----
1470

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT 88 * 14 * - COUNT( * ) - 37 AS col2
----
-1269

skipif mysql # not compatible
query I rowsort label-1160
SELECT 88 * 14 * - COUNT ( * ) - 37 AS col2
----
-1269

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1161
SELECT CAST( NULL AS DECIMAL ) AS col0, + 82 AS col1
----
NULL
82

skipif mysql # not compatible
query II rowsort label-1161
SELECT CAST ( NULL AS REAL ) AS col0, + 82 AS col1
----
NULL
82

query I rowsort
SELECT + 99 + - 43 * 18 AS col2
----
-675

query I rowsort
SELECT ALL + 34 * + - 17
----
-578

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

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

query II rowsort
SELECT ALL + 83 AS col2, 39
----
83
39

onlyif mysql # DIV for integer division: 
query I rowsort label-1166
SELECT DISTINCT - 13 DIV + 38 - - 65 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-1166
SELECT DISTINCT - 13 / + 38 - - 65 AS col1
----
65

query I rowsort
SELECT DISTINCT + 16 * - 63
----
-1008

query I rowsort
SELECT DISTINCT ( 13 ) * - 39
----
-507

query I rowsort
SELECT - 40 * 81 + + 46 * ( ( 6 ) )
----
-2964

onlyif mysql # aggregate syntax: 
query I rowsort label-1170
SELECT - 49 + COUNT( * ) - CASE - ( 79 ) WHEN 47 THEN - 40 WHEN - ( 85 ) + 74 THEN - 52 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1170
SELECT - 49 + COUNT ( * ) - CASE - ( 79 ) WHEN 47 THEN - 40 WHEN - ( 85 ) + 74 THEN - 52 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT DISTINCT + - 88 * - + 67 + - + ( 9 ) + + 91 * COUNT( 72 )
----
5978

skipif mysql # not compatible
query I rowsort label-1171
SELECT DISTINCT + - 88 * - + 67 + - + ( 9 ) + + 91 * COUNT ( 72 )
----
5978

query II rowsort
SELECT + 92 AS col0, 3
----
92
3

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

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

query I rowsort
SELECT + 46 * + 74 + - - 69 + 64 + - 74 AS col2
----
3463

query I rowsort
SELECT ALL - 40 * + 75 + + 83 AS col0
----
-2917

onlyif mysql # aggregate syntax: 
query II rowsort label-1176
SELECT ALL + 52 AS col1, + 68 + - COUNT( * )
----
52
67

skipif mysql # not compatible
query II rowsort label-1176
SELECT ALL + 52 AS col1, + 68 + - COUNT ( * )
----
52
67

query I rowsort
SELECT - - 74 * + 49 AS col1
----
3626

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT ALL - COUNT( * ) * - 2 + + + 57
----
59

skipif mysql # not compatible
query I rowsort label-1178
SELECT ALL - COUNT ( * ) * - 2 + + + 57
----
59

query II rowsort
SELECT + 93 col2, + 63 * - + 63
----
93
-3969

onlyif mysql # aggregate syntax: 
query I rowsort label-1180
SELECT ALL + + 54 * - - CASE - - 20 WHEN NULLIF ( 80, 60 ) THEN COUNT( * ) * 51 - + ( + 46 ) * - COUNT( * ) ELSE NULL END + - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-1180
SELECT ALL + + 54 * - - CASE - - 20 WHEN NULLIF ( 80, 60 ) THEN COUNT ( * ) * 51 - + ( + 46 ) * - COUNT ( * ) ELSE NULL END + - 52
----
NULL

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

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

query I rowsort
SELECT 13 * + 46
----
598

query I rowsort
SELECT 7 * - 51 * + 8 AS col2
----
-2856

query I rowsort
SELECT COALESCE ( + 29, 49 ) + - + 53
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1185
SELECT ALL - 37 - + NULLIF ( + 29, - 48 ) + - COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-1185
SELECT ALL - 37 - + NULLIF ( + 29, - 48 ) + - COUNT ( * )
----
-67

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

skipif mysql # not compatible
query I rowsort label-1186
SELECT ALL CAST ( NULL AS INTEGER ) - 86 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT COALESCE ( - 85, + 39 + + NULLIF ( 71, + COUNT( * ) * - 88 + 3 ) ) + 36 * ( - 69 + COUNT( * ) )
----
-2533

skipif mysql # not compatible
query I rowsort label-1187
SELECT COALESCE ( - 85, + 39 + + NULLIF ( 71, + COUNT ( * ) * - 88 + 3 ) ) + 36 * ( - 69 + COUNT ( * ) )
----
-2533

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT DISTINCT 71 * - COUNT( * ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-1188
SELECT DISTINCT 71 * - COUNT ( * ) AS col0
----
-71

query I rowsort
SELECT 48 + + + 62
----
110

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

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

query I rowsort
SELECT ALL 70 * + 87 AS col1
----
6090

query I rowsort
SELECT ( + - 61 ) * - - 50 + - 79
----
-3129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1193
SELECT DISTINCT 99 * 23 * COALESCE ( + MIN( DISTINCT 33 ), - 42 DIV - ( + 98 * - 36 ) ) AS col1
----
75141

skipif mysql # not compatible
query I rowsort label-1193
SELECT DISTINCT 99 * 23 * COALESCE ( + MIN ( DISTINCT 33 ), - 42 / - ( + 98 * - 36 ) ) AS col1
----
75141

query I rowsort
SELECT DISTINCT ( + NULLIF ( - 12, + + 54 * 48 ) ) * 13
----
-156

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1196
SELECT DISTINCT - + 65 DIV 18 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-1196
SELECT DISTINCT - + 65 / 18 AS col0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1197
SELECT 10 * - CAST( 1 AS SIGNED )
----
-10

skipif mysql # not compatible
query I rowsort label-1197
SELECT 10 * - CAST ( 1 AS INTEGER )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1198
SELECT + COALESCE ( - COUNT( * ), + + 2 )
----
-1

skipif mysql # not compatible
query I rowsort label-1198
SELECT + COALESCE ( - COUNT ( * ), + + 2 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1199
SELECT ( - 53 ) DIV 62 * - - 16 * 26
----
0

skipif mysql # not compatible
query I rowsort label-1199
SELECT ( - 53 ) / 62 * - - 16 * 26
----
0

query I rowsort
SELECT 87 * + - 73 AS col0
----
-6351

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1202
SELECT ALL + - 10 + + 31 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1202
SELECT ALL + - 10 + + 31 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ( - - 2 ) - - 63
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1204
SELECT DISTINCT 28 + + COALESCE ( + ( - 49 ), 92, 3 ) * CAST( 16 AS SIGNED )
----
-756

skipif mysql # not compatible
query I rowsort label-1204
SELECT DISTINCT 28 + + COALESCE ( + ( - 49 ), 92, 3 ) * CAST ( 16 AS INTEGER )
----
-756

query I rowsort
SELECT ALL - - NULLIF ( + 25, 72 + 23 )
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1206
SELECT NULLIF ( + 48, - + 12 ) + 27 * CASE - CAST( + 9 AS SIGNED ) WHEN COALESCE ( - 14, + CAST( NULL AS SIGNED ) / - 98 ) / + 12 - 61 THEN CAST( NULL AS SIGNED ) * - COUNT( * ) WHEN 51 + - 22 * 33 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1206
SELECT NULLIF ( + 48, - + 12 ) + 27 * CASE - CAST ( + 9 AS INTEGER ) WHEN COALESCE ( - 14, + CAST ( NULL AS INTEGER ) / - 98 ) / + 12 - 61 THEN CAST ( NULL AS INTEGER ) * - COUNT ( * ) WHEN 51 + - 22 * 33 THEN NULL ELSE NULL END
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT - COALESCE ( - + MAX( ALL ( 80 ) ), 19 * COUNT( * ), - ( 46 ) ) + 27 AS col1
----
107

skipif mysql # not compatible
query I rowsort label-1209
SELECT - COALESCE ( - + MAX ( ALL ( 80 ) ), 19 * COUNT ( * ), - ( 46 ) ) + 27 AS col1
----
107

query I rowsort
SELECT 2 * - 96 + COALESCE ( + 28, 34 + - 3 ) * - 89 + 79
----
-2605

onlyif mysql # aggregate syntax: 
query I rowsort label-1211
SELECT - 12 - NULLIF ( + 10, + + COUNT( * ) * - 93 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-1211
SELECT - 12 - NULLIF ( + 10, + + COUNT ( * ) * - 93 ) AS col1
----
-22

query I rowsort
SELECT 16 + 57 + 74 col1
----
147

query II rowsort
SELECT 23 AS col0, - 97 AS col2
----
23
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT ALL - COUNT( * ) - 10
----
-11

skipif mysql # not compatible
query I rowsort label-1214
SELECT ALL - COUNT ( * ) - 10
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-1215
SELECT 32 DIV - 18 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1215
SELECT 32 / - 18 AS col0
----
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1217
SELECT ALL 30 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1217
SELECT ALL 30 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 51 + ( 92 ) * + - CASE 36 WHEN + ( - 86 ) + - 82 THEN - 63 * 59 - 84 * - 11 WHEN + 47 THEN - 64 END AS col1
----
NULL

query I rowsort
SELECT ALL - 6 * + - 1 * + 16 col0
----
96

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1222
SELECT 29 - - 64 + COUNT( * ) col0
----
94

skipif mysql # not compatible
query I rowsort label-1222
SELECT 29 - - 64 + COUNT ( * ) col0
----
94

query I rowsort
SELECT 32 + + 18 AS col1
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1224
SELECT ALL + 33 * + CASE - CAST( - + COUNT( * ) AS SIGNED ) WHEN + 32 THEN + 50 WHEN + 18 THEN NULL WHEN SUM( ALL - 69 ) * - 2 THEN ( 91 ) END / 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1224
SELECT ALL + 33 * + CASE - CAST ( - + COUNT ( * ) AS INTEGER ) WHEN + 32 THEN + 50 WHEN + 18 THEN NULL WHEN SUM ( ALL - 69 ) * - 2 THEN ( 91 ) END / 63 AS col2
----
NULL

query I rowsort
SELECT 41 + + 3
----
44

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

skipif mysql # not compatible
query I rowsort label-1226
SELECT ALL + COUNT ( * ) * + 18 AS col0
----
18

query I rowsort
SELECT ALL + COALESCE ( 12, - - ( + + ( 54 ) ) * 80 ) * 38 col1
----
456

query I rowsort
SELECT 63 - 78 * + - 36
----
2871

query II rowsort
SELECT 55 AS col0, 47 + - + 69 + - 42 * - + 49 * + 45 + - 95 AS col2
----
55
92493

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT 47 * + COUNT( * ) * + 28 col1
----
1316

skipif mysql # not compatible
query I rowsort label-1230
SELECT 47 * + COUNT ( * ) * + 28 col1
----
1316

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT 83 * MAX( ( + 43 ) )
----
3569

skipif mysql # not compatible
query I rowsort label-1231
SELECT 83 * MAX ( ( + 43 ) )
----
3569

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1232
SELECT ALL 22 * + 84 + - COUNT( * ) DIV - 19 AS col1
----
1848

skipif mysql # not compatible
query I rowsort label-1232
SELECT ALL 22 * + 84 + - COUNT ( * ) / - 19 AS col1
----
1848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1233
SELECT 62 DIV CAST( + - COUNT( * ) AS SIGNED ) * - ( + 77 ) + - 7 * COALESCE ( NULLIF ( 11, - 3 * - 53 + + 66 * + COUNT( * ) ), ( 62 ), 69 )
----
4697

skipif mysql # not compatible
query I rowsort label-1233
SELECT 62 / CAST ( + - COUNT ( * ) AS INTEGER ) * - ( + 77 ) + - 7 * COALESCE ( NULLIF ( 11, - 3 * - 53 + + 66 * + COUNT ( * ) ), ( 62 ), 69 )
----
4697

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1234
SELECT + + 68, CAST( NULL AS DECIMAL ) * - 57 * MIN( DISTINCT + + 69 ) AS col0
----
68
NULL

skipif mysql # not compatible
query II rowsort label-1234
SELECT + + 68, CAST ( NULL AS REAL ) * - 57 * MIN ( DISTINCT + + 69 ) AS col0
----
68
NULL

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

skipif mysql # not compatible
query I rowsort label-1235
SELECT - COUNT ( DISTINCT - - 0 ) + + 60 AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1236
SELECT + + COUNT( * ) * 41 - - 76
----
117

skipif mysql # not compatible
query I rowsort label-1236
SELECT + + COUNT ( * ) * 41 - - 76
----
117

query I rowsort
SELECT DISTINCT - NULLIF ( 59, + 38 + + 60 + + 69 )
----
-59

query II rowsort
SELECT ALL - 24 * 53 + + - 80, 91 AS col1
----
-1352
91

query I rowsort
SELECT 2 + + - NULLIF ( + 77, + 66 )
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-1240
SELECT + 75 * - 17 + - 45 + + - 78 + 28 DIV + 16
----
-1397

skipif mysql # not compatible
query I rowsort label-1240
SELECT + 75 * - 17 + - 45 + + - 78 + 28 / + 16
----
-1397

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1241
SELECT + + CAST( - ( - + 34 ) AS SIGNED ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-1241
SELECT + + CAST ( - ( - + 34 ) AS INTEGER ) AS col1
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-1242
SELECT 41 DIV + 99 + 59 * 96 * + 81
----
458784

skipif mysql # not compatible
query I rowsort label-1242
SELECT 41 / + 99 + 59 * 96 * + 81
----
458784

query I rowsort
SELECT ALL + 77 * + - 71 AS col1
----
-5467

query I rowsort
SELECT DISTINCT - 52 * 61 + - 24 + - 19 * + - 85
----
-1581

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1245
SELECT ALL 66 * 54 + + - CAST( - 97 AS SIGNED ) + - 45 AS col2
----
3616

skipif mysql # not compatible
query I rowsort label-1245
SELECT ALL 66 * 54 + + - CAST ( - 97 AS INTEGER ) + - 45 AS col2
----
3616

query I rowsort
SELECT 92 * + + NULLIF ( - 27, + + 19 * - 87 - 71 ) + + 91
----
-2393

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1247
SELECT ALL - ( - COUNT( * ) ) * 53 + + 61 - + 1 DIV 60 AS col0
----
114

skipif mysql # not compatible
query I rowsort label-1247
SELECT ALL - ( - COUNT ( * ) ) * 53 + + 61 - + 1 / 60 AS col0
----
114

query I rowsort
SELECT 4 * 8 + 48 AS col1
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-1249
SELECT - + 59 * - 40 + 94 + ( + + 96 ) DIV 64 col2
----
2455

skipif mysql # not compatible
query I rowsort label-1249
SELECT - + 59 * - 40 + 94 + ( + + 96 ) / 64 col2
----
2455

onlyif mysql # aggregate syntax: 
query II rowsort label-1250
SELECT + 23 AS col2, NULLIF ( COUNT( * ), + ( + + COUNT( * ) ) / 13 )
----
23
1

skipif mysql # not compatible
query II rowsort label-1250
SELECT + 23 AS col2, NULLIF ( COUNT ( * ), + ( + + COUNT ( * ) ) / 13 )
----
23
1

query I rowsort
SELECT COALESCE ( + + 93, - 68 ) AS col2
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1252
SELECT - 86 * + 44 + + + CAST( - 3 AS SIGNED )
----
-3787

skipif mysql # not compatible
query I rowsort label-1252
SELECT - 86 * + 44 + + + CAST ( - 3 AS INTEGER )
----
-3787

onlyif mysql # aggregate syntax: 
query I rowsort label-1253
SELECT DISTINCT + - COALESCE ( + COALESCE ( COUNT( * ), - - COUNT( * ) ), + + 46 )
----
-1

skipif mysql # not compatible
query I rowsort label-1253
SELECT DISTINCT + - COALESCE ( + COALESCE ( COUNT ( * ), - - COUNT ( * ) ), + + 46 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1254
SELECT ALL - 45 - + COALESCE ( - 98, - NULLIF ( + COUNT( * ), 50 ) + + COALESCE ( + 5, - ( 4 ) * - 81 ) * 0 ) + + 37
----
90

skipif mysql # not compatible
query I rowsort label-1254
SELECT ALL - 45 - + COALESCE ( - 98, - NULLIF ( + COUNT ( * ), 50 ) + + COALESCE ( + 5, - ( 4 ) * - 81 ) * 0 ) + + 37
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1255
SELECT DISTINCT - 19 * - + CASE - - ( - CAST( NULL AS SIGNED ) ) WHEN - COUNT( * ) - 75 THEN 89 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1255
SELECT DISTINCT - 19 * - + CASE - - ( - CAST ( NULL AS INTEGER ) ) WHEN - COUNT ( * ) - 75 THEN 89 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 7 * 63
----
441

query II rowsort
SELECT DISTINCT 67 col1, 12 AS col1
----
67
12

query I rowsort
SELECT ALL 25 * + 31
----
775

query I rowsort
SELECT + 30 * + 98
----
2940

query I rowsort
SELECT + 83 - - 72
----
155

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1261
SELECT - 89 DIV 11 AS col2, ( COUNT( * ) )
----
-8
1

skipif mysql # not compatible
query II rowsort label-1261
SELECT - 89 / 11 AS col2, ( COUNT ( * ) )
----
-8
1

query I rowsort
SELECT - 0 + - 14 + - - 67 * 80 AS col2
----
5346

query I rowsort
SELECT - 6 + + 75 AS col1
----
69

query II rowsort
SELECT 8 AS col0, 77 AS col1
----
8
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT ALL CASE 25 WHEN ( + COUNT( * ) ) + - 98 THEN NULL ELSE + 60 + COUNT( * ) END
----
61

skipif mysql # not compatible
query I rowsort label-1265
SELECT ALL CASE 25 WHEN ( + COUNT ( * ) ) + - 98 THEN NULL ELSE + 60 + COUNT ( * ) END
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-1266
SELECT ALL - 75 DIV + - 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1266
SELECT ALL - 75 / + - 79 AS col1
----
0

query I rowsort
SELECT DISTINCT + 47 + - 42 + - 58
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT DISTINCT - MIN( DISTINCT - 8 ) * + 78 AS col0
----
624

skipif mysql # not compatible
query I rowsort label-1268
SELECT DISTINCT - MIN ( DISTINCT - 8 ) * + 78 AS col0
----
624

query I rowsort
SELECT ALL + 2 + + 48
----
50

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

skipif mysql # not compatible
query I rowsort label-1270
SELECT - CAST ( NULL AS INTEGER ) + 33 * + 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT ALL + 30 + + + COUNT( DISTINCT + - 80 ) + - - 88 * - - 41
----
3639

skipif mysql # not compatible
query I rowsort label-1271
SELECT ALL + 30 + + + COUNT ( DISTINCT + - 80 ) + - - 88 * - - 41
----
3639

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT - NULLIF ( + 23, - ( - MAX( 3 ) ) ) + MAX( 29 )
----
6

skipif mysql # not compatible
query I rowsort label-1272
SELECT - NULLIF ( + 23, - ( - MAX ( 3 ) ) ) + MAX ( 29 )
----
6

query I rowsort
SELECT + 16 + - 40
----
-24

query I rowsort
SELECT + + 31 + 58 AS col2
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-1275
SELECT DISTINCT + - 60, + 47 * + ( - 72 ) - 52 + - MAX( ALL 45 ) AS col1
----
-60
-3481

skipif mysql # not compatible
query II rowsort label-1275
SELECT DISTINCT + - 60, + 47 * + ( - 72 ) - 52 + - MAX ( ALL 45 ) AS col1
----
-60
-3481

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT DISTINCT + COUNT( CASE + 74 WHEN + 94 * + 79 THEN - + 58 + - 81 WHEN 26 THEN NULL END )
----
0

skipif mysql # not compatible
query I rowsort label-1276
SELECT DISTINCT + COUNT ( CASE + 74 WHEN + 94 * + 79 THEN - + 58 + - 81 WHEN 26 THEN NULL END )
----
0

query I rowsort
SELECT ALL - 62 * - 89 - - - 41
----
5477

query I rowsort
SELECT - - ( - 96 ) - - + 4 AS col1
----
-92

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT + + COUNT( * ) * 97 * 83 AS col0
----
8051

skipif mysql # not compatible
query I rowsort label-1281
SELECT + + COUNT ( * ) * 97 * 83 AS col0
----
8051

onlyif mysql # aggregate syntax: 
query II rowsort label-1282
SELECT ALL + + 41 AS col0, COUNT( * ) + - 20 AS col0
----
41
-19

skipif mysql # not compatible
query II rowsort label-1282
SELECT ALL + + 41 AS col0, COUNT ( * ) + - 20 AS col0
----
41
-19

query II rowsort
SELECT + - 65, - ( 0 ) AS col0
----
-65
0

query II rowsort
SELECT + - 9 AS col0, - 78
----
-9
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1285
SELECT DISTINCT - 96 DIV + + COALESCE ( - 55, + + COALESCE ( - 77, 98 * - 95, + 33 + COUNT( * ) ) - - 48 DIV - MIN( DISTINCT - 35 + 17 ), 22 * 31 )
----
1

skipif mysql # not compatible
query I rowsort label-1285
SELECT DISTINCT - 96 / + + COALESCE ( - 55, + + COALESCE ( - 77, 98 * - 95, + 33 + COUNT ( * ) ) - - 48 / - MIN ( DISTINCT - 35 + 17 ), 22 * 31 )
----
1

query I rowsort
SELECT ALL + 63 * - 67
----
-4221

query I rowsort
SELECT DISTINCT - 47 * - 54 AS col0
----
2538

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1288
SELECT - 31 DIV + + COUNT( * ) AS col1, - 94 - + + 45 AS col0
----
-31
-139

skipif mysql # not compatible
query II rowsort label-1288
SELECT - 31 / + + COUNT ( * ) AS col1, - 94 - + + 45 AS col0
----
-31
-139

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1290
SELECT - 65 - 8 + + 24 + - + 76 - + 88 DIV 22 * - 93 AS col0
----
247

skipif mysql # not compatible
query I rowsort label-1290
SELECT - 65 - 8 + + 24 + - + 76 - + 88 / 22 * - 93 AS col0
----
247

query II rowsort
SELECT ALL + 20 * 30 + - 1 AS col1, 42 - + + 43 AS col0
----
599
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1292
SELECT COUNT( DISTINCT + - 66 ) col0, + 24 AS col2
----
1
24

skipif mysql # not compatible
query II rowsort label-1292
SELECT COUNT ( DISTINCT + - 66 ) col0, + 24 AS col2
----
1
24

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1295
SELECT DISTINCT 52 + + - 82 DIV + + ( - 97 ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-1295
SELECT DISTINCT 52 + + - 82 / + + ( - 97 ) AS col1
----
52

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1297
SELECT DISTINCT NULLIF ( - CAST( + - 99 AS SIGNED ), - + CAST( + NULLIF ( - 43, - 87 ) AS SIGNED ) - 75 / 24 )
----
99

skipif mysql # not compatible
query I rowsort label-1297
SELECT DISTINCT NULLIF ( - CAST ( + - 99 AS INTEGER ), - + CAST ( + NULLIF ( - 43, - 87 ) AS INTEGER ) - 75 / 24 )
----
99

query I rowsort
SELECT DISTINCT + 53 + 45
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1299
SELECT DISTINCT - CASE CAST( 53 AS SIGNED ) WHEN 10 - + + 64 - - 2 / - 64 + - 23 THEN ( - COALESCE ( 57, - 74, + 74 + 58 ) ) * CAST( NULL AS SIGNED ) ELSE NULL END + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-1299
SELECT DISTINCT - CASE CAST ( 53 AS INTEGER ) WHEN 10 - + + 64 - - 2 / - 64 + - 23 THEN ( - COALESCE ( 57, - 74, + 74 + 58 ) ) * CAST ( NULL AS INTEGER ) ELSE NULL END + 67
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1300
SELECT DISTINCT + 63 DIV + 67 * + 72, + COUNT( * ) AS col1
----
0
1

skipif mysql # not compatible
query II rowsort label-1300
SELECT DISTINCT + 63 / + 67 * + 72, + COUNT ( * ) AS col1
----
0
1

query I rowsort
SELECT DISTINCT - ( ( + 77 ) ) - + 85 AS col2
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-1302
SELECT ALL + + 3 * 93 * 0 + 0 + CASE 79 WHEN - MAX( ALL 22 ) THEN 4 WHEN 81 - 75 * - CASE + AVG ( + 19 ) / - 15 WHEN - MIN( + 49 ) * - 1 THEN ( - 77 ) END THEN NULL END + + 31 * - 35 / + ( + ( 44 ) * 56 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1302
SELECT ALL + + 3 * 93 * 0 + 0 + CASE 79 WHEN - MAX ( ALL 22 ) THEN 4 WHEN 81 - 75 * - CASE + AVG ( + 19 ) / - 15 WHEN - MIN ( + 49 ) * - 1 THEN ( - 77 ) END THEN NULL END + + 31 * - 35 / + ( + ( 44 ) * 56 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1303
SELECT ALL + COALESCE ( - + 66, 66 + - CAST( NULL AS SIGNED ) + - 35 ) - - COUNT( * ) + 53 + + MAX( DISTINCT ( - 31 ) + - CAST( CASE 17 WHEN + 18 THEN - 95 + - 32 ELSE NULL END AS SIGNED ) * + 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1303
SELECT ALL + COALESCE ( - + 66, 66 + - CAST ( NULL AS INTEGER ) + - 35 ) - - COUNT ( * ) + 53 + + MAX ( DISTINCT ( - 31 ) + - CAST ( CASE 17 WHEN + 18 THEN - 95 + - 32 ELSE NULL END AS INTEGER ) * + 44 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1304
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - AVG ( ALL 7 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1304
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - AVG ( ALL 7 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1305
SELECT + CASE 57 WHEN 88 THEN NULL WHEN CAST( - COALESCE ( - 3, + 99, + ( 77 ) * - 65 ) AS SIGNED ) THEN + 86 ELSE NULL END * - COALESCE ( 40 + 65 * + MAX( ALL COALESCE ( + 92, 81, + 80 / 79 + 33 ) * 97 ), CAST( 67 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1305
SELECT + CASE 57 WHEN 88 THEN NULL WHEN CAST ( - COALESCE ( - 3, + 99, + ( 77 ) * - 65 ) AS INTEGER ) THEN + 86 ELSE NULL END * - COALESCE ( 40 + 65 * + MAX ( ALL COALESCE ( + 92, 81, + 80 / 79 + 33 ) * 97 ), CAST ( 67 AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1306
SELECT 0 * + NULLIF ( - COALESCE ( - 49, 87 * + - CASE 14 WHEN + 72 + 40 THEN - CAST( NULL AS SIGNED ) * + 1 + COUNT( ALL + 63 ) END ), CAST( NULL AS SIGNED ) + 83 * 30 )
----
0

skipif mysql # not compatible
query I rowsort label-1306
SELECT 0 * + NULLIF ( - COALESCE ( - 49, 87 * + - CASE 14 WHEN + 72 + 40 THEN - CAST ( NULL AS INTEGER ) * + 1 + COUNT ( ALL + 63 ) END ), CAST ( NULL AS INTEGER ) + 83 * 30 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT ALL + 70 * - COUNT( * ) * - - 65
----
-4550

skipif mysql # not compatible
query I rowsort label-1307
SELECT ALL + 70 * - COUNT ( * ) * - - 65
----
-4550

onlyif mysql # aggregate syntax: 
query II rowsort label-1308
SELECT + 82 + + COUNT( * ) col2, 96
----
83
96

skipif mysql # not compatible
query II rowsort label-1308
SELECT + 82 + + COUNT ( * ) col2, 96
----
83
96

query I rowsort
SELECT ALL - - 99 - - 62
----
161

query I rowsort
SELECT 64 * 89 + - 43 - + + 80 * - + 32 + - 13
----
8200

query I rowsort
SELECT - 22 * - 99
----
2178

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

skipif mysql # not compatible
query I rowsort label-1312
SELECT - - 43 / - - COUNT ( * ) + - + 49 col0
----
-6

query I rowsort
SELECT - 89 * - 30 - - - 66
----
2604

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1314
SELECT + NULLIF ( - - 81, + 12 ) * + + 8 + COUNT( DISTINCT + - 95 ) + 36 + - 75 DIV - ( - 64 + 47 ) AS col2
----
681

skipif mysql # not compatible
query I rowsort label-1314
SELECT + NULLIF ( - - 81, + 12 ) * + + 8 + COUNT ( DISTINCT + - 95 ) + 36 + - 75 / - ( - 64 + 47 ) AS col2
----
681

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1316
SELECT ALL - CAST( NULL AS DECIMAL ) + - 83 + COALESCE ( - 13, + SUM( DISTINCT - 38 ), + - 40 - + 20 + ( + 11 ) ) + MAX( - ( + 77 ) + 19 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1316
SELECT ALL - CAST ( NULL AS REAL ) + - 83 + COALESCE ( - 13, + SUM ( DISTINCT - 38 ), + - 40 - + 20 + ( + 11 ) ) + MAX ( - ( + 77 ) + 19 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1317
SELECT COUNT( * ) * - CASE WHEN NOT + 64 IS NOT NULL THEN NULL WHEN NOT CAST( 32 AS SIGNED ) NOT BETWEEN ( - 17 ) AND ( + 92 - 14 * COALESCE ( - 28, 0 * 62, - 21 + 33 * 81, 97 + 12 * - NULLIF ( + AVG ( DISTINCT 96 ) + + 16, 20 * 88 + + ( COUNT( * ) ) ) ) ) THEN 58 * + 5 END AS col2
----
-290

skipif mysql # not compatible
query I rowsort label-1317
SELECT COUNT ( * ) * - CASE WHEN NOT + 64 IS NOT NULL THEN NULL WHEN NOT CAST ( 32 AS INTEGER ) NOT BETWEEN ( - 17 ) AND ( + 92 - 14 * COALESCE ( - 28, 0 * 62, - 21 + 33 * 81, 97 + 12 * - NULLIF ( + AVG ( DISTINCT 96 ) + + 16, 20 * 88 + + ( COUNT ( * ) ) ) ) ) THEN 58 * + 5 END AS col2
----
-290

onlyif mysql # aggregate syntax: 
query II rowsort label-1318
SELECT DISTINCT - 80, + 66 + + 66 + COUNT( ALL - ( + - 75 ) ) AS col1
----
-80
133

skipif mysql # not compatible
query II rowsort label-1318
SELECT DISTINCT - 80, + 66 + + 66 + COUNT ( ALL - ( + - 75 ) ) AS col1
----
-80
133

query I rowsort
SELECT ALL + ( - 94 ) + - 21
----
-115

query I rowsort
SELECT ALL 65 + 1 - - 53
----
119

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

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

query I rowsort
SELECT + 86 * + 39 + - ( 69 )
----
3285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1323
SELECT COALESCE ( - - MAX( ALL 77 ), COALESCE ( CAST( NULL AS SIGNED ), + - 43 - + 46 + 6 * 75 ) ) + + 2 * - 33 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-1323
SELECT COALESCE ( - - MAX ( ALL 77 ), COALESCE ( CAST ( NULL AS INTEGER ), + - 43 - + 46 + 6 * 75 ) ) + + 2 * - 33 AS col1
----
11

query I rowsort
SELECT DISTINCT 99 + + 62 * 74 AS col1
----
4687

query II rowsort
SELECT 71, + 26 AS col1
----
71
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1326
SELECT DISTINCT + CAST( + + 78 AS SIGNED ) col1
----
78

skipif mysql # not compatible
query I rowsort label-1326
SELECT DISTINCT + CAST ( + + 78 AS INTEGER ) col1
----
78

query I rowsort
SELECT ALL + 34 * + - ( 70 ) * - 26 + 98 AS col1
----
61978

query I rowsort
SELECT 31 + 99 col0
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT DISTINCT - COUNT( * ) - 49 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-1329
SELECT DISTINCT - COUNT ( * ) - 49 AS col2
----
-50

query I rowsort
SELECT CASE + 43 WHEN + ( 91 ) + - 40 * 57 / - - 15 THEN + 44 WHEN 85 + 82 THEN NULL END + 65 * 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT + ( COUNT( * ) ) - + + COALESCE ( - 2, - 20 + COUNT( * ) * 14 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-1331
SELECT + ( COUNT ( * ) ) - + + COALESCE ( - 2, - 20 + COUNT ( * ) * 14 ) AS col0
----
3

query I rowsort
SELECT ALL + 90 * - 76 col0
----
-6840

query II rowsort
SELECT + 13 + - 82 * + 1 AS col0, + ( 11 )
----
-69
11

query I rowsort
SELECT ALL 83 * + 82 AS col2
----
6806

onlyif mysql # aggregate syntax: 
query III rowsort label-1335
SELECT - + COUNT( * ) AS col1, + 3 + 3 - + - 51 col1, 71
----
-1
57
71

skipif mysql # not compatible
query III rowsort label-1335
SELECT - + COUNT ( * ) AS col1, + 3 + 3 - + - 51 col1, 71
----
-1
57
71

onlyif mysql # aggregate syntax: 
query II rowsort label-1336
SELECT 97 AS col0, 48 + + ( + MAX( + 2 ) ) * - - 7
----
97
62

skipif mysql # not compatible
query II rowsort label-1336
SELECT 97 AS col0, 48 + + ( + MAX ( + 2 ) ) * - - 7
----
97
62

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

query I rowsort
SELECT - 40 * 95 - - + 37
----
-3763

onlyif mysql # aggregate syntax: 
query I rowsort label-1339
SELECT 46 + - - ( COUNT( * ) ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-1339
SELECT 46 + - - ( COUNT ( * ) ) AS col0
----
47

query I rowsort
SELECT DISTINCT + CASE - + 51 WHEN + + COALESCE ( - 48, + 77 ) THEN NULL WHEN + + 33 * 84 / 23 THEN 86 END * - 10 col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1342
SELECT DISTINCT - 7 AS col2, 24 + - - COUNT( * ) + - 61
----
-7
-36

skipif mysql # not compatible
query II rowsort label-1342
SELECT DISTINCT - 7 AS col2, 24 + - - COUNT ( * ) + - 61
----
-7
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1343
SELECT - COUNT( * ) * - 30 DIV 44 * 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1343
SELECT - COUNT ( * ) * - 30 / 44 * 98 AS col2
----
0

query II rowsort
SELECT 77 AS col1, - ( + 12 ) * + 89 AS col0
----
77
-1068

query I rowsort
SELECT ALL - ( + 74 ) AS col0
----
-74

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

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

query I rowsort
SELECT + ( - CASE 71 WHEN - 68 THEN NULL ELSE + 92 END )
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-1348
SELECT 8, 74 * + CASE + 52 WHEN - 33 THEN NULL WHEN - 34 * + - 51 THEN NULL WHEN + - 80 THEN NULL ELSE CASE 30 WHEN 85 - 17 THEN - 55 WHEN COUNT( * ) + - 83 THEN 3 ELSE NULL END END + + ( 42 ) AS col1
----
8
NULL

skipif mysql # not compatible
query II rowsort label-1348
SELECT 8, 74 * + CASE + 52 WHEN - 33 THEN NULL WHEN - 34 * + - 51 THEN NULL WHEN + - 80 THEN NULL ELSE CASE 30 WHEN 85 - 17 THEN - 55 WHEN COUNT ( * ) + - 83 THEN 3 ELSE NULL END END + + ( 42 ) AS col1
----
8
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1349
SELECT ALL - + 92 + + - NULLIF ( ( - COALESCE ( + 17, - 58 * + + CASE - - CASE - 6 WHEN + 66 * SUM( + 94 * + CAST( NULL AS SIGNED ) ) + - 64 THEN COUNT( * ) WHEN 69 THEN NULL END WHEN ( - 86 ) THEN NULL WHEN ( CASE ( - 9 ) WHEN 62 * 90 THEN + 8 * + COUNT( * ) WHEN 25 THEN NULL WHEN - 81 THEN NULL END ) THEN + 89 WHEN + COUNT( - 91 ) THEN + 99 END ) ), - 54 * - 82 )
----
-75

skipif mysql # not compatible
query I rowsort label-1349
SELECT ALL - + 92 + + - NULLIF ( ( - COALESCE ( + 17, - 58 * + + CASE - - CASE - 6 WHEN + 66 * SUM ( + 94 * + CAST ( NULL AS INTEGER ) ) + - 64 THEN COUNT ( * ) WHEN 69 THEN NULL END WHEN ( - 86 ) THEN NULL WHEN ( CASE ( - 9 ) WHEN 62 * 90 THEN + 8 * + COUNT ( * ) WHEN 25 THEN NULL WHEN - 81 THEN NULL END ) THEN + 89 WHEN + COUNT ( - 91 ) THEN + 99 END ) ), - 54 * - 82 )
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-1350
SELECT 5 - - - 61 DIV - 91 * + 61 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-1350
SELECT 5 - - - 61 / - 91 * + 61 AS col0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1351
SELECT + 56 * CAST( + 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1351
SELECT + 56 * CAST ( + 0 AS INTEGER )
----
0

query I rowsort
SELECT - ( + 1 ) * 48 * - - 39 - + - 78 + 49
----
-1745

query I rowsort
SELECT ALL + 6 * - COALESCE ( + - 1, 27 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT DISTINCT - NULLIF ( - + 33, + COUNT( * ) ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-1354
SELECT DISTINCT - NULLIF ( - + 33, + COUNT ( * ) ) AS col2
----
33

query I rowsort
SELECT 51 * 37 AS col2
----
1887

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1356
SELECT DISTINCT + 70 + + 93 + + - 94 DIV - COALESCE ( + COUNT( * ), MAX( DISTINCT + + ( 75 ) ), COUNT( * ) * 58 + + ( + NULLIF ( ( - 14 ), + 93 DIV 85 ) ) )
----
257

skipif mysql # not compatible
query I rowsort label-1356
SELECT DISTINCT + 70 + + 93 + + - 94 / - COALESCE ( + COUNT ( * ), MAX ( DISTINCT + + ( 75 ) ), COUNT ( * ) * 58 + + ( + NULLIF ( ( - 14 ), + 93 / 85 ) ) )
----
257

query I rowsort
SELECT ALL - 16 + + + 45 AS col2
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1358
SELECT 67 - - + 40, + 3 * + CAST( - 94 AS SIGNED ) * 73 AS col2
----
107
-20586

skipif mysql # not compatible
query II rowsort label-1358
SELECT 67 - - + 40, + 3 * + CAST ( - 94 AS INTEGER ) * 73 AS col2
----
107
-20586

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT + 82 * + + 92 - - COUNT( * ) + 7 AS col2
----
7552

skipif mysql # not compatible
query I rowsort label-1359
SELECT + 82 * + + 92 - - COUNT ( * ) + 7 AS col2
----
7552

query I rowsort
SELECT ALL - 16 + - 27
----
-43

query I rowsort
SELECT ALL + 53 + - 2 AS col1
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1362
SELECT 66 + 99 + 84 * + 80 + - - 55 DIV - 26 + - + 39 * COUNT( * ) AS col1
----
6844

skipif mysql # not compatible
query I rowsort label-1362
SELECT 66 + 99 + 84 * + 80 + - - 55 / - 26 + - + 39 * COUNT ( * ) AS col1
----
6844

query I rowsort
SELECT ( + + 22 ) * + + 79
----
1738

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1365
SELECT MAX( - 80 ) * + 26 * + - 10 + - 23 + - CAST( + COUNT( * ) AS SIGNED ) * COUNT( + 61 ) + 37 * + 23 AS col1
----
21627

skipif mysql # not compatible
query I rowsort label-1365
SELECT MAX ( - 80 ) * + 26 * + - 10 + - 23 + - CAST ( + COUNT ( * ) AS INTEGER ) * COUNT ( + 61 ) + 37 * + 23 AS col1
----
21627

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT DISTINCT NULLIF ( + + 4, 81 * + - 32 + - ( + COUNT( * ) ) * + 93 * + COUNT( ALL + 9 ) ) * + 22
----
88

skipif mysql # not compatible
query I rowsort label-1366
SELECT DISTINCT NULLIF ( + + 4, 81 * + - 32 + - ( + COUNT ( * ) ) * + 93 * + COUNT ( ALL + 9 ) ) * + 22
----
88

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1368
SELECT DISTINCT MAX( DISTINCT - - 2 ) AS col0, 48
----
2
48

skipif mysql # not compatible
query II rowsort label-1368
SELECT DISTINCT MAX ( DISTINCT - - 2 ) AS col0, 48
----
2
48

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1370
SELECT + - COALESCE ( + 61, - - MIN( DISTINCT - + CAST( 1 AS SIGNED ) ) + + + 16 + + + COUNT( * ), - - NULLIF ( - 6, - 89 + 37 / + ( + 10 ) ) ) + 22 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-1370
SELECT + - COALESCE ( + 61, - - MIN ( DISTINCT - + CAST ( 1 AS INTEGER ) ) + + + 16 + + + COUNT ( * ), - - NULLIF ( - 6, - 89 + 37 / + ( + 10 ) ) ) + 22 AS col1
----
-39

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

query I rowsort
SELECT - ( - - 5 ) - - 55 AS col0
----
50

query I rowsort
SELECT - 50 + 62 + + 81 AS col1
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1374
SELECT + COALESCE ( COALESCE ( + - 86, - - 45 ), + 59, - NULLIF ( 72, + + 62 + + - ( + 21 ) + COALESCE ( - 17, COALESCE ( 69, NULLIF ( + 98, 26 + COUNT( * ) ) * + 49, COUNT( * ) + 8 ), + COUNT( * ) ) * 60 ) ) DIV - 85 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1374
SELECT + COALESCE ( COALESCE ( + - 86, - - 45 ), + 59, - NULLIF ( 72, + + 62 + + - ( + 21 ) + COALESCE ( - 17, COALESCE ( 69, NULLIF ( + 98, 26 + COUNT ( * ) ) * + 49, COUNT ( * ) + 8 ), + COUNT ( * ) ) * 60 ) ) / - 85 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1375
SELECT ALL 94 DIV - 15 + MAX( 6 ), + 30 + - COUNT( * ) AS col1
----
0
29

skipif mysql # not compatible
query II rowsort label-1375
SELECT ALL 94 / - 15 + MAX ( 6 ), + 30 + - COUNT ( * ) AS col1
----
0
29

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

query I rowsort
SELECT + - 73 * 83 * + + 81 AS col0
----
-490779

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1378
SELECT ALL - MIN( ALL CAST( - 48 AS SIGNED ) )
----
48

skipif mysql # not compatible
query I rowsort label-1378
SELECT ALL - MIN ( ALL CAST ( - 48 AS INTEGER ) )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT DISTINCT + CASE 66 WHEN - - 68 * + - NULLIF ( - COALESCE ( + - 48, NULLIF ( COUNT( * ), + - ( 25 ) / COUNT( * ) ) * 3, 50 ), + 35 ) THEN - 48 END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1379
SELECT DISTINCT + CASE 66 WHEN - - 68 * + - NULLIF ( - COALESCE ( + - 48, NULLIF ( COUNT ( * ), + - ( 25 ) / COUNT ( * ) ) * 3, 50 ), + 35 ) THEN - 48 END + COUNT ( * )
----
NULL

query I rowsort
SELECT - 41 * + + 34 AS col0
----
-1394

onlyif mysql # aggregate syntax: 
query II rowsort label-1381
SELECT + 80 + - - SUM( - ( 41 ) ) AS col1, + 21 AS col1
----
39
21

skipif mysql # not compatible
query II rowsort label-1381
SELECT + 80 + - - SUM ( - ( 41 ) ) AS col1, + 21 AS col1
----
39
21

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

skipif mysql # not compatible
query I rowsort label-1382
SELECT COUNT ( * ) / - 21 - - + 14 col0
----
14

query I rowsort
SELECT ALL 77 * - 36 + - 1
----
-2773

query I rowsort
SELECT ALL + + 3 * + 69 + + 59 AS col1
----
266

onlyif mysql # DIV for integer division: 
query I rowsort label-1385
SELECT + 36 DIV + 27
----
1

skipif mysql # not compatible
query I rowsort label-1385
SELECT + 36 / + 27
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1386
SELECT ALL + 93 AS col1, - 4 * 94 + - NULLIF ( + - 80, - 79 + ( + - 7 ) ) + - ( CASE - 39 WHEN - 39 * 94 + 16 THEN ( 77 ) * NULLIF ( 55 * 13, - 32 / 96 + CAST( NULL AS SIGNED ) ) - 37 * - 32 END ) + - 72 / 98
----
93
NULL

skipif mysql # not compatible
query II rowsort label-1386
SELECT ALL + 93 AS col1, - 4 * 94 + - NULLIF ( + - 80, - 79 + ( + - 7 ) ) + - ( CASE - 39 WHEN - 39 * 94 + 16 THEN ( 77 ) * NULLIF ( 55 * 13, - 32 / 96 + CAST ( NULL AS INTEGER ) ) - 37 * - 32 END ) + - 72 / 98
----
93
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT - NULLIF ( - - 41, + 35 * 92 - - COUNT( * ) + + - COUNT( * ) ) + - 19 + - 44 * + + COUNT( * ) AS col2
----
-104

skipif mysql # not compatible
query I rowsort label-1387
SELECT - NULLIF ( - - 41, + 35 * 92 - - COUNT ( * ) + + - COUNT ( * ) ) + - 19 + - 44 * + + COUNT ( * ) AS col2
----
-104

onlyif mysql # DIV for integer division: 
query I rowsort label-1388
SELECT DISTINCT - 39 DIV + - 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1388
SELECT DISTINCT - 39 / + - 98 AS col0
----
0

query I rowsort
SELECT DISTINCT - 30 * - - 0 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1390
SELECT + 70 DIV - + NULLIF ( 93, - + 80 + + - 86 DIV - 58 )
----
0

skipif mysql # not compatible
query I rowsort label-1390
SELECT + 70 / - + NULLIF ( 93, - + 80 + + - 86 / - 58 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT - 76 * 62 * COUNT( * ) AS col2
----
-4712

skipif mysql # not compatible
query I rowsort label-1391
SELECT - 76 * 62 * COUNT ( * ) AS col2
----
-4712

onlyif mysql # aggregate syntax: 
query I rowsort label-1392
SELECT ALL - COUNT( * ) * + 48 * - ( + MAX( - 48 ) )
----
-2304

skipif mysql # not compatible
query I rowsort label-1392
SELECT ALL - COUNT ( * ) * + 48 * - ( + MAX ( - 48 ) )
----
-2304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1393
SELECT - 88 + 41 + + + 88 * + 96 * - CAST( NULL AS SIGNED ) * - 5 + + ( 2 ) * + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-1393
SELECT - 88 + 41 + + + 88 * + 96 * - CAST ( NULL AS INTEGER ) * - 5 + + ( 2 ) * + 99
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1394
SELECT DISTINCT 94 * 52 DIV - 19
----
-257

skipif mysql # not compatible
query I rowsort label-1394
SELECT DISTINCT 94 * 52 / - 19
----
-257

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1395
SELECT DISTINCT + CAST( + + 60 AS SIGNED ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-1395
SELECT DISTINCT + CAST ( + + 60 AS INTEGER ) AS col2
----
60

query I rowsort
SELECT - 16 * - 93 AS col0
----
1488

query I rowsort
SELECT ALL - 49 * - 8 AS col0
----
392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1398
SELECT ALL NULLIF ( + 43, - - 7 * - - ( - AVG ( DISTINCT CAST( + 96 AS SIGNED ) ) ) + - 93 - - - CASE WHEN NOT ( 19 ) IS NOT NULL THEN + 10 WHEN ( 58 * + 95 ) NOT BETWEEN - 86 AND 60 + + COUNT( * ) THEN - 68 END ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-1398
SELECT ALL NULLIF ( + 43, - - 7 * - - ( - AVG ( DISTINCT CAST ( + 96 AS INTEGER ) ) ) + - 93 - - - CASE WHEN NOT ( 19 ) IS NOT NULL THEN + 10 WHEN ( 58 * + 95 ) NOT BETWEEN - 86 AND 60 + + COUNT ( * ) THEN - 68 END ) AS col2
----
43

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

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

query I rowsort
SELECT - + 62 * + 97 AS col0
----
-6014

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT - + COUNT( DISTINCT 69 ) + + 61 - - 61 * - ( - 79 ) + - - 87
----
4966

skipif mysql # not compatible
query I rowsort label-1401
SELECT - + COUNT ( DISTINCT 69 ) + + 61 - - 61 * - ( - 79 ) + - - 87
----
4966

onlyif mysql # aggregate syntax: 
query I rowsort label-1402
SELECT - 39 - - MAX( - 85 )
----
-124

skipif mysql # not compatible
query I rowsort label-1402
SELECT - 39 - - MAX ( - 85 )
----
-124

query II rowsort
SELECT ALL + 96 AS col0, - 96
----
96
-96

query I rowsort
SELECT DISTINCT - 24 * - 81 * + 57 AS col0
----
110808

query I rowsort
SELECT - + NULLIF ( 65, + 44 ) * - 95
----
6175

query I rowsort
SELECT ALL 1 * + + 74 AS col0
----
74

query II rowsort
SELECT ALL 53 AS col0, ( + - 76 ) AS col2
----
53
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT - CASE - COUNT( * ) WHEN + + 22 THEN NULL WHEN 0 - - 56 THEN + + 96 * - COUNT( * ) ELSE NULL END + + COALESCE ( - - 71, + ( - 91 ) * 81 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1408
SELECT - CASE - COUNT ( * ) WHEN + + 22 THEN NULL WHEN 0 - - 56 THEN + + 96 * - COUNT ( * ) ELSE NULL END + + COALESCE ( - - 71, + ( - 91 ) * 81 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT DISTINCT - CASE 55 WHEN 61 * - 71 * + 34 THEN - - 66 * - + 55 + - SUM( - + ( + 92 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1409
SELECT DISTINCT - CASE 55 WHEN 61 * - 71 * + 34 THEN - - 66 * - + 55 + - SUM ( - + ( + 92 ) ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 88 + 96
----
184

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1412
SELECT DISTINCT 85 + ( + 36 ) + - CAST( NULL AS SIGNED ) * - 0 + + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-1412
SELECT DISTINCT 85 + ( + 36 ) + - CAST ( NULL AS INTEGER ) * - 0 + + 71
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1413
SELECT - - 57 AS col0, + 79 DIV - + 74
----
57
-1

skipif mysql # not compatible
query II rowsort label-1413
SELECT - - 57 AS col0, + 79 / - + 74
----
57
-1

query I rowsort
SELECT + NULLIF ( - 84, - 11 ) AS col0
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1415
SELECT - - ( + - 53 ) * + 8 + - 36 DIV - 61 + - 83 * COUNT( * )
----
-507

skipif mysql # not compatible
query I rowsort label-1415
SELECT - - ( + - 53 ) * + 8 + - 36 / - 61 + - 83 * COUNT ( * )
----
-507

onlyif mysql # DIV for integer division: 
query I rowsort label-1416
SELECT DISTINCT COALESCE ( + 79, + + AVG ( - ( + + 78 ) ) DIV + - 9 * 11 * + 29 * - 89 - + 59 * - 41 + - 19 ) DIV 21
----
3

skipif mysql # not compatible
query I rowsort label-1416
SELECT DISTINCT COALESCE ( + 79, + + AVG ( - ( + + 78 ) ) / + - 9 * 11 * + 29 * - 89 - + 59 * - 41 + - 19 ) / 21
----
3

query I rowsort
SELECT ALL + ( + 69 ) AS col0
----
69

query I rowsort
SELECT - + 0 * 13 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1419
SELECT + SUM( - 94 ) * NULLIF ( + 74, 81 ) + + 97, + 45 + - 47 AS col1
----
-6859
-2

skipif mysql # not compatible
query II rowsort label-1419
SELECT + SUM ( - 94 ) * NULLIF ( + 74, 81 ) + + 97, + 45 + - 47 AS col1
----
-6859
-2

query I rowsort
SELECT + 30 * 6
----
180

query I rowsort
SELECT ALL 42 * 85
----
3570

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1422
SELECT DISTINCT + 9 col2, CAST( NULL AS SIGNED )
----
9
NULL

skipif mysql # not compatible
query II rowsort label-1422
SELECT DISTINCT + 9 col2, CAST ( NULL AS INTEGER )
----
9
NULL

query I rowsort
SELECT ALL 49 / - + 80 - CASE - 19 WHEN + 72 THEN + 92 END AS col0
----
NULL

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1426
SELECT COALESCE ( 31, + 78, + NULLIF ( - - 66, - 4 ) ) * - - 48 - - 88 * 31 DIV 53 * + + 58 - + 24
----
4422

skipif mysql # not compatible
query I rowsort label-1426
SELECT COALESCE ( 31, + 78, + NULLIF ( - - 66, - 4 ) ) * - - 48 - - 88 * 31 / 53 * + + 58 - + 24
----
4422

onlyif mysql # aggregate syntax: 
query I rowsort label-1427
SELECT + 0 * + - SUM( DISTINCT + - 75 ) * ( - + MIN( DISTINCT + 63 ) ) * + - 79 - - NULLIF ( - + 95, 89 )
----
-95

skipif mysql # not compatible
query I rowsort label-1427
SELECT + 0 * + - SUM ( DISTINCT + - 75 ) * ( - + MIN ( DISTINCT + 63 ) ) * + - 79 - - NULLIF ( - + 95, 89 )
----
-95

query II rowsort
SELECT ALL 6 * - 89 AS col0, + 82
----
-534
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-1429
SELECT DISTINCT + 8 AS col1, 34 + 91 DIV - + 11 AS col0, + MAX( + - 7 ) * + 66 col1
----
8
26
-462

skipif mysql # not compatible
query III rowsort label-1429
SELECT DISTINCT + 8 AS col1, 34 + 91 / - + 11 AS col0, + MAX ( + - 7 ) * + 66 col1
----
8
26
-462

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT ALL + CASE + + 30 WHEN + 10 THEN + MAX( 43 ) * - - 81 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1431
SELECT ALL + CASE + + 30 WHEN + 10 THEN + MAX ( 43 ) * - - 81 END
----
NULL

query II rowsort
SELECT ALL + 27, 12 AS col2
----
27
12

query II rowsort
SELECT ALL - 81 * - 28 AS col1, 79
----
2268
79

query I rowsort
SELECT 8 * - 26 AS col2
----
-208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1435
SELECT CASE + - 33 WHEN - 83 THEN + COUNT( * ) END + + CAST( 70 AS SIGNED ) / - 18 * - - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-1435
SELECT CASE + - 33 WHEN - 83 THEN + COUNT ( * ) END + + CAST ( 70 AS INTEGER ) / - 18 * - - 49
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1436
SELECT 27 DIV - 29 * - 13 col2
----
0

skipif mysql # not compatible
query I rowsort label-1436
SELECT 27 / - 29 * - 13 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT ALL + ( + + NULLIF ( - 62, + + COUNT( * ) ) ) * + 67 AS col0
----
-4154

skipif mysql # not compatible
query I rowsort label-1437
SELECT ALL + ( + + NULLIF ( - 62, + + COUNT ( * ) ) ) * + 67 AS col0
----
-4154

query I rowsort
SELECT 62 * + 46 + - - 56
----
2908

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT SUM( - - 20 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-1439
SELECT SUM ( - - 20 ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1440
SELECT ALL - + 65 * - COUNT( + 79 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-1440
SELECT ALL - + 65 * - COUNT ( + 79 ) AS col0
----
65

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

skipif mysql # not compatible
query I rowsort label-1441
SELECT ALL - 42 * - COUNT ( * ) / - 88 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1442
SELECT 54 DIV CASE + - COUNT( * ) WHEN + ( - 49 ) THEN COUNT( * ) WHEN - COUNT( * ) THEN + NULLIF ( + + 46, - CASE - 21 WHEN 98 + 68 * + 62 THEN + ( AVG ( 98 ) ) END * + 66 ) ELSE 45 END AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1442
SELECT 54 / CASE + - COUNT ( * ) WHEN + ( - 49 ) THEN COUNT ( * ) WHEN - COUNT ( * ) THEN + NULLIF ( + + 46, - CASE - 21 WHEN 98 + 68 * + 62 THEN + ( AVG ( 98 ) ) END * + 66 ) ELSE 45 END AS col1
----
1

query I rowsort
SELECT DISTINCT + 9 * ( + 35 ) * - - 9 + - 15 + 54 AS col0
----
2874

query I rowsort
SELECT ALL 29 * + 21 + - NULLIF ( + 53, - - 23 ) AS col0
----
556

query I rowsort
SELECT DISTINCT 34 + ( - ( + + 64 ) )
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-1446
SELECT - 73 + 56 DIV 90 DIV 31 + 57
----
-16

skipif mysql # not compatible
query I rowsort label-1446
SELECT - 73 + 56 / 90 / 31 + 57
----
-16

query I rowsort
SELECT 23 * + 81
----
1863

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

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

query I rowsort
SELECT - 48 + + - 82 + - 49
----
-179

query I rowsort
SELECT ALL - COALESCE ( 83, 8 - - 17 - - - 10 ) * - - 17
----
-1411

query I rowsort
SELECT ALL - - 81 + + 22
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT ALL - + 72 + + 21 + - 78 - + - 38 * + 20 + + 51 * - - COUNT( * ) * + 17
----
1498

skipif mysql # not compatible
query I rowsort label-1452
SELECT ALL - + 72 + + 21 + - 78 - + - 38 * + 20 + + 51 * - - COUNT ( * ) * + 17
----
1498

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1453
SELECT ALL - 44 + + CAST( NULL AS SIGNED ) + - 64 * + 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1453
SELECT ALL - 44 + + CAST ( NULL AS INTEGER ) + - 64 * + 88 AS col1
----
NULL

query I rowsort
SELECT 80 - - ( - 41 ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-1455
SELECT - 56 col0, SUM( - ( 60 ) ) col1
----
-56
-60

skipif mysql # not compatible
query II rowsort label-1455
SELECT - 56 col0, SUM ( - ( 60 ) ) col1
----
-56
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT DISTINCT + 38 * + COALESCE ( - - COUNT( * ), - 81 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-1456
SELECT DISTINCT + 38 * + COALESCE ( - - COUNT ( * ), - 81 ) AS col1
----
38

query I rowsort
SELECT ALL - 84 - + 64 * 78 AS col1
----
-5076

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT 51 * + 37 * + + COUNT( - 51 )
----
1887

skipif mysql # not compatible
query I rowsort label-1458
SELECT 51 * + 37 * + + COUNT ( - 51 )
----
1887

onlyif mysql # aggregate syntax: 
query I rowsort label-1459
SELECT + CASE + + CASE - 42 WHEN - + 25 THEN - + 54 WHEN + NULLIF ( ( - 43 ), 77 * + 45 ) THEN NULL WHEN ( - - 13 ) THEN NULL ELSE MAX( DISTINCT 82 ) + AVG ( - 13 ) END WHEN - 23 * 79 THEN NULL WHEN + 75 THEN - 27 END / 12 + - ( 52 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1459
SELECT + CASE + + CASE - 42 WHEN - + 25 THEN - + 54 WHEN + NULLIF ( ( - 43 ), 77 * + 45 ) THEN NULL WHEN ( - - 13 ) THEN NULL ELSE MAX ( DISTINCT 82 ) + AVG ( - 13 ) END WHEN - 23 * 79 THEN NULL WHEN + 75 THEN - 27 END / 12 + - ( 52 ) col1
----
NULL

query I rowsort
SELECT 66 + 37
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1461
SELECT 84 DIV 4 - COUNT( * ) + - - 28 * - 48 - - - 37
----
-1361

skipif mysql # not compatible
query I rowsort label-1461
SELECT 84 / 4 - COUNT ( * ) + - - 28 * - 48 - - - 37
----
-1361

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT + 7 * - MAX( + - 60 ) + 11 * - 70 AS col1
----
-350

skipif mysql # not compatible
query I rowsort label-1463
SELECT + 7 * - MAX ( + - 60 ) + 11 * - 70 AS col1
----
-350

query II rowsort
SELECT ALL - ( 61 ) AS col0, 36 AS col2
----
-61
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1465
SELECT SUM( + 70 ) DIV + 1 col2
----
70

skipif mysql # not compatible
query I rowsort label-1465
SELECT SUM ( + 70 ) / + 1 col2
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-1466
SELECT ALL + 94 DIV 66 DIV 4 * + 0
----
0

skipif mysql # not compatible
query I rowsort label-1466
SELECT ALL + 94 / 66 / 4 * + 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1467
SELECT ( + MAX( ALL + - 22 ) ) + + 47 * 99 AS col0, + 27
----
4631
27

skipif mysql # not compatible
query II rowsort label-1467
SELECT ( + MAX ( ALL + - 22 ) ) + + 47 * 99 AS col0, + 27
----
4631
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1468
SELECT COUNT( * ) + - - 84 * CAST( NULL AS SIGNED ) * 78 / - - 2 * + CAST( - + 40 AS DECIMAL ) * - - 32 * - 66 * + + COALESCE ( 66, - + NULLIF ( - 43, 56 ) ) / + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-1468
SELECT COUNT ( * ) + - - 84 * CAST ( NULL AS INTEGER ) * 78 / - - 2 * + CAST ( - + 40 AS REAL ) * - - 32 * - 66 * + + COALESCE ( 66, - + NULLIF ( - 43, 56 ) ) / + 88
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1469
SELECT COUNT( * ) * + 50 AS col0, SUM( - 39 ) * - - 95 + COUNT( * )
----
50
-3704

skipif mysql # not compatible
query II rowsort label-1469
SELECT COUNT ( * ) * + 50 AS col0, SUM ( - 39 ) * - - 95 + COUNT ( * )
----
50
-3704

query I rowsort
SELECT - ( - 92 ) * + 62 + - 59 * - 93 AS col2
----
11191

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT ALL COUNT( ALL - 43 ) + + ( + 64 ) + - - 46 * COUNT( * ) * - + 66
----
-2971

skipif mysql # not compatible
query I rowsort label-1472
SELECT ALL COUNT ( ALL - 43 ) + + ( + 64 ) + - - 46 * COUNT ( * ) * - + 66
----
-2971

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1473
SELECT - 12 * + 26 + COUNT( * ) + - + ( + 96 ) * CASE + 49 WHEN NULLIF ( + + ( 45 ), 20 * - 10 * 96 + + ( - ( 83 ) ) ) - - COUNT( * ) THEN + 41 WHEN 0 + CAST( NULL AS SIGNED ) THEN NULL ELSE - 33 END
----
2857

skipif mysql # not compatible
query I rowsort label-1473
SELECT - 12 * + 26 + COUNT ( * ) + - + ( + 96 ) * CASE + 49 WHEN NULLIF ( + + ( 45 ), 20 * - 10 * 96 + + ( - ( 83 ) ) ) - - COUNT ( * ) THEN + 41 WHEN 0 + CAST ( NULL AS INTEGER ) THEN NULL ELSE - 33 END
----
2857

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT COUNT( * ) + - + 25 * - - CASE - 57 WHEN - NULLIF ( + 93, + AVG ( DISTINCT - 80 ) ) * COUNT( * ) + + COUNT( * ) / + - NULLIF ( - - 29, - 97 * + 88 ) THEN NULL ELSE + 93 + 72 END
----
-4124

skipif mysql # not compatible
query I rowsort label-1474
SELECT COUNT ( * ) + - + 25 * - - CASE - 57 WHEN - NULLIF ( + 93, + AVG ( DISTINCT - 80 ) ) * COUNT ( * ) + + COUNT ( * ) / + - NULLIF ( - - 29, - 97 * + 88 ) THEN NULL ELSE + 93 + 72 END
----
-4124

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

skipif mysql # not compatible
query I rowsort label-1475
SELECT DISTINCT + COUNT ( * ) + - ( 74 ) AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT ALL - SUM( ALL 24 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-1476
SELECT ALL - SUM ( ALL 24 ) AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1477
SELECT ALL 74 + NULLIF ( MAX( + 11 ), - 78 / + + COUNT( * ) + - 80 * SUM( ALL + + 11 ) - 41 - - 62 ) * + 59 - 81 AS col0
----
642

skipif mysql # not compatible
query I rowsort label-1477
SELECT ALL 74 + NULLIF ( MAX ( + 11 ), - 78 / + + COUNT ( * ) + - 80 * SUM ( ALL + + 11 ) - 41 - - 62 ) * + 59 - 81 AS col0
----
642

query I rowsort
SELECT ALL + + ( ( 75 ) ) + 64
----
139

query II rowsort
SELECT DISTINCT + 63 + + 12 AS col2, - 61
----
75
-61

query I rowsort
SELECT ALL + 30 + - 87 * 28 col2
----
-2406

query I rowsort
SELECT - - ( NULLIF ( + + 90, + + 78 + 61 ) ) AS col2
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1482
SELECT + CAST( - + COUNT( * ) AS SIGNED ) + 37 + + + 34 - 71 * 47 * + CAST( NULL AS SIGNED ) + ( - + 22 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1482
SELECT + CAST ( - + COUNT ( * ) AS INTEGER ) + 37 + + + 34 - 71 * 47 * + CAST ( NULL AS INTEGER ) + ( - + 22 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1483
SELECT 79 + - CASE + 54 WHEN CAST( NULL AS SIGNED ) THEN - 73 WHEN 79 * - 32 THEN NULL END + - - 50 * 97 * + COUNT( * ) + + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-1483
SELECT 79 + - CASE + 54 WHEN CAST ( NULL AS INTEGER ) THEN - 73 WHEN 79 * - 32 THEN NULL END + - - 50 * 97 * + COUNT ( * ) + + 14
----
NULL

query II rowsort
SELECT DISTINCT 58 * - 47, + 85 - + COALESCE ( + + 12, - 57 ) col1
----
-2726
73

query I rowsort
SELECT - 33 * - ( + 30 ) * + + 88
----
87120

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

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

query I rowsort
SELECT NULLIF ( + - 40, - 18 + 11 / - 40 - + 65 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1488
SELECT ALL + NULLIF ( + + 27, - 90 * - COUNT( * ) + 16 - 14 * - NULLIF ( - 24, + + COUNT( * ) ) / - AVG ( ALL + - 52 ) - - COUNT( * ) + ( 52 ) ) + 78 AS col0
----
105

skipif mysql # not compatible
query I rowsort label-1488
SELECT ALL + NULLIF ( + + 27, - 90 * - COUNT ( * ) + 16 - 14 * - NULLIF ( - 24, + + COUNT ( * ) ) / - AVG ( ALL + - 52 ) - - COUNT ( * ) + ( 52 ) ) + 78 AS col0
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1489
SELECT ALL - + CAST( - 68 AS SIGNED ) * - - 22 + COUNT( DISTINCT + 6 ) DIV - ( + 15 ) * + 15 AS col2
----
1496

skipif mysql # not compatible
query I rowsort label-1489
SELECT ALL - + CAST ( - 68 AS INTEGER ) * - - 22 + COUNT ( DISTINCT + 6 ) / - ( + 15 ) * + 15 AS col2
----
1496

onlyif mysql # aggregate syntax: 
query I rowsort label-1490
SELECT ALL CASE + 37 WHEN 59 THEN + - COALESCE ( + 12, - 1 * - - 69 / 90 + - 71 + + SUM( + - 18 ) * - 8 ) WHEN 94 THEN NULL WHEN - 96 THEN NULL ELSE 24 + + 25 * - COUNT( ALL - 8 + 46 ) END
----
-1

skipif mysql # not compatible
query I rowsort label-1490
SELECT ALL CASE + 37 WHEN 59 THEN + - COALESCE ( + 12, - 1 * - - 69 / 90 + - 71 + + SUM ( + - 18 ) * - 8 ) WHEN 94 THEN NULL WHEN - 96 THEN NULL ELSE 24 + + 25 * - COUNT ( ALL - 8 + 46 ) END
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1491
SELECT CAST( NULL AS SIGNED ) + + 71 AS col0, + 19 * + 33 * - COUNT( * ) AS col0
----
NULL
-627

skipif mysql # not compatible
query II rowsort label-1491
SELECT CAST ( NULL AS INTEGER ) + + 71 AS col0, + 19 * + 33 * - COUNT ( * ) AS col0
----
NULL
-627

query I rowsort
SELECT - 73 * - 92 * 81 col0
----
543996

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

query I rowsort
SELECT ALL + 87 - 47 * - - 24
----
-1041

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1495
SELECT - CAST( + + 26 AS SIGNED ) AS col0, 39
----
-26
39

skipif mysql # not compatible
query II rowsort label-1495
SELECT - CAST ( + + 26 AS INTEGER ) AS col0, 39
----
-26
39

query I rowsort
SELECT 28 * 69
----
1932

onlyif mysql # aggregate syntax: 
query II rowsort label-1497
SELECT 26, + COUNT( * ) + - NULLIF ( + 83, - 8 ) AS col0
----
26
-82

skipif mysql # not compatible
query II rowsort label-1497
SELECT 26, + COUNT ( * ) + - NULLIF ( + 83, - 8 ) AS col0
----
26
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT ( + 35 ) * - COUNT( - 42 ) * - 64
----
2240

skipif mysql # not compatible
query I rowsort label-1498
SELECT ( + 35 ) * - COUNT ( - 42 ) * - 64
----
2240

query I rowsort
SELECT 96 * + + 80
----
7680

query I rowsort
SELECT 2 + - - 53 * - + ( 76 ) + - 86 + - 7 + + 89 * - 56 * + COALESCE ( + + 12, - 1, - 24 ) AS col2
----
-63927

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1501
SELECT ALL 18, - NULLIF ( + + NULLIF ( 92, + + 54 - + 58 * - 52 + 93 ), 47 ) / + 12 + - 69 * - + CASE 36 WHEN + 37 + 99 THEN NULL ELSE + CAST( NULL AS SIGNED ) END AS col0
----
18
NULL

skipif mysql # not compatible
query II rowsort label-1501
SELECT ALL 18, - NULLIF ( + + NULLIF ( 92, + + 54 - + 58 * - 52 + 93 ), 47 ) / + 12 + - 69 * - + CASE 36 WHEN + 37 + 99 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END AS col0
----
18
NULL

query I rowsort
SELECT ALL + 98 * 55
----
5390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1503
SELECT COALESCE ( 17, - 9 * + + CAST( NULL AS SIGNED ) + - 27 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-1503
SELECT COALESCE ( 17, - 9 * + + CAST ( NULL AS INTEGER ) + - 27 ) AS col0
----
17

query II rowsort
SELECT + 29 AS col1, + 26
----
29
26

query I rowsort
SELECT - ( - 17 ) + + + 87 * + ( ( - 76 ) )
----
-6595

query I rowsort
SELECT - 94 * 5
----
-470

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT ALL + CASE - - 97 WHEN + COUNT( * ) * - 65 THEN 10 - + 23 + - - 67 + + 47 / 17 END * ( + 52 ) - + + COUNT( DISTINCT + 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1507
SELECT ALL + CASE - - 97 WHEN + COUNT ( * ) * - 65 THEN 10 - + 23 + - - 67 + + 47 / 17 END * ( + 52 ) - + + COUNT ( DISTINCT + 63 )
----
NULL

query I rowsort
SELECT COALESCE ( + 21, - 80 ) col2
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-1509
SELECT - 11 DIV 73
----
0

skipif mysql # not compatible
query I rowsort label-1509
SELECT - 11 / 73
----
0

query I rowsort
SELECT DISTINCT + 81 * + 54
----
4374

query II rowsort
SELECT CASE 56 WHEN 92 * + 37 * - 76 - - + 92 * - 53 - - 91 THEN NULL WHEN + AVG ( ALL + 61 ) THEN 3 END, ( + + 90 ) + - 94 AS col1
----
NULL
-4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1513
SELECT ALL + 65 * - 8 + + 91 * + MIN( + 97 ) AS col2
----
8307

skipif mysql # not compatible
query I rowsort label-1513
SELECT ALL + 65 * - 8 + + 91 * + MIN ( + 97 ) AS col2
----
8307

query I rowsort
SELECT - 27 * - + 69 + 99
----
1962

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1515
SELECT CASE + - 83 WHEN + CASE + 29 WHEN 93 * - 44 + + CAST( NULL AS SIGNED ) + + + 31 THEN NULL WHEN + 57 * + CASE CASE - 55 WHEN + MIN( ALL + 92 ) THEN - ( + COUNT( * ) ) + - 56 WHEN + 7 THEN - 68 END WHEN - COUNT( * ) * - 50 THEN 92 ELSE 35 END + 17 THEN + 51 + - 85 ELSE + 27 END * 83 - 50 * + ( MIN( 55 ) / + 38 ) THEN NULL WHEN + 37 + 45 * - CASE 7 * + 42 WHEN NULLIF ( CAST( - 20 AS SIGNED ), 18 ) THEN - ( + 57 ) * 11 WHEN - 14 THEN + COUNT( * ) * 29 END THEN NULL ELSE + 39 - 38 END
----
1

skipif mysql # not compatible
query I rowsort label-1515
SELECT CASE + - 83 WHEN + CASE + 29 WHEN 93 * - 44 + + CAST ( NULL AS INTEGER ) + + + 31 THEN NULL WHEN + 57 * + CASE CASE - 55 WHEN + MIN ( ALL + 92 ) THEN - ( + COUNT ( * ) ) + - 56 WHEN + 7 THEN - 68 END WHEN - COUNT ( * ) * - 50 THEN 92 ELSE 35 END + 17 THEN + 51 + - 85 ELSE + 27 END * 83 - 50 * + ( MIN ( 55 ) / + 38 ) THEN NULL WHEN + 37 + 45 * - CASE 7 * + 42 WHEN NULLIF ( CAST ( - 20 AS INTEGER ), 18 ) THEN - ( + 57 ) * 11 WHEN - 14 THEN + COUNT ( * ) * 29 END THEN NULL ELSE + 39 - 38 END
----
1

query I rowsort
SELECT DISTINCT + 36 * 44 AS col0
----
1584

onlyif mysql # DIV for integer division: 
query I rowsort label-1517
SELECT DISTINCT 4 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-1517
SELECT DISTINCT 4 / 99
----
0

query I rowsort
SELECT ALL - - 77 * + 61 + - - 83 AS col2
----
4780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1519
SELECT - - 14 * ( 40 ) + + 81 - - CAST( NULL AS SIGNED ) * + - COALESCE ( 27, + - 21 * - CAST( NULL AS SIGNED ) ) / - - COUNT( * ) + 87 + - 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1519
SELECT - - 14 * ( 40 ) + + 81 - - CAST ( NULL AS INTEGER ) * + - COALESCE ( 27, + - 21 * - CAST ( NULL AS INTEGER ) ) / - - COUNT ( * ) + 87 + - 20 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1520
SELECT ALL 67 * 28 + + SUM( 2 ) AS col2
----
1878

skipif mysql # not compatible
query I rowsort label-1520
SELECT ALL 67 * 28 + + SUM ( 2 ) AS col2
----
1878

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1522
SELECT 65 * 71 + 65 - - NULLIF ( COUNT( * ), + + 19 - + + 58 ) - - 66 DIV 63
----
4682

skipif mysql # not compatible
query I rowsort label-1522
SELECT 65 * 71 + 65 - - NULLIF ( COUNT ( * ), + + 19 - + + 58 ) - - 66 / 63
----
4682

onlyif mysql # aggregate syntax: 
query II rowsort label-1523
SELECT ALL + 4, 85 * - COUNT( * ) * - 86 AS col0
----
4
7310

skipif mysql # not compatible
query II rowsort label-1523
SELECT ALL + 4, 85 * - COUNT ( * ) * - 86 AS col0
----
4
7310

query I rowsort
SELECT ALL 47 * - + 28 AS col1
----
-1316

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1525
SELECT DISTINCT 52 + 1 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1525
SELECT DISTINCT 52 + 1 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT 4 * 51 + - - 59, 32 col0
----
263
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT DISTINCT + 77 - - COUNT( * ) * - 11
----
66

skipif mysql # not compatible
query I rowsort label-1527
SELECT DISTINCT + 77 - - COUNT ( * ) * - 11
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1528
SELECT DISTINCT - CASE 25 WHEN - + 49 + 11 THEN 85 + MAX( ALL + + 9 ) WHEN - 22 THEN - ( 48 ) + - 27 + - 0 * - CAST( 7 AS SIGNED ) + 58 / - 39 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1528
SELECT DISTINCT - CASE 25 WHEN - + 49 + 11 THEN 85 + MAX ( ALL + + 9 ) WHEN - 22 THEN - ( 48 ) + - 27 + - 0 * - CAST ( 7 AS INTEGER ) + 58 / - 39 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1529
SELECT DISTINCT - 69 DIV - - 24 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-1529
SELECT DISTINCT - 69 / - - 24 AS col0
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1530
SELECT + 10 + - COALESCE ( + 69, - - CASE 88 WHEN 70 THEN NULL WHEN - + 1 THEN + - NULLIF ( + SUM( + + 1 ), - CASE + + 15 WHEN 89 + - ( 87 - 31 ) THEN 80 WHEN 39 THEN NULL ELSE NULL END + 76 ) DIV 75 ELSE 99 END * 93 + + 71 ) - 18 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-1530
SELECT + 10 + - COALESCE ( + 69, - - CASE 88 WHEN 70 THEN NULL WHEN - + 1 THEN + - NULLIF ( + SUM ( + + 1 ), - CASE + + 15 WHEN 89 + - ( 87 - 31 ) THEN 80 WHEN 39 THEN NULL ELSE NULL END + 76 ) / 75 ELSE 99 END * 93 + + 71 ) - 18 AS col1
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-1531
SELECT DISTINCT + COALESCE ( - + 85, + + 15 ) DIV 17 col2
----
-5

skipif mysql # not compatible
query I rowsort label-1531
SELECT DISTINCT + COALESCE ( - + 85, + + 15 ) / 17 col2
----
-5

query I rowsort
SELECT + - 61 + + 39 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1533
SELECT - 60 * - CASE 53 WHEN AVG ( DISTINCT + + 53 ) * - COUNT( * ) * 86 + 24 THEN - 62 - - - 70 / - 56 WHEN - 88 + - 74 THEN - + 1 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1533
SELECT - 60 * - CASE 53 WHEN AVG ( DISTINCT + + 53 ) * - COUNT ( * ) * 86 + 24 THEN - 62 - - - 70 / - 56 WHEN - 88 + - 74 THEN - + 1 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT DISTINCT 83 * + 15 * + COUNT( * )
----
1245

skipif mysql # not compatible
query I rowsort label-1534
SELECT DISTINCT 83 * + 15 * + COUNT ( * )
----
1245

onlyif mysql # DIV for integer division: 
query I rowsort label-1535
SELECT DISTINCT 95 DIV + 64
----
1

skipif mysql # not compatible
query I rowsort label-1535
SELECT DISTINCT 95 / + 64
----
1

query I rowsort
SELECT ALL + 21 * - 39 col0
----
-819

query I rowsort
SELECT + 41 + - 20
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1538
SELECT ALL COUNT( * ) * 16 col1
----
16

skipif mysql # not compatible
query I rowsort label-1538
SELECT ALL COUNT ( * ) * 16 col1
----
16

query I rowsort
SELECT + 6 + 84 + + - 36
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-1540
SELECT - 70 + + 78, + SUM( + + 52 ) AS col0
----
8
52

skipif mysql # not compatible
query II rowsort label-1540
SELECT - 70 + + 78, + SUM ( + + 52 ) AS col0
----
8
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1541
SELECT + CAST( + + 33 AS SIGNED ) + + 61 col1
----
94

skipif mysql # not compatible
query I rowsort label-1541
SELECT + CAST ( + + 33 AS INTEGER ) + + 61 col1
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-1542
SELECT ALL + 21 DIV 43 * + 63 * - 75 + - 56 - 52 + - 61 + - + 93 AS col1
----
-262

skipif mysql # not compatible
query I rowsort label-1542
SELECT ALL + 21 / 43 * + 63 * - 75 + - 56 - 52 + - 61 + - + 93 AS col1
----
-262

query I rowsort
SELECT + 58 + - - 95 * 5
----
533

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT ALL + SUM( 32 ) col0
----
32

skipif mysql # not compatible
query I rowsort label-1544
SELECT ALL + SUM ( 32 ) col0
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1545
SELECT DISTINCT COUNT( * ) DIV + - 77 + - 74 * 49 + - + 56 AS col2
----
-3682

skipif mysql # not compatible
query I rowsort label-1545
SELECT DISTINCT COUNT ( * ) / + - 77 + - 74 * 49 + - + 56 AS col2
----
-3682

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1546
SELECT DISTINCT + 38 / + CAST( NULL AS SIGNED ) + - MAX( - 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1546
SELECT DISTINCT + 38 / + CAST ( NULL AS INTEGER ) + - MAX ( - 47 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1547
SELECT DISTINCT + MAX( DISTINCT - + 95 ) DIV - + 38 + - NULLIF ( + - 98, ( + 79 ) - COUNT( * ) - ( - 96 ) ) - - + 80 + - ( + 70 ) * 39 * 2
----
-5280

skipif mysql # not compatible
query I rowsort label-1547
SELECT DISTINCT + MAX ( DISTINCT - + 95 ) / - + 38 + - NULLIF ( + - 98, ( + 79 ) - COUNT ( * ) - ( - 96 ) ) - - + 80 + - ( + 70 ) * 39 * 2
----
-5280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1548
SELECT ALL COUNT( ALL 59 ) / + ( 9 ) - - - 45 * - 14 * + CAST( NULL AS SIGNED ) * + 72 + - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-1548
SELECT ALL COUNT ( ALL 59 ) / + ( 9 ) - - - 45 * - 14 * + CAST ( NULL AS INTEGER ) * + 72 + - 14
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT 19 * - + 34 * + COUNT( * ) + - - 63 * + 55 + + 92 col1
----
2911

skipif mysql # not compatible
query I rowsort label-1550
SELECT 19 * - + 34 * + COUNT ( * ) + - - 63 * + 55 + + 92 col1
----
2911

query I rowsort
SELECT ALL + 56 * - - 73 + 48
----
4136

query I rowsort
SELECT - + COALESCE ( - - 71, - - 29 ) * - 83 + 80 AS col0
----
5973

query I rowsort
SELECT + 57 * + 14 + + 44 AS col0
----
842

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1554
SELECT DISTINCT - COUNT( * ) * ( + - NULLIF ( - CAST( + 82 AS SIGNED ), + NULLIF ( MIN( DISTINCT - 64 ), - 45 ) DIV + - 43 + + 41 + + 16 DIV 35 + - NULLIF ( + COUNT( * ), + CASE + 3 WHEN - 34 THEN NULL ELSE 2 END + + SUM( + 2 + + 66 ) * - 1 ) ) ) + ( + MIN( + 70 ) ) DIV 7 - - 85 col0
----
13

skipif mysql # not compatible
query I rowsort label-1554
SELECT DISTINCT - COUNT ( * ) * ( + - NULLIF ( - CAST ( + 82 AS INTEGER ), + NULLIF ( MIN ( DISTINCT - 64 ), - 45 ) / + - 43 + + 41 + + 16 / 35 + - NULLIF ( + COUNT ( * ), + CASE + 3 WHEN - 34 THEN NULL ELSE 2 END + + SUM ( + 2 + + 66 ) * - 1 ) ) ) + ( + MIN ( + 70 ) ) / 7 - - 85 col0
----
13

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

skipif mysql # not compatible
query I rowsort label-1555
SELECT DISTINCT - MAX ( DISTINCT - 6 ) * - + 54 AS col2
----
-324

onlyif mysql # DIV for integer division: 
query I rowsort label-1556
SELECT ALL + 47 DIV + + 94
----
0

skipif mysql # not compatible
query I rowsort label-1556
SELECT ALL + 47 / + + 94
----
0

query I rowsort
SELECT - + 42 * - 9 col0
----
378

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1558
SELECT ALL MAX( DISTINCT - 35 ) DIV - + 18 + - + 19 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-1558
SELECT ALL MAX ( DISTINCT - 35 ) / - + 18 + - + 19 AS col2
----
-18

query I rowsort
SELECT DISTINCT + + NULLIF ( + 16, - 49 )
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-1560
SELECT ALL - + 99 DIV - 30
----
3

skipif mysql # not compatible
query I rowsort label-1560
SELECT ALL - + 99 / - 30
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1561
SELECT - COUNT( DISTINCT - 86 ) * + 4 + - COUNT( * ) AS col0, - 52 DIV + 74 col2
----
-5
0

skipif mysql # not compatible
query II rowsort label-1561
SELECT - COUNT ( DISTINCT - 86 ) * + 4 + - COUNT ( * ) AS col0, - 52 / + 74 col2
----
-5
0

query I rowsort
SELECT + 64 + 53 * - + 60
----
-3116

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT - + ( + + SUM( - - 61 ) ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-1564
SELECT - + ( + + SUM ( - - 61 ) ) AS col2
----
-61

query I rowsort
SELECT DISTINCT 66 * - + 41 AS col0
----
-2706

query I rowsort
SELECT - - 57 - + 19 + - - 34 col0
----
72

query I rowsort
SELECT ALL 12 + + 75 AS col2
----
87

query I rowsort
SELECT 1 * + 50 AS col1
----
50

query II rowsort
SELECT 50 AS col2, 61 - 15 + 75 * - 60 + + ( + 12 ) col1
----
50
-4442

onlyif mysql # DIV for integer division: 
query I rowsort label-1570
SELECT 21 DIV + 52 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1570
SELECT 21 / + 52 AS col0
----
0

query I rowsort
SELECT 91 * - 30
----
-2730

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1572
SELECT DISTINCT 11 + - 88 - + CAST( NULL AS DECIMAL ) + 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1572
SELECT DISTINCT 11 + - 88 - + CAST ( NULL AS REAL ) + 66 AS col2
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-1574
SELECT COUNT ( * ) / 36 * - 36 AS col1
----
0

query I rowsort
SELECT ALL 40 + 61 AS col0
----
101

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1576
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - ( - 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1576
SELECT DISTINCT CAST ( NULL AS REAL ) * - ( - 60 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT ALL NULLIF ( 9, + 69 ) + - COALESCE ( COALESCE ( + - NULLIF ( + 21, 25 ), 91 ), + 67 + - + COUNT( * ) )
----
30

skipif mysql # not compatible
query I rowsort label-1577
SELECT ALL NULLIF ( 9, + 69 ) + - COALESCE ( COALESCE ( + - NULLIF ( + 21, 25 ), 91 ), + 67 + - + COUNT ( * ) )
----
30

query I rowsort
SELECT ALL + 64 + ( - 70 ) AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1579
SELECT ALL COUNT( * ) + + ( + 16 ) - - COUNT( * ) - - + 86
----
104

skipif mysql # not compatible
query I rowsort label-1579
SELECT ALL COUNT ( * ) + + ( + 16 ) - - COUNT ( * ) - - + 86
----
104

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

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

query I rowsort
SELECT 37 * - 47 + + 51 - 34 AS col1
----
-1722

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1582
SELECT MIN( - 10 ) DIV + 15 + - 28 + + 20 AS col2, - 98 col2
----
-8
-98

skipif mysql # not compatible
query II rowsort label-1582
SELECT MIN ( - 10 ) / + 15 + - 28 + + 20 AS col2, - 98 col2
----
-8
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1583
SELECT CAST( + 82 AS SIGNED ) + 5 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-1583
SELECT CAST ( + 82 AS INTEGER ) + 5 AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT DISTINCT - COALESCE ( + 66, + ( - ( + 89 ) ), - ( - 93 ) ) * - NULLIF ( + 76, - NULLIF ( - + COUNT( ALL + 74 ), + - 49 + + 27 ) )
----
5016

skipif mysql # not compatible
query I rowsort label-1584
SELECT DISTINCT - COALESCE ( + 66, + ( - ( + 89 ) ), - ( - 93 ) ) * - NULLIF ( + 76, - NULLIF ( - + COUNT ( ALL + 74 ), + - 49 + + 27 ) )
----
5016

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1585
SELECT ALL - 82 AS col1, CAST( NULL AS SIGNED ) AS col2
----
-82
NULL

skipif mysql # not compatible
query II rowsort label-1585
SELECT ALL - 82 AS col1, CAST ( NULL AS INTEGER ) AS col2
----
-82
NULL

query I rowsort
SELECT ALL - - 63 * 52
----
3276

onlyif mysql # aggregate syntax: 
query I rowsort label-1587
SELECT - COALESCE ( + 51, + ( + COUNT( * ) ), - COUNT( * ) ) * - + 60 AS col1
----
3060

skipif mysql # not compatible
query I rowsort label-1587
SELECT - COALESCE ( + 51, + ( + COUNT ( * ) ), - COUNT ( * ) ) * - + 60 AS col1
----
3060

query I rowsort
SELECT + 67 * + 80 - - + 91 + - 84
----
5367

query III rowsort
SELECT ALL - - 9, ( - - 29 ) AS col1, + + 90 * - + 69 AS col0
----
9
29
-6210

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT DISTINCT - + 96 * + COUNT( * ) * - + NULLIF ( 79, COUNT( * ) * + 21 + + + 68 * - 57 - 69 ) + COUNT( * ) col1
----
7585

skipif mysql # not compatible
query I rowsort label-1590
SELECT DISTINCT - + 96 * + COUNT ( * ) * - + NULLIF ( 79, COUNT ( * ) * + 21 + + + 68 * - 57 - 69 ) + COUNT ( * ) col1
----
7585

query I rowsort
SELECT ALL - + ( + - 48 ) AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT 92 * - NULLIF ( + NULLIF ( - + 6, - 34 ), 37 ) + CASE WHEN ( 94 ) <= 53 * 15 + + COALESCE ( 24, COUNT( * ) ) * + ( + 3 * MIN( - 40 ) ) THEN COUNT( * ) * - COUNT( * ) + - ( 73 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1592
SELECT 92 * - NULLIF ( + NULLIF ( - + 6, - 34 ), 37 ) + CASE WHEN ( 94 ) <= 53 * 15 + + COALESCE ( 24, COUNT ( * ) ) * + ( + 3 * MIN ( - 40 ) ) THEN COUNT ( * ) * - COUNT ( * ) + - ( 73 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1593
SELECT ALL - 25 * COUNT( * ) * - + 17 AS col2
----
425

skipif mysql # not compatible
query I rowsort label-1593
SELECT ALL - 25 * COUNT ( * ) * - + 17 AS col2
----
425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1594
SELECT 86 * - + CASE - + 64 WHEN + + 99 * - + 76 + + ( + COUNT( * ) ) THEN - CAST( 22 AS SIGNED ) WHEN + 40 THEN - - 33 * + 60 + CAST( - 81 AS DECIMAL ) ELSE NULL END * + - 42 * + 39 + + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-1594
SELECT 86 * - + CASE - + 64 WHEN + + 99 * - + 76 + + ( + COUNT ( * ) ) THEN - CAST ( 22 AS INTEGER ) WHEN + 40 THEN - - 33 * + 60 + CAST ( - 81 AS REAL ) ELSE NULL END * + - 42 * + 39 + + 38
----
NULL

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1597
SELECT ALL + 67 DIV + 60 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1597
SELECT ALL + 67 / + 60 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1598
SELECT 2 * + COALESCE ( COUNT( DISTINCT - CAST( NULL AS SIGNED ) ), 71 ) DIV - ( - 37 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1598
SELECT 2 * + COALESCE ( COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ), 71 ) / - ( - 37 ) AS col0
----
0

query I rowsort
SELECT 5 + 66
----
71

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

query I rowsort
SELECT 82 + - 65
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-1602
SELECT 22 col0, - 29 + COUNT( * ) + + 62
----
22
34

skipif mysql # not compatible
query II rowsort label-1602
SELECT 22 col0, - 29 + COUNT ( * ) + + 62
----
22
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1603
SELECT ALL + COALESCE ( + + 74, 36, + 97 ) + - 58 - + 59 + ( - CAST( NULL AS SIGNED ) ) / - + 69 AS col1, - CASE - NULLIF ( + COALESCE ( - 45, + 48, + ( ( 54 ) ) ), - 71 ) WHEN COUNT( * ) THEN - 75 WHEN + 70 THEN NULL ELSE NULL END * - 8
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1603
SELECT ALL + COALESCE ( + + 74, 36, + 97 ) + - 58 - + 59 + ( - CAST ( NULL AS INTEGER ) ) / - + 69 AS col1, - CASE - NULLIF ( + COALESCE ( - 45, + 48, + ( ( 54 ) ) ), - 71 ) WHEN COUNT ( * ) THEN - 75 WHEN + 70 THEN NULL ELSE NULL END * - 8
----
NULL
NULL

query I rowsort
SELECT COALESCE ( + 93, - + 65 ) - + 42 + + 42
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT DISTINCT SUM( ALL - 74 ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-1605
SELECT DISTINCT SUM ( ALL - 74 ) AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1606
SELECT ALL + 32 + COUNT( DISTINCT + + 42 )
----
33

skipif mysql # not compatible
query I rowsort label-1606
SELECT ALL + 32 + COUNT ( DISTINCT + + 42 )
----
33

query II rowsort
SELECT DISTINCT 88 col2, + 31
----
88
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1608
SELECT 26 + + CASE WHEN NOT NULL >= - 40 THEN + - 31 ELSE - - 92 END + + NULLIF ( - SUM( ALL + 15 ), - 70 ) DIV + - 7 AS col1
----
120

skipif mysql # not compatible
query I rowsort label-1608
SELECT 26 + + CASE WHEN NOT NULL >= - 40 THEN + - 31 ELSE - - 92 END + + NULLIF ( - SUM ( ALL + 15 ), - 70 ) / + - 7 AS col1
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT ALL SUM( ALL - 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-1609
SELECT ALL SUM ( ALL - 67 )
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1610
SELECT ( + CAST( 86 AS SIGNED ) ) + + COUNT( * ) + - + 91
----
-4

skipif mysql # not compatible
query I rowsort label-1610
SELECT ( + CAST ( 86 AS INTEGER ) ) + + COUNT ( * ) + - + 91
----
-4

query II rowsort
SELECT DISTINCT 99 AS col0, 41 + - - 32 AS col2
----
99
73

query I rowsort
SELECT 69 + 29 * - 94 AS col1
----
-2657

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

query I rowsort
SELECT - 83 * + 67 * NULLIF ( - 78, - + 21 + - 39 )
----
433758

onlyif mysql # aggregate syntax: 
query I rowsort label-1615
SELECT DISTINCT + 64 * + MAX( + - 90 ) AS col1
----
-5760

skipif mysql # not compatible
query I rowsort label-1615
SELECT DISTINCT + 64 * + MAX ( + - 90 ) AS col1
----
-5760

onlyif mysql # DIV for integer division: 
query I rowsort label-1616
SELECT DISTINCT + 53 DIV + 28
----
1

skipif mysql # not compatible
query I rowsort label-1616
SELECT DISTINCT + 53 / + 28
----
1

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

skipif mysql # not compatible
query I rowsort label-1617
SELECT DISTINCT - COUNT ( DISTINCT - 5 ) * + + 89 AS col1
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1618
SELECT + 15 DIV + 37 * + COUNT( * ) + + 42 + - COUNT( * ) + + ( 86 ) AS col1
----
127

skipif mysql # not compatible
query I rowsort label-1618
SELECT + 15 / + 37 * + COUNT ( * ) + + 42 + - COUNT ( * ) + + ( 86 ) AS col1
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT ALL - ( + 45 ) * + CASE + COUNT( * ) WHEN + 67 THEN NULL WHEN - + 57 THEN NULL WHEN + 28 * + 16 + - 51 - - 39 + - 84 + 18 * - - 82 THEN + - 58 / - NULLIF ( + 59, - 81 ) + + COALESCE ( - 47 + 97 * CASE 51 * 39 WHEN 39 * 82 THEN NULL WHEN - COALESCE ( ( MIN( DISTINCT - 91 ) ), 95 + + 95, + ( + COUNT( ALL 39 ) ) * 73 - 42 ) THEN 54 WHEN + COALESCE ( 0, + 80 ) - + 15 THEN NULL WHEN 10 THEN + 75 ELSE 66 END, + 61 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1619
SELECT ALL - ( + 45 ) * + CASE + COUNT ( * ) WHEN + 67 THEN NULL WHEN - + 57 THEN NULL WHEN + 28 * + 16 + - 51 - - 39 + - 84 + 18 * - - 82 THEN + - 58 / - NULLIF ( + 59, - 81 ) + + COALESCE ( - 47 + 97 * CASE 51 * 39 WHEN 39 * 82 THEN NULL WHEN - COALESCE ( ( MIN ( DISTINCT - 91 ) ), 95 + + 95, + ( + COUNT ( ALL 39 ) ) * 73 - 42 ) THEN 54 WHEN + COALESCE ( 0, + 80 ) - + 15 THEN NULL WHEN 10 THEN + 75 ELSE 66 END, + 61 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1620
SELECT DISTINCT ( COALESCE ( ( - AVG ( + CAST( NULL AS SIGNED ) ) ), 40 * - + 13 + 69 + - CASE 73 WHEN + CASE - COUNT( * ) WHEN COUNT( * ) + - 1 THEN - + 56 WHEN CAST( + 89 AS SIGNED ) THEN NULL ELSE - 29 * 17 END - 85 THEN 24 + - 20 ELSE NULL END * - 22 ) ) * - ( 53 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1620
SELECT DISTINCT ( COALESCE ( ( - AVG ( + CAST ( NULL AS INTEGER ) ) ), 40 * - + 13 + 69 + - CASE 73 WHEN + CASE - COUNT ( * ) WHEN COUNT ( * ) + - 1 THEN - + 56 WHEN CAST ( + 89 AS INTEGER ) THEN NULL ELSE - 29 * 17 END - 85 THEN 24 + - 20 ELSE NULL END * - 22 ) ) * - ( 53 ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1621
SELECT + CAST ( NULL AS INTEGER ) + 17 / + + 11 AS col1
----
NULL

query I rowsort
SELECT + 63 * 66 AS col1
----
4158

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1624
SELECT ALL - + COUNT( * ) AS col2, + 94 * 56 * + + 26 AS col2
----
-1
136864

skipif mysql # not compatible
query II rowsort label-1624
SELECT ALL - + COUNT ( * ) AS col2, + 94 * 56 * + + 26 AS col2
----
-1
136864

onlyif mysql # aggregate syntax: 
query II rowsort label-1625
SELECT + - COALESCE ( + + 75, 3 - - 81 - + MIN( DISTINCT + NULLIF ( + 26, 73 ) ) * - 37 ) AS col1, 35 AS col2
----
-75
35

skipif mysql # not compatible
query II rowsort label-1625
SELECT + - COALESCE ( + + 75, 3 - - 81 - + MIN ( DISTINCT + NULLIF ( + 26, 73 ) ) * - 37 ) AS col1, 35 AS col2
----
-75
35

query II rowsort
SELECT + 9 col1, + 86 * - 23
----
9
-1978

query II rowsort
SELECT + - 7 AS col0, 20
----
-7
20

query II rowsort
SELECT DISTINCT + 68 + + 95 - + ( - 82 ) AS col1, + 51 * + 77 col2
----
245
3927

query I rowsort
SELECT ALL + + 19 + + - 15
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1630
SELECT - 77 * - 32 * + + COUNT( * ) AS col2
----
2464

skipif mysql # not compatible
query I rowsort label-1630
SELECT - 77 * - 32 * + + COUNT ( * ) AS col2
----
2464

query I rowsort
SELECT ALL + 63 + - 15 AS col2
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-1632
SELECT ALL - COUNT( * ) + - - 91 + - ( - 90 ) + + ( + 28 ) + - 63 AS col2, - 63 AS col1
----
145
-63

skipif mysql # not compatible
query II rowsort label-1632
SELECT ALL - COUNT ( * ) + - - 91 + - ( - 90 ) + + ( + 28 ) + - 63 AS col2, - 63 AS col1
----
145
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-1633
SELECT - ( - 68 ) - - 17 + + ( - 40 ) DIV + + 19 col1
----
83

skipif mysql # not compatible
query I rowsort label-1633
SELECT - ( - 68 ) - - 17 + + ( - 40 ) / + + 19 col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1634
SELECT ALL 65 + MIN( DISTINCT + 58 ) AS col1
----
123

skipif mysql # not compatible
query I rowsort label-1634
SELECT ALL 65 + MIN ( DISTINCT + 58 ) AS col1
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-1635
SELECT ALL + 0 DIV - 57
----
0

skipif mysql # not compatible
query I rowsort label-1635
SELECT ALL + 0 / - 57
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1636
SELECT - 29 DIV + COUNT( + - 56 )
----
-29

skipif mysql # not compatible
query I rowsort label-1636
SELECT - 29 / + COUNT ( + - 56 )
----
-29

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

skipif mysql # not compatible
query I rowsort label-1637
SELECT DISTINCT + COUNT ( * ) / 69
----
0

query I rowsort
SELECT - 75 * + - 27 AS col1
----
2025

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

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

query I rowsort
SELECT - 93 - + 53
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT - MIN( ALL + 84 ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-1641
SELECT - MIN ( ALL + 84 ) AS col1
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1642
SELECT ALL + CAST( NULL AS SIGNED ) * NULLIF ( - 86, - NULLIF ( - 90, + - COUNT( + 16 ) + COUNT( * ) * + + 63 * + 30 ) ) AS col1, CAST( NULL AS SIGNED ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1642
SELECT ALL + CAST ( NULL AS INTEGER ) * NULLIF ( - 86, - NULLIF ( - 90, + - COUNT ( + 16 ) + COUNT ( * ) * + + 63 * + 30 ) ) AS col1, CAST ( NULL AS INTEGER ) AS col2
----
NULL
NULL

query II rowsort
SELECT - - ( + 66 ) AS col0, 43 * - + 76 AS col2
----
66
-3268

query I rowsort
SELECT ALL + - 55 * + - 29 AS col2
----
1595

onlyif mysql # DIV for integer division: 
query I rowsort label-1645
SELECT - - 85 + 25 DIV + + 60 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-1645
SELECT - - 85 + 25 / + + 60 AS col1
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1646
SELECT - 47 DIV + 20 DIV + COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1646
SELECT - 47 / + 20 / + COUNT ( * ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1647
SELECT + ( - 58 ) * SUM( DISTINCT 40 ) AS col1
----
-2320

skipif mysql # not compatible
query I rowsort label-1647
SELECT + ( - 58 ) * SUM ( DISTINCT 40 ) AS col1
----
-2320

onlyif mysql # DIV for integer division: 
query I rowsort label-1648
SELECT ALL + 8 DIV + + 55
----
0

skipif mysql # not compatible
query I rowsort label-1648
SELECT ALL + 8 / + + 55
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1649
SELECT DISTINCT CASE + - 74 WHEN - 66 * + 38 + + + 11 THEN - CASE - - ( - 9 ) WHEN 67 + + CAST( NULL AS SIGNED ) * 5 THEN NULL WHEN 89 + - ( - 62 ) THEN + + AVG ( DISTINCT + 88 ) ELSE NULL END END * - + COUNT( * ) + 58 * 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1649
SELECT DISTINCT CASE + - 74 WHEN - 66 * + 38 + + + 11 THEN - CASE - - ( - 9 ) WHEN 67 + + CAST ( NULL AS INTEGER ) * 5 THEN NULL WHEN 89 + - ( - 62 ) THEN + + AVG ( DISTINCT + 88 ) ELSE NULL END END * - + COUNT ( * ) + 58 * 26 AS col2
----
NULL

query I rowsort
SELECT + NULLIF ( 89, + 86 )
----
89

query I rowsort
SELECT + 2 + + - 25 AS col0
----
-23

query I rowsort
SELECT ALL - 78 * - + 14 + - NULLIF ( 35, + - ( 6 ) + ( - 81 ) ) * - - 3 AS col1
----
987

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1653
SELECT ALL - CAST( NULL AS DECIMAL ) * COALESCE ( - + 40, + 23, - 69 * 72 ) + 56 + 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1653
SELECT ALL - CAST ( NULL AS REAL ) * COALESCE ( - + 40, + 23, - 69 * 72 ) + 56 + 87 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1654
SELECT ALL + + 61 * + 12 - - 46 + + + NULLIF ( + AVG ( 54 ), - 30 ) + + + CAST( NULL AS SIGNED ) / - 64 + 96 + 49 - - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1654
SELECT ALL + + 61 * + 12 - - 46 + + + NULLIF ( + AVG ( 54 ), - 30 ) + + + CAST ( NULL AS INTEGER ) / - 64 + 96 + 49 - - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - 78 - - + 9
----
-69

query I rowsort
SELECT ALL + - ( + + 14 ) AS col0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1657
SELECT ALL 39 * - MAX( ALL + + 94 ) / - 5 + - - MIN( 2 ) * + ( + ( 97 ) ) + - + 62 + - 17 + + 67 * + + 14 * + 71 - + CASE CAST( NULL AS SIGNED ) WHEN - + CASE - - 89 WHEN 0 THEN - 28 WHEN 18 * - 63 + - COALESCE ( ( 56 ), + 28 / + 91 ) * 10 THEN 80 * CASE ( ( 26 ) ) WHEN + ( 67 ) THEN COUNT( DISTINCT - 23 ) * - 7 ELSE + 15 * 14 END ELSE NULL END THEN NULL WHEN - 23 THEN 63 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1657
SELECT ALL 39 * - MAX ( ALL + + 94 ) / - 5 + - - MIN ( 2 ) * + ( + ( 97 ) ) + - + 62 + - 17 + + 67 * + + 14 * + 71 - + CASE CAST ( NULL AS INTEGER ) WHEN - + CASE - - 89 WHEN 0 THEN - 28 WHEN 18 * - 63 + - COALESCE ( ( 56 ), + 28 / + 91 ) * 10 THEN 80 * CASE ( ( 26 ) ) WHEN + ( 67 ) THEN COUNT ( DISTINCT - 23 ) * - 7 ELSE + 15 * 14 END ELSE NULL END THEN NULL WHEN - 23 THEN 63 END
----
NULL

query I rowsort
SELECT ALL + 61 * 88 + + + 60 col1
----
5428

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1659
SELECT NULLIF ( + 66, 83 / + 97 ) AS col1, CAST( + + COUNT( * ) AS SIGNED ) AS col1, 67 col2
----
66
1
67

skipif mysql # not compatible
query III rowsort label-1659
SELECT NULLIF ( + 66, 83 / + 97 ) AS col1, CAST ( + + COUNT ( * ) AS INTEGER ) AS col1, 67 col2
----
66
1
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1660
SELECT CASE - AVG ( DISTINCT 23 ) WHEN + 58 / 46 + - 83 THEN + - 48 + + COUNT( * ) + - - CASE + - CASE CAST( NULL AS SIGNED ) WHEN COUNT( + + ( - 57 ) ) / + 76 / - COUNT( 35 ) / + 20 + 25 THEN COUNT( * ) WHEN COUNT( * ) + + 8 THEN NULL END WHEN MIN( ALL 82 ) THEN + CASE 19 WHEN ( COALESCE ( 89, 39 + 92 / COUNT( * ) ) ) + 22 THEN 28 + + ( - CAST( NULL AS SIGNED ) + + CAST( 98 - + 88 AS SIGNED ) ) * 89 WHEN 42 * 32 THEN + CAST( NULL AS SIGNED ) + AVG ( ALL 37 ) END ELSE NULL END * + 70 * + 69 WHEN COUNT( * ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1660
SELECT CASE - AVG ( DISTINCT 23 ) WHEN + 58 / 46 + - 83 THEN + - 48 + + COUNT ( * ) + - - CASE + - CASE CAST ( NULL AS INTEGER ) WHEN COUNT ( + + ( - 57 ) ) / + 76 / - COUNT ( 35 ) / + 20 + 25 THEN COUNT ( * ) WHEN COUNT ( * ) + + 8 THEN NULL END WHEN MIN ( ALL 82 ) THEN + CASE 19 WHEN ( COALESCE ( 89, 39 + 92 / COUNT ( * ) ) ) + 22 THEN 28 + + ( - CAST ( NULL AS INTEGER ) + + CAST ( 98 - + 88 AS INTEGER ) ) * 89 WHEN 42 * 32 THEN + CAST ( NULL AS INTEGER ) + AVG ( ALL 37 ) END ELSE NULL END * + 70 * + 69 WHEN COUNT ( * ) THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 45 * - 94 + - 91 - + ( - ( 5 ) ) + - 99
----
-4415

onlyif mysql # aggregate syntax: 
query I rowsort label-1662
SELECT ALL - COUNT( * ) * + + 17 * 84 - 58 + + + 31
----
-1455

skipif mysql # not compatible
query I rowsort label-1662
SELECT ALL - COUNT ( * ) * + + 17 * 84 - 58 + + + 31
----
-1455

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

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

query II rowsort
SELECT ALL 25 AS col2, - 12 * + + 84 AS col2
----
25
-1008

query I rowsort
SELECT 32 * 78 - - 93 * + 82
----
10122

query I rowsort
SELECT + 88 * + 79 AS col2
----
6952

onlyif mysql # DIV for integer division: 
query I rowsort label-1667
SELECT + 99 + 34 - + - 1 + 97 DIV 11 AS col1
----
142

skipif mysql # not compatible
query I rowsort label-1667
SELECT + 99 + 34 - + - 1 + 97 / 11 AS col1
----
142

query II rowsort
SELECT ALL ( 56 ) - + 28, 51 AS col1
----
28
51

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

query I rowsort
SELECT + 93 + - 56 AS col1
----
37

query I rowsort
SELECT + 52 * - NULLIF ( 93, - ( 2 ) )
----
-4836

query II rowsort
SELECT + 69 + 66 * + 8, 8 AS col2
----
597
8

query I rowsort
SELECT DISTINCT 10 * + ( - + 42 ) AS col2
----
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT - 22 + + - 88 + - COUNT( * ) * ( - 85 ) * MIN( DISTINCT - 5 ) AS col2
----
-535

skipif mysql # not compatible
query I rowsort label-1674
SELECT - 22 + + - 88 + - COUNT ( * ) * ( - 85 ) * MIN ( DISTINCT - 5 ) AS col2
----
-535

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1676
SELECT - COUNT( + - 69 ) + + - 65 * - 98 * + 21 + - COUNT( * ) DIV - 30 AS col0
----
133769

skipif mysql # not compatible
query I rowsort label-1676
SELECT - COUNT ( + - 69 ) + + - 65 * - 98 * + 21 + - COUNT ( * ) / - 30 AS col0
----
133769

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT + ( + 51 ) * + ( + 27 ) + - COUNT( * ) * - MAX( - - 72 ) * - 46
----
-1935

skipif mysql # not compatible
query I rowsort label-1678
SELECT + ( + 51 ) * + ( + 27 ) + - COUNT ( * ) * - MAX ( - - 72 ) * - 46
----
-1935

query I rowsort
SELECT - 92 + - 85
----
-177

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

skipif mysql # not compatible
query I rowsort label-1680
SELECT ALL - COUNT ( * ) / 26 col2
----
0

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

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

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

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

query I rowsort
SELECT ALL + - 52 + 83 AS col0
----
31

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1686
SELECT ALL 77 DIV 6 + 59 + + COUNT( * ) * - 13
----
58

skipif mysql # not compatible
query I rowsort label-1686
SELECT ALL 77 / 6 + 59 + + COUNT ( * ) * - 13
----
58

onlyif mysql # aggregate syntax: 
query III rowsort label-1687
SELECT ALL - 67 AS col0, CASE 25 WHEN - + 18 THEN + 17 WHEN + 37 THEN NULL END, + + COUNT( * ) * - MAX( - 40 ) + - COUNT( * ) - - 27 col1
----
-67
NULL
66

skipif mysql # not compatible
query III rowsort label-1687
SELECT ALL - 67 AS col0, CASE 25 WHEN - + 18 THEN + 17 WHEN + 37 THEN NULL END, + + COUNT ( * ) * - MAX ( - 40 ) + - COUNT ( * ) - - 27 col1
----
-67
NULL
66

query II rowsort
SELECT + 5 AS col2, - 67
----
5
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1689
SELECT ALL - + 72 + - 79 * - ( CASE WHEN - 38 = - CAST( - - COUNT( * ) AS SIGNED ) * 19 THEN NULL WHEN NOT ( NULL ) <> + - 44 / ( + - ( + 49 ) ) THEN NULL ELSE - + 34 + + 70 END ) AS col1
----
2772

skipif mysql # not compatible
query I rowsort label-1689
SELECT ALL - + 72 + - 79 * - ( CASE WHEN - 38 = - CAST ( - - COUNT ( * ) AS INTEGER ) * 19 THEN NULL WHEN NOT ( NULL ) <> + - 44 / ( + - ( + 49 ) ) THEN NULL ELSE - + 34 + + 70 END ) AS col1
----
2772

query I rowsort
SELECT CASE 20 WHEN + 20 + 41 THEN 88 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1691
SELECT 4 DIV 15 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1691
SELECT 4 / 15 AS col2
----
0

query I rowsort
SELECT ALL 47 * + 85 AS col1
----
3995

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1694
SELECT DISTINCT 65 * + MIN( CASE + + 34 WHEN - CAST( NULL AS SIGNED ) THEN - - 34 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1694
SELECT DISTINCT 65 * + MIN ( CASE + + 34 WHEN - CAST ( NULL AS INTEGER ) THEN - - 34 END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1695
SELECT DISTINCT - COALESCE ( + MIN( ALL + - 65 ), COUNT( * ) ) * + - 53 - 26 * + - 84 * + + COUNT( * ) - + - ( + 51 ) DIV - 64 + + ( 71 ) + + COUNT( * ) * 37 + + + 87 AS col2
----
-1066

skipif mysql # not compatible
query I rowsort label-1695
SELECT DISTINCT - COALESCE ( + MIN ( ALL + - 65 ), COUNT ( * ) ) * + - 53 - 26 * + - 84 * + + COUNT ( * ) - + - ( + 51 ) / - 64 + + ( 71 ) + + COUNT ( * ) * 37 + + + 87 AS col2
----
-1066

query I rowsort
SELECT 1 * - 23 * 92
----
-2116

query I rowsort
SELECT ALL 11 * 82
----
902

onlyif mysql # aggregate syntax: 
query II rowsort label-1698
SELECT ALL ( NULLIF ( + + MIN( + ( - 38 ) ), 32 + + 26 ) ) * 40 * - COUNT( * ) AS col1, COUNT( * ) + 56 + + NULLIF ( 61, + ( + 25 ) ) + + - COUNT( * ) * + 42 - - 56 * MIN( 20 ) + + ( - ( + 87 ) ) AS col1
----
1520
1109

skipif mysql # not compatible
query II rowsort label-1698
SELECT ALL ( NULLIF ( + + MIN ( + ( - 38 ) ), 32 + + 26 ) ) * 40 * - COUNT ( * ) AS col1, COUNT ( * ) + 56 + + NULLIF ( 61, + ( + 25 ) ) + + - COUNT ( * ) * + 42 - - 56 * MIN ( 20 ) + + ( - ( + 87 ) ) AS col1
----
1520
1109

onlyif mysql # DIV for integer division: 
query I rowsort label-1699
SELECT ( + 33 ) + + ( + - COALESCE ( CASE + 75 WHEN + + 14 THEN NULL ELSE + 2 DIV 91 END, - 38 DIV + 37 ) ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-1699
SELECT ( + 33 ) + + ( + - COALESCE ( CASE + 75 WHEN + + 14 THEN NULL ELSE + 2 / 91 END, - 38 / + 37 ) ) AS col1
----
33

query I rowsort
SELECT 55 * - 76
----
-4180

onlyif mysql # aggregate syntax: 
query I rowsort label-1701
SELECT MAX( ALL ( - 42 ) ) * - 19 * - 51 * + ( - - 14 )
----
-569772

skipif mysql # not compatible
query I rowsort label-1701
SELECT MAX ( ALL ( - 42 ) ) * - 19 * - 51 * + ( - - 14 )
----
-569772

query I rowsort
SELECT 36 * + ( + + 78 ) AS col2
----
2808

query I rowsort
SELECT 23 - - 66 col2
----
89

query I rowsort
SELECT ALL + 83 + 71
----
154

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1707
SELECT 16 * - NULLIF ( COUNT( * ), - CAST( NULL AS SIGNED ) + - 77 + 96 * + 69 * + COALESCE ( + 72, - + SUM( DISTINCT - 24 ) * + ( + 4 ), + COUNT( * ) / + 3 + 63 ) + - - 46 / - 17 + COALESCE ( - 40, 45 * 32 ) )
----
-16

skipif mysql # not compatible
query I rowsort label-1707
SELECT 16 * - NULLIF ( COUNT ( * ), - CAST ( NULL AS INTEGER ) + - 77 + 96 * + 69 * + COALESCE ( + 72, - + SUM ( DISTINCT - 24 ) * + ( + 4 ), + COUNT ( * ) / + 3 + 63 ) + - - 46 / - 17 + COALESCE ( - 40, 45 * 32 ) )
----
-16

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

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

query I rowsort
SELECT DISTINCT ( - 96 ) * + - 19 + + 68 - - 77 * + 22 AS col0
----
3586

query II rowsort
SELECT ALL 53 + + 89 AS col2, 19
----
142
19

query I rowsort
SELECT 41 + 6
----
47

query I rowsort
SELECT ALL + 56 + - 34 AS col2
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1713
SELECT CAST( + CASE + COALESCE ( - COUNT( * ), 99 ) WHEN 89 THEN - 7 WHEN 10 * COUNT( * ) * - + 89 * 64 * 81 THEN + - 95 END AS SIGNED ) * - 69 / + 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1713
SELECT CAST ( + CASE + COALESCE ( - COUNT ( * ), 99 ) WHEN 89 THEN - 7 WHEN 10 * COUNT ( * ) * - + 89 * 64 * 81 THEN + - 95 END AS INTEGER ) * - 69 / + 82 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT NULLIF ( MAX( + 50 ), - + 47 ) * + 50 + + 94
----
2594

skipif mysql # not compatible
query I rowsort label-1714
SELECT NULLIF ( MAX ( + 50 ), - + 47 ) * + 50 + + 94
----
2594

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT + 42 * - - 61 * MAX( + 69 ) AS col2
----
176778

skipif mysql # not compatible
query I rowsort label-1715
SELECT + 42 * - - 61 * MAX ( + 69 ) AS col2
----
176778

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT DISTINCT - CASE - ( 8 ) WHEN + COUNT( * ) THEN - 30 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1716
SELECT DISTINCT - CASE - ( 8 ) WHEN + COUNT ( * ) THEN - 30 END
----
NULL

query I rowsort
SELECT 4 + + + 99
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-1718
SELECT ALL - CASE 45 WHEN + 47 * - 48 THEN + - 49 WHEN - 93 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1718
SELECT ALL - CASE 45 WHEN + 47 * - 48 THEN + - 49 WHEN - 93 THEN - COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL - 13 - + 4
----
-17

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

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

query I rowsort
SELECT DISTINCT - 32 * - - 56
----
-1792

query I rowsort
SELECT 46 * - - 42
----
1932

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

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

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

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

query I rowsort
SELECT 51 * + 69 + - 13 * + + 5 * 15 - 76 AS col0
----
2468

query I rowsort
SELECT 36 * 67 col2
----
2412

query I rowsort
SELECT ALL + 42 + + + 80 AS col1
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT ALL 10 + ( 9 ) + + NULLIF ( - COUNT( * ), + 98 ) - - 27 + + 72 + + 8 + 25 + - - 2 * + + 18 * - ( + + 78 ) * COUNT( * ) AS col0
----
-2658

skipif mysql # not compatible
query I rowsort label-1728
SELECT ALL 10 + ( 9 ) + + NULLIF ( - COUNT ( * ), + 98 ) - - 27 + + 72 + + 8 + 25 + - - 2 * + + 18 * - ( + + 78 ) * COUNT ( * ) AS col0
----
-2658

query I rowsort
SELECT 61 - + + 73 col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT DISTINCT - 70 * + SUM( ALL + 26 ) AS col2
----
-1820

skipif mysql # not compatible
query I rowsort label-1730
SELECT DISTINCT - 70 * + SUM ( ALL + 26 ) AS col2
----
-1820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1731
SELECT ALL - 3 * + 80 + - 50 * NULLIF ( + COALESCE ( - + 20, + - 33 + - 30 + + + 39 - NULLIF ( + 54, + ( + 55 ) * - 58 / + 43 * + 21 - - - COUNT( * ) * - - 37 ) * - 44, - COUNT( * ) * CAST( 14 + - 76 AS SIGNED ) ), - 20 ) / + 78 + - ( 96 + ( - COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1731
SELECT ALL - 3 * + 80 + - 50 * NULLIF ( + COALESCE ( - + 20, + - 33 + - 30 + + + 39 - NULLIF ( + 54, + ( + 55 ) * - 58 / + 43 * + 21 - - - COUNT ( * ) * - - 37 ) * - 44, - COUNT ( * ) * CAST ( 14 + - 76 AS INTEGER ) ), - 20 ) / + 78 + - ( 96 + ( - COUNT ( * ) ) )
----
NULL

query I rowsort
SELECT DISTINCT 40 + 34 AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT 92 + + + NULLIF ( + + COUNT( * ), - 57 * ( COUNT( * ) ) ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-1733
SELECT 92 + + + NULLIF ( + + COUNT ( * ), - 57 * ( COUNT ( * ) ) ) AS col2
----
93

query I rowsort
SELECT 38 + - 37 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT 82 - + SUM( ALL - + 7 )
----
89

skipif mysql # not compatible
query I rowsort label-1735
SELECT 82 - + SUM ( ALL - + 7 )
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-1736
SELECT - ( - 90 ) + 10, 39 * + - SUM( DISTINCT 60 ) * 54 * + + 61 + - + 5 AS col0
----
100
-7707965

skipif mysql # not compatible
query II rowsort label-1736
SELECT - ( - 90 ) + 10, 39 * + - SUM ( DISTINCT 60 ) * 54 * + + 61 + - + 5 AS col0
----
100
-7707965

query I rowsort
SELECT ALL 80 + 76
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT + 54 + - MAX( DISTINCT 2 ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-1738
SELECT + 54 + - MAX ( DISTINCT 2 ) AS col1
----
52

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1740
SELECT DISTINCT + 29 * - - 50 * 37 * + - 14 - + 81 * - SUM( DISTINCT + - 7 ) AS col1
----
-751667

skipif mysql # not compatible
query I rowsort label-1740
SELECT DISTINCT + 29 * - - 50 * 37 * + - 14 - + 81 * - SUM ( DISTINCT + - 7 ) AS col1
----
-751667

query I rowsort
SELECT ALL - 71 + 80 + ( + 81 ) AS col1
----
90

query I rowsort
SELECT DISTINCT 69 * + 29 AS col0
----
2001

query I rowsort
SELECT - + 41 + - 24
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1744
SELECT ALL + CAST( NULL AS SIGNED ) * - 81 AS col1
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1745
SELECT + MAX( + - 79 ) DIV + 52 col2, 49 - - - 99 * + 65
----
-1
-6386

skipif mysql # not compatible
query II rowsort label-1745
SELECT + MAX ( + - 79 ) / + 52 col2, 49 - - - 99 * + 65
----
-1
-6386

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT NULLIF ( - COUNT( * ), - 25 * - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1746
SELECT NULLIF ( - COUNT ( * ), - 25 * - COUNT ( * ) ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1747
SELECT + CASE - - 27 WHEN - CAST( - - 6 AS SIGNED ) * - 39 + - ( + - 46 ) THEN + 90 + 67 WHEN - AVG ( ALL + 88 ) * + 92 THEN - 88 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1747
SELECT + CASE - - 27 WHEN - CAST ( - - 6 AS INTEGER ) * - 39 + - ( + - 46 ) THEN + 90 + 67 WHEN - AVG ( ALL + 88 ) * + 92 THEN - 88 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 1 * ( + + 55 ) * 91 AS col0
----
5005

onlyif mysql # DIV for integer division: 
query I rowsort label-1749
SELECT + 12 DIV 58 * - 27
----
0

skipif mysql # not compatible
query I rowsort label-1749
SELECT + 12 / 58 * - 27
----
0

query I rowsort
SELECT NULLIF ( - 3, + 9 * + 40 + - 42 + + 6 + 56 + - 13 * - 32 - - - 56 + 96 * + - 10 )
----
-3

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

skipif mysql # not compatible
query I rowsort label-1751
SELECT + 59 * + ( - COUNT ( ALL - - 58 ) ) AS col1
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-1752
SELECT + 77 DIV 50 col2
----
1

skipif mysql # not compatible
query I rowsort label-1752
SELECT + 77 / 50 col2
----
1

query I rowsort
SELECT - 59 * 40
----
-2360

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT 73 * 59 + + + COUNT( * ) AS col1
----
4308

skipif mysql # not compatible
query I rowsort label-1754
SELECT 73 * 59 + + + COUNT ( * ) AS col1
----
4308

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1755
SELECT ALL COALESCE ( - 23, 16 + - + 89, + 6 + - 22 * 13 DIV COUNT( * ) * - 41 + + 81 ) DIV + + COUNT( * ) col2
----
-23

skipif mysql # not compatible
query I rowsort label-1755
SELECT ALL COALESCE ( - 23, 16 + - + 89, + 6 + - 22 * 13 / COUNT ( * ) * - 41 + + 81 ) / + + COUNT ( * ) col2
----
-23

query II rowsort
SELECT DISTINCT + 68 AS col2, + 54 - - NULLIF ( - 66, - 84 ) * + - 5 * + 79 * - - NULLIF ( + 59, 46 ) - - 77 AS col1
----
68
1538261

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

query I rowsort
SELECT ALL - 83 * 99
----
-8217

query I rowsort
SELECT - 23 * - 67
----
1541

query I rowsort
SELECT ALL - 42 * 22 + + 7 + 8
----
-909

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT ALL + 59 * + CASE + 57 WHEN 76 / + 99 + + 17 * + + 47 THEN NULL ELSE + COUNT( * ) END + - 27 - + - 99 AS col0
----
131

skipif mysql # not compatible
query I rowsort label-1761
SELECT ALL + 59 * + CASE + 57 WHEN 76 / + 99 + + 17 * + + 47 THEN NULL ELSE + COUNT ( * ) END + - 27 - + - 99 AS col0
----
131

query II rowsort
SELECT + 87 col1, + 53 + - + 62
----
87
-9

query I rowsort
SELECT ALL 81 * - 76 + - + 64 AS col1
----
-6220

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

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

query I rowsort
SELECT ALL - 83 * - 35
----
2905

query I rowsort
SELECT - 87 * - 28 * + 39 AS col1
----
95004

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT ( - 0 ) * 44 * COUNT( * ) + 83 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-1767
SELECT ( - 0 ) * 44 * COUNT ( * ) + 83 AS col1
----
83

query II rowsort
SELECT + 98, - 81 AS col1
----
98
-81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT - 12 * 29 + ( COUNT( * ) ) col2
----
-347

skipif mysql # not compatible
query I rowsort label-1770
SELECT - 12 * 29 + ( COUNT ( * ) ) col2
----
-347

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

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

query I rowsort
SELECT DISTINCT 87 * - 58
----
-5046

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1773
SELECT ALL - COALESCE ( COUNT( * ), 73 + CAST( CASE + 73 WHEN 75 / + COUNT( * ) THEN - - COUNT( * ) + 25 ELSE - + 67 END AS SIGNED ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1773
SELECT ALL - COALESCE ( COUNT ( * ), 73 + CAST ( CASE + 73 WHEN 75 / + COUNT ( * ) THEN - - COUNT ( * ) + 25 ELSE - + 67 END AS INTEGER ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query III rowsort label-1774
SELECT - 73 col1, - 75 AS col1, - 6 + + 58 + - 66 * + COUNT( * ) * + 1 * 86
----
-73
-75
-5624

skipif mysql # not compatible
query III rowsort label-1774
SELECT - 73 col1, - 75 AS col1, - 6 + + 58 + - 66 * + COUNT ( * ) * + 1 * 86
----
-73
-75
-5624

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT ALL + 31 * - COUNT( * ) * + - 96 * 69 AS col0
----
205344

skipif mysql # not compatible
query I rowsort label-1775
SELECT ALL + 31 * - COUNT ( * ) * + - 96 * 69 AS col0
----
205344

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

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

query I rowsort
SELECT ALL 58 * - 87
----
-5046

onlyif mysql # aggregate syntax: 
query II rowsort label-1778
SELECT - NULLIF ( + 5, 5 * 34 - + - NULLIF ( 58, - + 59 / + - COUNT( * ) + + COUNT( * ) ) + - 69 + MIN( ALL - - 94 ) ) - COUNT( * ) + + - 2, 85 AS col0
----
-8
85

skipif mysql # not compatible
query II rowsort label-1778
SELECT - NULLIF ( + 5, 5 * 34 - + - NULLIF ( 58, - + 59 / + - COUNT ( * ) + + COUNT ( * ) ) + - 69 + MIN ( ALL - - 94 ) ) - COUNT ( * ) + + - 2, 85 AS col0
----
-8
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1779
SELECT NULLIF ( 49, SUM( - 21 ) ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-1779
SELECT NULLIF ( 49, SUM ( - 21 ) ) AS col2
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1780
SELECT DISTINCT - CAST( + 25 AS SIGNED )
----
-25

skipif mysql # not compatible
query I rowsort label-1780
SELECT DISTINCT - CAST ( + 25 AS INTEGER )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT ALL - SUM( - - 51 ) - - 22 * 23 col0
----
455

skipif mysql # not compatible
query I rowsort label-1781
SELECT ALL - SUM ( - - 51 ) - - 22 * 23 col0
----
455

query I rowsort
SELECT + - CASE - + 6 WHEN - 21 THEN ( - 39 ) * 26 WHEN + - 23 THEN NULL END * 16
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1783
SELECT 85 AS col2, + NULLIF ( - 19, 38 + - CASE 18 WHEN ( + - 99 ) + - 35 THEN - MIN( + 99 ) END * + 9 + 0 ) * - 91
----
85
1729

skipif mysql # not compatible
query II rowsort label-1783
SELECT 85 AS col2, + NULLIF ( - 19, 38 + - CASE 18 WHEN ( + - 99 ) + - 35 THEN - MIN ( + 99 ) END * + 9 + 0 ) * - 91
----
85
1729

query I rowsort
SELECT - 59 + + 64 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT + COUNT( * ) * - NULLIF ( MAX( - 61 ), - + 62 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-1785
SELECT + COUNT ( * ) * - NULLIF ( MAX ( - 61 ), - + 62 ) AS col0
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1786
SELECT ALL COALESCE ( + + NULLIF ( + - 39, + + 28 * NULLIF ( - COALESCE ( + 56, 99, - + COUNT( * ), - 6 * 54 * - - 39 + ( - + MIN( ALL 36 ) ) + + COUNT( + 23 ) ), - 61 / + 26 + - + 19 ) + - + 64 - - 36 + SUM( - CAST( NULL AS SIGNED ) ) ), ( + 1 ) ) * + 2
----
-78

skipif mysql # not compatible
query I rowsort label-1786
SELECT ALL COALESCE ( + + NULLIF ( + - 39, + + 28 * NULLIF ( - COALESCE ( + 56, 99, - + COUNT ( * ), - 6 * 54 * - - 39 + ( - + MIN ( ALL 36 ) ) + + COUNT ( + 23 ) ), - 61 / + 26 + - + 19 ) + - + 64 - - 36 + SUM ( - CAST ( NULL AS INTEGER ) ) ), ( + 1 ) ) * + 2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT 87 * - COUNT( * ) * + 57 * + - COUNT( * ) + 85 AS col1
----
5044

skipif mysql # not compatible
query I rowsort label-1787
SELECT 87 * - COUNT ( * ) * + 57 * + - COUNT ( * ) + 85 AS col1
----
5044

onlyif mysql # DIV for integer division: 
query I rowsort label-1788
SELECT ALL 3 DIV + 20 * + 77 DIV 71 + + 31 + + - 13 + - 49 - + 93 AS col2
----
-124

skipif mysql # not compatible
query I rowsort label-1788
SELECT ALL 3 / + 20 * + 77 / 71 + + 31 + + - 13 + - 49 - + 93 AS col2
----
-124

query I rowsort
SELECT DISTINCT ( + 69 ) * + 90 col0
----
6210

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1790
SELECT + 69 * 56 AS col1, CAST( NULL AS SIGNED ) * 39
----
3864
NULL

skipif mysql # not compatible
query II rowsort label-1790
SELECT + 69 * 56 AS col1, CAST ( NULL AS INTEGER ) * 39
----
3864
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1791
SELECT COUNT( * ) * - 81 + + 50 DIV - ( - + 51 ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-1791
SELECT COUNT ( * ) * - 81 + + 50 / - ( - + 51 ) AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT ALL ( - 10 ) * - 43 + - MAX( DISTINCT + NULLIF ( 43, 98 + - + 45 ) ) + + 43 AS col1
----
430

skipif mysql # not compatible
query I rowsort label-1792
SELECT ALL ( - 10 ) * - 43 + - MAX ( DISTINCT + NULLIF ( 43, 98 + - + 45 ) ) + + 43 AS col1
----
430

query II rowsort
SELECT + 81 - - + 98 AS col2, - 19 col2
----
179
-19

query I rowsort
SELECT + COALESCE ( CASE + + ( - AVG ( ALL - 55 ) ) WHEN 72 / 61 THEN + 3 + 13 ELSE NULL END, + + 21 * - ( + + 54 ) + - 57 ) * + - 43 AS col0
----
51213

query II rowsort
SELECT ( 63 ) AS col2, 41 AS col2
----
63
41

query I rowsort
SELECT + ( + 33 ) + + - 27 AS col1
----
6

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1798
SELECT + CAST( - + 17 AS SIGNED ) AS col1, + ( - 11 ) + + + COUNT( ALL + - 28 ) AS col2
----
-17
-10

skipif mysql # not compatible
query II rowsort label-1798
SELECT + CAST ( - + 17 AS INTEGER ) AS col1, + ( - 11 ) + + + COUNT ( ALL + - 28 ) AS col2
----
-17
-10

query I rowsort
SELECT - 45 - + 64 AS col1
----
-109

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1801
SELECT DISTINCT + - 76 * 1 DIV + + 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1801
SELECT DISTINCT + - 76 * 1 / + + 90 AS col1
----
0

query I rowsort
SELECT 78 + + 94 * 62
----
5906

query I rowsort
SELECT + 12 + + 99
----
111

query I rowsort
SELECT + 39 + - 6 + + 98
----
131

query I rowsort
SELECT 47 * + 47 AS col2
----
2209

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1806
SELECT DISTINCT + AVG ( + ( 59 ) ) * + 6 / - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1806
SELECT DISTINCT + AVG ( + ( 59 ) ) * + 6 / - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1807
SELECT 26 DIV 57 DIV - 47 col1
----
0

skipif mysql # not compatible
query I rowsort label-1807
SELECT 26 / 57 / - 47 col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1808
SELECT 49 + CAST( NULL AS DECIMAL ) * - - 15 * 87 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1808
SELECT 49 + CAST ( NULL AS REAL ) * - - 15 * 87 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1809
SELECT ALL - MIN( DISTINCT 66 ) + ( + - 71 ) * 53 + - 4 + - - 13 * + + 79 col0, 23 col1
----
-2806
23

skipif mysql # not compatible
query II rowsort label-1809
SELECT ALL - MIN ( DISTINCT 66 ) + ( + - 71 ) * 53 + - 4 + - - 13 * + + 79 col0, 23 col1
----
-2806
23

query I rowsort
SELECT DISTINCT + 0 * - 20 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1811
SELECT 40 AS col1, + 77 / + CASE 42 WHEN + CASE + 19 WHEN + 63 THEN + - ( ( - - 81 ) ) + + 48 * - 38 WHEN CAST( NULL AS SIGNED ) * - - COUNT( * ) - + 56 + - + COUNT( * ) * SUM( DISTINCT + ( + - 90 ) ) * COUNT( * ) * + CAST( COALESCE ( 10, 1 ) AS SIGNED ) * + 17 + 55 * + 74 THEN COUNT( * ) / - 18 + 64 / + 97 ELSE NULL END + 55 * + 64 THEN - 95 END AS col1
----
40
NULL

skipif mysql # not compatible
query II rowsort label-1811
SELECT 40 AS col1, + 77 / + CASE 42 WHEN + CASE + 19 WHEN + 63 THEN + - ( ( - - 81 ) ) + + 48 * - 38 WHEN CAST ( NULL AS INTEGER ) * - - COUNT ( * ) - + 56 + - + COUNT ( * ) * SUM ( DISTINCT + ( + - 90 ) ) * COUNT ( * ) * + CAST ( COALESCE ( 10, 1 ) AS INTEGER ) * + 17 + 55 * + 74 THEN COUNT ( * ) / - 18 + 64 / + 97 ELSE NULL END + 55 * + 64 THEN - 95 END AS col1
----
40
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT DISTINCT + COUNT( * ) + + COALESCE ( + - 75, 26 * 3 )
----
-74

skipif mysql # not compatible
query I rowsort label-1812
SELECT DISTINCT + COUNT ( * ) + + COALESCE ( + - 75, 26 * 3 )
----
-74

query I rowsort
SELECT ALL - 55 + - + 80
----
-135

query I rowsort
SELECT DISTINCT 35 + - COALESCE ( - 44, + 6, - 41 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT ALL 94 + - 96 + - COUNT( - 34 ) - ( - 32 ) * 63 + - COUNT( * ) - + ( + 91 ) col2
----
1921

skipif mysql # not compatible
query I rowsort label-1815
SELECT ALL 94 + - 96 + - COUNT ( - 34 ) - ( - 32 ) * 63 + - COUNT ( * ) - + ( + 91 ) col2
----
1921

query II rowsort
SELECT + 74 AS col0, 25 + - 34 AS col2
----
74
-9

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

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

query II rowsort
SELECT DISTINCT - 3, - 35 AS col0
----
-3
-35

query I rowsort
SELECT DISTINCT 99 + - 46 + - ( + 50 ) AS col2
----
3

query I rowsort
SELECT DISTINCT 93 * - ( 38 )
----
-3534

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1821
SELECT COUNT( * ) * - - 90 * - 14 DIV 2 + - MAX( DISTINCT + 43 ) * - 22 * 9, 79 AS col2
----
7884
79

skipif mysql # not compatible
query II rowsort label-1821
SELECT COUNT ( * ) * - - 90 * - 14 / 2 + - MAX ( DISTINCT + 43 ) * - 22 * 9, 79 AS col2
----
7884
79

onlyif mysql # aggregate syntax: 
query II rowsort label-1822
SELECT ( + - 77 ) - 16 AS col2, + COUNT( * ) AS col0
----
-93
1

skipif mysql # not compatible
query II rowsort label-1822
SELECT ( + - 77 ) - 16 AS col2, + COUNT ( * ) AS col0
----
-93
1

query II rowsort
SELECT 69 AS col2, + 50
----
69
50

query I rowsort
SELECT ALL 39 * 6
----
234

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1825
SELECT ALL 98 - + + 92 - - COUNT( * ) DIV 76 * - + COUNT( * ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-1825
SELECT ALL 98 - + + 92 - - COUNT ( * ) / 76 * - + COUNT ( * ) AS col2
----
6

query I rowsort
SELECT ALL - 75 - 59 AS col2
----
-134

query I rowsort
SELECT - 70 * + 68 + + 70 + + 63 + 1
----
-4626

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1828
SELECT - 34 - - 30 + - SUM( DISTINCT - 24 ), - MAX( ALL + 1 ) / + MIN( CAST( NULL AS SIGNED ) ) + + AVG ( + 55 ) - + - 50 AS col1
----
20
NULL

skipif mysql # not compatible
query II rowsort label-1828
SELECT - 34 - - 30 + - SUM ( DISTINCT - 24 ), - MAX ( ALL + 1 ) / + MIN ( CAST ( NULL AS INTEGER ) ) + + AVG ( + 55 ) - + - 50 AS col1
----
20
NULL

query II rowsort
SELECT + 23, + 97 AS col2
----
23
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1830
SELECT COALESCE ( 42, 31 * + 33, + + AVG ( DISTINCT 22 ) ) * COUNT( * ) DIV + CAST( 95 AS SIGNED ) + + - 0 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1830
SELECT COALESCE ( 42, 31 * + 33, + + AVG ( DISTINCT 22 ) ) * COUNT ( * ) / + CAST ( 95 AS INTEGER ) + + - 0 AS col1
----
0

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

query I rowsort
SELECT 85 * 62
----
5270

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1833
SELECT ALL 93 DIV COUNT( * ) - COUNT( * ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-1833
SELECT ALL 93 / COUNT ( * ) - COUNT ( * ) AS col0
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-1834
SELECT 15 DIV 45
----
0

skipif mysql # not compatible
query I rowsort label-1834
SELECT 15 / 45
----
0

query I rowsort
SELECT - 37 * - - 1 AS col1
----
-37

query II rowsort
SELECT 40 AS col1, + 44
----
40
44

query I rowsort
SELECT 20 - - - 93 * + + 23 AS col1
----
-2119

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1839
SELECT DISTINCT MIN( 3 ) + - 30 DIV + + COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-1839
SELECT DISTINCT MIN ( 3 ) + - 30 / + + COUNT ( * )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT DISTINCT - 42 + + COUNT( * ) * + 75
----
33

skipif mysql # not compatible
query I rowsort label-1840
SELECT DISTINCT - 42 + + COUNT ( * ) * + 75
----
33

query I rowsort
SELECT ALL - 24 + 83
----
59

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1843
SELECT 29 + - 85 * - - 30 + 5 + + - COALESCE ( 23, + - COALESCE ( - - 3, - 51 - ( + ( + COUNT( * ) ) ) ) * - + 7 - - 71 + + - 65 * - + 52 ) - + - COUNT( * ) * + 22 DIV 31 DIV 22 AS col0
----
-2539

skipif mysql # not compatible
query I rowsort label-1843
SELECT 29 + - 85 * - - 30 + 5 + + - COALESCE ( 23, + - COALESCE ( - - 3, - 51 - ( + ( + COUNT ( * ) ) ) ) * - + 7 - - 71 + + - 65 * - + 52 ) - + - COUNT ( * ) * + 22 / 31 / 22 AS col0
----
-2539

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT 38 + 88 * - - SUM( DISTINCT ( - 72 ) )
----
-6298

skipif mysql # not compatible
query I rowsort label-1844
SELECT 38 + 88 * - - SUM ( DISTINCT ( - 72 ) )
----
-6298

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1845
SELECT ALL 63 * + + CAST( + - MIN( DISTINCT - 83 ) AS SIGNED ) + - 87 AS col1
----
5142

skipif mysql # not compatible
query I rowsort label-1845
SELECT ALL 63 * + + CAST ( + - MIN ( DISTINCT - 83 ) AS INTEGER ) + - 87 AS col1
----
5142

query I rowsort
SELECT 45 * + 70
----
3150

onlyif mysql # aggregate syntax: 
query II rowsort label-1847
SELECT CASE WHEN NOT NULL IS NOT NULL THEN - SUM( ( - - 26 ) ) ELSE NULL END, + 57 AS col0
----
-26
57

skipif mysql # not compatible
query II rowsort label-1847
SELECT CASE WHEN NOT NULL IS NOT NULL THEN - SUM ( ( - - 26 ) ) ELSE NULL END, + 57 AS col0
----
-26
57

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1849
SELECT - ( + - ( + 61 ) ) + + - 2 + + COALESCE ( CAST( - - 84 AS SIGNED ), + 23 ) AS col1
----
143

skipif mysql # not compatible
query I rowsort label-1849
SELECT - ( + - ( + 61 ) ) + + - 2 + + COALESCE ( CAST ( - - 84 AS INTEGER ), + 23 ) AS col1
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1850
SELECT MIN( DISTINCT + 41 ), 21 * - 11 + - 16 * + 86 - + 13 + + + 90 + 52 * - 17 * CAST( NULL AS SIGNED ) AS col0
----
41
NULL

skipif mysql # not compatible
query II rowsort label-1850
SELECT MIN ( DISTINCT + 41 ), 21 * - 11 + - 16 * + 86 - + 13 + + + 90 + 52 * - 17 * CAST ( NULL AS INTEGER ) AS col0
----
41
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1851
SELECT + 68 * - CASE + 81 WHEN + 69 * + CAST( NULL AS SIGNED ) THEN 93 * 1 * - 44 * 77 ELSE - 87 + + + 65 END * - SUM( ALL ( + 45 ) ) DIV + ( + COUNT( * ) ) + + 25 * - - MAX( DISTINCT + - 7 ) - + ( + 57 ) AS col2
----
-67552

skipif mysql # not compatible
query I rowsort label-1851
SELECT + 68 * - CASE + 81 WHEN + 69 * + CAST ( NULL AS INTEGER ) THEN 93 * 1 * - 44 * 77 ELSE - 87 + + + 65 END * - SUM ( ALL ( + 45 ) ) / + ( + COUNT ( * ) ) + + 25 * - - MAX ( DISTINCT + - 7 ) - + ( + 57 ) AS col2
----
-67552

query I rowsort
SELECT - 80 * - 45 + + 27 * 88 AS col1
----
5976

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT ALL - COUNT( * ) * - 41 - 74
----
-33

skipif mysql # not compatible
query I rowsort label-1853
SELECT ALL - COUNT ( * ) * - 41 - 74
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT - MAX( + + 17 ) + 22
----
5

skipif mysql # not compatible
query I rowsort label-1854
SELECT - MAX ( + + 17 ) + 22
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT - + ( + - MAX( ALL - - 36 ) ) * + 85
----
3060

skipif mysql # not compatible
query I rowsort label-1855
SELECT - + ( + - MAX ( ALL - - 36 ) ) * + 85
----
3060

query I rowsort
SELECT ALL 24 * + + 2 AS col1
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1857
SELECT + 94 + + 52 AS col0, CAST( + + 76 AS SIGNED ) AS col0
----
146
76

skipif mysql # not compatible
query II rowsort label-1857
SELECT + 94 + + 52 AS col0, CAST ( + + 76 AS INTEGER ) AS col0
----
146
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1858
SELECT DISTINCT + 19 * + SUM( ALL - + 84 ) AS col0
----
-1596

skipif mysql # not compatible
query I rowsort label-1858
SELECT DISTINCT + 19 * + SUM ( ALL - + 84 ) AS col0
----
-1596

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT DISTINCT 82 * 74 * - 82 - + ( + COUNT( * ) ) AS col0
----
-497577

skipif mysql # not compatible
query I rowsort label-1859
SELECT DISTINCT 82 * 74 * - 82 - + ( + COUNT ( * ) ) AS col0
----
-497577

query I rowsort
SELECT COALESCE ( - 94, + + 85, ( - 30 ) ) AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT + + COUNT( * ) + - + MAX( 41 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-1861
SELECT + + COUNT ( * ) + - + MAX ( 41 ) AS col0
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1862
SELECT + - ( + - MIN( + 20 ) ) DIV 34
----
0

skipif mysql # not compatible
query I rowsort label-1862
SELECT + - ( + - MIN ( + 20 ) ) / 34
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1863
SELECT + - 31 + + COUNT( 5 ) DIV - 12 + - ( + 21 )
----
-52

skipif mysql # not compatible
query I rowsort label-1863
SELECT + - 31 + + COUNT ( 5 ) / - 12 + - ( + 21 )
----
-52

query I rowsort
SELECT ALL + 25 + - + 52 AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT ALL SUM( ALL - 9 ) + + + 97 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-1865
SELECT ALL SUM ( ALL - 9 ) + + + 97 AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT + 24 + - + MAX( ALL - ( - 66 ) ) * - 23
----
1542

skipif mysql # not compatible
query I rowsort label-1866
SELECT + 24 + - + MAX ( ALL - ( - 66 ) ) * - 23
----
1542

query I rowsort
SELECT + 6 + - 32 AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT ALL - 55 + - 85 + MAX( DISTINCT 38 )
----
-102

skipif mysql # not compatible
query I rowsort label-1868
SELECT ALL - 55 + - 85 + MAX ( DISTINCT 38 )
----
-102

query I rowsort
SELECT + 70 * 25
----
1750

query I rowsort
SELECT DISTINCT - 38 * - + 35 * + 71
----
94430

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

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

query II rowsort
SELECT ALL NULLIF ( + - 7, - - 97 ) AS col1, - NULLIF ( - 5, + AVG ( + 19 ) + + + 90 ) * - + 79 + - 77 AS col0
----
-7
-472

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT ALL CASE - + 58 WHEN + - 21 THEN NULL ELSE - 85 + COUNT( * ) END
----
-84

skipif mysql # not compatible
query I rowsort label-1873
SELECT ALL CASE - + 58 WHEN + - 21 THEN NULL ELSE - 85 + COUNT ( * ) END
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-1874
SELECT ALL - 40 DIV - 16 - + 38 + + 18 + + 5 + - ( ( 38 ) ) + - - 89 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-1874
SELECT ALL - 40 / - 16 - + 38 + + 18 + + 5 + - ( ( 38 ) ) + - - 89 AS col1
----
38

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1876
SELECT ALL - 93 DIV 73
----
-1

skipif mysql # not compatible
query I rowsort label-1876
SELECT ALL - 93 / 73
----
-1

query I rowsort
SELECT DISTINCT - 75 * + 9 AS col2
----
-675

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT - NULLIF ( - - CASE + ( - 49 ) WHEN - 14 * + 1 + 36 THEN NULL WHEN NULLIF ( 43, + 33 + + 7 ) * + 10 THEN + - COUNT( * ) END, - MAX( ALL + 7 ) ) + + - 72 * 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1878
SELECT - NULLIF ( - - CASE + ( - 49 ) WHEN - 14 * + 1 + 36 THEN NULL WHEN NULLIF ( 43, + 33 + + 7 ) * + 10 THEN + - COUNT ( * ) END, - MAX ( ALL + 7 ) ) + + - 72 * 38 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + + 69 * - 92
----
-6348

query I rowsort
SELECT 51 * + 42 + - 87
----
2055

onlyif mysql # aggregate syntax: 
query II rowsort label-1881
SELECT - 69 - + 73 * 1 AS col0, COUNT( * )
----
-142
1

skipif mysql # not compatible
query II rowsort label-1881
SELECT - 69 - + 73 * 1 AS col0, COUNT ( * )
----
-142
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1882
SELECT + COUNT( * ) DIV - COALESCE ( - COUNT( * ), - 35 ) * - ( - + 93 ) DIV + - COALESCE ( + 47, + - 51 * - COALESCE ( - - 17, + CASE + NULLIF ( 10, - - COALESCE ( + COUNT( * ), + NULLIF ( + 23, - 42 * + + 10 DIV - 88 ) + AVG ( 37 ) DIV - + COUNT( * ) - + 19 ) ) WHEN 42 DIV - 8 THEN - COUNT( DISTINCT 27 ) * MIN( 23 * 38 + + 57 * 38 ) END, + COUNT( + 95 ) * 69 + + 12 ) + + NULLIF ( 80, 4 DIV + 88 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1882
SELECT + COUNT ( * ) / - COALESCE ( - COUNT ( * ), - 35 ) * - ( - + 93 ) / + - COALESCE ( + 47, + - 51 * - COALESCE ( - - 17, + CASE + NULLIF ( 10, - - COALESCE ( + COUNT ( * ), + NULLIF ( + 23, - 42 * + + 10 / - 88 ) + AVG ( 37 ) / - + COUNT ( * ) - + 19 ) ) WHEN 42 / - 8 THEN - COUNT ( DISTINCT 27 ) * MIN ( 23 * 38 + + 57 * 38 ) END, + COUNT ( + 95 ) * 69 + + 12 ) + + NULLIF ( 80, 4 / + 88 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT ALL + - COUNT( * ) * - + 86 + 5
----
91

skipif mysql # not compatible
query I rowsort label-1883
SELECT ALL + - COUNT ( * ) * - + 86 + 5
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT ALL - - 40 * - COALESCE ( - SUM( DISTINCT - + 83 ), - 80 ) * + 51 + ( + - 88 )
----
-169408

skipif mysql # not compatible
query I rowsort label-1884
SELECT ALL - - 40 * - COALESCE ( - SUM ( DISTINCT - + 83 ), - 80 ) * + 51 + ( + - 88 )
----
-169408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1885
SELECT - - 1 * 70 * COALESCE ( 70, 25 * 92 * CASE - - 1 WHEN + - 93 THEN - + CASE - 4 WHEN - 79 THEN - 35 * - 53 + - - COUNT( * ) + + COUNT( * ) ELSE + 83 * + 60 END WHEN COALESCE ( + 85, - - 64 ) + CAST( 75 AS SIGNED ) THEN - CAST( ( 42 ) AS SIGNED ) END + - SUM( NULLIF ( + 52, - 78 ) ) * - 7 ) AS col0
----
4900

skipif mysql # not compatible
query I rowsort label-1885
SELECT - - 1 * 70 * COALESCE ( 70, 25 * 92 * CASE - - 1 WHEN + - 93 THEN - + CASE - 4 WHEN - 79 THEN - 35 * - 53 + - - COUNT ( * ) + + COUNT ( * ) ELSE + 83 * + 60 END WHEN COALESCE ( + 85, - - 64 ) + CAST ( 75 AS INTEGER ) THEN - CAST ( ( 42 ) AS INTEGER ) END + - SUM ( NULLIF ( + 52, - 78 ) ) * - 7 ) AS col0
----
4900

onlyif mysql # DIV for integer division: 
query I rowsort label-1886
SELECT - + 26 DIV + 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1886
SELECT - + 26 / + 83 AS col0
----
0

query I rowsort
SELECT - - 10 + - 93 col2
----
-83

query I rowsort
SELECT - - 40 * 95
----
3800

query I rowsort
SELECT - 23 * + 91 + - - 22 AS col1
----
-2071

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

query II rowsort
SELECT + 43 col1, + 96
----
43
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1892
SELECT + 55 * - CASE - - 92 WHEN 28 THEN + + CAST( + 29 AS SIGNED ) * + 55 + 44 + + 58 / + 17 WHEN - + 97 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1892
SELECT + 55 * - CASE - - 92 WHEN 28 THEN + + CAST ( + 29 AS INTEGER ) * + 55 + 44 + + 58 / + 17 WHEN - + 97 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT - 94 * - 15 AS col2
----
1410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1894
SELECT DISTINCT + COUNT( * ) * 15 - + + COALESCE ( + + COUNT( * ), - + 87 + + COUNT( * ) + - + 77, + + ( CAST( NULL AS SIGNED ) ) ) + + - COUNT( * ) * + + 4 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-1894
SELECT DISTINCT + COUNT ( * ) * 15 - + + COALESCE ( + + COUNT ( * ), - + 87 + + COUNT ( * ) + - + 77, + + ( CAST ( NULL AS INTEGER ) ) ) + + - COUNT ( * ) * + + 4 AS col2
----
10

query I rowsort
SELECT + 24 * + 59 AS col0
----
1416

query I rowsort
SELECT DISTINCT + 51 * 27
----
1377

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

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

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

query II rowsort
SELECT DISTINCT 18, + 96 AS col2
----
18
96

query I rowsort
SELECT ( + - 15 ) * 75 AS col1
----
-1125

query I rowsort
SELECT 64 + 0 + + 46 AS col2
----
110

query I rowsort
SELECT ALL 23 - - 75 * - 1 AS col2
----
-52

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1903
SELECT ALL + 61 - 17 + + 75 * + 85 * + - 47 * + ( 8 ) * + 51 + + 45 + - 74 + CAST( NULL AS DECIMAL ) * - CASE + + 41 WHEN + ( + 69 ) THEN 66 WHEN + + 15 THEN 78 / 25 + + 77 ELSE - 49 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1903
SELECT ALL + 61 - 17 + + 75 * + 85 * + - 47 * + ( 8 ) * + 51 + + 45 + - 74 + CAST ( NULL AS REAL ) * - CASE + + 41 WHEN + ( + 69 ) THEN 66 WHEN + + 15 THEN 78 / 25 + + 77 ELSE - 49 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1904
SELECT ( - 76 ) DIV - 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1904
SELECT ( - 76 ) / - 82 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1905
SELECT ALL 16 DIV + - ( + 38 )
----
0

skipif mysql # not compatible
query I rowsort label-1905
SELECT ALL 16 / + - ( + 38 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT COUNT( DISTINCT + 50 ) - + 62
----
-61

skipif mysql # not compatible
query I rowsort label-1906
SELECT COUNT ( DISTINCT + 50 ) - + 62
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT DISTINCT 10 * COUNT( * ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-1907
SELECT DISTINCT 10 * COUNT ( * ) AS col2
----
10

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

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

query II rowsort
SELECT + 94, 8 + + - 84 AS col0
----
94
-76

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1911
SELECT 79, + 22 * - 65 * COUNT( * ) col2
----
79
-1430

skipif mysql # not compatible
query II rowsort label-1911
SELECT 79, + 22 * - 65 * COUNT ( * ) col2
----
79
-1430

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

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

skipif mysql # not compatible
query I rowsort label-1913
SELECT ALL - + COUNT ( DISTINCT - - 23 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT - 96 * + + COUNT( * ) * - 14 + - - 60 + - 91
----
1313

skipif mysql # not compatible
query I rowsort label-1914
SELECT - 96 * + + COUNT ( * ) * - 14 + - - 60 + - 91
----
1313

query I rowsort
SELECT DISTINCT + 52 + - + 78
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-1916
SELECT ALL + 41 * + 36 + + 28 - + 62, + ( - - COUNT( * ) ) + - 59 col2
----
1442
-58

skipif mysql # not compatible
query II rowsort label-1916
SELECT ALL + 41 * + 36 + + 28 - + 62, + ( - - COUNT ( * ) ) + - 59 col2
----
1442
-58

query II rowsort
SELECT DISTINCT - 19, 63 col1
----
-19
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT DISTINCT + ( - COUNT( * ) ) + SUM( DISTINCT 40 ) + + 54
----
93

skipif mysql # not compatible
query I rowsort label-1918
SELECT DISTINCT + ( - COUNT ( * ) ) + SUM ( DISTINCT 40 ) + + 54
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT DISTINCT + CASE 30 WHEN 34 THEN 34 * + + 87 ELSE NULL END + - + ( + + MIN( ALL + 83 ) ) + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-1919
SELECT DISTINCT + CASE 30 WHEN 34 THEN 34 * + + 87 ELSE NULL END + - + ( + + MIN ( ALL + 83 ) ) + 98
----
NULL

query II rowsort
SELECT + - 60, 97 + - 52 AS col0
----
-60
45

query II rowsort
SELECT DISTINCT - + 4 AS col1, - 56
----
-4
-56

query II rowsort
SELECT ALL + 9 + + 4 AS col2, - 5
----
13
-5

query I rowsort
SELECT ( - 67 ) + 37 + + ( - 53 ) + + 35 * + 69
----
2332

onlyif mysql # DIV for integer division: 
query I rowsort label-1924
SELECT DISTINCT - 17 + + 8 + NULLIF ( - 37, - 41 ) DIV + 83 * - NULLIF ( + + 3, + 73 + + + 80 + - - NULLIF ( + 61, + 60 + - 81 ) )
----
-9

skipif mysql # not compatible
query I rowsort label-1924
SELECT DISTINCT - 17 + + 8 + NULLIF ( - 37, - 41 ) / + 83 * - NULLIF ( + + 3, + 73 + + + 80 + - - NULLIF ( + 61, + 60 + - 81 ) )
----
-9

query I rowsort
SELECT DISTINCT - 6 * - - 84 AS col1
----
-504

onlyif mysql # DIV for integer division: 
query I rowsort label-1926
SELECT DISTINCT 54 DIV 67 + 70 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-1926
SELECT DISTINCT 54 / 67 + 70 AS col0
----
70

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT 64 + COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-1928
SELECT 64 + COUNT ( * )
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1929
SELECT MIN( ALL + 29 ) + - CAST( NULL AS SIGNED ) * - 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1929
SELECT MIN ( ALL + 29 ) + - CAST ( NULL AS INTEGER ) * - 36 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT SUM( DISTINCT - 84 ) * 63 + + + 97 + - - MAX( 79 )
----
-5116

skipif mysql # not compatible
query I rowsort label-1930
SELECT SUM ( DISTINCT - 84 ) * 63 + + + 97 + - - MAX ( 79 )
----
-5116

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT AVG ( DISTINCT - 65 ) + + 21 * + 53 / - 74 / + + 14 * - + CASE 17 WHEN + 30 * - MIN( DISTINCT + ( + 66 ) ) THEN NULL WHEN - - ( + 84 ) THEN - 73 * 65 / + 89 ELSE NULL END - 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1932
SELECT AVG ( DISTINCT - 65 ) + + 21 * + 53 / - 74 / + + 14 * - + CASE 17 WHEN + 30 * - MIN ( DISTINCT + ( + 66 ) ) THEN NULL WHEN - - ( + 84 ) THEN - 73 * 65 / + 89 ELSE NULL END - 18 AS col2
----
NULL

query I rowsort
SELECT ALL 29 * + 27
----
783

query I rowsort
SELECT CASE 34 WHEN - 31 THEN - 13 END + 79 * + - 81 * + 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT ( 15 ) + + 5 + - + ( + 34 ) * MAX( + 68 ) * 40
----
-92460

skipif mysql # not compatible
query I rowsort label-1935
SELECT ( 15 ) + + 5 + - + ( + 34 ) * MAX ( + 68 ) * 40
----
-92460

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1936
SELECT CAST( NULL AS DECIMAL ) / - + 16, ( + + 4 ) AS col0
----
NULL
4

skipif mysql # not compatible
query II rowsort label-1936
SELECT CAST ( NULL AS REAL ) / - + 16, ( + + 4 ) AS col0
----
NULL
4

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

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

query I rowsort
SELECT ALL 21 + - 68 AS col2
----
-47

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

skipif mysql # not compatible
query I rowsort label-1939
SELECT DISTINCT MAX ( DISTINCT - 40 )
----
-40

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1941
SELECT ALL - 65 * + COUNT( * ) + + 89 + - 13 + + COALESCE ( - COUNT( * ), 22 ) * + ( - - 7 ) * - 68 - + 69 + - - COALESCE ( + ( + CASE + + 66 WHEN + + COUNT( * ) THEN - 35 WHEN ( - 0 ) THEN - - 53 ELSE - 63 END ), COUNT( * ) * 42 ) DIV 62 AS col0
----
417

skipif mysql # not compatible
query I rowsort label-1941
SELECT ALL - 65 * + COUNT ( * ) + + 89 + - 13 + + COALESCE ( - COUNT ( * ), 22 ) * + ( - - 7 ) * - 68 - + 69 + - - COALESCE ( + ( + CASE + + 66 WHEN + + COUNT ( * ) THEN - 35 WHEN ( - 0 ) THEN - - 53 ELSE - 63 END ), COUNT ( * ) * 42 ) / 62 AS col0
----
417

onlyif mysql # DIV for integer division: 
query I rowsort label-1942
SELECT - 60 DIV - 55 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1942
SELECT - 60 / - 55 AS col1
----
1

query I rowsort
SELECT ALL 35 * - + 42 + + 26 AS col1
----
-1444

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT ALL MAX( ALL - 13 ) * 10 * + 77 + + + 77
----
-9933

skipif mysql # not compatible
query I rowsort label-1944
SELECT ALL MAX ( ALL - 13 ) * 10 * + 77 + + + 77
----
-9933

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1946
SELECT ALL - COUNT( * ) * COUNT( * ) * + 63 + 13 + - 50 + - - 15 + - + CAST( + 41 AS SIGNED ) col2
----
-126

skipif mysql # not compatible
query I rowsort label-1946
SELECT ALL - COUNT ( * ) * COUNT ( * ) * + 63 + 13 + - 50 + - - 15 + - + CAST ( + 41 AS INTEGER ) col2
----
-126

onlyif mysql # aggregate syntax: 
query II rowsort label-1947
SELECT + MAX( 28 ), ( 66 ) + 4 * + - 74 AS col1
----
28
-230

skipif mysql # not compatible
query II rowsort label-1947
SELECT + MAX ( 28 ), ( 66 ) + 4 * + - 74 AS col1
----
28
-230

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT ALL MAX( ALL - 97 ) * + 21
----
-2037

skipif mysql # not compatible
query I rowsort label-1948
SELECT ALL MAX ( ALL - 97 ) * + 21
----
-2037

query I rowsort
SELECT + 10 + 14
----
24

query I rowsort
SELECT 77 - 24 * - 21 AS col2
----
581

query I rowsort
SELECT ALL - 69 * - - 9 AS col1
----
-621

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1952
SELECT MAX( - 13 ), 4 - - CAST( NULL AS SIGNED ) + COUNT( * ) AS col2
----
-13
NULL

skipif mysql # not compatible
query II rowsort label-1952
SELECT MAX ( - 13 ), 4 - - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col2
----
-13
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1953
SELECT DISTINCT + + 47 + - 3 DIV - + COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-1953
SELECT DISTINCT + + 47 + - 3 / - + COUNT ( * )
----
50

query II rowsort
SELECT DISTINCT ( - 46 ) * - ( - 76 ) + - - 5 AS col1, ( + + 8 ) AS col1
----
-3491
8

onlyif mysql # aggregate syntax: 
query II rowsort label-1955
SELECT DISTINCT - 19 - + 0 AS col0, - COUNT( * ) AS col2
----
-19
-1

skipif mysql # not compatible
query II rowsort label-1955
SELECT DISTINCT - 19 - + 0 AS col0, - COUNT ( * ) AS col2
----
-19
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1956
SELECT ALL + + SUM( DISTINCT - + 31 ) * + - 16, + 74 AS col0
----
496
74

skipif mysql # not compatible
query II rowsort label-1956
SELECT ALL + + SUM ( DISTINCT - + 31 ) * + - 16, + 74 AS col0
----
496
74

onlyif mysql # DIV for integer division: 
query II rowsort label-1957
SELECT 17 * - 62 + - + 34 DIV - 78 + - 59 AS col2, 26 * 30 + 21 AS col1
----
-1113
801

skipif mysql # not compatible
query II rowsort label-1957
SELECT 17 * - 62 + - + 34 / - 78 + - 59 AS col2, 26 * 30 + 21 AS col1
----
-1113
801

onlyif mysql # DIV for integer division: 
query I rowsort label-1958
SELECT ALL + 6 DIV 93 col1
----
0

skipif mysql # not compatible
query I rowsort label-1958
SELECT ALL + 6 / 93 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1959
SELECT 45 DIV + ( 52 ), + 44 + + 83 * COUNT( * ) AS col0
----
0
127

skipif mysql # not compatible
query II rowsort label-1959
SELECT 45 / + ( 52 ), + 44 + + 83 * COUNT ( * ) AS col0
----
0
127

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1961
SELECT ALL 6 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1961
SELECT ALL 6 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 34 * 41 AS col1
----
1394

query I rowsort
SELECT DISTINCT - 79 * + + 10 AS col1
----
-790

onlyif mysql # DIV for integer division: 
query I rowsort label-1964
SELECT - 70 DIV 66 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1964
SELECT - 70 / 66 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1965
SELECT - CASE + 18 WHEN - - 57 - 65 + + - 87 + - 56 + CAST( NULL AS SIGNED ) + + 47 * 84 THEN NULL ELSE - COUNT( * ) END + + 64
----
65

skipif mysql # not compatible
query I rowsort label-1965
SELECT - CASE + 18 WHEN - - 57 - 65 + + - 87 + - 56 + CAST ( NULL AS INTEGER ) + + 47 * 84 THEN NULL ELSE - COUNT ( * ) END + + 64
----
65

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

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

query I rowsort
SELECT DISTINCT NULLIF ( - 30, - - 96 ) AS col0
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-1968
SELECT - 51 - 49 DIV + 98
----
-51

skipif mysql # not compatible
query I rowsort label-1968
SELECT - 51 - 49 / + 98
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1969
SELECT ALL + 71 + - + 80 DIV + - SUM( DISTINCT 70 )
----
72

skipif mysql # not compatible
query I rowsort label-1969
SELECT ALL + 71 + - + 80 / + - SUM ( DISTINCT 70 )
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1970
SELECT - CAST( NULL AS SIGNED ) - 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1970
SELECT - CAST ( NULL AS INTEGER ) - 24 AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1972
SELECT DISTINCT CAST( + 95 AS SIGNED ) * - MIN( - 54 ) AS col1
----
5130

skipif mysql # not compatible
query I rowsort label-1972
SELECT DISTINCT CAST ( + 95 AS INTEGER ) * - MIN ( - 54 ) AS col1
----
5130

query I rowsort
SELECT - 49 + - 3 AS col1
----
-52

query I rowsort
SELECT DISTINCT + ( + 13 ) + 53
----
66

query I rowsort
SELECT + 72 - + 41
----
31

query I rowsort
SELECT ALL + ( - + 46 ) AS col0
----
-46

query II rowsort
SELECT 83, 96 + + + 75 AS col2
----
83
171

query II rowsort
SELECT 82, 53 AS col0
----
82
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT ALL - - CASE - + 90 WHEN + 52 + + COUNT( * ) * - 62 THEN + 20 END * 56 * 4 + + - 33 - - + 75 + - COUNT( * ) + - + 38 * - COALESCE ( + 49, 48 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1979
SELECT ALL - - CASE - + 90 WHEN + 52 + + COUNT ( * ) * - 62 THEN + 20 END * 56 * 4 + + - 33 - - + 75 + - COUNT ( * ) + - + 38 * - COALESCE ( + 49, 48 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1980
SELECT - + 16 DIV + 71 + - - 76 + - 74 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1980
SELECT - + 16 / + 71 + - - 76 + - 74 AS col0
----
2

query I rowsort
SELECT DISTINCT + 59 * + + ( + ( - 64 ) )
----
-3776

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

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

skipif mysql # not compatible
query I rowsort label-1983
SELECT + COUNT ( * ) * ( 39 ) + + - 22 + CAST ( NULL AS INTEGER ) * - 49 + + 0 + - - 29
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1984
SELECT + COALESCE ( - + COUNT( ALL - CAST( - 36 AS SIGNED ) ), 70, 51 ) * - CAST( - + 10 AS SIGNED ) + + - 33 / - 45 * + + 46 * + 95 * - - CASE + 44 WHEN - 68 THEN + 92 WHEN + COALESCE ( + + AVG ( DISTINCT ( 88 ) ), - COUNT( * ) / 99 ) + 87 * - - COUNT( + 57 ) THEN NULL END + - MAX( DISTINCT - + 21 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1984
SELECT + COALESCE ( - + COUNT ( ALL - CAST ( - 36 AS INTEGER ) ), 70, 51 ) * - CAST ( - + 10 AS INTEGER ) + + - 33 / - 45 * + + 46 * + 95 * - - CASE + 44 WHEN - 68 THEN + 92 WHEN + COALESCE ( + + AVG ( DISTINCT ( 88 ) ), - COUNT ( * ) / 99 ) + 87 * - - COUNT ( + 57 ) THEN NULL END + - MAX ( DISTINCT - + 21 ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT + 41 + MIN( 86 ) col0
----
127

skipif mysql # not compatible
query I rowsort label-1986
SELECT + 41 + MIN ( 86 ) col0
----
127

onlyif mysql # aggregate syntax: 
query II rowsort label-1987
SELECT 29 * - COUNT( * ) + - 8 * ( - 46 ) AS col2, - 6
----
339
-6

skipif mysql # not compatible
query II rowsort label-1987
SELECT 29 * - COUNT ( * ) + - 8 * ( - 46 ) AS col2, - 6
----
339
-6

query I rowsort
SELECT - ( - 17 ) + - 8 AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT ALL MAX( ALL 14 )
----
14

skipif mysql # not compatible
query I rowsort label-1989
SELECT ALL MAX ( ALL 14 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT - ( - CASE + 16 WHEN + 80 / + 66 + COALESCE ( + 66, + ( + + 2 ) ) + - 56 - - 40 * - 80 * + 51 - - - 91 + COUNT( * ) * COALESCE ( + + 87, 32 ) * - 97 + 65 - - COUNT( * ) + 1 THEN - ( + ( - CASE + 1 WHEN + - COUNT( * ) THEN + 70 - - 12 WHEN 81 THEN NULL END ) ) WHEN COUNT( * ) / - 24 THEN NULL WHEN 74 THEN + CASE ( COUNT( * ) ) WHEN + 67 - 60 THEN + 81 END + 78 ELSE NULL END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1990
SELECT - ( - CASE + 16 WHEN + 80 / + 66 + COALESCE ( + 66, + ( + + 2 ) ) + - 56 - - 40 * - 80 * + 51 - - - 91 + COUNT ( * ) * COALESCE ( + + 87, 32 ) * - 97 + 65 - - COUNT ( * ) + 1 THEN - ( + ( - CASE + 1 WHEN + - COUNT ( * ) THEN + 70 - - 12 WHEN 81 THEN NULL END ) ) WHEN COUNT ( * ) / - 24 THEN NULL WHEN 74 THEN + CASE ( COUNT ( * ) ) WHEN + 67 - 60 THEN + 81 END + 78 ELSE NULL END ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT SUM( ALL 12 )
----
12

skipif mysql # not compatible
query I rowsort label-1991
SELECT SUM ( ALL 12 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT - 40 + + - SUM( - 52 ) * - 89 * 32 + + 73 AS col1
----
-148063

skipif mysql # not compatible
query I rowsort label-1992
SELECT - 40 + + - SUM ( - 52 ) * - 89 * 32 + + 73 AS col1
----
-148063

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1993
SELECT ALL + 3 + + COUNT( 94 ) DIV SUM( 8 ) * NULLIF ( 39, 91 )
----
3

skipif mysql # not compatible
query I rowsort label-1993
SELECT ALL + 3 + + COUNT ( 94 ) / SUM ( 8 ) * NULLIF ( 39, 91 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT + COUNT( * ) * 13 * + 30 * 99 + - 54 AS col2
----
38556

skipif mysql # not compatible
query I rowsort label-1994
SELECT + COUNT ( * ) * 13 * + 30 * 99 + - 54 AS col2
----
38556

query I rowsort
SELECT DISTINCT 51 + + 43 * - - 87
----
3792

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT ALL COUNT( * ) + 36
----
37

skipif mysql # not compatible
query I rowsort label-1996
SELECT ALL COUNT ( * ) + 36
----
37

query I rowsort
SELECT DISTINCT ( 61 ) AS col0
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1998
SELECT - 80 DIV - COUNT( * ) AS col1
----
80

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

query I rowsort
SELECT ALL 86 + + 80 col2
----
166

query I rowsort
SELECT ALL COALESCE ( - ( + 5 ), 28 ) col2
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2001
SELECT + - COUNT( ALL - CAST( NULL AS SIGNED ) ) * + + 35 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2001
SELECT + - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) * + + 35 AS col2
----
0

query I rowsort
SELECT ALL + NULLIF ( - - 29, 97 ) col0
----
29

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2004
SELECT + + 99 DIV - 80 AS col0, - COUNT( * ) col2
----
-1
-1

skipif mysql # not compatible
query II rowsort label-2004
SELECT + + 99 / - 80 AS col0, - COUNT ( * ) col2
----
-1
-1

query I rowsort
SELECT - + 93 + + 72 col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2006
SELECT - - ( - MAX( + 79 ) ) + - COALESCE ( + ( - 64 ), - 13 * - 92, - ( 98 ) + ( - 84 ) * + + 22 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-2006
SELECT - - ( - MAX ( + 79 ) ) + - COALESCE ( + ( - 64 ), - 13 * - 92, - ( 98 ) + ( - 84 ) * + + 22 ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT ALL - - 6 - 49 * COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-2007
SELECT ALL - - 6 - 49 * COUNT ( * )
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-2008
SELECT - NULLIF ( COALESCE ( + 92, - - 41 * + + 3 + - 28 ), - 39 ) * ( - 84 ) DIV - 47 + - - 14 - NULLIF ( - - 25, 29 * - 1 )
----
-175

skipif mysql # not compatible
query I rowsort label-2008
SELECT - NULLIF ( COALESCE ( + 92, - - 41 * + + 3 + - 28 ), - 39 ) * ( - 84 ) / - 47 + - - 14 - NULLIF ( - - 25, 29 * - 1 )
----
-175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2009
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) - - 56 - CAST( NULL AS DECIMAL ) * SUM( 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2009
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) - - 56 - CAST ( NULL AS REAL ) * SUM ( 93 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2010
SELECT DISTINCT ( - 34 ), MAX( + 62 ) * CAST( 3 AS SIGNED ) * + 21 + - - NULLIF ( ( + + 4 ), + 31 ) + - + NULLIF ( - 26, - + 45 ) AS col1
----
-34
3936

skipif mysql # not compatible
query II rowsort label-2010
SELECT DISTINCT ( - 34 ), MAX ( + 62 ) * CAST ( 3 AS INTEGER ) * + 21 + - - NULLIF ( ( + + 4 ), + 31 ) + - + NULLIF ( - 26, - + 45 ) AS col1
----
-34
3936

query I rowsort
SELECT ALL - - 14 - + 80 + - COALESCE ( - 65, - + 19 * - 74 + + - 0 )
----
-1

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

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

query I rowsort
SELECT DISTINCT - 19 * + - 86 * 60 * - 47 AS col2
----
-4607880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2014
SELECT - - CAST( - - 41 AS SIGNED ) * - + 88 AS col0
----
-3608

skipif mysql # not compatible
query I rowsort label-2014
SELECT - - CAST ( - - 41 AS INTEGER ) * - + 88 AS col0
----
-3608

query I rowsort
SELECT ALL - 86 * - 86 AS col1
----
7396

query I rowsort
SELECT - - 80 * + 15 AS col1
----
1200

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2017
SELECT 75 DIV - 44 + - - ( + COUNT( * ) ) + - + 38 AS col1, 66 AS col2
----
-38
66

skipif mysql # not compatible
query II rowsort label-2017
SELECT 75 / - 44 + - - ( + COUNT ( * ) ) + - + 38 AS col1, 66 AS col2
----
-38
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT - NULLIF ( 10, + 8 ) + + 53 * + - MAX( - ( - - ( + - 64 ) ) )
----
-3402

skipif mysql # not compatible
query I rowsort label-2018
SELECT - NULLIF ( 10, + 8 ) + + 53 * + - MAX ( - ( - - ( + - 64 ) ) )
----
-3402

onlyif mysql # DIV for integer division: 
query II rowsort label-2019
SELECT 63 DIV - + 70 AS col0, 56
----
0
56

skipif mysql # not compatible
query II rowsort label-2019
SELECT 63 / - + 70 AS col0, 56
----
0
56

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT ALL 6 * - COUNT( DISTINCT 82 )
----
-6

skipif mysql # not compatible
query I rowsort label-2021
SELECT ALL 6 * - COUNT ( DISTINCT 82 )
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-2022
SELECT DISTINCT + 61 DIV - 40 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2022
SELECT DISTINCT + 61 / - 40 AS col1
----
-1

query I rowsort
SELECT ALL 76 + 84 + - 17 AS col0
----
143

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

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

query I rowsort
SELECT 9 * 67 AS col0
----
603

query I rowsort
SELECT ALL 46 + + - 16
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT DISTINCT COUNT( * ) + - 75
----
-74

skipif mysql # not compatible
query I rowsort label-2027
SELECT DISTINCT COUNT ( * ) + - 75
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-2028
SELECT ALL 30 AS col1, - COUNT( * ) + - - COUNT( * ) * - + COUNT( * ) * COUNT( - 4 ) * 91 AS col0
----
30
-92

skipif mysql # not compatible
query II rowsort label-2028
SELECT ALL 30 AS col1, - COUNT ( * ) + - - COUNT ( * ) * - + COUNT ( * ) * COUNT ( - 4 ) * 91 AS col0
----
30
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT 99 * COUNT( * ) col0
----
99

skipif mysql # not compatible
query I rowsort label-2029
SELECT 99 * COUNT ( * ) col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT ALL 10 + + + 76 + + 53 * + COUNT( * ) AS col0
----
139

skipif mysql # not compatible
query I rowsort label-2030
SELECT ALL 10 + + + 76 + + 53 * + COUNT ( * ) AS col0
----
139

query I rowsort
SELECT DISTINCT 33 + - 32
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2032
SELECT ALL + CAST( - 11 AS SIGNED ) + MAX( DISTINCT + 84 )
----
73

skipif mysql # not compatible
query I rowsort label-2032
SELECT ALL + CAST ( - 11 AS INTEGER ) + MAX ( DISTINCT + 84 )
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-2033
SELECT ALL 41 AS col2, + COUNT( DISTINCT + 67 ) * + CASE - NULLIF ( + COUNT( * ), - 28 ) WHEN - 51 THEN NULL ELSE - + 65 END + + 17 * - 67 AS col1
----
41
-1204

skipif mysql # not compatible
query II rowsort label-2033
SELECT ALL 41 AS col2, + COUNT ( DISTINCT + 67 ) * + CASE - NULLIF ( + COUNT ( * ), - 28 ) WHEN - 51 THEN NULL ELSE - + 65 END + + 17 * - 67 AS col1
----
41
-1204

query I rowsort
SELECT 88 + + 27
----
115

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

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

query I rowsort
SELECT - 97 + + 3 + 28 * 98
----
2650

query I rowsort
SELECT - 7 - 39
----
-46

query I rowsort
SELECT 29 + - - 12
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-2039
SELECT ALL - 81 - - + ( + + 69 ) * 18 + + - 11, + NULLIF ( COALESCE ( - - 20, - + COUNT( * ) ), + 54 * - 88 * + 36 * - 17 + 39 ) AS col1
----
1150
20

skipif mysql # not compatible
query II rowsort label-2039
SELECT ALL - 81 - - + ( + + 69 ) * 18 + + - 11, + NULLIF ( COALESCE ( - - 20, - + COUNT ( * ) ), + 54 * - 88 * + 36 * - 17 + 39 ) AS col1
----
1150
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT CASE - ( - - COUNT( * ) ) WHEN + 24 THEN - 39 WHEN + ( + + COUNT( * ) ) THEN NULL ELSE NULL END * - 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2040
SELECT CASE - ( - - COUNT ( * ) ) WHEN + 24 THEN - 39 WHEN + ( + + COUNT ( * ) ) THEN NULL ELSE NULL END * - 9 AS col0
----
NULL

query I rowsort
SELECT + 56 * + 17 AS col2
----
952

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

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

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

query I rowsort
SELECT ( + - 54 ) - + 39 + + + 82 + + + 56 + + 81
----
126

query I rowsort
SELECT 39 * + 86
----
3354

query I rowsort
SELECT 98 + + - 40 * + + 55
----
-2102

query I rowsort
SELECT - 23 * 87 * - + 47 * + - 30
----
-2821410

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT 29 * - - NULLIF ( + + COALESCE ( - NULLIF ( 51, 65 - + 9 ), - 56 * + + 10 - 24 + - + 4 * + - 69 * + + 3 + + + 91 * + 75 ), - COUNT( * ) ) AS col1
----
-1479

skipif mysql # not compatible
query I rowsort label-2048
SELECT 29 * - - NULLIF ( + + COALESCE ( - NULLIF ( 51, 65 - + 9 ), - 56 * + + 10 - 24 + - + 4 * + - 69 * + + 3 + + + 91 * + 75 ), - COUNT ( * ) ) AS col1
----
-1479

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

skipif mysql # not compatible
query I rowsort label-2049
SELECT - 97 + - COUNT ( * ) + - - 15 AS col1
----
-83

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

skipif mysql # not compatible
query I rowsort label-2050
SELECT - SUM ( + - 55 )
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-2051
SELECT ALL - + ( MAX( DISTINCT 74 ) ) * - - ( 56 ), 93 AS col0
----
-4144
93

skipif mysql # not compatible
query II rowsort label-2051
SELECT ALL - + ( MAX ( DISTINCT 74 ) ) * - - ( 56 ), 93 AS col0
----
-4144
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2052
SELECT COALESCE ( 56, + - 63 * + 20 * 86 + - + 93 + + + 66 + + 9, - CAST( NULL AS SIGNED ) + + - MIN( + 24 ) ) * 80 AS col0
----
4480

skipif mysql # not compatible
query I rowsort label-2052
SELECT COALESCE ( 56, + - 63 * + 20 * 86 + - + 93 + + + 66 + + 9, - CAST ( NULL AS INTEGER ) + + - MIN ( + 24 ) ) * 80 AS col0
----
4480

query I rowsort
SELECT ALL + 75 + 20
----
95

query I rowsort
SELECT 90 * - 1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT MAX( - 61 ) * 40 + + - COUNT( * )
----
-2441

skipif mysql # not compatible
query I rowsort label-2055
SELECT MAX ( - 61 ) * 40 + + - COUNT ( * )
----
-2441

onlyif mysql # aggregate syntax: 
query II rowsort label-2056
SELECT 48, 74 + - 6 * - - MIN( ALL + 64 ) AS col0
----
48
-310

skipif mysql # not compatible
query II rowsort label-2056
SELECT 48, 74 + - 6 * - - MIN ( ALL + 64 ) AS col0
----
48
-310

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

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

query II rowsort
SELECT 21 AS col0, - 27
----
21
-27

query I rowsort
SELECT DISTINCT - ( - + 50 ) AS col1
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2060
SELECT DISTINCT + 58 + - 85 AS col0, 63 * - 15 * 91 DIV COUNT( * )
----
-27
-85995

skipif mysql # not compatible
query II rowsort label-2060
SELECT DISTINCT + 58 + - 85 AS col0, 63 * - 15 * 91 / COUNT ( * )
----
-27
-85995

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2061
SELECT ALL CASE 34 WHEN - - 37 THEN NULL ELSE - 7 + MAX( ALL - 43 ) + 76 END DIV COUNT( * ) + + 54 col0
----
80

skipif mysql # not compatible
query I rowsort label-2061
SELECT ALL CASE 34 WHEN - - 37 THEN NULL ELSE - 7 + MAX ( ALL - 43 ) + 76 END / COUNT ( * ) + + 54 col0
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-2062
SELECT + 78 * + ( COUNT( * ) ) + COUNT( * ) AS col1, 22 AS col2
----
79
22

skipif mysql # not compatible
query II rowsort label-2062
SELECT + 78 * + ( COUNT ( * ) ) + COUNT ( * ) AS col1, 22 AS col2
----
79
22

query II rowsort
SELECT DISTINCT - 37 col1, - 86
----
-37
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2064
SELECT 4 * - COUNT( + CAST( - 37 AS SIGNED ) ) + 37 + - 20 col1
----
13

skipif mysql # not compatible
query I rowsort label-2064
SELECT 4 * - COUNT ( + CAST ( - 37 AS INTEGER ) ) + 37 + - 20 col1
----
13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT ALL MIN( + 14 ) - + COUNT( * ) col0
----
13

skipif mysql # not compatible
query I rowsort label-2066
SELECT ALL MIN ( + 14 ) - + COUNT ( * ) col0
----
13

query I rowsort
SELECT DISTINCT ( 48 ) * + 4 AS col0
----
192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2068
SELECT CAST( NULL AS SIGNED ) + COUNT( * ) + - COUNT( * ) + 97 + + + MAX( 50 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2068
SELECT CAST ( NULL AS INTEGER ) + COUNT ( * ) + - COUNT ( * ) + 97 + + + MAX ( 50 ) AS col1
----
NULL

query II rowsort
SELECT - 79, 61 * 88 AS col1
----
-79
5368

onlyif mysql # aggregate syntax: 
query II rowsort label-2070
SELECT ALL 7 AS col1, + ( - 70 ) * - 80 - - COUNT( * ) * - 96 + 50 AS col1
----
7
5554

skipif mysql # not compatible
query II rowsort label-2070
SELECT ALL 7 AS col1, + ( - 70 ) * - 80 - - COUNT ( * ) * - 96 + 50 AS col1
----
7
5554

onlyif mysql # aggregate syntax: 
query II rowsort label-2071
SELECT DISTINCT + 80 AS col1, SUM( - + 46 )
----
80
-46

skipif mysql # not compatible
query II rowsort label-2071
SELECT DISTINCT + 80 AS col1, SUM ( - + 46 )
----
80
-46

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

query I rowsort
SELECT 74 * 99
----
7326

query I rowsort
SELECT - 54 + - - 58 AS col0
----
4

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT DISTINCT ( COUNT( * ) ) + + - COALESCE ( - 33, - 57 ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-2076
SELECT DISTINCT ( COUNT ( * ) ) + + - COALESCE ( - 33, - 57 ) AS col0
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-2077
SELECT ALL + 9 DIV + - 97 * - 34 + 35 + + 83 AS col2
----
118

skipif mysql # not compatible
query I rowsort label-2077
SELECT ALL + 9 / + - 97 * - 34 + 35 + + 83 AS col2
----
118

query I rowsort
SELECT + 43 + - 82 * - - ( - + 94 )
----
7751

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT ALL - 34 + + COUNT( - 24 ) + - 88 * - 89
----
7799

skipif mysql # not compatible
query I rowsort label-2079
SELECT ALL - 34 + + COUNT ( - 24 ) + - 88 * - 89
----
7799

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT DISTINCT + 76 * NULLIF ( COUNT( * ), + 55 )
----
76

skipif mysql # not compatible
query I rowsort label-2080
SELECT DISTINCT + 76 * NULLIF ( COUNT ( * ), + 55 )
----
76

query I rowsort
SELECT ALL - 95 * + 25 + + CASE + 57 WHEN - - 48 * + 58 * 79 THEN 81 * + 8 ELSE NULL END * 0
----
NULL

query I rowsort
SELECT ALL 71 * + 21 + + ( + - 7 )
----
1484

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

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

query I rowsort
SELECT ALL 77 * COALESCE ( 36, + 63 ) AS col1
----
2772

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2085
SELECT DISTINCT SUM( - 89 ) * + + 5 + + 22 - - + CAST( + MAX( - 32 ) AS SIGNED ) + 41 * - 29 AS col0
----
-1644

skipif mysql # not compatible
query I rowsort label-2085
SELECT DISTINCT SUM ( - 89 ) * + + 5 + + 22 - - + CAST ( + MAX ( - 32 ) AS INTEGER ) + 41 * - 29 AS col0
----
-1644

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

skipif mysql # not compatible
query I rowsort label-2086
SELECT + 62 / - ( CAST ( NULL AS INTEGER ) ) + + 52
----
NULL

query I rowsort
SELECT - 41 + + 29 AS col1
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-2088
SELECT + ( + 30 ), 41 * + ( + 93 ) * + 46 + - 30 + - - 28 + + - 59 + - AVG ( - 80 ) * - 57 * CASE 88 WHEN - 7 THEN - 86 END + - 48 * COUNT( * ) * + NULLIF ( + ( + 80 ), - 9 ) * 87 * 74 AS col2
----
30
NULL

skipif mysql # not compatible
query II rowsort label-2088
SELECT + ( + 30 ), 41 * + ( + 93 ) * + 46 + - 30 + - - 28 + + - 59 + - AVG ( - 80 ) * - 57 * CASE 88 WHEN - 7 THEN - 86 END + - 48 * COUNT ( * ) * + NULLIF ( + ( + 80 ), - 9 ) * 87 * 74 AS col2
----
30
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2090
SELECT ALL + CASE + COALESCE ( - 76, 12 ) WHEN + 21 + + COALESCE ( - 60, 18 + - 53, - 39, + 13 + - - COUNT( * ) - + CAST( NULL AS SIGNED ) * NULLIF ( - 76, + + CAST( 73 AS SIGNED ) ) ) THEN + ( - 55 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2090
SELECT ALL + CASE + COALESCE ( - 76, 12 ) WHEN + 21 + + COALESCE ( - 60, 18 + - 53, - 39, + 13 + - - COUNT ( * ) - + CAST ( NULL AS INTEGER ) * NULLIF ( - 76, + + CAST ( 73 AS INTEGER ) ) ) THEN + ( - 55 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2091
SELECT ALL 11 * 40 * + COUNT( * ) + - COUNT( * ) * - + 21 AS col0, COUNT( * )
----
461
1

skipif mysql # not compatible
query II rowsort label-2091
SELECT ALL 11 * 40 * + COUNT ( * ) + - COUNT ( * ) * - + 21 AS col0, COUNT ( * )
----
461
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2092
SELECT NULLIF ( + 53, - CAST( NULL AS SIGNED ) * + 99 - 27 ) AS col1, - 37 AS col0
----
53
-37

skipif mysql # not compatible
query II rowsort label-2092
SELECT NULLIF ( + 53, - CAST ( NULL AS INTEGER ) * + 99 - 27 ) AS col1, - 37 AS col0
----
53
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2093
SELECT ALL - 0 * - - 27 + - ( + + COUNT( * ) ) + - 57 + - + ( - + 34 ) + - CAST( NULL AS SIGNED ) * - - COUNT( DISTINCT 18 ) * + 78 + CASE CASE 7 WHEN + + NULLIF ( + + 60, - 12 ) THEN + 80 WHEN - 50 THEN NULL END WHEN + 54 + + + MAX( - 73 ) THEN - ( COUNT( * ) ) - - ( + ( - NULLIF ( - ( + 30 ), 24 ) ) ) - 66 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2093
SELECT ALL - 0 * - - 27 + - ( + + COUNT ( * ) ) + - 57 + - + ( - + 34 ) + - CAST ( NULL AS INTEGER ) * - - COUNT ( DISTINCT 18 ) * + 78 + CASE CASE 7 WHEN + + NULLIF ( + + 60, - 12 ) THEN + 80 WHEN - 50 THEN NULL END WHEN + 54 + + + MAX ( - 73 ) THEN - ( COUNT ( * ) ) - - ( + ( - NULLIF ( - ( + 30 ), 24 ) ) ) - 66 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2094
SELECT MAX( DISTINCT + 56 ) AS col1, 24 + - - CAST( - 93 AS SIGNED ) + + COUNT( * ) - + 66 AS col1
----
56
-134

skipif mysql # not compatible
query II rowsort label-2094
SELECT MAX ( DISTINCT + 56 ) AS col1, 24 + - - CAST ( - 93 AS INTEGER ) + + COUNT ( * ) - + 66 AS col1
----
56
-134

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

skipif mysql # not compatible
query I rowsort label-2095
SELECT - 63 * + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - ( - 77 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2096
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) AS col1, 23 + + + 29 - + 86 + COUNT( * )
----
1
-33

skipif mysql # not compatible
query II rowsort label-2096
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) AS col1, 23 + + + 29 - + 86 + COUNT ( * )
----
1
-33

query I rowsort
SELECT - 39 - + 40 + + 51 AS col2
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-2098
SELECT DISTINCT - 92 DIV 50
----
-1

skipif mysql # not compatible
query I rowsort label-2098
SELECT DISTINCT - 92 / 50
----
-1

query II rowsort
SELECT - 69 + - 18, + 11 AS col2
----
-87
11

query I rowsort
SELECT - + ( + - 1 ) * + + 21
----
21

query II rowsort
SELECT - 82 + - - 42 AS col0, 83 * 39
----
-40
3237

onlyif mysql # DIV for integer division: 
query I rowsort label-2102
SELECT DISTINCT 30 + - 26 DIV 1 * + - 24 col1
----
654

skipif mysql # not compatible
query I rowsort label-2102
SELECT DISTINCT 30 + - 26 / 1 * + - 24 col1
----
654

onlyif mysql # aggregate syntax: 
query II rowsort label-2103
SELECT - + 18 + COUNT( * ), 69 * - + 16 * - COUNT( * ) * CASE 60 WHEN + + 28 * - 78 THEN 37 - 93 END * + 35 * NULLIF ( - 50, + 13 + - - 16 + - MIN( DISTINCT 37 ) ) + - 99 + - 23 - 59 * - + 76 * 24 * + 68 * - COUNT( DISTINCT - 44 ) AS col0
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-2103
SELECT - + 18 + COUNT ( * ), 69 * - + 16 * - COUNT ( * ) * CASE 60 WHEN + + 28 * - 78 THEN 37 - 93 END * + 35 * NULLIF ( - 50, + 13 + - - 16 + - MIN ( DISTINCT 37 ) ) + - 99 + - 23 - 59 * - + 76 * 24 * + 68 * - COUNT ( DISTINCT - 44 ) AS col0
----
-17
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2104
SELECT ALL 44 * - 13 * - 61 * - - 56 + + + ( + COUNT( * ) ) + + CAST( NULL AS SIGNED ) + - 3 + 19 * ( + 54 ) * - ( - 14 ) * 93 * - - 66 / + CAST( 38 AS SIGNED ) * + 36 * ( - + 11 ) - + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-2104
SELECT ALL 44 * - 13 * - 61 * - - 56 + + + ( + COUNT ( * ) ) + + CAST ( NULL AS INTEGER ) + - 3 + 19 * ( + 54 ) * - ( - 14 ) * 93 * - - 66 / + CAST ( 38 AS INTEGER ) * + 36 * ( - + 11 ) - + 80
----
NULL

query I rowsort
SELECT + - 43 + - 25 AS col0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2106
SELECT DISTINCT + + CAST( 1 AS SIGNED ) * - + 34 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-2106
SELECT DISTINCT + + CAST ( 1 AS INTEGER ) * - + 34 AS col1
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-2107
SELECT ALL - 47 + - 60, + CASE + 35 WHEN ( + 95 ) * + 86 * + 81 THEN NULL WHEN + 80 THEN + 44 + - MAX( + - 29 ) END AS col1
----
-107
NULL

skipif mysql # not compatible
query II rowsort label-2107
SELECT ALL - 47 + - 60, + CASE + 35 WHEN ( + 95 ) * + 86 * + 81 THEN NULL WHEN + 80 THEN + 44 + - MAX ( + - 29 ) END AS col1
----
-107
NULL

query II rowsort
SELECT - + ( - 23 ) AS col2, + 19
----
23
19

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2109
SELECT + - ( + 20 ) + - ( - CAST( + 34 AS SIGNED ) ) + 99 DIV - CAST( - 32 AS SIGNED ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-2109
SELECT + - ( + 20 ) + - ( - CAST ( + 34 AS INTEGER ) ) + 99 / - CAST ( - 32 AS INTEGER ) AS col0
----
17

query I rowsort
SELECT + 24 + - + 63 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT + 12 * + COUNT( * ) col0
----
12

skipif mysql # not compatible
query I rowsort label-2111
SELECT + 12 * + COUNT ( * ) col0
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2112
SELECT + 95 DIV COUNT( * ) * - + ( + 29 ) + + - NULLIF ( 88, + COUNT( * ) * + + ( - CASE + + 89 WHEN - COUNT( * ) THEN - 47 END ) ) - 28 AS col2
----
-2871

skipif mysql # not compatible
query I rowsort label-2112
SELECT + 95 / COUNT ( * ) * - + ( + 29 ) + + - NULLIF ( 88, + COUNT ( * ) * + + ( - CASE + + 89 WHEN - COUNT ( * ) THEN - 47 END ) ) - 28 AS col2
----
-2871

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2113
SELECT DISTINCT 52 / CASE - 89 WHEN - ( + - 8 ) * + 76 THEN + 54 WHEN - 98 THEN - NULLIF ( CAST( NULL AS SIGNED ), COALESCE ( - + 99, + + 62 * ( - SUM( ALL 76 ) ), + CASE - COUNT( * ) WHEN - + ( - 62 ) THEN ( - 40 ) * 29 + 47 - + + COUNT( * ) + + - NULLIF ( + + 19, - - COUNT( * ) ) WHEN 11 THEN 26 + 56 * - 39 + + - CAST( 18 AS SIGNED ) END ) + 10 ) / ( + COALESCE ( - 83, 7 * 89 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2113
SELECT DISTINCT 52 / CASE - 89 WHEN - ( + - 8 ) * + 76 THEN + 54 WHEN - 98 THEN - NULLIF ( CAST ( NULL AS INTEGER ), COALESCE ( - + 99, + + 62 * ( - SUM ( ALL 76 ) ), + CASE - COUNT ( * ) WHEN - + ( - 62 ) THEN ( - 40 ) * 29 + 47 - + + COUNT ( * ) + + - NULLIF ( + + 19, - - COUNT ( * ) ) WHEN 11 THEN 26 + 56 * - 39 + + - CAST ( 18 AS INTEGER ) END ) + 10 ) / ( + COALESCE ( - 83, 7 * 89 ) ) END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2114
SELECT DISTINCT - 56 DIV 39 - - - 76 + 65 * + 2
----
53

skipif mysql # not compatible
query I rowsort label-2114
SELECT DISTINCT - 56 / 39 - - - 76 + 65 * + 2
----
53

query I rowsort
SELECT ALL 87 * - 94 AS col0
----
-8178

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

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

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

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

query I rowsort
SELECT + 69 * - ( + 78 ) + 62 AS col1
----
-5320

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2119
SELECT CAST( NULL AS SIGNED ) col2, 17 - + + 54
----
NULL
-37

skipif mysql # not compatible
query II rowsort label-2119
SELECT CAST ( NULL AS INTEGER ) col2, 17 - + + 54
----
NULL
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-2120
SELECT COALESCE ( + COUNT( * ), - 46 ) * - 34 * + 50 * + ( - + COUNT( * ) ) + + 53 * + + 90 AS col0, 48 AS col1
----
6470
48

skipif mysql # not compatible
query II rowsort label-2120
SELECT COALESCE ( + COUNT ( * ), - 46 ) * - 34 * + 50 * + ( - + COUNT ( * ) ) + + 53 * + + 90 AS col0, 48 AS col1
----
6470
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT + 39 + - + COUNT( * ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-2121
SELECT + 39 + - + COUNT ( * ) AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2122
SELECT - NULLIF ( + 42, - + ( - - ( + 55 ) ) + + COUNT( * ) ) * - 24 col2
----
1008

skipif mysql # not compatible
query I rowsort label-2122
SELECT - NULLIF ( + 42, - + ( - - ( + 55 ) ) + + COUNT ( * ) ) * - 24 col2
----
1008

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

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

query I rowsort
SELECT ALL + 63 * + 32 AS col2
----
2016

onlyif mysql # DIV for integer division: 
query I rowsort label-2125
SELECT - - ( + 88 ) * 57 DIV + - 91
----
-55

skipif mysql # not compatible
query I rowsort label-2125
SELECT - - ( + 88 ) * 57 / + - 91
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-2126
SELECT 99 * - 76 * + 73 - 65 DIV 90 + + 67
----
-549185

skipif mysql # not compatible
query I rowsort label-2126
SELECT 99 * - 76 * + 73 - 65 / 90 + + 67
----
-549185

query I rowsort
SELECT - 50 * + - 20 + ( - 26 ) AS col0
----
974

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

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

query I rowsort
SELECT - - 8 + + 15 * - 10 - - 72 AS col1
----
-70

query I rowsort
SELECT ALL - 2 * - - 23 AS col2
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-2131
SELECT 45 DIV + + 28 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2131
SELECT 45 / + + 28 AS col1
----
1

query I rowsort
SELECT + 36 + + 20 - - - 67 AS col1
----
-11

query I rowsort
SELECT + 50 + 42 + + 12 * 2 * + + ( 61 ) AS col2
----
1556

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT ALL CASE 12 WHEN + CASE - 89 WHEN - - 72 THEN - 20 / - 90 * - + 14 * - - AVG ( ALL + + 43 ) + + + COUNT( * ) + - + COALESCE ( - - 83, + 46, + + 26 - COUNT( * ) + - COUNT( ALL 43 ), - COALESCE ( + - 40, + 42 ) ) * - - 12 ELSE + + 11 END THEN + + MAX( DISTINCT + 69 ) ELSE NULL END * - CASE - 45 WHEN - - 10 THEN - 39 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2134
SELECT ALL CASE 12 WHEN + CASE - 89 WHEN - - 72 THEN - 20 / - 90 * - + 14 * - - AVG ( ALL + + 43 ) + + + COUNT ( * ) + - + COALESCE ( - - 83, + 46, + + 26 - COUNT ( * ) + - COUNT ( ALL 43 ), - COALESCE ( + - 40, + 42 ) ) * - - 12 ELSE + + 11 END THEN + + MAX ( DISTINCT + 69 ) ELSE NULL END * - CASE - 45 WHEN - - 10 THEN - 39 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT ALL + - 92 + - 43 * - COUNT( * ) - + 82 + - - 95
----
-36

skipif mysql # not compatible
query I rowsort label-2135
SELECT ALL + - 92 + - 43 * - COUNT ( * ) - + 82 + - - 95
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT DISTINCT - 20 + + - CASE + 32 WHEN + 51 + + + 2 THEN - 27 * - - 85 + - + MAX( ALL + + 53 ) WHEN + 77 - - 97 THEN + 33 WHEN 44 * + 88 + + 75 / 18 THEN + - 98 * 42 + - 23 END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2136
SELECT DISTINCT - 20 + + - CASE + 32 WHEN + 51 + + + 2 THEN - 27 * - - 85 + - + MAX ( ALL + + 53 ) WHEN + 77 - - 97 THEN + 33 WHEN 44 * + 88 + + 75 / 18 THEN + - 98 * 42 + - 23 END + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 17 + + 29 AS col1
----
46

query I rowsort
SELECT DISTINCT - 59 + - - 55 AS col1
----
-4

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

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

query II rowsort
SELECT + 16 AS col2, 20
----
16
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT + MIN( + 54 ) * + 0 + - COUNT( * ) + - + 90
----
-91

skipif mysql # not compatible
query I rowsort label-2141
SELECT + MIN ( + 54 ) * + 0 + - COUNT ( * ) + - + 90
----
-91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT ALL 6 - + + 61 + 10 + - + COUNT( * ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-2143
SELECT ALL 6 - + + 61 + 10 + - + COUNT ( * ) AS col2
----
-46

query I rowsort
SELECT ALL - 16 * + 84 * + - 4
----
5376

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2145
SELECT 92 * + - CAST( + - 97 AS SIGNED ) AS col0
----
8924

skipif mysql # not compatible
query I rowsort label-2145
SELECT 92 * + - CAST ( + - 97 AS INTEGER ) AS col0
----
8924

query II rowsort
SELECT ALL - 53 * 66 AS col1, 3 * - 51 AS col2
----
-3498
-153

query I rowsort
SELECT ALL - 44 * - + 18 * - 17 AS col0
----
-13464

query II rowsort
SELECT ALL - ( - + 78 ), - 12 * + + 31 + + + ( + 71 ) AS col2
----
78
-301

query I rowsort
SELECT ALL - 26 * 74 AS col1
----
-1924

onlyif mysql # DIV for integer division: 
query I rowsort label-2150
SELECT 45 DIV - 19 + - 32 + + + 96
----
62

skipif mysql # not compatible
query I rowsort label-2150
SELECT 45 / - 19 + - 32 + + + 96
----
62

query I rowsort
SELECT ( + 87 ) + - - 9 + - 70 AS col0
----
26

query I rowsort
SELECT 43 * 20
----
860

onlyif mysql # DIV for integer division: 
query I rowsort label-2153
SELECT ALL 34 DIV - 53 * 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2153
SELECT ALL 34 / - 53 * 71 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT DISTINCT SUM( + 13 ) * - 46 AS col0
----
-598

skipif mysql # not compatible
query I rowsort label-2154
SELECT DISTINCT SUM ( + 13 ) * - 46 AS col0
----
-598

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT DISTINCT - MAX( + + 40 ) col1
----
-40

skipif mysql # not compatible
query I rowsort label-2155
SELECT DISTINCT - MAX ( + + 40 ) col1
----
-40

query I rowsort
SELECT 33 * - 4 AS col0
----
-132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2157
SELECT ALL - COALESCE ( - 67, + 19 * - COUNT( * ) + - 36 + - ( - 91 ), + COALESCE ( + - COUNT( ALL + 20 ), 32 * + 62 * 35 + + CASE + - COUNT( * ) WHEN - 29 + - NULLIF ( + - MAX( - 64 ), COUNT( ALL + 97 ) ) THEN 96 + - COUNT( * ) - 16 * CASE + - ( + + 57 ) WHEN - 79 * 45 * 12 THEN MAX( ALL ( 39 ) ) WHEN - 77 THEN NULL END * 45 WHEN 11 + + 58 THEN 98 ELSE NULL END + + 59 ) DIV 57 )
----
67

skipif mysql # not compatible
query I rowsort label-2157
SELECT ALL - COALESCE ( - 67, + 19 * - COUNT ( * ) + - 36 + - ( - 91 ), + COALESCE ( + - COUNT ( ALL + 20 ), 32 * + 62 * 35 + + CASE + - COUNT ( * ) WHEN - 29 + - NULLIF ( + - MAX ( - 64 ), COUNT ( ALL + 97 ) ) THEN 96 + - COUNT ( * ) - 16 * CASE + - ( + + 57 ) WHEN - 79 * 45 * 12 THEN MAX ( ALL ( 39 ) ) WHEN - 77 THEN NULL END * 45 WHEN 11 + + 58 THEN 98 ELSE NULL END + + 59 ) / 57 )
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2158
SELECT ALL CAST( 59 AS SIGNED ) + - 94 + + - 33 * + COUNT( * ) * - COALESCE ( + ( - 27 ), + COUNT( * ) DIV - 32 + + - 89 * 60 + - 18 ) + + 92
----
-834

skipif mysql # not compatible
query I rowsort label-2158
SELECT ALL CAST ( 59 AS INTEGER ) + - 94 + + - 33 * + COUNT ( * ) * - COALESCE ( + ( - 27 ), + COUNT ( * ) / - 32 + + - 89 * 60 + - 18 ) + + 92
----
-834

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT DISTINCT COUNT( * ) * - 63 * - + 95 * 1
----
5985

skipif mysql # not compatible
query I rowsort label-2159
SELECT DISTINCT COUNT ( * ) * - 63 * - + 95 * 1
----
5985

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2161
SELECT ( - CAST( NULL AS SIGNED ) ) * - 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2161
SELECT ( - CAST ( NULL AS INTEGER ) ) * - 59 AS col1
----
NULL

query I rowsort
SELECT - 7 * + 73 * + + 98 AS col0
----
-50078

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2163
SELECT DISTINCT + NULLIF ( - + 63, - + NULLIF ( - 3, - 58 * COALESCE ( + 76, + + 74 * + - 54 / + 36 + + ( + COUNT( * ) ) ) ) ) + 55 + - 15 + - COUNT( * ) + - CASE - 13 WHEN + 89 * + CASE 6 WHEN + 47 * - 99 - + + 42 + - - 61 / - + ( - - 66 ) + + 29 + - + 47 + - 77 / - + COUNT( * ) + + 50 THEN + ( + 91 ) + 88 WHEN COUNT( * ) + 41 THEN NULL ELSE NULL END / - AVG ( DISTINCT - 35 ) THEN NULL WHEN - 80 THEN COALESCE ( COUNT( * ), 11 ) * 86 + 30 END * 0 / - COUNT( - 0 * 8 + CAST( 34 AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2163
SELECT DISTINCT + NULLIF ( - + 63, - + NULLIF ( - 3, - 58 * COALESCE ( + 76, + + 74 * + - 54 / + 36 + + ( + COUNT ( * ) ) ) ) ) + 55 + - 15 + - COUNT ( * ) + - CASE - 13 WHEN + 89 * + CASE 6 WHEN + 47 * - 99 - + + 42 + - - 61 / - + ( - - 66 ) + + 29 + - + 47 + - 77 / - + COUNT ( * ) + + 50 THEN + ( + 91 ) + 88 WHEN COUNT ( * ) + 41 THEN NULL ELSE NULL END / - AVG ( DISTINCT - 35 ) THEN NULL WHEN - 80 THEN COALESCE ( COUNT ( * ), 11 ) * 86 + 30 END * 0 / - COUNT ( - 0 * 8 + CAST ( 34 AS INTEGER ) ) AS col2
----
NULL

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

query I rowsort
SELECT - 73 - + 8 AS col2
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-2166
SELECT ALL MAX( - - 67 ) AS col2, 1
----
67
1

skipif mysql # not compatible
query II rowsort label-2166
SELECT ALL MAX ( - - 67 ) AS col2, 1
----
67
1

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

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

query I rowsort
SELECT + NULLIF ( 71, + 40 ) AS col2
----
71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2169
SELECT ALL + CAST( NULL AS DECIMAL ) + 38 + - 96 * + 94 + - COUNT( * ) + + 31 + - 25 * + 47 * - 62 * 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2169
SELECT ALL + CAST ( NULL AS REAL ) + 38 + - 96 * + 94 + - COUNT ( * ) + + 31 + - 25 * + 47 * - 62 * 53 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2170
SELECT DISTINCT 88 + + + CAST( NULL AS SIGNED ) / + - NULLIF ( + 99, - + MAX( 10 ) + - - 98 + COALESCE ( - NULLIF ( CAST( NULL AS SIGNED ), + 4 * + - 49 * - 13 ), + 25 ) * - ( - 4 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2170
SELECT DISTINCT 88 + + + CAST ( NULL AS INTEGER ) / + - NULLIF ( + 99, - + MAX ( 10 ) + - - 98 + COALESCE ( - NULLIF ( CAST ( NULL AS INTEGER ), + 4 * + - 49 * - 13 ), + 25 ) * - ( - 4 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2171
SELECT 21 - + 42 AS col2, + COUNT( ALL 22 ) AS col1
----
-21
1

skipif mysql # not compatible
query II rowsort label-2171
SELECT 21 - + 42 AS col2, + COUNT ( ALL 22 ) AS col1
----
-21
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2172
SELECT DISTINCT - + 85 * - + 77 col2, CAST( NULL AS SIGNED )
----
6545
NULL

skipif mysql # not compatible
query II rowsort label-2172
SELECT DISTINCT - + 85 * - + 77 col2, CAST ( NULL AS INTEGER )
----
6545
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2173
SELECT - 80 + + + 64 DIV + NULLIF ( - 42, + 55 + - - 4 + - - ( - MIN( ALL - 55 ) ) + + + 31 + + 53 + + - COUNT( + 88 ) + + - 93 - + - 84 ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-2173
SELECT - 80 + + + 64 / + NULLIF ( - 42, + 55 + - - 4 + - - ( - MIN ( ALL - 55 ) ) + + + 31 + + 53 + + - COUNT ( + 88 ) + + - 93 - + - 84 ) AS col0
----
-81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2174
SELECT - ( - ( + 44 ) ) * + COALESCE ( NULLIF ( - 3, + + 16 + 36 - + CAST( NULL AS SIGNED ) ), 18 ) * + 40 + 59 DIV + 32 AS col2
----
-5279

skipif mysql # not compatible
query I rowsort label-2174
SELECT - ( - ( + 44 ) ) * + COALESCE ( NULLIF ( - 3, + + 16 + 36 - + CAST ( NULL AS INTEGER ) ), 18 ) * + 40 + 59 / + 32 AS col2
----
-5279

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT - 89 * + - COUNT( * ) * 77
----
6853

skipif mysql # not compatible
query I rowsort label-2175
SELECT - 89 * + - COUNT ( * ) * 77
----
6853

query I rowsort
SELECT DISTINCT - 64 * 64
----
-4096

query I rowsort
SELECT 0 + - - 29
----
29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2178
SELECT 92 + COALESCE ( + COUNT( * ), - + 29 ) * - MAX( ALL CAST( NULL AS DECIMAL ) ) * - ( 1 ) + - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-2178
SELECT 92 + COALESCE ( + COUNT ( * ), - + 29 ) * - MAX ( ALL CAST ( NULL AS REAL ) ) * - ( 1 ) + - 27
----
NULL

query I rowsort
SELECT 99 * + ( - 14 ) * - 85
----
117810

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT 2 + - - COUNT( * ) + - 9 + + + 49 * 12
----
582

skipif mysql # not compatible
query I rowsort label-2180
SELECT 2 + - - COUNT ( * ) + - 9 + + + 49 * 12
----
582

onlyif mysql # DIV for integer division: 
query I rowsort label-2181
SELECT DISTINCT + 67 DIV 47 * 77 DIV + 41
----
1

skipif mysql # not compatible
query I rowsort label-2181
SELECT DISTINCT + 67 / 47 * 77 / + 41
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT DISTINCT - 40 - - + ( COUNT( ALL + 16 ) ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-2182
SELECT DISTINCT - 40 - - + ( COUNT ( ALL + 16 ) ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT ALL MIN( DISTINCT + + 17 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-2183
SELECT ALL MIN ( DISTINCT + + 17 ) AS col0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2184
SELECT 89 * - 79 * - 19, + 75 * - + CAST( - - 41 AS SIGNED ) AS col1
----
133589
-3075

skipif mysql # not compatible
query II rowsort label-2184
SELECT 89 * - 79 * - 19, + 75 * - + CAST ( - - 41 AS INTEGER ) AS col1
----
133589
-3075

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2186
SELECT DISTINCT + ( 42 ) DIV MIN( - + CASE 70 WHEN + - 43 THEN NULL WHEN 97 + 67 THEN NULL ELSE + 64 END )
----
0

skipif mysql # not compatible
query I rowsort label-2186
SELECT DISTINCT + ( 42 ) / MIN ( - + CASE 70 WHEN + - 43 THEN NULL WHEN 97 + 67 THEN NULL ELSE + 64 END )
----
0

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

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

query I rowsort
SELECT 14 - - - 57
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2189
SELECT DISTINCT + MAX( - 27 ) * - CAST( NULL AS SIGNED ) * 71 * - SUM( + 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2189
SELECT DISTINCT + MAX ( - 27 ) * - CAST ( NULL AS INTEGER ) * 71 * - SUM ( + 90 )
----
NULL

query II rowsort
SELECT + 78, 20 AS col2
----
78
20

query I rowsort
SELECT DISTINCT - 5 * 6
----
-30

query I rowsort
SELECT 43 * - + 43 AS col2
----
-1849

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2193
SELECT DISTINCT - CAST( - CAST( + 35 AS SIGNED ) AS SIGNED ) * - 2 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-2193
SELECT DISTINCT - CAST ( - CAST ( + 35 AS INTEGER ) AS INTEGER ) * - 2 AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT + CASE + 8 WHEN 97 * + COUNT( * ) * + 85 THEN NULL WHEN - COUNT( * ) THEN + 33 END - + 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2194
SELECT + CASE + 8 WHEN 97 * + COUNT ( * ) * + 85 THEN NULL WHEN - COUNT ( * ) THEN + 33 END - + 81 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2195
SELECT ALL + - AVG ( - + ( - + CASE WHEN + 8 BETWEEN + + 65 AND + + 70 THEN - 45 END ) ) AS col1, + 60 DIV + - 60 + - 68 AS col0
----
NULL
-69

skipif mysql # not compatible
query II rowsort label-2195
SELECT ALL + - AVG ( - + ( - + CASE WHEN + 8 BETWEEN + + 65 AND + + 70 THEN - 45 END ) ) AS col1, + 60 / + - 60 + - 68 AS col0
----
NULL
-69

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2197
SELECT + COUNT( * ) * + - CAST( NULL AS SIGNED ) + + + 89 * 36 * 7 * - CASE - + 10 WHEN + 70 * 49 + + CAST( NULL AS SIGNED ) - + - 96 - - 12 * + - 50 + - + 47 THEN CASE + 12 WHEN - 14 / + + CAST( NULL AS SIGNED ) THEN - ( - CAST( - COUNT( - 21 ) AS SIGNED ) ) + 1 WHEN + 99 * - 60 * + - 56 / - 40 THEN - 43 END * + 44 * + 61 ELSE 98 + + + 59 + - - ( - - 84 ) * + 72 END + COUNT( * ) * 95
----
NULL

skipif mysql # not compatible
query I rowsort label-2197
SELECT + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) + + + 89 * 36 * 7 * - CASE - + 10 WHEN + 70 * 49 + + CAST ( NULL AS INTEGER ) - + - 96 - - 12 * + - 50 + - + 47 THEN CASE + 12 WHEN - 14 / + + CAST ( NULL AS INTEGER ) THEN - ( - CAST ( - COUNT ( - 21 ) AS INTEGER ) ) + 1 WHEN + 99 * - 60 * + - 56 / - 40 THEN - 43 END * + 44 * + 61 ELSE 98 + + + 59 + - - ( - - 84 ) * + 72 END + COUNT ( * ) * 95
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2198
SELECT 80 * - - 89 - + COALESCE ( - 47, 65, + 55 DIV + 85 ) + - 66, + 35 AS col2
----
7101
35

skipif mysql # not compatible
query II rowsort label-2198
SELECT 80 * - - 89 - + COALESCE ( - 47, 65, + 55 / + 85 ) + - 66, + 35 AS col2
----
7101
35

query I rowsort
SELECT + + COALESCE ( + + 74, - 53 ) + - 12
----
62

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

query I rowsort
SELECT ALL 10 * 3 col1
----
30

query I rowsort
SELECT DISTINCT 62 * + 51 + - 2 col1
----
3160

query I rowsort
SELECT DISTINCT + 92 + 20 - + - 3
----
115

query I rowsort
SELECT + NULLIF ( ( - + 54 ), + 26 )
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2205
SELECT - 37 / - 61 + + - CAST( NULL AS SIGNED ), - COUNT( * ) * + 68 * + 23 AS col1
----
NULL
-1564

skipif mysql # not compatible
query II rowsort label-2205
SELECT - 37 / - 61 + + - CAST ( NULL AS INTEGER ), - COUNT ( * ) * + 68 * + 23 AS col1
----
NULL
-1564

query I rowsort
SELECT + 4 * 53 + + + 89 + - + 44
----
257

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2207
SELECT DISTINCT - COUNT( DISTINCT CAST( - 89 AS DECIMAL ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2207
SELECT DISTINCT - COUNT ( DISTINCT CAST ( - 89 AS REAL ) ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2208
SELECT ALL + 10 - CAST( NULL AS SIGNED ) + - + CAST( + - AVG ( DISTINCT 93 ) AS SIGNED ) + + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-2208
SELECT ALL + 10 - CAST ( NULL AS INTEGER ) + - + CAST ( + - AVG ( DISTINCT 93 ) AS INTEGER ) + + 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT + + 4 * MAX( DISTINCT - 8 ) * + - 36
----
1152

skipif mysql # not compatible
query I rowsort label-2209
SELECT + + 4 * MAX ( DISTINCT - 8 ) * + - 36
----
1152

query I rowsort
SELECT + 41 * 94 + + 92 AS col1
----
3946

query I rowsort
SELECT + - ( + - 72 ) * + + 14 * + 31 + + 85
----
31333

query I rowsort
SELECT ALL - 24 * - 81
----
1944

onlyif mysql # aggregate syntax: 
query II rowsort label-2213
SELECT DISTINCT SUM( - 15 ) AS col2, + COUNT( * ) AS col0
----
-15
1

skipif mysql # not compatible
query II rowsort label-2213
SELECT DISTINCT SUM ( - 15 ) AS col2, + COUNT ( * ) AS col0
----
-15
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2214
SELECT DISTINCT - CAST( 98 AS SIGNED ) * - 15
----
1470

skipif mysql # not compatible
query I rowsort label-2214
SELECT DISTINCT - CAST ( 98 AS INTEGER ) * - 15
----
1470

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT - CASE - NULLIF ( ( + + COUNT( * ) ), + 0 * 80 ) WHEN + 57 THEN NULL ELSE + - 68 END AS col1
----
68

skipif mysql # not compatible
query I rowsort label-2216
SELECT - CASE - NULLIF ( ( + + COUNT ( * ) ), + 0 * 80 ) WHEN + 57 THEN NULL ELSE + - 68 END AS col1
----
68

query I rowsort
SELECT + ( - - 62 ) * + 57
----
3534

query I rowsort
SELECT - 52 * - 72 AS col1
----
3744

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT DISTINCT + COUNT( DISTINCT + ( + 43 ) ) * - + 74
----
-74

skipif mysql # not compatible
query I rowsort label-2219
SELECT DISTINCT + COUNT ( DISTINCT + ( + 43 ) ) * - + 74
----
-74

query I rowsort
SELECT + 99 - + - 3 AS col2
----
102

query I rowsort
SELECT - 16 + - 12 AS col2
----
-28

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

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

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

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

query II rowsort
SELECT - 79, 47 * CASE - - 54 WHEN + 95 THEN + 23 ELSE + 24 END + + 98 * 90 * 4 AS col1
----
-79
36408

onlyif mysql # DIV for integer division: 
query I rowsort label-2225
SELECT ALL 44 DIV - 18 + + + 20 * + 53
----
1058

skipif mysql # not compatible
query I rowsort label-2225
SELECT ALL 44 / - 18 + + + 20 * + 53
----
1058

query II rowsort
SELECT ALL + 88 AS col2, + 38 AS col1
----
88
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2227
SELECT DISTINCT ( - COALESCE ( + 49, - + COUNT( * ) ) ) DIV 71 + + COUNT( * ) AS col0, 68 AS col2
----
1
68

skipif mysql # not compatible
query II rowsort label-2227
SELECT DISTINCT ( - COALESCE ( + 49, - + COUNT ( * ) ) ) / 71 + + COUNT ( * ) AS col0, 68 AS col2
----
1
68

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

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

query I rowsort
SELECT - - 76 * - - 6 AS col2
----
456

onlyif mysql # DIV for integer division: 
query I rowsort label-2230
SELECT ALL - 71 DIV + 38 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2230
SELECT ALL - 71 / + 38 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT ALL - COUNT( * ) * - 90 * - 94 + 54 - 28 * - 87
----
-5970

skipif mysql # not compatible
query I rowsort label-2231
SELECT ALL - COUNT ( * ) * - 90 * - 94 + 54 - 28 * - 87
----
-5970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2232
SELECT ALL - CASE - COALESCE ( - 31, + + COUNT( * ) * + + 11 * + - 31, + 1 ) WHEN + 45 - + 18 * 57 THEN NULL WHEN + COUNT( * ) / - 2 * - CAST( - + 20 AS SIGNED ) THEN - 4 ELSE - + 38 END * - 0 + + + 47
----
47

skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL - CASE - COALESCE ( - 31, + + COUNT ( * ) * + + 11 * + - 31, + 1 ) WHEN + 45 - + 18 * 57 THEN NULL WHEN + COUNT ( * ) / - 2 * - CAST ( - + 20 AS INTEGER ) THEN - 4 ELSE - + 38 END * - 0 + + + 47
----
47

query I rowsort
SELECT ALL 60 * 34 + - 28
----
2012

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

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

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

skipif mysql # not compatible
query I rowsort label-2235
SELECT DISTINCT + - COUNT ( * ) * CAST ( + 15 AS INTEGER ) / 15 * 91 / - - 6
----
-15

query II rowsort
SELECT ALL + 71 AS col2, - CASE + 89 WHEN + 1 * 68 THEN 72 * - 46 ELSE 71 END AS col0
----
71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT + + 19 * + - SUM( 32 ) + 73 AS col1
----
-535

skipif mysql # not compatible
query I rowsort label-2237
SELECT + + 19 * + - SUM ( 32 ) + 73 AS col1
----
-535

query I rowsort
SELECT - - 75 * - 57
----
-4275

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2239
SELECT + MAX( ALL + 95 ) * + 35 - - 68 DIV - 89 * + + 46
----
3325

skipif mysql # not compatible
query I rowsort label-2239
SELECT + MAX ( ALL + 95 ) * + 35 - - 68 / - 89 * + + 46
----
3325

onlyif mysql # DIV for integer division: 
query II rowsort label-2240
SELECT ALL + + 1 DIV - + 49, - 50 AS col2
----
0
-50

skipif mysql # not compatible
query II rowsort label-2240
SELECT ALL + + 1 / - + 49, - 50 AS col2
----
0
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-2241
SELECT + 7 DIV + 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2241
SELECT + 7 / + 92 AS col1
----
0

query I rowsort
SELECT ALL - 87 * + 21
----
-1827

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-2243
SELECT CASE + 13 WHEN CASE - MIN( - 58 ) WHEN - - CAST( - - ( - 49 ) AS SIGNED ) * + + 53 THEN NULL WHEN + 18 * + 29 + NULLIF ( + 5, - CASE + 75 WHEN - 48 THEN COUNT( * ) + - 98 END - 98 ) THEN - 97 + + CAST( + 19 AS SIGNED ) WHEN + 35 THEN NULL WHEN COUNT( * ) * + + ( - 33 ) THEN COUNT( * ) END THEN + COUNT( + CAST( NULL AS DECIMAL ) ) - - 5 WHEN - + 92 - + - 66 THEN NULL ELSE - 34 * 66 DIV - 97 END * - 38 + 76 + + 62 * 20 + 24 AS col1
----
466

skipif mysql # not compatible
query I rowsort label-2243
SELECT CASE + 13 WHEN CASE - MIN ( - 58 ) WHEN - - CAST ( - - ( - 49 ) AS INTEGER ) * + + 53 THEN NULL WHEN + 18 * + 29 + NULLIF ( + 5, - CASE + 75 WHEN - 48 THEN COUNT ( * ) + - 98 END - 98 ) THEN - 97 + + CAST ( + 19 AS INTEGER ) WHEN + 35 THEN NULL WHEN COUNT ( * ) * + + ( - 33 ) THEN COUNT ( * ) END THEN + COUNT ( + CAST ( NULL AS REAL ) ) - - 5 WHEN - + 92 - + - 66 THEN NULL ELSE - 34 * 66 / - 97 END * - 38 + 76 + + 62 * 20 + 24 AS col1
----
466

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2244
SELECT ALL COALESCE ( CAST( NULL AS SIGNED ), - COALESCE ( 40, - 46 - + 93 + + + 94, - - 1 + - 70 * - 66 ) DIV + 61 + - 99, + ( - 34 ) * 13 - - + 51 ) * - CASE + - 84 WHEN + ( 49 ) THEN NULL ELSE + 42 END
----
4158

skipif mysql # not compatible
query I rowsort label-2244
SELECT ALL COALESCE ( CAST ( NULL AS INTEGER ), - COALESCE ( 40, - 46 - + 93 + + + 94, - - 1 + - 70 * - 66 ) / + 61 + - 99, + ( - 34 ) * 13 - - + 51 ) * - CASE + - 84 WHEN + ( 49 ) THEN NULL ELSE + 42 END
----
4158

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT + 35 - 95 * 25 * - - 0 * - 29 * + - SUM( ALL + + ( + + 55 ) ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-2245
SELECT + 35 - 95 * 25 * - - 0 * - 29 * + - SUM ( ALL + + ( + + 55 ) ) AS col1
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2246
SELECT + 53 * + + CASE + - COALESCE ( 24, + + 80 / - + 91, + ( - 54 ) ) WHEN - 17 * + 54 + COALESCE ( 27, - - COUNT( * ) - + - 26 ) THEN 11 * ( - COALESCE ( ( - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ), + 71 ) ) + - 88 - + MIN( - + 27 ) * SUM( - + 97 ) ELSE - 46 END
----
-2438

skipif mysql # not compatible
query I rowsort label-2246
SELECT + 53 * + + CASE + - COALESCE ( 24, + + 80 / - + 91, + ( - 54 ) ) WHEN - 17 * + 54 + COALESCE ( 27, - - COUNT ( * ) - + - 26 ) THEN 11 * ( - COALESCE ( ( - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ), + 71 ) ) + - 88 - + MIN ( - + 27 ) * SUM ( - + 97 ) ELSE - 46 END
----
-2438

onlyif mysql # DIV for integer division: 
query I rowsort label-2247
SELECT + 99 + - 15 DIV + - 33
----
99

skipif mysql # not compatible
query I rowsort label-2247
SELECT + 99 + - 15 / + - 33
----
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT DISTINCT 22 + - 13 + - 58 + COUNT( * ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-2249
SELECT DISTINCT 22 + - 13 + - 58 + COUNT ( * ) AS col2
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2250
SELECT + 52 + - CAST( NULL AS SIGNED ), - COUNT( * ) * - - 45 AS col0
----
NULL
-45

skipif mysql # not compatible
query II rowsort label-2250
SELECT + 52 + - CAST ( NULL AS INTEGER ), - COUNT ( * ) * - - 45 AS col0
----
NULL
-45

query I rowsort
SELECT ALL 57 + - 59 - + + ( - + 2 ) col2
----
0

query I rowsort
SELECT ALL NULLIF ( - 84, - - 37 + 46 ) AS col0
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2253
SELECT ALL 75 + + + 59, - CASE - - SUM( ALL + 55 ) WHEN - 94 THEN CAST( NULL AS SIGNED ) WHEN 63 * + 41 / - - 86 THEN NULL END col1
----
134
NULL

skipif mysql # not compatible
query II rowsort label-2253
SELECT ALL 75 + + + 59, - CASE - - SUM ( ALL + 55 ) WHEN - 94 THEN CAST ( NULL AS INTEGER ) WHEN 63 * + 41 / - - 86 THEN NULL END col1
----
134
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2254
SELECT DISTINCT CAST( + 34 AS SIGNED ) + - 95 + + + 8
----
-53

skipif mysql # not compatible
query I rowsort label-2254
SELECT DISTINCT CAST ( + 34 AS INTEGER ) + - 95 + + + 8
----
-53

query I rowsort
SELECT ALL 45 + - COALESCE ( 16, + - 60 ) AS col2
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2256
SELECT DISTINCT - CASE - 67 WHEN - + 52 * - 2 * 48 + 29 * - 43 - CASE - - 16 WHEN + 68 + + 73 / 93 THEN + - 2 - - 91 WHEN 45 THEN NULL END + - 47 / - ( AVG ( ALL - - NULLIF ( - 11, 55 + - 47 / - 30 ) ) ) THEN - 32 * 13 WHEN 33 THEN 83 WHEN + 83 * + - 46 * + COALESCE ( + CAST( NULL AS SIGNED ), + 29 / + 55 + - - CAST( - 91 AS SIGNED ) + + COUNT( * ) + 56 ) / 52 + + COUNT( * ) THEN 5 + + 54 * 37 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2256
SELECT DISTINCT - CASE - 67 WHEN - + 52 * - 2 * 48 + 29 * - 43 - CASE - - 16 WHEN + 68 + + 73 / 93 THEN + - 2 - - 91 WHEN 45 THEN NULL END + - 47 / - ( AVG ( ALL - - NULLIF ( - 11, 55 + - 47 / - 30 ) ) ) THEN - 32 * 13 WHEN 33 THEN 83 WHEN + 83 * + - 46 * + COALESCE ( + CAST ( NULL AS INTEGER ), + 29 / + 55 + - - CAST ( - 91 AS INTEGER ) + + COUNT ( * ) + 56 ) / 52 + + COUNT ( * ) THEN 5 + + 54 * 37 END col0
----
NULL

query I rowsort
SELECT DISTINCT - 42 * + - 54
----
2268

query II rowsort
SELECT DISTINCT + 36 + + 75 AS col0, - 17 AS col2
----
111
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT ALL 14 * + NULLIF ( + MIN( ALL 50 ), + ( - COALESCE ( - - COUNT( * ), - 8 * + 5 + + - AVG ( DISTINCT - ( + 83 ) ) * - - 68 ) ) ) AS col1
----
700

skipif mysql # not compatible
query I rowsort label-2259
SELECT ALL 14 * + NULLIF ( + MIN ( ALL 50 ), + ( - COALESCE ( - - COUNT ( * ), - 8 * + 5 + + - AVG ( DISTINCT - ( + 83 ) ) * - - 68 ) ) ) AS col1
----
700

query I rowsort
SELECT + COALESCE ( - 90, + 82 ) AS col1
----
-90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT + CASE - 66 WHEN + 94 THEN - 96 * - - 99 - + CASE + - 7 WHEN + - 41 THEN NULL ELSE 73 * - - MAX( - - 6 ) END - + - SUM( DISTINCT + 5 ) * + 67 * + 55 / 94 * + 13 + - + COUNT( * ) END - - 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2262
SELECT + CASE - 66 WHEN + 94 THEN - 96 * - - 99 - + CASE + - 7 WHEN + - 41 THEN NULL ELSE 73 * - - MAX ( - - 6 ) END - + - SUM ( DISTINCT + 5 ) * + 67 * + 55 / 94 * + 13 + - + COUNT ( * ) END - - 44 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2263
SELECT COUNT ( DISTINCT 68 ) * + 95 AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT ALL - + MIN( ALL + ( + 26 ) ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-2264
SELECT ALL - + MIN ( ALL + ( + 26 ) ) AS col1
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2265
SELECT + 45 * - 93 DIV - COUNT( * ) * COUNT( * ) - 37 + - - 88
----
4236

skipif mysql # not compatible
query I rowsort label-2265
SELECT + 45 * - 93 / - COUNT ( * ) * COUNT ( * ) - 37 + - - 88
----
4236

query I rowsort
SELECT 27 - + 87 * + 66 AS col1
----
-5715

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT ALL - COUNT( * ) - - - 18 + - ( 18 ) + ( NULLIF ( 85, + 71 ) ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-2267
SELECT ALL - COUNT ( * ) - - - 18 + - ( 18 ) + ( NULLIF ( 85, + 71 ) ) AS col1
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2268
SELECT + ( + CAST( - + 17 AS SIGNED ) ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-2268
SELECT + ( + CAST ( - + 17 AS INTEGER ) ) AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT + - 91 * - COUNT( * ) + + 74 AS col1
----
165

skipif mysql # not compatible
query I rowsort label-2269
SELECT + - 91 * - COUNT ( * ) + + 74 AS col1
----
165

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

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

query I rowsort
SELECT 6 + - 12 + + 82 * + 69 + 12 AS col1
----
5664

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2272
SELECT ALL + - 65 * + 70 + + + 46 + - ( + 50 ) - + + 49 + - + 12 DIV + + COUNT( * ) AS col0
----
-4615

skipif mysql # not compatible
query I rowsort label-2272
SELECT ALL + - 65 * + 70 + + + 46 + - ( + 50 ) - + + 49 + - + 12 / + + COUNT ( * ) AS col0
----
-4615

query I rowsort
SELECT - AVG ( DISTINCT + - 23 ) + + 49 * - + 77 + + CASE - + 1 WHEN - 43 THEN - 1 END
----
NULL

query I rowsort
SELECT DISTINCT - 49 * + 13 - 33 col0
----
-670

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT DISTINCT - + CASE - - 14 WHEN + ( - CASE 0 WHEN - - 25 THEN NULL WHEN - 48 THEN NULL WHEN + 54 THEN - - NULLIF ( + - 26, - 52 * + 61 * + COUNT( * ) ) ELSE COUNT( ALL 57 ) + - 94 * + 12 + 18 END ) + - 53 THEN - + 64 + 62 WHEN - 13 + 57 THEN + 96 - 93 * - + 26 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2276
SELECT DISTINCT - + CASE - - 14 WHEN + ( - CASE 0 WHEN - - 25 THEN NULL WHEN - 48 THEN NULL WHEN + 54 THEN - - NULLIF ( + - 26, - 52 * + 61 * + COUNT ( * ) ) ELSE COUNT ( ALL 57 ) + - 94 * + 12 + 18 END ) + - 53 THEN - + 64 + 62 WHEN - 13 + 57 THEN + 96 - 93 * - + 26 END
----
NULL

query I rowsort
SELECT + NULLIF ( + 69, 93 )
----
69

query II rowsort
SELECT + 43 AS col2, + 35 * + - 22
----
43
-770

query I rowsort
SELECT 27 + + - 10 AS col1
----
17

query II rowsort
SELECT ALL 45 AS col0, 73 * + 72
----
45
5256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2281
SELECT 2 * - SUM( 93 ), + 28 - CAST( NULL AS SIGNED ) + - 68 + 93 AS col2
----
-186
NULL

skipif mysql # not compatible
query II rowsort label-2281
SELECT 2 * - SUM ( 93 ), + 28 - CAST ( NULL AS INTEGER ) + - 68 + 93 AS col2
----
-186
NULL

query I rowsort
SELECT DISTINCT 35 + - 65 AS col1
----
-30

query I rowsort
SELECT ALL 70 + 61 AS col1
----
131

onlyif mysql # aggregate syntax: 
query II rowsort label-2284
SELECT 27 * - 91 * - 2, + COUNT( ALL - + 74 ) AS col1
----
4914
1

skipif mysql # not compatible
query II rowsort label-2284
SELECT 27 * - 91 * - 2, + COUNT ( ALL - + 74 ) AS col1
----
4914
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT DISTINCT 5 + + - COUNT( * ) col1
----
4

skipif mysql # not compatible
query I rowsort label-2285
SELECT DISTINCT 5 + + - COUNT ( * ) col1
----
4

query II rowsort
SELECT DISTINCT 22 * - 73 * - 77 AS col2, - 88 * 25
----
123662
-2200

query II rowsort
SELECT - 68, + 24 AS col2
----
-68
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT 59 + + COUNT( * ) * - + 21 * 2
----
17

skipif mysql # not compatible
query I rowsort label-2288
SELECT 59 + + COUNT ( * ) * - + 21 * 2
----
17

query II rowsort
SELECT ( + 94 ) + + 34 AS col2, - 51 - - 71 col0
----
128
20

query I rowsort
SELECT 42 * - 83 * - - 29
----
-101094

query I rowsort
SELECT DISTINCT + ( 6 ) * 83 AS col2
----
498

query I rowsort
SELECT ( 36 ) + + 67 AS col2
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2293
SELECT SUM( + 72 ) - 71 + 84 + + COUNT( * ) DIV + - 16 * 53
----
85

skipif mysql # not compatible
query I rowsort label-2293
SELECT SUM ( + 72 ) - 71 + 84 + + COUNT ( * ) / + - 16 * 53
----
85

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2295
SELECT - + ( MIN( - 37 ) ) col1, 50 + + ( + ( - 83 ) ) + 77 * 92 * + CAST( 37 AS SIGNED ) * + - 83 AS col1
----
37
-21754997

skipif mysql # not compatible
query II rowsort label-2295
SELECT - + ( MIN ( - 37 ) ) col1, 50 + + ( + ( - 83 ) ) + 77 * 92 * + CAST ( 37 AS INTEGER ) * + - 83 AS col1
----
37
-21754997

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2296
SELECT ALL - CAST( NULLIF ( - CASE WHEN NOT 40 < NULL THEN MIN( + CAST( NULL AS SIGNED ) ) ELSE NULL END, + 50 + 18 ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2296
SELECT ALL - CAST ( NULLIF ( - CASE WHEN NOT 40 < NULL THEN MIN ( + CAST ( NULL AS INTEGER ) ) ELSE NULL END, + 50 + 18 ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2297
SELECT + + CAST( - SUM( ALL + 30 ) AS SIGNED ) DIV + 3 + ( - 45 ) + ( + 31 ) * - + 60 * 44
----
-81895

skipif mysql # not compatible
query I rowsort label-2297
SELECT + + CAST ( - SUM ( ALL + 30 ) AS INTEGER ) / + 3 + ( - 45 ) + ( + 31 ) * - + 60 * 44
----
-81895

query I rowsort
SELECT ALL + 13 * 78
----
1014

query I rowsort
SELECT - 17 * - 96 AS col0
----
1632

query I rowsort
SELECT 41 + 15 AS col0
----
56

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

query I rowsort
SELECT DISTINCT + 80 * - - 57 AS col2
----
4560

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT NULLIF ( + + COUNT( * ), + 40 + + 44 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2304
SELECT NULLIF ( + + COUNT ( * ), + 40 + + 44 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT ALL - MAX( DISTINCT + ( - - 88 ) ) + + - 34 * + 42
----
-1516

skipif mysql # not compatible
query I rowsort label-2305
SELECT ALL - MAX ( DISTINCT + ( - - 88 ) ) + + - 34 * + 42
----
-1516

query I rowsort
SELECT DISTINCT - 54 + 13 AS col2
----
-41

query II rowsort
SELECT ALL - - 73 AS col1, ( 16 )
----
73
16

query I rowsort
SELECT - 16 * + 1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT DISTINCT - 22 + CASE - 90 WHEN 76 * - - 78 + + 93 THEN - 22 * + ( 3 ) WHEN - 98 THEN - COUNT( * ) ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2309
SELECT DISTINCT - 22 + CASE - 90 WHEN 76 * - - 78 + + 93 THEN - 22 * + ( 3 ) WHEN - 98 THEN - COUNT ( * ) ELSE NULL END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2310
SELECT ALL + CAST( 2 AS SIGNED ) + - - 42 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-2310
SELECT ALL + CAST ( 2 AS INTEGER ) + - - 42 AS col1
----
44

query I rowsort
SELECT - 52 * 97 - + 86
----
-5130

query I rowsort
SELECT DISTINCT + ( 88 ) * + 13
----
1144

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT ALL - 32 + - ( 48 ) * COUNT( * ) * - COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-2313
SELECT ALL - 32 + - ( 48 ) * COUNT ( * ) * - COUNT ( * )
----
16

query I rowsort
SELECT ALL + 5 + + ( - 94 )
----
-89

query I rowsort
SELECT - 95 * - 78 + - 99 AS col2
----
7311

onlyif mysql # aggregate syntax: 
query II rowsort label-2316
SELECT - COUNT( * ) - 42 AS col0, + 66 AS col1
----
-43
66

skipif mysql # not compatible
query II rowsort label-2316
SELECT - COUNT ( * ) - 42 AS col0, + 66 AS col1
----
-43
66

query II rowsort
SELECT - 22 - + 31 AS col1, 4 - + + 51
----
-53
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2318
SELECT DISTINCT NULLIF ( 2, + COUNT( * ) * + 44 * + 44 * + 13 * + + 6 * + COUNT( * ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2318
SELECT DISTINCT NULLIF ( 2, + COUNT ( * ) * + 44 * + 44 * + 13 * + + 6 * + COUNT ( * ) ) AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2319
SELECT DISTINCT NULLIF ( - - ( - CASE 19 WHEN - 57 + + COUNT( * ) + + NULLIF ( 49, - CAST( - - COUNT( * ) AS DECIMAL ) / 91 * - 36 + + - 54 + - + 46 ) THEN 92 WHEN - ( 93 ) * - ( - ( + - 44 ) ) + - - COUNT( * ) THEN COUNT( * ) * - 11 * - 83 + - - 25 * + 89 + - - ( - 49 ) END ), 23 * - 99 + + 1 * - 24 - + 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2319
SELECT DISTINCT NULLIF ( - - ( - CASE 19 WHEN - 57 + + COUNT ( * ) + + NULLIF ( 49, - CAST ( - - COUNT ( * ) AS REAL ) / 91 * - 36 + + - 54 + - + 46 ) THEN 92 WHEN - ( 93 ) * - ( - ( + - 44 ) ) + - - COUNT ( * ) THEN COUNT ( * ) * - 11 * - 83 + - - 25 * + 89 + - - ( - 49 ) END ), 23 * - 99 + + 1 * - 24 - + 22 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2320
SELECT ALL CASE - + CASE + 11 WHEN - - COUNT( * ) THEN NULL WHEN 25 + 98 + 85 THEN NULL ELSE 10 END WHEN 40 THEN + COUNT( 84 ) WHEN - 93 * + 47 * + ( - 91 ) + + 59 THEN - - 72 + - CAST( + - 63 AS SIGNED ) + - 1 + + - 67 * - 67 * - ( - COUNT( * ) ) END, - COALESCE ( 58, COUNT( DISTINCT - 19 ), NULLIF ( + + 23, - COUNT( * ) ) ) AS col1
----
NULL
-58

skipif mysql # not compatible
query II rowsort label-2320
SELECT ALL CASE - + CASE + 11 WHEN - - COUNT ( * ) THEN NULL WHEN 25 + 98 + 85 THEN NULL ELSE 10 END WHEN 40 THEN + COUNT ( 84 ) WHEN - 93 * + 47 * + ( - 91 ) + + 59 THEN - - 72 + - CAST ( + - 63 AS INTEGER ) + - 1 + + - 67 * - 67 * - ( - COUNT ( * ) ) END, - COALESCE ( 58, COUNT ( DISTINCT - 19 ), NULLIF ( + + 23, - COUNT ( * ) ) ) AS col1
----
NULL
-58

query I rowsort
SELECT ALL 50 - - - 7 * - 59
----
463

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT + COUNT( * ) * + 42 * - COUNT( * ) + - 89 * 41 AS col2
----
-3691

skipif mysql # not compatible
query I rowsort label-2322
SELECT + COUNT ( * ) * + 42 * - COUNT ( * ) + - 89 * 41 AS col2
----
-3691

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT ALL - 92 * - 35 + + - COUNT( * ) col0
----
3219

skipif mysql # not compatible
query I rowsort label-2323
SELECT ALL - 92 * - 35 + + - COUNT ( * ) col0
----
3219

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT - CASE + 65 WHEN - 1 THEN - 66 ELSE + + 59 * + - 46 + + 64 END + + COUNT( * )
----
2651

skipif mysql # not compatible
query I rowsort label-2324
SELECT - CASE + 65 WHEN - 1 THEN - 66 ELSE + + 59 * + - 46 + + 64 END + + COUNT ( * )
----
2651

query I rowsort
SELECT DISTINCT - + 36 - - 75
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2326
SELECT + 62 + + 96 + - CAST( NULL AS SIGNED ) * - COALESCE ( ( + 41 ), - + NULLIF ( - + 32, + 85 + + 79 * COUNT( * ) - 59 ) + + ( - 36 ) ) * + 94 * - 80 + - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-2326
SELECT + 62 + + 96 + - CAST ( NULL AS INTEGER ) * - COALESCE ( ( + 41 ), - + NULLIF ( - + 32, + 85 + + 79 * COUNT ( * ) - 59 ) + + ( - 36 ) ) * + 94 * - 80 + - 29
----
NULL

query I rowsort
SELECT ALL 32 * - 82 * - 41
----
107584

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT + 71 * MIN( + 29 ) * + 3 - - + 69
----
6246

skipif mysql # not compatible
query I rowsort label-2328
SELECT + 71 * MIN ( + 29 ) * + 3 - - + 69
----
6246

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT DISTINCT COALESCE ( - + ( + - COUNT( 85 ) ), 65 )
----
1

skipif mysql # not compatible
query I rowsort label-2329
SELECT DISTINCT COALESCE ( - + ( + - COUNT ( 85 ) ), 65 )
----
1

query I rowsort
SELECT + - 46 + 44 * - + 88 * - + 34
----
131602

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT COUNT( DISTINCT + - 85 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2332
SELECT COUNT ( DISTINCT + - 85 ) AS col2
----
1

query I rowsort
SELECT ALL 94 * - - 67 * + + 84 + + 64
----
529096

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT + - 39 * 23 + - COUNT( * ) AS col1
----
-898

skipif mysql # not compatible
query I rowsort label-2334
SELECT + - 39 * 23 + - COUNT ( * ) AS col1
----
-898

query I rowsort
SELECT + 74 - + 30 + + 69 - - - 91 * + 69 AS col0
----
-6166

onlyif mysql # DIV for integer division: 
query I rowsort label-2336
SELECT ALL - - 81 * + + 6 + 63 DIV - 17 AS col0
----
483

skipif mysql # not compatible
query I rowsort label-2336
SELECT ALL - - 81 * + + 6 + 63 / - 17 AS col0
----
483

query I rowsort
SELECT DISTINCT + - 48 * + 50 + + 72
----
-2328

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT - - SUM( - 21 ) / - + CASE 31 WHEN + - 21 / ( ( + + COALESCE ( + 11, - CASE 68 WHEN COUNT( * ) THEN - - 21 ELSE - COUNT( * ) END + + 69 * + COUNT( * ) ) ) ) THEN 70 ELSE NULL END + + + 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2338
SELECT - - SUM ( - 21 ) / - + CASE 31 WHEN + - 21 / ( ( + + COALESCE ( + 11, - CASE 68 WHEN COUNT ( * ) THEN - - 21 ELSE - COUNT ( * ) END + + 69 * + COUNT ( * ) ) ) ) THEN 70 ELSE NULL END + + + 87 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + CASE 85 WHEN - - 80 THEN - 14 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2340
SELECT ALL + + 83 * + 99 + CASE WHEN NOT NULL NOT IN ( - CAST( NULL AS SIGNED ), - 71 - 53 + + + 75 + + 99 * - 61 / - NULLIF ( + 23, + 10 + 81 ) * - + 75, - 43 * CASE - ( - 55 ) WHEN 61 THEN NULL WHEN + - COUNT( * ) THEN + - 17 + - + 70 + + 33 + 16 + - COUNT( * ) * - - ( - SUM( + 49 ) ) * 94 + - ( + 21 ) WHEN + 48 THEN 61 * 49 * + + COUNT( * ) / + + 93 + + + COUNT( ALL 20 ) * 98 END + - 41 * 19 + - COUNT( * ) * CASE + 93 + + COUNT( * ) * 71 WHEN NULLIF ( + NULLIF ( 26, + 6 ), MAX( DISTINCT - ( 2 ) ) * + CASE + 78 WHEN NULLIF ( + 15, + 54 * - MIN( 70 ) ) + 76 THEN NULL ELSE - 9 * + 68 END + + CAST( NULL AS SIGNED ) ) THEN NULL WHEN - COUNT( * ) THEN NULL ELSE + NULLIF ( + 98, 53 - - ( 41 + 0 * - COUNT( * ) ) ) * COUNT( * ) END ) THEN - CASE 28 WHEN - 36 - + 37 / 46 THEN NULL WHEN - COUNT( * ) THEN NULL ELSE - COUNT( * ) END + MIN( - 94 - - 81 ) * 73 ELSE NULL END - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-2340
SELECT ALL + + 83 * + 99 + CASE WHEN NOT NULL NOT IN ( - CAST ( NULL AS INTEGER ), - 71 - 53 + + + 75 + + 99 * - 61 / - NULLIF ( + 23, + 10 + 81 ) * - + 75, - 43 * CASE - ( - 55 ) WHEN 61 THEN NULL WHEN + - COUNT ( * ) THEN + - 17 + - + 70 + + 33 + 16 + - COUNT ( * ) * - - ( - SUM ( + 49 ) ) * 94 + - ( + 21 ) WHEN + 48 THEN 61 * 49 * + + COUNT ( * ) / + + 93 + + + COUNT ( ALL 20 ) * 98 END + - 41 * 19 + - COUNT ( * ) * CASE + 93 + + COUNT ( * ) * 71 WHEN NULLIF ( + NULLIF ( 26, + 6 ), MAX ( DISTINCT - ( 2 ) ) * + CASE + 78 WHEN NULLIF ( + 15, + 54 * - MIN ( 70 ) ) + 76 THEN NULL ELSE - 9 * + 68 END + + CAST ( NULL AS INTEGER ) ) THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE + NULLIF ( + 98, 53 - - ( 41 + 0 * - COUNT ( * ) ) ) * COUNT ( * ) END ) THEN - CASE 28 WHEN - 36 - + 37 / 46 THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE - COUNT ( * ) END + MIN ( - 94 - - 81 ) * 73 ELSE NULL END - 29
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2341
SELECT + 0 + - - CASE - ( + 51 ) WHEN - ( + 51 ) THEN NULL ELSE + 26 * + COUNT( * ) + + ( - 37 ) + CAST( 80 AS SIGNED ) * - 23 END + + 90 + - 75 AS col0, - 8 + - 29 AS col0
----
NULL
-37

skipif mysql # not compatible
query II rowsort label-2341
SELECT + 0 + - - CASE - ( + 51 ) WHEN - ( + 51 ) THEN NULL ELSE + 26 * + COUNT ( * ) + + ( - 37 ) + CAST ( 80 AS INTEGER ) * - 23 END + + 90 + - 75 AS col0, - 8 + - 29 AS col0
----
NULL
-37

query I rowsort
SELECT ALL - ( + COALESCE ( + 51, - ( - + 63 ) ) ) * - 82 + + + 54 * 46 + + - 76
----
6590

query I rowsort
SELECT - 85 * 72 + + ( - 98 )
----
-6218

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2344
SELECT - COUNT( 19 ) * + + CAST( - 41 AS SIGNED ) * + - ( - - 91 ) + 41 AS col2
----
-3690

skipif mysql # not compatible
query I rowsort label-2344
SELECT - COUNT ( 19 ) * + + CAST ( - 41 AS INTEGER ) * + - ( - - 91 ) + 41 AS col2
----
-3690

query I rowsort
SELECT + 70 * - + 48
----
-3360

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT NULLIF ( + SUM( DISTINCT - 39 ), - 36 )
----
-39

skipif mysql # not compatible
query I rowsort label-2346
SELECT NULLIF ( + SUM ( DISTINCT - 39 ), - 36 )
----
-39

query I rowsort
SELECT - 46 + - 81 AS col2
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-2348
SELECT - COUNT( * ) + 18
----
17

skipif mysql # not compatible
query I rowsort label-2348
SELECT - COUNT ( * ) + 18
----
17

query I rowsort
SELECT ALL - 45 * + 99 - + + 63 + + + 20
----
-4498

query I rowsort
SELECT + 34 * + 78 AS col1
----
2652

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2352
SELECT DISTINCT + 92 DIV + 38
----
2

skipif mysql # not compatible
query I rowsort label-2352
SELECT DISTINCT + 92 / + 38
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT ALL NULLIF ( 57, + - COUNT( * ) + + 92 )
----
57

skipif mysql # not compatible
query I rowsort label-2353
SELECT ALL NULLIF ( 57, + - COUNT ( * ) + + 92 )
----
57

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

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

query I rowsort
SELECT DISTINCT + 56 * - 99
----
-5544

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

query I rowsort
SELECT ALL + 74 * 61
----
4514

query I rowsort
SELECT ALL - 11 * 98 * + 98
----
-105644

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT - COUNT( * ) * - 99 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-2359
SELECT - COUNT ( * ) * - 99 AS col0
----
99

query I rowsort
SELECT - + 36 + - + 80
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT - MIN( + 97 ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-2361
SELECT - MIN ( + 97 ) AS col2
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2362
SELECT - - CASE + - CAST( NULL AS SIGNED ) WHEN 62 THEN + 16 ELSE NULL END + + + AVG ( ALL 59 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2362
SELECT - - CASE + - CAST ( NULL AS INTEGER ) WHEN 62 THEN + 16 ELSE NULL END + + + AVG ( ALL 59 ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2363
SELECT ALL ( + ( - - CAST( NULL AS DECIMAL ) ) ) AS col0, - 22
----
NULL
-22

skipif mysql # not compatible
query II rowsort label-2363
SELECT ALL ( + ( - - CAST ( NULL AS REAL ) ) ) AS col0, - 22
----
NULL
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT DISTINCT COALESCE ( - COUNT( * ), - 95 )
----
-1

skipif mysql # not compatible
query I rowsort label-2364
SELECT DISTINCT COALESCE ( - COUNT ( * ), - 95 )
----
-1

query I rowsort
SELECT ALL CASE + 2 WHEN 72 THEN NULL WHEN + - CASE + NULLIF ( + 90, 27 ) WHEN - ( 45 ) THEN - - 58 ELSE - 54 END / + + 92 - + 68 THEN 45 ELSE NULL END * ( + - 10 ) + - 44 * - + ( + 44 ) AS col0
----
NULL

query I rowsort
SELECT - 35 * - 60 AS col1
----
2100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2367
SELECT ALL + 20 + CAST( - - ( COUNT( * ) ) AS SIGNED ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-2367
SELECT ALL + 20 + CAST ( - - ( COUNT ( * ) ) AS INTEGER ) AS col1
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2368
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - 70 * 30 * CAST( NULL AS SIGNED ) + - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-2368
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - 70 * 30 * CAST ( NULL AS INTEGER ) + - 12
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2369
SELECT DISTINCT + 71 / 28 + + - 32 + - 22 * - COALESCE ( 52, MAX( CAST( NULL AS SIGNED ) ) ) - + + 19 + 68 * + - ( - 18 ) * + ( - - CASE 72 WHEN + ( - 57 ) + - CAST( + ( - 43 ) AS SIGNED ) THEN - 16 * - 0 * CAST( NULL AS SIGNED ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2369
SELECT DISTINCT + 71 / 28 + + - 32 + - 22 * - COALESCE ( 52, MAX ( CAST ( NULL AS INTEGER ) ) ) - + + 19 + 68 * + - ( - 18 ) * + ( - - CASE 72 WHEN + ( - 57 ) + - CAST ( + ( - 43 ) AS INTEGER ) THEN - 16 * - 0 * CAST ( NULL AS INTEGER ) END ) AS col0
----
NULL

query I rowsort
SELECT ALL + 70 * - 60 AS col2
----
-4200

onlyif mysql # DIV for integer division: 
query I rowsort label-2371
SELECT - - 65 DIV + + COALESCE ( + 35, + 32, 26 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2371
SELECT - - 65 / + + COALESCE ( + 35, + 32, 26 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2372
SELECT - CASE - + SUM( ALL - ( 35 ) ) WHEN + SUM( - 64 ) * + - 88 THEN 12 - - ( - + 90 ) + ( + 23 ) * 24 END / + CAST( NULL AS SIGNED ) + + - AVG ( - - 8 ) + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-2372
SELECT - CASE - + SUM ( ALL - ( 35 ) ) WHEN + SUM ( - 64 ) * + - 88 THEN 12 - - ( - + 90 ) + ( + 23 ) * 24 END / + CAST ( NULL AS INTEGER ) + + - AVG ( - - 8 ) + 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT ALL + + COALESCE ( - 96, - MAX( ALL - 97 ), + + 98 ) col2
----
-96

skipif mysql # not compatible
query I rowsort label-2373
SELECT ALL + + COALESCE ( - 96, - MAX ( ALL - 97 ), + + 98 ) col2
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2374
SELECT DISTINCT 50 * - CAST( + 60 AS SIGNED ) AS col2
----
-3000

skipif mysql # not compatible
query I rowsort label-2374
SELECT DISTINCT 50 * - CAST ( + 60 AS INTEGER ) AS col2
----
-3000

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2375
SELECT - 38 DIV + MIN( + 30 ) - - 87 DIV - 72, 74 AS col1
----
-2
74

skipif mysql # not compatible
query II rowsort label-2375
SELECT - 38 / + MIN ( + 30 ) - - 87 / - 72, 74 AS col1
----
-2
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2376
SELECT DISTINCT + - CAST( - 45 AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-2376
SELECT DISTINCT + - CAST ( - 45 AS INTEGER )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT DISTINCT COUNT( * ) + + + 92 + + 39 + - SUM( DISTINCT - - 79 ) * - ( - + CASE NULLIF ( - - 20, COUNT( * ) ) WHEN - 40 * ( + - 93 ) - + + 99 + ( - 96 ) - + 99 * 41 THEN 38 + + NULLIF ( 56, - - COUNT( * ) ) END ) + - + 88 * - 75 * - + 77 / 55 * - + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-2377
SELECT DISTINCT COUNT ( * ) + + + 92 + + 39 + - SUM ( DISTINCT - - 79 ) * - ( - + CASE NULLIF ( - - 20, COUNT ( * ) ) WHEN - 40 * ( + - 93 ) - + + 99 + ( - 96 ) - + 99 * 41 THEN 38 + + NULLIF ( 56, - - COUNT ( * ) ) END ) + - + 88 * - 75 * - + 77 / 55 * - + 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT DISTINCT 87 * + MIN( ALL + 96 ) * 80 AS col0
----
668160

skipif mysql # not compatible
query I rowsort label-2378
SELECT DISTINCT 87 * + MIN ( ALL + 96 ) * 80 AS col0
----
668160

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2379
SELECT + 60, CASE + - 34 WHEN 83 THEN + 9 * + ( - COALESCE ( - 53, 44 ) ) WHEN + + CAST( + - 4 AS SIGNED ) + - 82 + + 70 THEN NULL END AS col1
----
60
NULL

skipif mysql # not compatible
query II rowsort label-2379
SELECT + 60, CASE + - 34 WHEN 83 THEN + 9 * + ( - COALESCE ( - 53, 44 ) ) WHEN + + CAST ( + - 4 AS INTEGER ) + - 82 + + 70 THEN NULL END AS col1
----
60
NULL

query I rowsort
SELECT ALL 5 * 57 AS col1
----
285

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

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

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

skipif mysql # not compatible
query I rowsort label-2382
SELECT ALL - ( - CAST ( COUNT ( * ) AS INTEGER ) )
----
1

query II rowsort
SELECT ALL - 16 AS col0, 49
----
-16
49

query II rowsort
SELECT ALL 73, 84 AS col2
----
73
84

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2385
SELECT DISTINCT 4 - - CAST( 75 AS SIGNED ) DIV - 36 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2385
SELECT DISTINCT 4 - - CAST ( 75 AS INTEGER ) / - 36 AS col1
----
2

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2387
SELECT ALL 84, 41 DIV + 52 AS col0
----
84
0

skipif mysql # not compatible
query II rowsort label-2387
SELECT ALL 84, 41 / + 52 AS col0
----
84
0

query I rowsort
SELECT ( + 2 ) * 40 * - - 97 AS col1
----
7760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2389
SELECT 93 * + + CAST( - 59 AS SIGNED ) AS col0
----
-5487

skipif mysql # not compatible
query I rowsort label-2389
SELECT 93 * + + CAST ( - 59 AS INTEGER ) AS col0
----
-5487

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT 43 * - - ( + + CASE - + MIN( ALL - - 46 ) WHEN + 25 THEN COUNT( * ) - + ( - COALESCE ( + - COALESCE ( + - NULLIF ( - 7, - + 2 ), - 21 + COUNT( * ) ), - + 15 ) ) + - ( + - 17 ) + + NULLIF ( + - 3, + 83 * - AVG ( DISTINCT + + 51 ) ) * - SUM( DISTINCT + - 91 ) + + COUNT( * ) * - COUNT( * ) WHEN + 53 - + 8 * 78 THEN NULL ELSE - COUNT( * ) END ) - 86
----
-129

skipif mysql # not compatible
query I rowsort label-2390
SELECT 43 * - - ( + + CASE - + MIN ( ALL - - 46 ) WHEN + 25 THEN COUNT ( * ) - + ( - COALESCE ( + - COALESCE ( + - NULLIF ( - 7, - + 2 ), - 21 + COUNT ( * ) ), - + 15 ) ) + - ( + - 17 ) + + NULLIF ( + - 3, + 83 * - AVG ( DISTINCT + + 51 ) ) * - SUM ( DISTINCT + - 91 ) + + COUNT ( * ) * - COUNT ( * ) WHEN + 53 - + 8 * 78 THEN NULL ELSE - COUNT ( * ) END ) - 86
----
-129

onlyif mysql # DIV for integer division: 
query I rowsort label-2391
SELECT DISTINCT ( + + 13 ) DIV - 87 col2
----
0

skipif mysql # not compatible
query I rowsort label-2391
SELECT DISTINCT ( + + 13 ) / - 87 col2
----
0

query I rowsort
SELECT 96 + - + 59 * 61 * 16 * - + ( - 20 )
----
-1151584

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2393
SELECT DISTINCT + MIN( 59 ) DIV 41 * - 16 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-2393
SELECT DISTINCT + MIN ( 59 ) / 41 * - 16 AS col2
----
-16

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

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

query I rowsort
SELECT ALL - + 94 + - 88 AS col0
----
-182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2396
SELECT 6 + - 84 * - CASE + + ( + - 3 ) WHEN 12 THEN 48 - ( + CAST( - - 14 AS SIGNED ) ) ELSE + 23 * 14 END AS col1
----
27054

skipif mysql # not compatible
query I rowsort label-2396
SELECT 6 + - 84 * - CASE + + ( + - 3 ) WHEN 12 THEN 48 - ( + CAST ( - - 14 AS INTEGER ) ) ELSE + 23 * 14 END AS col1
----
27054

query I rowsort
SELECT DISTINCT + 58 + 63 AS col0
----
121

query I rowsort
SELECT + 60 + 3 AS col2
----
63

query II rowsort
SELECT DISTINCT + 70, 1 AS col0
----
70
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT 28 * 96 * + - ( - - 23 ) + COUNT( * )
----
-61823

skipif mysql # not compatible
query I rowsort label-2400
SELECT 28 * 96 * + - ( - - 23 ) + COUNT ( * )
----
-61823

query I rowsort
SELECT - 27 * + - 10 * 11 AS col0
----
2970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2402
SELECT - 31 * - ( MIN( ALL 97 ) ) * 69 * + CAST( - COUNT( * ) AS SIGNED ) - - COUNT( * ) + 71 * + - 90 * - CASE 62 WHEN - 46 THEN + - 63 * + 60 * - NULLIF ( ( COUNT( * ) ), - 40 ) * - - 38 + + + 70 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2402
SELECT - 31 * - ( MIN ( ALL 97 ) ) * 69 * + CAST ( - COUNT ( * ) AS INTEGER ) - - COUNT ( * ) + 71 * + - 90 * - CASE 62 WHEN - 46 THEN + - 63 * + 60 * - NULLIF ( ( COUNT ( * ) ), - 40 ) * - - 38 + + + 70 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + + 22 + + 55 AS col1
----
77

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2405
SELECT DISTINCT - SUM( DISTINCT + 2 ), - 14 + - 19 col2
----
-2
-33

skipif mysql # not compatible
query II rowsort label-2405
SELECT DISTINCT - SUM ( DISTINCT + 2 ), - 14 + - 19 col2
----
-2
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT CASE + 57 WHEN - 4 * - 92 + 85 - COUNT( * ) THEN - MIN( DISTINCT - 9 ) * - 93 END + + - ( + COALESCE ( - 76, + - 54 + + 52, + 51 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2406
SELECT CASE + 57 WHEN - 4 * - 92 + 85 - COUNT ( * ) THEN - MIN ( DISTINCT - 9 ) * - 93 END + + - ( + COALESCE ( - 76, + - 54 + + 52, + 51 ) ) AS col1
----
NULL

query I rowsort
SELECT 36 * - NULLIF ( + 18, 44 ) AS col2
----
-648

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

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

query II rowsort
SELECT 42 + 39, + 13 * - 84 AS col0
----
81
-1092

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT ALL - SUM( - 99 )
----
99

skipif mysql # not compatible
query I rowsort label-2411
SELECT ALL - SUM ( - 99 )
----
99

query I rowsort
SELECT 52 + + 37 * + ( + - 56 )
----
-2020

query I rowsort
SELECT DISTINCT + 28 * - - 48 col2
----
1344

query I rowsort
SELECT 51 * + NULLIF ( 80, + 0 ) * - 83
----
-338640

query I rowsort
SELECT 87 + + 75
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-2416
SELECT ( - + 98 ) + + - ( - ( + COUNT( * ) ) ) * - 1 * - + 95 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-2416
SELECT ( - + 98 ) + + - ( - ( + COUNT ( * ) ) ) * - 1 * - + 95 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT DISTINCT MIN( DISTINCT - ( + + 45 ) ) * 85 AS col2
----
-3825

skipif mysql # not compatible
query I rowsort label-2417
SELECT DISTINCT MIN ( DISTINCT - ( + + 45 ) ) * 85 AS col2
----
-3825

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

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

query I rowsort
SELECT ALL - 64 * + 35 * 32 col1
----
-71680

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT COUNT( DISTINCT - 92 ) + - CASE + 75 WHEN + 71 * + + 94 THEN - MIN( + 78 ) * - 63 END - 85 * - 38 * + + 22 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2420
SELECT COUNT ( DISTINCT - 92 ) + - CASE + 75 WHEN + 71 * + + 94 THEN - MIN ( + 78 ) * - 63 END - 85 * - 38 * + + 22 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 73 + 14 * + 39 AS col1
----
473

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2423
SELECT 64 + - + 96 AS col1, - 82 DIV + 87 col2
----
-32
0

skipif mysql # not compatible
query II rowsort label-2423
SELECT 64 + - + 96 AS col1, - 82 / + 87 col2
----
-32
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2425
SELECT COUNT( * ) + - + 79 col2, SUM( - 95 )
----
-78
-95

skipif mysql # not compatible
query II rowsort label-2425
SELECT COUNT ( * ) + - + 79 col2, SUM ( - 95 )
----
-78
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2426
SELECT ALL 28 + - CAST( - + 6 AS SIGNED ) - + 83
----
-49

skipif mysql # not compatible
query I rowsort label-2426
SELECT ALL 28 + - CAST ( - + 6 AS INTEGER ) - + 83
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2427
SELECT COUNT( * ) * - 9 * - - 66 * 11 + - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2427
SELECT COUNT ( * ) * - 9 * - - 66 * 11 + - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT ALL - 87 * - COUNT( * ) * - CASE + 35 WHEN - 48 + + 78 THEN - 77 END + - 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2428
SELECT ALL - 87 * - COUNT ( * ) * - CASE + 35 WHEN - 48 + + 78 THEN - 77 END + - 99 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2429
SELECT ALL - COUNT( + 4 ) DIV - 45 * 25
----
0

skipif mysql # not compatible
query I rowsort label-2429
SELECT ALL - COUNT ( + 4 ) / - 45 * 25
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2430
SELECT ALL 94 - + 27, COUNT( * ) AS col0
----
67
1

skipif mysql # not compatible
query II rowsort label-2430
SELECT ALL 94 - + 27, COUNT ( * ) AS col0
----
67
1

query II rowsort
SELECT - + NULLIF ( + 61, - 28 ) AS col1, + 45 AS col1
----
-61
45

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

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

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

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

query II rowsort
SELECT ALL - 27 * - 90 AS col0, 57
----
2430
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2435
SELECT COALESCE ( + + 75, - NULLIF ( - + 36, + COUNT( * ) * - - 86 * - NULLIF ( 47, - COUNT( + CAST( + 48 AS SIGNED ) ) * - - COALESCE ( ( - 64 ), + 42 + + CAST( - COUNT( * ) AS SIGNED ), ( + - 39 ) ) + - 21 + + NULLIF ( + + 72, + - ( + 10 ) * 26 ) * - COUNT( ALL 71 ) + - 24 * NULLIF ( + SUM( ALL - 82 ), - 72 ) + - 94 - 24 * + 50 * - CAST( NULL AS SIGNED ) + - 50 + - - 58 ) + - 19 ) ) col1
----
75

skipif mysql # not compatible
query I rowsort label-2435
SELECT COALESCE ( + + 75, - NULLIF ( - + 36, + COUNT ( * ) * - - 86 * - NULLIF ( 47, - COUNT ( + CAST ( + 48 AS INTEGER ) ) * - - COALESCE ( ( - 64 ), + 42 + + CAST ( - COUNT ( * ) AS INTEGER ), ( + - 39 ) ) + - 21 + + NULLIF ( + + 72, + - ( + 10 ) * 26 ) * - COUNT ( ALL 71 ) + - 24 * NULLIF ( + SUM ( ALL - 82 ), - 72 ) + - 94 - 24 * + 50 * - CAST ( NULL AS INTEGER ) + - 50 + - - 58 ) + - 19 ) ) col1
----
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2437
SELECT DISTINCT COALESCE ( 12, + 23 ) * + + COUNT( * ) - + + NULLIF ( - + COUNT( * ), 92 )
----
13

skipif mysql # not compatible
query I rowsort label-2437
SELECT DISTINCT COALESCE ( 12, + 23 ) * + + COUNT ( * ) - + + NULLIF ( - + COUNT ( * ), 92 )
----
13

query I rowsort
SELECT - 70 * - 19
----
1330

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2439
SELECT ALL 76 * - COALESCE ( 39, + COUNT( * ) DIV + 4 ) * + CASE - 50 WHEN + 52 THEN NULL ELSE + + 53 * - 29 END + + - 17
----
4555651

skipif mysql # not compatible
query I rowsort label-2439
SELECT ALL 76 * - COALESCE ( 39, + COUNT ( * ) / + 4 ) * + CASE - 50 WHEN + 52 THEN NULL ELSE + + 53 * - 29 END + + - 17
----
4555651

query I rowsort
SELECT ALL + COALESCE ( - 94, 1, 10 ) col2
----
-94

query I rowsort
SELECT COALESCE ( + 75, 52 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT 42 * - CASE COUNT( 70 ) WHEN - 47 THEN NULL WHEN - 3 / - 10 * - 89 * + 1 THEN NULL ELSE - ( + 31 ) END + + 45 AS col0
----
1347

skipif mysql # not compatible
query I rowsort label-2442
SELECT 42 * - CASE COUNT ( 70 ) WHEN - 47 THEN NULL WHEN - 3 / - 10 * - 89 * + 1 THEN NULL ELSE - ( + 31 ) END + + 45 AS col0
----
1347

query I rowsort
SELECT NULLIF ( + NULLIF ( - - 40, + 13 ), - + 0 )
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-2444
SELECT ALL - 70 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-2444
SELECT ALL - 70 / 99
----
0

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

skipif mysql # not compatible
query I rowsort label-2445
SELECT - COUNT ( * ) + + + 46 AS col2
----
45

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2446
SELECT ALL - 43 * - COALESCE ( + SUM( + 83 ), 43, - 93 * - COUNT( * ) * + ( + 68 ) * CAST( NULL AS DECIMAL ) * - 16 * - + 36 ) * + - 81 * CASE + ( - + COUNT( * ) ) WHEN NULLIF ( + COUNT( + + 97 ), 28 + - - 26 * - 43 ) THEN - + 12 WHEN + NULLIF ( + 22, - 27 * + NULLIF ( + - 94, + 4 ) * 30 * - 75 ) THEN + + 15 * COUNT( * ) + 4 END * - 35 + - + 9 + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-2446
SELECT ALL - 43 * - COALESCE ( + SUM ( + 83 ), 43, - 93 * - COUNT ( * ) * + ( + 68 ) * CAST ( NULL AS REAL ) * - 16 * - + 36 ) * + - 81 * CASE + ( - + COUNT ( * ) ) WHEN NULLIF ( + COUNT ( + + 97 ), 28 + - - 26 * - 43 ) THEN - + 12 WHEN + NULLIF ( + 22, - 27 * + NULLIF ( + - 94, + 4 ) * 30 * - 75 ) THEN + + 15 * COUNT ( * ) + 4 END * - 35 + - + 9 + 0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2447
SELECT + 27 / + 41
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT ALL COUNT( * ) * - - 30 + + 44 * 85 - NULLIF ( + + 71, + - MAX( DISTINCT + 15 ) * + - 56 - + + 38 ) - + 74 + - COUNT( * )
----
3624

skipif mysql # not compatible
query I rowsort label-2449
SELECT ALL COUNT ( * ) * - - 30 + + 44 * 85 - NULLIF ( + + 71, + - MAX ( DISTINCT + 15 ) * + - 56 - + + 38 ) - + 74 + - COUNT ( * )
----
3624

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2451
SELECT ALL - 73 * - - CAST( NULL AS SIGNED ) * - + 64 + - 68 AS col2, + ( 80 ) * + 95 AS col0
----
NULL
7600

skipif mysql # not compatible
query II rowsort label-2451
SELECT ALL - 73 * - - CAST ( NULL AS INTEGER ) * - + 64 + - 68 AS col2, + ( 80 ) * + 95 AS col0
----
NULL
7600

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

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

query I rowsort
SELECT ALL 48 * - - 72 + - 40 * 45 + 6 AS col1
----
1662

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2454
SELECT 43 * + 95 + CAST( + + 91 AS SIGNED ) col2, 20
----
4176
20

skipif mysql # not compatible
query II rowsort label-2454
SELECT 43 * + 95 + CAST ( + + 91 AS INTEGER ) col2, 20
----
4176
20

query I rowsort
SELECT ALL - 74 + 81 + + + 80 * - 89
----
-7113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2456
SELECT - COUNT( * ) + ( + + ( + NULLIF ( + 41, 8 + + 45 + + + 71 + + ( + - CAST( - + 30 AS SIGNED ) ) * - 34 * - CAST( NULL AS SIGNED ) / + 22 ) ) ) * - 85 AS col0
----
-3486

skipif mysql # not compatible
query I rowsort label-2456
SELECT - COUNT ( * ) + ( + + ( + NULLIF ( + 41, 8 + + 45 + + + 71 + + ( + - CAST ( - + 30 AS INTEGER ) ) * - 34 * - CAST ( NULL AS INTEGER ) / + 22 ) ) ) * - 85 AS col0
----
-3486

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT + 15 - - COUNT( ALL + 23 ) * - - 4 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-2457
SELECT + 15 - - COUNT ( ALL + 23 ) * - - 4 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT - 68 * 85 - - + 86 + - - SUM( ( 31 ) ) + - - 38
----
-5625

skipif mysql # not compatible
query I rowsort label-2458
SELECT - 68 * 85 - - + 86 + - - SUM ( ( 31 ) ) + - - 38
----
-5625

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2459
SELECT ALL 98 + - SUM( ALL - 1 ) - COUNT( ALL 10 ) * COUNT( ALL + 70 ) * - 42 + 60 DIV 54 AS col2
----
142

skipif mysql # not compatible
query I rowsort label-2459
SELECT ALL 98 + - SUM ( ALL - 1 ) - COUNT ( ALL 10 ) * COUNT ( ALL + 70 ) * - 42 + 60 / 54 AS col2
----
142

query II rowsort
SELECT - 50 AS col1, - 22 AS col0
----
-50
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT ALL COUNT( * ) - - 27
----
28

skipif mysql # not compatible
query I rowsort label-2461
SELECT ALL COUNT ( * ) - - 27
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2462
SELECT - + ( - ( 45 ) ) * + MIN( + + 11 ) * + ( + NULLIF ( 10, - 41 ) ) - + + COUNT( * ) * - - 87 + - 57 + 40 DIV ( 11 ) * + + COUNT( * )
----
4809

skipif mysql # not compatible
query I rowsort label-2462
SELECT - + ( - ( 45 ) ) * + MIN ( + + 11 ) * + ( + NULLIF ( 10, - 41 ) ) - + + COUNT ( * ) * - - 87 + - 57 + 40 / ( 11 ) * + + COUNT ( * )
----
4809

onlyif mysql # aggregate syntax: 
query II rowsort label-2463
SELECT ALL - 91 * + ( - 74 ) + - NULLIF ( - 41, - 28 * - 77 - - 48 + + + 89 + + 70 ) * 94 AS col0, - COUNT( * ) + + - 34
----
10588
-35

skipif mysql # not compatible
query II rowsort label-2463
SELECT ALL - 91 * + ( - 74 ) + - NULLIF ( - 41, - 28 * - 77 - - 48 + + + 89 + + 70 ) * 94 AS col0, - COUNT ( * ) + + - 34
----
10588
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2464
SELECT ALL - NULLIF ( + CAST( NULL AS SIGNED ), - 82 + - MAX( 66 ) - - COUNT( ALL 21 ) * - + 22 * + 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2464
SELECT ALL - NULLIF ( + CAST ( NULL AS INTEGER ), - 82 + - MAX ( 66 ) - - COUNT ( ALL 21 ) * - + 22 * + 6 )
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2466
SELECT DISTINCT NULLIF ( - - 22, + COALESCE ( - COALESCE ( 11, - - 97 - + CASE + 95 WHEN 66 / - 50 THEN NULL ELSE - CASE + COUNT( * ) WHEN + 25 * + - 68 + + COUNT( * ) * + CAST( - 21 AS SIGNED ) - - 27 * - - 0 * + + NULLIF ( + 94, - CAST( NULL AS SIGNED ) ) THEN NULL WHEN 72 THEN + + ( + - 65 ) + - + 69 END END, - 42 ), 31, - 60 ) * 15 ) - - + ( + 28 ) + COALESCE ( + 9, - CAST( - CASE + COUNT( * ) WHEN 4 THEN - 11 + COUNT( * ) * COUNT( * ) WHEN - 68 + - + 91 THEN - 49 ELSE 96 END AS SIGNED ) ) * 25 AS col2
----
275

skipif mysql # not compatible
query I rowsort label-2466
SELECT DISTINCT NULLIF ( - - 22, + COALESCE ( - COALESCE ( 11, - - 97 - + CASE + 95 WHEN 66 / - 50 THEN NULL ELSE - CASE + COUNT ( * ) WHEN + 25 * + - 68 + + COUNT ( * ) * + CAST ( - 21 AS INTEGER ) - - 27 * - - 0 * + + NULLIF ( + 94, - CAST ( NULL AS INTEGER ) ) THEN NULL WHEN 72 THEN + + ( + - 65 ) + - + 69 END END, - 42 ), 31, - 60 ) * 15 ) - - + ( + 28 ) + COALESCE ( + 9, - CAST ( - CASE + COUNT ( * ) WHEN 4 THEN - 11 + COUNT ( * ) * COUNT ( * ) WHEN - 68 + - + 91 THEN - 49 ELSE 96 END AS INTEGER ) ) * 25 AS col2
----
275

onlyif mysql # aggregate syntax: 
query II rowsort label-2467
SELECT DISTINCT COUNT( * ), 77 * COUNT( * ) AS col0
----
1
77

skipif mysql # not compatible
query II rowsort label-2467
SELECT DISTINCT COUNT ( * ), 77 * COUNT ( * ) AS col0
----
1
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2468
SELECT - MAX( + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) ) + 11 - - 14 / + 63 * + - ( - 93 ) * COUNT( * ) * + 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2468
SELECT - MAX ( + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) ) + 11 - - 14 / + 63 * + - ( - 93 ) * COUNT ( * ) * + 45 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2469
SELECT + SUM( DISTINCT - 51 ) + 34 / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2469
SELECT + SUM ( DISTINCT - 51 ) + 34 / + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - 57, - 85 * + 39 AS col2
----
-57
-3315

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2472
SELECT + 70 DIV ( - 2 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-2472
SELECT + 70 / ( - 2 ) AS col0
----
-35

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

skipif mysql # not compatible
query I rowsort label-2473
SELECT COUNT ( * ) / - - 4 + - 89
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2474
SELECT + COUNT( * ) + - 0 + - 49 * + - 84 DIV - 21 + 91
----
-104

skipif mysql # not compatible
query I rowsort label-2474
SELECT + COUNT ( * ) + - 0 + - 49 * + - 84 / - 21 + 91
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT + 52 + 35 - + SUM( DISTINCT - - 25 ) * + - 68 AS col2
----
1787

skipif mysql # not compatible
query I rowsort label-2475
SELECT + 52 + 35 - + SUM ( DISTINCT - - 25 ) * + - 68 AS col2
----
1787

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2476
SELECT + NULLIF ( - + 74, + COUNT( * ) ) DIV + COALESCE ( + 2, AVG ( ALL + ( - + 6 ) ) ) + + - 62 AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-2476
SELECT + NULLIF ( - + 74, + COUNT ( * ) ) / + COALESCE ( + 2, AVG ( ALL + ( - + 6 ) ) ) + + - 62 AS col1
----
-99

query I rowsort
SELECT - 16 * - 11 AS col2
----
176

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2478
SELECT DISTINCT 86 DIV - CAST( - 67 AS SIGNED ) + + 30 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-2478
SELECT DISTINCT 86 / - CAST ( - 67 AS INTEGER ) + + 30 AS col0
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2479
SELECT + 49 * 45 DIV 98 * - 85 + - COUNT( * ) * - 86
----
-1784

skipif mysql # not compatible
query I rowsort label-2479
SELECT + 49 * 45 / 98 * - 85 + - COUNT ( * ) * - 86
----
-1784

onlyif mysql # aggregate syntax: 
query I rowsort label-2480
SELECT ALL + ( + 23 ) * - 51 + 91 + + + 36 * + - COUNT( * ) * + COUNT( DISTINCT + CASE - 70 WHEN 5 THEN + 33 END ) + - 3 AS col0
----
-1085

skipif mysql # not compatible
query I rowsort label-2480
SELECT ALL + ( + 23 ) * - 51 + 91 + + + 36 * + - COUNT ( * ) * + COUNT ( DISTINCT + CASE - 70 WHEN 5 THEN + 33 END ) + - 3 AS col0
----
-1085

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT ALL 98 * 2 + + 56 * MIN( + 23 ) + + - 58 + - 91 AS col2
----
1335

skipif mysql # not compatible
query I rowsort label-2481
SELECT ALL 98 * 2 + + 56 * MIN ( + 23 ) + + - 58 + - 91 AS col2
----
1335

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT ALL + 10 * 23 + - MAX( DISTINCT - 9 )
----
239

skipif mysql # not compatible
query I rowsort label-2482
SELECT ALL + 10 * 23 + - MAX ( DISTINCT - 9 )
----
239

onlyif mysql # DIV for integer division: 
query I rowsort label-2483
SELECT ALL - NULLIF ( - 34, + + 28 ) DIV + - 3 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-2483
SELECT ALL - NULLIF ( - 34, + + 28 ) / + - 3 AS col1
----
-11

query I rowsort
SELECT + 30 * - 30 AS col0
----
-900

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2485
SELECT - 99 + - COALESCE ( - SUM( DISTINCT + 56 ), + 69 + + 30 DIV + 70 ) AS col1, - 4 AS col1
----
-43
-4

skipif mysql # not compatible
query II rowsort label-2485
SELECT - 99 + - COALESCE ( - SUM ( DISTINCT + 56 ), + 69 + + 30 / + 70 ) AS col1, - 4 AS col1
----
-43
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2486
SELECT - COALESCE ( + CAST( NULL AS SIGNED ), 29, + 7 - - CAST( - - COALESCE ( - 92, - 20 ) AS SIGNED ) * - COUNT( * ) * 88 ) AS col0, 26 + + + 59 AS col1
----
-29
85

skipif mysql # not compatible
query II rowsort label-2486
SELECT - COALESCE ( + CAST ( NULL AS INTEGER ), 29, + 7 - - CAST ( - - COALESCE ( - 92, - 20 ) AS INTEGER ) * - COUNT ( * ) * 88 ) AS col0, 26 + + + 59 AS col1
----
-29
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT ALL - - 28 * - COUNT( * ) - + 94
----
-122

skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL - - 28 * - COUNT ( * ) - + 94
----
-122

query I rowsort
SELECT DISTINCT + ( - ( 65 ) ) * + 59 * 47
----
-180245

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2490
SELECT - 88 + + CAST( - 92 AS SIGNED )
----
-180

skipif mysql # not compatible
query I rowsort label-2490
SELECT - 88 + + CAST ( - 92 AS INTEGER )
----
-180

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

skipif mysql # not compatible
query I rowsort label-2491
SELECT ALL 32 / - + COUNT ( * ) * ( + COUNT ( * ) )
----
-32

query I rowsort
SELECT 73 * 70 * + ( - 27 ) AS col0
----
-137970

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2493
SELECT - 46 - + 2 + - 81 + - CAST( NULL AS SIGNED ) * AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2493
SELECT - 46 - + 2 + - 81 + - CAST ( NULL AS INTEGER ) * AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT - 16 * - + 97 + - 38 AS col1
----
1514

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT CASE + - COUNT( * ) WHEN - 44 + + - COUNT( * ) THEN + + 81 WHEN - - COUNT( * ) THEN NULL WHEN + 25 THEN NULL END + + 28 * + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-2496
SELECT CASE + - COUNT ( * ) WHEN - 44 + + - COUNT ( * ) THEN + + 81 WHEN - - COUNT ( * ) THEN NULL WHEN + 25 THEN NULL END + + 28 * + 59
----
NULL

query I rowsort
SELECT DISTINCT - ( - NULLIF ( + 12, - - 45 + + 26 ) ) AS col1
----
12

query I rowsort
SELECT + 38 + + + 74
----
112

query I rowsort
SELECT DISTINCT 23 * - 9 AS col1
----
-207

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

query I rowsort
SELECT 62 * - - 82 AS col0
----
5084

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2502
SELECT DISTINCT + 69 * - NULLIF ( - 13, 52 * - + NULLIF ( - - 98, - CASE + COUNT( * ) WHEN AVG ( + 44 ) * + - 76 / 57 * 18 * MAX( 28 ) THEN - 47 + + 98 - COALESCE ( 92, ( - - 88 ) + + + 90 + + COUNT( * ) * + 60 * + CAST( COUNT( 49 ) AS SIGNED ) * 89 + + + 37, + 0 ) * + 19 WHEN + + 92 THEN - - 54 * - 69 ELSE NULL END ) )
----
897

skipif mysql # not compatible
query I rowsort label-2502
SELECT DISTINCT + 69 * - NULLIF ( - 13, 52 * - + NULLIF ( - - 98, - CASE + COUNT ( * ) WHEN AVG ( + 44 ) * + - 76 / 57 * 18 * MAX ( 28 ) THEN - 47 + + 98 - COALESCE ( 92, ( - - 88 ) + + + 90 + + COUNT ( * ) * + 60 * + CAST ( COUNT ( 49 ) AS INTEGER ) * 89 + + + 37, + 0 ) * + 19 WHEN + + 92 THEN - - 54 * - 69 ELSE NULL END ) )
----
897

query I rowsort
SELECT ALL - 15 + 60
----
45

query I rowsort
SELECT 52 * - 19
----
-988

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT ALL 40 + COUNT( * ) + 86 * - 24 + COUNT( * ) * - 95 * 37 AS col0
----
-5538

skipif mysql # not compatible
query I rowsort label-2505
SELECT ALL 40 + COUNT ( * ) + 86 * - 24 + COUNT ( * ) * - 95 * 37 AS col0
----
-5538

query I rowsort
SELECT 67 - - ( - 87 ) - 70
----
-90

query I rowsort
SELECT ALL + 52 + 31 + - 13
----
70

query I rowsort
SELECT DISTINCT - 98 + + 75
----
-23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT ALL 68 + - 16 + + + COUNT( * ) + + 13 - - - 55
----
11

skipif mysql # not compatible
query I rowsort label-2510
SELECT ALL 68 + - 16 + + + COUNT ( * ) + + 13 - - - 55
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2511
SELECT + 23 AS col0, - NULLIF ( - CAST( NULL AS SIGNED ), + + ( + 10 ) * 9 ) * - 42 * ( - 12 ) / - 1 + - 2 / MAX( + 31 ) AS col1
----
23
NULL

skipif mysql # not compatible
query II rowsort label-2511
SELECT + 23 AS col0, - NULLIF ( - CAST ( NULL AS INTEGER ), + + ( + 10 ) * 9 ) * - 42 * ( - 12 ) / - 1 + - 2 / MAX ( + 31 ) AS col1
----
23
NULL

query I rowsort
SELECT ALL 80 + + 73
----
153

onlyif mysql # DIV for integer division: 
query II rowsort label-2513
SELECT ( - 54 ) DIV + 47 AS col1, ( + 77 ) * - 92 + + 38 + + ( - + 24 )
----
-1
-7070

skipif mysql # not compatible
query II rowsort label-2513
SELECT ( - 54 ) / + 47 AS col1, ( + 77 ) * - 92 + + 38 + + ( - + 24 )
----
-1
-7070

query I rowsort
SELECT ( - 37 ) * - 31
----
1147

query I rowsort
SELECT + ( + + 63 ) + + 80 AS col2
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2516
SELECT ALL + COALESCE ( + AVG ( DISTINCT + 9 ), + 66, 97 ) * + - CAST( 83 AS SIGNED ) + - - 84 - 50 - - + 0 + - MIN( ALL 23 ) + - - 20 + 11 / - 36 * + - COUNT( * ) + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL + COALESCE ( + AVG ( DISTINCT + 9 ), + 66, 97 ) * + - CAST ( 83 AS INTEGER ) + - - 84 - 50 - - + 0 + - MIN ( ALL 23 ) + - - 20 + 11 / - 36 * + - COUNT ( * ) + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 27 * + 42
----
1134

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT - COUNT( * ) * - 99 * + COUNT( DISTINCT - 37 )
----
99

skipif mysql # not compatible
query I rowsort label-2518
SELECT - COUNT ( * ) * - 99 * + COUNT ( DISTINCT - 37 )
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2519
SELECT ALL 33 - + 62 - 81 DIV + - 42 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-2519
SELECT ALL 33 - + 62 - 81 / + - 42 AS col1
----
-28

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

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

query I rowsort
SELECT CASE 25 WHEN + - 69 / 78 THEN - ( - + 35 ) END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT - 5 * - + 74 + - - CASE SUM( DISTINCT - 1 ) WHEN SUM( - 9 ) * 19 * - 30 + ( - ( - 26 ) ) + + NULLIF ( + 90, - 8 ) / + 16 THEN - COUNT( * ) - + 10 WHEN ( MIN( ALL - 45 ) ) - + + 49 * - + 11 - + COUNT( * ) THEN + + 77 * COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2522
SELECT - 5 * - + 74 + - - CASE SUM ( DISTINCT - 1 ) WHEN SUM ( - 9 ) * 19 * - 30 + ( - ( - 26 ) ) + + NULLIF ( + 90, - 8 ) / + 16 THEN - COUNT ( * ) - + 10 WHEN ( MIN ( ALL - 45 ) ) - + + 49 * - + 11 - + COUNT ( * ) THEN + + 77 * COUNT ( * ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT + 44 + + COUNT( 18 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-2523
SELECT + 44 + + COUNT ( 18 ) AS col2
----
45

query I rowsort
SELECT + 13 - - + 37
----
50

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

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

query I rowsort
SELECT ALL + 48 * + 72 + + 93
----
3549

query I rowsort
SELECT DISTINCT 45 * 81 AS col2
----
3645

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

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

query I rowsort
SELECT - 93 + + ( 53 ) + + 78 AS col2
----
38

query I rowsort
SELECT DISTINCT - 1 * - - 59
----
-59

query I rowsort
SELECT DISTINCT + 10 + + 41 * - + 16 col0
----
-646

query I rowsort
SELECT ALL - 83 + + ( 78 )
----
-5

query II rowsort
SELECT 42 + - - 63 AS col1, 89 + - 38 AS col0
----
105
51

query I rowsort
SELECT 45 * - 75
----
-3375

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2535
SELECT 52 + + 37 + 46 + CAST( ( - 49 ) AS SIGNED ) + - - 87 col1, 4 AS col2
----
173
4

skipif mysql # not compatible
query II rowsort label-2535
SELECT 52 + + 37 + 46 + CAST ( ( - 49 ) AS INTEGER ) + - - 87 col1, 4 AS col2
----
173
4

query I rowsort
SELECT 87 * 97
----
8439

query I rowsort
SELECT DISTINCT - 11 + - 59 AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2538
SELECT ALL MAX( DISTINCT + ( - 12 ) )
----
-12

skipif mysql # not compatible
query I rowsort label-2538
SELECT ALL MAX ( DISTINCT + ( - 12 ) )
----
-12

query I rowsort
SELECT 61 + - 92 AS col2
----
-31

query I rowsort
SELECT 68 + 9 col2
----
77

query I rowsort
SELECT 77 + - 69 * - 27 * + 56 AS col2
----
104405

onlyif mysql # DIV for integer division: 
query I rowsort label-2542
SELECT ALL - 11 + - 44 + + + 89 DIV 96 * + 78 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-2542
SELECT ALL - 11 + - 44 + + + 89 / 96 * + 78 AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT 87 + 75 * 62 * MIN( - + 86 ) AS col0
----
-399813

skipif mysql # not compatible
query I rowsort label-2543
SELECT 87 + 75 * 62 * MIN ( - + 86 ) AS col0
----
-399813

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT ALL AVG ( DISTINCT + 72 ) * CASE - + 42 WHEN + - COUNT( * ) * - 2 + - + COUNT( * ) THEN - 57 WHEN 57 / + - COUNT( * ) - 91 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2544
SELECT ALL AVG ( DISTINCT + 72 ) * CASE - + 42 WHEN + - COUNT ( * ) * - 2 + - + COUNT ( * ) THEN - 57 WHEN 57 / + - COUNT ( * ) - 91 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT ALL + COUNT( * ) * + 27 * - MAX( ALL - NULLIF ( - 97, - + 39 + + 63 ) ) + 36 AS col0
----
-2583

skipif mysql # not compatible
query I rowsort label-2545
SELECT ALL + COUNT ( * ) * + 27 * - MAX ( ALL - NULLIF ( - 97, - + 39 + + 63 ) ) + 36 AS col0
----
-2583

query I rowsort
SELECT 77 * - 93 col0
----
-7161

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2547
SELECT - 90 DIV + - 76 + + - ( + MIN( ALL NULLIF ( 0, 28 ) ) ) + + - 13 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-2547
SELECT - 90 / + - 76 + + - ( + MIN ( ALL NULLIF ( 0, 28 ) ) ) + + - 13 AS col2
----
-12

query II rowsort
SELECT + 35 AS col0, - 52 * + + 51 * 12 * - - 32
----
35
-1018368

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT 41 * - MAX( + 91 )
----
-3731

skipif mysql # not compatible
query I rowsort label-2549
SELECT 41 * - MAX ( + 91 )
----
-3731

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2550
SELECT DISTINCT - COUNT( * ), CAST( NULL AS SIGNED ) / - - 41 AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-2550
SELECT DISTINCT - COUNT ( * ), CAST ( NULL AS INTEGER ) / - - 41 AS col1
----
-1
NULL

query I rowsort
SELECT ALL - 4 * - 36 col1
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT + - MAX( ALL 41 ) * 98 AS col1
----
-4018

skipif mysql # not compatible
query I rowsort label-2552
SELECT + - MAX ( ALL 41 ) * 98 AS col1
----
-4018

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2553
SELECT DISTINCT + 93 / - CASE + 91 WHEN - COUNT( 15 ) THEN + 91 WHEN + - COUNT( * ) THEN NULL WHEN 82 THEN - 5 ELSE ( COALESCE ( - + CASE - 67 WHEN 33 / + COUNT( * ) - + 89 + + 55 - + - 68 THEN + 90 * 9 WHEN - + CAST( - 55 AS SIGNED ) + 90 THEN NULL END, - + CAST( NULL AS DECIMAL ) - 35 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2553
SELECT DISTINCT + 93 / - CASE + 91 WHEN - COUNT ( 15 ) THEN + 91 WHEN + - COUNT ( * ) THEN NULL WHEN 82 THEN - 5 ELSE ( COALESCE ( - + CASE - 67 WHEN 33 / + COUNT ( * ) - + 89 + + 55 - + - 68 THEN + 90 * 9 WHEN - + CAST ( - 55 AS INTEGER ) + 90 THEN NULL END, - + CAST ( NULL AS REAL ) - 35 ) ) END
----
NULL

query I rowsort
SELECT ALL + + NULLIF ( - 17, + 18 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT ALL - SUM( DISTINCT + - 92 ) * - - 80 AS col2
----
7360

skipif mysql # not compatible
query I rowsort label-2555
SELECT ALL - SUM ( DISTINCT + - 92 ) * - - 80 AS col2
----
7360

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2556
SELECT + CAST( NULL AS SIGNED ), 65 col2
----
NULL
65

skipif mysql # not compatible
query II rowsort label-2556
SELECT + CAST ( NULL AS INTEGER ), 65 col2
----
NULL
65

query I rowsort
SELECT + 23 * 21 col2
----
483

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2558
SELECT + CASE - 41 WHEN COUNT( * ) THEN COALESCE ( CAST( + COUNT( * ) AS SIGNED ), - - 71 ) WHEN + 5 / - COALESCE ( - ( 5 ), - NULLIF ( + 2, - - 86 ) * - + 33, + 90 - + 17 ) * - - COUNT( + + 84 ) THEN + 40 + + 31 * - + 68 - - 71 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2558
SELECT + CASE - 41 WHEN COUNT ( * ) THEN COALESCE ( CAST ( + COUNT ( * ) AS INTEGER ), - - 71 ) WHEN + 5 / - COALESCE ( - ( 5 ), - NULLIF ( + 2, - - 86 ) * - + 33, + 90 - + 17 ) * - - COUNT ( + + 84 ) THEN + 40 + + 31 * - + 68 - - 71 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT ALL 67 * + - COUNT( * ) * COUNT( - 52 )
----
-67

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL 67 * + - COUNT ( * ) * COUNT ( - 52 )
----
-67

query I rowsort
SELECT + 37 * + - 65 AS col0
----
-2405

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT + 7 * - CASE 47 WHEN - 34 * + 42 + + 72 + 8 THEN - + ( - COUNT( * ) ) * - 78 * + 95 * - 79 + + 26 WHEN + + 65 THEN NULL END * - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-2561
SELECT + 7 * - CASE 47 WHEN - 34 * + 42 + + 72 + 8 THEN - + ( - COUNT ( * ) ) * - 78 * + 95 * - 79 + + 26 WHEN + + 65 THEN NULL END * - 53
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2562
SELECT - 11 + - + 96 DIV - 99
----
-11

skipif mysql # not compatible
query I rowsort label-2562
SELECT - 11 + - + 96 / - 99
----
-11

query I rowsort
SELECT ALL + 77 + + - 60 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT ALL 94 + - + 52 + COUNT( * ) + - 96 * - 34
----
3307

skipif mysql # not compatible
query I rowsort label-2564
SELECT ALL 94 + - + 52 + COUNT ( * ) + - 96 * - 34
----
3307

query I rowsort
SELECT + - 97 + - + 18 + + + 46 AS col2
----
-69

query I rowsort
SELECT ALL + NULLIF ( + 91, - 52 * - 43 + 9 )
----
91

query II rowsort
SELECT ALL 37 AS col2, 21 AS col0
----
37
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT + 11 - 82 - + 65 * COUNT( * ) AS col0
----
-136

skipif mysql # not compatible
query I rowsort label-2568
SELECT + 11 - 82 - + 65 * COUNT ( * ) AS col0
----
-136

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

skipif mysql # not compatible
query I rowsort label-2569
SELECT ALL + 24 * - COUNT ( * ) / COUNT ( * )
----
-24

query I rowsort
SELECT - 11 + - + 37 AS col2
----
-48

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT - 57 * - + COUNT( * ) * + + 59
----
3363

skipif mysql # not compatible
query I rowsort label-2572
SELECT - 57 * - + COUNT ( * ) * + + 59
----
3363

query I rowsort
SELECT ALL 63 * 57 col2
----
3591

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2574
SELECT DISTINCT - CASE CAST( - 15 AS SIGNED ) WHEN + 54 - + 8 * + + 48 * + - 12 * + 30 * + 95 THEN - + 66 * - 56 + 69 ELSE - 30 * + + 16 + - - CASE - + 16 WHEN 78 THEN NULL ELSE - + 92 END END + - 88 * + COUNT( * ) + + MIN( 49 ) + + - COUNT( DISTINCT - CAST( + 9 AS SIGNED ) )
----
532

skipif mysql # not compatible
query I rowsort label-2574
SELECT DISTINCT - CASE CAST ( - 15 AS INTEGER ) WHEN + 54 - + 8 * + + 48 * + - 12 * + 30 * + 95 THEN - + 66 * - 56 + 69 ELSE - 30 * + + 16 + - - CASE - + 16 WHEN 78 THEN NULL ELSE - + 92 END END + - 88 * + COUNT ( * ) + + MIN ( 49 ) + + - COUNT ( DISTINCT - CAST ( + 9 AS INTEGER ) )
----
532

onlyif mysql # aggregate syntax: 
query II rowsort label-2575
SELECT - 27 * - COUNT( * ), - 20 AS col2
----
27
-20

skipif mysql # not compatible
query II rowsort label-2575
SELECT - 27 * - COUNT ( * ), - 20 AS col2
----
27
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-2576
SELECT DISTINCT + COUNT( * ) - - - 86 AS col2, + 75 AS col1
----
-85
75

skipif mysql # not compatible
query II rowsort label-2576
SELECT DISTINCT + COUNT ( * ) - - - 86 AS col2, + 75 AS col1
----
-85
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT - MAX( - 15 ) * 27 - - 60 + + 17 AS col1
----
482

skipif mysql # not compatible
query I rowsort label-2578
SELECT - MAX ( - 15 ) * 27 - - 60 + + 17 AS col1
----
482

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2580
SELECT ALL + CAST( + 97 AS SIGNED ), 31 * + CAST( NULL AS SIGNED ) * + 39 - CASE - 41 WHEN - + 28 THEN - 73 END AS col1
----
97
NULL

skipif mysql # not compatible
query II rowsort label-2580
SELECT ALL + CAST ( + 97 AS INTEGER ), 31 * + CAST ( NULL AS INTEGER ) * + 39 - CASE - 41 WHEN - + 28 THEN - 73 END AS col1
----
97
NULL

query II rowsort
SELECT ALL + 64 * 26 AS col2, 5 * + 1
----
1664
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT - MIN( + 95 ) * 76 col0
----
-7220

skipif mysql # not compatible
query I rowsort label-2582
SELECT - MIN ( + 95 ) * 76 col0
----
-7220

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT - + 48 / + ( - COUNT( DISTINCT - 99 ) ) + - + CASE + 44 WHEN 97 THEN 85 * 2 WHEN 2 * + - 53 THEN NULL WHEN - + COALESCE ( COUNT( * ), + + NULLIF ( 88, 91 / - 82 * + + NULLIF ( + 79, - + 19 + + 46 - - - 47 ) ) / - - 96 * - 77 ) * - 27 THEN - COUNT( 92 ) * - + 6 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2583
SELECT - + 48 / + ( - COUNT ( DISTINCT - 99 ) ) + - + CASE + 44 WHEN 97 THEN 85 * 2 WHEN 2 * + - 53 THEN NULL WHEN - + COALESCE ( COUNT ( * ), + + NULLIF ( 88, 91 / - 82 * + + NULLIF ( + 79, - + 19 + + 46 - - - 47 ) ) / - - 96 * - 77 ) * - 27 THEN - COUNT ( 92 ) * - + 6 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2584
SELECT - COALESCE ( - NULLIF ( + 78, - NULLIF ( + + 83, - + 89 ) ), + 7 * + 18 + + - 85 ) * + 42 - + 68 * - - 16 col1, - CAST( NULL AS SIGNED )
----
2188
NULL

skipif mysql # not compatible
query II rowsort label-2584
SELECT - COALESCE ( - NULLIF ( + 78, - NULLIF ( + + 83, - + 89 ) ), + 7 * + 18 + + - 85 ) * + 42 - + 68 * - - 16 col1, - CAST ( NULL AS INTEGER )
----
2188
NULL

query I rowsort
SELECT - 12 + 69 AS col2
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2586
SELECT - - 33 * - + 45 + - CAST( NULL AS SIGNED ) + + + SUM( ALL - - 20 ) * + + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-2586
SELECT - - 33 * - + 45 + - CAST ( NULL AS INTEGER ) + + + SUM ( ALL - - 20 ) * + + 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT CASE COUNT( * ) WHEN - 40 + + 75 + + COUNT( * ) / + 5 THEN 1 / 23 WHEN + - 92 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2587
SELECT CASE COUNT ( * ) WHEN - 40 + + 75 + + COUNT ( * ) / + 5 THEN 1 / 23 WHEN + - 92 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT + 38 * - - 33 + - COUNT( * ) * + ( + + 0 ) - COUNT( * ) AS col1
----
1253

skipif mysql # not compatible
query I rowsort label-2588
SELECT + 38 * - - 33 + - COUNT ( * ) * + ( + + 0 ) - COUNT ( * ) AS col1
----
1253

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT + - ( - - 23 ) + COUNT( 80 ) * + + MAX( ALL 7 ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-2589
SELECT + - ( - - 23 ) + COUNT ( 80 ) * + + MAX ( ALL 7 ) AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT ALL - CASE - 74 WHEN 10 THEN NULL ELSE - MIN( + - 98 ) END * + 60 + + SUM( - 73 ) + - - ( - 89 ) + + 39 + 83 + - 67 col0
----
-5987

skipif mysql # not compatible
query I rowsort label-2590
SELECT ALL - CASE - 74 WHEN 10 THEN NULL ELSE - MIN ( + - 98 ) END * + 60 + + SUM ( - 73 ) + - - ( - 89 ) + + 39 + 83 + - 67 col0
----
-5987

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2591
SELECT - 24 DIV - 72 * - - 3 * + 97 + NULLIF ( - 50, - 25 + - 2 * + CAST( NULL AS SIGNED ) * + 96 * - CAST( NULL AS SIGNED ) )
----
-50

skipif mysql # not compatible
query I rowsort label-2591
SELECT - 24 / - 72 * - - 3 * + 97 + NULLIF ( - 50, - 25 + - 2 * + CAST ( NULL AS INTEGER ) * + 96 * - CAST ( NULL AS INTEGER ) )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT - - 18 * ( - - COUNT( + 26 ) ) + + 88 + COUNT( * ) + - NULLIF ( - 92, + 78 ) AS col1
----
199

skipif mysql # not compatible
query I rowsort label-2592
SELECT - - 18 * ( - - COUNT ( + 26 ) ) + + 88 + COUNT ( * ) + - NULLIF ( - 92, + 78 ) AS col1
----
199

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

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

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

skipif mysql # not compatible
query I rowsort label-2594
SELECT CAST ( NULL AS INTEGER ) * - 17 + 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT MIN( ALL + 50 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-2595
SELECT MIN ( ALL + 50 ) AS col1
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2596
SELECT ALL 71 * - + 61 + + - 56 + - CAST( 0 AS SIGNED ) * - + 93 AS col1, - 66 * 5
----
-4387
-330

skipif mysql # not compatible
query II rowsort label-2596
SELECT ALL 71 * - + 61 + + - 56 + - CAST ( 0 AS INTEGER ) * - + 93 AS col1, - 66 * 5
----
-4387
-330

query I rowsort
SELECT DISTINCT - 11 * + 93 AS col0
----
-1023

onlyif mysql # DIV for integer division: 
query I rowsort label-2598
SELECT + 99 - - 53 DIV + 83 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-2598
SELECT + 99 - - 53 / + 83 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT ALL 16 - - + COUNT( * ) + - 85 - - 44 * - 53 col1
----
-2400

skipif mysql # not compatible
query I rowsort label-2599
SELECT ALL 16 - - + COUNT ( * ) + - 85 - - 44 * - 53 col1
----
-2400

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

query I rowsort
SELECT - 45 - - 81 + + 98 * 47 AS col2
----
4642

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT DISTINCT MIN( ALL + 10 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-2602
SELECT DISTINCT MIN ( ALL + 10 ) AS col2
----
10

query I rowsort
SELECT + 15 + 50
----
65

query I rowsort
SELECT - 80 + + + ( + 62 ) AS col2
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-2605
SELECT + 68 * 20 DIV ( 89 )
----
15

skipif mysql # not compatible
query I rowsort label-2605
SELECT + 68 * 20 / ( 89 )
----
15

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT ALL COALESCE ( + 76, - 50 + 4 ) * + COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-2609
SELECT ALL COALESCE ( + 76, - 50 + 4 ) * + COUNT ( * )
----
76

query I rowsort
SELECT + 74 * 90
----
6660

query II rowsort
SELECT 31, + 77 - - 62 * + 0 col2
----
31
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT 94 + - - COUNT( * ) + + 46
----
141

skipif mysql # not compatible
query I rowsort label-2612
SELECT 94 + - - COUNT ( * ) + + 46
----
141

query II rowsort
SELECT ALL - + 22, - ( 76 ) AS col0
----
-22
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-2614
SELECT + ( + COALESCE ( + ( + 61 ), + 78 DIV + 27, - - 43 * + 56 + 28 ) ) col0
----
61

skipif mysql # not compatible
query I rowsort label-2614
SELECT + ( + COALESCE ( + ( + 61 ), + 78 / + 27, - - 43 * + 56 + 28 ) ) col0
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2615
SELECT 43 * COUNT( * ) DIV + NULLIF ( + 65, + 39 ) * COALESCE ( - 71, - NULLIF ( + 70, - 91 + - COALESCE ( - 50, - - MAX( ALL + ( - - 2 ) ) + - 34 + - + 54 + + 47 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-2615
SELECT 43 * COUNT ( * ) / + NULLIF ( + 65, + 39 ) * COALESCE ( - 71, - NULLIF ( + 70, - 91 + - COALESCE ( - 50, - - MAX ( ALL + ( - - 2 ) ) + - 34 + - + 54 + + 47 ) ) )
----
0

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2617
SELECT ALL - + 89, 44 DIV + 42 AS col2
----
-89
1

skipif mysql # not compatible
query II rowsort label-2617
SELECT ALL - + 89, 44 / + 42 AS col2
----
-89
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2618
SELECT CASE + 83 WHEN 25 THEN - 50 WHEN + 37 - + + 59 THEN - - 55 ELSE CASE - 77 WHEN - 18 THEN 54 WHEN 8 THEN - 44 * - 6 END * + ( - CASE - - 78 WHEN 18 THEN NULL WHEN + + 20 * + + 26 THEN NULL ELSE + 21 END ) - + - CASE - + MIN( ALL - - 99 ) WHEN 39 THEN 2 WHEN - 43 THEN - + ( - 36 ) + + ( 92 ) + COUNT( * ) + - 26 + + 16 - CAST( NULL AS SIGNED ) ELSE + 29 / 70 + + 77 END - + ( - 70 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2618
SELECT CASE + 83 WHEN 25 THEN - 50 WHEN + 37 - + + 59 THEN - - 55 ELSE CASE - 77 WHEN - 18 THEN 54 WHEN 8 THEN - 44 * - 6 END * + ( - CASE - - 78 WHEN 18 THEN NULL WHEN + + 20 * + + 26 THEN NULL ELSE + 21 END ) - + - CASE - + MIN ( ALL - - 99 ) WHEN 39 THEN 2 WHEN - 43 THEN - + ( - 36 ) + + ( 92 ) + COUNT ( * ) + - 26 + + 16 - CAST ( NULL AS INTEGER ) ELSE + 29 / 70 + + 77 END - + ( - 70 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT DISTINCT - + NULLIF ( COUNT( DISTINCT + - 91 ), NULLIF ( MAX( + - 29 ), + - 18 ) * + 14 + 36 - - - 97 + - SUM( ALL 68 ) + - ( - ( - + 85 ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2619
SELECT DISTINCT - + NULLIF ( COUNT ( DISTINCT + - 91 ), NULLIF ( MAX ( + - 29 ), + - 18 ) * + 14 + 36 - - - 97 + - SUM ( ALL 68 ) + - ( - ( - + 85 ) ) ) AS col1
----
-1

query I rowsort
SELECT DISTINCT + + 65 + + COALESCE ( - 63, - 19 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT - CASE + - ( + 25 ) WHEN - 37 THEN 91 WHEN + 25 / 82 THEN + + 90 END - - - 24 + + + 5 + - CASE - - NULLIF ( - SUM( DISTINCT 66 ), 83 - - 62 + - 83 ) WHEN 0 THEN + + 21 + + 59 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2621
SELECT - CASE + - ( + 25 ) WHEN - 37 THEN 91 WHEN + 25 / 82 THEN + + 90 END - - - 24 + + + 5 + - CASE - - NULLIF ( - SUM ( DISTINCT 66 ), 83 - - 62 + - 83 ) WHEN 0 THEN + + 21 + + 59 END AS col2
----
NULL

query I rowsort
SELECT - 82 * 69 AS col1
----
-5658

query I rowsort
SELECT ALL - 25 * + ( + 6 ) * + 32
----
-4800

query I rowsort
SELECT ALL 76 - + 13 * ( - 54 )
----
778

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2625
SELECT 71 * + - 30 * - + 7 * + + 67 AS col0, - 15 + COUNT( * ) + + 92 + - - COUNT( * ) DIV + 83 - 66 col1
----
998970
12

skipif mysql # not compatible
query II rowsort label-2625
SELECT 71 * + - 30 * - + 7 * + + 67 AS col0, - 15 + COUNT ( * ) + + 92 + - - COUNT ( * ) / + 83 - 66 col1
----
998970
12

onlyif mysql # DIV for integer division: 
query I rowsort label-2626
SELECT 90 DIV - 15 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-2626
SELECT 90 / - 15 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-2627
SELECT MIN( 83 ) * COUNT( * ) + 71 AS col2, 93 + + - COUNT( * )
----
154
92

skipif mysql # not compatible
query II rowsort label-2627
SELECT MIN ( 83 ) * COUNT ( * ) + 71 AS col2, 93 + + - COUNT ( * )
----
154
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2628
SELECT DISTINCT + SUM( 7 ) / + 8 + + COUNT( * ) + 34 + + 68 / + - 84 + NULLIF ( COUNT( * ), - + 88 + CAST( + 18 AS DECIMAL ) ) / - + CAST( NULL AS SIGNED ) * 88 + 52 AS col0, + 7 * 43 - - ( + 55 )
----
NULL
356

skipif mysql # not compatible
query II rowsort label-2628
SELECT DISTINCT + SUM ( 7 ) / + 8 + + COUNT ( * ) + 34 + + 68 / + - 84 + NULLIF ( COUNT ( * ), - + 88 + CAST ( + 18 AS REAL ) ) / - + CAST ( NULL AS INTEGER ) * 88 + 52 AS col0, + 7 * 43 - - ( + 55 )
----
NULL
356

query I rowsort
SELECT 80 + + 97 * 23
----
2311

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-2630
SELECT NULLIF ( - COUNT( * ), - + CAST( - - CAST( + + 99 AS DECIMAL ) AS SIGNED ) ) DIV + 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2630
SELECT NULLIF ( - COUNT ( * ), - + CAST ( - - CAST ( + + 99 AS REAL ) AS INTEGER ) ) / + 99 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2631
SELECT ALL COUNT( * ) * + - 19 * + ( + - 47 ), + 66 AS col2
----
893
66

skipif mysql # not compatible
query II rowsort label-2631
SELECT ALL COUNT ( * ) * + - 19 * + ( + - 47 ), + 66 AS col2
----
893
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2632
SELECT 86 * MIN( - + 43 ) * 16 DIV - 60 AS col1
----
986

skipif mysql # not compatible
query I rowsort label-2632
SELECT 86 * MIN ( - + 43 ) * 16 / - 60 AS col1
----
986

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT NULLIF ( - 3, + 63 * - 69 + 53 + + - ( - 32 ) ) + - COUNT( * ) col2
----
-4

skipif mysql # not compatible
query I rowsort label-2633
SELECT NULLIF ( - 3, + 63 * - 69 + 53 + + - ( - 32 ) ) + - COUNT ( * ) col2
----
-4

query I rowsort
SELECT ALL 4 * + 37 col0
----
148

onlyif mysql # DIV for integer division: 
query I rowsort label-2635
SELECT COALESCE ( + 50, + 8 ) DIV - ( + 60 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2635
SELECT COALESCE ( + 50, + 8 ) / - ( + 60 ) AS col0
----
0

query I rowsort
SELECT DISTINCT - 8 * - + 99 AS col0
----
792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2637
SELECT ALL 68 * - 2 / - 55 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2637
SELECT ALL 68 * - 2 / - 55 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2638
SELECT DISTINCT MIN( ALL + + 75 ) + - 91 + - + 57 DIV - 99 col0
----
-16

skipif mysql # not compatible
query I rowsort label-2638
SELECT DISTINCT MIN ( ALL + + 75 ) + - 91 + - + 57 / - 99 col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT DISTINCT 16 + + ( - 79 ) + + 1 + - COUNT( * ) + 70 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-2639
SELECT DISTINCT 16 + + ( - 79 ) + + 1 + - COUNT ( * ) + 70 AS col0
----
7

query I rowsort
SELECT ( 6 ) * 25 AS col1
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2641
SELECT ALL - MIN( + + CAST( NULL AS SIGNED ) ) + 29 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2641
SELECT ALL - MIN ( + + CAST ( NULL AS INTEGER ) ) + 29 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT - 46 * + ( + - SUM( DISTINCT - 91 ) ) + 65 - COUNT( * ) AS col0
----
-4122

skipif mysql # not compatible
query I rowsort label-2642
SELECT - 46 * + ( + - SUM ( DISTINCT - 91 ) ) + 65 - COUNT ( * ) AS col0
----
-4122

query I rowsort
SELECT DISTINCT + 54 + 55 + 69
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT - 30 * 81 * COALESCE ( + - COUNT( * ), 56, COUNT( * ) ) AS col1
----
2430

skipif mysql # not compatible
query I rowsort label-2644
SELECT - 30 * 81 * COALESCE ( + - COUNT ( * ), 56, COUNT ( * ) ) AS col1
----
2430

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT ALL COUNT( * ) + + + 65
----
66

skipif mysql # not compatible
query I rowsort label-2645
SELECT ALL COUNT ( * ) + + + 65
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2646
SELECT + + MAX( + 32 ) AS col0, - 66 + 40 - - + 89 * - 95 + + CAST( NULL AS SIGNED ) + 74 * + - 28 + - 30 + + NULLIF ( + - 75, + COUNT( * ) ) AS col2
----
32
NULL

skipif mysql # not compatible
query II rowsort label-2646
SELECT + + MAX ( + 32 ) AS col0, - 66 + 40 - - + 89 * - 95 + + CAST ( NULL AS INTEGER ) + 74 * + - 28 + - 30 + + NULLIF ( + - 75, + COUNT ( * ) ) AS col2
----
32
NULL

query I rowsort
SELECT + + CASE 25 WHEN - - 96 THEN - 25 END * + + 85 - + 91 * - 61 / 9
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2648
SELECT + CASE - 3 WHEN - COUNT( * ) THEN NULL WHEN 15 THEN - 16 ELSE + - 13 + COUNT( * ) END, + COALESCE ( 41, CAST( NULL AS SIGNED ) ) * - - NULLIF ( - - 63, + 25 ) AS col2
----
-12
2583

skipif mysql # not compatible
query II rowsort label-2648
SELECT + CASE - 3 WHEN - COUNT ( * ) THEN NULL WHEN 15 THEN - 16 ELSE + - 13 + COUNT ( * ) END, + COALESCE ( 41, CAST ( NULL AS INTEGER ) ) * - - NULLIF ( - - 63, + 25 ) AS col2
----
-12
2583

query I rowsort
SELECT + 4 * + 27 + - CASE - ( + 19 ) WHEN - - 81 + + + 19 THEN + 93 WHEN + 85 THEN - 59 * + 59 - - 60 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2650
SELECT 37 DIV MIN( ALL 81 ) - + + 2 col1, 90 * - 89 AS col1
----
-2
-8010

skipif mysql # not compatible
query II rowsort label-2650
SELECT 37 / MIN ( ALL 81 ) - + + 2 col1, 90 * - 89 AS col1
----
-2
-8010

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT ALL - SUM( ALL 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-2651
SELECT ALL - SUM ( ALL 86 )
----
-86

query I rowsort
SELECT 90 + 32
----
122

onlyif mysql # aggregate syntax: 
query II rowsort label-2653
SELECT ALL + 66 - - 78 + + + COUNT( * ) col1, 15 * - 27 AS col2
----
145
-405

skipif mysql # not compatible
query II rowsort label-2653
SELECT ALL + 66 - - 78 + + + COUNT ( * ) col1, 15 * - 27 AS col2
----
145
-405

query I rowsort
SELECT 99 + 36 col2
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT ALL + 94 * + 9 * - 40 * + - ( - + COALESCE ( - - 77, - MIN( ALL + 27 ) * 1, - 33 ) )
----
-2605680

skipif mysql # not compatible
query I rowsort label-2655
SELECT ALL + 94 * + 9 * - 40 * + - ( - + COALESCE ( - - 77, - MIN ( ALL + 27 ) * 1, - 33 ) )
----
-2605680

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT 96 * - ( - COUNT( DISTINCT + ( 58 ) ) ) * + MIN( + 75 ) * 22 * - 32
----
-5068800

skipif mysql # not compatible
query I rowsort label-2656
SELECT 96 * - ( - COUNT ( DISTINCT + ( 58 ) ) ) * + MIN ( + 75 ) * 22 * - 32
----
-5068800

query I rowsort
SELECT DISTINCT + 76 * + 26
----
1976

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT ALL + SUM( 25 ) + NULLIF ( - NULLIF ( + + MAX( - - ( + ( 38 ) ) ), CASE WHEN NOT ( NULL ) < - 92 THEN + 29 * - NULLIF ( - 60, - - ( - 67 ) * 34 ) * + - 61 / - CASE + 63 WHEN + ( 71 ) * + + 29 THEN - 57 ELSE NULL END + 83 + + - 35 END ), ( + 34 ) ) * 16 AS col0
----
-583

skipif mysql # not compatible
query I rowsort label-2658
SELECT ALL + SUM ( 25 ) + NULLIF ( - NULLIF ( + + MAX ( - - ( + ( 38 ) ) ), CASE WHEN NOT ( NULL ) < - 92 THEN + 29 * - NULLIF ( - 60, - - ( - 67 ) * 34 ) * + - 61 / - CASE + 63 WHEN + ( 71 ) * + + 29 THEN - 57 ELSE NULL END + 83 + + - 35 END ), ( + 34 ) ) * 16 AS col0
----
-583

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT - 50 + - 82 + + 78 * + ( + + 62 ) * - 63 + + COUNT( * ) + + - 74
----
-304873

skipif mysql # not compatible
query I rowsort label-2659
SELECT - 50 + - 82 + + 78 * + ( + + 62 ) * - 63 + + COUNT ( * ) + + - 74
----
-304873

onlyif mysql # DIV for integer division: 
query I rowsort label-2660
SELECT - 26 + + 79 DIV - 61 + 17
----
-10

skipif mysql # not compatible
query I rowsort label-2660
SELECT - 26 + + 79 / - 61 + 17
----
-10

query I rowsort
SELECT - 2 + 96
----
94

query I rowsort
SELECT + 8 - 91
----
-83

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2664
SELECT + ( 14 ) DIV 16
----
0

skipif mysql # not compatible
query I rowsort label-2664
SELECT + ( 14 ) / 16
----
0

query I rowsort
SELECT DISTINCT - 14 + + ( + 36 ) col0
----
22

query I rowsort
SELECT ALL + ( 96 ) + + 20 AS col2
----
116

query I rowsort
SELECT + 48 + - 31 AS col1
----
17

query I rowsort
SELECT ALL 54 + + 97 * 63
----
6165

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2669
SELECT + 53 DIV 80 + ( COUNT( * ) + + 91 * COUNT( DISTINCT 64 + 74 ) ) * 18 AS col2
----
1656

skipif mysql # not compatible
query I rowsort label-2669
SELECT + 53 / 80 + ( COUNT ( * ) + + 91 * COUNT ( DISTINCT 64 + 74 ) ) * 18 AS col2
----
1656

query I rowsort
SELECT - 36 * + 67 AS col2
----
-2412

query I rowsort
SELECT + COALESCE ( 57, + 83 * 77 ) * ( 6 )
----
342

onlyif mysql # DIV for integer division: 
query I rowsort label-2672
SELECT ( - ( - COALESCE ( 11, + ( 87 ) DIV + CASE 35 WHEN + 93 + 67 THEN - 88 ELSE + 45 * - 20 END ) ) )
----
11

skipif mysql # not compatible
query I rowsort label-2672
SELECT ( - ( - COALESCE ( 11, + ( 87 ) / + CASE 35 WHEN + 93 + 67 THEN - 88 ELSE + 45 * - 20 END ) ) )
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2673
SELECT + 18 + + SUM( ALL 30 ) DIV 6 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-2673
SELECT + 18 + + SUM ( ALL 30 ) / 6 AS col1
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2674
SELECT + COUNT( * ) * + 43 + - 1 DIV - 87 col2
----
43

skipif mysql # not compatible
query I rowsort label-2674
SELECT + COUNT ( * ) * + 43 + - 1 / - 87 col2
----
43

query I rowsort
SELECT ALL 15 * - 35 - 70 AS col1
----
-595

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT CASE COUNT( * ) WHEN + 84 * + ( SUM( - 27 ) ) THEN ( 65 ) WHEN - 10 * - 1 THEN NULL ELSE - 9 * + 25 END
----
-225

skipif mysql # not compatible
query I rowsort label-2676
SELECT CASE COUNT ( * ) WHEN + 84 * + ( SUM ( - 27 ) ) THEN ( 65 ) WHEN - 10 * - 1 THEN NULL ELSE - 9 * + 25 END
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT + COALESCE ( 69, 12, 65, COUNT( * ) * + COUNT( * ) )
----
69

skipif mysql # not compatible
query I rowsort label-2677
SELECT + COALESCE ( 69, 12, 65, COUNT ( * ) * + COUNT ( * ) )
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2678
SELECT + CAST( 27 AS SIGNED ) * + COALESCE ( CAST( NULL AS SIGNED ) * 26, + 81 )
----
2187

skipif mysql # not compatible
query I rowsort label-2678
SELECT + CAST ( 27 AS INTEGER ) * + COALESCE ( CAST ( NULL AS INTEGER ) * 26, + 81 )
----
2187

query I rowsort
SELECT + ( + 40 ) - + 39
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2680
SELECT - 28 DIV + 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2680
SELECT - 28 / + 67 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT ALL COUNT( * ) * - 36 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-2681
SELECT ALL COUNT ( * ) * - 36 AS col0
----
-36

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

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

query I rowsort
SELECT NULLIF ( 63, + 3 )
----
63

query I rowsort
SELECT CASE 54 WHEN COALESCE ( + 30, + 75 * - 16 ) THEN NULL ELSE 34 END
----
34

query I rowsort
SELECT - 33 * CASE 9 * + 60 WHEN - ( 63 ) + + 93 THEN 90 / - 44 + - 41 END + 61
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2687
SELECT DISTINCT - 17 DIV - ( + 80 * - 49 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2687
SELECT DISTINCT - 17 / - ( + 80 * - 49 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2688
SELECT - 70 * 35 + + NULLIF ( - NULLIF ( 61, 51 / COUNT( * ) + - COUNT( * ) ) + + 14, CASE + 22 WHEN 46 - + CAST( - ( 97 ) AS SIGNED ) THEN 42 ELSE NULL END + - 40 * + 58 ) col2
----
-2497

skipif mysql # not compatible
query I rowsort label-2688
SELECT - 70 * 35 + + NULLIF ( - NULLIF ( 61, 51 / COUNT ( * ) + - COUNT ( * ) ) + + 14, CASE + 22 WHEN 46 - + CAST ( - ( 97 ) AS INTEGER ) THEN 42 ELSE NULL END + - 40 * + 58 ) col2
----
-2497

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2689
SELECT ALL 51 DIV MAX( DISTINCT - 6 )
----
-8

skipif mysql # not compatible
query I rowsort label-2689
SELECT ALL 51 / MAX ( DISTINCT - 6 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT - 62 + + SUM( ALL 62 + + 27 ) * 34
----
2964

skipif mysql # not compatible
query I rowsort label-2690
SELECT - 62 + + SUM ( ALL 62 + + 27 ) * 34
----
2964

query I rowsort
SELECT DISTINCT + 9 * - 46 + 17 AS col2
----
-397

query I rowsort
SELECT - 39 * + 83 AS col2
----
-3237

query I rowsort
SELECT + 50 * 10
----
500

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2696
SELECT DISTINCT + ( 4 ) + - ( CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2696
SELECT DISTINCT + ( 4 ) + - ( CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT - COALESCE ( + COUNT( * ), - 67 * - 24, - 25 ) + 97
----
96

skipif mysql # not compatible
query I rowsort label-2697
SELECT - COALESCE ( + COUNT ( * ), - 67 * - 24, - 25 ) + 97
----
96

query I rowsort
SELECT DISTINCT + 87 + + ( - 53 + 41 )
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2699
SELECT DISTINCT CASE 79 WHEN - CASE 95 WHEN - 15 THEN NULL WHEN - NULLIF ( + ( - 80 ), 76 + - 59 ) * 51 THEN NULL ELSE AVG ( ALL 39 ) END - NULLIF ( + ( MAX( - 88 ) ) + COUNT( * ), - COUNT( * ) ) THEN 58 WHEN ( + 43 ) + + 35 THEN NULL WHEN - 43 THEN MAX( 72 ) + + 9 / - 26 ELSE + CASE + ( ( + ( - 13 ) ) ) WHEN - 21 THEN NULL WHEN - 48 * + CAST( NULL AS SIGNED ) + - 83 THEN - COUNT( * ) ELSE SUM( 65 ) END - + COUNT( * ) END
----
64

skipif mysql # not compatible
query I rowsort label-2699
SELECT DISTINCT CASE 79 WHEN - CASE 95 WHEN - 15 THEN NULL WHEN - NULLIF ( + ( - 80 ), 76 + - 59 ) * 51 THEN NULL ELSE AVG ( ALL 39 ) END - NULLIF ( + ( MAX ( - 88 ) ) + COUNT ( * ), - COUNT ( * ) ) THEN 58 WHEN ( + 43 ) + + 35 THEN NULL WHEN - 43 THEN MAX ( 72 ) + + 9 / - 26 ELSE + CASE + ( ( + ( - 13 ) ) ) WHEN - 21 THEN NULL WHEN - 48 * + CAST ( NULL AS INTEGER ) + - 83 THEN - COUNT ( * ) ELSE SUM ( 65 ) END - + COUNT ( * ) END
----
64

query I rowsort
SELECT ALL - CASE - 54 WHEN - 68 THEN 99 + - 32 END col0
----
NULL

query I rowsort
SELECT - + 59 * - 43 col1
----
2537

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2702
SELECT ALL + SUM( ALL - 70 ) + NULLIF ( - 6, CAST( - ( COUNT( * ) ) AS SIGNED ) )
----
-76

skipif mysql # not compatible
query I rowsort label-2702
SELECT ALL + SUM ( ALL - 70 ) + NULLIF ( - 6, CAST ( - ( COUNT ( * ) ) AS INTEGER ) )
----
-76

query I rowsort
SELECT DISTINCT 34 + + ( 84 ) AS col0
----
118

query I rowsort
SELECT ALL + 73 + ( + ( 9 ) - 36 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT - 21 * + NULLIF ( COUNT( * ), + 1 * + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2705
SELECT - 21 * + NULLIF ( COUNT ( * ), + 1 * + COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT ALL COUNT( * ) - 33 * 84
----
-2771

skipif mysql # not compatible
query I rowsort label-2706
SELECT ALL COUNT ( * ) - 33 * 84
----
-2771

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

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

query I rowsort
SELECT DISTINCT - - 53 * - 88
----
-4664

query I rowsort
SELECT DISTINCT - 47 * - 80
----
3760

onlyif mysql # DIV for integer division: 
query I rowsort label-2710
SELECT - 12 DIV ( - 2 + - 92 ) - 30 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-2710
SELECT - 12 / ( - 2 + - 92 ) - 30 AS col2
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2711
SELECT ALL + 51 DIV + COUNT( * ) - - 85 * - 35 AS col2
----
-2924

skipif mysql # not compatible
query I rowsort label-2711
SELECT ALL + 51 / + COUNT ( * ) - - 85 * - 35 AS col2
----
-2924

query I rowsort
SELECT DISTINCT + + 41 * 30
----
1230

onlyif mysql # DIV for integer division: 
query I rowsort label-2713
SELECT DISTINCT 63 DIV + 23 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2713
SELECT DISTINCT 63 / + 23 AS col2
----
2

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

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

query I rowsort
SELECT DISTINCT + 86 * + 11
----
946

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT 2 * NULLIF ( - 49, + NULLIF ( COALESCE ( ( 33 ), COUNT( * ) ), - 60 ) / - 45 ) + + 11 * 80
----
782

skipif mysql # not compatible
query I rowsort label-2716
SELECT 2 * NULLIF ( - 49, + NULLIF ( COALESCE ( ( 33 ), COUNT ( * ) ), - 60 ) / - 45 ) + + 11 * 80
----
782

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2718
SELECT - CAST( NULLIF ( COALESCE ( 66, - 26 * - COUNT( * ), + CASE 49 WHEN - COALESCE ( + 93, - NULLIF ( 16, 10 ) ) * + 43 + MAX( + 88 ) THEN COUNT( DISTINCT + 71 ) * 90 WHEN - 56 THEN NULL ELSE 37 + 37 END ), + ( 48 ) ) AS SIGNED ) + + COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-2718
SELECT - CAST ( NULLIF ( COALESCE ( 66, - 26 * - COUNT ( * ), + CASE 49 WHEN - COALESCE ( + 93, - NULLIF ( 16, 10 ) ) * + 43 + MAX ( + 88 ) THEN COUNT ( DISTINCT + 71 ) * 90 WHEN - 56 THEN NULL ELSE 37 + 37 END ), + ( 48 ) ) AS INTEGER ) + + COUNT ( * )
----
-65

query I rowsort
SELECT - 23 * CASE 79 WHEN NULLIF ( - NULLIF ( + 24, 67 ), 62 + - 31 ) THEN + 96 END - 44
----
NULL

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

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

query I rowsort
SELECT ALL - COALESCE ( - 78, - 70, - 41 ) AS col2
----
78

query I rowsort
SELECT ALL - 76 + + + 1 + + 38 AS col2
----
-37

query I rowsort
SELECT DISTINCT - NULLIF ( 30, 80 ) AS col0
----
-30

query I rowsort
SELECT ALL 81 + + 41 + 27 AS col0
----
149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2725
SELECT ALL COALESCE ( - 10, 58 DIV 29 ) + COUNT( * ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-2725
SELECT ALL COALESCE ( - 10, 58 / 29 ) + COUNT ( * ) AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT - 66 * - COUNT( * ) + - 12 * - NULLIF ( - 89, + 52 )
----
-1002

skipif mysql # not compatible
query I rowsort label-2726
SELECT - 66 * - COUNT ( * ) + - 12 * - NULLIF ( - 89, + 52 )
----
-1002

query I rowsort
SELECT DISTINCT 10 + + 60
----
70

query I rowsort
SELECT ALL 45 + 72 AS col2
----
117

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2729
SELECT NULLIF ( - CASE 94 WHEN CASE CAST( NULL AS DECIMAL ) WHEN - 26 * 99 + 95 THEN NULL ELSE 16 END * - 17 - CAST( NULL AS DECIMAL ) * 48 THEN NULL WHEN 59 * - COUNT( * ) THEN - COALESCE ( + NULLIF ( - 35, 71 + + 27 ), 42 + 23, 6 * COUNT( * ) ) DIV - 48 ELSE 9 END, 64 * - 65 ) + - 27 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-2729
SELECT NULLIF ( - CASE 94 WHEN CASE CAST ( NULL AS REAL ) WHEN - 26 * 99 + 95 THEN NULL ELSE 16 END * - 17 - CAST ( NULL AS REAL ) * 48 THEN NULL WHEN 59 * - COUNT ( * ) THEN - COALESCE ( + NULLIF ( - 35, 71 + + 27 ), 42 + 23, 6 * COUNT ( * ) ) / - 48 ELSE 9 END, 64 * - 65 ) + - 27 AS col0
----
-36

query I rowsort
SELECT 14 * + + 91 AS col2
----
1274

onlyif mysql # DIV for integer division: 
query I rowsort label-2731
SELECT 50 * - - 68 DIV 68 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-2731
SELECT 50 * - - 68 / 68 AS col2
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-2732
SELECT 56 DIV 13 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-2732
SELECT 56 / 13 AS col2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2733
SELECT + NULLIF ( - 13, 19 ) * CAST( NULL AS SIGNED ) + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-2733
SELECT + NULLIF ( - 13, 19 ) * CAST ( NULL AS INTEGER ) + 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT DISTINCT 44 + + CASE 32 WHEN - COUNT( * ) THEN + 85 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2734
SELECT DISTINCT 44 + + CASE 32 WHEN - COUNT ( * ) THEN + 85 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2735
SELECT ALL - 94 DIV + 45 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2735
SELECT ALL - 94 / + 45 AS col2
----
-2

query I rowsort
SELECT DISTINCT 39 - 3
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT ALL MIN( - + 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-2737
SELECT ALL MIN ( - + 26 )
----
-26

query I rowsort
SELECT ALL + 2 - 92 + + 71
----
-19

query I rowsort
SELECT 73 + - 93 AS col2
----
-20

query I rowsort
SELECT - 6 - - 69 col1
----
63

query I rowsort
SELECT 63 - + - 52 AS col0
----
115

query I rowsort
SELECT ALL - 42 - 37 AS col0
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2743
SELECT ALL - 9 * + COUNT( ALL + 70 ) * - 8 + + CASE - COUNT( 95 ) WHEN 87 + - ( + 19 ) THEN + 28 ELSE + 95 + 50 END DIV - 39 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-2743
SELECT ALL - 9 * + COUNT ( ALL + 70 ) * - 8 + + CASE - COUNT ( 95 ) WHEN 87 + - ( + 19 ) THEN + 28 ELSE + 95 + 50 END / - 39 AS col1
----
69

query I rowsort
SELECT 12 * - 96
----
-1152

query I rowsort
SELECT ALL - 98 * + 64
----
-6272

query I rowsort
SELECT + 99 + - 52 + + ( - 64 ) AS col2
----
-17

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

skipif mysql # not compatible
query I rowsort label-2747
SELECT ALL - - 67 / COUNT ( * )
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-2748
SELECT - ( + - 41 ) DIV - 33 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2748
SELECT - ( + - 41 ) / - 33 AS col0
----
-1

query I rowsort
SELECT 81 + - - 35
----
116

query I rowsort
SELECT 80 * - + 10
----
-800

query II rowsort
SELECT + 92 AS col2, - 91 AS col1
----
92
-91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT ALL - 44 + COUNT( * ) * 42 + - 62 * + 92
----
-5706

skipif mysql # not compatible
query I rowsort label-2753
SELECT ALL - 44 + COUNT ( * ) * 42 + - 62 * + 92
----
-5706

query I rowsort
SELECT DISTINCT + 90 + + - 88 col1
----
2

query I rowsort
SELECT ALL 40 + - 86 * + 7
----
-562

query I rowsort
SELECT DISTINCT CASE + ( 5 ) WHEN 13 THEN 36 WHEN 17 * + 57 THEN NULL WHEN ( + 35 ) + 79 THEN - 86 ELSE NULL END + 25 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2757
SELECT DISTINCT - MIN( 31 ) + + + 8 - 6 * 75
----
-473

skipif mysql # not compatible
query I rowsort label-2757
SELECT DISTINCT - MIN ( 31 ) + + + 8 - 6 * 75
----
-473

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2758
SELECT ALL COALESCE ( + 69, - - COUNT( * ) - 81, 16 * - CAST( NULL AS SIGNED ), + 81 ) DIV ( 29 DIV 66 + + COUNT( * ) )
----
69

skipif mysql # not compatible
query I rowsort label-2758
SELECT ALL COALESCE ( + 69, - - COUNT ( * ) - 81, 16 * - CAST ( NULL AS INTEGER ), + 81 ) / ( 29 / 66 + + COUNT ( * ) )
----
69

query I rowsort
SELECT ALL - 45 + ( 59 )
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2760
SELECT 5 - ( + AVG ( + 60 ) ) + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2760
SELECT 5 - ( + AVG ( + 60 ) ) + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT ALL - 85 AS col1, - ( 55 ) AS col2
----
-85
-55

query II rowsort
SELECT 44 AS col1, + ( - 91 ) AS col1
----
44
-91

query I rowsort
SELECT CASE + 46 WHEN + 97 + - 85 THEN - 75 - - 62 END + - 62 AS col1
----
NULL

query I rowsort
SELECT ALL 91 * + 26 * - 52 AS col2
----
-123032

query I rowsort
SELECT DISTINCT - 27 - - 50 - - 20
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2766
SELECT ALL - CAST( CASE - 84 WHEN + 11 - - 78 * - 39 THEN NULL ELSE 77 END AS SIGNED )
----
-77

skipif mysql # not compatible
query I rowsort label-2766
SELECT ALL - CAST ( CASE - 84 WHEN + 11 - - 78 * - 39 THEN NULL ELSE 77 END AS INTEGER )
----
-77

query I rowsort
SELECT 49 - - - 92 + 15 + 18 AS col0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-2768
SELECT ALL 28 DIV - CASE 44 WHEN + 90 THEN 75 ELSE + 30 END + + 57
----
57

skipif mysql # not compatible
query I rowsort label-2768
SELECT ALL 28 / - CASE 44 WHEN + 90 THEN 75 ELSE + 30 END + + 57
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-2769
SELECT DISTINCT + COUNT( * ), - MAX( 44 ) * 32 AS col1
----
1
-1408

skipif mysql # not compatible
query II rowsort label-2769
SELECT DISTINCT + COUNT ( * ), - MAX ( 44 ) * 32 AS col1
----
1
-1408

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT ALL COUNT( * ) * + 52 * COUNT( * ) * + 23
----
1196

skipif mysql # not compatible
query I rowsort label-2770
SELECT ALL COUNT ( * ) * + 52 * COUNT ( * ) * + 23
----
1196

query II rowsort
SELECT ALL 18 AS col0, 6 * + 51 AS col2
----
18
306

query I rowsort
SELECT DISTINCT 55 * 36
----
1980

onlyif mysql # aggregate syntax: 
query I rowsort label-2773
SELECT 57 + - COUNT( * ) + - - 67 + + 75 * + 4 * ( + ( + 56 ) - 29 )
----
8223

skipif mysql # not compatible
query I rowsort label-2773
SELECT 57 + - COUNT ( * ) + - - 67 + + 75 * + 4 * ( + ( + 56 ) - 29 )
----
8223

onlyif mysql # DIV for integer division: 
query I rowsort label-2774
SELECT 1 * + NULLIF ( + 94, 56 ) DIV + 29
----
3

skipif mysql # not compatible
query I rowsort label-2774
SELECT 1 * + NULLIF ( + 94, 56 ) / + 29
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2775
SELECT CAST( NULL AS SIGNED ) + + 63 - + 10 + - 53 / 82 / + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-2775
SELECT CAST ( NULL AS INTEGER ) + + 63 - + 10 + - 53 / 82 / + 40
----
NULL

query I rowsort
SELECT DISTINCT - CASE - - 6 WHEN - 78 / NULLIF ( ( 54 ), - 90 + 81 ) THEN 50 ELSE - 94 END - + 17 * ( + ( 40 ) + + 8 ) AS col2
----
-722

query I rowsort
SELECT ( - - ( - 20 ) ) * 88
----
-1760

onlyif mysql # DIV for integer division: 
query I rowsort label-2778
SELECT ALL 58 DIV + 46
----
1

skipif mysql # not compatible
query I rowsort label-2778
SELECT ALL 58 / + 46
----
1

query I rowsort
SELECT - 97 * - 83 col1
----
8051

onlyif mysql # DIV for integer division: 
query I rowsort label-2780
SELECT ALL 67 DIV - - 3 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-2780
SELECT ALL 67 / - - 3 AS col2
----
22

query I rowsort
SELECT 49 * 65 + + 66 * 2
----
3317

query I rowsort
SELECT ALL ( + 60 ) + - 29 + + 15 * 98
----
1501

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2783
SELECT COALESCE ( MIN( + 25 ), 93 ) - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2783
SELECT COALESCE ( MIN ( + 25 ), 93 ) - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( 3, + 21 * 14 )
----
3

query II rowsort
SELECT ALL 59 AS col1, + 96
----
59
96

query I rowsort
SELECT ALL - + 73 * 45
----
-3285

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2788
SELECT - 82 * + + ( COUNT( - - CAST( 87 AS SIGNED ) ) ) col2
----
-82

skipif mysql # not compatible
query I rowsort label-2788
SELECT - 82 * + + ( COUNT ( - - CAST ( 87 AS INTEGER ) ) ) col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT DISTINCT - 43 * - 96 + + + 52 + CASE NULLIF ( 41, - 78 ) WHEN - 84 + COUNT( * ) THEN CASE + 64 WHEN + 6 THEN NULL WHEN 12 THEN 70 END ELSE NULL END / + 87 * 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2789
SELECT DISTINCT - 43 * - 96 + + + 52 + CASE NULLIF ( 41, - 78 ) WHEN - 84 + COUNT ( * ) THEN CASE + 64 WHEN + 6 THEN NULL WHEN 12 THEN 70 END ELSE NULL END / + 87 * 50 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2790
SELECT ALL + 60 * - 87 + COUNT( * ) DIV - 58
----
-5220

skipif mysql # not compatible
query I rowsort label-2790
SELECT ALL + 60 * - 87 + COUNT ( * ) / - 58
----
-5220

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT - 14 * - + 4 * ( - 42 ) - COUNT( - 85 )
----
-2353

skipif mysql # not compatible
query I rowsort label-2791
SELECT - 14 * - + 4 * ( - 42 ) - COUNT ( - 85 )
----
-2353

query I rowsort
SELECT ALL 34 * - ( + 74 ) * - - 63 + - 45 * 77
----
-161973

onlyif mysql # DIV for integer division: 
query I rowsort label-2793
SELECT 76 DIV + 48 - + + 68
----
-67

skipif mysql # not compatible
query I rowsort label-2793
SELECT 76 / + 48 - + + 68
----
-67

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT DISTINCT + 66 * COALESCE ( - ( 57 ), + 12 * 11, + 94 * - 74 + COUNT( ALL - 60 ) * - 10 ) + + 83 AS col2
----
-3679

skipif mysql # not compatible
query I rowsort label-2795
SELECT DISTINCT + 66 * COALESCE ( - ( 57 ), + 12 * 11, + 94 * - 74 + COUNT ( ALL - 60 ) * - 10 ) + + 83 AS col2
----
-3679

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT ALL - MIN( DISTINCT + 53 ) * 96 + MAX( 31 ) + + NULLIF ( + SUM( ALL 54 ), + 87 ) + + 1 * - CASE - COUNT( + 29 ) WHEN - 33 THEN + 18 * - 32 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2796
SELECT ALL - MIN ( DISTINCT + 53 ) * 96 + MAX ( 31 ) + + NULLIF ( + SUM ( ALL 54 ), + 87 ) + + 1 * - CASE - COUNT ( + 29 ) WHEN - 33 THEN + 18 * - 32 END AS col2
----
NULL

query I rowsort
SELECT NULLIF ( 69, + 74 * 52 )
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2798
SELECT ALL - 33 * - 70 / CAST( NULL AS SIGNED ) + - 49 + - 97 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2798
SELECT ALL - 33 * - 70 / CAST ( NULL AS INTEGER ) + - 49 + - 97 col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2799
SELECT - 57 * 78 + 74 + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2799
SELECT - 57 * 78 + 74 + CAST ( NULL AS REAL ) AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2801
SELECT - 62 + 53 + + 76 * - CAST( 52 AS SIGNED ) AS col1
----
-3961

skipif mysql # not compatible
query I rowsort label-2801
SELECT - 62 + 53 + + 76 * - CAST ( 52 AS INTEGER ) AS col1
----
-3961

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT - 80 * COUNT( * ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-2802
SELECT - 80 * COUNT ( * ) AS col0
----
-80

query II rowsort
SELECT DISTINCT + 87 * + + 31 AS col2, + CASE - ( 95 ) WHEN 71 THEN NULL ELSE - 96 END * + 23 + + 81 AS col2
----
2697
-2127

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT - 19 * - 49 * + - COUNT( 41 ) + + 99
----
-832

skipif mysql # not compatible
query I rowsort label-2804
SELECT - 19 * - 49 * + - COUNT ( 41 ) + + 99
----
-832

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2805
SELECT ALL + CASE - ( MIN( - + 94 ) ) WHEN + MIN( + ( + 32 ) ) + + CASE 18 WHEN 77 + - 19 THEN NULL WHEN COALESCE ( COUNT( * ), 51 * + 64 ) + 55 * - 0 THEN - MIN( - 27 ) + 69 * - 0 WHEN 25 + ( - COUNT( * ) ) * 23 THEN NULL WHEN 29 THEN NULL END * CAST( + 2 AS DECIMAL ) THEN 24 * 6 END * 48 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL + CASE - ( MIN ( - + 94 ) ) WHEN + MIN ( + ( + 32 ) ) + + CASE 18 WHEN 77 + - 19 THEN NULL WHEN COALESCE ( COUNT ( * ), 51 * + 64 ) + 55 * - 0 THEN - MIN ( - 27 ) + 69 * - 0 WHEN 25 + ( - COUNT ( * ) ) * 23 THEN NULL WHEN 29 THEN NULL END * CAST ( + 2 AS REAL ) THEN 24 * 6 END * 48 col2
----
NULL

query I rowsort
SELECT ALL - 40 * 85 - + + 41 AS col0
----
-3441

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT - + 86 + - - 4 + - - SUM( - + 87 ) + + 27 * - 75 AS col0
----
-2194

skipif mysql # not compatible
query I rowsort label-2808
SELECT - + 86 + - - 4 + - - SUM ( - + 87 ) + + 27 * - 75 AS col0
----
-2194

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

query I rowsort
SELECT - - 11 + - 6
----
5

query I rowsort
SELECT - NULLIF ( + 57, - 19 * + 96 * 69 - + 68 ) * 61 + - ( - 10 ) * 79 col1
----
-2687

query II rowsort
SELECT ALL + ( - - 98 ) AS col2, COALESCE ( + 39, 93 ) AS col0
----
98
39

query I rowsort
SELECT - 32 * 51
----
-1632

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2814
SELECT + - 72 + + 5 AS col2, - CAST( + + ( NULLIF ( - 78, - ( - CAST( NULL AS SIGNED ) ) ) ) AS SIGNED ) AS col1
----
-67
78

skipif mysql # not compatible
query II rowsort label-2814
SELECT + - 72 + + 5 AS col2, - CAST ( + + ( NULLIF ( - 78, - ( - CAST ( NULL AS INTEGER ) ) ) ) AS INTEGER ) AS col1
----
-67
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2815
SELECT DISTINCT COALESCE ( - + 39, + ( + COUNT( * ) ) + + 14 ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-2815
SELECT DISTINCT COALESCE ( - + 39, + ( + COUNT ( * ) ) + + 14 ) AS col1
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2816
SELECT + CASE + 99 WHEN - + 68 - 21 THEN CAST( 60 AS SIGNED ) ELSE COALESCE ( 65, 21, + ( 61 ) ) + - 19 END + 92 AS col1
----
138

skipif mysql # not compatible
query I rowsort label-2816
SELECT + CASE + 99 WHEN - + 68 - 21 THEN CAST ( 60 AS INTEGER ) ELSE COALESCE ( 65, 21, + ( 61 ) ) + - 19 END + 92 AS col1
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2817
SELECT DISTINCT - NULLIF ( 26, AVG ( DISTINCT - CAST( - ( ( CAST( NULL AS SIGNED ) ) ) AS SIGNED ) ) )
----
-26

skipif mysql # not compatible
query I rowsort label-2817
SELECT DISTINCT - NULLIF ( 26, AVG ( DISTINCT - CAST ( - ( ( CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) ) )
----
-26

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2819
SELECT DISTINCT + - 59 DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-2819
SELECT DISTINCT + - 59 / - 80
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2820
SELECT ALL + 90 + + 29 DIV 32 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-2820
SELECT ALL + 90 + + 29 / 32 AS col2
----
90

query II rowsort
SELECT - - 9 + 76, - 79 * - 34 AS col1
----
85
2686

query I rowsort
SELECT + + 4 - COALESCE ( - 47, + - 97, 50 ) * 82 AS col0
----
3858

query I rowsort
SELECT DISTINCT ( + - 69 ) * - 35 AS col2
----
2415

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2824
SELECT ALL + 40 + + CASE 72 WHEN + - 54 * - 7 THEN NULL ELSE - ( + COALESCE ( + 67, COUNT( * ) - - 4 ) ) END + - 61 DIV 22
----
-29

skipif mysql # not compatible
query I rowsort label-2824
SELECT ALL + 40 + + CASE 72 WHEN + - 54 * - 7 THEN NULL ELSE - ( + COALESCE ( + 67, COUNT ( * ) - - 4 ) ) END + - 61 / 22
----
-29

query I rowsort
SELECT + + 35 + + 49 + - 20 * - 63
----
1344

query I rowsort
SELECT + 17 + - - 86 AS col1
----
103

query II rowsort
SELECT + 31 + 94, 15 AS col1
----
125
15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2828
SELECT DISTINCT - + AVG ( ALL + + 65 ) + - + CASE 11 WHEN 26 THEN NULL WHEN COUNT( * ) THEN - NULLIF ( - CAST( 14 AS DECIMAL ), 76 ) WHEN - COUNT( * ) THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2828
SELECT DISTINCT - + AVG ( ALL + + 65 ) + - + CASE 11 WHEN 26 THEN NULL WHEN COUNT ( * ) THEN - NULLIF ( - CAST ( 14 AS REAL ), 76 ) WHEN - COUNT ( * ) THEN NULL END col1
----
NULL

query I rowsort
SELECT DISTINCT ( + COALESCE ( - 59, 84, + 98 ) ) * 56
----
-3304

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2831
SELECT + 70 + + 66 + - + 62 + 69 + + CASE 17 WHEN - 61 THEN NULL WHEN - 9 * CAST( - COUNT( * ) AS SIGNED ) THEN 88 + - 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2831
SELECT + 70 + + 66 + - + 62 + 69 + + CASE 17 WHEN - 61 THEN NULL WHEN - 9 * CAST ( - COUNT ( * ) AS INTEGER ) THEN 88 + - 18 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2832
SELECT ALL 35, + SUM( DISTINCT - ( - 96 ) ) AS col1
----
35
96

skipif mysql # not compatible
query II rowsort label-2832
SELECT ALL 35, + SUM ( DISTINCT - ( - 96 ) ) AS col1
----
35
96

query I rowsort
SELECT ALL 28 + + 70
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2834
SELECT DISTINCT ( + 97 ) DIV + 61
----
1

skipif mysql # not compatible
query I rowsort label-2834
SELECT DISTINCT ( + 97 ) / + 61
----
1

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

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

query I rowsort
SELECT - 92 + + + ( ( 62 ) ) AS col0
----
-30

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT ALL CASE COUNT( DISTINCT 26 ) WHEN MIN( - 9 ) * - 73 THEN + 93 - CASE + COUNT( * ) WHEN 74 THEN NULL WHEN ( COUNT( * ) ) THEN NULLIF ( 78, + COUNT( * ) / 61 - 64 ) * 97 ELSE NULL END WHEN 23 THEN MAX( DISTINCT - 46 ) END * - 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2838
SELECT ALL CASE COUNT ( DISTINCT 26 ) WHEN MIN ( - 9 ) * - 73 THEN + 93 - CASE + COUNT ( * ) WHEN 74 THEN NULL WHEN ( COUNT ( * ) ) THEN NULLIF ( 78, + COUNT ( * ) / 61 - 64 ) * 97 ELSE NULL END WHEN 23 THEN MAX ( DISTINCT - 46 ) END * - 52 AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( + 45 ) * + 2 * - - ( + 93 ) * + 51 AS col1
----
426870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2840
SELECT + 20 * - MAX( - 8 ) * CAST( - + 74 AS SIGNED ) - + 92
----
-11932

skipif mysql # not compatible
query I rowsort label-2840
SELECT + 20 * - MAX ( - 8 ) * CAST ( - + 74 AS INTEGER ) - + 92
----
-11932

query I rowsort
SELECT - NULLIF ( + 9, + - 35 * + NULLIF ( + 15, + 24 * 41 ) * + 68 ) * + 67
----
-603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2842
SELECT - 78 * - COUNT( * ) - CASE + + 86 WHEN + + CAST( 38 AS SIGNED ) THEN - 83 ELSE - 57 END col1
----
135

skipif mysql # not compatible
query I rowsort label-2842
SELECT - 78 * - COUNT ( * ) - CASE + + 86 WHEN + + CAST ( 38 AS INTEGER ) THEN - 83 ELSE - 57 END col1
----
135

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

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

query I rowsort
SELECT - 86 + + 40 + + 27
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2845
SELECT DISTINCT + + COUNT( * ) * + - MAX( - 91 ) DIV 47
----
1

skipif mysql # not compatible
query I rowsort label-2845
SELECT DISTINCT + + COUNT ( * ) * + - MAX ( - 91 ) / 47
----
1

query II rowsort
SELECT ALL + 61 AS col0, 63 AS col1
----
61
63

query I rowsort
SELECT ALL + 21 * - - NULLIF ( + 11, 62 )
----
231

onlyif mysql # aggregate syntax: 
query II rowsort label-2848
SELECT DISTINCT - 63 * - COUNT( * ) + 81 AS col0, + 39
----
144
39

skipif mysql # not compatible
query II rowsort label-2848
SELECT DISTINCT - 63 * - COUNT ( * ) + 81 AS col0, + 39
----
144
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2849
SELECT DISTINCT 7 * - 77 * + 14 DIV + 1 + + COUNT( * ) AS col1
----
-7545

skipif mysql # not compatible
query I rowsort label-2849
SELECT DISTINCT 7 * - 77 * + 14 / + 1 + + COUNT ( * ) AS col1
----
-7545

onlyif mysql # aggregate syntax: 
query I rowsort label-2850
SELECT DISTINCT 44 * - NULLIF ( 41, - 86 ) + - COUNT( * ) + - 0 * 55 + + 89 AS col0
----
-1716

skipif mysql # not compatible
query I rowsort label-2850
SELECT DISTINCT 44 * - NULLIF ( 41, - 86 ) + - COUNT ( * ) + - 0 * 55 + + 89 AS col0
----
-1716

query I rowsort
SELECT - - 24 * + + 58
----
1392

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT DISTINCT + - 32 * - + COUNT( * ) + + - ( - - 88 ) * 39 * ( 56 ) + - 79 col2
----
-192239

skipif mysql # not compatible
query I rowsort label-2852
SELECT DISTINCT + - 32 * - + COUNT ( * ) + + - ( - - 88 ) * 39 * ( 56 ) + - 79 col2
----
-192239

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2853
SELECT - CAST( NULL AS SIGNED ) * + - 84 * - 87 + + ( - - 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2853
SELECT - CAST ( NULL AS INTEGER ) * + - 84 * - 87 + + ( - - 30 )
----
NULL

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

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

query II rowsort
SELECT ALL - 76 col0, 93
----
-76
93

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

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

query I rowsort
SELECT DISTINCT - 87 * + + 84 AS col0
----
-7308

query I rowsort
SELECT ALL - 76 + - 67 * - 69
----
4547

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2859
SELECT ALL CAST( NULL AS DECIMAL ) * + CAST( + COALESCE ( + - 44, - 1 * CASE + 77 WHEN MAX( + ( 27 ) ) THEN 7 + 7 / 35 ELSE NULL END, + 9 * 72 ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2859
SELECT ALL CAST ( NULL AS REAL ) * + CAST ( + COALESCE ( + - 44, - 1 * CASE + 77 WHEN MAX ( + ( 27 ) ) THEN 7 + 7 / 35 ELSE NULL END, + 9 * 72 ) AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2860
SELECT ALL + 13 + + 64 - ( 65 ) DIV - 1 AS col0
----
142

skipif mysql # not compatible
query I rowsort label-2860
SELECT ALL + 13 + + 64 - ( 65 ) / - 1 AS col0
----
142

query I rowsort
SELECT 96 - - 74 AS col2
----
170

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

skipif mysql # not compatible
query I rowsort label-2862
SELECT ( - - 17 ) * + ( CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT DISTINCT ( - NULLIF ( - 80, + - 46 / + 98 ) ) * + 29 * 14 AS col1
----
32480

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

skipif mysql # not compatible
query I rowsort label-2864
SELECT 5 + 26 + - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT ALL 45 AS col1, 1 AS col2
----
45
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2866
SELECT CAST( + COALESCE ( - + 91, + ( - 92 ) * + CAST( - COUNT( * ) AS SIGNED ) - 14 ) AS SIGNED ) DIV 18
----
-5

skipif mysql # not compatible
query I rowsort label-2866
SELECT CAST ( + COALESCE ( - + 91, + ( - 92 ) * + CAST ( - COUNT ( * ) AS INTEGER ) - 14 ) AS INTEGER ) / 18
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2867
SELECT 21 * + CASE + 25 WHEN - 2 * + 27 / + ( - COUNT( * ) ) - 17 THEN NULL WHEN COALESCE ( + NULLIF ( - COUNT( * ), - 76 ), 33, + 25, + 13 + + CAST( 21 AS SIGNED ) ) + - 4 THEN NULL ELSE - CAST( NULL AS SIGNED ) * + 75 + - ( NULLIF ( 66, 87 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2867
SELECT 21 * + CASE + 25 WHEN - 2 * + 27 / + ( - COUNT ( * ) ) - 17 THEN NULL WHEN COALESCE ( + NULLIF ( - COUNT ( * ), - 76 ), 33, + 25, + 13 + + CAST ( 21 AS INTEGER ) ) + - 4 THEN NULL ELSE - CAST ( NULL AS INTEGER ) * + 75 + - ( NULLIF ( 66, 87 ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2868
SELECT 90 AS col1, COUNT( * ) * - ( - 24 ) * COALESCE ( + + 13, - 16 * - 61 ) * ( + 96 )
----
90
29952

skipif mysql # not compatible
query II rowsort label-2868
SELECT 90 AS col1, COUNT ( * ) * - ( - 24 ) * COALESCE ( + + 13, - 16 * - 61 ) * ( + 96 )
----
90
29952

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT ALL CASE - 67 WHEN + COUNT( * ) / + + 84 THEN NULL ELSE 2 - 71 END - + 33
----
-102

skipif mysql # not compatible
query I rowsort label-2869
SELECT ALL CASE - 67 WHEN + COUNT ( * ) / + + 84 THEN NULL ELSE 2 - 71 END - + 33
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT ALL - MIN( + ( + - 72 ) ) * 61 + 1 * - 47 * + ( + ( + 92 ) ) + + 93 AS col1
----
161

skipif mysql # not compatible
query I rowsort label-2870
SELECT ALL - MIN ( + ( + - 72 ) ) * 61 + 1 * - 47 * + ( + ( + 92 ) ) + + 93 AS col1
----
161

query I rowsort
SELECT 14 * - 5 - - 52 AS col2
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-2872
SELECT ALL 68 DIV 54 col1
----
1

skipif mysql # not compatible
query I rowsort label-2872
SELECT ALL 68 / 54 col1
----
1

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

skipif mysql # not compatible
query I rowsort label-2873
SELECT - 74 / + - COUNT ( * ) - - COUNT ( * )
----
75

query I rowsort
SELECT ALL 3 * + 90 * 1
----
270

query I rowsort
SELECT 59 + - 76 AS col0
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-2876
SELECT 65 DIV 25 * + + 51
----
102

skipif mysql # not compatible
query I rowsort label-2876
SELECT 65 / 25 * + + 51
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2877
SELECT ALL 32 DIV + COUNT( ALL - + 7 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-2877
SELECT ALL 32 / + COUNT ( ALL - + 7 ) AS col1
----
32

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2878
SELECT ALL - 10, CAST( NULL AS DECIMAL ) AS col0
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-2878
SELECT ALL - 10, CAST ( NULL AS REAL ) AS col0
----
-10
NULL

query I rowsort
SELECT 49 + + 47 * - + 99
----
-4604

query I rowsort
SELECT ALL 44 * + 38 AS col1
----
1672

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2882
SELECT DISTINCT MIN( ALL ( + 51 ) ) + + - COUNT( * ), - ( + 81 ) AS col2
----
50
-81

skipif mysql # not compatible
query II rowsort label-2882
SELECT DISTINCT MIN ( ALL ( + 51 ) ) + + - COUNT ( * ), - ( + 81 ) AS col2
----
50
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT - 38 * + COUNT( + + 76 ) + - COUNT( * ) col1
----
-39

skipif mysql # not compatible
query I rowsort label-2883
SELECT - 38 * + COUNT ( + + 76 ) + - COUNT ( * ) col1
----
-39

query I rowsort
SELECT DISTINCT 1 + + 33 + + - 52 * 33
----
-1682

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT DISTINCT 6 + + + 38 + + 59 + COALESCE ( - - COUNT( * ), - ( 77 ) ) col0
----
104

skipif mysql # not compatible
query I rowsort label-2885
SELECT DISTINCT 6 + + + 38 + + 59 + COALESCE ( - - COUNT ( * ), - ( 77 ) ) col0
----
104

query I rowsort
SELECT ALL + 65 * - 57 * - 61
----
226005

query I rowsort
SELECT ALL - 90 + - 90 + 38 AS col2
----
-142

onlyif mysql # aggregate syntax: 
query II rowsort label-2888
SELECT + 21, + MAX( + 23 ) AS col1
----
21
23

skipif mysql # not compatible
query II rowsort label-2888
SELECT + 21, + MAX ( + 23 ) AS col1
----
21
23

query I rowsort
SELECT 42 + 95 AS col1
----
137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2890
SELECT COALESCE ( + 84, + + COUNT( * ) * - 67 * - AVG ( - + 44 ) DIV COUNT( * ) )
----
84

skipif mysql # not compatible
query I rowsort label-2890
SELECT COALESCE ( + 84, + + COUNT ( * ) * - 67 * - AVG ( - + 44 ) / COUNT ( * ) )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT 93 * - ( - 27 ) + - - COUNT( * ) * + 92 + 89 AS col1
----
2692

skipif mysql # not compatible
query I rowsort label-2891
SELECT 93 * - ( - 27 ) + - - COUNT ( * ) * + 92 + 89 AS col1
----
2692

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT ALL + - 29 + - 15 * - - 52 * - COUNT( * ) col2
----
751

skipif mysql # not compatible
query I rowsort label-2893
SELECT ALL + - 29 + - 15 * - - 52 * - COUNT ( * ) col2
----
751

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT ALL - - MIN( DISTINCT - 39 ) * 58 AS col2
----
-2262

skipif mysql # not compatible
query I rowsort label-2894
SELECT ALL - - MIN ( DISTINCT - 39 ) * 58 AS col2
----
-2262

onlyif mysql # aggregate syntax: 
query II rowsort label-2895
SELECT + COUNT( * ) AS col1, 47 + - + 96 AS col0
----
1
-49

skipif mysql # not compatible
query II rowsort label-2895
SELECT + COUNT ( * ) AS col1, 47 + - + 96 AS col0
----
1
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2896
SELECT ALL - 38 DIV - + NULLIF ( - 93, 69 ) - + CAST( - - COUNT( 80 ) AS SIGNED ) + - 70 * - 93 AS col2
----
6509

skipif mysql # not compatible
query I rowsort label-2896
SELECT ALL - 38 / - + NULLIF ( - 93, 69 ) - + CAST ( - - COUNT ( 80 ) AS INTEGER ) + - 70 * - 93 AS col2
----
6509

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2897
SELECT DISTINCT 17 + + 79 DIV COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-2897
SELECT DISTINCT 17 + + 79 / COUNT ( * )
----
96

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

query I rowsort
SELECT ALL + 46 - + 45
----
1

query I rowsort
SELECT ALL - 88 * - 81 * + - 6 AS col2
----
-42768

query I rowsort
SELECT 4 + COALESCE ( ( - ( + 70 ) ), - 61 ) * 7
----
-486

onlyif mysql # DIV for integer division: 
query I rowsort label-2902
SELECT ALL + 17 * 29 * NULLIF ( + 15, + - COALESCE ( - ( + + 30 ), 6 ) + + ( ( 9 ) ) ) DIV + 35 AS col1
----
211

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL + 17 * 29 * NULLIF ( + 15, + - COALESCE ( - ( + + 30 ), 6 ) + + ( ( 9 ) ) ) / + 35 AS col1
----
211

query I rowsort
SELECT 5 + + 49
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT COUNT( * ) - - 80
----
81

skipif mysql # not compatible
query I rowsort label-2904
SELECT COUNT ( * ) - - 80
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2905
SELECT 44 * + CAST( - 32 AS SIGNED )
----
-1408

skipif mysql # not compatible
query I rowsort label-2905
SELECT 44 * + CAST ( - 32 AS INTEGER )
----
-1408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2906
SELECT 50 + MAX( DISTINCT + 21 ) DIV - 91
----
50

skipif mysql # not compatible
query I rowsort label-2906
SELECT 50 + MAX ( DISTINCT + 21 ) / - 91
----
50

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2907
SELECT ALL - CAST( NULL AS DECIMAL ) - - 20 * CAST( NULL AS SIGNED ) * + - 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2907
SELECT ALL - CAST ( NULL AS REAL ) - - 20 * CAST ( NULL AS INTEGER ) * + - 21 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT COUNT( * ) * - + 36 * 68 * + + 98
----
-239904

skipif mysql # not compatible
query I rowsort label-2909
SELECT COUNT ( * ) * - + 36 * 68 * + + 98
----
-239904

query I rowsort
SELECT ALL 27 * + - 51
----
-1377

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT DISTINCT COUNT( ALL - 46 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2911
SELECT DISTINCT COUNT ( ALL - 46 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2912
SELECT DISTINCT - ( + + CAST( - - ( - 6 ) AS SIGNED ) )
----
6

skipif mysql # not compatible
query I rowsort label-2912
SELECT DISTINCT - ( + + CAST ( - - ( - 6 ) AS INTEGER ) )
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-2913
SELECT 75 + + + 48 AS col2, - MIN( ALL - 15 )
----
123
15

skipif mysql # not compatible
query II rowsort label-2913
SELECT 75 + + + 48 AS col2, - MIN ( ALL - 15 )
----
123
15

query I rowsort
SELECT 46 * + NULLIF ( 23, - + COALESCE ( - + 67, + 83 ) )
----
1058

query II rowsort
SELECT DISTINCT 26 * - 78 AS col0, - 69
----
-2028
-69

query I rowsort
SELECT 59 * + - 48 AS col0
----
-2832

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT DISTINCT + COUNT( * ) * COUNT( * ) + - 21 * - 97 - + - 8 col1
----
2046

skipif mysql # not compatible
query I rowsort label-2917
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) + - 21 * - 97 - + - 8 col1
----
2046

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2918
SELECT 11 * + + 81 + + + CAST( COALESCE ( + 86, + COALESCE ( + + 34, - 73 * NULLIF ( SUM( DISTINCT + 42 ) * NULLIF ( 69 * - 41 + - 48, 74 ), 73 / ( + 77 ) ), + 24 * - 4 ) + + CASE - 17 WHEN SUM( ALL + CAST( NULL AS SIGNED ) ) * - 1 + SUM( DISTINCT + 72 ) THEN NULL WHEN - 3 THEN - 86 ELSE + 86 END * + 5 ) AS SIGNED ) + 82 * - 50 AS col0
----
-3123

skipif mysql # not compatible
query I rowsort label-2918
SELECT 11 * + + 81 + + + CAST ( COALESCE ( + 86, + COALESCE ( + + 34, - 73 * NULLIF ( SUM ( DISTINCT + 42 ) * NULLIF ( 69 * - 41 + - 48, 74 ), 73 / ( + 77 ) ), + 24 * - 4 ) + + CASE - 17 WHEN SUM ( ALL + CAST ( NULL AS INTEGER ) ) * - 1 + SUM ( DISTINCT + 72 ) THEN NULL WHEN - 3 THEN - 86 ELSE + 86 END * + 5 ) AS INTEGER ) + 82 * - 50 AS col0
----
-3123

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT 70 * - SUM( - + 37 ) AS col1
----
2590

skipif mysql # not compatible
query I rowsort label-2920
SELECT 70 * - SUM ( - + 37 ) AS col1
----
2590

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

query II rowsort
SELECT + 31 * - 91 - + 62 AS col0, 2
----
-2883
2

onlyif mysql # aggregate syntax: 
query II rowsort label-2923
SELECT COUNT( + + 37 ) AS col0, 89 AS col1
----
1
89

skipif mysql # not compatible
query II rowsort label-2923
SELECT COUNT ( + + 37 ) AS col0, 89 AS col1
----
1
89

query I rowsort
SELECT ALL + 53 * ( - 92 )
----
-4876

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

query I rowsort
SELECT DISTINCT + 9 * - 38 * 55
----
-18810

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT DISTINCT + CASE - 33 WHEN MIN( DISTINCT - + 44 ) THEN NULL WHEN + + 15 + - 3 + + 12 * 60 THEN NULL ELSE + MAX( ALL 55 ) END AS col1
----
55

skipif mysql # not compatible
query I rowsort label-2927
SELECT DISTINCT + CASE - 33 WHEN MIN ( DISTINCT - + 44 ) THEN NULL WHEN + + 15 + - 3 + + 12 * 60 THEN NULL ELSE + MAX ( ALL 55 ) END AS col1
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2928
SELECT + + 23 - - CAST( - - CAST( + - 34 AS SIGNED ) AS SIGNED )
----
-11

skipif mysql # not compatible
query I rowsort label-2928
SELECT + + 23 - - CAST ( - - CAST ( + - 34 AS INTEGER ) AS INTEGER )
----
-11

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

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

query I rowsort
SELECT + 7 * + 47 + - - 52 - 95
----
286

query I rowsort
SELECT - 77 * - 75
----
5775

query I rowsort
SELECT ALL CASE - 43 WHEN - 74 THEN - - 95 WHEN + - 34 THEN NULL WHEN - - 25 THEN + + ( 35 ) END AS col2
----
NULL

query I rowsort
SELECT - 17 + - 33
----
-50

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

skipif mysql # not compatible
query I rowsort label-2934
SELECT - 52 / + - 50
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2935
SELECT ALL - CASE + - 3 WHEN + COUNT( * ) + 95 - - - CASE + 20 WHEN + + 71 * - CAST( NULL AS SIGNED ) * + 93 THEN + 9 / 2 ELSE + 56 * 34 + COUNT( * ) END + + 83 THEN 91 * + 6 + CAST( NULL AS SIGNED ) WHEN 55 THEN NULL WHEN + 53 THEN NULL WHEN + 39 * - CAST( 41 AS SIGNED ) THEN - AVG ( 24 ) ELSE NULL END / + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-2935
SELECT ALL - CASE + - 3 WHEN + COUNT ( * ) + 95 - - - CASE + 20 WHEN + + 71 * - CAST ( NULL AS INTEGER ) * + 93 THEN + 9 / 2 ELSE + 56 * 34 + COUNT ( * ) END + + 83 THEN 91 * + 6 + CAST ( NULL AS INTEGER ) WHEN 55 THEN NULL WHEN + 53 THEN NULL WHEN + 39 * - CAST ( 41 AS INTEGER ) THEN - AVG ( 24 ) ELSE NULL END / + 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2936
SELECT + 64 * COUNT( * ) * CASE - 40 WHEN + + 52 THEN + 81 WHEN - 21 * + 64 THEN NULL ELSE NULL END * 85
----
NULL

skipif mysql # not compatible
query I rowsort label-2936
SELECT + 64 * COUNT ( * ) * CASE - 40 WHEN + + 52 THEN + 81 WHEN - 21 * + 64 THEN NULL ELSE NULL END * 85
----
NULL

query II rowsort
SELECT ALL 40 col2, 12 col0
----
40
12

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

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

query I rowsort
SELECT DISTINCT - 41 * - 2 * 72 * - 91 AS col0
----
-537264

query I rowsort
SELECT ALL + 23 * 9
----
207

query I rowsort
SELECT - 33 * - 76 AS col2
----
2508

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT ALL + MIN( 73 ) * - COUNT( ALL - - 59 )
----
-73

skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL + MIN ( 73 ) * - COUNT ( ALL - - 59 )
----
-73

query I rowsort
SELECT DISTINCT + COALESCE ( + + 74, - - 52 ) * + 23
----
1702

query I rowsort
SELECT + 21 + + 97
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT DISTINCT - 78 * + + MIN( - 45 )
----
3510

skipif mysql # not compatible
query I rowsort label-2945
SELECT DISTINCT - 78 * + + MIN ( - 45 )
----
3510

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2947
SELECT - 74 + - - 80 + + COALESCE ( - 70, - ( - 90 ) + + 17 DIV + NULLIF ( 16, 14 ) ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-2947
SELECT - 74 + - - 80 + + COALESCE ( - 70, - ( - 90 ) + + 17 / + NULLIF ( 16, 14 ) ) AS col0
----
-64

query I rowsort
SELECT ALL NULLIF ( + 58, + 60 + + 78 )
----
58

query II rowsort
SELECT 14, - 58 * - 77 AS col0
----
14
4466

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2950
SELECT - SUM( ALL + CAST( + - NULLIF ( + + 14, 51 ) AS SIGNED ) ) + MIN( + 9 ) * NULLIF ( + 71, 61 ) * 37 AS col2
----
23657

skipif mysql # not compatible
query I rowsort label-2950
SELECT - SUM ( ALL + CAST ( + - NULLIF ( + + 14, 51 ) AS INTEGER ) ) + MIN ( + 9 ) * NULLIF ( + 71, 61 ) * 37 AS col2
----
23657

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2951
SELECT ALL + COALESCE ( CAST( NULL AS SIGNED ), 48 ) + + 0 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-2951
SELECT ALL + COALESCE ( CAST ( NULL AS INTEGER ), 48 ) + + 0 AS col2
----
48

query I rowsort
SELECT DISTINCT ( + 7 ) AS col1
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2953
SELECT DISTINCT ( + NULLIF ( - 53, - ( + + 58 ) * MAX( DISTINCT + CASE + + COALESCE ( + 3, 6 + 95 * - 18, + ( + 18 ) + 55 ) WHEN 19 THEN - 23 + - 87 WHEN - 33 + 78 THEN - 62 - - 84 ELSE NULL END ) - 96 ) ) DIV 66 + - COUNT( * ) * - 62
----
62

skipif mysql # not compatible
query I rowsort label-2953
SELECT DISTINCT ( + NULLIF ( - 53, - ( + + 58 ) * MAX ( DISTINCT + CASE + + COALESCE ( + 3, 6 + 95 * - 18, + ( + 18 ) + 55 ) WHEN 19 THEN - 23 + - 87 WHEN - 33 + 78 THEN - 62 - - 84 ELSE NULL END ) - 96 ) ) / 66 + - COUNT ( * ) * - 62
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2954
SELECT MAX( - 63 ) DIV - - 39 + - 16 - - COUNT( * ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-2954
SELECT MAX ( - 63 ) / - - 39 + - 16 - - COUNT ( * ) AS col0
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2955
SELECT ALL - 51 DIV + - 64 + - 53 + + 33 - + 43 * - 37 AS col0, MAX( + + 82 ) - - 17
----
1571
99

skipif mysql # not compatible
query II rowsort label-2955
SELECT ALL - 51 / + - 64 + - 53 + + 33 - + 43 * - 37 AS col0, MAX ( + + 82 ) - - 17
----
1571
99

query I rowsort
SELECT - 9 + + + 69 AS col1
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2957
SELECT ALL + 36 * - - CAST( NULL AS SIGNED ) + 41 / - ( - 41 ) * - ( 30 ) + + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-2957
SELECT ALL + 36 * - - CAST ( NULL AS INTEGER ) + 41 / - ( - 41 ) * - ( 30 ) + + 62
----
NULL

query I rowsort
SELECT ALL - - 50 * - 31
----
-1550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2959
SELECT ALL - ( - - COALESCE ( + COUNT( * ), - NULLIF ( 77, + + 17 / AVG ( DISTINCT + 47 ) * 82 + COUNT( * ) ) * CASE - 70 * 17 WHEN 73 * 59 THEN NULL WHEN - 98 THEN CAST( NULL AS SIGNED ) * - ( + 39 ) ELSE NULL END ) ) * + 51 + COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-2959
SELECT ALL - ( - - COALESCE ( + COUNT ( * ), - NULLIF ( 77, + + 17 / AVG ( DISTINCT + 47 ) * 82 + COUNT ( * ) ) * CASE - 70 * 17 WHEN 73 * 59 THEN NULL WHEN - 98 THEN CAST ( NULL AS INTEGER ) * - ( + 39 ) ELSE NULL END ) ) * + 51 + COUNT ( * )
----
-50

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2960
SELECT + + CASE - + 98 WHEN + NULLIF ( + ( + - 44 ), + - 27 + - - 51 + - 35 + MIN( - 48 ) * - 47 ) * COUNT( * ) THEN - MAX( DISTINCT 65 ) + 50 WHEN MIN( ALL 19 ) - ( + 5 + 16 * 6 ) * CAST( NULL AS DECIMAL ) THEN + 35 WHEN 58 THEN NULL ELSE NULL END / 63 + CASE + 36 WHEN + 3 THEN 5 - 77 * + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2960
SELECT + + CASE - + 98 WHEN + NULLIF ( + ( + - 44 ), + - 27 + - - 51 + - 35 + MIN ( - 48 ) * - 47 ) * COUNT ( * ) THEN - MAX ( DISTINCT 65 ) + 50 WHEN MIN ( ALL 19 ) - ( + 5 + 16 * 6 ) * CAST ( NULL AS REAL ) THEN + 35 WHEN 58 THEN NULL ELSE NULL END / 63 + CASE + 36 WHEN + 3 THEN 5 - 77 * + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2961
SELECT + + CAST( NULL AS SIGNED ) AS col1, - CASE 53 WHEN - - 83 THEN - 36 * 34 + + 56 + + COUNT( * ) * + ( + 90 ) END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2961
SELECT + + CAST ( NULL AS INTEGER ) AS col1, - CASE 53 WHEN - - 83 THEN - 36 * 34 + + 56 + + COUNT ( * ) * + ( + 90 ) END
----
NULL
NULL

query I rowsort
SELECT ALL + 82 * - 1 AS col1
----
-82

query I rowsort
SELECT DISTINCT + NULLIF ( - 53, - - 39 + 19 * 51 * - 3 * + + 6 )
----
-53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2964
SELECT DISTINCT + ( NULLIF ( - CAST( NULL AS DECIMAL ), - ( - 44 ) * 63 + - 44 ) ) * - - 87 + 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2964
SELECT DISTINCT + ( NULLIF ( - CAST ( NULL AS REAL ), - ( - 44 ) * 63 + - 44 ) ) * - - 87 + 61 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2965
SELECT ALL + 54, 43 DIV ( + CAST( + + 4 AS SIGNED ) ) col0
----
54
10

skipif mysql # not compatible
query II rowsort label-2965
SELECT ALL + 54, 43 / ( + CAST ( + + 4 AS INTEGER ) ) col0
----
54
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT + MIN( + + 69 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-2966
SELECT + MIN ( + + 69 ) AS col0
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2967
SELECT - + COUNT( + - 42 ) DIV - COUNT( * ) + MAX( + 28 ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-2967
SELECT - + COUNT ( + - 42 ) / - COUNT ( * ) + MAX ( + 28 ) AS col1
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2968
SELECT ALL - 55 DIV - COUNT( * ) + + ( - - 73 ) + 67 * 84 * - 16
----
-89920

skipif mysql # not compatible
query I rowsort label-2968
SELECT ALL - 55 / - COUNT ( * ) + + ( - - 73 ) + 67 * 84 * - 16
----
-89920

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

skipif mysql # not compatible
query I rowsort label-2969
SELECT COUNT ( 61 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2970
SELECT ALL CAST( - 22 AS SIGNED ) AS col1, + 98 AS col2
----
-22
98

skipif mysql # not compatible
query II rowsort label-2970
SELECT ALL CAST ( - 22 AS INTEGER ) AS col1, + 98 AS col2
----
-22
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2971
SELECT + 40 * 77, CASE - - 42 WHEN - - 69 / + 90 THEN + - 74 * - COUNT( * ) ELSE 91 + 2 * CAST( NULL AS SIGNED ) END + + AVG ( DISTINCT - 30 ) AS col2
----
3080
NULL

skipif mysql # not compatible
query II rowsort label-2971
SELECT + 40 * 77, CASE - - 42 WHEN - - 69 / + 90 THEN + - 74 * - COUNT ( * ) ELSE 91 + 2 * CAST ( NULL AS INTEGER ) END + + AVG ( DISTINCT - 30 ) AS col2
----
3080
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT ALL CASE 87 WHEN + + 49 + - 56 - - 91 + - ( 89 ) * + ( + - 22 ) + 30 * 97 * + 40 * + CASE WHEN + COUNT( * ) * 34 <= - 21 / 87 THEN 4 / + 2 END THEN - NULLIF ( + 31, - 85 ) WHEN - ( 47 ) - - 66 * + 87 THEN 59 WHEN - COUNT( * ) THEN + 27 + 16 WHEN COUNT( * ) - + 75 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2972
SELECT ALL CASE 87 WHEN + + 49 + - 56 - - 91 + - ( 89 ) * + ( + - 22 ) + 30 * 97 * + 40 * + CASE WHEN + COUNT ( * ) * 34 <= - 21 / 87 THEN 4 / + 2 END THEN - NULLIF ( + 31, - 85 ) WHEN - ( 47 ) - - 66 * + 87 THEN 59 WHEN - COUNT ( * ) THEN + 27 + 16 WHEN COUNT ( * ) - + 75 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 4 * - 91
----
-364

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT + COUNT( * ) + + ( NULLIF ( + 12, - MAX( + 70 ) * + COUNT( * ) ) ) * - + COALESCE ( 24, + 6 ) + 53
----
-234

skipif mysql # not compatible
query I rowsort label-2974
SELECT + COUNT ( * ) + + ( NULLIF ( + 12, - MAX ( + 70 ) * + COUNT ( * ) ) ) * - + COALESCE ( 24, + 6 ) + 53
----
-234

onlyif mysql # DIV for integer division: 
query I rowsort label-2975
SELECT ALL 92 + + + 10 DIV + 27 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-2975
SELECT ALL 92 + + + 10 / + 27 AS col2
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-2976
SELECT DISTINCT 51 + - - 95 AS col0, MAX( - - 64 ) AS col2
----
146
64

skipif mysql # not compatible
query II rowsort label-2976
SELECT DISTINCT 51 + - - 95 AS col0, MAX ( - - 64 ) AS col2
----
146
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT + COUNT( ALL - 13 ) * 36 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-2977
SELECT + COUNT ( ALL - 13 ) * 36 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2978
SELECT - CASE - - 70 WHEN COUNT( * ) + - - 52 THEN + 93 ELSE - 54 * + + 47 * + - 90 END + + + 54 - 27 * - 18
----
-227880

skipif mysql # not compatible
query I rowsort label-2978
SELECT - CASE - - 70 WHEN COUNT ( * ) + - - 52 THEN + 93 ELSE - 54 * + + 47 * + - 90 END + + + 54 - 27 * - 18
----
-227880

query I rowsort
SELECT ALL 86 + - 16 - 89
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2980
SELECT - CAST( - 22 AS SIGNED ) col1
----
22

skipif mysql # not compatible
query I rowsort label-2980
SELECT - CAST ( - 22 AS INTEGER ) col1
----
22

query I rowsort
SELECT DISTINCT ( + 38 ) + - 45 AS col1
----
-7

query I rowsort
SELECT ALL + 92 + - 9
----
83

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2983
SELECT ALL 50 DIV + NULLIF ( 82, + - 3 ) * - 12 * CAST( 29 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2983
SELECT ALL 50 / + NULLIF ( 82, + - 3 ) * - 12 * CAST ( 29 AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT - 20 + + COUNT( * ) * 96
----
76

skipif mysql # not compatible
query I rowsort label-2984
SELECT - 20 + + COUNT ( * ) * 96
----
76

query I rowsort
SELECT DISTINCT 85 * + 83
----
7055

onlyif mysql # DIV for integer division: 
query I rowsort label-2986
SELECT - + 83 DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-2986
SELECT - + 83 / 96
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2987
SELECT - - 66 * + 81 + CAST( + + CAST( - 45 AS SIGNED ) AS SIGNED )
----
5301

skipif mysql # not compatible
query I rowsort label-2987
SELECT - - 66 * + 81 + CAST ( + + CAST ( - 45 AS INTEGER ) AS INTEGER )
----
5301

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT CASE + 73 WHEN + - NULLIF ( ( - MAX( ALL - 77 ) ), + 61 ) * 16 THEN - 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2988
SELECT CASE + 73 WHEN + - NULLIF ( ( - MAX ( ALL - 77 ) ), + 61 ) * 16 THEN - 93 END
----
NULL

query I rowsort
SELECT ALL - 2 * ( + + 59 ) * - - 82 - - + 95 + - NULLIF ( + 50, - - ( - 93 ) + 12 ) + - 87 * + 47 AS col0
----
-13720

onlyif mysql # aggregate syntax: 
query II rowsort label-2990
SELECT + 60 * - - 54 AS col1, + 17 * ( + COUNT( * ) ) + - 36 + - - 65 AS col2
----
3240
46

skipif mysql # not compatible
query II rowsort label-2990
SELECT + 60 * - - 54 AS col1, + 17 * ( + COUNT ( * ) ) + - 36 + - - 65 AS col2
----
3240
46

query I rowsort
SELECT - 30 + + 64 AS col1
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2992
SELECT - - 46 * - CAST( NULL AS SIGNED ) * - 55 * + - NULLIF ( + 23, - + CAST( 44 AS SIGNED ) * - ( 73 ) ) + 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2992
SELECT - - 46 * - CAST ( NULL AS INTEGER ) * - 55 * + - NULLIF ( + 23, - + CAST ( 44 AS INTEGER ) * - ( 73 ) ) + 23 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 83 - 57
----
26

query I rowsort
SELECT DISTINCT + NULLIF ( + 10, - 7 ) - + - 95 * - 81 AS col2
----
-7685

onlyif mysql # aggregate syntax: 
query II rowsort label-2995
SELECT + COUNT( * ) + 70, - 77 AS col2
----
71
-77

skipif mysql # not compatible
query II rowsort label-2995
SELECT + COUNT ( * ) + 70, - 77 AS col2
----
71
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2996
SELECT DISTINCT MAX( 23 ) - - 27 + - - 35 DIV - 55
----
50

skipif mysql # not compatible
query I rowsort label-2996
SELECT DISTINCT MAX ( 23 ) - - 27 + - - 35 / - 55
----
50

query I rowsort
SELECT 10 * + ( + 81 )
----
810

query I rowsort
SELECT + CASE - 23 WHEN - 63 THEN + + 57 END AS col1
----
NULL

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

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

query I rowsort
SELECT - 59 * 94
----
-5546

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3001
SELECT ALL + 9 * + SUM( DISTINCT - + COALESCE ( - + 86, + + ( + + 43 ) ) ) DIV - 21 + 83
----
47

skipif mysql # not compatible
query I rowsort label-3001
SELECT ALL + 9 * + SUM ( DISTINCT - + COALESCE ( - + 86, + + ( + + 43 ) ) ) / - 21 + 83
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT 89 * - COALESCE ( + 71, COUNT( * ), - 42 ) AS col0
----
-6319

skipif mysql # not compatible
query I rowsort label-3002
SELECT 89 * - COALESCE ( + 71, COUNT ( * ), - 42 ) AS col0
----
-6319

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT + ( - + 80 ) * - COUNT( * ) + - ( - MAX( 46 ) ) AS col1
----
126

skipif mysql # not compatible
query I rowsort label-3003
SELECT + ( - + 80 ) * - COUNT ( * ) + - ( - MAX ( 46 ) ) AS col1
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT ALL - - ( + MIN( + - 7 ) )
----
-7

skipif mysql # not compatible
query I rowsort label-3004
SELECT ALL - - ( + MIN ( + - 7 ) )
----
-7

query II rowsort
SELECT DISTINCT - 11 AS col2, - 75
----
-11
-75

query I rowsort
SELECT DISTINCT + ( + 49 ) + 35
----
84

onlyif mysql # DIV for integer division: 
query II rowsort label-3007
SELECT ( - 31 ) DIV - 68, - 84 AS col1
----
0
-84

skipif mysql # not compatible
query II rowsort label-3007
SELECT ( - 31 ) / - 68, - 84 AS col1
----
0
-84

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

query I rowsort
SELECT DISTINCT 51 + 48
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3010
SELECT 49 DIV + ( 69 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3010
SELECT 49 / + ( 69 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3011
SELECT 85 DIV - 39
----
-2

skipif mysql # not compatible
query I rowsort label-3011
SELECT 85 / - 39
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-3012
SELECT DISTINCT 3 + - 43 + + 75 + - + 6 DIV + 56 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-3012
SELECT DISTINCT 3 + - 43 + + 75 + - + 6 / + 56 AS col0
----
35

query II rowsort
SELECT - 12 AS col1, - 41 * - 94
----
-12
3854

query I rowsort
SELECT ALL 38 + + + 11 + - 54 * - - ( 57 )
----
-3029

query I rowsort
SELECT ALL 9 * - 58 col0
----
-522

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT DISTINCT 44 * + CASE + - 5 WHEN - 34 THEN - 7 * + + 66 ELSE + COUNT( * ) END AS col1
----
44

skipif mysql # not compatible
query I rowsort label-3016
SELECT DISTINCT 44 * + CASE + - 5 WHEN - 34 THEN - 7 * + + 66 ELSE + COUNT ( * ) END AS col1
----
44

query I rowsort
SELECT ALL 2 + 29
----
31

query I rowsort
SELECT 64 + 21 + + + 4 col1
----
89

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

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

query II rowsort
SELECT ALL + 19 AS col1, + 64
----
19
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT + CASE 27 WHEN - - 7 THEN + 56 * - 70 + + 51 ELSE - 41 + + COUNT( * ) END AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-3021
SELECT + CASE 27 WHEN - - 7 THEN + 56 * - 70 + + 51 ELSE - 41 + + COUNT ( * ) END AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT COUNT( * ) + - 77 * - 14 * - + 20 AS col2
----
-21559

skipif mysql # not compatible
query I rowsort label-3022
SELECT COUNT ( * ) + - 77 * - 14 * - + 20 AS col2
----
-21559

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT ALL + 65 - + 1 + 14 + + 93 + + 74 - - 35 * - COUNT( * ) * 65 * + 60 + - - 57
----
-136198

skipif mysql # not compatible
query I rowsort label-3023
SELECT ALL + 65 - + 1 + 14 + + 93 + + 74 - - 35 * - COUNT ( * ) * 65 * + 60 + - - 57
----
-136198

query I rowsort
SELECT 55 * + 93 - + 23 - 54
----
5038

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT ALL + MIN( DISTINCT + 51 )
----
51

skipif mysql # not compatible
query I rowsort label-3025
SELECT ALL + MIN ( DISTINCT + 51 )
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3026
SELECT - CAST( NULL AS SIGNED ) / 56 / + CAST( NULL AS DECIMAL ) * COUNT( * ) + - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-3026
SELECT - CAST ( NULL AS INTEGER ) / 56 / + CAST ( NULL AS REAL ) * COUNT ( * ) + - 37
----
NULL

query I rowsort
SELECT + 7 + + - NULLIF ( + 77, + + 29 * 55 * - 57 ) + - 94 + 77 AS col2
----
-87

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

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

query I rowsort
SELECT - COALESCE ( - 40, 23 * + - ( + + 6 ) + - 91, 99 ) * + + 3 + - 67 * - + 73 * 83
----
406073

query I rowsort
SELECT ALL 86 * + - 70
----
-6020

query I rowsort
SELECT 24 * + 92 AS col1
----
2208

query I rowsort
SELECT + CASE - 88 WHEN - 47 / + 53 THEN + 29 END / - 23 + 79 * - + ( - - 65 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3033
SELECT + COUNT ( * ) / - 3 + + + COUNT ( * ) * ( - 48 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT DISTINCT ( - - 38 ) * + - SUM( 62 )
----
-2356

skipif mysql # not compatible
query I rowsort label-3034
SELECT DISTINCT ( - - 38 ) * + - SUM ( 62 )
----
-2356

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

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

query I rowsort
SELECT 50 * 61 AS col1
----
3050

query I rowsort
SELECT 30 + 50 AS col1
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-3038
SELECT 52, - 27 + MAX( - 25 ) + + 33 col2
----
52
-19

skipif mysql # not compatible
query II rowsort label-3038
SELECT 52, - 27 + MAX ( - 25 ) + + 33 col2
----
52
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3039
SELECT COUNT( * ) * - COALESCE ( 17, - + 67 + + 40, + ( - + 93 ) ) DIV 46 DIV - ( - 79 ) + + - 94
----
-94

skipif mysql # not compatible
query I rowsort label-3039
SELECT COUNT ( * ) * - COALESCE ( 17, - + 67 + + 40, + ( - + 93 ) ) / 46 / - ( - 79 ) + + - 94
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT ALL - 92 + + - COUNT( 47 )
----
-93

skipif mysql # not compatible
query I rowsort label-3040
SELECT ALL - 92 + + - COUNT ( 47 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT 65 + 65 * + ( + NULLIF ( + NULLIF ( 86, - 45 + + 59 + - - MIN( DISTINCT 43 ) * - 38 / + 31 ), - 8 ) )
----
5655

skipif mysql # not compatible
query I rowsort label-3041
SELECT 65 + 65 * + ( + NULLIF ( + NULLIF ( 86, - 45 + + 59 + - - MIN ( DISTINCT 43 ) * - 38 / + 31 ), - 8 ) )
----
5655

query I rowsort
SELECT DISTINCT - 19 * 32 col1
----
-608

query I rowsort
SELECT ALL - 2 * - 44 AS col1
----
88

query I rowsort
SELECT ALL - 93 - - 33 AS col2
----
-60

query I rowsort
SELECT 55 * 17
----
935

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT ALL CASE 19 WHEN - ( + + SUM( ALL + 69 ) ) * - + 80 + + 98 THEN 31 + 58 + - - 67 WHEN + 30 * - 31 THEN + 64 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3046
SELECT ALL CASE 19 WHEN - ( + + SUM ( ALL + 69 ) ) * - + 80 + + 98 THEN 31 + 58 + - - 67 WHEN + 30 * - 31 THEN + 64 END AS col2
----
NULL

query I rowsort
SELECT 65 * 9
----
585

query I rowsort
SELECT + 91 + + + 95 * - 98
----
-9219

onlyif mysql # DIV for integer division: 
query I rowsort label-3049
SELECT ALL 96 DIV + 49 col1
----
1

skipif mysql # not compatible
query I rowsort label-3049
SELECT ALL 96 / + 49 col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3050
SELECT + - 75 + 37 + + + 91 DIV - COUNT( * )
----
-129

skipif mysql # not compatible
query I rowsort label-3050
SELECT + - 75 + 37 + + + 91 / - COUNT ( * )
----
-129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3051
SELECT DISTINCT - 17 DIV - 98 * + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3051
SELECT DISTINCT - 17 / - 98 * + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT - + COALESCE ( - 8, CASE - + 69 WHEN 89 THEN NULL ELSE - 34 + - + 50 + ( + + 10 ) END ) * + COUNT( * ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-3052
SELECT - + COALESCE ( - 8, CASE - + 69 WHEN 89 THEN NULL ELSE - 34 + - + 50 + ( + + 10 ) END ) * + COUNT ( * ) AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT ALL COUNT( * ) * - 22 + + 49
----
27

skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL COUNT ( * ) * - 22 + + 49
----
27

query I rowsort
SELECT DISTINCT + 92 * + 60 * + ( + - 37 ) + + 9
----
-204231

query I rowsort
SELECT ALL 75 * + 62 AS col0
----
4650

query I rowsort
SELECT + + 48 * - + 73 AS col2
----
-3504

query II rowsort
SELECT + + 96 col2, 28 - + 41
----
96
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT CASE + - 43 WHEN - + 24 THEN NULL WHEN - 50 THEN NULL WHEN - ( 86 ) * - + 39 * + 79 THEN NULL ELSE COUNT( * ) END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3058
SELECT CASE + - 43 WHEN - + 24 THEN NULL WHEN - 50 THEN NULL WHEN - ( 86 ) * - + 39 * + 79 THEN NULL ELSE COUNT ( * ) END AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT + + COUNT( * ) * 53 + 89
----
142

skipif mysql # not compatible
query I rowsort label-3059
SELECT + + COUNT ( * ) * 53 + 89
----
142

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3060
SELECT + + CAST( + 16 AS SIGNED ) AS col0, - 11 * - 64 + 53 col1
----
16
757

skipif mysql # not compatible
query II rowsort label-3060
SELECT + + CAST ( + 16 AS INTEGER ) AS col0, - 11 * - 64 + 53 col1
----
16
757

query I rowsort
SELECT ALL - 27 * + 51
----
-1377

query I rowsort
SELECT + 17 + - 28 AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT DISTINCT - - COUNT( * ) * + 23 + 5
----
28

skipif mysql # not compatible
query I rowsort label-3063
SELECT DISTINCT - - COUNT ( * ) * + 23 + 5
----
28

query I rowsort
SELECT ALL + 4 * 59 + + 70
----
306

query I rowsort
SELECT + 81 - - 60 AS col0
----
141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3066
SELECT - 44 * + 12 + CASE COALESCE ( - 84, - - AVG ( - 4 ) DIV 97 ) WHEN - 96 THEN MIN( + 89 ) DIV - + MAX( + ( - 64 ) ) * + 44 + 58 * + ( 92 - 66 ) + + 10 ELSE NULLIF ( - COUNT( * ), ( - 42 ) + + 6 ) * - 53 END - + 1 col1
----
-476

skipif mysql # not compatible
query I rowsort label-3066
SELECT - 44 * + 12 + CASE COALESCE ( - 84, - - AVG ( - 4 ) / 97 ) WHEN - 96 THEN MIN ( + 89 ) / - + MAX ( + ( - 64 ) ) * + 44 + 58 * + ( 92 - 66 ) + + 10 ELSE NULLIF ( - COUNT ( * ), ( - 42 ) + + 6 ) * - 53 END - + 1 col1
----
-476

query I rowsort
SELECT ALL + 33 * + 18
----
594

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3068
SELECT CASE + 40 WHEN CAST( NULL AS DECIMAL ) * + 65 + 69 * + ( + NULLIF ( + COUNT( + 1 ), - + 3 * - 59 + 54 / - 22 ) ) THEN NULL WHEN - ( + 74 ) + + 4 THEN COUNT( * ) + - MIN( + 77 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3068
SELECT CASE + 40 WHEN CAST ( NULL AS REAL ) * + 65 + 69 * + ( + NULLIF ( + COUNT ( + 1 ), - + 3 * - 59 + 54 / - 22 ) ) THEN NULL WHEN - ( + 74 ) + + 4 THEN COUNT ( * ) + - MIN ( + 77 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3069
SELECT - CAST( + ( + 42 ) AS SIGNED ) + COUNT( ALL + 62 ) + - 91 AS col0
----
-132

skipif mysql # not compatible
query I rowsort label-3069
SELECT - CAST ( + ( + 42 ) AS INTEGER ) + COUNT ( ALL + 62 ) + - 91 AS col0
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT ALL COUNT( * ) * + + 23 * MAX( ALL ( 24 ) ) + - 36 AS col1
----
516

skipif mysql # not compatible
query I rowsort label-3070
SELECT ALL COUNT ( * ) * + + 23 * MAX ( ALL ( 24 ) ) + - 36 AS col1
----
516

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3071
SELECT ALL 33 * + 20 * CAST( NULL AS SIGNED ) / + + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-3071
SELECT ALL 33 * + 20 * CAST ( NULL AS INTEGER ) / + + 61
----
NULL

query I rowsort
SELECT - 45 * - NULLIF ( - - 27, + 30 ) AS col1
----
1215

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT ALL + NULLIF ( - + ( - + 60 ), - 52 + - 91 * + 4 + + + COUNT( * ) + - + 7 * - 51 / + 98 )
----
60

skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL + NULLIF ( - + ( - + 60 ), - 52 + - 91 * + 4 + + + COUNT ( * ) + - + 7 * - 51 / + 98 )
----
60

query I rowsort
SELECT ALL 49 * - - 97 - - 75
----
4828

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT - 15 * - COUNT( * ) * - + 42 / ( CASE - 48 WHEN - 56 / + 35 THEN - - COUNT( * ) END ) * + + 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3076
SELECT - 15 * - COUNT ( * ) * - + 42 / ( CASE - 48 WHEN - 56 / + 35 THEN - - COUNT ( * ) END ) * + + 8 AS col0
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( 55, + 6 )
----
55

query II rowsort
SELECT - 50 * 69 AS col1, + 22 col2
----
-3450
22

query I rowsort
SELECT - 79 * - 99
----
7821

query I rowsort
SELECT DISTINCT - 89 * - 31
----
2759

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

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

query I rowsort
SELECT - + 60 * - 69
----
4140

query I rowsort
SELECT ALL - + 49 * - - 44 * + + 34
----
-73304

onlyif mysql # aggregate syntax: 
query II rowsort label-3084
SELECT - MAX( ALL - 17 ), - 85 AS col0
----
17
-85

skipif mysql # not compatible
query II rowsort label-3084
SELECT - MAX ( ALL - 17 ), - 85 AS col0
----
17
-85

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3086
SELECT - ( + COALESCE ( + + 10, CAST( - 92 AS SIGNED ) ) ) DIV - 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3086
SELECT - ( + COALESCE ( + + 10, CAST ( - 92 AS INTEGER ) ) ) / - 91 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT - COUNT( ALL 76 ) * 83 + - ( - - 44 ) * + - 6 AS col0
----
181

skipif mysql # not compatible
query I rowsort label-3087
SELECT - COUNT ( ALL 76 ) * 83 + - ( - - 44 ) * + - 6 AS col0
----
181

query I rowsort
SELECT - - 83 + - 50
----
33

query I rowsort
SELECT ALL + - 61 + + - 36 - + 40 * - 1 AS col1
----
-57

query I rowsort
SELECT - + 8 + + 3 - 47
----
-52

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3092
SELECT DISTINCT + - 24 / - CASE 30 WHEN + 29 + - COUNT( * ) THEN - 80 ELSE NULL END + 87 + - 82 + + + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-3092
SELECT DISTINCT + - 24 / - CASE 30 WHEN + 29 + - COUNT ( * ) THEN - 80 ELSE NULL END + 87 + - 82 + + + 63
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3093
SELECT ALL SUM( ALL + 61 ) DIV 14 * - 78 + - 66 AS col1
----
-378

skipif mysql # not compatible
query I rowsort label-3093
SELECT ALL SUM ( ALL + 61 ) / 14 * - 78 + - 66 AS col1
----
-378

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

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

query I rowsort
SELECT - NULLIF ( - - 9, + - 71 ) col0
----
-9

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3096
SELECT CAST( + CAST( 16 AS DECIMAL ) AS SIGNED ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-3096
SELECT CAST ( + CAST ( 16 AS REAL ) AS INTEGER ) AS col2
----
16

query II rowsort
SELECT + 58 + - 84 - - 58 * - + 42 AS col2, 48 - - - 15
----
-2462
33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3098
SELECT COALESCE ( - 11, + 5, - 6 ) * - CASE + 63 WHEN + 47 * - - 78 + CAST( - 52 AS DECIMAL ) * + 83 + - CASE 10 WHEN COUNT( * ) THEN + 10 + - COUNT( * ) WHEN + 73 THEN NULL ELSE NULL END * 35 THEN NULL ELSE - COUNT( * ) END - - 99 + + 45 AS col0
----
133

skipif mysql # not compatible
query I rowsort label-3098
SELECT COALESCE ( - 11, + 5, - 6 ) * - CASE + 63 WHEN + 47 * - - 78 + CAST ( - 52 AS REAL ) * + 83 + - CASE 10 WHEN COUNT ( * ) THEN + 10 + - COUNT ( * ) WHEN + 73 THEN NULL ELSE NULL END * 35 THEN NULL ELSE - COUNT ( * ) END - - 99 + + 45 AS col0
----
133

query I rowsort
SELECT + NULLIF ( - 98, + 73 + - 39 )
----
-98

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3100
SELECT DISTINCT CAST( NULL AS DECIMAL ) / + 46 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3100
SELECT DISTINCT CAST ( NULL AS REAL ) / + 46 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT ALL 39 * - + CASE - 21 WHEN COUNT( * ) THEN NULL ELSE 18 END
----
-702

skipif mysql # not compatible
query I rowsort label-3101
SELECT ALL 39 * - + CASE - 21 WHEN COUNT ( * ) THEN NULL ELSE 18 END
----
-702

query I rowsort
SELECT DISTINCT 21 * - + 90
----
-1890

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT ALL 79 * CASE - 27 WHEN - 14 THEN - ( + COUNT( * ) ) + + 34 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3103
SELECT ALL 79 * CASE - 27 WHEN - 14 THEN - ( + COUNT ( * ) ) + + 34 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT ( ( + 75 ) ) * - 10 + + - 91 * + 32 * 99 + + CASE + 86 WHEN + - 65 THEN ( + - COUNT( * ) ) * 25 ELSE 63 + COUNT( * ) END
----
-288974

skipif mysql # not compatible
query I rowsort label-3104
SELECT ( ( + 75 ) ) * - 10 + + - 91 * + 32 * 99 + + CASE + 86 WHEN + - 65 THEN ( + - COUNT ( * ) ) * 25 ELSE 63 + COUNT ( * ) END
----
-288974

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT 10 - - COUNT( * ) + 15
----
26

skipif mysql # not compatible
query I rowsort label-3105
SELECT 10 - - COUNT ( * ) + 15
----
26

query II rowsort
SELECT ALL 19 AS col0, + 85 AS col1
----
19
85

onlyif mysql # DIV for integer division: 
query II rowsort label-3107
SELECT ALL 44 * 16 DIV + 22 AS col2, + ( - 97 ) * 94 col2
----
32
-9118

skipif mysql # not compatible
query II rowsort label-3107
SELECT ALL 44 * 16 / + 22 AS col2, + ( - 97 ) * 94 col2
----
32
-9118

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

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

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

skipif mysql # not compatible
query I rowsort label-3109
SELECT + 47 + + 80 / - 60 * + COUNT ( * )
----
46

query I rowsort
SELECT ( 5 ) + + + 0 * + 81 AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3111
SELECT + ( - COUNT( DISTINCT - + 62 ) ) AS col0, CAST( NULL AS DECIMAL )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3111
SELECT + ( - COUNT ( DISTINCT - + 62 ) ) AS col0, CAST ( NULL AS REAL )
----
-1
NULL

query I rowsort
SELECT 33 * 23
----
759

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

skipif mysql # not compatible
query I rowsort label-3113
SELECT ALL - + COUNT ( * ) + - + 87 AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT DISTINCT + ( - 74 ) * + + ( 88 ) + + + MAX( ALL + - CASE + - 35 WHEN 6 * 30 THEN + + 1 + + 42 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3114
SELECT DISTINCT + ( - 74 ) * + + ( 88 ) + + + MAX ( ALL + - CASE + - 35 WHEN 6 * 30 THEN + + 1 + + 42 ELSE NULL END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3115
SELECT - 54 DIV - 89
----
0

skipif mysql # not compatible
query I rowsort label-3115
SELECT - 54 / - 89
----
0

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

query I rowsort
SELECT ALL - + 34 + + 92 + - 84
----
-26

query I rowsort
SELECT ALL - 91 + - 38 AS col2
----
-129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3119
SELECT COUNT( * ) DIV - 57 * + 1 * + 2 * + 87 * - NULLIF ( - 45, - - 82 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3119
SELECT COUNT ( * ) / - 57 * + 1 * + 2 * + 87 * - NULLIF ( - 45, - - 82 ) AS col0
----
0

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

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

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

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

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

query II rowsort
SELECT ALL 99, 73 AS col1
----
99
73

query I rowsort
SELECT 81 - - 95 AS col0
----
176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3125
SELECT CAST( NULL AS SIGNED ) / - NULLIF ( 66, 71 ) * 43
----
NULL

skipif mysql # not compatible
query I rowsort label-3125
SELECT CAST ( NULL AS INTEGER ) / - NULLIF ( 66, 71 ) * 43
----
NULL

query II rowsort
SELECT DISTINCT + 60 - 21 AS col0, 37 * - 20 AS col1
----
39
-740

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3128
SELECT DISTINCT 5 * + + 80, COUNT( * ) col1
----
400
1

skipif mysql # not compatible
query II rowsort label-3128
SELECT DISTINCT 5 * + + 80, COUNT ( * ) col1
----
400
1

query I rowsort
SELECT 78 * - 85 * + 6 AS col1
----
-39780

query I rowsort
SELECT 84 + + - 79 AS col2
----
5

query I rowsort
SELECT ALL + 43 - + - 19
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3132
SELECT DISTINCT - 88 * + CAST( NULL AS SIGNED ) / 73 * - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-3132
SELECT DISTINCT - 88 * + CAST ( NULL AS INTEGER ) / 73 * - 18
----
NULL

query I rowsort
SELECT 68 + + 52 + 2 AS col0
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT MAX( - + 20 ) * - NULLIF ( + + 0, - - 96 + + + 20 - + 33 * 21 ) * + 50 + - 31 - - + COUNT( * ) + + 20 + + 2 - - + 70 * - 2 * - 70 AS col0
----
9792

skipif mysql # not compatible
query I rowsort label-3134
SELECT MAX ( - + 20 ) * - NULLIF ( + + 0, - - 96 + + + 20 - + 33 * 21 ) * + 50 + - 31 - - + COUNT ( * ) + + 20 + + 2 - - + 70 * - 2 * - 70 AS col0
----
9792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3135
SELECT DISTINCT CASE - + 70 WHEN - 16 + - MAX( + 58 ) THEN - + 34 + + 19 + - COUNT( DISTINCT + 17 ) + - 6 * + + NULLIF ( + 55, ( + + 80 ) ) + + COUNT( * ) WHEN 96 * 67 THEN NULL END * + CAST( - SUM( DISTINCT 87 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3135
SELECT DISTINCT CASE - + 70 WHEN - 16 + - MAX ( + 58 ) THEN - + 34 + + 19 + - COUNT ( DISTINCT + 17 ) + - 6 * + + NULLIF ( + 55, ( + + 80 ) ) + + COUNT ( * ) WHEN 96 * 67 THEN NULL END * + CAST ( - SUM ( DISTINCT 87 ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3136
SELECT ( + COUNT( * ) ) * + + 67 DIV - + 13 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-3136
SELECT ( + COUNT ( * ) ) * + + 67 / - + 13 AS col1
----
-5

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

query I rowsort
SELECT 47 * + 19 - - + 26
----
919

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3139
SELECT ALL - 80 + 65 + - + 47 + - - COALESCE ( - 88, + - CAST( + 93 AS SIGNED ) ) * ( - - COUNT( * ) ) * - 76 * - - 11 + - 53 col2
----
73453

skipif mysql # not compatible
query I rowsort label-3139
SELECT ALL - 80 + 65 + - + 47 + - - COALESCE ( - 88, + - CAST ( + 93 AS INTEGER ) ) * ( - - COUNT ( * ) ) * - 76 * - - 11 + - 53 col2
----
73453

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3140
SELECT DISTINCT - CAST( - + 98 AS SIGNED ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-3140
SELECT DISTINCT - CAST ( - + 98 AS INTEGER ) AS col2
----
98

query I rowsort
SELECT DISTINCT 12 + - 28 + - - 90
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3142
SELECT ALL + 31 + + + COUNT( - 4 ) DIV + + 25 * + - COUNT( * ) + - - ( ( + 99 ) ) AS col2
----
130

skipif mysql # not compatible
query I rowsort label-3142
SELECT ALL + 31 + + + COUNT ( - 4 ) / + + 25 * + - COUNT ( * ) + - - ( ( + 99 ) ) AS col2
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3143
SELECT + CASE - - CAST( + 22 AS SIGNED ) WHEN + - 73 THEN NULL WHEN AVG ( ALL 68 ) * 17 THEN + CASE + CAST( + 82 AS SIGNED ) WHEN - COUNT( * ) + 98 + + - COUNT( ALL 21 ) * + 50 THEN 43 - 55 * - 98 END END * + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-3143
SELECT + CASE - - CAST ( + 22 AS INTEGER ) WHEN + - 73 THEN NULL WHEN AVG ( ALL 68 ) * 17 THEN + CASE + CAST ( + 82 AS INTEGER ) WHEN - COUNT ( * ) + 98 + + - COUNT ( ALL 21 ) * + 50 THEN 43 - 55 * - 98 END END * + 30
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3144
SELECT ALL + 20 + + 63 + 64 DIV 90 * 92 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-3144
SELECT ALL + 20 + + 63 + 64 / 90 * 92 AS col2
----
83

query I rowsort
SELECT DISTINCT + NULLIF ( + 22, + 28 ) AS col2
----
22

query I rowsort
SELECT - - ( 44 )
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3147
SELECT 96 + + ( + - ( CASE - + 80 WHEN 45 - 51 - + 50 / + 41 * - MAX( DISTINCT + + 97 ) * + 31 THEN NULL WHEN - 62 * - 2 / 99 + - 2 THEN - CAST( 9 AS SIGNED ) ELSE NULL END ) ) * + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-3147
SELECT 96 + + ( + - ( CASE - + 80 WHEN 45 - 51 - + 50 / + 41 * - MAX ( DISTINCT + + 97 ) * + 31 THEN NULL WHEN - 62 * - 2 / 99 + - 2 THEN - CAST ( 9 AS INTEGER ) ELSE NULL END ) ) * + 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT - 10 - + 55 / 43 + + ( + NULLIF ( - COUNT( * ), - + COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3148
SELECT - 10 - + 55 / 43 + + ( + NULLIF ( - COUNT ( * ), - + COUNT ( * ) ) )
----
NULL

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

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

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

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

query I rowsort
SELECT 73 * + + 34 * 86
----
213452

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3152
SELECT DISTINCT + 65 * - NULLIF ( + AVG ( ALL + - 91 ), + 76 ) DIV + CASE + - 23 WHEN - MAX( 28 ) THEN + - 58 END AS col1, - 82 DIV 65 col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-3152
SELECT DISTINCT + 65 * - NULLIF ( + AVG ( ALL + - 91 ), + 76 ) / + CASE + - 23 WHEN - MAX ( 28 ) THEN + - 58 END AS col1, - 82 / 65 col0
----
NULL
-1

query I rowsort
SELECT DISTINCT 75 - - 77
----
152

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3155
SELECT + 81 DIV + ( + 16 ) + - + 85
----
-80

skipif mysql # not compatible
query I rowsort label-3155
SELECT + 81 / + ( + 16 ) + - + 85
----
-80

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT 84 * - COUNT( + 97 ) * COUNT( * ) * 36 AS col1
----
-3024

skipif mysql # not compatible
query I rowsort label-3157
SELECT 84 * - COUNT ( + 97 ) * COUNT ( * ) * 36 AS col1
----
-3024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3158
SELECT - MIN( DISTINCT + ( + 62 ) ) + - + 31 * 51 / + 26 * - CAST( NULL AS SIGNED ) * 80 AS col1, - ( + 75 ) col1
----
NULL
-75

skipif mysql # not compatible
query II rowsort label-3158
SELECT - MIN ( DISTINCT + ( + 62 ) ) + - + 31 * 51 / + 26 * - CAST ( NULL AS INTEGER ) * 80 AS col1, - ( + 75 ) col1
----
NULL
-75

query I rowsort
SELECT + COALESCE ( 41, + 5 ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT NULLIF ( NULLIF ( 61, + COUNT( * ) ), - + 68 )
----
61

skipif mysql # not compatible
query I rowsort label-3160
SELECT NULLIF ( NULLIF ( 61, + COUNT ( * ) ), - + 68 )
----
61

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3162
SELECT - 74 DIV - 93
----
0

skipif mysql # not compatible
query I rowsort label-3162
SELECT - 74 / - 93
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3163
SELECT - CAST( - + 2 AS SIGNED ) * CAST( NULL AS SIGNED ) * 12 + + ( 35 ) + - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-3163
SELECT - CAST ( - + 2 AS INTEGER ) * CAST ( NULL AS INTEGER ) * 12 + + ( 35 ) + - 85
----
NULL

query I rowsort
SELECT - 37 * - 39 + + 11 AS col0
----
1454

query I rowsort
SELECT ALL + COALESCE ( - 64, - 6, + 79 - + 64 + CASE - 9 WHEN 4 THEN 41 ELSE NULL END ) AS col1
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3166
SELECT COALESCE ( 41, + - 63 + + 5, COALESCE ( + 30, - COUNT( * ) + + 36 DIV + CASE + - COUNT( DISTINCT 87 ) WHEN - - 22 THEN + - 39 * - - 60 END ) DIV + 94 + 8 * 51 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-3166
SELECT COALESCE ( 41, + - 63 + + 5, COALESCE ( + 30, - COUNT ( * ) + + 36 / + CASE + - COUNT ( DISTINCT 87 ) WHEN - - 22 THEN + - 39 * - - 60 END ) / + 94 + 8 * 51 ) AS col2
----
41

query I rowsort
SELECT ALL - 11 * + 37 AS col1
----
-407

onlyif mysql # DIV for integer division: 
query I rowsort label-3168
SELECT - 38 DIV + 36 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3168
SELECT - 38 / + 36 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT ALL + 97 * - + 21 * NULLIF ( 87, - COUNT( * ) / + 78 * + + 39 ) + - - CASE + 68 WHEN - COUNT( * ) THEN 81 + + - 36 * - - ( - 36 ) WHEN + - 67 + + 0 THEN 4 ELSE 54 + 52 END
----
-177113

skipif mysql # not compatible
query I rowsort label-3169
SELECT ALL + 97 * - + 21 * NULLIF ( 87, - COUNT ( * ) / + 78 * + + 39 ) + - - CASE + 68 WHEN - COUNT ( * ) THEN 81 + + - 36 * - - ( - 36 ) WHEN + - 67 + + 0 THEN 4 ELSE 54 + 52 END
----
-177113

onlyif mysql # DIV for integer division: 
query I rowsort label-3170
SELECT DISTINCT - 30 DIV - 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3170
SELECT DISTINCT - 30 / - 87 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT ALL - COUNT( * ) * + 44 + - 77 * - 79 * - - 98 + - + 80
----
596010

skipif mysql # not compatible
query I rowsort label-3171
SELECT ALL - COUNT ( * ) * + 44 + - 77 * - 79 * - - 98 + - + 80
----
596010

query I rowsort
SELECT - 11 * - - 5 + + 6 col2
----
-49

query I rowsort
SELECT DISTINCT NULLIF ( + 88, + 75 ) * + 13
----
1144

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT DISTINCT + COUNT( * ) * + MIN( + 78 ) * MAX( ALL - 3 ) + - COUNT( * ) + 24 AS col1
----
-211

skipif mysql # not compatible
query I rowsort label-3174
SELECT DISTINCT + COUNT ( * ) * + MIN ( + 78 ) * MAX ( ALL - 3 ) + - COUNT ( * ) + 24 AS col1
----
-211

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT - 20 + + 96 + MIN( 14 ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-3175
SELECT - 20 + + 96 + MIN ( 14 ) AS col2
----
90

query I rowsort
SELECT ALL + 70 * - 15 + - 85 + - 9
----
-1144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3177
SELECT - CAST( - + 49 AS SIGNED ) + 60
----
109

skipif mysql # not compatible
query I rowsort label-3177
SELECT - CAST ( - + 49 AS INTEGER ) + 60
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT ( - 11 ) * + + NULLIF ( + 31, COUNT( * ) ) + + 64 - 84 * + COUNT( * )
----
-361

skipif mysql # not compatible
query I rowsort label-3178
SELECT ( - 11 ) * + + NULLIF ( + 31, COUNT ( * ) ) + + 64 - 84 * + COUNT ( * )
----
-361

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT + - 90 - + ( + + COUNT( * ) ) col1
----
-91

skipif mysql # not compatible
query I rowsort label-3179
SELECT + - 90 - + ( + + COUNT ( * ) ) col1
----
-91

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

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

query I rowsort
SELECT ALL + + 38 + + 38 * + 72 * + + 82
----
224390

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3183
SELECT + ( - - 14 ) + + - 92 col0, CAST( NULL AS SIGNED )
----
-78
NULL

skipif mysql # not compatible
query II rowsort label-3183
SELECT + ( - - 14 ) + + - 92 col0, CAST ( NULL AS INTEGER )
----
-78
NULL

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

query I rowsort
SELECT ALL 84 * + 25
----
2100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3186
SELECT DISTINCT + 32 DIV - MIN( ALL + 37 ), 17 + + CAST( 15 AS SIGNED ) AS col1
----
0
32

skipif mysql # not compatible
query II rowsort label-3186
SELECT DISTINCT + 32 / - MIN ( ALL + 37 ), 17 + + CAST ( 15 AS INTEGER ) AS col1
----
0
32

query I rowsort
SELECT ALL 41 * + + 49 AS col2
----
2009

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3188
SELECT + 11 DIV + - MIN( DISTINCT - 1 ) col0
----
11

skipif mysql # not compatible
query I rowsort label-3188
SELECT + 11 / + - MIN ( DISTINCT - 1 ) col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT + + CASE - - COUNT( * ) WHEN + 89 THEN + - 89 ELSE - 73 + + 59 END + 74
----
60

skipif mysql # not compatible
query I rowsort label-3189
SELECT + + CASE - - COUNT ( * ) WHEN + 89 THEN + - 89 ELSE - 73 + + 59 END + 74
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-3190
SELECT - + CASE ( + + 85 ) WHEN + 99 THEN 71 WHEN + ( - 50 ) THEN NULL ELSE - 80 DIV + ( - - 39 ) END
----
2

skipif mysql # not compatible
query I rowsort label-3190
SELECT - + CASE ( + + 85 ) WHEN + 99 THEN 71 WHEN + ( - 50 ) THEN NULL ELSE - 80 / + ( - - 39 ) END
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3191
SELECT + - 13 + - COUNT( * ) * - + 42 + + + ( - 54 ) - - - 32 + 3 / - + NULLIF ( + CASE 53 WHEN - 89 * - ( - + CASE 42 WHEN - 16 * + CAST( - COUNT( * ) AS SIGNED ) THEN ( + 5 ) * - 26 + - COUNT( * ) * MIN( 61 ) END ) THEN + AVG ( 24 ) / 44 + SUM( DISTINCT ( 9 ) + - 85 * - 14 ) WHEN 6 THEN NULL END, + CASE 7 WHEN - 77 THEN NULL WHEN 25 + + COUNT( - 40 ) * - COUNT( * ) THEN COUNT( * ) + COALESCE ( 91, + ( 2 ) * 12 ) END ) * 59
----
NULL

skipif mysql # not compatible
query I rowsort label-3191
SELECT + - 13 + - COUNT ( * ) * - + 42 + + + ( - 54 ) - - - 32 + 3 / - + NULLIF ( + CASE 53 WHEN - 89 * - ( - + CASE 42 WHEN - 16 * + CAST ( - COUNT ( * ) AS INTEGER ) THEN ( + 5 ) * - 26 + - COUNT ( * ) * MIN ( 61 ) END ) THEN + AVG ( 24 ) / 44 + SUM ( DISTINCT ( 9 ) + - 85 * - 14 ) WHEN 6 THEN NULL END, + CASE 7 WHEN - 77 THEN NULL WHEN 25 + + COUNT ( - 40 ) * - COUNT ( * ) THEN COUNT ( * ) + COALESCE ( 91, + ( 2 ) * 12 ) END ) * 59
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3192
SELECT + + 28 DIV - 60 + - 94 DIV + 32
----
-2

skipif mysql # not compatible
query I rowsort label-3192
SELECT + + 28 / - 60 + - 94 / + 32
----
-2

query I rowsort
SELECT ALL ( + + COALESCE ( + 37, + 1 * 16, + ( + - ( + 8 ) ) - + - 31 ) ) AS col0
----
37

query I rowsort
SELECT + 61 * + + 66 + + 51 * 11 * 91 - - ( + 45 ) AS col2
----
55122

query I rowsort
SELECT ALL 30 * - 37 + 83 AS col0
----
-1027

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

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

query I rowsort
SELECT ALL NULLIF ( - 99, 60 * 22 )
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3198
SELECT + CASE COALESCE ( + 80, - - 44 - - 13, + COUNT( * ) ) WHEN + 19 DIV - - COUNT( * ) - - 94 THEN NULL WHEN 8 + + 79 THEN - 73 ELSE + 58 + - + 14 END * + + 89 + + CASE 37 WHEN 42 * 39 THEN NULL ELSE - ( 77 ) + - 14 END + + 29 DIV ( 42 * 42 )
----
3825

skipif mysql # not compatible
query I rowsort label-3198
SELECT + CASE COALESCE ( + 80, - - 44 - - 13, + COUNT ( * ) ) WHEN + 19 / - - COUNT ( * ) - - 94 THEN NULL WHEN 8 + + 79 THEN - 73 ELSE + 58 + - + 14 END * + + 89 + + CASE 37 WHEN 42 * 39 THEN NULL ELSE - ( 77 ) + - 14 END + + 29 / ( 42 * 42 )
----
3825

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

skipif mysql # not compatible
query II rowsort label-3199
SELECT - 40, COUNT ( * ) AS col2
----
-40
1

query II rowsort
SELECT 80, - 87 col0
----
80
-87

query II rowsort
SELECT DISTINCT + 45 AS col1, + 51 col2
----
45
51

query I rowsort
SELECT ALL + 43 * + - 43 AS col1
----
-1849

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3203
SELECT + CAST( - 14 AS SIGNED ) * + CAST( + 62 AS SIGNED ), + 46 AS col1
----
-868
46

skipif mysql # not compatible
query II rowsort label-3203
SELECT + CAST ( - 14 AS INTEGER ) * + CAST ( + 62 AS INTEGER ), + 46 AS col1
----
-868
46

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3205
SELECT ALL + 53 DIV 97 + 98 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-3205
SELECT ALL + 53 / 97 + 98 AS col2
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-3206
SELECT ALL - 70 DIV + 25 + 69
----
67

skipif mysql # not compatible
query I rowsort label-3206
SELECT ALL - 70 / + 25 + 69
----
67

onlyif mysql # DIV for integer division: 
query II rowsort label-3207
SELECT ALL 21 * + 85 AS col2, 85 DIV - 11 + - - 37 col0
----
1785
30

skipif mysql # not compatible
query II rowsort label-3207
SELECT ALL 21 * + 85 AS col2, 85 / - 11 + - - 37 col0
----
1785
30

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

query I rowsort
SELECT + ( - COALESCE ( - COALESCE ( - 94, + 4 ), + 25 ) ) AS col1
----
-94

onlyif mysql # aggregate syntax: 
query III rowsort label-3210
SELECT + 18, 3 AS col2, + ( + CASE + 1 WHEN + COUNT( * ) THEN - 34 * + COUNT( * ) ELSE NULL END ) AS col1
----
18
3
-34

skipif mysql # not compatible
query III rowsort label-3210
SELECT + 18, 3 AS col2, + ( + CASE + 1 WHEN + COUNT ( * ) THEN - 34 * + COUNT ( * ) ELSE NULL END ) AS col1
----
18
3
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT + MAX( DISTINCT 81 ) col0
----
81

skipif mysql # not compatible
query I rowsort label-3211
SELECT + MAX ( DISTINCT 81 ) col0
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-3212
SELECT DISTINCT + 87 * - + 53 + - + MIN( + - 12 ), 90 AS col0
----
-4599
90

skipif mysql # not compatible
query II rowsort label-3212
SELECT DISTINCT + 87 * - + 53 + - + MIN ( + - 12 ), 90 AS col0
----
-4599
90

onlyif mysql # DIV for integer division: 
query I rowsort label-3213
SELECT ALL - 55 DIV - 73
----
0

skipif mysql # not compatible
query I rowsort label-3213
SELECT ALL - 55 / - 73
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT ALL + - MAX( DISTINCT - 81 ) * + COUNT( * ) * - SUM( ALL - ( + 68 ) ) + 0
----
5508

skipif mysql # not compatible
query I rowsort label-3214
SELECT ALL + - MAX ( DISTINCT - 81 ) * + COUNT ( * ) * - SUM ( ALL - ( + 68 ) ) + 0
----
5508

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT DISTINCT - + NULLIF ( + - CASE 96 WHEN + 20 THEN - 5 - + 74 + + 94 END, + 50 ) * - + 67 + - + 38 + - MIN( ALL + + 86 ) * - 98 + + COUNT( * ) + + - CASE + - 6 WHEN 31 THEN COUNT( * ) * - 66 ELSE 94 END * - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-3216
SELECT DISTINCT - + NULLIF ( + - CASE 96 WHEN + 20 THEN - 5 - + 74 + + 94 END, + 50 ) * - + 67 + - + 38 + - MIN ( ALL + + 86 ) * - 98 + + COUNT ( * ) + + - CASE + - 6 WHEN 31 THEN COUNT ( * ) * - 66 ELSE 94 END * - 38
----
NULL

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

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

query I rowsort
SELECT DISTINCT + + 8 col0
----
8

query I rowsort
SELECT ALL + 3 * 20 AS col0
----
60

query II rowsort
SELECT - + 31 AS col0, 63 * - 68 AS col1
----
-31
-4284

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT - - CASE + 69 WHEN + + 66 * - 49 + 58 + - + NULLIF ( 81, CASE + - 82 WHEN + 75 THEN + ( + SUM( DISTINCT - 1 ) ) + + 47 * - 21 WHEN - - ( 26 ) THEN + COALESCE ( 0, - 6 ) - ( 36 + - 44 ) END ) THEN + COALESCE ( 27, AVG ( 35 ) + + COUNT( * ), NULLIF ( 21, COUNT( * ) + - 76 * 89 ) ) + + 24 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3221
SELECT - - CASE + 69 WHEN + + 66 * - 49 + 58 + - + NULLIF ( 81, CASE + - 82 WHEN + 75 THEN + ( + SUM ( DISTINCT - 1 ) ) + + 47 * - 21 WHEN - - ( 26 ) THEN + COALESCE ( 0, - 6 ) - ( 36 + - 44 ) END ) THEN + COALESCE ( 27, AVG ( 35 ) + + COUNT ( * ), NULLIF ( 21, COUNT ( * ) + - 76 * 89 ) ) + + 24 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3222
SELECT ALL 10 * - 16 + CAST( NULL AS SIGNED ) + + - 35 * - 46 * - NULLIF ( + - 8, - MIN( + - 5 ) * - 25 * 8 + ( + 85 ) * - 6 * - 25 ) - + 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3222
SELECT ALL 10 * - 16 + CAST ( NULL AS INTEGER ) + + - 35 * - 46 * - NULLIF ( + - 8, - MIN ( + - 5 ) * - 25 * 8 + ( + 85 ) * - 6 * - 25 ) - + 63 AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3224
SELECT ALL NULLIF ( - - CAST( NULL AS SIGNED ), + - MIN( - - 26 ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3224
SELECT ALL NULLIF ( - - CAST ( NULL AS INTEGER ), + - MIN ( - - 26 ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT DISTINCT - - CASE - + COUNT( * ) WHEN + - SUM( ALL + 79 ) THEN ( + 98 ) WHEN - 12 + + 0 THEN NULL END * 75 - - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-3225
SELECT DISTINCT - - CASE - + COUNT ( * ) WHEN + - SUM ( ALL + 79 ) THEN ( + 98 ) WHEN - 12 + + 0 THEN NULL END * 75 - - 5
----
NULL

query I rowsort
SELECT - - 98 * + NULLIF ( + 83, - 12 )
----
8134

query I rowsort
SELECT + 59 - - 70
----
129

query I rowsort
SELECT 88 * + - 39 * 20
----
-68640

onlyif mysql # DIV for integer division: 
query I rowsort label-3229
SELECT ALL 87 DIV 72 * ( - - 26 ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-3229
SELECT ALL 87 / 72 * ( - - 26 ) AS col0
----
26

query I rowsort
SELECT 58 + - + 40 AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT SUM( - 97 ) + + 63 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-3231
SELECT SUM ( - 97 ) + + 63 AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT 78 + + COUNT( * ) * - COALESCE ( + 28, ( - - COUNT( DISTINCT 72 ) ) + + 96, + 15 ) - + 43 + - - ( - + 99 ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-3232
SELECT 78 + + COUNT ( * ) * - COALESCE ( + 28, ( - - COUNT ( DISTINCT 72 ) ) + + 96, + 15 ) - + 43 + - - ( - + 99 ) AS col2
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-3233
SELECT COUNT( * ) - - + 45 AS col0, 81
----
46
81

skipif mysql # not compatible
query II rowsort label-3233
SELECT COUNT ( * ) - - + 45 AS col0, 81
----
46
81

query I rowsort
SELECT ALL 57 * - 21
----
-1197

query I rowsort
SELECT DISTINCT - 30 * + 83
----
-2490

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT COUNT( * ) + + ( 31 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-3237
SELECT COUNT ( * ) + + ( 31 ) AS col0
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-3238
SELECT 12 + + 24 DIV + + 78
----
12

skipif mysql # not compatible
query I rowsort label-3238
SELECT 12 + + 24 / + + 78
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT ALL 15 + - 87 * - 69 * + + COUNT( * )
----
6018

skipif mysql # not compatible
query I rowsort label-3239
SELECT ALL 15 + - 87 * - 69 * + + COUNT ( * )
----
6018

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

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

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

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

query I rowsort
SELECT DISTINCT - 76 * - 26 * + 86
----
169936

query I rowsort
SELECT DISTINCT 78 * - 41 AS col2
----
-3198

query I rowsort
SELECT 92 * + 71 AS col1
----
6532

query I rowsort
SELECT + CASE - 45 WHEN + 13 THEN + - 3 ELSE NULL END * + - 27 * ( + ( - 43 ) ) AS col1
----
NULL

query I rowsort
SELECT + - NULLIF ( - - 4, 64 * + + 46 - 44 )
----
-4

query I rowsort
SELECT 10 + - + 52 + + + 57
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT - MIN( ALL + + ( - + 14 ) ) + - 73 + + + 39 + - 22 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-3248
SELECT - MIN ( ALL + + ( - + 14 ) ) + - 73 + + + 39 + - 22 AS col2
----
-42

query I rowsort
SELECT + 54 * - 98 AS col0
----
-5292

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3250
SELECT ALL - + COALESCE ( 33, + 9 ) AS col2, 0 * 63 * 75 * - - CASE + MIN( ALL - 18 ) WHEN 12 THEN 7 ELSE + - 93 END * - 4 DIV MIN( ALL + 69 ) * + + 84 AS col1
----
-33
0

skipif mysql # not compatible
query II rowsort label-3250
SELECT ALL - + COALESCE ( 33, + 9 ) AS col2, 0 * 63 * 75 * - - CASE + MIN ( ALL - 18 ) WHEN 12 THEN 7 ELSE + - 93 END * - 4 / MIN ( ALL + 69 ) * + + 84 AS col1
----
-33
0

query I rowsort
SELECT 77 * - 41 + 70 col2
----
-3087

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3252
SELECT - 63 - - + 17 * - CAST( NULL AS DECIMAL ) + + + 43 * + SUM( ALL 77 ) * 1 + - - MIN( DISTINCT + - 72 ) * - 64 - + 51 * 7 * + 50 + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-3252
SELECT - 63 - - + 17 * - CAST ( NULL AS REAL ) + + + 43 * + SUM ( ALL 77 ) * 1 + - - MIN ( DISTINCT + - 72 ) * - 64 - + 51 * 7 * + 50 + 29
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3253
SELECT DISTINCT + - 45 DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-3253
SELECT DISTINCT + - 45 / 86
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3254
SELECT + 74 * - 38 * - - 64 + CAST( + NULLIF ( COUNT( * ), - COUNT( ALL CAST( NULL AS SIGNED ) ) ) AS SIGNED ) - + + 92
----
-180059

skipif mysql # not compatible
query I rowsort label-3254
SELECT + 74 * - 38 * - - 64 + CAST ( + NULLIF ( COUNT ( * ), - COUNT ( ALL CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) - + + 92
----
-180059

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT ALL + COALESCE ( - MAX( + 2 ), COUNT( + - 58 ), + - 45 ) * COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3255
SELECT ALL + COALESCE ( - MAX ( + 2 ), COUNT ( + - 58 ), + - 45 ) * COUNT ( * ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT DISTINCT + - 70 * + CASE 31 WHEN COUNT( * ) THEN - - 73 WHEN COUNT( * ) * - + 82 THEN + 42 * + + 45 + - 44 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3256
SELECT DISTINCT + - 70 * + CASE 31 WHEN COUNT ( * ) THEN - - 73 WHEN COUNT ( * ) * - + 82 THEN + 42 * + + 45 + - 44 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3257
SELECT DISTINCT + + 53 DIV 63 - + 86 * + + 6 AS col2
----
-516

skipif mysql # not compatible
query I rowsort label-3257
SELECT DISTINCT + + 53 / 63 - + 86 * + + 6 AS col2
----
-516

onlyif mysql # DIV for integer division: 
query I rowsort label-3258
SELECT + 87 DIV - 3 + ( 22 ) DIV + 16
----
-28

skipif mysql # not compatible
query I rowsort label-3258
SELECT + 87 / - 3 + ( 22 ) / + 16
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT + COUNT( * ) * 50 + + 52 * - 30 AS col2
----
-1510

skipif mysql # not compatible
query I rowsort label-3259
SELECT + COUNT ( * ) * 50 + + 52 * - 30 AS col2
----
-1510

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3260
SELECT + CAST( + 62 AS SIGNED ), + ( - ( + CAST( - 75 AS SIGNED ) ) ) AS col2
----
62
75

skipif mysql # not compatible
query II rowsort label-3260
SELECT + CAST ( + 62 AS INTEGER ), + ( - ( + CAST ( - 75 AS INTEGER ) ) ) AS col2
----
62
75

query II rowsort
SELECT 13, 61 AS col1
----
13
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT 3 + + + COUNT( * ) - + 18 * - - COUNT( * ) * MAX( ALL + 24 )
----
-428

skipif mysql # not compatible
query I rowsort label-3262
SELECT 3 + + + COUNT ( * ) - + 18 * - - COUNT ( * ) * MAX ( ALL + 24 )
----
-428

onlyif mysql # aggregate syntax: 
query II rowsort label-3263
SELECT ALL + 88 + 70 * - COUNT( * ) AS col0, - COUNT( * ) * + 34 AS col2
----
18
-34

skipif mysql # not compatible
query II rowsort label-3263
SELECT ALL + 88 + 70 * - COUNT ( * ) AS col0, - COUNT ( * ) * + 34 AS col2
----
18
-34

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

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

query I rowsort
SELECT ALL - 16 + - 78
----
-94

query I rowsort
SELECT ALL - 43 * + + 2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT ALL ( - + COUNT( * ) ) + + + 15 * NULLIF ( 59, 98 ) * + 15 - - + 66
----
13340

skipif mysql # not compatible
query I rowsort label-3267
SELECT ALL ( - + COUNT ( * ) ) + + + 15 * NULLIF ( 59, 98 ) * + 15 - - + 66
----
13340

query II rowsort
SELECT 42 AS col0, - 88
----
42
-88

query I rowsort
SELECT DISTINCT + 71 + - 57 AS col2
----
14

query II rowsort
SELECT - 50 AS col2, - 59 col2
----
-50
-59

query II rowsort
SELECT 56 AS col1, + 21 col1
----
56
21

onlyif mysql # aggregate syntax: 
query II rowsort label-3272
SELECT - 2, + COUNT( * ) * - 88 * + + 27 col2
----
-2
-2376

skipif mysql # not compatible
query II rowsort label-3272
SELECT - 2, + COUNT ( * ) * - 88 * + + 27 col2
----
-2
-2376

query I rowsort
SELECT 2 - + + 13 AS col0
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-3274
SELECT + 88 - - - MIN( - 66 ) col2, 95 * + - 95 * + 32 - - 64 AS col2
----
154
-288736

skipif mysql # not compatible
query II rowsort label-3274
SELECT + 88 - - - MIN ( - 66 ) col2, 95 * + - 95 * + 32 - - 64 AS col2
----
154
-288736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3275
SELECT 47 * COALESCE ( 77, CASE COUNT( * ) WHEN 22 THEN - + 32 * - 7 * - 89 * + COALESCE ( + + 74, + + 81 * - 97, + CAST( - - 21 AS SIGNED ) ) WHEN - 83 * - 81 - - - 54 + - 36 THEN NULL END ) + - 21 * - 94
----
5593

skipif mysql # not compatible
query I rowsort label-3275
SELECT 47 * COALESCE ( 77, CASE COUNT ( * ) WHEN 22 THEN - + 32 * - 7 * - 89 * + COALESCE ( + + 74, + + 81 * - 97, + CAST ( - - 21 AS INTEGER ) ) WHEN - 83 * - 81 - - - 54 + - 36 THEN NULL END ) + - 21 * - 94
----
5593

query II rowsort
SELECT + 57 AS col0, + ( - + 5 ) AS col0
----
57
-5

query I rowsort
SELECT + ( - - 22 ) * 3
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3278
SELECT + - 37, + COUNT( * ) DIV 41 * - 80 * + 88 col2
----
-37
0

skipif mysql # not compatible
query II rowsort label-3278
SELECT + - 37, + COUNT ( * ) / 41 * - 80 * + 88 col2
----
-37
0

query II rowsort
SELECT + - 24 AS col2, + COALESCE ( - 4, + 97 ) * ( - 22 ) AS col0
----
-24
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT 76 * + 81 + + + SUM( - + 7 ) + - 0 * 63 AS col1
----
6149

skipif mysql # not compatible
query I rowsort label-3280
SELECT 76 * + 81 + + + SUM ( - + 7 ) + - 0 * 63 AS col1
----
6149

query I rowsort
SELECT 17 * - 92 * - 74 + + - ( + 37 ) + 15 * - - 29 * 36
----
131359

query I rowsort
SELECT ALL - 20 * + ( 13 ) AS col0
----
-260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3283
SELECT DISTINCT - + CASE ( - + 4 ) WHEN + - ( - 2 ) / + 23 * + + 10 - 41 THEN + CAST( NULL AS SIGNED ) - + + 62 * ( + - 12 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3283
SELECT DISTINCT - + CASE ( - + 4 ) WHEN + - ( - 2 ) / + 23 * + + 10 - 41 THEN + CAST ( NULL AS INTEGER ) - + + 62 * ( + - 12 ) ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT + NULLIF ( - + 52, - MIN( - 96 ) * 5 * 79 + COUNT( * ) * - + COALESCE ( 40, - 27 ) )
----
-52

skipif mysql # not compatible
query I rowsort label-3285
SELECT + NULLIF ( - + 52, - MIN ( - 96 ) * 5 * 79 + COUNT ( * ) * - + COALESCE ( 40, - 27 ) )
----
-52

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3287
SELECT + 92 AS col2, - CAST( ( 12 ) AS SIGNED ) + 76 * + 38 AS col2
----
92
2876

skipif mysql # not compatible
query II rowsort label-3287
SELECT + 92 AS col2, - CAST ( ( 12 ) AS INTEGER ) + 76 * + 38 AS col2
----
92
2876

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

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

query II rowsort
SELECT + 25, + 78 AS col0
----
25
78

onlyif mysql # DIV for integer division: 
query I rowsort label-3290
SELECT - 54 DIV 22 + 41 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-3290
SELECT - 54 / 22 + 41 AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT - - SUM( DISTINCT - 18 ) col0
----
-18

skipif mysql # not compatible
query I rowsort label-3291
SELECT - - SUM ( DISTINCT - 18 ) col0
----
-18

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3293
SELECT + ( 19 ) DIV ( + 3 )
----
6

skipif mysql # not compatible
query I rowsort label-3293
SELECT + ( 19 ) / ( + 3 )
----
6

query I rowsort
SELECT ALL + 84 + - 70 * - - 56 col2
----
-3836

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3296
SELECT - 16 - + COUNT( * ) + - 91 + - 39 DIV NULLIF ( - + COUNT( 53 ), 99 + - 29 ) DIV - ( - 91 ) + - 74
----
-182

skipif mysql # not compatible
query I rowsort label-3296
SELECT - 16 - + COUNT ( * ) + - 91 + - 39 / NULLIF ( - + COUNT ( 53 ), 99 + - 29 ) / - ( - 91 ) + - 74
----
-182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3297
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) + 91 + + - 33 + + + 37 + + - 26 * 57 * - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-3297
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) + 91 + + - 33 + + + 37 + + - 26 * 57 * - 26
----
NULL

query I rowsort
SELECT - 92 - - - 53 + - + 98 * + 13 * - 73 AS col0
----
92857

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT - COALESCE ( + COUNT( * ), + + 39 + + - 3, + - 87 * + + 5 + + 85 - 91 + 99 * ( 25 ) * - 7 + - + COUNT( + 76 ), + 24 )
----
-1

skipif mysql # not compatible
query I rowsort label-3300
SELECT - COALESCE ( + COUNT ( * ), + + 39 + + - 3, + - 87 * + + 5 + + 85 - 91 + 99 * ( 25 ) * - 7 + - + COUNT ( + 76 ), + 24 )
----
-1

query I rowsort
SELECT - 68 * + 61 AS col1
----
-4148

query I rowsort
SELECT ALL + ( + + 86 ) * - 63 * 81 col0
----
-438858

query I rowsort
SELECT - 56 + 29
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT ALL + 94 * MAX( - + 89 ) * + 38 AS col2
----
-317908

skipif mysql # not compatible
query I rowsort label-3304
SELECT ALL + 94 * MAX ( - + 89 ) * + 38 AS col2
----
-317908

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT ALL 38 - - + MIN( ALL + - 91 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-3305
SELECT ALL 38 - - + MIN ( ALL + - 91 ) AS col2
----
-53

query I rowsort
SELECT ALL - 22 - + 93
----
-115

query II rowsort
SELECT DISTINCT ( - 73 ) AS col0, 14 * 89 * + + 60
----
-73
74760

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

skipif mysql # not compatible
query I rowsort label-3308
SELECT - 2 + ( - 96 ) + SUM ( - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3309
SELECT DISTINCT + CASE + - 40 WHEN CASE 19 WHEN 14 THEN - + 16 WHEN - SUM( ALL - - 6 ) THEN NULL ELSE + COUNT( * ) * - - COUNT( * ) * - 85 END THEN 80 + - 29 + COUNT( * ) * + - 43 WHEN + CAST( - - 80 AS SIGNED ) + - CASE - 35 WHEN - ( + 77 ) * - 81 THEN 97 WHEN COUNT( * ) * + 85 THEN NULL ELSE 51 / 31 END + CAST( NULL AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3309
SELECT DISTINCT + CASE + - 40 WHEN CASE 19 WHEN 14 THEN - + 16 WHEN - SUM ( ALL - - 6 ) THEN NULL ELSE + COUNT ( * ) * - - COUNT ( * ) * - 85 END THEN 80 + - 29 + COUNT ( * ) * + - 43 WHEN + CAST ( - - 80 AS INTEGER ) + - CASE - 35 WHEN - ( + 77 ) * - 81 THEN 97 WHEN COUNT ( * ) * + 85 THEN NULL ELSE 51 / 31 END + CAST ( NULL AS INTEGER ) THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3310
SELECT ALL + 68 DIV + + 11 - + 0
----
6

skipif mysql # not compatible
query I rowsort label-3310
SELECT ALL + 68 / + + 11 - + 0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3311
SELECT ALL + - 3 DIV - + 70 * - MAX( - 45 ) + + - 37 col2
----
-37

skipif mysql # not compatible
query I rowsort label-3311
SELECT ALL + - 3 / - + 70 * - MAX ( - 45 ) + + - 37 col2
----
-37

query I rowsort
SELECT - - 17 * 92 + + + 73 + - - 15 + - 72 + + 9 AS col1
----
1589

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3313
SELECT 35 DIV 73 * 43 + - SUM( DISTINCT + 97 ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-3313
SELECT 35 / 73 * 43 + - SUM ( DISTINCT + 97 ) AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT + - 86 * NULLIF ( + 50, COUNT( * ) ) * - 12
----
51600

skipif mysql # not compatible
query I rowsort label-3314
SELECT + - 86 * NULLIF ( + 50, COUNT ( * ) ) * - 12
----
51600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3315
SELECT DISTINCT + ( + - 58 ) * - CASE - COUNT( * ) WHEN CAST( - 73 AS SIGNED ) + - + 20 THEN - 2 ELSE NULL END * + 36 / + 83 + - + COALESCE ( + - 59, - + 23 + - + 5, + COUNT( ALL - - 54 ) * 80 ) + + CAST( - CAST( 4 AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3315
SELECT DISTINCT + ( + - 58 ) * - CASE - COUNT ( * ) WHEN CAST ( - 73 AS INTEGER ) + - + 20 THEN - 2 ELSE NULL END * + 36 / + 83 + - + COALESCE ( + - 59, - + 23 + - + 5, + COUNT ( ALL - - 54 ) * 80 ) + + CAST ( - CAST ( 4 AS INTEGER ) AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + - NULLIF ( - + 23, 84 + + + 64 - + 39 * 35 * + 74 + - 68 ) col1
----
23

query II rowsort
SELECT DISTINCT + ( 98 ), 99 AS col1
----
98
99

query I rowsort
SELECT + - ( - 75 ) + - + 84 AS col2
----
-9

query II rowsort
SELECT + - 28 - + 94 AS col0, 74 + 12 + + 41
----
-122
127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3320
SELECT + COALESCE ( 1, 23 ) * - 77 + - COUNT( * ) + + - COUNT( * ) * ( - - 60 ) - COUNT( * ) + - - NULLIF ( COUNT( * ), COUNT( DISTINCT 86 ) - + - 53 DIV 82 ) * + 27 * - + CASE + COALESCE ( - - 96, + 41 ) WHEN 19 THEN NULL ELSE 47 * COALESCE ( 19 * COALESCE ( - 81, + 50 * 77, ( - 1 ) + - MAX( - 72 ), 26 + 31 ), 59 ) END * - COALESCE ( 66 - COALESCE ( COUNT( * ) + 64, 96 ), 83 * 38 - - 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3320
SELECT + COALESCE ( 1, 23 ) * - 77 + - COUNT ( * ) + + - COUNT ( * ) * ( - - 60 ) - COUNT ( * ) + - - NULLIF ( COUNT ( * ), COUNT ( DISTINCT 86 ) - + - 53 / 82 ) * + 27 * - + CASE + COALESCE ( - - 96, + 41 ) WHEN 19 THEN NULL ELSE 47 * COALESCE ( 19 * COALESCE ( - 81, + 50 * 77, ( - 1 ) + - MAX ( - 72 ), 26 + 31 ), 59 ) END * - COALESCE ( 66 - COALESCE ( COUNT ( * ) + 64, 96 ), 83 * 38 - - 93 )
----
NULL

query I rowsort
SELECT + 40 + - 8 AS col0
----
32

query I rowsort
SELECT ALL COALESCE ( - - 66, 96 )
----
66

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

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

query I rowsort
SELECT - 86 * 65 * + 16
----
-89440

query I rowsort
SELECT ALL ( ( - + 42 ) ) * + + 61 AS col2
----
-2562

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT ALL COALESCE ( + + COUNT( * ), 27 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3326
SELECT ALL COALESCE ( + + COUNT ( * ), 27 ) AS col1
----
1

query I rowsort
SELECT + 50 * - ( + 18 )
----
-900

query II rowsort
SELECT 92 AS col1, + 51 col2
----
92
51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT DISTINCT SUM( - 79 ) col1
----
-79

skipif mysql # not compatible
query I rowsort label-3330
SELECT DISTINCT SUM ( - 79 ) col1
----
-79

query I rowsort
SELECT ALL - 18 * - 26 AS col0
----
468

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT - 20 + - + 90 + - 21 * + SUM( ALL 55 ) - 2 + - - 75 * + 56 col2
----
2933

skipif mysql # not compatible
query I rowsort label-3332
SELECT - 20 + - + 90 + - 21 * + SUM ( ALL 55 ) - 2 + - - 75 * + 56 col2
----
2933

query I rowsort
SELECT + 90 * - - 11
----
990

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT - 55 * - + COUNT( * ) * - 79
----
-4345

skipif mysql # not compatible
query I rowsort label-3334
SELECT - 55 * - + COUNT ( * ) * - 79
----
-4345

onlyif mysql # DIV for integer division: 
query I rowsort label-3335
SELECT - + ( + 86 ) DIV + 10 + 47
----
39

skipif mysql # not compatible
query I rowsort label-3335
SELECT - + ( + 86 ) / + 10 + 47
----
39

query I rowsort
SELECT ALL - 45 * - 91 * 71 * - 11
----
-3198195

query I rowsort
SELECT ALL + 87 * + ( - 53 ) + 32
----
-4579

query I rowsort
SELECT - ( + NULLIF ( - 86, + + ( - + 36 ) + + - 32 * + - 12 ) ) col0
----
86

query I rowsort
SELECT - + 65 * + 15
----
-975

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT DISTINCT 25 * - NULLIF ( + + 10, - - 85 + 30 * - 23 + 76 * + - COUNT( * ) ) AS col2
----
-250

skipif mysql # not compatible
query I rowsort label-3340
SELECT DISTINCT 25 * - NULLIF ( + + 10, - - 85 + 30 * - 23 + 76 * + - COUNT ( * ) ) AS col2
----
-250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3341
SELECT DISTINCT + + COALESCE ( - 18, - + CAST( NULL AS SIGNED ) )
----
-18

skipif mysql # not compatible
query I rowsort label-3341
SELECT DISTINCT + + COALESCE ( - 18, - + CAST ( NULL AS INTEGER ) )
----
-18

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3342
SELECT + - 26 * 38 - + CAST( - NULLIF ( + + 47, - 86 ) AS SIGNED ) * + 25 + - 8 + + + 58 * 97 + CAST( COALESCE ( + CAST( NULL AS SIGNED ), + 16 * + CAST( + 21 AS DECIMAL ) ) AS SIGNED ) AS col0
----
6141

skipif mysql # not compatible
query I rowsort label-3342
SELECT + - 26 * 38 - + CAST ( - NULLIF ( + + 47, - 86 ) AS INTEGER ) * + 25 + - 8 + + + 58 * 97 + CAST ( COALESCE ( + CAST ( NULL AS INTEGER ), + 16 * + CAST ( + 21 AS REAL ) ) AS INTEGER ) AS col0
----
6141

query I rowsort
SELECT + 9 * 24 + + 5 * 52 - - 47
----
523

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3344
SELECT + 48 * 82 / + + 49 * - CASE - 93 WHEN - 31 THEN 40 + - - 7 - 81 WHEN 62 - + ( + CAST( - + 1 AS SIGNED ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3344
SELECT + 48 * 82 / + + 49 * - CASE - 93 WHEN - 31 THEN 40 + - - 7 - 81 WHEN 62 - + ( + CAST ( - + 1 AS INTEGER ) ) THEN NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3346
SELECT ALL + - ( - 32 ) + - - CAST( - 50 AS SIGNED ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-3346
SELECT ALL + - ( - 32 ) + - - CAST ( - 50 AS INTEGER ) AS col1
----
-18

query I rowsort
SELECT DISTINCT - - 34 + 49
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-3348
SELECT + 76 DIV - + 43
----
-1

skipif mysql # not compatible
query I rowsort label-3348
SELECT + 76 / - + 43
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3349
SELECT ALL - 77 + - + COALESCE ( - + SUM( 80 ), + MAX( ALL - + 74 ) + + 37 ) + 75 / + CAST( NULL AS SIGNED ) * - MAX( + - 43 ) / + 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3349
SELECT ALL - 77 + - + COALESCE ( - + SUM ( 80 ), + MAX ( ALL - + 74 ) + + 37 ) + 75 / + CAST ( NULL AS INTEGER ) * - MAX ( + - 43 ) / + 66 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT ALL - NULLIF ( - 46, + COUNT( * ) / COUNT( * ) )
----
46

skipif mysql # not compatible
query I rowsort label-3350
SELECT ALL - NULLIF ( - 46, + COUNT ( * ) / COUNT ( * ) )
----
46

query II rowsort
SELECT DISTINCT - 66, + 69 AS col2
----
-66
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT ALL COUNT( * ) + + 64
----
65

skipif mysql # not compatible
query I rowsort label-3352
SELECT ALL COUNT ( * ) + + 64
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-3353
SELECT 3 DIV 39 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3353
SELECT 3 / 39 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT ALL - 84 + + 34 - + + 73 * - COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-3354
SELECT ALL - 84 + + 34 - + + 73 * - COUNT ( * )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT DISTINCT - MIN( ALL 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-3355
SELECT DISTINCT - MIN ( ALL 94 )
----
-94

query I rowsort
SELECT 87 * - + 67 * + 62 AS col2
----
-361398

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3357
SELECT CAST( NULL AS DECIMAL ) * 69 - + 63 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3357
SELECT CAST ( NULL AS REAL ) * 69 - + 63 col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT COUNT( * ) + - - 89 + + 59 AS col1
----
149

skipif mysql # not compatible
query I rowsort label-3359
SELECT COUNT ( * ) + - - 89 + + 59 AS col1
----
149

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

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

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

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

query II rowsort
SELECT ALL 99 AS col0, 34
----
99
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT COUNT( * ) - 70 AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-3363
SELECT COUNT ( * ) - 70 AS col1
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3364
SELECT 47 + + - 2 DIV - SUM( + 43 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-3364
SELECT 47 + + - 2 / - SUM ( + 43 ) AS col1
----
47

query I rowsort
SELECT 18 * - + 34 * + 9 AS col1
----
-5508

query I rowsort
SELECT 53 * + ( - + 39 ) * + 68 AS col2
----
-140556

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT DISTINCT 2 * + COALESCE ( - COUNT( * ), - + 44 ) col1
----
-2

skipif mysql # not compatible
query I rowsort label-3367
SELECT DISTINCT 2 * + COALESCE ( - COUNT ( * ), - + 44 ) col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3368
SELECT 96 AS col0, - CAST( NULL AS SIGNED ) AS col0
----
96
NULL

skipif mysql # not compatible
query II rowsort label-3368
SELECT 96 AS col0, - CAST ( NULL AS INTEGER ) AS col0
----
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT 37 + - COUNT( * ) * - - 74
----
-37

skipif mysql # not compatible
query I rowsort label-3369
SELECT 37 + - COUNT ( * ) * - - 74
----
-37

query I rowsort
SELECT 72 - - - 95 - + 69 AS col1
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-3371
SELECT MAX( + NULLIF ( - 47, ( + 12 ) ) ) + + 2 col0, 89 * - 86
----
-45
-7654

skipif mysql # not compatible
query II rowsort label-3371
SELECT MAX ( + NULLIF ( - 47, ( + 12 ) ) ) + + 2 col0, 89 * - 86
----
-45
-7654

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3372
SELECT ALL 64 AS col1, 29 - - CAST( NULL AS SIGNED )
----
64
NULL

skipif mysql # not compatible
query II rowsort label-3372
SELECT ALL 64 AS col1, 29 - - CAST ( NULL AS INTEGER )
----
64
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT DISTINCT - ( - SUM( - + 96 ) ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-3373
SELECT DISTINCT - ( - SUM ( - + 96 ) ) AS col0
----
-96

query II rowsort
SELECT - 25 AS col1, - 97 AS col1
----
-25
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT ALL + + 73 + + + MAX( - 24 ) + 33 + + 37 * + COUNT( * ) AS col2
----
119

skipif mysql # not compatible
query I rowsort label-3375
SELECT ALL + + 73 + + + MAX ( - 24 ) + 33 + + 37 * + COUNT ( * ) AS col2
----
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3376
SELECT - 71 + COALESCE ( + SUM( 61 ), + - CASE 6 WHEN 50 THEN + 8 WHEN + CAST( - 44 AS SIGNED ) THEN NULL END * - - 93 ) * + 14 AS col1
----
783

skipif mysql # not compatible
query I rowsort label-3376
SELECT - 71 + COALESCE ( + SUM ( 61 ), + - CASE 6 WHEN 50 THEN + 8 WHEN + CAST ( - 44 AS INTEGER ) THEN NULL END * - - 93 ) * + 14 AS col1
----
783

onlyif mysql # DIV for integer division: 
query I rowsort label-3377
SELECT 61 + - - 79 DIV 37
----
63

skipif mysql # not compatible
query I rowsort label-3377
SELECT 61 + - - 79 / 37
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3378
SELECT + + CAST( - - COUNT( DISTINCT + + 5 ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3378
SELECT + + CAST ( - - COUNT ( DISTINCT + + 5 ) AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT + NULLIF ( 91, - SUM( + 0 ) * 59 + - 82 )
----
91

skipif mysql # not compatible
query I rowsort label-3379
SELECT + NULLIF ( 91, - SUM ( + 0 ) * 59 + - 82 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT - COUNT( * ) * - 80 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-3380
SELECT - COUNT ( * ) * - 80 AS col0
----
80

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3382
SELECT + + 71 DIV 64 + 54 - COUNT( * ) + + - 84
----
-30

skipif mysql # not compatible
query I rowsort label-3382
SELECT + + 71 / 64 + 54 - COUNT ( * ) + + - 84
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT ALL 30 + + COUNT( * ) + - + 71
----
-40

skipif mysql # not compatible
query I rowsort label-3383
SELECT ALL 30 + + COUNT ( * ) + - + 71
----
-40

query I rowsort
SELECT ALL 43 * - 31 * + 31
----
-41323

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3386
SELECT - 73 * + ( - + 29 ) * + 54 * + + 49 + - 94 + + + 39 + + 0 + + 49 DIV + 76
----
5601527

skipif mysql # not compatible
query I rowsort label-3386
SELECT - 73 * + ( - + 29 ) * + 54 * + + 49 + - 94 + + + 39 + + 0 + + 49 / + 76
----
5601527

onlyif mysql # DIV for integer division: 
query I rowsort label-3387
SELECT 53 DIV + 65 * + 97 + + - 7
----
-7

skipif mysql # not compatible
query I rowsort label-3387
SELECT 53 / + 65 * + 97 + + - 7
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-3388
SELECT 22 + - + 38 * 66 AS col0, + CASE + 50 WHEN 20 THEN + COUNT( * ) * 46 ELSE NULL END
----
-2486
NULL

skipif mysql # not compatible
query II rowsort label-3388
SELECT 22 + - + 38 * 66 AS col0, + CASE + 50 WHEN 20 THEN + COUNT ( * ) * 46 ELSE NULL END
----
-2486
NULL

query II rowsort
SELECT 32 * 63 AS col0, 7
----
2016
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT 26 * - 1 + COUNT( * ) + + 10 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-3390
SELECT 26 * - 1 + COUNT ( * ) + + 10 AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT ALL - NULLIF ( COUNT( * ), - 89 + - 77 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3391
SELECT ALL - NULLIF ( COUNT ( * ), - 89 + - 77 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT ALL - 35 * ( - MIN( DISTINCT - + 62 ) )
----
-2170

skipif mysql # not compatible
query I rowsort label-3392
SELECT ALL - 35 * ( - MIN ( DISTINCT - + 62 ) )
----
-2170

query II rowsort
SELECT 22 * 34 AS col0, 14
----
748
14

onlyif mysql # DIV for integer division: 
query I rowsort label-3394
SELECT ALL - 63 DIV 30 * 28 * - - 3 * + COALESCE ( + 40, + + 25 ) AS col1
----
-6720

skipif mysql # not compatible
query I rowsort label-3394
SELECT ALL - 63 / 30 * 28 * - - 3 * + COALESCE ( + 40, + + 25 ) AS col1
----
-6720

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3395
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) AS col0, - ( - 27 ) AS col2
----
NULL
27

skipif mysql # not compatible
query II rowsort label-3395
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) AS col0, - ( - 27 ) AS col2
----
NULL
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT NULLIF ( + - 11, - 85 ) + - CASE + 29 WHEN - 15 THEN + COUNT( * ) WHEN COUNT( * ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3396
SELECT NULLIF ( + - 11, - 85 ) + - CASE + 29 WHEN - 15 THEN + COUNT ( * ) WHEN COUNT ( * ) THEN NULL END AS col2
----
NULL

query II rowsort
SELECT 47 + 36 * + 33, - 85 AS col1
----
1235
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT DISTINCT + COALESCE ( + 63, 39 - - 47 ) + - MAX( 40 )
----
23

skipif mysql # not compatible
query I rowsort label-3398
SELECT DISTINCT + COALESCE ( + 63, 39 - - 47 ) + - MAX ( 40 )
----
23

query I rowsort
SELECT ALL - 64 + + 34 + + 57
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT DISTINCT - + 67 + + + COUNT( * ) - - - 74 - + 53
----
-193

skipif mysql # not compatible
query I rowsort label-3400
SELECT DISTINCT - + 67 + + + COUNT ( * ) - - - 74 - + 53
----
-193

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3402
SELECT DISTINCT 90 + 3 AS col2, + COUNT( ALL - 28 ) + + COUNT( * ) * 97
----
93
98

skipif mysql # not compatible
query II rowsort label-3402
SELECT DISTINCT 90 + 3 AS col2, + COUNT ( ALL - 28 ) + + COUNT ( * ) * 97
----
93
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT - - COALESCE ( + 60, - COUNT( DISTINCT + 66 ) )
----
60

skipif mysql # not compatible
query I rowsort label-3403
SELECT - - COALESCE ( + 60, - COUNT ( DISTINCT + 66 ) )
----
60

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

skipif mysql # not compatible
query I rowsort label-3404
SELECT ALL 47 + - COUNT ( * ) AS col1
----
46

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

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

skipif mysql # not compatible
query I rowsort label-3406
SELECT + CAST ( NULL AS INTEGER ) / 45
----
NULL

query I rowsort
SELECT + 35 - + 44 col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT DISTINCT 62 * 29 - + 91 * COUNT( * ) col0
----
1707

skipif mysql # not compatible
query I rowsort label-3408
SELECT DISTINCT 62 * 29 - + 91 * COUNT ( * ) col0
----
1707

query I rowsort
SELECT + - 11 * 59
----
-649

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

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

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

query I rowsort
SELECT + COALESCE ( 3, + - 0 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3413
SELECT + CAST( NULL AS SIGNED ) / 94 * - 31 / + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-3413
SELECT + CAST ( NULL AS INTEGER ) / 94 * - 31 / + 8
----
NULL

query I rowsort
SELECT - 46 * - - 31
----
-1426

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT DISTINCT + COALESCE ( + - 77, + 55, - 35, SUM( 85 ) ) * - 40
----
3080

skipif mysql # not compatible
query I rowsort label-3415
SELECT DISTINCT + COALESCE ( + - 77, + 55, - 35, SUM ( 85 ) ) * - 40
----
3080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3416
SELECT ALL - 67 * - COALESCE ( - NULLIF ( - COUNT( * ), + + 35 + 70 ), + - 60, NULLIF ( - 68, - COALESCE ( + 69, + ( + 68 ), + 60 ) ) - - 9 DIV - 84 + - 22 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-3416
SELECT ALL - 67 * - COALESCE ( - NULLIF ( - COUNT ( * ), + + 35 + 70 ), + - 60, NULLIF ( - 68, - COALESCE ( + 69, + ( + 68 ), + 60 ) ) - - 9 / - 84 + - 22 ) AS col2
----
67

query II rowsort
SELECT ALL + 48, + 13 col0
----
48
13

query II rowsort
SELECT DISTINCT + 51 AS col0, 7 AS col1
----
51
7

query I rowsort
SELECT ALL + ( - - 73 ) col2
----
73

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3421
SELECT COUNT( * ) AS col0, 63 * - - 65 * - 59 * - + 75 * + 73 AS col0
----
1
1322787375

skipif mysql # not compatible
query II rowsort label-3421
SELECT COUNT ( * ) AS col0, 63 * - - 65 * - 59 * - + 75 * + 73 AS col0
----
1
1322787375

query I rowsort
SELECT + 50 * + 67 col1
----
3350

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT - SUM( + - 66 ) * - - 18
----
1188

skipif mysql # not compatible
query I rowsort label-3423
SELECT - SUM ( + - 66 ) * - - 18
----
1188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3424
SELECT - ( + - 75 ) * + COUNT( * ) * 97 + - 91 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3424
SELECT - ( + - 75 ) * + COUNT ( * ) * 97 + - 91 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 44 + + 86 - + + 66 + - 86 * 72 AS col1
----
-6216

query I rowsort
SELECT ALL NULLIF ( 51, + 52 ) col1
----
51

query II rowsort
SELECT ALL + 5 + - - 53 - - 66 AS col0, + 84 AS col2
----
124
84

query I rowsort
SELECT - 96 + - 50 AS col1
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT ALL - 32 + + COALESCE ( + 31, - + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3429
SELECT ALL - 32 + + COALESCE ( + 31, - + COUNT ( * ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3430
SELECT - 13 - - COUNT( DISTINCT 67 ) DIV - 78 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-3430
SELECT - 13 - - COUNT ( DISTINCT 67 ) / - 78 AS col2
----
-13

query I rowsort
SELECT DISTINCT - 64 * + 53 AS col0
----
-3392

query II rowsort
SELECT + 60 AS col2, - 63 * + 20 * - 34
----
60
42840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3433
SELECT + SUM( + 72 ) + - NULLIF ( - 54, + + 64 - 41 + - 79 + - - 99 * ( 60 ) * 63 ) + NULLIF ( - CAST( NULL AS SIGNED ), + - 0 * + + 35 ) - + 44 / + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-3433
SELECT + SUM ( + 72 ) + - NULLIF ( - 54, + + 64 - 41 + - 79 + - - 99 * ( 60 ) * 63 ) + NULLIF ( - CAST ( NULL AS INTEGER ), + - 0 * + + 35 ) - + 44 / + 31
----
NULL

query I rowsort
SELECT - 6 + - 36 * 89
----
-3210

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT + 75 * + ( + 62 ) + + - COUNT( * ) AS col0
----
4649

skipif mysql # not compatible
query I rowsort label-3435
SELECT + 75 * + ( + 62 ) + + - COUNT ( * ) AS col0
----
4649

onlyif mysql # DIV for integer division: 
query I rowsort label-3436
SELECT - COALESCE ( + 20, - 86, - + NULLIF ( + - 5, + 50 DIV - 99 + 53 + + 86 ) ) + + - 39 DIV - 9
----
-16

skipif mysql # not compatible
query I rowsort label-3436
SELECT - COALESCE ( + 20, - 86, - + NULLIF ( + - 5, + 50 / - 99 + 53 + + 86 ) ) + + - 39 / - 9
----
-16

query I rowsort
SELECT - 33 + - 62
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT ALL + 12 - - - COUNT( * ) col0
----
11

skipif mysql # not compatible
query I rowsort label-3438
SELECT ALL + 12 - - - COUNT ( * ) col0
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3439
SELECT + + CAST( + SUM( ALL CAST( 54 AS SIGNED ) ) AS SIGNED ) + COUNT( * ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-3439
SELECT + + CAST ( + SUM ( ALL CAST ( 54 AS INTEGER ) ) AS INTEGER ) + COUNT ( * ) AS col0
----
55

query I rowsort
SELECT - 22 * - + 97
----
2134

query I rowsort
SELECT DISTINCT + ( + - CASE + - COALESCE ( + 43, 1 ) WHEN - 87 + 13 THEN - 76 WHEN - 42 THEN - 47 ELSE + - 75 END ) * - 71 col0
----
-5325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3442
SELECT CAST( COUNT( - 62 ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3442
SELECT CAST ( COUNT ( - 62 ) AS INTEGER ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3443
SELECT + COUNT( * ) DIV - 61, - 17 - 87 AS col0
----
0
-104

skipif mysql # not compatible
query II rowsort label-3443
SELECT + COUNT ( * ) / - 61, - 17 - 87 AS col0
----
0
-104

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3445
SELECT + 27 + 73 + + CAST( - 72 AS SIGNED ) - - 56
----
84

skipif mysql # not compatible
query I rowsort label-3445
SELECT + 27 + 73 + + CAST ( - 72 AS INTEGER ) - - 56
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3446
SELECT + 86 DIV + 88 * - + ( - 55 ) AS col2, - MIN( ALL + + 34 ) AS col2
----
0
-34

skipif mysql # not compatible
query II rowsort label-3446
SELECT + 86 / + 88 * - + ( - 55 ) AS col2, - MIN ( ALL + + 34 ) AS col2
----
0
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT - 19 * - - 47 + + SUM( 4 )
----
-889

skipif mysql # not compatible
query I rowsort label-3447
SELECT - 19 * - - 47 + + SUM ( 4 )
----
-889

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3448
SELECT DISTINCT - 31 DIV COUNT( + - 25 ) + - 6 AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-3448
SELECT DISTINCT - 31 / COUNT ( + - 25 ) + - 6 AS col0
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-3449
SELECT ALL + 47 DIV + 83 + + 26
----
26

skipif mysql # not compatible
query I rowsort label-3449
SELECT ALL + 47 / + 83 + + 26
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3450
SELECT + CAST( + - COALESCE ( - 7, COUNT( * ) + + COUNT( * ) + + COALESCE ( COALESCE ( + 70, + 24 ), + - COUNT( * ), + 70 + + - NULLIF ( + - 19, 52 - + MAX( + 35 ) ), - - 26 ) + MIN( DISTINCT - 45 ) * - 56, + - 19 ) AS SIGNED ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-3450
SELECT + CAST ( + - COALESCE ( - 7, COUNT ( * ) + + COUNT ( * ) + + COALESCE ( COALESCE ( + 70, + 24 ), + - COUNT ( * ), + 70 + + - NULLIF ( + - 19, 52 - + MAX ( + 35 ) ), - - 26 ) + MIN ( DISTINCT - 45 ) * - 56, + - 19 ) AS INTEGER ) AS col1
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3451
SELECT - SUM( DISTINCT - 77 ) + - + 81 + + 77 + - 13 DIV + COUNT( * ) + - 71 * + - 58 AS col0
----
4178

skipif mysql # not compatible
query I rowsort label-3451
SELECT - SUM ( DISTINCT - 77 ) + - + 81 + + 77 + - 13 / + COUNT ( * ) + - 71 * + - 58 AS col0
----
4178

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3452
SELECT + 20 DIV COUNT( * ) DIV + 50 * + 26 col0, 84 * 73 AS col2
----
0
6132

skipif mysql # not compatible
query II rowsort label-3452
SELECT + 20 / COUNT ( * ) / + 50 * + 26 col0, 84 * 73 AS col2
----
0
6132

query I rowsort
SELECT DISTINCT + 37 * + 20 + + 40 AS col1
----
780

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT ( - - 37 ) + COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-3454
SELECT ( - - 37 ) + COUNT ( * )
----
38

query I rowsort
SELECT 72 + 66 AS col2
----
138

query I rowsort
SELECT 67 * + 17 * - - 50 + + NULLIF ( + + 3, 20 ) AS col0
----
56953

query I rowsort
SELECT - 77 * - + 60
----
4620

query I rowsort
SELECT DISTINCT + + 0 + - 56 + + 92
----
36

query I rowsort
SELECT ALL - ( - 51 ) AS col2
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-3460
SELECT 46 DIV 45
----
1

skipif mysql # not compatible
query I rowsort label-3460
SELECT 46 / 45
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3461
SELECT - SUM( + - 44 ) AS col2, + 43 col1
----
44
43

skipif mysql # not compatible
query II rowsort label-3461
SELECT - SUM ( + - 44 ) AS col2, + 43 col1
----
44
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3462
SELECT - CASE - + 62 WHEN - - 59 + - 28 + + MIN( + 77 ) + 20 + - - 96 THEN + 58 * + + NULLIF ( AVG ( 79 ), - 32 ) - + 32 WHEN 18 + + COALESCE ( + 51, + AVG ( DISTINCT 83 ) * - 41 + 65, + - MIN( DISTINCT 56 ) * - 32 * + NULLIF ( 90 * - 96, + 81 + ( - CASE 40 WHEN 44 THEN - 20 WHEN COALESCE ( + 26, 37 * - 31 ) THEN - 88 * + 9 + - 35 ELSE 68 END ) ) + - 99 ) * + CAST( CASE - 21 WHEN - 58 THEN 32 END * 22 + 87 AS SIGNED ) THEN 76 * 30 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3462
SELECT - CASE - + 62 WHEN - - 59 + - 28 + + MIN ( + 77 ) + 20 + - - 96 THEN + 58 * + + NULLIF ( AVG ( 79 ), - 32 ) - + 32 WHEN 18 + + COALESCE ( + 51, + AVG ( DISTINCT 83 ) * - 41 + 65, + - MIN ( DISTINCT 56 ) * - 32 * + NULLIF ( 90 * - 96, + 81 + ( - CASE 40 WHEN 44 THEN - 20 WHEN COALESCE ( + 26, 37 * - 31 ) THEN - 88 * + 9 + - 35 ELSE 68 END ) ) + - 99 ) * + CAST ( CASE - 21 WHEN - 58 THEN 32 END * 22 + 87 AS INTEGER ) THEN 76 * 30 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3463
SELECT ALL + COUNT( * ) - + - 44 AS col2, + 34
----
45
34

skipif mysql # not compatible
query II rowsort label-3463
SELECT ALL + COUNT ( * ) - + - 44 AS col2, + 34
----
45
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT ALL + 61 - COUNT( * ) * - 11 * + + 59
----
710

skipif mysql # not compatible
query I rowsort label-3464
SELECT ALL + 61 - COUNT ( * ) * - 11 * + + 59
----
710

query I rowsort
SELECT 69 * + 69 + 61
----
4822

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT ALL + - 58 * 84 + + 96 + + + COUNT( ALL - 60 ) AS col2
----
-4775

skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL + - 58 * 84 + + 96 + + + COUNT ( ALL - 60 ) AS col2
----
-4775

query I rowsort
SELECT 46 + - 5 * + 92 AS col2
----
-414

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3468
SELECT DISTINCT + MIN( ALL + - CAST( NULL AS SIGNED ) ) * + 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3468
SELECT DISTINCT + MIN ( ALL + - CAST ( NULL AS INTEGER ) ) * + 88 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3469
SELECT ALL - - 83 * + 82 * + 8 - - 12 + - 52 + + CASE + + ( - 19 ) WHEN + 34 THEN - 12 * - + NULLIF ( - 35, - 79 ) + 81 - + - NULLIF ( - 20, + - ( + ( + 60 ) ) - + 72 / + - CASE + - 16 WHEN CAST( ( - COUNT( * ) ) AS SIGNED ) THEN + 49 + 95 ELSE + 81 + 89 END ) + - 39 END / - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-3469
SELECT ALL - - 83 * + 82 * + 8 - - 12 + - 52 + + CASE + + ( - 19 ) WHEN + 34 THEN - 12 * - + NULLIF ( - 35, - 79 ) + 81 - + - NULLIF ( - 20, + - ( + ( + 60 ) ) - + 72 / + - CASE + - 16 WHEN CAST ( ( - COUNT ( * ) ) AS INTEGER ) THEN + 49 + 95 ELSE + 81 + 89 END ) + - 39 END / - 34
----
NULL

query II rowsort
SELECT 38 * - 71, 74 AS col0
----
-2698
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3471
SELECT + COUNT( * ) - + - 78 - + + MIN( - - 13 ) * COUNT( * ) + 20 - + CASE - 46 WHEN + COUNT( * ) THEN NULL WHEN - 12 THEN NULL WHEN + - 39 * - + CAST( - COUNT( * ) AS SIGNED ) * - 76 THEN COUNT( * ) END + - 62 * + + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-3471
SELECT + COUNT ( * ) - + - 78 - + + MIN ( - - 13 ) * COUNT ( * ) + 20 - + CASE - 46 WHEN + COUNT ( * ) THEN NULL WHEN - 12 THEN NULL WHEN + - 39 * - + CAST ( - COUNT ( * ) AS INTEGER ) * - 76 THEN COUNT ( * ) END + - 62 * + + 4
----
NULL

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

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

query I rowsort
SELECT 22 * + ( 4 )
----
88

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

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

query I rowsort
SELECT 12 * - + 21 AS col0
----
-252

query II rowsort
SELECT DISTINCT - 99 AS col2, 81 AS col1
----
-99
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3477
SELECT NULLIF ( COUNT( * ), - 4 ) * COUNT( * ) DIV + - MIN( ALL + 28 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3477
SELECT NULLIF ( COUNT ( * ), - 4 ) * COUNT ( * ) / + - MIN ( ALL + 28 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3478
SELECT CAST( + 26 AS SIGNED ) * CASE + 81 WHEN + MIN( ALL 32 ) THEN + + 8 WHEN + 80 THEN NULL ELSE 92 END
----
2392

skipif mysql # not compatible
query I rowsort label-3478
SELECT CAST ( + 26 AS INTEGER ) * CASE + 81 WHEN + MIN ( ALL 32 ) THEN + + 8 WHEN + 80 THEN NULL ELSE 92 END
----
2392

query I rowsort
SELECT DISTINCT 73 + + 29 + + - 79 * + 64 AS col0
----
-4954

query I rowsort
SELECT ALL 32 + + + 53
----
85

query I rowsort
SELECT ALL - 5 * - 66 * + 45 AS col0
----
14850

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3483
SELECT DISTINCT 26 DIV + + 54 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3483
SELECT DISTINCT 26 / + + 54 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3484
SELECT DISTINCT 37 + - 93 DIV - 85 + + 14 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-3484
SELECT DISTINCT 37 + - 93 / - 85 + + 14 AS col0
----
52

query I rowsort
SELECT ALL 96 + 10
----
106

query II rowsort
SELECT 84, 48 AS col0
----
84
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT ALL 72 - - + COUNT( * ) * - 33 * - 51
----
1755

skipif mysql # not compatible
query I rowsort label-3487
SELECT ALL 72 - - + COUNT ( * ) * - 33 * - 51
----
1755

query I rowsort
SELECT 53 + + 25 AS col1
----
78

query I rowsort
SELECT 88 * + + 50 AS col2
----
4400

query I rowsort
SELECT + 48 * - + 54 AS col2
----
-2592

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3491
SELECT ( - 78 ) + + - 21 * - + 73 * 64 - - COUNT( * ) DIV COUNT( * )
----
98035

skipif mysql # not compatible
query I rowsort label-3491
SELECT ( - 78 ) + + - 21 * - + 73 * 64 - - COUNT ( * ) / COUNT ( * )
----
98035

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT ALL CASE - + 88 WHEN - 79 THEN 42 WHEN 39 THEN NULL END - - - COALESCE ( 18, 75 / - - 31 ) * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL CASE - + 88 WHEN - 79 THEN 42 WHEN 39 THEN NULL END - - - COALESCE ( 18, 75 / - - 31 ) * + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT 61 + COUNT( - ( - + 8 ) ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-3493
SELECT 61 + COUNT ( - ( - + 8 ) ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT 92 * 50 * + CASE - 84 WHEN + 1 THEN NULL WHEN - COUNT( ALL ( 28 ) ) * + 22 * - - MAX( DISTINCT - + 53 ) THEN 32 + + ( - 22 ) WHEN - 28 THEN NULL ELSE - - 85 END AS col0
----
391000

skipif mysql # not compatible
query I rowsort label-3494
SELECT 92 * 50 * + CASE - 84 WHEN + 1 THEN NULL WHEN - COUNT ( ALL ( 28 ) ) * + 22 * - - MAX ( DISTINCT - + 53 ) THEN 32 + + ( - 22 ) WHEN - 28 THEN NULL ELSE - - 85 END AS col0
----
391000

onlyif mysql # aggregate syntax: 
query II rowsort label-3495
SELECT ALL CASE 95 WHEN - + COUNT( + 9 ) THEN 5 WHEN + 75 * + 63 * + MIN( - + 42 ) THEN + COUNT( * ) ELSE NULL END AS col2, 87 AS col2
----
NULL
87

skipif mysql # not compatible
query II rowsort label-3495
SELECT ALL CASE 95 WHEN - + COUNT ( + 9 ) THEN 5 WHEN + 75 * + 63 * + MIN ( - + 42 ) THEN + COUNT ( * ) ELSE NULL END AS col2, 87 AS col2
----
NULL
87

query I rowsort
SELECT ALL + 4 * - 25 - 98
----
-198

query I rowsort
SELECT + 47 * - 7 + + 53 * + - 72 AS col1
----
-4145

query I rowsort
SELECT 30 + - + 35 AS col1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3499
SELECT ( - CASE - CAST( NULL AS SIGNED ) WHEN - 4 - - 35 THEN 21 WHEN - 52 * + - ( - 3 ) / 89 - + MAX( 83 ) + - 67 / 88 THEN NULL END ) + - NULLIF ( - + 93, ( 20 ) * + MIN( DISTINCT 87 ) + 73 ) AS col2, 9 AS col0
----
NULL
9

skipif mysql # not compatible
query II rowsort label-3499
SELECT ( - CASE - CAST ( NULL AS INTEGER ) WHEN - 4 - - 35 THEN 21 WHEN - 52 * + - ( - 3 ) / 89 - + MAX ( 83 ) + - 67 / 88 THEN NULL END ) + - NULLIF ( - + 93, ( 20 ) * + MIN ( DISTINCT 87 ) + 73 ) AS col2, 9 AS col0
----
NULL
9

query I rowsort
SELECT + 74 * 29
----
2146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3501
SELECT - 13 * - CASE NULLIF ( - + NULLIF ( 99, - CAST( NULL AS SIGNED ) * - NULLIF ( - 89, + + 62 ) + - 61 + + CAST( NULL AS SIGNED ) ), - + ( NULLIF ( 43, + + 58 + - + 21 ) ) * + ( - 43 ) + 46 - - 45 * + + 33 ) WHEN - ( - 22 ) THEN + SUM( + 66 ) ELSE COUNT( * ) * 72 END
----
936

skipif mysql # not compatible
query I rowsort label-3501
SELECT - 13 * - CASE NULLIF ( - + NULLIF ( 99, - CAST ( NULL AS INTEGER ) * - NULLIF ( - 89, + + 62 ) + - 61 + + CAST ( NULL AS INTEGER ) ), - + ( NULLIF ( 43, + + 58 + - + 21 ) ) * + ( - 43 ) + 46 - - 45 * + + 33 ) WHEN - ( - 22 ) THEN + SUM ( + 66 ) ELSE COUNT ( * ) * 72 END
----
936

query I rowsort
SELECT 9 + + - 38 + + 76 AS col0
----
47

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3504
SELECT ALL 10 DIV - 54
----
0

skipif mysql # not compatible
query I rowsort label-3504
SELECT ALL 10 / - 54
----
0

query I rowsort
SELECT DISTINCT 14 + - 21 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT DISTINCT - COUNT( ALL + - ( - 26 ) ) * - 73
----
73

skipif mysql # not compatible
query I rowsort label-3506
SELECT DISTINCT - COUNT ( ALL + - ( - 26 ) ) * - 73
----
73

query I rowsort
SELECT ALL + 35 + - - 47 * + 93 col1
----
4406

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3508
SELECT DISTINCT + 63 + 96, 30 DIV - MAX( ALL 97 ) AS col1
----
159
0

skipif mysql # not compatible
query II rowsort label-3508
SELECT DISTINCT + 63 + 96, 30 / - MAX ( ALL 97 ) AS col1
----
159
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3509
SELECT 47 DIV - 21 AS col1, + 62 AS col0
----
-2
62

skipif mysql # not compatible
query II rowsort label-3509
SELECT 47 / - 21 AS col1, + 62 AS col0
----
-2
62

query I rowsort
SELECT ALL - 76 * + 2 + - 62
----
-214

query I rowsort
SELECT 31 * ( 38 ) AS col1
----
1178

onlyif mysql # DIV for integer division: 
query I rowsort label-3512
SELECT 36 DIV - 24 + + 19 + 6 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-3512
SELECT 36 / - 24 + + 19 + 6 AS col1
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3513
SELECT ALL 47 * 17 * + SUM( DISTINCT - 60 ) + - + 87 * + - 43 * - - COUNT( * ) AS col0, 93 + + COUNT( * ) DIV + 37 * + - 48
----
-44199
93

skipif mysql # not compatible
query II rowsort label-3513
SELECT ALL 47 * 17 * + SUM ( DISTINCT - 60 ) + - + 87 * + - 43 * - - COUNT ( * ) AS col0, 93 + + COUNT ( * ) / + 37 * + - 48
----
-44199
93

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

query I rowsort
SELECT DISTINCT + 99 * 10 + + 87 + - + 82
----
995

query II rowsort
SELECT DISTINCT + 34, 62 AS col2
----
34
62

query I rowsort
SELECT ALL 84 * - + 88 - + ( - COALESCE ( 82, - 13 * 17, + 43 + 40 * + 77 ) ) AS col0
----
-7310

query I rowsort
SELECT ALL + COALESCE ( + + 27, - + 23 )
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-3519
SELECT COUNT( * ) AS col0, - 56 + 83 col2
----
1
27

skipif mysql # not compatible
query II rowsort label-3519
SELECT COUNT ( * ) AS col0, - 56 + 83 col2
----
1
27

query II rowsort
SELECT + 60 + + 20 AS col1, - 51 AS col0
----
80
-51

query I rowsort
SELECT DISTINCT - - 16 * + + 5 AS col2
----
80

query I rowsort
SELECT + - ( - 55 ) * - - 28 AS col1
----
1540

query I rowsort
SELECT ALL - 83 * - + 7
----
581

onlyif mysql # DIV for integer division: 
query I rowsort label-3524
SELECT ALL - 44 DIV 27
----
-1

skipif mysql # not compatible
query I rowsort label-3524
SELECT ALL - 44 / 27
----
-1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3526
SELECT - - 28 DIV + MIN( + 80 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3526
SELECT - - 28 / + MIN ( + 80 ) AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT - - CASE + COUNT( * ) WHEN - - COUNT( * ) * + 71 + 28 * + + ( - 97 ) * + + 16 + COUNT( - 73 ) + - 68 THEN + 63 / 88 * - 72 WHEN + COUNT( * ) * - 71 * + 36 * + 69 + 25 + ( - 81 ) / - AVG ( + 39 ) + - 71 / + + 23 THEN NULL WHEN - + 39 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3528
SELECT - - CASE + COUNT ( * ) WHEN - - COUNT ( * ) * + 71 + 28 * + + ( - 97 ) * + + 16 + COUNT ( - 73 ) + - 68 THEN + 63 / 88 * - 72 WHEN + COUNT ( * ) * - 71 * + 36 * + 69 + 25 + ( - 81 ) / - AVG ( + 39 ) + - 71 / + + 23 THEN NULL WHEN - + 39 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3529
SELECT DISTINCT + 0 DIV + COUNT( * ) + + + 11 + 66 + + 97
----
174

skipif mysql # not compatible
query I rowsort label-3529
SELECT DISTINCT + 0 / + COUNT ( * ) + + + 11 + 66 + + 97
----
174

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3530
SELECT ALL + 73, 7 DIV CAST( + - 10 AS SIGNED ) AS col0
----
73
0

skipif mysql # not compatible
query II rowsort label-3530
SELECT ALL + 73, 7 / CAST ( + - 10 AS INTEGER ) AS col0
----
73
0

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

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

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

skipif mysql # not compatible
query I rowsort label-3532
SELECT DISTINCT - COUNT ( * ) / COUNT ( * ) / + ( 25 )
----
0

query I rowsort
SELECT ALL 98 + + - 5
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-3534
SELECT DISTINCT 3 + 41 DIV - 73 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3534
SELECT DISTINCT 3 + 41 / - 73 AS col1
----
3

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

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

query I rowsort
SELECT DISTINCT NULLIF ( - 80, 90 ) + - 18
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT - CASE - + 19 WHEN - COALESCE ( 27, - 45 ) THEN - 93 WHEN - 50 + + - COALESCE ( + COUNT( * ), + 58 * - SUM( - 90 ) ) THEN + 96 + CASE - + COUNT( * ) WHEN - - 9 + + 35 + MAX( 7 ) * + + 17 THEN NULL WHEN - - 16 THEN NULL WHEN 73 THEN - - 72 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-3537
SELECT - CASE - + 19 WHEN - COALESCE ( 27, - 45 ) THEN - 93 WHEN - 50 + + - COALESCE ( + COUNT ( * ), + 58 * - SUM ( - 90 ) ) THEN + 96 + CASE - + COUNT ( * ) WHEN - - 9 + + 35 + MAX ( 7 ) * + + 17 THEN NULL WHEN - - 16 THEN NULL WHEN 73 THEN - - 72 END END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3538
SELECT - 39 * AVG ( + 95 ) * + 76 * + - 30 + + - CAST( - CASE + 61 WHEN + COUNT( * ) + - 57 THEN + 44 - + + 12 WHEN + 28 THEN - - COUNT( * ) END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3538
SELECT - 39 * AVG ( + 95 ) * + 76 * + - 30 + + - CAST ( - CASE + 61 WHEN + COUNT ( * ) + - 57 THEN + 44 - + + 12 WHEN + 28 THEN - - COUNT ( * ) END AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 69 * - 84
----
-5796

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

skipif mysql # not compatible
query II rowsort label-3540
SELECT + 27 - - + 1, - COUNT ( * ) col1
----
28
-1

query I rowsort
SELECT DISTINCT - 86 + - 15 AS col1
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT + 4 + NULLIF ( - - 31, COUNT( * ) ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-3542
SELECT + 4 + NULLIF ( - - 31, COUNT ( * ) ) AS col0
----
35

query I rowsort
SELECT ALL 9 + - 8
----
1

query I rowsort
SELECT - ( - 9 ) col1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3545
SELECT DISTINCT - 72 DIV + 77 - 30 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-3545
SELECT DISTINCT - 72 / + 77 - 30 AS col0
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3546
SELECT ALL ( NULLIF ( - COUNT( * ), - 37 ) ) DIV + COALESCE ( - 86, COUNT( * ) ) * + COUNT( * ) + - 94 + - 20 + SUM( 44 ) * - 25 - + SUM( 0 )
----
-1214

skipif mysql # not compatible
query I rowsort label-3546
SELECT ALL ( NULLIF ( - COUNT ( * ), - 37 ) ) / + COALESCE ( - 86, COUNT ( * ) ) * + COUNT ( * ) + - 94 + - 20 + SUM ( 44 ) * - 25 - + SUM ( 0 )
----
-1214

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3548
SELECT - COALESCE ( - CASE + ( 95 ) WHEN + 21 * - 89 + - - ( + - COUNT( - ( + 6 ) ) ) THEN - ( + + 59 ) * + 63 DIV - + 68 WHEN CAST( NULL AS SIGNED ) THEN 69 WHEN - 84 DIV COUNT( * ) + - - 36 DIV - 99 * - 38 + + - 31 THEN COUNT( * ) END, 20 + - NULLIF ( COUNT( * ), - + 98 - - 92 ) + 39 * 36 ) * 54
----
-76842

skipif mysql # not compatible
query I rowsort label-3548
SELECT - COALESCE ( - CASE + ( 95 ) WHEN + 21 * - 89 + - - ( + - COUNT ( - ( + 6 ) ) ) THEN - ( + + 59 ) * + 63 / - + 68 WHEN CAST ( NULL AS INTEGER ) THEN 69 WHEN - 84 / COUNT ( * ) + - - 36 / - 99 * - 38 + + - 31 THEN COUNT ( * ) END, 20 + - NULLIF ( COUNT ( * ), - + 98 - - 92 ) + 39 * 36 ) * 54
----
-76842

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3549
SELECT - ( 22 ) / - - CAST( NULL AS SIGNED ) * + ( 75 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3549
SELECT - ( 22 ) / - - CAST ( NULL AS INTEGER ) * + ( 75 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT DISTINCT 54 * + COUNT( * ) col2
----
54

skipif mysql # not compatible
query I rowsort label-3550
SELECT DISTINCT 54 * + COUNT ( * ) col2
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3551
SELECT - + 17 DIV COUNT( * ) AS col1, 17 + - 56 * + + 18
----
-17
-991

skipif mysql # not compatible
query II rowsort label-3551
SELECT - + 17 / COUNT ( * ) AS col1, 17 + - 56 * + + 18
----
-17
-991

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3553
SELECT ( 27 ) * - - CAST( NULL AS DECIMAL ) + 54 - - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-3553
SELECT ( 27 ) * - - CAST ( NULL AS REAL ) + 54 - - 13
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3554
SELECT ALL + + COALESCE ( 26, + 17 DIV + 47 ) col0
----
26

skipif mysql # not compatible
query I rowsort label-3554
SELECT ALL + + COALESCE ( 26, + 17 / + 47 ) col0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3555
SELECT DISTINCT + + CAST( 84 AS SIGNED ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-3555
SELECT DISTINCT + + CAST ( 84 AS INTEGER ) AS col2
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3556
SELECT 98 * + CAST( 87 AS SIGNED ) * + 0 + + - COUNT( * ) + - COUNT( * ) + - 44 * 78 AS col1
----
-3434

skipif mysql # not compatible
query I rowsort label-3556
SELECT 98 * + CAST ( 87 AS INTEGER ) * + 0 + + - COUNT ( * ) + - COUNT ( * ) + - 44 * 78 AS col1
----
-3434

query I rowsort
SELECT NULLIF ( 5, 59 ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT ALL - 53 * + 7 + - + COALESCE ( - - 28, + - 62, - + COUNT( ALL 91 ), 27 ) * MAX( DISTINCT 83 )
----
-2695

skipif mysql # not compatible
query I rowsort label-3558
SELECT ALL - 53 * + 7 + - + COALESCE ( - - 28, + - 62, - + COUNT ( ALL 91 ), 27 ) * MAX ( DISTINCT 83 )
----
-2695

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3559
SELECT + 67 * - SUM( + 21 ) + + CAST( 38 AS SIGNED ) * 75 * + NULLIF ( + - 55, - + 58 ) + MIN( ALL + ( - 62 ) ) AS col1
----
-158219

skipif mysql # not compatible
query I rowsort label-3559
SELECT + 67 * - SUM ( + 21 ) + + CAST ( 38 AS INTEGER ) * 75 * + NULLIF ( + - 55, - + 58 ) + MIN ( ALL + ( - 62 ) ) AS col1
----
-158219

query I rowsort
SELECT - 86 + - + 70 col1
----
-156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3561
SELECT DISTINCT 46 * + CAST( NULL AS SIGNED ) + + - COALESCE ( + CAST( NULL AS DECIMAL ), + + 43, 10 ) + + - 12 + + COUNT( * ) * + + 0 * - 7 * 72 * + - 4 + CASE 35 WHEN + + 15 THEN NULL ELSE + 6 * 81 / + 1 + + 84 END * 10 * - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-3561
SELECT DISTINCT 46 * + CAST ( NULL AS INTEGER ) + + - COALESCE ( + CAST ( NULL AS REAL ), + + 43, 10 ) + + - 12 + + COUNT ( * ) * + + 0 * - 7 * 72 * + - 4 + CASE 35 WHEN + + 15 THEN NULL ELSE + 6 * 81 / + 1 + + 84 END * 10 * - 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT DISTINCT - 95 * - 16 + + 49 * - 86 + - 0 + 33 + - 69 + - MAX( 57 ) + + 78 * 84 * 85 * 43 * 1 col0
----
23944773

skipif mysql # not compatible
query I rowsort label-3562
SELECT DISTINCT - 95 * - 16 + + 49 * - 86 + - 0 + 33 + - 69 + - MAX ( 57 ) + + 78 * 84 * 85 * 43 * 1 col0
----
23944773

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT DISTINCT - - 53 * - - 12 + + 80 * + 22 * + COUNT( * ) + + 26 AS col2
----
2422

skipif mysql # not compatible
query I rowsort label-3563
SELECT DISTINCT - - 53 * - - 12 + + 80 * + 22 * + COUNT ( * ) + + 26 AS col2
----
2422

query I rowsort
SELECT ALL - 86 + + + 85 AS col0
----
-1

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3567
SELECT ALL + 73 DIV - 20
----
-3

skipif mysql # not compatible
query I rowsort label-3567
SELECT ALL + 73 / - 20
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3568
SELECT ALL AVG ( DISTINCT - 57 ) - - 36 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3568
SELECT ALL AVG ( DISTINCT - 57 ) - - 36 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3569
SELECT DISTINCT COUNT( * ) - - MIN( DISTINCT - 14 ), 54 AS col2
----
-13
54

skipif mysql # not compatible
query II rowsort label-3569
SELECT DISTINCT COUNT ( * ) - - MIN ( DISTINCT - 14 ), 54 AS col2
----
-13
54

query II rowsort
SELECT ALL 91, 91
----
91
91

query II rowsort
SELECT - 93 col0, - 21 AS col2
----
-93
-21

query I rowsort
SELECT ALL 56 * - 48 AS col1
----
-2688

onlyif mysql # aggregate syntax: 
query II rowsort label-3573
SELECT ALL 48, + ( + - ( - + 34 ) ) + - COUNT( * ) AS col1
----
48
33

skipif mysql # not compatible
query II rowsort label-3573
SELECT ALL 48, + ( + - ( - + 34 ) ) + - COUNT ( * ) AS col1
----
48
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT SUM( + - 90 ) + 43 * 58 AS col2
----
2404

skipif mysql # not compatible
query I rowsort label-3574
SELECT SUM ( + - 90 ) + 43 * 58 AS col2
----
2404

query II rowsort
SELECT 0, 24 + - - 33 AS col1
----
0
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3576
SELECT SUM( DISTINCT 75 ) * - ( 84 ) - + + 62 + + + CAST( NULL AS SIGNED ) * - 97 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3576
SELECT SUM ( DISTINCT 75 ) * - ( 84 ) - + + 62 + + + CAST ( NULL AS INTEGER ) * - 97 col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3577
SELECT 98 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3578
SELECT + 70 DIV + 78 + + 38 + + - 40 + 32 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-3578
SELECT + 70 / + 78 + + 38 + + - 40 + 32 AS col1
----
30

query II rowsort
SELECT ALL - 46, 92 + - + 52 AS col1
----
-46
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3580
SELECT 38 DIV + 42 + - + ( + 21 ) + 99 + - CASE + 61 WHEN ( + 27 ) + 39 DIV - CASE - 66 WHEN + - COUNT( * ) THEN 83 * + 83 - - 25 + - 64 WHEN + - 23 + + + 76 THEN NULL END * + ( + + 43 ) * + 46 + 29 - + 43 + + - 16 THEN + 75 WHEN - + 37 + - - COUNT( * ) + + 87 * COUNT( * ) * 72 THEN ( - 55 ) DIV - 45 ELSE 2 END + 81 AS col0
----
157

skipif mysql # not compatible
query I rowsort label-3580
SELECT 38 / + 42 + - + ( + 21 ) + 99 + - CASE + 61 WHEN ( + 27 ) + 39 / - CASE - 66 WHEN + - COUNT ( * ) THEN 83 * + 83 - - 25 + - 64 WHEN + - 23 + + + 76 THEN NULL END * + ( + + 43 ) * + 46 + 29 - + 43 + + - 16 THEN + 75 WHEN - + 37 + - - COUNT ( * ) + + 87 * COUNT ( * ) * 72 THEN ( - 55 ) / - 45 ELSE 2 END + 81 AS col0
----
157

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3581
SELECT ALL CAST( NULL AS DECIMAL ) / COUNT( * ) * + 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3581
SELECT ALL CAST ( NULL AS REAL ) / COUNT ( * ) * + 15 AS col0
----
NULL

query I rowsort
SELECT ALL + + 24 + 34
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT + CASE + COUNT( * ) WHEN 9 + + 82 THEN + 90 + + 28 / SUM( 89 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3583
SELECT + CASE + COUNT ( * ) WHEN 9 + + 82 THEN + 90 + + 28 / SUM ( 89 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3584
SELECT DISTINCT COUNT( * ) + ( + 7 ), - 95 * 11 - + + 80 col0
----
8
-1125

skipif mysql # not compatible
query II rowsort label-3584
SELECT DISTINCT COUNT ( * ) + ( + 7 ), - 95 * 11 - + + 80 col0
----
8
-1125

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT DISTINCT COUNT( * ) + - 16
----
-15

skipif mysql # not compatible
query I rowsort label-3585
SELECT DISTINCT COUNT ( * ) + - 16
----
-15

query I rowsort
SELECT ALL + 81 + 43 AS col0
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT ALL - - COUNT( 13 )
----
1

skipif mysql # not compatible
query I rowsort label-3587
SELECT ALL - - COUNT ( 13 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT 84 * COUNT( ALL 55 )
----
84

skipif mysql # not compatible
query I rowsort label-3588
SELECT 84 * COUNT ( ALL 55 )
----
84

query II rowsort
SELECT DISTINCT 10, 66 col2
----
10
66

query II rowsort
SELECT 18, 58 AS col2
----
18
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3591
SELECT ALL - 40 + - + 92 - 89 * CAST( - - NULLIF ( 26, CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + + 64 * + 37 * - - ( - 99 ) / 94 + - 85 - 98 + - + CASE - 96 WHEN 8 - + - 44 THEN - + 29 END * + 84 ) AS SIGNED ) * - 16 * - 1 + + 10 AS col2, 47 + - CAST( NULL AS SIGNED ) + 66 * - COALESCE ( + 81, + NULLIF ( - MAX( ALL - 29 ), 58 * - 10 + 38 ) + + 17 * - 61, + 86 ) * - ( + COUNT( * ) ) + 78 AS col2
----
-37146
NULL

skipif mysql # not compatible
query II rowsort label-3591
SELECT ALL - 40 + - + 92 - 89 * CAST ( - - NULLIF ( 26, CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + + 64 * + 37 * - - ( - 99 ) / 94 + - 85 - 98 + - + CASE - 96 WHEN 8 - + - 44 THEN - + 29 END * + 84 ) AS INTEGER ) * - 16 * - 1 + + 10 AS col2, 47 + - CAST ( NULL AS INTEGER ) + 66 * - COALESCE ( + 81, + NULLIF ( - MAX ( ALL - 29 ), 58 * - 10 + 38 ) + + 17 * - 61, + 86 ) * - ( + COUNT ( * ) ) + 78 AS col2
----
-37146
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT COUNT( * ) - 13 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-3592
SELECT COUNT ( * ) - 13 AS col0
----
-12

query I rowsort
SELECT - + CASE 35 WHEN - - 86 THEN NULL ELSE + - 6 + + 89 END
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3594
SELECT ALL + - 69 + + + 55 + 8 - + - 84 + + CAST( NULL AS SIGNED ) * - NULLIF ( COUNT( * ), 51 * - 57 ) + - AVG ( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3594
SELECT ALL + - 69 + + + 55 + 8 - + - 84 + + CAST ( NULL AS INTEGER ) * - NULLIF ( COUNT ( * ), 51 * - 57 ) + - AVG ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT + 86 * + - ( - 87 )
----
7482

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3596
SELECT 7 * + CASE 89 WHEN COALESCE ( + 52, + 80, - 21 ) / - 69 THEN - 13 * + 44 / 11 + + - CAST( NULL AS SIGNED ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3596
SELECT 7 * + CASE 89 WHEN COALESCE ( + 52, + 80, - 21 ) / - 69 THEN - 13 * + 44 / 11 + + - CAST ( NULL AS INTEGER ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3597
SELECT DISTINCT + COUNT( * ) * NULLIF ( - + 88, + 41 - 32 ) col2, - ( + - 6 ) - + - CASE 82 WHEN - - CASE + 36 WHEN + 40 * - 71 THEN COUNT( * ) ELSE + 29 + CASE + - 99 WHEN + + 4 / + 40 - - ( - + 52 ) THEN + CASE + - 44 WHEN + COUNT( * ) THEN + - 3 + 15 END * + ( + MIN( - 35 ) ) / 56 END + 77 END + + MIN( 93 ) THEN 44 END * 15
----
-88
NULL

skipif mysql # not compatible
query II rowsort label-3597
SELECT DISTINCT + COUNT ( * ) * NULLIF ( - + 88, + 41 - 32 ) col2, - ( + - 6 ) - + - CASE 82 WHEN - - CASE + 36 WHEN + 40 * - 71 THEN COUNT ( * ) ELSE + 29 + CASE + - 99 WHEN + + 4 / + 40 - - ( - + 52 ) THEN + CASE + - 44 WHEN + COUNT ( * ) THEN + - 3 + 15 END * + ( + MIN ( - 35 ) ) / 56 END + 77 END + + MIN ( 93 ) THEN 44 END * 15
----
-88
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT COUNT( - + 34 ) * - 39 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-3598
SELECT COUNT ( - + 34 ) * - 39 AS col1
----
-39

query I rowsort
SELECT 72 + - - 86 * + - 81 + + - 43 + + - 95 AS col1
----
-7032

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3600
SELECT DISTINCT COUNT( * ) DIV - 34
----
0

skipif mysql # not compatible
query I rowsort label-3600
SELECT DISTINCT COUNT ( * ) / - 34
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3601
SELECT AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) + AVG ( + 82 ) + - + COUNT( * ) * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3601
SELECT AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + AVG ( + 82 ) + - + COUNT ( * ) * - + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3602
SELECT 1 DIV + 43 col1, + 98
----
0
98

skipif mysql # not compatible
query II rowsort label-3602
SELECT 1 / + 43 col1, + 98
----
0
98

query I rowsort
SELECT ALL 26 * + 37
----
962

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3604
SELECT ALL - 42 / ( + - 93 ) * + 82 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3604
SELECT ALL - 42 / ( + - 93 ) * + 82 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3605
SELECT DISTINCT - 24 DIV + COUNT( DISTINCT - 66 )
----
-24

skipif mysql # not compatible
query I rowsort label-3605
SELECT DISTINCT - 24 / + COUNT ( DISTINCT - 66 )
----
-24

query I rowsort
SELECT DISTINCT - ( + 82 ) col0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3607
SELECT ALL + 19 * + CAST( NULL AS SIGNED ) + ( + - 19 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3607
SELECT ALL + 19 * + CAST ( NULL AS INTEGER ) + ( + - 19 ) AS col0
----
NULL

query I rowsort
SELECT 97 * - 91
----
-8827

query I rowsort
SELECT DISTINCT 7 * + CASE + 20 WHEN - ( - 20 ) * - 84 * 25 * 10 THEN - 47 END AS col2
----
NULL

query I rowsort
SELECT ALL 66 * - - 43
----
2838

query I rowsort
SELECT 71 * - ( + 58 )
----
-4118

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT SUM( - 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-3612
SELECT SUM ( - 67 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT ALL + - CASE + 79 WHEN + 94 THEN + 33 + + 17 ELSE NULL END * - 98 * 95 * + 71 * - + COALESCE ( COUNT( * ), + + 32 * - MIN( DISTINCT + 16 ) ) + + 42 - + COUNT( * ) * - 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3613
SELECT ALL + - CASE + 79 WHEN + 94 THEN + 33 + + 17 ELSE NULL END * - 98 * 95 * + 71 * - + COALESCE ( COUNT ( * ), + + 32 * - MIN ( DISTINCT + 16 ) ) + + 42 - + COUNT ( * ) * - 72 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT + COUNT( * ) * - 3 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-3614
SELECT + COUNT ( * ) * - 3 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT + 41 - - 57 * 41 * + + 39 + - MIN( - - ( 73 ) )
----
91111

skipif mysql # not compatible
query I rowsort label-3615
SELECT + 41 - - 57 * 41 * + + 39 + - MIN ( - - ( 73 ) )
----
91111

query I rowsort
SELECT DISTINCT 20 + - 68 col0
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3617
SELECT ALL - + CAST( + 37 AS SIGNED )
----
-37

skipif mysql # not compatible
query I rowsort label-3617
SELECT ALL - + CAST ( + 37 AS INTEGER )
----
-37

query I rowsort
SELECT DISTINCT - 63 + - 25 * + - 24 col2
----
537

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT DISTINCT - MIN( DISTINCT - 39 ) + - 98 col1
----
-59

skipif mysql # not compatible
query I rowsort label-3619
SELECT DISTINCT - MIN ( DISTINCT - 39 ) + - 98 col1
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-3620
SELECT ALL 65 DIV - - 77
----
0

skipif mysql # not compatible
query I rowsort label-3620
SELECT ALL 65 / - - 77
----
0

query I rowsort
SELECT - 21 * - 29 + - 24 AS col0
----
585

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3622
SELECT + MIN( - 3 ) AS col1, NULLIF ( - 44, + + 53 ) * CAST( NULL AS SIGNED ) AS col1
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-3622
SELECT + MIN ( - 3 ) AS col1, NULLIF ( - 44, + + 53 ) * CAST ( NULL AS INTEGER ) AS col1
----
-3
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3623
SELECT - COUNT( - - 0 ) AS col1, - 38
----
-1
-38

skipif mysql # not compatible
query II rowsort label-3623
SELECT - COUNT ( - - 0 ) AS col1, - 38
----
-1
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT - + 65 * - NULLIF ( 60, - 38 * + - COALESCE ( 14, + COUNT( * ) + + + 79 ) ) + 91 + COUNT( * ) + - 95 AS col0
----
3897

skipif mysql # not compatible
query I rowsort label-3624
SELECT - + 65 * - NULLIF ( 60, - 38 * + - COALESCE ( 14, + COUNT ( * ) + + + 79 ) ) + 91 + COUNT ( * ) + - 95 AS col0
----
3897

query I rowsort
SELECT + NULLIF ( - 41, + ( + 70 ) / + + 77 ) AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT COALESCE ( + 43, MAX( - 19 ) ) + - 36 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-3626
SELECT COALESCE ( + 43, MAX ( - 19 ) ) + - 36 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT + COUNT( * ) * - COUNT( * ) - 2
----
-3

skipif mysql # not compatible
query I rowsort label-3627
SELECT + COUNT ( * ) * - COUNT ( * ) - 2
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3628
SELECT DISTINCT + ( CASE + 9 WHEN 65 + 67 + + CAST( NULL AS DECIMAL ) THEN 57 WHEN + + 29 THEN 25 + - 53 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3628
SELECT DISTINCT + ( CASE + 9 WHEN 65 + 67 + + CAST ( NULL AS REAL ) THEN 57 WHEN + + 29 THEN 25 + - 53 END )
----
NULL

query I rowsort
SELECT DISTINCT 49 * + - 70 AS col0
----
-3430

query I rowsort
SELECT ALL 54 - - 17
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3631
SELECT - 81 + - + 91 + + + 30 + - 7 + - 99 DIV COALESCE ( + CASE + ( - + 85 ) WHEN + 56 THEN + 72 DIV - - 33 * + + COUNT( * ) END, + 39 ) AS col2
----
-151

skipif mysql # not compatible
query I rowsort label-3631
SELECT - 81 + - + 91 + + + 30 + - 7 + - 99 / COALESCE ( + CASE + ( - + 85 ) WHEN + 56 THEN + 72 / - - 33 * + + COUNT ( * ) END, + 39 ) AS col2
----
-151

query II rowsort
SELECT ALL 21 AS col0, + 9
----
21
9

query I rowsort
SELECT DISTINCT ( + - NULLIF ( - 32, 54 + + + 10 ) ) - + - 79 col2
----
111

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3634
SELECT - CASE + - NULLIF ( 10, - 22 ) WHEN 86 + 34 / + 16 + 38 * + + 75 - + 7 + - 75 * - 55 + COUNT( * ) THEN NULL WHEN - CAST( NULL AS DECIMAL ) THEN NULL ELSE + AVG ( DISTINCT + CASE + + 39 WHEN + + 49 THEN - 20 / 63 ELSE NULL END ) END + - 95 + - + 46 * + 27 * - + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-3634
SELECT - CASE + - NULLIF ( 10, - 22 ) WHEN 86 + 34 / + 16 + 38 * + + 75 - + 7 + - 75 * - 55 + COUNT ( * ) THEN NULL WHEN - CAST ( NULL AS REAL ) THEN NULL ELSE + AVG ( DISTINCT + CASE + + 39 WHEN + + 49 THEN - 20 / 63 ELSE NULL END ) END + - 95 + - + 46 * + 27 * - + 52
----
NULL

query II rowsort
SELECT ALL 78, 60 + - 31 * - + 58 AS col2
----
78
1858

onlyif mysql # DIV for integer division: 
query I rowsort label-3636
SELECT DISTINCT - 28 DIV 74 DIV + + 18
----
0

skipif mysql # not compatible
query I rowsort label-3636
SELECT DISTINCT - 28 / 74 / + + 18
----
0

query I rowsort
SELECT - NULLIF ( + + 92, 84 + + 37 ) AS col0
----
-92

query I rowsort
SELECT - 50 + - - 73
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT ALL MAX( - 11 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-3639
SELECT ALL MAX ( - 11 ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT - NULLIF ( 30, + - 98 + - 65 ) * + - ( + NULLIF ( - 55, + + COUNT( * ) ) ) + - + 9 + + SUM( DISTINCT 97 ) + - 13 + + 85 AS col2
----
-1490

skipif mysql # not compatible
query I rowsort label-3640
SELECT - NULLIF ( 30, + - 98 + - 65 ) * + - ( + NULLIF ( - 55, + + COUNT ( * ) ) ) + - + 9 + + SUM ( DISTINCT 97 ) + - 13 + + 85 AS col2
----
-1490

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3641
SELECT - CAST( NULL AS DECIMAL ) * - - 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3641
SELECT - CAST ( NULL AS REAL ) * - - 31 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3642
SELECT - ( + - 85 ) + + COUNT( * ) * 28 * + + 63 * + 42, 74 AS col2
----
74173
74

skipif mysql # not compatible
query II rowsort label-3642
SELECT - ( + - 85 ) + + COUNT ( * ) * 28 * + + 63 * + 42, 74 AS col2
----
74173
74

query I rowsort
SELECT ALL NULLIF ( 66, - 0 * - 50 * + 29 ) AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT DISTINCT + COUNT( * ) * + + 34 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-3644
SELECT DISTINCT + COUNT ( * ) * + + 34 AS col1
----
34

query II rowsort
SELECT 19 col2, - 59 AS col2
----
19
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3646
SELECT ALL + 56 * + MAX( DISTINCT 75 ), - 98 DIV + 61 AS col1
----
4200
-1

skipif mysql # not compatible
query II rowsort label-3646
SELECT ALL + 56 * + MAX ( DISTINCT 75 ), - 98 / + 61 AS col1
----
4200
-1

query I rowsort
SELECT - 8 * - 87
----
696

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT ALL - 11 + + COUNT( * ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-3648
SELECT ALL - 11 + + COUNT ( * ) AS col2
----
-10

query I rowsort
SELECT DISTINCT - 38 * - 53
----
2014

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT ALL MAX( DISTINCT - 59 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL MAX ( DISTINCT - 59 ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT - 72 * + 42 * - CASE - ( - COUNT( * ) ) WHEN - + 76 THEN 52 / + - 53 END * - COUNT( * ) - + 91 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3651
SELECT - 72 * + 42 * - CASE - ( - COUNT ( * ) ) WHEN - + 76 THEN 52 / + - 53 END * - COUNT ( * ) - + 91 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT - 78 + + - 69 * - CASE - 19 WHEN - + 59 + - 90 THEN + - COUNT( * ) / - + 22 * + 64 * COUNT( * ) END + + 86 + - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-3652
SELECT - 78 + + - 69 * - CASE - 19 WHEN - + 59 + - 90 THEN + - COUNT ( * ) / - + 22 * + 64 * COUNT ( * ) END + + 86 + - 98
----
NULL

query II rowsort
SELECT 19 AS col0, - 49 + + 5
----
19
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-3654
SELECT 54 AS col2, - CASE - - ( 67 ) WHEN - 62 THEN NULL WHEN - 47 * - 30 THEN - - COUNT( * ) ELSE + + COUNT( * ) * - - 74 + ( + 41 ) END + 15 AS col2
----
54
-100

skipif mysql # not compatible
query II rowsort label-3654
SELECT 54 AS col2, - CASE - - ( 67 ) WHEN - 62 THEN NULL WHEN - 47 * - 30 THEN - - COUNT ( * ) ELSE + + COUNT ( * ) * - - 74 + ( + 41 ) END + 15 AS col2
----
54
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3655
SELECT - 48 * - CASE + ( + - 12 ) WHEN 52 + + 38 + - 74 / + 67 * - - CAST( NULL AS SIGNED ) THEN NULL WHEN COUNT( * ) THEN NULL ELSE + COUNT( * ) * 21 * CASE 57 WHEN CAST( COUNT( * ) AS SIGNED ) THEN + + NULLIF ( - 20, + 58 ) END + 65 - AVG ( ALL 64 ) - - 7 END + - + 73 + + - COUNT( * ) + + 67 + - + 39 + + - 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3655
SELECT - 48 * - CASE + ( + - 12 ) WHEN 52 + + 38 + - 74 / + 67 * - - CAST ( NULL AS INTEGER ) THEN NULL WHEN COUNT ( * ) THEN NULL ELSE + COUNT ( * ) * 21 * CASE 57 WHEN CAST ( COUNT ( * ) AS INTEGER ) THEN + + NULLIF ( - 20, + 58 ) END + 65 - AVG ( ALL 64 ) - - 7 END + - + 73 + + - COUNT ( * ) + + 67 + - + 39 + + - 78 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3656
SELECT DISTINCT CAST( + 21 AS SIGNED ) DIV - SUM( ALL 54 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3656
SELECT DISTINCT CAST ( + 21 AS INTEGER ) / - SUM ( ALL 54 ) AS col2
----
0

query II rowsort
SELECT ALL - 69 * - - 79 + + 42 AS col2, - 55 AS col0
----
-5409
-55

query I rowsort
SELECT DISTINCT 90 * ( - 51 ) + - - 50 AS col2
----
-4540

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3659
SELECT + + 28 + - + COUNT( * ) + - 93 + - - COALESCE ( - 39, + ( - COUNT( * ) ) - + 47 * + - 66 + 6 + - - COALESCE ( 41, 64, + - CASE + 10 WHEN - 27 * - + 29 + + 14 + + 20 + - + ( + + 49 ) THEN 39 * - 42 WHEN + 66 THEN + 91 * 75 + + 38 DIV + 82 DIV + 12 - - COUNT( * ) END * + 18, + 82 ) ) * + 36 AS col2
----
-1470

skipif mysql # not compatible
query I rowsort label-3659
SELECT + + 28 + - + COUNT ( * ) + - 93 + - - COALESCE ( - 39, + ( - COUNT ( * ) ) - + 47 * + - 66 + 6 + - - COALESCE ( 41, 64, + - CASE + 10 WHEN - 27 * - + 29 + + 14 + + 20 + - + ( + + 49 ) THEN 39 * - 42 WHEN + 66 THEN + 91 * 75 + + 38 / + 82 / + 12 - - COUNT ( * ) END * + 18, + 82 ) ) * + 36 AS col2
----
-1470

onlyif mysql # aggregate syntax: 
query II rowsort label-3660
SELECT + - ( - + 72 ) + - MIN( ALL - ( + 47 ) ) AS col0, - 42 AS col1
----
119
-42

skipif mysql # not compatible
query II rowsort label-3660
SELECT + - ( - + 72 ) + - MIN ( ALL - ( + 47 ) ) AS col0, - 42 AS col1
----
119
-42

query I rowsort
SELECT ALL + 90 * - NULLIF ( + 92, + 38 * 17 * + 40 ) * 30 AS col1
----
-248400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3662
SELECT - ( + + 2 ) * - COUNT( ALL CAST( + 59 AS SIGNED ) ) - 19 + - MIN( ALL - 79 ) + 11 + - ( + 94 ) DIV - 90
----
74

skipif mysql # not compatible
query I rowsort label-3662
SELECT - ( + + 2 ) * - COUNT ( ALL CAST ( + 59 AS INTEGER ) ) - 19 + - MIN ( ALL - 79 ) + 11 + - ( + 94 ) / - 90
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3663
SELECT ALL + + CASE - 87 WHEN - CASE + SUM( - 48 ) WHEN + - 96 / - 27 THEN - 9 ELSE NULL END + + - AVG ( ALL + 77 ) + + CAST( NULL AS SIGNED ) * - 66 * + 1 + + + 4 THEN + - 58 END * + 73 + 85 / + CASE - 77 WHEN + SUM( + 56 ) THEN ( + 83 ) * 44 + - MIN( - COALESCE ( + 23, ( 23 ) ) ) + - 83 END - 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3663
SELECT ALL + + CASE - 87 WHEN - CASE + SUM ( - 48 ) WHEN + - 96 / - 27 THEN - 9 ELSE NULL END + + - AVG ( ALL + 77 ) + + CAST ( NULL AS INTEGER ) * - 66 * + 1 + + + 4 THEN + - 58 END * + 73 + 85 / + CASE - 77 WHEN + SUM ( + 56 ) THEN ( + 83 ) * 44 + - MIN ( - COALESCE ( + 23, ( 23 ) ) ) + - 83 END - 53 AS col0
----
NULL

query I rowsort
SELECT ALL + 98 * + NULLIF ( + 60, + + 50 ) AS col2
----
5880

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT - COUNT( * ) * + 74 AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-3665
SELECT - COUNT ( * ) * + 74 AS col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT DISTINCT + - COUNT( DISTINCT - - 37 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3666
SELECT DISTINCT + - COUNT ( DISTINCT - - 37 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3667
SELECT + 24 + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3667
SELECT + 24 + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + ( - 75 ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT ALL + CASE - COUNT( * ) WHEN + + 94 * 44 + 62 * 40 THEN + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3669
SELECT ALL + CASE - COUNT ( * ) WHEN + + 94 * 44 + 62 * 40 THEN + + COUNT ( * ) END
----
NULL

query II rowsort
SELECT ALL + 95 AS col2, - 66 * + 7
----
95
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT MAX( DISTINCT + 59 ) col0
----
59

skipif mysql # not compatible
query I rowsort label-3671
SELECT MAX ( DISTINCT + 59 ) col0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3672
SELECT - CAST( 78 AS SIGNED )
----
-78

skipif mysql # not compatible
query I rowsort label-3672
SELECT - CAST ( 78 AS INTEGER )
----
-78

query I rowsort
SELECT - 27 * + 20
----
-540

query I rowsort
SELECT ALL 33 * 10 AS col2
----
330

query I rowsort
SELECT + 39 - + 97 + - 95 * + 37 AS col0
----
-3573

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3676
SELECT - COUNT( * ) DIV - - 92
----
0

skipif mysql # not compatible
query I rowsort label-3676
SELECT - COUNT ( * ) / - - 92
----
0

query I rowsort
SELECT + NULLIF ( - 73, - 89 ) - + ( - 43 )
----
-30

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3678
SELECT COUNT( ALL CAST( NULL AS DECIMAL ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3678
SELECT COUNT ( ALL CAST ( NULL AS REAL ) ) AS col2
----
0

query I rowsort
SELECT DISTINCT 56 * - + 58 AS col2
----
-3248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3680
SELECT ALL ( + - CAST( 1 AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3680
SELECT ALL ( + - CAST ( 1 AS INTEGER ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT ALL MAX( DISTINCT - ( - 49 ) )
----
49

skipif mysql # not compatible
query I rowsort label-3681
SELECT ALL MAX ( DISTINCT - ( - 49 ) )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT - 61 - + + COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-3682
SELECT - 61 - + + COUNT ( * )
----
-62

query I rowsort
SELECT DISTINCT 26 + - - 67
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3684
SELECT ALL + MAX( 48 ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3684
SELECT ALL + MAX ( 48 ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT ALL NULLIF ( 50, 85 * + COUNT( * ) / - 6 + - 1 )
----
50

skipif mysql # not compatible
query I rowsort label-3685
SELECT ALL NULLIF ( 50, 85 * + COUNT ( * ) / - 6 + - 1 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT - MAX( + 65 ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-3686
SELECT - MAX ( + 65 ) AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT ALL - + 54 + - SUM( - 57 )
----
3

skipif mysql # not compatible
query I rowsort label-3687
SELECT ALL - + 54 + - SUM ( - 57 )
----
3

query II rowsort
SELECT 63 AS col2, 20 AS col2
----
63
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT ALL - + 37 * + COALESCE ( SUM( ALL - 51 ), + 74, + 48 * - 23 + + 82 )
----
1887

skipif mysql # not compatible
query I rowsort label-3689
SELECT ALL - + 37 * + COALESCE ( SUM ( ALL - 51 ), + 74, + 48 * - 23 + + 82 )
----
1887

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT DISTINCT + MAX( - 52 ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-3690
SELECT DISTINCT + MAX ( - 52 ) AS col1
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3691
SELECT COUNT( * ) col0, - CAST( 89 AS SIGNED ) AS col0
----
1
-89

skipif mysql # not compatible
query II rowsort label-3691
SELECT COUNT ( * ) col0, - CAST ( 89 AS INTEGER ) AS col0
----
1
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3692
SELECT - - 64 * + COUNT( * ) - 45 DIV - - COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-3692
SELECT - - 64 * + COUNT ( * ) - 45 / - - COUNT ( * )
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3693
SELECT - CAST( NULL AS SIGNED ) * - MIN( DISTINCT - 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3693
SELECT - CAST ( NULL AS INTEGER ) * - MIN ( DISTINCT - 2 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3694
SELECT 22 DIV - 18 + 26 * + 92 - 55
----
2336

skipif mysql # not compatible
query I rowsort label-3694
SELECT 22 / - 18 + 26 * + 92 - 55
----
2336

query I rowsort
SELECT + 95 * 97
----
9215

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3696
SELECT + 51 AS col1, 14 * + NULLIF ( - CAST( - 3 AS SIGNED ), + + 57 ) - - 19
----
51
61

skipif mysql # not compatible
query II rowsort label-3696
SELECT + 51 AS col1, 14 * + NULLIF ( - CAST ( - 3 AS INTEGER ), + + 57 ) - - 19
----
51
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3697
SELECT - NULLIF ( - 53, 10 * + 20 + CASE + 8 WHEN + 70 + + - 14 THEN + 15 * ( + + CAST( - ( + 25 ) AS SIGNED ) ) WHEN + + 60 + + - 10 THEN NULL ELSE + + COUNT( * ) - + + SUM( DISTINCT 1 ) - + + 65 END - 37 * + 90 ) - - - COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-3697
SELECT - NULLIF ( - 53, 10 * + 20 + CASE + 8 WHEN + 70 + + - 14 THEN + 15 * ( + + CAST ( - ( + 25 ) AS INTEGER ) ) WHEN + + 60 + + - 10 THEN NULL ELSE + + COUNT ( * ) - + + SUM ( DISTINCT 1 ) - + + 65 END - 37 * + 90 ) - - - COUNT ( * )
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3698
SELECT ALL + ( - COUNT( - - 21 ) ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3698
SELECT ALL + ( - COUNT ( - - 21 ) ) * CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT - - 87, + 14 AS col0
----
87
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3700
SELECT DISTINCT + + 20 DIV COUNT( * ), - 13 AS col2
----
20
-13

skipif mysql # not compatible
query II rowsort label-3700
SELECT DISTINCT + + 20 / COUNT ( * ), - 13 AS col2
----
20
-13

query I rowsort
SELECT ALL + 87 * + 55 AS col0
----
4785

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3702
SELECT ( - 18 ) * 23 - + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3702
SELECT ( - 18 ) * 23 - + CAST ( NULL AS INTEGER ) col2
----
NULL

query III rowsort
SELECT ALL - - 45 AS col0, + 97, - ( - 64 ) AS col1
----
45
97
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT ALL + 17 * + - 42 + + 8 + 67 * - 16 + + + ( + 19 ) * + 64 * - 60 * ( - + COUNT( * ) )
----
71182

skipif mysql # not compatible
query I rowsort label-3704
SELECT ALL + 17 * + - 42 + + 8 + 67 * - 16 + + + ( + 19 ) * + 64 * - 60 * ( - + COUNT ( * ) )
----
71182

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT DISTINCT - - MIN( - NULLIF ( + + 85, + 61 / 21 ) ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-3705
SELECT DISTINCT - - MIN ( - NULLIF ( + + 85, + 61 / 21 ) ) AS col1
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-3706
SELECT - 28 DIV - 27
----
1

skipif mysql # not compatible
query I rowsort label-3706
SELECT - 28 / - 27
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3707
SELECT 76 - - - 46 * - COUNT( * ) AS col2, + COUNT( * )
----
122
1

skipif mysql # not compatible
query II rowsort label-3707
SELECT 76 - - - 46 * - COUNT ( * ) AS col2, + COUNT ( * )
----
122
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3708
SELECT ALL - 55 * + 37 AS col2, + COUNT( * ) * - + 9
----
-2035
-9

skipif mysql # not compatible
query II rowsort label-3708
SELECT ALL - 55 * + 37 AS col2, + COUNT ( * ) * - + 9
----
-2035
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT 82 * + COUNT( * ) col2
----
82

skipif mysql # not compatible
query I rowsort label-3709
SELECT 82 * + COUNT ( * ) col2
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3710
SELECT 95 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3710
SELECT 95 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3711
SELECT ALL 9 + - 87, COUNT( * ) AS col0
----
-78
1

skipif mysql # not compatible
query II rowsort label-3711
SELECT ALL 9 + - 87, COUNT ( * ) AS col0
----
-78
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3712
SELECT 66 + - 38 AS col2, + 30 * - COUNT( * ) AS col2
----
28
-30

skipif mysql # not compatible
query II rowsort label-3712
SELECT 66 + - 38 AS col2, + 30 * - COUNT ( * ) AS col2
----
28
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT 72 * NULLIF ( - 4, + NULLIF ( + NULLIF ( MAX( ALL + 24 ), + - ( + 30 ) ), - + 25 ) ) * 69
----
-19872

skipif mysql # not compatible
query I rowsort label-3713
SELECT 72 * NULLIF ( - 4, + NULLIF ( + NULLIF ( MAX ( ALL + 24 ), + - ( + 30 ) ), - + 25 ) ) * 69
----
-19872

query II rowsort
SELECT ALL + 92 + + 75 * - 74 AS col1, 67 col1
----
-5458
67

query I rowsort
SELECT ALL + 83 + + ( + - 4 ) + + 12 AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT DISTINCT 50 + - 18 * MIN( 75 )
----
-1300

skipif mysql # not compatible
query I rowsort label-3716
SELECT DISTINCT 50 + - 18 * MIN ( 75 )
----
-1300

query I rowsort
SELECT DISTINCT 8 + 48 + - 21
----
35

query I rowsort
SELECT ALL 43 + - - 14 AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT DISTINCT SUM( ALL + 43 ) * - 9 * - 42 AS col1
----
16254

skipif mysql # not compatible
query I rowsort label-3719
SELECT DISTINCT SUM ( ALL + 43 ) * - 9 * - 42 AS col1
----
16254

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT 97 + 9 + 48 * COUNT( * ) AS col1
----
154

skipif mysql # not compatible
query I rowsort label-3720
SELECT 97 + 9 + 48 * COUNT ( * ) AS col1
----
154

query I rowsort
SELECT ALL 7 * + + 84 * ( + 50 )
----
29400

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT DISTINCT NULLIF ( - 38, + 40 ) + - NULLIF ( COUNT( * ), 14 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-3722
SELECT DISTINCT NULLIF ( - 38, + 40 ) + - NULLIF ( COUNT ( * ), 14 ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-3723
SELECT ALL + CASE - - 99 WHEN + - COUNT( * ) THEN NULL WHEN - COUNT( * ) THEN NULL ELSE + 75 END, 39 * + 68 col1
----
75
2652

skipif mysql # not compatible
query II rowsort label-3723
SELECT ALL + CASE - - 99 WHEN + - COUNT ( * ) THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE + 75 END, 39 * + 68 col1
----
75
2652

query I rowsort
SELECT 59 + - 8
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-3725
SELECT ALL 31 DIV - 32 * - 3
----
0

skipif mysql # not compatible
query I rowsort label-3725
SELECT ALL 31 / - 32 * - 3
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3726
SELECT COUNT( * ) * + 17 AS col2, 48
----
17
48

skipif mysql # not compatible
query II rowsort label-3726
SELECT COUNT ( * ) * + 17 AS col2, 48
----
17
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3727
SELECT 76 * MIN( + 33 ) * - - 88 - + CAST( 88 AS SIGNED ) + - 87 col2, + 21
----
220529
21

skipif mysql # not compatible
query II rowsort label-3727
SELECT 76 * MIN ( + 33 ) * - - 88 - + CAST ( 88 AS INTEGER ) + - 87 col2, + 21
----
220529
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT ALL - COUNT( + 70 )
----
-1

skipif mysql # not compatible
query I rowsort label-3728
SELECT ALL - COUNT ( + 70 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3729
SELECT - - 88 DIV + 65 + + 20 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-3729
SELECT - - 88 / + 65 + + 20 AS col1
----
21

query I rowsort
SELECT ALL - ( - 86 ) * - 79
----
-6794

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT + 50 * 89 * - COUNT( * ) * 61 * - - 78
----
-21173100

skipif mysql # not compatible
query I rowsort label-3731
SELECT + 50 * 89 * - COUNT ( * ) * 61 * - - 78
----
-21173100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3732
SELECT + - CAST( - - NULLIF ( - 88, 68 + ( - 30 ) / CAST( - COUNT( ( 42 ) ) AS SIGNED ) ) AS SIGNED ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-3732
SELECT + - CAST ( - - NULLIF ( - 88, 68 + ( - 30 ) / CAST ( - COUNT ( ( 42 ) ) AS INTEGER ) ) AS INTEGER ) AS col1
----
88

query I rowsort
SELECT DISTINCT + 88 * + 70 * - 79 AS col2
----
-486640

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT CASE 69 WHEN ( - COUNT( * ) ) * + COUNT( * ) + - 81 * - 77 THEN + 1 + + 82 WHEN - 29 + + 46 + - 25 * - - COUNT( * ) - + 94 * - ( 14 ) * - - COUNT( * ) * - 82 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3734
SELECT CASE 69 WHEN ( - COUNT ( * ) ) * + COUNT ( * ) + - 81 * - 77 THEN + 1 + + 82 WHEN - 29 + + 46 + - 25 * - - COUNT ( * ) - + 94 * - ( 14 ) * - - COUNT ( * ) * - 82 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( 1, - + 10, + 38 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT ALL + 96 + + MAX( ALL - 13 ) * - 0 * + 2 * + 79
----
96

skipif mysql # not compatible
query I rowsort label-3736
SELECT ALL + 96 + + MAX ( ALL - 13 ) * - 0 * + 2 * + 79
----
96

query I rowsort
SELECT 66 * - 45
----
-2970

query I rowsort
SELECT ALL - 24 + - + 81
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT DISTINCT SUM( DISTINCT + + 28 ) * + 13 AS col1
----
364

skipif mysql # not compatible
query I rowsort label-3739
SELECT DISTINCT SUM ( DISTINCT + + 28 ) * + 13 AS col1
----
364

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3740
SELECT SUM( + + 41 ) / - CAST( NULL AS SIGNED ) AS col2, + 30
----
NULL
30

skipif mysql # not compatible
query II rowsort label-3740
SELECT SUM ( + + 41 ) / - CAST ( NULL AS INTEGER ) AS col2, + 30
----
NULL
30

onlyif mysql # DIV for integer division: 
query I rowsort label-3741
SELECT ALL + 97 + 46 + ( - 89 ) DIV - 57 AS col0
----
144

skipif mysql # not compatible
query I rowsort label-3741
SELECT ALL + 97 + 46 + ( - 89 ) / - 57 AS col0
----
144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3742
SELECT COUNT( + 4 ) * + - 73 + + 22 + 80 DIV - 64 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-3742
SELECT COUNT ( + 4 ) * + - 73 + + 22 + 80 / - 64 AS col0
----
-52

query I rowsort
SELECT ALL 56 + + 49 AS col1
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-3744
SELECT ALL - COUNT( * ) AS col2, - 13 AS col1
----
-1
-13

skipif mysql # not compatible
query II rowsort label-3744
SELECT ALL - COUNT ( * ) AS col2, - 13 AS col1
----
-1
-13

query II rowsort
SELECT + 42 col1, + 49 * + - 0
----
42
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT 7 + - COUNT( * ) * + 50
----
-43

skipif mysql # not compatible
query I rowsort label-3746
SELECT 7 + - COUNT ( * ) * + 50
----
-43

query I rowsort
SELECT 81 * + 95 AS col1
----
7695

query II rowsort
SELECT - 97, + 4 AS col1
----
-97
4

query I rowsort
SELECT 90 - + - 94 + + 84 + 4 * - - 0 * + 39
----
268

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT - MAX( - + 33 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-3750
SELECT - MAX ( - + 33 ) AS col1
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3751
SELECT 0 - - CAST( - - MAX( ALL 21 ) AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-3751
SELECT 0 - - CAST ( - - MAX ( ALL 21 ) AS INTEGER )
----
21

query I rowsort
SELECT DISTINCT + 7 * 60 * + 56 AS col0
----
23520

query I rowsort
SELECT DISTINCT 31 - 41
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT ALL MIN( + 47 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-3754
SELECT ALL MIN ( + 47 ) AS col1
----
47

query I rowsort
SELECT DISTINCT ( + + 81 ) AS col1
----
81

query I rowsort
SELECT 53 + - + 2 * + 56
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-3757
SELECT ALL + 40, COALESCE ( - MIN( - + 64 ), + - 18 ) + COUNT( * ) AS col1
----
40
65

skipif mysql # not compatible
query II rowsort label-3757
SELECT ALL + 40, COALESCE ( - MIN ( - + 64 ), + - 18 ) + COUNT ( * ) AS col1
----
40
65

query I rowsort
SELECT 84 * + + 30 AS col0
----
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT 43 - - + 97 + + 27 + SUM( - 12 )
----
155

skipif mysql # not compatible
query I rowsort label-3759
SELECT 43 - - + 97 + + 27 + SUM ( - 12 )
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT - + COUNT( ALL + 18 )
----
-1

skipif mysql # not compatible
query I rowsort label-3760
SELECT - + COUNT ( ALL + 18 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3761
SELECT + + CAST( NULL AS SIGNED ) / 1 * 15
----
NULL

skipif mysql # not compatible
query I rowsort label-3761
SELECT + + CAST ( NULL AS INTEGER ) / 1 * 15
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3762
SELECT DISTINCT + CASE ( 89 ) WHEN - 59 / - 13 * - 92 * + + 38 * - - 78 + - - AVG ( - 86 ) + CAST( NULL AS DECIMAL ) THEN 89 ELSE + 18 + + 83 * + + 39 END AS col2
----
3255

skipif mysql # not compatible
query I rowsort label-3762
SELECT DISTINCT + CASE ( 89 ) WHEN - 59 / - 13 * - 92 * + + 38 * - - 78 + - - AVG ( - 86 ) + CAST ( NULL AS REAL ) THEN 89 ELSE + 18 + + 83 * + + 39 END AS col2
----
3255

query I rowsort
SELECT + - 47 + 17
----
-30

query I rowsort
SELECT DISTINCT 86 * - + 35
----
-3010

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3765
SELECT ALL - CAST( + + NULLIF ( 67, - 94 * - 45 * - + 82 ) AS SIGNED ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-3765
SELECT ALL - CAST ( + + NULLIF ( 67, - 94 * - 45 * - + 82 ) AS INTEGER ) AS col0
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3766
SELECT + CAST( NULL AS SIGNED ) * + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-3766
SELECT + CAST ( NULL AS INTEGER ) * + 55
----
NULL

query I rowsort
SELECT + 48 * + 97 AS col2
----
4656

query II rowsort
SELECT ALL + 32 col0, 88 - + ( + 57 ) * 94
----
32
-5270

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT + + MIN( DISTINCT - 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-3769
SELECT + + MIN ( DISTINCT - 72 )
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-3770
SELECT - - 90 * - 89 + - COUNT( * ) col0, COUNT( * ) * - 56
----
-8011
-56

skipif mysql # not compatible
query II rowsort label-3770
SELECT - - 90 * - 89 + - COUNT ( * ) col0, COUNT ( * ) * - 56
----
-8011
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-3771
SELECT ALL 90 * + 43 + ( + 10 ) + + - 5 DIV - - 35 * + 41 - 60
----
3820

skipif mysql # not compatible
query I rowsort label-3771
SELECT ALL 90 * + 43 + ( + 10 ) + + - 5 / - - 35 * + 41 - 60
----
3820

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3772
SELECT + - 18 DIV + + 1 - + 0 + - CASE + 73 WHEN + 24 THEN + - 11 + + 57 * 45 - + + 14 ELSE + COUNT( * ) END + 50 * 63 + 51 DIV 71 AS col2
----
3131

skipif mysql # not compatible
query I rowsort label-3772
SELECT + - 18 / + + 1 - + 0 + - CASE + 73 WHEN + 24 THEN + - 11 + + 57 * 45 - + + 14 ELSE + COUNT ( * ) END + 50 * 63 + 51 / 71 AS col2
----
3131

query I rowsort
SELECT ALL 84 * + 93 + 18
----
7830

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT DISTINCT COUNT( * ) * + COUNT( * ) * + 79 + ( - - 72 ) AS col2
----
151

skipif mysql # not compatible
query I rowsort label-3774
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) * + 79 + ( - - 72 ) AS col2
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT ALL 27 * MAX( DISTINCT + 74 ) * + CASE - 91 WHEN + 14 THEN - - 92 WHEN 45 * ( 25 ) * 29 + + - 93 + - 25 THEN + 57 WHEN + 6 * 6 + - CASE + 80 WHEN - 66 THEN - ( - 6 ) END - - - 91 THEN NULL ELSE - + 90 END + - + 64 + - 43 * - 43
----
-178035

skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL 27 * MAX ( DISTINCT + 74 ) * + CASE - 91 WHEN + 14 THEN - - 92 WHEN 45 * ( 25 ) * 29 + + - 93 + - 25 THEN + 57 WHEN + 6 * 6 + - CASE + 80 WHEN - 66 THEN - ( - 6 ) END - - - 91 THEN NULL ELSE - + 90 END + - + 64 + - 43 * - 43
----
-178035

query I rowsort
SELECT DISTINCT 15 * COALESCE ( ( 89 ), + - 3 ) AS col1
----
1335

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3777
SELECT DISTINCT - COALESCE ( 7, + - 93 DIV - - 81 DIV - 28 ) * + - 0 + + MIN( DISTINCT + + 74 ) + - 46 + - - 70 * - 66 + + ( 7 )
----
-4585

skipif mysql # not compatible
query I rowsort label-3777
SELECT DISTINCT - COALESCE ( 7, + - 93 / - - 81 / - 28 ) * + - 0 + + MIN ( DISTINCT + + 74 ) + - 46 + - - 70 * - 66 + + ( 7 )
----
-4585

query I rowsort
SELECT DISTINCT 90 * + + 1 + - ( + 35 )
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-3779
SELECT - 52 DIV 65 - - - 67 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-3779
SELECT - 52 / 65 - - - 67 AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT 2 * COUNT( * ) + + NULLIF ( - + 10, + 69 / + 33 + 87 / - - 78 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-3780
SELECT 2 * COUNT ( * ) + + NULLIF ( - + 10, + 69 / + 33 + 87 / - - 78 ) AS col0
----
-8

query I rowsort
SELECT - 38 + 80 * + 33
----
2602

query II rowsort
SELECT + ( - 6 ), + 4 AS col0
----
-6
4

query I rowsort
SELECT - 32 * - 18
----
576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3784
SELECT ALL + COUNT( CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3784
SELECT ALL + COUNT ( CAST ( NULL AS INTEGER ) ) AS col0
----
0

query I rowsort
SELECT - 2 + + - 22 * - 83
----
1824

query I rowsort
SELECT - 78 + - + 4 + + 47
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3787
SELECT ALL + 73 * + 47 - COUNT( * ) + - 16 DIV - ( ( + 44 ) ) AS col1
----
3430

skipif mysql # not compatible
query I rowsort label-3787
SELECT ALL + 73 * + 47 - COUNT ( * ) + - 16 / - ( ( + 44 ) ) AS col1
----
3430

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT - 96 * - + COUNT( * ) * - 50
----
-4800

skipif mysql # not compatible
query I rowsort label-3788
SELECT - 96 * - + COUNT ( * ) * - 50
----
-4800

onlyif mysql # DIV for integer division: 
query II rowsort label-3789
SELECT ALL - 57 DIV + 86 AS col2, 20 * 36 AS col2
----
0
720

skipif mysql # not compatible
query II rowsort label-3789
SELECT ALL - 57 / + 86 AS col2, 20 * 36 AS col2
----
0
720

query I rowsort
SELECT DISTINCT - 48 - 68 AS col1
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT ALL - - 31 * 86 * + COUNT( * ) AS col1
----
2666

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL - - 31 * 86 * + COUNT ( * ) AS col1
----
2666

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT - - COUNT( * ) * - 20 * + + 37 * 29 + - 78 * - 72 * + 63 * - 21 col2
----
-7451428

skipif mysql # not compatible
query I rowsort label-3792
SELECT - - COUNT ( * ) * - 20 * + + 37 * 29 + - 78 * - 72 * + 63 * - 21 col2
----
-7451428

query I rowsort
SELECT + - 37 + - 0 * + - 5
----
-37

query I rowsort
SELECT ALL + + 18 * - 57 AS col1
----
-1026

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3795
SELECT - MAX( 10 ) + - + 3 DIV 22 * + 10 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-3795
SELECT - MAX ( 10 ) + - + 3 / 22 * + 10 AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT ALL + MAX( ALL - 8 ) + 30 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-3796
SELECT ALL + MAX ( ALL - 8 ) + 30 AS col2
----
22

query I rowsort
SELECT + + 68 + - 11 AS col2
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3798
SELECT DISTINCT CAST( + 68 AS SIGNED ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-3798
SELECT DISTINCT CAST ( + 68 AS INTEGER ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT - - 99 * 43 * - + COUNT( * )
----
-4257

skipif mysql # not compatible
query I rowsort label-3799
SELECT - - 99 * 43 * - + COUNT ( * )
----
-4257

query I rowsort
SELECT + - 94 + + 17
----
-77

query I rowsort
SELECT ALL CASE - 70 WHEN ( + - 16 ) * + - 37 THEN + 96 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT DISTINCT 20 + + + COUNT( * ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-3802
SELECT DISTINCT 20 + + + COUNT ( * ) AS col2
----
21

query I rowsort
SELECT - COALESCE ( - - 25, + 56 ) AS col2
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-3804
SELECT + - 44 DIV + + 93
----
0

skipif mysql # not compatible
query I rowsort label-3804
SELECT + - 44 / + + 93
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3805
SELECT ALL COUNT( * ) + 29 AS col0, - 95
----
30
-95

skipif mysql # not compatible
query II rowsort label-3805
SELECT ALL COUNT ( * ) + 29 AS col0, - 95
----
30
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT + 8 + + CASE - + 35 WHEN + 65 + - COUNT( * ) THEN - 4 + - 54 * - 49 + 93 + + NULLIF ( - - 34, + 89 * COALESCE ( + MIN( ALL + 30 ), - + 12 ) * - + NULLIF ( + 43, + 38 + 95 ) + - - 46 - - 15 - - 23 * - ( - 63 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3806
SELECT + 8 + + CASE - + 35 WHEN + 65 + - COUNT ( * ) THEN - 4 + - 54 * - 49 + 93 + + NULLIF ( - - 34, + 89 * COALESCE ( + MIN ( ALL + 30 ), - + 12 ) * - + NULLIF ( + 43, + 38 + 95 ) + - - 46 - - 15 - - 23 * - ( - 63 ) ) END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3807
SELECT - ( - 76 ), 3 DIV 94 AS col1
----
76
0

skipif mysql # not compatible
query II rowsort label-3807
SELECT - ( - 76 ), 3 / 94 AS col1
----
76
0

query I rowsort
SELECT + 92 / + CASE - 30 WHEN - ( 17 ) * 83 * + 64 / - + 19 * - + 76 THEN 88 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3809
SELECT CAST( + + 12 AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-3809
SELECT CAST ( + + 12 AS INTEGER )
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-3810
SELECT ALL 48 DIV + 2 + - ( - 56 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-3810
SELECT ALL 48 / + 2 + - ( - 56 ) AS col2
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3811
SELECT ALL + ( COUNT( ALL 77 ) ) DIV - 43 + - - 64 * + 81
----
5184

skipif mysql # not compatible
query I rowsort label-3811
SELECT ALL + ( COUNT ( ALL 77 ) ) / - 43 + - - 64 * + 81
----
5184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3812
SELECT + ( + - CAST( + + 62 AS SIGNED ) ) + + 50 - + 34 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-3812
SELECT + ( + - CAST ( + + 62 AS INTEGER ) ) + + 50 - + 34 AS col1
----
-46

query I rowsort
SELECT + COALESCE ( 8, 24 + - 35 ) AS col1
----
8

query I rowsort
SELECT + 74 * 40
----
2960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3815
SELECT CAST( 10 AS SIGNED ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-3815
SELECT CAST ( 10 AS INTEGER ) AS col1
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3816
SELECT - 85 * - 0 * - - COUNT( * ) DIV 33 + + - 84 + - 3 * + 89 + - COALESCE ( + 60, - 57 + - 24 ) AS col1
----
-411

skipif mysql # not compatible
query I rowsort label-3816
SELECT - 85 * - 0 * - - COUNT ( * ) / 33 + + - 84 + - 3 * + 89 + - COALESCE ( + 60, - 57 + - 24 ) AS col1
----
-411

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT + COUNT( * ) * - 27 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-3817
SELECT + COUNT ( * ) * - 27 AS col1
----
-27

query I rowsort
SELECT ( + ( 70 ) )
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3819
SELECT + COUNT( * ) DIV - - 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3819
SELECT + COUNT ( * ) / - - 86 AS col2
----
0

query II rowsort
SELECT ( - ( + 15 ) ) AS col2, 90 AS col1
----
-15
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3821
SELECT + CAST( + 15 AS SIGNED ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-3821
SELECT + CAST ( + 15 AS INTEGER ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT ALL + 62 * 15 * + MAX( + - 80 )
----
-74400

skipif mysql # not compatible
query I rowsort label-3822
SELECT ALL + 62 * 15 * + MAX ( + - 80 )
----
-74400

query II rowsort
SELECT ALL + 74 AS col2, 65 + + - 33 AS col1
----
74
32

query I rowsort
SELECT ( 37 ) col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT ALL - ( 38 ) * + - COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL - ( 38 ) * + - COUNT ( * )
----
38

query I rowsort
SELECT - 72 * + - 32
----
2304

query I rowsort
SELECT ALL 78 * + + 62
----
4836

onlyif mysql # aggregate syntax: 
query II rowsort label-3828
SELECT ALL + 70 col1, + COUNT( * ) AS col1
----
70
1

skipif mysql # not compatible
query II rowsort label-3828
SELECT ALL + 70 col1, + COUNT ( * ) AS col1
----
70
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3829
SELECT + CAST( + ( + 0 ) AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3829
SELECT + CAST ( + ( + 0 ) AS INTEGER ) AS col1
----
0

query I rowsort
SELECT - 66 + + - 4 AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT DISTINCT + SUM( ALL - 10 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-3831
SELECT DISTINCT + SUM ( ALL - 10 ) AS col2
----
-10

query I rowsort
SELECT - 23 * + + 41 + - 41
----
-984

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3833
SELECT ALL 35 AS col2, + CAST( NULL AS SIGNED ) AS col2
----
35
NULL

skipif mysql # not compatible
query II rowsort label-3833
SELECT ALL 35 AS col2, + CAST ( NULL AS INTEGER ) AS col2
----
35
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT DISTINCT + COUNT( * ) * 18 * - + 63 AS col1
----
-1134

skipif mysql # not compatible
query I rowsort label-3834
SELECT DISTINCT + COUNT ( * ) * 18 * - + 63 AS col1
----
-1134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3835
SELECT - 81 - + - CAST( - + CASE 37 WHEN + + 63 * MIN( 15 ) + + + 95 + 27 + - COUNT( * ) * - + COUNT( * ) * + - 26 THEN + 59 ELSE + COUNT( * ) - - COUNT( * ) * + 64 END AS SIGNED ) AS col1
----
-146

skipif mysql # not compatible
query I rowsort label-3835
SELECT - 81 - + - CAST ( - + CASE 37 WHEN + + 63 * MIN ( 15 ) + + + 95 + 27 + - COUNT ( * ) * - + COUNT ( * ) * + - 26 THEN + 59 ELSE + COUNT ( * ) - - COUNT ( * ) * + 64 END AS INTEGER ) AS col1
----
-146

query I rowsort
SELECT ALL + 83 + - 15 * - 75 AS col0
----
1208

onlyif mysql # aggregate syntax: 
query II rowsort label-3837
SELECT ALL + COUNT( * ) AS col0, + 83 AS col0
----
1
83

skipif mysql # not compatible
query II rowsort label-3837
SELECT ALL + COUNT ( * ) AS col0, + 83 AS col0
----
1
83

query I rowsort
SELECT ( + + 52 ) * - + NULLIF ( + 89, + - 61 )
----
-4628

query I rowsort
SELECT ALL + 3 + 96 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT ALL - 45 * 23 + + COUNT( ALL - 28 ) AS col1
----
-1034

skipif mysql # not compatible
query I rowsort label-3840
SELECT ALL - 45 * 23 + + COUNT ( ALL - 28 ) AS col1
----
-1034

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3841
SELECT ALL - - COUNT( * ) DIV + + ( 24 )
----
0

skipif mysql # not compatible
query I rowsort label-3841
SELECT ALL - - COUNT ( * ) / + + ( 24 )
----
0

query I rowsort
SELECT + 30 - - 91 AS col0
----
121

query I rowsort
SELECT DISTINCT - 1 + + - 97 AS col0
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3844
SELECT ALL + 42 + + 81 DIV - MIN( ( + + 10 ) ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-3844
SELECT ALL + 42 + + 81 / - MIN ( ( + + 10 ) ) AS col1
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-3845
SELECT ALL - - 11 + + 28 + - 60 DIV 4 * 61 AS col0
----
-876

skipif mysql # not compatible
query I rowsort label-3845
SELECT ALL - - 11 + + 28 + - 60 / 4 * 61 AS col0
----
-876

onlyif mysql # DIV for integer division: 
query I rowsort label-3846
SELECT 93 DIV + 85
----
1

skipif mysql # not compatible
query I rowsort label-3846
SELECT 93 / + 85
----
1

query I rowsort
SELECT DISTINCT + COALESCE ( + - 14, 35 ) + 62
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT DISTINCT - - COUNT( DISTINCT + ( - 69 ) ) + ( + 75 ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-3848
SELECT DISTINCT - - COUNT ( DISTINCT + ( - 69 ) ) + ( + 75 ) AS col0
----
76

query I rowsort
SELECT DISTINCT 54 + + - ( + 70 ) * + 75 * 5 + - + 82 - - 59 AS col1
----
-26219

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT DISTINCT - COUNT( * ) + 76 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-3850
SELECT DISTINCT - COUNT ( * ) + 76 AS col2
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3851
SELECT DISTINCT 60, + ( - - 90 ) + COUNT( * ) col0
----
60
91

skipif mysql # not compatible
query II rowsort label-3851
SELECT DISTINCT 60, + ( - - 90 ) + COUNT ( * ) col0
----
60
91

query I rowsort
SELECT ALL 80 + - 14 * - 77
----
1158

query I rowsort
SELECT 91 * - 83 AS col1
----
-7553

query II rowsort
SELECT ALL - 39, 10 AS col2
----
-39
10

query I rowsort
SELECT ALL 44 - 69 + + - ( ( + + 96 ) )
----
-121

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3856
SELECT COUNT( * ) * COALESCE ( + 37, ( + ( - + NULLIF ( + 9, + CAST( ( - 94 ) AS DECIMAL ) ) ) ) ) - - 65
----
102

skipif mysql # not compatible
query I rowsort label-3856
SELECT COUNT ( * ) * COALESCE ( + 37, ( + ( - + NULLIF ( + 9, + CAST ( ( - 94 ) AS REAL ) ) ) ) ) - - 65
----
102

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3857
SELECT + 44 DIV + - COALESCE ( - 63, - CASE 25 WHEN 91 - + + 84 * + 77 THEN NULL WHEN - 24 + + 38 THEN + CAST( NULL AS SIGNED ) DIV - - 17 ELSE NULL END + + NULLIF ( - + 83, + 55 ) * + - 78 * CAST( NULL AS SIGNED ) ) + - - 49
----
49

skipif mysql # not compatible
query I rowsort label-3857
SELECT + 44 / + - COALESCE ( - 63, - CASE 25 WHEN 91 - + + 84 * + 77 THEN NULL WHEN - 24 + + 38 THEN + CAST ( NULL AS INTEGER ) / - - 17 ELSE NULL END + + NULLIF ( - + 83, + 55 ) * + - 78 * CAST ( NULL AS INTEGER ) ) + - - 49
----
49

query II rowsort
SELECT ALL - 61, 16 + - + 91 AS col1
----
-61
-75

query I rowsort
SELECT 0 + - + 17 AS col1
----
-17

query I rowsort
SELECT ALL 14 * 44
----
616

onlyif mysql # aggregate syntax: 
query II rowsort label-3861
SELECT ALL - 74 AS col1, + COUNT( * )
----
-74
1

skipif mysql # not compatible
query II rowsort label-3861
SELECT ALL - 74 AS col1, + COUNT ( * )
----
-74
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT - SUM( ALL 91 ) * 53 + + ( - 91 ) + - 93 * - + NULLIF ( + 68, + - MIN( ALL + 79 ) )
----
1410

skipif mysql # not compatible
query I rowsort label-3862
SELECT - SUM ( ALL 91 ) * 53 + + ( - 91 ) + - 93 * - + NULLIF ( + 68, + - MIN ( ALL + 79 ) )
----
1410

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT DISTINCT - MAX( - 71 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-3863
SELECT DISTINCT - MAX ( - 71 ) AS col1
----
71

query I rowsort
SELECT 0 + + 77 AS col2
----
77

query I rowsort
SELECT 35 - + 7 col2
----
28

query I rowsort
SELECT 6 * - - 60 AS col0
----
360

query II rowsort
SELECT + 5, 98 AS col1
----
5
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3868
SELECT DISTINCT - 77 AS col1, + 26 + - CAST( NULL AS SIGNED ) + + - COUNT( * ) AS col0
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-3868
SELECT DISTINCT - 77 AS col1, + 26 + - CAST ( NULL AS INTEGER ) + + - COUNT ( * ) AS col0
----
-77
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3869
SELECT ALL NULLIF ( - CASE 8 WHEN 30 + + 87 * 87 THEN NULL ELSE - 45 + + 25 END, 57 * + + 64 ) DIV - + NULLIF ( + + 46, - 12 )
----
0

skipif mysql # not compatible
query I rowsort label-3869
SELECT ALL NULLIF ( - CASE 8 WHEN 30 + + 87 * 87 THEN NULL ELSE - 45 + + 25 END, 57 * + + 64 ) / - + NULLIF ( + + 46, - 12 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT CASE 23 WHEN + 22 THEN 56 + + + 96 + + SUM( - 48 ) * - 53 / - 98 WHEN - - 30 THEN NULL ELSE NULL END / - COALESCE ( + - 51, 73 * - 45 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3870
SELECT CASE 23 WHEN + 22 THEN 56 + + + 96 + + SUM ( - 48 ) * - 53 / - 98 WHEN - - 30 THEN NULL ELSE NULL END / - COALESCE ( + - 51, 73 * - 45 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3871
SELECT 76 * + 78 + + - COUNT( * ) + 99, 93 col1
----
6026
93

skipif mysql # not compatible
query II rowsort label-3871
SELECT 76 * + 78 + + - COUNT ( * ) + 99, 93 col1
----
6026
93

query I rowsort
SELECT 4 * + 38 + 50 * - 78 AS col2
----
-3748

onlyif mysql # DIV for integer division: 
query I rowsort label-3873
SELECT DISTINCT 26 DIV 28 + + + 31 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-3873
SELECT DISTINCT 26 / 28 + + + 31 AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT DISTINCT + 87 + - + 94 + + COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-3874
SELECT DISTINCT + 87 + - + 94 + + COUNT ( * )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT + 78 + - - 47 * + COUNT( * ) AS col0
----
125

skipif mysql # not compatible
query I rowsort label-3875
SELECT + 78 + - - 47 * + COUNT ( * ) AS col0
----
125

query I rowsort
SELECT ALL - + 51 + 6 + - + 88
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT ALL + - 88 + - COUNT( - - 76 ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-3877
SELECT ALL + - 88 + - COUNT ( - - 76 ) AS col0
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-3878
SELECT - - 51, 66 - - ( + COUNT( 28 ) ) * - 52 AS col1
----
51
14

skipif mysql # not compatible
query II rowsort label-3878
SELECT - - 51, 66 - - ( + COUNT ( 28 ) ) * - 52 AS col1
----
51
14

query I rowsort
SELECT - 63 * + 13 + + 71
----
-748

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3880
SELECT COUNT( * ) AS col2, ( CAST( NULL AS SIGNED ) )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3880
SELECT COUNT ( * ) AS col2, ( CAST ( NULL AS INTEGER ) )
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT ALL + ( + - 57 ) + COUNT( * ) + - 34 + - 82 AS col2
----
-172

skipif mysql # not compatible
query I rowsort label-3881
SELECT ALL + ( + - 57 ) + COUNT ( * ) + - 34 + - 82 AS col2
----
-172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3882
SELECT - COUNT( * ) AS col2, - CAST( NULL AS SIGNED ) * - 99 + + 50 AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3882
SELECT - COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) * - 99 + + 50 AS col1
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT + COUNT( DISTINCT + 44 ) + - - MAX( DISTINCT + - 19 ) + + - 92 col0
----
-110

skipif mysql # not compatible
query I rowsort label-3883
SELECT + COUNT ( DISTINCT + 44 ) + - - MAX ( DISTINCT + - 19 ) + + - 92 col0
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT COUNT( - 45 ) * + - 52 col1
----
-52

skipif mysql # not compatible
query I rowsort label-3884
SELECT COUNT ( - 45 ) * + - 52 col1
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3885
SELECT ALL CASE - COUNT( * ) WHEN COALESCE ( + + 82, COUNT( * ) + + - CAST( + + 36 AS SIGNED ), + - 28 ) THEN - 86 / + 6 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3885
SELECT ALL CASE - COUNT ( * ) WHEN COALESCE ( + + 82, COUNT ( * ) + + - CAST ( + + 36 AS INTEGER ), + - 28 ) THEN - 86 / + 6 ELSE NULL END
----
NULL

query I rowsort
SELECT 7 + - - 16
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT ALL - COUNT( * ) + - ( MAX( + 27 ) ) * - 56 + + + COUNT( * )
----
1512

skipif mysql # not compatible
query I rowsort label-3887
SELECT ALL - COUNT ( * ) + - ( MAX ( + 27 ) ) * - 56 + + + COUNT ( * )
----
1512

query I rowsort
SELECT - 26 + 3 * - + 49 AS col1
----
-173

query I rowsort
SELECT - + 33 col0
----
-33

query I rowsort
SELECT 1 + 61 - 27 * 72
----
-1882

query I rowsort
SELECT 10 + 47
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3892
SELECT 91 + - CAST( - ( 82 ) AS SIGNED )
----
173

skipif mysql # not compatible
query I rowsort label-3892
SELECT 91 + - CAST ( - ( 82 ) AS INTEGER )
----
173

query I rowsort
SELECT DISTINCT - 61 * - 27 col2
----
1647

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-3894
SELECT DISTINCT - 89 * CASE + - 57 WHEN + NULLIF ( 49, - CASE 32 WHEN - CAST( - 90 AS DECIMAL ) THEN NULL WHEN - + 74 + 41 THEN + 59 END ) THEN NULL ELSE 87 END DIV 64 - + 50, 18 DIV 74 AS col0
----
-170
0

skipif mysql # not compatible
query II rowsort label-3894
SELECT DISTINCT - 89 * CASE + - 57 WHEN + NULLIF ( 49, - CASE 32 WHEN - CAST ( - 90 AS REAL ) THEN NULL WHEN - + 74 + 41 THEN + 59 END ) THEN NULL ELSE 87 END / 64 - + 50, 18 / 74 AS col0
----
-170
0

query I rowsort
SELECT ALL - NULLIF ( - 33, + 11 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT ALL - SUM( + 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-3896
SELECT ALL - SUM ( + 1 )
----
-1

query I rowsort
SELECT NULLIF ( + 17, - 84 ) col0
----
17

query I rowsort
SELECT 16 * + COALESCE ( + 68, 93 ) * + 29 + 67
----
31619

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3899
SELECT ALL - MAX( - CAST( NULL AS SIGNED ) ), 58 AS col2
----
NULL
58

skipif mysql # not compatible
query II rowsort label-3899
SELECT ALL - MAX ( - CAST ( NULL AS INTEGER ) ), 58 AS col2
----
NULL
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3900
SELECT DISTINCT - CAST( - 75 AS SIGNED ) AS col1, - 74 * MIN( DISTINCT - 79 ) + 35 - - 82
----
75
5963

skipif mysql # not compatible
query II rowsort label-3900
SELECT DISTINCT - CAST ( - 75 AS INTEGER ) AS col1, - 74 * MIN ( DISTINCT - 79 ) + 35 - - 82
----
75
5963

query I rowsort
SELECT 6 * + - 39 col2
----
-234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3902
SELECT DISTINCT - CASE + - CAST( 65 AS SIGNED ) WHEN - 48 THEN + + ( + + CASE 18 WHEN - 76 + + COUNT( * ) - - - ( - 50 ) - + - 35 + CAST( + 11 AS SIGNED ) + - + 39 / + CAST( NULL AS SIGNED ) - 20 * + + MAX( + - 54 ) THEN 86 + 57 WHEN - 90 THEN + - 73 * - + 43 / - 62 / - - 25 + - 19 + + ( 80 ) WHEN - 20 - + 38 THEN NULL END ) + 71 END col2, COALESCE ( - + CAST( NULL AS SIGNED ), 7, + - 41 )
----
NULL
7

skipif mysql # not compatible
query II rowsort label-3902
SELECT DISTINCT - CASE + - CAST ( 65 AS INTEGER ) WHEN - 48 THEN + + ( + + CASE 18 WHEN - 76 + + COUNT ( * ) - - - ( - 50 ) - + - 35 + CAST ( + 11 AS INTEGER ) + - + 39 / + CAST ( NULL AS INTEGER ) - 20 * + + MAX ( + - 54 ) THEN 86 + 57 WHEN - 90 THEN + - 73 * - + 43 / - 62 / - - 25 + - 19 + + ( 80 ) WHEN - 20 - + 38 THEN NULL END ) + 71 END col2, COALESCE ( - + CAST ( NULL AS INTEGER ), 7, + - 41 )
----
NULL
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT + COUNT( * ) * 68 * + ( - 85 )
----
-5780

skipif mysql # not compatible
query I rowsort label-3903
SELECT + COUNT ( * ) * 68 * + ( - 85 )
----
-5780

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT MIN( ALL + 36 )
----
36

skipif mysql # not compatible
query I rowsort label-3904
SELECT MIN ( ALL + 36 )
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3905
SELECT ALL 36 * - 97 + + + 11 * + 51 + - AVG ( - 17 ) / 58 * CAST( NULL AS SIGNED ) + - + MAX( + 8 ) * 61 + - 91 + - 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3905
SELECT ALL 36 * - 97 + + + 11 * + 51 + - AVG ( - 17 ) / 58 * CAST ( NULL AS INTEGER ) + - + MAX ( + 8 ) * 61 + - 91 + - 9 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3906
SELECT ALL - 60 * + CAST( NULL AS SIGNED ) + 2 + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-3906
SELECT ALL - 60 * + CAST ( NULL AS INTEGER ) + 2 + 18
----
NULL

query I rowsort
SELECT + 99 * 56 * + 27 + - - 99 - - 67
----
149854

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT + - 6 + + 62 + 75 - + COUNT( * ) AS col1
----
130

skipif mysql # not compatible
query I rowsort label-3908
SELECT + - 6 + + 62 + 75 - + COUNT ( * ) AS col1
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT DISTINCT + COUNT( * ) + - 54 - + 39 * 14
----
-599

skipif mysql # not compatible
query I rowsort label-3909
SELECT DISTINCT + COUNT ( * ) + - 54 - + 39 * 14
----
-599

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3910
SELECT ALL + COALESCE ( MAX( ALL + 28 ), 9 + + + 88 * - 38 ) + 89 + COUNT( ALL 55 ) * 3 DIV 47 * + 14 DIV + 25 AS col1
----
117

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL + COALESCE ( MAX ( ALL + 28 ), 9 + + + 88 * - 38 ) + 89 + COUNT ( ALL 55 ) * 3 / 47 * + 14 / + 25 AS col1
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT + - SUM( DISTINCT - 19 ) - - - 78 + + 97 * + 85 + + 20 AS col1
----
8206

skipif mysql # not compatible
query I rowsort label-3911
SELECT + - SUM ( DISTINCT - 19 ) - - - 78 + + 97 * + 85 + + 20 AS col1
----
8206

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3912
SELECT ALL + 51 DIV COUNT( DISTINCT + - 24 ) + COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-3912
SELECT ALL + 51 / COUNT ( DISTINCT + - 24 ) + COUNT ( * )
----
52

query I rowsort
SELECT DISTINCT + NULLIF ( + 69, 86 ) AS col1
----
69

query I rowsort
SELECT ALL + 82 + + 46 AS col1
----
128

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3915
SELECT ALL 27 - - + 74 AS col2, CAST( NULL AS SIGNED ) AS col2
----
101
NULL

skipif mysql # not compatible
query II rowsort label-3915
SELECT ALL 27 - - + 74 AS col2, CAST ( NULL AS INTEGER ) AS col2
----
101
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3916
SELECT ALL + COUNT( * ) - + - 47 AS col1, 99 AS col2
----
48
99

skipif mysql # not compatible
query II rowsort label-3916
SELECT ALL + COUNT ( * ) - + - 47 AS col1, 99 AS col2
----
48
99

query I rowsort
SELECT + 15 * - 99 + + 58 * + - 69
----
-5487

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT - COALESCE ( - - 80, 65 - + 33 * - SUM( - 24 ), - + 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-3918
SELECT - COALESCE ( - - 80, 65 - + 33 * - SUM ( - 24 ), - + 80 )
----
-80

query I rowsort
SELECT + NULLIF ( - 73, - COALESCE ( - 89, 13 * - + 41 ) / + - 3 * - + ( 29 ) - + 72 * + 6 + - ( + 28 ) + 21 ) * - + 46
----
3358

query I rowsort
SELECT - 15 * + + 97 AS col0
----
-1455

query II rowsort
SELECT 82 AS col0, + 82 col2
----
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT DISTINCT SUM( ALL - 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-3922
SELECT DISTINCT SUM ( ALL - 5 )
----
-5

query I rowsort
SELECT + 80 * - + 28 AS col0
----
-2240

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3924
SELECT ALL + CAST( NULL AS SIGNED ) / - ( + 37 ), 7 AS col2
----
NULL
7

skipif mysql # not compatible
query II rowsort label-3924
SELECT ALL + CAST ( NULL AS INTEGER ) / - ( + 37 ), 7 AS col2
----
NULL
7

query I rowsort
SELECT - 97 - + 77 col0
----
-174

query II rowsort
SELECT DISTINCT + 85 * 80 * + 46 AS col2, - 32 * + 22
----
312800
-704

onlyif mysql # DIV for integer division: 
query I rowsort label-3927
SELECT - 32 DIV 14 col0
----
-2

skipif mysql # not compatible
query I rowsort label-3927
SELECT - 32 / 14 col0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3928
SELECT CAST( + 83 AS SIGNED ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-3928
SELECT CAST ( + 83 AS INTEGER ) AS col2
----
83

onlyif mysql # DIV for integer division: 
query II rowsort label-3929
SELECT 12 DIV - 43 + 73 AS col2, 3
----
73
3

skipif mysql # not compatible
query II rowsort label-3929
SELECT 12 / - 43 + 73 AS col2, 3
----
73
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT ( + + ( + - NULLIF ( - COUNT( * ), 16 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-3930
SELECT ( + + ( + - NULLIF ( - COUNT ( * ), 16 ) ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3931
SELECT ALL - MAX( - 36 ) / - CAST( NULL AS SIGNED ) * 57 + - 84 + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-3931
SELECT ALL - MAX ( - 36 ) / - CAST ( NULL AS INTEGER ) * 57 + - 84 + 6
----
NULL

query I rowsort
SELECT 3 * + 34 + 23
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3933
SELECT ( + CASE - COALESCE ( - - 32, - 56 ) WHEN + COUNT( * ) + - + CAST( NULL AS SIGNED ) / + NULLIF ( - + 83, + 61 ) * - ( - - 72 ) - - 75 THEN 58 + 18 END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3933
SELECT ( + CASE - COALESCE ( - - 32, - 56 ) WHEN + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) / + NULLIF ( - + 83, + 61 ) * - ( - - 72 ) - - 75 THEN 58 + 18 END ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3934
SELECT ALL + 70 DIV + COUNT( + ( - 10 ) ) + + 39 + 64 AS col2
----
173

skipif mysql # not compatible
query I rowsort label-3934
SELECT ALL + 70 / + COUNT ( + ( - 10 ) ) + + 39 + 64 AS col2
----
173

query I rowsort
SELECT - 90 + + - 58
----
-148

onlyif mysql # DIV for integer division: 
query I rowsort label-3936
SELECT ALL + 92 * 48 DIV + + 3 + + 46
----
1518

skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL + 92 * 48 / + + 3 + + 46
----
1518

query I rowsort
SELECT ALL + + ( + 40 ) col1
----
40

query I rowsort
SELECT ALL - 63 * - 75 * - 45 + - ( - 34 ) AS col1
----
-212591

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT + + 48 * 18 * - + MIN( ALL - 78 ) * - - COALESCE ( - 31, - 58 ) * + 40 + - 81 * - + 48 - + 4 - - COUNT( * ) AS col2
----
-83562195

skipif mysql # not compatible
query I rowsort label-3939
SELECT + + 48 * 18 * - + MIN ( ALL - 78 ) * - - COALESCE ( - 31, - 58 ) * + 40 + - 81 * - + 48 - + 4 - - COUNT ( * ) AS col2
----
-83562195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3940
SELECT - NULLIF ( - 68, + COUNT( ALL - + 20 ) + 2 - - + 88 * + + CASE ( - 95 ) WHEN - COUNT( * ) THEN NULL WHEN + 16 THEN + 36 END ) * - 14 + - + COUNT( * ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3940
SELECT - NULLIF ( - 68, + COUNT ( ALL - + 20 ) + 2 - - + 88 * + + CASE ( - 95 ) WHEN - COUNT ( * ) THEN NULL WHEN + 16 THEN + 36 END ) * - 14 + - + COUNT ( * ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 63 + 97
----
34

query I rowsort
SELECT ALL 25 * 80 * + 60 - + 39 col2
----
119961

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3943
SELECT DISTINCT + NULLIF ( - 77, + - ( + - COUNT( * ) ) * - COUNT( * ) + COALESCE ( - - 94, - - ( - + CASE - COUNT( * ) WHEN 10 + + 94 + - - 68 THEN - 73 * - + 38 WHEN - COUNT( * ) + - CAST( + + 22 AS SIGNED ) * + 19 THEN 2 * 19 + - 16 - + NULLIF ( - - MIN( 25 ), + + 14 / ( - 94 ) - AVG ( - 37 ) ) ELSE + ( 48 ) END ) ) / + ( + 66 ) + + + CASE + 66 WHEN - 93 THEN 28 + + 12 WHEN 61 / 73 THEN 82 ELSE NULL END * ( - 94 / 42 ) ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-3943
SELECT DISTINCT + NULLIF ( - 77, + - ( + - COUNT ( * ) ) * - COUNT ( * ) + COALESCE ( - - 94, - - ( - + CASE - COUNT ( * ) WHEN 10 + + 94 + - - 68 THEN - 73 * - + 38 WHEN - COUNT ( * ) + - CAST ( + + 22 AS INTEGER ) * + 19 THEN 2 * 19 + - 16 - + NULLIF ( - - MIN ( 25 ), + + 14 / ( - 94 ) - AVG ( - 37 ) ) ELSE + ( 48 ) END ) ) / + ( + 66 ) + + + CASE + 66 WHEN - 93 THEN 28 + + 12 WHEN 61 / 73 THEN 82 ELSE NULL END * ( - 94 / 42 ) ) AS col0
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3944
SELECT DISTINCT + + MAX( CAST( 46 AS SIGNED ) ) * 84 AS col1, COUNT( * ) AS col2
----
3864
1

skipif mysql # not compatible
query II rowsort label-3944
SELECT DISTINCT + + MAX ( CAST ( 46 AS INTEGER ) ) * 84 AS col1, COUNT ( * ) AS col2
----
3864
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3945
SELECT + + CAST( - 23 AS SIGNED ) DIV 95 + + - 75 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-3945
SELECT + + CAST ( - 23 AS INTEGER ) / 95 + + - 75 AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT - + 39 + - 84 + - - MAX( - + 23 ) + - - 92 + - 18 + + 80 * + + 24 AS col2
----
1848

skipif mysql # not compatible
query I rowsort label-3946
SELECT - + 39 + - 84 + - - MAX ( - + 23 ) + - - 92 + - 18 + + 80 * + + 24 AS col2
----
1848

query I rowsort
SELECT + - 75 + - 13 col0
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-3948
SELECT - COUNT( * ), 84 AS col1
----
-1
84

skipif mysql # not compatible
query II rowsort label-3948
SELECT - COUNT ( * ), 84 AS col1
----
-1
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT + 35 * - + CASE WHEN NOT NULL = 94 THEN + + 9 * - ( + COUNT( * ) ) * - 45 + - - 48 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3949
SELECT + 35 * - + CASE WHEN NOT NULL = 94 THEN + + 9 * - ( + COUNT ( * ) ) * - 45 + - - 48 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3950
SELECT ALL 5 DIV - - 22
----
0

skipif mysql # not compatible
query I rowsort label-3950
SELECT ALL 5 / - - 22
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT + 75 + - NULLIF ( + 57, - + COUNT( * ) ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-3951
SELECT + 75 + - NULLIF ( + 57, - + COUNT ( * ) ) AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT + 4 + - 0 - - CASE 38 WHEN + MIN( DISTINCT - 23 ) THEN + 6 WHEN - 51 THEN - - ( 42 ) ELSE + 13 END
----
17

skipif mysql # not compatible
query I rowsort label-3952
SELECT + 4 + - 0 - - CASE 38 WHEN + MIN ( DISTINCT - 23 ) THEN + 6 WHEN - 51 THEN - - ( 42 ) ELSE + 13 END
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-3953
SELECT ALL - 16 DIV - 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3953
SELECT ALL - 16 / - 58 AS col0
----
0

query I rowsort
SELECT + 56 * - + 3
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT + 74 + + 93 * + - 29 * - ( + - 36 ) * - - COUNT( * ) col2
----
-97018

skipif mysql # not compatible
query I rowsort label-3955
SELECT + 74 + + 93 * + - 29 * - ( + - 36 ) * - - COUNT ( * ) col2
----
-97018

query II rowsort
SELECT ALL 56 + + - 37 col2, - 43 AS col1
----
19
-43

query I rowsort
SELECT ALL ( 29 ) * - + 30 * - 51 AS col2
----
44370

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3958
SELECT NULLIF ( + CAST( NULL AS SIGNED ), - 98 + - + 62 ) * - 78 * + 35 * - ( + 70 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3958
SELECT NULLIF ( + CAST ( NULL AS INTEGER ), - 98 + - + 62 ) * - 78 * + 35 * - ( + 70 ) AS col0
----
NULL

query I rowsort
SELECT 54 + + 49 AS col1
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3960
SELECT ALL COUNT( * ) + - - CAST( - - 35 AS SIGNED ) col1
----
36

skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL COUNT ( * ) + - - CAST ( - - 35 AS INTEGER ) col1
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3961
SELECT ALL 20 + - 46 - 41 + - - CAST( NULL AS SIGNED ) + 93 * 45
----
NULL

skipif mysql # not compatible
query I rowsort label-3961
SELECT ALL 20 + - 46 - 41 + - - CAST ( NULL AS INTEGER ) + 93 * 45
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3962
SELECT CAST( NULL AS SIGNED ) * + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-3962
SELECT CAST ( NULL AS INTEGER ) * + 94
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3963
SELECT ALL - 72 + - 99 * - 45 + 8 DIV + + COALESCE ( 98, - - 54 ) * 33 + COALESCE ( 17, + + 46, - 52 + + 90 ) AS col0
----
4400

skipif mysql # not compatible
query I rowsort label-3963
SELECT ALL - 72 + - 99 * - 45 + 8 / + + COALESCE ( 98, - - 54 ) * 33 + COALESCE ( 17, + + 46, - 52 + + 90 ) AS col0
----
4400

query I rowsort
SELECT DISTINCT - 54 * - 9 * - 64 AS col1
----
-31104

query I rowsort
SELECT DISTINCT NULLIF ( 73, + - 14 / + 97 ) + 40 + + 92 AS col2
----
205

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3966
SELECT + CASE + - 46 WHEN + 98 THEN + 72 * + 93 END * + COUNT( * ) / + ( + 36 ) * - CAST( + 6 AS SIGNED ) + - 11 + + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3966
SELECT + CASE + - 46 WHEN + 98 THEN + 72 * + 93 END * + COUNT ( * ) / + ( + 36 ) * - CAST ( + 6 AS INTEGER ) + - 11 + + - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 75 + 40 + - ( - + 0 ) * - 60
----
-35

query II rowsort
SELECT ALL - 84 * + 85 AS col2, 19
----
-7140
19

query I rowsort
SELECT 82 * + 3 AS col1
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT DISTINCT + 93 - - + MAX( DISTINCT - 21 )
----
72

skipif mysql # not compatible
query I rowsort label-3970
SELECT DISTINCT + 93 - - + MAX ( DISTINCT - 21 )
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-3971
SELECT DISTINCT 21 * - + 50 + - + SUM( - 77 ), 41 AS col0
----
-973
41

skipif mysql # not compatible
query II rowsort label-3971
SELECT DISTINCT 21 * - + 50 + - + SUM ( - 77 ), 41 AS col0
----
-973
41

query I rowsort
SELECT ALL + + 89 - - 12 AS col0
----
101

query I rowsort
SELECT - 6 * + - 18 + 71 + - 21 + - 55 AS col0
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3974
SELECT ALL - - COALESCE ( - CASE - + 36 WHEN ( + AVG ( - + 76 ) ) THEN NULL ELSE + + 44 DIV COUNT( * ) + 72 * + 56 END, CAST( NULL AS SIGNED ) * ( - 65 ) + 29, + CASE - - 79 WHEN - COUNT( * ) THEN + ( + 7 ) END ) * - + 47 col0
----
191572

skipif mysql # not compatible
query I rowsort label-3974
SELECT ALL - - COALESCE ( - CASE - + 36 WHEN ( + AVG ( - + 76 ) ) THEN NULL ELSE + + 44 / COUNT ( * ) + 72 * + 56 END, CAST ( NULL AS INTEGER ) * ( - 65 ) + 29, + CASE - - 79 WHEN - COUNT ( * ) THEN + ( + 7 ) END ) * - + 47 col0
----
191572

query I rowsort
SELECT - 63 - + 88 AS col0
----
-151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3976
SELECT + 72 * 23 + CAST( - 82 AS SIGNED ) + + 20
----
1594

skipif mysql # not compatible
query I rowsort label-3976
SELECT + 72 * 23 + CAST ( - 82 AS INTEGER ) + + 20
----
1594

query I rowsort
SELECT - NULLIF ( + 29, + 37 ) * + - 0 + 0
----
0

query I rowsort
SELECT DISTINCT - 30 * - 43
----
1290

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT ALL + SUM( DISTINCT - 5 ) + + 66 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-3979
SELECT ALL + SUM ( DISTINCT - 5 ) + + 66 AS col0
----
61

query I rowsort
SELECT ALL 68 + 9 + + + 92 * + 36 / CASE + - 93 WHEN + - 4 THEN + 53 END AS col1
----
NULL

query I rowsort
SELECT 26 * - + 35 AS col1
----
-910

query I rowsort
SELECT 16 - - 14
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3983
SELECT ALL CAST( NULL AS SIGNED ) + ( 72 ) AS col2, - 78 + + 94 + - 68
----
NULL
-52

skipif mysql # not compatible
query II rowsort label-3983
SELECT ALL CAST ( NULL AS INTEGER ) + ( 72 ) AS col2, - 78 + + 94 + - 68
----
NULL
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-3984
SELECT 35 DIV - - 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3984
SELECT 35 / - - 85 AS col1
----
0

query I rowsort
SELECT ALL + ( - - 61 ) + + 29 AS col0
----
90

query I rowsort
SELECT ( - + 72 ) - 37 + 2 AS col1
----
-107

query II rowsort
SELECT 68 AS col2, + 59 AS col2
----
68
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3988
SELECT 50 * CAST( NULL AS SIGNED ) + + 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3988
SELECT 50 * CAST ( NULL AS INTEGER ) + + 78 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3989
SELECT 70 * 99 * + NULLIF ( 87, + 38 * + - CAST( NULL AS SIGNED ) ) DIV COUNT( * )
----
602910

skipif mysql # not compatible
query I rowsort label-3989
SELECT 70 * 99 * + NULLIF ( 87, + 38 * + - CAST ( NULL AS INTEGER ) ) / COUNT ( * )
----
602910

query I rowsort
SELECT 41 * + 58
----
2378

onlyif mysql # DIV for integer division: 
query I rowsort label-3991
SELECT - + 83 DIV - - 94 + 36 + + 15 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-3991
SELECT - + 83 / - - 94 + 36 + + 15 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT 51 + COUNT( - 65 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-3992
SELECT 51 + COUNT ( - 65 ) AS col0
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3993
SELECT ALL - CAST( NULL AS SIGNED ) - - - NULLIF ( - - CAST( - + 82 AS SIGNED ), + 16 * 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3993
SELECT ALL - CAST ( NULL AS INTEGER ) - - - NULLIF ( - - CAST ( - + 82 AS INTEGER ), + 16 * 18 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT + COALESCE ( - - COUNT( * ), 81 ) + + + ( - CASE + 82 WHEN COUNT( * ) * - + 52 THEN - + MIN( 4 ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3994
SELECT + COALESCE ( - - COUNT ( * ), 81 ) + + + ( - CASE + 82 WHEN COUNT ( * ) * - + 52 THEN - + MIN ( 4 ) END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT DISTINCT - COALESCE ( COUNT( * ), + 92 + + - 41 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3995
SELECT DISTINCT - COALESCE ( COUNT ( * ), + 92 + + - 41 ) AS col0
----
-1

query I rowsort
SELECT - 54 * - NULLIF ( + 46, 87 )
----
2484

query I rowsort
SELECT + 54 * - 5 + + - CASE - 10 WHEN 22 THEN - + 43 ELSE 3 END AS col0
----
-273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3998
SELECT ALL - - ( NULLIF ( - CASE + CASE - 18 WHEN 76 THEN NULL WHEN + 4 THEN + COUNT( * ) * - 38 + 55 + + + CAST( NULL AS SIGNED ) + + - 46 * + + 69 ELSE - 81 END WHEN + COUNT( * ) THEN NULL WHEN - + 17 * - + 42 THEN + - 0 * COUNT( * ) + - + 10 + - 71 * - 55 / + + 34 * + + 11 END, - AVG ( - 66 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3998
SELECT ALL - - ( NULLIF ( - CASE + CASE - 18 WHEN 76 THEN NULL WHEN + 4 THEN + COUNT ( * ) * - 38 + 55 + + + CAST ( NULL AS INTEGER ) + + - 46 * + + 69 ELSE - 81 END WHEN + COUNT ( * ) THEN NULL WHEN - + 17 * - + 42 THEN + - 0 * COUNT ( * ) + - + 10 + - 71 * - 55 / + + 34 * + + 11 END, - AVG ( - 66 ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT - 11 * - NULLIF ( COUNT( * ), 63 * ( 57 ) ) + + - 79
----
-68

skipif mysql # not compatible
query I rowsort label-3999
SELECT - 11 * - NULLIF ( COUNT ( * ), 63 * ( 57 ) ) + + - 79
----
-68

query I rowsort
SELECT - 81 + ( - 39 )
----
-120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4001
SELECT - COUNT( * ) DIV - 58 + + 43 * + - 10
----
-430

skipif mysql # not compatible
query I rowsort label-4001
SELECT - COUNT ( * ) / - 58 + + 43 * + - 10
----
-430

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT COUNT( 11 ) * + - 86 * - - 61 col2
----
-5246

skipif mysql # not compatible
query I rowsort label-4002
SELECT COUNT ( 11 ) * + - 86 * - - 61 col2
----
-5246

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4003
SELECT DISTINCT + 12 * + 10 + + CAST( - 10 AS SIGNED ) col1
----
110

skipif mysql # not compatible
query I rowsort label-4003
SELECT DISTINCT + 12 * + 10 + + CAST ( - 10 AS INTEGER ) col1
----
110

query I rowsort
SELECT + 4 * + 19 AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT ALL + 79 * - - ( COUNT( - + 12 ) ) col0
----
79

skipif mysql # not compatible
query I rowsort label-4005
SELECT ALL + 79 * - - ( COUNT ( - + 12 ) ) col0
----
79

query I rowsort
SELECT - 48 + - 11 * + 81 AS col2
----
-939

query I rowsort
SELECT ALL + 68 * - + 8 AS col0
----
-544

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4008
SELECT CAST( 80 AS SIGNED ) DIV COALESCE ( + 11, - + 16 )
----
7

skipif mysql # not compatible
query I rowsort label-4008
SELECT CAST ( 80 AS INTEGER ) / COALESCE ( + 11, - + 16 )
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4009
SELECT + 61 + - 98 / CAST( NULL AS SIGNED ) * + 51 * CAST( + - 70 AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4009
SELECT + 61 + - 98 / CAST ( NULL AS INTEGER ) * + 51 * CAST ( + - 70 AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4010
SELECT + 70 * + + 86 * + - 38 - - + 43 + + - CAST( NULL AS SIGNED ) AS col0, ( - - ( - ( - - 53 ) ) ) * - CAST( 71 AS SIGNED ) col1
----
NULL
3763

skipif mysql # not compatible
query II rowsort label-4010
SELECT + 70 * + + 86 * + - 38 - - + 43 + + - CAST ( NULL AS INTEGER ) AS col0, ( - - ( - ( - - 53 ) ) ) * - CAST ( 71 AS INTEGER ) col1
----
NULL
3763

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT ALL + COUNT( * ) + + 78 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL + COUNT ( * ) + + 78 AS col1
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-4012
SELECT DISTINCT COUNT( * ) AS col1, ( - + COALESCE ( - 43, - 72 ) )
----
1
43

skipif mysql # not compatible
query II rowsort label-4012
SELECT DISTINCT COUNT ( * ) AS col1, ( - + COALESCE ( - 43, - 72 ) )
----
1
43

onlyif mysql # aggregate syntax: 
query II rowsort label-4013
SELECT 87, - COALESCE ( + ( + COUNT( ALL + - 19 ) ), + 26 * + + 94 * COALESCE ( + 12, + + 2 * 40 * MAX( + - 18 ) + - 25 * 42 ) * + - 44 ) col1
----
87
-1

skipif mysql # not compatible
query II rowsort label-4013
SELECT 87, - COALESCE ( + ( + COUNT ( ALL + - 19 ) ), + 26 * + + 94 * COALESCE ( + 12, + + 2 * 40 * MAX ( + - 18 ) + - 25 * 42 ) * + - 44 ) col1
----
87
-1

query I rowsort
SELECT 53 * + 69 + + 5
----
3662

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT + 44 * - + COUNT( * ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-4015
SELECT + 44 * - + COUNT ( * ) AS col0
----
-44

query I rowsort
SELECT - 9 + + - 95 AS col0
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT ALL + 44 + ( COUNT( * ) ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-4017
SELECT ALL + 44 + ( COUNT ( * ) ) AS col1
----
45

query I rowsort
SELECT DISTINCT - 72 * + 50 col2
----
-3600

onlyif mysql # aggregate syntax: 
query II rowsort label-4019
SELECT DISTINCT COUNT( * ) AS col0, 35
----
1
35

skipif mysql # not compatible
query II rowsort label-4019
SELECT DISTINCT COUNT ( * ) AS col0, 35
----
1
35

query I rowsort
SELECT ALL + 8 + - + 1 + 21
----
28

query I rowsort
SELECT ALL - 54 * + 30
----
-1620

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4022
SELECT ALL - ( - ( ( - 85 ) ) ) * - SUM( ALL - 17 ) + 25 DIV - COUNT( * )
----
-1470

skipif mysql # not compatible
query I rowsort label-4022
SELECT ALL - ( - ( ( - 85 ) ) ) * - SUM ( ALL - 17 ) + 25 / - COUNT ( * )
----
-1470

query II rowsort
SELECT - 97, 6 AS col0
----
-97
6

query I rowsort
SELECT ALL + ( + 62 ) - - 29 AS col1
----
91

query I rowsort
SELECT ALL + 54 * 7 * + 59
----
22302

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT + COUNT( * ) + 26 + + 95 * + 44 AS col0
----
4207

skipif mysql # not compatible
query I rowsort label-4026
SELECT + COUNT ( * ) + 26 + + 95 * + 44 AS col0
----
4207

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4027
SELECT - 48 * CASE - COUNT( * ) WHEN + - 26 + + 93 THEN 41 WHEN - 56 THEN 27 * + 25 + + 58 + - + 40 + - 90 DIV - - 9 * - + COUNT( * ) ELSE - 48 END AS col0
----
2304

skipif mysql # not compatible
query I rowsort label-4027
SELECT - 48 * CASE - COUNT ( * ) WHEN + - 26 + + 93 THEN 41 WHEN - 56 THEN 27 * + 25 + + 58 + - + 40 + - 90 / - - 9 * - + COUNT ( * ) ELSE - 48 END AS col0
----
2304

query I rowsort
SELECT - 25 * + 62 * + + 65 AS col0
----
-100750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4029
SELECT ALL 42 DIV + MIN( 57 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4029
SELECT ALL 42 / + MIN ( 57 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT + + 29 * MIN( - 83 )
----
-2407

skipif mysql # not compatible
query I rowsort label-4030
SELECT + + 29 * MIN ( - 83 )
----
-2407

query I rowsort
SELECT DISTINCT + + ( - - 49 )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4032
SELECT + - 54 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4032
SELECT + - 54 * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - 41 AS col0, 60
----
-41
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4034
SELECT - + ( + 92 ) * + CAST( - 46 AS SIGNED ) AS col1, - 57
----
4232
-57

skipif mysql # not compatible
query II rowsort label-4034
SELECT - + ( + 92 ) * + CAST ( - 46 AS INTEGER ) AS col1, - 57
----
4232
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4035
SELECT ALL + 83 * CAST( NULL AS SIGNED ) * - - 84 + + 16 AS col0, - COUNT( * )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-4035
SELECT ALL + 83 * CAST ( NULL AS INTEGER ) * - - 84 + + 16 AS col0, - COUNT ( * )
----
NULL
-1

query I rowsort
SELECT + + 77 - 75
----
2

query I rowsort
SELECT DISTINCT - 38 * - 41 AS col1
----
1558

query I rowsort
SELECT DISTINCT - 91 * + - ( ( + - 13 ) ) + - 86
----
-1269

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4039
SELECT DISTINCT - CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) - + NULLIF ( + 4, - CASE - - 5 WHEN 28 - 89 THEN NULL ELSE + - 18 END ) + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-4039
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) - + NULLIF ( + 4, - CASE - - 5 WHEN 28 - 89 THEN NULL ELSE + - 18 END ) + 71
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4040
SELECT + 55 * - 76 + + - SUM( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4040
SELECT + 55 * - 76 + + - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4041
SELECT + 33 * 60 DIV + 82 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-4041
SELECT + 33 * 60 / + 82 AS col2
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4042
SELECT + 51 + + CASE + CAST( - 95 AS SIGNED ) WHEN 81 THEN - CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4042
SELECT + 51 + + CASE + CAST ( - 95 AS INTEGER ) WHEN 81 THEN - CAST ( NULL AS INTEGER ) END AS col2
----
NULL

query I rowsort
SELECT + NULLIF ( 81, + 57 ) AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT ALL - 93 * + COUNT( * ) + + 82 + - - 13
----
2

skipif mysql # not compatible
query I rowsort label-4044
SELECT ALL - 93 * + COUNT ( * ) + + 82 + - - 13
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4045
SELECT + 15 DIV 80 * 63 * 39
----
0

skipif mysql # not compatible
query I rowsort label-4045
SELECT + 15 / 80 * 63 * 39
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4046
SELECT ALL - CAST( + - 49 AS SIGNED ) * SUM( ALL + 44 )
----
2156

skipif mysql # not compatible
query I rowsort label-4046
SELECT ALL - CAST ( + - 49 AS INTEGER ) * SUM ( ALL + 44 )
----
2156

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT MAX( - + 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-4047
SELECT MAX ( - + 55 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT + COUNT( - 17 ) * + 56
----
56

skipif mysql # not compatible
query I rowsort label-4048
SELECT + COUNT ( - 17 ) * + 56
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-4049
SELECT DISTINCT COUNT( ALL 11 ), + 53 col0
----
1
53

skipif mysql # not compatible
query II rowsort label-4049
SELECT DISTINCT COUNT ( ALL 11 ), + 53 col0
----
1
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4050
SELECT - CAST( + + 83 AS SIGNED ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-4050
SELECT - CAST ( + + 83 AS INTEGER ) AS col2
----
-83

query I rowsort
SELECT + 7 * + 92 AS col1
----
644

query I rowsort
SELECT + 25 - - + 76 + 50
----
151

query I rowsort
SELECT ALL + 23 * + 97 AS col0
----
2231

query I rowsort
SELECT DISTINCT + 5 * + 7 AS col0
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-4055
SELECT ALL + 80 DIV - 63 + 89 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-4055
SELECT ALL + 80 / - 63 + 89 AS col2
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4056
SELECT - ( - CAST( - - 78 AS SIGNED ) ) + - ( 86 )
----
-8

skipif mysql # not compatible
query I rowsort label-4056
SELECT - ( - CAST ( - - 78 AS INTEGER ) ) + - ( 86 )
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4057
SELECT - 25 * COALESCE ( - 15, - - 46, + CASE WHEN NOT + COUNT( * ) > + 82 THEN - + 49 END * 97 ) * + COUNT( * ) + + CAST( NULL AS SIGNED ) + - + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4057
SELECT - 25 * COALESCE ( - 15, - - 46, + CASE WHEN NOT + COUNT ( * ) > + 82 THEN - + 49 END * 97 ) * + COUNT ( * ) + + CAST ( NULL AS INTEGER ) + - + 64 AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4058
SELECT DISTINCT + 37 / - 5 + + 30 / + + CAST( NULL AS DECIMAL ) * + + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-4058
SELECT DISTINCT + 37 / - 5 + + 30 / + + CAST ( NULL AS REAL ) * + + 1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4059
SELECT ALL + + 38 DIV 4 + - 36 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-4059
SELECT ALL + + 38 / 4 + - 36 AS col0
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-4060
SELECT + ( - + ( 82 ) ) DIV 71 + + 36
----
35

skipif mysql # not compatible
query I rowsort label-4060
SELECT + ( - + ( 82 ) ) / 71 + + 36
----
35

query I rowsort
SELECT ALL 92 + + 0 AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT COUNT( * ) * - 66 * + 62 AS col0
----
-4092

skipif mysql # not compatible
query I rowsort label-4062
SELECT COUNT ( * ) * - 66 * + 62 AS col0
----
-4092

query II rowsort
SELECT ALL - 99 AS col1, - ( - 1 ) AS col2
----
-99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT ALL - COUNT( * ) - - + 23
----
22

skipif mysql # not compatible
query I rowsort label-4064
SELECT ALL - COUNT ( * ) - - + 23
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-4065
SELECT ALL 38 - + + ( ( + COUNT( * ) ) ), 65 AS col1
----
37
65

skipif mysql # not compatible
query II rowsort label-4065
SELECT ALL 38 - + + ( ( + COUNT ( * ) ) ), 65 AS col1
----
37
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4066
SELECT ( 62 ) - 56 + 43 DIV COALESCE ( 55, + 15 - + + CAST( NULL AS SIGNED ) * - 39, 10 + 36 * MAX( 20 ) * AVG ( - 61 ) * + 12 + 41 ) col0
----
6

skipif mysql # not compatible
query I rowsort label-4066
SELECT ( 62 ) - 56 + 43 / COALESCE ( 55, + 15 - + + CAST ( NULL AS INTEGER ) * - 39, 10 + 36 * MAX ( 20 ) * AVG ( - 61 ) * + 12 + 41 ) col0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4067
SELECT DISTINCT 84 DIV + 1
----
84

skipif mysql # not compatible
query I rowsort label-4067
SELECT DISTINCT 84 / + 1
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4068
SELECT ( SUM( ALL + + ( 89 ) ) ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4068
SELECT ( SUM ( ALL + + ( 89 ) ) ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4069
SELECT DISTINCT 48 DIV + 43 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4069
SELECT DISTINCT 48 / + 43 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT ALL 72 * - COUNT( * ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-4070
SELECT ALL 72 * - COUNT ( * ) AS col2
----
-72

query I rowsort
SELECT ALL 83 * - 48
----
-3984

query I rowsort
SELECT DISTINCT - 65 * - 29 - 3 AS col2
----
1882

query I rowsort
SELECT ALL ( - 40 ) col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT NULLIF ( + 80, - - ( 79 ) * + MIN( + + 41 ) / + COUNT( * ) + + 7 ) + - 2
----
78

skipif mysql # not compatible
query I rowsort label-4074
SELECT NULLIF ( + 80, - - ( 79 ) * + MIN ( + + 41 ) / + COUNT ( * ) + + 7 ) + - 2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT + 64 * - COUNT( * ) + + COUNT( * ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-4075
SELECT + 64 * - COUNT ( * ) + + COUNT ( * ) AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT + 34 + COUNT( ALL + + 10 )
----
35

skipif mysql # not compatible
query I rowsort label-4076
SELECT + 34 + COUNT ( ALL + + 10 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT ALL 4 + + COUNT( * ) + + + 42 + - + 52 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-4077
SELECT ALL 4 + + COUNT ( * ) + + + 42 + - + 52 AS col1
----
-5

query I rowsort
SELECT - 47 + 63 col0
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4079
SELECT DISTINCT - NULLIF ( + 57, COUNT( * ) ) + - + CAST( + 34 AS SIGNED )
----
-91

skipif mysql # not compatible
query I rowsort label-4079
SELECT DISTINCT - NULLIF ( + 57, COUNT ( * ) ) + - + CAST ( + 34 AS INTEGER )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT ALL + MIN( - 21 ) + + COALESCE ( + ( 5 ), - 27, + 30, 32 * 93 * 14 + - - 42 )
----
-16

skipif mysql # not compatible
query I rowsort label-4080
SELECT ALL + MIN ( - 21 ) + + COALESCE ( + ( 5 ), - 27, + 30, 32 * 93 * 14 + - - 42 )
----
-16

query I rowsort
SELECT DISTINCT - 58 + + 3
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4082
SELECT ALL + 0 + CASE + CAST( NULL AS SIGNED ) WHEN + 85 * + 44 THEN - 40 * COALESCE ( + + COUNT( + - 49 ), + 13, + 14 + 99 ) - 18 ELSE NULL END + - ( + + COUNT( * ) ) * 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4082
SELECT ALL + 0 + CASE + CAST ( NULL AS INTEGER ) WHEN + 85 * + 44 THEN - 40 * COALESCE ( + + COUNT ( + - 49 ), + 13, + 14 + 99 ) - 18 ELSE NULL END + - ( + + COUNT ( * ) ) * 38 AS col2
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + + 29, - + 90 * + 7 ) AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT DISTINCT + + COUNT( * ) + - 9 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-4084
SELECT DISTINCT + + COUNT ( * ) + - 9 AS col1
----
-8

query I rowsort
SELECT 54 * + 77 col0
----
4158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4086
SELECT - 16 - + 66 * SUM( ALL + NULLIF ( + ( - 7 ), - CAST( NULL AS SIGNED ) ) ) - - 77 col2
----
523

skipif mysql # not compatible
query I rowsort label-4086
SELECT - 16 - + 66 * SUM ( ALL + NULLIF ( + ( - 7 ), - CAST ( NULL AS INTEGER ) ) ) - - 77 col2
----
523

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4087
SELECT ALL - CASE + 7 WHEN CAST( - 51 AS DECIMAL ) * - 44 * - COUNT( * ) THEN - 40 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL - CASE + 7 WHEN CAST ( - 51 AS REAL ) * - 44 * - COUNT ( * ) THEN - 40 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT DISTINCT - MAX( 53 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-4088
SELECT DISTINCT - MAX ( 53 ) AS col2
----
-53

query I rowsort
SELECT 35 * + + 99
----
3465

onlyif mysql # DIV for integer division: 
query I rowsort label-4090
SELECT DISTINCT 3 DIV + 59 * - + 2 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4090
SELECT DISTINCT 3 / + 59 * - + 2 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4091
SELECT 54 / - CAST( NULL AS SIGNED ) col2, 60 * + 28 - + 68 + + - 18 * 64 / - 7 + - + CASE - ( - 43 ) WHEN + 44 THEN 10 END * + 92
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4091
SELECT 54 / - CAST ( NULL AS INTEGER ) col2, 60 * + 28 - + 68 + + - 18 * 64 / - 7 + - + CASE - ( - 43 ) WHEN + 44 THEN 10 END * + 92
----
NULL
NULL

query I rowsort
SELECT 25 * + ( + 53 ) AS col1
----
1325

query I rowsort
SELECT 60 + - 7 AS col1
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4094
SELECT CASE - 45 WHEN - 45 + - + COUNT( * ) THEN - 46 ELSE NULL END + + MIN( DISTINCT + 52 ) + + CAST( + - 11 AS SIGNED ) / 89
----
NULL

skipif mysql # not compatible
query I rowsort label-4094
SELECT CASE - 45 WHEN - 45 + - + COUNT ( * ) THEN - 46 ELSE NULL END + + MIN ( DISTINCT + 52 ) + + CAST ( + - 11 AS INTEGER ) / 89
----
NULL

query II rowsort
SELECT ALL + 50 * + NULLIF ( + 78, + - 89 ), 73 col1
----
3900
73

onlyif mysql # DIV for integer division: 
query I rowsort label-4096
SELECT ALL - 95 - ( - 71 ) + + 36 DIV 90
----
-24

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL - 95 - ( - 71 ) + + 36 / 90
----
-24

query I rowsort
SELECT ALL + 50 * - 79 * - 42
----
165900

query I rowsort
SELECT ALL - 33 * ( - 51 ) AS col1
----
1683

query I rowsort
SELECT DISTINCT - 78 + 85 * 32
----
2642

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4100
SELECT - COALESCE ( 88, 18 - + + COUNT( * ), + - 25 ) / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4100
SELECT - COALESCE ( 88, 18 - + + COUNT ( * ), + - 25 ) / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4101
SELECT ALL ( 76 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4101
SELECT ALL ( 76 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT - 58 - COUNT( * ) * 2 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-4102
SELECT - 58 - COUNT ( * ) * 2 AS col0
----
-60

query I rowsort
SELECT + 71 - - 81
----
152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4104
SELECT ALL COALESCE ( + 20, 92 * 19 ) + + - CASE 14 WHEN + + COUNT( * ) THEN NULL WHEN - COUNT( - - 90 ) THEN NULL ELSE - 92 DIV 50 - + 7 - + - 2 END AS col2
----
26

skipif mysql # not compatible
query I rowsort label-4104
SELECT ALL COALESCE ( + 20, 92 * 19 ) + + - CASE 14 WHEN + + COUNT ( * ) THEN NULL WHEN - COUNT ( - - 90 ) THEN NULL ELSE - 92 / 50 - + 7 - + - 2 END AS col2
----
26

query II rowsort
SELECT + 98 * + 89 AS col0, + 65 AS col1
----
8722
65

query I rowsort
SELECT ALL + 4 + + 66
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-4107
SELECT - ( ( - MAX( - - 64 ) ) ), - 58 + - - 66 - - ( + 47 ) * + - 83 AS col1
----
64
-3893

skipif mysql # not compatible
query II rowsort label-4107
SELECT - ( ( - MAX ( - - 64 ) ) ), - 58 + - - 66 - - ( + 47 ) * + - 83 AS col1
----
64
-3893

query I rowsort
SELECT ALL - 60 * + 74 * - 31 - 98 col0
----
137542

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4109
SELECT + 65 + + ( + SUM( - + 61 ) ) + - COUNT( DISTINCT + 95 ) - - MAX( + CAST( NULL AS SIGNED ) ) + + - COUNT( DISTINCT - 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4109
SELECT + 65 + + ( + SUM ( - + 61 ) ) + - COUNT ( DISTINCT + 95 ) - - MAX ( + CAST ( NULL AS INTEGER ) ) + + - COUNT ( DISTINCT - 87 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT + ( 36 ) - 58 + - MAX( DISTINCT - - 96 ) * + 8 AS col2
----
-790

skipif mysql # not compatible
query I rowsort label-4110
SELECT + ( 36 ) - 58 + - MAX ( DISTINCT - - 96 ) * + 8 AS col2
----
-790

query I rowsort
SELECT ALL - 99 * - 99 - 87
----
9714

query I rowsort
SELECT + - 13 + + - ( + 32 )
----
-45

query I rowsort
SELECT CASE - 28 WHEN 39 THEN 90 ELSE NULL END
----
NULL

query I rowsort
SELECT 99 * + NULLIF ( + 63, - 90 + + - 19 ) + + 6 AS col2
----
6243

query I rowsort
SELECT ALL 88 * 92 - - - 50
----
8046

query I rowsort
SELECT - 68 * - 82
----
5576

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT CASE + - CASE - 24 WHEN + ( + 72 ) * - - 38 + - + 8 - 63 + - 6 * + 71 + - 70 * + COUNT( * ) * 94 THEN NULL WHEN - COUNT( * ) THEN + 96 WHEN + 94 THEN - - 45 * COUNT( * ) * 80 + + 53 - + 73 + - + COUNT( ALL + - 28 ) / + 89 * - - ( - - 28 ) * 19 * + 15 * + - 95 * + 61 - 35 ELSE - 94 + 27 + 96 + - 75 * + - 51 * - 15 END WHEN + - 38 THEN - - 75 WHEN - + 65 / + 51 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4117
SELECT CASE + - CASE - 24 WHEN + ( + 72 ) * - - 38 + - + 8 - 63 + - 6 * + 71 + - 70 * + COUNT ( * ) * 94 THEN NULL WHEN - COUNT ( * ) THEN + 96 WHEN + 94 THEN - - 45 * COUNT ( * ) * 80 + + 53 - + 73 + - + COUNT ( ALL + - 28 ) / + 89 * - - ( - - 28 ) * 19 * + 15 * + - 95 * + 61 - 35 ELSE - 94 + 27 + 96 + - 75 * + - 51 * - 15 END WHEN + - 38 THEN - - 75 WHEN - + 65 / + 51 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT - 20 + + 7 + + + COUNT( * ) * + 77 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-4118
SELECT - 20 + + 7 + + + COUNT ( * ) * + 77 AS col0
----
64

query I rowsort
SELECT + 32 * - 24 AS col1
----
-768

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4120
SELECT - MAX( DISTINCT - 70 ) DIV - - 81 AS col0, - 94 AS col1
----
0
-94

skipif mysql # not compatible
query II rowsort label-4120
SELECT - MAX ( DISTINCT - 70 ) / - - 81 AS col0, - 94 AS col1
----
0
-94

query I rowsort
SELECT ALL COALESCE ( - 27, + 77 ) * - 33 + - + 47 AS col1
----
844

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4122
SELECT - 48 + + + 54 + - COUNT( * ) DIV + 67
----
6

skipif mysql # not compatible
query I rowsort label-4122
SELECT - 48 + + + 54 + - COUNT ( * ) / + 67
----
6

query I rowsort
SELECT DISTINCT - 19 + 13 + - 25 * + 23 * + 39 - + + 5 + + 9 + + - 69 AS col0
----
-22496

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4124
SELECT - + 94 + 56 - + + COUNT( * ) + + 30 * COALESCE ( 73, + + 52 * - + 56 DIV - + 33 * + - 16 * - + 87 + + COUNT( * ) + - NULLIF ( ( + 35 ), + 97 ) ) * + COUNT( * )
----
2151

skipif mysql # not compatible
query I rowsort label-4124
SELECT - + 94 + 56 - + + COUNT ( * ) + + 30 * COALESCE ( 73, + + 52 * - + 56 / - + 33 * + - 16 * - + 87 + + COUNT ( * ) + - NULLIF ( ( + 35 ), + 97 ) ) * + COUNT ( * )
----
2151

query I rowsort
SELECT DISTINCT - + 55 + - 65 col1
----
-120

query I rowsort
SELECT - - ( - + 18 ) + - 83 * - + 36 AS col2
----
2970

query I rowsort
SELECT ALL + 13 + + 37 AS col1
----
50

query I rowsort
SELECT ALL - - 5 * - 11 AS col1
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4129
SELECT - + COUNT( * ) + + + 74 DIV + 87 * + - 38 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4129
SELECT - + COUNT ( * ) + + + 74 / + 87 * + - 38 AS col2
----
-1

query I rowsort
SELECT ALL 22 + - 51
----
-29

query I rowsort
SELECT DISTINCT - 22 * + 59 * 4 + + 50 col0
----
-5142

onlyif mysql # DIV for integer division: 
query I rowsort label-4132
SELECT + 18 + 70 DIV 73 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-4132
SELECT + 18 + 70 / 73 AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT ALL - 72 - - - COUNT( * ) * + 66
----
-138

skipif mysql # not compatible
query I rowsort label-4133
SELECT ALL - 72 - - - COUNT ( * ) * + 66
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT - - 67 * + - CASE - + 6 WHEN 69 + + + COUNT( * ) THEN - + 33 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4134
SELECT - - 67 * + - CASE - + 6 WHEN 69 + + + COUNT ( * ) THEN - + 33 END
----
NULL

query I rowsort
SELECT + 32 + 93 AS col1
----
125

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4136
SELECT 72 col2, + 7 + - 98 + + 54 + + CASE + - 26 WHEN + AVG ( + 16 ) THEN NULL WHEN 86 + - - 87 + + 53 + - 57 * - 85 / 49 THEN + + CAST( NULL AS DECIMAL ) WHEN 9 - - 88 * - 59 / - - 21 * - COUNT( ALL 70 ) + - COUNT( * ) THEN NULL END
----
72
NULL

skipif mysql # not compatible
query II rowsort label-4136
SELECT 72 col2, + 7 + - 98 + + 54 + + CASE + - 26 WHEN + AVG ( + 16 ) THEN NULL WHEN 86 + - - 87 + + 53 + - 57 * - 85 / 49 THEN + + CAST ( NULL AS REAL ) WHEN 9 - - 88 * - 59 / - - 21 * - COUNT ( ALL 70 ) + - COUNT ( * ) THEN NULL END
----
72
NULL

query I rowsort
SELECT - 76 * - 86
----
6536

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4138
SELECT - - CAST( - 6 AS SIGNED ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-4138
SELECT - - CAST ( - 6 AS INTEGER ) AS col2
----
-6

query I rowsort
SELECT ALL - 37 - - 60 + + 98 AS col0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT MIN( - - 32 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-4140
SELECT MIN ( - - 32 ) AS col1
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-4141
SELECT + COALESCE ( + 14, - 73 ) DIV + 5 + + 47 - - 99 AS col0
----
148

skipif mysql # not compatible
query I rowsort label-4141
SELECT + COALESCE ( + 14, - 73 ) / + 5 + + 47 - - 99 AS col0
----
148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4142
SELECT CAST( + ( 26 ) AS SIGNED )
----
26

skipif mysql # not compatible
query I rowsort label-4142
SELECT CAST ( + ( 26 ) AS INTEGER )
----
26

query I rowsort
SELECT + 15 * - 0 AS col1
----
0

query II rowsort
SELECT ALL + 99, 22 AS col2
----
99
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4145
SELECT + 22 col1, - 5 * COALESCE ( - 80, 76 * 51, + 47 DIV + + 40 + SUM( - CAST( + 64 AS SIGNED ) ) + 8 * - 59 )
----
22
400

skipif mysql # not compatible
query II rowsort label-4145
SELECT + 22 col1, - 5 * COALESCE ( - 80, 76 * 51, + 47 / + + 40 + SUM ( - CAST ( + 64 AS INTEGER ) ) + 8 * - 59 )
----
22
400

query I rowsort
SELECT - 14 * + 74 AS col2
----
-1036

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4147
SELECT CAST( NULL AS DECIMAL ) AS col2, + 6 + - + ( - 55 ) + ( - 18 ) * - 9 AS col2
----
NULL
223

skipif mysql # not compatible
query II rowsort label-4147
SELECT CAST ( NULL AS REAL ) AS col2, + 6 + - + ( - 55 ) + ( - 18 ) * - 9 AS col2
----
NULL
223

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4148
SELECT DISTINCT 32 * - + COUNT( * ) DIV - + 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4148
SELECT DISTINCT 32 * - + COUNT ( * ) / - + 86 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT COUNT( DISTINCT 27 ) * - 89 - + 24 - + 34 * + COUNT( DISTINCT + 56 ) col0
----
-147

skipif mysql # not compatible
query I rowsort label-4149
SELECT COUNT ( DISTINCT 27 ) * - 89 - + 24 - + 34 * + COUNT ( DISTINCT + 56 ) col0
----
-147

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4150
SELECT ALL 8 * - + 93 * 13 + - 67 + + CAST( NULL AS DECIMAL ) * + + 30 + + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-4150
SELECT ALL 8 * - + 93 * 13 + - 67 + + CAST ( NULL AS REAL ) * + + 30 + + 62
----
NULL

query I rowsort
SELECT 69 * 56 + + 43
----
3907

query I rowsort
SELECT ( ( 74 ) )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT + 42 * + MAX( DISTINCT + + 97 ) AS col1
----
4074

skipif mysql # not compatible
query I rowsort label-4153
SELECT + 42 * + MAX ( DISTINCT + + 97 ) AS col1
----
4074

query I rowsort
SELECT DISTINCT CASE + 1 WHEN - 32 + - - 17 THEN NULL ELSE + 18 END * 11 + 11 * - 96 AS col0
----
-858

onlyif mysql # DIV for integer division: 
query I rowsort label-4155
SELECT - 83 * 30 DIV - 85 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-4155
SELECT - 83 * 30 / - 85 AS col0
----
29

query I rowsort
SELECT - 40 * + 86 AS col2
----
-3440

query I rowsort
SELECT ALL + ( - 1 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4158
SELECT - + 3 AS col1, - COUNT( * ) + 18 * 11
----
-3
197

skipif mysql # not compatible
query II rowsort label-4158
SELECT - + 3 AS col1, - COUNT ( * ) + 18 * 11
----
-3
197

query I rowsort
SELECT DISTINCT + 35 - - 70 * + 58
----
4095

query II rowsort
SELECT 69 AS col0, - 55
----
69
-55

query I rowsort
SELECT ALL + + 39 - - 63
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT 60 - + COUNT( * ) + - 29 * COUNT( DISTINCT - - 43 )
----
30

skipif mysql # not compatible
query I rowsort label-4162
SELECT 60 - + COUNT ( * ) + - 29 * COUNT ( DISTINCT - - 43 )
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4163
SELECT ALL + CAST( - + 49 AS SIGNED )
----
-49

skipif mysql # not compatible
query I rowsort label-4163
SELECT ALL + CAST ( - + 49 AS INTEGER )
----
-49

query I rowsort
SELECT - 69 - - 72
----
3

query I rowsort
SELECT ALL + 41 - - + 61 * + + 44
----
2725

onlyif mysql # aggregate syntax: 
query II rowsort label-4166
SELECT ALL + 65, 16 + - - NULLIF ( - - 19, + 60 + SUM( DISTINCT - + 87 ) ) AS col2
----
65
35

skipif mysql # not compatible
query II rowsort label-4166
SELECT ALL + 65, 16 + - - NULLIF ( - - 19, + 60 + SUM ( DISTINCT - + 87 ) ) AS col2
----
65
35

query I rowsort
SELECT - 83 + - 33 * COALESCE ( + 72, 9 * 58 + + + 90 )
----
-2459

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT DISTINCT - - COUNT( * ) * + ( ( + - 23 ) ) * ( 9 ) col0
----
-207

skipif mysql # not compatible
query I rowsort label-4168
SELECT DISTINCT - - COUNT ( * ) * + ( ( + - 23 ) ) * ( 9 ) col0
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT ALL + + 85 * - COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-4169
SELECT ALL + + 85 * - COUNT ( * )
----
-85

query I rowsort
SELECT + ( + 31 ) - - 29
----
60

query I rowsort
SELECT 28 + - - 99 + + 98
----
225

onlyif mysql # aggregate syntax: 
query II rowsort label-4172
SELECT 64 - - MAX( ALL - ( - + ( 68 ) ) ) AS col1, - MIN( - 62 ) col0
----
132
62

skipif mysql # not compatible
query II rowsort label-4172
SELECT 64 - - MAX ( ALL - ( - + ( 68 ) ) ) AS col1, - MIN ( - 62 ) col0
----
132
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4173
SELECT 38 + CASE COALESCE ( 70, ( - + 35 ) + + COUNT( * ), + 34 - + + COUNT( * ) ) WHEN + 70 THEN + - 10 + - 96 / - - CAST( NULL AS DECIMAL ) END + + CAST( NULL AS SIGNED ) / + + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-4173
SELECT 38 + CASE COALESCE ( 70, ( - + 35 ) + + COUNT ( * ), + 34 - + + COUNT ( * ) ) WHEN + 70 THEN + - 10 + - 96 / - - CAST ( NULL AS REAL ) END + + CAST ( NULL AS INTEGER ) / + + 33
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4174
SELECT DISTINCT 21 DIV - + 79 col0
----
0

skipif mysql # not compatible
query I rowsort label-4174
SELECT DISTINCT 21 / - + 79 col0
----
0

query I rowsort
SELECT DISTINCT - ( + - ( + + 26 ) ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT DISTINCT + 91 + COUNT( * ) - + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-4176
SELECT DISTINCT + 91 + COUNT ( * ) - + COUNT ( * )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT MAX( + 51 ) * - 4 - - 72
----
-132

skipif mysql # not compatible
query I rowsort label-4177
SELECT MAX ( + 51 ) * - 4 - - 72
----
-132

query I rowsort
SELECT ALL 13 * 12 AS col2
----
156

query I rowsort
SELECT DISTINCT 18 + 1 AS col1
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4180
SELECT + 40 * + COUNT( * ) DIV + 55 DIV ( 3 ) + + ( - 9 ) + - NULLIF ( 20, - + 30 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-4180
SELECT + 40 * + COUNT ( * ) / + 55 / ( 3 ) + + ( - 9 ) + - NULLIF ( 20, - + 30 ) AS col2
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-4181
SELECT NULLIF ( + - SUM( - 3 ), 27 * - 33 ) AS col1, 63
----
3
63

skipif mysql # not compatible
query II rowsort label-4181
SELECT NULLIF ( + - SUM ( - 3 ), 27 * - 33 ) AS col1, 63
----
3
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT + 4 * + - ( 56 ) - SUM( ALL 1 ) + - 51
----
-276

skipif mysql # not compatible
query I rowsort label-4182
SELECT + 4 * + - ( 56 ) - SUM ( ALL 1 ) + - 51
----
-276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4183
SELECT - COALESCE ( + + ( - 27 ), - + CAST( + CAST( - + 65 AS SIGNED ) AS SIGNED ), - 65 )
----
27

skipif mysql # not compatible
query I rowsort label-4183
SELECT - COALESCE ( + + ( - 27 ), - + CAST ( + CAST ( - + 65 AS INTEGER ) AS INTEGER ), - 65 )
----
27

query I rowsort
SELECT + 92 * - - AVG ( ALL - CASE + ( 80 ) WHEN + 33 * + - 89 + - + 53 THEN - 14 ELSE NULL END ) * + 10 * - ( + 17 ) + - 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT ALL + MAX( - 63 ) * - 66
----
4158

skipif mysql # not compatible
query I rowsort label-4185
SELECT ALL + MAX ( - 63 ) * - 66
----
4158

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT - 21 * - 53 * ( - SUM( - 50 ) ) + + 17 + COUNT( * ) * - 92 AS col1
----
55575

skipif mysql # not compatible
query I rowsort label-4186
SELECT - 21 * - 53 * ( - SUM ( - 50 ) ) + + 17 + COUNT ( * ) * - 92 AS col1
----
55575

query II rowsort
SELECT - 40 + - 25 AS col2, - 60 AS col1
----
-65
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT 74 + - 66 * + + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-4188
SELECT 74 + - 66 * + + COUNT ( * )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4189
SELECT - 67 + - CAST( COUNT( * ) AS SIGNED )
----
-68

skipif mysql # not compatible
query I rowsort label-4189
SELECT - 67 + - CAST ( COUNT ( * ) AS INTEGER )
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-4190
SELECT DISTINCT - CASE + 41 WHEN + 70 THEN COUNT( DISTINCT - - 36 ) / + 40 + + 72 END, + 34 AS col2
----
NULL
34

skipif mysql # not compatible
query II rowsort label-4190
SELECT DISTINCT - CASE + 41 WHEN + 70 THEN COUNT ( DISTINCT - - 36 ) / + 40 + + 72 END, + 34 AS col2
----
NULL
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4191
SELECT ( COALESCE ( - - 76, + COUNT( DISTINCT ( ( CAST( - + ( + ( + - 52 ) ) AS SIGNED ) ) ) ) DIV - - 28 ) ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-4191
SELECT ( COALESCE ( - - 76, + COUNT ( DISTINCT ( ( CAST ( - + ( + ( + - 52 ) ) AS INTEGER ) ) ) ) / - - 28 ) ) AS col2
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4192
SELECT + 33 * ( CAST( - - 62 AS SIGNED ) )
----
2046

skipif mysql # not compatible
query I rowsort label-4192
SELECT + 33 * ( CAST ( - - 62 AS INTEGER ) )
----
2046

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT COUNT( * ) + 10 - - 25
----
36

skipif mysql # not compatible
query I rowsort label-4193
SELECT COUNT ( * ) + 10 - - 25
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4194
SELECT ALL - + 20 DIV ( - 91 ) - COUNT( * ) * - 92 * + 8 AS col1
----
736

skipif mysql # not compatible
query I rowsort label-4194
SELECT ALL - + 20 / ( - 91 ) - COUNT ( * ) * - 92 * + 8 AS col1
----
736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4195
SELECT + CAST( NULL AS SIGNED ) + + 98 / CAST( 44 AS SIGNED ) * + 26 AS col1, - SUM( DISTINCT - + 72 )
----
NULL
72

skipif mysql # not compatible
query II rowsort label-4195
SELECT + CAST ( NULL AS INTEGER ) + + 98 / CAST ( 44 AS INTEGER ) * + 26 AS col1, - SUM ( DISTINCT - + 72 )
----
NULL
72

query I rowsort
SELECT 73 + + 49 AS col2
----
122

onlyif mysql # aggregate syntax: 
query II rowsort label-4197
SELECT - 12 AS col1, ( - COUNT( * ) )
----
-12
-1

skipif mysql # not compatible
query II rowsort label-4197
SELECT - 12 AS col1, ( - COUNT ( * ) )
----
-12
-1

query I rowsort
SELECT ALL + 5 + - 29
----
-24

query I rowsort
SELECT DISTINCT - 50 + 83
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-4200
SELECT - 23 col2, + COUNT( * )
----
-23
1

skipif mysql # not compatible
query II rowsort label-4200
SELECT - 23 col2, + COUNT ( * )
----
-23
1

query I rowsort
SELECT DISTINCT - 60 + + 8
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-4202
SELECT ALL + 5 + - 72 + - + 65 AS col2, SUM( - 79 )
----
-132
-79

skipif mysql # not compatible
query II rowsort label-4202
SELECT ALL + 5 + - 72 + - + 65 AS col2, SUM ( - 79 )
----
-132
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-4203
SELECT COUNT( * ) AS col0, + 42
----
1
42

skipif mysql # not compatible
query II rowsort label-4203
SELECT COUNT ( * ) AS col0, + 42
----
1
42

query I rowsort
SELECT 5 * + 35 * + - 81 - + 46 AS col2
----
-14221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4205
SELECT 63 * + CAST( - - 99 AS SIGNED )
----
6237

skipif mysql # not compatible
query I rowsort label-4205
SELECT 63 * + CAST ( - - 99 AS INTEGER )
----
6237

query II rowsort
SELECT + 88 AS col0, - 10
----
88
-10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4207
SELECT - 31 * - 35 * 65 + + 19 + COUNT( * ) - - 71 * ( - CAST( NULL AS DECIMAL ) ) * + 93 * 54
----
NULL

skipif mysql # not compatible
query I rowsort label-4207
SELECT - 31 * - 35 * 65 + + 19 + COUNT ( * ) - - 71 * ( - CAST ( NULL AS REAL ) ) * + 93 * 54
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4208
SELECT COUNT( * ), 98 / + CAST( NULL AS SIGNED ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4208
SELECT COUNT ( * ), 98 / + CAST ( NULL AS INTEGER ) AS col2
----
1
NULL

query I rowsort
SELECT + 30 * + 51 - + 90
----
1440

onlyif mysql # aggregate syntax: 
query II rowsort label-4210
SELECT COUNT( * ), - 46 AS col0
----
1
-46

skipif mysql # not compatible
query II rowsort label-4210
SELECT COUNT ( * ), - 46 AS col0
----
1
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4211
SELECT DISTINCT - COUNT( + CAST( NULL AS SIGNED ) ) DIV - 13
----
0

skipif mysql # not compatible
query I rowsort label-4211
SELECT DISTINCT - COUNT ( + CAST ( NULL AS INTEGER ) ) / - 13
----
0

query II rowsort
SELECT ALL - 68 AS col1, 94
----
-68
94

query I rowsort
SELECT DISTINCT 18 * - 67 AS col0
----
-1206

onlyif mysql # aggregate syntax: 
query II rowsort label-4214
SELECT + + 76 * 32 * - ( 47 ) + 33 + + - 17 + - - 16 + - COUNT( * ), 79 + + 19 AS col2
----
-114273
98

skipif mysql # not compatible
query II rowsort label-4214
SELECT + + 76 * 32 * - ( 47 ) + 33 + + - 17 + - - 16 + - COUNT ( * ), 79 + + 19 AS col2
----
-114273
98

query I rowsort
SELECT ALL + 76 * + 28
----
2128

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4216
SELECT + ( 73 ) + - 7, 89 DIV - COUNT( * ) AS col1
----
66
-89

skipif mysql # not compatible
query II rowsort label-4216
SELECT + ( 73 ) + - 7, 89 / - COUNT ( * ) AS col1
----
66
-89

query I rowsort
SELECT + 85 * + 90 * + 22 AS col2
----
168300

query I rowsort
SELECT ALL + ( 10 ) col2
----
10

query II rowsort
SELECT ALL 2 col0, 64
----
2
64

query I rowsort
SELECT DISTINCT COALESCE ( - - 20, NULLIF ( + 35, - - 77 ) )
----
20

query II rowsort
SELECT - 63 col0, 59
----
-63
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4222
SELECT + ( 33 ) + - - CAST( NULL AS SIGNED ) / - 79 * - 39 - - COUNT( * ) + COUNT( - 47 ) + - 32 * - + 48 * + 1 / + + 17 + 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4222
SELECT + ( 33 ) + - - CAST ( NULL AS INTEGER ) / - 79 * - 39 - - COUNT ( * ) + COUNT ( - 47 ) + - 32 * - + 48 * + 1 / + + 17 + 16 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4223
SELECT - 97, 90 * + COUNT( * ) AS col1
----
-97
90

skipif mysql # not compatible
query II rowsort label-4223
SELECT - 97, 90 * + COUNT ( * ) AS col1
----
-97
90

query I rowsort
SELECT ALL - NULLIF ( + + 73, + - 92 ) * + + 3 AS col2
----
-219

query I rowsort
SELECT + 31 + - 43
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT - 1 * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4226
SELECT - 1 * - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4227
SELECT DISTINCT + 67 + - - 34 * COUNT( * ) AS col1
----
101

skipif mysql # not compatible
query I rowsort label-4227
SELECT DISTINCT + 67 + - - 34 * COUNT ( * ) AS col1
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT ALL 84 + - ( NULLIF ( - 74, - ( - 98 ) * 30 + 84 + - 40 - MAX( DISTINCT + 56 ) ) ) + - 75 * COUNT( * ) + - 5 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-4228
SELECT ALL 84 + - ( NULLIF ( - 74, - ( - 98 ) * 30 + 84 + - 40 - MAX ( DISTINCT + 56 ) ) ) + - 75 * COUNT ( * ) + - 5 AS col1
----
78

query I rowsort
SELECT ALL 74 + 25
----
99

query I rowsort
SELECT DISTINCT 9 + + 38 AS col1
----
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4231
SELECT ALL ( - CAST( - 9 AS DECIMAL ) ) + - 19 + - 63 * - AVG ( 51 ) * - - COUNT( * ) + - ( + 11 ) * CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4231
SELECT ALL ( - CAST ( - 9 AS REAL ) ) + - 19 + - 63 * - AVG ( 51 ) * - - COUNT ( * ) + - ( + 11 ) * CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4232
SELECT - 38 DIV - CAST( - + 1 AS SIGNED )
----
-38

skipif mysql # not compatible
query I rowsort label-4232
SELECT - 38 / - CAST ( - + 1 AS INTEGER )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT ALL 44 + + - COUNT( * ) * 85 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-4233
SELECT ALL 44 + + - COUNT ( * ) * 85 AS col1
----
-41

query I rowsort
SELECT DISTINCT 3 + + 92 AS col0
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-4235
SELECT + COUNT( * ) + + 95 AS col1, COUNT( * ) * - 68
----
96
-68

skipif mysql # not compatible
query II rowsort label-4235
SELECT + COUNT ( * ) + + 95 AS col1, COUNT ( * ) * - 68
----
96
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-4236
SELECT ALL - 46 DIV + 56
----
0

skipif mysql # not compatible
query I rowsort label-4236
SELECT ALL - 46 / + 56
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT + 2 + - + COUNT( ALL + ( + 21 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4237
SELECT + 2 + - + COUNT ( ALL + ( + 21 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT - COUNT( * ) - + 48
----
-49

skipif mysql # not compatible
query I rowsort label-4238
SELECT - COUNT ( * ) - + 48
----
-49

query I rowsort
SELECT + 20 * 47 AS col1
----
940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4240
SELECT - ( CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4240
SELECT - ( CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 84 + + + 9 AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT ALL + MAX( ALL 83 ) - - COUNT( * ) - - 0 + - + NULLIF ( 34, + 28 / MIN( ALL + + 42 ) )
----
50

skipif mysql # not compatible
query I rowsort label-4242
SELECT ALL + MAX ( ALL 83 ) - - COUNT ( * ) - - 0 + - + NULLIF ( 34, + 28 / MIN ( ALL + + 42 ) )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT ALL + COUNT( - 20 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4243
SELECT ALL + COUNT ( - 20 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4244
SELECT ALL COUNT( + + 51 ) / + - CAST( - 54 AS DECIMAL ) - - CAST( NULL AS SIGNED ) + + 8 - - + 34 * + CAST( - 86 AS SIGNED ) * + 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4244
SELECT ALL COUNT ( + + 51 ) / + - CAST ( - 54 AS REAL ) - - CAST ( NULL AS INTEGER ) + + 8 - - + 34 * + CAST ( - 86 AS INTEGER ) * + 60 AS col1
----
NULL

query I rowsort
SELECT - 70 * 17 + - 82 AS col0
----
-1272

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT + COUNT( * ) * - + MAX( DISTINCT - + 53 ) + + 54 AS col0
----
107

skipif mysql # not compatible
query I rowsort label-4246
SELECT + COUNT ( * ) * - + MAX ( DISTINCT - + 53 ) + + 54 AS col0
----
107

onlyif mysql # DIV for integer division: 
query I rowsort label-4247
SELECT 11 DIV + 91 + ( - 23 ) col0
----
-23

skipif mysql # not compatible
query I rowsort label-4247
SELECT 11 / + 91 + ( - 23 ) col0
----
-23

onlyif mysql # DIV for integer division: 
query II rowsort label-4248
SELECT - - 50 DIV - - 23 AS col2, 9
----
2
9

skipif mysql # not compatible
query II rowsort label-4248
SELECT - - 50 / - - 23 AS col2, 9
----
2
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4249
SELECT - 37 * + + CAST( NULL AS SIGNED ) + + + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-4249
SELECT - 37 * + + CAST ( NULL AS INTEGER ) + + + 88
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT - - SUM( DISTINCT - 95 ) * 29 + 1 + 83 AS col2
----
-2671

skipif mysql # not compatible
query I rowsort label-4250
SELECT - - SUM ( DISTINCT - 95 ) * 29 + 1 + 83 AS col2
----
-2671

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT ALL + COUNT( * ) * + 61 + - 26 + + 51
----
86

skipif mysql # not compatible
query I rowsort label-4251
SELECT ALL + COUNT ( * ) * + 61 + - 26 + + 51
----
86

query I rowsort
SELECT DISTINCT - 62 * 3 col0
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT ALL - 85 * - 32 - 17 * - COALESCE ( + 63, + 35 + - + 73 ) * - 88 + + + 71 + - + COUNT( * ) AS col0
----
-91458

skipif mysql # not compatible
query I rowsort label-4253
SELECT ALL - 85 * - 32 - 17 * - COALESCE ( + 63, + 35 + - + 73 ) * - 88 + + + 71 + - + COUNT ( * ) AS col0
----
-91458

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT ALL - - 78 * + 81 + - MAX( + 20 ) * + COUNT( * ) col1
----
6298

skipif mysql # not compatible
query I rowsort label-4254
SELECT ALL - - 78 * + 81 + - MAX ( + 20 ) * + COUNT ( * ) col1
----
6298

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4255
SELECT - CAST( NULL AS SIGNED ) / + 78 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4255
SELECT - CAST ( NULL AS INTEGER ) / + 78 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4256
SELECT 18 * + COALESCE ( - - CAST( NULL AS SIGNED ), - NULLIF ( + 23, - 78 ) ) + COUNT( 47 ) + - 80 + 42 * + - COUNT( * ) AS col1
----
-535

skipif mysql # not compatible
query I rowsort label-4256
SELECT 18 * + COALESCE ( - - CAST ( NULL AS INTEGER ), - NULLIF ( + 23, - 78 ) ) + COUNT ( 47 ) + - 80 + 42 * + - COUNT ( * ) AS col1
----
-535

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4257
SELECT + + CAST( NULL AS SIGNED ) + COUNT( * ) * + - 52 / + 33 + + + AVG ( ALL 24 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4257
SELECT + + CAST ( NULL AS INTEGER ) + COUNT ( * ) * + - 52 / + 33 + + + AVG ( ALL 24 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4258
SELECT ALL 65 * - MAX( 28 ) / 65 + + 86 + + + 96 - - + CAST( NULL AS SIGNED ) - NULLIF ( 6, COUNT( * ) * + COUNT( * ) + + 15 + - MIN( 67 ) / - 36 * 78 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4258
SELECT ALL 65 * - MAX ( 28 ) / 65 + + 86 + + + 96 - - + CAST ( NULL AS INTEGER ) - NULLIF ( 6, COUNT ( * ) * + COUNT ( * ) + + 15 + - MIN ( 67 ) / - 36 * 78 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT - + 32 + COUNT( * ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-4259
SELECT - + 32 + COUNT ( * ) AS col1
----
-31

query I rowsort
SELECT ALL + COALESCE ( + 62, - 85 ) AS col0
----
62

query I rowsort
SELECT ALL - ( + + 35 ) + - ( + 61 ) + + - 18 + 0 - + 59 * + 30 + - - 62
----
-1822

query I rowsort
SELECT ALL 50 + 6
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-4263
SELECT DISTINCT 55 * + 0 DIV - 25 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4263
SELECT DISTINCT 55 * + 0 / - 25 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT - 84 + 73 * COUNT( * ) * - COUNT( * )
----
-157

skipif mysql # not compatible
query I rowsort label-4264
SELECT - 84 + 73 * COUNT ( * ) * - COUNT ( * )
----
-157

query I rowsort
SELECT ALL 90 - + 4
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT + 96 * ( - 5 ) * + SUM( + 26 ) * + + COUNT( * ) - COUNT( * ) - + + 14 * - + 13 AS col1
----
-12299

skipif mysql # not compatible
query I rowsort label-4266
SELECT + 96 * ( - 5 ) * + SUM ( + 26 ) * + + COUNT ( * ) - COUNT ( * ) - + + 14 * - + 13 AS col1
----
-12299

query I rowsort
SELECT DISTINCT 19 * - + 72
----
-1368

query I rowsort
SELECT ALL COALESCE ( 82, + 97 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT COUNT( * ) * + + 90
----
90

skipif mysql # not compatible
query I rowsort label-4269
SELECT COUNT ( * ) * + + 90
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-4270
SELECT ALL - ( - NULLIF ( COUNT( * ), + 94 * - - 59 ) ) AS col0, - 25 AS col1
----
1
-25

skipif mysql # not compatible
query II rowsort label-4270
SELECT ALL - ( - NULLIF ( COUNT ( * ), + 94 * - - 59 ) ) AS col0, - 25 AS col1
----
1
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-4271
SELECT + 28 DIV - - 14 - - - 46
----
-44

skipif mysql # not compatible
query I rowsort label-4271
SELECT + 28 / - - 14 - - - 46
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4272
SELECT 97 + COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-4272
SELECT 97 + COUNT ( * )
----
98

query II rowsort
SELECT + 5, 68 AS col0
----
5
68

query I rowsort
SELECT 71 * + 49 + 70
----
3549

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT 42 * - MIN( ALL 43 ) AS col0
----
-1806

skipif mysql # not compatible
query I rowsort label-4275
SELECT 42 * - MIN ( ALL 43 ) AS col0
----
-1806

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT ALL + ( - 73 ) * - COUNT( * ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-4276
SELECT ALL + ( - 73 ) * - COUNT ( * ) AS col0
----
73

query I rowsort
SELECT 19 * 25 AS col2
----
475

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT ALL - ( - 79 ) * + MIN( 58 ) AS col1
----
4582

skipif mysql # not compatible
query I rowsort label-4278
SELECT ALL - ( - 79 ) * + MIN ( 58 ) AS col1
----
4582

query I rowsort
SELECT 29 * + 26
----
754

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4280
SELECT ALL 82 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4280
SELECT ALL 82 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT ALL - MIN( ALL 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-4281
SELECT ALL - MIN ( ALL 14 )
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4282
SELECT ALL - COUNT( * ) + 83 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4282
SELECT ALL - COUNT ( * ) + 83 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 27 * 69 + 33 AS col2
----
-1830

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4284
SELECT DISTINCT - ( ( + 87 ) ) + NULLIF ( + ( + 16 ), ( - CAST( + 74 AS SIGNED ) ) ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-4284
SELECT DISTINCT - ( ( + 87 ) ) + NULLIF ( + ( + 16 ), ( - CAST ( + 74 AS INTEGER ) ) ) AS col1
----
-71

query I rowsort
SELECT ALL + 36 + 51 * 71 AS col2
----
3657

onlyif mysql # DIV for integer division: 
query I rowsort label-4286
SELECT 73 DIV - 42 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4286
SELECT 73 / - 42 AS col0
----
-1

query I rowsort
SELECT 44 * 32
----
1408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4288
SELECT ALL + CAST( NULL AS SIGNED ) + - 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4288
SELECT ALL + CAST ( NULL AS INTEGER ) + - 70 AS col1
----
NULL

query I rowsort
SELECT ALL + 46 * 80
----
3680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4290
SELECT DISTINCT 15 + + CAST( + CASE 78 WHEN CAST( NULL AS SIGNED ) THEN - 12 + 44 ELSE NULL END AS SIGNED ) / + 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4290
SELECT DISTINCT 15 + + CAST ( + CASE 78 WHEN CAST ( NULL AS INTEGER ) THEN - 12 + 44 ELSE NULL END AS INTEGER ) / + 87 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4291
SELECT DISTINCT + 64 DIV + 90
----
0

skipif mysql # not compatible
query I rowsort label-4291
SELECT DISTINCT + 64 / + 90
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT ALL 50 + 51 * COALESCE ( 23, - COUNT( * ) * - 89, 80 )
----
1223

skipif mysql # not compatible
query I rowsort label-4292
SELECT ALL 50 + 51 * COALESCE ( 23, - COUNT ( * ) * - 89, 80 )
----
1223

query I rowsort
SELECT ALL 9 * 70
----
630

query I rowsort
SELECT ALL + 46 * 46 AS col1
----
2116

query I rowsort
SELECT 53 + + 51 AS col1
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4296
SELECT MAX( DISTINCT - 1 ) DIV + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4296
SELECT MAX ( DISTINCT - 1 ) / + COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT 63 + - 76 AS col1
----
-13

query I rowsort
SELECT ALL - 74 - NULLIF ( + 45, - 26 + - 44 * 84 )
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT COUNT( ALL + 7 ) - + 90
----
-89

skipif mysql # not compatible
query I rowsort label-4299
SELECT COUNT ( ALL + 7 ) - + 90
----
-89

query I rowsort
SELECT ALL - 83 * - 21 AS col0
----
1743

query I rowsort
SELECT 88 + 65
----
153

query I rowsort
SELECT ALL - 74 - 54 AS col1
----
-128

query I rowsort
SELECT 7 + 92 AS col2
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4304
SELECT CAST( NULL AS SIGNED ) - 74 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4304
SELECT CAST ( NULL AS INTEGER ) - 74 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4305
SELECT 97 + 95 DIV 29 AS col1
----
100

skipif mysql # not compatible
query I rowsort label-4305
SELECT 97 + 95 / 29 AS col1
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT COALESCE ( + MIN( ALL + 99 ), 44, 44, 71 + MIN( DISTINCT - 43 ) ) + NULLIF ( - 76, COUNT( * ) )
----
23

skipif mysql # not compatible
query I rowsort label-4306
SELECT COALESCE ( + MIN ( ALL + 99 ), 44, 44, 71 + MIN ( DISTINCT - 43 ) ) + NULLIF ( - 76, COUNT ( * ) )
----
23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4307
SELECT ALL COUNT( * ) * CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4307
SELECT ALL COUNT ( * ) * CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4308
SELECT COUNT( * ) * CAST( 72 AS SIGNED ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-4308
SELECT COUNT ( * ) * CAST ( 72 AS INTEGER ) AS col0
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4309
SELECT NULLIF ( + 83, + ( - 17 ) * + NULLIF ( + CAST( - 14 AS SIGNED ) * - 62 + - 1, 67 ) - COUNT( * ) * + 55 ) * 55
----
4565

skipif mysql # not compatible
query I rowsort label-4309
SELECT NULLIF ( + 83, + ( - 17 ) * + NULLIF ( + CAST ( - 14 AS INTEGER ) * - 62 + - 1, 67 ) - COUNT ( * ) * + 55 ) * 55
----
4565

query I rowsort
SELECT 42 + 99 * ( 37 ) AS col0
----
3705

onlyif mysql # DIV for integer division: 
query I rowsort label-4311
SELECT 12 DIV 81 + 4
----
4

skipif mysql # not compatible
query I rowsort label-4311
SELECT 12 / 81 + 4
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT DISTINCT + NULLIF ( - 6, - NULLIF ( 81, MAX( DISTINCT 40 ) + 94 ) * - 82 ) + 70 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-4312
SELECT DISTINCT + NULLIF ( - 6, - NULLIF ( 81, MAX ( DISTINCT 40 ) + 94 ) * - 82 ) + 70 AS col1
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-4313
SELECT ALL 65 * COALESCE ( - 32 + 81, - 99 DIV + 33 ) AS col0
----
3185

skipif mysql # not compatible
query I rowsort label-4313
SELECT ALL 65 * COALESCE ( - 32 + 81, - 99 / + 33 ) AS col0
----
3185

query I rowsort
SELECT DISTINCT 39 + + 29 AS col0
----
68

query I rowsort
SELECT 59 * 26 + - 58
----
1476

query I rowsort
SELECT DISTINCT + ( 56 ) * + 97 AS col0
----
5432

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4317
SELECT ALL + CAST( NULL AS DECIMAL ) + - 10 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4317
SELECT ALL + CAST ( NULL AS REAL ) + - 10 col1
----
NULL

query I rowsort
SELECT ALL + 73 + 84 AS col2
----
157

query I rowsort
SELECT ALL - + 1 col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4320
SELECT - + COALESCE ( COALESCE ( + 86, - 97 - 12, 64 ), - CASE + 2 WHEN - 92 THEN 12 WHEN - 51 * - 3 THEN NULL END ) DIV 73 + - 80 * ( - ( - 44 ) * - 60 + 99 )
----
203279

skipif mysql # not compatible
query I rowsort label-4320
SELECT - + COALESCE ( COALESCE ( + 86, - 97 - 12, 64 ), - CASE + 2 WHEN - 92 THEN 12 WHEN - 51 * - 3 THEN NULL END ) / 73 + - 80 * ( - ( - 44 ) * - 60 + 99 )
----
203279

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT DISTINCT NULLIF ( + COUNT( * ), - 90 * - COUNT( * ) + 70 ) + - ( - 48 )
----
49

skipif mysql # not compatible
query I rowsort label-4321
SELECT DISTINCT NULLIF ( + COUNT ( * ), - 90 * - COUNT ( * ) + 70 ) + - ( - 48 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT 64 * + CASE 52 WHEN - COUNT( * ) THEN + COUNT( * ) - 20 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4322
SELECT 64 * + CASE 52 WHEN - COUNT ( * ) THEN + COUNT ( * ) - 20 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 23 + 35 * 19 AS col1
----
688

onlyif mysql # DIV for integer division: 
query I rowsort label-4324
SELECT ALL - 12 DIV 7 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4324
SELECT ALL - 12 / 7 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4325
SELECT DISTINCT - ( + 3 ) DIV 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4325
SELECT DISTINCT - ( + 3 ) / 86 AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4326
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-4326
SELECT DISTINCT - CAST ( NULL AS REAL ) + - 31
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4327
SELECT ALL 94 DIV - COUNT( DISTINCT 4 )
----
-94

skipif mysql # not compatible
query I rowsort label-4327
SELECT ALL 94 / - COUNT ( DISTINCT 4 )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT + - 19 * + COUNT( * ) + 35 * + 35 AS col1
----
1206

skipif mysql # not compatible
query I rowsort label-4328
SELECT + - 19 * + COUNT ( * ) + 35 * + 35 AS col1
----
1206

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT ALL + 60 * MIN( DISTINCT 5 - 10 )
----
-300

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL + 60 * MIN ( DISTINCT 5 - 10 )
----
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT + MAX( DISTINCT 42 )
----
42

skipif mysql # not compatible
query I rowsort label-4330
SELECT + MAX ( DISTINCT 42 )
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4331
SELECT DISTINCT - 5 - - 33 + NULLIF ( ( + 82 ) + + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ), + 96 ) * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4331
SELECT DISTINCT - 5 - - 33 + NULLIF ( ( + 82 ) + + CAST ( CAST ( NULL AS INTEGER ) AS REAL ), + 96 ) * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT ALL MAX( - + 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-4332
SELECT ALL MAX ( - + 46 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT DISTINCT MIN( + + ( + 61 ) ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-4333
SELECT DISTINCT MIN ( + + ( + 61 ) ) AS col1
----
61

query I rowsort
SELECT 79 + - 22 * 7
----
-75

query I rowsort
SELECT ALL COALESCE ( + 70, 92 )
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4336
SELECT - 25 * + CASE 5 WHEN + 83 THEN NULL WHEN 94 THEN 45 ELSE - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) END / 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4336
SELECT - 25 * + CASE 5 WHEN + 83 THEN NULL WHEN 94 THEN 45 ELSE - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) END / 1 AS col2
----
NULL

query I rowsort
SELECT - 43 + + + 19 * - 7
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT - COUNT( * ) * + 23 * 23 AS col1
----
-529

skipif mysql # not compatible
query I rowsort label-4338
SELECT - COUNT ( * ) * + 23 * 23 AS col1
----
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT ALL + 80 * COUNT( * ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-4339
SELECT ALL + 80 * COUNT ( * ) AS col2
----
80

query I rowsort
SELECT - 66 * + - 4
----
264

query I rowsort
SELECT ALL 53 + 50 AS col2
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT - 59 * + COALESCE ( COALESCE ( COUNT( DISTINCT 63 ), - 3 ), + ( 19 ) )
----
-59

skipif mysql # not compatible
query I rowsort label-4342
SELECT - 59 * + COALESCE ( COALESCE ( COUNT ( DISTINCT 63 ), - 3 ), + ( 19 ) )
----
-59

query I rowsort
SELECT ALL COALESCE ( - 68, COALESCE ( 50, + 85 ) * 5 ) AS col2
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4344
SELECT ALL COALESCE ( 93, - CAST( NULL AS SIGNED ), - NULLIF ( 18, CASE 90 WHEN + COALESCE ( CASE - COUNT( * ) WHEN - COUNT( * ) THEN - 61 * SUM( 35 ) WHEN + 45 + 50 THEN NULL ELSE NULL END, + CASE 77 WHEN 2 THEN 2 * + CAST( - 41 AS SIGNED ) WHEN 42 THEN NULL WHEN - 69 THEN NULL ELSE NULL END / - 52 ) / + MIN( DISTINCT COALESCE ( + 28, ( 43 ) + 98 ) * + 83 + + 29 ) THEN + 39 + COUNT( * ) ELSE + 14 * 85 - COUNT( - 85 + - 53 ) END * COALESCE ( 84, COUNT( - 95 ) - 25 ) + 77 ) ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-4344
SELECT ALL COALESCE ( 93, - CAST ( NULL AS INTEGER ), - NULLIF ( 18, CASE 90 WHEN + COALESCE ( CASE - COUNT ( * ) WHEN - COUNT ( * ) THEN - 61 * SUM ( 35 ) WHEN + 45 + 50 THEN NULL ELSE NULL END, + CASE 77 WHEN 2 THEN 2 * + CAST ( - 41 AS INTEGER ) WHEN 42 THEN NULL WHEN - 69 THEN NULL ELSE NULL END / - 52 ) / + MIN ( DISTINCT COALESCE ( + 28, ( 43 ) + 98 ) * + 83 + + 29 ) THEN + 39 + COUNT ( * ) ELSE + 14 * 85 - COUNT ( - 85 + - 53 ) END * COALESCE ( 84, COUNT ( - 95 ) - 25 ) + 77 ) ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT ALL - + 72 + + - 31 + SUM( ALL 7 + 79 ) * + COUNT( * ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-4345
SELECT ALL - + 72 + + - 31 + SUM ( ALL 7 + 79 ) * + COUNT ( * ) AS col1
----
-17

query I rowsort
SELECT - + 2 - - + 57 AS col1
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4347
SELECT ALL + - CAST( - + COUNT( DISTINCT + 71 ) AS SIGNED ) * 99 + CASE NULLIF ( ( - 65 ), - 64 + 64 / ( - 81 ) ) WHEN 45 THEN NULL ELSE + 60 END * 75 col0
----
4599

skipif mysql # not compatible
query I rowsort label-4347
SELECT ALL + - CAST ( - + COUNT ( DISTINCT + 71 ) AS INTEGER ) * 99 + CASE NULLIF ( ( - 65 ), - 64 + 64 / ( - 81 ) ) WHEN 45 THEN NULL ELSE + 60 END * 75 col0
----
4599

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4348
SELECT + - 22 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4348
SELECT + - 22 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT + 38 + SUM( + 65 ) AS col0
----
103

skipif mysql # not compatible
query I rowsort label-4349
SELECT + 38 + SUM ( + 65 ) AS col0
----
103

query I rowsort
SELECT DISTINCT - 83 * - 56 * - 44 + - 36
----
-204548

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT + SUM( DISTINCT 69 ) * + 7
----
483

skipif mysql # not compatible
query I rowsort label-4351
SELECT + SUM ( DISTINCT 69 ) * + 7
----
483

query I rowsort
SELECT ALL + 50 * - 4 - - 14
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT 86 * - + COUNT( * ) * + 43 - 53 AS col2
----
-3751

skipif mysql # not compatible
query I rowsort label-4353
SELECT 86 * - + COUNT ( * ) * + 43 - 53 AS col2
----
-3751

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4354
SELECT DISTINCT MAX( - 21 ) * CAST( - 94 AS SIGNED )
----
1974

skipif mysql # not compatible
query I rowsort label-4354
SELECT DISTINCT MAX ( - 21 ) * CAST ( - 94 AS INTEGER )
----
1974

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4355
SELECT + - 29 DIV - 50 * ( 79 ) + + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4355
SELECT + - 29 / - 50 * ( 79 ) + + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT ALL - 90 * - 89 AS col0
----
8010

query I rowsort
SELECT ALL - 64 * + ( NULLIF ( + 51, 4 ) ) - 4
----
-3268

query I rowsort
SELECT 26 * - + 67 + - 49
----
-1791

query I rowsort
SELECT + 98 * 26
----
2548

query II rowsort
SELECT ALL + 37 AS col1, + 50 + - COALESCE ( 19, 26 * 12, 33 ) AS col2
----
37
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT DISTINCT 74 * - NULLIF ( + + 31, - COUNT( * ) + - 70 * 38 ) - + COUNT( * ) AS col0
----
-2295

skipif mysql # not compatible
query I rowsort label-4361
SELECT DISTINCT 74 * - NULLIF ( + + 31, - COUNT ( * ) + - 70 * 38 ) - + COUNT ( * ) AS col0
----
-2295

onlyif mysql # DIV for integer division: 
query I rowsort label-4362
SELECT ALL 79 DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-4362
SELECT ALL 79 / + 87
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4363
SELECT DISTINCT 97 DIV 97 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4363
SELECT DISTINCT 97 / 97 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT ALL + COUNT( * ) * - + 28 * - 81
----
2268

skipif mysql # not compatible
query I rowsort label-4364
SELECT ALL + COUNT ( * ) * - + 28 * - 81
----
2268

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT ALL COALESCE ( - COUNT( * ), - 47 + NULLIF ( + 93, - 38 * + 59 ), ( 2 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL COALESCE ( - COUNT ( * ), - 47 + NULLIF ( + 93, - 38 * + 59 ), ( 2 ) )
----
-1

query I rowsort
SELECT + 37 + + 72
----
109

query I rowsort
SELECT - 2 * + 31 AS col2
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4368
SELECT + CAST( NULL AS SIGNED ) + - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4368
SELECT + CAST ( NULL AS INTEGER ) + - 48
----
NULL

query I rowsort
SELECT ALL + 11 * + 84
----
924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4370
SELECT ALL COALESCE ( + + 78, - + 12 - 12 * 72, - CAST( NULL AS SIGNED ), MAX( DISTINCT - CAST( NULL AS SIGNED ) ) )
----
78

skipif mysql # not compatible
query I rowsort label-4370
SELECT ALL COALESCE ( + + 78, - + 12 - 12 * 72, - CAST ( NULL AS INTEGER ), MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) )
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4371
SELECT DISTINCT CASE - MIN( - 9 ) WHEN + 31 THEN - CAST( NULL AS SIGNED ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4371
SELECT DISTINCT CASE - MIN ( - 9 ) WHEN + 31 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT + 66 * - ( ( COUNT( * ) ) ) * - 90
----
5940

skipif mysql # not compatible
query I rowsort label-4372
SELECT + 66 * - ( ( COUNT ( * ) ) ) * - 90
----
5940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4373
SELECT ALL + ( - 15 ) + COUNT( * ) - 25 / + CASE AVG ( 44 ) + - 20 * + 98 WHEN 34 THEN NULL WHEN 56 + - CAST( NULL AS SIGNED ) * - 61 THEN COUNT( * ) END * + COALESCE ( + COUNT( - 50 ), 34 * + 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4373
SELECT ALL + ( - 15 ) + COUNT ( * ) - 25 / + CASE AVG ( 44 ) + - 20 * + 98 WHEN 34 THEN NULL WHEN 56 + - CAST ( NULL AS INTEGER ) * - 61 THEN COUNT ( * ) END * + COALESCE ( + COUNT ( - 50 ), 34 * + 34 )
----
NULL

query I rowsort
SELECT - 83 + + - 33 + 21 * - 7 AS col0
----
-263

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4375
SELECT ALL CASE + + 58 WHEN + COUNT( * ) * - ( 23 - 44 ) + 39 THEN - SUM( DISTINCT - 6 ) WHEN + ( 9 ) + NULLIF ( 28, + CAST( NULL AS DECIMAL ) + + COALESCE ( 48 - + COUNT( * ) * - 53, 45, 11 + CASE COUNT( * ) WHEN 95 THEN NULL WHEN + 39 THEN NULL ELSE + 28 END * SUM( ALL + 18 / 16 ) ) / - COUNT( * ) ) THEN NULL WHEN + 57 + 18 THEN NULL ELSE NULL END * ( + 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL CASE + + 58 WHEN + COUNT ( * ) * - ( 23 - 44 ) + 39 THEN - SUM ( DISTINCT - 6 ) WHEN + ( 9 ) + NULLIF ( 28, + CAST ( NULL AS REAL ) + + COALESCE ( 48 - + COUNT ( * ) * - 53, 45, 11 + CASE COUNT ( * ) WHEN 95 THEN NULL WHEN + 39 THEN NULL ELSE + 28 END * SUM ( ALL + 18 / 16 ) ) / - COUNT ( * ) ) THEN NULL WHEN + 57 + 18 THEN NULL ELSE NULL END * ( + 61 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4376
SELECT ALL - COALESCE ( - + 50, - COUNT( * ), + 25 ) + - 56 * - ( 31 DIV 96 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-4376
SELECT ALL - COALESCE ( - + 50, - COUNT ( * ), + 25 ) + - 56 * - ( 31 / 96 ) AS col0
----
50

query I rowsort
SELECT ALL 65 + 73 * ( 83 )
----
6124

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT DISTINCT SUM( - 62 ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-4378
SELECT DISTINCT SUM ( - 62 ) AS col1
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-4379
SELECT ALL - 49 + 10 DIV + 23 - - 95 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-4379
SELECT ALL - 49 + 10 / + 23 - - 95 AS col2
----
46

query I rowsort
SELECT ALL + 37 + + + 93 + - - 42 * 92
----
3994

query I rowsort
SELECT + 30 + + - ( + - 63 )
----
93

query I rowsort
SELECT - 43 + + 64
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4383
SELECT - ( - - CAST( NULL AS SIGNED ) ) + COUNT( * ) * - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-4383
SELECT - ( - - CAST ( NULL AS INTEGER ) ) + COUNT ( * ) * - 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT ALL - 46 * ( + COUNT( * ) ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-4384
SELECT ALL - 46 * ( + COUNT ( * ) ) AS col2
----
-46

query II rowsort
SELECT DISTINCT + 30 col0, 33 * - ( 40 ) + 80
----
30
-1240

query I rowsort
SELECT - 27 + 4 + - 96 + 39 AS col2
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4387
SELECT ALL - 96 - + CAST( - 19 AS SIGNED ) col0
----
-77

skipif mysql # not compatible
query I rowsort label-4387
SELECT ALL - 96 - + CAST ( - 19 AS INTEGER ) col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT - - MAX( ALL - 2 ) + - 21 + 18 * 69 * - 63
----
-78269

skipif mysql # not compatible
query I rowsort label-4388
SELECT - - MAX ( ALL - 2 ) + - 21 + 18 * 69 * - 63
----
-78269

query I rowsort
SELECT ALL + - 40 * 13 col0
----
-520

query I rowsort
SELECT - ( + 46 ) * 2 * + 36 AS col2
----
-3312

query I rowsort
SELECT + 29 * + 87 + + 75
----
2598

onlyif mysql # DIV for integer division: 
query I rowsort label-4392
SELECT + 31 DIV + + 10 + - 26 + + 88 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-4392
SELECT + 31 / + + 10 + - 26 + + 88 AS col2
----
65

query II rowsort
SELECT + 40, 84 AS col2
----
40
84

query II rowsort
SELECT - 73 col1, NULLIF ( - + 5, 80 * 38 + 52 ) + + 61 AS col0
----
-73
56

query I rowsort
SELECT + 56 + - + 53 + - 26 AS col2
----
-23

query I rowsort
SELECT + - 83 * 41 AS col1
----
-3403

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT ALL - MAX( DISTINCT - + 96 ) * - 74 - COUNT( - 81 ) * 38 AS col2
----
-7142

skipif mysql # not compatible
query I rowsort label-4397
SELECT ALL - MAX ( DISTINCT - + 96 ) * - 74 - COUNT ( - 81 ) * 38 AS col2
----
-7142

onlyif mysql # DIV for integer division: 
query I rowsort label-4398
SELECT - 97 + - 17 DIV - + 91
----
-97

skipif mysql # not compatible
query I rowsort label-4398
SELECT - 97 + - 17 / - + 91
----
-97

query I rowsort
SELECT + CASE 4 WHEN + + CASE WHEN NULL IS NULL THEN - 36 END THEN 75 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + COALESCE ( 28, + + 55 ) AS col2
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4401
SELECT + 94 * + 77 * - 10 * - - CASE 77 WHEN + 5 THEN COUNT( * ) * - 32 WHEN 16 THEN - CAST( 40 AS SIGNED ) + 85 END + + 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4401
SELECT + 94 * + 77 * - 10 * - - CASE 77 WHEN + 5 THEN COUNT ( * ) * - 32 WHEN 16 THEN - CAST ( 40 AS INTEGER ) + 85 END + + 9 AS col1
----
NULL

query I rowsort
SELECT ALL - 24 * - + 20 AS col1
----
480

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT DISTINCT - ( + - CASE - 78 WHEN ( 31 ) * COUNT( * ) THEN - 25 + 90 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4403
SELECT DISTINCT - ( + - CASE - 78 WHEN ( 31 ) * COUNT ( * ) THEN - 25 + 90 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4404
SELECT ALL 56 * 53 AS col1, MAX( - - 16 ) + 46 col1
----
2968
62

skipif mysql # not compatible
query II rowsort label-4404
SELECT ALL 56 * 53 AS col1, MAX ( - - 16 ) + 46 col1
----
2968
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4405
SELECT NULLIF ( + SUM( ALL - 76 ), - 40 + 60 ) + CAST( 57 AS SIGNED ) * 38 AS col0
----
2090

skipif mysql # not compatible
query I rowsort label-4405
SELECT NULLIF ( + SUM ( ALL - 76 ), - 40 + 60 ) + CAST ( 57 AS INTEGER ) * 38 AS col0
----
2090

query I rowsort
SELECT 23 + + - 27
----
-4

query I rowsort
SELECT DISTINCT 43 + + COALESCE ( - - ( 43 ), - 10 * - 84, 33 * + 78 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT ALL 78 + - 74 * + CASE - COUNT( * ) WHEN + ( + 7 ) THEN + 28 + 35 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4408
SELECT ALL 78 + - 74 * + CASE - COUNT ( * ) WHEN + ( + 7 ) THEN + 28 + 35 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4409
SELECT 13 * - + 54 AS col2, 0 * - + COUNT( * ) AS col1
----
-702
0

skipif mysql # not compatible
query II rowsort label-4409
SELECT 13 * - + 54 AS col2, 0 * - + COUNT ( * ) AS col1
----
-702
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT DISTINCT COUNT( * ) + - 21 + - 69
----
-89

skipif mysql # not compatible
query I rowsort label-4410
SELECT DISTINCT COUNT ( * ) + - 21 + - 69
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4411
SELECT COUNT( * ) DIV - COALESCE ( COALESCE ( + - COUNT( + 62 ), 65 + + 88 ), ( 20 ) - 93 * 80, - CASE COUNT( * ) WHEN 1 * - 63 THEN 96 * 54 ELSE 11 * + 61 END + 88 )
----
1

skipif mysql # not compatible
query I rowsort label-4411
SELECT COUNT ( * ) / - COALESCE ( COALESCE ( + - COUNT ( + 62 ), 65 + + 88 ), ( 20 ) - 93 * 80, - CASE COUNT ( * ) WHEN 1 * - 63 THEN 96 * 54 ELSE 11 * + 61 END + 88 )
----
1

query II rowsort
SELECT ALL + 62 * + 1 AS col2, 4 * 15 AS col1
----
62
60

query I rowsort
SELECT ALL 18 + - 92 AS col1
----
-74

query I rowsort
SELECT 13 * - 91 * - - 41
----
-48503

query I rowsort
SELECT ALL 36 * + - 51 col2
----
-1836

query II rowsort
SELECT - ( + + 45 ), 9 AS col2
----
-45
9

query I rowsort
SELECT + 11 * + 67 * 88 AS col1
----
64856

onlyif mysql # DIV for integer division: 
query I rowsort label-4418
SELECT ALL + + 4 - + 86 DIV 14 + - 20
----
-22

skipif mysql # not compatible
query I rowsort label-4418
SELECT ALL + + 4 - + 86 / 14 + - 20
----
-22

query I rowsort
SELECT DISTINCT COALESCE ( + 66, - - 71 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT - CASE 93 WHEN CASE WHEN COUNT( * ) >= 21 THEN ( 19 ) + + COUNT( * ) ELSE - 57 + 41 * 32 END THEN - ( + 94 ) - - 11 ELSE NULL END * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4420
SELECT - CASE 93 WHEN CASE WHEN COUNT ( * ) >= 21 THEN ( 19 ) + + COUNT ( * ) ELSE - 57 + 41 * 32 END THEN - ( + 94 ) - - 11 ELSE NULL END * COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 1 * 82 + + + ( 97 ) AS col0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4422
SELECT ALL - 90 DIV COUNT( * ) AS col1, 0 * + COALESCE ( + CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) ) AS col0
----
-90
NULL

skipif mysql # not compatible
query II rowsort label-4422
SELECT ALL - 90 / COUNT ( * ) AS col1, 0 * + COALESCE ( + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) ) AS col0
----
-90
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT - 44 + - COUNT( * ) col2
----
-45

skipif mysql # not compatible
query I rowsort label-4423
SELECT - 44 + - COUNT ( * ) col2
----
-45

query I rowsort
SELECT + ( - + ( + 50 ) ) * - 27 + + 23 AS col2
----
1373

query I rowsort
SELECT DISTINCT - 40 * 81
----
-3240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4426
SELECT DISTINCT - NULLIF ( + 93, 70 * - CAST( + 47 AS SIGNED ) )
----
-93

skipif mysql # not compatible
query I rowsort label-4426
SELECT DISTINCT - NULLIF ( + 93, 70 * - CAST ( + 47 AS INTEGER ) )
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4427
SELECT CAST( NULL AS SIGNED ) * 72 AS col2, - COALESCE ( + 74, - 73 * - 86 + - 37 ) AS col1
----
NULL
-74

skipif mysql # not compatible
query II rowsort label-4427
SELECT CAST ( NULL AS INTEGER ) * 72 AS col2, - COALESCE ( + 74, - 73 * - 86 + - 37 ) AS col1
----
NULL
-74

query I rowsort
SELECT DISTINCT - 96 * + + 98
----
-9408

onlyif mysql # DIV for integer division: 
query I rowsort label-4429
SELECT + 91 * + - 19 * + 83 - - 0 + - + 23 DIV 46 AS col2
----
-143507

skipif mysql # not compatible
query I rowsort label-4429
SELECT + 91 * + - 19 * + 83 - - 0 + - + 23 / 46 AS col2
----
-143507

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4430
SELECT ALL + 56 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4430
SELECT ALL + 56 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4431
SELECT 98 DIV - - 80 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4431
SELECT 98 / - - 80 AS col2
----
1

query I rowsort
SELECT 7 * 19 col2
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT + COUNT( * ) * - 28 + - 69 * + COUNT( * ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-4433
SELECT + COUNT ( * ) * - 28 + - 69 * + COUNT ( * ) AS col2
----
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4434
SELECT 29 * - CAST( NULL AS DECIMAL ) - - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-4434
SELECT 29 * - CAST ( NULL AS REAL ) - - 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT ALL - 84 + MAX( DISTINCT + 87 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4435
SELECT ALL - 84 + MAX ( DISTINCT + 87 ) AS col1
----
3

query I rowsort
SELECT ALL ( - 32 ) + - COALESCE ( 26, + - 40 ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT DISTINCT + 39 + + COUNT( * ) col2
----
40

skipif mysql # not compatible
query I rowsort label-4437
SELECT DISTINCT + 39 + + COUNT ( * ) col2
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4438
SELECT DISTINCT MIN( - - CAST( - 77 AS SIGNED ) ) * - 59
----
4543

skipif mysql # not compatible
query I rowsort label-4438
SELECT DISTINCT MIN ( - - CAST ( - 77 AS INTEGER ) ) * - 59
----
4543

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4439
SELECT DISTINCT - CASE - + 78 WHEN - COUNT( - COALESCE ( 73, CASE 60 WHEN - 42 * 24 THEN NULL WHEN 75 THEN NULL WHEN 26 * 1 + - 24 THEN 29 * - 46 END ) ) THEN CASE ( 83 ) WHEN 77 THEN NULL WHEN 96 THEN + NULLIF ( 22, - 18 - + 96 ) ELSE NULL END * + MAX( DISTINCT 63 / 21 + 51 / 46 ) WHEN 88 + - 26 THEN - 65 END * - AVG ( + 66 + + CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4439
SELECT DISTINCT - CASE - + 78 WHEN - COUNT ( - COALESCE ( 73, CASE 60 WHEN - 42 * 24 THEN NULL WHEN 75 THEN NULL WHEN 26 * 1 + - 24 THEN 29 * - 46 END ) ) THEN CASE ( 83 ) WHEN 77 THEN NULL WHEN 96 THEN + NULLIF ( 22, - 18 - + 96 ) ELSE NULL END * + MAX ( DISTINCT 63 / 21 + 51 / 46 ) WHEN 88 + - 26 THEN - 65 END * - AVG ( + 66 + + CAST ( NULL AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 89 + + + 45
----
134

query I rowsort
SELECT DISTINCT - 67 + - ( - + 53 ) AS col0
----
-14

query I rowsort
SELECT 13 + - - ( - - 97 ) AS col1
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT COUNT( * ) - + 71 + - 68
----
-138

skipif mysql # not compatible
query I rowsort label-4443
SELECT COUNT ( * ) - + 71 + - 68
----
-138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4444
SELECT 22 + + - COALESCE ( + ( + - COUNT( DISTINCT - 75 ) ), 78 + COUNT( * ) DIV 31 )
----
23

skipif mysql # not compatible
query I rowsort label-4444
SELECT 22 + + - COALESCE ( + ( + - COUNT ( DISTINCT - 75 ) ), 78 + COUNT ( * ) / 31 )
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-4445
SELECT + 26 + - 10 + + 48 DIV + + 91 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-4445
SELECT + 26 + - 10 + + 48 / + + 91 AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT ALL + ( + 76 ) - - + COUNT( * ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-4446
SELECT ALL + ( + 76 ) - - + COUNT ( * ) AS col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4447
SELECT - COUNT( * ) * CAST( NULL AS DECIMAL ) + - ( + 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4447
SELECT - COUNT ( * ) * CAST ( NULL AS REAL ) + - ( + 52 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4448
SELECT 87 + + + NULLIF ( + 11, - COALESCE ( - SUM( ALL 23 ), - NULLIF ( - 95, + 63 * 50 ) + - 7 ) ) - - 35 DIV 21 col2
----
99

skipif mysql # not compatible
query I rowsort label-4448
SELECT 87 + + + NULLIF ( + 11, - COALESCE ( - SUM ( ALL 23 ), - NULLIF ( - 95, + 63 * 50 ) + - 7 ) ) - - 35 / 21 col2
----
99

query I rowsort
SELECT ALL 1 * + 7 + + - 12 AS col0
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4450
SELECT DISTINCT - 52 DIV COUNT( * ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-4450
SELECT DISTINCT - 52 / COUNT ( * ) AS col1
----
-52

query I rowsort
SELECT DISTINCT + 46 * 55
----
2530

query I rowsort
SELECT DISTINCT 49 * 69 AS col2
----
3381

query I rowsort
SELECT 26 + + 28
----
54

query I rowsort
SELECT DISTINCT 63 * - + 50
----
-3150

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT - NULLIF ( 97, COUNT( * ) )
----
-97

skipif mysql # not compatible
query I rowsort label-4455
SELECT - NULLIF ( 97, COUNT ( * ) )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT + 11 + + + COUNT( ALL - 98 )
----
12

skipif mysql # not compatible
query I rowsort label-4456
SELECT + 11 + + + COUNT ( ALL - 98 )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4457
SELECT - CAST( - 46 AS SIGNED ) * + - ( COUNT( * ) ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-4457
SELECT - CAST ( - 46 AS INTEGER ) * + - ( COUNT ( * ) ) AS col2
----
-46

query I rowsort
SELECT DISTINCT 90 * + 39
----
3510

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT ALL 47 * + - COUNT( * ) col1
----
-47

skipif mysql # not compatible
query I rowsort label-4459
SELECT ALL 47 * + - COUNT ( * ) col1
----
-47

query I rowsort
SELECT + 87 * + - 87 * 71 AS col2
----
-537399

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT DISTINCT + 22 * - 44 + MIN( - ( + 19 ) ) AS col2
----
-987

skipif mysql # not compatible
query I rowsort label-4461
SELECT DISTINCT + 22 * - 44 + MIN ( - ( + 19 ) ) AS col2
----
-987

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4462
SELECT DISTINCT + COUNT( ALL - 15 ) * + 78 + + - 24 + + ( 74 ) DIV - 60
----
53

skipif mysql # not compatible
query I rowsort label-4462
SELECT DISTINCT + COUNT ( ALL - 15 ) * + 78 + + - 24 + + ( 74 ) / - 60
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-4463
SELECT DISTINCT + 40 AS col0, COUNT( ALL 62 ) AS col1
----
40
1

skipif mysql # not compatible
query II rowsort label-4463
SELECT DISTINCT + 40 AS col0, COUNT ( ALL 62 ) AS col1
----
40
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4464
SELECT CASE - 48 WHEN - 88 * - - CAST( - 27 AS SIGNED ) / - 73 THEN COUNT( ALL 86 ) * + 68 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4464
SELECT CASE - 48 WHEN - 88 * - - CAST ( - 27 AS INTEGER ) / - 73 THEN COUNT ( ALL 86 ) * + 68 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4465
SELECT 88 DIV + 95 + - 51 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-4465
SELECT 88 / + 95 + - 51 AS col1
----
-51

query I rowsort
SELECT + ( + + 34 ) * + + 0 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4467
SELECT - 79 + - COUNT( * ) DIV - 35
----
-79

skipif mysql # not compatible
query I rowsort label-4467
SELECT - 79 + - COUNT ( * ) / - 35
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-4468
SELECT - 96 DIV - + ( + 6 )
----
16

skipif mysql # not compatible
query I rowsort label-4468
SELECT - 96 / - + ( + 6 )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT ALL - 65 * - MAX( + - 79 ) + - 74
----
-5209

skipif mysql # not compatible
query I rowsort label-4469
SELECT ALL - 65 * - MAX ( + - 79 ) + - 74
----
-5209

query I rowsort
SELECT 53 * + 56 + - 86 col2
----
2882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4471
SELECT ALL COUNT( * ) * - + CAST( - - 92 AS SIGNED ) DIV + MIN( + - 89 )
----
1

skipif mysql # not compatible
query I rowsort label-4471
SELECT ALL COUNT ( * ) * - + CAST ( - - 92 AS INTEGER ) / + MIN ( + - 89 )
----
1

query I rowsort
SELECT DISTINCT - 7 * + 76
----
-532

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT ALL + MAX( ALL 81 )
----
81

skipif mysql # not compatible
query I rowsort label-4473
SELECT ALL + MAX ( ALL 81 )
----
81

query I rowsort
SELECT - 37 + 26
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4475
SELECT - COALESCE ( + 78, - COUNT( * ) * + 61 * - 68 - + - ( + SUM( + 90 ) ) * 45 ) + + 33 DIV + 26
----
-77

skipif mysql # not compatible
query I rowsort label-4475
SELECT - COALESCE ( + 78, - COUNT ( * ) * + 61 * - 68 - + - ( + SUM ( + 90 ) ) * 45 ) + + 33 / + 26
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT ALL + COUNT( DISTINCT + + 86 )
----
1

skipif mysql # not compatible
query I rowsort label-4476
SELECT ALL + COUNT ( DISTINCT + + 86 )
----
1

query I rowsort
SELECT - 7 + + 51
----
44

query I rowsort
SELECT DISTINCT + 36 * - + 55
----
-1980

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT - 53 * - CASE - - MIN( DISTINCT + 78 ) WHEN + - 46 / - 83 - 62 THEN - 59 / - 81 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4479
SELECT - 53 * - CASE - - MIN ( DISTINCT + 78 ) WHEN + - 46 / - 83 - 62 THEN - 59 / - 81 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 25 - - 5
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4481
SELECT DISTINCT + 56 * + CAST( + COUNT( * ) AS SIGNED ) col2
----
56

skipif mysql # not compatible
query I rowsort label-4481
SELECT DISTINCT + 56 * + CAST ( + COUNT ( * ) AS INTEGER ) col2
----
56

query I rowsort
SELECT ALL 90 * - ( + + 39 ) * - 79 + - 66
----
277224

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT - MIN( ALL - 83 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-4483
SELECT - MIN ( ALL - 83 ) AS col1
----
83

query II rowsort
SELECT - 57 AS col1, - 42 AS col2
----
-57
-42

query II rowsort
SELECT ALL 80 AS col0, ( - + 48 ) AS col2
----
80
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4486
SELECT ALL - CAST( + 4 AS SIGNED ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-4486
SELECT ALL - CAST ( + 4 AS INTEGER ) AS col0
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4487
SELECT - - 71 AS col0, SUM( ALL + CAST( + CAST( 99 AS SIGNED ) AS SIGNED ) ) DIV 6 * 23
----
71
368

skipif mysql # not compatible
query II rowsort label-4487
SELECT - - 71 AS col0, SUM ( ALL + CAST ( + CAST ( 99 AS INTEGER ) AS INTEGER ) ) / 6 * 23
----
71
368

onlyif mysql # DIV for integer division: 
query I rowsort label-4488
SELECT - 35 DIV - + 44
----
0

skipif mysql # not compatible
query I rowsort label-4488
SELECT - 35 / - + 44
----
0

query I rowsort
SELECT ALL + 12 + + - 94
----
-82

onlyif mysql # DIV for integer division: 
query II rowsort label-4490
SELECT + 42 AS col1, - 73 DIV + + 57
----
42
-1

skipif mysql # not compatible
query II rowsort label-4490
SELECT + 42 AS col1, - 73 / + + 57
----
42
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4491
SELECT ALL + 90 * + 93 * - ( - - COUNT( * ) ) + - CAST( NULL AS DECIMAL ) + + COALESCE ( 99, + COUNT( * ) ) - + 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4491
SELECT ALL + 90 * + 93 * - ( - - COUNT ( * ) ) + - CAST ( NULL AS REAL ) + + COALESCE ( 99, + COUNT ( * ) ) - + 33 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4492
SELECT ALL NULLIF ( 81, 86 * + CASE AVG ( DISTINCT - - CAST( NULL AS SIGNED ) ) WHEN 14 + - 28 * - 34 THEN - 85 END + COUNT( * ) ) + 6
----
87

skipif mysql # not compatible
query I rowsort label-4492
SELECT ALL NULLIF ( 81, 86 * + CASE AVG ( DISTINCT - - CAST ( NULL AS INTEGER ) ) WHEN 14 + - 28 * - 34 THEN - 85 END + COUNT ( * ) ) + 6
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4493
SELECT - COUNT( ALL + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-4493
SELECT - COUNT ( ALL + CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT + - 10 * 36 AS col0
----
-360

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4495
SELECT + - SUM( DISTINCT + - 3 ) / - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4495
SELECT + - SUM ( DISTINCT + - 3 ) / - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 68 * + 36 AS col0
----
2448

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4497
SELECT + ( - 26 ) DIV - + ( - SUM( - 73 ) ) * - + 59 + - ( 90 + - 67 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-4497
SELECT + ( - 26 ) / - + ( - SUM ( - 73 ) ) * - + 59 + - ( 90 + - 67 ) AS col2
----
-23

query I rowsort
SELECT + 21 + + 36
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4499
SELECT DISTINCT - COUNT( ALL + 29 ) DIV - - CASE 36 WHEN - CAST( NULL AS SIGNED ) THEN - CAST( NULL AS SIGNED ) ELSE + 14 END + 63 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-4499
SELECT DISTINCT - COUNT ( ALL + 29 ) / - - CASE 36 WHEN - CAST ( NULL AS INTEGER ) THEN - CAST ( NULL AS INTEGER ) ELSE + 14 END + 63 AS col1
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4500
SELECT + COALESCE ( + + 20, 60 * - 1, 59 * COUNT( * ) DIV - 76 DIV 72 )
----
20

skipif mysql # not compatible
query I rowsort label-4500
SELECT + COALESCE ( + + 20, 60 * - 1, 59 * COUNT ( * ) / - 76 / 72 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT MAX( - 18 ) * + 19 * + ( - 20 ) + + ( + MAX( ALL + 13 ) )
----
6853

skipif mysql # not compatible
query I rowsort label-4501
SELECT MAX ( - 18 ) * + 19 * + ( - 20 ) + + ( + MAX ( ALL + 13 ) )
----
6853

onlyif mysql # DIV for integer division: 
query I rowsort label-4502
SELECT ALL - 21 DIV - 57 + - - ( 66 ) * + 37 AS col0
----
2442

skipif mysql # not compatible
query I rowsort label-4502
SELECT ALL - 21 / - 57 + - - ( 66 ) * + 37 AS col0
----
2442

onlyif mysql # DIV for integer division: 
query I rowsort label-4503
SELECT ALL + 38 DIV - 49 + 34 - - + NULLIF ( - - 1, - 97 ) * + ( 46 )
----
80

skipif mysql # not compatible
query I rowsort label-4503
SELECT ALL + 38 / - 49 + 34 - - + NULLIF ( - - 1, - 97 ) * + ( 46 )
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4504
SELECT CAST( - NULLIF ( + 10, + 93 ) AS SIGNED )
----
-10

skipif mysql # not compatible
query I rowsort label-4504
SELECT CAST ( - NULLIF ( + 10, + 93 ) AS INTEGER )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT ALL 73 * - COALESCE ( + 86, MIN( DISTINCT + - ( 85 ) ) * + + 45, - 65 - 15 ) * 0
----
0

skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL 73 * - COALESCE ( + 86, MIN ( DISTINCT + - ( 85 ) ) * + + 45, - 65 - 15 ) * 0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4506
SELECT DISTINCT 13 DIV + + 48 DIV + - COUNT( * ) + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4506
SELECT DISTINCT 13 / + + 48 / + - COUNT ( * ) + - COUNT ( * )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4507
SELECT DISTINCT - 38 DIV 45 + 69 DIV + 28 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4507
SELECT DISTINCT - 38 / 45 + 69 / + 28 AS col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4508
SELECT ALL 6 DIV + 48 - + - 39 col1
----
39

skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL 6 / + 48 - + - 39 col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT - 81 * + - COUNT( * ) + 9 * COALESCE ( + + SUM( 93 ), - 34 - 52 * 11 )
----
918

skipif mysql # not compatible
query I rowsort label-4509
SELECT - 81 * + - COUNT ( * ) + 9 * COALESCE ( + + SUM ( 93 ), - 34 - 52 * 11 )
----
918

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4510
SELECT ALL CAST( + + 91 AS SIGNED ) DIV - - MIN( + 52 )
----
1

skipif mysql # not compatible
query I rowsort label-4510
SELECT ALL CAST ( + + 91 AS INTEGER ) / - - MIN ( + 52 )
----
1

query II rowsort
SELECT ( - 78 ) col1, 76
----
-78
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4512
SELECT COUNT( * ) * + 70 * + CAST( - + NULLIF ( + ( + 15 ), + + 21 + 37 ) AS SIGNED ) * - ( + 28 ) - 8
----
29392

skipif mysql # not compatible
query I rowsort label-4512
SELECT COUNT ( * ) * + 70 * + CAST ( - + NULLIF ( + ( + 15 ), + + 21 + 37 ) AS INTEGER ) * - ( + 28 ) - 8
----
29392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4513
SELECT - SUM( + CAST( 86 AS SIGNED ) ) * 58 * - ( 87 )
----
433956

skipif mysql # not compatible
query I rowsort label-4513
SELECT - SUM ( + CAST ( 86 AS INTEGER ) ) * 58 * - ( 87 )
----
433956

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4514
SELECT ALL CAST( 5 AS SIGNED ) * - - 47
----
235

skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL CAST ( 5 AS INTEGER ) * - - 47
----
235

query II rowsort
SELECT - 30 * 68 AS col1, 13 + 24 + 96 AS col2
----
-2040
133

query II rowsort
SELECT - ( - 8 ) AS col0, 12 AS col2
----
8
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT ALL - 68 * - 47 * - 98 + + 29 * 32 + + - COUNT( * ) AS col2
----
-312281

skipif mysql # not compatible
query I rowsort label-4517
SELECT ALL - 68 * - 47 * - 98 + + 29 * 32 + + - COUNT ( * ) AS col2
----
-312281

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4518
SELECT - - 57 * - 74 * CAST( + COUNT( * ) AS SIGNED ) AS col1
----
-4218

skipif mysql # not compatible
query I rowsort label-4518
SELECT - - 57 * - 74 * CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
-4218

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4519
SELECT ALL - - MIN( 29 ) DIV 71 - MIN( - 18 ) - COUNT( * ) * + 91 + ( - 25 ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-4519
SELECT ALL - - MIN ( 29 ) / 71 - MIN ( - 18 ) - COUNT ( * ) * + 91 + ( - 25 ) AS col0
----
-98

query I rowsort
SELECT + + 88 * 72 AS col0
----
6336

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT - ( 1 ) + + COUNT( * ) + + 62
----
62

skipif mysql # not compatible
query I rowsort label-4521
SELECT - ( 1 ) + + COUNT ( * ) + + 62
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT + MIN( DISTINCT - - 45 )
----
45

skipif mysql # not compatible
query I rowsort label-4522
SELECT + MIN ( DISTINCT - - 45 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT ALL + MIN( DISTINCT + - 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-4523
SELECT ALL + MIN ( DISTINCT + - 37 )
----
-37

query I rowsort
SELECT - 24 + 29
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4525
SELECT + 93 * 26, + 0 - - + COUNT( * ) * + 63 * - - 2 * CAST( - COUNT( * ) AS SIGNED ) AS col0
----
2418
-126

skipif mysql # not compatible
query II rowsort label-4525
SELECT + 93 * 26, + 0 - - + COUNT ( * ) * + 63 * - - 2 * CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
2418
-126

query I rowsort
SELECT ALL 5 * ( + 96 ) + - - 45 + 96 + - 19 * + + ( 58 ) * + 20 AS col0
----
-21419

query I rowsort
SELECT DISTINCT + + ( ( - + 7 ) ) + + + 58 col0
----
51

query I rowsort
SELECT DISTINCT + - 63 + - 83
----
-146

query I rowsort
SELECT ALL - 61 + - - 16
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT SUM( ALL + 39 ) + ( - COALESCE ( 34, + COALESCE ( + MIN( + NULLIF ( - 55, 70 ) ), 32 + - 66 * - 97 ) + 24 ) ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-4530
SELECT SUM ( ALL + 39 ) + ( - COALESCE ( 34, + COALESCE ( + MIN ( + NULLIF ( - 55, 70 ) ), 32 + - 66 * - 97 ) + 24 ) ) AS col1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4531
SELECT ALL + - 13 + 1 * 10 * 80 DIV - 3 AS col2
----
-279

skipif mysql # not compatible
query I rowsort label-4531
SELECT ALL + - 13 + 1 * 10 * 80 / - 3 AS col2
----
-279

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT + 73 + CASE - + 3 WHEN - 8 THEN 53 WHEN + - MAX( - - 61 ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4532
SELECT + 73 + CASE - + 3 WHEN - 8 THEN 53 WHEN + - MAX ( - - 61 ) THEN NULL ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT ALL 52 col1, 35 * 59
----
52
2065

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4534
SELECT 72 AS col0, CAST( 44 AS SIGNED )
----
72
44

skipif mysql # not compatible
query II rowsort label-4534
SELECT 72 AS col0, CAST ( 44 AS INTEGER )
----
72
44

query I rowsort
SELECT ALL 62 + - 43
----
19

query I rowsort
SELECT 7 * + 47 * - 2 AS col0
----
-658

onlyif mysql # DIV for integer division: 
query I rowsort label-4537
SELECT ALL 79 DIV 16
----
4

skipif mysql # not compatible
query I rowsort label-4537
SELECT ALL 79 / 16
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT DISTINCT - ( + CASE + 71 WHEN + 51 * + 89 * - - 13 / 35 - 52 THEN COUNT( * ) / 98 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4538
SELECT DISTINCT - ( + CASE + 71 WHEN + 51 * + 89 * - - 13 / 35 - 52 THEN COUNT ( * ) / 98 ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4539
SELECT DISTINCT ( CAST( CAST( + 73 AS SIGNED ) AS SIGNED ) ) - 39
----
34

skipif mysql # not compatible
query I rowsort label-4539
SELECT DISTINCT ( CAST ( CAST ( + 73 AS INTEGER ) AS INTEGER ) ) - 39
----
34

query II rowsort
SELECT 32 * 76 * - 26 AS col2, - 26
----
-63232
-26

query I rowsort
SELECT DISTINCT 49 * - 11 AS col2
----
-539

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4542
SELECT COUNT( * ) * + 62 DIV COUNT( ALL + + 49 ) col0
----
62

skipif mysql # not compatible
query I rowsort label-4542
SELECT COUNT ( * ) * + 62 / COUNT ( ALL + + 49 ) col0
----
62

query I rowsort
SELECT - 40 * 53 + + - 26
----
-2146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4544
SELECT 16 DIV + NULLIF ( - 30, - 38 * + MIN( ALL 86 ) * + ( 41 ) + - 53 * 54 + + 42 )
----
0

skipif mysql # not compatible
query I rowsort label-4544
SELECT 16 / + NULLIF ( - 30, - 38 * + MIN ( ALL 86 ) * + ( 41 ) + - 53 * 54 + + 42 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4545
SELECT 51 DIV - 9 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-4545
SELECT 51 / - 9 AS col1
----
-5

query I rowsort
SELECT 22 + - 76 + + 15 AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT 26 * + ( COUNT( * ) ) + - 30 + 30
----
26

skipif mysql # not compatible
query I rowsort label-4547
SELECT 26 * + ( COUNT ( * ) ) + - 30 + 30
----
26

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4548
SELECT ALL CAST( - COALESCE ( - 77, 4 + CASE 27 WHEN - 49 + - 99 + + 31 THEN + ( 29 ) + 23 ELSE CASE 14 WHEN + 33 THEN - 66 ELSE 16 END * 97 END, + CAST( + NULLIF ( - 7, + 10 ) AS DECIMAL ) + 87 ) AS SIGNED ) * + 67
----
5159

skipif mysql # not compatible
query I rowsort label-4548
SELECT ALL CAST ( - COALESCE ( - 77, 4 + CASE 27 WHEN - 49 + - 99 + + 31 THEN + ( 29 ) + 23 ELSE CASE 14 WHEN + 33 THEN - 66 ELSE 16 END * 97 END, + CAST ( + NULLIF ( - 7, + 10 ) AS REAL ) + 87 ) AS INTEGER ) * + 67
----
5159

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT COALESCE ( 78, + + 55 ) * + COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-4549
SELECT COALESCE ( 78, + + 55 ) * + COUNT ( * )
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4550
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 49 / + 7 AS col0, 65 * + 81 AS col1
----
NULL
5265

skipif mysql # not compatible
query II rowsort label-4550
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 49 / + 7 AS col0, 65 * + 81 AS col1
----
NULL
5265

query III rowsort
SELECT ALL - NULLIF ( + 38, + 56 ) AS col1, NULLIF ( 47, 47 ), - + 32 * + 88 AS col0
----
-38
NULL
-2816

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT + COUNT( * ) * 84 + + ( - - 51 )
----
135

skipif mysql # not compatible
query I rowsort label-4552
SELECT + COUNT ( * ) * 84 + + ( - - 51 )
----
135

onlyif mysql # aggregate syntax: 
query II rowsort label-4553
SELECT ALL - 93 AS col1, SUM( + 99 ) AS col0
----
-93
99

skipif mysql # not compatible
query II rowsort label-4553
SELECT ALL - 93 AS col1, SUM ( + 99 ) AS col0
----
-93
99

query I rowsort
SELECT DISTINCT - COALESCE ( - 93, COALESCE ( + 49, + - NULLIF ( + 18, 66 * - 22 + + 66 ) ) )
----
93

query I rowsort
SELECT 85 + - - 25
----
110

onlyif mysql # aggregate syntax: 
query II rowsort label-4556
SELECT 31 * COUNT( * ) * 78 AS col2, - 64 AS col2
----
2418
-64

skipif mysql # not compatible
query II rowsort label-4556
SELECT 31 * COUNT ( * ) * 78 AS col2, - 64 AS col2
----
2418
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT - 81 * - MAX( ALL 8 ) + 51
----
699

skipif mysql # not compatible
query I rowsort label-4557
SELECT - 81 * - MAX ( ALL 8 ) + 51
----
699

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT MIN( ALL + 60 ) + - 46
----
14

skipif mysql # not compatible
query I rowsort label-4558
SELECT MIN ( ALL + 60 ) + - 46
----
14

query I rowsort
SELECT DISTINCT 29 + + - 14
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT ALL - MAX( + NULLIF ( 42, + NULLIF ( - 71, + 9 ) * 60 ) )
----
-42

skipif mysql # not compatible
query I rowsort label-4560
SELECT ALL - MAX ( + NULLIF ( 42, + NULLIF ( - 71, + 9 ) * 60 ) )
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4561
SELECT + CAST( + 6 AS SIGNED )
----
6

skipif mysql # not compatible
query I rowsort label-4561
SELECT + CAST ( + 6 AS INTEGER )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4562
SELECT + AVG ( 76 ) * - CAST( NULL AS SIGNED ) * COALESCE ( 93, - - 14 * - NULLIF ( - COUNT( * ), 29 ) - 78, 38 + CASE 32 WHEN 83 + + 34 * 63 THEN - COUNT( - 29 ) / + 35 WHEN 9 * + 60 THEN + 33 WHEN + ( - 49 ) + - 86 * - 64 THEN ( - 4 ) ELSE 64 / + COUNT( * ) + - 75 END ) + 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4562
SELECT + AVG ( 76 ) * - CAST ( NULL AS INTEGER ) * COALESCE ( 93, - - 14 * - NULLIF ( - COUNT ( * ), 29 ) - 78, 38 + CASE 32 WHEN 83 + + 34 * 63 THEN - COUNT ( - 29 ) / + 35 WHEN 9 * + 60 THEN + 33 WHEN + ( - 49 ) + - 86 * - 64 THEN ( - 4 ) ELSE 64 / + COUNT ( * ) + - 75 END ) + 10 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4563
SELECT DISTINCT 9, CAST( MAX( ALL - 78 ) AS SIGNED ) AS col0
----
9
-78

skipif mysql # not compatible
query II rowsort label-4563
SELECT DISTINCT 9, CAST ( MAX ( ALL - 78 ) AS INTEGER ) AS col0
----
9
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT ALL + 65 + + 71 - - + COUNT( * ) * + COALESCE ( NULLIF ( - 90, + COUNT( * ) ), - + 3, - 71 * COUNT( * ) )
----
46

skipif mysql # not compatible
query I rowsort label-4564
SELECT ALL + 65 + + 71 - - + COUNT ( * ) * + COALESCE ( NULLIF ( - 90, + COUNT ( * ) ), - + 3, - 71 * COUNT ( * ) )
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4565
SELECT - + CASE + COALESCE ( - - 82, 81 ) WHEN + - 57 / - - 52 THEN COUNT( * ) WHEN - 65 THEN CAST( 86 AS SIGNED ) * CAST( 67 AS SIGNED ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4565
SELECT - + CASE + COALESCE ( - - 82, 81 ) WHEN + - 57 / - - 52 THEN COUNT ( * ) WHEN - 65 THEN CAST ( 86 AS INTEGER ) * CAST ( 67 AS INTEGER ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 0 + + CASE + 24 WHEN 68 / 82 * + 47 * 84 THEN - + 88 ELSE NULL END * 12 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT ALL - + ( + 87 ) + + COUNT( + - 71 ) + - + 97
----
-183

skipif mysql # not compatible
query I rowsort label-4567
SELECT ALL - + ( + 87 ) + + COUNT ( + - 71 ) + - + 97
----
-183

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4568
SELECT 34 DIV - COALESCE ( + + 8, + 22 + - 30 + - 26 ) * COUNT( * ) - - 93 + + 30
----
119

skipif mysql # not compatible
query I rowsort label-4568
SELECT 34 / - COALESCE ( + + 8, + 22 + - 30 + - 26 ) * COUNT ( * ) - - 93 + + 30
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT ALL 14 + + - NULLIF ( + 75, + 12 ) * - + 27 * - COUNT( * )
----
-2011

skipif mysql # not compatible
query I rowsort label-4569
SELECT ALL 14 + + - NULLIF ( + 75, + 12 ) * - + 27 * - COUNT ( * )
----
-2011

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT ALL - COUNT( * ) + - 95
----
-96

skipif mysql # not compatible
query I rowsort label-4570
SELECT ALL - COUNT ( * ) + - 95
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-4571
SELECT 13 DIV 44 * + NULLIF ( - NULLIF ( - - 65, - 47 ), - 44 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4571
SELECT 13 / 44 * + NULLIF ( - NULLIF ( - - 65, - 47 ), - 44 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT MAX( + - 25 ) * - 57
----
1425

skipif mysql # not compatible
query I rowsort label-4572
SELECT MAX ( + - 25 ) * - 57
----
1425

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT COALESCE ( + - 6, - + 95 * - 30 + - - 9, + - 12 ) * + COUNT( * ) + - CASE - MIN( + COALESCE ( - 23, 43 / + 44 ) ) WHEN - 87 - + COUNT( * ) THEN NULL WHEN 28 + 60 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4573
SELECT COALESCE ( + - 6, - + 95 * - 30 + - - 9, + - 12 ) * + COUNT ( * ) + - CASE - MIN ( + COALESCE ( - 23, 43 / + 44 ) ) WHEN - 87 - + COUNT ( * ) THEN NULL WHEN 28 + 60 THEN COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT ALL + - 86 + - COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-4574
SELECT ALL + - 86 + - COUNT ( * )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT ALL SUM( DISTINCT + + 89 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-4575
SELECT ALL SUM ( DISTINCT + + 89 ) AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT ALL - COUNT( * ) * - ( - 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL - COUNT ( * ) * - ( - 35 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT 17 - - 12 + + 83 * 83 * + - COUNT( * ) + + + 89
----
-6771

skipif mysql # not compatible
query I rowsort label-4577
SELECT 17 - - 12 + + 83 * 83 * + - COUNT ( * ) + + + 89
----
-6771

onlyif mysql # aggregate syntax: 
query II rowsort label-4578
SELECT ALL COUNT( + 10 ) col0, + 44 col1
----
1
44

skipif mysql # not compatible
query II rowsort label-4578
SELECT ALL COUNT ( + 10 ) col0, + 44 col1
----
1
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4579
SELECT DISTINCT - COALESCE ( + 97, + - 81 ) * - + 6 + + 71 + ( + 17 ) * + - CAST( - CASE - 23 WHEN + 55 THEN NULL WHEN 17 THEN + 59 + + 71 ELSE 44 END AS SIGNED ) * - 59
----
-43479

skipif mysql # not compatible
query I rowsort label-4579
SELECT DISTINCT - COALESCE ( + 97, + - 81 ) * - + 6 + + 71 + ( + 17 ) * + - CAST ( - CASE - 23 WHEN + 55 THEN NULL WHEN 17 THEN + 59 + + 71 ELSE 44 END AS INTEGER ) * - 59
----
-43479

query I rowsort
SELECT 7 + 91 AS col1
----
98

query II rowsort
SELECT 42 * - 31 AS col1, 69 AS col1
----
-1302
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4582
SELECT ALL COUNT( DISTINCT + 87 )
----
1

skipif mysql # not compatible
query I rowsort label-4582
SELECT ALL COUNT ( DISTINCT + 87 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT 16 + MIN( - ( 18 ) ) * 90
----
-1604

skipif mysql # not compatible
query I rowsort label-4583
SELECT 16 + MIN ( - ( 18 ) ) * 90
----
-1604

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4584
SELECT CASE + 32 WHEN + - SUM( 84 ) + + + ( - - 86 ) - - MAX( DISTINCT 54 ) + - 60 * + CAST( 24 + - COUNT( * ) AS DECIMAL ) THEN ( 39 ) + - 5 ELSE - 74 END + - ( - MIN( DISTINCT 99 ) + + ( - COUNT( * ) ) ) * - 29
----
-2974

skipif mysql # not compatible
query I rowsort label-4584
SELECT CASE + 32 WHEN + - SUM ( 84 ) + + + ( - - 86 ) - - MAX ( DISTINCT 54 ) + - 60 * + CAST ( 24 + - COUNT ( * ) AS REAL ) THEN ( 39 ) + - 5 ELSE - 74 END + - ( - MIN ( DISTINCT 99 ) + + ( - COUNT ( * ) ) ) * - 29
----
-2974

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT 32 * + 13 * 47 * - MIN( ALL - 25 ) col2
----
488800

skipif mysql # not compatible
query I rowsort label-4585
SELECT 32 * + 13 * 47 * - MIN ( ALL - 25 ) col2
----
488800

query I rowsort
SELECT 67 * - - 68
----
4556

onlyif mysql # aggregate syntax: 
query II rowsort label-4587
SELECT + SUM( - + 6 ) AS col0, COUNT( * ) AS col0
----
-6
1

skipif mysql # not compatible
query II rowsort label-4587
SELECT + SUM ( - + 6 ) AS col0, COUNT ( * ) AS col0
----
-6
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4588
SELECT DISTINCT 24 DIV + 40 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4588
SELECT DISTINCT 24 / + 40 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT ALL - MAX( 51 ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-4589
SELECT ALL - MAX ( 51 ) AS col2
----
-51

query I rowsort
SELECT 57 * + 81
----
4617

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4591
SELECT DISTINCT - ( + 61 ) DIV COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-4591
SELECT DISTINCT - ( + 61 ) / COUNT ( * )
----
-61

query I rowsort
SELECT ALL 53 * + ( - 91 ) + - 30
----
-4853

query I rowsort
SELECT 87 + 89 AS col0
----
176

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4594
SELECT + 35 * 22, + CAST( NULL AS SIGNED ) * + 32 * 68 AS col2
----
770
NULL

skipif mysql # not compatible
query II rowsort label-4594
SELECT + 35 * 22, + CAST ( NULL AS INTEGER ) * + 32 * 68 AS col2
----
770
NULL

query I rowsort
SELECT DISTINCT - 19 * 83 * - 91 AS col0
----
143507

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT + 79 * - + COUNT( - 38 ) * 10 * 89 AS col0
----
-70310

skipif mysql # not compatible
query I rowsort label-4596
SELECT + 79 * - + COUNT ( - 38 ) * 10 * 89 AS col0
----
-70310

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT DISTINCT 27 + + COALESCE ( + 48, + 28 + + 31 - - - 4 * + + COUNT( * ) ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-4597
SELECT DISTINCT 27 + + COALESCE ( + 48, + 28 + + 31 - - - 4 * + + COUNT ( * ) ) AS col0
----
75

query I rowsort
SELECT DISTINCT - - 72 + - ( + 0 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT - MAX( + + 91 ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-4599
SELECT - MAX ( + + 91 ) AS col0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4600
SELECT ALL 45 + - + 62 + - 69 + SUM( DISTINCT - ( - 98 ) ) - CAST( NULL AS SIGNED ) * - 59 + CASE - 70 WHEN 66 + MAX( + 46 ) THEN 72 WHEN + 90 THEN - COUNT( 70 ) + + 61 END * 79 * - 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4600
SELECT ALL 45 + - + 62 + - 69 + SUM ( DISTINCT - ( - 98 ) ) - CAST ( NULL AS INTEGER ) * - 59 + CASE - 70 WHEN 66 + MAX ( + 46 ) THEN 72 WHEN + 90 THEN - COUNT ( 70 ) + + 61 END * 79 * - 71 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT + 15 - CASE - 31 WHEN + - 2 THEN NULL WHEN + MAX( + + 72 ) * - + 15 * - - ( - + 92 ) * CASE - COUNT( * ) WHEN + 41 THEN - 90 ELSE NULL END THEN NULL WHEN COUNT( * ) THEN COALESCE ( 57, 30 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4601
SELECT + 15 - CASE - 31 WHEN + - 2 THEN NULL WHEN + MAX ( + + 72 ) * - + 15 * - - ( - + 92 ) * CASE - COUNT ( * ) WHEN + 41 THEN - 90 ELSE NULL END THEN NULL WHEN COUNT ( * ) THEN COALESCE ( 57, 30 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 84 + - - 10 AS col0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4603
SELECT ALL 11 + - + COALESCE ( - + CAST( NULL AS SIGNED ), + ( - 63 ) )
----
74

skipif mysql # not compatible
query I rowsort label-4603
SELECT ALL 11 + - + COALESCE ( - + CAST ( NULL AS INTEGER ), + ( - 63 ) )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT COUNT( * ) * + 98 + + + 88 * + 35
----
3178

skipif mysql # not compatible
query I rowsort label-4604
SELECT COUNT ( * ) * + 98 + + + 88 * + 35
----
3178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4605
SELECT + + CAST( ( + 35 ) AS SIGNED ) + + CAST( NULL AS SIGNED ) + + 54 + + 5 + MAX( + - 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4605
SELECT + + CAST ( ( + 35 ) AS INTEGER ) + + CAST ( NULL AS INTEGER ) + + 54 + + 5 + MAX ( + - 53 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT - COUNT( * ) * - 76 * - 70 - - - 22 + 65 + - 9 * - + 77
----
-4584

skipif mysql # not compatible
query I rowsort label-4606
SELECT - COUNT ( * ) * - 76 * - 70 - - - 22 + 65 + - 9 * - + 77
----
-4584

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT + - 79 + + CASE + - 36 WHEN 96 THEN - MAX( ALL + + 5 ) / 21 + - 14 END * - 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4607
SELECT + - 79 + + CASE + - 36 WHEN 96 THEN - MAX ( ALL + + 5 ) / 21 + - 14 END * - 86 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT + COUNT( * ) * - - 47 col0
----
47

skipif mysql # not compatible
query I rowsort label-4608
SELECT + COUNT ( * ) * - - 47 col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT - - 84 * - MIN( 74 ) + + 37 AS col0
----
-6179

skipif mysql # not compatible
query I rowsort label-4609
SELECT - - 84 * - MIN ( 74 ) + + 37 AS col0
----
-6179

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT DISTINCT - - NULLIF ( + - 95, - + COUNT( * ) * + - 59 * + 88 + + AVG ( 91 ) + 38 * 57 * - 52 + 93 ) - - 78 * - 0 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-4610
SELECT DISTINCT - - NULLIF ( + - 95, - + COUNT ( * ) * + - 59 * + 88 + + AVG ( 91 ) + 38 * 57 * - 52 + 93 ) - - 78 * - 0 AS col0
----
-95

query I rowsort
SELECT DISTINCT CASE + 24 WHEN + 4 THEN - 4 WHEN 45 THEN 62 ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT ALL 59 AS col1, 76 col1
----
59
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4613
SELECT + 8 / + + NULLIF ( CAST( NULL AS SIGNED ), + 41 * - + 38 * - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4613
SELECT + 8 / + + NULLIF ( CAST ( NULL AS INTEGER ), + 41 * - + 38 * - COUNT ( * ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4614
SELECT - 14 DIV 73 * + 28 * 33 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4614
SELECT - 14 / 73 * + 28 * 33 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT DISTINCT COUNT( - 70 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4615
SELECT DISTINCT COUNT ( - 70 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT DISTINCT NULLIF ( - + 8, + 91 / CASE - - 60 WHEN - NULLIF ( COUNT( * ), AVG ( ALL + + 97 ) + COUNT( * ) ) - 82 THEN + 10 - 92 WHEN - 11 + + 99 THEN NULL ELSE COUNT( * ) * 70 + 21 END ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-4616
SELECT DISTINCT NULLIF ( - + 8, + 91 / CASE - - 60 WHEN - NULLIF ( COUNT ( * ), AVG ( ALL + + 97 ) + COUNT ( * ) ) - 82 THEN + 10 - 92 WHEN - 11 + + 99 THEN NULL ELSE COUNT ( * ) * 70 + 21 END ) AS col0
----
-8

query I rowsort
SELECT - 72 + 79 AS col1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4618
SELECT DISTINCT - 90 * - 58 * + 87 * + ( - 90 ), - CAST( NULL AS SIGNED ) col2
----
-40872600
NULL

skipif mysql # not compatible
query II rowsort label-4618
SELECT DISTINCT - 90 * - 58 * + 87 * + ( - 90 ), - CAST ( NULL AS INTEGER ) col2
----
-40872600
NULL

query I rowsort
SELECT ALL - 73 * + 20 AS col2
----
-1460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4620
SELECT - 24 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4620
SELECT - 24 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4621
SELECT ALL 74 DIV ( 99 ) + 46 + 16 + - ( NULLIF ( COUNT( * ), - 0 * - 93 ) ) DIV - 1 * COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-4621
SELECT ALL 74 / ( 99 ) + 46 + 16 + - ( NULLIF ( COUNT ( * ), - 0 * - 93 ) ) / - 1 * COUNT ( * )
----
63

query I rowsort
SELECT 64 * - + 75 + + 95 + 69
----
-4636

query I rowsort
SELECT + 5 * + + 42 - - 14 AS col1
----
224

onlyif mysql # aggregate syntax: 
query II rowsort label-4624
SELECT DISTINCT 18 * + COUNT( * ) + - 12, 78 AS col0
----
6
78

skipif mysql # not compatible
query II rowsort label-4624
SELECT DISTINCT 18 * + COUNT ( * ) + - 12, 78 AS col0
----
6
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4625
SELECT ALL - 73 * - + CAST( + 46 AS SIGNED ) DIV - - COUNT( * ) AS col2
----
3358

skipif mysql # not compatible
query I rowsort label-4625
SELECT ALL - 73 * - + CAST ( + 46 AS INTEGER ) / - - COUNT ( * ) AS col2
----
3358

query I rowsort
SELECT ALL + ( + + 97 )
----
97

query I rowsort
SELECT ALL - 38 * + 31 + - 19 AS col2
----
-1197

query I rowsort
SELECT 43 * - 94 + - + NULLIF ( + - ( NULLIF ( + 99, + 55 ) ), + 35 * + 6 ) + + 31 + + 85
----
-3827

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT ALL SUM( - + 63 ) * + 65
----
-4095

skipif mysql # not compatible
query I rowsort label-4629
SELECT ALL SUM ( - + 63 ) * + 65
----
-4095

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT DISTINCT + - ( + + MAX( - 64 ) )
----
64

skipif mysql # not compatible
query I rowsort label-4630
SELECT DISTINCT + - ( + + MAX ( - 64 ) )
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4631
SELECT - + 57 / + CAST( NULL AS SIGNED ) / + + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-4631
SELECT - + 57 / + CAST ( NULL AS INTEGER ) / + + 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT + - SUM( ALL 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-4632
SELECT + - SUM ( ALL 9 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT ALL + 13 * CASE 63 WHEN - 84 + - 20 + + - 65 + 88 * - - 93 THEN NULL ELSE COUNT( * ) * 10 + 11 END * - COUNT( * ) + 97 AS col1
----
-176

skipif mysql # not compatible
query I rowsort label-4633
SELECT ALL + 13 * CASE 63 WHEN - 84 + - 20 + + - 65 + 88 * - - 93 THEN NULL ELSE COUNT ( * ) * 10 + 11 END * - COUNT ( * ) + 97 AS col1
----
-176

query I rowsort
SELECT ALL 45 * + 7 AS col2
----
315

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT + NULLIF ( + MAX( 3 ), 37 * - 73 ) * - 29
----
-87

skipif mysql # not compatible
query I rowsort label-4635
SELECT + NULLIF ( + MAX ( 3 ), 37 * - 73 ) * - 29
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT DISTINCT + + CASE - 24 WHEN + 6 * - - 8 + + 1 + + 18 + 66 - COUNT( * ) * - - 67 + 28 THEN NULL WHEN COUNT( * ) THEN 86 * - NULLIF ( 69, MAX( DISTINCT 25 ) ) ELSE NULL END * 94 - 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4636
SELECT DISTINCT + + CASE - 24 WHEN + 6 * - - 8 + + 1 + + 18 + 66 - COUNT ( * ) * - - 67 + 28 THEN NULL WHEN COUNT ( * ) THEN 86 * - NULLIF ( 69, MAX ( DISTINCT 25 ) ) ELSE NULL END * 94 - 96 AS col1
----
NULL

query II rowsort
SELECT DISTINCT - + 52 * - 50 * - 10 col0, NULLIF ( + 82, + 96 ) * + + 55 + + 30 + - ( - 71 )
----
-26000
4611

query I rowsort
SELECT DISTINCT + ( + - 12 ) AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT + 38 * + COALESCE ( COUNT( * ), 73 - 7 * + 76 * - ( - - 44 ) ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-4639
SELECT + 38 * + COALESCE ( COUNT ( * ), 73 - 7 * + 76 * - ( - - 44 ) ) AS col0
----
38

query I rowsort
SELECT - 9 - + 58 * 41 AS col2
----
-2387

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4641
SELECT + 85 - - COALESCE ( + 6, + + CASE 67 WHEN + NULLIF ( 21, 75 * - 65 ) + + - 50 THEN + + 13 - + ( 44 + 62 ) WHEN + COUNT( * ) THEN + ( - ( + CASE ( 82 ) WHEN 28 * 50 THEN 91 - 83 * - COUNT( * ) ELSE 44 END ) ) + + 9 WHEN + 31 * - 20 + CAST( NULL AS SIGNED ) THEN + AVG ( ALL - 87 ) END + 42 ) DIV - NULLIF ( COALESCE ( CAST( NULL AS SIGNED ), 99, ( - 52 ) * 45 ) * 44, - COUNT( * ) + 84 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-4641
SELECT + 85 - - COALESCE ( + 6, + + CASE 67 WHEN + NULLIF ( 21, 75 * - 65 ) + + - 50 THEN + + 13 - + ( 44 + 62 ) WHEN + COUNT ( * ) THEN + ( - ( + CASE ( 82 ) WHEN 28 * 50 THEN 91 - 83 * - COUNT ( * ) ELSE 44 END ) ) + + 9 WHEN + 31 * - 20 + CAST ( NULL AS INTEGER ) THEN + AVG ( ALL - 87 ) END + 42 ) / - NULLIF ( COALESCE ( CAST ( NULL AS INTEGER ), 99, ( - 52 ) * 45 ) * 44, - COUNT ( * ) + 84 ) AS col0
----
85

query I rowsort
SELECT + 2 * - 54
----
-108

query I rowsort
SELECT - ( - + 42 ) AS col0
----
42

query II rowsort
SELECT - 17 col1, 76
----
-17
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT ALL 49 * - + COUNT( ALL + 27 ) * - - COALESCE ( 82, + 43, - 87 ) + + ( - + 45 )
----
-4063

skipif mysql # not compatible
query I rowsort label-4645
SELECT ALL 49 * - + COUNT ( ALL + 27 ) * - - COALESCE ( 82, + 43, - 87 ) + + ( - + 45 )
----
-4063

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT ALL - 13 + + 76 + - - COUNT( * ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL - 13 + + 76 + - - COUNT ( * ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT + 31 - + - ( CASE - COUNT( * ) WHEN - + 76 THEN + + 58 * + - 42 * + 94 END ) * + 41 - 42 - 65 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4647
SELECT + 31 - + - ( CASE - COUNT ( * ) WHEN - + 76 THEN + + 58 * + - 42 * + 94 END ) * + 41 - 42 - 65 * COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL NULLIF ( + 20, 8 + - 22 - - 84 * + - 10 + - - 51 + 51 ) col2
----
20

query II rowsort
SELECT 90, 67 AS col1
----
90
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT DISTINCT 54 + - COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-4650
SELECT DISTINCT 54 + - COUNT ( * )
----
53

query I rowsort
SELECT ALL ( - 76 ) AS col1
----
-76

query I rowsort
SELECT DISTINCT - 86 + - 79 AS col2
----
-165

query I rowsort
SELECT ALL 89 + + - 1
----
88

query I rowsort
SELECT + 12 * - 10 AS col0
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT + CASE - 11 WHEN + + MAX( ALL - 44 ) * - + 16 THEN + 87 END + - COALESCE ( 33, - 77 / 53 + + - 5 * + MIN( ALL - 38 * 68 ), 4 + 47, 50 + 7 ) - 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4655
SELECT + CASE - 11 WHEN + + MAX ( ALL - 44 ) * - + 16 THEN + 87 END + - COALESCE ( 33, - 77 / 53 + + - 5 * + MIN ( ALL - 38 * 68 ), 4 + 47, 50 + 7 ) - 2 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4656
SELECT - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) * + 99 * NULLIF ( - COALESCE ( + 1, 81, + ( 74 ) ), - - 39 + 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4656
SELECT - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) * + 99 * NULLIF ( - COALESCE ( + 1, 81, + ( 74 ) ), - - 39 + 1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4657
SELECT + CAST( - ( 92 ) AS SIGNED )
----
-92

skipif mysql # not compatible
query I rowsort label-4657
SELECT + CAST ( - ( 92 ) AS INTEGER )
----
-92

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4658
SELECT ALL - - 46 + 34 DIV - CAST( 79 AS SIGNED ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-4658
SELECT ALL - - 46 + 34 / - CAST ( 79 AS INTEGER ) AS col1
----
46

query I rowsort
SELECT ALL - - 84 + - NULLIF ( + ( 58 ), - 7 * - + 10 + + - 91 )
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-4660
SELECT - SUM( DISTINCT + - 78 ) AS col0, - 32
----
78
-32

skipif mysql # not compatible
query II rowsort label-4660
SELECT - SUM ( DISTINCT + - 78 ) AS col0, - 32
----
78
-32

query I rowsort
SELECT ALL - NULLIF ( + 6, 60 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT + COALESCE ( + 43, COUNT( * ), + NULLIF ( + + 41, - NULLIF ( - - 13, - 14 ) + - 11 + 68 ) )
----
43

skipif mysql # not compatible
query I rowsort label-4662
SELECT + COALESCE ( + 43, COUNT ( * ), + NULLIF ( + + 41, - NULLIF ( - - 13, - 14 ) + - 11 + 68 ) )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4663
SELECT + CAST( - 53 AS SIGNED ) * ( + NULLIF ( + - 51, + + 8 * + COUNT( * ) ) ) DIV 56 + + COUNT( * ) + - - 67 AS col2
----
116

skipif mysql # not compatible
query I rowsort label-4663
SELECT + CAST ( - 53 AS INTEGER ) * ( + NULLIF ( + - 51, + + 8 * + COUNT ( * ) ) ) / 56 + + COUNT ( * ) + - - 67 AS col2
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT ALL + + 71 * + ( COUNT( * ) ) + + 54 + + + 78 AS col1
----
203

skipif mysql # not compatible
query I rowsort label-4664
SELECT ALL + + 71 * + ( COUNT ( * ) ) + + 54 + + + 78 AS col1
----
203

query II rowsort
SELECT - 72, 43 AS col1
----
-72
43

query I rowsort
SELECT DISTINCT + 45 * 94 * 14
----
59220

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT - COUNT( DISTINCT 47 ) + + 71 + - - 29 + + 42
----
141

skipif mysql # not compatible
query I rowsort label-4667
SELECT - COUNT ( DISTINCT 47 ) + + 71 + - - 29 + + 42
----
141

onlyif mysql # DIV for integer division: 
query I rowsort label-4668
SELECT - 33 DIV - 55 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4668
SELECT - 33 / - 55 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT DISTINCT + 1 - NULLIF ( - COUNT( * ), + 81 * + 55 - - 77 / - - 59 - COUNT( * ) ) * + 63 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-4669
SELECT DISTINCT + 1 - NULLIF ( - COUNT ( * ), + 81 * + 55 - - 77 / - - 59 - COUNT ( * ) ) * + 63 AS col1
----
64

query II rowsort
SELECT ALL - - 7, 4 AS col0
----
7
4

onlyif mysql # aggregate syntax: 
query II rowsort label-4671
SELECT + - 65 AS col2, + 56 * - - 74 + 48 - + COUNT( * ) + - 72 + - 78 * - 92 AS col2
----
-65
11295

skipif mysql # not compatible
query II rowsort label-4671
SELECT + - 65 AS col2, + 56 * - - 74 + 48 - + COUNT ( * ) + - 72 + - 78 * - 92 AS col2
----
-65
11295

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT + - CASE 4 WHEN COUNT( * ) * + 46 + 14 + - ( + 19 ) + 87 * + 8 * COUNT( * ) THEN NULL ELSE ( + COALESCE ( - 83, - COUNT( * ) + MAX( DISTINCT + 77 ) ) ) END AS col1
----
83

skipif mysql # not compatible
query I rowsort label-4672
SELECT + - CASE 4 WHEN COUNT ( * ) * + 46 + 14 + - ( + 19 ) + 87 * + 8 * COUNT ( * ) THEN NULL ELSE ( + COALESCE ( - 83, - COUNT ( * ) + MAX ( DISTINCT + 77 ) ) ) END AS col1
----
83

query I rowsort
SELECT - 90 * + 70 + + - 25 * - + 44 * + ( - 10 )
----
-17300

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT ( COUNT( * ) ) - - 91
----
92

skipif mysql # not compatible
query I rowsort label-4674
SELECT ( COUNT ( * ) ) - - 91
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4675
SELECT ALL - NULLIF ( + 92, - COUNT( * ) + + - 45 + + 15 * - + 97 + + MIN( + 58 ) ) DIV + 20
----
-4

skipif mysql # not compatible
query I rowsort label-4675
SELECT ALL - NULLIF ( + 92, - COUNT ( * ) + + - 45 + + 15 * - + 97 + + MIN ( + 58 ) ) / + 20
----
-4

query I rowsort
SELECT 34 + + - 90 col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT ALL - COUNT( DISTINCT 70 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL - COUNT ( DISTINCT 70 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT + + ( - COUNT( ALL + 49 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4678
SELECT + + ( - COUNT ( ALL + 49 ) )
----
-1

query I rowsort
SELECT 68 + + - 43 AS col1
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-4680
SELECT 45 DIV - 33 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4680
SELECT 45 / - 33 AS col0
----
-1

query I rowsort
SELECT 16 + 66 * + 94
----
6220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4682
SELECT NULLIF ( 19, - 38 ) * - + ( - CAST( 70 AS SIGNED ) ) * - MIN( - + 49 ) - 44 + + COUNT( * ) AS col1, - COUNT( * )
----
65127
-1

skipif mysql # not compatible
query II rowsort label-4682
SELECT NULLIF ( 19, - 38 ) * - + ( - CAST ( 70 AS INTEGER ) ) * - MIN ( - + 49 ) - 44 + + COUNT ( * ) AS col1, - COUNT ( * )
----
65127
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4683
SELECT 23 DIV + 99 * - - COUNT( * ) * 53 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4683
SELECT 23 / + 99 * - - COUNT ( * ) * 53 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT SUM( COALESCE ( + 18, - 16 ) ) - MAX( ALL - 54 ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-4684
SELECT SUM ( COALESCE ( + 18, - 16 ) ) - MAX ( ALL - 54 ) AS col0
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4685
SELECT CASE - - ( SUM( + ( - CAST( + 46 AS SIGNED ) ) ) ) WHEN - + 77 THEN + CASE - CAST( NULL AS SIGNED ) WHEN + AVG ( 14 ) * 63 / ( - 5 ) + 69 * + 58 THEN 76 / 42 WHEN 22 - 72 THEN 8 ELSE NULL END * + 61 WHEN + 77 THEN NULL ELSE + CASE 67 WHEN COUNT( * ) THEN 2 WHEN 97 * + 92 + COUNT( * ) * + 13 THEN COUNT( ALL - 25 ) WHEN - 36 + - 5 THEN + COUNT( * ) END + - 39 END * - 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4685
SELECT CASE - - ( SUM ( + ( - CAST ( + 46 AS INTEGER ) ) ) ) WHEN - + 77 THEN + CASE - CAST ( NULL AS INTEGER ) WHEN + AVG ( 14 ) * 63 / ( - 5 ) + 69 * + 58 THEN 76 / 42 WHEN 22 - 72 THEN 8 ELSE NULL END * + 61 WHEN + 77 THEN NULL ELSE + CASE 67 WHEN COUNT ( * ) THEN 2 WHEN 97 * + 92 + COUNT ( * ) * + 13 THEN COUNT ( ALL - 25 ) WHEN - 36 + - 5 THEN + COUNT ( * ) END + - 39 END * - 92 AS col1
----
NULL

query I rowsort
SELECT ALL 49 + + 45 + - 78
----
16

query II rowsort
SELECT ALL + 17 + - 33 col1, 42
----
-16
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT MAX( 25 ) + + 52 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-4688
SELECT MAX ( 25 ) + + 52 AS col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4689
SELECT CASE 90 WHEN + + CAST( NULL AS SIGNED ) + - 41 + - - COALESCE ( + 11, 70 ) + - 53 THEN NULL WHEN + + 27 THEN MIN( ALL 43 ) * + 46 ELSE 16 * COUNT( * ) END + - 88 * - 53
----
4680

skipif mysql # not compatible
query I rowsort label-4689
SELECT CASE 90 WHEN + + CAST ( NULL AS INTEGER ) + - 41 + - - COALESCE ( + 11, 70 ) + - 53 THEN NULL WHEN + + 27 THEN MIN ( ALL 43 ) * + 46 ELSE 16 * COUNT ( * ) END + - 88 * - 53
----
4680

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT COUNT( * ) + ( 62 ) - + 81 + - 74 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-4690
SELECT COUNT ( * ) + ( 62 ) - + 81 + - 74 AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT SUM( + 47 ) + - + 69
----
-22

skipif mysql # not compatible
query I rowsort label-4691
SELECT SUM ( + 47 ) + - + 69
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4692
SELECT CAST( + 42 AS SIGNED ) + 50 col2
----
92

skipif mysql # not compatible
query I rowsort label-4692
SELECT CAST ( + 42 AS INTEGER ) + 50 col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT DISTINCT MAX( + 9 ) * + + COUNT( * ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-4693
SELECT DISTINCT MAX ( + 9 ) * + + COUNT ( * ) AS col2
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4694
SELECT DISTINCT 6 DIV - + MIN( DISTINCT - 22 ), - CASE + - 25 WHEN + - 38 THEN - COUNT( * ) + 31 + + 73 + - + 51 DIV - NULLIF ( 29, + 8 ) WHEN 13 THEN 40 * - 36 ELSE SUM( CASE + 1 WHEN 16 THEN + NULLIF ( 55, 28 ) WHEN 24 + + ( + 6 ) THEN NULL ELSE NULL END ) END AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4694
SELECT DISTINCT 6 / - + MIN ( DISTINCT - 22 ), - CASE + - 25 WHEN + - 38 THEN - COUNT ( * ) + 31 + + 73 + - + 51 / - NULLIF ( 29, + 8 ) WHEN 13 THEN 40 * - 36 ELSE SUM ( CASE + 1 WHEN 16 THEN + NULLIF ( 55, 28 ) WHEN 24 + + ( + 6 ) THEN NULL ELSE NULL END ) END AS col0
----
0
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4695
SELECT - 81 + - + 63 AS col2, ( + COUNT( * ) )
----
-144
1

skipif mysql # not compatible
query II rowsort label-4695
SELECT - 81 + - + 63 AS col2, ( + COUNT ( * ) )
----
-144
1

query II rowsort
SELECT ALL 51 * - 84 AS col1, 58
----
-4284
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT ALL + COUNT( * ) - - NULLIF ( + ( 80 ), 2 - - 2 ) + 54 * 78
----
4293

skipif mysql # not compatible
query I rowsort label-4697
SELECT ALL + COUNT ( * ) - - NULLIF ( + ( 80 ), 2 - - 2 ) + 54 * 78
----
4293

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT + 19 * + 24 / 88 + + - ( + CASE + + 0 WHEN - COUNT( * ) THEN + ( - NULLIF ( COUNT( * ), 53 ) ) WHEN - - ( 39 ) + - 16 THEN NULL ELSE NULL END ) + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-4698
SELECT + 19 * + 24 / 88 + + - ( + CASE + + 0 WHEN - COUNT ( * ) THEN + ( - NULLIF ( COUNT ( * ), 53 ) ) WHEN - - ( 39 ) + - 16 THEN NULL ELSE NULL END ) + 30
----
NULL

query I rowsort
SELECT - 38 - + 85
----
-123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4700
SELECT + 31 DIV + COUNT( * ) + + 61 + 38 * - ( 38 ) * - COUNT( * ) * 27 + NULLIF ( 90, - 2 + 97 ) - - 36
----
39206

skipif mysql # not compatible
query I rowsort label-4700
SELECT + 31 / + COUNT ( * ) + + 61 + 38 * - ( 38 ) * - COUNT ( * ) * 27 + NULLIF ( 90, - 2 + 97 ) - - 36
----
39206

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT SUM( DISTINCT 93 ) * - 35 * 31 + - + COUNT( * )
----
-100906

skipif mysql # not compatible
query I rowsort label-4701
SELECT SUM ( DISTINCT 93 ) * - 35 * 31 + - + COUNT ( * )
----
-100906

onlyif mysql # DIV for integer division: 
query I rowsort label-4702
SELECT ALL - + COALESCE ( - 18, CASE + - 24 WHEN + - 61 * + 98 THEN + - 88 * + 76 WHEN + 37 THEN NULL ELSE - 35 - + + 4 DIV + - 27 END )
----
18

skipif mysql # not compatible
query I rowsort label-4702
SELECT ALL - + COALESCE ( - 18, CASE + - 24 WHEN + - 61 * + 98 THEN + - 88 * + 76 WHEN + 37 THEN NULL ELSE - 35 - + + 4 / + - 27 END )
----
18

query II rowsort
SELECT + 88 * - 87 * 96 AS col1, + 25
----
-734976
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT - + 43 * + + COUNT( * ) + - 43 * + + COUNT( * ) * - - 18 * + COUNT( * ) AS col0
----
-817

skipif mysql # not compatible
query I rowsort label-4704
SELECT - + 43 * + + COUNT ( * ) + - 43 * + + COUNT ( * ) * - - 18 * + COUNT ( * ) AS col0
----
-817

query I rowsort
SELECT 3 + - + 19 + - 11 + + + 68 * - 74 AS col0
----
-5059

query I rowsort
SELECT ALL - - CASE 56 WHEN + 16 - - 63 THEN NULL ELSE 28 END AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT + MAX( ALL - 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-4707
SELECT + MAX ( ALL - 25 )
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4708
SELECT MAX( + 38 ) + 15 * - 2 * - - 86 + + 77 + + - 86 * CAST( + 33 AS SIGNED ) col0
----
-5303

skipif mysql # not compatible
query I rowsort label-4708
SELECT MAX ( + 38 ) + 15 * - 2 * - - 86 + + 77 + + - 86 * CAST ( + 33 AS INTEGER ) col0
----
-5303

query I rowsort
SELECT DISTINCT + - 35 * - 48
----
1680

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT DISTINCT + 31 + - COUNT( * ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-4710
SELECT DISTINCT + 31 + - COUNT ( * ) AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT ALL + 13 + - - ( COUNT( * ) )
----
14

skipif mysql # not compatible
query I rowsort label-4711
SELECT ALL + 13 + - - ( COUNT ( * ) )
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4712
SELECT 15 AS col2, - 29 + 24 - + 99 + + CAST( NULL AS SIGNED ) * 87 * - COUNT( * ) * - 76 / COUNT( * ) * 71 * + 9 + 83 + - ( ( 96 ) ) * + 61 AS col2
----
15
NULL

skipif mysql # not compatible
query II rowsort label-4712
SELECT 15 AS col2, - 29 + 24 - + 99 + + CAST ( NULL AS INTEGER ) * 87 * - COUNT ( * ) * - 76 / COUNT ( * ) * 71 * + 9 + 83 + - ( ( 96 ) ) * + 61 AS col2
----
15
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4713
SELECT DISTINCT + ( - + 45 ) + COUNT( * ), + 42 AS col1
----
-44
42

skipif mysql # not compatible
query II rowsort label-4713
SELECT DISTINCT + ( - + 45 ) + COUNT ( * ), + 42 AS col1
----
-44
42

onlyif mysql # DIV for integer division: 
query I rowsort label-4714
SELECT ALL - 40 DIV + NULLIF ( + 78, + 27 )
----
0

skipif mysql # not compatible
query I rowsort label-4714
SELECT ALL - 40 / + NULLIF ( + 78, + 27 )
----
0

query II rowsort
SELECT ALL + 86 + + - 61 + + 23, 47 * - - 5 AS col2
----
48
235

query I rowsort
SELECT DISTINCT - 31 + + + 9
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-4717
SELECT DISTINCT COUNT( * ) AS col2, - 84
----
1
-84

skipif mysql # not compatible
query II rowsort label-4717
SELECT DISTINCT COUNT ( * ) AS col2, - 84
----
1
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-4718
SELECT 70 DIV + - 29
----
-2

skipif mysql # not compatible
query I rowsort label-4718
SELECT 70 / + - 29
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-4719
SELECT 53 col0, - 38 - - COUNT( * ) + - + 43 * 76 + - COUNT( * ) + + - 26 * + 97 AS col1
----
53
-5828

skipif mysql # not compatible
query II rowsort label-4719
SELECT 53 col0, - 38 - - COUNT ( * ) + - + 43 * 76 + - COUNT ( * ) + + - 26 * + 97 AS col1
----
53
-5828

query II rowsort
SELECT DISTINCT + 69 + + + 55 + + 15 AS col1, + 36 * - + 52
----
139
-1872

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4721
SELECT ALL - 41 DIV COUNT( * ) DIV + - ( - + 38 )
----
-1

skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL - 41 / COUNT ( * ) / + - ( - + 38 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT ALL COUNT( * ) - - + COUNT( * ) * - 42 * + 54
----
-2267

skipif mysql # not compatible
query I rowsort label-4722
SELECT ALL COUNT ( * ) - - + COUNT ( * ) * - 42 * + 54
----
-2267

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT DISTINCT + 69 - - COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-4723
SELECT DISTINCT + 69 - - COUNT ( * )
----
70

query II rowsort
SELECT DISTINCT 97 AS col2, + 6 col1
----
97
6

query I rowsort
SELECT ALL + 67 - - 89 AS col2
----
156

query I rowsort
SELECT - 23 + - 20 AS col0
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-4727
SELECT SUM( - - ( - 64 ) ) AS col2, 8 AS col2
----
-64
8

skipif mysql # not compatible
query II rowsort label-4727
SELECT SUM ( - - ( - 64 ) ) AS col2, 8 AS col2
----
-64
8

query I rowsort
SELECT ALL - 51 * - 86 * + 2 AS col0
----
8772

onlyif mysql # DIV for integer division: 
query I rowsort label-4729
SELECT + + ( - 27 ) DIV + ( - 61 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4729
SELECT + + ( - 27 ) / + ( - 61 ) AS col1
----
0

query I rowsort
SELECT + 81 * - 1 AS col1
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-4731
SELECT ALL 51 DIV 87
----
0

skipif mysql # not compatible
query I rowsort label-4731
SELECT ALL 51 / 87
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4732
SELECT + COUNT( * ) col0, + 67
----
1
67

skipif mysql # not compatible
query II rowsort label-4732
SELECT + COUNT ( * ) col0, + 67
----
1
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4733
SELECT + ( - COUNT( * ) ) DIV ( + 75 ) DIV - 8 * - 22 + 91
----
91

skipif mysql # not compatible
query I rowsort label-4733
SELECT + ( - COUNT ( * ) ) / ( + 75 ) / - 8 * - 22 + 91
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4734
SELECT + 8 DIV - + 27 + - + ( - 53 )
----
53

skipif mysql # not compatible
query I rowsort label-4734
SELECT + 8 / - + 27 + - + ( - 53 )
----
53

query I rowsort
SELECT + - 68 + + 40
----
-28

query II rowsort
SELECT + + 20 AS col0, 2
----
20
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4737
SELECT ALL + + 67 * 86 + + + CAST( 48 AS DECIMAL ) * - 6 + - 57 + + COUNT( * ) - + COUNT( + 19 ) * 78 * - MIN( DISTINCT - + 44 ) + + + CASE + NULLIF ( COUNT( * ), + AVG ( 76 ) ) WHEN ( - 26 ) THEN - 84 * - 82 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4737
SELECT ALL + + 67 * 86 + + + CAST ( 48 AS REAL ) * - 6 + - 57 + + COUNT ( * ) - + COUNT ( + 19 ) * 78 * - MIN ( DISTINCT - + 44 ) + + + CASE + NULLIF ( COUNT ( * ), + AVG ( 76 ) ) WHEN ( - 26 ) THEN - 84 * - 82 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT + COUNT( 44 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4738
SELECT + COUNT ( 44 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4739
SELECT + - CAST( NULL AS SIGNED ) / + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4739
SELECT + - CAST ( NULL AS INTEGER ) / + + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 30 * 48 + 77 AS col0
----
1517

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT CASE - + 49 WHEN - CASE - - COUNT( * ) WHEN 75 THEN 56 WHEN + 27 THEN 36 * COUNT( * ) * + + ( - COALESCE ( 25, + + 44 * + 60 ) ) - + 43 * 77 ELSE 16 + 84 * - 32 END THEN 52 / 55 + - 12 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4741
SELECT CASE - + 49 WHEN - CASE - - COUNT ( * ) WHEN 75 THEN 56 WHEN + 27 THEN 36 * COUNT ( * ) * + + ( - COALESCE ( 25, + + 44 * + 60 ) ) - + 43 * 77 ELSE 16 + 84 * - 32 END THEN 52 / 55 + - 12 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4742
SELECT ALL 15 * 6 + + 81 + + + 2 + - 38 * + + 68 DIV - NULLIF ( - COUNT( * ), - 5 * - 72 ) AS col0
----
-2411

skipif mysql # not compatible
query I rowsort label-4742
SELECT ALL 15 * 6 + + 81 + + + 2 + - 38 * + + 68 / - NULLIF ( - COUNT ( * ), - 5 * - 72 ) AS col0
----
-2411

onlyif mysql # aggregate syntax: 
query II rowsort label-4743
SELECT ALL - 59 * + + 69 + + - ( 17 ), - 83 + - COUNT( * ) * - 75 AS col0
----
-4088
-8

skipif mysql # not compatible
query II rowsort label-4743
SELECT ALL - 59 * + + 69 + + - ( 17 ), - 83 + - COUNT ( * ) * - 75 AS col0
----
-4088
-8

query II rowsort
SELECT - 8 + + 84 AS col2, - 27
----
76
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4745
SELECT + 96 + + - 88 * CASE - COUNT( * ) WHEN 64 * SUM( DISTINCT + - 30 ) THEN + 9 - - 74 DIV 11 WHEN 97 DIV - MAX( DISTINCT - - 70 ) THEN - 36 WHEN COUNT( * ) THEN 79 * + COUNT( * ) + 59 * - COUNT( * ) ELSE NULL END AS col2
----
3264

skipif mysql # not compatible
query I rowsort label-4745
SELECT + 96 + + - 88 * CASE - COUNT ( * ) WHEN 64 * SUM ( DISTINCT + - 30 ) THEN + 9 - - 74 / 11 WHEN 97 / - MAX ( DISTINCT - - 70 ) THEN - 36 WHEN COUNT ( * ) THEN 79 * + COUNT ( * ) + 59 * - COUNT ( * ) ELSE NULL END AS col2
----
3264

query I rowsort
SELECT ALL - 55 * - - 89 AS col2
----
-4895

query I rowsort
SELECT + 72 + COALESCE ( + 93, 51, 82 ) + 21
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT + COALESCE ( - 81, + 29, - 53, - 40 ) + COUNT( * ) + - + 36 * + 73
----
-2708

skipif mysql # not compatible
query I rowsort label-4748
SELECT + COALESCE ( - 81, + 29, - 53, - 40 ) + COUNT ( * ) + - + 36 * + 73
----
-2708

query I rowsort
SELECT ALL + 82 - - + 82 AS col2
----
164

query I rowsort
SELECT DISTINCT NULLIF ( + 68, + 13 ) AS col2
----
68

query II rowsort
SELECT - 42 + + + 59 AS col1, 73 col2
----
17
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4752
SELECT ALL ( + + CAST( - 78 AS SIGNED ) )
----
-78

skipif mysql # not compatible
query I rowsort label-4752
SELECT ALL ( + + CAST ( - 78 AS INTEGER ) )
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4753
SELECT - CAST( NULL AS SIGNED ) + 73 + + - ( - COALESCE ( + AVG ( - ( + + 11 ) ), 98 + - 67 ) ) + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4753
SELECT - CAST ( NULL AS INTEGER ) + 73 + + - ( - COALESCE ( + AVG ( - ( + + 11 ) ), 98 + - 67 ) ) + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - CASE + 10 WHEN 78 THEN - 96 * + + 84 / - + 62 * + - 71 * 68 END / + ( - + 83 ) col0
----
NULL

query I rowsort
SELECT ALL - 83 * + - 35 * + + 82 AS col1
----
238210

query II rowsort
SELECT ALL NULLIF ( 52, - - 18 * + 60 ), 36 * 74 AS col0
----
52
2664

query I rowsort
SELECT - 16 + 58 * + - 17 + 96
----
-906

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4758
SELECT - + CAST( NULL AS SIGNED ) + + 29 + - ( - - 7 ) * + + 97 * + NULLIF ( + ( 35 ), + - COUNT( * ) - - 90 * - - SUM( - + 77 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4758
SELECT - + CAST ( NULL AS INTEGER ) + + 29 + - ( - - 7 ) * + + 97 * + NULLIF ( + ( 35 ), + - COUNT ( * ) - - 90 * - - SUM ( - + 77 ) )
----
NULL

query I rowsort
SELECT - 30 * 28
----
-840

query I rowsort
SELECT + 99 * 45 + - 49
----
4406

query I rowsort
SELECT + - 60 + + - 57
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT ALL - + SUM( + + 3 ) * + - 91
----
273

skipif mysql # not compatible
query I rowsort label-4762
SELECT ALL - + SUM ( + + 3 ) * + - 91
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT - 43 * + COUNT( DISTINCT + 46 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-4763
SELECT - 43 * + COUNT ( DISTINCT + 46 ) AS col1
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4764
SELECT DISTINCT + + 6 * + MIN( ALL - + 34 ) DIV + COALESCE ( + 33, MAX( - - 79 ) + - 12 ) + + MIN( ALL - 89 ) - - 34 - - COALESCE ( + 61, - + ( 7 ) ) * 45 AS col2
----
2684

skipif mysql # not compatible
query I rowsort label-4764
SELECT DISTINCT + + 6 * + MIN ( ALL - + 34 ) / + COALESCE ( + 33, MAX ( - - 79 ) + - 12 ) + + MIN ( ALL - 89 ) - - 34 - - COALESCE ( + 61, - + ( 7 ) ) * 45 AS col2
----
2684

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT DISTINCT - COUNT( * ) * - 42
----
42

skipif mysql # not compatible
query I rowsort label-4765
SELECT DISTINCT - COUNT ( * ) * - 42
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT - + SUM( - 24 ) + - 17 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-4766
SELECT - + SUM ( - 24 ) + - 17 AS col1
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4767
SELECT - 46 * 81 * - - 81 - + COUNT( * ) DIV - NULLIF ( + 49, - MIN( - - 45 ) * + + 86 * + COALESCE ( + 41, - 94 DIV 39 * 3 * 70, - COUNT( * ) + - 85 * 63 ) + + 12 )
----
-301806

skipif mysql # not compatible
query I rowsort label-4767
SELECT - 46 * 81 * - - 81 - + COUNT ( * ) / - NULLIF ( + 49, - MIN ( - - 45 ) * + + 86 * + COALESCE ( + 41, - 94 / 39 * 3 * 70, - COUNT ( * ) + - 85 * 63 ) + + 12 )
----
-301806

query I rowsort
SELECT COALESCE ( + - 49, - 85 )
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-4769
SELECT + 88 DIV - 99 + - 14
----
-14

skipif mysql # not compatible
query I rowsort label-4769
SELECT + 88 / - 99 + - 14
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4770
SELECT DISTINCT - 90 DIV - 86 + - COALESCE ( + 23, - + MIN( ALL + 1 ) + + 10 DIV 25 ) + + - NULLIF ( + 29, - ( - + 26 ) + + 21 * + 45 DIV 84 ) - COUNT( * ) DIV 90 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-4770
SELECT DISTINCT - 90 / - 86 + - COALESCE ( + 23, - + MIN ( ALL + 1 ) + + 10 / 25 ) + + - NULLIF ( + 29, - ( - + 26 ) + + 21 * + 45 / 84 ) - COUNT ( * ) / 90 AS col2
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4771
SELECT DISTINCT + 45 * + + COALESCE ( - 15, - + COUNT( * ) DIV 59 + + COUNT( * ) )
----
-675

skipif mysql # not compatible
query I rowsort label-4771
SELECT DISTINCT + 45 * + + COALESCE ( - 15, - + COUNT ( * ) / 59 + + COUNT ( * ) )
----
-675

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4772
SELECT ALL - 15 DIV - 36 * 49 * + 46 + + 54 * 68 - + CAST( - + 14 AS SIGNED ) AS col0
----
3686

skipif mysql # not compatible
query I rowsort label-4772
SELECT ALL - 15 / - 36 * 49 * + 46 + + 54 * 68 - + CAST ( - + 14 AS INTEGER ) AS col0
----
3686

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4773
SELECT ALL 86 DIV - + 37 DIV ( COUNT( DISTINCT 16 ) ) + + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4773
SELECT ALL 86 / - + 37 / ( COUNT ( DISTINCT 16 ) ) + + + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT + COUNT( * ) * + - 2 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4774
SELECT + COUNT ( * ) * + - 2 AS col1
----
-2

query I rowsort
SELECT DISTINCT 32 * + 53
----
1696

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT + NULLIF ( - - 19, 18 * 27 - - COALESCE ( 18, + MIN( ALL - 75 ) ) + - + COALESCE ( - MIN( DISTINCT - + 36 ), COUNT( 69 ), - + ( - 40 ) ) / 67 )
----
19

skipif mysql # not compatible
query I rowsort label-4776
SELECT + NULLIF ( - - 19, 18 * 27 - - COALESCE ( 18, + MIN ( ALL - 75 ) ) + - + COALESCE ( - MIN ( DISTINCT - + 36 ), COUNT ( 69 ), - + ( - 40 ) ) / 67 )
----
19

query I rowsort
SELECT + 2 + 87
----
89

query I rowsort
SELECT + CASE + + 90 WHEN 11 + - - 52 + + 76 THEN NULL WHEN + 79 THEN + + 13 END * 8
----
NULL

query I rowsort
SELECT DISTINCT 25 - 11 + + - 18 * - - 36 * - 46 * + + 26
----
775022

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4780
SELECT CASE 19 WHEN - + CAST( NULL AS SIGNED ) THEN + MAX( DISTINCT + ( - 92 ) ) WHEN + 16 / CAST( NULL AS SIGNED ) THEN NULL ELSE - 45 * + - COALESCE ( 10, - 69 * + - 61 ) + + CASE 3 WHEN + 62 THEN ( + 97 ) * 65 END END * 1 + - 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4780
SELECT CASE 19 WHEN - + CAST ( NULL AS INTEGER ) THEN + MAX ( DISTINCT + ( - 92 ) ) WHEN + 16 / CAST ( NULL AS INTEGER ) THEN NULL ELSE - 45 * + - COALESCE ( 10, - 69 * + - 61 ) + + CASE 3 WHEN + 62 THEN ( + 97 ) * 65 END END * 1 + - 6 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT CASE - AVG ( + 22 ) WHEN - 57 * + - 75 THEN 17 * + 60 * + 41 + - 47 * CASE 52 WHEN 75 THEN 41 * + CASE - 80 WHEN + 36 + - 46 THEN - COUNT( * ) END END * - 47 WHEN + 81 * - 43 + COUNT( * ) THEN NULL WHEN COUNT( * ) * - 18 THEN NULL END * + 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4781
SELECT CASE - AVG ( + 22 ) WHEN - 57 * + - 75 THEN 17 * + 60 * + 41 + - 47 * CASE 52 WHEN 75 THEN 41 * + CASE - 80 WHEN + 36 + - 46 THEN - COUNT ( * ) END END * - 47 WHEN + 81 * - 43 + COUNT ( * ) THEN NULL WHEN COUNT ( * ) * - 18 THEN NULL END * + 20 AS col0
----
NULL

query II rowsort
SELECT DISTINCT - 8 col0, - 62 * - ( + + 11 ) + - + 31 - + 71
----
-8
580

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4783
SELECT - 31 AS col1, + CAST( NULL AS SIGNED ) AS col1
----
-31
NULL

skipif mysql # not compatible
query II rowsort label-4783
SELECT - 31 AS col1, + CAST ( NULL AS INTEGER ) AS col1
----
-31
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4784
SELECT ALL 24 - - COUNT( * ) * 15 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-4784
SELECT ALL 24 - - COUNT ( * ) * 15 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT COUNT( DISTINCT + 90 ) - + 25 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-4785
SELECT COUNT ( DISTINCT + 90 ) - + 25 AS col1
----
-24

query I rowsort
SELECT 11 * + 71
----
781

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4787
SELECT CAST( - 12 AS SIGNED ) + + + 42 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-4787
SELECT CAST ( - 12 AS INTEGER ) + + + 42 AS col0
----
30

query I rowsort
SELECT - ( - 21 ) + - 5
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT DISTINCT + 56 * - COUNT( * ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-4789
SELECT DISTINCT + 56 * - COUNT ( * ) AS col0
----
-56

query I rowsort
SELECT 78 - - - 74 + + - 22 * + 28 AS col1
----
-612

onlyif mysql # DIV for integer division: 
query II rowsort label-4791
SELECT DISTINCT - 37, + 43 + - ( 72 ) + - 69 DIV - 50 AS col1
----
-37
-28

skipif mysql # not compatible
query II rowsort label-4791
SELECT DISTINCT - 37, + 43 + - ( 72 ) + - 69 / - 50 AS col1
----
-37
-28

query I rowsort
SELECT + 68 + - 61 * - 58
----
3606

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4793
SELECT CAST( 88 AS SIGNED ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-4793
SELECT CAST ( 88 AS INTEGER ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT ALL - NULLIF ( - + ( + MIN( ALL 60 ) ), - - 87 ) + + + COUNT( * ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-4794
SELECT ALL - NULLIF ( - + ( + MIN ( ALL 60 ) ), - - 87 ) + + + COUNT ( * ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT MAX( DISTINCT NULLIF ( - 2, + 27 ) ) + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4795
SELECT MAX ( DISTINCT NULLIF ( - 2, + 27 ) ) + + COUNT ( * )
----
-1

query I rowsort
SELECT - 0 * COALESCE ( - 97, - + 86 + - 26, - COALESCE ( - + 2, - 28 - + 82 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT DISTINCT + + COUNT( * ) + - 5
----
-4

skipif mysql # not compatible
query I rowsort label-4797
SELECT DISTINCT + + COUNT ( * ) + - 5
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4798
SELECT 78 * COUNT( * ) + + + CAST( 63 AS SIGNED )
----
141

skipif mysql # not compatible
query I rowsort label-4798
SELECT 78 * COUNT ( * ) + + + CAST ( 63 AS INTEGER )
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT DISTINCT - + COALESCE ( - + 85, + - 76 * - 66 ) * 68 + - - COUNT( * ) AS col0
----
5781

skipif mysql # not compatible
query I rowsort label-4799
SELECT DISTINCT - + COALESCE ( - + 85, + - 76 * - 66 ) * 68 + - - COUNT ( * ) AS col0
----
5781

onlyif mysql # DIV for integer division: 
query I rowsort label-4800
SELECT + 66 DIV - 86 + - - 39 DIV - + 43 + - 90
----
-90

skipif mysql # not compatible
query I rowsort label-4800
SELECT + 66 / - 86 + - - 39 / - + 43 + - 90
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT DISTINCT + 80 + - + NULLIF ( COUNT( + - 20 ), + + COUNT( * ) * + 95 ) + - 24 + 28 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-4801
SELECT DISTINCT + 80 + - + NULLIF ( COUNT ( + - 20 ), + + COUNT ( * ) * + 95 ) + - 24 + 28 AS col1
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-4802
SELECT ALL - 16 * - COALESCE ( + 86, + 83 ) - + 17 DIV - 35 + - 60
----
1316

skipif mysql # not compatible
query I rowsort label-4802
SELECT ALL - 16 * - COALESCE ( + 86, + 83 ) - + 17 / - 35 + - 60
----
1316

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT DISTINCT - 89 * COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-4803
SELECT DISTINCT - 89 * COUNT ( * )
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4804
SELECT + 52 col2, + 34 * - ( - + CAST( 93 AS SIGNED ) ) * + 35
----
52
110670

skipif mysql # not compatible
query II rowsort label-4804
SELECT + 52 col2, + 34 * - ( - + CAST ( 93 AS INTEGER ) ) * + 35
----
52
110670

onlyif mysql # aggregate syntax: 
query II rowsort label-4805
SELECT ALL - COALESCE ( + 32, - + 53 * CASE 6 WHEN + 62 THEN NULL WHEN - + 76 + 26 THEN NULL ELSE + 29 + 32 END * - - COUNT( * ) + - 28 ) AS col2, ( + 40 ) * + 98 + + 77
----
-32
3997

skipif mysql # not compatible
query II rowsort label-4805
SELECT ALL - COALESCE ( + 32, - + 53 * CASE 6 WHEN + 62 THEN NULL WHEN - + 76 + 26 THEN NULL ELSE + 29 + 32 END * - - COUNT ( * ) + - 28 ) AS col2, ( + 40 ) * + 98 + + 77
----
-32
3997

query I rowsort
SELECT 41 + - 47
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4807
SELECT MAX( - CAST( NULL AS SIGNED ) ) * ( + MAX( ( 49 ) ) ) + - 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4807
SELECT MAX ( - CAST ( NULL AS INTEGER ) ) * ( + MAX ( ( 49 ) ) ) + - 19 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4808
SELECT ALL - 82 - + + 41 + + 90 + + 12 DIV + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-4808
SELECT ALL - 82 - + + 41 + + 90 + + 12 / + COUNT ( * )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT ALL - ( - MAX( ALL - 13 ) ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-4809
SELECT ALL - ( - MAX ( ALL - 13 ) ) AS col1
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4810
SELECT + COALESCE ( - NULLIF ( 78, + + COUNT( * ) ), - 90, - SUM( - - 18 ) DIV 56 - + 32 + + - 8 DIV + + 69 + 4 ) * - + 62 - + 99 + + COUNT( * ) * - ( 60 )
----
4677

skipif mysql # not compatible
query I rowsort label-4810
SELECT + COALESCE ( - NULLIF ( 78, + + COUNT ( * ) ), - 90, - SUM ( - - 18 ) / 56 - + 32 + + - 8 / + + 69 + 4 ) * - + 62 - + 99 + + COUNT ( * ) * - ( 60 )
----
4677

query I rowsort
SELECT DISTINCT 78 * - 45 AS col2
----
-3510

onlyif mysql # DIV for integer division: 
query II rowsort label-4812
SELECT ALL - 41, - 34 DIV - 86 AS col2
----
-41
0

skipif mysql # not compatible
query II rowsort label-4812
SELECT ALL - 41, - 34 / - 86 AS col2
----
-41
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT COUNT( * ) * + 93 + + + 86 AS col2
----
179

skipif mysql # not compatible
query I rowsort label-4813
SELECT COUNT ( * ) * + 93 + + + 86 AS col2
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT ALL COUNT( * ) * + + 49 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-4814
SELECT ALL COUNT ( * ) * + + 49 AS col0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4815
SELECT DISTINCT + 10 * + CAST( 37 AS SIGNED )
----
370

skipif mysql # not compatible
query I rowsort label-4815
SELECT DISTINCT + 10 * + CAST ( 37 AS INTEGER )
----
370

query I rowsort
SELECT 19 * + 24 + + 10 AS col0
----
466

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4817
SELECT ( 60 ) * + NULLIF ( 26, 18 - CAST( NULL AS SIGNED ) ) * SUM( - + 76 ) * - - 96 AS col0
----
-11381760

skipif mysql # not compatible
query I rowsort label-4817
SELECT ( 60 ) * + NULLIF ( 26, 18 - CAST ( NULL AS INTEGER ) ) * SUM ( - + 76 ) * - - 96 AS col0
----
-11381760

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT COUNT( ALL - 25 ) + + - ( + 35 )
----
-34

skipif mysql # not compatible
query I rowsort label-4818
SELECT COUNT ( ALL - 25 ) + + - ( + 35 )
----
-34

query I rowsort
SELECT - 31 * + - 93 - - ( + 46 )
----
2929

query I rowsort
SELECT 85 + + + 70 * 61 AS col0
----
4355

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4821
SELECT DISTINCT + 97 + - MAX( + 1 ) + + ( - + 71 ) + + - 30 DIV + 86 + - 55 * + 59
----
-3220

skipif mysql # not compatible
query I rowsort label-4821
SELECT DISTINCT + 97 + - MAX ( + 1 ) + + ( - + 71 ) + + - 30 / + 86 + - 55 * + 59
----
-3220

query I rowsort
SELECT 31 * - 36 AS col0
----
-1116

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT + COUNT( * ) + + 11 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-4823
SELECT + COUNT ( * ) + + 11 AS col1
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4824
SELECT ALL 17 + - CASE - + AVG ( ALL - 66 ) WHEN - - CAST( NULL AS SIGNED ) THEN - ( + 11 ) + COALESCE ( + + 86, - COUNT( * ) / 25 ) * + 2 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4824
SELECT ALL 17 + - CASE - + AVG ( ALL - 66 ) WHEN - - CAST ( NULL AS INTEGER ) THEN - ( + 11 ) + COALESCE ( + + 86, - COUNT ( * ) / 25 ) * + 2 END
----
NULL

query II rowsort
SELECT ( + 59 ), - ( - 24 ) AS col0
----
59
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4826
SELECT - + 70 AS col0, - CAST( - - CASE MIN( ALL - - ( + 36 ) ) WHEN NULLIF ( + 32, + 75 ) THEN - - 42 + - SUM( ALL - 73 ) END AS SIGNED ) * - + ( + 1 )
----
-70
NULL

skipif mysql # not compatible
query II rowsort label-4826
SELECT - + 70 AS col0, - CAST ( - - CASE MIN ( ALL - - ( + 36 ) ) WHEN NULLIF ( + 32, + 75 ) THEN - - 42 + - SUM ( ALL - 73 ) END AS INTEGER ) * - + ( + 1 )
----
-70
NULL

query I rowsort
SELECT + 14 + - + 50
----
-36

query II rowsort
SELECT 72 * 59 AS col0, ( - - 56 ) + + 0 - + - 8 AS col2
----
4248
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT - 88 + - - MIN( DISTINCT COALESCE ( 83, + - ( + - 19 ) ) ) - + + 43 - + 44
----
-92

skipif mysql # not compatible
query I rowsort label-4829
SELECT - 88 + - - MIN ( DISTINCT COALESCE ( 83, + - ( + - 19 ) ) ) - + + 43 - + 44
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT ALL 2 + - CASE + 28 WHEN + + 31 * SUM( - - 88 ) + - + 12 THEN + ( COUNT( * ) ) ELSE - 13 END - + 11
----
4

skipif mysql # not compatible
query I rowsort label-4830
SELECT ALL 2 + - CASE + 28 WHEN + + 31 * SUM ( - - 88 ) + - + 12 THEN + ( COUNT ( * ) ) ELSE - 13 END - + 11
----
4

query I rowsort
SELECT ALL + COALESCE ( + 97, + + 29 * - - 29 * + 59 + + + 85 * + 54 - ( 72 ) * + 90 ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT 80 + + CASE COUNT( * ) WHEN - 85 THEN + 77 ELSE - + 98 END
----
-18

skipif mysql # not compatible
query I rowsort label-4832
SELECT 80 + + CASE COUNT ( * ) WHEN - 85 THEN + 77 ELSE - + 98 END
----
-18

query I rowsort
SELECT DISTINCT 20 + + 7 AS col2
----
27

query I rowsort
SELECT - 64 + + ( + 63 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT + 29 - + 54
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT 72 + - - 88 - MIN( DISTINCT 12 ) * - 71 * NULLIF ( - 74, ( + COUNT( ALL + 25 ) ) ) AS col0
----
-62888

skipif mysql # not compatible
query I rowsort label-4836
SELECT 72 + - - 88 - MIN ( DISTINCT 12 ) * - 71 * NULLIF ( - 74, ( + COUNT ( ALL + 25 ) ) ) AS col0
----
-62888

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT + CASE - COUNT( + - 67 ) WHEN + - 40 THEN + 89 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4837
SELECT + CASE - COUNT ( + - 67 ) WHEN + - 40 THEN + 89 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4838
SELECT 77 + + MIN( + - 97 ), 70 * COUNT( ALL + 26 ) AS col2
----
-20
70

skipif mysql # not compatible
query II rowsort label-4838
SELECT 77 + + MIN ( + - 97 ), 70 * COUNT ( ALL + 26 ) AS col2
----
-20
70

onlyif mysql # DIV for integer division: 
query I rowsort label-4839
SELECT DISTINCT + 13 DIV + + 47 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4839
SELECT DISTINCT + 13 / + + 47 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4840
SELECT + ( + ( - 5 ) ) * - - SUM( CAST( NULL AS DECIMAL ) ) * 1 + + 82 / - 83 + - 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4840
SELECT + ( + ( - 5 ) ) * - - SUM ( CAST ( NULL AS REAL ) ) * 1 + + 82 / - 83 + - 49 AS col1
----
NULL

query I rowsort
SELECT ALL - 96 * - 78 AS col0
----
7488

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT - 49 * + + ( - - COUNT( * ) ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-4842
SELECT - 49 * + + ( - - COUNT ( * ) ) AS col1
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4843
SELECT - 67 DIV + COUNT( DISTINCT + 21 ) col0
----
-67

skipif mysql # not compatible
query I rowsort label-4843
SELECT - 67 / + COUNT ( DISTINCT + 21 ) col0
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4844
SELECT + COUNT( * ) * - CAST( NULL AS SIGNED ) + - 63 + + NULLIF ( + 23, - 37 * + 22 + 3 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4844
SELECT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) + - 63 + + NULLIF ( + 23, - 37 * + 22 + 3 )
----
NULL

query I rowsort
SELECT ALL 15 * 14 - - 71
----
281

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT - 19 * + SUM( ALL + + 98 ) AS col0
----
-1862

skipif mysql # not compatible
query I rowsort label-4846
SELECT - 19 * + SUM ( ALL + + 98 ) AS col0
----
-1862

query I rowsort
SELECT ALL + 24 * ( - 54 ) * 95
----
-123120

query I rowsort
SELECT DISTINCT + ( + + 30 ) AS col2
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4849
SELECT - CAST( - 49 AS SIGNED ) * - - CAST( + + COUNT( - + ( NULLIF ( + + 31, + - 45 ) ) ) AS SIGNED )
----
49

skipif mysql # not compatible
query I rowsort label-4849
SELECT - CAST ( - 49 AS INTEGER ) * - - CAST ( + + COUNT ( - + ( NULLIF ( + + 31, + - 45 ) ) ) AS INTEGER )
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-4850
SELECT - 64 * + 52 * - 49 + + - 17 DIV - + 80
----
163072

skipif mysql # not compatible
query I rowsort label-4850
SELECT - 64 * + 52 * - 49 + + - 17 / - + 80
----
163072

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT DISTINCT + MAX( + + 41 )
----
41

skipif mysql # not compatible
query I rowsort label-4851
SELECT DISTINCT + MAX ( + + 41 )
----
41

query I rowsort
SELECT DISTINCT + 3 * - - 50 + + COALESCE ( 57, - + 63 - NULLIF ( + - 13, + 39 * CASE + 72 WHEN + + 75 THEN - 92 * 11 ELSE - + 15 + + 72 END ), + + NULLIF ( + 94, - 29 * - ( + 42 ) ) )
----
207

query II rowsort
SELECT DISTINCT + ( + 98 ) AS col1, 38 - + 25 AS col0
----
98
13

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4854
SELECT ALL CAST( NULL AS DECIMAL ) + MAX( ALL 44 ) + + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-4854
SELECT ALL CAST ( NULL AS REAL ) + MAX ( ALL 44 ) + + 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT DISTINCT - 98 + + + 10 * + MIN( + 79 )
----
692

skipif mysql # not compatible
query I rowsort label-4855
SELECT DISTINCT - 98 + + + 10 * + MIN ( + 79 )
----
692

query I rowsort
SELECT ALL - - 86 + 91 * - 55
----
-4919

query I rowsort
SELECT - 76 - + 30 - 58
----
-164

query I rowsort
SELECT - - 52 + - 20
----
32

query I rowsort
SELECT + - ( - 2 ) * - ( + 41 )
----
-82

query I rowsort
SELECT + 82 + - 37 + - + 45 * 28 * + 80
----
-100755

query I rowsort
SELECT DISTINCT - - 44 * COALESCE ( - - 94, - 81 + 15 ) AS col1
----
4136

query I rowsort
SELECT + 52 - 60 AS col2
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4863
SELECT ALL 36 - 73 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4863
SELECT ALL 36 - 73 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT COALESCE ( + 30, - - 78 + COUNT( * ) + + + 22 * - 51 )
----
30

skipif mysql # not compatible
query I rowsort label-4864
SELECT COALESCE ( + 30, - - 78 + COUNT ( * ) + + + 22 * - 51 )
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4865
SELECT + 19 + - COUNT( * ), 17 + - 82 + - + COUNT( * ) DIV + ( 84 ) * - + COUNT( * ) - + 0 + + NULLIF ( - NULLIF ( - 8, + 95 ), + COUNT( * ) ) * 58 * 0 + - 65 AS col1
----
18
-130

skipif mysql # not compatible
query II rowsort label-4865
SELECT + 19 + - COUNT ( * ), 17 + - 82 + - + COUNT ( * ) / + ( 84 ) * - + COUNT ( * ) - + 0 + + NULLIF ( - NULLIF ( - 8, + 95 ), + COUNT ( * ) ) * 58 * 0 + - 65 AS col1
----
18
-130

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4866
SELECT 0 col1, 13 * - + CAST( + 70 AS SIGNED )
----
0
-910

skipif mysql # not compatible
query II rowsort label-4866
SELECT 0 col1, 13 * - + CAST ( + 70 AS INTEGER )
----
0
-910

query I rowsort
SELECT - NULLIF ( - 88, 77 ) - - 76
----
164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4868
SELECT - CASE - + NULLIF ( + + 28, - + 68 ) WHEN - + 37 THEN + 55 + + - 85 * + - 86 + CAST( + SUM( 39 ) AS SIGNED ) ELSE COUNT( * ) END AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4868
SELECT - CASE - + NULLIF ( + + 28, - + 68 ) WHEN - + 37 THEN + 55 + + - 85 * + - 86 + CAST ( + SUM ( 39 ) AS INTEGER ) ELSE COUNT ( * ) END AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4869
SELECT CAST( - + 15 AS SIGNED )
----
-15

skipif mysql # not compatible
query I rowsort label-4869
SELECT CAST ( - + 15 AS INTEGER )
----
-15

query I rowsort
SELECT + ( + CASE + 22 WHEN - 56 + 85 THEN NULL WHEN + + 51 + + 19 THEN NULL WHEN 77 * + 0 THEN + - 48 END )
----
NULL

query I rowsort
SELECT DISTINCT 66 * ( + 96 )
----
6336

query I rowsort
SELECT - 96 * 71 AS col1
----
-6816

onlyif mysql # DIV for integer division: 
query I rowsort label-4873
SELECT 56 DIV - - 14 + 68 * 64
----
4356

skipif mysql # not compatible
query I rowsort label-4873
SELECT 56 / - - 14 + 68 * 64
----
4356

query I rowsort
SELECT ( ( + 43 ) ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-4875
SELECT + 74, COUNT( * ) AS col0
----
74
1

skipif mysql # not compatible
query II rowsort label-4875
SELECT + 74, COUNT ( * ) AS col0
----
74
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4876
SELECT ALL + COUNT( * ) AS col2, + 72 AS col0
----
1
72

skipif mysql # not compatible
query II rowsort label-4876
SELECT ALL + COUNT ( * ) AS col2, + 72 AS col0
----
1
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4877
SELECT ALL - 65 DIV + COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-4877
SELECT ALL - 65 / + COUNT ( * )
----
-65

query I rowsort
SELECT - 65 * + 88
----
-5720

query I rowsort
SELECT + 85 * + - NULLIF ( + 67, ( + ( 74 ) ) + 83 ) + 23
----
-5672

query I rowsort
SELECT ALL - 75 * 73 + - - 90
----
-5385

onlyif mysql # aggregate syntax: 
query II rowsort label-4881
SELECT - COUNT( * ) * + 74 + 53, 20 AS col0
----
-21
20

skipif mysql # not compatible
query II rowsort label-4881
SELECT - COUNT ( * ) * + 74 + 53, 20 AS col0
----
-21
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4882
SELECT ALL + COALESCE ( + 46, COUNT( * ) DIV AVG ( DISTINCT - + 45 ) ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-4882
SELECT ALL + COALESCE ( + 46, COUNT ( * ) / AVG ( DISTINCT - + 45 ) ) AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT ALL + - 12 * - COUNT( * ) + - ( + + 28 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-4883
SELECT ALL + - 12 * - COUNT ( * ) + - ( + + 28 ) AS col2
----
-16

query I rowsort
SELECT - 38 * - - 19 + + + 0 + - - 60
----
-662

query I rowsort
SELECT + 67 * - - 99 + - + 13 - 90 + - 91
----
6439

query I rowsort
SELECT - + 81 + + 54
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT - + MIN( DISTINCT + 19 ) + 56 * + + 65 * + 7 + 57
----
25518

skipif mysql # not compatible
query I rowsort label-4887
SELECT - + MIN ( DISTINCT + 19 ) + 56 * + + 65 * + 7 + 57
----
25518

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT ALL MAX( ALL + 28 ) * - COUNT( * ) * 10 - + - 55 AS col1
----
-225

skipif mysql # not compatible
query I rowsort label-4888
SELECT ALL MAX ( ALL + 28 ) * - COUNT ( * ) * 10 - + - 55 AS col1
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT - COUNT( * ) * + - 86 * 93 + + + 57 AS col1
----
8055

skipif mysql # not compatible
query I rowsort label-4889
SELECT - COUNT ( * ) * + - 86 * 93 + + + 57 AS col1
----
8055

onlyif mysql # DIV for integer division: 
query II rowsort label-4890
SELECT DISTINCT - 91 AS col2, - ( + 36 ) + - - 6 DIV - 14
----
-91
-36

skipif mysql # not compatible
query II rowsort label-4890
SELECT DISTINCT - 91 AS col2, - ( + 36 ) + - - 6 / - 14
----
-91
-36

query II rowsort
SELECT DISTINCT ( + CASE - + 74 WHEN + 33 THEN NULL WHEN + 50 * + 12 + - 49 THEN + 3 END ), - COALESCE ( - + 47, - 86 * + 98 + 84 - 38 ) + + - 28 col0
----
NULL
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT 43 + COUNT( * ) * + 76 AS col1
----
119

skipif mysql # not compatible
query I rowsort label-4892
SELECT 43 + COUNT ( * ) * + 76 AS col1
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT SUM( ALL - 24 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-4893
SELECT SUM ( ALL - 24 ) AS col2
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-4894
SELECT + 86 + + 1 DIV - 64 DIV 32 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-4894
SELECT + 86 + + 1 / - 64 / 32 AS col2
----
86

query I rowsort
SELECT DISTINCT + 50 * + 9 AS col2
----
450

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT MIN( + + 13 ) + NULLIF ( - 96, - COUNT( * ) * + 20 + - 18 )
----
-83

skipif mysql # not compatible
query I rowsort label-4896
SELECT MIN ( + + 13 ) + NULLIF ( - 96, - COUNT ( * ) * + 20 + - 18 )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT 86 + + + COUNT( * ) + - + 73 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-4897
SELECT 86 + + + COUNT ( * ) + - + 73 AS col0
----
14

query I rowsort
SELECT 76 * + + 95 AS col2
----
7220

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT 24 * + 85 * COUNT( - 17 ) + + - 69
----
1971

skipif mysql # not compatible
query I rowsort label-4899
SELECT 24 * + 85 * COUNT ( - 17 ) + + - 69
----
1971

query I rowsort
SELECT DISTINCT 13 + - 5 * 98
----
-477

query I rowsort
SELECT ALL 48 + 11 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT DISTINCT - MIN( DISTINCT + ( 67 ) )
----
-67

skipif mysql # not compatible
query I rowsort label-4902
SELECT DISTINCT - MIN ( DISTINCT + ( 67 ) )
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4903
SELECT ALL 12 + - - 1 - - ( + 7 ) * - SUM( + 28 ) * - CAST( - + 70 AS SIGNED )
----
-13707

skipif mysql # not compatible
query I rowsort label-4903
SELECT ALL 12 + - - 1 - - ( + 7 ) * - SUM ( + 28 ) * - CAST ( - + 70 AS INTEGER )
----
-13707

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT DISTINCT COUNT( * ) + - 67 + 25 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-4904
SELECT DISTINCT COUNT ( * ) + - 67 + 25 AS col0
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-4905
SELECT + 58 DIV - + 33 col0
----
-1

skipif mysql # not compatible
query I rowsort label-4905
SELECT + 58 / - + 33 col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT - ( 39 ) * - 58 * + CASE - + SUM( ALL + 75 ) WHEN - 53 THEN - + 25 + 70 WHEN - + 38 THEN NULL ELSE NULL END * - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-4906
SELECT - ( 39 ) * - 58 * + CASE - + SUM ( ALL + 75 ) WHEN - 53 THEN - + 25 + 70 WHEN - + 38 THEN NULL ELSE NULL END * - 97
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4907
SELECT ALL - ( 76 ) DIV 18 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-4907
SELECT ALL - ( 76 ) / 18 AS col1
----
-4

query I rowsort
SELECT ALL - + 6 * + + 86 col0
----
-516

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4909
SELECT ALL - CAST( 41 AS SIGNED ) - - + 73 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-4909
SELECT ALL - CAST ( 41 AS INTEGER ) - - + 73 AS col0
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-4910
SELECT MAX( ALL 45 ) * - 21 + - 97, MAX( + 48 ) AS col2
----
-1042
48

skipif mysql # not compatible
query II rowsort label-4910
SELECT MAX ( ALL 45 ) * - 21 + - 97, MAX ( + 48 ) AS col2
----
-1042
48

query I rowsort
SELECT + CASE + 12 WHEN - 17 / 3 * - 10 * - + CASE - + 61 WHEN + 46 / + 4 - 67 THEN NULL WHEN - 12 THEN + - 35 * 55 ELSE 90 END THEN - + 66 ELSE NULL END
----
NULL

query I rowsort
SELECT - 44 * - 75 * + + 95 col0
----
313500

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4913
SELECT ALL - + 14 * + 62 + + 15 + - COUNT( * ) DIV - 38 * + - 30 * 33 AS col0
----
-853

skipif mysql # not compatible
query I rowsort label-4913
SELECT ALL - + 14 * + 62 + + 15 + - COUNT ( * ) / - 38 * + - 30 * 33 AS col0
----
-853

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT 27 + 73 + - + COUNT( * ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-4914
SELECT 27 + 73 + - + COUNT ( * ) AS col0
----
99

query I rowsort
SELECT - 66 + - ( + - 53 )
----
-13

query I rowsort
SELECT - 10 * + ( - 25 )
----
250

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT ALL - COUNT( * ) * - 58 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL - COUNT ( * ) * - 58 AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT ALL COUNT( ALL - 9 )
----
1

skipif mysql # not compatible
query I rowsort label-4918
SELECT ALL COUNT ( ALL - 9 )
----
1

query II rowsort
SELECT 25 AS col2, 42
----
25
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT 80 - - COUNT( * ) + + 60 AS col1
----
141

skipif mysql # not compatible
query I rowsort label-4920
SELECT 80 - - COUNT ( * ) + + 60 AS col1
----
141

query I rowsort
SELECT ALL - 64 * - - 66 AS col1
----
-4224

query I rowsort
SELECT 86 * 4
----
344

query III rowsort
SELECT - 3 col2, - 13 + - - 14 col0, - - 68
----
-3
1
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4924
SELECT 76 * - - CAST( + - ( 34 ) AS SIGNED )
----
-2584

skipif mysql # not compatible
query I rowsort label-4924
SELECT 76 * - - CAST ( + - ( 34 ) AS INTEGER )
----
-2584

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT COUNT( * ) * + COUNT( * ) * - - 75
----
75

skipif mysql # not compatible
query I rowsort label-4925
SELECT COUNT ( * ) * + COUNT ( * ) * - - 75
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4926
SELECT DISTINCT + 47 + ( + - COUNT( * ) ) + 6 DIV + 98, - 60 AS col0
----
46
-60

skipif mysql # not compatible
query II rowsort label-4926
SELECT DISTINCT + 47 + ( + - COUNT ( * ) ) + 6 / + 98, - 60 AS col0
----
46
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT ALL - MIN( - - 36 ) + + 17
----
-19

skipif mysql # not compatible
query I rowsort label-4927
SELECT ALL - MIN ( - - 36 ) + + 17
----
-19

query II rowsort
SELECT - 69 AS col1, 57 + - 62
----
-69
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4929
SELECT ALL + 65 + + CAST( NULL AS SIGNED ) * - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-4929
SELECT ALL + 65 + + CAST ( NULL AS INTEGER ) * - 59
----
NULL

query I rowsort
SELECT ALL - 2 * - + 45 * - 65
----
-5850

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT ALL SUM( - + 72 ) * ( 10 ) + + + 92 + 1 + + 53 AS col2
----
-574

skipif mysql # not compatible
query I rowsort label-4931
SELECT ALL SUM ( - + 72 ) * ( 10 ) + + + 92 + 1 + + 53 AS col2
----
-574

onlyif mysql # aggregate syntax: 
query II rowsort label-4932
SELECT ALL - 10 * - - 78 + 77 AS col0, - COUNT( * ) * - 32 AS col2
----
-703
32

skipif mysql # not compatible
query II rowsort label-4932
SELECT ALL - 10 * - - 78 + 77 AS col0, - COUNT ( * ) * - 32 AS col2
----
-703
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT ALL - SUM( DISTINCT + + 82 ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-4933
SELECT ALL - SUM ( DISTINCT + + 82 ) AS col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT 1 + 38 + + COUNT( ALL 87 ) * + 19 * 28
----
571

skipif mysql # not compatible
query I rowsort label-4934
SELECT 1 + 38 + + COUNT ( ALL 87 ) * + 19 * 28
----
571

onlyif mysql # aggregate syntax: 
query II rowsort label-4935
SELECT COUNT( * ) AS col2, MIN( ALL 65 )
----
1
65

skipif mysql # not compatible
query II rowsort label-4935
SELECT COUNT ( * ) AS col2, MIN ( ALL 65 )
----
1
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT - 84 * 5 + - + 54 + + 0 + + 96 + - 37 - 59 * CASE - - ( + COUNT( * ) ) WHEN + 32 THEN + 22 WHEN 99 THEN NULL END * - + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-4936
SELECT - 84 * 5 + - + 54 + + 0 + + 96 + - 37 - 59 * CASE - - ( + COUNT ( * ) ) WHEN + 32 THEN + 22 WHEN 99 THEN NULL END * - + 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT + COUNT( CASE - 16 WHEN + + 31 THEN NULL WHEN - 53 THEN NULL ELSE 35 - - - 24 + - - 49 END )
----
1

skipif mysql # not compatible
query I rowsort label-4937
SELECT + COUNT ( CASE - 16 WHEN + + 31 THEN NULL WHEN - 53 THEN NULL ELSE 35 - - - 24 + - - 49 END )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT ALL + - 27 * + - COUNT( * ) - + - ( - 42 )
----
-15

skipif mysql # not compatible
query I rowsort label-4938
SELECT ALL + - 27 * + - COUNT ( * ) - + - ( - 42 )
----
-15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4939
SELECT ( + 82 ) DIV - CAST( - + 39 AS SIGNED ) + - - 32 AS col2, 57 DIV - 34 AS col2
----
34
-1

skipif mysql # not compatible
query II rowsort label-4939
SELECT ( + 82 ) / - CAST ( - + 39 AS INTEGER ) + - - 32 AS col2, 57 / - 34 AS col2
----
34
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT + 92 + - 37 + COALESCE ( COUNT( + 75 ), - 40 ) * + 60 AS col2
----
115

skipif mysql # not compatible
query I rowsort label-4940
SELECT + 92 + - 37 + COALESCE ( COUNT ( + 75 ), - 40 ) * + 60 AS col2
----
115

query I rowsort
SELECT ALL - 67 * + 82 col0
----
-5494

query I rowsort
SELECT NULLIF ( - - ( ( 23 ) ), - 57 ) + + 46
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT ALL - - COUNT( DISTINCT - - 41 )
----
1

skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL - - COUNT ( DISTINCT - - 41 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4944
SELECT NULLIF ( + + 72, 7 * + - COUNT( * ) + - + 30 * + 1 * - - 4 / 1 * + + CASE - SUM( DISTINCT - 85 ) WHEN + ( - ( 48 ) ) THEN 65 WHEN - 96 + - 48 THEN NULL WHEN + - 51 THEN NULL END * - CAST( NULL AS SIGNED ) ) col1
----
72

skipif mysql # not compatible
query I rowsort label-4944
SELECT NULLIF ( + + 72, 7 * + - COUNT ( * ) + - + 30 * + 1 * - - 4 / 1 * + + CASE - SUM ( DISTINCT - 85 ) WHEN + ( - ( 48 ) ) THEN 65 WHEN - 96 + - 48 THEN NULL WHEN + - 51 THEN NULL END * - CAST ( NULL AS INTEGER ) ) col1
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4945
SELECT ALL + 52 DIV + - CASE ( + COUNT( * ) ) WHEN 29 THEN NULL ELSE + 88 END
----
0

skipif mysql # not compatible
query I rowsort label-4945
SELECT ALL + 52 / + - CASE ( + COUNT ( * ) ) WHEN 29 THEN NULL ELSE + 88 END
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4946
SELECT + + ( + 35 ) DIV MIN( 88 ) + - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4946
SELECT + + ( + 35 ) / MIN ( 88 ) + - + COUNT ( * )
----
-1

query I rowsort
SELECT ALL + 82 + + 9
----
91

query I rowsort
SELECT - NULLIF ( - 57, + 89 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT ALL - 60 + CASE + - 32 WHEN - 95 * 56 + - 39 * + 57 * + 75 / - - 16 THEN + + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4949
SELECT ALL - 60 + CASE + - 32 WHEN - 95 * 56 + - 39 * + 57 * + 75 / - - 16 THEN + + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT - MIN( ALL - ( - 28 ) ) + - 58 - 0 * - CASE + 41 WHEN + 25 * 70 THEN NULL ELSE + - 65 END * - 87
----
-86

skipif mysql # not compatible
query I rowsort label-4950
SELECT - MIN ( ALL - ( - 28 ) ) + - 58 - 0 * - CASE + 41 WHEN + 25 * 70 THEN NULL ELSE + - 65 END * - 87
----
-86

onlyif mysql # DIV for integer division: 
query II rowsort label-4951
SELECT ALL 85 + + NULLIF ( 96, - ( 78 ) * + 92 + + 86 ) AS col2, 95 DIV - + NULLIF ( 39, + 45 )
----
181
-2

skipif mysql # not compatible
query II rowsort label-4951
SELECT ALL 85 + + NULLIF ( 96, - ( 78 ) * + 92 + + 86 ) AS col2, 95 / - + NULLIF ( 39, + 45 )
----
181
-2

query I rowsort
SELECT - COALESCE ( - - ( 88 ), - - ( - 52 ) ) AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT + 67 * + SUM( + - 91 ) * COALESCE ( 31, - 84 ) AS col0
----
-189007

skipif mysql # not compatible
query I rowsort label-4953
SELECT + 67 * + SUM ( + - 91 ) * COALESCE ( 31, - 84 ) AS col0
----
-189007

onlyif mysql # aggregate syntax: 
query II rowsort label-4954
SELECT ALL COUNT( * ), - 75 col1
----
1
-75

skipif mysql # not compatible
query II rowsort label-4954
SELECT ALL COUNT ( * ), - 75 col1
----
1
-75

query II rowsort
SELECT 96 col1, - 58 col1
----
96
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4956
SELECT DISTINCT + COUNT( ALL - 63 ) + 33 + + + COUNT( * ) DIV 63 + + 97 + + 91
----
222

skipif mysql # not compatible
query I rowsort label-4956
SELECT DISTINCT + COUNT ( ALL - 63 ) + 33 + + + COUNT ( * ) / 63 + + 97 + + 91
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-4957
SELECT ALL COALESCE ( + MAX( + + 29 ), + + 81 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-4957
SELECT ALL COALESCE ( + MAX ( + + 29 ), + + 81 ) AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT DISTINCT 1 + - - 1 * + MAX( DISTINCT + + 35 ) * + 58 * + + MAX( ALL - 27 )
----
-54809

skipif mysql # not compatible
query I rowsort label-4958
SELECT DISTINCT 1 + - - 1 * + MAX ( DISTINCT + + 35 ) * + 58 * + + MAX ( ALL - 27 )
----
-54809

query II rowsort
SELECT ALL CASE - 75 WHEN - ( - + 75 ) THEN - + 30 / 95 WHEN + 58 THEN NULL END, 14 col2
----
NULL
14

query I rowsort
SELECT - 30 + ( 82 )
----
52

query I rowsort
SELECT DISTINCT + 61 + - 19 AS col2
----
42

query I rowsort
SELECT DISTINCT COALESCE ( 76, - 71 ) col1
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-4963
SELECT - 94 DIV - ( - + 71 )
----
-1

skipif mysql # not compatible
query I rowsort label-4963
SELECT - 94 / - ( - + 71 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT - COUNT( * ) + - - COUNT( * ) * - - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4964
SELECT - COUNT ( * ) + - - COUNT ( * ) * - - COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4965
SELECT + NULLIF ( + + 35, 57 + - SUM( - 85 ) ) * 78 * + - 41 + - 47 - + COALESCE ( - ( - ( + 42 ) ), - CAST( + COUNT( * ) AS SIGNED ), - + 71 + - 63 ) * + - 44
----
-110129

skipif mysql # not compatible
query I rowsort label-4965
SELECT + NULLIF ( + + 35, 57 + - SUM ( - 85 ) ) * 78 * + - 41 + - 47 - + COALESCE ( - ( - ( + 42 ) ), - CAST ( + COUNT ( * ) AS INTEGER ), - + 71 + - 63 ) * + - 44
----
-110129

query I rowsort
SELECT ( - + 46 ) AS col2
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-4967
SELECT + 72 DIV NULLIF ( - 67, 23 ) + - 33 * - 89 * 52 AS col1
----
152723

skipif mysql # not compatible
query I rowsort label-4967
SELECT + 72 / NULLIF ( - 67, 23 ) + - 33 * - 89 * 52 AS col1
----
152723

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4968
SELECT ALL + CAST( + + NULLIF ( + + 90, ( - 20 ) ) AS SIGNED ) * - - 6 - 9 * + + 3 - - 9 DIV - 96 * + 46 * + - 87 AS col2
----
513

skipif mysql # not compatible
query I rowsort label-4968
SELECT ALL + CAST ( + + NULLIF ( + + 90, ( - 20 ) ) AS INTEGER ) * - - 6 - 9 * + + 3 - - 9 / - 96 * + 46 * + - 87 AS col2
----
513

query I rowsort
SELECT - 64 * + 19 AS col0
----
-1216

query I rowsort
SELECT DISTINCT + + 10 * - 45 AS col0
----
-450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4971
SELECT ALL + CAST( + - 37 AS SIGNED ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-4971
SELECT ALL + CAST ( + - 37 AS INTEGER ) AS col1
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4972
SELECT DISTINCT - 75 DIV - MIN( - 55 )
----
-1

skipif mysql # not compatible
query I rowsort label-4972
SELECT DISTINCT - 75 / - MIN ( - 55 )
----
-1

query II rowsort
SELECT DISTINCT + + 64 col1, 10
----
64
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT + 17 * + 73 + + - 78 - + 79 + - - 79 + + 43 + COUNT( * ) * 92 * - ( + COUNT( * ) ) * + 55 * NULLIF ( 11, - + 8 )
----
-54454

skipif mysql # not compatible
query I rowsort label-4974
SELECT + 17 * + 73 + + - 78 - + 79 + - - 79 + + 43 + COUNT ( * ) * 92 * - ( + COUNT ( * ) ) * + 55 * NULLIF ( 11, - + 8 )
----
-54454

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4975
SELECT - + ( - - 55 ) * - + 67 + - ( - + 42 ) * COUNT( * ) DIV - 61 AS col1
----
3685

skipif mysql # not compatible
query I rowsort label-4975
SELECT - + ( - - 55 ) * - + 67 + - ( - + 42 ) * COUNT ( * ) / - 61 AS col1
----
3685

query II rowsort
SELECT ALL + - 48 AS col2, 24
----
-48
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4977
SELECT ALL - - CAST( NULL AS SIGNED ) * - COUNT( * ) + - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-4977
SELECT ALL - - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - 42
----
NULL

query I rowsort
SELECT ALL - 24 * - 7 + ( - + 52 ) AS col1
----
116

query II rowsort
SELECT ALL + 77 AS col0, 91
----
77
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4980
SELECT DISTINCT - CAST( + AVG ( ALL 55 ) AS SIGNED ) * + 85 * 46 AS col1
----
-215050

skipif mysql # not compatible
query I rowsort label-4980
SELECT DISTINCT - CAST ( + AVG ( ALL 55 ) AS INTEGER ) * + 85 * 46 AS col1
----
-215050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4981
SELECT + 92 AS col2, CAST( + COUNT( * ) AS SIGNED ) AS col1
----
92
1

skipif mysql # not compatible
query II rowsort label-4981
SELECT + 92 AS col2, CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
92
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4982
SELECT MIN( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4982
SELECT MIN ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4983
SELECT + CAST( NULL AS SIGNED ) + - 72 * + 50 + + 11 * + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4983
SELECT + CAST ( NULL AS INTEGER ) + - 72 * + 50 + + 11 * + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4984
SELECT + 49 - + + 49 + - CAST( NULL AS SIGNED ) + - 42 * - 94 * - - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-4984
SELECT + 49 - + + 49 + - CAST ( NULL AS INTEGER ) + - 42 * - 94 * - - 34
----
NULL

query I rowsort
SELECT - 67 + 67
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4986
SELECT DISTINCT 90 DIV 88 AS col2, - 37
----
1
-37

skipif mysql # not compatible
query II rowsort label-4986
SELECT DISTINCT 90 / 88 AS col2, - 37
----
1
-37

query I rowsort
SELECT DISTINCT 2 + - 87 * - 13 AS col0
----
1133

onlyif mysql # DIV for integer division: 
query II rowsort label-4988
SELECT ALL - 2 * - 67, + 91 * 25 DIV - ( 67 ) + - 62 + + 43 * - 38 AS col2
----
134
-1729

skipif mysql # not compatible
query II rowsort label-4988
SELECT ALL - 2 * - 67, + 91 * 25 / - ( 67 ) + - 62 + + 43 * - 38 AS col2
----
134
-1729

query I rowsort
SELECT DISTINCT + ( - + 72 ) - 67
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT + 89 + - CASE 4 WHEN + + 91 THEN COUNT( ALL + 29 ) * - 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4990
SELECT + 89 + - CASE 4 WHEN + + 91 THEN COUNT ( ALL + 29 ) * - 62 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT + 77 * - COUNT( * ) * COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-4991
SELECT + 77 * - COUNT ( * ) * COUNT ( * )
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4992
SELECT - 83 * + 52 AS col0, COUNT( * ) DIV COUNT( * ) * - 2 * 29 * 24 + 93 + - MAX( DISTINCT + + 98 ) col0
----
-4316
-1397

skipif mysql # not compatible
query II rowsort label-4992
SELECT - 83 * + 52 AS col0, COUNT ( * ) / COUNT ( * ) * - 2 * 29 * 24 + 93 + - MAX ( DISTINCT + + 98 ) col0
----
-4316
-1397

query I rowsort
SELECT ALL 89 * + 20 AS col1
----
1780

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT DISTINCT + ( + + MAX( DISTINCT + - 90 ) ) - - 7 AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-4994
SELECT DISTINCT + ( + + MAX ( DISTINCT + - 90 ) ) - - 7 AS col1
----
-83

query I rowsort
SELECT ALL ( - 1 ) AS col1
----
-1

query II rowsort
SELECT + 23 * + 98 AS col1, 93
----
2254
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT MAX( ALL 46 ) + - COUNT( * ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-4997
SELECT MAX ( ALL 46 ) + - COUNT ( * ) AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4998
SELECT + + COALESCE ( + 97, + COUNT( * ) ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-4998
SELECT + + COALESCE ( + 97, + COUNT ( * ) ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-4999
SELECT COUNT( * ) * 96 AS col0, - 93 AS col2
----
96
-93

skipif mysql # not compatible
query II rowsort label-4999
SELECT COUNT ( * ) * 96 AS col0, - 93 AS col2
----
96
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5000
SELECT CAST( NULL AS SIGNED ) + 12 + + ( + 63 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5000
SELECT CAST ( NULL AS INTEGER ) + 12 + + ( + 63 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT 76 - COUNT( * ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-5001
SELECT 76 - COUNT ( * ) AS col0
----
75

query I rowsort
SELECT ALL - 85 * 30 AS col0
----
-2550

onlyif mysql # aggregate syntax: 
query II rowsort label-5003
SELECT - MAX( + 24 ) AS col0, - SUM( ALL 66 )
----
-24
-66

skipif mysql # not compatible
query II rowsort label-5003
SELECT - MAX ( + 24 ) AS col0, - SUM ( ALL 66 )
----
-24
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5004
SELECT DISTINCT - + ( - + NULLIF ( - COUNT( * ), + 81 * - CAST( NULL AS SIGNED ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5004
SELECT DISTINCT - + ( - + NULLIF ( - COUNT ( * ), + 81 * - CAST ( NULL AS INTEGER ) ) ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5005
SELECT CAST( NULL AS SIGNED ) / ( - - 48 ) + - - 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5005
SELECT CAST ( NULL AS INTEGER ) / ( - - 48 ) + - - 25 AS col1
----
NULL

query II rowsort
SELECT ALL - 41 + + 78 AS col1, 49 AS col0
----
37
49

query I rowsort
SELECT ALL - NULLIF ( 66, - ( + + 49 ) ) * + 86 + - ( + + 95 ) * + + 82 AS col0
----
-13466

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5008
SELECT ALL COUNT( * ) + - MIN( ALL + 8 ) - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5008
SELECT ALL COUNT ( * ) + - MIN ( ALL + 8 ) - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT DISTINCT + NULLIF ( + 30, 35 * - COUNT( * ) ) + 82 AS col2
----
112

skipif mysql # not compatible
query I rowsort label-5009
SELECT DISTINCT + NULLIF ( + 30, 35 * - COUNT ( * ) ) + 82 AS col2
----
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5010
SELECT COUNT( * ) * 15 DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-5010
SELECT COUNT ( * ) * 15 / - 92
----
0

query II rowsort
SELECT ALL + - 53 + + 79 AS col0, 69
----
26
69

query I rowsort
SELECT 15 + + ( + + 80 ) AS col2
----
95

query II rowsort
SELECT 35, - 53 + + 31 AS col2
----
35
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5014
SELECT CAST( NULL AS SIGNED ) + + COALESCE ( + MIN( DISTINCT 34 ), 23 + 80 * + COUNT( - 33 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5014
SELECT CAST ( NULL AS INTEGER ) + + COALESCE ( + MIN ( DISTINCT 34 ), 23 + 80 * + COUNT ( - 33 ) )
----
NULL

query I rowsort
SELECT ALL 49 * 45 col1
----
2205

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT DISTINCT - 61 - ( ( - 3 ) ) * + NULLIF ( + + 58, + 49 * COUNT( * ) * 27 * - 57 )
----
113

skipif mysql # not compatible
query I rowsort label-5016
SELECT DISTINCT - 61 - ( ( - 3 ) ) * + NULLIF ( + + 58, + 49 * COUNT ( * ) * 27 * - 57 )
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT COUNT( * ) + - 88
----
-87

skipif mysql # not compatible
query I rowsort label-5017
SELECT COUNT ( * ) + - 88
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-5018
SELECT 14 * + + ( + 78 ) col2, COUNT( * ) * 34 AS col1
----
1092
34

skipif mysql # not compatible
query II rowsort label-5018
SELECT 14 * + + ( + 78 ) col2, COUNT ( * ) * 34 AS col1
----
1092
34

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5019
SELECT ALL - NULLIF ( 21, + 51 + + 8 / + ( + + NULLIF ( 7, 12 * + ( + 62 ) ) ) * - 66 * + 69 / + 22 + + 19 + 10 ) * COALESCE ( + 24, - + CAST( NULL AS DECIMAL ) - + 99 ) - - CAST( NULL AS DECIMAL ) + + - COUNT( * ) - COALESCE ( - + 95, + 11, - 6 ) + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-5019
SELECT ALL - NULLIF ( 21, + 51 + + 8 / + ( + + NULLIF ( 7, 12 * + ( + 62 ) ) ) * - 66 * + 69 / + 22 + + 19 + 10 ) * COALESCE ( + 24, - + CAST ( NULL AS REAL ) - + 99 ) - - CAST ( NULL AS REAL ) + + - COUNT ( * ) - COALESCE ( - + 95, + 11, - 6 ) + 50
----
NULL

query II rowsort
SELECT DISTINCT 61 AS col0, 15 - 21 AS col1
----
61
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT 39 * - ( + CASE - 30 WHEN 26 / + 30 / + NULLIF ( SUM( DISTINCT 21 ), - 99 ) THEN + 32 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5021
SELECT 39 * - ( + CASE - 30 WHEN 26 / + 30 / + NULLIF ( SUM ( DISTINCT 21 ), - 99 ) THEN + 32 END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5022
SELECT 10 + 99 * + 49 + CAST( NULL AS SIGNED ) AS col2, - 48 DIV - 9
----
NULL
5

skipif mysql # not compatible
query II rowsort label-5022
SELECT 10 + 99 * + 49 + CAST ( NULL AS INTEGER ) AS col2, - 48 / - 9
----
NULL
5

query I rowsort
SELECT 46 - 37
----
9

query I rowsort
SELECT DISTINCT 83 - + 0 AS col1
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-5025
SELECT ALL 35 DIV - + 34
----
-1

skipif mysql # not compatible
query I rowsort label-5025
SELECT ALL 35 / - + 34
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5026
SELECT CAST( NULL AS SIGNED ) + + 95 - 0 * - 66 * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5026
SELECT CAST ( NULL AS INTEGER ) + + 95 - 0 * - 66 * COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT + 2 * + 87 AS col0
----
174

query I rowsort
SELECT ( + NULLIF ( + + 95, 60 ) ) * - - 6 * - 14
----
-7980

query I rowsort
SELECT ALL + 5 + + 79
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5030
SELECT + 85 DIV - ( 11 ) DIV - + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-5030
SELECT + 85 / - ( 11 ) / - + COUNT ( * )
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-5031
SELECT 1 * ( 78 ) * - COUNT( * ), 39 AS col2
----
-78
39

skipif mysql # not compatible
query II rowsort label-5031
SELECT 1 * ( 78 ) * - COUNT ( * ), 39 AS col2
----
-78
39

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5032
SELECT + 76 * + + CASE + 61 WHEN - + ( - MAX( + 27 ) ) + - 91 THEN - ( 1 ) END - COUNT( * ) * + 99 + - COALESCE ( + 48, 10 * - COALESCE ( + + COUNT( * ), - COALESCE ( + - COUNT( * ), - COUNT( * ) + - COUNT( * ) * + ( + - 50 ) ), + - CAST( - 86 AS DECIMAL ) + 5 * 24 ) ) + NULLIF ( + 43, 17 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5032
SELECT + 76 * + + CASE + 61 WHEN - + ( - MAX ( + 27 ) ) + - 91 THEN - ( 1 ) END - COUNT ( * ) * + 99 + - COALESCE ( + 48, 10 * - COALESCE ( + + COUNT ( * ), - COALESCE ( + - COUNT ( * ), - COUNT ( * ) + - COUNT ( * ) * + ( + - 50 ) ), + - CAST ( - 86 AS REAL ) + 5 * 24 ) ) + NULLIF ( + 43, 17 ) AS col0
----
NULL

query II rowsort
SELECT + 75 col0, 20 * + 59 AS col2
----
75
1180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5034
SELECT 45 / + COUNT( * ) * CASE - CASE ( MIN( ALL + - 59 ) ) WHEN + - 15 * + 98 * - + 16 THEN 53 WHEN - 65 * 32 * 77 THEN + COUNT( * ) END WHEN + COUNT( * ) - + + CAST( NULL AS SIGNED ) + - 81 THEN NULL ELSE + COUNT( * ) * + 27 END * + - 19 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5034
SELECT 45 / + COUNT ( * ) * CASE - CASE ( MIN ( ALL + - 59 ) ) WHEN + - 15 * + 98 * - + 16 THEN 53 WHEN - 65 * 32 * 77 THEN + COUNT ( * ) END WHEN + COUNT ( * ) - + + CAST ( NULL AS INTEGER ) + - 81 THEN NULL ELSE + COUNT ( * ) * + 27 END * + - 19 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 86 + - - 95
----
9

query I rowsort
SELECT ALL + + ( 15 ) + 11 AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT - MAX( DISTINCT 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-5037
SELECT - MAX ( DISTINCT 7 )
----
-7

query I rowsort
SELECT 70 * + - 16 + + 10 + - 39
----
-1149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5039
SELECT ALL - + 80 * - COUNT( * ) * - CAST( COALESCE ( - 26, 86 ) AS SIGNED ) AS col0, 35 + COALESCE ( - + 20, + - 7 + + + 97 ) + 73 + 25 AS col2
----
2080
113

skipif mysql # not compatible
query II rowsort label-5039
SELECT ALL - + 80 * - COUNT ( * ) * - CAST ( COALESCE ( - 26, 86 ) AS INTEGER ) AS col0, 35 + COALESCE ( - + 20, + - 7 + + + 97 ) + 73 + 25 AS col2
----
2080
113

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT ALL + COUNT( * ) + 84 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-5040
SELECT ALL + COUNT ( * ) + 84 AS col1
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5041
SELECT + 27 - + + 18 DIV - + 31 + - COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-5041
SELECT + 27 - + + 18 / - + 31 + - COUNT ( * )
----
26

query I rowsort
SELECT + - 47 col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT + ( COALESCE ( 71, + COUNT( - 79 ) ) )
----
71

skipif mysql # not compatible
query I rowsort label-5043
SELECT + ( COALESCE ( 71, + COUNT ( - 79 ) ) )
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-5044
SELECT - ( + 22 ) * - 24 DIV - + 60 DIV + 59 DIV ( - 52 )
----
0

skipif mysql # not compatible
query I rowsort label-5044
SELECT - ( + 22 ) * - 24 / - + 60 / + 59 / ( - 52 )
----
0

query I rowsort
SELECT ALL - - 88 * - 22 AS col1
----
-1936

query II rowsort
SELECT + - 26 AS col1, - 28
----
-26
-28

query I rowsort
SELECT ALL ( - - 1 ) - + + ( - 22 )
----
23

query I rowsort
SELECT ALL + 47 - - 5
----
52

query I rowsort
SELECT ALL - NULLIF ( - 49, + + 19 )
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-5050
SELECT ALL + 75 DIV - 33 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5050
SELECT ALL + 75 / - 33 AS col1
----
-2

query I rowsort
SELECT 20 * 57 AS col2
----
1140

onlyif mysql # aggregate syntax: 
query II rowsort label-5052
SELECT DISTINCT MIN( + + 0 ) AS col2, - 48 + - + 79 AS col2
----
0
-127

skipif mysql # not compatible
query II rowsort label-5052
SELECT DISTINCT MIN ( + + 0 ) AS col2, - 48 + - + 79 AS col2
----
0
-127

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5053
SELECT 95 * - COUNT( * ) * + CASE + CAST( - 84 AS DECIMAL ) WHEN - + 40 THEN NULL WHEN - 86 THEN 62 + - - ( - + 56 ) ELSE - + 43 * + 39 * - ( - ( COUNT( 68 ) ) ) * + 36 - - - 89 + - - ( - 52 ) DIV - 78 END
----
5743795

skipif mysql # not compatible
query I rowsort label-5053
SELECT 95 * - COUNT ( * ) * + CASE + CAST ( - 84 AS REAL ) WHEN - + 40 THEN NULL WHEN - 86 THEN 62 + - - ( - + 56 ) ELSE - + 43 * + 39 * - ( - ( COUNT ( 68 ) ) ) * + 36 - - - 89 + - - ( - 52 ) / - 78 END
----
5743795

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5054
SELECT ALL + COUNT( + + 69 ) DIV COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5054
SELECT ALL + COUNT ( + + 69 ) / COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT 4 + - COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-5055
SELECT 4 + - COUNT ( * )
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5056
SELECT COUNT( * ) DIV - 34 * - 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5056
SELECT COUNT ( * ) / - 34 * - 48 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5057
SELECT ALL + CASE + + AVG ( ALL - - 57 ) WHEN + 2 THEN - + CASE 97 WHEN - CAST( NULL AS SIGNED ) * + 38 + 86 THEN - 63 END * 10 + - ( 9 ) * + 9 * - 2 END / ( 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5057
SELECT ALL + CASE + + AVG ( ALL - - 57 ) WHEN + 2 THEN - + CASE 97 WHEN - CAST ( NULL AS INTEGER ) * + 38 + 86 THEN - 63 END * 10 + - ( 9 ) * + 9 * - 2 END / ( 64 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5058
SELECT 10 * - 94 * CAST( NULL AS SIGNED ) * 16
----
NULL

skipif mysql # not compatible
query I rowsort label-5058
SELECT 10 * - 94 * CAST ( NULL AS INTEGER ) * 16
----
NULL

query I rowsort
SELECT 49 - 17
----
32

query I rowsort
SELECT 20 * + 40 AS col2
----
800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5061
SELECT 55 + - 30 + + - CASE - + 3 WHEN + 0 * - + 86 THEN NULL WHEN - ( - 11 ) THEN - CAST( NULL AS SIGNED ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5061
SELECT 55 + - 30 + + - CASE - + 3 WHEN + 0 * - + 86 THEN NULL WHEN - ( - 11 ) THEN - CAST ( NULL AS INTEGER ) ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT ALL 94 * - + COALESCE ( 87, 44 ), 95 AS col2
----
-8178
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT DISTINCT - MIN( ALL 71 ) * - 83 col2
----
5893

skipif mysql # not compatible
query I rowsort label-5063
SELECT DISTINCT - MIN ( ALL 71 ) * - 83 col2
----
5893

query I rowsort
SELECT + 70 * 12 AS col1
----
840

query I rowsort
SELECT - 95 - + 66 col0
----
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT ALL 39 + - MAX( ALL - - 82 ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-5066
SELECT ALL 39 + - MAX ( ALL - - 82 ) AS col2
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5067
SELECT + 22 DIV + - MIN( - - 23 ) - - 47 * - 53 AS col1
----
-2491

skipif mysql # not compatible
query I rowsort label-5067
SELECT + 22 / + - MIN ( - - 23 ) - - 47 * - 53 AS col1
----
-2491

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT ALL + + ( + ( - - 12 ) ) + - + 37 - - - 86 + - 75 * - COUNT( * ) * - + 34
----
-2661

skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL + + ( + ( - - 12 ) ) + - + 37 - - - 86 + - 75 * - COUNT ( * ) * - + 34
----
-2661

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT DISTINCT - + 86 + + COUNT( * ) col1
----
-85

skipif mysql # not compatible
query I rowsort label-5069
SELECT DISTINCT - + 86 + + COUNT ( * ) col1
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5070
SELECT ALL + NULLIF ( + 35, CAST( - + 73 AS SIGNED ) ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-5070
SELECT ALL + NULLIF ( + 35, CAST ( - + 73 AS INTEGER ) ) AS col1
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5071
SELECT DISTINCT - 83 * COUNT( * ) + COUNT( DISTINCT + 41 ) DIV + 29
----
-83

skipif mysql # not compatible
query I rowsort label-5071
SELECT DISTINCT - 83 * COUNT ( * ) + COUNT ( DISTINCT + 41 ) / + 29
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT + - SUM( 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-5072
SELECT + - SUM ( 71 )
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-5073
SELECT + 53 DIV - + 87 + - + 56 - - 91 + + + 27 DIV 1 * 43
----
1196

skipif mysql # not compatible
query I rowsort label-5073
SELECT + 53 / - + 87 + - + 56 - - 91 + + + 27 / 1 * 43
----
1196

query II rowsort
SELECT + + 69 * - 42 * - - 42 + - + 48 AS col2, 80 AS col2
----
-121764
80

query I rowsort
SELECT + + 31 col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT + 25 + - + COUNT( * ) * 71 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-5076
SELECT + 25 + - + COUNT ( * ) * 71 AS col0
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-5077
SELECT ALL - 41 * 57 DIV - 90 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-5077
SELECT ALL - 41 * 57 / - 90 AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT - 8 - + COUNT( * ) * + - 27 + - + 86
----
-67

skipif mysql # not compatible
query I rowsort label-5078
SELECT - 8 - + COUNT ( * ) * + - 27 + - + 86
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5079
SELECT + 90 * - 14 * + 6 + NULLIF ( COALESCE ( - 99, CASE 89 WHEN + 19 THEN 24 * - CAST( NULL AS SIGNED ) DIV - - 89 WHEN 22 THEN - - 15 * + CASE - - 57 WHEN + MIN( + 29 ) * - 76 + 8 DIV - - 63 THEN NULL WHEN 11 DIV + - 21 DIV + - 6 - COALESCE ( 33 + 66 * - CASE ( 59 ) WHEN 22 THEN + 80 * + 60 WHEN + 0 + + ( + CASE - COUNT( * ) WHEN + 52 THEN 23 * + 52 + COUNT( * ) WHEN 35 DIV 12 THEN 32 + + MAX( - CAST( NULL AS SIGNED ) + + 21 * 90 ) ELSE 25 END ) THEN 11 ELSE NULL END, 63 ) THEN ( - 0 ) END + 31 * ( 97 ) ELSE 88 END * + 43 ), + 70 ) * + 72
----
-14688

skipif mysql # not compatible
query I rowsort label-5079
SELECT + 90 * - 14 * + 6 + NULLIF ( COALESCE ( - 99, CASE 89 WHEN + 19 THEN 24 * - CAST ( NULL AS INTEGER ) / - - 89 WHEN 22 THEN - - 15 * + CASE - - 57 WHEN + MIN ( + 29 ) * - 76 + 8 / - - 63 THEN NULL WHEN 11 / + - 21 / + - 6 - COALESCE ( 33 + 66 * - CASE ( 59 ) WHEN 22 THEN + 80 * + 60 WHEN + 0 + + ( + CASE - COUNT ( * ) WHEN + 52 THEN 23 * + 52 + COUNT ( * ) WHEN 35 / 12 THEN 32 + + MAX ( - CAST ( NULL AS INTEGER ) + + 21 * 90 ) ELSE 25 END ) THEN 11 ELSE NULL END, 63 ) THEN ( - 0 ) END + 31 * ( 97 ) ELSE 88 END * + 43 ), + 70 ) * + 72
----
-14688

query I rowsort
SELECT DISTINCT - 68 * - - ( + 75 ) - - - 26
----
-5126

query I rowsort
SELECT ALL 20 * 2
----
40

query I rowsort
SELECT ALL + ( - 26 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT - COUNT( ALL + 12 ) * - 84 + - ( + 77 ) * + + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-5083
SELECT - COUNT ( ALL + 12 ) * - 84 + - ( + 77 ) * + + COUNT ( * )
----
7

query I rowsort
SELECT 89 * 89 + + + 60 AS col0
----
7981

query I rowsort
SELECT + 72 + + 5 AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT SUM( - + COALESCE ( 15, + 45 * 7 ) )
----
-15

skipif mysql # not compatible
query I rowsort label-5086
SELECT SUM ( - + COALESCE ( 15, + 45 * 7 ) )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT - COUNT( * ) + + 56
----
55

skipif mysql # not compatible
query I rowsort label-5087
SELECT - COUNT ( * ) + + 56
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-5088
SELECT ALL ( COALESCE ( + + 55, - COUNT( 48 ) ) ), + 78 AS col1
----
55
78

skipif mysql # not compatible
query II rowsort label-5088
SELECT ALL ( COALESCE ( + + 55, - COUNT ( 48 ) ) ), + 78 AS col1
----
55
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5089
SELECT ALL COALESCE ( - 52, + + COUNT( * ), - - ( + - 27 ) * + 85 * + + ( - 59 ) + - 93 ) * - CASE + - 20 WHEN + + 18 + + - 29 THEN NULL WHEN - COUNT( * ) + - 24 + - + 29 + + + 7 * 58 + 56 THEN + CAST( NULL AS SIGNED ) * 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5089
SELECT ALL COALESCE ( - 52, + + COUNT ( * ), - - ( + - 27 ) * + 85 * + + ( - 59 ) + - 93 ) * - CASE + - 20 WHEN + + 18 + + - 29 THEN NULL WHEN - COUNT ( * ) + - 24 + - + 29 + + + 7 * 58 + 56 THEN + CAST ( NULL AS INTEGER ) * 58 END
----
NULL

query I rowsort
SELECT ALL - 8 + 48 + - 35
----
5

query I rowsort
SELECT DISTINCT COALESCE ( 83, - - 69, - 63 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT - 41 - MAX( - + 32 )
----
-9

skipif mysql # not compatible
query I rowsort label-5092
SELECT - 41 - MAX ( - + 32 )
----
-9

query II rowsort
SELECT ALL ( - ( 80 ) ) AS col0, 88 AS col2
----
-80
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5094
SELECT - ( - - CAST( 79 AS SIGNED ) ) + + + COALESCE ( 59, + 50 + + + CASE + + 30 WHEN 26 THEN + 71 * 81 WHEN - - 97 * + + 8 THEN NULL END + - + 58 * - - 17 ) AS col1, 69 AS col1
----
-20
69

skipif mysql # not compatible
query II rowsort label-5094
SELECT - ( - - CAST ( 79 AS INTEGER ) ) + + + COALESCE ( 59, + 50 + + + CASE + + 30 WHEN 26 THEN + 71 * 81 WHEN - - 97 * + + 8 THEN NULL END + - + 58 * - - 17 ) AS col1, 69 AS col1
----
-20
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5095
SELECT ALL - + 9 + + + 52 / + - ( ( - 74 ) ) * + 30 * NULLIF ( - - CAST( NULL AS DECIMAL ), - 2 - MIN( DISTINCT - 15 ) ) * - 70 + + - 4 - ( - - 55 ) - - + CAST( NULL AS SIGNED ) + - + 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5095
SELECT ALL - + 9 + + + 52 / + - ( ( - 74 ) ) * + 30 * NULLIF ( - - CAST ( NULL AS REAL ), - 2 - MIN ( DISTINCT - 15 ) ) * - 70 + + - 4 - ( - - 55 ) - - + CAST ( NULL AS INTEGER ) + - + 20 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT + CASE - - 81 WHEN - - 60 THEN - - CASE - COUNT( * ) WHEN + 75 THEN 84 WHEN + 10 / + + 46 THEN NULL END + 91 ELSE NULL END + CASE 35 WHEN + COUNT( * ) THEN NULL WHEN + + 94 * + - MIN( - 34 ) * 10 + 3 + - + 92 + 16 THEN NULL ELSE 98 * - - 89 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5096
SELECT + CASE - - 81 WHEN - - 60 THEN - - CASE - COUNT ( * ) WHEN + 75 THEN 84 WHEN + 10 / + + 46 THEN NULL END + 91 ELSE NULL END + CASE 35 WHEN + COUNT ( * ) THEN NULL WHEN + + 94 * + - MIN ( - 34 ) * 10 + 3 + - + 92 + 16 THEN NULL ELSE 98 * - - 89 END
----
NULL

query I rowsort
SELECT - 96 * - 8 AS col2
----
768

query II rowsort
SELECT - + 56, 67 AS col2
----
-56
67

query II rowsort
SELECT + 44, + 50 * + 10 AS col2
----
44
500

onlyif mysql # aggregate syntax: 
query II rowsort label-5100
SELECT + + 76 + - ( - CASE + 33 WHEN - 40 THEN NULL WHEN + + ( - COUNT( 63 ) ) + 52 THEN 42 * + + ( - 58 ) END ) + - COUNT( * ), 99 AS col2
----
NULL
99

skipif mysql # not compatible
query II rowsort label-5100
SELECT + + 76 + - ( - CASE + 33 WHEN - 40 THEN NULL WHEN + + ( - COUNT ( 63 ) ) + 52 THEN 42 * + + ( - 58 ) END ) + - COUNT ( * ), 99 AS col2
----
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT DISTINCT + + ( + MAX( + 39 ) )
----
39

skipif mysql # not compatible
query I rowsort label-5101
SELECT DISTINCT + + ( + MAX ( + 39 ) )
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-5102
SELECT ALL + 89 AS col2, COUNT( * )
----
89
1

skipif mysql # not compatible
query II rowsort label-5102
SELECT ALL + 89 AS col2, COUNT ( * )
----
89
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT DISTINCT MAX( 37 ) * + 83 + + 57
----
3128

skipif mysql # not compatible
query I rowsort label-5103
SELECT DISTINCT MAX ( 37 ) * + 83 + + 57
----
3128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5104
SELECT - CAST( + + 18 AS SIGNED ) * - 86 AS col0
----
1548

skipif mysql # not compatible
query I rowsort label-5104
SELECT - CAST ( + + 18 AS INTEGER ) * - 86 AS col0
----
1548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5105
SELECT ALL CASE - ( COUNT( * ) ) WHEN + 52 * 54 * + COALESCE ( - 98, 85, 50 + + 28 * - + 91 * + COUNT( * ) - - 81 ) + COUNT( * ) + - CAST( NULL AS SIGNED ) * - ( - + 22 ) * + CAST( NULL AS SIGNED ) + + + 56 + - 79 + - - CASE + 74 WHEN + 93 THEN + 2 * + - MIN( ALL 35 ) / + 52 + + 24 END + COUNT( * ) * COUNT( * ) * 54 + CASE + 88 WHEN 77 * - 67 + 72 THEN NULL ELSE - CASE + COUNT( * ) WHEN 56 + SUM( ALL - 63 ) * - 24 THEN - 87 ELSE NULL END * - 68 END * - COUNT( * ) THEN - ( COUNT( * ) ) + - 4 * - 45 ELSE + COUNT( * ) END * 77
----
77

skipif mysql # not compatible
query I rowsort label-5105
SELECT ALL CASE - ( COUNT ( * ) ) WHEN + 52 * 54 * + COALESCE ( - 98, 85, 50 + + 28 * - + 91 * + COUNT ( * ) - - 81 ) + COUNT ( * ) + - CAST ( NULL AS INTEGER ) * - ( - + 22 ) * + CAST ( NULL AS INTEGER ) + + + 56 + - 79 + - - CASE + 74 WHEN + 93 THEN + 2 * + - MIN ( ALL 35 ) / + 52 + + 24 END + COUNT ( * ) * COUNT ( * ) * 54 + CASE + 88 WHEN 77 * - 67 + 72 THEN NULL ELSE - CASE + COUNT ( * ) WHEN 56 + SUM ( ALL - 63 ) * - 24 THEN - 87 ELSE NULL END * - 68 END * - COUNT ( * ) THEN - ( COUNT ( * ) ) + - 4 * - 45 ELSE + COUNT ( * ) END * 77
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5106
SELECT DISTINCT ( + + CAST( NULL AS SIGNED ) ) * + + 13 * 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5106
SELECT DISTINCT ( + + CAST ( NULL AS INTEGER ) ) * + + 13 * 73 AS col1
----
NULL

query I rowsort
SELECT ALL 25 * - - 40 AS col1
----
1000

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT + 31 * ( + + MIN( ALL - - 12 ) )
----
372

skipif mysql # not compatible
query I rowsort label-5108
SELECT + 31 * ( + + MIN ( ALL - - 12 ) )
----
372

onlyif mysql # DIV for integer division: 
query I rowsort label-5109
SELECT + 48 DIV 60 * + 66 * - ( + 3 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5109
SELECT + 48 / 60 * + 66 * - ( + 3 ) AS col1
----
0

query I rowsort
SELECT DISTINCT + 30 * - 18 + 0 * + 15
----
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT ALL COUNT( * ) * 76 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL COUNT ( * ) * 76 AS col0
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5112
SELECT ALL + CASE + - CAST( - 61 AS SIGNED ) WHEN 18 + + 54 THEN - - 88 / + 93 WHEN 60 THEN - + NULLIF ( 67, + + COUNT( * ) ) * - 48 * - 52 * - 70 * + NULLIF ( - - 90, - + COUNT( ALL + 55 ) ) ELSE NULL END * 63 + - + 57 * 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5112
SELECT ALL + CASE + - CAST ( - 61 AS INTEGER ) WHEN 18 + + 54 THEN - - 88 / + 93 WHEN 60 THEN - + NULLIF ( 67, + + COUNT ( * ) ) * - 48 * - 52 * - 70 * + NULLIF ( - - 90, - + COUNT ( ALL + 55 ) ) ELSE NULL END * 63 + - + 57 * 31 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT + 1 - 45 + 23 * - - 69 * 35 * + CASE + COUNT( * ) WHEN - COUNT( * ) THEN + - 41 + 52 END * + + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-5113
SELECT + 1 - 45 + 23 * - - 69 * 35 * + CASE + COUNT ( * ) WHEN - COUNT ( * ) THEN + - 41 + 52 END * + + 27
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5114
SELECT CAST( 3 AS SIGNED ) * + - 99
----
-297

skipif mysql # not compatible
query I rowsort label-5114
SELECT CAST ( 3 AS INTEGER ) * + - 99
----
-297

query II rowsort
SELECT 99, + 1 col1
----
99
1

query I rowsort
SELECT ALL 76 + - 66 - + - 4 AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT ( + - 77 ) + + 87 + - CASE + 51 WHEN 46 * - 46 * 91 THEN + - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5117
SELECT ( + - 77 ) + + 87 + - CASE + 51 WHEN 46 * - 46 * 91 THEN + - COUNT ( * ) END AS col1
----
NULL

query II rowsort
SELECT 13 AS col2, 52
----
13
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT ALL 53 * COUNT( * ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-5119
SELECT ALL 53 * COUNT ( * ) AS col0
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-5120
SELECT ( 26 ) DIV + 82
----
0

skipif mysql # not compatible
query I rowsort label-5120
SELECT ( 26 ) / + 82
----
0

query I rowsort
SELECT DISTINCT + 40 + - 96 AS col2
----
-56

query II rowsort
SELECT - 40 AS col2, 81 + + 57 AS col0
----
-40
138

query I rowsort
SELECT ALL - - 61 + + 27 + + 23
----
111

query I rowsort
SELECT ALL + 68 + - - 83
----
151

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5125
SELECT ALL 74 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5125
SELECT ALL 74 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT DISTINCT - CASE - SUM( - ( + - 26 ) ) WHEN + - 18 THEN NULL ELSE - ( + ( ( + 45 ) ) ) * 44 + + COUNT( * ) END + 88 + + 93 + ( + COUNT( * ) ) * 95
----
2255

skipif mysql # not compatible
query I rowsort label-5126
SELECT DISTINCT - CASE - SUM ( - ( + - 26 ) ) WHEN + - 18 THEN NULL ELSE - ( + ( ( + 45 ) ) ) * 44 + + COUNT ( * ) END + 88 + + 93 + ( + COUNT ( * ) ) * 95
----
2255

query I rowsort
SELECT DISTINCT + 24 * 79 + - - 14 AS col1
----
1910

query I rowsort
SELECT ALL - 66 - - 92
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-5129
SELECT ALL - 8 * 65 AS col2, 0 - + 59 * COUNT( * ) * COUNT( + 26 )
----
-520
-59

skipif mysql # not compatible
query II rowsort label-5129
SELECT ALL - 8 * 65 AS col2, 0 - + 59 * COUNT ( * ) * COUNT ( + 26 )
----
-520
-59

query II rowsort
SELECT - + 22, 90 + 28 AS col1
----
-22
118

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT + 80 - CASE + 26 WHEN 23 THEN - - COALESCE ( - ( 95 ), 80 ) ELSE NULL END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5131
SELECT + 80 - CASE + 26 WHEN 23 THEN - - COALESCE ( - ( 95 ), 80 ) ELSE NULL END * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5132
SELECT DISTINCT 94 AS col1, - 70 + - CASE - CAST( NULL AS SIGNED ) WHEN + 33 * - ( - - 34 ) / - - 98 + - 40 + + 24 / + 45 / 20 + 18 THEN 74 + COUNT( ALL 35 ) END
----
94
NULL

skipif mysql # not compatible
query II rowsort label-5132
SELECT DISTINCT 94 AS col1, - 70 + - CASE - CAST ( NULL AS INTEGER ) WHEN + 33 * - ( - - 34 ) / - - 98 + - 40 + + 24 / + 45 / 20 + 18 THEN 74 + COUNT ( ALL 35 ) END
----
94
NULL

query I rowsort
SELECT 55 + + + 57 col2
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-5134
SELECT ALL - + 6 DIV - 55
----
0

skipif mysql # not compatible
query I rowsort label-5134
SELECT ALL - + 6 / - 55
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5135
SELECT ALL - + 81 - + - CAST( NULL AS SIGNED ) AS col1, 26 - + 96 * - + 89 * - SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5135
SELECT ALL - + 81 - + - CAST ( NULL AS INTEGER ) AS col1, 26 - + 96 * - + 89 * - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5136
SELECT DISTINCT - 76 AS col0, 88 * - 3 * COUNT( * )
----
-76
-264

skipif mysql # not compatible
query II rowsort label-5136
SELECT DISTINCT - 76 AS col0, 88 * - 3 * COUNT ( * )
----
-76
-264

query I rowsort
SELECT 25 - + - 60 AS col2
----
85

query I rowsort
SELECT - 47 * 70 * + 38 col1
----
-125020

query I rowsort
SELECT ALL 87 * + 58 * - 6
----
-30276

query I rowsort
SELECT - + 67 * - 59 + - 56 AS col0
----
3897

query I rowsort
SELECT ALL + - 2 * - 28
----
56

query II rowsort
SELECT DISTINCT - - 31, 41 * - + 88 * + 6 + + - 92 AS col1
----
31
-21740

query II rowsort
SELECT + + 17 AS col1, + 16 * - 91
----
17
-1456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5144
SELECT - 93 / + 10 - - ( - COUNT( * ) ) * + CASE - 73 WHEN - 57 / 26 THEN CAST( NULL AS SIGNED ) * 51 * 21 + - + 88 + + 62 + + 32 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5144
SELECT - 93 / + 10 - - ( - COUNT ( * ) ) * + CASE - 73 WHEN - 57 / 26 THEN CAST ( NULL AS INTEGER ) * 51 * 21 + - + 88 + + 62 + + 32 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT 89 * - SUM( ALL - - 50 ) + + - 45 AS col1
----
-4495

skipif mysql # not compatible
query I rowsort label-5145
SELECT 89 * - SUM ( ALL - - 50 ) + + - 45 AS col1
----
-4495

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT DISTINCT - MIN( - 73 )
----
73

skipif mysql # not compatible
query I rowsort label-5146
SELECT DISTINCT - MIN ( - 73 )
----
73

query I rowsort
SELECT ALL 19 + 6
----
25

query II rowsort
SELECT ALL 71 + - 20, 92 AS col2
----
51
92

query I rowsort
SELECT ALL - ( 91 ) + - 58 AS col1
----
-149

query I rowsort
SELECT + 48 * - 73 + + 20 + - 30
----
-3514

query II rowsort
SELECT DISTINCT 18 * 17 * + 43 AS col1, + 24 AS col2
----
13158
24

query I rowsort
SELECT ALL 36 + - 26 AS col2
----
10

query I rowsort
SELECT 39 * + 92
----
3588

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT 74 * COUNT( * ) * - + 6
----
-444

skipif mysql # not compatible
query I rowsort label-5154
SELECT 74 * COUNT ( * ) * - + 6
----
-444

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5155
SELECT NULLIF ( + - CAST( - COUNT( * ) AS SIGNED ), - 55 ) * - 53
----
-53

skipif mysql # not compatible
query I rowsort label-5155
SELECT NULLIF ( + - CAST ( - COUNT ( * ) AS INTEGER ), - 55 ) * - 53
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5156
SELECT CAST( AVG ( ALL - - 93 ) AS SIGNED ) + - 90
----
3

skipif mysql # not compatible
query I rowsort label-5156
SELECT CAST ( AVG ( ALL - - 93 ) AS INTEGER ) + - 90
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT ALL COUNT( - + NULLIF ( 72, + 87 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5157
SELECT ALL COUNT ( - + NULLIF ( 72, + 87 ) )
----
1

query I rowsort
SELECT ALL 5 + - + 25
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-5159
SELECT DISTINCT 63 * COUNT( * ) AS col2, COALESCE ( + COUNT( * ), 75 - - - 2 ) - + + 49
----
63
-48

skipif mysql # not compatible
query II rowsort label-5159
SELECT DISTINCT 63 * COUNT ( * ) AS col2, COALESCE ( + COUNT ( * ), 75 - - - 2 ) - + + 49
----
63
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT + 38 * - COUNT( * ) * 48 + + 94
----
-1730

skipif mysql # not compatible
query I rowsort label-5160
SELECT + 38 * - COUNT ( * ) * 48 + + 94
----
-1730

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5161
SELECT DISTINCT + CAST( - 51 AS SIGNED ) - + 59
----
-110

skipif mysql # not compatible
query I rowsort label-5161
SELECT DISTINCT + CAST ( - 51 AS INTEGER ) - + 59
----
-110

query II rowsort
SELECT ALL + COALESCE ( - + 70, - 79 ), 10 AS col0
----
-70
10

query I rowsort
SELECT 91 + - 1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT + MIN( DISTINCT + - 89 ) * - 63 + - ( + + 58 ) AS col1
----
5549

skipif mysql # not compatible
query I rowsort label-5164
SELECT + MIN ( DISTINCT + - 89 ) * - 63 + - ( + + 58 ) AS col1
----
5549

onlyif mysql # aggregate syntax: 
query II rowsort label-5165
SELECT - 78 + 40 AS col0, - CASE - COUNT( * ) WHEN 66 THEN - + COUNT( * ) / - 37 * + 7 END + + 65 + + 79
----
-38
NULL

skipif mysql # not compatible
query II rowsort label-5165
SELECT - 78 + 40 AS col0, - CASE - COUNT ( * ) WHEN 66 THEN - + COUNT ( * ) / - 37 * + 7 END + + 65 + + 79
----
-38
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5166
SELECT CAST( NULL AS DECIMAL ) - - 14 * + + 87 / - CASE - 9 WHEN - 6 - - - 8 THEN NULL ELSE - + 57 - 60 + 43 * 0 / 42 + 93 END * - 53 * + 76 + - + COUNT( * ) + 26 - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5166
SELECT CAST ( NULL AS REAL ) - - 14 * + + 87 / - CASE - 9 WHEN - 6 - - - 8 THEN NULL ELSE - + 57 - 60 + 43 * 0 / 42 + 93 END * - 53 * + 76 + - + COUNT ( * ) + 26 - - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5167
SELECT COALESCE ( CAST( 81 AS SIGNED ), 27 ) * - CAST( - 86 AS SIGNED ) - + - 78
----
7044

skipif mysql # not compatible
query I rowsort label-5167
SELECT COALESCE ( CAST ( 81 AS INTEGER ), 27 ) * - CAST ( - 86 AS INTEGER ) - + - 78
----
7044

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5168
SELECT ALL COALESCE ( - + COALESCE ( - COUNT( * ), + COUNT( * ) + + + 45 / 31 * + 67 * 11, 9 - + 24 ), + + COUNT( * ) ) * + 20 - - CAST( NULL AS SIGNED ) * 45
----
NULL

skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL COALESCE ( - + COALESCE ( - COUNT ( * ), + COUNT ( * ) + + + 45 / 31 * + 67 * 11, 9 - + 24 ), + + COUNT ( * ) ) * + 20 - - CAST ( NULL AS INTEGER ) * 45
----
NULL

query I rowsort
SELECT - 5 * + + 1 AS col1
----
-5

query I rowsort
SELECT 47 + 72 AS col0
----
119

query I rowsort
SELECT DISTINCT - 63 * NULLIF ( - NULLIF ( 48, - 54 ), - 4 - + 71 + - 98 ) AS col0
----
3024

query I rowsort
SELECT DISTINCT 92 * - 53 + + - 60 AS col1
----
-4936

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5173
SELECT 9 DIV 82 + - COUNT( * ) + - 34 * + - 94 + 7 + ( - - 57 ) col0
----
3259

skipif mysql # not compatible
query I rowsort label-5173
SELECT 9 / 82 + - COUNT ( * ) + - 34 * + - 94 + 7 + ( - - 57 ) col0
----
3259

query I rowsort
SELECT 39 + - - 78 col1
----
117

query I rowsort
SELECT ALL - 19 * + + 52 * 77 + + + 44 * + 7 * 90 * + 91 AS col0
----
2446444

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT SUM( DISTINCT ( - 15 ) ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-5176
SELECT SUM ( DISTINCT ( - 15 ) ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT ALL - COUNT( - + 62 ) + - 97
----
-98

skipif mysql # not compatible
query I rowsort label-5177
SELECT ALL - COUNT ( - + 62 ) + - 97
----
-98

query I rowsort
SELECT 19 * 13 * 51 + - + 88
----
12509

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT - MIN( ALL + 67 ) + - + ( 99 ) - - 74
----
-92

skipif mysql # not compatible
query I rowsort label-5179
SELECT - MIN ( ALL + 67 ) + - + ( 99 ) - - 74
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5180
SELECT - 26 DIV - - COALESCE ( - 91, + 55, + 51 ) + - COUNT( * ) * - 22 * 9 + MIN( ALL ( + 45 ) ) + + 71 * + CASE 27 WHEN - + 63 THEN NULL WHEN - 57 + + + 65 THEN NULL ELSE + 52 END
----
3935

skipif mysql # not compatible
query I rowsort label-5180
SELECT - 26 / - - COALESCE ( - 91, + 55, + 51 ) + - COUNT ( * ) * - 22 * 9 + MIN ( ALL ( + 45 ) ) + + 71 * + CASE 27 WHEN - + 63 THEN NULL WHEN - 57 + + + 65 THEN NULL ELSE + 52 END
----
3935

onlyif mysql # DIV for integer division: 
query I rowsort label-5181
SELECT ALL - 30 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-5181
SELECT ALL - 30 / 99
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5182
SELECT 23 DIV 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5182
SELECT 23 / 69 AS col0
----
0

query I rowsort
SELECT ALL - 47 * - 76 + + + 74 + - 86
----
3560

query II rowsort
SELECT COALESCE ( 19, - - 39 ) AS col1, 71
----
19
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5185
SELECT DISTINCT 82 * - - 94 * - 44 + 15 + - COUNT( * ) DIV + 57 * + 74 AS col1
----
-339137

skipif mysql # not compatible
query I rowsort label-5185
SELECT DISTINCT 82 * - - 94 * - 44 + 15 + - COUNT ( * ) / + 57 * + 74 AS col1
----
-339137

onlyif mysql # DIV for integer division: 
query I rowsort label-5186
SELECT ALL + 82 * - 8 + - 38 + 74 DIV + 98
----
-694

skipif mysql # not compatible
query I rowsort label-5186
SELECT ALL + 82 * - 8 + - 38 + 74 / + 98
----
-694

onlyif mysql # aggregate syntax: 
query II rowsort label-5187
SELECT COUNT( * ) AS col2, 69 AS col2
----
1
69

skipif mysql # not compatible
query II rowsort label-5187
SELECT COUNT ( * ) AS col2, 69 AS col2
----
1
69

query I rowsort
SELECT 22 * + 42 - 32 * + 47 col2
----
-580

query I rowsort
SELECT ALL - 49 * - COALESCE ( + 80, + 83 )
----
3920

query I rowsort
SELECT - 6 * - 30 - 53 + - NULLIF ( - + 68, + 60 ) + 38
----
233

query I rowsort
SELECT - 18 + 13 AS col0
----
-5

query I rowsort
SELECT + 24 * - 91
----
-2184

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5193
SELECT DISTINCT + CAST( NULL AS DECIMAL ), ( + + 53 ) + - COUNT( * ) AS col2
----
NULL
52

skipif mysql # not compatible
query II rowsort label-5193
SELECT DISTINCT + CAST ( NULL AS REAL ), ( + + 53 ) + - COUNT ( * ) AS col2
----
NULL
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT ALL - COUNT( * ) * 35 - 3 - 36 col0
----
-74

skipif mysql # not compatible
query I rowsort label-5194
SELECT ALL - COUNT ( * ) * 35 - 3 - 36 col0
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5195
SELECT ALL CAST( NULL AS SIGNED ) * - NULLIF ( - 89, + + 10 ) - + 58 + + - 66 * + - ( COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5195
SELECT ALL CAST ( NULL AS INTEGER ) * - NULLIF ( - 89, + + 10 ) - + 58 + + - 66 * + - ( COUNT ( * ) )
----
NULL

query I rowsort
SELECT + 36 * + 18 * 41 - + + 88 AS col2
----
26480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5197
SELECT - - MAX( 10 ) DIV 1 AS col1, + AVG ( ALL - - CAST( NULL AS SIGNED ) )
----
10
NULL

skipif mysql # not compatible
query II rowsort label-5197
SELECT - - MAX ( 10 ) / 1 AS col1, + AVG ( ALL - - CAST ( NULL AS INTEGER ) )
----
10
NULL

query I rowsort
SELECT + 22 * - + 79 * 17 + + 92 + 56 AS col1
----
-29398

query II rowsort
SELECT - 66 + 66 + + 86 AS col2, 6 - 84 col1
----
86
-78

query I rowsort
SELECT DISTINCT - 83 * + 69 AS col0
----
-5727

query II rowsort
SELECT DISTINCT - 13 col0, + NULLIF ( 80, + 21 + - + 75 * - + 5 ) + - - 67
----
-13
147

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT DISTINCT 24 * + + 22 + + 77 + - COUNT( * ) - - 69 * - - 88
----
6676

skipif mysql # not compatible
query I rowsort label-5202
SELECT DISTINCT 24 * + + 22 + + 77 + - COUNT ( * ) - - 69 * - - 88
----
6676

onlyif mysql # aggregate syntax: 
query II rowsort label-5203
SELECT DISTINCT - - MIN( DISTINCT 94 ) * CASE 15 WHEN - 70 + - CASE WHEN NOT 12 = COUNT( * ) + - + 8 THEN - 67 END THEN + - 16 * + 70 ELSE NULL END AS col2, + 85 * 90
----
NULL
7650

skipif mysql # not compatible
query II rowsort label-5203
SELECT DISTINCT - - MIN ( DISTINCT 94 ) * CASE 15 WHEN - 70 + - CASE WHEN NOT 12 = COUNT ( * ) + - + 8 THEN - 67 END THEN + - 16 * + 70 ELSE NULL END AS col2, + 85 * 90
----
NULL
7650

onlyif mysql # aggregate syntax: 
query II rowsort label-5204
SELECT DISTINCT + 90 col1, + 18 * - COUNT( * ) + - + 71
----
90
-89

skipif mysql # not compatible
query II rowsort label-5204
SELECT DISTINCT + 90 col1, + 18 * - COUNT ( * ) + - + 71
----
90
-89

query II rowsort
SELECT DISTINCT - 34, 73 AS col2
----
-34
73

query II rowsort
SELECT - + 77, 58 AS col2
----
-77
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5207
SELECT CAST( - 13 AS SIGNED ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-5207
SELECT CAST ( - 13 AS INTEGER ) AS col2
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5208
SELECT ALL + CAST( + - 73 AS SIGNED )
----
-73

skipif mysql # not compatible
query I rowsort label-5208
SELECT ALL + CAST ( + - 73 AS INTEGER )
----
-73

query II rowsort
SELECT - - 84 * - 77 * + - 65 AS col0, 20 * 26 + + 22 AS col2
----
420420
542

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT + 39 * - - COUNT( * ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-5210
SELECT + 39 * - - COUNT ( * ) AS col1
----
39

query I rowsort
SELECT + 78 + - ( + - 98 ) col0
----
176

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5212
SELECT + CAST( - 4 AS SIGNED ) + 60 col0, 70 * + CAST( + 47 AS SIGNED )
----
56
3290

skipif mysql # not compatible
query II rowsort label-5212
SELECT + CAST ( - 4 AS INTEGER ) + 60 col0, 70 * + CAST ( + 47 AS INTEGER )
----
56
3290

query I rowsort
SELECT ALL + 7 + + + 12 AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT ALL COUNT( - 15 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5214
SELECT ALL COUNT ( - 15 ) AS col2
----
1

query II rowsort
SELECT - ( + - 79 ) AS col0, ( ( + ( 87 ) ) ) AS col2
----
79
87

query III rowsort
SELECT ALL NULLIF ( + 49, + + 27 ) + + + 96, + 37 AS col1, 75 AS col1
----
145
37
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT DISTINCT 73 + COUNT( * ) + 57 AS col2
----
131

skipif mysql # not compatible
query I rowsort label-5217
SELECT DISTINCT 73 + COUNT ( * ) + 57 AS col2
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT COUNT( * ) * - + 82 * + ( + 9 ) + 4 AS col0
----
-734

skipif mysql # not compatible
query I rowsort label-5218
SELECT COUNT ( * ) * - + 82 * + ( + 9 ) + 4 AS col0
----
-734

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT + NULLIF ( + 30, - ( + COUNT( * ) ) * + + 95 )
----
30

skipif mysql # not compatible
query I rowsort label-5219
SELECT + NULLIF ( + 30, - ( + COUNT ( * ) ) * + + 95 )
----
30

onlyif mysql # DIV for integer division: 
query II rowsort label-5220
SELECT ALL + 88 DIV - 46 + 7 - + 15 * + + ( + 64 ) * - 12 * ( 49 ) AS col1, 27 col2
----
564486
27

skipif mysql # not compatible
query II rowsort label-5220
SELECT ALL + 88 / - 46 + 7 - + 15 * + + ( + 64 ) * - 12 * ( 49 ) AS col1, 27 col2
----
564486
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5221
SELECT - ( - ( - CAST( - 49 AS SIGNED ) ) ) / + - 89 * 77 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5221
SELECT - ( - ( - CAST ( - 49 AS INTEGER ) ) ) / + - 89 * 77 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5222
SELECT MIN( ALL - 80 ) DIV 16 - 48 - ( 13 )
----
-66

skipif mysql # not compatible
query I rowsort label-5222
SELECT MIN ( ALL - 80 ) / 16 - 48 - ( 13 )
----
-66

query I rowsort
SELECT - 40 * 56 * 35 * + - 80 + + + 36 * - - 3 AS col2
----
6272108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5224
SELECT - ( - 35 ) - - 42 * CAST( NULL AS DECIMAL ) * + 99 - - CASE + AVG ( ALL - - ( 4 ) ) WHEN + 62 * + 89 + + 4 * + 90 + 15 THEN - - ( + + COUNT( * ) ) / + ( - AVG ( DISTINCT + 78 ) ) WHEN SUM( CAST( NULL AS SIGNED ) ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5224
SELECT - ( - 35 ) - - 42 * CAST ( NULL AS REAL ) * + 99 - - CASE + AVG ( ALL - - ( 4 ) ) WHEN + 62 * + 89 + + 4 * + 90 + 15 THEN - - ( + + COUNT ( * ) ) / + ( - AVG ( DISTINCT + 78 ) ) WHEN SUM ( CAST ( NULL AS INTEGER ) ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT ALL 65 * - 86 - COUNT( * ) - - - MAX( - ( 71 ) ) * + ( + 20 ) + COUNT( * ) AS col0
----
-4170

skipif mysql # not compatible
query I rowsort label-5225
SELECT ALL 65 * - 86 - COUNT ( * ) - - - MAX ( - ( 71 ) ) * + ( + 20 ) + COUNT ( * ) AS col0
----
-4170

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT + COUNT( * ) * + - 93 AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-5226
SELECT + COUNT ( * ) * + - 93 AS col2
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-5227
SELECT DISTINCT + 81 DIV 39 col0
----
2

skipif mysql # not compatible
query I rowsort label-5227
SELECT DISTINCT + 81 / 39 col0
----
2

query I rowsort
SELECT DISTINCT + 78 * + 83 - - 32 * - - 53
----
8170

query I rowsort
SELECT - ( + + 57 ) + + + 78
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT + 76 * - + NULLIF ( + + 72, - MIN( - 89 ) ) AS col0
----
-5472

skipif mysql # not compatible
query I rowsort label-5230
SELECT + 76 * - + NULLIF ( + + 72, - MIN ( - 89 ) ) AS col0
----
-5472

query II rowsort
SELECT NULLIF ( - 46, COALESCE ( 31, - 28 * - - 23, - 47 ) * - 29 - 68 ) AS col0, - COALESCE ( 43, - 77 + + 41 ) AS col1
----
-46
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5232
SELECT ALL - 19 * + COUNT( * ) * - CAST( + 39 AS SIGNED ), - ( 11 ) + + 61 - - - COUNT( * ) AS col0
----
741
49

skipif mysql # not compatible
query II rowsort label-5232
SELECT ALL - 19 * + COUNT ( * ) * - CAST ( + 39 AS INTEGER ), - ( 11 ) + + 61 - - - COUNT ( * ) AS col0
----
741
49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5233
SELECT + - ( + CASE 85 WHEN - 30 * + 26 THEN 36 ELSE NULL END ) * + MAX( ALL + ( + - 5 ) ) + CASE + - COUNT( * ) WHEN + 1 * + + ( - + 69 ) + + 94 - 68 * + 54 THEN - + 43 * 49 + + - 70 WHEN + 36 THEN NULL ELSE NULL END + MAX( DISTINCT CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5233
SELECT + - ( + CASE 85 WHEN - 30 * + 26 THEN 36 ELSE NULL END ) * + MAX ( ALL + ( + - 5 ) ) + CASE + - COUNT ( * ) WHEN + 1 * + + ( - + 69 ) + + 94 - 68 * + 54 THEN - + 43 * 49 + + - 70 WHEN + 36 THEN NULL ELSE NULL END + MAX ( DISTINCT CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT ALL - ( + 70 ) * - - 7
----
-490

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT - - 23 + + CASE - 58 WHEN + 46 THEN 57 * + 77 + MIN( - - 43 ) END / + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-5235
SELECT - - 23 + + CASE - 58 WHEN + 46 THEN 57 * + 77 + MIN ( - - 43 ) END / + 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT + - CASE + COUNT( * ) WHEN 72 + + + 95 THEN NULL WHEN + COUNT( * ) THEN - 55 END AS col2
----
55

skipif mysql # not compatible
query I rowsort label-5236
SELECT + - CASE + COUNT ( * ) WHEN 72 + + + 95 THEN NULL WHEN + COUNT ( * ) THEN - 55 END AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT ALL + NULLIF ( - 34, + CASE + COUNT( * ) WHEN + - 74 + + 43 / - 78 THEN + AVG ( - - 70 ) ELSE - 8 - + - 48 END ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-5237
SELECT ALL + NULLIF ( - 34, + CASE + COUNT ( * ) WHEN + - 74 + + 43 / - 78 THEN + AVG ( - - 70 ) ELSE - 8 - + - 48 END ) AS col2
----
-34

query I rowsort
SELECT ALL + 85 * - 70 - - 32 col2
----
-5918

onlyif mysql # aggregate syntax: 
query II rowsort label-5239
SELECT - 96 + - + MIN( - - 24 ) * + + 41 AS col1, - COALESCE ( + 13, COUNT( DISTINCT 64 ) ) + - COUNT( DISTINCT 29 ) AS col1
----
-1080
-14

skipif mysql # not compatible
query II rowsort label-5239
SELECT - 96 + - + MIN ( - - 24 ) * + + 41 AS col1, - COALESCE ( + 13, COUNT ( DISTINCT 64 ) ) + - COUNT ( DISTINCT 29 ) AS col1
----
-1080
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5240
SELECT DISTINCT 45 * + - CAST( NULL AS SIGNED ) * - 10 / + 84 + + MAX( + 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5240
SELECT DISTINCT 45 * + - CAST ( NULL AS INTEGER ) * - 10 / + 84 + + MAX ( + 22 )
----
NULL

query I rowsort
SELECT + 23 + - 31 AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT - + SUM( + 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-5242
SELECT - + SUM ( + 49 )
----
-49

query I rowsort
SELECT DISTINCT + ( + 2 ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5244
SELECT ALL + 52 * - COUNT( * ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-5244
SELECT ALL + 52 * - COUNT ( * ) AS col0
----
-52

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5245
SELECT - + 47 / + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5245
SELECT - + 47 / + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT + - 41 + + + COUNT( * ) + - + 97 * + 95 * ( COUNT( * ) )
----
-9255

skipif mysql # not compatible
query I rowsort label-5246
SELECT + - 41 + + + COUNT ( * ) + - + 97 * + 95 * ( COUNT ( * ) )
----
-9255

query I rowsort
SELECT ALL - + NULLIF ( + + 81, + 3 ) + - 87 * + 63
----
-5562

query I rowsort
SELECT + ( 72 ) + 77 AS col2
----
149

query I rowsort
SELECT NULLIF ( - - 79, 37 ) + + 38 AS col0
----
117

query II rowsort
SELECT DISTINCT 95 AS col2, ( 54 ) + 1 * - 69 AS col1
----
95
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5251
SELECT ALL 60 + CAST( NULL AS SIGNED ) * - NULLIF ( - + 95, + 26 * 25 + - 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5251
SELECT ALL 60 + CAST ( NULL AS INTEGER ) * - NULLIF ( - + 95, + 26 * 25 + - 57 )
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( + 63, - 18 + - 79 * + 34 ) - 71
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-5253
SELECT - 55 AS col1, COUNT( * ) * COALESCE ( + + 50, - + 38, - 83 + - 74 )
----
-55
50

skipif mysql # not compatible
query II rowsort label-5253
SELECT - 55 AS col1, COUNT ( * ) * COALESCE ( + + 50, - + 38, - 83 + - 74 )
----
-55
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT COUNT( * ) * 45 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-5254
SELECT COUNT ( * ) * 45 AS col1
----
45

query I rowsort
SELECT DISTINCT 89 * + 40 * + 64
----
227840

query I rowsort
SELECT ALL 6 * + 42 * + 99 * + 18
----
449064

onlyif mysql # DIV for integer division: 
query I rowsort label-5257
SELECT ALL 18 DIV - 54 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5257
SELECT ALL 18 / - 54 AS col0
----
0

query II rowsort
SELECT ALL - 38 AS col2, + 78
----
-38
78

query I rowsort
SELECT DISTINCT 53 * CASE - 55 WHEN ( 90 ) THEN NULL ELSE 7 END
----
371

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT CASE COUNT( * ) WHEN 38 * - 53 - ( + MIN( DISTINCT + 19 ) ) / + - AVG ( DISTINCT 37 ) THEN + + 80 + + + 76 END / CASE + 40 WHEN - + 50 THEN NULL WHEN 64 THEN 42 + 98 END / + + 71 + + + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-5260
SELECT CASE COUNT ( * ) WHEN 38 * - 53 - ( + MIN ( DISTINCT + 19 ) ) / + - AVG ( DISTINCT 37 ) THEN + + 80 + + + 76 END / CASE + 40 WHEN - + 50 THEN NULL WHEN 64 THEN 42 + 98 END / + + 71 + + + 22
----
NULL

query I rowsort
SELECT DISTINCT 88 * + 64 AS col0
----
5632

query II rowsort
SELECT 6, 1 * + + 12 AS col1
----
6
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT SUM( ALL 69 )
----
69

skipif mysql # not compatible
query I rowsort label-5263
SELECT SUM ( ALL 69 )
----
69

query II rowsort
SELECT ALL - 35, + 98 AS col0
----
-35
98

query I rowsort
SELECT - 57 * + 9 AS col2
----
-513

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT DISTINCT - - ( 46 ) + + - COUNT( * ) + + 36 * + 42 + - 81
----
1476

skipif mysql # not compatible
query I rowsort label-5266
SELECT DISTINCT - - ( 46 ) + + - COUNT ( * ) + + 36 * + 42 + - 81
----
1476

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT ALL + - 72 * + MAX( DISTINCT - 10 ) * + 40 * - - 76 AS col2
----
2188800

skipif mysql # not compatible
query I rowsort label-5267
SELECT ALL + - 72 * + MAX ( DISTINCT - 10 ) * + 40 * - - 76 AS col2
----
2188800

onlyif mysql # DIV for integer division: 
query I rowsort label-5268
SELECT ALL + 34 + - 97 DIV 40
----
32

skipif mysql # not compatible
query I rowsort label-5268
SELECT ALL + 34 + - 97 / 40
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT + NULLIF ( + + 37, - - 68 + - + COUNT( * ) ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-5269
SELECT + NULLIF ( + + 37, - - 68 + - + COUNT ( * ) ) AS col0
----
37

query II rowsort
SELECT - 70 AS col2, + 0 col2
----
-70
0

query I rowsort
SELECT 25 * + 84
----
2100

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT DISTINCT + - 18 + COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-5272
SELECT DISTINCT + - 18 + COUNT ( * )
----
-17

query I rowsort
SELECT ALL + 12 + + - 19
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT ALL - 32 + COUNT( 87 )
----
-31

skipif mysql # not compatible
query I rowsort label-5274
SELECT ALL - 32 + COUNT ( 87 )
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-5275
SELECT COUNT( * ) AS col0, 42 * - 34 - 64
----
1
-1492

skipif mysql # not compatible
query II rowsort label-5275
SELECT COUNT ( * ) AS col0, 42 * - 34 - 64
----
1
-1492

query I rowsort
SELECT DISTINCT + + 17 + 91
----
108

query I rowsort
SELECT - 14 * - 60 AS col0
----
840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5278
SELECT ALL + CAST( NULL AS SIGNED ) - + + AVG ( DISTINCT - - 75 ) - 50 / + 49 + ( - 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5278
SELECT ALL + CAST ( NULL AS INTEGER ) - + + AVG ( DISTINCT - - 75 ) - 50 / + 49 + ( - 29 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5279
SELECT 20 + - 60 DIV + 5
----
8

skipif mysql # not compatible
query I rowsort label-5279
SELECT 20 + - 60 / + 5
----
8

query II rowsort
SELECT - 44 col1, + 98
----
-44
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT 29 + - - COUNT( * ) + - 93
----
-63

skipif mysql # not compatible
query I rowsort label-5281
SELECT 29 + - - COUNT ( * ) + - 93
----
-63

query II rowsort
SELECT 32 * + 16 AS col0, 34 * - 44 AS col2
----
512
-1496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5283
SELECT CASE 80 WHEN 43 THEN + CAST( ( - NULLIF ( + + 24, - - MIN( ALL + 59 ) - - + 11 ) ) AS SIGNED ) END * + 95 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5283
SELECT CASE 80 WHEN 43 THEN + CAST ( ( - NULLIF ( + + 24, - - MIN ( ALL + 59 ) - - + 11 ) ) AS INTEGER ) END * + 95 AS col2
----
NULL

query I rowsort
SELECT 39 + + + NULLIF ( 91, + 13 / + 50 )
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5285
SELECT DISTINCT - CAST( NULL AS SIGNED ) - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-5285
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - 37
----
NULL

query I rowsort
SELECT ALL - 91 * - 89
----
8099

query I rowsort
SELECT ALL + 36 * 34 col2
----
1224

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT COUNT( ALL + 42 ) + - - 45 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-5288
SELECT COUNT ( ALL + 42 ) + - - 45 AS col2
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5289
SELECT ALL - 45, MIN( ALL - + 82 ) DIV + - 26 col0
----
-45
3

skipif mysql # not compatible
query II rowsort label-5289
SELECT ALL - 45, MIN ( ALL - + 82 ) / + - 26 col0
----
-45
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5290
SELECT ALL - 48 AS col2, - CASE 35 WHEN + 69 * 91 * - - 56 - - + 96 / + 21 THEN NULL WHEN 1 THEN + + 5 - - 42 - COUNT( * ) * 63 END
----
-48
NULL

skipif mysql # not compatible
query II rowsort label-5290
SELECT ALL - 48 AS col2, - CASE 35 WHEN + 69 * 91 * - - 56 - - + 96 / + 21 THEN NULL WHEN 1 THEN + + 5 - - 42 - COUNT ( * ) * 63 END
----
-48
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5291
SELECT COALESCE ( + - 43, + 54 ) * + 86 + + NULLIF ( + - 4, - 28 ) * 62 + + + 86 + - SUM( - 40 ) + + COUNT( * ) DIV + - 82 * + + ( - 75 ) AS col1
----
-3820

skipif mysql # not compatible
query I rowsort label-5291
SELECT COALESCE ( + - 43, + 54 ) * + 86 + + NULLIF ( + - 4, - 28 ) * 62 + + + 86 + - SUM ( - 40 ) + + COUNT ( * ) / + - 82 * + + ( - 75 ) AS col1
----
-3820

onlyif mysql # DIV for integer division: 
query I rowsort label-5292
SELECT + 56 DIV + 3 + + - 89 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-5292
SELECT + 56 / + 3 + + - 89 AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT MIN( DISTINCT - - 63 ) + + 76 AS col0
----
139

skipif mysql # not compatible
query I rowsort label-5293
SELECT MIN ( DISTINCT - - 63 ) + + 76 AS col0
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT + COUNT( ALL 39 )
----
1

skipif mysql # not compatible
query I rowsort label-5294
SELECT + COUNT ( ALL 39 )
----
1

query II rowsort
SELECT ALL - 35 AS col2, 57 AS col0
----
-35
57

query I rowsort
SELECT 73 + - - 56 AS col2
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5297
SELECT 64 DIV CAST( - COUNT( * ) AS SIGNED ) DIV COUNT( DISTINCT 29 ) + + + 39 - - 77 + - + 22 DIV + + NULLIF ( - ( + 57 ), + COUNT( * ) )
----
52

skipif mysql # not compatible
query I rowsort label-5297
SELECT 64 / CAST ( - COUNT ( * ) AS INTEGER ) / COUNT ( DISTINCT 29 ) + + + 39 - - 77 + - + 22 / + + NULLIF ( - ( + 57 ), + COUNT ( * ) )
----
52

query I rowsort
SELECT + 93 * + 9 + + - 33
----
804

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5299
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2, 49 * + 93
----
NULL
4557

skipif mysql # not compatible
query II rowsort label-5299
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, 49 * + 93
----
NULL
4557

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5300
SELECT DISTINCT - ( - + 57 ) + - + COUNT( ALL - - 23 ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5300
SELECT DISTINCT - ( - + 57 ) + - + COUNT ( ALL - - 23 ) + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 79 * + 11
----
869

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5302
SELECT ALL CAST( NULL AS SIGNED ) + - + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-5302
SELECT ALL CAST ( NULL AS INTEGER ) + - + 42
----
NULL

query I rowsort
SELECT 83 + 63 * + + 67
----
4304

query I rowsort
SELECT DISTINCT 43 + - + 5 * - + 91
----
498

query I rowsort
SELECT DISTINCT - 35 + + - 6 col0
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5306
SELECT ALL + MIN( - - ( - - 75 ) ) + + 95 AS col1, - 63 DIV 86 * + - COUNT( * ) * - 18 + + 92
----
170
92

skipif mysql # not compatible
query II rowsort label-5306
SELECT ALL + MIN ( - - ( - - 75 ) ) + + 95 AS col1, - 63 / 86 * + - COUNT ( * ) * - 18 + + 92
----
170
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT + + NULLIF ( + ( 88 ), SUM( 97 ) * - 89 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-5307
SELECT + + NULLIF ( + ( 88 ), SUM ( 97 ) * - 89 ) AS col2
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5308
SELECT CAST( NULL AS SIGNED ) * ( + + 79 ) + + 55 + 67 + - + 73 + + 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5308
SELECT CAST ( NULL AS INTEGER ) * ( + + 79 ) + + 55 + 67 + - + 73 + + 11 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5309
SELECT ALL - 2 + 55 * - NULLIF ( + ( + - ( + 91 ) ), 84 ) + 44 + - 6 + 28 * 64 + + 42 DIV - 27
----
6832

skipif mysql # not compatible
query I rowsort label-5309
SELECT ALL - 2 + 55 * - NULLIF ( + ( + - ( + 91 ) ), 84 ) + 44 + - 6 + 28 * 64 + + 42 / - 27
----
6832

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5310
SELECT 62 * 7 + 67 + + CASE + + COALESCE ( + + 15, - 60 ) WHEN - COALESCE ( - 29, + CASE WHEN NOT + 90 IS NULL THEN - MAX( ALL - 53 ) + 57 - - - 1 + + - 82 * + 36 * - - CAST( NULL AS SIGNED ) END, - 13 ) + - COUNT( * ) * + 43 THEN + 57 + - + 83 + - 96 END * + 3 / + 93 * - COALESCE ( - 87, + COUNT( * ) * + COUNT( DISTINCT + 1 ) / COUNT( * ) + + 27 * + 4 - - 9 ) * 98 + + 49 / 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5310
SELECT 62 * 7 + 67 + + CASE + + COALESCE ( + + 15, - 60 ) WHEN - COALESCE ( - 29, + CASE WHEN NOT + 90 IS NULL THEN - MAX ( ALL - 53 ) + 57 - - - 1 + + - 82 * + 36 * - - CAST ( NULL AS INTEGER ) END, - 13 ) + - COUNT ( * ) * + 43 THEN + 57 + - + 83 + - 96 END * + 3 / + 93 * - COALESCE ( - 87, + COUNT ( * ) * + COUNT ( DISTINCT + 1 ) / COUNT ( * ) + + 27 * + 4 - - 9 ) * 98 + + 49 / 29 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT + COUNT( * ) * + 54 + - 96 * - - 40
----
-3786

skipif mysql # not compatible
query I rowsort label-5311
SELECT + COUNT ( * ) * + 54 + - 96 * - - 40
----
-3786

query I rowsort
SELECT 39 + + 14
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-5313
SELECT + 60 AS col1, - NULLIF ( + NULLIF ( - 78, - 43 ), - COUNT( * ) ) AS col0
----
60
78

skipif mysql # not compatible
query II rowsort label-5313
SELECT + 60 AS col1, - NULLIF ( + NULLIF ( - 78, - 43 ), - COUNT ( * ) ) AS col0
----
60
78

query I rowsort
SELECT ALL + + 65 + 11 + - 52 * + - 91 col1
----
4808

onlyif mysql # aggregate syntax: 
query II rowsort label-5315
SELECT - - 32 AS col1, COUNT( * ) AS col2
----
32
1

skipif mysql # not compatible
query II rowsort label-5315
SELECT - - 32 AS col1, COUNT ( * ) AS col2
----
32
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5316
SELECT DISTINCT COUNT( DISTINCT 42 ) DIV - + 42 * + + COALESCE ( - 62, - COUNT( * ), + 95 )
----
0

skipif mysql # not compatible
query I rowsort label-5316
SELECT DISTINCT COUNT ( DISTINCT 42 ) / - + 42 * + + COALESCE ( - 62, - COUNT ( * ), + 95 )
----
0

query II rowsort
SELECT ALL - + 52 * 13 col1, 9 col0
----
-676
9

onlyif mysql # DIV for integer division: 
query II rowsort label-5318
SELECT ALL 22 AS col2, 60 * 9 + 33 DIV 35
----
22
540

skipif mysql # not compatible
query II rowsort label-5318
SELECT ALL 22 AS col2, 60 * 9 + 33 / 35
----
22
540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5319
SELECT - - 89 + - 35 - + - CASE 45 WHEN + + COUNT( DISTINCT - 14 ) / + - 34 * + - 98 * - + 77 + + 78 / + + SUM( DISTINCT 72 ) + + CAST( + - 48 AS SIGNED ) THEN + - CAST( - CAST( - 67 AS SIGNED ) AS SIGNED ) END + 18 * + 19 * + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-5319
SELECT - - 89 + - 35 - + - CASE 45 WHEN + + COUNT ( DISTINCT - 14 ) / + - 34 * + - 98 * - + 77 + + 78 / + + SUM ( DISTINCT 72 ) + + CAST ( + - 48 AS INTEGER ) THEN + - CAST ( - CAST ( - 67 AS INTEGER ) AS INTEGER ) END + 18 * + 19 * + 5
----
NULL

query I rowsort
SELECT DISTINCT + 22 * 65 AS col0
----
1430

onlyif mysql # aggregate syntax: 
query II rowsort label-5321
SELECT - COUNT( * ) + + 42, - 28 AS col2
----
41
-28

skipif mysql # not compatible
query II rowsort label-5321
SELECT - COUNT ( * ) + + 42, - 28 AS col2
----
41
-28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5322
SELECT - CAST( NULL AS SIGNED ) * 14 AS col2, - 23 * 77 * - + 35 AS col1
----
NULL
61985

skipif mysql # not compatible
query II rowsort label-5322
SELECT - CAST ( NULL AS INTEGER ) * 14 AS col2, - 23 * 77 * - + 35 AS col1
----
NULL
61985

query I rowsort
SELECT ALL + 4 * + 44 col0
----
176

query II rowsort
SELECT DISTINCT 42 * 63, + 35 AS col1
----
2646
35

query I rowsort
SELECT DISTINCT - 77 - - - ( - 51 ) - 66 + 63 AS col0
----
-29

query II rowsort
SELECT - 71 * + 45, 75 AS col1
----
-3195
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5327
SELECT ALL ( + CAST( - COUNT( + + 28 ) AS SIGNED ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5327
SELECT ALL ( + CAST ( - COUNT ( + + 28 ) AS INTEGER ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT - COUNT( + 30 ) - - 80 * 10
----
799

skipif mysql # not compatible
query I rowsort label-5328
SELECT - COUNT ( + 30 ) - - 80 * 10
----
799

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5329
SELECT - 36 * CAST( - 56 AS SIGNED )
----
2016

skipif mysql # not compatible
query I rowsort label-5329
SELECT - 36 * CAST ( - 56 AS INTEGER )
----
2016

query I rowsort
SELECT - 41 * 79 AS col0
----
-3239

query I rowsort
SELECT ALL + 5 + - 64 AS col0
----
-59

query I rowsort
SELECT - 5 * + 97
----
-485

query I rowsort
SELECT ALL - 33 * + 96
----
-3168

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT DISTINCT - 92 * + COUNT( * ) + 27 + - + 34 AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-5334
SELECT DISTINCT - 92 * + COUNT ( * ) + 27 + - + 34 AS col2
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5335
SELECT ALL + COUNT( ALL + + 84 ) DIV 47 * - 96 + + + 57 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-5335
SELECT ALL + COUNT ( ALL + + 84 ) / 47 * - 96 + + + 57 AS col0
----
57

query I rowsort
SELECT - + NULLIF ( 75, - - 19 + - 58 ) + + 48 + - 24 AS col2
----
-51

query I rowsort
SELECT + - ( + - 87 ) * + 16
----
1392

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT 51 * + 18 + - COUNT( * ) AS col1
----
917

skipif mysql # not compatible
query I rowsort label-5338
SELECT 51 * + 18 + - COUNT ( * ) AS col1
----
917

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5339
SELECT - 47 + - + 0 + - ( 70 ) + COUNT( * ) / 53 * - CAST( NULL AS DECIMAL ), + ( COUNT( * ) ) * + COUNT( - - 99 ) * - 66 + COUNT( * ) + - + 10 AS col1
----
NULL
-75

skipif mysql # not compatible
query II rowsort label-5339
SELECT - 47 + - + 0 + - ( 70 ) + COUNT ( * ) / 53 * - CAST ( NULL AS REAL ), + ( COUNT ( * ) ) * + COUNT ( - - 99 ) * - 66 + COUNT ( * ) + - + 10 AS col1
----
NULL
-75

query I rowsort
SELECT + + 85 * - 11 - - 81
----
-854

onlyif mysql # aggregate syntax: 
query I rowsort label-5341
SELECT ALL - - 71 * + COUNT( * ) - 12 - + ( + 26 )
----
33

skipif mysql # not compatible
query I rowsort label-5341
SELECT ALL - - 71 * + COUNT ( * ) - 12 - + ( + 26 )
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5342
SELECT - CAST( NULL AS SIGNED ) * + + 50 / 22
----
NULL

skipif mysql # not compatible
query I rowsort label-5342
SELECT - CAST ( NULL AS INTEGER ) * + + 50 / 22
----
NULL

query I rowsort
SELECT + 19 * - 16 AS col1
----
-304

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT ALL MAX( ALL 25 ) col1
----
25

skipif mysql # not compatible
query I rowsort label-5344
SELECT ALL MAX ( ALL 25 ) col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT COUNT( DISTINCT - 43 )
----
1

skipif mysql # not compatible
query I rowsort label-5345
SELECT COUNT ( DISTINCT - 43 )
----
1

query II rowsort
SELECT ALL 97 AS col2, + 62
----
97
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5347
SELECT + 60 + - + COUNT( * ) DIV - 60 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-5347
SELECT + 60 + - + COUNT ( * ) / - 60 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT + 77 + + 43 + - + COUNT( * ) AS col2
----
119

skipif mysql # not compatible
query I rowsort label-5348
SELECT + 77 + + 43 + - + COUNT ( * ) AS col2
----
119

query II rowsort
SELECT 73 AS col0, + 29
----
73
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT - ( 75 ) - - COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-5350
SELECT - ( 75 ) - - COUNT ( * )
----
-74

query I rowsort
SELECT ALL - 73 + - 28
----
-101

query I rowsort
SELECT + ( - 23 ) + 77 AS col2
----
54

query I rowsort
SELECT ALL + 1 + - 85 AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT DISTINCT MAX( - 20 ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-5354
SELECT DISTINCT MAX ( - 20 ) AS col1
----
-20

query I rowsort
SELECT - 76 + + 16 * - 85
----
-1436

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT ALL + COUNT( * ) + - - 40 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-5356
SELECT ALL + COUNT ( * ) + - - 40 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT + 70 * + 73 * - 84 * - - 54 * + 39 + COALESCE ( + 62, 68 ) + + 19 * - + COUNT( * )
----
-903979397

skipif mysql # not compatible
query I rowsort label-5357
SELECT + 70 * + 73 * - 84 * - - 54 * + 39 + COALESCE ( + 62, 68 ) + + 19 * - + COUNT ( * )
----
-903979397

onlyif mysql # aggregate syntax: 
query I rowsort label-5358
SELECT - CASE 46 WHEN + + 20 / - 66 THEN + COUNT( * ) END / 34 - + 65 + - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-5358
SELECT - CASE 46 WHEN + + 20 / - 66 THEN + COUNT ( * ) END / 34 - + 65 + - 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT - 4 + - COUNT( * ) * - ( - - 74 )
----
70

skipif mysql # not compatible
query I rowsort label-5359
SELECT - 4 + - COUNT ( * ) * - ( - - 74 )
----
70

query II rowsort
SELECT + 49, 58 AS col0
----
49
58

onlyif mysql # aggregate syntax: 
query II rowsort label-5361
SELECT ALL + - COUNT( + 84 ) * + 35, - SUM( ALL 51 ) AS col0
----
-35
-51

skipif mysql # not compatible
query II rowsort label-5361
SELECT ALL + - COUNT ( + 84 ) * + 35, - SUM ( ALL 51 ) AS col0
----
-35
-51

query II rowsort
SELECT - 78 * 9 + 77, 67 * - 70 + - - 30 AS col1
----
-625
-4660

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT DISTINCT + MAX( - 67 ) * - 73 * 2
----
9782

skipif mysql # not compatible
query I rowsort label-5363
SELECT DISTINCT + MAX ( - 67 ) * - 73 * 2
----
9782

query I rowsort
SELECT ALL - + ( 20 ) - 93 * - - 33 AS col0
----
-3089

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT ALL - + COALESCE ( + 18, - - CASE - 95 WHEN + 65 THEN - + 15 WHEN + MIN( + 19 ) THEN NULL END - MAX( DISTINCT 63 ) )
----
-18

skipif mysql # not compatible
query I rowsort label-5365
SELECT ALL - + COALESCE ( + 18, - - CASE - 95 WHEN + 65 THEN - + 15 WHEN + MIN ( + 19 ) THEN NULL END - MAX ( DISTINCT 63 ) )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT ALL + 25 * + + COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-5366
SELECT ALL + 25 * + + COUNT ( * )
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-5367
SELECT 69 DIV - + 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5367
SELECT 69 / - + 71 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT ALL - CASE + COUNT( * ) WHEN - NULLIF ( + 52, - COUNT( * ) ) * 50 + - + 34 + 84 THEN + 45 + 75 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5368
SELECT ALL - CASE + COUNT ( * ) WHEN - NULLIF ( + 52, - COUNT ( * ) ) * 50 + - + 34 + 84 THEN + 45 + 75 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT NULLIF ( - 22, + COUNT( * ) ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-5369
SELECT NULLIF ( - 22, + COUNT ( * ) ) AS col0
----
-22

query I rowsort
SELECT + + 22 * - 58 + + + 78 AS col0
----
-1198

onlyif mysql # aggregate syntax: 
query II rowsort label-5371
SELECT + - 48, - ( 75 ) - CASE - 59 WHEN + + 99 * - - 5 - 30 + + 29 + + 71 / - 22 * + + COUNT( * ) + - + AVG ( + 73 ) THEN + 74 WHEN - - MAX( ALL + 20 ) THEN NULL ELSE NULL END AS col2
----
-48
NULL

skipif mysql # not compatible
query II rowsort label-5371
SELECT + - 48, - ( 75 ) - CASE - 59 WHEN + + 99 * - - 5 - 30 + + 29 + + 71 / - 22 * + + COUNT ( * ) + - + AVG ( + 73 ) THEN + 74 WHEN - - MAX ( ALL + 20 ) THEN NULL ELSE NULL END AS col2
----
-48
NULL

query II rowsort
SELECT + 56 AS col2, 0 AS col2
----
56
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5373
SELECT 38 * CAST( + 95 AS SIGNED ) + - 77 / - - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5373
SELECT 38 * CAST ( + 95 AS INTEGER ) + - 77 / - - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT 62 * - 49 + + - 48 + + 21 + + 63 AS col0
----
-3002

query I rowsort
SELECT ALL 90 * + NULLIF ( 43, + + ( 71 ) ) AS col2
----
3870

onlyif mysql # aggregate syntax: 
query II rowsort label-5376
SELECT 58 * - 53 AS col1, COUNT( * ) + 79
----
-3074
80

skipif mysql # not compatible
query II rowsort label-5376
SELECT 58 * - 53 AS col1, COUNT ( * ) + 79
----
-3074
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5377
SELECT ALL - AVG ( + CAST( NULL AS SIGNED ) ) AS col2, + 31 + 67 AS col1
----
NULL
98

skipif mysql # not compatible
query II rowsort label-5377
SELECT ALL - AVG ( + CAST ( NULL AS INTEGER ) ) AS col2, + 31 + 67 AS col1
----
NULL
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT DISTINCT 25 * - - MIN( DISTINCT 84 ) AS col0
----
2100

skipif mysql # not compatible
query I rowsort label-5378
SELECT DISTINCT 25 * - - MIN ( DISTINCT 84 ) AS col0
----
2100

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT + ( - 73 ) * 67 + 58 * NULLIF ( + + 30, + 98 ) + - ( - COUNT( * ) ) + + 8 * - 99 * ( - 86 )
----
64962

skipif mysql # not compatible
query I rowsort label-5379
SELECT + ( - 73 ) * 67 + 58 * NULLIF ( + + 30, + 98 ) + - ( - COUNT ( * ) ) + + 8 * - 99 * ( - 86 )
----
64962

onlyif mysql # aggregate syntax: 
query II rowsort label-5380
SELECT 48 * - - MAX( - 54 ) * - COALESCE ( + - 15, 55 * - 3, - + 91 * + 33 ), + 35 AS col2
----
-38880
35

skipif mysql # not compatible
query II rowsort label-5380
SELECT 48 * - - MAX ( - 54 ) * - COALESCE ( + - 15, 55 * - 3, - + 91 * + 33 ), + 35 AS col2
----
-38880
35

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5381
SELECT SUM( - + NULLIF ( + - 67, - 19 ) ) + - - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5381
SELECT SUM ( - + NULLIF ( + - 67, - 19 ) ) + - - CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5382
SELECT 99 + - 76, + 94 DIV - COUNT( * ) AS col1
----
23
-94

skipif mysql # not compatible
query II rowsort label-5382
SELECT 99 + - 76, + 94 / - COUNT ( * ) AS col1
----
23
-94

query I rowsort
SELECT ALL 24 + + 64 col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT MAX( + 72 ) * + + COUNT( * ) * + 69 + + 21 AS col1
----
4989

skipif mysql # not compatible
query I rowsort label-5384
SELECT MAX ( + 72 ) * + + COUNT ( * ) * + 69 + + 21 AS col1
----
4989

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT ( - COUNT( * ) ) + 38
----
37

skipif mysql # not compatible
query I rowsort label-5385
SELECT ( - COUNT ( * ) ) + 38
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5386
SELECT ALL COUNT( * ) + + CAST( + - ( ( + COUNT( * ) ) ) AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5386
SELECT ALL COUNT ( * ) + + CAST ( + - ( ( + COUNT ( * ) ) ) AS INTEGER ) AS col1
----
0

query I rowsort
SELECT DISTINCT + 60 * + 52 AS col2
----
3120

query I rowsort
SELECT ALL 18 + + + 49
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5389
SELECT ALL AVG ( DISTINCT 46 ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5389
SELECT ALL AVG ( DISTINCT 46 ) / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5390
SELECT DISTINCT 47 + + + 44 + - COUNT( * ) - - - 94 - + - 54 * ( - MIN( + + 15 ) ) AS col0
----
-814

skipif mysql # not compatible
query I rowsort label-5390
SELECT DISTINCT 47 + + + 44 + - COUNT ( * ) - - - 94 - + - 54 * ( - MIN ( + + 15 ) ) AS col0
----
-814

query I rowsort
SELECT ALL - NULLIF ( + ( - 97 ), - COALESCE ( + ( + 62 ), - 59 ) ) + - + 53
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-5392
SELECT 8 * - 74 AS col1, COUNT( * ) AS col0
----
-592
1

skipif mysql # not compatible
query II rowsort label-5392
SELECT 8 * - 74 AS col1, COUNT ( * ) AS col0
----
-592
1

query I rowsort
SELECT ALL 82 + - 98 + - - 91 AS col1
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5394
SELECT ALL COUNT( * ) DIV COUNT( * ) * - - 19
----
19

skipif mysql # not compatible
query I rowsort label-5394
SELECT ALL COUNT ( * ) / COUNT ( * ) * - - 19
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5395
SELECT CAST( NULL AS SIGNED ) / CAST( + + 35 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5395
SELECT CAST ( NULL AS INTEGER ) / CAST ( + + 35 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5396
SELECT ALL 18 + - CAST( NULL AS SIGNED ) AS col0, 65 + + - 76
----
NULL
-11

skipif mysql # not compatible
query II rowsort label-5396
SELECT ALL 18 + - CAST ( NULL AS INTEGER ) AS col0, 65 + + - 76
----
NULL
-11

query I rowsort
SELECT ( - - 43 ) * - 12 * - 63
----
32508

query I rowsort
SELECT + 58 * - ( - 12 )
----
696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5399
SELECT ALL COALESCE ( + 21, + 24 + + 72, - 5 + CASE + 92 WHEN - 62 + 9 - + 51 + + + CAST( NULL AS SIGNED ) / MIN( + + 49 ) * + COUNT( * ) THEN NULL WHEN - - 22 THEN NULL ELSE + 11 END * COUNT( * ) ) AS col0, + 40 * + - 49 col2
----
21
-1960

skipif mysql # not compatible
query II rowsort label-5399
SELECT ALL COALESCE ( + 21, + 24 + + 72, - 5 + CASE + 92 WHEN - 62 + 9 - + 51 + + + CAST ( NULL AS INTEGER ) / MIN ( + + 49 ) * + COUNT ( * ) THEN NULL WHEN - - 22 THEN NULL ELSE + 11 END * COUNT ( * ) ) AS col0, + 40 * + - 49 col2
----
21
-1960

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT DISTINCT + SUM( + 28 )
----
28

skipif mysql # not compatible
query I rowsort label-5400
SELECT DISTINCT + SUM ( + 28 )
----
28

query I rowsort
SELECT ALL + 23 - 40
----
-17

query II rowsort
SELECT - 24 * - 19 AS col1, + 90
----
456
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5403
SELECT DISTINCT - COALESCE ( + 24, - 90 * + - 58 DIV + NULLIF ( + MIN( ALL - + 49 ), - 89 ) * 19 + + - MIN( - 86 ) + - ( - 7 ) + - 69 * - ( + 30 ) + - + 96 * 44, - 49 + + 10 ) - - CAST( + CASE - + 89 WHEN 52 THEN NULL WHEN - - 54 * + 43 * - - AVG ( - ( + 86 ) ) + 44 THEN NULL ELSE 80 END AS SIGNED ) + SUM( DISTINCT + 85 ) AS col1
----
141

skipif mysql # not compatible
query I rowsort label-5403
SELECT DISTINCT - COALESCE ( + 24, - 90 * + - 58 / + NULLIF ( + MIN ( ALL - + 49 ), - 89 ) * 19 + + - MIN ( - 86 ) + - ( - 7 ) + - 69 * - ( + 30 ) + - + 96 * 44, - 49 + + 10 ) - - CAST ( + CASE - + 89 WHEN 52 THEN NULL WHEN - - 54 * + 43 * - - AVG ( - ( + 86 ) ) + 44 THEN NULL ELSE 80 END AS INTEGER ) + SUM ( DISTINCT + 85 ) AS col1
----
141

onlyif mysql # aggregate syntax: 
query II rowsort label-5404
SELECT - MIN( 29 ) * 19 + + + 87 AS col0, 93 AS col0
----
-464
93

skipif mysql # not compatible
query II rowsort label-5404
SELECT - MIN ( 29 ) * 19 + + + 87 AS col0, 93 AS col0
----
-464
93

query I rowsort
SELECT - - 46 * 5 + - 67 * + 48 + - 23 * + 26 + 76 AS col0
----
-3508

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5406
SELECT COALESCE ( - 78, - CASE + 75 WHEN SUM( ALL 37 ) THEN + 38 * + - 50 * - 65 + - + 38 - + 57 * AVG ( DISTINCT + 62 ) * + 9 * + 88 WHEN - - 62 THEN + AVG ( ALL 60 ) * + 0 + + - ( - - 94 ) ELSE - 90 END ) DIV + - 41 + COALESCE ( COALESCE ( 58, + 39 * + 38 * COALESCE ( + - CASE + 85 WHEN 0 THEN NULL WHEN + + 47 THEN NULL WHEN - - 52 THEN - 8 * + 70 ELSE NULL END, COUNT( * ), - 3 + 27 * - 74, 67 ) ), 94 ) * 72
----
4177

skipif mysql # not compatible
query I rowsort label-5406
SELECT COALESCE ( - 78, - CASE + 75 WHEN SUM ( ALL 37 ) THEN + 38 * + - 50 * - 65 + - + 38 - + 57 * AVG ( DISTINCT + 62 ) * + 9 * + 88 WHEN - - 62 THEN + AVG ( ALL 60 ) * + 0 + + - ( - - 94 ) ELSE - 90 END ) / + - 41 + COALESCE ( COALESCE ( 58, + 39 * + 38 * COALESCE ( + - CASE + 85 WHEN 0 THEN NULL WHEN + + 47 THEN NULL WHEN - - 52 THEN - 8 * + 70 ELSE NULL END, COUNT ( * ), - 3 + 27 * - 74, 67 ) ), 94 ) * 72
----
4177

onlyif mysql # DIV for integer division: 
query I rowsort label-5407
SELECT 33 DIV - + 8 + + ( - ( - 73 ) ) + 27
----
96

skipif mysql # not compatible
query I rowsort label-5407
SELECT 33 / - + 8 + + ( - ( - 73 ) ) + 27
----
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5408
SELECT 86 DIV - 96 + - COALESCE ( + 29, + 87 * + - 98 + + CAST( NULL AS SIGNED ), - - 2 ) * - 8 + + 48 col1
----
280

skipif mysql # not compatible
query I rowsort label-5408
SELECT 86 / - 96 + - COALESCE ( + 29, + 87 * + - 98 + + CAST ( NULL AS INTEGER ), - - 2 ) * - 8 + + 48 col1
----
280

query I rowsort
SELECT ALL + ( + 73 ) + NULLIF ( 93, - 14 )
----
166

query I rowsort
SELECT DISTINCT + 63 * - 51 AS col2
----
-3213

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT ALL + 45 * + 23 * + COUNT( * ) * - 8 * + + 61 * - 4 * 41
----
82833120

skipif mysql # not compatible
query I rowsort label-5411
SELECT ALL + 45 * + 23 * + COUNT ( * ) * - 8 * + + 61 * - 4 * 41
----
82833120

onlyif mysql # DIV for integer division: 
query I rowsort label-5412
SELECT 48 DIV - + 19 col2
----
-2

skipif mysql # not compatible
query I rowsort label-5412
SELECT 48 / - + 19 col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5413
SELECT ALL + 73 + + CAST( NULL AS SIGNED ) * 43 * 10 * - + COUNT( * ) + - 71 + CASE + 89 WHEN + 88 THEN - 49 * + - 47 WHEN - COUNT( * ) * COUNT( * ) + - 56 THEN + ( - 18 ) ELSE NULL END * - 3 * NULLIF ( + COUNT( * ), - - 67 ) / - 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5413
SELECT ALL + 73 + + CAST ( NULL AS INTEGER ) * 43 * 10 * - + COUNT ( * ) + - 71 + CASE + 89 WHEN + 88 THEN - 49 * + - 47 WHEN - COUNT ( * ) * COUNT ( * ) + - 56 THEN + ( - 18 ) ELSE NULL END * - 3 * NULLIF ( + COUNT ( * ), - - 67 ) / - 19 AS col2
----
NULL

query I rowsort
SELECT 64 * - + 25
----
-1600

query I rowsort
SELECT 67 + - 32 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT DISTINCT + MIN( + 85 ) + + 63 * + MAX( - 23 ) + 50
----
-1314

skipif mysql # not compatible
query I rowsort label-5416
SELECT DISTINCT + MIN ( + 85 ) + + 63 * + MAX ( - 23 ) + 50
----
-1314

query I rowsort
SELECT DISTINCT - 1 + + + 27 AS col0
----
26

query I rowsort
SELECT ALL + 73 + - 52 AS col2
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5419
SELECT COUNT( * ) * + + COALESCE ( CAST( 83 AS SIGNED ), - NULLIF ( 50, - COUNT( * ) ) + - 6 - + 61 * + ( + + 17 ) - - 5, + 91, - CAST( 38 AS SIGNED ) + COUNT( * ) DIV + 40 + 16 )
----
83

skipif mysql # not compatible
query I rowsort label-5419
SELECT COUNT ( * ) * + + COALESCE ( CAST ( 83 AS INTEGER ), - NULLIF ( 50, - COUNT ( * ) ) + - 6 - + 61 * + ( + + 17 ) - - 5, + 91, - CAST ( 38 AS INTEGER ) + COUNT ( * ) / + 40 + 16 )
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-5420
SELECT DISTINCT + NULLIF ( - 44, - - 71 ) * 39 DIV 17 DIV 71 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5420
SELECT DISTINCT + NULLIF ( - 44, - - 71 ) * 39 / 17 / 71 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5421
SELECT 89 + + - 40 + - + 83 AS col0, + 97 * - CAST( - 36 AS SIGNED ) + - ( + - 59 ) AS col2, ( ( - 20 ) ) AS col0
----
-34
3551
-20

skipif mysql # not compatible
query III rowsort label-5421
SELECT 89 + + - 40 + - + 83 AS col0, + 97 * - CAST ( - 36 AS INTEGER ) + - ( + - 59 ) AS col2, ( ( - 20 ) ) AS col0
----
-34
3551
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT MAX( DISTINCT - 84 ) * - 11 AS col1
----
924

skipif mysql # not compatible
query I rowsort label-5422
SELECT MAX ( DISTINCT - 84 ) * - 11 AS col1
----
924

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT ALL NULLIF ( + 82, - COUNT( * ) + - + 12 * 43 - + ( + 62 ) ) * - - COALESCE ( SUM( ( - + 68 ) ), + 77 )
----
-5576

skipif mysql # not compatible
query I rowsort label-5423
SELECT ALL NULLIF ( + 82, - COUNT ( * ) + - + 12 * 43 - + ( + 62 ) ) * - - COALESCE ( SUM ( ( - + 68 ) ), + 77 )
----
-5576

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT MIN( DISTINCT - 39 ) + - + 37
----
-76

skipif mysql # not compatible
query I rowsort label-5424
SELECT MIN ( DISTINCT - 39 ) + - + 37
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5425
SELECT ( - - 24 ) - + ( - + 49 ) + - CASE + CAST( + 86 AS SIGNED ) WHEN - 29 * + CAST( NULL AS SIGNED ) THEN - MAX( + CAST( - + 75 AS SIGNED ) ) ELSE - + 2 END AS col0
----
75

skipif mysql # not compatible
query I rowsort label-5425
SELECT ( - - 24 ) - + ( - + 49 ) + - CASE + CAST ( + 86 AS INTEGER ) WHEN - 29 * + CAST ( NULL AS INTEGER ) THEN - MAX ( + CAST ( - + 75 AS INTEGER ) ) ELSE - + 2 END AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT ALL + MAX( ALL + 88 )
----
88

skipif mysql # not compatible
query I rowsort label-5426
SELECT ALL + MAX ( ALL + 88 )
----
88

query I rowsort
SELECT + 99 + + 43 - - 62
----
204

onlyif mysql # DIV for integer division: 
query I rowsort label-5428
SELECT + 22 + - 54 DIV ( + 70 )
----
22

skipif mysql # not compatible
query I rowsort label-5428
SELECT + 22 + - 54 / ( + 70 )
----
22

query I rowsort
SELECT ALL 66 * 88 AS col1
----
5808

query I rowsort
SELECT + + 97 + 25
----
122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5431
SELECT - - COUNT( + - 72 ) DIV + 58
----
0

skipif mysql # not compatible
query I rowsort label-5431
SELECT - - COUNT ( + - 72 ) / + 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT + - COUNT( ALL - 27 ) * + ( + + 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-5432
SELECT + - COUNT ( ALL - 27 ) * + ( + + 47 )
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5433
SELECT DISTINCT 14 DIV + MIN( DISTINCT - 38 ) * 28
----
0

skipif mysql # not compatible
query I rowsort label-5433
SELECT DISTINCT 14 / + MIN ( DISTINCT - 38 ) * 28
----
0

query I rowsort
SELECT + + 6 * - 88 col1
----
-528

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5435
SELECT - COUNT( * ) DIV 82 + + 99
----
99

skipif mysql # not compatible
query I rowsort label-5435
SELECT - COUNT ( * ) / 82 + + 99
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5436
SELECT ALL + CAST( - ( 79 ) AS SIGNED ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-5436
SELECT ALL + CAST ( - ( 79 ) AS INTEGER ) AS col1
----
-79

query I rowsort
SELECT + CASE 19 WHEN + - 87 THEN NULL ELSE - 94 END AS col2
----
-94

query I rowsort
SELECT + 24 * 7 * - + 15
----
-2520

query I rowsort
SELECT ALL 94 * - 83 + 1 * + 72 AS col2
----
-7730

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT - - 79 * COUNT( * ) * 95
----
7505

skipif mysql # not compatible
query I rowsort label-5440
SELECT - - 79 * COUNT ( * ) * 95
----
7505

query I rowsort
SELECT NULLIF ( ( 35 ), NULLIF ( + - 54, + 64 ) * - 24 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT + NULLIF ( + COUNT( * ), 98 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5442
SELECT + NULLIF ( + COUNT ( * ), 98 ) col1
----
1

query I rowsort
SELECT NULLIF ( + + 67, 74 )
----
67

query I rowsort
SELECT + 18 * - 18 + + 48 AS col2
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT MIN( ALL + + 68 ) col1
----
68

skipif mysql # not compatible
query I rowsort label-5445
SELECT MIN ( ALL + + 68 ) col1
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-5446
SELECT + 59 AS col1, 54 * + 93 + + COUNT( * )
----
59
5023

skipif mysql # not compatible
query II rowsort label-5446
SELECT + 59 AS col1, 54 * + 93 + + COUNT ( * )
----
59
5023

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT ALL + 21 * 77 + + - 44 + + - COUNT( * ) + 42 * + ( - 10 ) AS col0
----
1152

skipif mysql # not compatible
query I rowsort label-5447
SELECT ALL + 21 * 77 + + - 44 + + - COUNT ( * ) + 42 * + ( - 10 ) AS col0
----
1152

query I rowsort
SELECT - ( + + 77 ) + + 63
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT ALL - 15 * + MAX( ALL + 40 )
----
-600

skipif mysql # not compatible
query I rowsort label-5449
SELECT ALL - 15 * + MAX ( ALL + 40 )
----
-600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5450
SELECT 42 * + - 30 + - 3 / 73 / - ( + 40 ) + + ( + ( - - CAST( NULL AS SIGNED ) ) ) + - 84 + MIN( ALL - 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5450
SELECT 42 * + - 30 + - 3 / 73 / - ( + 40 ) + + ( + ( - - CAST ( NULL AS INTEGER ) ) ) + - 84 + MIN ( ALL - 53 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5451
SELECT COUNT( * ) AS col2, + ( - + COUNT( * ) ) + - COUNT( * ) * + 12 DIV + COUNT( * )
----
1
-13

skipif mysql # not compatible
query II rowsort label-5451
SELECT COUNT ( * ) AS col2, + ( - + COUNT ( * ) ) + - COUNT ( * ) * + 12 / + COUNT ( * )
----
1
-13

query I rowsort
SELECT DISTINCT - 97 * + 30 * - - 26 AS col2
----
-75660

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT ALL + COUNT( * ) * - 74 AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-5453
SELECT ALL + COUNT ( * ) * - 74 AS col1
----
-74

query I rowsort
SELECT - 29 * + 29
----
-841

query I rowsort
SELECT DISTINCT + ( + + 67 ) - 65
----
2

query I rowsort
SELECT ALL + 7 - - + 78 + 99 + + 70 * + - 7 * 20
----
-9616

query II rowsort
SELECT ALL + 54, - 14 AS col2
----
54
-14

query II rowsort
SELECT 28, - 71 * - + 70 AS col0
----
28
4970

query II rowsort
SELECT ALL + 41 col2, - 5 * + - 76 * + 89 * + 19
----
41
642580

query I rowsort
SELECT - 97 * 77 * - - 88 + + 7
----
-657265

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT ALL + 7 * - COUNT( * ) col2
----
-7

skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL + 7 * - COUNT ( * ) col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5462
SELECT - - ( + - COUNT( + + 56 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5462
SELECT - - ( + - COUNT ( + + 56 ) ) AS col1
----
-1

query II rowsort
SELECT ALL - 18 AS col0, + 14 * - - 18 col2
----
-18
252

onlyif mysql # aggregate syntax: 
query II rowsort label-5464
SELECT 3 AS col0, - 68 * - ( - COUNT( - 71 ) ) * COALESCE ( + 52, - 26 ) + + + CASE 47 WHEN 46 * + - 16 * NULLIF ( + - 90, + MAX( DISTINCT - 28 ) ) THEN + + MAX( - 7 ) * + 24 ELSE NULL END * - + 70 AS col0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5464
SELECT 3 AS col0, - 68 * - ( - COUNT ( - 71 ) ) * COALESCE ( + 52, - 26 ) + + + CASE 47 WHEN 46 * + - 16 * NULLIF ( + - 90, + MAX ( DISTINCT - 28 ) ) THEN + + MAX ( - 7 ) * + 24 ELSE NULL END * - + 70 AS col0
----
3
NULL

query I rowsort
SELECT - + 57 * - - 58
----
-3306

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT + + 52 * + MIN( - + 9 ) + 9 AS col2
----
-459

skipif mysql # not compatible
query I rowsort label-5466
SELECT + + 52 * + MIN ( - + 9 ) + 9 AS col2
----
-459

query I rowsort
SELECT ALL - 46 * - + 28
----
1288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5468
SELECT + 42 / - ( - - 40 ) + + MAX( ALL - 1 ) + + 32 - + CAST( NULL AS SIGNED ) * 43 + + - 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5468
SELECT + 42 / - ( - - 40 ) + + MAX ( ALL - 1 ) + + 32 - + CAST ( NULL AS INTEGER ) * 43 + + - 43 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5469
SELECT - NULLIF ( + - COUNT( + 36 ), + + NULLIF ( - + 13, - 49 + + 4 + + 51 ) - + 46 ) AS col2, + 83
----
1
83

skipif mysql # not compatible
query II rowsort label-5469
SELECT - NULLIF ( + - COUNT ( + 36 ), + + NULLIF ( - + 13, - 49 + + 4 + + 51 ) - + 46 ) AS col2, + 83
----
1
83

query II rowsort
SELECT - 63, 31 AS col1
----
-63
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5471
SELECT - 0 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5471
SELECT - 0 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5472
SELECT - - 74 / + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5472
SELECT - - 74 / + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5473
SELECT DISTINCT - COUNT( * ) / + 72 + + 83 / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5473
SELECT DISTINCT - COUNT ( * ) / + 72 + + 83 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5474
SELECT ALL 99 DIV + 13 + - 98
----
-91

skipif mysql # not compatible
query I rowsort label-5474
SELECT ALL 99 / + 13 + - 98
----
-91

query I rowsort
SELECT ALL + NULLIF ( + 17, + 53 ) AS col2
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-5476
SELECT + 98, MAX( DISTINCT - - 97 ) * - 43 + - 80 AS col1
----
98
-4251

skipif mysql # not compatible
query II rowsort label-5476
SELECT + 98, MAX ( DISTINCT - - 97 ) * - 43 + - 80 AS col1
----
98
-4251

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5477
SELECT + - 46 AS col1, 64, - CAST( + 7 AS SIGNED ) * + 95 AS col2
----
-46
64
-665

skipif mysql # not compatible
query III rowsort label-5477
SELECT + - 46 AS col1, 64, - CAST ( + 7 AS INTEGER ) * + 95 AS col2
----
-46
64
-665

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT ALL 95 / - 19 + CASE + 3 WHEN - + 56 + ( - + 27 ) THEN - 21 / + ( - CASE - 14 WHEN 90 THEN - + SUM( + 60 ) + + 75 WHEN - COUNT( * ) + + ( + + COUNT( ALL - 85 ) ) + + 62 * + SUM( - - 46 ) THEN NULL END ) - - 86 + + 13 / - 49 WHEN - 94 THEN - - 78 + 24 * - + 63 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5478
SELECT ALL 95 / - 19 + CASE + 3 WHEN - + 56 + ( - + 27 ) THEN - 21 / + ( - CASE - 14 WHEN 90 THEN - + SUM ( + 60 ) + + 75 WHEN - COUNT ( * ) + + ( + + COUNT ( ALL - 85 ) ) + + 62 * + SUM ( - - 46 ) THEN NULL END ) - - 86 + + 13 / - 49 WHEN - 94 THEN - - 78 + 24 * - + 63 END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5479
SELECT + 37 * - - 27, CAST( NULL AS DECIMAL ) * - 11 + + - 43 AS col0
----
999
NULL

skipif mysql # not compatible
query II rowsort label-5479
SELECT + 37 * - - 27, CAST ( NULL AS REAL ) * - 11 + + - 43 AS col0
----
999
NULL

query I rowsort
SELECT + 14 * 13 + - - 54 * + ( + 29 ) + 90 AS col0
----
1838

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT ALL COUNT( * ) * + 73 * + COUNT( * ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-5481
SELECT ALL COUNT ( * ) * + 73 * + COUNT ( * ) AS col1
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-5482
SELECT + ( - + 44 ) AS col2, - COUNT( * ) AS col1
----
-44
-1

skipif mysql # not compatible
query II rowsort label-5482
SELECT + ( - + 44 ) AS col2, - COUNT ( * ) AS col1
----
-44
-1

query I rowsort
SELECT + ( ( 51 ) ) AS col0
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5484
SELECT ( + ( + COALESCE ( + + 82, - CAST( NULL AS SIGNED ) * - 87, - 53 + COUNT( * ) * - 68 + NULLIF ( - + 8, - COUNT( * ) ) ) ) )
----
82

skipif mysql # not compatible
query I rowsort label-5484
SELECT ( + ( + COALESCE ( + + 82, - CAST ( NULL AS INTEGER ) * - 87, - 53 + COUNT ( * ) * - 68 + NULLIF ( - + 8, - COUNT ( * ) ) ) ) )
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5485
SELECT + CAST( + + 73 AS SIGNED )
----
73

skipif mysql # not compatible
query I rowsort label-5485
SELECT + CAST ( + + 73 AS INTEGER )
----
73

query I rowsort
SELECT DISTINCT 24 * + 66 AS col2
----
1584

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT 56 * + 44 + - 95 * 70 + 71 + + 16 + + COUNT( * ) + + + 35
----
-4063

skipif mysql # not compatible
query I rowsort label-5487
SELECT 56 * + 44 + - 95 * 70 + 71 + + 16 + + COUNT ( * ) + + + 35
----
-4063

query I rowsort
SELECT ( + 10 ) * 70 - - 16
----
716

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5489
SELECT COALESCE ( - 99, - 66, - - 61, + 24 * - 86 - + 35 + + 57 DIV + + 18 + - + COUNT( * ) + + NULLIF ( - 34, 80 ) + - 77 * + - 82 * - COUNT( * ) )
----
-99

skipif mysql # not compatible
query I rowsort label-5489
SELECT COALESCE ( - 99, - 66, - - 61, + 24 * - 86 - + 35 + + 57 / + + 18 + - + COUNT ( * ) + + NULLIF ( - 34, 80 ) + - 77 * + - 82 * - COUNT ( * ) )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT + ( COUNT( * ) ) - - 47
----
48

skipif mysql # not compatible
query I rowsort label-5490
SELECT + ( COUNT ( * ) ) - - 47
----
48

query I rowsort
SELECT - 5 * 45
----
-225

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5492
SELECT DISTINCT 58 DIV - - 75 AS col0, + 54 * + + MIN( - 74 )
----
0
-3996

skipif mysql # not compatible
query II rowsort label-5492
SELECT DISTINCT 58 / - - 75 AS col0, + 54 * + + MIN ( - 74 )
----
0
-3996

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5493
SELECT COALESCE ( 7, - + CAST( NULL AS SIGNED ), 30 ) - - - 37 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-5493
SELECT COALESCE ( 7, - + CAST ( NULL AS INTEGER ), 30 ) - - - 37 AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT + SUM( DISTINCT - 69 ) * COUNT( * ) + - COUNT( DISTINCT + 90 )
----
-70

skipif mysql # not compatible
query I rowsort label-5494
SELECT + SUM ( DISTINCT - 69 ) * COUNT ( * ) + - COUNT ( DISTINCT + 90 )
----
-70

query II rowsort
SELECT ALL - ( - 75 ) AS col2, 42 AS col1
----
75
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT - 17 * - + ( - MAX( + + 38 ) ) * + COUNT( * ) - + 31
----
-677

skipif mysql # not compatible
query I rowsort label-5496
SELECT - 17 * - + ( - MAX ( + + 38 ) ) * + COUNT ( * ) - + 31
----
-677

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT 23 + + - 98 * + 73 + + 62 * - COUNT( * ) AS col1
----
-7193

skipif mysql # not compatible
query I rowsort label-5497
SELECT 23 + + - 98 * + 73 + + 62 * - COUNT ( * ) AS col1
----
-7193

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5498
SELECT - + MAX( ALL + 82 ) AS col1, CAST( NULL AS SIGNED ) * 40 + CASE - - 96 WHEN - - ( - 56 ) THEN - 48 WHEN - - COUNT( * ) THEN NULL END
----
-82
NULL

skipif mysql # not compatible
query II rowsort label-5498
SELECT - + MAX ( ALL + 82 ) AS col1, CAST ( NULL AS INTEGER ) * 40 + CASE - - 96 WHEN - - ( - 56 ) THEN - 48 WHEN - - COUNT ( * ) THEN NULL END
----
-82
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5499
SELECT ALL COALESCE ( 29, - 90 DIV + CAST( NULL AS SIGNED ), - 24 - + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-5499
SELECT ALL COALESCE ( 29, - 90 / + CAST ( NULL AS INTEGER ), - 24 - + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) ) AS col1
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-5500
SELECT ALL + + 60 + 65 AS col2, COUNT( * ) col2
----
125
1

skipif mysql # not compatible
query II rowsort label-5500
SELECT ALL + + 60 + 65 AS col2, COUNT ( * ) col2
----
125
1

query II rowsort
SELECT - 84 + + + 22 AS col1, 53 AS col0
----
-62
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5502
SELECT 61 + - CAST( NULL AS SIGNED ) * 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5502
SELECT 61 + - CAST ( NULL AS INTEGER ) * 20 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT ALL COALESCE ( - - COUNT( * ), + + 17 )
----
1

skipif mysql # not compatible
query I rowsort label-5503
SELECT ALL COALESCE ( - - COUNT ( * ), + + 17 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT DISTINCT + 32 + MAX( - 57 )
----
-25

skipif mysql # not compatible
query I rowsort label-5504
SELECT DISTINCT + 32 + MAX ( - 57 )
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5505
SELECT + 76 DIV - - 18 + + 1 * - CASE + NULLIF ( 50, 75 + - 77 + + - 88 ) WHEN - - COUNT( DISTINCT - 18 ) THEN COALESCE ( + - ( - + 36 ), - 39 ) WHEN + 82 THEN NULL ELSE - 37 END col0
----
41

skipif mysql # not compatible
query I rowsort label-5505
SELECT + 76 / - - 18 + + 1 * - CASE + NULLIF ( 50, 75 + - 77 + + - 88 ) WHEN - - COUNT ( DISTINCT - 18 ) THEN COALESCE ( + - ( - + 36 ), - 39 ) WHEN + 82 THEN NULL ELSE - 37 END col0
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5506
SELECT ALL + 99 + ( 58 ) - + 37 DIV - MAX( - 13 )
----
155

skipif mysql # not compatible
query I rowsort label-5506
SELECT ALL + 99 + ( 58 ) - + 37 / - MAX ( - 13 )
----
155

query I rowsort
SELECT 67 * + 3 * - 0
----
0

query I rowsort
SELECT 3 * - ( - 83 ) AS col2
----
249

query I rowsort
SELECT ALL - 14 * + 63 AS col0
----
-882

query I rowsort
SELECT ALL + 87 + + 60 AS col0
----
147

onlyif mysql # aggregate syntax: 
query II rowsort label-5511
SELECT + 43 AS col1, 51 * COUNT( * ) + + - 8
----
43
43

skipif mysql # not compatible
query II rowsort label-5511
SELECT + 43 AS col1, 51 * COUNT ( * ) + + - 8
----
43
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5512
SELECT ALL 78 - + CAST( NULL AS SIGNED ) / + + SUM( + - ( - 79 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5512
SELECT ALL 78 - + CAST ( NULL AS INTEGER ) / + + SUM ( + - ( - 79 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5513
SELECT 93 * + + ( + - 62 ) AS col1, MIN( DISTINCT 51 ) - + - COUNT( * ) * + 72
----
-5766
123

skipif mysql # not compatible
query II rowsort label-5513
SELECT 93 * + + ( + - 62 ) AS col1, MIN ( DISTINCT 51 ) - + - COUNT ( * ) * + 72
----
-5766
123

query I rowsort
SELECT ALL 54 - + 7 - + + 48
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5515
SELECT 82 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5515
SELECT 82 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT COUNT( * ) * - + CASE 1 WHEN 50 THEN - 8 * - + 77 / + 56 * - ( + + 96 ) WHEN 4 / - + NULLIF ( - ( MAX( ALL - 65 ) ), NULLIF ( - COUNT( * ), - + COUNT( * ) + 57 + - + ( - CASE 49 WHEN + - 34 * - + 44 * - 37 THEN - + COUNT( * ) * + - 58 * 22 WHEN 14 THEN 28 WHEN - 64 - - + 78 - - + 81 + + COUNT( * ) THEN NULL ELSE + 63 END ) + - 41 * 28 * + 56 ) ) - + - 46 * - 16 + - 10 * + COUNT( * ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5516
SELECT COUNT ( * ) * - + CASE 1 WHEN 50 THEN - 8 * - + 77 / + 56 * - ( + + 96 ) WHEN 4 / - + NULLIF ( - ( MAX ( ALL - 65 ) ), NULLIF ( - COUNT ( * ), - + COUNT ( * ) + 57 + - + ( - CASE 49 WHEN + - 34 * - + 44 * - 37 THEN - + COUNT ( * ) * + - 58 * 22 WHEN 14 THEN 28 WHEN - 64 - - + 78 - - + 81 + + COUNT ( * ) THEN NULL ELSE + 63 END ) + - 41 * 28 * + 56 ) ) - + - 46 * - 16 + - 10 * + COUNT ( * ) THEN NULL END AS col0
----
NULL

query I rowsort
SELECT ALL 18 - + + 41 AS col0
----
-23

query I rowsort
SELECT 92 * 32 AS col1
----
2944

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT COUNT( * ) - 22 col1
----
-21

skipif mysql # not compatible
query I rowsort label-5519
SELECT COUNT ( * ) - 22 col1
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5520
SELECT ALL - ( CAST( - 36 AS SIGNED ) ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-5520
SELECT ALL - ( CAST ( - 36 AS INTEGER ) ) AS col0
----
36

query I rowsort
SELECT 17 * + + 28
----
476

query I rowsort
SELECT DISTINCT 17 * 4 AS col2
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5523
SELECT ( 1 ) + + COALESCE ( + + 82, 90 * CASE - 24 WHEN 24 + - COUNT( DISTINCT + - COALESCE ( 61, + - 65, - 5 ) ) THEN + - 58 - - 6 ELSE - 55 END + + CASE + 33 WHEN + 51 THEN 44 WHEN + - 40 THEN - - 47 DIV - - ( + + 92 ) DIV 69 ELSE 79 END DIV - 78 - - 77 ), 52 + + - 0 - + 61 + - - NULLIF ( - - 17, - 51 + - 60 * + 24 DIV 70 ) AS col1
----
83
8

skipif mysql # not compatible
query II rowsort label-5523
SELECT ( 1 ) + + COALESCE ( + + 82, 90 * CASE - 24 WHEN 24 + - COUNT ( DISTINCT + - COALESCE ( 61, + - 65, - 5 ) ) THEN + - 58 - - 6 ELSE - 55 END + + CASE + 33 WHEN + 51 THEN 44 WHEN + - 40 THEN - - 47 / - - ( + + 92 ) / 69 ELSE 79 END / - 78 - - 77 ), 52 + + - 0 - + 61 + - - NULLIF ( - - 17, - 51 + - 60 * + 24 / 70 ) AS col1
----
83
8

query I rowsort
SELECT ALL 58 * + - 23
----
-1334

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT DISTINCT - COUNT( DISTINCT - 56 )
----
-1

skipif mysql # not compatible
query I rowsort label-5525
SELECT DISTINCT - COUNT ( DISTINCT - 56 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT COALESCE ( COUNT( * ), COUNT( * ) ) * - - 41
----
41

skipif mysql # not compatible
query I rowsort label-5526
SELECT COALESCE ( COUNT ( * ), COUNT ( * ) ) * - - 41
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT + ( 7 ) + - + ( - + MAX( + - 28 ) )
----
-21

skipif mysql # not compatible
query I rowsort label-5527
SELECT + ( 7 ) + - + ( - + MAX ( + - 28 ) )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5528
SELECT ALL - MAX( ALL + ( - + 19 ) ) + + ( 8 ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-5528
SELECT ALL - MAX ( ALL + ( - + 19 ) ) + + ( 8 ) AS col1
----
27

query II rowsort
SELECT 76, 91 AS col2
----
76
91

query I rowsort
SELECT ALL - 44 + + 13
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5531
SELECT + 82 / - + CASE + 1 WHEN + 66 * + 4 THEN + 23 WHEN + - CAST( + - COALESCE ( + 52, CASE + ( + ( + COALESCE ( COUNT( * ), - - 44, - 49 ) ) ) WHEN + 97 + - - CAST( - 25 AS SIGNED ) THEN 4 - + 30 ELSE - 11 END * + MIN( DISTINCT + - 25 ) ) AS SIGNED ) * 11 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5531
SELECT + 82 / - + CASE + 1 WHEN + 66 * + 4 THEN + 23 WHEN + - CAST ( + - COALESCE ( + 52, CASE + ( + ( + COALESCE ( COUNT ( * ), - - 44, - 49 ) ) ) WHEN + 97 + - - CAST ( - 25 AS INTEGER ) THEN 4 - + 30 ELSE - 11 END * + MIN ( DISTINCT + - 25 ) ) AS INTEGER ) * 11 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT ALL + - 7 + 42 + SUM( - 73 ) + MIN( DISTINCT - 79 ) + + 11 * + + 6
----
-51

skipif mysql # not compatible
query I rowsort label-5532
SELECT ALL + - 7 + 42 + SUM ( - 73 ) + MIN ( DISTINCT - 79 ) + + 11 * + + 6
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-5533
SELECT DISTINCT 60 DIV + - ( - 90 ) + + 84 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-5533
SELECT DISTINCT 60 / + - ( - 90 ) + + 84 AS col0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5534
SELECT ALL 65 + + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5534
SELECT ALL 65 + + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + 57 + 18 col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT DISTINCT - MIN( DISTINCT + 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-5536
SELECT DISTINCT - MIN ( DISTINCT + 10 )
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5537
SELECT - 48 DIV COUNT( * ) col2
----
-48

skipif mysql # not compatible
query I rowsort label-5537
SELECT - 48 / COUNT ( * ) col2
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5538
SELECT - 18 DIV ( - ( + COUNT( + - 77 ) ) ) DIV - 25 + - + 96
----
-96

skipif mysql # not compatible
query I rowsort label-5538
SELECT - 18 / ( - ( + COUNT ( + - 77 ) ) ) / - 25 + - + 96
----
-96

query I rowsort
SELECT ALL 87 + + - 53 + + 4
----
38

query I rowsort
SELECT + 57 * - - 81
----
4617

query II rowsort
SELECT - 49 AS col1, - ( - - 88 )
----
-49
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT - COUNT( 71 )
----
-1

skipif mysql # not compatible
query I rowsort label-5542
SELECT - COUNT ( 71 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5543
SELECT - ( - MAX( ALL + NULLIF ( - - ( 5 ), CAST( NULL AS SIGNED ) ) ) )
----
5

skipif mysql # not compatible
query I rowsort label-5543
SELECT - ( - MAX ( ALL + NULLIF ( - - ( 5 ), CAST ( NULL AS INTEGER ) ) ) )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT + 84 - - SUM( DISTINCT - - 65 ) AS col1
----
149

skipif mysql # not compatible
query I rowsort label-5544
SELECT + 84 - - SUM ( DISTINCT - - 65 ) AS col1
----
149

query I rowsort
SELECT ALL - NULLIF ( + 44, + 91 )
----
-44

query I rowsort
SELECT + ( + + 79 ) AS col0
----
79

query I rowsort
SELECT ALL 96 - + 20 * + + 17 AS col2
----
-244

query I rowsort
SELECT ALL + 55 * 84 - + 57 AS col1
----
4563

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5549
SELECT COALESCE ( - + 29, 62 + COUNT( CAST( + ( + 65 ) AS SIGNED ) ) ), + AVG ( CAST( NULL AS SIGNED ) ) AS col0
----
-29
NULL

skipif mysql # not compatible
query II rowsort label-5549
SELECT COALESCE ( - + 29, 62 + COUNT ( CAST ( + ( + 65 ) AS INTEGER ) ) ), + AVG ( CAST ( NULL AS INTEGER ) ) AS col0
----
-29
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT ALL - COALESCE ( - + 19, 26 * + MIN( 23 ) + - 64 )
----
19

skipif mysql # not compatible
query I rowsort label-5550
SELECT ALL - COALESCE ( - + 19, 26 * + MIN ( 23 ) + - 64 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT 55 * 54 - + - COUNT( DISTINCT COALESCE ( - 21, + 34, 74 ) ) - + COUNT( * )
----
2970

skipif mysql # not compatible
query I rowsort label-5551
SELECT 55 * 54 - + - COUNT ( DISTINCT COALESCE ( - 21, + 34, 74 ) ) - + COUNT ( * )
----
2970

onlyif mysql # aggregate syntax: 
query I rowsort label-5552
SELECT 76 + + COUNT( - 39 )
----
77

skipif mysql # not compatible
query I rowsort label-5552
SELECT 76 + + COUNT ( - 39 )
----
77

query I rowsort
SELECT ALL 42 * + 90 - + + 33 col1
----
3747

query I rowsort
SELECT 28 * - 90 AS col0
----
-2520

query I rowsort
SELECT ALL + 83 * + + 44 AS col1
----
3652

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT 93 * + NULLIF ( + 15, - COUNT( * ) ) * + 58 + + + 51
----
80961

skipif mysql # not compatible
query I rowsort label-5556
SELECT 93 * + NULLIF ( + 15, - COUNT ( * ) ) * + 58 + + + 51
----
80961

query II rowsort
SELECT - 76 + - 48, + 92 * - 38 AS col0
----
-124
-3496

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT ALL + COUNT( ALL + + 69 ) * + 20 * + 41
----
820

skipif mysql # not compatible
query I rowsort label-5558
SELECT ALL + COUNT ( ALL + + 69 ) * + 20 * + 41
----
820

query I rowsort
SELECT - 94 * + ( + 27 )
----
-2538

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT ALL + MAX( ALL + 78 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-5560
SELECT ALL + MAX ( ALL + 78 ) AS col1
----
78

query II rowsort
SELECT + + ( - 19 ) * - - 70 * - - 21 AS col1, 1 * + + 99 AS col0
----
-27930
99

query I rowsort
SELECT - + 28 - 50 * + 5
----
-278

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5563
SELECT ALL - CASE - + 39 WHEN + - CAST( NULL AS SIGNED ) THEN NULL WHEN - 26 THEN NULL WHEN + COUNT( * ) * - 82 + COUNT( * ) THEN 56 + - 22 * + CASE + + SUM( ALL - 0 ) WHEN - 11 THEN NULL WHEN + NULLIF ( + 94, COUNT( ALL + + 45 ) ) THEN + NULLIF ( 4, - + 16 + + 24 ) * 81 * + COALESCE ( - 39, - - 71 ) * + ( - - AVG ( - ( 23 ) ) ) - + CASE + 49 WHEN 93 THEN + - 56 WHEN - COUNT( * ) / - 90 * + 5 * + 8 * + 75 THEN + 1 + COUNT( * ) / 81 ELSE ( - 68 ) + - 84 * - 22 END ELSE 11 END END + + 17 / 75
----
NULL

skipif mysql # not compatible
query I rowsort label-5563
SELECT ALL - CASE - + 39 WHEN + - CAST ( NULL AS INTEGER ) THEN NULL WHEN - 26 THEN NULL WHEN + COUNT ( * ) * - 82 + COUNT ( * ) THEN 56 + - 22 * + CASE + + SUM ( ALL - 0 ) WHEN - 11 THEN NULL WHEN + NULLIF ( + 94, COUNT ( ALL + + 45 ) ) THEN + NULLIF ( 4, - + 16 + + 24 ) * 81 * + COALESCE ( - 39, - - 71 ) * + ( - - AVG ( - ( 23 ) ) ) - + CASE + 49 WHEN 93 THEN + - 56 WHEN - COUNT ( * ) / - 90 * + 5 * + 8 * + 75 THEN + 1 + COUNT ( * ) / 81 ELSE ( - 68 ) + - 84 * - 22 END ELSE 11 END END + + 17 / 75
----
NULL

query I rowsort
SELECT - - 53 + 37 * + 23 AS col2
----
904

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5565
SELECT - ( - - 58 ) * + 22 + + - 50 * + ( + COUNT( * ) ) - + - 62 * CASE - 20 WHEN + 29 - + + 39 THEN NULL WHEN 47 * - + 98 THEN NULL ELSE + COUNT( * ) * + 26 / 70 * 79 / - CAST( NULL AS SIGNED ) END * - 62 + + 43 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5565
SELECT - ( - - 58 ) * + 22 + + - 50 * + ( + COUNT ( * ) ) - + - 62 * CASE - 20 WHEN + 29 - + + 39 THEN NULL WHEN 47 * - + 98 THEN NULL ELSE + COUNT ( * ) * + 26 / 70 * 79 / - CAST ( NULL AS INTEGER ) END * - 62 + + 43 * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT DISTINCT - MAX( + 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-5566
SELECT DISTINCT - MAX ( + 3 )
----
-3

query I rowsort
SELECT - NULLIF ( - 21, - 79 ) + - + 7 AS col1
----
14

query I rowsort
SELECT + + 37 + + + 34 * 57
----
1975

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5569
SELECT DISTINCT CAST( - + ( + + 42 ) AS SIGNED ) * + - MIN( + - 94 ) col2
----
-3948

skipif mysql # not compatible
query I rowsort label-5569
SELECT DISTINCT CAST ( - + ( + + 42 ) AS INTEGER ) * + - MIN ( + - 94 ) col2
----
-3948

onlyif mysql # aggregate syntax: 
query I rowsort label-5570
SELECT + NULLIF ( 36, + NULLIF ( + 74, + + 64 / - 71 ) * - + COUNT( * ) - - - 79 / - - 54 ) * 7 - + - 81 + 96 AS col1
----
429

skipif mysql # not compatible
query I rowsort label-5570
SELECT + NULLIF ( 36, + NULLIF ( + 74, + + 64 / - 71 ) * - + COUNT ( * ) - - - 79 / - - 54 ) * 7 - + - 81 + 96 AS col1
----
429

query I rowsort
SELECT - ( + ( + ( + 95 ) ) ) AS col0
----
-95

query I rowsort
SELECT + + 77 + + 28 + + 78 * 73 AS col2
----
5799

query I rowsort
SELECT - 38 - - - 0 * - 36 * - 65 * 49
----
-38

query I rowsort
SELECT + 82 + 14
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5575
SELECT ALL 21 - - + 55 DIV + + COUNT( * ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-5575
SELECT ALL 21 - - + 55 / + + COUNT ( * ) AS col1
----
76

query I rowsort
SELECT DISTINCT + 69 * ( - ( 91 ) )
----
-6279

query I rowsort
SELECT + 60 + + 40 AS col1
----
100

query I rowsort
SELECT - COALESCE ( + + ( - 4 ), 79 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT - 36 + 33 * - COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-5579
SELECT - 36 + 33 * - COUNT ( * )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT - COALESCE ( + + COUNT( * ), - 94 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5580
SELECT - COALESCE ( + + COUNT ( * ), - 94 ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5581
SELECT - 63 DIV + 45 + - + COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5581
SELECT - 63 / + 45 + - + COUNT ( * ) AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5582
SELECT CAST( - NULLIF ( + CASE + - 95 WHEN - 90 THEN NULL ELSE + 40 + + - MIN( + NULLIF ( - - 74, 92 - + 78 ) ) + - 33 / + 1 END, + 41 * - 62 ) AS SIGNED ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-5582
SELECT CAST ( - NULLIF ( + CASE + - 95 WHEN - 90 THEN NULL ELSE + 40 + + - MIN ( + NULLIF ( - - 74, 92 - + 78 ) ) + - 33 / + 1 END, + 41 * - 62 ) AS INTEGER ) AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT ALL + COUNT( DISTINCT - + 74 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5583
SELECT ALL + COUNT ( DISTINCT - + 74 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5584
SELECT + 18 * - MAX( CAST( - - CAST( + + 42 AS SIGNED ) AS SIGNED ) ) AS col1
----
-756

skipif mysql # not compatible
query I rowsort label-5584
SELECT + 18 * - MAX ( CAST ( - - CAST ( + + 42 AS INTEGER ) AS INTEGER ) ) AS col1
----
-756

query I rowsort
SELECT + 77 * - 83
----
-6391

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT DISTINCT COUNT( * ) * + 51 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-5586
SELECT DISTINCT COUNT ( * ) * + 51 AS col1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5587
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 66 + 39 + - 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5587
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 66 + 39 + - 78 AS col1
----
NULL

query I rowsort
SELECT - 64 + - + 69 * - - 11 - - 18
----
-805

query I rowsort
SELECT ALL + CASE 15 WHEN 70 THEN 56 * 80 * - 22 * 26 * + 75 / + + 54 ELSE 95 END AS col0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5590
SELECT + CAST( - 7 AS SIGNED )
----
-7

skipif mysql # not compatible
query I rowsort label-5590
SELECT + CAST ( - 7 AS INTEGER )
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5591
SELECT - COUNT( * ) * + + 68 * + 83 * CAST( - + 90 AS SIGNED )
----
507960

skipif mysql # not compatible
query I rowsort label-5591
SELECT - COUNT ( * ) * + + 68 * + 83 * CAST ( - + 90 AS INTEGER )
----
507960

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT NULLIF ( - 81, 47 * MIN( ALL + 50 ) + + ( + ( 36 ) ) / + - 72 * + 92 )
----
-81

skipif mysql # not compatible
query I rowsort label-5592
SELECT NULLIF ( - 81, 47 * MIN ( ALL + 50 ) + + ( + ( 36 ) ) / + - 72 * + 92 )
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-5593
SELECT + COUNT( * ) AS col2, + 34
----
1
34

skipif mysql # not compatible
query II rowsort label-5593
SELECT + COUNT ( * ) AS col2, + 34
----
1
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT ALL - + 54 * + + COUNT( * ) + - - 89 col2
----
35

skipif mysql # not compatible
query I rowsort label-5594
SELECT ALL - + 54 * + + COUNT ( * ) + - - 89 col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT + 20 * + ( NULLIF ( 37, + + 0 / 3 - - 95 + + + 90 ) ) + - - 15 * - COUNT( * ) col2
----
725

skipif mysql # not compatible
query I rowsort label-5595
SELECT + 20 * + ( NULLIF ( 37, + + 0 / 3 - - 95 + + + 90 ) ) + - - 15 * - COUNT ( * ) col2
----
725

query I rowsort
SELECT - 93 - - + 75 col0
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5597
SELECT ALL CAST( NULL AS SIGNED ) * + COUNT( * ) / + COUNT( * ) + + 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5597
SELECT ALL CAST ( NULL AS INTEGER ) * + COUNT ( * ) / + COUNT ( * ) + + 85 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + + 99 * - 59 AS col1
----
-5841

query I rowsort
SELECT - + 97 * + - 19 AS col1
----
1843

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5600
SELECT - 39 DIV - + COUNT( * ) - - 43
----
82

skipif mysql # not compatible
query I rowsort label-5600
SELECT - 39 / - + COUNT ( * ) - - 43
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT + 9 * - ( - COUNT( * ) ) + + 33 - 32 * 42
----
-1302

skipif mysql # not compatible
query I rowsort label-5601
SELECT + 9 * - ( - COUNT ( * ) ) + + 33 - 32 * 42
----
-1302

query II rowsort
SELECT - 44 AS col1, 27
----
-44
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5603
SELECT ALL - - 82 DIV - 97 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5603
SELECT ALL - - 82 / - 97 + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5604
SELECT - - COUNT( * ) DIV ( + + 77 )
----
0

skipif mysql # not compatible
query I rowsort label-5604
SELECT - - COUNT ( * ) / ( + + 77 )
----
0

query I rowsort
SELECT DISTINCT ( + 80 ) AS col1
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5606
SELECT + + CAST( NULL AS SIGNED ) * - + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-5606
SELECT + + CAST ( NULL AS INTEGER ) * - + 25
----
NULL

query II rowsort
SELECT ALL - 95, NULLIF ( + 73, 99 ) + + 46 AS col1
----
-95
119

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5608
SELECT 38 AS col1, 58 * + + CAST( 58 AS SIGNED ) * - 53 - 83 - + + 86 AS col0
----
38
-178461

skipif mysql # not compatible
query II rowsort label-5608
SELECT 38 AS col1, 58 * + + CAST ( 58 AS INTEGER ) * - 53 - 83 - + + 86 AS col0
----
38
-178461

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5609
SELECT - CAST( NULL AS SIGNED ) * + 13 * + 31 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5609
SELECT - CAST ( NULL AS INTEGER ) * + 13 * + 31 col0
----
NULL

query I rowsort
SELECT + 54 * + 17 col1
----
918

onlyif mysql # aggregate syntax: 
query II rowsort label-5611
SELECT + COUNT( * ) - - 49 AS col2, 34 * + COUNT( * ) * 42 * - - 91 col1
----
50
129948

skipif mysql # not compatible
query II rowsort label-5611
SELECT + COUNT ( * ) - - 49 AS col2, 34 * + COUNT ( * ) * 42 * - - 91 col1
----
50
129948

query II rowsort
SELECT ALL 53 col1, + 62 AS col2
----
53
62

query II rowsort
SELECT 73 AS col1, - 66 AS col1
----
73
-66

query I rowsort
SELECT ALL 59 + - 7 AS col1
----
52

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5615
SELECT ALL - CAST( NULL AS DECIMAL ) + + + AVG ( ALL + - 15 ) * - 22 + + 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5615
SELECT ALL - CAST ( NULL AS REAL ) + + + AVG ( ALL + - 15 ) * - 22 + + 28 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5616
SELECT ALL + 66 + - - 52 * + 86 + CAST( NULL AS SIGNED ) + - 73 + - COUNT( * ) * - - MAX( DISTINCT + 24 ) * + - COUNT( * ) * + 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5616
SELECT ALL + 66 + - - 52 * + 86 + CAST ( NULL AS INTEGER ) + - 73 + - COUNT ( * ) * - - MAX ( DISTINCT + 24 ) * + - COUNT ( * ) * + 24 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5617
SELECT + 65, 96 * - COUNT( * ) * 93 DIV + - 3 AS col2
----
65
2976

skipif mysql # not compatible
query II rowsort label-5617
SELECT + 65, 96 * - COUNT ( * ) * 93 / + - 3 AS col2
----
65
2976

onlyif mysql # DIV for integer division: 
query I rowsort label-5618
SELECT 66 DIV - - NULLIF ( - 4, + 58 ) - - + 86
----
70

skipif mysql # not compatible
query I rowsort label-5618
SELECT 66 / - - NULLIF ( - 4, + 58 ) - - + 86
----
70

query I rowsort
SELECT ALL 46 + + - 92
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT - 14 * 13 + - - COUNT( * ) AS col2
----
-181

skipif mysql # not compatible
query I rowsort label-5620
SELECT - 14 * 13 + - - COUNT ( * ) AS col2
----
-181

query II rowsort
SELECT ( - 28 ) * 8 * + 5, + 21 AS col2
----
-1120
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5622
SELECT MAX( DISTINCT CAST( + - 12 AS SIGNED ) ) DIV + + 13 + - + 39 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-5622
SELECT MAX ( DISTINCT CAST ( + - 12 AS INTEGER ) ) / + + 13 + - + 39 AS col2
----
-39

query I rowsort
SELECT 72 * - 89 AS col2
----
-6408

onlyif mysql # aggregate syntax: 
query II rowsort label-5624
SELECT ALL - 92 AS col0, - COUNT( * )
----
-92
-1

skipif mysql # not compatible
query II rowsort label-5624
SELECT ALL - 92 AS col0, - COUNT ( * )
----
-92
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5625
SELECT + ( + COUNT( * ) ) AS col1, + COALESCE ( ( - 5 ), + 20 + + + 36 )
----
1
-5

skipif mysql # not compatible
query II rowsort label-5625
SELECT + ( + COUNT ( * ) ) AS col1, + COALESCE ( ( - 5 ), + 20 + + + 36 )
----
1
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-5626
SELECT ALL + 56 * + + 72 + - + 83 * + 35 AS col2, - 77 - - + ( + COUNT( * ) ) AS col0
----
1127
-76

skipif mysql # not compatible
query II rowsort label-5626
SELECT ALL + 56 * + + 72 + - + 83 * + 35 AS col2, - 77 - - + ( + COUNT ( * ) ) AS col0
----
1127
-76

query II rowsort
SELECT + 94 AS col0, 51
----
94
51

query II rowsort
SELECT + 27, 16 AS col0
----
27
16

query I rowsort
SELECT DISTINCT 27 - + 84 * + + 57 * 10 * - - 86
----
-4117653

onlyif mysql # aggregate syntax: 
query I rowsort label-5630
SELECT ALL - CASE + MAX( DISTINCT + - 37 ) WHEN 29 THEN 79 + - 76 * + - COUNT( * ) ELSE - 7 + + - ( - 59 ) END
----
-52

skipif mysql # not compatible
query I rowsort label-5630
SELECT ALL - CASE + MAX ( DISTINCT + - 37 ) WHEN 29 THEN 79 + - 76 * + - COUNT ( * ) ELSE - 7 + + - ( - 59 ) END
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5631
SELECT DISTINCT - 33, CAST( CASE + 80 WHEN + + 35 THEN NULL ELSE - AVG ( 41 ) * + COUNT( - - 43 ) * + - 91 + - + 39 END AS SIGNED ) * 40 * - 92 AS col1
----
-33
-13586560

skipif mysql # not compatible
query II rowsort label-5631
SELECT DISTINCT - 33, CAST ( CASE + 80 WHEN + + 35 THEN NULL ELSE - AVG ( 41 ) * + COUNT ( - - 43 ) * + - 91 + - + 39 END AS INTEGER ) * 40 * - 92 AS col1
----
-33
-13586560

query I rowsort
SELECT - 28 * - 37 * 76 AS col0
----
78736

query I rowsort
SELECT + 37 + - 92 AS col1
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5634
SELECT DISTINCT - 24 * - 74 col1, 89 - + - COALESCE ( + 19, - - SUM( - + ( + - 47 ) ), + 60 DIV - 58 ) + - + 11
----
1776
97

skipif mysql # not compatible
query II rowsort label-5634
SELECT DISTINCT - 24 * - 74 col1, 89 - + - COALESCE ( + 19, - - SUM ( - + ( + - 47 ) ), + 60 / - 58 ) + - + 11
----
1776
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT DISTINCT 16 * 32 * + 60 * + COUNT( * )
----
30720

skipif mysql # not compatible
query I rowsort label-5635
SELECT DISTINCT 16 * 32 * + 60 * + COUNT ( * )
----
30720

query I rowsort
SELECT 30 * + 29 AS col2
----
870

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT - 87 - - ( - 60 ) - COUNT( - - ( - 96 ) )
----
-148

skipif mysql # not compatible
query I rowsort label-5637
SELECT - 87 - - ( - 60 ) - COUNT ( - - ( - 96 ) )
----
-148

query II rowsort
SELECT ALL - 51 AS col2, 72 + + 32 + + 45
----
-51
149

query I rowsort
SELECT 9 * ( + 85 ) AS col1
----
765

query II rowsort
SELECT 92 + 32, + 86 AS col1
----
124
86

query I rowsort
SELECT 2 + 36
----
38

query I rowsort
SELECT ALL - 24 * + - ( - - 50 )
----
1200

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5643
SELECT 8 DIV 38 * COALESCE ( CAST( NULL AS SIGNED ), 43 )
----
0

skipif mysql # not compatible
query I rowsort label-5643
SELECT 8 / 38 * COALESCE ( CAST ( NULL AS INTEGER ), 43 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5644
SELECT DISTINCT COUNT( * ) * SUM( ALL + - 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-5644
SELECT DISTINCT COUNT ( * ) * SUM ( ALL + - 95 )
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-5645
SELECT 21 DIV + ( - 65 )
----
0

skipif mysql # not compatible
query I rowsort label-5645
SELECT 21 / + ( - 65 )
----
0

query II rowsort
SELECT DISTINCT - 79 + 21 * - - 89 AS col1, + 74
----
1790
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT ALL 41 + + SUM( - - 8 )
----
49

skipif mysql # not compatible
query I rowsort label-5647
SELECT ALL 41 + + SUM ( - - 8 )
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-5648
SELECT 71 DIV - 43 + - 19 * 35
----
-666

skipif mysql # not compatible
query I rowsort label-5648
SELECT 71 / - 43 + - 19 * 35
----
-666

onlyif mysql # aggregate syntax: 
query II rowsort label-5649
SELECT ALL 5 + - 69, 70 * 65 * COUNT( * ) * - 34 + MAX( - ( - 53 ) ) AS col1
----
-64
-154647

skipif mysql # not compatible
query II rowsort label-5649
SELECT ALL 5 + - 69, 70 * 65 * COUNT ( * ) * - 34 + MAX ( - ( - 53 ) ) AS col1
----
-64
-154647

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT 27 * + 3 * - + ( - MIN( DISTINCT 45 ) ) * 30 AS col2
----
109350

skipif mysql # not compatible
query I rowsort label-5650
SELECT 27 * + 3 * - + ( - MIN ( DISTINCT 45 ) ) * 30 AS col2
----
109350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5651
SELECT 89 DIV + CAST( 93 AS SIGNED ) + - ( COUNT( + 29 ) ) + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5651
SELECT 89 / + CAST ( 93 AS INTEGER ) + - ( COUNT ( + 29 ) ) + COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT SUM( + - ( - 3 ) )
----
3

skipif mysql # not compatible
query I rowsort label-5652
SELECT SUM ( + - ( - 3 ) )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5653
SELECT ALL - CAST( + 70 AS SIGNED ) AS col0, - 58 AS col0
----
-70
-58

skipif mysql # not compatible
query II rowsort label-5653
SELECT ALL - CAST ( + 70 AS INTEGER ) AS col0, - 58 AS col0
----
-70
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT DISTINCT SUM( - ( 70 ) ) - - 48
----
-22

skipif mysql # not compatible
query I rowsort label-5654
SELECT DISTINCT SUM ( - ( 70 ) ) - - 48
----
-22

query II rowsort
SELECT + - 20 * - 42 * - 47 + 90 + 73, 93 AS col1
----
-39317
93

query I rowsort
SELECT 96 * + 1 + - 72
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-5657
SELECT ALL 15 DIV - 22 * + + 48
----
0

skipif mysql # not compatible
query I rowsort label-5657
SELECT ALL 15 / - 22 * + + 48
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5658
SELECT 27 + - + 92 AS col2, NULLIF ( + - 67, + 39 * - 81 + + COUNT( * ) ) col2
----
-65
-67

skipif mysql # not compatible
query II rowsort label-5658
SELECT 27 + - + 92 AS col2, NULLIF ( + - 67, + 39 * - 81 + + COUNT ( * ) ) col2
----
-65
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5659
SELECT + - 91 * 93 + - 56 + + 62 + - + 21 * 92 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5659
SELECT + - 91 * 93 + - 56 + + 62 + - + 21 * 92 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT 19 * + - CASE + + 57 WHEN - 98 THEN NULL WHEN - 53 * - 25 THEN + MAX( ALL - 41 ) * + 13 END / + 79 - + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-5660
SELECT 19 * + - CASE + + 57 WHEN - 98 THEN NULL WHEN - 53 * - 25 THEN + MAX ( ALL - 41 ) * + 13 END / + 79 - + 50
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5661
SELECT + 73 * - 79 * - 74 * - - 73 + + ( 82 ) DIV 8
----
31153344

skipif mysql # not compatible
query I rowsort label-5661
SELECT + 73 * - 79 * - 74 * - - 73 + + ( 82 ) / 8
----
31153344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5662
SELECT DISTINCT CAST( + 0 AS SIGNED ) - 55, 89 * - + CASE ( - - 4 ) WHEN + NULLIF ( - 53, - 75 * + + ( + 29 ) / + ( - 70 ) * - 75 * - COUNT( * ) * - 83 + + ( + - ( - - 85 ) ) + + 82 + COALESCE ( - + 78, - ( 18 ) ) ) THEN NULL WHEN + 87 THEN NULL WHEN COALESCE ( - - 77, - 93 ) THEN - - 67 ELSE NULL END + 92 AS col2
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-5662
SELECT DISTINCT CAST ( + 0 AS INTEGER ) - 55, 89 * - + CASE ( - - 4 ) WHEN + NULLIF ( - 53, - 75 * + + ( + 29 ) / + ( - 70 ) * - 75 * - COUNT ( * ) * - 83 + + ( + - ( - - 85 ) ) + + 82 + COALESCE ( - + 78, - ( 18 ) ) ) THEN NULL WHEN + 87 THEN NULL WHEN COALESCE ( - - 77, - 93 ) THEN - - 67 ELSE NULL END + 92 AS col2
----
-55
NULL

query I rowsort
SELECT ALL - ( + + 58 ) col1
----
-58

query I rowsort
SELECT ALL - 84 * - + 95 col2
----
7980

onlyif mysql # aggregate syntax: 
query I rowsort label-5665
SELECT CASE + 42 WHEN 85 - 35 + 50 * 61 * + - 26 * - COUNT( 42 ) THEN - MAX( DISTINCT 8 ) WHEN COUNT( * ) THEN NULL END / 76 * 28
----
NULL

skipif mysql # not compatible
query I rowsort label-5665
SELECT CASE + 42 WHEN 85 - 35 + 50 * 61 * + - 26 * - COUNT ( 42 ) THEN - MAX ( DISTINCT 8 ) WHEN COUNT ( * ) THEN NULL END / 76 * 28
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5666
SELECT COALESCE ( - + COUNT( * ), - - CASE - 9 WHEN + CAST( NULL AS DECIMAL ) * - 10 / + - 64 + - 12 THEN NULL WHEN SUM( ALL 81 ) + + - 6 THEN MAX( ALL + 91 ) ELSE NULL END, COUNT( * ) ) * + 31 + + 97 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-5666
SELECT COALESCE ( - + COUNT ( * ), - - CASE - 9 WHEN + CAST ( NULL AS REAL ) * - 10 / + - 64 + - 12 THEN NULL WHEN SUM ( ALL 81 ) + + - 6 THEN MAX ( ALL + 91 ) ELSE NULL END, COUNT ( * ) ) * + 31 + + 97 AS col1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5667
SELECT DISTINCT + CAST( + 98 AS SIGNED )
----
98

skipif mysql # not compatible
query I rowsort label-5667
SELECT DISTINCT + CAST ( + 98 AS INTEGER )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT - ( + MAX( ALL - 63 ) ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-5668
SELECT - ( + MAX ( ALL - 63 ) ) AS col0
----
63

query II rowsort
SELECT 24 * 38, 85 AS col1
----
912
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT 68 * + + COUNT( ALL - - 44 )
----
68

skipif mysql # not compatible
query I rowsort label-5670
SELECT 68 * + + COUNT ( ALL - - 44 )
----
68

query I rowsort
SELECT ALL - - NULLIF ( - 1, - 88 * - 15 - + 3 ) + 12 + 92 AS col0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT - CASE - NULLIF ( + + 19, - + 63 * + 51 + + - NULLIF ( + - 72, + COUNT( * ) ) ) WHEN - 39 + - - COUNT( * ) - + 80 - + COUNT( * ) + + 14 * - 34 * + - 18 * + 39 * + + 28 THEN NULL ELSE - 76 END AS col1
----
76

skipif mysql # not compatible
query I rowsort label-5672
SELECT - CASE - NULLIF ( + + 19, - + 63 * + 51 + + - NULLIF ( + - 72, + COUNT ( * ) ) ) WHEN - 39 + - - COUNT ( * ) - + 80 - + COUNT ( * ) + + 14 * - 34 * + - 18 * + 39 * + + 28 THEN NULL ELSE - 76 END AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT ALL SUM( + 41 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-5673
SELECT ALL SUM ( + 41 ) AS col1
----
41

query I rowsort
SELECT - 78 * 94
----
-7332

query I rowsort
SELECT ALL 83 + - 33 * 41 * 97
----
-131158

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5676
SELECT DISTINCT - 20 + - + 61 + + + 16 + 7 + + - CASE + ( 76 ) WHEN - - 42 THEN NULL WHEN 32 THEN + 1 * + + 92 DIV + + COUNT( * ) ELSE - - 44 END, - 34 + - MIN( 22 ) col0
----
-102
-56

skipif mysql # not compatible
query II rowsort label-5676
SELECT DISTINCT - 20 + - + 61 + + + 16 + 7 + + - CASE + ( 76 ) WHEN - - 42 THEN NULL WHEN 32 THEN + 1 * + + 92 / + + COUNT ( * ) ELSE - - 44 END, - 34 + - MIN ( 22 ) col0
----
-102
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT ALL SUM( DISTINCT - + 54 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-5677
SELECT ALL SUM ( DISTINCT - + 54 ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT - 47 * - COUNT( * ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-5678
SELECT - 47 * - COUNT ( * ) AS col0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5679
SELECT DISTINCT + COALESCE ( CAST( - 12 AS SIGNED ), + - 52 ) + CASE + + 44 WHEN 33 THEN - - ( - 32 ) + + CAST( NULL AS SIGNED ) WHEN + - 2 THEN NULL END + - - NULLIF ( ( - 71 ), + 9 * + 74 / 94 ) / - - 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5679
SELECT DISTINCT + COALESCE ( CAST ( - 12 AS INTEGER ), + - 52 ) + CASE + + 44 WHEN 33 THEN - - ( - 32 ) + + CAST ( NULL AS INTEGER ) WHEN + - 2 THEN NULL END + - - NULLIF ( ( - 71 ), + 9 * + 74 / 94 ) / - - 65 AS col1
----
NULL

query II rowsort
SELECT - 8 AS col2, 34
----
-8
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5681
SELECT - 12 - + + COALESCE ( - + 91, - NULLIF ( + ( COUNT( * ) ), + - 79 * NULLIF ( + 38, - NULLIF ( - ( 74 ), - 82 + - 63 ) ) - ( - 29 ) * + - ( - - COUNT( * ) ) ) ) * + 57 * - 43
----
-223053

skipif mysql # not compatible
query I rowsort label-5681
SELECT - 12 - + + COALESCE ( - + 91, - NULLIF ( + ( COUNT ( * ) ), + - 79 * NULLIF ( + 38, - NULLIF ( - ( 74 ), - 82 + - 63 ) ) - ( - 29 ) * + - ( - - COUNT ( * ) ) ) ) * + 57 * - 43
----
-223053

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT + COUNT( * ) * - 73 * 88 AS col0
----
-6424

skipif mysql # not compatible
query I rowsort label-5682
SELECT + COUNT ( * ) * - 73 * 88 AS col0
----
-6424

query I rowsort
SELECT DISTINCT + 76 * - + 77 AS col0
----
-5852

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT - MIN( ALL + 63 ) + + + 46 * - 9 AS col0
----
-477

skipif mysql # not compatible
query I rowsort label-5684
SELECT - MIN ( ALL + 63 ) + + + 46 * - 9 AS col0
----
-477

query I rowsort
SELECT ALL + ( + 92 ) - 35
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT - MAX( 31 ) * + 42
----
-1302

skipif mysql # not compatible
query I rowsort label-5686
SELECT - MAX ( 31 ) * + 42
----
-1302

query I rowsort
SELECT DISTINCT 93 * - 15
----
-1395

query I rowsort
SELECT - 58 * - 84
----
4872

query II rowsort
SELECT ALL + 97 AS col0, 75 * - 51 AS col1
----
97
-3825

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5690
SELECT + - COUNT( * ) / + CASE + 21 WHEN - 29 THEN + + CAST( NULL AS SIGNED ) WHEN + 55 + - 83 THEN + 49 / 86 + 88 WHEN 99 + + 64 THEN NULL ELSE NULL END * - COUNT( * ) * - 55 * - + 79 + - 52 - - 78 * + 27 - NULLIF ( - 2, + + 22 * + ( 72 ) * - + 39 * + 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5690
SELECT + - COUNT ( * ) / + CASE + 21 WHEN - 29 THEN + + CAST ( NULL AS INTEGER ) WHEN + 55 + - 83 THEN + 49 / 86 + 88 WHEN 99 + + 64 THEN NULL ELSE NULL END * - COUNT ( * ) * - 55 * - + 79 + - 52 - - 78 * + 27 - NULLIF ( - 2, + + 22 * + ( 72 ) * - + 39 * + 47 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5691
SELECT DISTINCT - - 79 * COUNT( * ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-5691
SELECT DISTINCT - - 79 * COUNT ( * ) AS col1
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5692
SELECT + 44 - - + COUNT( * ) * + CAST( + COALESCE ( - CASE - + ( - + 30 ) WHEN + 3 * + AVG ( DISTINCT - + 62 ) THEN NULL ELSE - COALESCE ( - COUNT( * ), - - 68 ) * 56 END, + 22 ) AS SIGNED ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-5692
SELECT + 44 - - + COUNT ( * ) * + CAST ( + COALESCE ( - CASE - + ( - + 30 ) WHEN + 3 * + AVG ( DISTINCT - + 62 ) THEN NULL ELSE - COALESCE ( - COUNT ( * ), - - 68 ) * 56 END, + 22 ) AS INTEGER ) AS col2
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5693
SELECT - - CAST( ( - COALESCE ( + 48, - COUNT( * ) + - + 1 ) ) AS SIGNED ) * - CASE - 8 WHEN - 67 THEN + CAST( NULL AS SIGNED ) WHEN + 6 THEN NULL END * - SUM( + 13 ) + + 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5693
SELECT - - CAST ( ( - COALESCE ( + 48, - COUNT ( * ) + - + 1 ) ) AS INTEGER ) * - CASE - 8 WHEN - 67 THEN + CAST ( NULL AS INTEGER ) WHEN + 6 THEN NULL END * - SUM ( + 13 ) + + 52 AS col0
----
NULL

query I rowsort
SELECT + 58 * - 81 * + 35 + - 6
----
-164436

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5695
SELECT 35 DIV + + CAST( ( NULLIF ( + 6, - 63 ) ) AS SIGNED ) + - COUNT( * ) * - COALESCE ( - 42, + 51 * - 42 DIV 38 ) + + 91 + - - CAST( + + ( MIN( ALL - 13 ) ) AS SIGNED ) * 10
----
-76

skipif mysql # not compatible
query I rowsort label-5695
SELECT 35 / + + CAST ( ( NULLIF ( + 6, - 63 ) ) AS INTEGER ) + - COUNT ( * ) * - COALESCE ( - 42, + 51 * - 42 / 38 ) + + 91 + - - CAST ( + + ( MIN ( ALL - 13 ) ) AS INTEGER ) * 10
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-5696
SELECT ALL + + COUNT( * ), COUNT( - + 52 ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-5696
SELECT ALL + + COUNT ( * ), COUNT ( - + 52 ) AS col1
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT + 19 * MAX( ALL + 50 ) col1
----
950

skipif mysql # not compatible
query I rowsort label-5697
SELECT + 19 * MAX ( ALL + 50 ) col1
----
950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5698
SELECT ALL + CAST( - 63 AS SIGNED ) col0
----
-63

skipif mysql # not compatible
query I rowsort label-5698
SELECT ALL + CAST ( - 63 AS INTEGER ) col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5699
SELECT ALL SUM( DISTINCT + + 73 ) * - - 50 AS col2
----
3650

skipif mysql # not compatible
query I rowsort label-5699
SELECT ALL SUM ( DISTINCT + + 73 ) * - - 50 AS col2
----
3650

query I rowsort
SELECT ALL + - COALESCE ( + 97, 66 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT + 41 * ( - 24 ) - - COUNT( * )
----
-983

skipif mysql # not compatible
query I rowsort label-5701
SELECT + 41 * ( - 24 ) - - COUNT ( * )
----
-983

query I rowsort
SELECT + - 92 + 1 AS col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5703
SELECT DISTINCT 61 * - + 75 - + COUNT( ALL - 52 )
----
-4576

skipif mysql # not compatible
query I rowsort label-5703
SELECT DISTINCT 61 * - + 75 - + COUNT ( ALL - 52 )
----
-4576

query II rowsort
SELECT ALL 57 * 55 + + - 75 AS col2, + 11
----
3060
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT ALL SUM( ALL - - 81 )
----
81

skipif mysql # not compatible
query I rowsort label-5705
SELECT ALL SUM ( ALL - - 81 )
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5706
SELECT ALL COUNT( * ) * 22 + - 63 * + CAST( NULL AS SIGNED ) + - 23 - + COUNT( * ) + + + 22 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5706
SELECT ALL COUNT ( * ) * 22 + - 63 * + CAST ( NULL AS INTEGER ) + - 23 - + COUNT ( * ) + + + 22 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5707
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - ( + 66 ) + + 35 + + 55 * + + 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5707
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - ( + 66 ) + + 35 + + 55 * + + 42 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT MAX( + - 1 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5708
SELECT MAX ( + - 1 ) AS col1
----
-1

query I rowsort
SELECT ALL + 93 * 75 * - 63 * + + 12 + - 46
----
-5273146

onlyif mysql # aggregate syntax: 
query I rowsort label-5710
SELECT + COUNT( * ) + - + COUNT( * ) + - 58 * + ( + - 19 )
----
1102

skipif mysql # not compatible
query I rowsort label-5710
SELECT + COUNT ( * ) + - + COUNT ( * ) + - 58 * + ( + - 19 )
----
1102

onlyif mysql # aggregate syntax: 
query I rowsort label-5711
SELECT ALL COUNT( * ) + ( + 80 )
----
81

skipif mysql # not compatible
query I rowsort label-5711
SELECT ALL COUNT ( * ) + ( + 80 )
----
81

query I rowsort
SELECT + 36 * + - 62 * + - 3 * 98 AS col1
----
656208

query I rowsort
SELECT - 0 + - - 14 AS col1
----
14

query I rowsort
SELECT + 88 + + 87 + 29
----
204

query I rowsort
SELECT ALL NULLIF ( - 23, ( 54 ) )
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5716
SELECT - 64 + - + COUNT( * ) + - + 2 - + 98 + - COALESCE ( 3, - 75 * + - 5 + 31, - 15 DIV - - CASE 12 WHEN - - 98 THEN - 48 * 54 END - 40 + + NULLIF ( 74, 62 ) ), 86 DIV - CAST( 55 AS SIGNED ) col2
----
-168
-1

skipif mysql # not compatible
query II rowsort label-5716
SELECT - 64 + - + COUNT ( * ) + - + 2 - + 98 + - COALESCE ( 3, - 75 * + - 5 + 31, - 15 / - - CASE 12 WHEN - - 98 THEN - 48 * 54 END - 40 + + NULLIF ( 74, 62 ) ), 86 / - CAST ( 55 AS INTEGER ) col2
----
-168
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5717
SELECT DISTINCT NULLIF ( 50, + 52 / - MAX( + 45 ) ) * - - 83 * - - 36 * 72 + - 71 AS col0
----
10756729

skipif mysql # not compatible
query I rowsort label-5717
SELECT DISTINCT NULLIF ( 50, + 52 / - MAX ( + 45 ) ) * - - 83 * - - 36 * 72 + - 71 AS col0
----
10756729

query I rowsort
SELECT ALL ( - 34 ) AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT - CASE - - 75 WHEN - ( + 35 ) * - + 98 + + - COUNT( * ) * 85 THEN NULL ELSE - 75 - 25 END + + - 38 + + + 24 - + 14 - - + 0 * - + MAX( - + 65 ) * - - 10 col1
----
72

skipif mysql # not compatible
query I rowsort label-5719
SELECT - CASE - - 75 WHEN - ( + 35 ) * - + 98 + + - COUNT ( * ) * 85 THEN NULL ELSE - 75 - 25 END + + - 38 + + + 24 - + 14 - - + 0 * - + MAX ( - + 65 ) * - - 10 col1
----
72

query I rowsort
SELECT ALL ( + - 60 ) * - 63 AS col1
----
3780

query I rowsort
SELECT - 34 + - 40 * 51
----
-2074

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5722
SELECT DISTINCT NULLIF ( + COALESCE ( - - CASE + 1 WHEN 65 * + + 23 THEN NULL WHEN - 96 THEN NULL ELSE - 15 END, - CAST( + - 77 AS SIGNED ) ), - - 13 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-5722
SELECT DISTINCT NULLIF ( + COALESCE ( - - CASE + 1 WHEN 65 * + + 23 THEN NULL WHEN - 96 THEN NULL ELSE - 15 END, - CAST ( + - 77 AS INTEGER ) ), - - 13 ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT ALL CASE + 57 WHEN + ( - 2 ) THEN NULL WHEN COUNT( * ) THEN - + COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5723
SELECT ALL CASE + 57 WHEN + ( - 2 ) THEN NULL WHEN COUNT ( * ) THEN - + COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5724
SELECT - + NULLIF ( 6, - COUNT( ALL + 19 ) ) DIV - 27 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5724
SELECT - + NULLIF ( 6, - COUNT ( ALL + 19 ) ) / - 27 AS col0
----
0

query I rowsort
SELECT - 37 * + 29 * 0 - 78 AS col1
----
-78

onlyif mysql # DIV for integer division: 
query II rowsort label-5726
SELECT DISTINCT + 86 DIV + 67 col0, - 36
----
1
-36

skipif mysql # not compatible
query II rowsort label-5726
SELECT DISTINCT + 86 / + 67 col0, - 36
----
1
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5727
SELECT DISTINCT + COUNT( * ) * + + 82 * + CASE 45 WHEN + AVG ( + 1 ) THEN NULL WHEN 17 THEN - COUNT( * ) * 95 * CASE - 82 WHEN + - 69 THEN CAST( NULL AS SIGNED ) END ELSE + 36 END + - - 87 + - - 77 - + - 49 AS col2, 13 * - - 15 * + MIN( - 1 ) DIV + ( + COUNT( * ) ) + - ( - + 31 ) + - - 85 DIV NULLIF ( + COUNT( * ), - MAX( DISTINCT + COALESCE ( + CAST( NULL AS SIGNED ), ( - + 53 ) ) ) * - - 99 + + COUNT( * ) )
----
3165
-79

skipif mysql # not compatible
query II rowsort label-5727
SELECT DISTINCT + COUNT ( * ) * + + 82 * + CASE 45 WHEN + AVG ( + 1 ) THEN NULL WHEN 17 THEN - COUNT ( * ) * 95 * CASE - 82 WHEN + - 69 THEN CAST ( NULL AS INTEGER ) END ELSE + 36 END + - - 87 + - - 77 - + - 49 AS col2, 13 * - - 15 * + MIN ( - 1 ) / + ( + COUNT ( * ) ) + - ( - + 31 ) + - - 85 / NULLIF ( + COUNT ( * ), - MAX ( DISTINCT + COALESCE ( + CAST ( NULL AS INTEGER ), ( - + 53 ) ) ) * - - 99 + + COUNT ( * ) )
----
3165
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5728
SELECT DISTINCT + + 73 DIV 20 * - 50 + + ( + - COUNT( * ) ) AS col0
----
-151

skipif mysql # not compatible
query I rowsort label-5728
SELECT DISTINCT + + 73 / 20 * - 50 + + ( + - COUNT ( * ) ) AS col0
----
-151

query I rowsort
SELECT ALL 61 * + 9
----
549

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5730
SELECT DISTINCT 65 * 96 + + COUNT( * ) DIV 52 * + 1
----
6240

skipif mysql # not compatible
query I rowsort label-5730
SELECT DISTINCT 65 * 96 + + COUNT ( * ) / 52 * + 1
----
6240

query I rowsort
SELECT - + 12 * ( + 49 )
----
-588

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT + - COUNT( * ) + - + ( - 1 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5732
SELECT + - COUNT ( * ) + - + ( - 1 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5733
SELECT ALL 10 DIV - 13 + + COUNT( * ) + - + 82, MAX( + 80 ) + + 74 AS col0
----
-81
154

skipif mysql # not compatible
query II rowsort label-5733
SELECT ALL 10 / - 13 + + COUNT ( * ) + - + 82, MAX ( + 80 ) + + 74 AS col0
----
-81
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5734
SELECT ALL - 43 + + + CAST( 88 AS SIGNED ) * - 53 AS col0
----
-4707

skipif mysql # not compatible
query I rowsort label-5734
SELECT ALL - 43 + + + CAST ( 88 AS INTEGER ) * - 53 AS col0
----
-4707

query I rowsort
SELECT 38 * + 64 AS col0
----
2432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5736
SELECT ALL + CAST( NULL AS SIGNED ) + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-5736
SELECT ALL + CAST ( NULL AS INTEGER ) + 3
----
NULL

query II rowsort
SELECT 75 AS col1, - 77 AS col2
----
75
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5738
SELECT ALL CAST( NULL AS SIGNED ) - MIN( DISTINCT + + 95 ) - - + 66 + 1 - MIN( DISTINCT - + 43 ) + - 82 * 25 / 47 + 27 / + 7 + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-5738
SELECT ALL CAST ( NULL AS INTEGER ) - MIN ( DISTINCT + + 95 ) - - + 66 + 1 - MIN ( DISTINCT - + 43 ) + - 82 * 25 / 47 + 27 / + 7 + 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT NULLIF ( - 88, - - 92 * 94 ) * + COUNT( * ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-5739
SELECT NULLIF ( - 88, - - 92 * 94 ) * + COUNT ( * ) AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5740
SELECT CASE + 95 WHEN NULLIF ( 41, - - COUNT( * ) + - COUNT( * ) + 40 + + 48 ) + + ( - + ( - 54 ) ) THEN COALESCE ( COUNT( - ( - 20 ) ), + 27 * + - 67 + 54, + 28 * + ( ( - 83 ) ) + - 20 ) WHEN - 21 / 7 * - 22 THEN - + 56 - - + 81 END + 67 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-5740
SELECT CASE + 95 WHEN NULLIF ( 41, - - COUNT ( * ) + - COUNT ( * ) + 40 + + 48 ) + + ( - + ( - 54 ) ) THEN COALESCE ( COUNT ( - ( - 20 ) ), + 27 * + - 67 + 54, + 28 * + ( ( - 83 ) ) + - 20 ) WHEN - 21 / 7 * - 22 THEN - + 56 - - + 81 END + 67 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5741
SELECT DISTINCT NULLIF ( - 24, + 12 / 25 / COUNT( * ) ) * - 7 * - - 43 AS col0
----
7224

skipif mysql # not compatible
query I rowsort label-5741
SELECT DISTINCT NULLIF ( - 24, + 12 / 25 / COUNT ( * ) ) * - 7 * - - 43 AS col0
----
7224

query I rowsort
SELECT ALL - ( + 71 ) - + - 32
----
-39

query I rowsort
SELECT ALL 76 - + + 71 col2
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5744
SELECT ALL - 31 DIV 76 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5744
SELECT ALL - 31 / 76 AS col2
----
0

query I rowsort
SELECT NULLIF ( + 92, 38 ) * - + 36
----
-3312

query II rowsort
SELECT DISTINCT 76, 16 AS col2
----
76
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5747
SELECT 82 - + CAST( NULL AS SIGNED ) * 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5747
SELECT 82 - + CAST ( NULL AS INTEGER ) * 73 AS col2
----
NULL

query I rowsort
SELECT ALL 4 * + + 52
----
208

query I rowsort
SELECT DISTINCT ( + - 70 ) AS col1
----
-70

query II rowsort
SELECT ALL - 71, 29 * - 6 AS col2
----
-71
-174

onlyif mysql # aggregate syntax: 
query II rowsort label-5751
SELECT DISTINCT 69 AS col0, + MAX( + 74 )
----
69
74

skipif mysql # not compatible
query II rowsort label-5751
SELECT DISTINCT 69 AS col0, + MAX ( + 74 )
----
69
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5752
SELECT COUNT( 76 ) + + - 9 * - 26 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5752
SELECT COUNT ( 76 ) + + - 9 * - 26 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 8 * + 13
----
104

query I rowsort
SELECT ALL + NULLIF ( 31, - 36 ) + - + 8
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT + MIN( + - 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-5755
SELECT + MIN ( + - 56 )
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5756
SELECT ALL - - 74 + + + 51 + + 93 / - COALESCE ( - 60, + 47 * - CASE + - 2 WHEN - COUNT( * ) THEN NULL ELSE + COALESCE ( + 5, + 99 / - 65 ) END * - - NULLIF ( + 44, + 39 ) + + 60 * SUM( - - 5 ) ) - + - CAST( NULL AS SIGNED ) * 18
----
NULL

skipif mysql # not compatible
query I rowsort label-5756
SELECT ALL - - 74 + + + 51 + + 93 / - COALESCE ( - 60, + 47 * - CASE + - 2 WHEN - COUNT ( * ) THEN NULL ELSE + COALESCE ( + 5, + 99 / - 65 ) END * - - NULLIF ( + 44, + 39 ) + + 60 * SUM ( - - 5 ) ) - + - CAST ( NULL AS INTEGER ) * 18
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5757
SELECT 52 DIV 41 - + 99, 58 AS col2
----
-98
58

skipif mysql # not compatible
query II rowsort label-5757
SELECT 52 / 41 - + 99, 58 AS col2
----
-98
58

query II rowsort
SELECT - 48 AS col2, - 63
----
-48
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-5759
SELECT - 37 DIV - 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5759
SELECT - 37 / - 96 AS col0
----
0

query I rowsort
SELECT ALL + + 7 + + 81 + + 41
----
129

query II rowsort
SELECT - 98, - 10 + 13 AS col1
----
-98
3

query II rowsort
SELECT - 31 AS col2, 35
----
-31
35

query I rowsort
SELECT ALL - + 20 * 92 - - 7 AS col2
----
-1833

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5764
SELECT ALL - - 3 / + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5764
SELECT ALL - - 3 / + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT - 2 * - 74 + - 61 + - + 36 * + - MAX( DISTINCT + ( + 68 ) ) AS col2
----
2535

skipif mysql # not compatible
query I rowsort label-5765
SELECT - 2 * - 74 + - 61 + - + 36 * + - MAX ( DISTINCT + ( + 68 ) ) AS col2
----
2535

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT COUNT( * ) * + 34 * + 95
----
3230

skipif mysql # not compatible
query I rowsort label-5766
SELECT COUNT ( * ) * + 34 * + 95
----
3230

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT ALL + COUNT( * ) - 76 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-5767
SELECT ALL + COUNT ( * ) - 76 AS col2
----
-75

query II rowsort
SELECT ALL - 75, - 45 AS col2
----
-75
-45

query I rowsort
SELECT 34 * + 79 + - + 27
----
2659

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT DISTINCT - MIN( DISTINCT + 80 ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-5770
SELECT DISTINCT - MIN ( DISTINCT + 80 ) AS col0
----
-80

query I rowsort
SELECT 27 + + - 81 AS col1
----
-54

query II rowsort
SELECT 60, 75 AS col1
----
60
75

onlyif mysql # aggregate syntax: 
query II rowsort label-5773
SELECT ALL - COALESCE ( 79, + CASE + CASE - 39 WHEN + COUNT( * ) THEN 65 WHEN + 42 THEN NULL WHEN - - 22 THEN NULL END WHEN 41 THEN - 73 WHEN - - 86 THEN NULL WHEN - + MAX( DISTINCT - 66 ) THEN NULL WHEN + COALESCE ( - 32, + ( - COUNT( * ) ) + - COUNT( * ) * - - COALESCE ( - COUNT( * ), - + 21 * - 1 ) + + 87 * + 70 * 27 ) + + 54 THEN NULL ELSE NULL END ), 55 AS col0
----
-79
55

skipif mysql # not compatible
query II rowsort label-5773
SELECT ALL - COALESCE ( 79, + CASE + CASE - 39 WHEN + COUNT ( * ) THEN 65 WHEN + 42 THEN NULL WHEN - - 22 THEN NULL END WHEN 41 THEN - 73 WHEN - - 86 THEN NULL WHEN - + MAX ( DISTINCT - 66 ) THEN NULL WHEN + COALESCE ( - 32, + ( - COUNT ( * ) ) + - COUNT ( * ) * - - COALESCE ( - COUNT ( * ), - + 21 * - 1 ) + + 87 * + 70 * 27 ) + + 54 THEN NULL ELSE NULL END ), 55 AS col0
----
-79
55

query I rowsort
SELECT 36 + - - 34
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-5775
SELECT ALL - COUNT( DISTINCT - 60 ), + 78 * - 72 AS col0
----
-1
-5616

skipif mysql # not compatible
query II rowsort label-5775
SELECT ALL - COUNT ( DISTINCT - 60 ), + 78 * - 72 AS col0
----
-1
-5616

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT DISTINCT + COUNT( * ) * 79 col0
----
79

skipif mysql # not compatible
query I rowsort label-5776
SELECT DISTINCT + COUNT ( * ) * 79 col0
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-5777
SELECT DISTINCT 51 AS col0, - COUNT( * ) * - - 86 * + ( - COUNT( * ) )
----
51
86

skipif mysql # not compatible
query II rowsort label-5777
SELECT DISTINCT 51 AS col0, - COUNT ( * ) * - - 86 * + ( - COUNT ( * ) )
----
51
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5778
SELECT 52 * - + 88 * - - MAX( + CAST( - - 28 AS SIGNED ) ) AS col2
----
-128128

skipif mysql # not compatible
query I rowsort label-5778
SELECT 52 * - + 88 * - - MAX ( + CAST ( - - 28 AS INTEGER ) ) AS col2
----
-128128

query II rowsort
SELECT 47 AS col2, 87
----
47
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5780
SELECT DISTINCT COUNT( * ) AS col1, - COUNT( * ) * - 93 * - CAST( NULL AS DECIMAL ) + ( + - CAST( NULL AS SIGNED ) ) + + 60 * + - 92 * + - 9
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5780
SELECT DISTINCT COUNT ( * ) AS col1, - COUNT ( * ) * - 93 * - CAST ( NULL AS REAL ) + ( + - CAST ( NULL AS INTEGER ) ) + + 60 * + - 92 * + - 9
----
1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5781
SELECT DISTINCT 61, + COUNT( * ) AS col1
----
61
1

skipif mysql # not compatible
query II rowsort label-5781
SELECT DISTINCT 61, + COUNT ( * ) AS col1
----
61
1

query I rowsort
SELECT 36 * 25 AS col2
----
900

query I rowsort
SELECT 71 + ( + + 89 ) col2
----
160

onlyif mysql # DIV for integer division: 
query I rowsort label-5784
SELECT ALL - 72 DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-5784
SELECT ALL - 72 / 91
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5785
SELECT 42 DIV 53 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5785
SELECT 42 / 53 AS col2
----
0

query I rowsort
SELECT CASE 68 WHEN - + 49 * 11 THEN 33 END + 69 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT 52 + MIN( + + 83 )
----
135

skipif mysql # not compatible
query I rowsort label-5787
SELECT 52 + MIN ( + + 83 )
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-5788
SELECT 90 + - ( - 51 ) DIV - - 86 + - 15
----
75

skipif mysql # not compatible
query I rowsort label-5788
SELECT 90 + - ( - 51 ) / - - 86 + - 15
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT ALL 69 + - COUNT( * ) + + MIN( + 52 ) + - + 30 - 22 - - 42 * 60
----
2588

skipif mysql # not compatible
query I rowsort label-5789
SELECT ALL 69 + - COUNT ( * ) + + MIN ( + 52 ) + - + 30 - 22 - - 42 * 60
----
2588

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5790
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) AS col0
----
0

query I rowsort
SELECT ALL - ( + 3 ) col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT DISTINCT MIN( + - 91 ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-5792
SELECT DISTINCT MIN ( + - 91 ) AS col2
----
-91

query I rowsort
SELECT ALL - 67 + - 68 * 10 AS col1
----
-747

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5794
SELECT + 43 DIV + COUNT( * ) + - 36 - - - 86 * + - 7 * + - 85 AS col1, - 62
----
-51163
-62

skipif mysql # not compatible
query II rowsort label-5794
SELECT + 43 / + COUNT ( * ) + - 36 - - - 86 * + - 7 * + - 85 AS col1, - 62
----
-51163
-62

query I rowsort
SELECT + - ( - + 73 ) + + 39
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5796
SELECT ALL 76 * ( + MIN( DISTINCT + 55 ) ) + CAST( ( - 74 ) AS SIGNED ) * 41 + 65 - 68 * - 94 * 20 AS col0
----
129051

skipif mysql # not compatible
query I rowsort label-5796
SELECT ALL 76 * ( + MIN ( DISTINCT + 55 ) ) + CAST ( ( - 74 ) AS INTEGER ) * 41 + 65 - 68 * - 94 * 20 AS col0
----
129051

onlyif mysql # aggregate syntax: 
query I rowsort label-5797
SELECT DISTINCT + - COUNT( + + 31 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5797
SELECT DISTINCT + - COUNT ( + + 31 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT + 91 * + 84 col0
----
7644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5799
SELECT DISTINCT + - COUNT( * ) * - NULLIF ( + 31, + SUM( ( - CAST( ( - 79 ) AS SIGNED ) ) ) + 54 + COUNT( * ) * COUNT( * ) / + COALESCE ( - 34, 47 ) + - AVG ( ALL - + 35 ) ) * - 0 - + 68 AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-5799
SELECT DISTINCT + - COUNT ( * ) * - NULLIF ( + 31, + SUM ( ( - CAST ( ( - 79 ) AS INTEGER ) ) ) + 54 + COUNT ( * ) * COUNT ( * ) / + COALESCE ( - 34, 47 ) + - AVG ( ALL - + 35 ) ) * - 0 - + 68 AS col0
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-5800
SELECT 63 DIV - - 92 + + 66 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-5800
SELECT 63 / - - 92 + + 66 AS col0
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5801
SELECT ALL + MIN( + - 34 ) * - 13 - - 51 DIV ( - ( + + NULLIF ( - + 66, ( + + 58 ) ) ) )
----
442

skipif mysql # not compatible
query I rowsort label-5801
SELECT ALL + MIN ( + - 34 ) * - 13 - - 51 / ( - ( + + NULLIF ( - + 66, ( + + 58 ) ) ) )
----
442

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT - COUNT( * ) + + 92 * COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-5802
SELECT - COUNT ( * ) + + 92 * COUNT ( * )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT CASE + - 50 WHEN - 80 * + 11 + - 22 * - COUNT( * ) + - 89 * - 46 * + 12 THEN + 95 * + - 21 - - - 21 WHEN + SUM( DISTINCT 88 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5803
SELECT CASE + - 50 WHEN - 80 * + 11 + - 22 * - COUNT ( * ) + - 89 * - 46 * + 12 THEN + 95 * + - 21 - - - 21 WHEN + SUM ( DISTINCT 88 ) THEN NULL END
----
NULL

query I rowsort
SELECT + 95 * + CASE 45 WHEN + 33 * - - 3 * 86 - 12 + - COALESCE ( - ( + 49 ), - 43 ) - - 51 * + + 46 THEN + 73 ELSE NULL END / - + 89 * - 47 + + 80 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5805
SELECT - 1 * 56 col0, - 21 DIV MIN( 79 ) * 17
----
-56
0

skipif mysql # not compatible
query II rowsort label-5805
SELECT - 1 * 56 col0, - 21 / MIN ( 79 ) * 17
----
-56
0

query I rowsort
SELECT + NULLIF ( + 1, - + 30 ) AS col0
----
1

query I rowsort
SELECT - 19 + + + 50 - 71 AS col0
----
-40

query I rowsort
SELECT DISTINCT + 31 * - 76 AS col2
----
-2356

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5809
SELECT DISTINCT + 58 DIV - COUNT( * ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-5809
SELECT DISTINCT + 58 / - COUNT ( * ) AS col0
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5810
SELECT - COUNT( * ) DIV - COUNT( ALL - 40 )
----
1

skipif mysql # not compatible
query I rowsort label-5810
SELECT - COUNT ( * ) / - COUNT ( ALL - 40 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5811
SELECT - COUNT( * ) * - 96 * + 88 AS col1
----
8448

skipif mysql # not compatible
query I rowsort label-5811
SELECT - COUNT ( * ) * - 96 * + 88 AS col1
----
8448

query I rowsort
SELECT - 5 * 18
----
-90

query I rowsort
SELECT DISTINCT - 68 * + + 71 * + + 67
----
-323476

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5814
SELECT ALL + 13 + - 0 * + CASE + 28 WHEN + + CAST( - 30 AS SIGNED ) THEN 24 * - + 36 ELSE + 96 - ( + 0 ) END + 36, 78 AS col1
----
49
78

skipif mysql # not compatible
query II rowsort label-5814
SELECT ALL + 13 + - 0 * + CASE + 28 WHEN + + CAST ( - 30 AS INTEGER ) THEN 24 * - + 36 ELSE + 96 - ( + 0 ) END + 36, 78 AS col1
----
49
78

query I rowsort
SELECT - 75 * - ( + 93 )
----
6975

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT ALL ( + + COUNT( 59 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5816
SELECT ALL ( + + COUNT ( 59 ) ) AS col2
----
1

query II rowsort
SELECT DISTINCT - 68 + 57 AS col2, 49 AS col0
----
-11
49

query I rowsort
SELECT ALL + 14 + - 89
----
-75

query I rowsort
SELECT DISTINCT + - 66 + 23
----
-43

query I rowsort
SELECT ALL - COALESCE ( + CASE - 93 WHEN + + 75 THEN + - ( 61 ) END, 42 ) AS col2
----
-42

query I rowsort
SELECT - 27 + + 51 + 78 * + 59 + 62 + - 12 * 60 * 6 col0
----
368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5822
SELECT ALL + NULLIF ( + COUNT( * ), + 72 * - 10 * ( - SUM( 67 ) ) * + - CAST( NULL AS SIGNED ) * 18 + + + 51 DIV - 18 ) + MAX( DISTINCT 26 ) * + - CAST( 8 AS SIGNED ) * - - 94 - - COALESCE ( - + COUNT( * ), + 51 * + 33 ) DIV + COUNT( * ) + + 70 DIV - 55
----
-19553

skipif mysql # not compatible
query I rowsort label-5822
SELECT ALL + NULLIF ( + COUNT ( * ), + 72 * - 10 * ( - SUM ( 67 ) ) * + - CAST ( NULL AS INTEGER ) * 18 + + + 51 / - 18 ) + MAX ( DISTINCT 26 ) * + - CAST ( 8 AS INTEGER ) * - - 94 - - COALESCE ( - + COUNT ( * ), + 51 * + 33 ) / + COUNT ( * ) + + 70 / - 55
----
-19553

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5823
SELECT DISTINCT - + COUNT( ALL 40 ) DIV ( - - 18 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5823
SELECT DISTINCT - + COUNT ( ALL 40 ) / ( - - 18 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5824
SELECT - - COUNT( * ) * + 24 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-5824
SELECT - - COUNT ( * ) * + 24 AS col2
----
24

query I rowsort
SELECT - + 50 + - 34 AS col2
----
-84

query II rowsort
SELECT - - CASE 54 WHEN - + 68 THEN - 59 * - + 23 + - - 0 - 5 END + + AVG ( 13 ) + - + 27, - ( + 98 ) - 66 AS col0
----
NULL
-164

onlyif mysql # aggregate syntax: 
query II rowsort label-5827
SELECT - + MAX( - 93 ) * - 17 - - 70 + + 36, - 36 + + 22 AS col2
----
-1475
-14

skipif mysql # not compatible
query II rowsort label-5827
SELECT - + MAX ( - 93 ) * - 17 - - 70 + + 36, - 36 + + 22 AS col2
----
-1475
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-5828
SELECT - 57 DIV - + 31 - - 64 + + 35 AS col1
----
100

skipif mysql # not compatible
query I rowsort label-5828
SELECT - 57 / - + 31 - - 64 + + 35 AS col1
----
100

query I rowsort
SELECT DISTINCT + - 0 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5830
SELECT ALL + SUM( + 62 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-5830
SELECT ALL + SUM ( + 62 ) AS col2
----
62

query I rowsort
SELECT DISTINCT 1 * - 2 AS col2
----
-2

query I rowsort
SELECT + 42 * 61 AS col0
----
2562

onlyif mysql # aggregate syntax: 
query I rowsort label-5833
SELECT - 55 * 46 + COUNT( ALL + 8 ) AS col0
----
-2529

skipif mysql # not compatible
query I rowsort label-5833
SELECT - 55 * 46 + COUNT ( ALL + 8 ) AS col0
----
-2529

query I rowsort
SELECT ( - - ( - 5 ) ) AS col0
----
-5

query I rowsort
SELECT ALL 0 * - + 2 AS col2
----
0

query I rowsort
SELECT + 6 * 41
----
246

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5837
SELECT ALL 86 * + + 48 * - COUNT( * ) + + CAST( 98 AS SIGNED ) * - 64
----
-10400

skipif mysql # not compatible
query I rowsort label-5837
SELECT ALL 86 * + + 48 * - COUNT ( * ) + + CAST ( 98 AS INTEGER ) * - 64
----
-10400

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT NULLIF ( COUNT( * ), - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-5838
SELECT NULLIF ( COUNT ( * ), - COUNT ( * ) )
----
1

query I rowsort
SELECT + 99 + + 5
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-5840
SELECT 9 * + 4 * + 51 - + 97 + COUNT( * )
----
1740

skipif mysql # not compatible
query I rowsort label-5840
SELECT 9 * + 4 * + 51 - + 97 + COUNT ( * )
----
1740

onlyif mysql # aggregate syntax: 
query II rowsort label-5841
SELECT ALL + 0 AS col2, + CASE + - ( - 50 ) WHEN 65 + 86 + 89 + 48 * + COUNT( * ) THEN + 97 * 80 + 3 ELSE - 68 END AS col2
----
0
-68

skipif mysql # not compatible
query II rowsort label-5841
SELECT ALL + 0 AS col2, + CASE + - ( - 50 ) WHEN 65 + 86 + 89 + 48 * + COUNT ( * ) THEN + 97 * 80 + 3 ELSE - 68 END AS col2
----
0
-68

query I rowsort
SELECT DISTINCT 54 * ( - 56 ) + - + 6
----
-3030

onlyif mysql # aggregate syntax: 
query II rowsort label-5843
SELECT COUNT( * ) * - 78 + - - COUNT( * ), - CASE - 82 WHEN 14 THEN NULL ELSE + 57 END AS col2
----
-77
-57

skipif mysql # not compatible
query II rowsort label-5843
SELECT COUNT ( * ) * - 78 + - - COUNT ( * ), - CASE - 82 WHEN 14 THEN NULL ELSE + 57 END AS col2
----
-77
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5844
SELECT ALL COALESCE ( - 15, + 23 ) * + CAST( NULL AS SIGNED ) + + 44 + + 72 + + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-5844
SELECT ALL COALESCE ( - 15, + 23 ) * + CAST ( NULL AS INTEGER ) + + 44 + + 72 + + 57
----
NULL

query I rowsort
SELECT COALESCE ( 62, 26 * 88 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5846
SELECT ALL - COUNT( * ) * CASE + + 23 WHEN + 11 THEN - 34 + - 15 * - 71 + ( - 71 ) + - 6 END / 0 + + 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5846
SELECT ALL - COUNT ( * ) * CASE + + 23 WHEN + 11 THEN - 34 + - 15 * - 71 + ( - 71 ) + - 6 END / 0 + + 48 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5847
SELECT ALL + - 64 DIV + 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5847
SELECT ALL + - 64 / + 71 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5848
SELECT CASE + CAST( + 32 AS DECIMAL ) WHEN 31 / + 77 THEN COUNT( * ) * - ( + 61 ) * ( + 84 ) + SUM( - + 22 ) + + 7 + + - 82 + + - 57 END * 28 / + 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5848
SELECT CASE + CAST ( + 32 AS REAL ) WHEN 31 / + 77 THEN COUNT ( * ) * - ( + 61 ) * ( + 84 ) + SUM ( - + 22 ) + + 7 + + - 82 + + - 57 END * 28 / + 11 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT + 81 + COALESCE ( - 19, - 36 ) * + 42 + + + 72 + SUM( 51 )
----
-594

skipif mysql # not compatible
query I rowsort label-5849
SELECT + 81 + COALESCE ( - 19, - 36 ) * + 42 + + + 72 + SUM ( 51 )
----
-594

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT DISTINCT - COALESCE ( + 85, - + CASE + 95 WHEN - COUNT( * ) - + 1 THEN + 73 END * + 29 ) * + 19
----
-1615

skipif mysql # not compatible
query I rowsort label-5850
SELECT DISTINCT - COALESCE ( + 85, - + CASE + 95 WHEN - COUNT ( * ) - + 1 THEN + 73 END * + 29 ) * + 19
----
-1615

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT ALL + + SUM( ALL - 42 ) + - + 92 * 77
----
-7126

skipif mysql # not compatible
query I rowsort label-5851
SELECT ALL + + SUM ( ALL - 42 ) + - + 92 * 77
----
-7126

query I rowsort
SELECT ALL 17 * + 89 * 52 col0
----
78676

query I rowsort
SELECT DISTINCT + 57 * + 12
----
684

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5854
SELECT ALL - COUNT( * ), CASE - 33 WHEN 61 + 58 THEN NULL WHEN - + 17 THEN NULL ELSE + SUM( ALL 64 ) END DIV + NULLIF ( + SUM( - 52 ), + 41 ) AS col1
----
-1
-1

skipif mysql # not compatible
query II rowsort label-5854
SELECT ALL - COUNT ( * ), CASE - 33 WHEN 61 + 58 THEN NULL WHEN - + 17 THEN NULL ELSE + SUM ( ALL 64 ) END / + NULLIF ( + SUM ( - 52 ), + 41 ) AS col1
----
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5855
SELECT ALL + 2, COUNT( * ) DIV + - 53 + - 83 AS col0
----
2
-83

skipif mysql # not compatible
query II rowsort label-5855
SELECT ALL + 2, COUNT ( * ) / + - 53 + - 83 AS col0
----
2
-83

query II rowsort
SELECT DISTINCT + 10 AS col0, 56 + + 52
----
10
108

query II rowsort
SELECT 28 * 75 + - 21 * + 59, - 11 * - 74 AS col1
----
861
814

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT DISTINCT - NULLIF ( + + COUNT( * ), + 54 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5858
SELECT DISTINCT - NULLIF ( + + COUNT ( * ), + 54 ) AS col2
----
-1

query I rowsort
SELECT ALL + ( + 95 ) * + 32 AS col0
----
3040

onlyif mysql # aggregate syntax: 
query I rowsort label-5860
SELECT ALL + 58 * 46 * - ( - COUNT( * ) ) * - ( - - 99 ) + 68
----
-264064

skipif mysql # not compatible
query I rowsort label-5860
SELECT ALL + 58 * 46 * - ( - COUNT ( * ) ) * - ( - - 99 ) + 68
----
-264064

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5861
SELECT DISTINCT - CAST( NULL AS SIGNED ) * NULLIF ( - - 8, - 19 ) * - 82 - + COALESCE ( + MIN( + 25 ), + - 26 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5861
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * NULLIF ( - - 8, - 19 ) * - 82 - + COALESCE ( + MIN ( + 25 ), + - 26 ) AS col0
----
NULL

query I rowsort
SELECT ALL 54 + + 45 + 41 + + 75 AS col0
----
215

query I rowsort
SELECT 36 * + 63 AS col2
----
2268

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5864
SELECT COUNT( * ) DIV + 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5864
SELECT COUNT ( * ) / + 64 AS col1
----
0

query I rowsort
SELECT ALL 18 + + 55 AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5866
SELECT + 44 * 28 + ( + - COUNT( * ) ) - CASE - + 44 WHEN + 5 THEN + 95 WHEN + 64 * - AVG ( ALL - 12 ) THEN - COALESCE ( - 69, + 10, - 44 - + COUNT( * ) ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5866
SELECT + 44 * 28 + ( + - COUNT ( * ) ) - CASE - + 44 WHEN + 5 THEN + 95 WHEN + 64 * - AVG ( ALL - 12 ) THEN - COALESCE ( - 69, + 10, - 44 - + COUNT ( * ) ) ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5867
SELECT DISTINCT + 68 + + + COALESCE ( - 95, CAST( + CAST( NULL AS SIGNED ) AS SIGNED ), - COUNT( * ) ) + - 67 + ( COUNT( - - 80 ) ) * + 80 + + 70 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-5867
SELECT DISTINCT + 68 + + + COALESCE ( - 95, CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ), - COUNT ( * ) ) + - 67 + ( COUNT ( - - 80 ) ) * + 80 + + 70 AS col1
----
56

query I rowsort
SELECT DISTINCT 5 + + 63 AS col2
----
68

query I rowsort
SELECT DISTINCT 75 * 91 AS col0
----
6825

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT ALL 40 + - COUNT( * ) * + + 20
----
20

skipif mysql # not compatible
query I rowsort label-5870
SELECT ALL 40 + - COUNT ( * ) * + + 20
----
20

query I rowsort
SELECT ALL 10 * + 84 AS col1
----
840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5872
SELECT DISTINCT 69 + + CASE - 7 WHEN - + 60 * - 36 * 73 + 46 THEN + 82 / - + 17 - - + CAST( + COUNT( * ) AS SIGNED ) * 69 + + + COUNT( * ) - - - MAX( + + 83 ) / COUNT( + 69 ) * + 48 + - - CAST( + 22 AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5872
SELECT DISTINCT 69 + + CASE - 7 WHEN - + 60 * - 36 * 73 + 46 THEN + 82 / - + 17 - - + CAST ( + COUNT ( * ) AS INTEGER ) * 69 + + + COUNT ( * ) - - - MAX ( + + 83 ) / COUNT ( + 69 ) * + 48 + - - CAST ( + 22 AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT - COUNT( * ) * - - 90 + - - 59 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-5873
SELECT - COUNT ( * ) * - - 90 + - - 59 AS col2
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-5874
SELECT ALL 48 - - + 79 * COUNT( 51 ), - 82 * + + MAX( + ( + 4 ) ) AS col1
----
127
-328

skipif mysql # not compatible
query II rowsort label-5874
SELECT ALL 48 - - + 79 * COUNT ( 51 ), - 82 * + + MAX ( + ( + 4 ) ) AS col1
----
127
-328

query I rowsort
SELECT 5 - 57 + - + 83
----
-135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5876
SELECT - COUNT( * ) DIV + ( + - 70 ) * 70 + - - 16 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-5876
SELECT - COUNT ( * ) / + ( + - 70 ) * 70 + - - 16 AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT NULLIF ( + 9, - 56 + + 50 + - - 20 * - 10 - + COUNT( ALL + 57 ) )
----
9

skipif mysql # not compatible
query I rowsort label-5877
SELECT NULLIF ( + 9, - 56 + + 50 + - - 20 * - 10 - + COUNT ( ALL + 57 ) )
----
9

query I rowsort
SELECT ALL 15 - + + 66 col0
----
-51

onlyif mysql # DIV for integer division: 
query II rowsort label-5879
SELECT ( - 55 ) AS col2, + ( + - 81 ) - - + 81 DIV - - 13 AS col2
----
-55
-75

skipif mysql # not compatible
query II rowsort label-5879
SELECT ( - 55 ) AS col2, + ( + - 81 ) - - + 81 / - - 13 AS col2
----
-55
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5880
SELECT DISTINCT 33 - - NULLIF ( + 85, - CAST( + + 3 AS DECIMAL ) )
----
118

skipif mysql # not compatible
query I rowsort label-5880
SELECT DISTINCT 33 - - NULLIF ( + 85, - CAST ( + + 3 AS REAL ) )
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5881
SELECT ALL ( 87 ) AS col0, + CAST( - + 39 AS SIGNED ) * 77 AS col0
----
87
-3003

skipif mysql # not compatible
query II rowsort label-5881
SELECT ALL ( 87 ) AS col0, + CAST ( - + 39 AS INTEGER ) * 77 AS col0
----
87
-3003

onlyif mysql # DIV for integer division: 
query II rowsort label-5882
SELECT DISTINCT + COALESCE ( + 47, ( - - 93 ) ) DIV 41 AS col1, - 82 * 50 DIV - 61 AS col2
----
1
67

skipif mysql # not compatible
query II rowsort label-5882
SELECT DISTINCT + COALESCE ( + 47, ( - - 93 ) ) / 41 AS col1, - 82 * 50 / - 61 AS col2
----
1
67

onlyif mysql # DIV for integer division: 
query I rowsort label-5883
SELECT 53 DIV 87 + - 31 - - 7 * - 27
----
-220

skipif mysql # not compatible
query I rowsort label-5883
SELECT 53 / 87 + - 31 - - 7 * - 27
----
-220

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT - COUNT( * ) * + - ( 49 ) * - ( 68 ) + - 12 + 82
----
-3262

skipif mysql # not compatible
query I rowsort label-5884
SELECT - COUNT ( * ) * + - ( 49 ) * - ( 68 ) + - 12 + 82
----
-3262

onlyif mysql # DIV for integer division: 
query II rowsort label-5885
SELECT DISTINCT - - NULLIF ( - 57, + 37 ) * - 23 col2, + 44 * + - 7 + - - 35 DIV + 63 * 11
----
1311
-308

skipif mysql # not compatible
query II rowsort label-5885
SELECT DISTINCT - - NULLIF ( - 57, + 37 ) * - 23 col2, + 44 * + - 7 + - - 35 / + 63 * 11
----
1311
-308

query II rowsort
SELECT DISTINCT 35 * - + 19 * NULLIF ( + 76, + 77 ) col0, 29
----
-50540
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5887
SELECT ALL COUNT( * ) * + 28 * + - ( - - 37 )
----
-1036

skipif mysql # not compatible
query I rowsort label-5887
SELECT ALL COUNT ( * ) * + 28 * + - ( - - 37 )
----
-1036

query I rowsort
SELECT 22 * - + ( 94 ) AS col0
----
-2068

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5889
SELECT DISTINCT + 44 + + COUNT( * ) * 4 DIV NULLIF ( 84, - COUNT( * ) DIV - ( + 63 ) + - MAX( ALL - + 31 ) * + CAST( + 94 AS SIGNED ) )
----
44

skipif mysql # not compatible
query I rowsort label-5889
SELECT DISTINCT + 44 + + COUNT ( * ) * 4 / NULLIF ( 84, - COUNT ( * ) / - ( + 63 ) + - MAX ( ALL - + 31 ) * + CAST ( + 94 AS INTEGER ) )
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5890
SELECT DISTINCT 80 col0, ( CAST( NULL AS SIGNED ) ) * - 68 AS col0
----
80
NULL

skipif mysql # not compatible
query II rowsort label-5890
SELECT DISTINCT 80 col0, ( CAST ( NULL AS INTEGER ) ) * - 68 AS col0
----
80
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5891
SELECT CAST( NULL AS SIGNED ) + - - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-5891
SELECT CAST ( NULL AS INTEGER ) + - - 89
----
NULL

query I rowsort
SELECT 36 * + 86 AS col1
----
3096

onlyif mysql # aggregate syntax: 
query II rowsort label-5893
SELECT MAX( ALL + - 87 ) * - 42 * - 92 * + 17, - COALESCE ( - 81, COUNT( * ) ) AS col1
----
-5714856
81

skipif mysql # not compatible
query II rowsort label-5893
SELECT MAX ( ALL + - 87 ) * - 42 * - 92 * + 17, - COALESCE ( - 81, COUNT ( * ) ) AS col1
----
-5714856
81

query I rowsort
SELECT ALL 35 * + - 28 * - 70 + + - 69 AS col0
----
68531

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5895
SELECT 52 - - - CASE + 57 WHEN 52 THEN 86 * - - 39 + 23 - + CAST( NULL AS SIGNED ) ELSE NULL END + - + ( + 96 ) / COUNT( * ) + - - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-5895
SELECT 52 - - - CASE + 57 WHEN 52 THEN 86 * - - 39 + 23 - + CAST ( NULL AS INTEGER ) ELSE NULL END + - + ( + 96 ) / COUNT ( * ) + - - 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5896
SELECT COUNT( DISTINCT 7 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5896
SELECT COUNT ( DISTINCT 7 ) col0
----
1

query I rowsort
SELECT 61 * - 55 AS col2
----
-3355

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT ALL - COALESCE ( CASE - 0 WHEN - 30 + - 25 THEN NULL WHEN 54 + - 87 + - - 97 THEN - 84 WHEN 80 THEN + COUNT( * ) END, 37 + - 59 )
----
22

skipif mysql # not compatible
query I rowsort label-5898
SELECT ALL - COALESCE ( CASE - 0 WHEN - 30 + - 25 THEN NULL WHEN 54 + - 87 + - - 97 THEN - 84 WHEN 80 THEN + COUNT ( * ) END, 37 + - 59 )
----
22

query I rowsort
SELECT ALL 46 * AVG ( ALL + + 93 ) + - CASE + 4 WHEN 64 THEN - 25 * + 60 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5900
SELECT ( 49 ) DIV - 15 - - + 85 * - - 55 + - - COUNT( * ) - - COUNT( 31 ) + + MAX( ALL + + ( + 24 ) )
----
4698

skipif mysql # not compatible
query I rowsort label-5900
SELECT ( 49 ) / - 15 - - + 85 * - - 55 + - - COUNT ( * ) - - COUNT ( 31 ) + + MAX ( ALL + + ( + 24 ) )
----
4698

query I rowsort
SELECT DISTINCT - 9 * COALESCE ( - - 14, + 48 ) * + 81
----
-10206

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT MIN( ALL - 57 ) - + - 87 + 20 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-5902
SELECT MIN ( ALL - 57 ) - + - 87 + 20 AS col1
----
50

query I rowsort
SELECT + 5 * 59 AS col2
----
295

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT 55 * COUNT( * ) + - 50 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-5904
SELECT 55 * COUNT ( * ) + - 50 AS col1
----
5

query I rowsort
SELECT - 34 * + 32 AS col0
----
-1088

query I rowsort
SELECT - ( COALESCE ( - 81, + 16 + + CASE - 20 WHEN - 92 * + 25 THEN NULL WHEN + ( - 49 ) THEN - - 36 ELSE NULL END ) ) + - + 35 + - ( 12 )
----
34

query I rowsort
SELECT + 16 * ( + 33 * ( 80 ) )
----
42240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5908
SELECT - SUM( ALL CAST( 25 AS SIGNED ) ) * 17 + 91
----
-334

skipif mysql # not compatible
query I rowsort label-5908
SELECT - SUM ( ALL CAST ( 25 AS INTEGER ) ) * 17 + 91
----
-334

query I rowsort
SELECT + 80 * 96
----
7680

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT + 15 * ( COUNT( * ) * 56 ) AS col2
----
840

skipif mysql # not compatible
query I rowsort label-5910
SELECT + 15 * ( COUNT ( * ) * 56 ) AS col2
----
840

query I rowsort
SELECT ALL ( 13 ) * 87
----
1131

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT + COUNT( * ) + ( + 99 )
----
100

skipif mysql # not compatible
query I rowsort label-5912
SELECT + COUNT ( * ) + ( + 99 )
----
100

query I rowsort
SELECT - 44 * 76
----
-3344

query I rowsort
SELECT + 9 + - 37 AS col2
----
-28

query I rowsort
SELECT + 79 * 37
----
2923

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5916
SELECT + 85 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5916
SELECT + 85 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5917
SELECT + 2 DIV + 2
----
1

skipif mysql # not compatible
query I rowsort label-5917
SELECT + 2 / + 2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5918
SELECT DISTINCT 20 * - COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-5918
SELECT DISTINCT 20 * - COUNT ( * )
----
-20

query I rowsort
SELECT ALL 43 + 92 AS col1
----
135

query I rowsort
SELECT + 49 * + 59 AS col1
----
2891

query I rowsort
SELECT - NULLIF ( + 28, 38 )
----
-28

query I rowsort
SELECT DISTINCT - 12 + - 69
----
-81

query I rowsort
SELECT ALL + 58 + - 33
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5924
SELECT - ( MIN( ALL 44 ) ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-5924
SELECT - ( MIN ( ALL 44 ) ) AS col0
----
-44

query I rowsort
SELECT - 19 * - ( 80 ) AS col2
----
1520

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT DISTINCT 83 + + ( - 58 - 52 ) * COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-5926
SELECT DISTINCT 83 + + ( - 58 - 52 ) * COUNT ( * )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT DISTINCT 42 + CASE - 46 + - 40 WHEN + 90 + ( 13 + COUNT( * ) * - 16 ) / + 14 THEN NULL WHEN 49 / 68 + NULLIF ( - COUNT( * ) - - 77, - 44 * + 60 ) * - 94 THEN + 79 - - 62 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5927
SELECT DISTINCT 42 + CASE - 46 + - 40 WHEN + 90 + ( 13 + COUNT ( * ) * - 16 ) / + 14 THEN NULL WHEN 49 / 68 + NULLIF ( - COUNT ( * ) - - 77, - 44 * + 60 ) * - 94 THEN + 79 - - 62 END AS col1
----
NULL

query I rowsort
SELECT ALL 1 + ( + 86 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT - CASE 9 WHEN - 79 * + 19 + - 10 THEN 6 WHEN + 80 * 43 THEN + 86 ELSE + NULLIF ( COUNT( DISTINCT NULLIF ( 66, - 92 / 52 ) ), ( COALESCE ( 38, - 33 - - 73 ) ) * - MAX( + 25 ) ) END
----
-1

skipif mysql # not compatible
query I rowsort label-5929
SELECT - CASE 9 WHEN - 79 * + 19 + - 10 THEN 6 WHEN + 80 * 43 THEN + 86 ELSE + NULLIF ( COUNT ( DISTINCT NULLIF ( 66, - 92 / 52 ) ), ( COALESCE ( 38, - 33 - - 73 ) ) * - MAX ( + 25 ) ) END
----
-1

query I rowsort
SELECT ALL - 95 + ( 69 )
----
-26

query I rowsort
SELECT + 83 * - ( + 40 ) AS col2
----
-3320

query I rowsort
SELECT + 0 + - 78 * + 13
----
-1014

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT DISTINCT COUNT( * ) + 37
----
38

skipif mysql # not compatible
query I rowsort label-5933
SELECT DISTINCT COUNT ( * ) + 37
----
38

query I rowsort
SELECT ALL + 22 * + 74 AS col2
----
1628

onlyif mysql # aggregate syntax: 
query I rowsort label-5935
SELECT - ( + SUM( DISTINCT + 47 ) ) + 62
----
15

skipif mysql # not compatible
query I rowsort label-5935
SELECT - ( + SUM ( DISTINCT + 47 ) ) + 62
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5936
SELECT ALL COUNT( * ) DIV + COUNT( * ) + ( 0 + 20 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-5936
SELECT ALL COUNT ( * ) / + COUNT ( * ) + ( 0 + 20 ) AS col1
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-5937
SELECT DISTINCT 17 DIV - 36 + - 22 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-5937
SELECT DISTINCT 17 / - 36 + - 22 AS col2
----
-22

query I rowsort
SELECT DISTINCT 0 * 14 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5939
SELECT ALL + 49 DIV - COUNT( * ) + 82
----
33

skipif mysql # not compatible
query I rowsort label-5939
SELECT ALL + 49 / - COUNT ( * ) + 82
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT ( MAX( ALL 89 ) ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-5940
SELECT ( MAX ( ALL 89 ) ) AS col0
----
89

query I rowsort
SELECT - 23 + 67 * + 15
----
982

query I rowsort
SELECT ALL 61 * + 57 - 76 AS col1
----
3401

query I rowsort
SELECT - 93 * - 78 AS col1
----
7254

query I rowsort
SELECT - 99 + 52 AS col2
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-5945
SELECT - 10 DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-5945
SELECT - 10 / + 87
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5946
SELECT ( COUNT( ALL ( + ( 75 ) ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-5946
SELECT ( COUNT ( ALL ( + ( 75 ) ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT ALL - COUNT( ALL - 34 ) * - 28 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-5947
SELECT ALL - COUNT ( ALL - 34 ) * - 28 AS col0
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-5948
SELECT ALL - ( + 29 ) DIV + 62
----
0

skipif mysql # not compatible
query I rowsort label-5948
SELECT ALL - ( + 29 ) / + 62
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5949
SELECT ALL - - CASE 92 WHEN 16 * 45 THEN 76 - - CAST( + COALESCE ( 87, ( 72 ), 79 ) AS SIGNED ) * + 91 END * - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-5949
SELECT ALL - - CASE 92 WHEN 16 * 45 THEN 76 - - CAST ( + COALESCE ( 87, ( 72 ), 79 ) AS INTEGER ) * + 91 END * - 54
----
NULL

query I rowsort
SELECT - 41 * 33
----
-1353

query I rowsort
SELECT ALL - 37 * 97
----
-3589

query I rowsort
SELECT - 80 * 11 col0
----
-880

query I rowsort
SELECT + + 34 * + 61
----
2074

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5954
SELECT + + AVG ( + CASE - 3 WHEN 59 / + 79 THEN 19 END ) * NULLIF ( ( + 68 ), + CASE 56 WHEN 11 THEN - 28 WHEN CASE - 41 WHEN 3 * + 87 + COUNT( * ) * ( + NULLIF ( + 36, - NULLIF ( - 23, 2 ) ) ) THEN + 7 ELSE NULL END + 59 THEN NULL WHEN 29 + - 48 THEN NULL END * + MIN( DISTINCT + CASE - 1 WHEN ( + 95 ) THEN - 17 * 93 ELSE + CAST( NULL AS SIGNED ) END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5954
SELECT + + AVG ( + CASE - 3 WHEN 59 / + 79 THEN 19 END ) * NULLIF ( ( + 68 ), + CASE 56 WHEN 11 THEN - 28 WHEN CASE - 41 WHEN 3 * + 87 + COUNT ( * ) * ( + NULLIF ( + 36, - NULLIF ( - 23, 2 ) ) ) THEN + 7 ELSE NULL END + 59 THEN NULL WHEN 29 + - 48 THEN NULL END * + MIN ( DISTINCT + CASE - 1 WHEN ( + 95 ) THEN - 17 * 93 ELSE + CAST ( NULL AS INTEGER ) END ) )
----
NULL

query I rowsort
SELECT - + 65 - + 63
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-5956
SELECT - COALESCE ( NULLIF ( - 5, 51 - COUNT( * ) * 40 ), 70 * - 26 + - MAX( ALL - 43 ), 5 + 83 ) col1
----
5

skipif mysql # not compatible
query I rowsort label-5956
SELECT - COALESCE ( NULLIF ( - 5, 51 - COUNT ( * ) * 40 ), 70 * - 26 + - MAX ( ALL - 43 ), 5 + 83 ) col1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5957
SELECT ALL 56 DIV + 10 col1
----
5

skipif mysql # not compatible
query I rowsort label-5957
SELECT ALL 56 / + 10 col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5958
SELECT ALL + + 93 * MIN( DISTINCT 22 ) + 54
----
2100

skipif mysql # not compatible
query I rowsort label-5958
SELECT ALL + + 93 * MIN ( DISTINCT 22 ) + 54
----
2100

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT - - MAX( ALL 98 )
----
98

skipif mysql # not compatible
query I rowsort label-5959
SELECT - - MAX ( ALL 98 )
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5960
SELECT ALL + COALESCE ( NULLIF ( + COUNT( * ), 85 * + 13 + 89 ), CASE - ( - 7 ) WHEN - 17 THEN - 25 WHEN - 64 / - CAST( - COUNT( * ) AS SIGNED ) THEN 74 ELSE + MIN( 91 ) END ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5960
SELECT ALL + COALESCE ( NULLIF ( + COUNT ( * ), 85 * + 13 + 89 ), CASE - ( - 7 ) WHEN - 17 THEN - 25 WHEN - 64 / - CAST ( - COUNT ( * ) AS INTEGER ) THEN 74 ELSE + MIN ( 91 ) END ) AS col1
----
1

query I rowsort
SELECT - 39 * + 81 AS col1
----
-3159

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT COUNT( + 36 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5962
SELECT COUNT ( + 36 ) AS col0
----
1

query I rowsort
SELECT ALL + 44 * + 73 + ( 44 )
----
3256

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT DISTINCT COALESCE ( - COUNT( * ), + ( ( 54 ) ) - 88, - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5964
SELECT DISTINCT COALESCE ( - COUNT ( * ), + ( ( 54 ) ) - 88, - COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT ALL + 93 + 34 * + 38 AS col2
----
1385

onlyif mysql # aggregate syntax: 
query I rowsort label-5966
SELECT ALL MAX( 17 ) + 34
----
51

skipif mysql # not compatible
query I rowsort label-5966
SELECT ALL MAX ( 17 ) + 34
----
51

query I rowsort
SELECT - 10 + + 8 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT + 79 - NULLIF ( - 93, MIN( + 97 ) ) AS col1
----
172

skipif mysql # not compatible
query I rowsort label-5968
SELECT + 79 - NULLIF ( - 93, MIN ( + 97 ) ) AS col1
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-5969
SELECT - COUNT( * ) + + 60 col2
----
59

skipif mysql # not compatible
query I rowsort label-5969
SELECT - COUNT ( * ) + + 60 col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5970
SELECT ALL 1 + - + 17 + ( MAX( DISTINCT - 91 ) )
----
-107

skipif mysql # not compatible
query I rowsort label-5970
SELECT ALL 1 + - + 17 + ( MAX ( DISTINCT - 91 ) )
----
-107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5971
SELECT + CASE - - COUNT( * ) WHEN + 99 THEN + CASE + COUNT( * ) WHEN CASE - 43 WHEN 10 THEN ( 72 ) END + 27 * 15 THEN - 19 * MAX( ALL + 53 * COALESCE ( 38 * 92, 49 ) ) WHEN - 47 THEN + CASE 54 WHEN COUNT( * ) THEN - AVG ( + 0 ) + 28 END * 86 WHEN + CAST( COUNT( * ) AS SIGNED ) / 80 THEN 98 * 43 + ( + CASE COUNT( * ) WHEN COALESCE ( COUNT( * ), + 91 * 81 ) THEN - 6 * + 46 ELSE NULL END ) END - - 89 END + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-5971
SELECT + CASE - - COUNT ( * ) WHEN + 99 THEN + CASE + COUNT ( * ) WHEN CASE - 43 WHEN 10 THEN ( 72 ) END + 27 * 15 THEN - 19 * MAX ( ALL + 53 * COALESCE ( 38 * 92, 49 ) ) WHEN - 47 THEN + CASE 54 WHEN COUNT ( * ) THEN - AVG ( + 0 ) + 28 END * 86 WHEN + CAST ( COUNT ( * ) AS INTEGER ) / 80 THEN 98 * 43 + ( + CASE COUNT ( * ) WHEN COALESCE ( COUNT ( * ), + 91 * 81 ) THEN - 6 * + 46 ELSE NULL END ) END - - 89 END + 2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5972
SELECT ALL 54 + - 33 DIV + COUNT( ALL 26 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-5972
SELECT ALL 54 + - 33 / + COUNT ( ALL 26 ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT + 59 + - + NULLIF ( - MIN( 86 ), - 13 ) * - ( 78 * 58 ) AS col0
----
-389005

skipif mysql # not compatible
query I rowsort label-5973
SELECT + 59 + - + NULLIF ( - MIN ( 86 ), - 13 ) * - ( 78 * 58 ) AS col0
----
-389005

onlyif mysql # aggregate syntax: 
query I rowsort label-5974
SELECT DISTINCT MAX( 93 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-5974
SELECT DISTINCT MAX ( 93 ) AS col2
----
93

query I rowsort
SELECT + ( - 18 ) + 53
----
35

query I rowsort
SELECT ALL 41 - + 20
----
21

query I rowsort
SELECT ALL - 64 - - + NULLIF ( 67, 55 * ( + 56 ) + ( 24 ) )
----
3

query I rowsort
SELECT + NULLIF ( - 74, + 3 ) * - 59
----
4366

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT 64 * NULLIF ( - SUM( DISTINCT - 22 ), 16 ) col1
----
1408

skipif mysql # not compatible
query I rowsort label-5979
SELECT 64 * NULLIF ( - SUM ( DISTINCT - 22 ), 16 ) col1
----
1408

onlyif mysql # DIV for integer division: 
query I rowsort label-5980
SELECT 64 DIV + 10 + 55
----
61

skipif mysql # not compatible
query I rowsort label-5980
SELECT 64 / + 10 + 55
----
61

query I rowsort
SELECT 9 + + 95 col2
----
104

query I rowsort
SELECT CASE + 94 WHEN 80 THEN - 30 WHEN - 46 THEN NULL END * 75 AS col0
----
NULL

query I rowsort
SELECT 15 * + - 58 AS col1
----
-870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5984
SELECT ALL - CASE - 49 WHEN 22 THEN + 10 * 22 WHEN + MAX( - CAST( 29 AS SIGNED ) ) * 86 THEN + ( - 11 ) + + 89 ELSE - COUNT( * ) DIV 70 + 49 DIV - 9 END * 88 AS col2
----
440

skipif mysql # not compatible
query I rowsort label-5984
SELECT ALL - CASE - 49 WHEN 22 THEN + 10 * 22 WHEN + MAX ( - CAST ( 29 AS INTEGER ) ) * 86 THEN + ( - 11 ) + + 89 ELSE - COUNT ( * ) / 70 + 49 / - 9 END * 88 AS col2
----
440

onlyif mysql # aggregate syntax: 
query I rowsort label-5985
SELECT DISTINCT - MIN( - - 87 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-5985
SELECT DISTINCT - MIN ( - - 87 ) AS col1
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5986
SELECT + 81 DIV + COUNT( * ) * + COUNT( * ) + - 70 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-5986
SELECT + 81 / + COUNT ( * ) * + COUNT ( * ) + - 70 AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5987
SELECT ALL CASE + + CASE + ( + 63 ) WHEN ( - 0 ) * 2 THEN NULL ELSE - 12 END WHEN 13 THEN - 18 END * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5987
SELECT ALL CASE + + CASE + ( + 63 ) WHEN ( - 0 ) * 2 THEN NULL ELSE - 12 END WHEN 13 THEN - 18 END * COUNT ( * ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5988
SELECT + 33 DIV - ( 49 ) * 4 - + 22
----
-22

skipif mysql # not compatible
query I rowsort label-5988
SELECT + 33 / - ( 49 ) * 4 - + 22
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5989
SELECT DISTINCT - CAST( 3 AS SIGNED )
----
-3

skipif mysql # not compatible
query I rowsort label-5989
SELECT DISTINCT - CAST ( 3 AS INTEGER )
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5990
SELECT + + COUNT( * ) * + 18 DIV 95 + 92 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-5990
SELECT + + COUNT ( * ) * + 18 / 95 + 92 AS col1
----
92

query I rowsort
SELECT + 34 - - COALESCE ( - 84, - 84 * 37, 75 )
----
-50

query I rowsort
SELECT - ( 81 ) * 43 + 55
----
-3428

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5993
SELECT + COALESCE ( 73, + CASE - 32 WHEN + 39 THEN 16 + MIN( + 65 - 45 * + 48 ) DIV 71 ELSE NULL END - COUNT( * ) ) * + 47 AS col1
----
3431

skipif mysql # not compatible
query I rowsort label-5993
SELECT + COALESCE ( 73, + CASE - 32 WHEN + 39 THEN 16 + MIN ( + 65 - 45 * + 48 ) / 71 ELSE NULL END - COUNT ( * ) ) * + 47 AS col1
----
3431

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5994
SELECT + ( 57 ) * 9 + + 10 DIV + COUNT( * )
----
523

skipif mysql # not compatible
query I rowsort label-5994
SELECT + ( 57 ) * 9 + + 10 / + COUNT ( * )
----
523

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5995
SELECT - 0 + - 58 * MIN( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5995
SELECT - 0 + - 58 * MIN ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - - ( + + 4 )
----
4

query I rowsort
SELECT ALL - - 74 + + + 92
----
166

query I rowsort
SELECT ALL 84 + + + 86 AS col2
----
170

query I rowsort
SELECT 45 * - + 48 + 2 AS col0
----
-2158

query I rowsort
SELECT ALL - + 62 + - 48
----
-110

query I rowsort
SELECT + - NULLIF ( - 24, + 60 ) AS col1
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6002
SELECT ALL + 64 + + 3 DIV - MIN( + 43 * COALESCE ( + 58 DIV 16, 61 ) ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-6002
SELECT ALL + 64 + + 3 / - MIN ( + 43 * COALESCE ( + 58 / 16, 61 ) ) AS col2
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-6003
SELECT ALL - - 95 + - 34 DIV 66
----
95

skipif mysql # not compatible
query I rowsort label-6003
SELECT ALL - - 95 + - 34 / 66
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT DISTINCT + - 32 + MIN( + 25 ) + 52 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-6004
SELECT DISTINCT + - 32 + MIN ( + 25 ) + 52 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT ALL - + 70 * - SUM( - COALESCE ( 44, 96 ) ) AS col1
----
-3080

skipif mysql # not compatible
query I rowsort label-6005
SELECT ALL - + 70 * - SUM ( - COALESCE ( 44, 96 ) ) AS col1
----
-3080

onlyif mysql # DIV for integer division: 
query I rowsort label-6006
SELECT + 7 DIV + 11 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6006
SELECT + 7 / + 11 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6007
SELECT ALL + 98 + + 6 DIV COUNT( * )
----
104

skipif mysql # not compatible
query I rowsort label-6007
SELECT ALL + 98 + + 6 / COUNT ( * )
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT + COUNT( * ) * + - ( 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-6008
SELECT + COUNT ( * ) * + - ( 72 )
----
-72

query I rowsort
SELECT + 91 + 32 + - 10 AS col1
----
113

onlyif mysql # DIV for integer division: 
query I rowsort label-6010
SELECT ALL + 68 DIV - + 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6010
SELECT ALL + 68 / - + 70 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6011
SELECT 65 DIV - 57
----
-1

skipif mysql # not compatible
query I rowsort label-6011
SELECT 65 / - 57
----
-1

query I rowsort
SELECT ALL + 95 + - - 47 + 52 AS col1
----
194

onlyif mysql # aggregate syntax: 
query II rowsort label-6013
SELECT 40 col0, COUNT( * ) AS col1
----
40
1

skipif mysql # not compatible
query II rowsort label-6013
SELECT 40 col0, COUNT ( * ) AS col1
----
40
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT DISTINCT MIN( ALL 12 ) - - 73 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-6014
SELECT DISTINCT MIN ( ALL 12 ) - - 73 AS col0
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-6015
SELECT - 93 AS col1, - COUNT( * ) + COUNT( * ) AS col0
----
-93
0

skipif mysql # not compatible
query II rowsort label-6015
SELECT - 93 AS col1, - COUNT ( * ) + COUNT ( * ) AS col0
----
-93
0

query I rowsort
SELECT DISTINCT + 50 - + 29
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT ALL - 96 * + - COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-6017
SELECT ALL - 96 * + - COUNT ( * )
----
96

query II rowsort
SELECT - 2, 85 AS col0
----
-2
85

query I rowsort
SELECT ALL 88 - - 82 AS col1
----
170

query I rowsort
SELECT DISTINCT 46 * + - 87 * 62 * + ( ( 1 ) * + 34 ) AS col0
----
-8436216

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT 86 + + COUNT( * ) + + 45
----
132

skipif mysql # not compatible
query I rowsort label-6021
SELECT 86 + + COUNT ( * ) + + 45
----
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6022
SELECT SUM( 35 ) DIV - - SUM( + 1 ) + + 39 * + ( - 73 )
----
-2812

skipif mysql # not compatible
query I rowsort label-6022
SELECT SUM ( 35 ) / - - SUM ( + 1 ) + + 39 * + ( - 73 )
----
-2812

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT COUNT( - 52 ) + 10
----
11

skipif mysql # not compatible
query I rowsort label-6023
SELECT COUNT ( - 52 ) + 10
----
11

query I rowsort
SELECT DISTINCT + 78 * - 41
----
-3198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6025
SELECT ALL NULLIF ( 36, - 27 * - 36 + 37 ) DIV COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-6025
SELECT ALL NULLIF ( 36, - 27 * - 36 + 37 ) / COUNT ( * )
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6026
SELECT NULLIF ( - 55, CAST( NULL AS SIGNED ) ) * + ( - COUNT( * ) + + 34 * 94 ) AS col2
----
-175725

skipif mysql # not compatible
query I rowsort label-6026
SELECT NULLIF ( - 55, CAST ( NULL AS INTEGER ) ) * + ( - COUNT ( * ) + + 34 * 94 ) AS col2
----
-175725

query I rowsort
SELECT 24 * 8 col2
----
192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6028
SELECT - CASE + ( SUM( DISTINCT CAST( 19 AS SIGNED ) ) ) WHEN - MIN( ALL 80 ) * - 58 THEN - 31 ELSE + 33 + - ( 57 ) END
----
24

skipif mysql # not compatible
query I rowsort label-6028
SELECT - CASE + ( SUM ( DISTINCT CAST ( 19 AS INTEGER ) ) ) WHEN - MIN ( ALL 80 ) * - 58 THEN - 31 ELSE + 33 + - ( 57 ) END
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT ALL - - SUM( DISTINCT - NULLIF ( 72, + ( + 32 ) / + 22 ) ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-6029
SELECT ALL - - SUM ( DISTINCT - NULLIF ( 72, + ( + 32 ) / + 22 ) ) AS col0
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-6030
SELECT ALL - NULLIF ( + - 54, 44 * + 85 ) DIV + 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6030
SELECT ALL - NULLIF ( + - 54, 44 * + 85 ) / + 70 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6031
SELECT + 62 DIV 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6031
SELECT + 62 / 99 AS col2
----
0

query I rowsort
SELECT - 32 + + 81 + - 54 AS col0
----
-5

query I rowsort
SELECT ALL - + ( + + 89 )
----
-89

query I rowsort
SELECT + - ( - 86 ) AS col2
----
86

query I rowsort
SELECT - ( - 68 ) * + 35 * 93 AS col2
----
221340

query I rowsort
SELECT - 54 + - - 14 AS col0
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6037
SELECT ALL COUNT( * ) + - - 28 + + 95 + 91 DIV - COUNT( * ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-6037
SELECT ALL COUNT ( * ) + - - 28 + + 95 + 91 / - COUNT ( * ) AS col0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-6038
SELECT - 98 DIV + ( + 87 )
----
-1

skipif mysql # not compatible
query I rowsort label-6038
SELECT - 98 / + ( + 87 )
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6039
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6039
SELECT DISTINCT + CAST ( NULL AS REAL ) + - 88 AS col0
----
NULL

query I rowsort
SELECT ALL - 63 + 54 col0
----
-9

query I rowsort
SELECT DISTINCT + + 97 + - 99
----
-2

query I rowsort
SELECT DISTINCT ( + NULLIF ( - - 60, + 4 ) ) + - 66 col2
----
-6

query I rowsort
SELECT + 78 * - 60 AS col1
----
-4680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6044
SELECT + COUNT( * ) * - 4 * + - CAST( NULL AS SIGNED ) * - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-6044
SELECT + COUNT ( * ) * - 4 * + - CAST ( NULL AS INTEGER ) * - 72
----
NULL

query I rowsort
SELECT ALL 18 + ( + 6 ) AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT SUM( DISTINCT + 59 ) col0
----
59

skipif mysql # not compatible
query I rowsort label-6046
SELECT SUM ( DISTINCT + 59 ) col0
----
59

query II rowsort
SELECT DISTINCT - 94, 99 AS col0
----
-94
99

query I rowsort
SELECT ALL + 52 + - + 39
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6049
SELECT - COUNT( * ) - + COUNT( * ) + - COUNT( * ) DIV 40
----
-2

skipif mysql # not compatible
query I rowsort label-6049
SELECT - COUNT ( * ) - + COUNT ( * ) + - COUNT ( * ) / 40
----
-2

query I rowsort
SELECT 72 * + - 34 - - - 41 - 95 - 15
----
-2599

query I rowsort
SELECT ALL + 63 - + 81 * 32 AS col1
----
-2529

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT 81 * - - 27 * - 87 * + + COUNT( * ) AS col1
----
-190269

skipif mysql # not compatible
query I rowsort label-6052
SELECT 81 * - - 27 * - 87 * + + COUNT ( * ) AS col1
----
-190269

query I rowsort
SELECT ALL + 91 * - 50
----
-4550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6054
SELECT DISTINCT + AVG ( - 78 ) * + + CAST( NULL AS SIGNED ) * 71 * - ( COUNT( * ) ) + + 89 * 46 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6054
SELECT DISTINCT + AVG ( - 78 ) * + + CAST ( NULL AS INTEGER ) * 71 * - ( COUNT ( * ) ) + + 89 * 46 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6055
SELECT + ( 62 ) + COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-6055
SELECT + ( 62 ) + COUNT ( * )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT - 6 - + - COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-6056
SELECT - 6 - + - COUNT ( * )
----
-5

query I rowsort
SELECT - ( 45 ) * - 5 - + - 9 AS col2
----
234

query I rowsort
SELECT - 24 * - 11 AS col2
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT - SUM( - ( + 35 ) ) * - + ( ( + 86 ) ) * - COUNT( * ) col0
----
3010

skipif mysql # not compatible
query I rowsort label-6059
SELECT - SUM ( - ( + 35 ) ) * - + ( ( + 86 ) ) * - COUNT ( * ) col0
----
3010

onlyif mysql # DIV for integer division: 
query I rowsort label-6060
SELECT + 76 DIV - + 51
----
-1

skipif mysql # not compatible
query I rowsort label-6060
SELECT + 76 / - + 51
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT - NULLIF ( - + 43, SUM( - - 30 ) ) + MIN( ALL 88 + + 63 ) AS col2
----
194

skipif mysql # not compatible
query I rowsort label-6061
SELECT - NULLIF ( - + 43, SUM ( - - 30 ) ) + MIN ( ALL 88 + + 63 ) AS col2
----
194

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6062
SELECT - 64 * + ( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6062
SELECT - 64 * + ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6063
SELECT ALL MIN( DISTINCT - 53 ) AS col2, ( + - 7 ) AS col1
----
-53
-7

skipif mysql # not compatible
query II rowsort label-6063
SELECT ALL MIN ( DISTINCT - 53 ) AS col2, ( + - 7 ) AS col1
----
-53
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6064
SELECT DISTINCT CASE - + 66 WHEN + 76 / - CAST( 34 AS SIGNED ) - 28 * - 95 THEN CAST( 13 AS SIGNED ) END * SUM( DISTINCT 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6064
SELECT DISTINCT CASE - + 66 WHEN + 76 / - CAST ( 34 AS INTEGER ) - 28 * - 95 THEN CAST ( 13 AS INTEGER ) END * SUM ( DISTINCT 99 )
----
NULL

query I rowsort
SELECT ALL 52 + + + 48
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT DISTINCT COALESCE ( + MIN( CASE 68 WHEN 36 + + 99 THEN - 54 + + 3 ELSE NULL END ), + ( COUNT( * ) ), 97 * 14 )
----
1

skipif mysql # not compatible
query I rowsort label-6066
SELECT DISTINCT COALESCE ( + MIN ( CASE 68 WHEN 36 + + 99 THEN - 54 + + 3 ELSE NULL END ), + ( COUNT ( * ) ), 97 * 14 )
----
1

query I rowsort
SELECT - ( 23 ) * - - 9 AS col1
----
-207

query I rowsort
SELECT DISTINCT + 56 + - 45
----
11

query I rowsort
SELECT DISTINCT + + 25 * + CASE - CASE - + 29 WHEN 50 + ( - 54 ) THEN 27 + - ( 57 ) END WHEN 40 THEN NULL ELSE ( 94 ) END + 30 col1
----
2380

query I rowsort
SELECT ALL + + 60 * - 54 * - 43 + - 14 AS col2
----
139306

onlyif mysql # aggregate syntax: 
query I rowsort label-6071
SELECT - + SUM( ALL + 70 ) - - 17
----
-53

skipif mysql # not compatible
query I rowsort label-6071
SELECT - + SUM ( ALL + 70 ) - - 17
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6072
SELECT DISTINCT + - MIN( ALL 22 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-6072
SELECT DISTINCT + - MIN ( ALL 22 ) AS col2
----
-22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6073
SELECT ALL + + CAST( NULL AS DECIMAL ) * ( - 8 ) + - 13 + + 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6073
SELECT ALL + + CAST ( NULL AS REAL ) * ( - 8 ) + - 13 + + 7 AS col2
----
NULL

query I rowsort
SELECT ALL + ( + - 63 ) AS col2
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6075
SELECT DISTINCT 44 / + CAST( NULL AS SIGNED ) + 59 * + 84 + - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-6075
SELECT DISTINCT 44 / + CAST ( NULL AS INTEGER ) + 59 * + 84 + - 97
----
NULL

query I rowsort
SELECT ALL - 17 * 72 + + - 55
----
-1279

query II rowsort
SELECT + 19 - - 57 col2, + 4 AS col2
----
76
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6078
SELECT - 7 * + ( + - 2 ) + 22 * COALESCE ( 55, - CAST( NULL AS SIGNED ), + ( COALESCE ( 48, + COUNT( * ) + 93, + 76 + + 34 * + 61, 98 ) ) * + 77 )
----
1224

skipif mysql # not compatible
query I rowsort label-6078
SELECT - 7 * + ( + - 2 ) + 22 * COALESCE ( 55, - CAST ( NULL AS INTEGER ), + ( COALESCE ( 48, + COUNT ( * ) + 93, + 76 + + 34 * + 61, 98 ) ) * + 77 )
----
1224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6079
SELECT + NULLIF ( CAST( NULL AS SIGNED ), + COUNT( * ) ) - + - COALESCE ( 72, 91, - 66 ) + - ( COUNT( * ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6079
SELECT + NULLIF ( CAST ( NULL AS INTEGER ), + COUNT ( * ) ) - + - COALESCE ( 72, 91, - 66 ) + - ( COUNT ( * ) ) col2
----
NULL

query I rowsort
SELECT ALL 90 * - 91 + - 3 - + + 95 + - 49 col1
----
-8337

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT + 90 * - + 44 * + ( - MAX( DISTINCT + 55 ) )
----
217800

skipif mysql # not compatible
query I rowsort label-6081
SELECT + 90 * - + 44 * + ( - MAX ( DISTINCT + 55 ) )
----
217800

query I rowsort
SELECT ALL 29 * - 92 col1
----
-2668

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6083
SELECT DISTINCT + COUNT( * ), + 39 + - CAST( - 13 AS SIGNED ) col2
----
1
52

skipif mysql # not compatible
query II rowsort label-6083
SELECT DISTINCT + COUNT ( * ), + 39 + - CAST ( - 13 AS INTEGER ) col2
----
1
52

query I rowsort
SELECT ALL 18 * 94
----
1692

onlyif mysql # aggregate syntax: 
query I rowsort label-6085
SELECT ALL 36 * - CASE + + 38 WHEN - SUM( ALL 98 ) * + 18 + + 63 * - COUNT( * ) THEN - COUNT( * ) + - 11 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6085
SELECT ALL 36 * - CASE + + 38 WHEN - SUM ( ALL 98 ) * + 18 + + 63 * - COUNT ( * ) THEN - COUNT ( * ) + - 11 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6086
SELECT + COALESCE ( - COUNT( * ), + + 88, + 27 + - MIN( ALL 9 ) ) + 85 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-6086
SELECT + COALESCE ( - COUNT ( * ), + + 88, + 27 + - MIN ( ALL 9 ) ) + 85 AS col2
----
84

query I rowsort
SELECT - COALESCE ( + - 77, - 32, - 49 + - + 13 ) AS col2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6088
SELECT - 6 + + - CAST( - 11 AS SIGNED ) + 19 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-6088
SELECT - 6 + + - CAST ( - 11 AS INTEGER ) + 19 AS col1
----
24

query I rowsort
SELECT - COALESCE ( 9, - + 44 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT COUNT( DISTINCT + - 80 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6090
SELECT COUNT ( DISTINCT + - 80 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6091
SELECT - 83 + + COALESCE ( - 74, + 42 DIV + COUNT( * ) ) - 78 AS col0
----
-235

skipif mysql # not compatible
query I rowsort label-6091
SELECT - 83 + + COALESCE ( - 74, + 42 / + COUNT ( * ) ) - 78 AS col0
----
-235

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT ALL MIN( - - 25 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-6092
SELECT ALL MIN ( - - 25 ) AS col2
----
25

query I rowsort
SELECT ALL COALESCE ( - - 78, - + 36 * 55 )
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-6094
SELECT ALL - COUNT( * ) * - - MIN( ALL + - 21 ) AS col1, 32 AS col0
----
21
32

skipif mysql # not compatible
query II rowsort label-6094
SELECT ALL - COUNT ( * ) * - - MIN ( ALL + - 21 ) AS col1, 32 AS col0
----
21
32

query I rowsort
SELECT - 64 * - 36 AS col2
----
2304

query I rowsort
SELECT ALL 70 + + 96 AS col1
----
166

query I rowsort
SELECT ALL - 33 * 11 AS col0
----
-363

onlyif mysql # DIV for integer division: 
query I rowsort label-6098
SELECT + 28 DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-6098
SELECT + 28 / - 79
----
0

query I rowsort
SELECT - 34 + - 79 + + 21 * 4 AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT DISTINCT - COUNT( * ) + 4 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-6100
SELECT DISTINCT - COUNT ( * ) + 4 AS col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6101
SELECT ALL + 61 + - + 62 + - COUNT( * ) * - COALESCE ( - COUNT( * ), 39 * - CAST( NULL AS SIGNED ), 63 ) + + 29 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-6101
SELECT ALL + 61 + - + 62 + - COUNT ( * ) * - COALESCE ( - COUNT ( * ), 39 * - CAST ( NULL AS INTEGER ), 63 ) + + 29 AS col0
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6102
SELECT - - 23 - + ( COUNT( * ) ) * - 77 + 93 DIV - ( 84 * - 34 ) AS col0
----
100

skipif mysql # not compatible
query I rowsort label-6102
SELECT - - 23 - + ( COUNT ( * ) ) * - 77 + 93 / - ( 84 * - 34 ) AS col0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT ALL - 18 * - 9 * - - AVG ( DISTINCT 6 ) + 5 - 89 * - CASE NULLIF ( + 30, NULLIF ( 34, 75 ) * ( 5 ) - COUNT( * ) ) * - 56 WHEN COUNT( 82 ) * + 62 THEN 18 + 41 WHEN + 14 THEN + 20 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6103
SELECT ALL - 18 * - 9 * - - AVG ( DISTINCT 6 ) + 5 - 89 * - CASE NULLIF ( + 30, NULLIF ( 34, 75 ) * ( 5 ) - COUNT ( * ) ) * - 56 WHEN COUNT ( 82 ) * + 62 THEN 18 + 41 WHEN + 14 THEN + 20 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6104
SELECT - + COUNT( * ) + + - 9 * + - 20, - 30 * - 27 - + COUNT( + 90 ) AS col1
----
179
809

skipif mysql # not compatible
query II rowsort label-6104
SELECT - + COUNT ( * ) + + - 9 * + - 20, - 30 * - 27 - + COUNT ( + 90 ) AS col1
----
179
809

onlyif mysql # DIV for integer division: 
query I rowsort label-6105
SELECT ALL - 37 DIV - 15 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6105
SELECT ALL - 37 / - 15 AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6106
SELECT ALL - + CAST( + + 69 AS SIGNED ) DIV 78 + - 57 - + 5 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-6106
SELECT ALL - + CAST ( + + 69 AS INTEGER ) / 78 + - 57 - + 5 AS col1
----
-62

query I rowsort
SELECT + - 6 * 92 + + - 76
----
-628

onlyif mysql # aggregate syntax: 
query II rowsort label-6108
SELECT - 16 AS col2, + ( - 9 ) / + ( CASE - 49 WHEN 19 THEN + COUNT( * ) ELSE NULL END ) AS col1
----
-16
NULL

skipif mysql # not compatible
query II rowsort label-6108
SELECT - 16 AS col2, + ( - 9 ) / + ( CASE - 49 WHEN 19 THEN + COUNT ( * ) ELSE NULL END ) AS col1
----
-16
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6109
SELECT 66 DIV + + MAX( 2 ) + + 11 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-6109
SELECT 66 / + + MAX ( 2 ) + + 11 AS col2
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-6110
SELECT + - 91 + + - 72 * 62 DIV - + 41 - ( - 32 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-6110
SELECT + - 91 + + - 72 * 62 / - + 41 - ( - 32 ) AS col2
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6111
SELECT ALL 63 DIV 1 - - COUNT( * ) * + 11 - + 70 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-6111
SELECT ALL 63 / 1 - - COUNT ( * ) * + 11 - + 70 AS col2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6112
SELECT ALL + CASE CAST( + 71 AS SIGNED ) WHEN + 52 + - - 21 * 83 THEN - 92 - 13 ELSE - ( + 19 ) END
----
-19

skipif mysql # not compatible
query I rowsort label-6112
SELECT ALL + CASE CAST ( + 71 AS INTEGER ) WHEN + 52 + - - 21 * 83 THEN - 92 - 13 ELSE - ( + 19 ) END
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT ALL - COUNT( * ) * + - 70 * + + 35 * ( + COALESCE ( 94, 83 * COUNT( * ) ) )
----
230300

skipif mysql # not compatible
query I rowsort label-6113
SELECT ALL - COUNT ( * ) * + - 70 * + + 35 * ( + COALESCE ( 94, 83 * COUNT ( * ) ) )
----
230300

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT ALL + CASE - 54 WHEN - 17 * - 95 * - + 93 + 40 THEN + 50 WHEN 91 THEN 10 WHEN 11 + + COUNT( * ) * - 49 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6114
SELECT ALL + CASE - 54 WHEN - 17 * - 95 * - + 93 + 40 THEN + 50 WHEN 91 THEN 10 WHEN 11 + + COUNT ( * ) * - 49 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + + NULLIF ( - 73, - + 35 )
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6116
SELECT 44 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6116
SELECT 44 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6117
SELECT ALL 63 DIV + - 82 * - + 71 col1, 64 DIV + 69 AS col0
----
0
0

skipif mysql # not compatible
query II rowsort label-6117
SELECT ALL 63 / + - 82 * - + 71 col1, 64 / + 69 AS col0
----
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-6118
SELECT + 24 AS col1, 39 DIV - + 86 + 80 AS col0, COUNT( * ) * - 99 + - 74 * + 98
----
24
80
-7351

skipif mysql # not compatible
query III rowsort label-6118
SELECT + 24 AS col1, 39 / - + 86 + 80 AS col0, COUNT ( * ) * - 99 + - 74 * + 98
----
24
80
-7351

onlyif mysql # aggregate syntax: 
query II rowsort label-6119
SELECT 37 AS col2, - COUNT( * )
----
37
-1

skipif mysql # not compatible
query II rowsort label-6119
SELECT 37 AS col2, - COUNT ( * )
----
37
-1

query I rowsort
SELECT 74 * - 8
----
-592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6121
SELECT 9 * + + MAX( + + 92 ) * + - CAST( NULL AS SIGNED ) * + + CASE - + 29 WHEN - ( + 66 ) + - NULLIF ( + 22, 77 / 54 + + 74 ) * - 76 THEN - COUNT( * ) - + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6121
SELECT 9 * + + MAX ( + + 92 ) * + - CAST ( NULL AS INTEGER ) * + + CASE - + 29 WHEN - ( + 66 ) + - NULLIF ( + 22, 77 / 54 + + 74 ) * - 76 THEN - COUNT ( * ) - + COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 84 * 2 - - 62
----
230

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT DISTINCT + MAX( DISTINCT - + 79 ) + - + 18 - - 71
----
-26

skipif mysql # not compatible
query I rowsort label-6123
SELECT DISTINCT + MAX ( DISTINCT - + 79 ) + - + 18 - - 71
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-6124
SELECT 74 AS col0, MAX( ALL - 55 )
----
74
-55

skipif mysql # not compatible
query II rowsort label-6124
SELECT 74 AS col0, MAX ( ALL - 55 )
----
74
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT ALL COALESCE ( - 29, + AVG ( DISTINCT - ( - 87 ) ) * + COUNT( * ) ) + CASE WHEN NOT ( NULL ) NOT BETWEEN ( - 99 ) AND SUM( ALL + 69 ) * - AVG ( - 17 - 96 ) THEN - 64 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6125
SELECT ALL COALESCE ( - 29, + AVG ( DISTINCT - ( - 87 ) ) * + COUNT ( * ) ) + CASE WHEN NOT ( NULL ) NOT BETWEEN ( - 99 ) AND SUM ( ALL + 69 ) * - AVG ( - 17 - 96 ) THEN - 64 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT DISTINCT - COALESCE ( + COUNT( * ), + + 76 * - 82 ) + 81 + - - 18 * 11 AS col2
----
278

skipif mysql # not compatible
query I rowsort label-6126
SELECT DISTINCT - COALESCE ( + COUNT ( * ), + + 76 * - 82 ) + 81 + - - 18 * 11 AS col2
----
278

query I rowsort
SELECT ALL + 74 + 39 - COALESCE ( + 93, + + 19 ) AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6128
SELECT DISTINCT 81 + + ( NULLIF ( - COUNT( * ), - 14 ) ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-6128
SELECT DISTINCT 81 + + ( NULLIF ( - COUNT ( * ), - 14 ) ) AS col1
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-6129
SELECT 99 + + 42 + 37 DIV - - 69 * 74 AS col1
----
141

skipif mysql # not compatible
query I rowsort label-6129
SELECT 99 + + 42 + 37 / - - 69 * 74 AS col1
----
141

onlyif mysql # DIV for integer division: 
query I rowsort label-6130
SELECT 34 - 56 DIV - 1
----
90

skipif mysql # not compatible
query I rowsort label-6130
SELECT 34 - 56 / - 1
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6131
SELECT DISTINCT 62 AS col0, - COUNT( * ) DIV - + ( - + 59 )
----
62
0

skipif mysql # not compatible
query II rowsort label-6131
SELECT DISTINCT 62 AS col0, - COUNT ( * ) / - + ( - + 59 )
----
62
0

query II rowsort
SELECT 74 AS col1, + 32
----
74
32

query II rowsort
SELECT 9 AS col0, 60 AS col1
----
9
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6134
SELECT ALL 51 + + 67 + COUNT( * ) * - + 23 * + 65 * 84
----
-125462

skipif mysql # not compatible
query I rowsort label-6134
SELECT ALL 51 + + 67 + COUNT ( * ) * - + 23 * + 65 * 84
----
-125462

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT ALL - ( ( - COALESCE ( - - COUNT( * ), - 72 ) ) ) / 15 + - 95 * CASE 68 WHEN - 44 THEN - 87 / 30 WHEN + 87 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6135
SELECT ALL - ( ( - COALESCE ( - - COUNT ( * ), - 72 ) ) ) / 15 + - 95 * CASE 68 WHEN - 44 THEN - 87 / 30 WHEN + 87 THEN NULL END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6136
SELECT ALL 21 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6136
SELECT ALL 21 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6137
SELECT COUNT( * ) DIV + + 27 * - 74 * - CAST( 55 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6137
SELECT COUNT ( * ) / + + 27 * - 74 * - CAST ( 55 AS INTEGER )
----
0

query I rowsort
SELECT ( - + 28 ) + + + 22 + - 24
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-6139
SELECT - COALESCE ( - - 95, - - 75 DIV 98 * - - 70 ) col2
----
-95

skipif mysql # not compatible
query I rowsort label-6139
SELECT - COALESCE ( - - 95, - - 75 / 98 * - - 70 ) col2
----
-95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6140
SELECT 10 + - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6140
SELECT 10 + - - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT + - NULLIF ( + + 58, + + 2 ) AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT ALL - + CASE - COUNT( * ) WHEN - + 90 + + ( + 68 ) THEN ( 50 ) WHEN 83 - + 41 THEN NULL ELSE - 75 * 73 END
----
5475

skipif mysql # not compatible
query I rowsort label-6142
SELECT ALL - + CASE - COUNT ( * ) WHEN - + 90 + + ( + 68 ) THEN ( 50 ) WHEN 83 - + 41 THEN NULL ELSE - 75 * 73 END
----
5475

onlyif mysql # aggregate syntax: 
query I rowsort label-6143
SELECT CASE 12 WHEN - 88 THEN + 51 WHEN 64 * - 40 THEN + SUM( ALL 42 ) ELSE + 36 END
----
36

skipif mysql # not compatible
query I rowsort label-6143
SELECT CASE 12 WHEN - 88 THEN + 51 WHEN 64 * - 40 THEN + SUM ( ALL 42 ) ELSE + 36 END
----
36

query I rowsort
SELECT - 67 + ( 57 ) AS col0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6145
SELECT + NULLIF ( ( - + 70 ), - NULLIF ( + AVG ( ALL + 57 ), 7 / + COUNT( * ) + - 67 * - CASE + 28 * 4 + 76 * + 71 WHEN 43 THEN + 39 ELSE 78 END ) ) * - 6 + - 6 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6145
SELECT + NULLIF ( ( - + 70 ), - NULLIF ( + AVG ( ALL + 57 ), 7 / + COUNT ( * ) + - 67 * - CASE + 28 * 4 + 76 * + 71 WHEN 43 THEN + 39 ELSE 78 END ) ) * - 6 + - 6 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6146
SELECT ALL - - 24 AS col1, COUNT( * )
----
24
1

skipif mysql # not compatible
query II rowsort label-6146
SELECT ALL - - 24 AS col1, COUNT ( * )
----
24
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6147
SELECT DISTINCT + 32 DIV - 74 + + + COUNT( * ) + 67 * + 5 * + COUNT( * ) * 82 AS col0
----
27471

skipif mysql # not compatible
query I rowsort label-6147
SELECT DISTINCT + 32 / - 74 + + + COUNT ( * ) + 67 * + 5 * + COUNT ( * ) * 82 AS col0
----
27471

onlyif mysql # aggregate syntax: 
query II rowsort label-6148
SELECT ALL - + 34 AS col0, ( 25 ) + - COUNT( * ) AS col1
----
-34
24

skipif mysql # not compatible
query II rowsort label-6148
SELECT ALL - + 34 AS col0, ( 25 ) + - COUNT ( * ) AS col1
----
-34
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6149
SELECT DISTINCT - + SUM( 3 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-6149
SELECT DISTINCT - + SUM ( 3 ) AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT + 17 - 73 - + + 96 * - ( - - COUNT( * ) ) * + - 5 * - 17
----
8104

skipif mysql # not compatible
query I rowsort label-6150
SELECT + 17 - 73 - + + 96 * - ( - - COUNT ( * ) ) * + - 5 * - 17
----
8104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6151
SELECT 59 * 2 * MIN( + + 97 ) * ( + 19 ) DIV 96 + 0 AS col1
----
2265

skipif mysql # not compatible
query I rowsort label-6151
SELECT 59 * 2 * MIN ( + + 97 ) * ( + 19 ) / 96 + 0 AS col1
----
2265

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT - 60 * - - COUNT( * ) + - - 3 - - - 56 * 41 AS col1
----
-2353

skipif mysql # not compatible
query I rowsort label-6152
SELECT - 60 * - - COUNT ( * ) + - - 3 - - - 56 * 41 AS col1
----
-2353

onlyif mysql # aggregate syntax: 
query I rowsort label-6153
SELECT DISTINCT - 59 * ( COUNT( * ) )
----
-59

skipif mysql # not compatible
query I rowsort label-6153
SELECT DISTINCT - 59 * ( COUNT ( * ) )
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6154
SELECT ALL - ( - CAST( + + 5 AS SIGNED ) )
----
5

skipif mysql # not compatible
query I rowsort label-6154
SELECT ALL - ( - CAST ( + + 5 AS INTEGER ) )
----
5

query I rowsort
SELECT 83 * - - 45 * COALESCE ( + + 26, - + 18 * ( - - 38 ), - 95 + 52 )
----
97110

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT 19 * + 32 * + COALESCE ( 21, - + MAX( ALL - - 33 ) - - 95 )
----
12768

skipif mysql # not compatible
query I rowsort label-6156
SELECT 19 * + 32 * + COALESCE ( 21, - + MAX ( ALL - - 33 ) - - 95 )
----
12768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6157
SELECT 90 + + CASE 38 WHEN + - 83 / - 36 + - - 75 THEN + - COUNT( * ) + 39 WHEN + MAX( DISTINCT - 1 ) - 63 THEN NULL END + ( 21 ) / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6157
SELECT 90 + + CASE 38 WHEN + - 83 / - 36 + - - 75 THEN + - COUNT ( * ) + 39 WHEN + MAX ( DISTINCT - 1 ) - 63 THEN NULL END + ( 21 ) / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6158
SELECT ALL - NULLIF ( + CAST( NULL AS SIGNED ), - 59 ) * 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6158
SELECT ALL - NULLIF ( + CAST ( NULL AS INTEGER ), - 59 ) * 86 AS col2
----
NULL

query I rowsort
SELECT + 18 * + 28 * 29 + 51 + - 30 AS col0
----
14637

query I rowsort
SELECT ALL + 5 + + 59 + + 9
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-6161
SELECT ALL - MIN( - + 71 ), 68 * + ( + ( ( + 25 ) ) ) AS col1
----
71
1700

skipif mysql # not compatible
query II rowsort label-6161
SELECT ALL - MIN ( - + 71 ), 68 * + ( + ( ( + 25 ) ) ) AS col1
----
71
1700

onlyif mysql # aggregate syntax: 
query I rowsort label-6162
SELECT ALL SUM( ALL - 82 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-6162
SELECT ALL SUM ( ALL - 82 ) AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT COUNT( * ) + + + COUNT( * ) + + 93 * - 46
----
-4276

skipif mysql # not compatible
query I rowsort label-6163
SELECT COUNT ( * ) + + + COUNT ( * ) + + 93 * - 46
----
-4276

query I rowsort
SELECT ALL 75 + 44 + + + 11 * - 93 col2
----
-904

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6165
SELECT DISTINCT COALESCE ( + COUNT( * ), - COUNT( DISTINCT - 53 ) DIV + - ( + + 78 ), - + SUM( DISTINCT 92 ) * 37 ) DIV + COALESCE ( + COUNT( * ), + 31 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6165
SELECT DISTINCT COALESCE ( + COUNT ( * ), - COUNT ( DISTINCT - 53 ) / + - ( + + 78 ), - + SUM ( DISTINCT 92 ) * 37 ) / + COALESCE ( + COUNT ( * ), + 31 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6166
SELECT COUNT( * ) * - + COUNT( * ) AS col1, 68 DIV + - 51 + - COUNT( * ) + + - 62
----
-1
-64

skipif mysql # not compatible
query II rowsort label-6166
SELECT COUNT ( * ) * - + COUNT ( * ) AS col1, 68 / + - 51 + - COUNT ( * ) + + - 62
----
-1
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6167
SELECT COUNT( * ) + 67 - - + COUNT( * ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-6167
SELECT COUNT ( * ) + 67 - - + COUNT ( * ) AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT ALL MAX( - 30 ) - + ( - 4 )
----
-26

skipif mysql # not compatible
query I rowsort label-6168
SELECT ALL MAX ( - 30 ) - + ( - 4 )
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6169
SELECT CASE + CASE - 49 WHEN + + CAST( NULL AS SIGNED ) THEN + 40 * - ( + COALESCE ( 61, + 15 ) ) END WHEN ( - 94 ) * + 98 THEN NULL WHEN - 64 * + 75 THEN 81 ELSE - 44 + - 12 END * - 20
----
1120

skipif mysql # not compatible
query I rowsort label-6169
SELECT CASE + CASE - 49 WHEN + + CAST ( NULL AS INTEGER ) THEN + 40 * - ( + COALESCE ( 61, + 15 ) ) END WHEN ( - 94 ) * + 98 THEN NULL WHEN - 64 * + 75 THEN 81 ELSE - 44 + - 12 END * - 20
----
1120

query I rowsort
SELECT + 6 - + 5 AS col1
----
1

query II rowsort
SELECT 33 * - 2, 16 * + - 50 AS col1
----
-66
-800

query I rowsort
SELECT + ( - - NULLIF ( - 84, + - 49 ) )
----
-84

query I rowsort
SELECT 12 * 15 AS col0
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT COUNT( * ) + + - 80
----
-79

skipif mysql # not compatible
query I rowsort label-6174
SELECT COUNT ( * ) + + - 80
----
-79

query II rowsort
SELECT - 56 - - 8 AS col1, - 12 * + - 4 * 39 AS col0
----
-48
1872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6176
SELECT DISTINCT 0 * ( + - 91 ) + + 50 * - - COALESCE ( CAST( NULL AS SIGNED ), 44 DIV + ( - COUNT( * ) ) + 18 ) * 52
----
-67600

skipif mysql # not compatible
query I rowsort label-6176
SELECT DISTINCT 0 * ( + - 91 ) + + 50 * - - COALESCE ( CAST ( NULL AS INTEGER ), 44 / + ( - COUNT ( * ) ) + 18 ) * 52
----
-67600

query I rowsort
SELECT + + 14 * + 30 + 61
----
481

query I rowsort
SELECT ALL + 3 * - - 15
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6179
SELECT DISTINCT 57 DIV + COALESCE ( 41, + - 19 * + COALESCE ( - SUM( DISTINCT COALESCE ( - 5, + 64 * - 18 ) ), + 48 ) + + 88 * ( - 5 * - 25 + + 28 ) + 79 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6179
SELECT DISTINCT 57 / + COALESCE ( 41, + - 19 * + COALESCE ( - SUM ( DISTINCT COALESCE ( - 5, + 64 * - 18 ) ), + 48 ) + + 88 * ( - 5 * - 25 + + 28 ) + 79 ) AS col2
----
1

query I rowsort
SELECT - ( ( + 99 ) ) col0
----
-99

query I rowsort
SELECT - 0 * - - 8 + 24
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6182
SELECT + CASE - 97 WHEN 35 THEN NULL WHEN + - 64 THEN + CASE COUNT( * ) WHEN + 98 THEN NULL WHEN - 88 * - 54 - 41 THEN + ( - CAST( 53 AS SIGNED ) ) WHEN - COUNT( * ) * 95 THEN NULL ELSE NULL END * 52 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6182
SELECT + CASE - 97 WHEN 35 THEN NULL WHEN + - 64 THEN + CASE COUNT ( * ) WHEN + 98 THEN NULL WHEN - 88 * - 54 - 41 THEN + ( - CAST ( 53 AS INTEGER ) ) WHEN - COUNT ( * ) * 95 THEN NULL ELSE NULL END * 52 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6183
SELECT ALL 84 * - COUNT( * ), 67 * + 1 * + 80 col1
----
-84
5360

skipif mysql # not compatible
query II rowsort label-6183
SELECT ALL 84 * - COUNT ( * ), 67 * + 1 * + 80 col1
----
-84
5360

query I rowsort
SELECT + - CASE + - 4 WHEN 1 THEN - + 94 END
----
NULL

query I rowsort
SELECT - 28 + - ( + + 56 ) AS col1
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-6186
SELECT - 60 DIV - 30
----
2

skipif mysql # not compatible
query I rowsort label-6186
SELECT - 60 / - 30
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-6187
SELECT COUNT( * ), NULLIF ( - NULLIF ( 4, - 13 * 10 + COALESCE ( - ( + AVG ( ALL 29 ) ), - AVG ( ALL + 94 ), + 94 ) ), - 8 * + 80 ) - 40 AS col2
----
1
-44

skipif mysql # not compatible
query II rowsort label-6187
SELECT COUNT ( * ), NULLIF ( - NULLIF ( 4, - 13 * 10 + COALESCE ( - ( + AVG ( ALL 29 ) ), - AVG ( ALL + 94 ), + 94 ) ), - 8 * + 80 ) - 40 AS col2
----
1
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-6188
SELECT - 24 DIV 24 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6188
SELECT - 24 / 24 AS col2
----
-1

query I rowsort
SELECT - 41 * 91 AS col2
----
-3731

onlyif mysql # DIV for integer division: 
query I rowsort label-6190
SELECT ALL + 1 DIV ( + 32 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6190
SELECT ALL + 1 / ( + 32 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6191
SELECT + COUNT( * ) + 95 + + + 55 * + 4 AS col0
----
316

skipif mysql # not compatible
query I rowsort label-6191
SELECT + COUNT ( * ) + 95 + + + 55 * + 4 AS col0
----
316

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6192
SELECT - 70 * CAST( - - 75 AS SIGNED ) * 79
----
-414750

skipif mysql # not compatible
query I rowsort label-6192
SELECT - 70 * CAST ( - - 75 AS INTEGER ) * 79
----
-414750

query II rowsort
SELECT ALL + 38 * + 66 + - ( 97 ) col2, ( + - 1 ) * + CASE - ( ( - 44 ) ) WHEN + 35 + 23 THEN NULL WHEN + 59 / 5 + 93 THEN - 23 END - - 59 AS col2
----
2411
NULL

query I rowsort
SELECT - 81 - 27 - + 70 + + ( - - 8 ) + - 69 * + 16 AS col0
----
-1274

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6195
SELECT ALL + CAST( NULL AS SIGNED ) * - NULLIF ( + 1, - - CASE + 30 WHEN + ( - AVG ( + - 63 ) ) * - 57 THEN - 40 + - 60 END + - 96 * + 8 ) * COUNT( DISTINCT - 45 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6195
SELECT ALL + CAST ( NULL AS INTEGER ) * - NULLIF ( + 1, - - CASE + 30 WHEN + ( - AVG ( + - 63 ) ) * - 57 THEN - 40 + - 60 END + - 96 * + 8 ) * COUNT ( DISTINCT - 45 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6196
SELECT ALL + 84 * + NULLIF ( CASE - + 49 WHEN + 89 - - + 38 THEN + 2 + + COUNT( * ) ELSE 86 END, 29 + - ( 33 ) )
----
7224

skipif mysql # not compatible
query I rowsort label-6196
SELECT ALL + 84 * + NULLIF ( CASE - + 49 WHEN + 89 - - + 38 THEN + 2 + + COUNT ( * ) ELSE 86 END, 29 + - ( 33 ) )
----
7224

query I rowsort
SELECT - 34 + + 20 AS col0
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6198
SELECT DISTINCT 70, + 62 DIV SUM( + - 96 ) AS col2
----
70
0

skipif mysql # not compatible
query II rowsort label-6198
SELECT DISTINCT 70, + 62 / SUM ( + - 96 ) AS col2
----
70
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6199
SELECT + + 70 - - MAX( ALL + + ( - - 5 ) ) + - 28
----
47

skipif mysql # not compatible
query I rowsort label-6199
SELECT + + 70 - - MAX ( ALL + + ( - - 5 ) ) + - 28
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-6200
SELECT ( + ( - 51 ) ) AS col2, - 31 AS col0, 54 + + 51 DIV NULLIF ( - + COUNT( * ), 7 ) + - 89 AS col2
----
-51
-31
-86

skipif mysql # not compatible
query III rowsort label-6200
SELECT ( + ( - 51 ) ) AS col2, - 31 AS col0, 54 + + 51 / NULLIF ( - + COUNT ( * ), 7 ) + - 89 AS col2
----
-51
-31
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6201
SELECT + CAST( - + 48 AS SIGNED ) - 67 * + ( + + 9 )
----
-651

skipif mysql # not compatible
query I rowsort label-6201
SELECT + CAST ( - + 48 AS INTEGER ) - 67 * + ( + + 9 )
----
-651

query I rowsort
SELECT + 96 * - 97
----
-9312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6203
SELECT ALL - CASE - + COUNT( * ) WHEN + 70 + - 16 THEN + 71 / - + 12 / ( 81 ) + + CAST( NULL AS SIGNED ) WHEN + 70 + + CAST( + COUNT( * ) AS SIGNED ) * - COALESCE ( - AVG ( 21 ) / + 87, 75 + - 1, - 68 * - 10 ) THEN NULL END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6203
SELECT ALL - CASE - + COUNT ( * ) WHEN + 70 + - 16 THEN + 71 / - + 12 / ( 81 ) + + CAST ( NULL AS INTEGER ) WHEN + 70 + + CAST ( + COUNT ( * ) AS INTEGER ) * - COALESCE ( - AVG ( 21 ) / + 87, 75 + - 1, - 68 * - 10 ) THEN NULL END * - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + COALESCE ( + 50, + + NULLIF ( + - 82, - + 22 * 20 * 49 * - 45 - + 2 ) ) AS col0
----
50

query I rowsort
SELECT - - ( + ( - ( + 0 ) ) ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6206
SELECT ALL 63 AS col1, COUNT( + - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) ) AS col1
----
63
0

skipif mysql # not compatible
query II rowsort label-6206
SELECT ALL 63 AS col1, COUNT ( + - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) ) AS col1
----
63
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6207
SELECT + + COUNT( DISTINCT - + 61 ) * - + CASE + COUNT( * ) WHEN - - 88 * + - COUNT( * ) THEN 89 * + + 11 + + NULLIF ( - 12, COUNT( * ) * 9 ) ELSE NULLIF ( - 54, + 9 / 15 + 61 ) END
----
54

skipif mysql # not compatible
query I rowsort label-6207
SELECT + + COUNT ( DISTINCT - + 61 ) * - + CASE + COUNT ( * ) WHEN - - 88 * + - COUNT ( * ) THEN 89 * + + 11 + + NULLIF ( - 12, COUNT ( * ) * 9 ) ELSE NULLIF ( - 54, + 9 / 15 + 61 ) END
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT ALL - CASE ( - - COUNT( * ) ) WHEN + 81 + - - 67 / - 36 + - 17 + + AVG ( DISTINCT + 51 ) / 49 THEN + 78 + 13 / + 35 ELSE NULL END * + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-6208
SELECT ALL - CASE ( - - COUNT ( * ) ) WHEN + 81 + - - 67 / - 36 + - 17 + + AVG ( DISTINCT + 51 ) / 49 THEN + 78 + 13 / + 35 ELSE NULL END * + 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT - + COUNT( DISTINCT - 52 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6209
SELECT - + COUNT ( DISTINCT - 52 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6210
SELECT ALL ( + 60 ) + - - CAST( 14 AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-6210
SELECT ALL ( + 60 ) + - - CAST ( 14 AS INTEGER )
----
74

query II rowsort
SELECT ALL + 86 AS col0, 89
----
86
89

query II rowsort
SELECT + 64 AS col0, 17
----
64
17

onlyif mysql # aggregate syntax: 
query II rowsort label-6213
SELECT 42 AS col0, + COUNT( * )
----
42
1

skipif mysql # not compatible
query II rowsort label-6213
SELECT 42 AS col0, + COUNT ( * )
----
42
1

query I rowsort
SELECT ALL - 20 / 50 * + 91 + - + CASE + ( ( + - 71 ) ) WHEN - - 86 THEN - ( 90 ) END + 98 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6215
SELECT ALL + MIN( 84 ) AS col0, ( CAST( - 16 AS SIGNED ) ), - + 41 * + 88 AS col0
----
84
-16
-3608

skipif mysql # not compatible
query III rowsort label-6215
SELECT ALL + MIN ( 84 ) AS col0, ( CAST ( - 16 AS INTEGER ) ), - + 41 * + 88 AS col0
----
84
-16
-3608

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6216
SELECT + MIN( DISTINCT - 83 ) * + + CAST( NULL AS DECIMAL ) + - COUNT( * ), - CASE + 19 WHEN COUNT( DISTINCT + 50 ) THEN 18 * NULLIF ( + 9, - COUNT( * ) ) WHEN + 90 THEN NULL END AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6216
SELECT + MIN ( DISTINCT - 83 ) * + + CAST ( NULL AS REAL ) + - COUNT ( * ), - CASE + 19 WHEN COUNT ( DISTINCT + 50 ) THEN 18 * NULLIF ( + 9, - COUNT ( * ) ) WHEN + 90 THEN NULL END AS col1
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6217
SELECT 15 DIV + - 58 + + 18
----
18

skipif mysql # not compatible
query I rowsort label-6217
SELECT 15 / + - 58 + + 18
----
18

query I rowsort
SELECT ALL - 20 / - - CASE + 60 WHEN 10 * 48 + - 51 THEN + 29 * 59 * 71 END + + 14
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6219
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) * 6 * COUNT( * ) * - - 19 AS col1
----
114

skipif mysql # not compatible
query I rowsort label-6219
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) * 6 * COUNT ( * ) * - - 19 AS col1
----
114

query I rowsort
SELECT + 18 - + 12
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6221
SELECT MAX( - 72 ) * + COUNT( * ) * - 66 + ( + - 5 ) + + 21 + + - CAST( NULL AS SIGNED ) * NULLIF ( + 29, 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6221
SELECT MAX ( - 72 ) * + COUNT ( * ) * - 66 + ( + - 5 ) + + 21 + + - CAST ( NULL AS INTEGER ) * NULLIF ( + 29, 5 )
----
NULL

query I rowsort
SELECT ALL - 43 * + 55 + - - 43 AS col2
----
-2322

onlyif mysql # aggregate syntax: 
query I rowsort label-6223
SELECT + ( - + NULLIF ( - 21, + + 23 + - 98 + + - COUNT( * ) ) )
----
21

skipif mysql # not compatible
query I rowsort label-6223
SELECT + ( - + NULLIF ( - 21, + + 23 + - 98 + + - COUNT ( * ) ) )
----
21

query II rowsort
SELECT ( 98 ) AS col0, + 44
----
98
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6225
SELECT - 34 * + ( + 5 ) + + CAST( + 82 AS SIGNED ) * - + 91 - - 23 - - 41
----
-7568

skipif mysql # not compatible
query I rowsort label-6225
SELECT - 34 * + ( + 5 ) + + CAST ( + 82 AS INTEGER ) * - + 91 - - 23 - - 41
----
-7568

query I rowsort
SELECT + 82 + 90 + + 29
----
201

query I rowsort
SELECT DISTINCT 5 * - + 34 * + 66 AS col2
----
-11220

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT ALL + MIN( ALL - - 77 ) * + 18 - - 12 + - 69 * 34 - - 6 AS col0
----
-942

skipif mysql # not compatible
query I rowsort label-6228
SELECT ALL + MIN ( ALL - - 77 ) * + 18 - - 12 + - 69 * 34 - - 6 AS col0
----
-942

query I rowsort
SELECT 16 * - 20 + - NULLIF ( - - 58, - 78 ) AS col1
----
-378

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6230
SELECT ALL - 43 DIV - MAX( DISTINCT - 4 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-6230
SELECT ALL - 43 / - MAX ( DISTINCT - 4 ) AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT - 77 * + - 14 + - MAX( DISTINCT + 3 ) - - + 40 * - 4 + + COUNT( * ) * - COALESCE ( COUNT( * ), 98 * 96, 97 )
----
914

skipif mysql # not compatible
query I rowsort label-6231
SELECT - 77 * + - 14 + - MAX ( DISTINCT + 3 ) - - + 40 * - 4 + + COUNT ( * ) * - COALESCE ( COUNT ( * ), 98 * 96, 97 )
----
914

onlyif mysql # aggregate syntax: 
query I rowsort label-6232
SELECT ALL 2 * + - NULLIF ( + 22, - - 12 ) - + - COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-6232
SELECT ALL 2 * + - NULLIF ( + 22, - - 12 ) - + - COUNT ( * )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT - COUNT( * ) * - COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6233
SELECT - COUNT ( * ) * - COUNT ( * ) col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6234
SELECT ALL 92 / + ( - - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6234
SELECT ALL 92 / + ( - - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT - 58 + ( - + COALESCE ( - 56, - 51 - + + 72 ) ) AS col0
----
-2

query I rowsort
SELECT + - 13 * + 9
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT - - COUNT( * ) * - 38 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-6237
SELECT - - COUNT ( * ) * - 38 AS col2
----
-38

query I rowsort
SELECT - 71 + 31
----
-40

query I rowsort
SELECT CASE - + 39 WHEN - 7 THEN - 52 / + + 27 END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6240
SELECT - - CASE + 72 WHEN - 96 THEN 34 + CAST( NULL AS SIGNED ) + - 76 + COUNT( * ) + 18 + 38 * 74 WHEN COALESCE ( + 34, + 84 / 96 ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6240
SELECT - - CASE + 72 WHEN - 96 THEN 34 + CAST ( NULL AS INTEGER ) + - 76 + COUNT ( * ) + 18 + 38 * 74 WHEN COALESCE ( + 34, + 84 / 96 ) THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6241
SELECT ALL - MAX( ALL - 4 ) * 94 * + + 57 * - 72
----
-1543104

skipif mysql # not compatible
query I rowsort label-6241
SELECT ALL - MAX ( ALL - 4 ) * 94 * + + 57 * - 72
----
-1543104

onlyif mysql # aggregate syntax: 
query II rowsort label-6242
SELECT - 33 + 57, - COUNT( * ) AS col1
----
24
-1

skipif mysql # not compatible
query II rowsort label-6242
SELECT - 33 + 57, - COUNT ( * ) AS col1
----
24
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6243
SELECT ALL CAST( - 42 AS SIGNED ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-6243
SELECT ALL CAST ( - 42 AS INTEGER ) AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT ALL - 67 + COUNT( * ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-6244
SELECT ALL - 67 + COUNT ( * ) AS col0
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-6245
SELECT DISTINCT + COUNT( 1 ) AS col1, - 40 + - COUNT( ALL 3 )
----
1
-41

skipif mysql # not compatible
query II rowsort label-6245
SELECT DISTINCT + COUNT ( 1 ) AS col1, - 40 + - COUNT ( ALL 3 )
----
1
-41

query I rowsort
SELECT 5 * 70 AS col2
----
350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6247
SELECT + COUNT( + 18 ) + + - 33 DIV + 61 * + 88 + 3 + - 7
----
-3

skipif mysql # not compatible
query I rowsort label-6247
SELECT + COUNT ( + 18 ) + + - 33 / + 61 * + 88 + 3 + - 7
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6248
SELECT 95 + - SUM( + 17 ) + + COUNT( * ) DIV 46 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-6248
SELECT 95 + - SUM ( + 17 ) + + COUNT ( * ) / 46 AS col1
----
78

query I rowsort
SELECT - 88 * 59 col0
----
-5192

onlyif mysql # aggregate syntax: 
query I rowsort label-6250
SELECT - + MAX( 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-6250
SELECT - + MAX ( 17 )
----
-17

query I rowsort
SELECT COALESCE ( - ( - 42 ), 20 ) + - - 29 AS col0
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6252
SELECT DISTINCT - 9 DIV 5 AS col2, COUNT( * ) AS col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-6252
SELECT DISTINCT - 9 / 5 AS col2, COUNT ( * ) AS col1
----
-1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6253
SELECT ALL - 51 + + COUNT( - - 73 ) * + - CAST( NULL AS SIGNED ), + 28 AS col1
----
NULL
28

skipif mysql # not compatible
query II rowsort label-6253
SELECT ALL - 51 + + COUNT ( - - 73 ) * + - CAST ( NULL AS INTEGER ), + 28 AS col1
----
NULL
28

query I rowsort
SELECT - - CASE + AVG ( 62 ) WHEN - 83 THEN NULL ELSE - 86 + + 99 END
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6255
SELECT ALL + - 32 + - 55 + + 86 DIV 66 * - 43 * + COUNT( * ) * - COUNT( * ) * + ( CASE - 36 WHEN + CASE 84 WHEN 4 - 50 THEN NULL ELSE 79 * 84 + + COALESCE ( - ( - 5 ), 26 + - COUNT( * ), - 44 * CASE - ( 46 ) WHEN + 98 DIV - 7 THEN NULL WHEN ( + 42 ) THEN NULL WHEN 35 THEN ( 22 ) ELSE NULL END ) * 45 END * 72 THEN + 56 WHEN ( 14 ) - - 46 THEN 63 ELSE MIN( ALL + 99 ) - 26 * ( SUM( 33 ) - 32 ) END ) + + 63
----
3115

skipif mysql # not compatible
query I rowsort label-6255
SELECT ALL + - 32 + - 55 + + 86 / 66 * - 43 * + COUNT ( * ) * - COUNT ( * ) * + ( CASE - 36 WHEN + CASE 84 WHEN 4 - 50 THEN NULL ELSE 79 * 84 + + COALESCE ( - ( - 5 ), 26 + - COUNT ( * ), - 44 * CASE - ( 46 ) WHEN + 98 / - 7 THEN NULL WHEN ( + 42 ) THEN NULL WHEN 35 THEN ( 22 ) ELSE NULL END ) * 45 END * 72 THEN + 56 WHEN ( 14 ) - - 46 THEN 63 ELSE MIN ( ALL + 99 ) - 26 * ( SUM ( 33 ) - 32 ) END ) + + 63
----
3115

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6256
SELECT 21 DIV + 1, COUNT( + 29 ) * 61 DIV 15 DIV - + COUNT( * ) col1
----
21
-4

skipif mysql # not compatible
query II rowsort label-6256
SELECT 21 / + 1, COUNT ( + 29 ) * 61 / 15 / - + COUNT ( * ) col1
----
21
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6257
SELECT ALL + 46 + + CAST( NULL AS SIGNED ) + + NULLIF ( + 66, 20 * - ( - 46 ) / + 58 ) * - 34 * - ( - NULLIF ( + ( 53 ), 52 + + 90 ) ) * - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-6257
SELECT ALL + 46 + + CAST ( NULL AS INTEGER ) + + NULLIF ( + 66, 20 * - ( - 46 ) / + 58 ) * - 34 * - ( - NULLIF ( + ( 53 ), 52 + + 90 ) ) * - 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT - COUNT( * ) * + 62 + + + 96 - + 43 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-6258
SELECT - COUNT ( * ) * + 62 + + + 96 - + 43 AS col0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-6259
SELECT 89 DIV 87
----
1

skipif mysql # not compatible
query I rowsort label-6259
SELECT 89 / 87
----
1

query I rowsort
SELECT 10 * - 9 + + 88
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6261
SELECT ( - ( CAST( NULL AS SIGNED ) ) ) + - 46 * - 79 * + 64 + - 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6261
SELECT ( - ( CAST ( NULL AS INTEGER ) ) ) + - 46 * - 79 * + 64 + - 26 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT NULLIF ( + - COUNT( * ), COUNT( * ) ) * + - COALESCE ( + 89, 43, + ( + 51 ) ) * + - 56
----
-4984

skipif mysql # not compatible
query I rowsort label-6262
SELECT NULLIF ( + - COUNT ( * ), COUNT ( * ) ) * + - COALESCE ( + 89, 43, + ( + 51 ) ) * + - 56
----
-4984

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT DISTINCT COUNT( * ) - 90
----
-89

skipif mysql # not compatible
query I rowsort label-6263
SELECT DISTINCT COUNT ( * ) - 90
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6264
SELECT ALL - CASE 83 WHEN - COALESCE ( ( CAST( NULL AS SIGNED ) ), - CAST( - 79 AS SIGNED ) * - + 4 * + + 22 * - - 36 * - 41, - COUNT( * ) * 93 ) THEN 39 WHEN 12 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6264
SELECT ALL - CASE 83 WHEN - COALESCE ( ( CAST ( NULL AS INTEGER ) ), - CAST ( - 79 AS INTEGER ) * - + 4 * + + 22 * - - 36 * - 41, - COUNT ( * ) * 93 ) THEN 39 WHEN 12 THEN NULL END
----
NULL

query II rowsort
SELECT 67 AS col2, 20 - 8 AS col2
----
67
12

query I rowsort
SELECT ALL 46 - - - 25
----
21

query I rowsort
SELECT ALL 5 * + 22 AS col0
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6268
SELECT 50 * - CAST( + AVG ( ALL 46 ) AS SIGNED ) * + ( + - 73 ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6268
SELECT 50 * - CAST ( + AVG ( ALL 46 ) AS INTEGER ) * + ( + - 73 ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6269
SELECT COUNT( * ) + + 74 DIV - + NULLIF ( NULLIF ( - 74, + 34 ), - - 67 )
----
2

skipif mysql # not compatible
query I rowsort label-6269
SELECT COUNT ( * ) + + 74 / - + NULLIF ( NULLIF ( - 74, + 34 ), - - 67 )
----
2

query I rowsort
SELECT 33 + 32
----
65

query I rowsort
SELECT 75 * + 58
----
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-6272
SELECT DISTINCT 4 * COUNT( * ) col1
----
4

skipif mysql # not compatible
query I rowsort label-6272
SELECT DISTINCT 4 * COUNT ( * ) col1
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6273
SELECT 18 - - 50 * + NULLIF ( + 2, - 67 * + 72 ) + + 61 + COUNT( * ) - - COUNT( * ) * - 71 DIV 68
----
179

skipif mysql # not compatible
query I rowsort label-6273
SELECT 18 - - 50 * + NULLIF ( + 2, - 67 * + 72 ) + + 61 + COUNT ( * ) - - COUNT ( * ) * - 71 / 68
----
179

query I rowsort
SELECT ALL 78 * + - 90 AS col0
----
-7020

onlyif mysql # aggregate syntax: 
query I rowsort label-6275
SELECT DISTINCT + 29 * ( + + COUNT( * ) ) - - + 54
----
83

skipif mysql # not compatible
query I rowsort label-6275
SELECT DISTINCT + 29 * ( + + COUNT ( * ) ) - - + 54
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6276
SELECT 10 + - COUNT( + NULLIF ( - + 0, + 0 - 41 + + + CAST( NULL AS SIGNED ) ) ) + ( + 15 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-6276
SELECT 10 + - COUNT ( + NULLIF ( - + 0, + 0 - 41 + + + CAST ( NULL AS INTEGER ) ) ) + ( + 15 ) AS col2
----
24

query I rowsort
SELECT 41 * 61 * + 28
----
70028

query I rowsort
SELECT ALL 5 + + 63
----
68

query I rowsort
SELECT - 58 - - - 46 AS col1
----
-104

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6280
SELECT 79 - 99 * + CAST( NULL AS DECIMAL ) + 39 * + 17 - + ( - - AVG ( 74 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6280
SELECT 79 - 99 * + CAST ( NULL AS REAL ) + 39 * + 17 - + ( - - AVG ( 74 ) )
----
NULL

query I rowsort
SELECT ALL + 55 + ( + ( - ( - - 25 ) ) )
----
30

query I rowsort
SELECT - + ( 51 ) AS col1
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6283
SELECT - 34 * - + 44 + - 38 DIV + + COUNT( * ) AS col0
----
1458

skipif mysql # not compatible
query I rowsort label-6283
SELECT - 34 * - + 44 + - 38 / + + COUNT ( * ) AS col0
----
1458

query I rowsort
SELECT 59 + 9 AS col1
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6285
SELECT DISTINCT + + CAST( + 46 AS SIGNED ) + - + 79 * COALESCE ( + + 73, + 12 * - + SUM( DISTINCT + 65 ), 32 ) DIV 20 - COUNT( * ) - ( + NULLIF ( - 32, 41 * - 48 ) + + 34 ) AS col1
----
-245

skipif mysql # not compatible
query I rowsort label-6285
SELECT DISTINCT + + CAST ( + 46 AS INTEGER ) + - + 79 * COALESCE ( + + 73, + 12 * - + SUM ( DISTINCT + 65 ), 32 ) / 20 - COUNT ( * ) - ( + NULLIF ( - 32, 41 * - 48 ) + + 34 ) AS col1
----
-245

onlyif mysql # aggregate syntax: 
query II rowsort label-6286
SELECT DISTINCT + MIN( ALL + ( 49 ) ) + + + 71 + + 12 col0, ( + 87 )
----
132
87

skipif mysql # not compatible
query II rowsort label-6286
SELECT DISTINCT + MIN ( ALL + ( 49 ) ) + + + 71 + + 12 col0, ( + 87 )
----
132
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6287
SELECT CAST( 86 AS SIGNED ) + + CASE 53 WHEN + COUNT( ALL + ( + 78 ) ) THEN + 51 WHEN COUNT( * ) THEN 42 * 12 + - 77 ELSE NULL END + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-6287
SELECT CAST ( 86 AS INTEGER ) + + CASE 53 WHEN + COUNT ( ALL + ( + 78 ) ) THEN + 51 WHEN COUNT ( * ) THEN 42 * 12 + - 77 ELSE NULL END + 68
----
NULL

query II rowsort
SELECT 34 AS col2, 84 * 8 * + 62 AS col0
----
34
41664

onlyif mysql # aggregate syntax: 
query II rowsort label-6289
SELECT COUNT( * ) AS col2, 31 + + 32 * + + 65 col0
----
1
2111

skipif mysql # not compatible
query II rowsort label-6289
SELECT COUNT ( * ) AS col2, 31 + + 32 * + + 65 col0
----
1
2111

query II rowsort
SELECT + 82, + 23 AS col2
----
82
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT 15 + + - 20 * - COUNT( * ) * - 44
----
-865

skipif mysql # not compatible
query I rowsort label-6291
SELECT 15 + + - 20 * - COUNT ( * ) * - 44
----
-865

query I rowsort
SELECT 18 * - 75 AS col0
----
-1350

query I rowsort
SELECT DISTINCT - ( - - 82 ) * + 17
----
-1394

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT ALL 5 * + COALESCE ( COUNT( * ), + + 65, - 98 * - - 4 * - ( + 26 ) + - + SUM( ALL + 48 ) ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-6294
SELECT ALL 5 * + COALESCE ( COUNT ( * ), + + 65, - 98 * - - 4 * - ( + 26 ) + - + SUM ( ALL + 48 ) ) AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6295
SELECT 43 + - COUNT( - 29 )
----
42

skipif mysql # not compatible
query I rowsort label-6295
SELECT 43 + - COUNT ( - 29 )
----
42

query I rowsort
SELECT ALL - 52 * + 16 AS col1
----
-832

query II rowsort
SELECT DISTINCT - 82 AS col2, 79
----
-82
79

query I rowsort
SELECT 53 * - + 72 AS col1
----
-3816

query II rowsort
SELECT + 4, 38 * 70 AS col0
----
4
2660

query I rowsort
SELECT 59 + + 62
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT ALL - 80 * + - COUNT( * ) col2
----
80

skipif mysql # not compatible
query I rowsort label-6301
SELECT ALL - 80 * + - COUNT ( * ) col2
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6302
SELECT 30 * COUNT( * ) DIV 60 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6302
SELECT 30 * COUNT ( * ) / 60 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6303
SELECT + 62, 7 AS col2, + + 48 + + NULLIF ( - 73, + - ( + COUNT( * ) ) * + + 5 * 91 + + CAST( CAST( 37 AS SIGNED ) AS SIGNED ) ) + - MIN( ALL 80 ) * 32 AS col1
----
62
7
-2585

skipif mysql # not compatible
query III rowsort label-6303
SELECT + 62, 7 AS col2, + + 48 + + NULLIF ( - 73, + - ( + COUNT ( * ) ) * + + 5 * 91 + + CAST ( CAST ( 37 AS INTEGER ) AS INTEGER ) ) + - MIN ( ALL 80 ) * 32 AS col1
----
62
7
-2585

onlyif mysql # aggregate syntax: 
query II rowsort label-6304
SELECT SUM( DISTINCT - + 20 ) AS col1, - 17 AS col2
----
-20
-17

skipif mysql # not compatible
query II rowsort label-6304
SELECT SUM ( DISTINCT - + 20 ) AS col1, - 17 AS col2
----
-20
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6305
SELECT CASE - 70 WHEN - 44 THEN NULL WHEN 13 * - 54 THEN + 14 ELSE NULL END * - 78 + - COUNT( ALL - - COALESCE ( - 64, - 36 + - 75 ) ) + ( + 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6305
SELECT CASE - 70 WHEN - 44 THEN NULL WHEN 13 * - 54 THEN + 14 ELSE NULL END * - 78 + - COUNT ( ALL - - COALESCE ( - 64, - 36 + - 75 ) ) + ( + 37 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6306
SELECT - 93 + MIN( ALL - + 54 ) AS col1
----
-147

skipif mysql # not compatible
query I rowsort label-6306
SELECT - 93 + MIN ( ALL - + 54 ) AS col1
----
-147

query II rowsort
SELECT ALL + - 32, 59 + 79 + + - 41 + - - 42 - + 70 * 87 col0
----
-32
-5951

query I rowsort
SELECT DISTINCT + - 33 + + 37 * + 31 + + 56 - 84
----
1086

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT ALL + COUNT( * ) * + + 24 + - - 69
----
93

skipif mysql # not compatible
query I rowsort label-6309
SELECT ALL + COUNT ( * ) * + + 24 + - - 69
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT DISTINCT CASE + 8 WHEN + - MAX( - 30 ) * - COUNT( - + 65 ) + - ( - + 65 ) / - 96 THEN NULLIF ( + 7, - 7 * 73 ) END + 13 * 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6310
SELECT DISTINCT CASE + 8 WHEN + - MAX ( - 30 ) * - COUNT ( - + 65 ) + - ( - + 65 ) / - 96 THEN NULLIF ( + 7, - 7 * 73 ) END + 13 * 66 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6311
SELECT - + COUNT( * ) + - SUM( - 22 ) + + 9 * + 79 * ( + + 73 ) * 71 AS col0
----
3685134

skipif mysql # not compatible
query I rowsort label-6311
SELECT - + COUNT ( * ) + - SUM ( - 22 ) + + 9 * + 79 * ( + + 73 ) * 71 AS col0
----
3685134

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT + - 81 + - + COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-6312
SELECT + - 81 + - + COUNT ( * )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT ALL - 75 * + COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-6313
SELECT ALL - 75 * + COUNT ( * )
----
-75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-6314
SELECT - CAST( NULL AS DECIMAL ) AS col1, 73 + - COUNT( DISTINCT + 25 ) DIV + 40 col1
----
NULL
73

skipif mysql # not compatible
query II rowsort label-6314
SELECT - CAST ( NULL AS REAL ) AS col1, 73 + - COUNT ( DISTINCT + 25 ) / + 40 col1
----
NULL
73

onlyif mysql # DIV for integer division: 
query I rowsort label-6315
SELECT + 52 DIV + - 68
----
0

skipif mysql # not compatible
query I rowsort label-6315
SELECT + 52 / + - 68
----
0

query I rowsort
SELECT + + 6 + - 87 AS col0
----
-81

query III rowsort
SELECT - - 35 col2, 89 col0, 22 AS col2
----
35
89
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT ( - COALESCE ( COUNT( * ), + 55 - - 44 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6318
SELECT ( - COALESCE ( COUNT ( * ), + 55 - - 44 ) )
----
-1

query I rowsort
SELECT ALL 79 * + 76
----
6004

query I rowsort
SELECT + 61 * 87 + 45 col0
----
5352

query I rowsort
SELECT DISTINCT + ( 37 ) + + 68 AS col0
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6322
SELECT DISTINCT - CAST( - NULLIF ( - 73, + COALESCE ( 84, + 93 * + 11 + COUNT( * ) + - 62 + - 63, 86 ) ) AS SIGNED ) * - COUNT( * ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-6322
SELECT DISTINCT - CAST ( - NULLIF ( - 73, + COALESCE ( 84, + 93 * + 11 + COUNT ( * ) + - 62 + - 63, 86 ) ) AS INTEGER ) * - COUNT ( * ) AS col1
----
73

query I rowsort
SELECT ALL - 23 * + 97
----
-2231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6324
SELECT ALL + + CASE - + 92 WHEN - - 49 / + - 35 * + - 46 - - COUNT( + 11 ) + - + AVG ( DISTINCT - - 7 ) THEN NULL WHEN - + 27 THEN CASE COUNT( 67 ) WHEN - 23 THEN - ( - CAST( NULL AS SIGNED ) ) ELSE + 16 END END / + 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6324
SELECT ALL + + CASE - + 92 WHEN - - 49 / + - 35 * + - 46 - - COUNT ( + 11 ) + - + AVG ( DISTINCT - - 7 ) THEN NULL WHEN - + 27 THEN CASE COUNT ( 67 ) WHEN - 23 THEN - ( - CAST ( NULL AS INTEGER ) ) ELSE + 16 END END / + 68 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6325
SELECT + + 54 * - + COUNT( * ) col2
----
-54

skipif mysql # not compatible
query I rowsort label-6325
SELECT + + 54 * - + COUNT ( * ) col2
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6326
SELECT ALL + + COUNT( ALL 48 ) DIV - + 44 * + + ( 13 )
----
0

skipif mysql # not compatible
query I rowsort label-6326
SELECT ALL + + COUNT ( ALL 48 ) / - + 44 * + + ( 13 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6327
SELECT DISTINCT 11 AS col1, 33 - 84 - + 38 + + - 58 + - 37 + - - COALESCE ( - - CASE - - 97 WHEN + 64 + 18 + - 63 * + 24 THEN COUNT( * ) WHEN 35 * + 6 + CAST( - 97 + 25 AS SIGNED ) THEN + ( - 71 ) END, - ( - 1 ) + 85 * + 72 ) * - 35 * - CAST( 71 + ( + COUNT( * ) ) AS SIGNED ) * 32
----
11
493597256

skipif mysql # not compatible
query II rowsort label-6327
SELECT DISTINCT 11 AS col1, 33 - 84 - + 38 + + - 58 + - 37 + - - COALESCE ( - - CASE - - 97 WHEN + 64 + 18 + - 63 * + 24 THEN COUNT ( * ) WHEN 35 * + 6 + CAST ( - 97 + 25 AS INTEGER ) THEN + ( - 71 ) END, - ( - 1 ) + 85 * + 72 ) * - 35 * - CAST ( 71 + ( + COUNT ( * ) ) AS INTEGER ) * 32
----
11
493597256

onlyif mysql # DIV for integer division: 
query I rowsort label-6328
SELECT - + ( + - ( + 59 ) ) DIV + 51
----
1

skipif mysql # not compatible
query I rowsort label-6328
SELECT - + ( + - ( + 59 ) ) / + 51
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6329
SELECT ALL + 99 DIV + 38 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6329
SELECT ALL + 99 / + 38 AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6330
SELECT + ( COUNT( * ) ) * - 23 * - COUNT( * ) / 34 + + CAST( NULL AS SIGNED ) - + + 12 + - 1 + + 27 * COUNT( * ) * - COUNT( DISTINCT - 26 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6330
SELECT + ( COUNT ( * ) ) * - 23 * - COUNT ( * ) / 34 + + CAST ( NULL AS INTEGER ) - + + 12 + - 1 + + 27 * COUNT ( * ) * - COUNT ( DISTINCT - 26 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6331
SELECT - 54 * - ( - 95 ) * - + COUNT( * ) + 96 AS col1, 77 AS col2
----
5226
77

skipif mysql # not compatible
query II rowsort label-6331
SELECT - 54 * - ( - 95 ) * - + COUNT ( * ) + 96 AS col1, 77 AS col2
----
5226
77

query II rowsort
SELECT - ( + - 82 ) AS col2, - 14 - - - 83 col1
----
82
-97

query I rowsort
SELECT ALL 41 * + - 21
----
-861

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6334
SELECT ALL CASE - - 47 WHEN + 23 THEN - 66 * 2 + + - 68 + + 37 + + - 77 END, 26 + + CAST( NULL AS SIGNED ) + + - ( - - 81 ) col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6334
SELECT ALL CASE - - 47 WHEN + 23 THEN - 66 * 2 + + - 68 + + 37 + + - 77 END, 26 + + CAST ( NULL AS INTEGER ) + + - ( - - 81 ) col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6335
SELECT DISTINCT - ( 69 ) * 13 + COALESCE ( - MIN( DISTINCT - 68 ), + SUM( DISTINCT - 75 ), - 51 ) * - ( - + 48 ) col0
----
2367

skipif mysql # not compatible
query I rowsort label-6335
SELECT DISTINCT - ( 69 ) * 13 + COALESCE ( - MIN ( DISTINCT - 68 ), + SUM ( DISTINCT - 75 ), - 51 ) * - ( - + 48 ) col0
----
2367

query I rowsort
SELECT + 99 * - 86
----
-8514

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT ( - COALESCE ( - COUNT( * ), + COUNT( * ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6337
SELECT ( - COALESCE ( - COUNT ( * ), + COUNT ( * ) ) ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-6338
SELECT - 52 DIV - 93 AS col2, + 14 col1
----
0
14

skipif mysql # not compatible
query II rowsort label-6338
SELECT - 52 / - 93 AS col2, + 14 col1
----
0
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6339
SELECT - CASE - 31 WHEN AVG ( - 51 ) - + + 94 THEN NULL WHEN COUNT( * ) THEN + 93 + - CAST( MIN( DISTINCT + 11 ) AS SIGNED ) ELSE NULL END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6339
SELECT - CASE - 31 WHEN AVG ( - 51 ) - + + 94 THEN NULL WHEN COUNT ( * ) THEN + 93 + - CAST ( MIN ( DISTINCT + 11 ) AS INTEGER ) ELSE NULL END * - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 27 * 53 + + 44 AS col1
----
1475

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6341
SELECT ALL + SUM( CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6341
SELECT ALL + SUM ( CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT ALL 64 * - ( + + SUM( ALL - - COALESCE ( 90, + 62 ) ) ) + + 26 * + 55 * - ( - COUNT( * ) ) * - 84 col2
----
-125880

skipif mysql # not compatible
query I rowsort label-6342
SELECT ALL 64 * - ( + + SUM ( ALL - - COALESCE ( 90, + 62 ) ) ) + + 26 * + 55 * - ( - COUNT ( * ) ) * - 84 col2
----
-125880

query I rowsort
SELECT - + 1 * - - 49
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6344
SELECT ALL - COUNT( * ) * - 22 DIV - ( + 46 ) * - 5 + + - 86 * + - CAST( 53 AS SIGNED ) + 78 AS col1
----
4636

skipif mysql # not compatible
query I rowsort label-6344
SELECT ALL - COUNT ( * ) * - 22 / - ( + 46 ) * - 5 + + - 86 * + - CAST ( 53 AS INTEGER ) + 78 AS col1
----
4636

query I rowsort
SELECT - + 15 + - 85 + 54 AS col2
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-6346
SELECT + 40 * - MIN( ALL - 1 ) AS col1, - 75
----
40
-75

skipif mysql # not compatible
query II rowsort label-6346
SELECT + 40 * - MIN ( ALL - 1 ) AS col1, - 75
----
40
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6347
SELECT ALL 55 * + COALESCE ( + 95, + + 19, + + COUNT( * ) - + 48 ) + + - 74 col2
----
5151

skipif mysql # not compatible
query I rowsort label-6347
SELECT ALL 55 * + COALESCE ( + 95, + + 19, + + COUNT ( * ) - + 48 ) + + - 74 col2
----
5151

query I rowsort
SELECT + + 32 * + 88 * 69 * - - 10 - - 47 AS col0
----
1943087

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6349
SELECT DISTINCT - CAST( MIN( NULLIF ( - + ( + ( 15 ) ), 64 ) ) AS SIGNED ), 45 AS col1
----
15
45

skipif mysql # not compatible
query II rowsort label-6349
SELECT DISTINCT - CAST ( MIN ( NULLIF ( - + ( + ( 15 ) ), 64 ) ) AS INTEGER ), 45 AS col1
----
15
45

query I rowsort
SELECT ALL + ( + 70 ) * 83 * + 57 - + + 1
----
331169

query II rowsort
SELECT - + COALESCE ( - 29, - + 72 ) + 20 - - + 43 - - 90 - + - 86 col1, + 81 - + 52
----
268
29

query I rowsort
SELECT + + 8 * - + 25
----
-200

onlyif mysql # DIV for integer division: 
query I rowsort label-6353
SELECT - - 39 + - ( + 33 ) DIV - 23 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-6353
SELECT - - 39 + - ( + 33 ) / - 23 AS col1
----
40

query I rowsort
SELECT + 56 - + 7
----
49

query I rowsort
SELECT DISTINCT + 70 * 19
----
1330

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT + 70 + + + MAX( DISTINCT + 46 ) * 82 + + COUNT( * ) AS col2
----
3843

skipif mysql # not compatible
query I rowsort label-6356
SELECT + 70 + + + MAX ( DISTINCT + 46 ) * 82 + + COUNT ( * ) AS col2
----
3843

onlyif mysql # aggregate syntax: 
query I rowsort label-6357
SELECT DISTINCT COALESCE ( COUNT( * ), + 46 ) * + + 92 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-6357
SELECT DISTINCT COALESCE ( COUNT ( * ), + 46 ) * + + 92 AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6358
SELECT + 18 + 57 - + + 28 - 41 * - - 74 + SUM( ALL 84 ) AS col0
----
-2903

skipif mysql # not compatible
query I rowsort label-6358
SELECT + 18 + 57 - + + 28 - 41 * - - 74 + SUM ( ALL 84 ) AS col0
----
-2903

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT ALL COUNT( + 94 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6359
SELECT ALL COUNT ( + 94 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT + 35 * + - MIN( 50 ) * 91 AS col0
----
-159250

skipif mysql # not compatible
query I rowsort label-6360
SELECT + 35 * + - MIN ( 50 ) * 91 AS col0
----
-159250

query II rowsort
SELECT ALL ( - 80 ) * - 15 AS col0, - 53
----
1200
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-6362
SELECT DISTINCT + 7 DIV 38 * + 51
----
0

skipif mysql # not compatible
query I rowsort label-6362
SELECT DISTINCT + 7 / 38 * + 51
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6363
SELECT ALL NULLIF ( + CAST( COUNT( * ) AS SIGNED ), AVG ( - 78 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6363
SELECT ALL NULLIF ( + CAST ( COUNT ( * ) AS INTEGER ), AVG ( - 78 ) )
----
1

query I rowsort
SELECT + 99 + - + 65
----
34

query I rowsort
SELECT + 76 + + ( + 10 )
----
86

query I rowsort
SELECT ALL 87 + - 95 AS col1
----
-8

query I rowsort
SELECT + 93 + 88 AS col1
----
181

query I rowsort
SELECT + 69 + 33 + + CASE WHEN - 75 IS NULL THEN NULL WHEN NOT - CASE AVG ( DISTINCT - 28 ) WHEN + - 76 + + + 12 + + 7 + - + 18 THEN + 32 * 97 ELSE 11 / + 77 + - 42 * - 55 END <= NULL THEN 96 ELSE NULL END * 21 AS col0
----
NULL

query I rowsort
SELECT ALL + 90 + 6
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6370
SELECT + + 14 / - COUNT( * ) + - + COALESCE ( - 50, 88 + - 32, - + COUNT( 7 ) ) + 65 + + + 8 + - AVG ( DISTINCT - 86 ) * - SUM( + 1 ) * CAST( NULL AS SIGNED ) * + MAX( DISTINCT COALESCE ( - 33, + 6 ) / - 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6370
SELECT + + 14 / - COUNT ( * ) + - + COALESCE ( - 50, 88 + - 32, - + COUNT ( 7 ) ) + 65 + + + 8 + - AVG ( DISTINCT - 86 ) * - SUM ( + 1 ) * CAST ( NULL AS INTEGER ) * + MAX ( DISTINCT COALESCE ( - 33, + 6 ) / - 54 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6371
SELECT ALL - - CASE + 40 WHEN - + 60 THEN - - 6 + NULLIF ( - 6, - - 36 * + + CAST( NULL AS SIGNED ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6371
SELECT ALL - - CASE + 40 WHEN - + 60 THEN - - 6 + NULLIF ( - 6, - - 36 * + + CAST ( NULL AS INTEGER ) ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + - NULLIF ( + 53, 31 ) + ( + 96 ) AS col0
----
43

query I rowsort
SELECT + ( 69 ) * + + 78 * - 64
----
-344448

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT + ( + - CASE + - COUNT( * ) WHEN 22 + - 87 * + 83 THEN 87 * 61 * + 75 WHEN 94 * - ( + + 13 ) * COUNT( * ) * + 8 + - 65 + ( + 43 ) THEN 8 * 6 + 32 * 11 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6374
SELECT + ( + - CASE + - COUNT ( * ) WHEN 22 + - 87 * + 83 THEN 87 * 61 * + 75 WHEN 94 * - ( + + 13 ) * COUNT ( * ) * + 8 + - 65 + ( + 43 ) THEN 8 * 6 + 32 * 11 END )
----
NULL

query I rowsort
SELECT ALL - ( + - 66 )
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6376
SELECT ( - 82 ) DIV - ( + 10 ) + - 73 + 76 - + - COUNT( * ) * - - 91
----
102

skipif mysql # not compatible
query I rowsort label-6376
SELECT ( - 82 ) / - ( + 10 ) + - 73 + 76 - + - COUNT ( * ) * - - 91
----
102

query I rowsort
SELECT + NULLIF ( - 23, + 29 * 65 )
----
-23

query I rowsort
SELECT ALL - + 23 - 46
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-6379
SELECT 44 DIV - - 75 * 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6379
SELECT 44 / - - 75 * 94 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6380
SELECT - 27 DIV - COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-6380
SELECT - 27 / - COUNT ( * )
----
27

query I rowsort
SELECT 75 + 58 AS col1
----
133

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6382
SELECT + + 90 AS col1, SUM( DISTINCT 72 ) + NULLIF ( - - ( - - COALESCE ( + + 12, - 57 * - - 90 + - + 20 * - - 64, 1 * + - 9 DIV 3 ) ), - 28 )
----
90
84

skipif mysql # not compatible
query II rowsort label-6382
SELECT + + 90 AS col1, SUM ( DISTINCT 72 ) + NULLIF ( - - ( - - COALESCE ( + + 12, - 57 * - - 90 + - + 20 * - - 64, 1 * + - 9 / 3 ) ), - 28 )
----
90
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT 34 + 42 + + COALESCE ( - 4, + 42 + 40, + 88 - - SUM( DISTINCT + - 48 ) - ( + - 0 ) + 39 ) - + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-6383
SELECT 34 + 42 + + COALESCE ( - 4, + 42 + 40, + 88 - - SUM ( DISTINCT + - 48 ) - ( + - 0 ) + 39 ) - + COUNT ( * )
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-6384
SELECT - + 21 AS col1, COUNT( * ) AS col1
----
-21
1

skipif mysql # not compatible
query II rowsort label-6384
SELECT - + 21 AS col1, COUNT ( * ) AS col1
----
-21
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT SUM( - + 94 ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-6385
SELECT SUM ( - + 94 ) AS col1
----
-94

query II rowsort
SELECT DISTINCT - 85, 20 AS col0
----
-85
20

query II rowsort
SELECT 24 + 96 col1, - 26 AS col2
----
120
-26

query I rowsort
SELECT 34 + 38 - 11 col0
----
61

query I rowsort
SELECT ALL 24 + - - 55
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6390
SELECT DISTINCT + NULLIF ( - COUNT( ALL - + 78 ), + 41 ) + - + 76 + 16
----
-61

skipif mysql # not compatible
query I rowsort label-6390
SELECT DISTINCT + NULLIF ( - COUNT ( ALL - + 78 ), + 41 ) + - + 76 + 16
----
-61

query I rowsort
SELECT ( + 64 ) + 76
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT ALL 88 + - + COALESCE ( - - 53, + + COUNT( * ) ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-6392
SELECT ALL 88 + - + COALESCE ( - - 53, + + COUNT ( * ) ) AS col2
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-6393
SELECT ALL 40 + - 11 DIV 57 - - 50 + ( - 55 )
----
35

skipif mysql # not compatible
query I rowsort label-6393
SELECT ALL 40 + - 11 / 57 - - 50 + ( - 55 )
----
35

query I rowsort
SELECT DISTINCT 75 + + - 38 * + 27
----
-951

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT SUM( DISTINCT + + 26 ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-6395
SELECT SUM ( DISTINCT + + 26 ) AS col1
----
26

query II rowsort
SELECT - ( - 27 ) AS col2, + 74 AS col0
----
27
74

onlyif mysql # aggregate syntax: 
query II rowsort label-6397
SELECT NULLIF ( - 97, + 75 ) * - + 27, - 68 * - SUM( - - 44 ) AS col1
----
2619
2992

skipif mysql # not compatible
query II rowsort label-6397
SELECT NULLIF ( - 97, + 75 ) * - + 27, - 68 * - SUM ( - - 44 ) AS col1
----
2619
2992

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6398
SELECT + 62 * 57 col0, 79 + - + 78 + + + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED )
----
3534
NULL

skipif mysql # not compatible
query II rowsort label-6398
SELECT + 62 * 57 col0, 79 + - + 78 + + + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER )
----
3534
NULL

query I rowsort
SELECT ALL 1 * + 62 * 65 AS col0
----
4030

query I rowsort
SELECT ALL NULLIF ( + 58, - + AVG ( + ( - 20 ) ) ) - 18 AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6401
SELECT + + COUNT( CAST( NULL AS SIGNED ) ) AS col1, - 94
----
0
-94

skipif mysql # not compatible
query II rowsort label-6401
SELECT + + COUNT ( CAST ( NULL AS INTEGER ) ) AS col1, - 94
----
0
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-6402
SELECT ALL + 47 - + 72 DIV + 41
----
46

skipif mysql # not compatible
query I rowsort label-6402
SELECT ALL + 47 - + 72 / + 41
----
46

query I rowsort
SELECT 10 * - + 70
----
-700

onlyif mysql # aggregate syntax: 
query II rowsort label-6404
SELECT + MIN( - - 96 ) AS col0, + 97 AS col0
----
96
97

skipif mysql # not compatible
query II rowsort label-6404
SELECT + MIN ( - - 96 ) AS col0, + 97 AS col0
----
96
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT 59 + + CASE 69 WHEN + 13 THEN + + COUNT( * ) WHEN + 80 * + 60 + + 22 THEN NULL ELSE NULL END * - 15 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6405
SELECT 59 + + CASE 69 WHEN + 13 THEN + + COUNT ( * ) WHEN + 80 * + 60 + + 22 THEN NULL ELSE NULL END * - 15 + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT + 34 * + + MAX( DISTINCT - + 91 ) AS col1
----
-3094

skipif mysql # not compatible
query I rowsort label-6406
SELECT + 34 * + + MAX ( DISTINCT - + 91 ) AS col1
----
-3094

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6407
SELECT + MIN( 66 ) * + CAST( + + 50 AS SIGNED ) + - 42 AS col0
----
3258

skipif mysql # not compatible
query I rowsort label-6407
SELECT + MIN ( 66 ) * + CAST ( + + 50 AS INTEGER ) + - 42 AS col0
----
3258

onlyif mysql # aggregate syntax: 
query I rowsort label-6408
SELECT + COUNT( * ) * + 38 + - 20 + + 38 + + + 46 AS col2
----
102

skipif mysql # not compatible
query I rowsort label-6408
SELECT + COUNT ( * ) * + 38 + - 20 + + 38 + + + 46 AS col2
----
102

query I rowsort
SELECT - 0 * + 92 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6410
SELECT 28 + - CAST( NULL AS SIGNED ) + - 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6410
SELECT 28 + - CAST ( NULL AS INTEGER ) + - 66 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6411
SELECT 37 + - + 58 DIV COALESCE ( + 83, + + 46 DIV + CAST( + - 88 AS SIGNED ) * + SUM( - - ( 4 ) ) ) + - 5
----
32

skipif mysql # not compatible
query I rowsort label-6411
SELECT 37 + - + 58 / COALESCE ( + 83, + + 46 / + CAST ( + - 88 AS INTEGER ) * + SUM ( - - ( 4 ) ) ) + - 5
----
32

query II rowsort
SELECT ALL - 98 * 92 * - 8 col0, 71 * 55 AS col0
----
72128
3905

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6413
SELECT ALL - 25 + + SUM( 53 ) + + ( - 46 ) col1, + 73 + + + AVG ( DISTINCT + + 81 ) + CAST( NULL AS SIGNED ) * - 49 col2
----
-18
NULL

skipif mysql # not compatible
query II rowsort label-6413
SELECT ALL - 25 + + SUM ( 53 ) + + ( - 46 ) col1, + 73 + + + AVG ( DISTINCT + + 81 ) + CAST ( NULL AS INTEGER ) * - 49 col2
----
-18
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6414
SELECT 14 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6414
SELECT 14 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6415
SELECT - COUNT( * ) * - 45 + + ( + 39 )
----
84

skipif mysql # not compatible
query I rowsort label-6415
SELECT - COUNT ( * ) * - 45 + + ( + 39 )
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6416
SELECT 24 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6416
SELECT 24 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6417
SELECT DISTINCT + 53 + + - 51 - - CAST( NULL AS DECIMAL ) / - - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-6417
SELECT DISTINCT + 53 + + - 51 - - CAST ( NULL AS REAL ) / - - 61
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6418
SELECT 69 DIV - + 92
----
0

skipif mysql # not compatible
query I rowsort label-6418
SELECT 69 / - + 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT ALL + 35 + COUNT( * ) * - 20
----
15

skipif mysql # not compatible
query I rowsort label-6419
SELECT ALL + 35 + COUNT ( * ) * - 20
----
15

query II rowsort
SELECT 52 AS col1, + 84 AS col0
----
52
84

query I rowsort
SELECT DISTINCT + ( + COALESCE ( - 84, + 96, - 63 ) ) + - 68 - + 76 + 18 * 32
----
348

query I rowsort
SELECT ALL NULLIF ( - 68, + 36 ) AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT DISTINCT + 8 + + - CASE 39 WHEN 11 + - 5 THEN NULL WHEN - 19 THEN NULL WHEN 43 + 9 THEN 28 - - 48 END * + COUNT( * ) - 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6423
SELECT DISTINCT + 8 + + - CASE 39 WHEN 11 + - 5 THEN NULL WHEN - 19 THEN NULL WHEN 43 + 9 THEN 28 - - 48 END * + COUNT ( * ) - 46 AS col2
----
NULL

query I rowsort
SELECT - ( 91 ) + 71 AS col0
----
-20

query I rowsort
SELECT ALL + 35 * 4 AS col0
----
140

onlyif mysql # aggregate syntax: 
query II rowsort label-6426
SELECT ALL 34 + + + 97 * - - 55, - ( - - 96 ) + + COUNT( * ) AS col1
----
5369
-95

skipif mysql # not compatible
query II rowsort label-6426
SELECT ALL 34 + + + 97 * - - 55, - ( - - 96 ) + + COUNT ( * ) AS col1
----
5369
-95

query II rowsort
SELECT ALL CASE - 61 WHEN - 82 THEN + + 91 - - - 46 END AS col1, - 64
----
NULL
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6428
SELECT - 86 + + COUNT( * ) * - 43 AS col2
----
-129

skipif mysql # not compatible
query I rowsort label-6428
SELECT - 86 + + COUNT ( * ) * - 43 AS col2
----
-129

query I rowsort
SELECT - - 53 * - + 37 * - + 11 + - - 79
----
21650

onlyif mysql # DIV for integer division: 
query I rowsort label-6430
SELECT ALL - + 19 DIV 1 * - 58
----
1102

skipif mysql # not compatible
query I rowsort label-6430
SELECT ALL - + 19 / 1 * - 58
----
1102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6431
SELECT + COUNT( * ) * - + 51 + COUNT( * ) * 84 DIV - ( + 94 ) + 50 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6431
SELECT + COUNT ( * ) * - + 51 + COUNT ( * ) * 84 / - ( + 94 ) + 50 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT ALL + NULLIF ( + ( + 47 ), 45 - + CASE - - AVG ( + 64 ) WHEN + + COUNT( * ) + + 4 + - 98 THEN NULL ELSE + + 47 + 93 * - 83 END ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-6432
SELECT ALL + NULLIF ( + ( + 47 ), 45 - + CASE - - AVG ( + 64 ) WHEN + + COUNT ( * ) + + 4 + - 98 THEN NULL ELSE + + 47 + 93 * - 83 END ) AS col2
----
47

query I rowsort
SELECT + 87 + 7 AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6434
SELECT + - 96 + + COUNT( * ) col2
----
-95

skipif mysql # not compatible
query I rowsort label-6434
SELECT + - 96 + + COUNT ( * ) col2
----
-95

query I rowsort
SELECT - + 26 * - - 28 AS col0
----
-728

query II rowsort
SELECT ALL + 14 AS col0, + 51
----
14
51

onlyif mysql # DIV for integer division: 
query I rowsort label-6437
SELECT + 49 DIV + 83 * + - 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6437
SELECT + 49 / + 83 * + - 30 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6438
SELECT - 65 * - - COALESCE ( COUNT( * ), - 65, + + 38 ) + + SUM( 96 )
----
31

skipif mysql # not compatible
query I rowsort label-6438
SELECT - 65 * - - COALESCE ( COUNT ( * ), - 65, + + 38 ) + + SUM ( 96 )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6439
SELECT DISTINCT + - CAST( NULL AS SIGNED ), + COUNT( * ) + + - 79 AS col2
----
NULL
-78

skipif mysql # not compatible
query II rowsort label-6439
SELECT DISTINCT + - CAST ( NULL AS INTEGER ), + COUNT ( * ) + + - 79 AS col2
----
NULL
-78

query I rowsort
SELECT DISTINCT - - 6 * - 18 * 63
----
-6804

query II rowsort
SELECT ALL + 75 * - 33 * + + ( - 95 ) + 88 * - 8 AS col1, 8
----
234421
8

query I rowsort
SELECT + 0 * - - 84 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6443
SELECT + CASE + COUNT( * ) WHEN CAST( + 96 AS SIGNED ) THEN + - SUM( DISTINCT + 42 ) * + + 6 * 45 * + 97 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6443
SELECT + CASE + COUNT ( * ) WHEN CAST ( + 96 AS INTEGER ) THEN + - SUM ( DISTINCT + 42 ) * + + 6 * 45 * + 97 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6444
SELECT COUNT( * ) AS col0, 52 + - 42
----
1
10

skipif mysql # not compatible
query II rowsort label-6444
SELECT COUNT ( * ) AS col0, 52 + - 42
----
1
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT ALL COUNT( DISTINCT + - 19 )
----
1

skipif mysql # not compatible
query I rowsort label-6445
SELECT ALL COUNT ( DISTINCT + - 19 )
----
1

query II rowsort
SELECT - ( + 2 ), 80 + - 23 AS col2
----
-2
57

query I rowsort
SELECT - 41 * + 72 AS col2
----
-2952

onlyif mysql # aggregate syntax: 
query II rowsort label-6448
SELECT ALL - 94 + - 27 AS col1, - CASE + - COUNT( * ) WHEN + - 58 + + COUNT( * ) THEN 51 WHEN 36 THEN + 46 + - CASE + COUNT( - 39 ) WHEN + 19 * + 73 THEN - + COUNT( * ) WHEN + 31 THEN + COUNT( * ) ELSE NULL END WHEN + MAX( DISTINCT + 85 ) * - 72 THEN NULL WHEN + 73 + NULLIF ( COALESCE ( + 87, - 23 + + 70 ) + 0, + 70 * NULLIF ( 75 * - NULLIF ( - 65, 16 ), - 85 * 32 ) + - 78 ) THEN - COUNT( * ) + 27 / + 90 END AS col0
----
-121
NULL

skipif mysql # not compatible
query II rowsort label-6448
SELECT ALL - 94 + - 27 AS col1, - CASE + - COUNT ( * ) WHEN + - 58 + + COUNT ( * ) THEN 51 WHEN 36 THEN + 46 + - CASE + COUNT ( - 39 ) WHEN + 19 * + 73 THEN - + COUNT ( * ) WHEN + 31 THEN + COUNT ( * ) ELSE NULL END WHEN + MAX ( DISTINCT + 85 ) * - 72 THEN NULL WHEN + 73 + NULLIF ( COALESCE ( + 87, - 23 + + 70 ) + 0, + 70 * NULLIF ( 75 * - NULLIF ( - 65, 16 ), - 85 * 32 ) + - 78 ) THEN - COUNT ( * ) + 27 / + 90 END AS col0
----
-121
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT MIN( ALL 55 ) * + 31 + + 28 + + 61
----
1794

skipif mysql # not compatible
query I rowsort label-6449
SELECT MIN ( ALL 55 ) * + 31 + + 28 + + 61
----
1794

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT DISTINCT MAX( DISTINCT + 12 ) + - COUNT( * ) * 86 + 48
----
-26

skipif mysql # not compatible
query I rowsort label-6450
SELECT DISTINCT MAX ( DISTINCT + 12 ) + - COUNT ( * ) * 86 + 48
----
-26

query II rowsort
SELECT ALL 87 AS col0, 51 + 91 + + + 67
----
87
209

query II rowsort
SELECT DISTINCT + 22 + + 85 AS col2, - 23 AS col1
----
107
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT DISTINCT - 49 * + COUNT( * ) * + COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-6453
SELECT DISTINCT - 49 * + COUNT ( * ) * + COUNT ( * )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6454
SELECT - 16 + 95 + - COALESCE ( - COUNT( DISTINCT + - 23 ), - COUNT( * ), + + 59 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-6454
SELECT - 16 + 95 + - COALESCE ( - COUNT ( DISTINCT + - 23 ), - COUNT ( * ), + + 59 ) AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6455
SELECT - CASE - COUNT( ( 64 ) ) WHEN 50 THEN + + ( - + 90 ) * - 25 * 13 WHEN + 0 * 58 * - COUNT( DISTINCT - + 42 ) + + - 93 + - 53 + - 44 * - 92 / COUNT( * ) THEN NULL END * 93
----
NULL

skipif mysql # not compatible
query I rowsort label-6455
SELECT - CASE - COUNT ( ( 64 ) ) WHEN 50 THEN + + ( - + 90 ) * - 25 * 13 WHEN + 0 * 58 * - COUNT ( DISTINCT - + 42 ) + + - 93 + - 53 + - 44 * - 92 / COUNT ( * ) THEN NULL END * 93
----
NULL

query II rowsort
SELECT 94 col0, - 79 AS col2
----
94
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT ALL + MAX( + 9 ) - - 16
----
25

skipif mysql # not compatible
query I rowsort label-6457
SELECT ALL + MAX ( + 9 ) - - 16
----
25

query I rowsort
SELECT ALL - 4 * - - 19
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT - 80 * - - COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-6459
SELECT - 80 * - - COUNT ( * )
----
-80

query I rowsort
SELECT DISTINCT 4 * - 24 * 54 AS col1
----
-5184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6461
SELECT ALL - 2 * CAST( - + 72 AS SIGNED ) AS col2
----
144

skipif mysql # not compatible
query I rowsort label-6461
SELECT ALL - 2 * CAST ( - + 72 AS INTEGER ) AS col2
----
144

query II rowsort
SELECT 97, - 62 * + 73 AS col2
----
97
-4526

query I rowsort
SELECT - + NULLIF ( + - 8, + + 29 - + 17 ) * + 27 col1
----
216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6464
SELECT + - CAST( + 6 AS SIGNED ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-6464
SELECT + - CAST ( + 6 AS INTEGER ) AS col2
----
-6

query I rowsort
SELECT + ( - + 18 ) AS col2
----
-18

query II rowsort
SELECT + - 39 AS col0, 53 * + 87 AS col1
----
-39
4611

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6467
SELECT ALL + - CASE - 36 WHEN 51 THEN COUNT( * ) WHEN + + 27 THEN NULL ELSE - + COUNT( * ) * + COALESCE ( - 35, - 44 * - + COUNT( ALL + ( - - ( ( 83 ) ) ) ) ) END, 22 * + 85 + - 87 DIV MAX( - 33 + 57 * 33 ) AS col2
----
-35
1870

skipif mysql # not compatible
query II rowsort label-6467
SELECT ALL + - CASE - 36 WHEN 51 THEN COUNT ( * ) WHEN + + 27 THEN NULL ELSE - + COUNT ( * ) * + COALESCE ( - 35, - 44 * - + COUNT ( ALL + ( - - ( ( 83 ) ) ) ) ) END, 22 * + 85 + - 87 / MAX ( - 33 + 57 * 33 ) AS col2
----
-35
1870

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT ALL - + ( + SUM( ALL - 50 ) ) * COUNT( * ) * 1 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-6468
SELECT ALL - + ( + SUM ( ALL - 50 ) ) * COUNT ( * ) * 1 AS col1
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6469
SELECT ALL - + 22 DIV - + MIN( DISTINCT 42 ) + - 75
----
-75

skipif mysql # not compatible
query I rowsort label-6469
SELECT ALL - + 22 / - + MIN ( DISTINCT 42 ) + - 75
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT - COALESCE ( + + 73, - - 19 + - - MIN( DISTINCT - + 39 ) ) * COUNT( ALL - ( + 4 ) ) - - COUNT( * ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-6470
SELECT - COALESCE ( + + 73, - - 19 + - - MIN ( DISTINCT - + 39 ) ) * COUNT ( ALL - ( + 4 ) ) - - COUNT ( * ) AS col0
----
-72

query I rowsort
SELECT DISTINCT + - 48 col1
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6472
SELECT DISTINCT - + CASE + 77 WHEN - 83 THEN + 46 ELSE + 66 * - MIN( 55 ) DIV - ( + 58 ) + - 58 END DIV + 80 + - - 90, + 92 AS col0
----
90
92

skipif mysql # not compatible
query II rowsort label-6472
SELECT DISTINCT - + CASE + 77 WHEN - 83 THEN + 46 ELSE + 66 * - MIN ( 55 ) / - ( + 58 ) + - 58 END / + 80 + - - 90, + 92 AS col0
----
90
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6473
SELECT ALL + + 3 / CASE - - ( + ( + COUNT( * ) ) ) WHEN CAST( + CAST( - 9 AS SIGNED ) AS SIGNED ) * + - 3 / ( + CASE - + 63 WHEN + - 4 THEN - 80 END ) THEN - - 33 END * + 29 * 90 + - 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6473
SELECT ALL + + 3 / CASE - - ( + ( + COUNT ( * ) ) ) WHEN CAST ( + CAST ( - 9 AS INTEGER ) AS INTEGER ) * + - 3 / ( + CASE - + 63 WHEN + - 4 THEN - 80 END ) THEN - - 33 END * + 29 * 90 + - 48 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6474
SELECT - 41 DIV + 69 - + - 2 + + 97 - - SUM( 84 ) - - 50
----
233

skipif mysql # not compatible
query I rowsort label-6474
SELECT - 41 / + 69 - + - 2 + + 97 - - SUM ( 84 ) - - 50
----
233

query II rowsort
SELECT + 76 AS col0, + 25 AS col2
----
76
25

onlyif mysql # aggregate syntax: 
query II rowsort label-6476
SELECT - 59 + + - 65 + + 64 * + + 43 + + 72 AS col0, - 12 + + SUM( + 28 )
----
2700
16

skipif mysql # not compatible
query II rowsort label-6476
SELECT - 59 + + - 65 + + 64 * + + 43 + + 72 AS col0, - 12 + + SUM ( + 28 )
----
2700
16

query I rowsort
SELECT ( CASE - ( 55 ) WHEN - 58 THEN NULL WHEN - - AVG ( DISTINCT - 48 ) THEN 92 * - 37 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6478
SELECT ALL 65 DIV + 21, NULLIF ( COUNT( * ), AVG ( 16 ) * - 28 ) - + 78 DIV + 12 AS col2
----
3
-5

skipif mysql # not compatible
query II rowsort label-6478
SELECT ALL 65 / + 21, NULLIF ( COUNT ( * ), AVG ( 16 ) * - 28 ) - + 78 / + 12 AS col2
----
3
-5

query I rowsort
SELECT ALL 23 + 0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT 71 * + ( - 32 ) + + COUNT( * ) AS col0
----
-2271

skipif mysql # not compatible
query I rowsort label-6480
SELECT 71 * + ( - 32 ) + + COUNT ( * ) AS col0
----
-2271

query I rowsort
SELECT ( - - 95 ) + - 65 * + 55 * - ( 24 )
----
85895

query I rowsort
SELECT 49 + 34 AS col2
----
83

query I rowsort
SELECT 97 + + 61
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-6484
SELECT SUM( - 80 ) * - ( - + 34 ) * 18 * - 88 AS col1
----
4308480

skipif mysql # not compatible
query I rowsort label-6484
SELECT SUM ( - 80 ) * - ( - + 34 ) * 18 * - 88 AS col1
----
4308480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6485
SELECT DISTINCT + COUNT( * ) DIV 87
----
0

skipif mysql # not compatible
query I rowsort label-6485
SELECT DISTINCT + COUNT ( * ) / 87
----
0

query I rowsort
SELECT ALL CASE + 4 WHEN + - 6 * - 82 THEN + 42 ELSE - - 82 END
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT - COUNT( + - 59 )
----
-1

skipif mysql # not compatible
query I rowsort label-6487
SELECT - COUNT ( + - 59 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6488
SELECT + 55 / + CAST( NULL AS SIGNED ) + + 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6488
SELECT + 55 / + CAST ( NULL AS INTEGER ) + + 59 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6489
SELECT 18 + + 46 * + 18, - COUNT( * ) DIV + - 21 * - + 18 * - - 98 * - - 17 AS col0
----
846
0

skipif mysql # not compatible
query II rowsort label-6489
SELECT 18 + + 46 * + 18, - COUNT ( * ) / + - 21 * - + 18 * - - 98 * - - 17 AS col0
----
846
0

query I rowsort
SELECT 64 + - 53 + + + 75
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT 8 - + NULLIF ( - + ( ( - MIN( ALL - + 31 ) ) ), + 5 / 60 * - - 30 ) * + 90 * + 64
----
178568

skipif mysql # not compatible
query I rowsort label-6491
SELECT 8 - + NULLIF ( - + ( ( - MIN ( ALL - + 31 ) ) ), + 5 / 60 * - - 30 ) * + 90 * + 64
----
178568

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6492
SELECT ALL + COUNT( * ) * + CAST( NULL AS DECIMAL ) + NULLIF ( 21, - 49 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6492
SELECT ALL + COUNT ( * ) * + CAST ( NULL AS REAL ) + NULLIF ( 21, - 49 ) AS col1
----
NULL

query I rowsort
SELECT 54 * - - 66 + + + ( + - 71 ) AS col2
----
3493

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6494
SELECT + COUNT( * ) + COUNT( * ) * 16 + - - 64 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6494
SELECT + COUNT ( * ) + COUNT ( * ) * 16 + - - 64 + - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - ( + 87 )
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6496
SELECT ALL - COUNT( * ) + - 79 - + COUNT( * ) DIV - + COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-6496
SELECT ALL - COUNT ( * ) + - 79 - + COUNT ( * ) / - + COUNT ( * )
----
-79

query I rowsort
SELECT 87 + - - 18
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6498
SELECT ALL + 55 * CAST( NULL AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6498
SELECT ALL + 55 * CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6499
SELECT DISTINCT COALESCE ( - + CAST( + 21 AS SIGNED ), MAX( 59 ) ) + + 27
----
6

skipif mysql # not compatible
query I rowsort label-6499
SELECT DISTINCT COALESCE ( - + CAST ( + 21 AS INTEGER ), MAX ( 59 ) ) + + 27
----
6

query I rowsort
SELECT DISTINCT - 22 + + 72 + - 47 * 16 col0
----
-702

onlyif mysql # aggregate syntax: 
query I rowsort label-6501
SELECT ALL + 63 + - 97 + + + 65 * COUNT( * ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-6501
SELECT ALL + 63 + - 97 + + + 65 * COUNT ( * ) AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6502
SELECT DISTINCT + NULLIF ( COUNT( * ), 21 ) + + 92
----
93

skipif mysql # not compatible
query I rowsort label-6502
SELECT DISTINCT + NULLIF ( COUNT ( * ), 21 ) + + 92
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-6503
SELECT - COUNT( * ) * - 96 AS col2, - 63
----
96
-63

skipif mysql # not compatible
query II rowsort label-6503
SELECT - COUNT ( * ) * - 96 AS col2, - 63
----
96
-63

query I rowsort
SELECT + 5 * 85 + - 67
----
358

query I rowsort
SELECT + + CASE - 36 WHEN - + 4 THEN + 35 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6506
SELECT DISTINCT + ( 23 ) * + 37 * COUNT( CAST( + 36 AS SIGNED ) ) AS col2
----
851

skipif mysql # not compatible
query I rowsort label-6506
SELECT DISTINCT + ( 23 ) * + 37 * COUNT ( CAST ( + 36 AS INTEGER ) ) AS col2
----
851

onlyif mysql # DIV for integer division: 
query I rowsort label-6507
SELECT 53 * 68 DIV 81 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-6507
SELECT 53 * 68 / 81 AS col1
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6508
SELECT ALL + COUNT( * ) DIV + 50
----
0

skipif mysql # not compatible
query I rowsort label-6508
SELECT ALL + COUNT ( * ) / + 50
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6509
SELECT + 30 AS col0, - MAX( DISTINCT + 91 ) * - - 12 + - 18 - - 73 DIV - 99
----
30
-1110

skipif mysql # not compatible
query II rowsort label-6509
SELECT + 30 AS col0, - MAX ( DISTINCT + 91 ) * - - 12 + - 18 - - 73 / - 99
----
30
-1110

query I rowsort
SELECT 49 + 21 + - 14 AS col2
----
56

query I rowsort
SELECT DISTINCT + 58 - + ( - 54 ) * - ( - 47 ) col0
----
2596

onlyif mysql # aggregate syntax: 
query II rowsort label-6512
SELECT ALL - COUNT( * ) AS col2, - 7 * - + 26
----
-1
182

skipif mysql # not compatible
query II rowsort label-6512
SELECT ALL - COUNT ( * ) AS col2, - 7 * - + 26
----
-1
182

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT COUNT( + 20 ) + + + 10 + - 65 + - + NULLIF ( + COUNT( ALL ( + - 44 ) ), - 14 ) * + 49 * + ( + 20 ) AS col2
----
-1034

skipif mysql # not compatible
query I rowsort label-6513
SELECT COUNT ( + 20 ) + + + 10 + - 65 + - + NULLIF ( + COUNT ( ALL ( + - 44 ) ), - 14 ) * + 49 * + ( + 20 ) AS col2
----
-1034

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6514
SELECT ALL MAX( DISTINCT 65 ) DIV + 99
----
0

skipif mysql # not compatible
query I rowsort label-6514
SELECT ALL MAX ( DISTINCT 65 ) / + 99
----
0

query I rowsort
SELECT + 3 * 87 + 24 * - ( - 16 ) AS col2
----
645

query I rowsort
SELECT 87 - - - 31 AS col0
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-6517
SELECT ALL - 41 DIV + 12
----
-3

skipif mysql # not compatible
query I rowsort label-6517
SELECT ALL - 41 / + 12
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6518
SELECT NULLIF ( - - 0, - 5 + - 6 ) * ( + COUNT( * ) ) + 33 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-6518
SELECT NULLIF ( - - 0, - 5 + - 6 ) * ( + COUNT ( * ) ) + 33 AS col1
----
33

query I rowsort
SELECT DISTINCT ( + + 94 ) AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT ALL COUNT( * ) * + 22 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-6520
SELECT ALL COUNT ( * ) * + 22 AS col1
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-6521
SELECT - - CASE COUNT( * ) WHEN - - 26 + - 78 + + + 8 * + - 12 THEN + AVG ( - - 50 ) END, + 36 AS col0
----
NULL
36

skipif mysql # not compatible
query II rowsort label-6521
SELECT - - CASE COUNT ( * ) WHEN - - 26 + - 78 + + + 8 * + - 12 THEN + AVG ( - - 50 ) END, + 36 AS col0
----
NULL
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6522
SELECT 23 + - 50 - + 51 * + COUNT( * ) - COALESCE ( + 68, + SUM( + 49 ), - + 37 * + + 23 DIV 19 )
----
-146

skipif mysql # not compatible
query I rowsort label-6522
SELECT 23 + - 50 - + 51 * + COUNT ( * ) - COALESCE ( + 68, + SUM ( + 49 ), - + 37 * + + 23 / 19 )
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT ALL - COUNT( * ) + - + 49 col1
----
-50

skipif mysql # not compatible
query I rowsort label-6523
SELECT ALL - COUNT ( * ) + - + 49 col1
----
-50

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6524
SELECT DISTINCT - 26 + + CAST( NULL AS DECIMAL ) + - 64 + - ( - + 87 ) + - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-6524
SELECT DISTINCT - 26 + + CAST ( NULL AS REAL ) + - 64 + - ( - + 87 ) + - 49
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6525
SELECT ALL + - 74 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-6525
SELECT ALL + - 74 / 99
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6526
SELECT COUNT( * ) AS col2, 74 * COUNT( * ) / ( - - CASE + 42 WHEN + - 11 THEN - 1 ELSE NULL END )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6526
SELECT COUNT ( * ) AS col2, 74 * COUNT ( * ) / ( - - CASE + 42 WHEN + - 11 THEN - 1 ELSE NULL END )
----
1
NULL

query I rowsort
SELECT DISTINCT - 34 + - ( - + CASE 27 WHEN - 5 THEN + - 90 ELSE NULL END ) / + 81 + + + 97 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6528
SELECT DISTINCT - 76 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-6528
SELECT DISTINCT - 76 / 98
----
0

query I rowsort
SELECT ALL - CASE + 53 WHEN 57 THEN ( + 3 ) WHEN - + 3 THEN 59 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6530
SELECT 71 DIV - MAX( ALL 57 ) + + 74
----
73

skipif mysql # not compatible
query I rowsort label-6530
SELECT 71 / - MAX ( ALL 57 ) + + 74
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6531
SELECT MAX( 61 ) * - COUNT( * ) + + MIN( DISTINCT CASE + 74 WHEN - 24 THEN - + CASE 40 WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN - 68 THEN NULL ELSE 94 END END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6531
SELECT MAX ( 61 ) * - COUNT ( * ) + + MIN ( DISTINCT CASE + 74 WHEN - 24 THEN - + CASE 40 WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN - 68 THEN NULL ELSE 94 END END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT ALL + COUNT( * ) * - 32 - + 45 * + 4 - + 21 + + 40 * - 71
----
-3073

skipif mysql # not compatible
query I rowsort label-6532
SELECT ALL + COUNT ( * ) * - 32 - + 45 * + 4 - + 21 + + 40 * - 71
----
-3073

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6533
SELECT - 61 * - CAST( NULL AS SIGNED ) * + ( - ( CASE - COUNT( * ) WHEN - 17 THEN NULL WHEN + - 16 * + 76 + - 61 THEN + + COUNT( * ) / - 18 ELSE - 62 / - 87 * 62 - + COUNT( * ) * NULLIF ( - - NULLIF ( 8, 57 ), + COUNT( 5 ) ) + + 10 / - 13 END ) ) - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-6533
SELECT - 61 * - CAST ( NULL AS INTEGER ) * + ( - ( CASE - COUNT ( * ) WHEN - 17 THEN NULL WHEN + - 16 * + 76 + - 61 THEN + + COUNT ( * ) / - 18 ELSE - 62 / - 87 * 62 - + COUNT ( * ) * NULLIF ( - - NULLIF ( 8, 57 ), + COUNT ( 5 ) ) + + 10 / - 13 END ) ) - 86
----
NULL

query I rowsort
SELECT ALL - 82 * + 38
----
-3116

query I rowsort
SELECT DISTINCT 53 * + 16
----
848

query I rowsort
SELECT ALL - 0 * 35 * 55 - + 7
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6537
SELECT + 55 * + SUM( - 81 ) - - 96
----
-4359

skipif mysql # not compatible
query I rowsort label-6537
SELECT + 55 * + SUM ( - 81 ) - - 96
----
-4359

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6538
SELECT ALL + COALESCE ( + 67, - + 20 * - + COUNT( * ) * + NULLIF ( - 33, + 35 + - 31 + + 23 ) DIV + - 84 + + 65 + + 47 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-6538
SELECT ALL + COALESCE ( + 67, - + 20 * - + COUNT ( * ) * + NULLIF ( - 33, + 35 + - 31 + + 23 ) / + - 84 + + 65 + + 47 ) AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6539
SELECT - 46 + + 39 * + COUNT( * ) + - - 24 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-6539
SELECT - 46 + + 39 * + COUNT ( * ) + - - 24 AS col1
----
17

query I rowsort
SELECT ALL + 45 * - + 81 AS col0
----
-3645

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6541
SELECT - CAST( NULL AS SIGNED ) * ( + COUNT( * ) ) * - + 21 + + 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6541
SELECT - CAST ( NULL AS INTEGER ) * ( + COUNT ( * ) ) * - + 21 + + 8 AS col0
----
NULL

query I rowsort
SELECT - 92 + 58 col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6543
SELECT ALL - COUNT( * ) * 78 col0
----
-78

skipif mysql # not compatible
query I rowsort label-6543
SELECT ALL - COUNT ( * ) * 78 col0
----
-78

query I rowsort
SELECT - 10 * - - 48 col2
----
-480

query I rowsort
SELECT ALL 22 + 8 AS col0
----
30

query I rowsort
SELECT DISTINCT - 28 * - + 63 * NULLIF ( + 0, - 59 * - + 88 - + - 81 )
----
0

query I rowsort
SELECT - 56 * - CASE 90 WHEN + 76 THEN + - 1 WHEN - 19 THEN NULL END * 66 + - ( - + 56 ) - + 15 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6548
SELECT - - 43 DIV 68 * 58 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6548
SELECT - - 43 / 68 * 58 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT + - 37 * + COALESCE ( - MIN( ALL - 39 ), - 92 + 20 ) col1
----
-1443

skipif mysql # not compatible
query I rowsort label-6549
SELECT + - 37 * + COALESCE ( - MIN ( ALL - 39 ), - 92 + 20 ) col1
----
-1443

query I rowsort
SELECT - + 17 * 81 + - 99 + 21
----
-1455

query II rowsort
SELECT ALL 29 + - 75 * - 71 + - 30 AS col1, 33
----
5324
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6552
SELECT - ( + - CAST( NULL AS SIGNED ) ) - - + ( 67 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6552
SELECT - ( + - CAST ( NULL AS INTEGER ) ) - - + ( 67 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT DISTINCT + COUNT( * ) + + NULLIF ( - + COUNT( DISTINCT - 66 ), - 18 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-6553
SELECT DISTINCT + COUNT ( * ) + + NULLIF ( - + COUNT ( DISTINCT - 66 ), - 18 ) col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6554
SELECT DISTINCT - + CASE + + 39 WHEN 95 THEN NULL WHEN - 26 + + - COUNT( * ) + 83 THEN NULL ELSE - + 89 END DIV + COALESCE ( 14, + 13, - ( + 33 ) ) * - COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-6554
SELECT DISTINCT - + CASE + + 39 WHEN 95 THEN NULL WHEN - 26 + + - COUNT ( * ) + 83 THEN NULL ELSE - + 89 END / + COALESCE ( 14, + 13, - ( + 33 ) ) * - COUNT ( * )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT DISTINCT - ( + + 38 ) * + COUNT( * ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-6555
SELECT DISTINCT - ( + + 38 ) * + COUNT ( * ) AS col2
----
-38

query I rowsort
SELECT ALL + 16 + - + 61 AS col1
----
-45

query II rowsort
SELECT + + 11 - 9 col2, 46 AS col0
----
2
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6558
SELECT DISTINCT ( - 94 ), - 72 * + COALESCE ( + + CAST( NULL AS SIGNED ), - 75 ) * - COUNT( * ) AS col0
----
-94
-5400

skipif mysql # not compatible
query II rowsort label-6558
SELECT DISTINCT ( - 94 ), - 72 * + COALESCE ( + + CAST ( NULL AS INTEGER ), - 75 ) * - COUNT ( * ) AS col0
----
-94
-5400

query I rowsort
SELECT ALL + 47 * + 29
----
1363

onlyif mysql # aggregate syntax: 
query II rowsort label-6560
SELECT ALL - MAX( ALL - 31 ) AS col1, 70 AS col2
----
31
70

skipif mysql # not compatible
query II rowsort label-6560
SELECT ALL - MAX ( ALL - 31 ) AS col1, 70 AS col2
----
31
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6561
SELECT + + 66 + - - COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-6561
SELECT + + 66 + - - COUNT ( * )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6562
SELECT + + MAX( 98 ) + + 5
----
103

skipif mysql # not compatible
query I rowsort label-6562
SELECT + + MAX ( 98 ) + + 5
----
103

query I rowsort
SELECT ALL 59 - - - 68 + + 41 AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT ALL - - ( - + COUNT( * ) ) * - 55
----
55

skipif mysql # not compatible
query I rowsort label-6564
SELECT ALL - - ( - + COUNT ( * ) ) * - 55
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-6565
SELECT + 24 * 76 * + COUNT( * ), + 61 AS col1
----
1824
61

skipif mysql # not compatible
query II rowsort label-6565
SELECT + 24 * 76 * + COUNT ( * ), + 61 AS col1
----
1824
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6566
SELECT + 59 * - 76 * + - COUNT( * )
----
4484

skipif mysql # not compatible
query I rowsort label-6566
SELECT + 59 * - 76 * + - COUNT ( * )
----
4484

onlyif mysql # DIV for integer division: 
query I rowsort label-6567
SELECT ALL 65 DIV + 4 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-6567
SELECT ALL 65 / + 4 AS col0
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-6568
SELECT + COALESCE ( - ( 95 ), 82, - + 75 DIV 41 ) col2
----
-95

skipif mysql # not compatible
query I rowsort label-6568
SELECT + COALESCE ( - ( 95 ), 82, - + 75 / 41 ) col2
----
-95

query I rowsort
SELECT + 88 * 80 AS col1
----
7040

query I rowsort
SELECT DISTINCT 0 * + 80 * + + 15 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6571
SELECT + ( + 70 ) * + COUNT( * ) AS col0, ( - - 39 ) + - COALESCE ( + - 23, + COUNT( * ) ) + + 75 + 26 * + 77
----
70
2139

skipif mysql # not compatible
query II rowsort label-6571
SELECT + ( + 70 ) * + COUNT ( * ) AS col0, ( - - 39 ) + - COALESCE ( + - 23, + COUNT ( * ) ) + + 75 + 26 * + 77
----
70
2139

onlyif mysql # DIV for integer division: 
query I rowsort label-6572
SELECT 50 * + - 83 + - + 84 DIV + 90 AS col0
----
-4150

skipif mysql # not compatible
query I rowsort label-6572
SELECT 50 * + - 83 + - + 84 / + 90 AS col0
----
-4150

query I rowsort
SELECT ALL - 13 * - 47 AS col1
----
611

query I rowsort
SELECT DISTINCT 64 * - 51 AS col0
----
-3264

query I rowsort
SELECT DISTINCT 76 * + NULLIF ( 83, + - 12 - - - 41 ) + - 95 AS col2
----
6213

onlyif mysql # aggregate syntax: 
query II rowsort label-6576
SELECT DISTINCT MIN( - + 50 ) * - 24, - 81 AS col0
----
1200
-81

skipif mysql # not compatible
query II rowsort label-6576
SELECT DISTINCT MIN ( - + 50 ) * - 24, - 81 AS col0
----
1200
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6577
SELECT DISTINCT - ( - - 43 ) * 83 * + 66 + COUNT( * ) + 46 + 7 AS col0
----
-235500

skipif mysql # not compatible
query I rowsort label-6577
SELECT DISTINCT - ( - - 43 ) * 83 * + 66 + COUNT ( * ) + 46 + 7 AS col0
----
-235500

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT + 81 - + - MIN( ALL 0 )
----
81

skipif mysql # not compatible
query I rowsort label-6578
SELECT + 81 - + - MIN ( ALL 0 )
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-6579
SELECT ALL + 48 AS col2, 36 * - COUNT( + + 73 )
----
48
-36

skipif mysql # not compatible
query II rowsort label-6579
SELECT ALL + 48 AS col2, 36 * - COUNT ( + + 73 )
----
48
-36

query I rowsort
SELECT - 80 + - 97 AS col0
----
-177

onlyif mysql # aggregate syntax: 
query II rowsort label-6581
SELECT DISTINCT + 81 * - - COUNT( * ) + + 31 AS col2, ( + COUNT( * ) ) - + 72 + - MAX( ALL - 33 )
----
112
-38

skipif mysql # not compatible
query II rowsort label-6581
SELECT DISTINCT + 81 * - - COUNT ( * ) + + 31 AS col2, ( + COUNT ( * ) ) - + 72 + - MAX ( ALL - 33 )
----
112
-38

query I rowsort
SELECT DISTINCT - - 33 * + 26 * - 53
----
-45474

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT ALL - COUNT( * ) * - - 76 * - - 29 * - - 48 AS col1
----
-105792

skipif mysql # not compatible
query I rowsort label-6583
SELECT ALL - COUNT ( * ) * - - 76 * - - 29 * - - 48 AS col1
----
-105792

onlyif mysql # DIV for integer division: 
query I rowsort label-6584
SELECT ALL + + 26 * 62 * - 29 * - 59 + - - 20 DIV - 6 + 23
----
2758152

skipif mysql # not compatible
query I rowsort label-6584
SELECT ALL + + 26 * 62 * - 29 * - 59 + - - 20 / - 6 + 23
----
2758152

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT DISTINCT - - 41 * - COUNT( * ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-6585
SELECT DISTINCT - - 41 * - COUNT ( * ) AS col0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6586
SELECT - - ( + - 62 ) * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6586
SELECT - - ( + - 62 ) * - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - + 90 * + + 15 AS col1
----
-1350

query I rowsort
SELECT NULLIF ( + - 61, - ( - ( + 46 ) ) )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT 8 + + 36 * - - COUNT( * ) + SUM( + 68 ) + - 44
----
68

skipif mysql # not compatible
query I rowsort label-6589
SELECT 8 + + 36 * - - COUNT ( * ) + SUM ( + 68 ) + - 44
----
68

query I rowsort
SELECT 11 * - 33 AS col2
----
-363

onlyif mysql # DIV for integer division: 
query I rowsort label-6591
SELECT 42 DIV 24
----
1

skipif mysql # not compatible
query I rowsort label-6591
SELECT 42 / 24
----
1

query I rowsort
SELECT DISTINCT + COALESCE ( 6, - 38 ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT - NULLIF ( + 47, + COUNT( * ) * - 79 + 28 * COUNT( * ) * + - 56 / - 27 + - 14 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-6593
SELECT - NULLIF ( + 47, + COUNT ( * ) * - 79 + 28 * COUNT ( * ) * + - 56 / - 27 + - 14 ) AS col0
----
-47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6594
SELECT 43 - + 70 * 69 DIV - CAST( + 48 AS SIGNED ) col1
----
143

skipif mysql # not compatible
query I rowsort label-6594
SELECT 43 - + 70 * 69 / - CAST ( + 48 AS INTEGER ) col1
----
143

query I rowsort
SELECT 78 * + NULLIF ( - 58, 18 )
----
-4524

query II rowsort
SELECT + 72 col1, + 47 AS col1
----
72
47

query I rowsort
SELECT ALL 59 * 15 AS col1
----
885

query II rowsort
SELECT 48, 56 AS col0
----
48
56

query I rowsort
SELECT 4 * + + 35 * + + 54 col1
----
7560

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT + 47 * - SUM( ALL - 24 ) - - 81 AS col0
----
1209

skipif mysql # not compatible
query I rowsort label-6600
SELECT + 47 * - SUM ( ALL - 24 ) - - 81 AS col0
----
1209

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT ALL - 54 + - COUNT( * ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-6601
SELECT ALL - 54 + - COUNT ( * ) AS col2
----
-55

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6602
SELECT DISTINCT + 0 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6602
SELECT DISTINCT + 0 + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 94 * - 74 AS col1
----
-6956

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT ( 92 ) + + 44 + 67 + CASE + MAX( ALL - 59 ) WHEN - + 61 THEN NULL WHEN COUNT( * ) THEN - + 4 * + 52 * - - 28 * - - 25 + 66 - - + COUNT( ALL - 55 ) * 98 / + + 99 WHEN - COUNT( * ) + - - NULLIF ( + 69, 57 ) * 55 THEN COUNT( * ) ELSE NULL END / - 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6604
SELECT ( 92 ) + + 44 + 67 + CASE + MAX ( ALL - 59 ) WHEN - + 61 THEN NULL WHEN COUNT ( * ) THEN - + 4 * + 52 * - - 28 * - - 25 + 66 - - + COUNT ( ALL - 55 ) * 98 / + + 99 WHEN - COUNT ( * ) + - - NULLIF ( + 69, 57 ) * 55 THEN COUNT ( * ) ELSE NULL END / - 56 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6605
SELECT ALL COUNT( DISTINCT - - 18 ) + 3 * MAX( ALL CAST( + + 58 AS SIGNED ) )
----
175

skipif mysql # not compatible
query I rowsort label-6605
SELECT ALL COUNT ( DISTINCT - - 18 ) + 3 * MAX ( ALL CAST ( + + 58 AS INTEGER ) )
----
175

query II rowsort
SELECT DISTINCT - 35 AS col2, 22
----
-35
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT COUNT( * ) * + - 44 * + - 29
----
1276

skipif mysql # not compatible
query I rowsort label-6607
SELECT COUNT ( * ) * + - 44 * + - 29
----
1276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6608
SELECT ( - 96 ) * CAST( NULL AS SIGNED ) + - + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-6608
SELECT ( - 96 ) * CAST ( NULL AS INTEGER ) + - + 94
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6609
SELECT ALL - 48 AS col1, - ( + 31 ) + - + 29 + COUNT( * ) + + 23 col0
----
-48
-36

skipif mysql # not compatible
query II rowsort label-6609
SELECT ALL - 48 AS col1, - ( + 31 ) + - + 29 + COUNT ( * ) + + 23 col0
----
-48
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-6610
SELECT 84 DIV + - 8 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-6610
SELECT 84 / + - 8 AS col2
----
-10

query I rowsort
SELECT 87 + + + 98 col0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT ALL COUNT( * ) + - - 92 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-6612
SELECT ALL COUNT ( * ) + - - 92 AS col1
----
93

query II rowsort
SELECT 72 AS col1, + 74 * 41 AS col1
----
72
3034

onlyif mysql # aggregate syntax: 
query I rowsort label-6614
SELECT DISTINCT CASE - 47 WHEN + 88 * - 30 * + - 9 THEN - + 78 + + + COALESCE ( - 89, + 58 / + - 29 ) * 41 ELSE NULL END * + - MAX( - 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6614
SELECT DISTINCT CASE - 47 WHEN + 88 * - 30 * + - 9 THEN - + 78 + + + COALESCE ( - 89, + 58 / + - 29 ) * 41 ELSE NULL END * + - MAX ( - 6 )
----
NULL

query I rowsort
SELECT ALL - 40 * 74 * 12 * - 28
----
994560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6616
SELECT DISTINCT + 29 + - 47 + + + 20 + - 38 + - + COUNT( * ) + + 15 * - 82 * + 48 * 17 * - - MAX( ALL + 92 ) * + 25 * + 2 * 39 * + 70 * + CASE 65 WHEN + 54 * - 54 THEN + - 46 END * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6616
SELECT DISTINCT + 29 + - 47 + + + 20 + - 38 + - + COUNT ( * ) + + 15 * - 82 * + 48 * 17 * - - MAX ( ALL + 92 ) * + 25 * + 2 * 39 * + 70 * + CASE 65 WHEN + 54 * - 54 THEN + - 46 END * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 99, - 42 AS col1
----
99
-42

query I rowsort
SELECT + 99 + + + 15 AS col0
----
114

query I rowsort
SELECT ALL - CASE + 26 WHEN - ( + - 29 ) THEN - + ( + ( + - 19 ) ) WHEN - 4 + - 46 * 77 * + - 88 * - - 55 + 86 THEN NULL ELSE NULL END - + 48 AS col1
----
NULL

query II rowsort
SELECT DISTINCT 44 AS col0, 43 AS col2
----
44
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT ALL ( - 5 ) * - + MAX( + COALESCE ( + 35, - 51 + + 58 ) )
----
175

skipif mysql # not compatible
query I rowsort label-6621
SELECT ALL ( - 5 ) * - + MAX ( + COALESCE ( + 35, - 51 + + 58 ) )
----
175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6622
SELECT - - CAST( - - 54 AS SIGNED ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-6622
SELECT - - CAST ( - - 54 AS INTEGER ) AS col0
----
54

query I rowsort
SELECT 87 + + 41 AS col0
----
128

onlyif mysql # aggregate syntax: 
query II rowsort label-6624
SELECT + COUNT( * ), + COUNT( * ) + - 43 AS col0
----
1
-42

skipif mysql # not compatible
query II rowsort label-6624
SELECT + COUNT ( * ), + COUNT ( * ) + - 43 AS col0
----
1
-42

query I rowsort
SELECT DISTINCT + 89 - - 13 + 61
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT - - MIN( ( - 41 ) )
----
-41

skipif mysql # not compatible
query I rowsort label-6626
SELECT - - MIN ( ( - 41 ) )
----
-41

query I rowsort
SELECT ALL + NULLIF ( - 77, CASE - AVG ( + 34 ) WHEN + - 38 THEN + 99 * + - 41 + 29 END )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6628
SELECT COUNT( * ) * + 26 / - - 45 + - + 34 + + CAST( NULL AS SIGNED ) + 68 + + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-6628
SELECT COUNT ( * ) * + 26 / - - 45 + - + 34 + + CAST ( NULL AS INTEGER ) + 68 + + 70
----
NULL

query I rowsort
SELECT ALL - - 63 * 41 AS col0
----
2583

onlyif mysql # aggregate syntax: 
query I rowsort label-6630
SELECT NULLIF ( + - COALESCE ( - - ( + + 17 ), + 53 ), + 81 + 51 ) + - + SUM( - + 63 ) col2
----
46

skipif mysql # not compatible
query I rowsort label-6630
SELECT NULLIF ( + - COALESCE ( - - ( + + 17 ), + 53 ), + 81 + 51 ) + - + SUM ( - + 63 ) col2
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-6631
SELECT ALL 79 AS col1, MIN( - 69 ) + - 5 + + 54
----
79
-20

skipif mysql # not compatible
query II rowsort label-6631
SELECT ALL 79 AS col1, MIN ( - 69 ) + - 5 + + 54
----
79
-20

query I rowsort
SELECT + 38 * 31 + - + 25
----
1153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6633
SELECT ALL + 3 * - NULLIF ( + - 75, + 61 + - - 42 - - CAST( NULL AS SIGNED ) - - + 17 + + COUNT( ALL - - 51 ) ) * + 36 + - + 15 AS col0, 50
----
8085
50

skipif mysql # not compatible
query II rowsort label-6633
SELECT ALL + 3 * - NULLIF ( + - 75, + 61 + - - 42 - - CAST ( NULL AS INTEGER ) - - + 17 + + COUNT ( ALL - - 51 ) ) * + 36 + - + 15 AS col0, 50
----
8085
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6634
SELECT 36 + - 24 / - + CASE COUNT( * ) WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE + COUNT( * ) * + COUNT( * ) / + CAST( NULL AS SIGNED ) + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6634
SELECT 36 + - 24 / - + CASE COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE + COUNT ( * ) * + COUNT ( * ) / + CAST ( NULL AS INTEGER ) + COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6635
SELECT - COUNT( * ) - - 85 * - - 48
----
4079

skipif mysql # not compatible
query I rowsort label-6635
SELECT - COUNT ( * ) - - 85 * - - 48
----
4079

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6636
SELECT + 57 AS col2, MAX( ( 57 ) ) - - + 50 DIV - 1 AS col2
----
57
7

skipif mysql # not compatible
query II rowsort label-6636
SELECT + 57 AS col2, MAX ( ( 57 ) ) - - + 50 / - 1 AS col2
----
57
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6637
SELECT 82 + - 69 AS col2, - ( 55 ) DIV - COUNT( ALL + 97 )
----
13
55

skipif mysql # not compatible
query II rowsort label-6637
SELECT 82 + - 69 AS col2, - ( 55 ) / - COUNT ( ALL + 97 )
----
13
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT ALL MAX( ALL - 8 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-6638
SELECT ALL MAX ( ALL - 8 ) AS col0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6639
SELECT DISTINCT + COUNT( * ) + COUNT( * ) / + 22 / - 43 * + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6639
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) / + 22 / - 43 * + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 78 + - - 90
----
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6641
SELECT ALL + 86 + + COALESCE ( + + 34, 75 - + + CAST( COUNT( ALL - 78 ) AS SIGNED ) * + - 68 + + + 54 ) * + COUNT( * ) col2, - 95 * 34 + + + COUNT( * ) * + COUNT( * ) * - 10
----
120
-3240

skipif mysql # not compatible
query II rowsort label-6641
SELECT ALL + 86 + + COALESCE ( + + 34, 75 - + + CAST ( COUNT ( ALL - 78 ) AS INTEGER ) * + - 68 + + + 54 ) * + COUNT ( * ) col2, - 95 * 34 + + + COUNT ( * ) * + COUNT ( * ) * - 10
----
120
-3240

onlyif mysql # aggregate syntax: 
query I rowsort label-6642
SELECT COALESCE ( COUNT( * ), - 54 ) + - + 86
----
-85

skipif mysql # not compatible
query I rowsort label-6642
SELECT COALESCE ( COUNT ( * ), - 54 ) + - + 86
----
-85

query I rowsort
SELECT ALL + 26 * 0 + + + 5
----
5

query I rowsort
SELECT 87 * + 11 AS col1
----
957

onlyif mysql # aggregate syntax: 
query II rowsort label-6645
SELECT ALL - 10 * - 56 + COUNT( * ) + 93 + + 3, + COUNT( * ) + - - 46 AS col2
----
657
47

skipif mysql # not compatible
query II rowsort label-6645
SELECT ALL - 10 * - 56 + COUNT ( * ) + 93 + + 3, + COUNT ( * ) + - - 46 AS col2
----
657
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6646
SELECT ALL 48 * 60 + + 50 + - NULLIF ( - 51, + + 77 ) * COUNT( * ) AS col1
----
2981

skipif mysql # not compatible
query I rowsort label-6646
SELECT ALL 48 * 60 + + 50 + - NULLIF ( - 51, + + 77 ) * COUNT ( * ) AS col1
----
2981

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT DISTINCT + SUM( + 36 ) * + 71
----
2556

skipif mysql # not compatible
query I rowsort label-6647
SELECT DISTINCT + SUM ( + 36 ) * + 71
----
2556

query I rowsort
SELECT + - ( - - 99 )
----
-99

query I rowsort
SELECT 23 * - - 49 AS col0
----
1127

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6650
SELECT DISTINCT - COUNT( * ) - + 49 - 14 DIV + + COALESCE ( + 87, - 53 * + ( + - 88 ) + 46 ) + - 64 AS col0, + ( 81 )
----
-114
81

skipif mysql # not compatible
query II rowsort label-6650
SELECT DISTINCT - COUNT ( * ) - + 49 - 14 / + + COALESCE ( + 87, - 53 * + ( + - 88 ) + 46 ) + - 64 AS col0, + ( 81 )
----
-114
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6651
SELECT + - 54 * CAST( - ( 53 ) AS SIGNED ) AS col0
----
2862

skipif mysql # not compatible
query I rowsort label-6651
SELECT + - 54 * CAST ( - ( 53 ) AS INTEGER ) AS col0
----
2862

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6652
SELECT - MIN( DISTINCT + - CAST( - 55 AS SIGNED ) ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-6652
SELECT - MIN ( DISTINCT + - CAST ( - 55 AS INTEGER ) ) AS col1
----
-55

onlyif mysql # DIV for integer division: 
query II rowsort label-6653
SELECT DISTINCT 47 DIV 59 AS col1, - 13 DIV + + 97
----
0
0

skipif mysql # not compatible
query II rowsort label-6653
SELECT DISTINCT 47 / 59 AS col1, - 13 / + + 97
----
0
0

query I rowsort
SELECT ALL + 93 * + 74 * 47
----
323454

query I rowsort
SELECT + 95 + ( + + 10 ) AS col1
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6656
SELECT DISTINCT - CAST( + 28 AS SIGNED ) * - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6656
SELECT DISTINCT - CAST ( + 28 AS INTEGER ) * - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT DISTINCT + COUNT( DISTINCT + 45 ) * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6657
SELECT DISTINCT + COUNT ( DISTINCT + 45 ) * COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT + 61 * SUM( DISTINCT + 94 )
----
5734

skipif mysql # not compatible
query I rowsort label-6658
SELECT + 61 * SUM ( DISTINCT + 94 )
----
5734

query II rowsort
SELECT - + 22 + + - 11, 51 AS col2
----
-33
51

query I rowsort
SELECT - 36 * + + 3 AS col0
----
-108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6661
SELECT DISTINCT 10 + COALESCE ( CAST( + - COUNT( * ) AS SIGNED ), - 23 + + CASE + 12 WHEN - 87 THEN + 51 ELSE NULL END ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-6661
SELECT DISTINCT 10 + COALESCE ( CAST ( + - COUNT ( * ) AS INTEGER ), - 23 + + CASE + 12 WHEN - 87 THEN + 51 ELSE NULL END ) AS col1
----
9

query I rowsort
SELECT - + 72 + + + 85 AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT + COALESCE ( + 22, + COUNT( * ) ) * + 56 * - COUNT( * ) AS col2
----
-1232

skipif mysql # not compatible
query I rowsort label-6663
SELECT + COALESCE ( + 22, + COUNT ( * ) ) * + 56 * - COUNT ( * ) AS col2
----
-1232

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT - ( + - NULLIF ( MAX( ALL 64 ), + 88 ) ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-6664
SELECT - ( + - NULLIF ( MAX ( ALL 64 ), + 88 ) ) AS col1
----
64

query I rowsort
SELECT ALL - 54 + + - 38
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT ALL COALESCE ( + + COUNT( * ), + - 91 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6666
SELECT ALL COALESCE ( + + COUNT ( * ), + - 91 ) AS col1
----
1

query II rowsort
SELECT - 32, 27 * - 55 * 62 * - 83 col0
----
-32
7641810

query II rowsort
SELECT - 35, 95 AS col2
----
-35
95

onlyif mysql # DIV for integer division: 
query I rowsort label-6669
SELECT - 63 * 80 DIV 40 AS col1
----
-126

skipif mysql # not compatible
query I rowsort label-6669
SELECT - 63 * 80 / 40 AS col1
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT ALL + MAX( - 40 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-6670
SELECT ALL + MAX ( - 40 ) AS col0
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6671
SELECT MIN( - 94 ) * CAST( MAX( DISTINCT + 74 ) AS SIGNED ) + - 88 + + 45
----
-6999

skipif mysql # not compatible
query I rowsort label-6671
SELECT MIN ( - 94 ) * CAST ( MAX ( DISTINCT + 74 ) AS INTEGER ) + - 88 + + 45
----
-6999

query I rowsort
SELECT ( + - 58 ) AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT DISTINCT + SUM( - 14 ) col2
----
-14

skipif mysql # not compatible
query I rowsort label-6673
SELECT DISTINCT + SUM ( - 14 ) col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6674
SELECT ALL - NULLIF ( 14, + 25 ) * - COUNT( * ) * + - 64 - NULLIF ( - 85, + + COUNT( * ) * + 76 - + 69 )
----
-811

skipif mysql # not compatible
query I rowsort label-6674
SELECT ALL - NULLIF ( 14, + 25 ) * - COUNT ( * ) * + - 64 - NULLIF ( - 85, + + COUNT ( * ) * + 76 - + 69 )
----
-811

query I rowsort
SELECT 19 * + 10 - + - 55 col0
----
245

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6676
SELECT - 4 - - CAST( - 77 AS SIGNED )
----
-81

skipif mysql # not compatible
query I rowsort label-6676
SELECT - 4 - - CAST ( - 77 AS INTEGER )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT ALL - 88 * - 91 - + 96 * - COUNT( - 85 ) * + 62 * - 80 AS col0
----
-468152

skipif mysql # not compatible
query I rowsort label-6677
SELECT ALL - 88 * - 91 - + 96 * - COUNT ( - 85 ) * + 62 * - 80 AS col0
----
-468152

onlyif mysql # aggregate syntax: 
query I rowsort label-6678
SELECT DISTINCT + MAX( + 33 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-6678
SELECT DISTINCT + MAX ( + 33 ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT - 97 * + + 87 * + + COUNT( * )
----
-8439

skipif mysql # not compatible
query I rowsort label-6679
SELECT - 97 * + + 87 * + + COUNT ( * )
----
-8439

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6680
SELECT ALL - 47 DIV + COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-6680
SELECT ALL - 47 / + COUNT ( * )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6681
SELECT - - ( 19 ) * + 8 * ( + + 88 ) + - SUM( ALL - - 55 )
----
13321

skipif mysql # not compatible
query I rowsort label-6681
SELECT - - ( 19 ) * + 8 * ( + + 88 ) + - SUM ( ALL - - 55 )
----
13321

query I rowsort
SELECT - + 0 + - 11
----
-11

query I rowsort
SELECT ALL + COALESCE ( - 73, - 53 + - - 38 )
----
-73

query I rowsort
SELECT + - 19 - + 74
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-6685
SELECT - - 8 * + + 27 DIV 78 DIV - 73 * - - 81
----
0

skipif mysql # not compatible
query I rowsort label-6685
SELECT - - 8 * + + 27 / 78 / - 73 * - - 81
----
0

query I rowsort
SELECT ALL 96 * + + 43 AS col0
----
4128

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT DISTINCT + + MAX( - 90 ) * - 10 AS col0
----
900

skipif mysql # not compatible
query I rowsort label-6687
SELECT DISTINCT + + MAX ( - 90 ) * - 10 AS col0
----
900

query I rowsort
SELECT + NULLIF ( NULLIF ( - 90, 64 ), 42 ) * + + 18 + + 24 AS col1
----
-1596

onlyif mysql # aggregate syntax: 
query I rowsort label-6689
SELECT - - COUNT( 99 ) + + COALESCE ( 81, + + 65 ) col2
----
82

skipif mysql # not compatible
query I rowsort label-6689
SELECT - - COUNT ( 99 ) + + COALESCE ( 81, + + 65 ) col2
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6690
SELECT DISTINCT CAST( - 6 AS SIGNED )
----
-6

skipif mysql # not compatible
query I rowsort label-6690
SELECT DISTINCT CAST ( - 6 AS INTEGER )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT - + 81 + + + 58 * - COUNT( * ) * - 16
----
847

skipif mysql # not compatible
query I rowsort label-6691
SELECT - + 81 + + + 58 * - COUNT ( * ) * - 16
----
847

onlyif mysql # DIV for integer division: 
query I rowsort label-6692
SELECT DISTINCT 99 DIV + + 10
----
9

skipif mysql # not compatible
query I rowsort label-6692
SELECT DISTINCT 99 / + + 10
----
9

query I rowsort
SELECT ALL NULLIF ( 48, 55 ) AS col2
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6694
SELECT + - NULLIF ( 15, COALESCE ( 28, COUNT( * ) - + - 99, - + 57 ) + - - NULLIF ( - MAX( + ( + 61 ) ), - 66 ) + + + 0 - - - COALESCE ( - 26, - 2 ) / + 94 / + CASE 91 WHEN - + 85 THEN + 78 / + + NULLIF ( + 4, + 35 ) * + NULLIF ( 53 * CAST( NULL AS SIGNED ), - 74 ) + + 28 WHEN + 32 THEN 6 END ) + + 43 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6694
SELECT + - NULLIF ( 15, COALESCE ( 28, COUNT ( * ) - + - 99, - + 57 ) + - - NULLIF ( - MAX ( + ( + 61 ) ), - 66 ) + + + 0 - - - COALESCE ( - 26, - 2 ) / + 94 / + CASE 91 WHEN - + 85 THEN + 78 / + + NULLIF ( + 4, + 35 ) * + NULLIF ( 53 * CAST ( NULL AS INTEGER ), - 74 ) + + 28 WHEN + 32 THEN 6 END ) + + 43 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6695
SELECT DISTINCT - 13 DIV + COUNT( - 43 )
----
-13

skipif mysql # not compatible
query I rowsort label-6695
SELECT DISTINCT - 13 / + COUNT ( - 43 )
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6696
SELECT DISTINCT MIN( - NULLIF ( + 8, 49 + 23 / CAST( NULL AS SIGNED ) ) ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-6696
SELECT DISTINCT MIN ( - NULLIF ( + 8, 49 + 23 / CAST ( NULL AS INTEGER ) ) ) AS col0
----
-8

query I rowsort
SELECT + 94 + 9
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6698
SELECT ALL 0 + + 5 * + - CASE + 39 WHEN - 43 DIV 3 THEN NULL WHEN + + 31 THEN + 70 + COUNT( * ) + - 26 * + + 39 + + + CAST( + 44 AS SIGNED ) DIV - + ( - 1 ) ELSE + - ( + 15 ) END * + COUNT( * ) col2
----
75

skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL 0 + + 5 * + - CASE + 39 WHEN - 43 / 3 THEN NULL WHEN + + 31 THEN + 70 + COUNT ( * ) + - 26 * + + 39 + + + CAST ( + 44 AS INTEGER ) / - + ( - 1 ) ELSE + - ( + 15 ) END * + COUNT ( * ) col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT + 11 * ( - COALESCE ( MIN( DISTINCT - 45 ), COUNT( ALL 47 ) * 89 ) )
----
495

skipif mysql # not compatible
query I rowsort label-6699
SELECT + 11 * ( - COALESCE ( MIN ( DISTINCT - 45 ), COUNT ( ALL 47 ) * 89 ) )
----
495

onlyif mysql # aggregate syntax: 
query I rowsort label-6700
SELECT + ( + + 88 ) + COUNT( * ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-6700
SELECT + ( + + 88 ) + COUNT ( * ) AS col2
----
89

query I rowsort
SELECT + 46 * + 10 AS col0
----
460

query I rowsort
SELECT ALL 70 + - 8
----
62

query II rowsort
SELECT - 40 + 55 AS col2, 56
----
15
56

query I rowsort
SELECT + 52 * - 51
----
-2652

query I rowsort
SELECT + 4 + 86 AS col2
----
90

query I rowsort
SELECT - 22 * 94 col2
----
-2068

onlyif mysql # DIV for integer division: 
query I rowsort label-6707
SELECT - COALESCE ( + ( - 85 ), + ( 8 ) + - 12 ) DIV - 32 + + 2 + 66
----
66

skipif mysql # not compatible
query I rowsort label-6707
SELECT - COALESCE ( + ( - 85 ), + ( 8 ) + - 12 ) / - 32 + + 2 + 66
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6708
SELECT ALL 62 * + - 87 AS col1, COALESCE ( + 32, + 23 DIV - - COUNT( * ) ) + + 59
----
-5394
91

skipif mysql # not compatible
query II rowsort label-6708
SELECT ALL 62 * + - 87 AS col1, COALESCE ( + 32, + 23 / - - COUNT ( * ) ) + + 59
----
-5394
91

onlyif mysql # DIV for integer division: 
query I rowsort label-6709
SELECT DISTINCT - 62 DIV - 95 - + - 74 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-6709
SELECT DISTINCT - 62 / - 95 - + - 74 AS col0
----
74

query I rowsort
SELECT ALL - ( - + 86 ) * + - 85 + + ( + 89 ) * + 6 col0
----
-6776

query I rowsort
SELECT + NULLIF ( - 42, + 44 ) AS col1
----
-42

query I rowsort
SELECT 52 + - - 50 - + 39 AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT + 65 * - 37 - + - 2 + - + 32 * + 64 * - + 52 + - - SUM( + 95 ) AS col0
----
104188

skipif mysql # not compatible
query I rowsort label-6713
SELECT + 65 * - 37 - + - 2 + - + 32 * + 64 * - + 52 + - - SUM ( + 95 ) AS col0
----
104188

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6714
SELECT DISTINCT - 15 * + CAST( - 51 AS SIGNED ) DIV 92 DIV ( - 56 )
----
0

skipif mysql # not compatible
query I rowsort label-6714
SELECT DISTINCT - 15 * + CAST ( - 51 AS INTEGER ) / 92 / ( - 56 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6715
SELECT CASE - 49 WHEN + 17 THEN + - 86 + SUM( + + NULLIF ( + 87, 58 ) ) * - + COUNT( * ) WHEN + ( 8 ) THEN + - 90 WHEN + 36 - COUNT( * ) THEN NULL WHEN - COUNT( * ) * 79 + - - COUNT( * ) + 77 - CAST( + - 42 AS SIGNED ) + + MIN( 78 ) THEN + + 14 END + - - 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6715
SELECT CASE - 49 WHEN + 17 THEN + - 86 + SUM ( + + NULLIF ( + 87, 58 ) ) * - + COUNT ( * ) WHEN + ( 8 ) THEN + - 90 WHEN + 36 - COUNT ( * ) THEN NULL WHEN - COUNT ( * ) * 79 + - - COUNT ( * ) + 77 - CAST ( + - 42 AS INTEGER ) + + MIN ( 78 ) THEN + + 14 END + - - 46 AS col1
----
NULL

query I rowsort
SELECT + 77 + 6 * + - 15
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT + COUNT( ALL 24 ) * + + 0 + + 20 + - - 20 - + 72 col2
----
-32

skipif mysql # not compatible
query I rowsort label-6717
SELECT + COUNT ( ALL 24 ) * + + 0 + + 20 + - - 20 - + 72 col2
----
-32

query I rowsort
SELECT + 34 - + - 3 + + 86 AS col1
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT ALL - COUNT( * ) * - - 34 + + + COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-6719
SELECT ALL - COUNT ( * ) * - - 34 + + + COUNT ( * )
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6720
SELECT - COUNT( * ) DIV 33 * 80 * + 86 + - NULLIF ( - 76, - NULLIF ( - - 56, - 64 * + 84 DIV + AVG ( ALL - 58 ) + + - COUNT( 27 ) * - ( + ( 99 ) ) + - 57 + + - 83 * + 22 * 52 ) * + ( - + 3 ) * 31 * + 69 )
----
76

skipif mysql # not compatible
query I rowsort label-6720
SELECT - COUNT ( * ) / 33 * 80 * + 86 + - NULLIF ( - 76, - NULLIF ( - - 56, - 64 * + 84 / + AVG ( ALL - 58 ) + + - COUNT ( 27 ) * - ( + ( 99 ) ) + - 57 + + - 83 * + 22 * 52 ) * + ( - + 3 ) * 31 * + 69 )
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-6721
SELECT - 47 * ( ( + 19 ) ) DIV 2 + - 72 AS col1
----
-518

skipif mysql # not compatible
query I rowsort label-6721
SELECT - 47 * ( ( + 19 ) ) / 2 + - 72 AS col1
----
-518

query I rowsort
SELECT - CASE - 59 WHEN + 20 / - 95 + - 64 - 92 / - 1 + 40 / - 70 + 71 * 42 THEN NULL ELSE - + 41 END
----
41

query I rowsort
SELECT DISTINCT - 83 + - 18 AS col2
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT ALL - 25 + - 9 + - - COUNT( * ) * - 90 AS col0
----
-124

skipif mysql # not compatible
query I rowsort label-6724
SELECT ALL - 25 + - 9 + - - COUNT ( * ) * - 90 AS col0
----
-124

onlyif mysql # DIV for integer division: 
query II rowsort label-6725
SELECT ALL + + 64 + 90 - + + 13 DIV + - 60, + 17 - 6 * + - 19 + + + 20 * + - 32 col0
----
154
-509

skipif mysql # not compatible
query II rowsort label-6725
SELECT ALL + + 64 + 90 - + + 13 / + - 60, + 17 - 6 * + - 19 + + + 20 * + - 32 col0
----
154
-509

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT ALL - COUNT( 77 ) * - 87 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-6726
SELECT ALL - COUNT ( 77 ) * - 87 AS col1
----
87

query I rowsort
SELECT DISTINCT - 0 + + - 49
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT COALESCE ( - 20, MIN( 96 ), 60 ) + + 51
----
31

skipif mysql # not compatible
query I rowsort label-6728
SELECT COALESCE ( - 20, MIN ( 96 ), 60 ) + + 51
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-6729
SELECT ALL 29 DIV + 60 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6729
SELECT ALL 29 / + 60 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT ALL 46 - - + NULLIF ( - COUNT( * ), 71 )
----
45

skipif mysql # not compatible
query I rowsort label-6730
SELECT ALL 46 - - + NULLIF ( - COUNT ( * ), 71 )
----
45

query I rowsort
SELECT 3 * - - 64 * 39 AS col0
----
7488

query II rowsort
SELECT DISTINCT 91 AS col0, 98 AS col2
----
91
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT DISTINCT COUNT( * ) * + 7 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-6733
SELECT DISTINCT COUNT ( * ) * + 7 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT DISTINCT COUNT( * ) * - COALESCE ( 46, + ( - 48 ) * - 5 + 78 * + - 66 )
----
-46

skipif mysql # not compatible
query I rowsort label-6734
SELECT DISTINCT COUNT ( * ) * - COALESCE ( 46, + ( - 48 ) * - 5 + 78 * + - 66 )
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-6735
SELECT - 10 * 78 + - 31 + + 33 - + 8 DIV - 37 * - 46
----
-778

skipif mysql # not compatible
query I rowsort label-6735
SELECT - 10 * 78 + - 31 + + 33 - + 8 / - 37 * - 46
----
-778

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT ALL - SUM( ALL + + 77 ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-6736
SELECT ALL - SUM ( ALL + + 77 ) AS col1
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-6737
SELECT DISTINCT COUNT( * ) + + - 32 * 81 AS col1, + MAX( ALL - ( + 44 ) ) col1
----
-2591
-44

skipif mysql # not compatible
query II rowsort label-6737
SELECT DISTINCT COUNT ( * ) + + - 32 * 81 AS col1, + MAX ( ALL - ( + 44 ) ) col1
----
-2591
-44

query I rowsort
SELECT ALL - 37 + + - 49 AS col2
----
-86

query I rowsort
SELECT - 14 * - 64 AS col2
----
896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6740
SELECT - 41 / - CAST( NULL AS SIGNED ) * 90 * + + 22 + + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-6740
SELECT - 41 / - CAST ( NULL AS INTEGER ) * 90 * + + 22 + + 82
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6741
SELECT DISTINCT - 87 + 36 + - - 85 * 97 * - + 41 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6741
SELECT DISTINCT - 87 + 36 + - - 85 * 97 * - + 41 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT - 32 + - 31 * - 83 + - 37 + + 93 + - + COUNT( * ) AS col2
----
2596

skipif mysql # not compatible
query I rowsort label-6742
SELECT - 32 + - 31 * - 83 + - 37 + + 93 + - + COUNT ( * ) AS col2
----
2596

query I rowsort
SELECT 76 * 92 - - + 35 + - 31 AS col0
----
6996

onlyif mysql # aggregate syntax: 
query I rowsort label-6744
SELECT DISTINCT - ( + CASE 52 WHEN + + 52 THEN - SUM( DISTINCT + 73 ) * + 96 ELSE NULL END ) col2
----
7008

skipif mysql # not compatible
query I rowsort label-6744
SELECT DISTINCT - ( + CASE 52 WHEN + + 52 THEN - SUM ( DISTINCT + 73 ) * + 96 ELSE NULL END ) col2
----
7008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6745
SELECT ALL - + NULLIF ( + - 8, + - CAST( + COUNT( DISTINCT - 23 ) AS SIGNED ) * ( + + 47 ) + - - 4 ) + - 1
----
7

skipif mysql # not compatible
query I rowsort label-6745
SELECT ALL - + NULLIF ( + - 8, + - CAST ( + COUNT ( DISTINCT - 23 ) AS INTEGER ) * ( + + 47 ) + - - 4 ) + - 1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6746
SELECT ALL + - CAST( NULL AS SIGNED ) + + - 91 - - + 82 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6746
SELECT ALL + - CAST ( NULL AS INTEGER ) + + - 91 - - + 82 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT - NULLIF ( - - COUNT( * ), 3 )
----
-1

skipif mysql # not compatible
query I rowsort label-6747
SELECT - NULLIF ( - - COUNT ( * ), 3 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6748
SELECT ALL + COALESCE ( 86, + 88 * COUNT( * ) - 6 - - + 39 ) + - 30 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-6748
SELECT ALL + COALESCE ( 86, + 88 * COUNT ( * ) - 6 - - + 39 ) + - 30 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6749
SELECT SUM( + - 85 ) * + ( - + 28 )
----
2380

skipif mysql # not compatible
query I rowsort label-6749
SELECT SUM ( + - 85 ) * + ( - + 28 )
----
2380

query I rowsort
SELECT ALL - + ( + 46 ) AS col1
----
-46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6751
SELECT CAST( NULL AS DECIMAL ) / + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-6751
SELECT CAST ( NULL AS REAL ) / + 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT + + COUNT( 45 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6752
SELECT + + COUNT ( 45 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6753
SELECT ALL - + 24 - + CAST( CASE + + 58 WHEN ( - 22 ) * + 79 - + 27 + CAST( - CAST( 62 AS SIGNED ) AS SIGNED ) + - NULLIF ( - - 27, - COUNT( * ) + + 0 ) THEN NULL WHEN - AVG ( ALL + ( 23 ) ) - + AVG ( DISTINCT + - 65 ) - + 3 THEN + + 58 ELSE - 94 END AS SIGNED ) col2, + 51 AS col1
----
70
51

skipif mysql # not compatible
query II rowsort label-6753
SELECT ALL - + 24 - + CAST ( CASE + + 58 WHEN ( - 22 ) * + 79 - + 27 + CAST ( - CAST ( 62 AS INTEGER ) AS INTEGER ) + - NULLIF ( - - 27, - COUNT ( * ) + + 0 ) THEN NULL WHEN - AVG ( ALL + ( 23 ) ) - + AVG ( DISTINCT + - 65 ) - + 3 THEN + + 58 ELSE - 94 END AS INTEGER ) col2, + 51 AS col1
----
70
51

query I rowsort
SELECT 7 * + 22 AS col0
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-6755
SELECT ( MIN( + 12 ) ) + COUNT( * ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-6755
SELECT ( MIN ( + 12 ) ) + COUNT ( * ) AS col2
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-6756
SELECT 13 DIV + 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6756
SELECT 13 / + 90 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6757
SELECT - 14 * - SUM( DISTINCT - - 73 ) + + 90, MAX( DISTINCT + 7 ) * + - 25 col0
----
1112
-175

skipif mysql # not compatible
query II rowsort label-6757
SELECT - 14 * - SUM ( DISTINCT - - 73 ) + + 90, MAX ( DISTINCT + 7 ) * + - 25 col0
----
1112
-175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6758
SELECT 96 + + + 43 + - COUNT( * ) * 58 + - 0 * - CAST( - + 10 AS SIGNED ) * + 33 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-6758
SELECT 96 + + + 43 + - COUNT ( * ) * 58 + - 0 * - CAST ( - + 10 AS INTEGER ) * + 33 AS col1
----
81

query I rowsort
SELECT 12 + + 47 - + 55 + - 93 + + 11 * - 45 + + + 76 + - - 49 AS col2
----
-459

query II rowsort
SELECT ALL 84 col2, + 77 + 22
----
84
99

onlyif mysql # aggregate syntax: 
query II rowsort label-6761
SELECT COUNT( * ) + - 67 AS col1, 40 AS col0
----
-66
40

skipif mysql # not compatible
query II rowsort label-6761
SELECT COUNT ( * ) + - 67 AS col1, 40 AS col0
----
-66
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6762
SELECT 31 + - CAST( NULL AS SIGNED ) + + - 28 / + 22 + - - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-6762
SELECT 31 + - CAST ( NULL AS INTEGER ) + + - 28 / + 22 + - - 45
----
NULL

query I rowsort
SELECT ALL - ( - 36 ) * 25 AS col0
----
900

onlyif mysql # aggregate syntax: 
query II rowsort label-6764
SELECT - 93, - 23 * - COUNT( * ) + - ( - 57 ) + - 43 AS col2
----
-93
37

skipif mysql # not compatible
query II rowsort label-6764
SELECT - 93, - 23 * - COUNT ( * ) + - ( - 57 ) + - 43 AS col2
----
-93
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6765
SELECT - 69 + - + CAST( NULL AS SIGNED ) + 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6765
SELECT - 69 + - + CAST ( NULL AS INTEGER ) + 34 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6766
SELECT - 45 * - + 66 DIV + 11 AS col1
----
270

skipif mysql # not compatible
query I rowsort label-6766
SELECT - 45 * - + 66 / + 11 AS col1
----
270

query I rowsort
SELECT DISTINCT 92 * 23 * + 33 AS col2
----
69828

onlyif mysql # aggregate syntax: 
query I rowsort label-6768
SELECT ALL + 34 + + COUNT( - 87 ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-6768
SELECT ALL + 34 + + COUNT ( - 87 ) AS col1
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-6769
SELECT ALL + CASE - - NULLIF ( - + 12, + 51 ) WHEN - MAX( + 54 ) THEN - 8 ELSE NULL END + - - 57 * - 99 AS col1, - 40
----
NULL
-40

skipif mysql # not compatible
query II rowsort label-6769
SELECT ALL + CASE - - NULLIF ( - + 12, + 51 ) WHEN - MAX ( + 54 ) THEN - 8 ELSE NULL END + - - 57 * - 99 AS col1, - 40
----
NULL
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT ALL + COUNT( * ) * 68 + - 14 * 69 + + - 67 AS col1
----
-965

skipif mysql # not compatible
query I rowsort label-6770
SELECT ALL + COUNT ( * ) * 68 + - 14 * 69 + + - 67 AS col1
----
-965

query I rowsort
SELECT DISTINCT ( + 84 ) * + - 64 + 3
----
-5373

query I rowsort
SELECT ALL 97 * 29 + + 21 * + + 10 * + + 75
----
18563

onlyif mysql # aggregate syntax: 
query I rowsort label-6773
SELECT - SUM( DISTINCT - 54 ) * - 52
----
-2808

skipif mysql # not compatible
query I rowsort label-6773
SELECT - SUM ( DISTINCT - 54 ) * - 52
----
-2808

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT ALL COUNT( * ) * + 6 * - 86 * - 13 AS col2
----
6708

skipif mysql # not compatible
query I rowsort label-6774
SELECT ALL COUNT ( * ) * + 6 * - 86 * - 13 AS col2
----
6708

onlyif mysql # aggregate syntax: 
query I rowsort label-6775
SELECT ALL COUNT( * ) * + + 97 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-6775
SELECT ALL COUNT ( * ) * + + 97 AS col1
----
97

query II rowsort
SELECT + 9 AS col2, 82
----
9
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6777
SELECT + CAST( NULL AS SIGNED ) AS col1, + 8
----
NULL
8

skipif mysql # not compatible
query II rowsort label-6777
SELECT + CAST ( NULL AS INTEGER ) AS col1, + 8
----
NULL
8

query I rowsort
SELECT ALL + ( + - 78 ) AS col1
----
-78

query II rowsort
SELECT - 10 AS col0, - 42 AS col0
----
-10
-42

query II rowsort
SELECT ALL + 51 AS col1, - 96 + - + 9 AS col0
----
51
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6781
SELECT + MAX( DISTINCT + 24 ) + + CAST( + + 23 AS SIGNED ) * - 9 col0
----
-183

skipif mysql # not compatible
query I rowsort label-6781
SELECT + MAX ( DISTINCT + 24 ) + + CAST ( + + 23 AS INTEGER ) * - 9 col0
----
-183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6782
SELECT DISTINCT - MAX( ALL - 50 ) * + 49 * + - 28 - + COUNT( ALL 41 ), CAST( NULL AS SIGNED ) AS col0
----
-68601
NULL

skipif mysql # not compatible
query II rowsort label-6782
SELECT DISTINCT - MAX ( ALL - 50 ) * + 49 * + - 28 - + COUNT ( ALL 41 ), CAST ( NULL AS INTEGER ) AS col0
----
-68601
NULL

query I rowsort
SELECT DISTINCT - 31 * - + 0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6784
SELECT + CAST( NULL AS SIGNED ) - - - 17 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6784
SELECT + CAST ( NULL AS INTEGER ) - - - 17 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6785
SELECT SUM( DISTINCT - 63 ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-6785
SELECT SUM ( DISTINCT - 63 ) AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6786
SELECT - ( 82 ) * + - COUNT( * ) + 91 + 10 * - - 94 AS col2
----
1113

skipif mysql # not compatible
query I rowsort label-6786
SELECT - ( 82 ) * + - COUNT ( * ) + 91 + 10 * - - 94 AS col2
----
1113

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT DISTINCT + NULLIF ( 39, COALESCE ( + 42, + 70 - - 27 ) ) * - 34 - - + 13 - - + 82 + 60 * + SUM( DISTINCT + 40 ) + + ( + 94 ) AS col1
----
1263

skipif mysql # not compatible
query I rowsort label-6787
SELECT DISTINCT + NULLIF ( 39, COALESCE ( + 42, + 70 - - 27 ) ) * - 34 - - + 13 - - + 82 + 60 * + SUM ( DISTINCT + 40 ) + + ( + 94 ) AS col1
----
1263

query I rowsort
SELECT - 41 + - 68
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT ALL - 6 * + 10 * + + COUNT( * ) - + 47
----
-107

skipif mysql # not compatible
query I rowsort label-6789
SELECT ALL - 6 * + 10 * + + COUNT ( * ) - + 47
----
-107

query I rowsort
SELECT + 11 * 26 AS col0
----
286

onlyif mysql # aggregate syntax: 
query II rowsort label-6791
SELECT MAX( + + 11 ) AS col0, + 50 * + + 54
----
11
2700

skipif mysql # not compatible
query II rowsort label-6791
SELECT MAX ( + + 11 ) AS col0, + 50 * + + 54
----
11
2700

onlyif mysql # aggregate syntax: 
query I rowsort label-6792
SELECT ALL SUM( ALL + 5 )
----
5

skipif mysql # not compatible
query I rowsort label-6792
SELECT ALL SUM ( ALL + 5 )
----
5

query I rowsort
SELECT - 81 * - CASE 50 WHEN + - 28 * - 92 + + 17 + 72 + + ( + 65 ) * + 72 / + 68 - + 7 THEN NULL WHEN - + 46 THEN NULL ELSE + ( - + NULLIF ( - - 24, - - ( - ( 62 ) ) ) ) * - - 78 END
----
-151632

query I rowsort
SELECT - ( - - 81 ) AS col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT + 52 * NULLIF ( COUNT( - + 57 ), - - 61 + + 56 )
----
52

skipif mysql # not compatible
query I rowsort label-6795
SELECT + 52 * NULLIF ( COUNT ( - + 57 ), - - 61 + + 56 )
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6796
SELECT ALL + COUNT( * ) DIV + ( - 52 ) AS col1, - 30 * + 93 + + ( 13 ) DIV + 9 - - 5 AS col2
----
0
-2784

skipif mysql # not compatible
query II rowsort label-6796
SELECT ALL + COUNT ( * ) / + ( - 52 ) AS col1, - 30 * + 93 + + ( 13 ) / + 9 - - 5 AS col2
----
0
-2784

onlyif mysql # aggregate syntax: 
query II rowsort label-6797
SELECT + 45 * + 41 AS col0, + COUNT( * ) col2
----
1845
1

skipif mysql # not compatible
query II rowsort label-6797
SELECT + 45 * + 41 AS col0, + COUNT ( * ) col2
----
1845
1

query I rowsort
SELECT - CASE + 1 WHEN - 36 THEN + 16 * - - 20 WHEN CASE 87 WHEN - 9 THEN 48 ELSE NULL END THEN 91 * - 72 WHEN + AVG ( ALL + 9 ) THEN NULL ELSE 3 END * + 47 AS col2
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT - 21 * COUNT( 7 ) * + ( + 60 ) * - 47 * + - 70
----
-4145400

skipif mysql # not compatible
query I rowsort label-6799
SELECT - 21 * COUNT ( 7 ) * + ( + 60 ) * - 47 * + - 70
----
-4145400

query I rowsort
SELECT - 39 - + 87 AS col1
----
-126

query I rowsort
SELECT DISTINCT + 21 * 82
----
1722

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT DISTINCT + COALESCE ( 66, - - MAX( - 44 ) * + - 9 ) + + - 48
----
18

skipif mysql # not compatible
query I rowsort label-6802
SELECT DISTINCT + COALESCE ( 66, - - MAX ( - 44 ) * + - 9 ) + + - 48
----
18

query II rowsort
SELECT ALL + 3 + + 33 + + ( NULLIF ( - - 12, - 40 - 47 ) ) col0, + 46 AS col0
----
48
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6804
SELECT ALL + - ( + - MIN( - 3 ) ) + 4 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6804
SELECT ALL + - ( + - MIN ( - 3 ) ) + 4 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6805
SELECT - 74 + + COUNT( * ) * - 2 * + 98 * + 14 * - 81 AS col2
----
222190

skipif mysql # not compatible
query I rowsort label-6805
SELECT - 74 + + COUNT ( * ) * - 2 * + 98 * + 14 * - 81 AS col2
----
222190

query II rowsort
SELECT ALL + - 70 + 8 AS col0, - 78
----
-62
-78

query I rowsort
SELECT - + COALESCE ( + 89, + 37, + ( NULLIF ( 78, + 3 ) ) ) + + 56
----
-33

query I rowsort
SELECT - - 40 + + 65 + + + 79 * + 33 AS col0
----
2712

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6809
SELECT - COALESCE ( + 92, + - 91 DIV - NULLIF ( 47, 3 ) + + 20 * - 89 ) AS col0, 62 * - 71 + COUNT( * )
----
-92
-4401

skipif mysql # not compatible
query II rowsort label-6809
SELECT - COALESCE ( + 92, + - 91 / - NULLIF ( 47, 3 ) + + 20 * - 89 ) AS col0, 62 * - 71 + COUNT ( * )
----
-92
-4401

onlyif mysql # aggregate syntax: 
query II rowsort label-6810
SELECT ALL + CASE - - 32 WHEN + + 7 * + COUNT( * ) THEN NULL ELSE 52 END AS col1, 64 AS col1
----
52
64

skipif mysql # not compatible
query II rowsort label-6810
SELECT ALL + CASE - - 32 WHEN + + 7 * + COUNT ( * ) THEN NULL ELSE 52 END AS col1, 64 AS col1
----
52
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6811
SELECT + + CAST( 31 AS SIGNED ) DIV SUM( + 47 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6811
SELECT + + CAST ( 31 AS INTEGER ) / SUM ( + 47 ) AS col0
----
0

query I rowsort
SELECT - 23 * 18 col1
----
-414

query I rowsort
SELECT ALL 63 * + 44 + - - 44
----
2816

onlyif mysql # DIV for integer division: 
query I rowsort label-6814
SELECT DISTINCT - 81 DIV + 77 - - + 63 + - 76 * - + 74
----
5686

skipif mysql # not compatible
query I rowsort label-6814
SELECT DISTINCT - 81 / + 77 - - + 63 + - 76 * - + 74
----
5686

query I rowsort
SELECT ALL 81 * 10 + + 63
----
873

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-6816
SELECT + 50 + 62 DIV - COUNT( * ) AS col2, 76 * 92 AS col0, 36 AS col0
----
-12
6992
36

skipif mysql # not compatible
query III rowsort label-6816
SELECT + 50 + 62 / - COUNT ( * ) AS col2, 76 * 92 AS col0, 36 AS col0
----
-12
6992
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6817
SELECT ALL 78 DIV + 78 - - CASE + - 28 WHEN + - 90 * 2 THEN NULL ELSE + + 29 END - + + 0 DIV + - COUNT( * ) * COUNT( * ) * + - 61 * - COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-6817
SELECT ALL 78 / + 78 - - CASE + - 28 WHEN + - 90 * 2 THEN NULL ELSE + + 29 END - + + 0 / + - COUNT ( * ) * COUNT ( * ) * + - 61 * - COUNT ( * )
----
30

query I rowsort
SELECT + + 82 * - - 95
----
7790

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6819
SELECT ALL - COUNT( * ) * + - ( 83 ) + + COUNT( * ) * - - 93 * - SUM( - + 20 ) DIV + 10 AS col0
----
269

skipif mysql # not compatible
query I rowsort label-6819
SELECT ALL - COUNT ( * ) * + - ( 83 ) + + COUNT ( * ) * - - 93 * - SUM ( - + 20 ) / + 10 AS col0
----
269

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6820
SELECT ALL 47 * + 90 / - COUNT( * ) * - 86 * + SUM( CAST( NULL AS SIGNED ) ) * - + ( + + 98 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6820
SELECT ALL 47 * + 90 / - COUNT ( * ) * - 86 * + SUM ( CAST ( NULL AS INTEGER ) ) * - + ( + + 98 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6821
SELECT + + 33 DIV - 87 AS col1, + 96 * 86
----
0
8256

skipif mysql # not compatible
query II rowsort label-6821
SELECT + + 33 / - 87 AS col1, + 96 * 86
----
0
8256

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6822
SELECT - + 22 * + CAST( NULL AS SIGNED ) AS col0, ( - 60 )
----
NULL
-60

skipif mysql # not compatible
query II rowsort label-6822
SELECT - + 22 * + CAST ( NULL AS INTEGER ) AS col0, ( - 60 )
----
NULL
-60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6823
SELECT - + 63 + + + 21 - 83 AS col0, + 32 + + CAST( NULL AS SIGNED ) + ( - COALESCE ( - ( - ( + 91 ) ), + 90 ) )
----
-125
NULL

skipif mysql # not compatible
query II rowsort label-6823
SELECT - + 63 + + + 21 - 83 AS col0, + 32 + + CAST ( NULL AS INTEGER ) + ( - COALESCE ( - ( - ( + 91 ) ), + 90 ) )
----
-125
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6824
SELECT - 98 DIV + 42 - 93 AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-6824
SELECT - 98 / + 42 - 93 AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT + ( + COALESCE ( + + ( - 57 ), + 46 * - - SUM( DISTINCT 29 ) * - 30 * + SUM( + 0 ) + + 16, 90 + + + CASE - COUNT( * ) WHEN + 41 THEN - - 96 END + COALESCE ( + - NULLIF ( - 90, - 27 + + 41 ), - 17 + + 68 * + - 87 * + 91 + ( + COUNT( * ) ) * 20 ) ) ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-6825
SELECT + ( + COALESCE ( + + ( - 57 ), + 46 * - - SUM ( DISTINCT 29 ) * - 30 * + SUM ( + 0 ) + + 16, 90 + + + CASE - COUNT ( * ) WHEN + 41 THEN - - 96 END + COALESCE ( + - NULLIF ( - 90, - 27 + + 41 ), - 17 + + 68 * + - 87 * + 91 + ( + COUNT ( * ) ) * 20 ) ) ) AS col0
----
-57

query I rowsort
SELECT DISTINCT ( 71 ) * - - 58 * - + 83 AS col2
----
-341794

onlyif mysql # aggregate syntax: 
query II rowsort label-6827
SELECT DISTINCT + 64, + COUNT( DISTINCT - NULLIF ( - 59, 79 ) ) * - NULLIF ( + 44, - 7 ) AS col0
----
64
-44

skipif mysql # not compatible
query II rowsort label-6827
SELECT DISTINCT + 64, + COUNT ( DISTINCT - NULLIF ( - 59, 79 ) ) * - NULLIF ( + 44, - 7 ) AS col0
----
64
-44

query I rowsort
SELECT + 93 + 16 - + 13 + - 10 + + - 85 * - 82
----
7056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6829
SELECT COALESCE ( + 98, - 70, + - COUNT( * ) ) + + CAST( NULL AS SIGNED ) * - 40 AS col1, - 15
----
NULL
-15

skipif mysql # not compatible
query II rowsort label-6829
SELECT COALESCE ( + 98, - 70, + - COUNT ( * ) ) + + CAST ( NULL AS INTEGER ) * - 40 AS col1, - 15
----
NULL
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6830
SELECT CAST( NULL AS SIGNED ) - ( + + COUNT( * ) ) / 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6830
SELECT CAST ( NULL AS INTEGER ) - ( + + COUNT ( * ) ) / 59 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT ALL SUM( + 21 ) + - + 41 * + 86
----
-3505

skipif mysql # not compatible
query I rowsort label-6831
SELECT ALL SUM ( + 21 ) + - + 41 * + 86
----
-3505

query I rowsort
SELECT ( 89 ) / - + 45 + + 39 + - 43 + - - CASE - - ( - 64 ) WHEN - 0 THEN 89 WHEN + + 46 THEN NULL END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6833
SELECT CAST( NULL AS SIGNED ) + + + 41 + - - 14 * - 48 / + CASE - - 50 WHEN + 64 THEN - 30 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6833
SELECT CAST ( NULL AS INTEGER ) + + + 41 + - - 14 * - 48 / + CASE - - 50 WHEN + 64 THEN - 30 END
----
NULL

query II rowsort
SELECT DISTINCT 97, - ( + - 89 ) AS col1
----
97
89

query I rowsort
SELECT ALL - 34 + - + 30 col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6836
SELECT ALL COUNT( * ) + + - ( + + 31 ) + - 58 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-6836
SELECT ALL COUNT ( * ) + + - ( + + 31 ) + - 58 AS col2
----
-88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6837
SELECT ALL - 71 + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6837
SELECT ALL - 71 + + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6838
SELECT 56 + NULLIF ( + + COALESCE ( - 32, MAX( ALL - + 8 ) ), + CASE + 60 WHEN + 1 THEN NULL WHEN 65 THEN NULL ELSE - 18 END * + 48 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-6838
SELECT 56 + NULLIF ( + + COALESCE ( - 32, MAX ( ALL - + 8 ) ), + CASE + 60 WHEN + 1 THEN NULL WHEN 65 THEN NULL ELSE - 18 END * + 48 ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-6839
SELECT ALL 97 + + ( + 63 ) * + COUNT( * ) AS col0, CASE + 73 WHEN MAX( - 31 ) THEN NULL ELSE 60 END - - 26
----
160
86

skipif mysql # not compatible
query II rowsort label-6839
SELECT ALL 97 + + ( + 63 ) * + COUNT ( * ) AS col0, CASE + 73 WHEN MAX ( - 31 ) THEN NULL ELSE 60 END - - 26
----
160
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6840
SELECT 66 + - CASE - 54 WHEN MAX( ALL + - 62 ) * - + COUNT( * ) THEN 36 + CAST( NULL AS SIGNED ) END * 19 * COALESCE ( - + 47, + - 47 * MIN( + 66 ), + 86 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6840
SELECT 66 + - CASE - 54 WHEN MAX ( ALL + - 62 ) * - + COUNT ( * ) THEN 36 + CAST ( NULL AS INTEGER ) END * 19 * COALESCE ( - + 47, + - 47 * MIN ( + 66 ), + 86 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6841
SELECT COUNT( * ) DIV - + 89 * - - 22 * + - 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6841
SELECT COUNT ( * ) / - + 89 * - - 22 * + - 89 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT + COUNT( * ) + - 74 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-6842
SELECT + COUNT ( * ) + - 74 AS col1
----
-73

query I rowsort
SELECT ALL + 58 + - 20
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6844
SELECT ALL COUNT( - NULLIF ( + 77, + 95 + - + 99 DIV - 81 ) ) DIV + 1 + + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-6844
SELECT ALL COUNT ( - NULLIF ( + 77, + 95 + - + 99 / - 81 ) ) / + 1 + + + COUNT ( * )
----
2

query I rowsort
SELECT DISTINCT + - 68 * + 52 AS col0
----
-3536

onlyif mysql # aggregate syntax: 
query I rowsort label-6846
SELECT ALL + COUNT( * ) * - 21
----
-21

skipif mysql # not compatible
query I rowsort label-6846
SELECT ALL + COUNT ( * ) * - 21
----
-21

query I rowsort
SELECT ALL 91 * - - 79 AS col0
----
7189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6848
SELECT COALESCE ( - 17, COUNT( * ) DIV - + 56 + - 81 + - 2 + COUNT( * ) ) * - 51 + + 89
----
956

skipif mysql # not compatible
query I rowsort label-6848
SELECT COALESCE ( - 17, COUNT ( * ) / - + 56 + - 81 + - 2 + COUNT ( * ) ) * - 51 + + 89
----
956

onlyif mysql # aggregate syntax: 
query II rowsort label-6849
SELECT - SUM( - 62 ) * - + 79 AS col0, - 11
----
-4898
-11

skipif mysql # not compatible
query II rowsort label-6849
SELECT - SUM ( - 62 ) * - + 79 AS col0, - 11
----
-4898
-11

query I rowsort
SELECT DISTINCT - 48 * + 62 AS col2
----
-2976

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6851
SELECT - 65 DIV + 28 + CAST( - 36 AS SIGNED ) - - 44
----
6

skipif mysql # not compatible
query I rowsort label-6851
SELECT - 65 / + 28 + CAST ( - 36 AS INTEGER ) - - 44
----
6

query II rowsort
SELECT 22 + - 38 AS col0, 4
----
-16
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT ALL + ( - COUNT( * ) ) + 53 - + ( 96 ) + + - ( - 22 ) + + + ( 82 ) + + + 30 * - 10 + - 77 * - 33
----
2301

skipif mysql # not compatible
query I rowsort label-6853
SELECT ALL + ( - COUNT ( * ) ) + 53 - + ( 96 ) + + - ( - 22 ) + + + ( 82 ) + + + 30 * - 10 + - 77 * - 33
----
2301

query I rowsort
SELECT 12 * + 21 col2
----
252

onlyif mysql # aggregate syntax: 
query II rowsort label-6855
SELECT DISTINCT - COUNT( ALL 42 ) AS col0, 87
----
-1
87

skipif mysql # not compatible
query II rowsort label-6855
SELECT DISTINCT - COUNT ( ALL 42 ) AS col0, 87
----
-1
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT COUNT( * ) * - 54 * - 90 AS col2
----
4860

skipif mysql # not compatible
query I rowsort label-6856
SELECT COUNT ( * ) * - 54 * - 90 AS col2
----
4860

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6857
SELECT DISTINCT + ( - CAST( NULL AS DECIMAL ) ) + + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-6857
SELECT DISTINCT + ( - CAST ( NULL AS REAL ) ) + + 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6858
SELECT NULLIF ( COUNT( * ), 25 ) * - - 30 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-6858
SELECT NULLIF ( COUNT ( * ), 25 ) * - - 30 AS col2
----
30

query I rowsort
SELECT ALL + 30 + + 51
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT DISTINCT 45 + + COUNT( * ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-6860
SELECT DISTINCT 45 + + COUNT ( * ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6861
SELECT ALL 4 + - - ( - COUNT( * ) )
----
3

skipif mysql # not compatible
query I rowsort label-6861
SELECT ALL 4 + - - ( - COUNT ( * ) )
----
3

query II rowsort
SELECT ALL 62 * + + 55 AS col2, + 68 * 74 * - 94
----
3410
-473008

query I rowsort
SELECT ALL 74 + + 51
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6864
SELECT 37 - - + 32 + - COUNT( - + 35 ) - 28 + 97 - 22 - + - CAST( NULL AS SIGNED ) - - + ( - - 79 ) + 44 * - 10 - - 15 + - + COUNT( * ) + 77 * 55 * + 69 * 18 / - 72 * - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-6864
SELECT 37 - - + 32 + - COUNT ( - + 35 ) - 28 + 97 - 22 - + - CAST ( NULL AS INTEGER ) - - + ( - - 79 ) + 44 * - 10 - - 15 + - + COUNT ( * ) + 77 * 55 * + 69 * 18 / - 72 * - 29
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT - SUM( + 78 ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-6865
SELECT - SUM ( + 78 ) AS col1
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-6866
SELECT DISTINCT 9 + - + 24 * + 27 * + 2 AS col2, + 86 + + + COUNT( * ) AS col1
----
-1287
87

skipif mysql # not compatible
query II rowsort label-6866
SELECT DISTINCT 9 + - + 24 * + 27 * + 2 AS col2, + 86 + + + COUNT ( * ) AS col1
----
-1287
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6867
SELECT 90 DIV + 22 - 13 DIV COUNT( * ) DIV + 92 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-6867
SELECT 90 / + 22 - 13 / COUNT ( * ) / + 92 AS col1
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6868
SELECT ALL 9 - + + COUNT( * ) DIV COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-6868
SELECT ALL 9 - + + COUNT ( * ) / COUNT ( * )
----
8

query I rowsort
SELECT DISTINCT + 70 * + - 78 * COALESCE ( + 12, ( + 62 ) ) AS col0
----
-65520

query I rowsort
SELECT DISTINCT 57 - + - 39 col0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6871
SELECT 39 * - - MIN( + CAST( - + 52 AS SIGNED ) ) * + 50 AS col1
----
-101400

skipif mysql # not compatible
query I rowsort label-6871
SELECT 39 * - - MIN ( + CAST ( - + 52 AS INTEGER ) ) * + 50 AS col1
----
-101400

query I rowsort
SELECT ALL + COALESCE ( + 98, + 2 ) AS col2
----
98

query I rowsort
SELECT 38 - 30 * 72
----
-2122

query II rowsort
SELECT - 99 + - + 63, + 90 AS col2
----
-162
90

query I rowsort
SELECT ALL - 11 * + 79 AS col2
----
-869

onlyif mysql # DIV for integer division: 
query I rowsort label-6876
SELECT - 8 DIV + 39
----
0

skipif mysql # not compatible
query I rowsort label-6876
SELECT - 8 / + 39
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6877
SELECT ALL - 19 * + - 28 + + 98 + CASE 89 WHEN + 72 * + 14 THEN - - 19 * + - 53 WHEN 33 * 30 THEN NULL ELSE NULL END * CAST( 90 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6877
SELECT ALL - 19 * + - 28 + + 98 + CASE 89 WHEN + 72 * + 14 THEN - - 19 * + - 53 WHEN 33 * 30 THEN NULL ELSE NULL END * CAST ( 90 AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6878
SELECT 25 + 35 + + - 76 * - - 79 * COUNT( * ) AS col1, COUNT( * )
----
-5944
1

skipif mysql # not compatible
query II rowsort label-6878
SELECT 25 + 35 + + - 76 * - - 79 * COUNT ( * ) AS col1, COUNT ( * )
----
-5944
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6879
SELECT ALL - 96 AS col0, - 67 * COUNT( + - 9 ) AS col2
----
-96
-67

skipif mysql # not compatible
query II rowsort label-6879
SELECT ALL - 96 AS col0, - 67 * COUNT ( + - 9 ) AS col2
----
-96
-67

query II rowsort
SELECT - 82 * - - 51 * 47 col1, + 31
----
-196554
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6881
SELECT + CASE - + 89 WHEN - - 19 THEN COUNT( * ) + - 4 WHEN - 0 + - AVG ( ALL 53 ) + 23 THEN COUNT( * ) WHEN AVG ( CAST( NULL AS SIGNED ) ) / - 52 * + + 20 + 11 THEN NULL ELSE 15 * - - 63 END AS col0
----
945

skipif mysql # not compatible
query I rowsort label-6881
SELECT + CASE - + 89 WHEN - - 19 THEN COUNT ( * ) + - 4 WHEN - 0 + - AVG ( ALL 53 ) + 23 THEN COUNT ( * ) WHEN AVG ( CAST ( NULL AS INTEGER ) ) / - 52 * + + 20 + 11 THEN NULL ELSE 15 * - - 63 END AS col0
----
945

query I rowsort
SELECT + CASE - - 76 WHEN + 92 * - 61 THEN 26 WHEN - ( + 43 ) THEN NULL ELSE 65 END AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6883
SELECT - 29 + ( + COUNT( * ) ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-6883
SELECT - 29 + ( + COUNT ( * ) ) AS col1
----
-28

query I rowsort
SELECT - 46 * - 76
----
3496

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT - 52 * - COUNT( * ) * - COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-6885
SELECT - 52 * - COUNT ( * ) * - COUNT ( * )
----
-52

query I rowsort
SELECT - COALESCE ( + + ( - + 76 ), - + 15 * 65 ) + - 38
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6887
SELECT DISTINCT + CASE - MIN( ALL + 23 ) WHEN + 45 THEN NULL WHEN - 96 THEN - 19 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6887
SELECT DISTINCT + CASE - MIN ( ALL + 23 ) WHEN + 45 THEN NULL WHEN - 96 THEN - 19 END AS col0
----
NULL

query I rowsort
SELECT ALL - 71 * + 75
----
-5325

query I rowsort
SELECT - 16 - - 49 AS col0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6890
SELECT DISTINCT 22 * 50 + + 18 + + 28 - 68 * - + CAST( NULL AS SIGNED ) + - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-6890
SELECT DISTINCT 22 * 50 + + 18 + + 28 - 68 * - + CAST ( NULL AS INTEGER ) + - 96
----
NULL

query I rowsort
SELECT ALL - 71 * 54 * - + 90
----
345060

query I rowsort
SELECT - 80 + - - 24
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6893
SELECT - 56 + COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-6893
SELECT - 56 + COUNT ( * )
----
-55

query I rowsort
SELECT + 62 - - - 60
----
2

query I rowsort
SELECT DISTINCT - 99 * + CASE - - 80 WHEN + 55 THEN AVG ( + 52 ) / + 58 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6896
SELECT - + ( - + 71 ) + - - 19 * - CAST( NULL AS SIGNED ) - + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-6896
SELECT - + ( - + 71 ) + - - 19 * - CAST ( NULL AS INTEGER ) - + 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT ALL - - 34 * + ( + MIN( ALL - 34 ) )
----
-1156

skipif mysql # not compatible
query I rowsort label-6897
SELECT ALL - - 34 * + ( + MIN ( ALL - 34 ) )
----
-1156

onlyif mysql # aggregate syntax: 
query I rowsort label-6898
SELECT + - MIN( - - 27 ) + 96 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-6898
SELECT + - MIN ( - - 27 ) + 96 AS col2
----
69

query I rowsort
SELECT + + 86 + + 65
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-6900
SELECT + 12 * - CASE 80 WHEN + AVG ( ALL - + 94 ) THEN + - 42 WHEN 68 THEN + COUNT( * ) WHEN + - 77 THEN + MIN( ( - 29 ) ) * - 24 + COUNT( * ) ELSE ( - 99 ) END AS col1
----
1188

skipif mysql # not compatible
query I rowsort label-6900
SELECT + 12 * - CASE 80 WHEN + AVG ( ALL - + 94 ) THEN + - 42 WHEN 68 THEN + COUNT ( * ) WHEN + - 77 THEN + MIN ( ( - 29 ) ) * - 24 + COUNT ( * ) ELSE ( - 99 ) END AS col1
----
1188

query I rowsort
SELECT + 17 + 71 + ( + 22 ) + - 35 + + - 88
----
-13

query I rowsort
SELECT + 39 + 61 AS col1
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6903
SELECT + - CAST( NULL AS SIGNED ) * + 85 * CASE - - 65 WHEN + 41 THEN NULL WHEN + ( - ( - 40 ) ) THEN NULLIF ( + 25, + COUNT( * ) ) ELSE - + 81 * - - ( COUNT( * ) ) / MIN( DISTINCT + + 57 ) + - + 14 END - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6903
SELECT + - CAST ( NULL AS INTEGER ) * + 85 * CASE - - 65 WHEN + 41 THEN NULL WHEN + ( - ( - 40 ) ) THEN NULLIF ( + 25, + COUNT ( * ) ) ELSE - + 81 * - - ( COUNT ( * ) ) / MIN ( DISTINCT + + 57 ) + - + 14 END - COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6904
SELECT + + COUNT( * ) + 34 + + 50 - 90
----
-5

skipif mysql # not compatible
query I rowsort label-6904
SELECT + + COUNT ( * ) + 34 + + 50 - 90
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6905
SELECT DISTINCT 27 * - SUM( ALL + ( 80 ) ) AS col2
----
-2160

skipif mysql # not compatible
query I rowsort label-6905
SELECT DISTINCT 27 * - SUM ( ALL + ( 80 ) ) AS col2
----
-2160

query I rowsort
SELECT ALL - 65 * + 51
----
-3315

query II rowsort
SELECT ALL + 54 * + ( - - 56 ) AS col0, 39 AS col2
----
3024
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT ALL + - COUNT( DISTINCT 55 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6908
SELECT ALL + - COUNT ( DISTINCT 55 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6909
SELECT ALL - 3 DIV - - ( ( - + 61 ) ) + 6
----
6

skipif mysql # not compatible
query I rowsort label-6909
SELECT ALL - 3 / - - ( ( - + 61 ) ) + 6
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6910
SELECT + 53 - + MAX( + 93 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-6910
SELECT + 53 - + MAX ( + 93 ) AS col0
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6911
SELECT + 70 + - 75 + + CAST( NULL AS SIGNED ) * + + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-6911
SELECT + 70 + - 75 + + CAST ( NULL AS INTEGER ) * + + 55
----
NULL

query I rowsort
SELECT + 29 * - 43 * 24
----
-29928

onlyif mysql # DIV for integer division: 
query I rowsort label-6913
SELECT ALL ( - 10 ) DIV - ( 8 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6913
SELECT ALL ( - 10 ) / - ( 8 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6914
SELECT DISTINCT + 3 DIV - - 97 + + 9 + + - 44
----
-35

skipif mysql # not compatible
query I rowsort label-6914
SELECT DISTINCT + 3 / - - 97 + + 9 + + - 44
----
-35

query I rowsort
SELECT + ( + 97 ) col0
----
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6916
SELECT + AVG ( DISTINCT + 98 ) * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6916
SELECT + AVG ( DISTINCT + 98 ) * CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT - 75 * 71 AS col0
----
-5325

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6918
SELECT - 93 + + - CAST( - - 44 AS SIGNED ) + + - 33
----
-170

skipif mysql # not compatible
query I rowsort label-6918
SELECT - 93 + + - CAST ( - - 44 AS INTEGER ) + + - 33
----
-170

query I rowsort
SELECT ALL + 93 * 12 * - - 45 + + 10
----
50230

query I rowsort
SELECT + ( + 58 ) col0
----
58

query I rowsort
SELECT + 39 * 51
----
1989

query II rowsort
SELECT + 44 AS col1, - 40
----
44
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6923
SELECT NULLIF ( - ( CASE - COALESCE ( - + 52, - 45 ) WHEN - 48 * + + 20 THEN + 22 * - NULLIF ( + + 40, + - COUNT( * ) + - - 94 * - 87 ) * 5 + 59 * + 69 END ), + NULLIF ( + - 35, + NULLIF ( + - 55, - MIN( ALL - - 11 ) ) * - - 22 ) + - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6923
SELECT NULLIF ( - ( CASE - COALESCE ( - + 52, - 45 ) WHEN - 48 * + + 20 THEN + 22 * - NULLIF ( + + 40, + - COUNT ( * ) + - - 94 * - 87 ) * 5 + 59 * + 69 END ), + NULLIF ( + - 35, + NULLIF ( + - 55, - MIN ( ALL - - 11 ) ) * - - 22 ) + - COUNT ( * ) )
----
NULL

query I rowsort
SELECT - 39 + - 63 AS col0
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-6925
SELECT - COUNT( * ) * - 18 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-6925
SELECT - COUNT ( * ) * - 18 AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6926
SELECT DISTINCT ( - 8 ) * + 10 * + + 67 - + ( + 7 ) * - - COUNT( * )
----
-5367

skipif mysql # not compatible
query I rowsort label-6926
SELECT DISTINCT ( - 8 ) * + 10 * + + 67 - + ( + 7 ) * - - COUNT ( * )
----
-5367

query I rowsort
SELECT ALL + ( - 78 ) AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6928
SELECT COUNT( * ) * + 19 + + COUNT( * ) - ( - 19 ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-6928
SELECT COUNT ( * ) * + 19 + + COUNT ( * ) - ( - 19 ) AS col0
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6929
SELECT - 15 DIV + - COUNT( * ) + + - MAX( - 44 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-6929
SELECT - 15 / + - COUNT ( * ) + + - MAX ( - 44 ) AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6930
SELECT - SUM( - ( - 4 ) )
----
-4

skipif mysql # not compatible
query I rowsort label-6930
SELECT - SUM ( - ( - 4 ) )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6931
SELECT ALL + - COUNT( * ) * 81 AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-6931
SELECT ALL + - COUNT ( * ) * 81 AS col2
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6932
SELECT ALL - MIN( DISTINCT + 81 ) * 9 + + 34 + - 23 + - AVG ( DISTINCT CAST( 62 AS SIGNED ) ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6932
SELECT ALL - MIN ( DISTINCT + 81 ) * 9 + + 34 + - 23 + - AVG ( DISTINCT CAST ( 62 AS INTEGER ) ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6933
SELECT - 46, COALESCE ( + 0, - COUNT( * ) * + 85, - + COUNT( * ) ) * 43 + 71 col0
----
-46
71

skipif mysql # not compatible
query II rowsort label-6933
SELECT - 46, COALESCE ( + 0, - COUNT ( * ) * + 85, - + COUNT ( * ) ) * 43 + 71 col0
----
-46
71

onlyif mysql # DIV for integer division: 
query I rowsort label-6934
SELECT - + 5 DIV - - 21 * - - ( - 9 ) + - 40 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-6934
SELECT - + 5 / - - 21 * - - ( - 9 ) + - 40 AS col2
----
-40

query I rowsort
SELECT ALL + 94 + - - 56
----
150

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6936
SELECT ALL - 25 + + CAST( NULL AS DECIMAL ) + + 78 + 7 + + + 68 * + 85 + + NULLIF ( - 99, 2 ) * + 21 * 1 - - + 13 + - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-6936
SELECT ALL - 25 + + CAST ( NULL AS REAL ) + + 78 + 7 + + + 68 * + 85 + + NULLIF ( - 99, 2 ) * + 21 * 1 - - + 13 + - 37
----
NULL

query I rowsort
SELECT - 4 - - + 16 AS col0
----
12

query I rowsort
SELECT ALL 47 + 4
----
51

query II rowsort
SELECT 21 AS col1, 28 * + + 89
----
21
2492

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6940
SELECT ALL - CAST( NULL AS SIGNED ) + + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6940
SELECT ALL - CAST ( NULL AS INTEGER ) + + COUNT ( * ) col0
----
NULL

query I rowsort
SELECT + ( + 42 ) + 55 + - - 87 * - 81 - - - ( + COALESCE ( 31, 74 + 61 - 44 ) ) + + - 86 AS col2
----
-7067

query I rowsort
SELECT 15 + - 35
----
-20

query I rowsort
SELECT 51 - - + 44 + 23 * + 40 AS col0
----
1015

query I rowsort
SELECT DISTINCT COALESCE ( + + 34, - 45 * 5 + 25 + 7 * + 88, + + 76 ) * - 24
----
-816

query I rowsort
SELECT ALL 35 * - + 45 * + 39 AS col2
----
-61425

query II rowsort
SELECT DISTINCT 52 * + 74 AS col2, 1
----
3848
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6947
SELECT ALL CAST( 70 AS SIGNED ) * + + 52 * - 91 + + COUNT( ALL + 71 ) AS col2
----
-331239

skipif mysql # not compatible
query I rowsort label-6947
SELECT ALL CAST ( 70 AS INTEGER ) * + + 52 * - 91 + + COUNT ( ALL + 71 ) AS col2
----
-331239

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6948
SELECT CAST( + 65 AS SIGNED ) * - 88 * + 83
----
-474760

skipif mysql # not compatible
query I rowsort label-6948
SELECT CAST ( + 65 AS INTEGER ) * - 88 * + 83
----
-474760

onlyif mysql # DIV for integer division: 
query I rowsort label-6949
SELECT DISTINCT 86 DIV 87
----
0

skipif mysql # not compatible
query I rowsort label-6949
SELECT DISTINCT 86 / 87
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6950
SELECT CAST( + 34 AS SIGNED ) * - - ( COUNT( * ) ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-6950
SELECT CAST ( + 34 AS INTEGER ) * - - ( COUNT ( * ) ) AS col2
----
34

query I rowsort
SELECT ALL 21 * - 19 * + 37 * + 92 col0
----
-1358196

query I rowsort
SELECT 72 - - 62
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-6953
SELECT DISTINCT 50 DIV - 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6953
SELECT DISTINCT 50 / - 69 AS col0
----
0

query I rowsort
SELECT DISTINCT + + 59 * 41 + 62 + - ( 77 )
----
2404

query I rowsort
SELECT ALL - - ( + 93 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT 24 * ( + + COUNT( * ) )
----
24

skipif mysql # not compatible
query I rowsort label-6956
SELECT 24 * ( + + COUNT ( * ) )
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6957
SELECT CASE - - 41 WHEN - 59 THEN + - 9 DIV - - 11 WHEN - 79 THEN NULL ELSE + 61 END + - COUNT( DISTINCT 90 )
----
60

skipif mysql # not compatible
query I rowsort label-6957
SELECT CASE - - 41 WHEN - 59 THEN + - 9 / - - 11 WHEN - 79 THEN NULL ELSE + 61 END + - COUNT ( DISTINCT 90 )
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6958
SELECT + CAST( + 62 AS SIGNED ) - - 2 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-6958
SELECT + CAST ( + 62 AS INTEGER ) - - 2 AS col2
----
64

query I rowsort
SELECT 44 - - 44
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6960
SELECT 90 + - CAST( NULL AS SIGNED ) col2, - 76 - - 95 AS col0
----
NULL
19

skipif mysql # not compatible
query II rowsort label-6960
SELECT 90 + - CAST ( NULL AS INTEGER ) col2, - 76 - - 95 AS col0
----
NULL
19

query I rowsort
SELECT DISTINCT 30 * + + 11 AS col1
----
330

onlyif mysql # aggregate syntax: 
query I rowsort label-6962
SELECT ALL - 23 + + + COUNT( * ) + 71 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-6962
SELECT ALL - 23 + + + COUNT ( * ) + 71 AS col1
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6963
SELECT ALL + 32 * + 64 + + COUNT( * ) DIV + 98 DIV 3 AS col0
----
2048

skipif mysql # not compatible
query I rowsort label-6963
SELECT ALL + 32 * + 64 + + COUNT ( * ) / + 98 / 3 AS col0
----
2048

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6964
SELECT ALL - + NULLIF ( + COUNT( * ), - - 55 ) + ( 61 ) DIV + + 17
----
2

skipif mysql # not compatible
query I rowsort label-6964
SELECT ALL - + NULLIF ( + COUNT ( * ), - - 55 ) + ( 61 ) / + + 17
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6965
SELECT DISTINCT + + 49 DIV 46
----
1

skipif mysql # not compatible
query I rowsort label-6965
SELECT DISTINCT + + 49 / 46
----
1

query I rowsort
SELECT 62 + + 63 + 1
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT 49 * + COALESCE ( 31, + COUNT( * ) + - 43 + + - COALESCE ( - - 54, + 46 * + - 45 + - 85 + 25 ) )
----
1519

skipif mysql # not compatible
query I rowsort label-6967
SELECT 49 * + COALESCE ( 31, + COUNT ( * ) + - 43 + + - COALESCE ( - - 54, + 46 * + - 45 + - 85 + 25 ) )
----
1519

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT MAX( ALL 51 ) * - 13 AS col2
----
-663

skipif mysql # not compatible
query I rowsort label-6968
SELECT MAX ( ALL 51 ) * - 13 AS col2
----
-663

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT ALL - 47 + COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-6969
SELECT ALL - 47 + COUNT ( * )
----
-46

query I rowsort
SELECT 31 * 15 * 67
----
31155

query I rowsort
SELECT ALL - 75 * 83
----
-6225

query I rowsort
SELECT ALL + 84 - - + 46 AS col0
----
130

query II rowsort
SELECT 44, - 19 - - 93 col2
----
44
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6974
SELECT 31 * - + 62 / - CAST( NULL AS SIGNED ) AS col1, - COUNT( * ) * - 48
----
NULL
48

skipif mysql # not compatible
query II rowsort label-6974
SELECT 31 * - + 62 / - CAST ( NULL AS INTEGER ) AS col1, - COUNT ( * ) * - 48
----
NULL
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6975
SELECT 85 * + ( - + COUNT( * ) ) - + SUM( DISTINCT 33 ) AS col0
----
-118

skipif mysql # not compatible
query I rowsort label-6975
SELECT 85 * + ( - + COUNT ( * ) ) - + SUM ( DISTINCT 33 ) AS col0
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-6976
SELECT MAX( ALL 23 )
----
23

skipif mysql # not compatible
query I rowsort label-6976
SELECT MAX ( ALL 23 )
----
23

query I rowsort
SELECT ( - 43 ) * + 37 AS col0
----
-1591

query I rowsort
SELECT ( + 26 ) + - - 96 AS col2
----
122

onlyif mysql # aggregate syntax: 
query II rowsort label-6979
SELECT + COUNT( * ) AS col0, SUM( ALL 75 ) + - 40 * - 71 * + 74
----
1
210235

skipif mysql # not compatible
query II rowsort label-6979
SELECT + COUNT ( * ) AS col0, SUM ( ALL 75 ) + - 40 * - 71 * + 74
----
1
210235

query I rowsort
SELECT DISTINCT - 40 * - 68 AS col1
----
2720

query II rowsort
SELECT ALL - 56 AS col1, 5 AS col0
----
-56
5

onlyif mysql # aggregate syntax: 
query II rowsort label-6982
SELECT MIN( DISTINCT - ( - + 69 ) ) AS col2, 58
----
69
58

skipif mysql # not compatible
query II rowsort label-6982
SELECT MIN ( DISTINCT - ( - + 69 ) ) AS col2, 58
----
69
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6983
SELECT ALL 44 * ( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6983
SELECT ALL 44 * ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6984
SELECT - 9 * - + COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-6984
SELECT - 9 * - + COUNT ( * )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT COUNT( * ) + - + 31
----
-30

skipif mysql # not compatible
query I rowsort label-6985
SELECT COUNT ( * ) + - + 31
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6986
SELECT + CAST( COALESCE ( + + 27, - 76 + - 33, - 99 * + - 93 + - 59 ) AS SIGNED ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-6986
SELECT + CAST ( COALESCE ( + + 27, - 76 + - 33, - 99 * + - 93 + - 59 ) AS INTEGER ) AS col1
----
27

query I rowsort
SELECT DISTINCT + 60 + + 73 col1
----
133

onlyif mysql # DIV for integer division: 
query I rowsort label-6988
SELECT - 36 DIV 13
----
-2

skipif mysql # not compatible
query I rowsort label-6988
SELECT - 36 / 13
----
-2

query I rowsort
SELECT 59 + + - 54 AS col1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6990
SELECT ALL 75 + 15 + + - ( + - CAST( + - 14 AS SIGNED ) ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-6990
SELECT ALL 75 + 15 + + - ( + - CAST ( + - 14 AS INTEGER ) ) AS col1
----
76

query II rowsort
SELECT + COALESCE ( 78, - 9 ) AS col0, + 57 AS col1
----
78
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6992
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + + 55 / + 43, - COUNT( * ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-6992
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + + 55 / + 43, - COUNT ( * ) AS col1
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6993
SELECT ALL - 77 + + 44 + + - COUNT( ALL + 35 ) + + 49 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-6993
SELECT ALL - 77 + + 44 + + - COUNT ( ALL + 35 ) + + 49 AS col1
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-6994
SELECT ALL + SUM( DISTINCT ( + 25 ) ) + 85, 51 AS col2
----
110
51

skipif mysql # not compatible
query II rowsort label-6994
SELECT ALL + SUM ( DISTINCT ( + 25 ) ) + 85, 51 AS col2
----
110
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6995
SELECT ALL + - 89 * + 30 * - - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) + ( AVG ( DISTINCT + 76 ) ) + - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-6995
SELECT ALL + - 89 * + 30 * - - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) + ( AVG ( DISTINCT + 76 ) ) + - 13
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6996
SELECT + - CAST( + 43 AS SIGNED ) * + + COUNT( 53 ) col1
----
-43

skipif mysql # not compatible
query I rowsort label-6996
SELECT + - CAST ( + 43 AS INTEGER ) * + + COUNT ( 53 ) col1
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6997
SELECT + 25 - - - 84 * - CAST( - 2 AS SIGNED )
----
-143

skipif mysql # not compatible
query I rowsort label-6997
SELECT + 25 - - - 84 * - CAST ( - 2 AS INTEGER )
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-6998
SELECT DISTINCT SUM( + ( + 90 ) ) * - - 94
----
8460

skipif mysql # not compatible
query I rowsort label-6998
SELECT DISTINCT SUM ( + ( + 90 ) ) * - - 94
----
8460

query I rowsort
SELECT - 76 * 11 + 84 * - 82 - 33
----
-7757

query I rowsort
SELECT ALL 82 * - 73 * 5 - 7
----
-29937

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7001
SELECT - 22 * + 92 + + - CAST( NULL AS SIGNED ) / + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-7001
SELECT - 22 * + 92 + + - CAST ( NULL AS INTEGER ) / + 0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7002
SELECT ALL + 51 - - + 37 + - 7 DIV SUM( + 23 )
----
88

skipif mysql # not compatible
query I rowsort label-7002
SELECT ALL + 51 - - + 37 + - 7 / SUM ( + 23 )
----
88

query I rowsort
SELECT - 0 - + + 31 + - COALESCE ( - 81, 8 ) AS col1
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-7004
SELECT ALL - 43 DIV + 47 * + + 35
----
0

skipif mysql # not compatible
query I rowsort label-7004
SELECT ALL - 43 / + 47 * + + 35
----
0

query I rowsort
SELECT ALL - 25 * + + 63
----
-1575

onlyif mysql # DIV for integer division: 
query I rowsort label-7006
SELECT + 64 DIV - 65 * + - 99
----
0

skipif mysql # not compatible
query I rowsort label-7006
SELECT + 64 / - 65 * + - 99
----
0

query I rowsort
SELECT - 70 * - - 37 AS col1
----
-2590

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7008
SELECT ALL - 44 / + NULLIF ( - CASE + ( - 64 ) WHEN - 88 * + + 36 THEN + 56 - - + MIN( ALL - + 32 ) END, + 44 ) / + 99 * - CAST( NULL AS SIGNED ) * COUNT( * ) * COUNT( * ) / - 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7008
SELECT ALL - 44 / + NULLIF ( - CASE + ( - 64 ) WHEN - 88 * + + 36 THEN + 56 - - + MIN ( ALL - + 32 ) END, + 44 ) / + 99 * - CAST ( NULL AS INTEGER ) * COUNT ( * ) * COUNT ( * ) / - 20 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT + COUNT( * ) + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7009
SELECT + COUNT ( * ) + - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT ALL - 26 * + 47 col2
----
-1222

query I rowsort
SELECT - 16 + + + 97 + - 86
----
-5

query I rowsort
SELECT - 22 - 8 AS col0
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7013
SELECT - 34 * - + COALESCE ( 40, + + ( 55 ) + - COUNT( * ) DIV 62 ) * - 59 * + 35 col0
----
-2808400

skipif mysql # not compatible
query I rowsort label-7013
SELECT - 34 * - + COALESCE ( 40, + + ( 55 ) + - COUNT ( * ) / 62 ) * - 59 * + 35 col0
----
-2808400

query II rowsort
SELECT ALL - 26 * 22 AS col1, 83 AS col0
----
-572
83

query II rowsort
SELECT ALL + ( - 13 ) AS col0, 50 * + 94 AS col0
----
-13
4700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7016
SELECT ALL COALESCE ( CASE + 63 WHEN - NULLIF ( - + 52, - - 61 ) THEN NULL WHEN - + 39 + - 57 THEN NULL WHEN 26 THEN NULL ELSE - + 97 END, NULLIF ( MIN( ALL + - 22 ), - 26 * AVG ( + + 66 ) * - - 24 + + 63 + 78 ) ) * - 60 * - CAST( NULL AS SIGNED ) + + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-7016
SELECT ALL COALESCE ( CASE + 63 WHEN - NULLIF ( - + 52, - - 61 ) THEN NULL WHEN - + 39 + - 57 THEN NULL WHEN 26 THEN NULL ELSE - + 97 END, NULLIF ( MIN ( ALL + - 22 ), - 26 * AVG ( + + 66 ) * - - 24 + + 63 + 78 ) ) * - 60 * - CAST ( NULL AS INTEGER ) + + 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7017
SELECT + COUNT( * ) * + 84 + - 60
----
24

skipif mysql # not compatible
query I rowsort label-7017
SELECT + COUNT ( * ) * + 84 + - 60
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7018
SELECT DISTINCT + 73 * + COALESCE ( - 96, + 5, + 10 + - - 7 ) + - + 58, + 53 * 48 DIV + COUNT( * ) AS col1
----
-7066
2544

skipif mysql # not compatible
query II rowsort label-7018
SELECT DISTINCT + 73 * + COALESCE ( - 96, + 5, + 10 + - - 7 ) + - + 58, + 53 * 48 / + COUNT ( * ) AS col1
----
-7066
2544

query I rowsort
SELECT ALL 64 * - 1 * - 14
----
896

query I rowsort
SELECT DISTINCT - 79 * + - 24 * 6 + - - 38 + + 57
----
11471

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7021
SELECT + + CASE - 34 WHEN - CAST( 40 AS SIGNED ) THEN - NULLIF ( - COUNT( * ), + - COUNT( * ) ) * - + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7021
SELECT + + CASE - 34 WHEN - CAST ( 40 AS INTEGER ) THEN - NULLIF ( - COUNT ( * ), + - COUNT ( * ) ) * - + COUNT ( * ) END
----
NULL

query I rowsort
SELECT - 28 * - + 19 + + + 77 AS col1
----
609

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT ALL + 36 * + COUNT( DISTINCT 82 ) * ( + + ( + 24 ) ) + + 42 AS col0
----
906

skipif mysql # not compatible
query I rowsort label-7023
SELECT ALL + 36 * + COUNT ( DISTINCT 82 ) * ( + + ( + 24 ) ) + + 42 AS col0
----
906

query I rowsort
SELECT ALL - 37 * - + 37
----
1369

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7025
SELECT DISTINCT - ( 35 ) * - + ( + 37 ) * - 51 - - COUNT( * ) + MIN( ALL 91 ) + + - CAST( NULL AS SIGNED ) * + 27 * - 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7025
SELECT DISTINCT - ( 35 ) * - + ( + 37 ) * - 51 - - COUNT ( * ) + MIN ( ALL 91 ) + + - CAST ( NULL AS INTEGER ) * + 27 * - 67 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7026
SELECT - COUNT( * ) + + + NULLIF ( + + COALESCE ( 36, - 79 + - COUNT( * ) ), 31 ) AS col2, 41 + - 95 AS col0
----
35
-54

skipif mysql # not compatible
query II rowsort label-7026
SELECT - COUNT ( * ) + + + NULLIF ( + + COALESCE ( 36, - 79 + - COUNT ( * ) ), 31 ) AS col2, 41 + - 95 AS col0
----
35
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7027
SELECT + SUM( DISTINCT + 41 ) * - 40 AS col1
----
-1640

skipif mysql # not compatible
query I rowsort label-7027
SELECT + SUM ( DISTINCT + 41 ) * - 40 AS col1
----
-1640

onlyif mysql # aggregate syntax: 
query I rowsort label-7028
SELECT ALL - + 69 * COUNT( * ) * + 93 + + + 92 - - MIN( + - 63 ) AS col1
----
-6388

skipif mysql # not compatible
query I rowsort label-7028
SELECT ALL - + 69 * COUNT ( * ) * + 93 + + + 92 - - MIN ( + - 63 ) AS col1
----
-6388

query I rowsort
SELECT + + 16 * - 65 - 28 + 34 * - + 24
----
-1884

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT + - MIN( DISTINCT + 32 ) + - + 40 + + 95 * 26 * + 42 * - 45
----
-4668372

skipif mysql # not compatible
query I rowsort label-7030
SELECT + - MIN ( DISTINCT + 32 ) + - + 40 + + 95 * 26 * + 42 * - 45
----
-4668372

query II rowsort
SELECT ALL + 30 * - 25 col0, - 48 AS col0
----
-750
-48

query I rowsort
SELECT + 76 + - + 64
----
12

query I rowsort
SELECT ALL 82 - - - 25 col0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7034
SELECT - CAST( - - 79 AS SIGNED ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-7034
SELECT - CAST ( - - 79 AS INTEGER ) AS col1
----
-79

query I rowsort
SELECT + 29 + + + 13 AS col0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7036
SELECT ALL 34 * - + 74 * - CAST( NULL AS SIGNED ), 60 AS col2
----
NULL
60

skipif mysql # not compatible
query II rowsort label-7036
SELECT ALL 34 * - + 74 * - CAST ( NULL AS INTEGER ), 60 AS col2
----
NULL
60

query I rowsort
SELECT + 46 * - + 13
----
-598

query I rowsort
SELECT DISTINCT 69 * 88 AS col1
----
6072

query I rowsort
SELECT + 93 * - - 53
----
4929

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7040
SELECT - CAST( NULL AS SIGNED ) AS col0, - 1 AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-7040
SELECT - CAST ( NULL AS INTEGER ) AS col0, - 1 AS col1
----
NULL
-1

query II rowsort
SELECT 93 col0, 41 AS col2
----
93
41

query I rowsort
SELECT ALL ( ( + 2 ) ) AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7043
SELECT + CAST( NULL AS SIGNED ) + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-7043
SELECT + CAST ( NULL AS INTEGER ) + 24
----
NULL

query I rowsort
SELECT DISTINCT ( + ( + ( + 11 ) ) )
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7045
SELECT + ( - CAST( NULL AS SIGNED ) ) + - + COUNT( 81 ) * 86
----
NULL

skipif mysql # not compatible
query I rowsort label-7045
SELECT + ( - CAST ( NULL AS INTEGER ) ) + - + COUNT ( 81 ) * 86
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7046
SELECT - - CAST( - ( + ( - CAST( NULL AS SIGNED ) ) ) AS SIGNED ) + + 79 col2, 89
----
NULL
89

skipif mysql # not compatible
query II rowsort label-7046
SELECT - - CAST ( - ( + ( - CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) + + 79 col2, 89
----
NULL
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7047
SELECT ALL - - 42 DIV - CAST( - + AVG ( + 19 ) AS SIGNED ) + - - COUNT( * ) DIV + 43 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7047
SELECT ALL - - 42 / - CAST ( - + AVG ( + 19 ) AS INTEGER ) + - - COUNT ( * ) / + 43 AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7048
SELECT - 76 DIV COUNT( * ) * - - MAX( DISTINCT + 80 ) * - + 44 + 25 AS col2
----
267545

skipif mysql # not compatible
query I rowsort label-7048
SELECT - 76 / COUNT ( * ) * - - MAX ( DISTINCT + 80 ) * - + 44 + 25 AS col2
----
267545

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7049
SELECT DISTINCT + ( + - 7 ) DIV 29 DIV + COUNT( * ) + - + 23 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-7049
SELECT DISTINCT + ( + - 7 ) / 29 / + COUNT ( * ) + - + 23 AS col1
----
-23

query I rowsort
SELECT - NULLIF ( + + 68, + 73 * + 93 ) + + + 40
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7051
SELECT - - 4 * - + 77 + - 1 - + 98 * + CASE - COUNT( DISTINCT + 23 ) WHEN 67 * 38 THEN + 20 WHEN + 29 - + 18 THEN NULL END - - - 45 / + 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7051
SELECT - - 4 * - + 77 + - 1 - + 98 * + CASE - COUNT ( DISTINCT + 23 ) WHEN 67 * 38 THEN + 20 WHEN + 29 - + 18 THEN NULL END - - - 45 / + 38 AS col1
----
NULL

query I rowsort
SELECT ( + ( 91 ) ) AS col0
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7053
SELECT 9 DIV - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-7053
SELECT 9 / - COUNT ( * )
----
-9

query II rowsort
SELECT ALL - - 37 AS col0, 84 + ( ( ( + 33 ) ) ) * - 18
----
37
-510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7055
SELECT DISTINCT + - 43 - + - 28 + + + 28, CAST( NULL AS SIGNED ) * + 0 * - CASE - 43 WHEN CAST( + 38 AS SIGNED ) THEN NULL WHEN 9 THEN - 13 * - - 63 / - 55 / 30 + + + MIN( - 92 ) WHEN 61 * + CAST( NULL AS DECIMAL ) * + + 60 + - 79 - ( + 39 ) + + 82 THEN 1 - - 46 + - 6 WHEN + NULLIF ( 59, - CAST( - ( - - 71 ) AS SIGNED ) ) * + COUNT( ALL 87 ) / + 67 * - MIN( DISTINCT - 14 ) - 81 + 27 THEN + 97 * 91 ELSE MIN( 35 ) + - 63 * + MAX( DISTINCT 74 ) END col0
----
13
NULL

skipif mysql # not compatible
query II rowsort label-7055
SELECT DISTINCT + - 43 - + - 28 + + + 28, CAST ( NULL AS INTEGER ) * + 0 * - CASE - 43 WHEN CAST ( + 38 AS INTEGER ) THEN NULL WHEN 9 THEN - 13 * - - 63 / - 55 / 30 + + + MIN ( - 92 ) WHEN 61 * + CAST ( NULL AS REAL ) * + + 60 + - 79 - ( + 39 ) + + 82 THEN 1 - - 46 + - 6 WHEN + NULLIF ( 59, - CAST ( - ( - - 71 ) AS INTEGER ) ) * + COUNT ( ALL 87 ) / + 67 * - MIN ( DISTINCT - 14 ) - 81 + 27 THEN + 97 * 91 ELSE MIN ( 35 ) + - 63 * + MAX ( DISTINCT 74 ) END col0
----
13
NULL

query I rowsort
SELECT - 11 + - - 15
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7057
SELECT + + MIN( + - 13 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-7057
SELECT + + MIN ( + - 13 ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT + SUM( ( - - 40 ) ) * + COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-7058
SELECT + SUM ( ( - - 40 ) ) * + COUNT ( * )
----
40

query I rowsort
SELECT DISTINCT NULLIF ( - 74, - + 58 + + - CASE + 32 WHEN + 35 THEN - 78 - + 85 ELSE NULL END )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT DISTINCT + - 88 * - COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-7060
SELECT DISTINCT + - 88 * - COUNT ( * )
----
88

query I rowsort
SELECT 31 - + ( - 91 ) * - 50 + + 95 + - 72 col2
----
-4496

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT MAX( ALL + 45 ) * + MIN( 35 ) + 94 col2
----
1669

skipif mysql # not compatible
query I rowsort label-7062
SELECT MAX ( ALL + 45 ) * + MIN ( 35 ) + 94 col2
----
1669

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT - MIN( ALL - 61 ) * + - 36 - + - 75 * ( - 84 )
----
-8496

skipif mysql # not compatible
query I rowsort label-7063
SELECT - MIN ( ALL - 61 ) * + - 36 - + - 75 * ( - 84 )
----
-8496

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT COUNT( DISTINCT + - 16 ) * + 79 * + - 16 * + + 74 AS col0
----
-93536

skipif mysql # not compatible
query I rowsort label-7064
SELECT COUNT ( DISTINCT + - 16 ) * + 79 * + - 16 * + + 74 AS col0
----
-93536

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7065
SELECT DISTINCT 22 + - COALESCE ( - 92, CAST( NULL AS SIGNED ) ) AS col0
----
114

skipif mysql # not compatible
query I rowsort label-7065
SELECT DISTINCT 22 + - COALESCE ( - 92, CAST ( NULL AS INTEGER ) ) AS col0
----
114

query I rowsort
SELECT ALL 81 + 89 AS col1
----
170

onlyif mysql # aggregate syntax: 
query II rowsort label-7067
SELECT ALL 29, - COALESCE ( 32, + + 4 + NULLIF ( 50, + 84 ) ) + - 97 * + MAX( - 55 ) + - - 26 AS col1
----
29
5329

skipif mysql # not compatible
query II rowsort label-7067
SELECT ALL 29, - COALESCE ( 32, + + 4 + NULLIF ( 50, + 84 ) ) + - 97 * + MAX ( - 55 ) + - - 26 AS col1
----
29
5329

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT ALL SUM( 45 ) + + NULLIF ( + + 19, 92 )
----
64

skipif mysql # not compatible
query I rowsort label-7068
SELECT ALL SUM ( 45 ) + + NULLIF ( + + 19, 92 )
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7069
SELECT DISTINCT 86 + + 82 * 91 + 21 AS col1, CAST( NULL AS SIGNED ) AS col0
----
7569
NULL

skipif mysql # not compatible
query II rowsort label-7069
SELECT DISTINCT 86 + + 82 * 91 + 21 AS col1, CAST ( NULL AS INTEGER ) AS col0
----
7569
NULL

query II rowsort
SELECT - 96 AS col2, 80 * + - 39 AS col1
----
-96
-3120

query I rowsort
SELECT 20 - + - 94 AS col0
----
114

query II rowsort
SELECT DISTINCT 1 AS col1, 82 * - 67 - - NULLIF ( - ( 4 ), + + 76 + 86 )
----
1
-5498

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7073
SELECT - 74 / + 59 + - 7 + + 28 + + 77 + + SUM( ALL + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) * NULLIF ( 36, 91 ) + + - 87 + + - 27 * 98 * - 51 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7073
SELECT - 74 / + 59 + - 7 + + 28 + + 77 + + SUM ( ALL + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) * NULLIF ( 36, 91 ) + + - 87 + + - 27 * 98 * - 51 col1
----
NULL

query I rowsort
SELECT - 29 + + 46 + + - 84 AS col0
----
-67

query I rowsort
SELECT 93 * - 75 AS col1
----
-6975

onlyif mysql # aggregate syntax: 
query II rowsort label-7076
SELECT + MAX( ALL - - 2 ) AS col0, - 31
----
2
-31

skipif mysql # not compatible
query II rowsort label-7076
SELECT + MAX ( ALL - - 2 ) AS col0, - 31
----
2
-31

query II rowsort
SELECT + 78 AS col2, 13 + + ( 71 ) AS col2
----
78
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7078
SELECT ALL + COUNT( ALL + - ( - 59 ) ) * + 51 DIV + 6 + + 74 + 69
----
151

skipif mysql # not compatible
query I rowsort label-7078
SELECT ALL + COUNT ( ALL + - ( - 59 ) ) * + 51 / + 6 + + 74 + 69
----
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7079
SELECT - 18 * + CAST( - 42 AS SIGNED ) + + 31 AS col1
----
787

skipif mysql # not compatible
query I rowsort label-7079
SELECT - 18 * + CAST ( - 42 AS INTEGER ) + + 31 AS col1
----
787

query I rowsort
SELECT 93 + + 56
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-7081
SELECT DISTINCT - 52 - - COUNT( * ) + 66
----
15

skipif mysql # not compatible
query I rowsort label-7081
SELECT DISTINCT - 52 - - COUNT ( * ) + 66
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7082
SELECT + CASE - 93 WHEN + 82 THEN 21 END * + ( - COUNT( * ) ) + 45 * COUNT( 94 ) * + 12 + 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7082
SELECT + CASE - 93 WHEN + 82 THEN 21 END * + ( - COUNT ( * ) ) + 45 * COUNT ( 94 ) * + 12 + 59 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7083
SELECT ALL + 72 / - CAST( NULL AS SIGNED ) + + - 24 / - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7083
SELECT ALL + 72 / - CAST ( NULL AS INTEGER ) + + - 24 / - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7084
SELECT DISTINCT - 13, + COUNT( * ) col1
----
-13
1

skipif mysql # not compatible
query II rowsort label-7084
SELECT DISTINCT - 13, + COUNT ( * ) col1
----
-13
1

query I rowsort
SELECT + + ( - 88 ) AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT + 21 + COUNT( * ) - - 53 + + 72 * + + 68
----
4971

skipif mysql # not compatible
query I rowsort label-7086
SELECT + 21 + COUNT ( * ) - - 53 + + 72 * + + 68
----
4971

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7087
SELECT 76 - + MAX( - CAST( - - 9 AS SIGNED ) ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-7087
SELECT 76 - + MAX ( - CAST ( - - 9 AS INTEGER ) ) AS col1
----
85

query II rowsort
SELECT 79 * + 10, 37 + + 79 - - 23 * - - 82 AS col2
----
790
2002

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7089
SELECT + 94 * + + COUNT( * ) + - 49 DIV + 81
----
94

skipif mysql # not compatible
query I rowsort label-7089
SELECT + 94 * + + COUNT ( * ) + - 49 / + 81
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT 85 + + SUM( ALL + + 37 )
----
122

skipif mysql # not compatible
query I rowsort label-7090
SELECT 85 + + SUM ( ALL + + 37 )
----
122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7091
SELECT DISTINCT + 12 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7091
SELECT DISTINCT + 12 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7092
SELECT 69 * + CAST( NULL AS DECIMAL ) * + 71 * - 0 * + + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-7092
SELECT 69 * + CAST ( NULL AS REAL ) * + 71 * - 0 * + + 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7093
SELECT 85 + + COUNT( * ) * 56 + - - 33 AS col2
----
174

skipif mysql # not compatible
query I rowsort label-7093
SELECT 85 + + COUNT ( * ) * 56 + - - 33 AS col2
----
174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7094
SELECT DISTINCT - 49 + + COUNT( DISTINCT - ( 78 ) ) DIV + 49 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-7094
SELECT DISTINCT - 49 + + COUNT ( DISTINCT - ( 78 ) ) / + 49 AS col1
----
-49

query I rowsort
SELECT ALL + 95 + 91 AS col2
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT DISTINCT + MIN( DISTINCT + 53 ) + + 13 - MAX( DISTINCT - 5 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-7096
SELECT DISTINCT + MIN ( DISTINCT + 53 ) + + 13 - MAX ( DISTINCT - 5 ) AS col1
----
71

query I rowsort
SELECT 81 + 45 * + 28 + - 98 col0
----
1243

onlyif mysql # aggregate syntax: 
query I rowsort label-7098
SELECT ( 97 ) + + SUM( ALL 33 ) * - + ( - 36 )
----
1285

skipif mysql # not compatible
query I rowsort label-7098
SELECT ( 97 ) + + SUM ( ALL 33 ) * - + ( - 36 )
----
1285

onlyif mysql # aggregate syntax: 
query II rowsort label-7099
SELECT ALL 68 - - COUNT( * ) AS col2, + 52 col0
----
69
52

skipif mysql # not compatible
query II rowsort label-7099
SELECT ALL 68 - - COUNT ( * ) AS col2, + 52 col0
----
69
52

query I rowsort
SELECT + 73 * - 53 AS col1
----
-3869

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7101
SELECT ALL - MIN( ALL 8 ) DIV + + 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7101
SELECT ALL - MIN ( ALL 8 ) / + + 82 AS col1
----
0

query II rowsort
SELECT + + 88 + + - 10 AS col2, 41
----
78
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7103
SELECT + COUNT( * ) * - CAST( 73 AS SIGNED ) + + 94 col1
----
21

skipif mysql # not compatible
query I rowsort label-7103
SELECT + COUNT ( * ) * - CAST ( 73 AS INTEGER ) + + 94 col1
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-7104
SELECT ALL - 19 * - 71 - - 30 + - - 92 + - 47 * + 23 * 37 AS col1, COUNT( * ) + + ( + CASE WHEN NULL < 92 THEN 13 ELSE NULL END ) AS col1
----
-38526
NULL

skipif mysql # not compatible
query II rowsort label-7104
SELECT ALL - 19 * - 71 - - 30 + - - 92 + - 47 * + 23 * 37 AS col1, COUNT ( * ) + + ( + CASE WHEN NULL < 92 THEN 13 ELSE NULL END ) AS col1
----
-38526
NULL

query I rowsort
SELECT + - 14 + + 28 AS col0
----
14

query I rowsort
SELECT ALL + 50 - 25
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7107
SELECT - + COUNT( * ) DIV COUNT( * ) - - MIN( 77 ) * CAST( COALESCE ( - SUM( + 49 ), 55, + - 74 ) AS SIGNED ) AS col2
----
-3774

skipif mysql # not compatible
query I rowsort label-7107
SELECT - + COUNT ( * ) / COUNT ( * ) - - MIN ( 77 ) * CAST ( COALESCE ( - SUM ( + 49 ), 55, + - 74 ) AS INTEGER ) AS col2
----
-3774

onlyif mysql # aggregate syntax: 
query I rowsort label-7108
SELECT + + 39 * COUNT( * ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-7108
SELECT + + 39 * COUNT ( * ) AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7109
SELECT NULLIF ( + - COUNT( * ), ( COUNT( * ) ) + + 88 + + COUNT( * ) - - - MAX( - 67 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7109
SELECT NULLIF ( + - COUNT ( * ), ( COUNT ( * ) ) + + 88 + + COUNT ( * ) - - - MAX ( - 67 ) ) AS col1
----
-1

query II rowsort
SELECT + - 64 * - 41 AS col2, + 17 * - + ( 50 ) AS col2
----
2624
-850

query I rowsort
SELECT ALL COALESCE ( + + 61, - - 36, + 82 ) * - - 9 AS col2
----
549

onlyif mysql # aggregate syntax: 
query II rowsort label-7112
SELECT DISTINCT + COUNT( ALL - 54 ) AS col2, 39 * - 96 + + 48 * 1 * + 62
----
1
-768

skipif mysql # not compatible
query II rowsort label-7112
SELECT DISTINCT + COUNT ( ALL - 54 ) AS col2, 39 * - 96 + + 48 * 1 * + 62
----
1
-768

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7113
SELECT - - 9 DIV 86 * + 75 + 93 * COALESCE ( - COUNT( * ), + - 93 + 10 * 96 )
----
-93

skipif mysql # not compatible
query I rowsort label-7113
SELECT - - 9 / 86 * + 75 + 93 * COALESCE ( - COUNT ( * ), + - 93 + 10 * 96 )
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7114
SELECT + + 37 * + 9, - 89 * CAST( NULL AS SIGNED ) AS col1
----
333
NULL

skipif mysql # not compatible
query II rowsort label-7114
SELECT + + 37 * + 9, - 89 * CAST ( NULL AS INTEGER ) AS col1
----
333
NULL

query I rowsort
SELECT ALL 49 * + - 99 AS col0
----
-4851

query I rowsort
SELECT + 19 * + - 28 AS col2
----
-532

onlyif mysql # aggregate syntax: 
query I rowsort label-7117
SELECT ALL 52 * + - MIN( + 20 ) + 91 + 98
----
-851

skipif mysql # not compatible
query I rowsort label-7117
SELECT ALL 52 * + - MIN ( + 20 ) + 91 + 98
----
-851

query I rowsort
SELECT + ( - + 58 ) col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7119
SELECT DISTINCT 20 * - 90 + - COUNT( * ) AS col1
----
-1801

skipif mysql # not compatible
query I rowsort label-7119
SELECT DISTINCT 20 * - 90 + - COUNT ( * ) AS col1
----
-1801

onlyif mysql # aggregate syntax: 
query II rowsort label-7120
SELECT ALL - 63 + + - 66 * - 89 AS col0, SUM( ALL - 93 ) AS col0
----
5811
-93

skipif mysql # not compatible
query II rowsort label-7120
SELECT ALL - 63 + + - 66 * - 89 AS col0, SUM ( ALL - 93 ) AS col0
----
5811
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT COUNT( * ) * + 30 - 21 + + COUNT( + - 84 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-7121
SELECT COUNT ( * ) * + 30 - 21 + + COUNT ( + - 84 ) AS col2
----
10

query I rowsort
SELECT - 57 * - + ( + 91 ) * - + 38 AS col2
----
-197106

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT + ( 78 ) + - ( + COUNT( ALL 10 ) )
----
77

skipif mysql # not compatible
query I rowsort label-7123
SELECT + ( 78 ) + - ( + COUNT ( ALL 10 ) )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT - COUNT( * ) + - - 52
----
51

skipif mysql # not compatible
query I rowsort label-7124
SELECT - COUNT ( * ) + - - 52
----
51

query I rowsort
SELECT ALL + ( 37 ) - ( 42 ) AS col0
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-7126
SELECT - 97 * NULLIF ( 30, + - ( + 86 ) - + NULLIF ( COUNT( * ), - + 68 ) ), 50 * + 51 AS col1
----
-2910
2550

skipif mysql # not compatible
query II rowsort label-7126
SELECT - 97 * NULLIF ( 30, + - ( + 86 ) - + NULLIF ( COUNT ( * ), - + 68 ) ), 50 * + 51 AS col1
----
-2910
2550

query I rowsort
SELECT DISTINCT + 73 * - + 57
----
-4161

query I rowsort
SELECT - 62 * 12 AS col2
----
-744

query I rowsort
SELECT - 67 * - + 37 AS col1
----
2479

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7130
SELECT - - 85 + ( COUNT( * ) ), SUM( CAST( + + 20 AS SIGNED ) ) * 39 AS col0
----
86
780

skipif mysql # not compatible
query II rowsort label-7130
SELECT - - 85 + ( COUNT ( * ) ), SUM ( CAST ( + + 20 AS INTEGER ) ) * 39 AS col0
----
86
780

query I rowsort
SELECT - 51 + + 45
----
-6

query II rowsort
SELECT - + 61 AS col1, 28 AS col1
----
-61
28

query I rowsort
SELECT - ( + 89 ) + + 60
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-7134
SELECT + 34 DIV - + 33
----
-1

skipif mysql # not compatible
query I rowsort label-7134
SELECT + 34 / - + 33
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7135
SELECT - - 82 * - + CAST( NULL AS SIGNED ) + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7135
SELECT - - 82 * - + CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7136
SELECT - COUNT( * ) AS col2, 22 + - - 39 AS col2
----
-1
61

skipif mysql # not compatible
query II rowsort label-7136
SELECT - COUNT ( * ) AS col2, 22 + - - 39 AS col2
----
-1
61

query I rowsort
SELECT + 47 - - 95 col1
----
142

query I rowsort
SELECT ALL CASE 17 WHEN + 25 * + 58 + + - ( 55 ) THEN - 83 ELSE + - 42 + + 72 END AS col1
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-7139
SELECT ALL 31 DIV 19
----
1

skipif mysql # not compatible
query I rowsort label-7139
SELECT ALL 31 / 19
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7140
SELECT - - 33 / 48 * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7140
SELECT - - 33 / 48 * CAST ( NULL AS REAL ) AS col0
----
NULL

query II rowsort
SELECT ALL - 43 AS col2, - 41 * 63 col0
----
-43
-2583

query I rowsort
SELECT - - 16 * + - 12 + + 5 * + 49
----
53

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7143
SELECT DISTINCT - - CAST( - 71 AS SIGNED ) DIV 10
----
-7

skipif mysql # not compatible
query I rowsort label-7143
SELECT DISTINCT - - CAST ( - 71 AS INTEGER ) / 10
----
-7

query II rowsort
SELECT ALL + - 93, - 7 AS col1
----
-93
-7

query II rowsort
SELECT + 85, 52 AS col2
----
85
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT + ( SUM( ALL - 65 ) ) * + 2 col2
----
-130

skipif mysql # not compatible
query I rowsort label-7146
SELECT + ( SUM ( ALL - 65 ) ) * + 2 col2
----
-130

query I rowsort
SELECT - + 18 * 21 + + 26
----
-352

onlyif mysql # DIV for integer division: 
query I rowsort label-7148
SELECT - 23 DIV - 4 + + 44 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-7148
SELECT - 23 / - 4 + + 44 AS col0
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-7149
SELECT + + 18 DIV - - 47 + + 30 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-7149
SELECT + + 18 / - - 47 + + 30 AS col1
----
30

query I rowsort
SELECT + - 31 + - 19 col2
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-7151
SELECT ALL 18 DIV - + 80 + 49 * 88 + - 73
----
4239

skipif mysql # not compatible
query I rowsort label-7151
SELECT ALL 18 / - + 80 + 49 * 88 + - 73
----
4239

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7152
SELECT + + 14 + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7152
SELECT + + 14 + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 21 * ( - 29 )
----
609

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT DISTINCT 48 * + 93 + - COUNT( * ) * 20
----
4444

skipif mysql # not compatible
query I rowsort label-7154
SELECT DISTINCT 48 * + 93 + - COUNT ( * ) * 20
----
4444

query I rowsort
SELECT - 75 * - + 93 * + 73 col2
----
509175

query I rowsort
SELECT ( + - 95 ) AS col2
----
-95

query I rowsort
SELECT + ( + + 36 ) + 52
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7158
SELECT 31 * CAST( - 20 AS SIGNED ) + + + ( + 19 ) - - 51 * 19
----
368

skipif mysql # not compatible
query I rowsort label-7158
SELECT 31 * CAST ( - 20 AS INTEGER ) + + + ( + 19 ) - - 51 * 19
----
368

query I rowsort
SELECT - 34 - + 51 * + + 15
----
-799

query I rowsort
SELECT DISTINCT 57 * - 52 * ( + 25 )
----
-74100

onlyif mysql # DIV for integer division: 
query I rowsort label-7161
SELECT DISTINCT 69 DIV - + 16 col2
----
-4

skipif mysql # not compatible
query I rowsort label-7161
SELECT DISTINCT 69 / - + 16 col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT ALL + 99 * - 12 - - + COUNT( * ) * - + SUM( - 30 )
----
-1158

skipif mysql # not compatible
query I rowsort label-7162
SELECT ALL + 99 * - 12 - - + COUNT ( * ) * - + SUM ( - 30 )
----
-1158

onlyif mysql # aggregate syntax: 
query II rowsort label-7163
SELECT ALL 4 * - 74 AS col1, + COUNT( + 19 ) AS col0
----
-296
1

skipif mysql # not compatible
query II rowsort label-7163
SELECT ALL 4 * - 74 AS col1, + COUNT ( + 19 ) AS col0
----
-296
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT ALL 56 - SUM( DISTINCT ( - - ( + 90 ) ) )
----
-34

skipif mysql # not compatible
query I rowsort label-7164
SELECT ALL 56 - SUM ( DISTINCT ( - - ( + 90 ) ) )
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-7165
SELECT 29 + + 22, - MIN( NULLIF ( - - 94, 52 ) ) AS col1
----
51
-94

skipif mysql # not compatible
query II rowsort label-7165
SELECT 29 + + 22, - MIN ( NULLIF ( - - 94, 52 ) ) AS col1
----
51
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT 35 * - 13 * 83 * 95 * + COUNT( * ) AS col2
----
-3587675

skipif mysql # not compatible
query I rowsort label-7166
SELECT 35 * - 13 * 83 * 95 * + COUNT ( * ) AS col2
----
-3587675

onlyif mysql # aggregate syntax: 
query I rowsort label-7167
SELECT - - SUM( DISTINCT + 51 )
----
51

skipif mysql # not compatible
query I rowsort label-7167
SELECT - - SUM ( DISTINCT + 51 )
----
51

query I rowsort
SELECT ALL + NULLIF ( + + 95, + 38 ) AS col2
----
95

query I rowsort
SELECT DISTINCT - - 21 * + + 15 AS col0
----
315

query I rowsort
SELECT DISTINCT + 98 + 96
----
194

query I rowsort
SELECT ALL - 76 * + 82
----
-6232

query I rowsort
SELECT - 7 + - 25 * - 30 AS col2
----
743

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7173
SELECT DISTINCT - + CASE - CAST( - 58 AS SIGNED ) WHEN - + 71 / + 70 + - 4 + + 37 THEN - - 15 END + 3 + 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7173
SELECT DISTINCT - + CASE - CAST ( - 58 AS INTEGER ) WHEN - + 71 / + 70 + - 4 + + 37 THEN - - 15 END + 3 + 41 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7174
SELECT DISTINCT + COUNT( ALL 9 )
----
1

skipif mysql # not compatible
query I rowsort label-7174
SELECT DISTINCT + COUNT ( ALL 9 )
----
1

query I rowsort
SELECT ALL - + 79 + - ( - 59 ) AS col2
----
-20

query I rowsort
SELECT + 74 * - 56 + 45 AS col2
----
-4099

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT - COUNT( * ) * 23 - - + COALESCE ( + - COUNT( * ), + 28 * + 6 ) * + 1 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-7177
SELECT - COUNT ( * ) * 23 - - + COALESCE ( + - COUNT ( * ), + 28 * + 6 ) * + 1 AS col2
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-7178
SELECT DISTINCT 49 DIV 36 + - 8
----
-7

skipif mysql # not compatible
query I rowsort label-7178
SELECT DISTINCT 49 / 36 + - 8
----
-7

query I rowsort
SELECT DISTINCT + - 37 + 76 * 36 col0
----
2699

query I rowsort
SELECT 79 * 35 AS col1
----
2765

onlyif mysql # aggregate syntax: 
query I rowsort label-7181
SELECT ALL 58 * 36 * + COUNT( + 47 ) col0
----
2088

skipif mysql # not compatible
query I rowsort label-7181
SELECT ALL 58 * 36 * + COUNT ( + 47 ) col0
----
2088

onlyif mysql # DIV for integer division: 
query I rowsort label-7182
SELECT DISTINCT 17 + - + 84 + - 68 DIV 33 * - - 93 - 72 AS col1
----
-325

skipif mysql # not compatible
query I rowsort label-7182
SELECT DISTINCT 17 + - + 84 + - 68 / 33 * - - 93 - 72 AS col1
----
-325

query II rowsort
SELECT + 11 AS col1, + 67
----
11
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7184
SELECT 65 * + 11 * + CAST( NULLIF ( 0, - 69 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7184
SELECT 65 * + 11 * + CAST ( NULLIF ( 0, - 69 ) AS INTEGER )
----
0

query I rowsort
SELECT ALL + 36 * - - 52
----
1872

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT - 81 * + 53 + + 94 + - + 75 + - SUM( + + 77 )
----
-4351

skipif mysql # not compatible
query I rowsort label-7186
SELECT - 81 * + 53 + + 94 + - + 75 + - SUM ( + + 77 )
----
-4351

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7187
SELECT 91 * SUM( DISTINCT CAST( NULL AS SIGNED ) ), 14 + CAST( NULL AS SIGNED ) + - 63 * + + SUM( + 95 ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7187
SELECT 91 * SUM ( DISTINCT CAST ( NULL AS INTEGER ) ), 14 + CAST ( NULL AS INTEGER ) + - 63 * + + SUM ( + 95 ) AS col2
----
NULL
NULL

query I rowsort
SELECT DISTINCT - 91 * - 24 * + 3 col2
----
6552

query I rowsort
SELECT ALL - ( - + 28 ) AS col1
----
28

query I rowsort
SELECT 3 * - 11 AS col0
----
-33

query I rowsort
SELECT ALL - 73 * + - COALESCE ( + 77, - 27 )
----
5621

query II rowsort
SELECT DISTINCT 41 AS col0, - 16 AS col0
----
41
-16

query I rowsort
SELECT 93 * 83 AS col0
----
7719

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7194
SELECT 1 * - 73 + - CAST( NULL AS SIGNED ), + 92 + 15 AS col0
----
NULL
107

skipif mysql # not compatible
query II rowsort label-7194
SELECT 1 * - 73 + - CAST ( NULL AS INTEGER ), + 92 + 15 AS col0
----
NULL
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7195
SELECT ALL 98 AS col1, - COUNT( * ) * CAST( - - 82 AS SIGNED )
----
98
-82

skipif mysql # not compatible
query II rowsort label-7195
SELECT ALL 98 AS col1, - COUNT ( * ) * CAST ( - - 82 AS INTEGER )
----
98
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7196
SELECT ALL COUNT( * ) DIV - 28 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7196
SELECT ALL COUNT ( * ) / - 28 AS col1
----
0

query I rowsort
SELECT ALL - 2 + - 7 + - 98
----
-107

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7198
SELECT DISTINCT - 38 * - ( + ( - 80 ) ) + + - 11 - - 76 / ( 84 ) * + - COUNT( * ) + - CAST( NULL AS DECIMAL ) * - ( + 75 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7198
SELECT DISTINCT - 38 * - ( + ( - 80 ) ) + + - 11 - - 76 / ( 84 ) * + - COUNT ( * ) + - CAST ( NULL AS REAL ) * - ( + 75 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT ALL + COUNT( * ) + - 63
----
-62

skipif mysql # not compatible
query I rowsort label-7199
SELECT ALL + COUNT ( * ) + - 63
----
-62

query II rowsort
SELECT DISTINCT + 69 + - + ( + 80 ), - 86 AS col1
----
-11
-86

query I rowsort
SELECT ALL 52 * 43 AS col1
----
2236

query I rowsort
SELECT ALL 66 + - 69
----
-3

query I rowsort
SELECT 75 + + 76 AS col2
----
151

query II rowsort
SELECT ( + 4 ) + + + 31 AS col0, 53
----
35
53

query I rowsort
SELECT ALL NULLIF ( 18, - 84 ) AS col0
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7206
SELECT MIN( + 26 ) DIV 42 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7206
SELECT MIN ( + 26 ) / 42 AS col0
----
0

query I rowsort
SELECT + 62 + - 4 * 38
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7208
SELECT - MIN( + 21 ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-7208
SELECT - MIN ( + 21 ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT 82 * - NULLIF ( + COUNT( * ), 88 * + 54 + 61 + COUNT( * ) + COUNT( * ) )
----
-82

skipif mysql # not compatible
query I rowsort label-7209
SELECT 82 * - NULLIF ( + COUNT ( * ), 88 * + 54 + 61 + COUNT ( * ) + COUNT ( * ) )
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7210
SELECT + 31 col1, - 65 DIV - MIN( ALL - 67 ) AS col1
----
31
0

skipif mysql # not compatible
query II rowsort label-7210
SELECT + 31 col1, - 65 / - MIN ( ALL - 67 ) AS col1
----
31
0

query I rowsort
SELECT ALL + 25 + - 80 AS col2
----
-55

query I rowsort
SELECT ALL - 3 * + 8 * - 1
----
24

query II rowsort
SELECT ALL - 21 AS col0, + 43 * - - 10 * - 73
----
-21
-31390

onlyif mysql # aggregate syntax: 
query I rowsort label-7214
SELECT + MIN( + 80 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-7214
SELECT + MIN ( + 80 ) AS col2
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7215
SELECT + 90 * - 3 + COUNT( - - 30 ) DIV - 68 - - SUM( ALL + - 57 ) + + + COALESCE ( 56, - 18 ) + + 45 * 73 * + 85
----
278954

skipif mysql # not compatible
query I rowsort label-7215
SELECT + 90 * - 3 + COUNT ( - - 30 ) / - 68 - - SUM ( ALL + - 57 ) + + + COALESCE ( 56, - 18 ) + + 45 * 73 * + 85
----
278954

query I rowsort
SELECT + COALESCE ( + + ( - 0 ), - + 28, - - 1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT 68 * + + COUNT( * ) * - 89 + COUNT( * ) * - - COUNT( * )
----
-6051

skipif mysql # not compatible
query I rowsort label-7217
SELECT 68 * + + COUNT ( * ) * - 89 + COUNT ( * ) * - - COUNT ( * )
----
-6051

query I rowsort
SELECT ALL - 61 * 51 * 88 - + 59
----
-273827

query I rowsort
SELECT DISTINCT + 59 * + 92
----
5428

onlyif mysql # aggregate syntax: 
query II rowsort label-7220
SELECT DISTINCT + COUNT( * ), - NULLIF ( 15, + 8 + + AVG ( 29 ) ) + - 10 - - COUNT( * ) * + + 16 AS col1
----
1
-9

skipif mysql # not compatible
query II rowsort label-7220
SELECT DISTINCT + COUNT ( * ), - NULLIF ( 15, + 8 + + AVG ( 29 ) ) + - 10 - - COUNT ( * ) * + + 16 AS col1
----
1
-9

query I rowsort
SELECT - 57 * - 64
----
3648

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7222
SELECT ALL + NULLIF ( 49, - 34 ) DIV - - ( + COALESCE ( 15, + ( + + 39 ) * + + 31 DIV + 22, 70 + CAST( NULL AS SIGNED ) DIV CAST( NULL AS SIGNED ) ) )
----
3

skipif mysql # not compatible
query I rowsort label-7222
SELECT ALL + NULLIF ( 49, - 34 ) / - - ( + COALESCE ( 15, + ( + + 39 ) * + + 31 / + 22, 70 + CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER ) ) )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7223
SELECT - CASE - - CAST( NULL AS SIGNED ) WHEN + 95 THEN + 41 * 51 * - 37 + 49 ELSE NULL END * + + 44 + - 16 + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-7223
SELECT - CASE - - CAST ( NULL AS INTEGER ) WHEN + 95 THEN + 41 * 51 * - 37 + 49 ELSE NULL END * + + 44 + - 16 + 3
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7224
SELECT COUNT( * ), + 38 * 34 DIV - - 90 + - 3 AS col2
----
1
11

skipif mysql # not compatible
query II rowsort label-7224
SELECT COUNT ( * ), + 38 * 34 / - - 90 + - 3 AS col2
----
1
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7225
SELECT - CAST( NULL AS SIGNED ) / - 19 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7225
SELECT - CAST ( NULL AS INTEGER ) / - 19 col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7226
SELECT - 27 + - 15 + + 92 * + 57 AS col2, - 57 DIV + + 72 * - 53
----
5202
0

skipif mysql # not compatible
query II rowsort label-7226
SELECT - 27 + - 15 + + 92 * + 57 AS col2, - 57 / + + 72 * - 53
----
5202
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7227
SELECT COUNT( * ) AS col2, COUNT( * ) + + 48 + 58 + CASE + COALESCE ( 67, - 96 * - ( 78 ) * 63 ) WHEN - 87 THEN + + 64 * CASE - CAST( - + 4 AS SIGNED ) WHEN 95 THEN NULL WHEN + 96 * 35 + + - 1 THEN + 77 ELSE + + 88 + 61 END WHEN + CASE 1 WHEN - - 30 THEN NULL WHEN - 65 * - + 20 + MIN( + 19 ) + NULLIF ( 26, COUNT( * ) + ( - COUNT( * ) ) ) * - 14 * - COUNT( - - 87 ) THEN - - 10 ELSE + 53 * - - 55 END THEN NULL END * CAST( - 94 AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7227
SELECT COUNT ( * ) AS col2, COUNT ( * ) + + 48 + 58 + CASE + COALESCE ( 67, - 96 * - ( 78 ) * 63 ) WHEN - 87 THEN + + 64 * CASE - CAST ( - + 4 AS INTEGER ) WHEN 95 THEN NULL WHEN + 96 * 35 + + - 1 THEN + 77 ELSE + + 88 + 61 END WHEN + CASE 1 WHEN - - 30 THEN NULL WHEN - 65 * - + 20 + MIN ( + 19 ) + NULLIF ( 26, COUNT ( * ) + ( - COUNT ( * ) ) ) * - 14 * - COUNT ( - - 87 ) THEN - - 10 ELSE + 53 * - - 55 END THEN NULL END * CAST ( - 94 AS INTEGER )
----
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7228
SELECT + 3 * + ( - 57 ) DIV - 48 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-7228
SELECT + 3 * + ( - 57 ) / - 48 AS col2
----
3

query I rowsort
SELECT - 91 * 84
----
-7644

onlyif mysql # aggregate syntax: 
query II rowsort label-7230
SELECT DISTINCT CASE + 13 WHEN + + COUNT( * ) THEN NULL ELSE + + COUNT( * ) END * + ( + 23 ) AS col0, MAX( - 91 )
----
23
-91

skipif mysql # not compatible
query II rowsort label-7230
SELECT DISTINCT CASE + 13 WHEN + + COUNT ( * ) THEN NULL ELSE + + COUNT ( * ) END * + ( + 23 ) AS col0, MAX ( - 91 )
----
23
-91

query I rowsort
SELECT DISTINCT - - 50 + - - 31 AS col2
----
81

query I rowsort
SELECT ALL 97 + + 45 + - - 16
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-7233
SELECT + - COUNT( * ) + - 11 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-7233
SELECT + - COUNT ( * ) + - 11 AS col1
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7234
SELECT + + CAST( - 92 AS SIGNED ) + 34
----
-58

skipif mysql # not compatible
query I rowsort label-7234
SELECT + + CAST ( - 92 AS INTEGER ) + 34
----
-58

query I rowsort
SELECT DISTINCT 59 + - 73 * - 1 AS col1
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-7236
SELECT + - COUNT( * ) * + 6 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-7236
SELECT + - COUNT ( * ) * + 6 AS col1
----
-6

query I rowsort
SELECT + 16 + - 39
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-7238
SELECT - COALESCE ( - ( - ( - + ( 72 ) ) ), - 18 DIV + 68 DIV - + 9 + + 36 DIV + - 57 * - 45, 94 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-7238
SELECT - COALESCE ( - ( - ( - + ( 72 ) ) ), - 18 / + 68 / - + 9 + + 36 / + - 57 * - 45, 94 ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT - + SUM( - 24 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-7239
SELECT - + SUM ( - 24 ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-7240
SELECT ALL 99 AS col0, + COUNT( * ) + + - ( 17 ) + - + 63
----
99
-79

skipif mysql # not compatible
query II rowsort label-7240
SELECT ALL 99 AS col0, + COUNT ( * ) + + - ( 17 ) + - + 63
----
99
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7241
SELECT ALL 43 + - ( + + COUNT( * ) ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-7241
SELECT ALL 43 + - ( + + COUNT ( * ) ) AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT DISTINCT - 96 + - SUM( DISTINCT + - 22 )
----
-74

skipif mysql # not compatible
query I rowsort label-7242
SELECT DISTINCT - 96 + - SUM ( DISTINCT + - 22 )
----
-74

query I rowsort
SELECT ALL + 33 * - 12
----
-396

query I rowsort
SELECT DISTINCT 70 * - 37 AS col2
----
-2590

onlyif mysql # DIV for integer division: 
query I rowsort label-7245
SELECT + - 94 DIV - - 40
----
-2

skipif mysql # not compatible
query I rowsort label-7245
SELECT + - 94 / - - 40
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-7246
SELECT + + MAX( - - 82 ) * - 35 * + 97, + COUNT( * ) AS col0
----
-278390
1

skipif mysql # not compatible
query II rowsort label-7246
SELECT + + MAX ( - - 82 ) * - 35 * + 97, + COUNT ( * ) AS col0
----
-278390
1

query I rowsort
SELECT + + 77 * - 12 + + 81
----
-843

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7248
SELECT ALL 83 col0, COALESCE ( - + CAST( NULL AS SIGNED ), + CAST( 58 AS SIGNED ) ) AS col1
----
83
58

skipif mysql # not compatible
query II rowsort label-7248
SELECT ALL 83 col0, COALESCE ( - + CAST ( NULL AS INTEGER ), + CAST ( 58 AS INTEGER ) ) AS col1
----
83
58

onlyif mysql # aggregate syntax: 
query II rowsort label-7249
SELECT + - 8 - + + 75 * - MAX( ALL - + 33 ) AS col1, 74
----
-2483
74

skipif mysql # not compatible
query II rowsort label-7249
SELECT + - 8 - + + 75 * - MAX ( ALL - + 33 ) AS col1, 74
----
-2483
74

onlyif mysql # DIV for integer division: 
query I rowsort label-7250
SELECT DISTINCT 48 DIV - 59 - + 6 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-7250
SELECT DISTINCT 48 / - 59 - + 6 AS col2
----
-6

query I rowsort
SELECT + 5 * - 35 AS col1
----
-175

query I rowsort
SELECT + ( - NULLIF ( + 75, CASE + 16 WHEN - 60 THEN + + ( 21 ) + + - 19 ELSE + - 61 END * + - 0 ) ) * - 85
----
6375

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7253
SELECT ( - 33 ), 18 + + + COALESCE ( - - 66, 52 + + ( + 91 ) * + + 12 ) * - - 15 DIV + COUNT( * ) col2
----
-33
1008

skipif mysql # not compatible
query II rowsort label-7253
SELECT ( - 33 ), 18 + + + COALESCE ( - - 66, 52 + + ( + 91 ) * + + 12 ) * - - 15 / + COUNT ( * ) col2
----
-33
1008

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT DISTINCT + 18 * + ( MAX( - 70 ) ) * + - 5
----
6300

skipif mysql # not compatible
query I rowsort label-7254
SELECT DISTINCT + 18 * + ( MAX ( - 70 ) ) * + - 5
----
6300

query I rowsort
SELECT + 10 * 69 - + 90 AS col1
----
600

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT ( - - NULLIF ( - + ( + COUNT( * ) ), + 96 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7256
SELECT ( - - NULLIF ( - + ( + COUNT ( * ) ), + 96 ) ) AS col2
----
-1

query II rowsort
SELECT + 15 * - + 39 col1, - 65 AS col1
----
-585
-65

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7258
SELECT ALL + ( - CAST( NULL AS SIGNED ) ), - 54 DIV 26 col1
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-7258
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ), - 54 / 26 col1
----
NULL
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-7259
SELECT ALL + MIN( ALL 16 ) * - 48 + + COUNT( * ) + + 72 + COUNT( * ) * + ( + 17 ) * - 44 - - 63 + + 97 + - 89 AS col1, + 40 AS col0
----
-1372
40

skipif mysql # not compatible
query II rowsort label-7259
SELECT ALL + MIN ( ALL 16 ) * - 48 + + COUNT ( * ) + + 72 + COUNT ( * ) * + ( + 17 ) * - 44 - - 63 + + 97 + - 89 AS col1, + 40 AS col0
----
-1372
40

query II rowsort
SELECT NULLIF ( + 42, + 35 ) AS col1, 13 * - 0 col1
----
42
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7261
SELECT ALL + 14 * + - CAST( NULL AS SIGNED ) + + 69 + - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-7261
SELECT ALL + 14 * + - CAST ( NULL AS INTEGER ) + + 69 + - 14
----
NULL

query I rowsort
SELECT DISTINCT - 30 * 32 + + 92 AS col1
----
-868

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT ALL 65 * + - 18 * + 45 + + MIN( ALL - + 17 )
----
-52667

skipif mysql # not compatible
query I rowsort label-7263
SELECT ALL 65 * + - 18 * + 45 + + MIN ( ALL - + 17 )
----
-52667

onlyif mysql # aggregate syntax: 
query I rowsort label-7264
SELECT CASE ( COUNT( * ) ) WHEN 5 THEN COUNT( DISTINCT - ( - + 30 ) ) / - COUNT( * ) + + 53 * 38 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7264
SELECT CASE ( COUNT ( * ) ) WHEN 5 THEN COUNT ( DISTINCT - ( - + 30 ) ) / - COUNT ( * ) + + 53 * 38 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT ALL + COUNT( * ) * + - 88 + 40
----
-48

skipif mysql # not compatible
query I rowsort label-7265
SELECT ALL + COUNT ( * ) * + - 88 + 40
----
-48

query I rowsort
SELECT DISTINCT + 74 * 11 + + 53
----
867

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7267
SELECT - COUNT( * ) * + 83 DIV - 40 + 81
----
83

skipif mysql # not compatible
query I rowsort label-7267
SELECT - COUNT ( * ) * + 83 / - 40 + 81
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT ALL - 30 * + 46 + - - 80 + + 16 + - COUNT( * ) * + 30
----
-1314

skipif mysql # not compatible
query I rowsort label-7268
SELECT ALL - 30 * + 46 + - - 80 + + 16 + - COUNT ( * ) * + 30
----
-1314

onlyif mysql # DIV for integer division: 
query II rowsort label-7269
SELECT DISTINCT - 17 DIV - + 29, - 62 AS col0
----
0
-62

skipif mysql # not compatible
query II rowsort label-7269
SELECT DISTINCT - 17 / - + 29, - 62 AS col0
----
0
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT DISTINCT + 36 * + COUNT( * ) col0
----
36

skipif mysql # not compatible
query I rowsort label-7270
SELECT DISTINCT + 36 * + COUNT ( * ) col0
----
36

query I rowsort
SELECT DISTINCT + + 43 - - - 81 * + - 0 AS col2
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7272
SELECT + - 98 + 92 AS col0, 87 * - 80 * + + ( - 78 ) * - 55 * + 0 + - CAST( + 32 AS SIGNED )
----
-6
-32

skipif mysql # not compatible
query II rowsort label-7272
SELECT + - 98 + 92 AS col0, 87 * - 80 * + + ( - 78 ) * - 55 * + 0 + - CAST ( + 32 AS INTEGER )
----
-6
-32

query I rowsort
SELECT + + ( NULLIF ( + ( 16 ), 70 + + 86 * 68 + 59 ) ) + 11
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7274
SELECT - ( 96 ) + - COUNT( 89 ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-7274
SELECT - ( 96 ) + - COUNT ( 89 ) AS col1
----
-97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7275
SELECT + COUNT( * ) * - COUNT( * ) / - - CASE + CASE - NULLIF ( ( - + CAST( NULL AS DECIMAL ) ), + COUNT( DISTINCT - 65 ) + + COUNT( * ) ) WHEN - - NULLIF ( - - 63, - 53 ) * - 71 * 27 THEN - 72 END WHEN - CASE 7 WHEN - 29 THEN - - 75 * 63 ELSE NULL END THEN 48 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7275
SELECT + COUNT ( * ) * - COUNT ( * ) / - - CASE + CASE - NULLIF ( ( - + CAST ( NULL AS REAL ) ), + COUNT ( DISTINCT - 65 ) + + COUNT ( * ) ) WHEN - - NULLIF ( - - 63, - 53 ) * - 71 * 27 THEN - 72 END WHEN - CASE 7 WHEN - 29 THEN - - 75 * 63 ELSE NULL END THEN 48 END
----
NULL

query I rowsort
SELECT - 60 + - 10
----
-70

query I rowsort
SELECT + 30 - + + 35 - - + 91 + - + 71
----
15

query I rowsort
SELECT ALL 93 * + 53 AS col0
----
4929

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7279
SELECT DISTINCT - 32 DIV - SUM( DISTINCT + 79 ), - ( + - COUNT( * ) ) * + 18 AS col0
----
0
18

skipif mysql # not compatible
query II rowsort label-7279
SELECT DISTINCT - 32 / - SUM ( DISTINCT + 79 ), - ( + - COUNT ( * ) ) * + 18 AS col0
----
0
18

query II rowsort
SELECT DISTINCT - 78, + COALESCE ( 5, + 84 + 0 ) AS col0
----
-78
5

query I rowsort
SELECT 13 + - 9 col0
----
4

query II rowsort
SELECT DISTINCT - 52 AS col0, 54 AS col2
----
-52
54

query I rowsort
SELECT ALL NULLIF ( 64, 31 ) + 68 AS col1
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7284
SELECT + 27, - CASE + 55 WHEN COUNT( ALL + + 40 ) * - 55 + 20 THEN - - CAST( - 87 AS SIGNED ) END - 9 AS col0
----
27
NULL

skipif mysql # not compatible
query II rowsort label-7284
SELECT + 27, - CASE + 55 WHEN COUNT ( ALL + + 40 ) * - 55 + 20 THEN - - CAST ( - 87 AS INTEGER ) END - 9 AS col0
----
27
NULL

query I rowsort
SELECT 42 * 79 * - 40 + 17 * - 25
----
-133145

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7286
SELECT 45 * 38 * + 23 DIV COALESCE ( - COUNT( * ), - - 4 + 40 * ( - ( - 66 ) ), 39 * ( + - 2 ) ) AS col0, COUNT( * )
----
-39330
1

skipif mysql # not compatible
query II rowsort label-7286
SELECT 45 * 38 * + 23 / COALESCE ( - COUNT ( * ), - - 4 + 40 * ( - ( - 66 ) ), 39 * ( + - 2 ) ) AS col0, COUNT ( * )
----
-39330
1

query II rowsort
SELECT ALL - 80, 80 AS col0
----
-80
80

query I rowsort
SELECT DISTINCT 56 + 40 AS col2
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-7289
SELECT DISTINCT + 97 + - 39 + - + ( 45 ) AS col1, 52 + COUNT( * ) AS col2
----
13
53

skipif mysql # not compatible
query II rowsort label-7289
SELECT DISTINCT + 97 + - 39 + - + ( 45 ) AS col1, 52 + COUNT ( * ) AS col2
----
13
53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7290
SELECT ALL - CAST( NULL AS DECIMAL ) + 79 * + ( + 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7290
SELECT ALL - CAST ( NULL AS REAL ) + 79 * + ( + 90 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7291
SELECT COUNT( * ) + + + CAST( - COUNT( * ) AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7291
SELECT COUNT ( * ) + + + CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7292
SELECT - 5 * CAST( AVG ( - 96 ) AS SIGNED ) + + + CAST( + SUM( DISTINCT - + 72 ) AS SIGNED ) AS col2
----
408

skipif mysql # not compatible
query I rowsort label-7292
SELECT - 5 * CAST ( AVG ( - 96 ) AS INTEGER ) + + + CAST ( + SUM ( DISTINCT - + 72 ) AS INTEGER ) AS col2
----
408

query II rowsort
SELECT 69 AS col0, 68
----
69
68

onlyif mysql # aggregate syntax: 
query II rowsort label-7294
SELECT + COUNT( * ) * - CASE 40 WHEN - - MIN( ALL + + 21 ) THEN + - ( CASE - 23 WHEN + - 36 THEN + - 26 END ) WHEN + 82 THEN 28 ELSE NULL END + - - 13 AS col2, - 88 * + - 67 AS col0
----
NULL
5896

skipif mysql # not compatible
query II rowsort label-7294
SELECT + COUNT ( * ) * - CASE 40 WHEN - - MIN ( ALL + + 21 ) THEN + - ( CASE - 23 WHEN + - 36 THEN + - 26 END ) WHEN + 82 THEN 28 ELSE NULL END + - - 13 AS col2, - 88 * + - 67 AS col0
----
NULL
5896

query I rowsort
SELECT ALL 18 + + + 18 + 11 * + ( 46 )
----
542

query II rowsort
SELECT + + 65 AS col2, 2
----
65
2

query I rowsort
SELECT 68 * 26 AS col1
----
1768

onlyif mysql # aggregate syntax: 
query II rowsort label-7298
SELECT COUNT( * ) * - + COUNT( * ) * - 42, + 27 AS col0
----
42
27

skipif mysql # not compatible
query II rowsort label-7298
SELECT COUNT ( * ) * - + COUNT ( * ) * - 42, + 27 AS col0
----
42
27

query II rowsort
SELECT + 93, + 54 AS col2
----
93
54

query I rowsort
SELECT 58 + + - 92 * - 59 AS col2
----
5486

onlyif mysql # aggregate syntax: 
query II rowsort label-7301
SELECT ALL - 1 AS col2, 79 * COUNT( * ) AS col1
----
-1
79

skipif mysql # not compatible
query II rowsort label-7301
SELECT ALL - 1 AS col2, 79 * COUNT ( * ) AS col1
----
-1
79

query I rowsort
SELECT ALL + 88 - - + ( - ( + ( - 26 ) ) ) AS col0
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7303
SELECT ALL + CAST( NULL AS SIGNED ) - + - 85 * ( + COUNT( * ) ), COALESCE ( + 97, + COUNT( * ) - + 52 * - 56, NULLIF ( - 83, - + 62 * - CASE COUNT( * ) WHEN - 21 THEN - 15 ELSE NULL END / - - 14 ) ) AS col0
----
NULL
97

skipif mysql # not compatible
query II rowsort label-7303
SELECT ALL + CAST ( NULL AS INTEGER ) - + - 85 * ( + COUNT ( * ) ), COALESCE ( + 97, + COUNT ( * ) - + 52 * - 56, NULLIF ( - 83, - + 62 * - CASE COUNT ( * ) WHEN - 21 THEN - 15 ELSE NULL END / - - 14 ) ) AS col0
----
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT ALL COUNT( + + 84 )
----
1

skipif mysql # not compatible
query I rowsort label-7304
SELECT ALL COUNT ( + + 84 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7305
SELECT ALL - 16 * ( + + 24 ) DIV - COUNT( * ) AS col2
----
384

skipif mysql # not compatible
query I rowsort label-7305
SELECT ALL - 16 * ( + + 24 ) / - COUNT ( * ) AS col2
----
384

query I rowsort
SELECT - 92 * + + 78 AS col0
----
-7176

onlyif mysql # DIV for integer division: 
query I rowsort label-7307
SELECT ALL - 72 DIV - 7 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-7307
SELECT ALL - 72 / - 7 AS col0
----
10

query I rowsort
SELECT DISTINCT + 14 - - - 14
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7309
SELECT - - COUNT( * ), 46 + + 53 AS col0
----
1
99

skipif mysql # not compatible
query II rowsort label-7309
SELECT - - COUNT ( * ), 46 + + 53 AS col0
----
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7310
SELECT CAST( 46 AS SIGNED ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-7310
SELECT CAST ( 46 AS INTEGER ) AS col2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7311
SELECT + 58 * 97 - CAST( - 10 AS SIGNED ), - 3 + - 88 + 24 + - 80 * COUNT( * ) + + - COUNT( * ) + 29 DIV - 75 * - SUM( + 26 ) + + + 19 AS col1
----
5636
-129

skipif mysql # not compatible
query II rowsort label-7311
SELECT + 58 * 97 - CAST ( - 10 AS INTEGER ), - 3 + - 88 + 24 + - 80 * COUNT ( * ) + + - COUNT ( * ) + 29 / - 75 * - SUM ( + 26 ) + + + 19 AS col1
----
5636
-129

query I rowsort
SELECT ALL - 11 * - 0 * + 24 AS col0
----
0

query I rowsort
SELECT ALL - 46 * - ( + - 55 ) AS col2
----
-2530

onlyif mysql # aggregate syntax: 
query I rowsort label-7314
SELECT 10 + + 67 * - 45 * + - COUNT( * ) AS col2
----
3025

skipif mysql # not compatible
query I rowsort label-7314
SELECT 10 + + 67 * - 45 * + - COUNT ( * ) AS col2
----
3025

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT DISTINCT - COALESCE ( - + COUNT( * ), + - 4, + - 9 ) * COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7315
SELECT DISTINCT - COALESCE ( - + COUNT ( * ), + - 4, + - 9 ) * COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT 29 * COALESCE ( - COUNT( * ), - - 16, 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-7316
SELECT 29 * COALESCE ( - COUNT ( * ), - - 16, 29 )
----
-29

query I rowsort
SELECT 0 * - ( + 98 )
----
0

query I rowsort
SELECT 3 - - 29 + + - 53
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7319
SELECT ALL - COALESCE ( CAST( + 96 AS SIGNED ), - 24 + + + 15 - - 76 ) + - COALESCE ( + 29, - - COUNT( * ) ) + + + 5 - + - 68 * + + 25 - + 9 * + + 77 * + 93 * - 88
----
5673092

skipif mysql # not compatible
query I rowsort label-7319
SELECT ALL - COALESCE ( CAST ( + 96 AS INTEGER ), - 24 + + + 15 - - 76 ) + - COALESCE ( + 29, - - COUNT ( * ) ) + + + 5 - + - 68 * + + 25 - + 9 * + + 77 * + 93 * - 88
----
5673092

onlyif mysql # aggregate syntax: 
query I rowsort label-7320
SELECT DISTINCT + SUM( DISTINCT 23 ) + - 95
----
-72

skipif mysql # not compatible
query I rowsort label-7320
SELECT DISTINCT + SUM ( DISTINCT 23 ) + - 95
----
-72

query I rowsort
SELECT 28 * + 35
----
980

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7322
SELECT CAST( NULL AS DECIMAL ) * 0
----
NULL

skipif mysql # not compatible
query I rowsort label-7322
SELECT CAST ( NULL AS REAL ) * 0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7323
SELECT ALL - COUNT( * ) DIV + 31 col1
----
0

skipif mysql # not compatible
query I rowsort label-7323
SELECT ALL - COUNT ( * ) / + 31 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT ALL - COUNT( + 57 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7324
SELECT ALL - COUNT ( + 57 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7325
SELECT DISTINCT + CAST( - 75 AS SIGNED ) - - + 62
----
-13

skipif mysql # not compatible
query I rowsort label-7325
SELECT DISTINCT + CAST ( - 75 AS INTEGER ) - - + 62
----
-13

query I rowsort
SELECT + - ( - 60 ) AS col1
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7327
SELECT 31 * - 31 + 94 - - 11 + 77 * - ( + + 32 ) * 16 * - CAST( NULL AS SIGNED ) / - + 26 + + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-7327
SELECT 31 * - 31 + 94 - - 11 + 77 * - ( + + 32 ) * 16 * - CAST ( NULL AS INTEGER ) / - + 26 + + 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT ALL - + MIN( + 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-7328
SELECT ALL - + MIN ( + 48 )
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7329
SELECT + CAST( NULL AS SIGNED ) * + + ( 22 ) + 95 AS col1, - COUNT( * ) DIV + + 45
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7329
SELECT + CAST ( NULL AS INTEGER ) * + + ( 22 ) + 95 AS col1, - COUNT ( * ) / + + 45
----
NULL
0

query I rowsort
SELECT 15 * ( 61 ) - + + 44
----
871

onlyif mysql # aggregate syntax: 
query II rowsort label-7331
SELECT DISTINCT - 82 * - COUNT( * ) AS col1, + ( + - 51 )
----
82
-51

skipif mysql # not compatible
query II rowsort label-7331
SELECT DISTINCT - 82 * - COUNT ( * ) AS col1, + ( + - 51 )
----
82
-51

query I rowsort
SELECT DISTINCT 23 + + 64 + - ( 70 ) AS col0
----
17

query I rowsort
SELECT - 35 + + 13 + + + 92 + + 3 AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7334
SELECT - CASE + 89 WHEN 38 / + NULLIF ( 37, - - SUM( - 58 ) ) THEN 26 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7334
SELECT - CASE + 89 WHEN 38 / + NULLIF ( 37, - - SUM ( - 58 ) ) THEN 26 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7335
SELECT 26 AS col0, 21 * COUNT( * ) DIV - - 18 + + NULLIF ( + 91, 66 ) AS col2
----
26
92

skipif mysql # not compatible
query II rowsort label-7335
SELECT 26 AS col0, 21 * COUNT ( * ) / - - 18 + + NULLIF ( + 91, 66 ) AS col2
----
26
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7336
SELECT + 40 + 1 * - 11 + - 65 * + 27, - 41 DIV - COUNT( * ) * ( + COUNT( * ) ) + + 91 - - + MAX( ALL - 25 ) - 37 * 89 * COUNT( * ) + - MIN( DISTINCT - 37 ) * - ( + + 11 ) + + + 19 * COALESCE ( + + 85, 39 + + + 28, - ( + - 69 ) DIV + 91 ) AS col0
----
-1726
-1978

skipif mysql # not compatible
query II rowsort label-7336
SELECT + 40 + 1 * - 11 + - 65 * + 27, - 41 / - COUNT ( * ) * ( + COUNT ( * ) ) + + 91 - - + MAX ( ALL - 25 ) - 37 * 89 * COUNT ( * ) + - MIN ( DISTINCT - 37 ) * - ( + + 11 ) + + + 19 * COALESCE ( + + 85, 39 + + + 28, - ( + - 69 ) / + 91 ) AS col0
----
-1726
-1978

query I rowsort
SELECT - 16 * - 27
----
432

query I rowsort
SELECT - 75 + + 35 AS col1
----
-40

query I rowsort
SELECT ALL + 42 + - + 63
----
-21

query I rowsort
SELECT DISTINCT + 69 * + - 39 AS col1
----
-2691

onlyif mysql # aggregate syntax: 
query II rowsort label-7341
SELECT ALL COUNT( * ) AS col0, + 24 + + + COUNT( * ) AS col2
----
1
25

skipif mysql # not compatible
query II rowsort label-7341
SELECT ALL COUNT ( * ) AS col0, + 24 + + + COUNT ( * ) AS col2
----
1
25

query I rowsort
SELECT - 86 - ( 70 ) - - 47
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT ALL SUM( DISTINCT + + 7 )
----
7

skipif mysql # not compatible
query I rowsort label-7343
SELECT ALL SUM ( DISTINCT + + 7 )
----
7

query I rowsort
SELECT DISTINCT - 97 * 7 AS col1
----
-679

onlyif mysql # aggregate syntax: 
query I rowsort label-7345
SELECT ALL + SUM( DISTINCT - 91 ) * + 1 + - 78 - + 7 * - 53 * - COUNT( * )
----
-540

skipif mysql # not compatible
query I rowsort label-7345
SELECT ALL + SUM ( DISTINCT - 91 ) * + 1 + - 78 - + 7 * - 53 * - COUNT ( * )
----
-540

query I rowsort
SELECT ( + + 96 ) AS col0
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7347
SELECT ALL - ( - - COUNT( * ) ) * + + 81 DIV - COUNT( * ) + - 85 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-7347
SELECT ALL - ( - - COUNT ( * ) ) * + + 81 / - COUNT ( * ) + - 85 AS col1
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7348
SELECT - 50 + + CAST( NULL AS SIGNED ) * 14 + + 89 + ( 68 ), + 99 AS col1
----
NULL
99

skipif mysql # not compatible
query II rowsort label-7348
SELECT - 50 + + CAST ( NULL AS INTEGER ) * 14 + + 89 + ( 68 ), + 99 AS col1
----
NULL
99

onlyif mysql # aggregate syntax: 
query II rowsort label-7349
SELECT + ( - 0 ) - - - COUNT( * ) AS col2, COALESCE ( - 94, + - 13, + MAX( + + NULLIF ( + 21, - - 16 ) ) * + 41 ) + - COUNT( * )
----
-1
-95

skipif mysql # not compatible
query II rowsort label-7349
SELECT + ( - 0 ) - - - COUNT ( * ) AS col2, COALESCE ( - 94, + - 13, + MAX ( + + NULLIF ( + 21, - - 16 ) ) * + 41 ) + - COUNT ( * )
----
-1
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-7350
SELECT + COUNT( ALL + 68 ) * 46 AS col0, 92
----
46
92

skipif mysql # not compatible
query II rowsort label-7350
SELECT + COUNT ( ALL + 68 ) * 46 AS col0, 92
----
46
92

query I rowsort
SELECT ALL + COALESCE ( 11, + NULLIF ( - 88, + COALESCE ( 38, 35 ) ) ) AS col1
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-7352
SELECT 16 DIV - 72 + 94 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-7352
SELECT 16 / - 72 + 94 AS col1
----
94

query I rowsort
SELECT + 15 * 2 - - ( ( - 93 ) ) AS col0
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7354
SELECT ALL + COALESCE ( + 90, MAX( ALL + 88 ), + 42 DIV 68 + ( + 75 ), + 6 )
----
90

skipif mysql # not compatible
query I rowsort label-7354
SELECT ALL + COALESCE ( + 90, MAX ( ALL + 88 ), + 42 / 68 + ( + 75 ), + 6 )
----
90

onlyif mysql # DIV for integer division: 
query II rowsort label-7355
SELECT DISTINCT + 72 AS col2, - 97 + + 75 + 86 DIV + 21 AS col1
----
72
-18

skipif mysql # not compatible
query II rowsort label-7355
SELECT DISTINCT + 72 AS col2, - 97 + + 75 + 86 / + 21 AS col1
----
72
-18

query I rowsort
SELECT + + 60 + + 65
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7357
SELECT DISTINCT + COUNT( * ) * - + CASE + ( ( CAST( NULL AS SIGNED ) ) ) WHEN - 29 THEN + 81 / - - AVG ( + - 43 ) + + - COUNT( * ) + - + 37 + + COUNT( * ) * 10 + + + 72 * + + 43 * SUM( - + 0 ) - + 33 * + CAST( COALESCE ( 25, + + SUM( ALL - 24 ) * + + 21, + 34 ) AS SIGNED ) WHEN + - ( 71 ) / + - 89 + 45 THEN - ( NULLIF ( + - 27, - 12 ) ) + - - 99 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7357
SELECT DISTINCT + COUNT ( * ) * - + CASE + ( ( CAST ( NULL AS INTEGER ) ) ) WHEN - 29 THEN + 81 / - - AVG ( + - 43 ) + + - COUNT ( * ) + - + 37 + + COUNT ( * ) * 10 + + + 72 * + + 43 * SUM ( - + 0 ) - + 33 * + CAST ( COALESCE ( 25, + + SUM ( ALL - 24 ) * + + 21, + 34 ) AS INTEGER ) WHEN + - ( 71 ) / + - 89 + 45 THEN - ( NULLIF ( + - 27, - 12 ) ) + - - 99 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( + ( - 50 ), + + 13 + 19 ) * + - 59 * + 57
----
168150

query I rowsort
SELECT - + 16 * 79 AS col0
----
-1264

query I rowsort
SELECT + - 3 * - + ( - 72 ) + - 51
----
-267

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT ALL + 5 * - - 49 * 46 + + COUNT( * ) - + 93 * - 9
----
12108

skipif mysql # not compatible
query I rowsort label-7361
SELECT ALL + 5 * - - 49 * 46 + + COUNT ( * ) - + 93 * - 9
----
12108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7362
SELECT - CAST( - 92 AS SIGNED ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-7362
SELECT - CAST ( - 92 AS INTEGER ) AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT DISTINCT 26 * + ( + COUNT( * ) ) + - COUNT( * ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-7363
SELECT DISTINCT 26 * + ( + COUNT ( * ) ) + - COUNT ( * ) AS col1
----
25

query I rowsort
SELECT + 69 + + 18 AS col0
----
87

query I rowsort
SELECT DISTINCT - 86 * - 22
----
1892

onlyif mysql # DIV for integer division: 
query II rowsort label-7366
SELECT + 35 AS col0, 80 DIV - 28 + - - 66 * - 20 + - 66 * - + 21 AS col2
----
35
64

skipif mysql # not compatible
query II rowsort label-7366
SELECT + 35 AS col0, 80 / - 28 + - - 66 * - 20 + - 66 * - + 21 AS col2
----
35
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT ALL - COUNT( DISTINCT 50 )
----
-1

skipif mysql # not compatible
query I rowsort label-7367
SELECT ALL - COUNT ( DISTINCT 50 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT DISTINCT 69 * - ( + 18 ) + COUNT( ALL - 79 )
----
-1241

skipif mysql # not compatible
query I rowsort label-7368
SELECT DISTINCT 69 * - ( + 18 ) + COUNT ( ALL - 79 )
----
-1241

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7369
SELECT - ( - AVG ( + + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7369
SELECT - ( - AVG ( + + CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT + 52 * 70 * + - 95 col1
----
-345800

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7371
SELECT - CAST( NULL AS SIGNED ) AS col1, - 1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-7371
SELECT - CAST ( NULL AS INTEGER ) AS col1, - 1
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7372
SELECT ALL 17 + COUNT( * ) * - 53 * NULLIF ( 3, + 57 ) * + 10
----
-1573

skipif mysql # not compatible
query I rowsort label-7372
SELECT ALL 17 + COUNT ( * ) * - 53 * NULLIF ( 3, + 57 ) * + 10
----
-1573

query I rowsort
SELECT + 99 - 57 * - 22
----
1353

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT DISTINCT COUNT( * ) * SUM( 90 )
----
90

skipif mysql # not compatible
query I rowsort label-7374
SELECT DISTINCT COUNT ( * ) * SUM ( 90 )
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7375
SELECT ALL + ( - - 66 ) + + CAST( NULL AS SIGNED ) * - 35 * + 68 DIV - 10 AS col0, + 9 DIV NULLIF ( - COALESCE ( + + CAST( CAST( - - 30 AS SIGNED ) AS SIGNED ), COUNT( * ), + CAST( + + CASE - + 98 WHEN - AVG ( ALL + ( - 66 ) ) THEN + 14 + + 24 WHEN + 0 THEN NULL END AS SIGNED ) + - ( - + 53 ) ), - 28 ) AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7375
SELECT ALL + ( - - 66 ) + + CAST ( NULL AS INTEGER ) * - 35 * + 68 / - 10 AS col0, + 9 / NULLIF ( - COALESCE ( + + CAST ( CAST ( - - 30 AS INTEGER ) AS INTEGER ), COUNT ( * ), + CAST ( + + CASE - + 98 WHEN - AVG ( ALL + ( - 66 ) ) THEN + 14 + + 24 WHEN + 0 THEN NULL END AS INTEGER ) + - ( - + 53 ) ), - 28 ) AS col2
----
NULL
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7376
SELECT - CAST( - ( + 37 ) AS SIGNED )
----
37

skipif mysql # not compatible
query I rowsort label-7376
SELECT - CAST ( - ( + 37 ) AS INTEGER )
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7377
SELECT DISTINCT 33 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7377
SELECT DISTINCT 33 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7378
SELECT DISTINCT ( - 95 ) AS col1, MAX( + - 47 ) * + + ( - 76 ) AS col0
----
-95
3572

skipif mysql # not compatible
query II rowsort label-7378
SELECT DISTINCT ( - 95 ) AS col1, MAX ( + - 47 ) * + + ( - 76 ) AS col0
----
-95
3572

onlyif mysql # aggregate syntax: 
query I rowsort label-7379
SELECT DISTINCT SUM( + 51 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-7379
SELECT DISTINCT SUM ( + 51 ) AS col0
----
51

query I rowsort
SELECT + 33 * 79 AS col1
----
2607

query II rowsort
SELECT 12 AS col2, - 43 * + - 64 col1
----
12
2752

onlyif mysql # DIV for integer division: 
query I rowsort label-7382
SELECT DISTINCT + ( + 15 ) DIV - 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7382
SELECT DISTINCT + ( + 15 ) / - 83 AS col1
----
0

query I rowsort
SELECT - ( 69 ) * 18
----
-1242

query I rowsort
SELECT ALL + 21 * + 30 * - - 93 AS col1
----
58590

query II rowsort
SELECT 98 AS col2, + 94
----
98
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7386
SELECT + 42 DIV + COUNT( * ) + + + 43
----
85

skipif mysql # not compatible
query I rowsort label-7386
SELECT + 42 / + COUNT ( * ) + + + 43
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-7387
SELECT DISTINCT 55 DIV 23 - - CASE + 54 WHEN + 47 THEN + 8 ELSE + - 3 END AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7387
SELECT DISTINCT 55 / 23 - - CASE + 54 WHEN + 47 THEN + 8 ELSE + - 3 END AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7388
SELECT DISTINCT CAST( NULL AS SIGNED ) / 83
----
NULL

skipif mysql # not compatible
query I rowsort label-7388
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 83
----
NULL

query I rowsort
SELECT ALL - 48 * + 8 AS col1
----
-384

onlyif mysql # aggregate syntax: 
query II rowsort label-7390
SELECT ALL + COUNT( * ) * 27 col1, 9 - - ( + ( - 40 ) ) AS col2
----
27
-31

skipif mysql # not compatible
query II rowsort label-7390
SELECT ALL + COUNT ( * ) * 27 col1, 9 - - ( + ( - 40 ) ) AS col2
----
27
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-7391
SELECT DISTINCT + 17 col1, - 48 + + + COUNT( * ) AS col1
----
17
-47

skipif mysql # not compatible
query II rowsort label-7391
SELECT DISTINCT + 17 col1, - 48 + + + COUNT ( * ) AS col1
----
17
-47

query I rowsort
SELECT ALL + - 34 * - 57 * - 64
----
-124032

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7393
SELECT + ( - 65 ) * + 80 * + CAST( NULL AS DECIMAL ), COUNT( * ) col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7393
SELECT + ( - 65 ) * + 80 * + CAST ( NULL AS REAL ), COUNT ( * ) col1
----
NULL
1

query I rowsort
SELECT 29 * + 26 + - ( 70 ) - + - 7 AS col0
----
691

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7395
SELECT - 51 AS col0, + SUM( ALL - - 83 ) DIV - 81 AS col0
----
-51
-1

skipif mysql # not compatible
query II rowsort label-7395
SELECT - 51 AS col0, + SUM ( ALL - - 83 ) / - 81 AS col0
----
-51
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7396
SELECT - + SUM( - 13 ) * - COUNT( * ) * + 30, COUNT( * ) AS col2
----
-390
1

skipif mysql # not compatible
query II rowsort label-7396
SELECT - + SUM ( - 13 ) * - COUNT ( * ) * + 30, COUNT ( * ) AS col2
----
-390
1

query II rowsort
SELECT ALL + 25, - ( 23 ) col0
----
25
-23

query I rowsort
SELECT - ( 33 ) - 41 + - 62
----
-136

onlyif mysql # aggregate syntax: 
query II rowsort label-7399
SELECT + 2, - NULLIF ( - COUNT( * ), - 53 ) - + - 49 * + 51 * - - MAX( ALL - - 16 ) col1
----
2
39985

skipif mysql # not compatible
query II rowsort label-7399
SELECT + 2, - NULLIF ( - COUNT ( * ), - 53 ) - + - 49 * + 51 * - - MAX ( ALL - - 16 ) col1
----
2
39985

onlyif mysql # aggregate syntax: 
query II rowsort label-7400
SELECT ALL - - 28 col0, - CASE 68 WHEN - + 92 THEN 83 / - NULLIF ( - NULLIF ( 63, 0 ), - + 83 ) * - CASE + + COUNT( * ) WHEN 53 THEN + 34 END * + - 18 - + COUNT( * ) - 36 + + 59 * + - 99 + + + 41 ELSE NULL END * - - COUNT( * )
----
28
NULL

skipif mysql # not compatible
query II rowsort label-7400
SELECT ALL - - 28 col0, - CASE 68 WHEN - + 92 THEN 83 / - NULLIF ( - NULLIF ( 63, 0 ), - + 83 ) * - CASE + + COUNT ( * ) WHEN 53 THEN + 34 END * + - 18 - + COUNT ( * ) - 36 + + 59 * + - 99 + + + 41 ELSE NULL END * - - COUNT ( * )
----
28
NULL

query II rowsort
SELECT + 41, 91 AS col2
----
41
91

onlyif mysql # aggregate syntax: 
query II rowsort label-7402
SELECT + + 58 AS col1, SUM( 53 ) AS col2
----
58
53

skipif mysql # not compatible
query II rowsort label-7402
SELECT + + 58 AS col1, SUM ( 53 ) AS col2
----
58
53

onlyif mysql # aggregate syntax: 
query II rowsort label-7403
SELECT ALL - COUNT( * ), 42 + + 37 * + 62 AS col1
----
-1
2336

skipif mysql # not compatible
query II rowsort label-7403
SELECT ALL - COUNT ( * ), 42 + + 37 * + 62 AS col1
----
-1
2336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7404
SELECT DISTINCT - + CAST( ( - COUNT( ALL + 61 ) ) AS SIGNED ), 27 DIV + CAST( - ( - COUNT( * ) ) AS SIGNED ) + + + 33 AS col0
----
1
60

skipif mysql # not compatible
query II rowsort label-7404
SELECT DISTINCT - + CAST ( ( - COUNT ( ALL + 61 ) ) AS INTEGER ), 27 / + CAST ( - ( - COUNT ( * ) ) AS INTEGER ) + + + 33 AS col0
----
1
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT ALL - 93 + + 0 + - 93 * - - 25 * - 8 / - COUNT( * ) * - - 9 * - AVG ( ALL + CASE 54 WHEN + + 6 THEN - 5 WHEN + 15 THEN NULL END ) + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7405
SELECT ALL - 93 + + 0 + - 93 * - - 25 * - 8 / - COUNT ( * ) * - - 9 * - AVG ( ALL + CASE 54 WHEN + + 6 THEN - 5 WHEN + 15 THEN NULL END ) + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7406
SELECT ALL - + 79 + 6 * + - 47 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7406
SELECT ALL - + 79 + 6 * + - 47 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7407
SELECT ALL - 25 AS col0, 26 DIV + 6 AS col0
----
-25
4

skipif mysql # not compatible
query II rowsort label-7407
SELECT ALL - 25 AS col0, 26 / + 6 AS col0
----
-25
4

query I rowsort
SELECT 84 * ( - 89 ) AS col0
----
-7476

onlyif mysql # aggregate syntax: 
query II rowsort label-7409
SELECT 21 AS col0, 30 + + 34 - + - COUNT( * ) AS col0
----
21
65

skipif mysql # not compatible
query II rowsort label-7409
SELECT 21 AS col0, 30 + + 34 - + - COUNT ( * ) AS col0
----
21
65

query I rowsort
SELECT - 70 * + 15 + - - 16 + 66 + + + 12 + - 98
----
-1054

query II rowsort
SELECT 28, 69 AS col0
----
28
69

query I rowsort
SELECT ALL 93 + + 88 AS col0
----
181

query I rowsort
SELECT 3 + + COALESCE ( - 98, - 13 )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT 13 + + MIN( - + 94 ) * 11
----
-1021

skipif mysql # not compatible
query I rowsort label-7414
SELECT 13 + + MIN ( - + 94 ) * 11
----
-1021

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7415
SELECT ALL + COUNT( * ) + + NULLIF ( 85, ( - - ( - - 23 ) ) + + 34 + - COALESCE ( 97, - + 21 ) ) - 54 DIV - MAX( CAST( 94 AS SIGNED ) ) * 61 * 38 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-7415
SELECT ALL + COUNT ( * ) + + NULLIF ( 85, ( - - ( - - 23 ) ) + + 34 + - COALESCE ( 97, - + 21 ) ) - 54 / - MAX ( CAST ( 94 AS INTEGER ) ) * 61 * 38 AS col1
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7416
SELECT DISTINCT - 69 * CAST( - 11 AS SIGNED ) AS col1
----
759

skipif mysql # not compatible
query I rowsort label-7416
SELECT DISTINCT - 69 * CAST ( - 11 AS INTEGER ) AS col1
----
759

onlyif mysql # aggregate syntax: 
query I rowsort label-7417
SELECT ALL + COALESCE ( - + 90, + 58, - - 62 * NULLIF ( MIN( DISTINCT 58 ), + 38 + + 75 ) + + CASE 86 WHEN 5 THEN + COUNT( * ) WHEN - - SUM( - - 82 ) THEN NULL END ) * + 86
----
-7740

skipif mysql # not compatible
query I rowsort label-7417
SELECT ALL + COALESCE ( - + 90, + 58, - - 62 * NULLIF ( MIN ( DISTINCT 58 ), + 38 + + 75 ) + + CASE 86 WHEN 5 THEN + COUNT ( * ) WHEN - - SUM ( - - 82 ) THEN NULL END ) * + 86
----
-7740

query I rowsort
SELECT ALL 63 + - 95 AS col1
----
-32

query I rowsort
SELECT 29 * + 62 * + 56 col2
----
100688

query I rowsort
SELECT 48 + + - 10 + + 28 - + + 40
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-7421
SELECT NULLIF ( - + 86, - 25 + + 52 ) * - COUNT( * ), 53 AS col2
----
86
53

skipif mysql # not compatible
query II rowsort label-7421
SELECT NULLIF ( - + 86, - 25 + + 52 ) * - COUNT ( * ), 53 AS col2
----
86
53

onlyif mysql # DIV for integer division: 
query I rowsort label-7422
SELECT ALL 73 * ( + 52 ) DIV 40
----
94

skipif mysql # not compatible
query I rowsort label-7422
SELECT ALL 73 * ( + 52 ) / 40
----
94

query I rowsort
SELECT ( - 30 ) * - 67
----
2010

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7424
SELECT DISTINCT 20 * - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7424
SELECT DISTINCT 20 * - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT - 2 + - ( - 34 )
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7426
SELECT 50 / - 43 * - 29 * - 25 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7426
SELECT 50 / - 43 * - 29 * - 25 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT MAX( ALL + + 38 ) - + ( + 38 ) + 19 + + - 15 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-7427
SELECT MAX ( ALL + + 38 ) - + ( + 38 ) + 19 + + - 15 AS col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7428
SELECT + + 65 / CASE 10 WHEN + NULLIF ( + 10, + 36 * + 84 * COUNT( * ) ) THEN - 7 + + COALESCE ( - 46, - - 26 + + - 54 ) / 5 - + + 2 ELSE NULL END + - 33 * CAST( + ( - + CASE + - SUM( DISTINCT + ( 77 ) ) WHEN + 89 / - CAST( + COUNT( * ) AS SIGNED ) + + 27 THEN - SUM( + 89 ) * 44 WHEN + - 56 * - - 87 THEN NULL END ) AS DECIMAL ) + + + 57 / + 29 * + COUNT( * ) + - NULLIF ( - 49, + + 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7428
SELECT + + 65 / CASE 10 WHEN + NULLIF ( + 10, + 36 * + 84 * COUNT ( * ) ) THEN - 7 + + COALESCE ( - 46, - - 26 + + - 54 ) / 5 - + + 2 ELSE NULL END + - 33 * CAST ( + ( - + CASE + - SUM ( DISTINCT + ( 77 ) ) WHEN + 89 / - CAST ( + COUNT ( * ) AS INTEGER ) + + 27 THEN - SUM ( + 89 ) * 44 WHEN + - 56 * - - 87 THEN NULL END ) AS REAL ) + + + 57 / + 29 * + COUNT ( * ) + - NULLIF ( - 49, + + 71 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7429
SELECT DISTINCT 56 DIV - 98 + 66 + + ( - - COUNT( * ) )
----
67

skipif mysql # not compatible
query I rowsort label-7429
SELECT DISTINCT 56 / - 98 + 66 + + ( - - COUNT ( * ) )
----
67

onlyif mysql # DIV for integer division: 
query II rowsort label-7430
SELECT ALL - 39 * - 34 AS col2, - 39 + - 94 + - 29 DIV 29
----
1326
-134

skipif mysql # not compatible
query II rowsort label-7430
SELECT ALL - 39 * - 34 AS col2, - 39 + - 94 + - 29 / 29
----
1326
-134

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7431
SELECT COUNT( * ) DIV - ( + 65 ), 80 + - 19 AS col1
----
0
61

skipif mysql # not compatible
query II rowsort label-7431
SELECT COUNT ( * ) / - ( + 65 ), 80 + - 19 AS col1
----
0
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7432
SELECT CAST( + 64 AS SIGNED ) + - + COUNT( * ) + + - 11 * + 19 + - CAST( 99 AS SIGNED ) AS col0
----
-245

skipif mysql # not compatible
query I rowsort label-7432
SELECT CAST ( + 64 AS INTEGER ) + - + COUNT ( * ) + + - 11 * + 19 + - CAST ( 99 AS INTEGER ) AS col0
----
-245

query I rowsort
SELECT + CASE - + 59 WHEN 32 THEN NULL WHEN - 86 THEN + AVG ( ALL + + 37 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - 53 + - 42 * + + 90 AS col1
----
-3833

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7435
SELECT DISTINCT 83 + - + CAST( NULL AS SIGNED ) / + AVG ( 57 ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7435
SELECT DISTINCT 83 + - + CAST ( NULL AS INTEGER ) / + AVG ( 57 ) / COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7436
SELECT ALL - - NULLIF ( - - MAX( DISTINCT - CAST( NULL AS SIGNED ) ), + - 97 ) + + 64 + ( ( - - 28 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7436
SELECT ALL - - NULLIF ( - - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ), + - 97 ) + + 64 + ( ( - - 28 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7437
SELECT + 35 * + + 64 + - - 92 * 51 DIV + COUNT( ALL 95 ) + COUNT( - - 46 ) + - 97 * + 73 AS col0, + 34
----
-148
34

skipif mysql # not compatible
query II rowsort label-7437
SELECT + 35 * + + 64 + - - 92 * 51 / + COUNT ( ALL 95 ) + COUNT ( - - 46 ) + - 97 * + 73 AS col0, + 34
----
-148
34

query I rowsort
SELECT DISTINCT + 3 * + + 1 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT 98 + - ( 87 ) * - ( - + 0 ) + + 26 * - - SUM( - 65 ) - + NULLIF ( + 51, - 15 + - - 42 ) * - 5 + SUM( - 69 ) AS col0
----
-1406

skipif mysql # not compatible
query I rowsort label-7439
SELECT 98 + - ( 87 ) * - ( - + 0 ) + + 26 * - - SUM ( - 65 ) - + NULLIF ( + 51, - 15 + - - 42 ) * - 5 + SUM ( - 69 ) AS col0
----
-1406

onlyif mysql # aggregate syntax: 
query II rowsort label-7440
SELECT ALL - + 51 + + 20, COUNT( * ) AS col1
----
-31
1

skipif mysql # not compatible
query II rowsort label-7440
SELECT ALL - + 51 + + 20, COUNT ( * ) AS col1
----
-31
1

query I rowsort
SELECT 13 * - 75 AS col1
----
-975

query II rowsort
SELECT ALL - 84 AS col2, + NULLIF ( 0, + + 37 + - 95 ) * 68 * ( 3 ) * + 39 + - 95 AS col1
----
-84
-95

query II rowsort
SELECT 29 AS col1, + 47 AS col2
----
29
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7444
SELECT ALL 13 AS col0, + 22 * - COUNT( * ) DIV + - 64 + - 72
----
13
-72

skipif mysql # not compatible
query II rowsort label-7444
SELECT ALL 13 AS col0, + 22 * - COUNT ( * ) / + - 64 + - 72
----
13
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7445
SELECT ALL + 93 - - 67 + CAST( 68 AS SIGNED ) + + + SUM( DISTINCT + 0 ) * - 13
----
228

skipif mysql # not compatible
query I rowsort label-7445
SELECT ALL + 93 - - 67 + CAST ( 68 AS INTEGER ) + + + SUM ( DISTINCT + 0 ) * - 13
----
228

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7446
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * 78 * + - 50, + COUNT( * ) * - 50 AS col0
----
NULL
-50

skipif mysql # not compatible
query II rowsort label-7446
SELECT DISTINCT - CAST ( NULL AS REAL ) * 78 * + - 50, + COUNT ( * ) * - 50 AS col0
----
NULL
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT ALL COUNT( - 22 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7447
SELECT ALL COUNT ( - 22 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7448
SELECT 28 DIV 20
----
1

skipif mysql # not compatible
query I rowsort label-7448
SELECT 28 / 20
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT 64 * + COUNT( * ) col0
----
64

skipif mysql # not compatible
query I rowsort label-7449
SELECT 64 * + COUNT ( * ) col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT ALL - 20 * - - NULLIF ( - MAX( ALL 19 ), + + NULLIF ( + + ( + - 86 ), 96 + - - COUNT( * ) + + 51 * 17 / + 72 * - 47 + - 81 ) * - 61 ) * + + 25 AS col1
----
9500

skipif mysql # not compatible
query I rowsort label-7450
SELECT ALL - 20 * - - NULLIF ( - MAX ( ALL 19 ), + + NULLIF ( + + ( + - 86 ), 96 + - - COUNT ( * ) + + 51 * 17 / + 72 * - 47 + - 81 ) * - 61 ) * + + 25 AS col1
----
9500

query I rowsort
SELECT 35 + - 58 AS col0
----
-23

query I rowsort
SELECT 38 - - 53
----
91

query II rowsort
SELECT 66 col2, + 60 AS col2
----
66
60

query I rowsort
SELECT 54 * + 95
----
5130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7455
SELECT ALL - CAST( NULL AS SIGNED ) * + COALESCE ( + 27, - 41 * + - 66 / 41 ) * + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-7455
SELECT ALL - CAST ( NULL AS INTEGER ) * + COALESCE ( + 27, - 41 * + - 66 / 41 ) * + 57
----
NULL

query I rowsort
SELECT ALL NULLIF ( 3, - 73 ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7457
SELECT MIN( - 74 ) + - 24 AS col0, + 65
----
-98
65

skipif mysql # not compatible
query II rowsort label-7457
SELECT MIN ( - 74 ) + - 24 AS col0, + 65
----
-98
65

query I rowsort
SELECT ( - 17 ) - - + 97 AS col2
----
80

query I rowsort
SELECT - 0 * + 90 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT ALL - 92 + + COUNT( * ) * 22 * + ( - - 34 ) * - SUM( - 77 ) AS col0
----
57504

skipif mysql # not compatible
query I rowsort label-7460
SELECT ALL - 92 + + COUNT ( * ) * 22 * + ( - - 34 ) * - SUM ( - 77 ) AS col0
----
57504

query II rowsort
SELECT + 69 AS col2, 67
----
69
67

query I rowsort
SELECT DISTINCT 87 + 57 AS col2
----
144

onlyif mysql # aggregate syntax: 
query II rowsort label-7463
SELECT + 57 + + MAX( DISTINCT 71 ) col0, 54 col2
----
128
54

skipif mysql # not compatible
query II rowsort label-7463
SELECT + 57 + + MAX ( DISTINCT 71 ) col0, 54 col2
----
128
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT + + COUNT( * ) * - 59 * 70 + + 48
----
-4082

skipif mysql # not compatible
query I rowsort label-7464
SELECT + + COUNT ( * ) * - 59 * 70 + + 48
----
-4082

query I rowsort
SELECT DISTINCT 45 * ( + 38 ) + 60
----
1770

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7466
SELECT DISTINCT - 25 * - - NULLIF ( - + 79, - 53 + COUNT( * ) + + CAST( NULL AS SIGNED ) * + 99 ) + + - 0 AS col0, 53 + + + 20 * - 66 + - SUM( ALL ( + 96 ) )
----
1975
-1363

skipif mysql # not compatible
query II rowsort label-7466
SELECT DISTINCT - 25 * - - NULLIF ( - + 79, - 53 + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * + 99 ) + + - 0 AS col0, 53 + + + 20 * - 66 + - SUM ( ALL ( + 96 ) )
----
1975
-1363

query I rowsort
SELECT DISTINCT + 11 * + 3 * + 47 + - 49 AS col2
----
1502

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7468
SELECT COUNT( * ) * + - COALESCE ( 86, NULLIF ( - 44, + 83 ) * + - 83 ) * + - COUNT( ALL + 89 ) + - - COALESCE ( - - 36, + - ( - + 36 ) + + 98 ) + + + 41 + 97 + - ( - + 1 ) DIV 4 + - + 19 - 10 col0, + COUNT( * )
----
231
1

skipif mysql # not compatible
query II rowsort label-7468
SELECT COUNT ( * ) * + - COALESCE ( 86, NULLIF ( - 44, + 83 ) * + - 83 ) * + - COUNT ( ALL + 89 ) + - - COALESCE ( - - 36, + - ( - + 36 ) + + 98 ) + + + 41 + 97 + - ( - + 1 ) / 4 + - + 19 - 10 col0, + COUNT ( * )
----
231
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT - - COUNT( * ) * - 70 col1
----
-70

skipif mysql # not compatible
query I rowsort label-7469
SELECT - - COUNT ( * ) * - 70 col1
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-7470
SELECT + + 36 - - - 77 - + 99 - - - 59 + + COUNT( * ) * + 47 AS col1, - COUNT( * ) + + 13 * COUNT( - 77 ) * - + 74
----
-152
-963

skipif mysql # not compatible
query II rowsort label-7470
SELECT + + 36 - - - 77 - + 99 - - - 59 + + COUNT ( * ) * + 47 AS col1, - COUNT ( * ) + + 13 * COUNT ( - 77 ) * - + 74
----
-152
-963

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7471
SELECT ALL + - CAST( NULL AS SIGNED ) col1, 1 col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7471
SELECT ALL + - CAST ( NULL AS INTEGER ) col1, 1 col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT + COUNT( * ) * - 33 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-7472
SELECT + COUNT ( * ) * - 33 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT DISTINCT - + 74 * - + COUNT( * ) col0
----
74

skipif mysql # not compatible
query I rowsort label-7473
SELECT DISTINCT - + 74 * - + COUNT ( * ) col0
----
74

query I rowsort
SELECT DISTINCT - 51 * - - 54 * - - 19
----
-52326

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7475
SELECT - 31 * + 54 - - 91 * - - 43, - CAST( COUNT( * ) AS SIGNED ) AS col2
----
2239
-1

skipif mysql # not compatible
query II rowsort label-7475
SELECT - 31 * + 54 - - 91 * - - 43, - CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
2239
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT ALL MAX( 79 ) * - 54 * + 3 + 87
----
-12711

skipif mysql # not compatible
query I rowsort label-7476
SELECT ALL MAX ( 79 ) * - 54 * + 3 + 87
----
-12711

query I rowsort
SELECT DISTINCT 10 * - 21 AS col2
----
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT - 22 - - 25 * - COUNT( DISTINCT + 98 ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-7478
SELECT - 22 - - 25 * - COUNT ( DISTINCT + 98 ) AS col2
----
-47

query I rowsort
SELECT + 34 * 47 AS col1
----
1598

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT DISTINCT - COUNT( 85 ) * 69
----
-69

skipif mysql # not compatible
query I rowsort label-7480
SELECT DISTINCT - COUNT ( 85 ) * 69
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT ALL NULLIF ( 39, - - COUNT( * ) / - COUNT( * ) + + - 64 * CASE 3 WHEN + + 46 * - - 57 THEN - 57 + - + 98 END )
----
39

skipif mysql # not compatible
query I rowsort label-7481
SELECT ALL NULLIF ( 39, - - COUNT ( * ) / - COUNT ( * ) + + - 64 * CASE 3 WHEN + + 46 * - - 57 THEN - 57 + - + 98 END )
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-7482
SELECT - 86 + - 94 DIV - 93 + + ( + - 99 ) AS col2
----
-184

skipif mysql # not compatible
query I rowsort label-7482
SELECT - 86 + - 94 / - 93 + + ( + - 99 ) AS col2
----
-184

query I rowsort
SELECT ALL NULLIF ( - 42, - 44 ) AS col2
----
-42

query I rowsort
SELECT - 4 * - 1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT DISTINCT 9 * - NULLIF ( - 26, 33 ) * - COUNT( * )
----
-234

skipif mysql # not compatible
query I rowsort label-7485
SELECT DISTINCT 9 * - NULLIF ( - 26, 33 ) * - COUNT ( * )
----
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT DISTINCT ( + SUM( DISTINCT - - 35 ) ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-7486
SELECT DISTINCT ( + SUM ( DISTINCT - - 35 ) ) AS col1
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7487
SELECT DISTINCT COUNT( 24 ) AS col1, 72 * + CAST( - AVG ( - 88 ) AS SIGNED ) AS col2
----
1
6336

skipif mysql # not compatible
query II rowsort label-7487
SELECT DISTINCT COUNT ( 24 ) AS col1, 72 * + CAST ( - AVG ( - 88 ) AS INTEGER ) AS col2
----
1
6336

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT DISTINCT NULLIF ( - 84, COUNT( * ) ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-7488
SELECT DISTINCT NULLIF ( - 84, COUNT ( * ) ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7489
SELECT DISTINCT - COUNT( - - 57 ) * 14 col2
----
-14

skipif mysql # not compatible
query I rowsort label-7489
SELECT DISTINCT - COUNT ( - - 57 ) * 14 col2
----
-14

query I rowsort
SELECT DISTINCT - 8 + 23 AS col0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7491
SELECT ALL + 35 + + 67 + - SUM( + CAST( NULL AS SIGNED ) ) + - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7491
SELECT ALL + 35 + + 67 + - SUM ( + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT - + SUM( + ( + + 20 ) ) * - - ( SUM( ALL + - 68 ) ) * COUNT( * ) - - + 14
----
1374

skipif mysql # not compatible
query I rowsort label-7492
SELECT - + SUM ( + ( + + 20 ) ) * - - ( SUM ( ALL + - 68 ) ) * COUNT ( * ) - - + 14
----
1374

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT - 50 + + + 95 + - COUNT( * ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-7493
SELECT - 50 + + + 95 + - COUNT ( * ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT DISTINCT MAX( ALL - 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-7494
SELECT DISTINCT MAX ( ALL - 80 )
----
-80

query I rowsort
SELECT ALL 17 + 84 col0
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7496
SELECT + - COUNT( * ) + 3 + + COUNT( * ) + + + 7 DIV 12
----
3

skipif mysql # not compatible
query I rowsort label-7496
SELECT + - COUNT ( * ) + 3 + + COUNT ( * ) + + + 7 / 12
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7497
SELECT DISTINCT + 89 DIV CAST( - 84 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-7497
SELECT DISTINCT + 89 / CAST ( - 84 AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT - MIN( + ( - - 21 ) ) col2
----
-21

skipif mysql # not compatible
query I rowsort label-7498
SELECT - MIN ( + ( - - 21 ) ) col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT - - COUNT( * ) + + 46
----
47

skipif mysql # not compatible
query I rowsort label-7499
SELECT - - COUNT ( * ) + + 46
----
47

query I rowsort
SELECT - + 40 + 12 AS col0
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7501
SELECT + - COALESCE ( + CASE + 74 WHEN CAST( + + 57 AS SIGNED ) THEN + COUNT( * ) + + + 10 WHEN - COUNT( * ) / + 78 THEN - 87 ELSE - 69 * 40 * - 10 + 58 END, 9 ) AS col2, + 24
----
-27658
24

skipif mysql # not compatible
query II rowsort label-7501
SELECT + - COALESCE ( + CASE + 74 WHEN CAST ( + + 57 AS INTEGER ) THEN + COUNT ( * ) + + + 10 WHEN - COUNT ( * ) / + 78 THEN - 87 ELSE - 69 * 40 * - 10 + 58 END, 9 ) AS col2, + 24
----
-27658
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7502
SELECT CASE - + 46 WHEN - + COUNT( * ) * NULLIF ( + 96, CAST( NULL AS SIGNED ) ) THEN + + ( - COUNT( * ) ) WHEN + 98 THEN + COALESCE ( - + 88, + ( - + 38 ), - 73 / - 59 / - - 8 + - 7 + - + 36 + + 95 * + 60 / + + 12 ) WHEN 71 THEN NULL WHEN ( - 25 ) * + 53 * MIN( DISTINCT + 76 ) THEN - 66 END * - COUNT( * ) + ( + SUM( + 98 ) ) + - 15 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7502
SELECT CASE - + 46 WHEN - + COUNT ( * ) * NULLIF ( + 96, CAST ( NULL AS INTEGER ) ) THEN + + ( - COUNT ( * ) ) WHEN + 98 THEN + COALESCE ( - + 88, + ( - + 38 ), - 73 / - 59 / - - 8 + - 7 + - + 36 + + 95 * + 60 / + + 12 ) WHEN 71 THEN NULL WHEN ( - 25 ) * + 53 * MIN ( DISTINCT + 76 ) THEN - 66 END * - COUNT ( * ) + ( + SUM ( + 98 ) ) + - 15 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7503
SELECT + 36 - - - COUNT( * ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-7503
SELECT + 36 - - - COUNT ( * ) AS col0
----
35

query II rowsort
SELECT ALL 6 * - - 70 col1, 2 AS col0
----
420
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7505
SELECT ALL 24 * COALESCE ( - 45, + 76, - + 0 + - 37 ) - - 67 + 0 DIV + - 51 AS col0
----
-1013

skipif mysql # not compatible
query I rowsort label-7505
SELECT ALL 24 * COALESCE ( - 45, + 76, - + 0 + - 37 ) - - 67 + 0 / + - 51 AS col0
----
-1013

query I rowsort
SELECT ALL - 10 * + 2
----
-20

query I rowsort
SELECT ALL 33 * 39
----
1287

query I rowsort
SELECT + + 99 + - 43 AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT - 59 * COUNT( * ) + - 48 AS col2
----
-107

skipif mysql # not compatible
query I rowsort label-7509
SELECT - 59 * COUNT ( * ) + - 48 AS col2
----
-107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7510
SELECT ALL COUNT( * ) * 43 DIV 14 * 22 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-7510
SELECT ALL COUNT ( * ) * 43 / 14 * 22 AS col0
----
66

query I rowsort
SELECT ( - - NULLIF ( 40, - 63 ) ) AS col1
----
40

query I rowsort
SELECT - 65 * + - 92 + - 59 + + 2 + + - 76
----
5847

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7513
SELECT + 34 DIV + - CASE + - 48 WHEN - - COUNT( * ) * + - 12 * + - 41 THEN NULL ELSE + 67 * + 22 END col1
----
0

skipif mysql # not compatible
query I rowsort label-7513
SELECT + 34 / + - CASE + - 48 WHEN - - COUNT ( * ) * + - 12 * + - 41 THEN NULL ELSE + 67 * + 22 END col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7514
SELECT + COUNT( * ) * - + 93
----
-93

skipif mysql # not compatible
query I rowsort label-7514
SELECT + COUNT ( * ) * - + 93
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7515
SELECT + 99 + SUM( ALL + - 94 )
----
5

skipif mysql # not compatible
query I rowsort label-7515
SELECT + 99 + SUM ( ALL + - 94 )
----
5

query II rowsort
SELECT ALL + 93, 67 * + 6 col2
----
93
402

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7517
SELECT ( - COALESCE ( + + CAST( - + 22 AS SIGNED ), - - 81 ) ) AS col1, 57
----
22
57

skipif mysql # not compatible
query II rowsort label-7517
SELECT ( - COALESCE ( + + CAST ( - + 22 AS INTEGER ), - - 81 ) ) AS col1, 57
----
22
57

onlyif mysql # DIV for integer division: 
query I rowsort label-7518
SELECT ALL 98 DIV - + 94
----
-1

skipif mysql # not compatible
query I rowsort label-7518
SELECT ALL 98 / - + 94
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7519
SELECT + 80 * - - COUNT( * ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-7519
SELECT + 80 * - - COUNT ( * ) AS col1
----
80

query I rowsort
SELECT DISTINCT 70 * - 71 + + + 2
----
-4968

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT ALL + 66 * COUNT( * ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-7521
SELECT ALL + 66 * COUNT ( * ) AS col0
----
66

query I rowsort
SELECT ALL 45 * + 74 + - + 71 AS col1
----
3259

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7523
SELECT ALL - 3 + - + CASE - - 49 WHEN + COALESCE ( COUNT( * ), - - 45, - COUNT( ALL - 15 ) ) THEN + + 41 * 42 / + + COUNT( * ) * 8 * + + MIN( DISTINCT CAST( NULL AS SIGNED ) ) END * + MIN( ALL + + 75 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL - 3 + - + CASE - - 49 WHEN + COALESCE ( COUNT ( * ), - - 45, - COUNT ( ALL - 15 ) ) THEN + + 41 * 42 / + + COUNT ( * ) * 8 * + + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) END * + MIN ( ALL + + 75 ) col2
----
NULL

query II rowsort
SELECT - 42 AS col0, 97
----
-42
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7525
SELECT DISTINCT - 77 + 36 DIV + 68 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-7525
SELECT DISTINCT - 77 + 36 / + 68 AS col1
----
-77

query I rowsort
SELECT ALL 55 + - 33
----
22

query I rowsort
SELECT ALL - 4 + NULLIF ( 72, + 24 * + 17 + - 20 ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT 4 + 3 * COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-7528
SELECT 4 + 3 * COUNT ( * )
----
7

query I rowsort
SELECT 7 - - 71
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT 14 + + 10 * + COUNT( * ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-7530
SELECT 14 + + 10 * + COUNT ( * ) AS col2
----
24

query I rowsort
SELECT ALL + 59 - 7 AS col1
----
52

query I rowsort
SELECT DISTINCT + COALESCE ( 42, + 54 - 1, - NULLIF ( - 75, 56 * + 98 ) ) - 74 AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7533
SELECT COUNT( * ) + ( + 52 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-7533
SELECT COUNT ( * ) + ( + 52 ) AS col1
----
53

query I rowsort
SELECT DISTINCT + 23 * + 83
----
1909

query I rowsort
SELECT DISTINCT + 42 - 65 AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT 23 * + COUNT( * ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-7536
SELECT 23 * + COUNT ( * ) AS col1
----
23

query I rowsort
SELECT DISTINCT - 78 * 52 col2
----
-4056

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT ALL - MAX( DISTINCT 48 ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-7538
SELECT ALL - MAX ( DISTINCT 48 ) AS col0
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7539
SELECT ALL - CAST( + ( - 76 ) AS SIGNED ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-7539
SELECT ALL - CAST ( + ( - 76 ) AS INTEGER ) AS col0
----
76

query I rowsort
SELECT NULLIF ( - 13, 80 ) * 15
----
-195

onlyif mysql # DIV for integer division: 
query I rowsort label-7541
SELECT ALL + 97 DIV 83 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7541
SELECT ALL + 97 / 83 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT 22 * - MIN( + 64 )
----
-1408

skipif mysql # not compatible
query I rowsort label-7542
SELECT 22 * - MIN ( + 64 )
----
-1408

query I rowsort
SELECT ALL - CASE - 9 WHEN - 99 * + 15 THEN NULL ELSE + 8 * 1 END AS col1
----
-8

query I rowsort
SELECT 38 + 80
----
118

query I rowsort
SELECT ALL 57 * 35
----
1995

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT - COALESCE ( + 2, MIN( ALL - 45 ), 68 ) * - 65 + 93 AS col2
----
223

skipif mysql # not compatible
query I rowsort label-7546
SELECT - COALESCE ( + 2, MIN ( ALL - 45 ), 68 ) * - 65 + 93 AS col2
----
223

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7547
SELECT DISTINCT 92 + 57 DIV ( - CAST( 57 AS SIGNED ) ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-7547
SELECT DISTINCT 92 + 57 / ( - CAST ( 57 AS INTEGER ) ) AS col1
----
91

query I rowsort
SELECT ALL 51 + - 65
----
-14

query I rowsort
SELECT ALL + 7 + + ( 93 ) * 1
----
100

query I rowsort
SELECT + 85 * 77 - + 45 * + 17 col0
----
5780

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT ( 44 ) * - CASE ( + 3 ) * 59 WHEN MIN( DISTINCT 16 ) THEN NULL ELSE - 89 + - 77 * 13 END col0
----
47960

skipif mysql # not compatible
query I rowsort label-7551
SELECT ( 44 ) * - CASE ( + 3 ) * 59 WHEN MIN ( DISTINCT 16 ) THEN NULL ELSE - 89 + - 77 * 13 END col0
----
47960

query I rowsort
SELECT DISTINCT 56 + + 35
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT ( + 42 ) * + COUNT( - 42 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-7553
SELECT ( + 42 ) * + COUNT ( - 42 ) AS col2
----
42

query I rowsort
SELECT ALL 91 + 21 AS col1
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7555
SELECT + COUNT( * ) * CAST( NULL AS SIGNED ) + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-7555
SELECT + COUNT ( * ) * CAST ( NULL AS INTEGER ) + 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT CASE + 91 WHEN - 75 THEN - 36 * + 9 END / + ( COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7556
SELECT CASE + 91 WHEN - 75 THEN - 36 * + 9 END / + ( COUNT ( * ) )
----
NULL

query I rowsort
SELECT 72 + 89 * 86
----
7726

query I rowsort
SELECT 35 * ( - 15 ) - NULLIF ( 7, + 29 + + 6 ) * 87
----
-1134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7559
SELECT DISTINCT NULLIF ( MIN( DISTINCT ( 31 ) ), CASE + COUNT( * ) WHEN - COUNT( + CASE - 38 WHEN + 80 THEN + 45 ELSE - 10 - 53 END ) * + 42 THEN NULL ELSE - NULLIF ( MIN( ALL + 77 ), + 68 ) END + + 50 ) DIV + 72
----
0

skipif mysql # not compatible
query I rowsort label-7559
SELECT DISTINCT NULLIF ( MIN ( DISTINCT ( 31 ) ), CASE + COUNT ( * ) WHEN - COUNT ( + CASE - 38 WHEN + 80 THEN + 45 ELSE - 10 - 53 END ) * + 42 THEN NULL ELSE - NULLIF ( MIN ( ALL + 77 ), + 68 ) END + + 50 ) / + 72
----
0

query I rowsort
SELECT ( - 13 ) + + 12
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT ALL 55 + + COALESCE ( - 47, 24 - - NULLIF ( COUNT( * ), + 38 / - 31 ) * 28 ) * NULLIF ( + 17, - 35 )
----
-744

skipif mysql # not compatible
query I rowsort label-7561
SELECT ALL 55 + + COALESCE ( - 47, 24 - - NULLIF ( COUNT ( * ), + 38 / - 31 ) * 28 ) * NULLIF ( + 17, - 35 )
----
-744

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7562
SELECT + CAST( 90 AS SIGNED ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-7562
SELECT + CAST ( 90 AS INTEGER ) AS col0
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7563
SELECT ALL + ( CASE + 15 WHEN 16 + - ( 70 ) THEN NULLIF ( - MIN( + 1 ), + 88 ) + + 60 WHEN - 34 THEN CAST( NULL AS SIGNED ) + - 56 * - 59 END ) + 22 * 94 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7563
SELECT ALL + ( CASE + 15 WHEN 16 + - ( 70 ) THEN NULLIF ( - MIN ( + 1 ), + 88 ) + + 60 WHEN - 34 THEN CAST ( NULL AS INTEGER ) + - 56 * - 59 END ) + 22 * 94 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7564
SELECT ALL + 81 + 59 DIV 67
----
81

skipif mysql # not compatible
query I rowsort label-7564
SELECT ALL + 81 + 59 / 67
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7565
SELECT DISTINCT - 11 DIV 94 col2
----
0

skipif mysql # not compatible
query I rowsort label-7565
SELECT DISTINCT - 11 / 94 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7566
SELECT + ( MIN( - ( - 98 ) ) ) + 64
----
162

skipif mysql # not compatible
query I rowsort label-7566
SELECT + ( MIN ( - ( - 98 ) ) ) + 64
----
162

query I rowsort
SELECT 83 * + 96 col0
----
7968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7568
SELECT ALL 38 * + CAST( 51 AS SIGNED ) AS col0
----
1938

skipif mysql # not compatible
query I rowsort label-7568
SELECT ALL 38 * + CAST ( 51 AS INTEGER ) AS col0
----
1938

query I rowsort
SELECT ALL 43 - - 48
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT MAX( DISTINCT - 82 ) + + 12 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-7570
SELECT MAX ( DISTINCT - 82 ) + + 12 AS col2
----
-70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7571
SELECT + 35 + CASE 60 - 94 * - 61 WHEN COUNT( * ) THEN CASE NULLIF ( CAST( + 49 AS DECIMAL ), + 28 ) WHEN ( + 81 ) THEN - COUNT( * ) * 24 ELSE NULL END / 12 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7571
SELECT + 35 + CASE 60 - 94 * - 61 WHEN COUNT ( * ) THEN CASE NULLIF ( CAST ( + 49 AS REAL ), + 28 ) WHEN ( + 81 ) THEN - COUNT ( * ) * 24 ELSE NULL END / 12 ELSE NULL END
----
NULL

query I rowsort
SELECT 21 * 91 AS col1
----
1911

query I rowsort
SELECT ALL + CASE 89 WHEN + 45 THEN 29 END AS col1
----
NULL

query I rowsort
SELECT 29 - 10 * + 85
----
-821

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT + COUNT( + 13 ) * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7575
SELECT + COUNT ( + 13 ) * COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT ALL COUNT( 89 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7576
SELECT ALL COUNT ( 89 ) col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7577
SELECT - 85 + + COUNT( * ) DIV - 19
----
-85

skipif mysql # not compatible
query I rowsort label-7577
SELECT - 85 + + COUNT ( * ) / - 19
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7578
SELECT DISTINCT - SUM( DISTINCT - 8 )
----
8

skipif mysql # not compatible
query I rowsort label-7578
SELECT DISTINCT - SUM ( DISTINCT - 8 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT COUNT( * ) + 16 * 62
----
993

skipif mysql # not compatible
query I rowsort label-7579
SELECT COUNT ( * ) + 16 * 62
----
993

query I rowsort
SELECT - 42 * 49
----
-2058

query I rowsort
SELECT 67 + 95 col1
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT - 50 * 29 + COUNT( * )
----
-1449

skipif mysql # not compatible
query I rowsort label-7582
SELECT - 50 * 29 + COUNT ( * )
----
-1449

query I rowsort
SELECT DISTINCT + 93 * + + ( + 4 ) col0
----
372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7584
SELECT ALL COUNT( * ) * + ( CAST( - 95 AS SIGNED ) ) + 97 DIV 2 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-7584
SELECT ALL COUNT ( * ) * + ( CAST ( - 95 AS INTEGER ) ) + 97 / 2 AS col2
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7585
SELECT DISTINCT - CAST( + 20 AS SIGNED ) * 91
----
-1820

skipif mysql # not compatible
query I rowsort label-7585
SELECT DISTINCT - CAST ( + 20 AS INTEGER ) * 91
----
-1820

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT ALL 94 * + COUNT( * ) + - 87 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-7586
SELECT ALL 94 * + COUNT ( * ) + - 87 AS col2
----
7

query I rowsort
SELECT 63 + - 23 * + 35 col2
----
-742

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT ALL 87 * 0 + - 70 * ( + NULLIF ( COUNT( * ), SUM( 72 ) * 11 ) ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-7588
SELECT ALL 87 * 0 + - 70 * ( + NULLIF ( COUNT ( * ), SUM ( 72 ) * 11 ) ) AS col2
----
-70

query I rowsort
SELECT 47 * - 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7590
SELECT + 18 * + 33 + - 99 * SUM( - 54 )
----
5940

skipif mysql # not compatible
query I rowsort label-7590
SELECT + 18 * + 33 + - 99 * SUM ( - 54 )
----
5940

query I rowsort
SELECT + 86 + + + 46
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7592
SELECT - 97 * + CAST( + CASE 86 WHEN - 79 THEN - 58 WHEN - 79 + - 69 / MIN( ALL + 72 * + 15 - - ( + 1 ) ) THEN NULL END AS SIGNED ) * 31
----
NULL

skipif mysql # not compatible
query I rowsort label-7592
SELECT - 97 * + CAST ( + CASE 86 WHEN - 79 THEN - 58 WHEN - 79 + - 69 / MIN ( ALL + 72 * + 15 - - ( + 1 ) ) THEN NULL END AS INTEGER ) * 31
----
NULL

query I rowsort
SELECT ALL + 76 + - 42 + 25 AS col1
----
59

query I rowsort
SELECT + 79 + - 73 + - 86 * 67 AS col0
----
-5756

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7595
SELECT DISTINCT COALESCE ( COUNT( + 43 ), 77 + 42 DIV + 32 ) + + MIN( 86 )
----
87

skipif mysql # not compatible
query I rowsort label-7595
SELECT DISTINCT COALESCE ( COUNT ( + 43 ), 77 + 42 / + 32 ) + + MIN ( 86 )
----
87

query I rowsort
SELECT ALL 61 + 22 AS col2
----
83

query I rowsort
SELECT DISTINCT + 82 - + - ( + 6 )
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-7598
SELECT + ( COALESCE ( 72, - 85 ) ) + 6 DIV + 94
----
72

skipif mysql # not compatible
query I rowsort label-7598
SELECT + ( COALESCE ( 72, - 85 ) ) + 6 / + 94
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT DISTINCT ( + COUNT( DISTINCT 60 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7599
SELECT DISTINCT ( + COUNT ( DISTINCT 60 ) ) AS col1
----
1

query I rowsort
SELECT + - 38 * - 48
----
1824

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT - 10 - + - COUNT( * ) * + 92
----
82

skipif mysql # not compatible
query I rowsort label-7601
SELECT - 10 - + - COUNT ( * ) * + 92
----
82

query I rowsort
SELECT ALL + NULLIF ( - 90, 95 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7603
SELECT + - 94 - COUNT( * ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-7603
SELECT + - 94 - COUNT ( * ) AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT DISTINCT 72 / - CASE 93 WHEN + 91 THEN 89 + COUNT( * ) WHEN 47 THEN NULL ELSE NULL END * ( - NULLIF ( + 74, 43 ) / + 41 ) + + 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7604
SELECT DISTINCT 72 / - CASE 93 WHEN + 91 THEN 89 + COUNT ( * ) WHEN 47 THEN NULL ELSE NULL END * ( - NULLIF ( + 74, 43 ) / + 41 ) + + 92 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT ALL MAX( ALL - 20 ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-7605
SELECT ALL MAX ( ALL - 20 ) AS col1
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7606
SELECT - - CAST( - NULLIF ( + AVG ( - 30 ), + 56 * 91 ) AS SIGNED ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-7606
SELECT - - CAST ( - NULLIF ( + AVG ( - 30 ), + 56 * 91 ) AS INTEGER ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT ALL - ( + - 77 ) * COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-7607
SELECT ALL - ( + - 77 ) * COUNT ( * )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7608
SELECT DISTINCT + COUNT( * ) * + 44 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-7608
SELECT DISTINCT + COUNT ( * ) * + 44 AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT ALL 57 * + - 51 + MIN( DISTINCT + 41 ) AS col0
----
-2866

skipif mysql # not compatible
query I rowsort label-7609
SELECT ALL 57 * + - 51 + MIN ( DISTINCT + 41 ) AS col0
----
-2866

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7610
SELECT - + COUNT( DISTINCT + 71 ) DIV 45
----
0

skipif mysql # not compatible
query I rowsort label-7610
SELECT - + COUNT ( DISTINCT + 71 ) / 45
----
0

query I rowsort
SELECT + + 51 * + + 38 AS col1
----
1938

onlyif mysql # DIV for integer division: 
query I rowsort label-7612
SELECT ALL - 81 + - 31 DIV ( - 15 )
----
-79

skipif mysql # not compatible
query I rowsort label-7612
SELECT ALL - 81 + - 31 / ( - 15 )
----
-79

query I rowsort
SELECT ( - - 21 ) AS col0
----
21

query I rowsort
SELECT - ( - 49 ) + - 62
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7615
SELECT DISTINCT - 89 + - 96 * - - 30 * 41 + - 77 DIV + COUNT( * )
----
-118246

skipif mysql # not compatible
query I rowsort label-7615
SELECT DISTINCT - 89 + - 96 * - - 30 * 41 + - 77 / + COUNT ( * )
----
-118246

query I rowsort
SELECT ALL + 34 + 78 AS col1
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-7617
SELECT ALL - 53 DIV 69 DIV - 80 + 99 * 26
----
2574

skipif mysql # not compatible
query I rowsort label-7617
SELECT ALL - 53 / 69 / - 80 + 99 * 26
----
2574

onlyif mysql # DIV for integer division: 
query I rowsort label-7618
SELECT ALL 27 DIV - 53 * - 83 + 9
----
9

skipif mysql # not compatible
query I rowsort label-7618
SELECT ALL 27 / - 53 * - 83 + 9
----
9

query I rowsort
SELECT - 10 * - 30
----
300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7620
SELECT 35 * + + 86 * 47 - - COUNT( * ) DIV 86 col2
----
141470

skipif mysql # not compatible
query I rowsort label-7620
SELECT 35 * + + 86 * 47 - - COUNT ( * ) / 86 col2
----
141470

query I rowsort
SELECT DISTINCT - 62 * - 56
----
3472

query II rowsort
SELECT + 73 AS col2, + 44 + + 68
----
73
112

query I rowsort
SELECT ALL + NULLIF ( + + NULLIF ( + 14, 72 ), 23 + + 6 / COALESCE ( + 83 * 1, + 27, 21 ) )
----
14

query I rowsort
SELECT ALL - 44 * + - 41
----
1804

query I rowsort
SELECT - 74 + + - 91 - + 71 + + 90 AS col1
----
-146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7626
SELECT + 89 * CAST( 30 AS SIGNED ) + + 81
----
2751

skipif mysql # not compatible
query I rowsort label-7626
SELECT + 89 * CAST ( 30 AS INTEGER ) + + 81
----
2751

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT ALL + COALESCE ( + 47, COUNT( * ) )
----
47

skipif mysql # not compatible
query I rowsort label-7627
SELECT ALL + COALESCE ( + 47, COUNT ( * ) )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT ALL - 45 * - COUNT( * ) * + + 99 * 34 AS col1
----
151470

skipif mysql # not compatible
query I rowsort label-7628
SELECT ALL - 45 * - COUNT ( * ) * + + 99 * 34 AS col1
----
151470

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT ALL + MIN( - - 32 )
----
32

skipif mysql # not compatible
query I rowsort label-7629
SELECT ALL + MIN ( - - 32 )
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7630
SELECT DISTINCT + 40 AS col2, + CAST( NULL AS SIGNED )
----
40
NULL

skipif mysql # not compatible
query II rowsort label-7630
SELECT DISTINCT + 40 AS col2, + CAST ( NULL AS INTEGER )
----
40
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7631
SELECT COALESCE ( 2, + ( CASE - 95 WHEN 49 THEN CASE - ( 41 ) WHEN 20 THEN - 48 * - CASE - MAX( 19 ) WHEN - 4 THEN - 36 ELSE NULL END + ( 95 ) * + ( + COUNT( * ) DIV + MAX( DISTINCT + 20 ) ) WHEN - 14 THEN + MIN( ALL 31 ) END END ), + 17 + 12 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7631
SELECT COALESCE ( 2, + ( CASE - 95 WHEN 49 THEN CASE - ( 41 ) WHEN 20 THEN - 48 * - CASE - MAX ( 19 ) WHEN - 4 THEN - 36 ELSE NULL END + ( 95 ) * + ( + COUNT ( * ) / + MAX ( DISTINCT + 20 ) ) WHEN - 14 THEN + MIN ( ALL 31 ) END END ), + 17 + 12 ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT 89 * + 48 + - + 3 + + 86 + SUM( - 43 - + 29 * 76 ) AS col2
----
2108

skipif mysql # not compatible
query I rowsort label-7632
SELECT 89 * + 48 + - + 3 + + 86 + SUM ( - 43 - + 29 * 76 ) AS col2
----
2108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7633
SELECT - 41 + + 58 + + COUNT( * ) DIV - ( 41 - - COUNT( * ) )
----
17

skipif mysql # not compatible
query I rowsort label-7633
SELECT - 41 + + 58 + + COUNT ( * ) / - ( 41 - - COUNT ( * ) )
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-7634
SELECT ALL - 54 * + + 67 - ( 1 ) DIV 34
----
-3618

skipif mysql # not compatible
query I rowsort label-7634
SELECT ALL - 54 * + + 67 - ( 1 ) / 34
----
-3618

query I rowsort
SELECT - + CASE - - 60 WHEN + 11 THEN - 45 / - 44 END / - 60 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7636
SELECT ALL + + 1 DIV - MAX( DISTINCT - - 21 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-7636
SELECT ALL + + 1 / - MAX ( DISTINCT - - 21 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT + - MAX( - 95 ) * - 75 AS col0
----
-7125

skipif mysql # not compatible
query I rowsort label-7637
SELECT + - MAX ( - 95 ) * - 75 AS col0
----
-7125

query I rowsort
SELECT - + 23 + 24 + + + 69 * 96 AS col2
----
6625

query I rowsort
SELECT ALL - ( 48 ) col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT - - 48 + - 69 * + MIN( 14 ) AS col2
----
-918

skipif mysql # not compatible
query I rowsort label-7640
SELECT - - 48 + - 69 * + MIN ( 14 ) AS col2
----
-918

query I rowsort
SELECT - 30 * 21
----
-630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7642
SELECT DISTINCT + COUNT( * ) * - 94 + + + CAST( CASE 99 WHEN 3 THEN 93 / - CASE - 46 WHEN NULLIF ( + 21, + 84 / - 77 ) * COUNT( * ) THEN + ( - 57 ) ELSE NULL END - 49 / + 96 WHEN CAST( NULL AS SIGNED ) THEN ( 63 ) ELSE COUNT( ALL 91 ) END AS SIGNED ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-7642
SELECT DISTINCT + COUNT ( * ) * - 94 + + + CAST ( CASE 99 WHEN 3 THEN 93 / - CASE - 46 WHEN NULLIF ( + 21, + 84 / - 77 ) * COUNT ( * ) THEN + ( - 57 ) ELSE NULL END - 49 / + 96 WHEN CAST ( NULL AS INTEGER ) THEN ( 63 ) ELSE COUNT ( ALL 91 ) END AS INTEGER ) AS col1
----
-93

query II rowsort
SELECT ALL 13 AS col0, + 92
----
13
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT DISTINCT + MAX( - ( - 87 ) ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-7644
SELECT DISTINCT + MAX ( - ( - 87 ) ) AS col2
----
87

query I rowsort
SELECT ALL - + 46 * ( + 96 ) AS col2
----
-4416

onlyif mysql # aggregate syntax: 
query II rowsort label-7646
SELECT - - 61, 38 * + SUM( ALL + 52 ) AS col0
----
61
1976

skipif mysql # not compatible
query II rowsort label-7646
SELECT - - 61, 38 * + SUM ( ALL + 52 ) AS col0
----
61
1976

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT - COALESCE ( - ( - + COUNT( ALL - 44 ) ), 6 ) + NULLIF ( 90, 30 ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-7647
SELECT - COALESCE ( - ( - + COUNT ( ALL - 44 ) ), 6 ) + NULLIF ( 90, 30 ) AS col1
----
89

query I rowsort
SELECT - - ( + - 33 ) col2
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7649
SELECT ALL + ( - + 95 ) + - ( - ( - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7649
SELECT ALL + ( - + 95 ) + - ( - ( - CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT - COUNT( * ) + + 49 - - 14
----
62

skipif mysql # not compatible
query I rowsort label-7650
SELECT - COUNT ( * ) + + 49 - - 14
----
62

query I rowsort
SELECT + 3 * - 54
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT DISTINCT 72 + - NULLIF ( - 18, - 0 - - ( + 47 ) / + MIN( 66 ) )
----
90

skipif mysql # not compatible
query I rowsort label-7652
SELECT DISTINCT 72 + - NULLIF ( - 18, - 0 - - ( + 47 ) / + MIN ( 66 ) )
----
90

query I rowsort
SELECT DISTINCT ( - - 48 ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT ALL CASE 89 WHEN + COUNT( * ) THEN NULL WHEN + 12 THEN 55 ELSE NULL END + + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-7654
SELECT ALL CASE 89 WHEN + COUNT ( * ) THEN NULL WHEN + 12 THEN 55 ELSE NULL END + + 91
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7655
SELECT ALL 34 * 36 DIV 94
----
13

skipif mysql # not compatible
query I rowsort label-7655
SELECT ALL 34 * 36 / 94
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7656
SELECT DISTINCT MAX( DISTINCT + 31 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-7656
SELECT DISTINCT MAX ( DISTINCT + 31 ) AS col2
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-7657
SELECT - ( + 84 ), + 44 * COUNT( * ) AS col1
----
-84
44

skipif mysql # not compatible
query II rowsort label-7657
SELECT - ( + 84 ), + 44 * COUNT ( * ) AS col1
----
-84
44

query I rowsort
SELECT ALL 28 + + 5 + - 17 + + 15 * + 36 * + 32 AS col2
----
17296

query I rowsort
SELECT + 34 + - 35 + - 30
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT ALL 98 * MAX( ALL ( + - 63 ) ) * 1
----
-6174

skipif mysql # not compatible
query I rowsort label-7660
SELECT ALL 98 * MAX ( ALL ( + - 63 ) ) * 1
----
-6174

query I rowsort
SELECT CASE + + 42 WHEN + 63 THEN + 1 WHEN - 90 THEN NULL END + 78 * - 95 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7662
SELECT MAX( 57 ) + - 54 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-7662
SELECT MAX ( 57 ) + - 54 AS col0
----
3

query I rowsort
SELECT ALL 92 * + - 42 AS col0
----
-3864

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT ( + 39 ) * + - CASE + 71 WHEN COUNT( DISTINCT 25 ) * 27 THEN NULL ELSE - 54 - 2 * 37 END + + 33
----
5025

skipif mysql # not compatible
query I rowsort label-7664
SELECT ( + 39 ) * + - CASE + 71 WHEN COUNT ( DISTINCT 25 ) * 27 THEN NULL ELSE - 54 - 2 * 37 END + + 33
----
5025

onlyif mysql # aggregate syntax: 
query II rowsort label-7665
SELECT 98 - 15, 92 + - 15 + 26 * - COALESCE ( 60, - 28 + - MIN( ALL 44 - - 59 ) ) col1
----
83
-1483

skipif mysql # not compatible
query II rowsort label-7665
SELECT 98 - 15, 92 + - 15 + 26 * - COALESCE ( 60, - 28 + - MIN ( ALL 44 - - 59 ) ) col1
----
83
-1483

onlyif mysql # aggregate syntax: 
query II rowsort label-7666
SELECT DISTINCT 39 * + + 82 AS col2, CASE + 72 WHEN - 38 + + 0 * - COUNT( * ) THEN NULL WHEN 88 THEN NULL ELSE - 68 END
----
3198
-68

skipif mysql # not compatible
query II rowsort label-7666
SELECT DISTINCT 39 * + + 82 AS col2, CASE + 72 WHEN - 38 + + 0 * - COUNT ( * ) THEN NULL WHEN 88 THEN NULL ELSE - 68 END
----
3198
-68

query I rowsort
SELECT DISTINCT 91 - + 1 AS col0
----
90

query I rowsort
SELECT 78 * + 63 * - 41 AS col2
----
-201474

onlyif mysql # DIV for integer division: 
query I rowsort label-7669
SELECT DISTINCT 61 DIV 10
----
6

skipif mysql # not compatible
query I rowsort label-7669
SELECT DISTINCT 61 / 10
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7670
SELECT + COUNT( * ) * COUNT( * ) * + 68
----
68

skipif mysql # not compatible
query I rowsort label-7670
SELECT + COUNT ( * ) * COUNT ( * ) * + 68
----
68

query II rowsort
SELECT ALL - - 98 * + - 3 AS col1, 90 * - 56 AS col2
----
-294
-5040

query I rowsort
SELECT - 88 + - + NULLIF ( - 80, + - 98 ) AS col0
----
-8

query I rowsort
SELECT DISTINCT + 99 * 40 * 91
----
360360

query I rowsort
SELECT DISTINCT - ( - 21 ) * + 71
----
1491

query I rowsort
SELECT ALL - ( + ( 8 ) ) AS col0
----
-8

query I rowsort
SELECT + ( + 98 ) + + 26
----
124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7677
SELECT CAST( 30 AS SIGNED ) col0
----
30

skipif mysql # not compatible
query I rowsort label-7677
SELECT CAST ( 30 AS INTEGER ) col0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7678
SELECT ALL + 56 + CAST( - - 85 AS SIGNED )
----
141

skipif mysql # not compatible
query I rowsort label-7678
SELECT ALL + 56 + CAST ( - - 85 AS INTEGER )
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT 76 - ( + MIN( DISTINCT 20 ) )
----
56

skipif mysql # not compatible
query I rowsort label-7679
SELECT 76 - ( + MIN ( DISTINCT 20 ) )
----
56

query I rowsort
SELECT ALL - 54 + - - 71 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT - COUNT( - + 6 )
----
-1

skipif mysql # not compatible
query I rowsort label-7681
SELECT - COUNT ( - + 6 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7682
SELECT ALL + CAST( NULLIF ( + 85, - + 65 - 8 ) AS SIGNED ) + 35 AS col1
----
120

skipif mysql # not compatible
query I rowsort label-7682
SELECT ALL + CAST ( NULLIF ( + 85, - + 65 - 8 ) AS INTEGER ) + 35 AS col1
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7683
SELECT DISTINCT 95 AS col0, + 97 - + 36 DIV - MIN( ALL + ( 64 ) ) AS col1
----
95
97

skipif mysql # not compatible
query II rowsort label-7683
SELECT DISTINCT 95 AS col0, + 97 - + 36 / - MIN ( ALL + ( 64 ) ) AS col1
----
95
97

query I rowsort
SELECT 73 * + 56 AS col2
----
4088

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT 76 - + - COUNT( + + 63 ) * + - COUNT( ALL + + 7 ) * - COUNT( * ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-7685
SELECT 76 - + - COUNT ( + + 63 ) * + - COUNT ( ALL + + 7 ) * - COUNT ( * ) AS col2
----
77

query I rowsort
SELECT DISTINCT + 62 * - 52 AS col1
----
-3224

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT 57 * - MAX( DISTINCT + 70 ) AS col1
----
-3990

skipif mysql # not compatible
query I rowsort label-7687
SELECT 57 * - MAX ( DISTINCT + 70 ) AS col1
----
-3990

onlyif mysql # DIV for integer division: 
query I rowsort label-7688
SELECT 63 DIV - 37
----
-1

skipif mysql # not compatible
query I rowsort label-7688
SELECT 63 / - 37
----
-1

query I rowsort
SELECT ALL 86 - - 70 * + 6 - + 82 + 29 * + 15 AS col1
----
859

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT DISTINCT CASE 51 WHEN 7 THEN NULL ELSE - 19 END * + 33 - 49 * + SUM( 86 * 50 ) AS col2
----
-211327

skipif mysql # not compatible
query I rowsort label-7690
SELECT DISTINCT CASE 51 WHEN 7 THEN NULL ELSE - 19 END * + 33 - 49 * + SUM ( 86 * 50 ) AS col2
----
-211327

query I rowsort
SELECT ALL ( + 50 ) * 14 AS col0
----
700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7692
SELECT CAST( NULL AS SIGNED ) / - - COUNT( * ) + - 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7692
SELECT CAST ( NULL AS INTEGER ) / - - COUNT ( * ) + - 66 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT MAX( NULLIF ( + - 1, 26 + 43 / - COALESCE ( - 98, 35 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7693
SELECT MAX ( NULLIF ( + - 1, 26 + 43 / - COALESCE ( - 98, 35 ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT COUNT( * ) * 50 * + - 95
----
-4750

skipif mysql # not compatible
query I rowsort label-7694
SELECT COUNT ( * ) * 50 * + - 95
----
-4750

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT CASE + 73 WHEN + 98 THEN - 41 / + 92 END + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7695
SELECT CASE + 73 WHEN + 98 THEN - 41 / + 92 END + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7696
SELECT + 85 * - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7696
SELECT + 85 * - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT DISTINCT - MAX( 33 ) * + 56 * 1 * COUNT( * )
----
-1848

skipif mysql # not compatible
query I rowsort label-7697
SELECT DISTINCT - MAX ( 33 ) * + 56 * 1 * COUNT ( * )
----
-1848

onlyif mysql # aggregate syntax: 
query I rowsort label-7698
SELECT + - COUNT( DISTINCT - 25 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-7698
SELECT + - COUNT ( DISTINCT - 25 ) col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7699
SELECT DISTINCT COALESCE ( 1, - 45 DIV + COUNT( * ) - + - 10 ) + COUNT( * ) DIV 26 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7699
SELECT DISTINCT COALESCE ( 1, - 45 / + COUNT ( * ) - + - 10 ) + COUNT ( * ) / 26 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT ALL + + 71 + COALESCE ( - 20, + NULLIF ( + 88, 47 * + COUNT( * ) ) - + 71 * + 37, + 21 * 22 )
----
51

skipif mysql # not compatible
query I rowsort label-7700
SELECT ALL + + 71 + COALESCE ( - 20, + NULLIF ( + 88, 47 * + COUNT ( * ) ) - + 71 * + 37, + 21 * 22 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT - 63 * + + 84 - SUM( DISTINCT - 19 ) AS col0
----
-5273

skipif mysql # not compatible
query I rowsort label-7701
SELECT - 63 * + + 84 - SUM ( DISTINCT - 19 ) AS col0
----
-5273

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT COUNT( * ) + - 53 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-7702
SELECT COUNT ( * ) + - 53 AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT + COUNT( * ) + + - COUNT( 78 )
----
0

skipif mysql # not compatible
query I rowsort label-7703
SELECT + COUNT ( * ) + + - COUNT ( 78 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT DISTINCT COUNT( * ) + - + 12 + 14 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-7704
SELECT DISTINCT COUNT ( * ) + - + 12 + 14 AS col1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7705
SELECT ALL 23 + + + MAX( - - 18 ) DIV + 62 * 46 * 66 + + 66 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-7705
SELECT ALL 23 + + + MAX ( - - 18 ) / + 62 * 46 * 66 + + 66 AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7706
SELECT + - SUM( DISTINCT + 79 ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-7706
SELECT + - SUM ( DISTINCT + 79 ) AS col1
----
-79

query I rowsort
SELECT 91 + - 82 AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT ALL + SUM( - 25 ) * 37 AS col1
----
-925

skipif mysql # not compatible
query I rowsort label-7708
SELECT ALL + SUM ( - 25 ) * 37 AS col1
----
-925

query II rowsort
SELECT 72 AS col2, + 53 * + ( 9 ) + 53 AS col1
----
72
530

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7710
SELECT ALL + CAST( NULL AS DECIMAL ) + - + 23 + - ( - 0 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7710
SELECT ALL + CAST ( NULL AS REAL ) + - + 23 + - ( - 0 ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT - 39 AS col2, 54 AS col2
----
-39
54

onlyif mysql # aggregate syntax: 
query II rowsort label-7712
SELECT ALL + 55 AS col1, - COUNT( * ) AS col0
----
55
-1

skipif mysql # not compatible
query II rowsort label-7712
SELECT ALL + 55 AS col1, - COUNT ( * ) AS col0
----
55
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7713
SELECT ALL + NULLIF ( + 89, - 24 ) + - - COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-7713
SELECT ALL + NULLIF ( + 89, - 24 ) + - - COUNT ( * )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT + 42 * + 74 + - COUNT( * ) + - + COUNT( * )
----
3106

skipif mysql # not compatible
query I rowsort label-7714
SELECT + 42 * + 74 + - COUNT ( * ) + - + COUNT ( * )
----
3106

query I rowsort
SELECT + 81 * - 2 AS col1
----
-162

query I rowsort
SELECT - 87 * + ( + + 51 ) AS col0
----
-4437

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7717
SELECT - 4 - + CAST( NULL AS SIGNED ) + - 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7717
SELECT - 4 - + CAST ( NULL AS INTEGER ) + - 41 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7718
SELECT DISTINCT - 3 DIV - 13 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7718
SELECT DISTINCT - 3 / - 13 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7719
SELECT ALL + COUNT( * ) - + - 75 DIV + 72
----
2

skipif mysql # not compatible
query I rowsort label-7719
SELECT ALL + COUNT ( * ) - + - 75 / + 72
----
2

query I rowsort
SELECT - 68 + - 12 + + 40
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT - ( - 99 ) * ( - - COUNT( * ) ) col2
----
99

skipif mysql # not compatible
query I rowsort label-7721
SELECT - ( - 99 ) * ( - - COUNT ( * ) ) col2
----
99

query I rowsort
SELECT ALL + 13 * - 69 AS col2
----
-897

query II rowsort
SELECT ALL + 40 * - 29 col0, 46 col2
----
-1160
46

query I rowsort
SELECT - 21 + - - 86 + - 12 AS col1
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7725
SELECT - ( - 68 ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7725
SELECT - ( - 68 ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 14 * + 28 AS col1
----
392

query I rowsort
SELECT + 73 + - 15 AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT + 91 + 36 * 82 * - 38 * + - 24 * - COUNT( * ) AS col2
----
-2692133

skipif mysql # not compatible
query I rowsort label-7728
SELECT + 91 + 36 * 82 * - 38 * + - 24 * - COUNT ( * ) AS col2
----
-2692133

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT ALL + COUNT( - + 56 )
----
1

skipif mysql # not compatible
query I rowsort label-7729
SELECT ALL + COUNT ( - + 56 )
----
1

query II rowsort
SELECT + 92, - 32 * 41 - + + 79 + + 47 + + 74 * + 49 AS col1
----
92
2282

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT NULLIF ( ( - 38 ), - 44 + - + 62 - - 61 * MAX( DISTINCT + 78 * - 30 ) ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-7731
SELECT NULLIF ( ( - 38 ), - 44 + - + 62 - - 61 * MAX ( DISTINCT + 78 * - 30 ) ) AS col1
----
-38

query I rowsort
SELECT NULLIF ( + 12, - 62 + + - 4 ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7733
SELECT + - CASE - SUM( - + 76 ) WHEN + 43 + + COUNT( DISTINCT - - 73 ) * + AVG ( DISTINCT + 42 ) THEN 24 END / 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7733
SELECT + - CASE - SUM ( - + 76 ) WHEN + 43 + + COUNT ( DISTINCT - - 73 ) * + AVG ( DISTINCT + 42 ) THEN 24 END / 14 AS col2
----
NULL

query I rowsort
SELECT ALL - 91 * - + 18 + 80
----
1718

query I rowsort
SELECT + CASE + 92 WHEN + - 57 THEN NULL ELSE - 32 END + 48 * - + 74 * + 37 AS col1
----
-131456

onlyif mysql # DIV for integer division: 
query I rowsort label-7736
SELECT ALL - - 14 DIV + NULLIF ( - 64, - - AVG ( DISTINCT 57 ) ) + - 34 * - 97 AS col1
----
3298

skipif mysql # not compatible
query I rowsort label-7736
SELECT ALL - - 14 / + NULLIF ( - 64, - - AVG ( DISTINCT 57 ) ) + - 34 * - 97 AS col1
----
3298

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7737
SELECT - 35 * + 13 - + 73 / - - CAST( - 27 AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7737
SELECT - 35 * + 13 - + 73 / - - CAST ( - 27 AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7738
SELECT + 42 AS col0, - MAX( - ( + 77 ) ) AS col2
----
42
77

skipif mysql # not compatible
query II rowsort label-7738
SELECT + 42 AS col0, - MAX ( - ( + 77 ) ) AS col2
----
42
77

query I rowsort
SELECT DISTINCT - - 40 * + - 48 + - COALESCE ( - ( + 1 ), - - 1 + + 3 ) + + 73
----
-1846

query II rowsort
SELECT DISTINCT - 4 * - 43 + 99 + - 42, 45 col1
----
229
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT DISTINCT + SUM( DISTINCT - ( 7 ) ) col1
----
-7

skipif mysql # not compatible
query I rowsort label-7741
SELECT DISTINCT + SUM ( DISTINCT - ( 7 ) ) col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT ALL SUM( + 44 ) * - 46 - + + 90 AS col2
----
-2114

skipif mysql # not compatible
query I rowsort label-7742
SELECT ALL SUM ( + 44 ) * - 46 - + + 90 AS col2
----
-2114

query I rowsort
SELECT + 35 + 8 AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT + + MIN( - - COALESCE ( - 49, + - 89 * - 76 + - + 85 ) ) + 18 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-7744
SELECT + + MIN ( - - COALESCE ( - 49, + - 89 * - 76 + - + 85 ) ) + 18 AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT ALL 72 * COALESCE ( 3, 72 ) - - - 46 * + 13 * 87 - 99 * - SUM( ALL + 69 )
----
-44979

skipif mysql # not compatible
query I rowsort label-7745
SELECT ALL 72 * COALESCE ( 3, 72 ) - - - 46 * + 13 * 87 - 99 * - SUM ( ALL + 69 )
----
-44979

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7746
SELECT MIN( DISTINCT + 77 ), - 31 * + 99 * - - COUNT( * ) + COUNT( * ) DIV + 80 AS col2
----
77
-3069

skipif mysql # not compatible
query II rowsort label-7746
SELECT MIN ( DISTINCT + 77 ), - 31 * + 99 * - - COUNT ( * ) + COUNT ( * ) / + 80 AS col2
----
77
-3069

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT MIN( DISTINCT - ( + 30 ) )
----
-30

skipif mysql # not compatible
query I rowsort label-7747
SELECT MIN ( DISTINCT - ( + 30 ) )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT + ( - SUM( + - 98 ) ) - COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-7748
SELECT + ( - SUM ( + - 98 ) ) - COUNT ( * )
----
97

query I rowsort
SELECT - 63 * + - 68 AS col2
----
4284

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7750
SELECT + 27 * - + CAST( - 62 AS SIGNED ) AS col2
----
1674

skipif mysql # not compatible
query I rowsort label-7750
SELECT + 27 * - + CAST ( - 62 AS INTEGER ) AS col2
----
1674

query I rowsort
SELECT ALL COALESCE ( + + 16, - 99, + 83 )
----
16

query II rowsort
SELECT - ( + - 7 ) AS col0, - 56 * + 53
----
7
-2968

query I rowsort
SELECT - 97 * + 65 * 29 AS col1
----
-182845

query I rowsort
SELECT ALL COALESCE ( + 74, 63 * + 84 - + + 3 ) AS col2
----
74

query I rowsort
SELECT - 73 * + + 45
----
-3285

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7756
SELECT DISTINCT ( + COALESCE ( + + 40, - COUNT( * ), + ( + 62 ) DIV + + 35 ) ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-7756
SELECT DISTINCT ( + COALESCE ( + + 40, - COUNT ( * ), + ( + 62 ) / + + 35 ) ) AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT ALL - SUM( DISTINCT + 46 ) + - 9
----
-55

skipif mysql # not compatible
query I rowsort label-7757
SELECT ALL - SUM ( DISTINCT + 46 ) + - 9
----
-55

query I rowsort
SELECT ALL 67 + + 72 AS col1
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT ALL + CASE 56 WHEN COUNT( * ) THEN NULL ELSE - COUNT( * ) END + - - 90
----
89

skipif mysql # not compatible
query I rowsort label-7759
SELECT ALL + CASE 56 WHEN COUNT ( * ) THEN NULL ELSE - COUNT ( * ) END + - - 90
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7760
SELECT ALL - CAST( NULL AS SIGNED ) / - 99 + + COUNT( * ) + + - 48 * 94 + + + ( + CAST( 83 AS SIGNED ) ) * CASE 33 * 93 WHEN 15 THEN 15 + COUNT( 47 ) * - 26 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7760
SELECT ALL - CAST ( NULL AS INTEGER ) / - 99 + + COUNT ( * ) + + - 48 * 94 + + + ( + CAST ( 83 AS INTEGER ) ) * CASE 33 * 93 WHEN 15 THEN 15 + COUNT ( 47 ) * - 26 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT DISTINCT 29 / - 24 * CASE - 39 WHEN - ( COUNT( * ) ) THEN NULL WHEN - 7 - - 92 THEN 54 WHEN + 53 THEN COUNT( * ) WHEN + 81 THEN NULL END + + 66 + + 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7761
SELECT DISTINCT 29 / - 24 * CASE - 39 WHEN - ( COUNT ( * ) ) THEN NULL WHEN - 7 - - 92 THEN 54 WHEN + 53 THEN COUNT ( * ) WHEN + 81 THEN NULL END + + 66 + + 22 AS col2
----
NULL

query I rowsort
SELECT ALL + 10 * 66
----
660

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT - - 30 * COUNT( * ) + + 4 + + 10 * - NULLIF ( + 72, + AVG ( 25 ) + 0 * + 67 ) + + 63 * 35 AS col1
----
1519

skipif mysql # not compatible
query I rowsort label-7763
SELECT - - 30 * COUNT ( * ) + + 4 + + 10 * - NULLIF ( + 72, + AVG ( 25 ) + 0 * + 67 ) + + 63 * 35 AS col1
----
1519

query I rowsort
SELECT - 95 * + 3 AS col1
----
-285

onlyif mysql # DIV for integer division: 
query I rowsort label-7765
SELECT ALL + - 96 DIV - 43 + + 91 + + - CASE + 87 WHEN + 75 - - + 61 THEN 16 ELSE - 7 * 14 END * 1 col0
----
191

skipif mysql # not compatible
query I rowsort label-7765
SELECT ALL + - 96 / - 43 + + 91 + + - CASE + 87 WHEN + 75 - - + 61 THEN 16 ELSE - 7 * 14 END * 1 col0
----
191

query I rowsort
SELECT - + NULLIF ( - 77, - - 70 + - 71 * - 46 ) + + + 8
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT + + 32 * + 20 * - 98 + + COUNT( * ) + - + 36
----
-62755

skipif mysql # not compatible
query I rowsort label-7767
SELECT + + 32 * + 20 * - 98 + + COUNT ( * ) + - + 36
----
-62755

query I rowsort
SELECT DISTINCT - 16 * - - 63 * + + 6 AS col2
----
-6048

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7769
SELECT + CAST( NULL AS SIGNED ) * - 4 + 87 - + + AVG ( + 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7769
SELECT + CAST ( NULL AS INTEGER ) * - 4 + 87 - + + AVG ( + 44 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7770
SELECT ALL - 14 DIV - - 50 + - 73 - 66 * + 39 * 56 * - - MIN( + 58 ) * 55 AS col2
----
-459819433

skipif mysql # not compatible
query I rowsort label-7770
SELECT ALL - 14 / - - 50 + - 73 - 66 * + 39 * 56 * - - MIN ( + 58 ) * 55 AS col2
----
-459819433

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7771
SELECT + - 50 * - 94 / - CASE + - 96 WHEN CAST( + 79 AS SIGNED ) * - - 45 THEN 13 + + ( 87 - - 67 * 93 ) END + 62 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7771
SELECT + - 50 * - 94 / - CASE + - 96 WHEN CAST ( + 79 AS INTEGER ) * - - 45 THEN 13 + + ( 87 - - 67 * 93 ) END + 62 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7772
SELECT DISTINCT - 33 DIV 57 + + + COUNT( - 82 ) * + SUM( DISTINCT + ( 10 ) )
----
10

skipif mysql # not compatible
query I rowsort label-7772
SELECT DISTINCT - 33 / 57 + + + COUNT ( - 82 ) * + SUM ( DISTINCT + ( 10 ) )
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7773
SELECT - 24 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7773
SELECT - 24 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT NULLIF ( + + 13, - 32 ) * + + 30 + - 97 * - 88 * + COUNT( * )
----
8926

skipif mysql # not compatible
query I rowsort label-7774
SELECT NULLIF ( + + 13, - 32 ) * + + 30 + - 97 * - 88 * + COUNT ( * )
----
8926

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7775
SELECT COALESCE ( + 61, - 54 * + COUNT( * ) + 90 ) DIV - - 41 + - - 60 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-7775
SELECT COALESCE ( + 61, - 54 * + COUNT ( * ) + 90 ) / - - 41 + - - 60 AS col0
----
61

query I rowsort
SELECT 73 * - 6 AS col0
----
-438

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7777
SELECT ALL - 12 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7777
SELECT ALL - 12 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7778
SELECT ALL 53 AS col0, - COUNT( DISTINCT - + 96 ) * + ( - + 78 ) + - + ( + COUNT( * ) ) + + 84 + 67 DIV COUNT( * )
----
53
228

skipif mysql # not compatible
query II rowsort label-7778
SELECT ALL 53 AS col0, - COUNT ( DISTINCT - + 96 ) * + ( - + 78 ) + - + ( + COUNT ( * ) ) + + 84 + 67 / COUNT ( * )
----
53
228

query II rowsort
SELECT - 54 AS col0, + 10 col2
----
-54
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT MIN( + ( 96 ) ) - - + 78
----
174

skipif mysql # not compatible
query I rowsort label-7780
SELECT MIN ( + ( 96 ) ) - - + 78
----
174

onlyif mysql # aggregate syntax: 
query II rowsort label-7781
SELECT DISTINCT 61, 1 * - 80 * + - COUNT( * ) AS col1
----
61
80

skipif mysql # not compatible
query II rowsort label-7781
SELECT DISTINCT 61, 1 * - 80 * + - COUNT ( * ) AS col1
----
61
80

query I rowsort
SELECT 27 * - ( + 32 ) * 64
----
-55296

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT 97 + - 2 * + COUNT( * ) * COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-7783
SELECT 97 + - 2 * + COUNT ( * ) * COUNT ( * )
----
95

query I rowsort
SELECT 33 - 22 - + 96
----
-85

query I rowsort
SELECT 17 + - 51 + 37 AS col1
----
3

query I rowsort
SELECT ALL - CASE + ( - 75 ) WHEN - + 44 * - 61 / + 55 THEN NULL WHEN - - 39 * - 74 THEN 41 ELSE NULL END + 41 / - 92
----
NULL

query I rowsort
SELECT DISTINCT 61 * + 99 AS col1
----
6039

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7788
SELECT CAST( NULL AS SIGNED ) + 69 * + 46 + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-7788
SELECT CAST ( NULL AS INTEGER ) + 69 * + 46 + - 26
----
NULL

query I rowsort
SELECT ALL - 22 + + 51 AS col1
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7790
SELECT COALESCE ( 53, - + 53 DIV - SUM( - + ( + 79 ) ) + + CAST( 77 AS SIGNED ) + 95 DIV + 63 ) + + COUNT( * ) DIV ( + ( - 87 ) + + 48 )
----
53

skipif mysql # not compatible
query I rowsort label-7790
SELECT COALESCE ( 53, - + 53 / - SUM ( - + ( + 79 ) ) + + CAST ( 77 AS INTEGER ) + 95 / + 63 ) + + COUNT ( * ) / ( + ( - 87 ) + + 48 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT COALESCE ( CASE + 27 WHEN + 4 THEN NULL ELSE + MIN( DISTINCT 14 ) END, - 86 * 71 * + 72 )
----
14

skipif mysql # not compatible
query I rowsort label-7791
SELECT COALESCE ( CASE + 27 WHEN + 4 THEN NULL ELSE + MIN ( DISTINCT 14 ) END, - 86 * 71 * + 72 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT - COALESCE ( + COUNT( * ), - ( - COUNT( * ) ) ) + 9
----
8

skipif mysql # not compatible
query I rowsort label-7792
SELECT - COALESCE ( + COUNT ( * ), - ( - COUNT ( * ) ) ) + 9
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT DISTINCT + + COUNT( * ) - 5 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-7793
SELECT DISTINCT + + COUNT ( * ) - 5 AS col2
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-7794
SELECT DISTINCT - 29 DIV + ( + - 93 ) * 32
----
0

skipif mysql # not compatible
query I rowsort label-7794
SELECT DISTINCT - 29 / + ( + - 93 ) * 32
----
0

query I rowsort
SELECT ALL + - 72 - 75 * 5 + - ( - 84 ) AS col0
----
-363

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7796
SELECT ALL - ( + + CASE 41 WHEN - - COALESCE ( - + ( - 36 ), + CASE + + 43 WHEN - 57 THEN - 19 WHEN + ( + 93 ) THEN NULL WHEN CAST( + ( + 84 ) AS SIGNED ) THEN - 74 * CAST( NULL AS SIGNED ) ELSE NULL END ) + + 86 * - ( 74 ) THEN 45 + - 62 * 69 WHEN - 31 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7796
SELECT ALL - ( + + CASE 41 WHEN - - COALESCE ( - + ( - 36 ), + CASE + + 43 WHEN - 57 THEN - 19 WHEN + ( + 93 ) THEN NULL WHEN CAST ( + ( + 84 ) AS INTEGER ) THEN - 74 * CAST ( NULL AS INTEGER ) ELSE NULL END ) + + 86 * - ( 74 ) THEN 45 + - 62 * 69 WHEN - 31 THEN NULL ELSE NULL END )
----
NULL

query I rowsort
SELECT + 95 * + 80 - + 58
----
7542

query I rowsort
SELECT CASE CASE - 7 WHEN 17 THEN NULL WHEN - 53 THEN 93 ELSE NULL END WHEN + 91 THEN NULL ELSE + 76 + - 46 * 52 END AS col1
----
-2316

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT ALL + - MAX( DISTINCT - 49 ) - + - 32
----
81

skipif mysql # not compatible
query I rowsort label-7799
SELECT ALL + - MAX ( DISTINCT - 49 ) - + - 32
----
81

query I rowsort
SELECT + COALESCE ( - 46, - 28 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7801
SELECT + NULLIF ( COUNT( * ), + 8 / 13 )
----
1

skipif mysql # not compatible
query I rowsort label-7801
SELECT + NULLIF ( COUNT ( * ), + 8 / 13 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7802
SELECT - 31 * + MIN( + 5 ), - MAX( ALL - + 97 ) + - + 39 col2
----
-155
58

skipif mysql # not compatible
query II rowsort label-7802
SELECT - 31 * + MIN ( + 5 ), - MAX ( ALL - + 97 ) + - + 39 col2
----
-155
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT ALL - + 67 * - - 32 * - - 33 - - + NULLIF ( + 59, - 44 * - COUNT( * ) ) AS col0
----
-70693

skipif mysql # not compatible
query I rowsort label-7803
SELECT ALL - + 67 * - - 32 * - - 33 - - + NULLIF ( + 59, - 44 * - COUNT ( * ) ) AS col0
----
-70693

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7804
SELECT DISTINCT SUM( + 61 ) DIV 66 * + + 39 AS col2, + COALESCE ( + 7, - AVG ( - + 78 ) DIV + 88 * 56 )
----
0
7

skipif mysql # not compatible
query II rowsort label-7804
SELECT DISTINCT SUM ( + 61 ) / 66 * + + 39 AS col2, + COALESCE ( + 7, - AVG ( - + 78 ) / + 88 * 56 )
----
0
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT DISTINCT + MIN( ALL + 89 ) + - COUNT( * ) + CASE - 45 WHEN + 93 THEN NULL WHEN - NULLIF ( + COUNT( * ), + 56 * 74 ) + 48 * 11 THEN NULL WHEN MAX( DISTINCT 68 ) THEN 36 / 78 END + 16 * - 26 / + ( 48 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7805
SELECT DISTINCT + MIN ( ALL + 89 ) + - COUNT ( * ) + CASE - 45 WHEN + 93 THEN NULL WHEN - NULLIF ( + COUNT ( * ), + 56 * 74 ) + 48 * 11 THEN NULL WHEN MAX ( DISTINCT 68 ) THEN 36 / 78 END + 16 * - 26 / + ( 48 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7806
SELECT 72 DIV - COALESCE ( + + 67, - 20 * - ( - 24 ) DIV 9 + 58 * - + 5 + COUNT( - 60 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7806
SELECT 72 / - COALESCE ( + + 67, - 20 * - ( - 24 ) / 9 + 58 * - + 5 + COUNT ( - 60 ) ) AS col2
----
-1

query I rowsort
SELECT 8 + + ( 41 ) col2
----
49

query I rowsort
SELECT 1 + 1 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT 7 * + - COALESCE ( - 72, - - COUNT( * ) )
----
504

skipif mysql # not compatible
query I rowsort label-7809
SELECT 7 * + - COALESCE ( - 72, - - COUNT ( * ) )
----
504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7810
SELECT ALL 73 + + + CAST( NULL AS SIGNED ) + 8 * + CAST( NULL AS SIGNED ) * 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7810
SELECT ALL 73 + + + CAST ( NULL AS INTEGER ) + 8 * + CAST ( NULL AS INTEGER ) * 28 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7811
SELECT DISTINCT - COUNT( * ) * - + ( 45 ) * - 99 AS col1
----
-4455

skipif mysql # not compatible
query I rowsort label-7811
SELECT DISTINCT - COUNT ( * ) * - + ( 45 ) * - 99 AS col1
----
-4455

query I rowsort
SELECT ALL - 92 * - + CASE - 16 WHEN 35 THEN 39 - - 9 WHEN 7 THEN NULL ELSE + 15 + - 73 END AS col2
----
-5336

query I rowsort
SELECT DISTINCT + NULLIF ( - + 43, + 16 ) + + 45 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT ALL ( - 11 ) + - 2 + + - 86 + 12 * COUNT( * ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-7814
SELECT ALL ( - 11 ) + - 2 + + - 86 + 12 * COUNT ( * ) AS col1
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7815
SELECT 73 - - CAST( + 18 AS SIGNED )
----
91

skipif mysql # not compatible
query I rowsort label-7815
SELECT 73 - - CAST ( + 18 AS INTEGER )
----
91

query I rowsort
SELECT - 86 * - - 15
----
-1290

query II rowsort
SELECT NULLIF ( 95, + - 47 + + 10 ) AS col1, 64 col2
----
95
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7818
SELECT + CAST( 95 AS SIGNED ) * - 32
----
-3040

skipif mysql # not compatible
query I rowsort label-7818
SELECT + CAST ( 95 AS INTEGER ) * - 32
----
-3040

query I rowsort
SELECT DISTINCT 0 * + + 79 AS col2
----
0

query I rowsort
SELECT ALL + 66 * + 37
----
2442

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7821
SELECT + + 42 DIV - COUNT( 83 ) - + - 21 DIV 92 - 92 AS col0
----
-134

skipif mysql # not compatible
query I rowsort label-7821
SELECT + + 42 / - COUNT ( 83 ) - + - 21 / 92 - 92 AS col0
----
-134

query I rowsort
SELECT + 19 * - 5 col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT ALL + - SUM( + - ( ( 46 ) ) )
----
46

skipif mysql # not compatible
query I rowsort label-7823
SELECT ALL + - SUM ( + - ( ( 46 ) ) )
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-7824
SELECT + 69 DIV - 95 + - 47
----
-47

skipif mysql # not compatible
query I rowsort label-7824
SELECT + 69 / - 95 + - 47
----
-47

query I rowsort
SELECT - ( + + 94 ) * 62 AS col1
----
-5828

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7826
SELECT - 15 DIV - COUNT( * ) + - - 61
----
76

skipif mysql # not compatible
query I rowsort label-7826
SELECT - 15 / - COUNT ( * ) + - - 61
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7827
SELECT + 59 + - COALESCE ( - 73, 42, + MAX( 98 ) ) AS col0
----
132

skipif mysql # not compatible
query I rowsort label-7827
SELECT + 59 + - COALESCE ( - 73, 42, + MAX ( 98 ) ) AS col0
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7828
SELECT + - CAST( NULL AS SIGNED ) / - + COUNT( DISTINCT + 37 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7828
SELECT + - CAST ( NULL AS INTEGER ) / - + COUNT ( DISTINCT + 37 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7829
SELECT ALL + 23 / CAST( NULL AS DECIMAL ), - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7829
SELECT ALL + 23 / CAST ( NULL AS REAL ), - CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT DISTINCT 36 * - 69 + + 75 + + MAX( + + ( - ( 58 ) ) ) col0
----
-2467

skipif mysql # not compatible
query I rowsort label-7830
SELECT DISTINCT 36 * - 69 + + 75 + + MAX ( + + ( - ( 58 ) ) ) col0
----
-2467

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT - 81 + - - MIN( + 80 )
----
-1

skipif mysql # not compatible
query I rowsort label-7831
SELECT - 81 + - - MIN ( + 80 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7832
SELECT ALL CAST( NULL AS SIGNED ) * + + 55 + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-7832
SELECT ALL CAST ( NULL AS INTEGER ) * + + 55 + 95
----
NULL

query I rowsort
SELECT - 98 * + 40
----
-3920

query I rowsort
SELECT + ( + ( + + COALESCE ( + 33, NULLIF ( + - 42, - 31 ), - - 0 * + 23 ) ) ) AS col2
----
33

query II rowsort
SELECT + 9 col2, - 11
----
9
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7836
SELECT - 45 * ( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7836
SELECT - 45 * ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL 50 * - - 1 AS col1
----
50

query I rowsort
SELECT DISTINCT + ( 41 ) + + 45 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7839
SELECT DISTINCT ( - - SUM( ALL 96 ) ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-7839
SELECT DISTINCT ( - - SUM ( ALL 96 ) ) AS col0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7840
SELECT ALL + 23 DIV - CAST( ( 41 ) AS SIGNED ) * - COALESCE ( - COUNT( * ), - - 15 )
----
0

skipif mysql # not compatible
query I rowsort label-7840
SELECT ALL + 23 / - CAST ( ( 41 ) AS INTEGER ) * - COALESCE ( - COUNT ( * ), - - 15 )
----
0

query I rowsort
SELECT - 32 - + + 36 AS col0
----
-68

query I rowsort
SELECT DISTINCT + 51 + + CASE - 56 WHEN + 26 THEN NULL ELSE + - 11 + - + 52 END AS col0
----
-12

query I rowsort
SELECT - 79 * - + 63 AS col1
----
4977

onlyif mysql # aggregate syntax: 
query I rowsort label-7844
SELECT - 96 + COALESCE ( - 80, - 81 + + 29 + + ( - MIN( - + 63 ) ) + - 1 * + 99, 73 ) * + 91 AS col2
----
-7376

skipif mysql # not compatible
query I rowsort label-7844
SELECT - 96 + COALESCE ( - 80, - 81 + + 29 + + ( - MIN ( - + 63 ) ) + - 1 * + 99, 73 ) * + 91 AS col2
----
-7376

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT ALL ( NULLIF ( 77, SUM( DISTINCT 3 ) + - - 23 ) ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-7845
SELECT ALL ( NULLIF ( 77, SUM ( DISTINCT 3 ) + - - 23 ) ) AS col1
----
77

query I rowsort
SELECT - 72 + + - 82
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT ALL - - 76 - COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-7847
SELECT ALL - - 76 - COUNT ( * )
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7848
SELECT ALL + - COALESCE ( - 19, COALESCE ( 64, 63 - + 78 ) ) DIV 89 * + SUM( + 68 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7848
SELECT ALL + - COALESCE ( - 19, COALESCE ( 64, 63 - + 78 ) ) / 89 * + SUM ( + 68 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7849
SELECT - - 51 + + 26 + + 97 * + CAST( NULL AS SIGNED ) - - CAST( + - 66 AS DECIMAL ) / + MAX( DISTINCT + 86 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7849
SELECT - - 51 + + 26 + + 97 * + CAST ( NULL AS INTEGER ) - - CAST ( + - 66 AS REAL ) / + MAX ( DISTINCT + 86 ) AS col1
----
NULL

query I rowsort
SELECT ALL - 40 - + 83 * + 53 * + 83
----
-365157

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT ALL + - 1 * + MIN( DISTINCT + 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-7851
SELECT ALL + - 1 * + MIN ( DISTINCT + 83 )
----
-83

query I rowsort
SELECT ALL - - 88 - 36
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7853
SELECT + 77 + - - ( + + 86 ) + CAST( + - 64 AS SIGNED ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-7853
SELECT + 77 + - - ( + + 86 ) + CAST ( + - 64 AS INTEGER ) AS col2
----
99

query I rowsort
SELECT + 91 + - + 92 AS col2
----
-1

query I rowsort
SELECT + ( 35 ) col0
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-7856
SELECT - ( MIN( - 65 ) ), 29 AS col2
----
65
29

skipif mysql # not compatible
query II rowsort label-7856
SELECT - ( MIN ( - 65 ) ), 29 AS col2
----
65
29

query I rowsort
SELECT DISTINCT - 5 * + 18
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7858
SELECT ALL - 50 DIV - COALESCE ( - 20, + AVG ( ALL + 29 ) + ( - 44 ) ) + + 75 AS col2, COALESCE ( + 51, COUNT( * ) - ( SUM( ALL + 17 ) ) * + 23 ) AS col2
----
73
51

skipif mysql # not compatible
query II rowsort label-7858
SELECT ALL - 50 / - COALESCE ( - 20, + AVG ( ALL + 29 ) + ( - 44 ) ) + + 75 AS col2, COALESCE ( + 51, COUNT ( * ) - ( SUM ( ALL + 17 ) ) * + 23 ) AS col2
----
73
51

query II rowsort
SELECT ALL + 95 AS col0, + 91 AS col1
----
95
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT + ( 53 ) * + - SUM( DISTINCT + 97 ) + + 29
----
-5112

skipif mysql # not compatible
query I rowsort label-7860
SELECT + ( 53 ) * + - SUM ( DISTINCT + 97 ) + + 29
----
-5112

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT ( + SUM( + 22 ) )
----
22

skipif mysql # not compatible
query I rowsort label-7861
SELECT ( + SUM ( + 22 ) )
----
22

query II rowsort
SELECT ( - - 29 ) AS col1, - 56 AS col2
----
29
-56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7863
SELECT + CAST( NULL AS SIGNED ) AS col0, 6 * + - 4
----
NULL
-24

skipif mysql # not compatible
query II rowsort label-7863
SELECT + CAST ( NULL AS INTEGER ) AS col0, 6 * + - 4
----
NULL
-24

query I rowsort
SELECT + 21 * + 62
----
1302

onlyif mysql # aggregate syntax: 
query I rowsort label-7865
SELECT ALL + MAX( DISTINCT - + 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-7865
SELECT ALL + MAX ( DISTINCT - + 56 )
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7866
SELECT + CAST( + - 9 AS SIGNED )
----
-9

skipif mysql # not compatible
query I rowsort label-7866
SELECT + CAST ( + - 9 AS INTEGER )
----
-9

query I rowsort
SELECT + 15 * - 68
----
-1020

query I rowsort
SELECT ALL - 92 * 89 * 48 AS col0
----
-393024

query I rowsort
SELECT - 32 + + 90
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7870
SELECT - COUNT( * ) + + COUNT( * ) * 81 * + CAST( NULL AS SIGNED ) col0, - 65 + + - CAST( NULL AS SIGNED ) * + 77
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7870
SELECT - COUNT ( * ) + + COUNT ( * ) * 81 * + CAST ( NULL AS INTEGER ) col0, - 65 + + - CAST ( NULL AS INTEGER ) * + 77
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7871
SELECT - CAST( NULL AS SIGNED ) col0, 17 * + COUNT( * ) * - - 71 AS col1
----
NULL
1207

skipif mysql # not compatible
query II rowsort label-7871
SELECT - CAST ( NULL AS INTEGER ) col0, 17 * + COUNT ( * ) * - - 71 AS col1
----
NULL
1207

query I rowsort
SELECT + 55 * + 14
----
770

query I rowsort
SELECT + 31 + - 99
----
-68

query II rowsort
SELECT ALL 84 AS col1, 13
----
84
13

onlyif mysql # aggregate syntax: 
query II rowsort label-7875
SELECT ALL COUNT( * ) AS col1, NULLIF ( + + 42, + ( 67 ) / - 53 ) AS col1
----
1
42

skipif mysql # not compatible
query II rowsort label-7875
SELECT ALL COUNT ( * ) AS col1, NULLIF ( + + 42, + ( 67 ) / - 53 ) AS col1
----
1
42

query I rowsort
SELECT - 92 * + 83 + 43 AS col0
----
-7593

query I rowsort
SELECT 71 * - + 13 AS col0
----
-923

query II rowsort
SELECT + 85 AS col2, CASE + 67 WHEN - 63 THEN - - 48 WHEN + 22 THEN NULL END
----
85
NULL

query I rowsort
SELECT - + ( - - 95 ) col0
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7880
SELECT COUNT( DISTINCT - - 29 ) DIV + - 34
----
0

skipif mysql # not compatible
query I rowsort label-7880
SELECT COUNT ( DISTINCT - - 29 ) / + - 34
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7881
SELECT ALL - - CASE - + SUM( + - 79 ) WHEN - 8 - + AVG ( 7 ) + + + 18 / - COUNT( * ) THEN NULL WHEN - 25 - - + 93 THEN + 74 WHEN + 20 THEN 38 ELSE ( + SUM( ALL + 65 ) ) - - 53 END * - MAX( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7881
SELECT ALL - - CASE - + SUM ( + - 79 ) WHEN - 8 - + AVG ( 7 ) + + + 18 / - COUNT ( * ) THEN NULL WHEN - 25 - - + 93 THEN + 74 WHEN + 20 THEN 38 ELSE ( + SUM ( ALL + 65 ) ) - - 53 END * - MAX ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT DISTINCT - 56 + - + COUNT( * ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-7882
SELECT DISTINCT - 56 + - + COUNT ( * ) AS col2
----
-57

query II rowsort
SELECT + 52, 53 * - 27 - - 45 * - 59 AS col2
----
52
-4086

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7884
SELECT 43 DIV - + MAX( DISTINCT - - 49 )
----
0

skipif mysql # not compatible
query I rowsort label-7884
SELECT 43 / - + MAX ( DISTINCT - - 49 )
----
0

query I rowsort
SELECT ALL - + 94 + + + 32 AS col1
----
-62

query I rowsort
SELECT 20 - - 6
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7887
SELECT - 10 DIV - COALESCE ( + 46, + COALESCE ( - 61, - MAX( + 66 ) ) ) + - - 26
----
26

skipif mysql # not compatible
query I rowsort label-7887
SELECT - 10 / - COALESCE ( + 46, + COALESCE ( - 61, - MAX ( + 66 ) ) ) + - - 26
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT CASE - + COUNT( * ) WHEN + 30 THEN + COALESCE ( + COUNT( * ), - 48 * + 87 + + + 62 + + 75 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7888
SELECT CASE - + COUNT ( * ) WHEN + 30 THEN + COALESCE ( + COUNT ( * ), - 48 * + 87 + + + 62 + + 75 ) ELSE NULL END
----
NULL

query II rowsort
SELECT + + 53, 59 AS col1
----
53
59

query I rowsort
SELECT 1 + - + 84
----
-83

query I rowsort
SELECT DISTINCT 51 * + 78 AS col0
----
3978

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT DISTINCT - COUNT( DISTINCT 75 ) - + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-7892
SELECT DISTINCT - COUNT ( DISTINCT 75 ) - + COUNT ( * )
----
-2

query I rowsort
SELECT ALL 97 * 28 * 13 AS col0
----
35308

onlyif mysql # aggregate syntax: 
query II rowsort label-7894
SELECT ( - + COUNT( * ) ) + 95, 89 + 80 AS col2
----
94
169

skipif mysql # not compatible
query II rowsort label-7894
SELECT ( - + COUNT ( * ) ) + 95, 89 + 80 AS col2
----
94
169

query I rowsort
SELECT 61 * - - 60 AS col2
----
3660

onlyif mysql # DIV for integer division: 
query I rowsort label-7896
SELECT 61 * 51 DIV + 33 + + 19 AS col1
----
113

skipif mysql # not compatible
query I rowsort label-7896
SELECT 61 * 51 / + 33 + + 19 AS col1
----
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7897
SELECT MAX( + 2 ) DIV + 86 * - 20
----
0

skipif mysql # not compatible
query I rowsort label-7897
SELECT MAX ( + 2 ) / + 86 * - 20
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7898
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-7898
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + - 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT - + 36 * - 91 + COUNT( * ) AS col1
----
3277

skipif mysql # not compatible
query I rowsort label-7899
SELECT - + 36 * - 91 + COUNT ( * ) AS col1
----
3277

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT COUNT( DISTINCT 26 )
----
1

skipif mysql # not compatible
query I rowsort label-7900
SELECT COUNT ( DISTINCT 26 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT 27 + - - CASE + ( - + 45 ) WHEN 82 THEN - - 45 * 89 * + 19 WHEN + - 72 + + - COUNT( * ) / + 30 * - 7 THEN NULL WHEN 22 THEN NULL ELSE + 52 END * - 27
----
-1377

skipif mysql # not compatible
query I rowsort label-7901
SELECT 27 + - - CASE + ( - + 45 ) WHEN 82 THEN - - 45 * 89 * + 19 WHEN + - 72 + + - COUNT ( * ) / + 30 * - 7 THEN NULL WHEN 22 THEN NULL ELSE + 52 END * - 27
----
-1377

query I rowsort
SELECT + 89 * + 8
----
712

query I rowsort
SELECT CASE WHEN ( 69 ) BETWEEN 7 AND ( 63 ) THEN - 1 * 16 END * - + 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7904
SELECT ALL 29 + COUNT( * ) + - - 52 + + 75 * + 1
----
157

skipif mysql # not compatible
query I rowsort label-7904
SELECT ALL 29 + COUNT ( * ) + - - 52 + + 75 * + 1
----
157

query I rowsort
SELECT 17 - + 31 * + 13 - + ( + 9 ) + + 50 AS col0
----
-345

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT DISTINCT - COUNT( + 12 ) + + - 64 * - 46 * 39 - + - 25 col1
----
114840

skipif mysql # not compatible
query I rowsort label-7906
SELECT DISTINCT - COUNT ( + 12 ) + + - 64 * - 46 * 39 - + - 25 col1
----
114840

query I rowsort
SELECT ALL 95 + - - 44
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT DISTINCT - ( - SUM( DISTINCT ( + 18 ) ) ) + - 60 * - 76 * 99 + 49
----
451507

skipif mysql # not compatible
query I rowsort label-7908
SELECT DISTINCT - ( - SUM ( DISTINCT ( + 18 ) ) ) + - 60 * - 76 * 99 + 49
----
451507

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7909
SELECT ALL + CAST( NULL AS SIGNED ) + + 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7909
SELECT ALL + CAST ( NULL AS INTEGER ) + + 61 AS col2
----
NULL

query I rowsort
SELECT + 48 + - 59 AS col2
----
-11

query I rowsort
SELECT ( 56 ) * 11 * + - 21
----
-12936

query I rowsort
SELECT + 62 + - - 16 * - 61 - + 67
----
-981

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7913
SELECT COALESCE ( - CAST( + 56 AS SIGNED ), - 59 ) + + 8
----
-48

skipif mysql # not compatible
query I rowsort label-7913
SELECT COALESCE ( - CAST ( + 56 AS INTEGER ), - 59 ) + + 8
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT ALL - 11 + + COUNT( * ) * - + 90 + - 50 * + 90 AS col1
----
-4601

skipif mysql # not compatible
query I rowsort label-7914
SELECT ALL - 11 + + COUNT ( * ) * - + 90 + - 50 * + 90 AS col1
----
-4601

query I rowsort
SELECT 68 * 38
----
2584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7916
SELECT DISTINCT CASE + 34 WHEN - 33 THEN + NULLIF ( - CAST( 40 AS SIGNED ), - 91 * - + 22 ) * + NULLIF ( + 7, - 68 * 74 ) END * + ( 26 ) + + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-7916
SELECT DISTINCT CASE + 34 WHEN - 33 THEN + NULLIF ( - CAST ( 40 AS INTEGER ), - 91 * - + 22 ) * + NULLIF ( + 7, - 68 * 74 ) END * + ( 26 ) + + 93
----
NULL

query I rowsort
SELECT ALL - 9 * NULLIF ( + 30, + 64 ) * + 46 * 1
----
-12420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7918
SELECT DISTINCT - CASE ( - MIN( DISTINCT - 16 ) ) WHEN + 71 THEN NULL WHEN + - 34 * - + CAST( - CASE - 9 WHEN 19 + - - COUNT( * ) * + 2 + - - 58 THEN 80 ELSE NULL END AS SIGNED ) - 34 THEN + 44 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7918
SELECT DISTINCT - CASE ( - MIN ( DISTINCT - 16 ) ) WHEN + 71 THEN NULL WHEN + - 34 * - + CAST ( - CASE - 9 WHEN 19 + - - COUNT ( * ) * + 2 + - - 58 THEN 80 ELSE NULL END AS INTEGER ) - 34 THEN + 44 ELSE NULL END
----
NULL

query I rowsort
SELECT 26 * + 74
----
1924

onlyif mysql # aggregate syntax: 
query II rowsort label-7920
SELECT 7 * - COUNT( * ) * - 37 * - - 84 AS col1, - 90 col2
----
21756
-90

skipif mysql # not compatible
query II rowsort label-7920
SELECT 7 * - COUNT ( * ) * - 37 * - - 84 AS col1, - 90 col2
----
21756
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-7921
SELECT - 10 * COUNT( * ) * - 65 + + 91, 32 AS col1
----
741
32

skipif mysql # not compatible
query II rowsort label-7921
SELECT - 10 * COUNT ( * ) * - 65 + + 91, 32 AS col1
----
741
32

query I rowsort
SELECT DISTINCT - CASE 7 WHEN + + 71 THEN + 3 * - 5 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7923
SELECT 16 * - CAST( + ( ( 2 ) ) AS SIGNED ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-7923
SELECT 16 * - CAST ( + ( ( 2 ) ) AS INTEGER ) AS col0
----
-32

query II rowsort
SELECT 26 - + 90 + + ( - 53 ), - 1 + + + 74 AS col2
----
-117
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT SUM( DISTINCT 38 ) col2
----
38

skipif mysql # not compatible
query I rowsort label-7925
SELECT SUM ( DISTINCT 38 ) col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT DISTINCT - CASE WHEN 92 NOT IN ( + MAX( DISTINCT 30 ), 5, - MIN( ALL 77 ) + ( - 90 ) ) THEN + + 74 END AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-7926
SELECT DISTINCT - CASE WHEN 92 NOT IN ( + MAX ( DISTINCT 30 ), 5, - MIN ( ALL 77 ) + ( - 90 ) ) THEN + + 74 END AS col1
----
-74

query I rowsort
SELECT 42 * - 24 AS col1
----
-1008

query II rowsort
SELECT ALL - 77 AS col2, 91
----
-77
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT ALL 96 * + 11 * - MAX( + - 49 )
----
51744

skipif mysql # not compatible
query I rowsort label-7929
SELECT ALL 96 * + 11 * - MAX ( + - 49 )
----
51744

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7930
SELECT MAX( ALL - ( CAST( NULL AS DECIMAL ) ) ) AS col2, + ( + 63 )
----
NULL
63

skipif mysql # not compatible
query II rowsort label-7930
SELECT MAX ( ALL - ( CAST ( NULL AS REAL ) ) ) AS col2, + ( + 63 )
----
NULL
63

query I rowsort
SELECT - 13 * + 13 * 21
----
-3549

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7932
SELECT + - CASE + CASE + COUNT( * ) WHEN SUM( ALL + 53 ) THEN + COUNT( * ) * CAST( 94 AS SIGNED ) + NULLIF ( + 1, - ( - - CAST( + + 72 AS SIGNED ) ) ) END WHEN COUNT( * ) * - 11 THEN - 60 * - ( + 8 ) + + 15 WHEN + 5 THEN NULL WHEN CAST( COUNT( * ) AS SIGNED ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7932
SELECT + - CASE + CASE + COUNT ( * ) WHEN SUM ( ALL + 53 ) THEN + COUNT ( * ) * CAST ( 94 AS INTEGER ) + NULLIF ( + 1, - ( - - CAST ( + + 72 AS INTEGER ) ) ) END WHEN COUNT ( * ) * - 11 THEN - 60 * - ( + 8 ) + + 15 WHEN + 5 THEN NULL WHEN CAST ( COUNT ( * ) AS INTEGER ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT ALL COUNT( DISTINCT + 87 ) + + - 63 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-7933
SELECT ALL COUNT ( DISTINCT + 87 ) + + - 63 AS col0
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7934
SELECT + 43 DIV COUNT( * ) DIV + 15
----
2

skipif mysql # not compatible
query I rowsort label-7934
SELECT + 43 / COUNT ( * ) / + 15
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7935
SELECT + 83 * - CAST( + 64 AS SIGNED ) - + 30
----
-5342

skipif mysql # not compatible
query I rowsort label-7935
SELECT + 83 * - CAST ( + 64 AS INTEGER ) - + 30
----
-5342

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7936
SELECT ALL 40 / - 71 + + + NULLIF ( + CAST( NULL AS DECIMAL ), - COUNT( * ) / - NULLIF ( - 60, - ( + ( + 74 ) ) * COUNT( * ) ) + + - 93 + - + 10 ) + ( 94 + MAX( 94 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7936
SELECT ALL 40 / - 71 + + + NULLIF ( + CAST ( NULL AS REAL ), - COUNT ( * ) / - NULLIF ( - 60, - ( + ( + 74 ) ) * COUNT ( * ) ) + + - 93 + - + 10 ) + ( 94 + MAX ( 94 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT ALL - ( - COUNT( * ) ) + + 3 * + - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-7937
SELECT ALL - ( - COUNT ( * ) ) + + 3 * + - COUNT ( * ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-7938
SELECT - 81 AS col0, 41 + + COUNT( * ) AS col1
----
-81
42

skipif mysql # not compatible
query II rowsort label-7938
SELECT - 81 AS col0, 41 + + COUNT ( * ) AS col1
----
-81
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7939
SELECT + NULLIF ( 34, - + 11 - + - CAST( - + 37 AS SIGNED ) )
----
34

skipif mysql # not compatible
query I rowsort label-7939
SELECT + NULLIF ( 34, - + 11 - + - CAST ( - + 37 AS INTEGER ) )
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-7940
SELECT ALL - 6 DIV 41
----
0

skipif mysql # not compatible
query I rowsort label-7940
SELECT ALL - 6 / 41
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7941
SELECT + COUNT( * ) DIV - ( - + 65 ) + + - 6 + - 20
----
-26

skipif mysql # not compatible
query I rowsort label-7941
SELECT + COUNT ( * ) / - ( - + 65 ) + + - 6 + - 20
----
-26

query II rowsort
SELECT - - 60 AS col1, + 79 AS col0
----
60
79

query I rowsort
SELECT + 59 * 81 AS col0
----
4779

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7944
SELECT ALL 29 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7944
SELECT ALL 29 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7945
SELECT + COUNT( * ) - - 27 + 94 * + 53 AS col1
----
5010

skipif mysql # not compatible
query I rowsort label-7945
SELECT + COUNT ( * ) - - 27 + 94 * + 53 AS col1
----
5010

onlyif mysql # aggregate syntax: 
query II rowsort label-7946
SELECT ALL 16 col1, COUNT( * ) + + + 78 AS col1
----
16
79

skipif mysql # not compatible
query II rowsort label-7946
SELECT ALL 16 col1, COUNT ( * ) + + + 78 AS col1
----
16
79

onlyif mysql # aggregate syntax: 
query II rowsort label-7947
SELECT DISTINCT - COUNT( * ) AS col1, - 47 + - COUNT( * )
----
-1
-48

skipif mysql # not compatible
query II rowsort label-7947
SELECT DISTINCT - COUNT ( * ) AS col1, - 47 + - COUNT ( * )
----
-1
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7948
SELECT ALL - 54 - CAST( NULL AS SIGNED ) + + COUNT( * ) * - 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7948
SELECT ALL - 54 - CAST ( NULL AS INTEGER ) + + COUNT ( * ) * - 93 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7949
SELECT DISTINCT 87 * - + COUNT( * ) AS col2, 84 AS col0
----
-87
84

skipif mysql # not compatible
query II rowsort label-7949
SELECT DISTINCT 87 * - + COUNT ( * ) AS col2, 84 AS col0
----
-87
84

query I rowsort
SELECT ALL COALESCE ( + + 63, - + ( - 45 ) * - 94 )
----
63

query I rowsort
SELECT - 16 - + + 82 * + 83
----
-6822

query I rowsort
SELECT + COALESCE ( - 94, - 76 ) * + 16
----
-1504

query I rowsort
SELECT 42 * - 49 + - 94
----
-2152

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT - COUNT( * ) * + - 57 - + 38 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-7954
SELECT - COUNT ( * ) * + - 57 - + 38 AS col2
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7955
SELECT + 80 DIV - COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-7955
SELECT + 80 / - COUNT ( * )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT - MAX( + 35 ) * 75
----
-2625

skipif mysql # not compatible
query I rowsort label-7956
SELECT - MAX ( + 35 ) * 75
----
-2625

query I rowsort
SELECT - 32 + + - 48 + + 57 AS col2
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7958
SELECT ALL NULLIF ( + + COUNT( * ), + - 17 / + 77 + + - 39 + + 23 ) / + - 50 - NULLIF ( + ( - 53 ), 88 ) + + 17 + + 90 + CAST( NULL AS SIGNED ) * - 41 * - 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7958
SELECT ALL NULLIF ( + + COUNT ( * ), + - 17 / + 77 + + - 39 + + 23 ) / + - 50 - NULLIF ( + ( - 53 ), 88 ) + + 17 + + 90 + CAST ( NULL AS INTEGER ) * - 41 * - 44 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7959
SELECT - MAX( ALL 71 ) * - 92 * - ( 45 )
----
-293940

skipif mysql # not compatible
query I rowsort label-7959
SELECT - MAX ( ALL 71 ) * - 92 * - ( 45 )
----
-293940

query I rowsort
SELECT DISTINCT + ( 2 ) * - 12
----
-24

query I rowsort
SELECT ALL + 70 * + 85
----
5950

query I rowsort
SELECT + 14 + + 16 AS col0
----
30

query I rowsort
SELECT - 78 + - 84 * - 35 AS col0
----
2862

query I rowsort
SELECT NULLIF ( 68, + 7 ) col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT - 96 * COUNT( * ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-7965
SELECT - 96 * COUNT ( * ) AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT ALL 49 * 61 + + + 32 - 79 * COUNT( * )
----
2942

skipif mysql # not compatible
query I rowsort label-7966
SELECT ALL 49 * 61 + + + 32 - 79 * COUNT ( * )
----
2942

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7967
SELECT ALL 17 * 70 * + - COALESCE ( - 29, - 85 DIV + COUNT( * ) ) + + + 80 * MIN( - + 46 ) AS col1
----
30830

skipif mysql # not compatible
query I rowsort label-7967
SELECT ALL 17 * 70 * + - COALESCE ( - 29, - 85 / + COUNT ( * ) ) + + + 80 * MIN ( - + 46 ) AS col1
----
30830

onlyif mysql # aggregate syntax: 
query I rowsort label-7968
SELECT + MAX( 74 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-7968
SELECT + MAX ( 74 ) AS col0
----
74

query II rowsort
SELECT - + 40 + - 43 AS col0, 44
----
-83
44

query I rowsort
SELECT ALL + + 11 col0
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7971
SELECT CASE - 8 WHEN 14 THEN + SUM( + - 41 ) WHEN + ( - - CAST( NULL AS SIGNED ) ) THEN NULL ELSE - + 89 - - 40 * + 46 - COUNT( * ) END * - + COUNT( + 96 ) * - 41 + - 27
----
71723

skipif mysql # not compatible
query I rowsort label-7971
SELECT CASE - 8 WHEN 14 THEN + SUM ( + - 41 ) WHEN + ( - - CAST ( NULL AS INTEGER ) ) THEN NULL ELSE - + 89 - - 40 * + 46 - COUNT ( * ) END * - + COUNT ( + 96 ) * - 41 + - 27
----
71723

onlyif mysql # aggregate syntax: 
query I rowsort label-7972
SELECT ALL SUM( DISTINCT + - 57 ) * + 30 + + + 0 AS col0
----
-1710

skipif mysql # not compatible
query I rowsort label-7972
SELECT ALL SUM ( DISTINCT + - 57 ) * + 30 + + + 0 AS col0
----
-1710

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT ALL - COALESCE ( + 65, - - COUNT( * ), + 5 + - + 82 + - - 49 ) * ( - 44 ) * + 86 + - NULLIF ( + - 20, - 1 * + COALESCE ( - - 0, - CASE - NULLIF ( 53, - 49 ) WHEN - 54 + + 41 THEN 59 ELSE NULL END * + 61 ) / + 76 + - 68 ) * + 61 AS col2
----
247180

skipif mysql # not compatible
query I rowsort label-7973
SELECT ALL - COALESCE ( + 65, - - COUNT ( * ), + 5 + - + 82 + - - 49 ) * ( - 44 ) * + 86 + - NULLIF ( + - 20, - 1 * + COALESCE ( - - 0, - CASE - NULLIF ( 53, - 49 ) WHEN - 54 + + 41 THEN 59 ELSE NULL END * + 61 ) / + 76 + - 68 ) * + 61 AS col2
----
247180

query II rowsort
SELECT ALL ( + + 19 ) AS col0, + 22
----
19
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT + COALESCE ( - 64, COUNT( DISTINCT 48 ) + - 8 ) - + ( - 15 ) * - COUNT( * ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-7975
SELECT + COALESCE ( - 64, COUNT ( DISTINCT 48 ) + - 8 ) - + ( - 15 ) * - COUNT ( * ) AS col1
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7976
SELECT - - CAST( + COUNT( * ) AS SIGNED ), + 5 AS col1
----
1
5

skipif mysql # not compatible
query II rowsort label-7976
SELECT - - CAST ( + COUNT ( * ) AS INTEGER ), + 5 AS col1
----
1
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT DISTINCT + 20 * COALESCE ( 68, - MAX( DISTINCT - 97 ), - + 60, - 16 ) + - 55 + - + 93
----
1212

skipif mysql # not compatible
query I rowsort label-7977
SELECT DISTINCT + 20 * COALESCE ( 68, - MAX ( DISTINCT - 97 ), - + 60, - 16 ) + - 55 + - + 93
----
1212

query I rowsort
SELECT + - 66 * + 73
----
-4818

query II rowsort
SELECT ALL 13 - - + 44 * - + ( 21 ) AS col1, - 98 - + 93 - - 71 + - + ( + + 45 ) AS col2
----
-911
-165

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7980
SELECT - + COALESCE ( + - 51, - 61 ) + COALESCE ( ( + 28 ), - + 66 * MAX( ALL + - 19 ) ) + - 64 * + 84 - - 95 + COUNT( * ) * + ( + ( COUNT( * ) ) ) DIV 5
----
-5202

skipif mysql # not compatible
query I rowsort label-7980
SELECT - + COALESCE ( + - 51, - 61 ) + COALESCE ( ( + 28 ), - + 66 * MAX ( ALL + - 19 ) ) + - 64 * + 84 - - 95 + COUNT ( * ) * + ( + ( COUNT ( * ) ) ) / 5
----
-5202

query II rowsort
SELECT - - 64 + 47 col1, + 45 + + + COALESCE ( + 95, + 92 ) AS col0
----
111
140

query I rowsort
SELECT DISTINCT + ( - 80 ) col1
----
-80

query I rowsort
SELECT + - 14 + + + 28
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7984
SELECT ALL CASE - 2 WHEN - SUM( ALL CAST( - 41 AS SIGNED ) ) THEN - 99 * 54 END - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7984
SELECT ALL CASE - 2 WHEN - SUM ( ALL CAST ( - 41 AS INTEGER ) ) THEN - 99 * 54 END - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7985
SELECT + 16 + + CAST( NULL AS SIGNED ) + 16 + - 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7985
SELECT + 16 + + CAST ( NULL AS INTEGER ) + 16 + - 61 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7986
SELECT DISTINCT ( - 98 ) DIV - NULLIF ( + MIN( ALL - + 10 ), + CASE + 42 WHEN + 5 THEN NULL WHEN ( + 55 ) THEN + 68 ELSE 15 END * + 63 ) - - 55 - COUNT( * ) * 14
----
32

skipif mysql # not compatible
query I rowsort label-7986
SELECT DISTINCT ( - 98 ) / - NULLIF ( + MIN ( ALL - + 10 ), + CASE + 42 WHEN + 5 THEN NULL WHEN ( + 55 ) THEN + 68 ELSE 15 END * + 63 ) - - 55 - COUNT ( * ) * 14
----
32

query I rowsort
SELECT + 63 * - 22
----
-1386

query I rowsort
SELECT ALL 74 * - 57 AS col1
----
-4218

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7989
SELECT NULLIF ( + COUNT( - 41 ), + - CASE 13 WHEN 90 THEN - ( + CAST( NULL AS SIGNED ) ) + 63 END ) * 81 AS col1, 54 * - 4 AS col0
----
81
-216

skipif mysql # not compatible
query II rowsort label-7989
SELECT NULLIF ( + COUNT ( - 41 ), + - CASE 13 WHEN 90 THEN - ( + CAST ( NULL AS INTEGER ) ) + 63 END ) * 81 AS col1, 54 * - 4 AS col0
----
81
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT ALL ( ( 46 ) ) * + 50 - CASE + 84 WHEN - AVG ( DISTINCT + + 52 ) / - 29 THEN NULL WHEN 45 * - + COUNT( ALL - - 18 ) THEN NULL WHEN 53 THEN - COUNT( * ) + - COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7990
SELECT ALL ( ( 46 ) ) * + 50 - CASE + 84 WHEN - AVG ( DISTINCT + + 52 ) / - 29 THEN NULL WHEN 45 * - + COUNT ( ALL - - 18 ) THEN NULL WHEN 53 THEN - COUNT ( * ) + - COUNT ( * ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( + + 20, + - 19 * 40 ) AS col0
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7992
SELECT DISTINCT CAST( + + COUNT( DISTINCT - 77 ) AS SIGNED ) + 80
----
81

skipif mysql # not compatible
query I rowsort label-7992
SELECT DISTINCT CAST ( + + COUNT ( DISTINCT - 77 ) AS INTEGER ) + 80
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT + 64 * - 71 + COUNT( * )
----
-4543

skipif mysql # not compatible
query I rowsort label-7993
SELECT + 64 * - 71 + COUNT ( * )
----
-4543

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7994
SELECT + 32 AS col0, - 36 + + COUNT( * ) - - 31 DIV + - ( - - 55 ) AS col1
----
32
-35

skipif mysql # not compatible
query II rowsort label-7994
SELECT + 32 AS col0, - 36 + + COUNT ( * ) - - 31 / + - ( - - 55 ) AS col1
----
32
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT ALL 61 + - 26 - - - 57 + 49 * - 66 - + MIN( - - 55 ) col1
----
-3311

skipif mysql # not compatible
query I rowsort label-7995
SELECT ALL 61 + - 26 - - - 57 + 49 * - 66 - + MIN ( - - 55 ) col1
----
-3311

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT DISTINCT - NULLIF ( 13, + 83 * - COUNT( * ) ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-7996
SELECT DISTINCT - NULLIF ( 13, + 83 * - COUNT ( * ) ) AS col2
----
-13

query I rowsort
SELECT ALL + + 27 * + 59
----
1593

query I rowsort
SELECT DISTINCT 34 + 72
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT ALL - COUNT( * ) + - + COUNT( * ) * - + 26 * 90 AS col1
----
2339

skipif mysql # not compatible
query I rowsort label-7999
SELECT ALL - COUNT ( * ) + - + COUNT ( * ) * - + 26 * 90 AS col1
----
2339

query I rowsort
SELECT DISTINCT - + 14 + + 8
----
-6

query I rowsort
SELECT ALL 61 * + 21
----
1281

query I rowsort
SELECT DISTINCT - - 85 * - - 95
----
8075

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT ALL + - COUNT( * ) - - 98
----
97

skipif mysql # not compatible
query I rowsort label-8003
SELECT ALL + - COUNT ( * ) - - 98
----
97

query I rowsort
SELECT + 58 * + + 23
----
1334

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8005
SELECT + 67 DIV - 93 * + + 91 + - 46 + - COUNT( * ) * - 33 DIV + 56
----
-46

skipif mysql # not compatible
query I rowsort label-8005
SELECT + 67 / - 93 * + + 91 + - 46 + - COUNT ( * ) * - 33 / + 56
----
-46

query I rowsort
SELECT - 50 + - 67 AS col1
----
-117

query I rowsort
SELECT ALL ( 42 ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT DISTINCT - MAX( DISTINCT - 92 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-8008
SELECT DISTINCT - MAX ( DISTINCT - 92 ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-8009
SELECT ALL 62 col2, - COUNT( * )
----
62
-1

skipif mysql # not compatible
query II rowsort label-8009
SELECT ALL 62 col2, - COUNT ( * )
----
62
-1

query I rowsort
SELECT - 35 * + 13 * 27 * - 81 AS col2
----
995085

query I rowsort
SELECT - 74 + - + 74 * - ( - 81 )
----
-6068

query I rowsort
SELECT 16 - - 5
----
21

query II rowsort
SELECT 65, 9 * + - 14 AS col2
----
65
-126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8014
SELECT ( + - COUNT( * ) ) * + CASE + 84 WHEN COUNT( * ) THEN NULL ELSE + 8 / + - 71 * + CASE + + MIN( DISTINCT - NULLIF ( + ( - - 35 ), + 40 / - 63 * CAST( NULL AS SIGNED ) ) ) WHEN - + 0 THEN NULL WHEN - ( 5 ) THEN 58 WHEN 83 / 70 THEN NULL ELSE NULL END / + 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8014
SELECT ( + - COUNT ( * ) ) * + CASE + 84 WHEN COUNT ( * ) THEN NULL ELSE + 8 / + - 71 * + CASE + + MIN ( DISTINCT - NULLIF ( + ( - - 35 ), + 40 / - 63 * CAST ( NULL AS INTEGER ) ) ) WHEN - + 0 THEN NULL WHEN - ( 5 ) THEN 58 WHEN 83 / 70 THEN NULL ELSE NULL END / + 84 END
----
NULL

query I rowsort
SELECT 26 - + 90 col0
----
-64

query I rowsort
SELECT ALL 27 + + 13 AS col2
----
40

query I rowsort
SELECT 35 + - 75
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8018
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8018
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8019
SELECT ALL + CAST( NULL AS SIGNED ) + - ( - - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8019
SELECT ALL + CAST ( NULL AS INTEGER ) + - ( - - COUNT ( * ) )
----
NULL

query I rowsort
SELECT 16 * 57 + + - ( + 93 ) * - 41 AS col1
----
4725

query I rowsort
SELECT 70 - + 62 * - 99
----
6208

query I rowsort
SELECT + 60 * 7 + + + 96
----
516

query I rowsort
SELECT 60 + - + 68 * 6 col1
----
-348

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT ALL - MIN( - + 9 )
----
9

skipif mysql # not compatible
query I rowsort label-8024
SELECT ALL - MIN ( - + 9 )
----
9

query II rowsort
SELECT + 35 AS col0, 41 AS col0
----
35
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT ( + 8 ) + COUNT( * ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-8026
SELECT ( + 8 ) + COUNT ( * ) AS col1
----
9

query I rowsort
SELECT ALL 25 + + - 69 AS col2
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8028
SELECT DISTINCT - CAST( 46 AS SIGNED )
----
-46

skipif mysql # not compatible
query I rowsort label-8028
SELECT DISTINCT - CAST ( 46 AS INTEGER )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT ALL 32 * - COUNT( * ) + 68
----
36

skipif mysql # not compatible
query I rowsort label-8029
SELECT ALL 32 * - COUNT ( * ) + 68
----
36

query I rowsort
SELECT ALL 6 + + 59 AS col2
----
65

query I rowsort
SELECT DISTINCT - CASE - 4 WHEN + + 61 * 44 THEN NULL WHEN - + NULLIF ( + 4, 40 ) THEN NULL ELSE + 81 * - 15 + + - NULLIF ( - - 93, + 7 * + 54 ) END AS col0
----
NULL

query I rowsort
SELECT 19 + + + 97 AS col2
----
116

query I rowsort
SELECT + ( ( - 40 ) ) AS col2
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8034
SELECT MAX( 88 ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8034
SELECT MAX ( 88 ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8035
SELECT DISTINCT - + MAX( DISTINCT 75 ) AS col0, + 78 + + 84 + + 48 AS col0
----
-75
210

skipif mysql # not compatible
query II rowsort label-8035
SELECT DISTINCT - + MAX ( DISTINCT 75 ) AS col0, + 78 + + 84 + + 48 AS col0
----
-75
210

query II rowsort
SELECT - + 81, 65 AS col0
----
-81
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8037
SELECT DISTINCT MIN( DISTINCT 30 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-8037
SELECT DISTINCT MIN ( DISTINCT 30 ) AS col2
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8038
SELECT CAST( + 79 AS SIGNED ) + - 65 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-8038
SELECT CAST ( + 79 AS INTEGER ) + - 65 AS col1
----
14

query I rowsort
SELECT ALL + 43 * - 13
----
-559

onlyif mysql # DIV for integer division: 
query I rowsort label-8040
SELECT 20 DIV + 79 col1
----
0

skipif mysql # not compatible
query I rowsort label-8040
SELECT 20 / + 79 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8041
SELECT 55 DIV ( 97 ) * + - 20 col2
----
0

skipif mysql # not compatible
query I rowsort label-8041
SELECT 55 / ( 97 ) * + - 20 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT 26 + COUNT( ALL - - 37 ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-8042
SELECT 26 + COUNT ( ALL - - 37 ) AS col1
----
27

query I rowsort
SELECT ALL ( + 55 ) * + 36 col1
----
1980

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT 35 + ( COUNT( * ) ) + 23 col1
----
59

skipif mysql # not compatible
query I rowsort label-8044
SELECT 35 + ( COUNT ( * ) ) + 23 col1
----
59

query I rowsort
SELECT ALL NULLIF ( 42, + 5 * + 95 + - - 28 ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT ALL + 47 + + + COUNT( * ) + - 90 + 41 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8046
SELECT ALL + 47 + + + COUNT ( * ) + - 90 + 41 AS col1
----
-1

query I rowsort
SELECT DISTINCT - 56 * - 6
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT DISTINCT + 2 + - - 56 - - 1 * COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-8048
SELECT DISTINCT + 2 + - - 56 - - 1 * COUNT ( * )
----
59

query I rowsort
SELECT DISTINCT - 57 * + - 68 * - 93 col1
----
-360468

query II rowsort
SELECT DISTINCT + 2 + + 70 AS col1, - 63 * + 85
----
72
-5355

query I rowsort
SELECT - 67 * 98
----
-6566

query I rowsort
SELECT ALL - 39 * 77
----
-3003

query I rowsort
SELECT ALL + 84 + + - 9 + 22
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8054
SELECT - 19 DIV - 34 * + + 85 * 24 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8054
SELECT - 19 / - 34 * + + 85 * 24 AS col0
----
0

query II rowsort
SELECT DISTINCT + ( 86 ), + 72 * + - 88 * - 17 - - + 38 * + 3 AS col2
----
86
107826

query I rowsort
SELECT ALL 42 * + 70 * + 12 - + - 99 * 64 AS col1
----
41616

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8057
SELECT 34 DIV - COUNT( * ) - 0 - 77
----
-111

skipif mysql # not compatible
query I rowsort label-8057
SELECT 34 / - COUNT ( * ) - 0 - 77
----
-111

query II rowsort
SELECT ALL + ( - + 26 ), 63 AS col1
----
-26
63

query I rowsort
SELECT - + 17 * - - 34 + + 65
----
-513

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8060
SELECT + 83 + - - 97 + - + ( - + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8060
SELECT + 83 + - - 97 + - + ( - + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8061
SELECT + - COUNT( CAST( - - 58 AS SIGNED ) ) * - 65 + + 22 * - 70 AS col1
----
-1475

skipif mysql # not compatible
query I rowsort label-8061
SELECT + - COUNT ( CAST ( - - 58 AS INTEGER ) ) * - 65 + + 22 * - 70 AS col1
----
-1475

onlyif mysql # aggregate syntax: 
query I rowsort label-8062
SELECT + 10 * + + 55 * + ( - COUNT( * ) ) * - 75
----
41250

skipif mysql # not compatible
query I rowsort label-8062
SELECT + 10 * + + 55 * + ( - COUNT ( * ) ) * - 75
----
41250

query I rowsort
SELECT 93 * - 66 - + 32 AS col2
----
-6170

query I rowsort
SELECT ALL + - 23 col1
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-8065
SELECT DISTINCT 41 * - ( ( - NULLIF ( + - 24, - 84 * COUNT( * ) ) ) ) AS col2, + 47 + + COUNT( * ) AS col1
----
-984
48

skipif mysql # not compatible
query II rowsort label-8065
SELECT DISTINCT 41 * - ( ( - NULLIF ( + - 24, - 84 * COUNT ( * ) ) ) ) AS col2, + 47 + + COUNT ( * ) AS col1
----
-984
48

query I rowsort
SELECT ALL + + 46 col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT ALL 51 * + 30 * + + MIN( DISTINCT + 70 )
----
107100

skipif mysql # not compatible
query I rowsort label-8067
SELECT ALL 51 * + 30 * + + MIN ( DISTINCT + 70 )
----
107100

query I rowsort
SELECT + 71 * + - 59 + 23 AS col0
----
-4166

query I rowsort
SELECT DISTINCT 69 * 31 + 49
----
2188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8070
SELECT - 21 * 76 - - 2 + CASE + 93 WHEN - 41 + + - NULLIF ( - 35, + 78 ) + + ( + CASE - - 46 WHEN + 99 * + 46 THEN - 39 + + - 64 WHEN - MIN( - 78 ) + + ( + NULLIF ( + 96, 9 ) ) * 50 THEN NULL WHEN 43 THEN 80 + 46 END ) / + 90 / 72 THEN NULL ELSE 44 * + 48 - + 75 * COUNT( * ) END + - ( + 68 ) * + 75 / - ( AVG ( - CAST( NULL AS SIGNED ) ) / COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8070
SELECT - 21 * 76 - - 2 + CASE + 93 WHEN - 41 + + - NULLIF ( - 35, + 78 ) + + ( + CASE - - 46 WHEN + 99 * + 46 THEN - 39 + + - 64 WHEN - MIN ( - 78 ) + + ( + NULLIF ( + 96, 9 ) ) * 50 THEN NULL WHEN 43 THEN 80 + 46 END ) / + 90 / 72 THEN NULL ELSE 44 * + 48 - + 75 * COUNT ( * ) END + - ( + 68 ) * + 75 / - ( AVG ( - CAST ( NULL AS INTEGER ) ) / COUNT ( * ) )
----
NULL

query I rowsort
SELECT + ( + 92 ) * 55 AS col1
----
5060

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8072
SELECT ALL + + CAST( + 2 AS SIGNED ) * NULLIF ( + - 9, - COUNT( * ) / ( + - 36 ) ) + - 82 + + - COUNT( * )
----
-101

skipif mysql # not compatible
query I rowsort label-8072
SELECT ALL + + CAST ( + 2 AS INTEGER ) * NULLIF ( + - 9, - COUNT ( * ) / ( + - 36 ) ) + - 82 + + - COUNT ( * )
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT ALL + 80 * NULLIF ( 21, + + 2 + - 87 ) * + + 14 + - ( 63 ) * - COUNT( * )
----
23583

skipif mysql # not compatible
query I rowsort label-8073
SELECT ALL + 80 * NULLIF ( 21, + + 2 + - 87 ) * + + 14 + - ( 63 ) * - COUNT ( * )
----
23583

query II rowsort
SELECT ALL 40 AS col0, - 35
----
40
-35

query I rowsort
SELECT DISTINCT ( + + 63 ) + 16 AS col2
----
79

query I rowsort
SELECT ALL - 42 + 20
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8077
SELECT ALL CASE ( + - NULLIF ( + + 39, + CAST( NULL AS SIGNED ) * + 75 + + - 30 + 15 ) ) WHEN - COUNT( * ) + - ( - 72 ) + AVG ( - 34 ) * - 95 THEN NULL ELSE ( - + COUNT( * ) ) * + + 32 END AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-8077
SELECT ALL CASE ( + - NULLIF ( + + 39, + CAST ( NULL AS INTEGER ) * + 75 + + - 30 + 15 ) ) WHEN - COUNT ( * ) + - ( - 72 ) + AVG ( - 34 ) * - 95 THEN NULL ELSE ( - + COUNT ( * ) ) * + + 32 END AS col1
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-8078
SELECT - ( + + MAX( DISTINCT - 13 ) ) AS col0, 95 * + 56 - + + 16
----
13
5304

skipif mysql # not compatible
query II rowsort label-8078
SELECT - ( + + MAX ( DISTINCT - 13 ) ) AS col0, 95 * + 56 - + + 16
----
13
5304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8079
SELECT ALL CAST( NULL AS SIGNED ) + - MAX( DISTINCT 39 ) * - + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-8079
SELECT ALL CAST ( NULL AS INTEGER ) + - MAX ( DISTINCT 39 ) * - + 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT DISTINCT SUM( 85 ) + + 62 * + + 28 AS col0
----
1821

skipif mysql # not compatible
query I rowsort label-8080
SELECT DISTINCT SUM ( 85 ) + + 62 * + + 28 AS col0
----
1821

query I rowsort
SELECT DISTINCT NULLIF ( + + 46, 44 / 93 + - 52 )
----
46

query I rowsort
SELECT ALL + 15 + - 73 * 59
----
-4292

query I rowsort
SELECT - 80 * - 81
----
6480

query I rowsort
SELECT ALL + 16 + 32
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT + COUNT( - NULLIF ( - 48, - 27 * + 90 ) ) - + + 7
----
-6

skipif mysql # not compatible
query I rowsort label-8085
SELECT + COUNT ( - NULLIF ( - 48, - 27 * + 90 ) ) - + + 7
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT - ( + - 11 ) * + - COUNT( * ) + + COUNT( * ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-8086
SELECT - ( + - 11 ) * + - COUNT ( * ) + + COUNT ( * ) AS col2
----
-10

query II rowsort
SELECT ALL NULLIF ( - 59, - 71 ) AS col2, - 91 * + 77 + + - 40 AS col2
----
-59
-7047

query I rowsort
SELECT - 44 + - 85 col0
----
-129

query I rowsort
SELECT ALL 49 - + + 94 * + 48 + - 28 col2
----
-4491

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT DISTINCT COUNT( - 21 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8090
SELECT DISTINCT COUNT ( - 21 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8091
SELECT - 96 + 10 * 64 + COUNT( * ) - NULLIF ( - 91, + 53 + + 71 ) * - CASE - ( + 77 ) WHEN + 42 * 10 * 35 + COUNT( * ) THEN NULL WHEN - 16 - + ( MAX( DISTINCT 99 ) ) + 95 * MIN( DISTINCT - CAST( NULL AS SIGNED ) ) THEN SUM( ALL 86 ) ELSE - 35 * 86 - 26 END
----
276821

skipif mysql # not compatible
query I rowsort label-8091
SELECT - 96 + 10 * 64 + COUNT ( * ) - NULLIF ( - 91, + 53 + + 71 ) * - CASE - ( + 77 ) WHEN + 42 * 10 * 35 + COUNT ( * ) THEN NULL WHEN - 16 - + ( MAX ( DISTINCT 99 ) ) + 95 * MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) THEN SUM ( ALL 86 ) ELSE - 35 * 86 - 26 END
----
276821

onlyif mysql # aggregate syntax: 
query I rowsort label-8092
SELECT ALL NULLIF ( - ( COUNT( * ) ), 83 + - - 51 * - 30 / COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8092
SELECT ALL NULLIF ( - ( COUNT ( * ) ), 83 + - - 51 * - 30 / COUNT ( * ) )
----
-1

query I rowsort
SELECT DISTINCT + 99 - - 86 - 98
----
87

query II rowsort
SELECT - 33 AS col0, 51 + - + 71 AS col2
----
-33
-20

query I rowsort
SELECT + 57 * + 95 + 27 + 37 AS col2
----
5479

query I rowsort
SELECT - 11 * - + 4 * + 35 + 83 + - 79
----
1544

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8097
SELECT - CASE + 5 WHEN 38 - 17 + + + COALESCE ( - 44, - + 66 ) + 36 - - + 75 * + 23 * NULLIF ( + 61, - 64 ) THEN NULL ELSE + 65 + - COUNT( * ) + + + 93 DIV 7 END * 61
----
-4697

skipif mysql # not compatible
query I rowsort label-8097
SELECT - CASE + 5 WHEN 38 - 17 + + + COALESCE ( - 44, - + 66 ) + 36 - - + 75 * + 23 * NULLIF ( + 61, - 64 ) THEN NULL ELSE + 65 + - COUNT ( * ) + + + 93 / 7 END * 61
----
-4697

query II rowsort
SELECT + - 49, ( + - 39 ) AS col0
----
-49
-39

query I rowsort
SELECT ALL + + 65 * - 30 AS col0
----
-1950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8100
SELECT ALL + - 49 * + ( - + 53 ) AS col1, + 67 + CASE - CASE - NULLIF ( 68, + - 94 * - - 14 - + ( + 83 ) * - 40 ) WHEN - + 20 * COUNT( * ) + - 57 * + 82 * - 44 + + COALESCE ( - COUNT( * ), + 93 ) THEN 88 ELSE NULL END WHEN 37 THEN - ( ( ( AVG ( DISTINCT 52 ) ) ) ) WHEN - 45 THEN + COUNT( * ) - CAST( NULL AS SIGNED ) END * 52 AS col1
----
2597
NULL

skipif mysql # not compatible
query II rowsort label-8100
SELECT ALL + - 49 * + ( - + 53 ) AS col1, + 67 + CASE - CASE - NULLIF ( 68, + - 94 * - - 14 - + ( + 83 ) * - 40 ) WHEN - + 20 * COUNT ( * ) + - 57 * + 82 * - 44 + + COALESCE ( - COUNT ( * ), + 93 ) THEN 88 ELSE NULL END WHEN 37 THEN - ( ( ( AVG ( DISTINCT 52 ) ) ) ) WHEN - 45 THEN + COUNT ( * ) - CAST ( NULL AS INTEGER ) END * 52 AS col1
----
2597
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8101
SELECT - - 6 * 70 + - COUNT( * ) AS col0, 94
----
419
94

skipif mysql # not compatible
query II rowsort label-8101
SELECT - - 6 * 70 + - COUNT ( * ) AS col0, 94
----
419
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT DISTINCT + 0 * COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8102
SELECT DISTINCT + 0 * COUNT ( * ) AS col1
----
0

query I rowsort
SELECT ALL + COALESCE ( + 79, + 33 * - 12 )
----
79

onlyif mysql # DIV for integer division: 
query II rowsort label-8104
SELECT 87 AS col0, - 15 + + 60 DIV + - 37 AS col1
----
87
-16

skipif mysql # not compatible
query II rowsort label-8104
SELECT 87 AS col0, - 15 + + 60 / + - 37 AS col1
----
87
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-8105
SELECT ALL + + COUNT( * ) col1, 46
----
1
46

skipif mysql # not compatible
query II rowsort label-8105
SELECT ALL + + COUNT ( * ) col1, 46
----
1
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8106
SELECT ALL - 59 DIV 6 + + 47 + + ( - COALESCE ( - MIN( ALL + ( - 31 ) ), + 18 - - 40 DIV - + ( - - 31 ), - - 56 - + COALESCE ( + 97, + 94 + COUNT( * ) * + 17 DIV - ( - MAX( + CASE 47 WHEN - NULLIF ( - 36, 36 + 39 ) THEN 46 END ) ) ) + + 50 ) ) col0
----
7

skipif mysql # not compatible
query I rowsort label-8106
SELECT ALL - 59 / 6 + + 47 + + ( - COALESCE ( - MIN ( ALL + ( - 31 ) ), + 18 - - 40 / - + ( - - 31 ), - - 56 - + COALESCE ( + 97, + 94 + COUNT ( * ) * + 17 / - ( - MAX ( + CASE 47 WHEN - NULLIF ( - 36, 36 + 39 ) THEN 46 END ) ) ) + + 50 ) ) col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT - COALESCE ( - 53, + + 14 ) + + - 79 + + COUNT( * ) + + - MIN( ( - - 58 ) )
----
-83

skipif mysql # not compatible
query I rowsort label-8107
SELECT - COALESCE ( - 53, + + 14 ) + + - 79 + + COUNT ( * ) + + - MIN ( ( - - 58 ) )
----
-83

query I rowsort
SELECT + 1 + - - 36 col0
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8109
SELECT + 10 DIV + COUNT( * ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-8109
SELECT + 10 / + COUNT ( * ) AS col0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8110
SELECT ALL + + 2 * - - 30 + - 25, + COUNT( * ) + + COUNT( * ) + COUNT( * ) * + CAST( NULL AS SIGNED ) / 51 * + CAST( NULL AS SIGNED ) * + 47 * + - 85 * + + 89 / - 10 + 23 AS col2
----
35
NULL

skipif mysql # not compatible
query II rowsort label-8110
SELECT ALL + + 2 * - - 30 + - 25, + COUNT ( * ) + + COUNT ( * ) + COUNT ( * ) * + CAST ( NULL AS INTEGER ) / 51 * + CAST ( NULL AS INTEGER ) * + 47 * + - 85 * + + 89 / - 10 + 23 AS col2
----
35
NULL

query I rowsort
SELECT - + 79 + - 21
----
-100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8112
SELECT COALESCE ( + 20, - 95 ) * + 29 DIV - COUNT( * ) + - - 73 * + 79 AS col0
----
5187

skipif mysql # not compatible
query I rowsort label-8112
SELECT COALESCE ( + 20, - 95 ) * + 29 / - COUNT ( * ) + - - 73 * + 79 AS col0
----
5187

onlyif mysql # aggregate syntax: 
query I rowsort label-8113
SELECT - MIN( ALL + 77 ) * - + 39
----
3003

skipif mysql # not compatible
query I rowsort label-8113
SELECT - MIN ( ALL + 77 ) * - + 39
----
3003

onlyif mysql # DIV for integer division: 
query I rowsort label-8114
SELECT ALL + - 81 DIV - + 19 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-8114
SELECT ALL + - 81 / - + 19 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT DISTINCT - - COUNT( * ) + MIN( ALL - 8 ) + + - 62 * - 33
----
2039

skipif mysql # not compatible
query I rowsort label-8115
SELECT DISTINCT - - COUNT ( * ) + MIN ( ALL - 8 ) + + - 62 * - 33
----
2039

query I rowsort
SELECT ALL + + 56 + 90
----
146

query I rowsort
SELECT ALL 4 * + - 2 AS col2
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8118
SELECT 45 + - - 79 + - + 10 * - COUNT( CAST( NULL AS SIGNED ) )
----
124

skipif mysql # not compatible
query I rowsort label-8118
SELECT 45 + - - 79 + - + 10 * - COUNT ( CAST ( NULL AS INTEGER ) )
----
124

query I rowsort
SELECT ALL - 83 + - 59 + - 25 * - 30 AS col2
----
608

onlyif mysql # aggregate syntax: 
query II rowsort label-8120
SELECT DISTINCT COUNT( * ) * - 20 col2, - 58
----
-20
-58

skipif mysql # not compatible
query II rowsort label-8120
SELECT DISTINCT COUNT ( * ) * - 20 col2, - 58
----
-20
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8121
SELECT CAST( - 13 AS SIGNED ) + 24 col1
----
11

skipif mysql # not compatible
query I rowsort label-8121
SELECT CAST ( - 13 AS INTEGER ) + 24 col1
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8122
SELECT COUNT( * ) * - - CASE + COUNT( * ) WHEN + - 83 DIV - 65 THEN MAX( ALL - + 12 ) ELSE - 40 + - 81 END * + - ( 83 )
----
996

skipif mysql # not compatible
query I rowsort label-8122
SELECT COUNT ( * ) * - - CASE + COUNT ( * ) WHEN + - 83 / - 65 THEN MAX ( ALL - + 12 ) ELSE - 40 + - 81 END * + - ( 83 )
----
996

onlyif mysql # aggregate syntax: 
query II rowsort label-8123
SELECT 80 + + MAX( + - ( 52 ) ) AS col1, - 61 * - 44
----
28
2684

skipif mysql # not compatible
query II rowsort label-8123
SELECT 80 + + MAX ( + - ( 52 ) ) AS col1, - 61 * - 44
----
28
2684

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT 51 + - NULLIF ( 11, COALESCE ( - 33, - COUNT( * ) / + + 41, 36 ) ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-8124
SELECT 51 + - NULLIF ( 11, COALESCE ( - 33, - COUNT ( * ) / + + 41, 36 ) ) AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT ( + + 92 ) + - + 25 * + + 23 + MAX( ALL 76 ) + + 81 * - - 39 * + 39
----
122794

skipif mysql # not compatible
query I rowsort label-8125
SELECT ( + + 92 ) + - + 25 * + + 23 + MAX ( ALL 76 ) + + 81 * - - 39 * + 39
----
122794

onlyif mysql # DIV for integer division: 
query I rowsort label-8126
SELECT ALL 2 DIV - 77
----
0

skipif mysql # not compatible
query I rowsort label-8126
SELECT ALL 2 / - 77
----
0

query I rowsort
SELECT DISTINCT 61 - - 72 * 51
----
3733

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT COUNT( ALL 49 ) + + + 53 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-8128
SELECT COUNT ( ALL 49 ) + + + 53 AS col0
----
54

query II rowsort
SELECT ALL 55 * - 85 col0, - 41 * + 41 AS col0
----
-4675
-1681

query I rowsort
SELECT 5 + 20 AS col1
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8131
SELECT ( + - 3 ) DIV 52 * 51 - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8131
SELECT ( + - 3 ) / 52 * 51 - COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8132
SELECT + CASE + COUNT( * ) WHEN 2 THEN NULL ELSE 1 * 24 END, - NULLIF ( 36, - - ( + COUNT( * ) ) ) AS col0
----
24
-36

skipif mysql # not compatible
query II rowsort label-8132
SELECT + CASE + COUNT ( * ) WHEN 2 THEN NULL ELSE 1 * 24 END, - NULLIF ( 36, - - ( + COUNT ( * ) ) ) AS col0
----
24
-36

query I rowsort
SELECT 61 * - + 53 + + 33
----
-3200

onlyif mysql # DIV for integer division: 
query I rowsort label-8134
SELECT ALL + + 1 DIV + 65 + + 31 + + 2
----
33

skipif mysql # not compatible
query I rowsort label-8134
SELECT ALL + + 1 / + 65 + + 31 + + 2
----
33

query I rowsort
SELECT 94 + - 44 + + 87
----
137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8136
SELECT DISTINCT - NULLIF ( + CAST( - - 30 AS SIGNED ), 49 )
----
-30

skipif mysql # not compatible
query I rowsort label-8136
SELECT DISTINCT - NULLIF ( + CAST ( - - 30 AS INTEGER ), 49 )
----
-30

query I rowsort
SELECT + 11 * - 24 + + COALESCE ( 88, + 87, - - ( - 85 ) ) * 34 * + + 29
----
86504

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8138
SELECT DISTINCT COALESCE ( CAST( NULL AS DECIMAL ), CAST( NULL AS SIGNED ) - - 90 ) + + 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8138
SELECT DISTINCT COALESCE ( CAST ( NULL AS REAL ), CAST ( NULL AS INTEGER ) - - 90 ) + + 51 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8139
SELECT DISTINCT + 11 * + 89 + - 72 DIV - 26 * - COUNT( * )
----
977

skipif mysql # not compatible
query I rowsort label-8139
SELECT DISTINCT + 11 * + 89 + - 72 / - 26 * - COUNT ( * )
----
977

query I rowsort
SELECT ALL 14 + + ( 72 ) + 83
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT ALL - COUNT( ALL 54 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8141
SELECT ALL - COUNT ( ALL 54 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8142
SELECT + 94, + MIN( - 44 ) col1
----
94
-44

skipif mysql # not compatible
query II rowsort label-8142
SELECT + 94, + MIN ( - 44 ) col1
----
94
-44

query I rowsort
SELECT ALL + 16 - - 78 AS col0
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-8144
SELECT ALL - COALESCE ( - 36, COUNT( * ), + 29 * - 11 ), 84 col2
----
36
84

skipif mysql # not compatible
query II rowsort label-8144
SELECT ALL - COALESCE ( - 36, COUNT ( * ), + 29 * - 11 ), 84 col2
----
36
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT 51 * - + 38 * - COUNT( * )
----
1938

skipif mysql # not compatible
query I rowsort label-8145
SELECT 51 * - + 38 * - COUNT ( * )
----
1938

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT 54 * + SUM( 88 )
----
4752

skipif mysql # not compatible
query I rowsort label-8146
SELECT 54 * + SUM ( 88 )
----
4752

onlyif mysql # aggregate syntax: 
query II rowsort label-8147
SELECT 90 * COUNT( + 83 ), ( + 95 ) + - 81 AS col2
----
90
14

skipif mysql # not compatible
query II rowsort label-8147
SELECT 90 * COUNT ( + 83 ), ( + 95 ) + - 81 AS col2
----
90
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT DISTINCT 56 * - COUNT( * ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-8148
SELECT DISTINCT 56 * - COUNT ( * ) AS col1
----
-56

query I rowsort
SELECT ALL 15 * + 17 AS col1
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT DISTINCT + 35 * + - COUNT( * ) * 15 * COUNT( ALL - 20 ) * + CASE 42 WHEN + 18 / COUNT( DISTINCT + + ( - 30 ) ) THEN + 75 ELSE NULL END * + 25 + - + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-8150
SELECT DISTINCT + 35 * + - COUNT ( * ) * 15 * COUNT ( ALL - 20 ) * + CASE 42 WHEN + 18 / COUNT ( DISTINCT + + ( - 30 ) ) THEN + 75 ELSE NULL END * + 25 + - + 21
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8151
SELECT 60 + + 34 DIV - ( 16 ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-8151
SELECT 60 + + 34 / - ( 16 ) AS col2
----
58

query I rowsort
SELECT 69 + - 15
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT MAX( DISTINCT - ( - 42 ) ) + - 18 * 51
----
-876

skipif mysql # not compatible
query I rowsort label-8153
SELECT MAX ( DISTINCT - ( - 42 ) ) + - 18 * 51
----
-876

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8154
SELECT ( + 43 ) * - CAST( NULL AS DECIMAL ) * + + 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8154
SELECT ( + 43 ) * - CAST ( NULL AS REAL ) * + + 98 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8155
SELECT CAST( NULL AS SIGNED ) / - 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8155
SELECT CAST ( NULL AS INTEGER ) / - 20 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query III rowsort label-8156
SELECT ALL 85 col0, + 73 DIV - 63 AS col0, + 48 * - + 6 AS col0
----
85
-1
-288

skipif mysql # not compatible
query III rowsort label-8156
SELECT ALL 85 col0, + 73 / - 63 AS col0, + 48 * - + 6 AS col0
----
85
-1
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT DISTINCT - SUM( - 86 )
----
86

skipif mysql # not compatible
query I rowsort label-8157
SELECT DISTINCT - SUM ( - 86 )
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8158
SELECT ALL - 11 + CAST( - 3 AS SIGNED ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-8158
SELECT ALL - 11 + CAST ( - 3 AS INTEGER ) AS col2
----
-14

query I rowsort
SELECT 78 + - 21 AS col2
----
57

query I rowsort
SELECT DISTINCT - ( + 27 ) + - 75 + + 95
----
-7

query I rowsort
SELECT ALL 73 + 35 - 72 + - + 15
----
21

query II rowsort
SELECT - 30 AS col2, - ( + + 22 )
----
-30
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8163
SELECT + 56 - - + ( + COUNT( * ) ) * + CAST( NULL AS SIGNED ) + 48 * + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-8163
SELECT + 56 - - + ( + COUNT ( * ) ) * + CAST ( NULL AS INTEGER ) + 48 * + 17
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8164
SELECT + 65 DIV 56 + - CASE - 3 WHEN 77 + + 35 THEN NULL ELSE + SUM( DISTINCT - 7 ) * - 4 + - + 1 END AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-8164
SELECT + 65 / 56 + - CASE - 3 WHEN 77 + + 35 THEN NULL ELSE + SUM ( DISTINCT - 7 ) * - 4 + - + 1 END AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT DISTINCT - 29 * - 38 * + 4 + + COUNT( - NULLIF ( - 13, - 35 ) )
----
4409

skipif mysql # not compatible
query I rowsort label-8165
SELECT DISTINCT - 29 * - 38 * + 4 + + COUNT ( - NULLIF ( - 13, - 35 ) )
----
4409

query I rowsort
SELECT + + NULLIF ( - 18, - 25 ) col2
----
-18

query II rowsort
SELECT 98 col1, - 72
----
98
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT DISTINCT - COUNT( * ) * 37 + + + 81
----
44

skipif mysql # not compatible
query I rowsort label-8168
SELECT DISTINCT - COUNT ( * ) * 37 + + + 81
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8169
SELECT DISTINCT + COUNT( * ) * MIN( DISTINCT - 54 ) + - 7 + + COALESCE ( - CAST( + + NULLIF ( - 85, - 79 * + 24 / - + 64 / + COUNT( * ) + + 67 ) AS SIGNED ), 71 * + - 9 + + 65 ) * - - 54 * - + MAX( DISTINCT - + 71 ) * - 69
----
-22486471

skipif mysql # not compatible
query I rowsort label-8169
SELECT DISTINCT + COUNT ( * ) * MIN ( DISTINCT - 54 ) + - 7 + + COALESCE ( - CAST ( + + NULLIF ( - 85, - 79 * + 24 / - + 64 / + COUNT ( * ) + + 67 ) AS INTEGER ), 71 * + - 9 + + 65 ) * - - 54 * - + MAX ( DISTINCT - + 71 ) * - 69
----
-22486471

query I rowsort
SELECT ALL + 57 * + + 63 + 47 + + 25
----
3663

query I rowsort
SELECT ALL + 28 * - 68 * 78 + - 17 + 84 * 1
----
-148445

query I rowsort
SELECT ALL 18 * + 42 + - - 17
----
773

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT + + SUM( 48 )
----
48

skipif mysql # not compatible
query I rowsort label-8173
SELECT + + SUM ( 48 )
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-8174
SELECT - 93 DIV 75 + - + 98 - - 9 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-8174
SELECT - 93 / 75 + - + 98 - - 9 AS col2
----
-90

query I rowsort
SELECT - - ( - + 82 ) * + 16 AS col1
----
-1312

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8176
SELECT DISTINCT + NULLIF ( + 57, + - 38 / + 40 * + + ( 73 ) - - COALESCE ( - + CAST( + - 44 AS DECIMAL ), - 76 ) ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-8176
SELECT DISTINCT + NULLIF ( + 57, + - 38 / + 40 * + + ( 73 ) - - COALESCE ( - + CAST ( + - 44 AS REAL ), - 76 ) ) AS col0
----
57

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8177
SELECT ALL CAST( NULL AS DECIMAL ) * - 13 / - 75 - + COALESCE ( - 73, - 15 * 6, + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8177
SELECT ALL CAST ( NULL AS REAL ) * - 13 / - 75 - + COALESCE ( - 73, - 15 * 6, + COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8178
SELECT ALL + 29 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8178
SELECT ALL + 29 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT + COUNT( ALL 62 ) * 48 * 78
----
3744

skipif mysql # not compatible
query I rowsort label-8179
SELECT + COUNT ( ALL 62 ) * 48 * 78
----
3744

query II rowsort
SELECT + 47 AS col2, ( 36 ) AS col1
----
47
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8181
SELECT ALL - 21 * NULLIF ( + + CASE - 83 WHEN NULLIF ( - 10, 55 ) THEN + 6 WHEN - + CAST( NULL AS SIGNED ) THEN NULL ELSE 4 END, - 49 ) col0
----
-84

skipif mysql # not compatible
query I rowsort label-8181
SELECT ALL - 21 * NULLIF ( + + CASE - 83 WHEN NULLIF ( - 10, 55 ) THEN + 6 WHEN - + CAST ( NULL AS INTEGER ) THEN NULL ELSE 4 END, - 49 ) col0
----
-84

query II rowsort
SELECT ALL + 41, + 48 AS col1
----
41
48

query I rowsort
SELECT - 85 * + ( - + 16 )
----
1360

query I rowsort
SELECT - 91 + + + 58
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT DISTINCT NULLIF ( - + 44, ( - COUNT( + + 23 ) ) ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-8185
SELECT DISTINCT NULLIF ( - + 44, ( - COUNT ( + + 23 ) ) ) AS col1
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8186
SELECT DISTINCT - 67 DIV + MIN( DISTINCT - 96 )
----
0

skipif mysql # not compatible
query I rowsort label-8186
SELECT DISTINCT - 67 / + MIN ( DISTINCT - 96 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8187
SELECT + 43 + - 93 + + - COUNT( * ) / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8187
SELECT + 43 + - 93 + + - COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT 24, 59 * 21 AS col1
----
24
1239

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT ALL MAX( 89 )
----
89

skipif mysql # not compatible
query I rowsort label-8189
SELECT ALL MAX ( 89 )
----
89

query I rowsort
SELECT ALL + 95 + - - 14
----
109

query II rowsort
SELECT ALL 1 + - + 17 AS col0, + 73
----
-16
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8192
SELECT - 4 DIV + 3 + + ( + + COUNT( * ) ) * + NULLIF ( 6, - 43 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-8192
SELECT - 4 / + 3 + + ( + + COUNT ( * ) ) * + NULLIF ( 6, - 43 ) AS col2
----
5

query II rowsort
SELECT DISTINCT - 6 col2, 83 AS col1
----
-6
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT DISTINCT - 13 + + 71 + + COUNT( * ) + + 8 * - 3 - + - MIN( 93 ) AS col2
----
128

skipif mysql # not compatible
query I rowsort label-8194
SELECT DISTINCT - 13 + + 71 + + COUNT ( * ) + + 8 * - 3 - + - MIN ( 93 ) AS col2
----
128

query I rowsort
SELECT ALL + NULLIF ( - + 14, - + ( + - 21 ) + 69 / + 43 * + - 30 ) + + 29 * 74 * 30
----
64366

query I rowsort
SELECT ALL - 80 + 70 + - - 35 AS col2
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8197
SELECT DISTINCT + 21 + + CAST( COUNT( * ) AS SIGNED ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-8197
SELECT DISTINCT + 21 + + CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
22

query II rowsort
SELECT - + 57 AS col2, - 10 AS col1
----
-57
-10

query III rowsort
SELECT 19 AS col0, + 23 * 78 * + 46 col2, + 6 col0
----
19
82524
6

onlyif mysql # aggregate syntax: 
query II rowsort label-8200
SELECT ALL + COUNT( * ), COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-8200
SELECT ALL + COUNT ( * ), COUNT ( * ) AS col1
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT + 20 * - 42 + NULLIF ( - + 57, 78 ) * - SUM( + 55 )
----
2295

skipif mysql # not compatible
query I rowsort label-8201
SELECT + 20 * - 42 + NULLIF ( - + 57, 78 ) * - SUM ( + 55 )
----
2295

onlyif mysql # aggregate syntax: 
query II rowsort label-8202
SELECT COUNT( * ) AS col1, 72 AS col2
----
1
72

skipif mysql # not compatible
query II rowsort label-8202
SELECT COUNT ( * ) AS col1, 72 AS col2
----
1
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8203
SELECT ALL + COUNT( * ) DIV + 37 + - MIN( - 90 ) * COUNT( ALL + - 28 ) - - + COUNT( * ) * + 35
----
125

skipif mysql # not compatible
query I rowsort label-8203
SELECT ALL + COUNT ( * ) / + 37 + - MIN ( - 90 ) * COUNT ( ALL + - 28 ) - - + COUNT ( * ) * + 35
----
125

query II rowsort
SELECT + 93 AS col1, 73 * 75 AS col0
----
93
5475

onlyif mysql # DIV for integer division: 
query I rowsort label-8205
SELECT ALL + ( + 37 ) DIV 34 - - + 22 * - ( - - 73 ) + + 70 AS col2
----
-1535

skipif mysql # not compatible
query I rowsort label-8205
SELECT ALL + ( + 37 ) / 34 - - + 22 * - ( - - 73 ) + + 70 AS col2
----
-1535

query II rowsort
SELECT DISTINCT + - 49 AS col0, + 30 AS col1
----
-49
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8207
SELECT ALL COALESCE ( + - 48, 54 - 64 + CAST( 38 AS SIGNED ) ) * + 54 AS col2, 73
----
-2592
73

skipif mysql # not compatible
query II rowsort label-8207
SELECT ALL COALESCE ( + - 48, 54 - 64 + CAST ( 38 AS INTEGER ) ) * + 54 AS col2, 73
----
-2592
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT + 97 * + COUNT( * ) * - NULLIF ( + + ( + 96 ), 48 ) AS col2
----
-9312

skipif mysql # not compatible
query I rowsort label-8208
SELECT + 97 * + COUNT ( * ) * - NULLIF ( + + ( + 96 ), 48 ) AS col2
----
-9312

query I rowsort
SELECT COALESCE ( 54, 22 )
----
54

query I rowsort
SELECT COALESCE ( + 22, - + 78 ) col0
----
22

query I rowsort
SELECT - 67 * + ( - 51 )
----
3417

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT CASE + - 30 WHEN + - 73 THEN - MAX( + 99 ) ELSE - 47 END AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-8212
SELECT CASE + - 30 WHEN + - 73 THEN - MAX ( + 99 ) ELSE - 47 END AS col2
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8213
SELECT ALL - 97 * - 6 + 79 * + NULLIF ( - ( ( + 39 ) ), CAST( NULL AS SIGNED ) + - 94 )
----
-2499

skipif mysql # not compatible
query I rowsort label-8213
SELECT ALL - 97 * - 6 + 79 * + NULLIF ( - ( ( + 39 ) ), CAST ( NULL AS INTEGER ) + - 94 )
----
-2499

query I rowsort
SELECT - 31 * ( - 54 ) * + 80
----
133920

onlyif mysql # aggregate syntax: 
query II rowsort label-8215
SELECT ALL MAX( ALL - 45 ) col1, 52 AS col2
----
-45
52

skipif mysql # not compatible
query II rowsort label-8215
SELECT ALL MAX ( ALL - 45 ) col1, 52 AS col2
----
-45
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8216
SELECT ALL - CAST( 9 AS SIGNED ) * 99 + - 97 * + + 40 + - 40 + - COUNT( * ) + - - ( 7 ) - - 33 col0
----
-4772

skipif mysql # not compatible
query I rowsort label-8216
SELECT ALL - CAST ( 9 AS INTEGER ) * 99 + - 97 * + + 40 + - 40 + - COUNT ( * ) + - - ( 7 ) - - 33 col0
----
-4772

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT DISTINCT CASE + NULLIF ( 5, - 57 ) WHEN + 45 + - 27 + + ( COUNT( * ) ) + + COALESCE ( + + 40, - + 63 ) THEN NULL ELSE - - ( + + 72 ) END
----
72

skipif mysql # not compatible
query I rowsort label-8217
SELECT DISTINCT CASE + NULLIF ( 5, - 57 ) WHEN + 45 + - 27 + + ( COUNT ( * ) ) + + COALESCE ( + + 40, - + 63 ) THEN NULL ELSE - - ( + + 72 ) END
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT ALL - ( + + CASE - - SUM( DISTINCT - - 57 ) WHEN - COUNT( * ) * 16 THEN - 75 * - + COUNT( * ) * + 46 WHEN - 79 * - 91 * + CASE + 95 WHEN + + 84 + - 63 * + COUNT( DISTINCT + + 69 ) THEN NULL ELSE + ( 61 ) / 14 * 1 END / + 85 * 48 + 76 + + 34 THEN NULL WHEN 10 THEN NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8218
SELECT ALL - ( + + CASE - - SUM ( DISTINCT - - 57 ) WHEN - COUNT ( * ) * 16 THEN - 75 * - + COUNT ( * ) * + 46 WHEN - 79 * - 91 * + CASE + 95 WHEN + + 84 + - 63 * + COUNT ( DISTINCT + + 69 ) THEN NULL ELSE + ( 61 ) / 14 * 1 END / + 85 * 48 + 76 + + 34 THEN NULL WHEN 10 THEN NULL END ) AS col2
----
NULL

query I rowsort
SELECT NULLIF ( - 81, - + 10 * - + 58 * - NULLIF ( 32, + 12 ) )
----
-81

query I rowsort
SELECT - 69 + + 57
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-8221
SELECT - COUNT( * ) DIV - 70, COALESCE ( + - 10, - - 71 ) AS col2, - 20 + 55 + + 62 * - - 53 AS col0
----
0
-10
3321

skipif mysql # not compatible
query III rowsort label-8221
SELECT - COUNT ( * ) / - 70, COALESCE ( + - 10, - - 71 ) AS col2, - 20 + 55 + + 62 * - - 53 AS col0
----
0
-10
3321

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query III rowsort label-8222
SELECT ALL - - 14 + - - 98, - COUNT( DISTINCT - 19 ) DIV 43 AS col0, - + CAST( NULL AS DECIMAL ) col1
----
112
0
NULL

skipif mysql # not compatible
query III rowsort label-8222
SELECT ALL - - 14 + - - 98, - COUNT ( DISTINCT - 19 ) / 43 AS col0, - + CAST ( NULL AS REAL ) col1
----
112
0
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8223
SELECT DISTINCT + + 89 DIV COUNT( * ) - - - 2
----
87

skipif mysql # not compatible
query I rowsort label-8223
SELECT DISTINCT + + 89 / COUNT ( * ) - - - 2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT ALL + - 39 * - MAX( ALL - + 12 ) - + - 74 AS col1
----
-394

skipif mysql # not compatible
query I rowsort label-8224
SELECT ALL + - 39 * - MAX ( ALL - + 12 ) - + - 74 AS col1
----
-394

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT + COUNT( * ) + CASE 39 WHEN + 97 THEN - COUNT( * ) / 91 + + - 67 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8225
SELECT + COUNT ( * ) + CASE 39 WHEN + 97 THEN - COUNT ( * ) / 91 + + - 67 END
----
NULL

query I rowsort
SELECT 10 + + 32 AS col2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8227
SELECT ALL - CASE + - 79 WHEN 98 + - - 47 THEN NULL ELSE + CAST( NULL AS SIGNED ) * - + 35 + + 81 END * COALESCE ( 79, 13 ) * - - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-8227
SELECT ALL - CASE + - 79 WHEN 98 + - - 47 THEN NULL ELSE + CAST ( NULL AS INTEGER ) * - + 35 + + 81 END * COALESCE ( 79, 13 ) * - - 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT CASE 45 WHEN MIN( DISTINCT - 72 ) THEN - 42 * + 8 ELSE NULL END + - - ( 54 ) + + 65 - 30 * + - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-8228
SELECT CASE 45 WHEN MIN ( DISTINCT - 72 ) THEN - 42 * + 8 ELSE NULL END + - - ( 54 ) + + 65 - 30 * + - 34
----
NULL

query I rowsort
SELECT ALL - ( 27 ) AS col2
----
-27

query I rowsort
SELECT DISTINCT COALESCE ( - 22, + 93 ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT - + SUM( - - 38 ) col0
----
-38

skipif mysql # not compatible
query I rowsort label-8231
SELECT - + SUM ( - - 38 ) col0
----
-38

query I rowsort
SELECT + + 13 * + + ( + - 4 ) + + 36 + 57
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT ALL + 41 - - COUNT( * ) + - ( 88 ) + - 12 col2
----
-58

skipif mysql # not compatible
query I rowsort label-8233
SELECT ALL + 41 - - COUNT ( * ) + - ( 88 ) + - 12 col2
----
-58

query I rowsort
SELECT + NULLIF ( - 87, + - 4 )
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8235
SELECT ALL - CAST( - 83 AS SIGNED ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-8235
SELECT ALL - CAST ( - 83 AS INTEGER ) AS col1
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-8236
SELECT 55 AS col2, MAX( 49 )
----
55
49

skipif mysql # not compatible
query II rowsort label-8236
SELECT 55 AS col2, MAX ( 49 )
----
55
49

query I rowsort
SELECT ALL 92 * + + 25
----
2300

onlyif mysql # aggregate syntax: 
query II rowsort label-8238
SELECT + 0 AS col0, COUNT( * ) + + - 84
----
0
-83

skipif mysql # not compatible
query II rowsort label-8238
SELECT + 0 AS col0, COUNT ( * ) + + - 84
----
0
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8239
SELECT 60 + - - 1 DIV - COUNT( * ) - + + 98 + ( - 61 ) + - - 87 * + - 95, 2 + 28 + - - ( + 42 ) - + NULLIF ( + 51, - - 93 * + 32 ) + + 42 * + - 53 AS col1
----
-8365
-2205

skipif mysql # not compatible
query II rowsort label-8239
SELECT 60 + - - 1 / - COUNT ( * ) - + + 98 + ( - 61 ) + - - 87 * + - 95, 2 + 28 + - - ( + 42 ) - + NULLIF ( + 51, - - 93 * + 32 ) + + 42 * + - 53 AS col1
----
-8365
-2205

query II rowsort
SELECT + 11 AS col1, - 42 * + - 77 + 82 - 76 AS col0
----
11
3240

onlyif mysql # aggregate syntax: 
query II rowsort label-8241
SELECT DISTINCT - 22 + - ( + + 41 ), + COUNT( * ) AS col2
----
-63
1

skipif mysql # not compatible
query II rowsort label-8241
SELECT DISTINCT - 22 + - ( + + 41 ), + COUNT ( * ) AS col2
----
-63
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8242
SELECT ALL COUNT( * ) + + 29 + MAX( ALL + ( ( - + 27 ) ) ) DIV - 59 + - + COUNT( * ) DIV - 9 col2, 82 * - - 6 + + 85 col1
----
30
577

skipif mysql # not compatible
query II rowsort label-8242
SELECT ALL COUNT ( * ) + + 29 + MAX ( ALL + ( ( - + 27 ) ) ) / - 59 + - + COUNT ( * ) / - 9 col2, 82 * - - 6 + + 85 col1
----
30
577

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT DISTINCT - MIN( 53 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-8243
SELECT DISTINCT - MIN ( 53 ) AS col2
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-8244
SELECT 5 + - - 13 + 59 DIV 45 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-8244
SELECT 5 + - - 13 + 59 / 45 AS col0
----
19

query I rowsort
SELECT ALL 19 + + 71
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-8246
SELECT ALL + ( - 63 ) DIV 15 * 45 * + 99 * 22 + 47
----
-391993

skipif mysql # not compatible
query I rowsort label-8246
SELECT ALL + ( - 63 ) / 15 * 45 * + 99 * 22 + 47
----
-391993

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8247
SELECT 87 AS col2, ( MIN( ALL 76 ) ) / 10 + - 53 / - CAST( NULL AS SIGNED ) AS col1
----
87
NULL

skipif mysql # not compatible
query II rowsort label-8247
SELECT 87 AS col2, ( MIN ( ALL 76 ) ) / 10 + - 53 / - CAST ( NULL AS INTEGER ) AS col1
----
87
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT 94 * - MAX( DISTINCT 51 ) col1
----
-4794

skipif mysql # not compatible
query I rowsort label-8248
SELECT 94 * - MAX ( DISTINCT 51 ) col1
----
-4794

onlyif mysql # aggregate syntax: 
query II rowsort label-8249
SELECT DISTINCT 26, - 44 * - - MIN( DISTINCT - 61 ) + + + COUNT( * ) col0
----
26
2685

skipif mysql # not compatible
query II rowsort label-8249
SELECT DISTINCT 26, - 44 * - - MIN ( DISTINCT - 61 ) + + + COUNT ( * ) col0
----
26
2685

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8250
SELECT ALL CASE + AVG ( + 51 ) WHEN AVG ( + + 17 ) THEN + + CAST( - + 19 AS SIGNED ) ELSE - 51 + COUNT( * ) + + 35 END col1
----
-15

skipif mysql # not compatible
query I rowsort label-8250
SELECT ALL CASE + AVG ( + 51 ) WHEN AVG ( + + 17 ) THEN + + CAST ( - + 19 AS INTEGER ) ELSE - 51 + COUNT ( * ) + + 35 END col1
----
-15

query II rowsort
SELECT DISTINCT 66, 59 AS col0
----
66
59

query I rowsort
SELECT ALL + + 87 - + - 43 - 25 * + 27 * 3 + - 31
----
-1926

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8253
SELECT - 11 * 11 DIV 21 + 79 + CAST( - + 1 AS SIGNED ) AS col0, - 54 AS col2
----
73
-54

skipif mysql # not compatible
query II rowsort label-8253
SELECT - 11 * 11 / 21 + 79 + CAST ( - + 1 AS INTEGER ) AS col0, - 54 AS col2
----
73
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8254
SELECT ALL 81 * + - NULLIF ( + 28, + CAST( NULL AS SIGNED ) )
----
-2268

skipif mysql # not compatible
query I rowsort label-8254
SELECT ALL 81 * + - NULLIF ( + 28, + CAST ( NULL AS INTEGER ) )
----
-2268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8255
SELECT DISTINCT + CAST( + SUM( 17 ) AS SIGNED ) - - 84
----
101

skipif mysql # not compatible
query I rowsort label-8255
SELECT DISTINCT + CAST ( + SUM ( 17 ) AS INTEGER ) - - 84
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-8256
SELECT - - COUNT( * ) AS col1, 40
----
1
40

skipif mysql # not compatible
query II rowsort label-8256
SELECT - - COUNT ( * ) AS col1, 40
----
1
40

query I rowsort
SELECT + 78 * 29 + 30
----
2292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8258
SELECT - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8258
SELECT - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT CASE - COUNT( * ) WHEN - COUNT( * ) THEN NULL WHEN + ( 1 ) * 39 + + + 74 THEN NULL ELSE - 42 * - + COUNT( * ) - - MIN( - 10 ) - + 67 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8259
SELECT CASE - COUNT ( * ) WHEN - COUNT ( * ) THEN NULL WHEN + ( 1 ) * 39 + + + 74 THEN NULL ELSE - 42 * - + COUNT ( * ) - - MIN ( - 10 ) - + 67 END
----
NULL

query I rowsort
SELECT - + ( + 1 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8261
SELECT ALL - 22, COUNT( * ) AS col1
----
-22
1

skipif mysql # not compatible
query II rowsort label-8261
SELECT ALL - 22, COUNT ( * ) AS col1
----
-22
1

query I rowsort
SELECT 12 + + + 17 + + 62 AS col1
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8263
SELECT ALL SUM( ALL + CAST( ( - 72 ) AS SIGNED ) )
----
-72

skipif mysql # not compatible
query I rowsort label-8263
SELECT ALL SUM ( ALL + CAST ( ( - 72 ) AS INTEGER ) )
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-8264
SELECT DISTINCT + 80 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-8264
SELECT DISTINCT + 80 / - 95
----
0

query I rowsort
SELECT 73 * - 93
----
-6789

onlyif mysql # aggregate syntax: 
query I rowsort label-8266
SELECT ALL + COUNT( * ) * 35
----
35

skipif mysql # not compatible
query I rowsort label-8266
SELECT ALL + COUNT ( * ) * 35
----
35

query I rowsort
SELECT ALL - 85 * + 14 + 45 * + - 50
----
-3440

query I rowsort
SELECT 60 * + 91 * + + 41 col0
----
223860

query I rowsort
SELECT DISTINCT 15 * + + 94 + + 56
----
1466

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT COUNT( * ) * 16 * + - 53 AS col0
----
-848

skipif mysql # not compatible
query I rowsort label-8270
SELECT COUNT ( * ) * 16 * + - 53 AS col0
----
-848

query I rowsort
SELECT 86 * - - 51 AS col1
----
4386

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8272
SELECT DISTINCT + COUNT( * ) * + - 74 + + NULLIF ( + COUNT( * ), - - 69 + + 43 * - COUNT( * ) + - + MIN( DISTINCT + - 24 ) ) * COUNT( * ) DIV + 36
----
-74

skipif mysql # not compatible
query I rowsort label-8272
SELECT DISTINCT + COUNT ( * ) * + - 74 + + NULLIF ( + COUNT ( * ), - - 69 + + 43 * - COUNT ( * ) + - + MIN ( DISTINCT + - 24 ) ) * COUNT ( * ) / + 36
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-8273
SELECT + 77 * - 71 + + + ( 96 ) DIV + 65 AS col1
----
-5466

skipif mysql # not compatible
query I rowsort label-8273
SELECT + 77 * - 71 + + + ( 96 ) / + 65 AS col1
----
-5466

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8274
SELECT ALL CASE + + 92 WHEN 49 THEN 43 WHEN - ( - 75 ) THEN - SUM( - CASE WHEN ( NULL ) IS NOT NULL THEN + + ( - ( ( 47 ) ) ) WHEN NULL IN ( 83 + - 94, - 10 ) THEN NULL ELSE + CAST( - + 18 AS SIGNED ) + + 21 END ) END + + + COUNT( * ), 18 AS col1
----
NULL
18

skipif mysql # not compatible
query II rowsort label-8274
SELECT ALL CASE + + 92 WHEN 49 THEN 43 WHEN - ( - 75 ) THEN - SUM ( - CASE WHEN ( NULL ) IS NOT NULL THEN + + ( - ( ( 47 ) ) ) WHEN NULL IN ( 83 + - 94, - 10 ) THEN NULL ELSE + CAST ( - + 18 AS INTEGER ) + + 21 END ) END + + + COUNT ( * ), 18 AS col1
----
NULL
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8275
SELECT - COUNT( * ) * + CASE + 7 WHEN 75 * + - 51 THEN 30 * - - 64 - 45 * + 8 WHEN - 69 THEN - 96 / 10 END - - + COALESCE ( + - CAST( NULL AS SIGNED ), + - NULLIF ( + COUNT( * ), - 62 + 75 ) * - 65 ) * - 91 * - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-8275
SELECT - COUNT ( * ) * + CASE + 7 WHEN 75 * + - 51 THEN 30 * - - 64 - 45 * + 8 WHEN - 69 THEN - 96 / 10 END - - + COALESCE ( + - CAST ( NULL AS INTEGER ), + - NULLIF ( + COUNT ( * ), - 62 + 75 ) * - 65 ) * - 91 * - 79
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT ALL + MAX( DISTINCT + + 53 ) * - + 27 * + + 62 * + 29
----
-2572938

skipif mysql # not compatible
query I rowsort label-8276
SELECT ALL + MAX ( DISTINCT + + 53 ) * - + 27 * + + 62 * + 29
----
-2572938

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8277
SELECT DISTINCT + CASE + CAST( NULL AS SIGNED ) WHEN + 63 + + CAST( NULL AS SIGNED ) THEN + 90 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8277
SELECT DISTINCT + CASE + CAST ( NULL AS INTEGER ) WHEN + 63 + + CAST ( NULL AS INTEGER ) THEN + 90 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8278
SELECT + + CAST( NULL AS SIGNED ) / 85
----
NULL

skipif mysql # not compatible
query I rowsort label-8278
SELECT + + CAST ( NULL AS INTEGER ) / 85
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8279
SELECT DISTINCT + 18 DIV - 59 AS col0, - ( - 83 )
----
0
83

skipif mysql # not compatible
query II rowsort label-8279
SELECT DISTINCT + 18 / - 59 AS col0, - ( - 83 )
----
0
83

onlyif mysql # aggregate syntax: 
query II rowsort label-8280
SELECT + 40 + - + COUNT( * ) * - 74 * 50, CASE 56 WHEN + 83 THEN - 38 END AS col0
----
3740
NULL

skipif mysql # not compatible
query II rowsort label-8280
SELECT + 40 + - + COUNT ( * ) * - 74 * 50, CASE 56 WHEN + 83 THEN - 38 END AS col0
----
3740
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8281
SELECT + - 54 - + CASE + 62 WHEN CAST( NULL AS SIGNED ) THEN + 38 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8281
SELECT + - 54 - + CASE + 62 WHEN CAST ( NULL AS INTEGER ) THEN + 38 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 74 - - 48 - - 57 + 2 AS col2
----
181

query I rowsort
SELECT - 45 * + - ( 22 )
----
990

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT + COUNT( * ) + + - 63 + - + COALESCE ( - 17, + 44 * COUNT( * ) - + COALESCE ( + 83, - SUM( DISTINCT 20 ) * + 47 + - ( + + 15 ) ), + ( COUNT( * ) ), + COUNT( * ) ) + + 54 + 1 * - 4 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-8284
SELECT + COUNT ( * ) + + - 63 + - + COALESCE ( - 17, + 44 * COUNT ( * ) - + COALESCE ( + 83, - SUM ( DISTINCT 20 ) * + 47 + - ( + + 15 ) ), + ( COUNT ( * ) ), + COUNT ( * ) ) + + 54 + 1 * - 4 AS col0
----
5

query I rowsort
SELECT ALL + + 67 * + 38
----
2546

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT + 12 * - COUNT( * ) * - + 76 AS col1
----
912

skipif mysql # not compatible
query I rowsort label-8286
SELECT + 12 * - COUNT ( * ) * - + 76 AS col1
----
912

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8287
SELECT DISTINCT + ( + 99 ) + - - 86 DIV COUNT( * ) * - 54 * COUNT( * ) AS col2
----
-4545

skipif mysql # not compatible
query I rowsort label-8287
SELECT DISTINCT + ( + 99 ) + - - 86 / COUNT ( * ) * - 54 * COUNT ( * ) AS col2
----
-4545

query I rowsort
SELECT DISTINCT - 94 + + 78 col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT ALL 80 * + - SUM( DISTINCT 36 )
----
-2880

skipif mysql # not compatible
query I rowsort label-8289
SELECT ALL 80 * + - SUM ( DISTINCT 36 )
----
-2880

query I rowsort
SELECT - COALESCE ( - - 3, + 61, - 59 ) AS col2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8291
SELECT ALL + 14 * - - 85 + - 47 DIV + 35 AS col1
----
1189

skipif mysql # not compatible
query I rowsort label-8291
SELECT ALL + 14 * - - 85 + - 47 / + 35 AS col1
----
1189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8292
SELECT DISTINCT - COUNT( * ) DIV - - 58 * 1
----
0

skipif mysql # not compatible
query I rowsort label-8292
SELECT DISTINCT - COUNT ( * ) / - - 58 * 1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8293
SELECT - NULLIF ( + + CAST( + + 26 AS SIGNED ), COUNT( * ) ) * - SUM( ALL + 65 )
----
1690

skipif mysql # not compatible
query I rowsort label-8293
SELECT - NULLIF ( + + CAST ( + + 26 AS INTEGER ), COUNT ( * ) ) * - SUM ( ALL + 65 )
----
1690

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT DISTINCT - SUM( ALL 68 ) * + 89 + - + NULLIF ( + 86, + 62 ) AS col0
----
-6138

skipif mysql # not compatible
query I rowsort label-8294
SELECT DISTINCT - SUM ( ALL 68 ) * + 89 + - + NULLIF ( + 86, + 62 ) AS col0
----
-6138

query I rowsort
SELECT ALL - 4 * ( - + 16 ) * - 54 AS col1
----
-3456

query I rowsort
SELECT DISTINCT + CASE ( + 25 ) WHEN ( 37 ) THEN - 55 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8297
SELECT - 2 - + + CASE - 10 WHEN + + 73 * - + 93 THEN + - CAST( COALESCE ( - + 81, - + COUNT( * ) / - CASE + CASE + NULLIF ( - 99, + 73 ) WHEN + 95 + + 77 * 66 / - - 27 + + + 32 + + 78 * + 82 + + 22 + - 37 * - + ( - + 56 ) * 13 - 73 THEN - COALESCE ( 21, 61 ) + + COALESCE ( - ( 86 ), + 70 ) END WHEN - COUNT( * ) * 98 THEN NULL ELSE 70 + + CAST( NULL AS SIGNED ) * AVG ( DISTINCT - 25 + + 65 ) END ) AS DECIMAL ) WHEN + 55 THEN CAST( NULL AS SIGNED ) / 57 ELSE NULL END - 42 * 9 / - 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8297
SELECT - 2 - + + CASE - 10 WHEN + + 73 * - + 93 THEN + - CAST ( COALESCE ( - + 81, - + COUNT ( * ) / - CASE + CASE + NULLIF ( - 99, + 73 ) WHEN + 95 + + 77 * 66 / - - 27 + + + 32 + + 78 * + 82 + + 22 + - 37 * - + ( - + 56 ) * 13 - 73 THEN - COALESCE ( 21, 61 ) + + COALESCE ( - ( 86 ), + 70 ) END WHEN - COUNT ( * ) * 98 THEN NULL ELSE 70 + + CAST ( NULL AS INTEGER ) * AVG ( DISTINCT - 25 + + 65 ) END ) AS REAL ) WHEN + 55 THEN CAST ( NULL AS INTEGER ) / 57 ELSE NULL END - 42 * 9 / - 35 AS col1
----
NULL

query I rowsort
SELECT - 37 * + 48 AS col0
----
-1776

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT ALL + COUNT( * ) * + - 33
----
-33

skipif mysql # not compatible
query I rowsort label-8299
SELECT ALL + COUNT ( * ) * + - 33
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT COALESCE ( 34, - + MIN( CASE + 38 WHEN - 25 THEN NULL WHEN - 64 THEN - + 3 * + + 70 + 56 ELSE NULL END ) + NULLIF ( 96, + 91 ) + + 16 ) col0
----
34

skipif mysql # not compatible
query I rowsort label-8300
SELECT COALESCE ( 34, - + MIN ( CASE + 38 WHEN - 25 THEN NULL WHEN - 64 THEN - + 3 * + + 70 + 56 ELSE NULL END ) + NULLIF ( 96, + 91 ) + + 16 ) col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT ALL + NULLIF ( 35, - COUNT( * ) ) * - + ( + 88 ) * 31 - ( COALESCE ( 23, MIN( - + 43 ), 8 * - + 8 ) ) col1
----
-95503

skipif mysql # not compatible
query I rowsort label-8301
SELECT ALL + NULLIF ( 35, - COUNT ( * ) ) * - + ( + 88 ) * 31 - ( COALESCE ( 23, MIN ( - + 43 ), 8 * - + 8 ) ) col1
----
-95503

query I rowsort
SELECT - 66 + + 36 AS col1
----
-30

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8303
SELECT CASE - 42 WHEN + COUNT( DISTINCT + - ( + 62 ) ) * 54 + - CAST( NULL AS DECIMAL ) + 88 THEN 39 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8303
SELECT CASE - 42 WHEN + COUNT ( DISTINCT + - ( + 62 ) ) * 54 + - CAST ( NULL AS REAL ) + 88 THEN 39 ELSE NULL END
----
NULL

query I rowsort
SELECT - 99 * + + 96 + 96 - 60 * - + 74 * - + 18 AS col0
----
-89328

query I rowsort
SELECT ALL + 61 * 27 AS col1
----
1647

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT - + 51 * + - 22 + + MAX( 12 ) * + 62 + + + 87
----
1953

skipif mysql # not compatible
query I rowsort label-8306
SELECT - + 51 * + - 22 + + MAX ( 12 ) * + 62 + + + 87
----
1953

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT ALL + + MAX( ALL - 21 ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-8307
SELECT ALL + + MAX ( ALL - 21 ) AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT - 71 + 9 - + COUNT( * ) * 27 * + 82 + + 25
----
-2251

skipif mysql # not compatible
query I rowsort label-8308
SELECT - 71 + 9 - + COUNT ( * ) * 27 * + 82 + + 25
----
-2251

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT DISTINCT + 51 * 78 - - COUNT( * ) + COUNT( * )
----
3980

skipif mysql # not compatible
query I rowsort label-8309
SELECT DISTINCT + 51 * 78 - - COUNT ( * ) + COUNT ( * )
----
3980

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT - 85 * - COUNT( * ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-8310
SELECT - 85 * - COUNT ( * ) AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT ALL + + SUM( 85 ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-8311
SELECT ALL + + SUM ( 85 ) AS col2
----
85

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8312
SELECT ALL - CAST( NULL AS SIGNED ) * + CAST( + 61 AS DECIMAL ), - 38 * - 83 AS col2
----
NULL
3154

skipif mysql # not compatible
query II rowsort label-8312
SELECT ALL - CAST ( NULL AS INTEGER ) * + CAST ( + 61 AS REAL ), - 38 * - 83 AS col2
----
NULL
3154

query I rowsort
SELECT + + 34 + - 99
----
-65

query II rowsort
SELECT ALL 90 * + CASE 40 WHEN + 36 THEN + 82 END * - 98, 56 AS col0
----
NULL
56

query I rowsort
SELECT + 34 + - 51
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8316
SELECT DISTINCT + AVG ( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8316
SELECT DISTINCT + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT + + 98 + COALESCE ( - + 29, + ( + 31 ) )
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-8318
SELECT + NULLIF ( - 37, - 79 ) DIV - 77
----
0

skipif mysql # not compatible
query I rowsort label-8318
SELECT + NULLIF ( - 37, - 79 ) / - 77
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8319
SELECT - - 13 - + 78 * + + CAST( + 42 AS SIGNED )
----
-3263

skipif mysql # not compatible
query I rowsort label-8319
SELECT - - 13 - + 78 * + + CAST ( + 42 AS INTEGER )
----
-3263

query I rowsort
SELECT + - 7 * + 1
----
-7

query I rowsort
SELECT - COALESCE ( + + 6, + 79 )
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8322
SELECT - CAST( ( 12 ) AS SIGNED ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-8322
SELECT - CAST ( ( 12 ) AS INTEGER ) AS col1
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8323
SELECT - CAST( - + 58 AS SIGNED ) AS col0, + 62 AS col0
----
58
62

skipif mysql # not compatible
query II rowsort label-8323
SELECT - CAST ( - + 58 AS INTEGER ) AS col0, + 62 AS col0
----
58
62

query I rowsort
SELECT ALL 33 + + 71
----
104

onlyif mysql # aggregate syntax: 
query II rowsort label-8325
SELECT 65, - COUNT( ALL - + 93 ) * 83 + + 96 AS col0
----
65
13

skipif mysql # not compatible
query II rowsort label-8325
SELECT 65, - COUNT ( ALL - + 93 ) * 83 + + 96 AS col0
----
65
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8326
SELECT ALL ( 62 ) * - 46 + - + MIN( DISTINCT 88 ) - + 70 * + CAST( NULL AS SIGNED ) * - MAX( DISTINCT + 79 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8326
SELECT ALL ( 62 ) * - 46 + - + MIN ( DISTINCT 88 ) - + 70 * + CAST ( NULL AS INTEGER ) * - MAX ( DISTINCT + 79 ) AS col0
----
NULL

query I rowsort
SELECT + 32 + 23 * 1
----
55

query I rowsort
SELECT DISTINCT 38 + + 51 * 40
----
2078

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8329
SELECT ALL CASE + - COALESCE ( 76, - 19 ) WHEN 91 + - 68 THEN NULL WHEN - CAST( NULL AS SIGNED ) + + COALESCE ( + COALESCE ( 9, COUNT( * ) ), + COUNT( * ) / 53 ) * - - 38 + + + 71 THEN + + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8329
SELECT ALL CASE + - COALESCE ( 76, - 19 ) WHEN 91 + - 68 THEN NULL WHEN - CAST ( NULL AS INTEGER ) + + COALESCE ( + COALESCE ( 9, COUNT ( * ) ), + COUNT ( * ) / 53 ) * - - 38 + + + 71 THEN + + COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 63 + + + 36
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8331
SELECT + 68 DIV - ( - - ( + + 70 ) ) * + 64 + 38 + - + COUNT( * ) + 24 + - 78
----
-17

skipif mysql # not compatible
query I rowsort label-8331
SELECT + 68 / - ( - - ( + + 70 ) ) * + 64 + 38 + - + COUNT ( * ) + 24 + - 78
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8332
SELECT + CAST( + - ( COUNT( * ) ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8332
SELECT + CAST ( + - ( COUNT ( * ) ) AS INTEGER ) AS col0
----
-1

query I rowsort
SELECT - 78 + 64 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-8334
SELECT 46 * - 20 * - - 76 - - + 51 + - + 70 + + 64, + COUNT( * ) AS col1
----
-69875
1

skipif mysql # not compatible
query II rowsort label-8334
SELECT 46 * - 20 * - - 76 - - + 51 + - + 70 + + 64, + COUNT ( * ) AS col1
----
-69875
1

query I rowsort
SELECT + 49 * - + 19
----
-931

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT 37 * - 49 + + COUNT( * ) - 23 AS col1
----
-1835

skipif mysql # not compatible
query I rowsort label-8336
SELECT 37 * - 49 + + COUNT ( * ) - 23 AS col1
----
-1835

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT ALL + 46 - + COUNT( * ) + + 82
----
127

skipif mysql # not compatible
query I rowsort label-8337
SELECT ALL + 46 - + COUNT ( * ) + + 82
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8338
SELECT DISTINCT - CAST( 22 AS SIGNED ) DIV - COALESCE ( 21, + + 92, 2 * + COUNT( - 11 ) DIV NULLIF ( - 22, 78 DIV 55 ) * + - 27 - + 59 ) + 3
----
4

skipif mysql # not compatible
query I rowsort label-8338
SELECT DISTINCT - CAST ( 22 AS INTEGER ) / - COALESCE ( 21, + + 92, 2 * + COUNT ( - 11 ) / NULLIF ( - 22, 78 / 55 ) * + - 27 - + 59 ) + 3
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-8339
SELECT ALL - 73 DIV 43 * + ( + 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-8339
SELECT ALL - 73 / 43 * + ( + 15 )
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8340
SELECT 18 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8340
SELECT 18 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT + - 62 AS col0, 65 AS col0
----
-62
65

onlyif mysql # aggregate syntax: 
query II rowsort label-8342
SELECT DISTINCT - 7 * + 78 * + ( 57 ) * - 74 + + 35 AS col2, + COUNT( * ) * + 44 - - 62 + + 72
----
2303063
178

skipif mysql # not compatible
query II rowsort label-8342
SELECT DISTINCT - 7 * + 78 * + ( 57 ) * - 74 + + 35 AS col2, + COUNT ( * ) * + 44 - - 62 + + 72
----
2303063
178

query II rowsort
SELECT + + 64, 36 AS col0
----
64
36

query II rowsort
SELECT DISTINCT - ( + 96 ) * + - 75 + - 19 AS col1, - 50 AS col1
----
7181
-50

query II rowsort
SELECT ALL - 97 col1, + 21 * + + 13
----
-97
273

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8346
SELECT - 80 * + + COUNT( ALL - 48 ) * + 86 / 53 / + 9 - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8346
SELECT - 80 * + + COUNT ( ALL - 48 ) * + 86 / 53 / + 9 - + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 18 * - + 40 - - 14
----
-706

query II rowsort
SELECT ALL + 8 + + - 50, + 0 AS col0
----
-42
0

query I rowsort
SELECT - NULLIF ( - 59, + 91 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT ALL - NULLIF ( - 75, + - 17 + + - MAX( ALL + 53 ) )
----
75

skipif mysql # not compatible
query I rowsort label-8350
SELECT ALL - NULLIF ( - 75, + - 17 + + - MAX ( ALL + 53 ) )
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-8351
SELECT + COUNT( * ), - 4 AS col0
----
1
-4

skipif mysql # not compatible
query II rowsort label-8351
SELECT + COUNT ( * ), - 4 AS col0
----
1
-4

query I rowsort
SELECT + 38 + + CASE - - 22 WHEN - + 18 / + 35 THEN + + NULLIF ( - 76, ( - - 0 ) + + 58 ) * 35 WHEN - 57 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT + - 81 * + 6 * - - 73 - 4
----
-35482

onlyif mysql # DIV for integer division: 
query I rowsort label-8354
SELECT ALL - 73 DIV - 36 + + 73
----
75

skipif mysql # not compatible
query I rowsort label-8354
SELECT ALL - 73 / - 36 + + 73
----
75

query I rowsort
SELECT - 21 - - - 70 + - + 9 AS col2
----
-100

onlyif mysql # DIV for integer division: 
query II rowsort label-8356
SELECT ALL + 76 + - 68, 78 DIV 75 AS col1
----
8
1

skipif mysql # not compatible
query II rowsort label-8356
SELECT ALL + 76 + - 68, 78 / 75 AS col1
----
8
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8357
SELECT ALL - 49 DIV 53 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8357
SELECT ALL - 49 / 53 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8358
SELECT 89 + + - 11 - ( - - 56 ) + - - NULLIF ( - + COUNT( * ), - 14 ) DIV - ( + 74 ) * - + ( 7 ) + COUNT( - 74 ) + + 9
----
32

skipif mysql # not compatible
query I rowsort label-8358
SELECT 89 + + - 11 - ( - - 56 ) + - - NULLIF ( - + COUNT ( * ), - 14 ) / - ( + 74 ) * - + ( 7 ) + COUNT ( - 74 ) + + 9
----
32

query I rowsort
SELECT DISTINCT - 31 * + 47 * - 81
----
118017

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT COUNT( * ) + - + 31 * ( + 79 ) AS col0
----
-2448

skipif mysql # not compatible
query I rowsort label-8360
SELECT COUNT ( * ) + - + 31 * ( + 79 ) AS col0
----
-2448

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8361
SELECT ALL SUM( DISTINCT - - 25 ) - 83 DIV + COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-8361
SELECT ALL SUM ( DISTINCT - - 25 ) - 83 / + COUNT ( * )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT COUNT( * ) * - 80 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-8362
SELECT COUNT ( * ) * - 80 AS col1
----
-80

query II rowsort
SELECT 85 + + 57 * - ( - 27 ) - + - 36 + + - NULLIF ( + - 26, ( 14 ) * - 19 ) + - + 64 + + - 11 AS col1, ( + 80 ) AS col1
----
1611
80

query II rowsort
SELECT 88 * - - 34, 99 - - 88 col2
----
2992
187

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT 24 * + - COUNT( * ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-8365
SELECT 24 * + - COUNT ( * ) AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT NULLIF ( - 69, + + 46 + + COUNT( * ) ) + - 85 * 29
----
-2534

skipif mysql # not compatible
query I rowsort label-8366
SELECT NULLIF ( - 69, + + 46 + + COUNT ( * ) ) + - 85 * 29
----
-2534

query II rowsort
SELECT 43 + - 34 AS col1, 76 + 45 AS col2
----
9
121

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT ALL 19 - + + ( COUNT( * ) ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-8368
SELECT ALL 19 - + + ( COUNT ( * ) ) AS col1
----
18

query I rowsort
SELECT 14 * COALESCE ( - - 39, + + 38 ) AS col1
----
546

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT 49 * COUNT( * ) * - 50
----
-2450

skipif mysql # not compatible
query I rowsort label-8370
SELECT 49 * COUNT ( * ) * - 50
----
-2450

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT 69 * + - SUM( 13 ) + + + 0 + + 2 + + - 77 AS col2
----
-972

skipif mysql # not compatible
query I rowsort label-8371
SELECT 69 * + - SUM ( 13 ) + + + 0 + + 2 + + - 77 AS col2
----
-972

query I rowsort
SELECT 39 * - 31 col0
----
-1209

onlyif mysql # DIV for integer division: 
query I rowsort label-8373
SELECT - + 14 DIV 88 + 90
----
90

skipif mysql # not compatible
query I rowsort label-8373
SELECT - + 14 / 88 + 90
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT + 32 * - + 1 * + COUNT( * ) - + + 75 * 8 AS col1
----
-632

skipif mysql # not compatible
query I rowsort label-8374
SELECT + 32 * - + 1 * + COUNT ( * ) - + + 75 * 8 AS col1
----
-632

query II rowsort
SELECT ALL 36 * + 91 AS col2, - 84
----
3276
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT ALL + MIN( DISTINCT 62 ) + + 85 - 78 + 83 + + 12 * - 18 * ( - 41 ) + + 22 * - 35
----
8238

skipif mysql # not compatible
query I rowsort label-8376
SELECT ALL + MIN ( DISTINCT 62 ) + + 85 - 78 + 83 + + 12 * - 18 * ( - 41 ) + + 22 * - 35
----
8238

query I rowsort
SELECT + 28 + 75
----
103

query I rowsort
SELECT ALL - 17 + - ( + 13 ) + - 22
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT DISTINCT COUNT( * ) + - - 80 + ( + 78 )
----
159

skipif mysql # not compatible
query I rowsort label-8379
SELECT DISTINCT COUNT ( * ) + - - 80 + ( + 78 )
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8380
SELECT DISTINCT + - CAST( NULL AS SIGNED ) / - 15 AS col2, + ( 12 ) + - - 79 AS col2
----
NULL
91

skipif mysql # not compatible
query II rowsort label-8380
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) / - 15 AS col2, + ( 12 ) + - - 79 AS col2
----
NULL
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8381
SELECT 32 * - - 74 + NULLIF ( - CAST( - 98 AS SIGNED ), - - 76 + ( + 81 ) ) / + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8381
SELECT 32 * - - 74 + NULLIF ( - CAST ( - 98 AS INTEGER ), - - 76 + ( + 81 ) ) / + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8382
SELECT ALL 25 + + + NULLIF ( + - 19, - 67 * + 29 * - 83 + + + 43 + + + CAST( NULL AS DECIMAL ) ) + + - 55
----
-49

skipif mysql # not compatible
query I rowsort label-8382
SELECT ALL 25 + + + NULLIF ( + - 19, - 67 * + 29 * - 83 + + + 43 + + + CAST ( NULL AS REAL ) ) + + - 55
----
-49

query I rowsort
SELECT + 69 + - 72 * 62 * + 84 AS col2
----
-374907

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT ALL + - 60 + + ( + COALESCE ( + + 64, ( COUNT( * ) ) ) ) + - COUNT( * ) * - - 49 * - 45 AS col0
----
2209

skipif mysql # not compatible
query I rowsort label-8384
SELECT ALL + - 60 + + ( + COALESCE ( + + 64, ( COUNT ( * ) ) ) ) + - COUNT ( * ) * - - 49 * - 45 AS col0
----
2209

onlyif mysql # aggregate syntax: 
query II rowsort label-8385
SELECT - ( 72 ) * + + 82 + - COUNT( * ) + - - COALESCE ( + 43, - 47 - 26, + 6 ) - + 71 + + - 42 + + 81 AS col0, + 57 AS col2
----
-5894
57

skipif mysql # not compatible
query II rowsort label-8385
SELECT - ( 72 ) * + + 82 + - COUNT ( * ) + - - COALESCE ( + 43, - 47 - 26, + 6 ) - + 71 + + - 42 + + 81 AS col0, + 57 AS col2
----
-5894
57

onlyif mysql # DIV for integer division: 
query I rowsort label-8386
SELECT DISTINCT 48 DIV 33 + + 31
----
32

skipif mysql # not compatible
query I rowsort label-8386
SELECT DISTINCT 48 / 33 + + 31
----
32

query I rowsort
SELECT ALL 52 + - 67 * - 27 * - + 53 col0
----
-95825

query I rowsort
SELECT 81 * 9 * 66 + 63
----
48177

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8389
SELECT - 36 DIV + + COUNT( * ) + - 71 + - COUNT( * ) AS col2
----
-108

skipif mysql # not compatible
query I rowsort label-8389
SELECT - 36 / + + COUNT ( * ) + - 71 + - COUNT ( * ) AS col2
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-8390
SELECT + - ( - - 2 ) * COUNT( * ) + + + 92 col1
----
90

skipif mysql # not compatible
query I rowsort label-8390
SELECT + - ( - - 2 ) * COUNT ( * ) + + + 92 col1
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8391
SELECT ALL + - ( - CAST( NULL AS SIGNED ) ) + + CASE WHEN 14 NOT IN ( + COUNT( * ) ) THEN - 46 ELSE NULL END + 35 * + 97 * - NULLIF ( COUNT( * ), - - MIN( - 22 ) * MIN( - 48 ) * + ( + 30 ) / CAST( NULL AS SIGNED ) * 20 / AVG ( + ( + 81 ) ) * 4 - - 78 * + ( + 20 ) * - 67 / 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8391
SELECT ALL + - ( - CAST ( NULL AS INTEGER ) ) + + CASE WHEN 14 NOT IN ( + COUNT ( * ) ) THEN - 46 ELSE NULL END + 35 * + 97 * - NULLIF ( COUNT ( * ), - - MIN ( - 22 ) * MIN ( - 48 ) * + ( + 30 ) / CAST ( NULL AS INTEGER ) * 20 / AVG ( + ( + 81 ) ) * 4 - - 78 * + ( + 20 ) * - 67 / 76 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8392
SELECT COALESCE ( 74, + + 9 - + 31, 37 - + COUNT( ALL + - 9 ) + + 0 * - 25 ) * + 50 * + - 96 + + 41 AS col2, - CAST( NULL AS SIGNED ) / + 9 * - SUM( + 57 ) * - 15 * + - 61 + + ( + - ( - COUNT( + 30 ) ) )
----
-355159
NULL

skipif mysql # not compatible
query II rowsort label-8392
SELECT COALESCE ( 74, + + 9 - + 31, 37 - + COUNT ( ALL + - 9 ) + + 0 * - 25 ) * + 50 * + - 96 + + 41 AS col2, - CAST ( NULL AS INTEGER ) / + 9 * - SUM ( + 57 ) * - 15 * + - 61 + + ( + - ( - COUNT ( + 30 ) ) )
----
-355159
NULL

query I rowsort
SELECT - ( - 14 ) AS col2
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8394
SELECT DISTINCT - CAST( + + 37 AS SIGNED )
----
-37

skipif mysql # not compatible
query I rowsort label-8394
SELECT DISTINCT - CAST ( + + 37 AS INTEGER )
----
-37

query I rowsort
SELECT DISTINCT 63 - + 79
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT ALL SUM( - 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-8396
SELECT ALL SUM ( - 52 )
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8397
SELECT ALL - COUNT( * ) - + - 93 DIV + - ( + - 73 ) + + 35 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-8397
SELECT ALL - COUNT ( * ) - + - 93 / + - ( + - 73 ) + + 35 AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT DISTINCT COALESCE ( COUNT( * ), + 0 * 4 * 69 * 71 )
----
1

skipif mysql # not compatible
query I rowsort label-8398
SELECT DISTINCT COALESCE ( COUNT ( * ), + 0 * 4 * 69 * 71 )
----
1

query I rowsort
SELECT 24 * - + 80 col0
----
-1920

query I rowsort
SELECT 95 * + + ( + + 6 ) AS col1
----
570

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8401
SELECT DISTINCT + COALESCE ( + 55, - 50 DIV 54 * + 12 + - 15 DIV COUNT( * ) * COALESCE ( 80, + 46 DIV 30 * + - 10, - 74 ) ) DIV + + 93
----
0

skipif mysql # not compatible
query I rowsort label-8401
SELECT DISTINCT + COALESCE ( + 55, - 50 / 54 * + 12 + - 15 / COUNT ( * ) * COALESCE ( 80, + 46 / 30 * + - 10, - 74 ) ) / + + 93
----
0

query II rowsort
SELECT 57 AS col0, - 42 col0
----
57
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT ALL + COUNT( + + 53 ) * - 67 + + + ( - + ( - 14 ) ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-8403
SELECT ALL + COUNT ( + + 53 ) * - 67 + + + ( - + ( - 14 ) ) AS col1
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8404
SELECT DISTINCT + 1 DIV - COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-8404
SELECT DISTINCT + 1 / - COUNT ( * ) col2
----
-1

query I rowsort
SELECT - 78 - + 0 AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT DISTINCT COALESCE ( - + 30, COUNT( * ), - 19 ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-8406
SELECT DISTINCT COALESCE ( - + 30, COUNT ( * ), - 19 ) AS col2
----
-30

query I rowsort
SELECT + 89 + 34 + 22 AS col1
----
145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8408
SELECT - + 2 DIV - 39 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8408
SELECT - + 2 / - 39 * COUNT ( * )
----
0

query I rowsort
SELECT + + 96 + + 96
----
192

onlyif mysql # aggregate syntax: 
query II rowsort label-8410
SELECT + - ( + - 43 ) * 86, MAX( + 59 ) + + MAX( ALL 50 ) AS col0
----
3698
109

skipif mysql # not compatible
query II rowsort label-8410
SELECT + - ( + - 43 ) * 86, MAX ( + 59 ) + + MAX ( ALL 50 ) AS col0
----
3698
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8411
SELECT ALL - 95 * 86 + - 86 DIV - MIN( + NULLIF ( + 17, 34 ) )
----
-8165

skipif mysql # not compatible
query I rowsort label-8411
SELECT ALL - 95 * 86 + - 86 / - MIN ( + NULLIF ( + 17, 34 ) )
----
-8165

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT ALL - - 93 * + - 36 * - + 6 * - 36 + + COUNT( * ) AS col0
----
-723167

skipif mysql # not compatible
query I rowsort label-8412
SELECT ALL - - 93 * + - 36 * - + 6 * - 36 + + COUNT ( * ) AS col0
----
-723167

query I rowsort
SELECT ALL 70 * - + 98
----
-6860

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT + COUNT( * ) * - + 27
----
-27

skipif mysql # not compatible
query I rowsort label-8414
SELECT + COUNT ( * ) * - + 27
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT ALL ( - 62 ) * + + CASE - 43 WHEN + - AVG ( + 71 ) + - COUNT( * ) + - ( + - 74 ) * NULLIF ( 28, + 54 ) + COUNT( * ) THEN + - 93 WHEN - 54 THEN NULL END + + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-8415
SELECT ALL ( - 62 ) * + + CASE - 43 WHEN + - AVG ( + 71 ) + - COUNT ( * ) + - ( + - 74 ) * NULLIF ( 28, + 54 ) + COUNT ( * ) THEN + - 93 WHEN - 54 THEN NULL END + + 14
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8416
SELECT + - 47 AS col2, 54 DIV - + 22 AS col2
----
-47
-2

skipif mysql # not compatible
query II rowsort label-8416
SELECT + - 47 AS col2, 54 / - + 22 AS col2
----
-47
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8417
SELECT ALL 37 * - 59 + + COUNT( * ) DIV - - 33 AS col0
----
-2183

skipif mysql # not compatible
query I rowsort label-8417
SELECT ALL 37 * - 59 + + COUNT ( * ) / - - 33 AS col0
----
-2183

query I rowsort
SELECT + + 0 + - 86 + - - 64
----
-22

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8419
SELECT + + CAST( + 31 AS SIGNED ) * - + 2 DIV + 65 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8419
SELECT + + CAST ( + 31 AS INTEGER ) * - + 2 / + 65 AS col0
----
0

query I rowsort
SELECT + - ( - - 13 )
----
-13

query I rowsort
SELECT + CASE 76 WHEN + 64 * + 36 THEN + 4 - - - 5 + - 47 WHEN - 79 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT + COUNT( + - 44 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8422
SELECT + COUNT ( + - 44 ) col1
----
1

query I rowsort
SELECT + 56 - 75
----
-19

query I rowsort
SELECT ALL - 79 * + 3 - + - 72 * - 23 * 53 * - 96
----
8425491

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8425
SELECT + CAST( + - 56 AS SIGNED ) + - - 14 - - 76 + + + SUM( - + 23 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-8425
SELECT + CAST ( + - 56 AS INTEGER ) + - - 14 - - 76 + + + SUM ( - + 23 ) AS col2
----
11

query I rowsort
SELECT ALL + 77 * 84
----
6468

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT - 44 * COUNT( ALL - 34 ) * - 68 * 44
----
131648

skipif mysql # not compatible
query I rowsort label-8427
SELECT - 44 * COUNT ( ALL - 34 ) * - 68 * 44
----
131648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8428
SELECT ALL CASE - 80 WHEN CAST( + COUNT( * ) AS SIGNED ) THEN NULL WHEN 50 THEN + 75 + - 20 + + 99 * + + 24 - + 29 WHEN - 30 / + CAST( NULL AS SIGNED ) + 13 THEN NULL END / + MAX( DISTINCT - 97 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8428
SELECT ALL CASE - 80 WHEN CAST ( + COUNT ( * ) AS INTEGER ) THEN NULL WHEN 50 THEN + 75 + - 20 + + 99 * + + 24 - + 29 WHEN - 30 / + CAST ( NULL AS INTEGER ) + 13 THEN NULL END / + MAX ( DISTINCT - 97 ) AS col0
----
NULL

query I rowsort
SELECT - 63 * + 92 - 12
----
-5808

onlyif mysql # aggregate syntax: 
query I rowsort label-8430
SELECT ALL - COUNT( * ) * - - 45 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-8430
SELECT ALL - COUNT ( * ) * - - 45 AS col0
----
-45

query I rowsort
SELECT + 50 * + - 90
----
-4500

query I rowsort
SELECT DISTINCT + ( 11 ) * + + 79
----
869

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-8433
SELECT ALL COALESCE ( COUNT( * ), + - NULLIF ( - COUNT( * ), - - SUM( ALL + - 41 ) * + - SUM( + + CAST( NULL AS DECIMAL ) ) DIV + + ( + 96 ) * + 78 * + + ( + 70 ) + 84 * + + 81 DIV COUNT( * ) ) DIV + 20 + + 11 - 96 + - + 73 - + + 62 * - 22 * 7 * - - COUNT( * ), - - 46 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8433
SELECT ALL COALESCE ( COUNT ( * ), + - NULLIF ( - COUNT ( * ), - - SUM ( ALL + - 41 ) * + - SUM ( + + CAST ( NULL AS REAL ) ) / + + ( + 96 ) * + 78 * + + ( + 70 ) + 84 * + + 81 / COUNT ( * ) ) / + 20 + + 11 - 96 + - + 73 - + + 62 * - 22 * 7 * - - COUNT ( * ), - - 46 ) AS col0
----
1

query I rowsort
SELECT - 2 + 61 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT DISTINCT + COUNT( + 68 ) * + 55 * 7 * 29 * + + 82 AS col2
----
915530

skipif mysql # not compatible
query I rowsort label-8435
SELECT DISTINCT + COUNT ( + 68 ) * + 55 * 7 * 29 * + + 82 AS col2
----
915530

query I rowsort
SELECT ALL - 42 + - 88 - + 11
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT - COALESCE ( + 12, + + COUNT( * ), - - 80 + + - 32 ) + - 45 * + ( + - 35 )
----
1563

skipif mysql # not compatible
query I rowsort label-8437
SELECT - COALESCE ( + 12, + + COUNT ( * ), - - 80 + + - 32 ) + - 45 * + ( + - 35 )
----
1563

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8438
SELECT + COALESCE ( - - 72, + + MIN( 35 ) * 19 DIV + ( 61 ) ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-8438
SELECT + COALESCE ( - - 72, + + MIN ( 35 ) * 19 / + ( 61 ) ) AS col1
----
72

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8439
SELECT + 73 DIV 38 + NULLIF ( - - CAST( + - 80 AS SIGNED ), - 24 ) + + 4 * - 1
----
-83

skipif mysql # not compatible
query I rowsort label-8439
SELECT + 73 / 38 + NULLIF ( - - CAST ( + - 80 AS INTEGER ), - 24 ) + + 4 * - 1
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-8440
SELECT - 24 + - 38 DIV + 88
----
-24

skipif mysql # not compatible
query I rowsort label-8440
SELECT - 24 + - 38 / + 88
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8441
SELECT DISTINCT + - 52 * + CAST( + - 61 AS SIGNED ) * + 53 AS col1
----
168116

skipif mysql # not compatible
query I rowsort label-8441
SELECT DISTINCT + - 52 * + CAST ( + - 61 AS INTEGER ) * + 53 AS col1
----
168116

query I rowsort
SELECT - 81 * + 20 AS col0
----
-1620

onlyif mysql # aggregate syntax: 
query II rowsort label-8443
SELECT COUNT( * ) * - + COUNT( * ) - + COUNT( * ) + 62 * 98 + - ( - 8 ) * + 84 * - + 41 - + + 60, COUNT( * ) + + 11 * - 66 * + COUNT( * ) AS col0
----
-21538
-725

skipif mysql # not compatible
query II rowsort label-8443
SELECT COUNT ( * ) * - + COUNT ( * ) - + COUNT ( * ) + 62 * 98 + - ( - 8 ) * + 84 * - + 41 - + + 60, COUNT ( * ) + + 11 * - 66 * + COUNT ( * ) AS col0
----
-21538
-725

query I rowsort
SELECT - - 80 * - 99
----
-7920

query I rowsort
SELECT + 87 + + 30 AS col0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT - COUNT( * ) + + 27 * COUNT( * ) * + 17 AS col2
----
458

skipif mysql # not compatible
query I rowsort label-8446
SELECT - COUNT ( * ) + + 27 * COUNT ( * ) * + 17 AS col2
----
458

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8447
SELECT + - 82 * - + 12 / 63 + - + CAST( NULL AS SIGNED ), + 82 col1
----
NULL
82

skipif mysql # not compatible
query II rowsort label-8447
SELECT + - 82 * - + 12 / 63 + - + CAST ( NULL AS INTEGER ), + 82 col1
----
NULL
82

query I rowsort
SELECT + 54 + + 65 AS col2
----
119

query I rowsort
SELECT ALL 98 * + 63 * 31 AS col2
----
191394

query I rowsort
SELECT + 86 * 49
----
4214

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8451
SELECT + CAST( NULL AS SIGNED ) AS col0, 99 * + + 60 * 50 col1
----
NULL
297000

skipif mysql # not compatible
query II rowsort label-8451
SELECT + CAST ( NULL AS INTEGER ) AS col0, 99 * + + 60 * 50 col1
----
NULL
297000

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT + COALESCE ( - COUNT( * ), 57, + 25 )
----
-1

skipif mysql # not compatible
query I rowsort label-8452
SELECT + COALESCE ( - COUNT ( * ), 57, + 25 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8453
SELECT + 62 + - 37 DIV + + 45 + + 22 * 17 * - 58
----
-21630

skipif mysql # not compatible
query I rowsort label-8453
SELECT + 62 + - 37 / + + 45 + + 22 * 17 * - 58
----
-21630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8454
SELECT CASE 44 WHEN 94 * - 34 * + CAST( - 31 AS SIGNED ) THEN - 34 * + COUNT( * ) - - + COUNT( * ) ELSE NULL END * + - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-8454
SELECT CASE 44 WHEN 94 * - 34 * + CAST ( - 31 AS INTEGER ) THEN - 34 * + COUNT ( * ) - - + COUNT ( * ) ELSE NULL END * + - 77
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8455
SELECT DISTINCT - 37 + + + 88 + - 67 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8455
SELECT DISTINCT - 37 + + + 88 + - 67 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 28 * + 91 AS col0
----
-2548

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8457
SELECT ALL 61 + - + 47 + - 82 * + + COUNT( * ) * COUNT( * ) + 29 DIV - 65
----
-68

skipif mysql # not compatible
query I rowsort label-8457
SELECT ALL 61 + - + 47 + - 82 * + + COUNT ( * ) * COUNT ( * ) + 29 / - 65
----
-68

query I rowsort
SELECT 13 - - 82 AS col1
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-8459
SELECT 20 DIV - + 61 * 89 col0
----
0

skipif mysql # not compatible
query I rowsort label-8459
SELECT 20 / - + 61 * 89 col0
----
0

query I rowsort
SELECT 65 + + 36 - ( - 31 ) + - + 56 * - ( + 21 ) * - 88
----
-103356

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT 68 * ( MIN( DISTINCT 77 ) ) AS col0
----
5236

skipif mysql # not compatible
query I rowsort label-8461
SELECT 68 * ( MIN ( DISTINCT 77 ) ) AS col0
----
5236

query I rowsort
SELECT DISTINCT + 65 * - - 16 col0
----
1040

query I rowsort
SELECT DISTINCT 60 + + 68 AS col2
----
128

query I rowsort
SELECT 62 * + 61
----
3782

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8465
SELECT - MAX( ALL 59 ) - 31 * 85 DIV 85 + 87 + + - 57 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-8465
SELECT - MAX ( ALL 59 ) - 31 * 85 / 85 + 87 + + - 57 AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8466
SELECT DISTINCT 74 * - MIN( - - 62 ) AS col0
----
-4588

skipif mysql # not compatible
query I rowsort label-8466
SELECT DISTINCT 74 * - MIN ( - - 62 ) AS col0
----
-4588

query II rowsort
SELECT ALL - 10 AS col0, - 86 * + + 63 + + 15 AS col2
----
-10
-5403

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8468
SELECT ALL - 80 - CAST( NULL AS SIGNED ) * + + AVG ( + - 75 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8468
SELECT ALL - 80 - CAST ( NULL AS INTEGER ) * + + AVG ( + - 75 ) col2
----
NULL

query I rowsort
SELECT 31 + - 58
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8470
SELECT + CASE NULLIF ( - 52, + + ( + COUNT( * ) ) + - 81 * 97 ) WHEN + - 44 * COALESCE ( - + NULLIF ( + CASE - COALESCE ( COUNT( * ), + - COUNT( * ) + - SUM( DISTINCT - 92 ) ) WHEN + 24 * - MAX( 61 ) THEN + 29 * COUNT( * ) + - 80 WHEN - 99 THEN + + CAST( + 14 AS SIGNED ) ELSE + 39 * - COUNT( * ) * - + 3 + + - 74 END, + 44 ), COUNT( * ) - NULLIF ( - 95, 36 * 6 ) ) + + 68 THEN 86 * 15 + 39 WHEN + 54 + - 77 THEN 49 / 26 END * + 60 + 10 * 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8470
SELECT + CASE NULLIF ( - 52, + + ( + COUNT ( * ) ) + - 81 * 97 ) WHEN + - 44 * COALESCE ( - + NULLIF ( + CASE - COALESCE ( COUNT ( * ), + - COUNT ( * ) + - SUM ( DISTINCT - 92 ) ) WHEN + 24 * - MAX ( 61 ) THEN + 29 * COUNT ( * ) + - 80 WHEN - 99 THEN + + CAST ( + 14 AS INTEGER ) ELSE + 39 * - COUNT ( * ) * - + 3 + + - 74 END, + 44 ), COUNT ( * ) - NULLIF ( - 95, 36 * 6 ) ) + + 68 THEN 86 * 15 + 39 WHEN + 54 + - 77 THEN 49 / 26 END * + 60 + 10 * 4 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8471
SELECT - + 21 DIV + 2 + - 24 - ( + 9 ) * + - COUNT( + + 91 ) * 52 + 17
----
451

skipif mysql # not compatible
query I rowsort label-8471
SELECT - + 21 / + 2 + - 24 - ( + 9 ) * + - COUNT ( + + 91 ) * 52 + 17
----
451

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8472
SELECT DISTINCT - + 24 * ( CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8472
SELECT DISTINCT - + 24 * ( CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT ALL - - 74 * - 32 * + 5 AS col2
----
-11840

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT - MIN( - 25 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-8474
SELECT - MIN ( - 25 ) AS col1
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8475
SELECT DISTINCT - 6 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8475
SELECT DISTINCT - 6 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8476
SELECT DISTINCT - 95 * ( - CAST( - + 25 AS SIGNED ) ) + - 73 + - + 74
----
-2522

skipif mysql # not compatible
query I rowsort label-8476
SELECT DISTINCT - 95 * ( - CAST ( - + 25 AS INTEGER ) ) + - 73 + - + 74
----
-2522

query I rowsort
SELECT ALL - + 82 col0
----
-82

query II rowsort
SELECT 80, + 99 AS col0
----
80
99

query I rowsort
SELECT 33 * - 73
----
-2409

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT 8 * ( - 2 ) * MAX( + 35 ) AS col2
----
-560

skipif mysql # not compatible
query I rowsort label-8480
SELECT 8 * ( - 2 ) * MAX ( + 35 ) AS col2
----
-560

query I rowsort
SELECT - 55 * - + 36 - 67
----
1913

query I rowsort
SELECT ALL - ( 4 ) AS col1
----
-4

query I rowsort
SELECT 23 + - + 56
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8484
SELECT DISTINCT - CAST( 63 AS SIGNED )
----
-63

skipif mysql # not compatible
query I rowsort label-8484
SELECT DISTINCT - CAST ( 63 AS INTEGER )
----
-63

query II rowsort
SELECT DISTINCT + 42 + 58 AS col0, + 61 AS col1
----
100
61

query I rowsort
SELECT ALL 91 * + + 87
----
7917

query II rowsort
SELECT - 55, + 47 * 57 + + ( - 26 ) + + + 34 AS col0
----
-55
2687

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT 13 + 62 * + COUNT( * ) * 69 * - COUNT( * ) AS col1
----
-4265

skipif mysql # not compatible
query I rowsort label-8488
SELECT 13 + 62 * + COUNT ( * ) * 69 * - COUNT ( * ) AS col1
----
-4265

query II rowsort
SELECT - 58, - 17 - - + 53 AS col2
----
-58
36

query II rowsort
SELECT 23 + 8 AS col1, 65 * + + 49 * + 68 + - 10
----
31
216570

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT 58 - ( + 83 ) * ( 14 ) - + COALESCE ( + + 2, + CASE - - 72 WHEN - 81 * - 38 * + 25 + - 36 THEN + 54 WHEN + - COUNT( * ) THEN NULL END * 24 ) AS col0
----
-1106

skipif mysql # not compatible
query I rowsort label-8491
SELECT 58 - ( + 83 ) * ( 14 ) - + COALESCE ( + + 2, + CASE - - 72 WHEN - 81 * - 38 * + 25 + - 36 THEN + 54 WHEN + - COUNT ( * ) THEN NULL END * 24 ) AS col0
----
-1106

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT COUNT( * ) + 12
----
13

skipif mysql # not compatible
query I rowsort label-8492
SELECT COUNT ( * ) + 12
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-8493
SELECT CASE + MAX( + CASE 49 WHEN + 27 THEN + ( + - 67 ) - + - 0 WHEN - 63 THEN NULL END ) WHEN + 0 + + - 48 THEN - + ( MAX( DISTINCT + 79 ) ) ELSE NULL END - + - ( + - COALESCE ( - - 3, - - COUNT( * ), 67 ) ) AS col2, + 85 AS col1
----
NULL
85

skipif mysql # not compatible
query II rowsort label-8493
SELECT CASE + MAX ( + CASE 49 WHEN + 27 THEN + ( + - 67 ) - + - 0 WHEN - 63 THEN NULL END ) WHEN + 0 + + - 48 THEN - + ( MAX ( DISTINCT + 79 ) ) ELSE NULL END - + - ( + - COALESCE ( - - 3, - - COUNT ( * ), 67 ) ) AS col2, + 85 AS col1
----
NULL
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT DISTINCT 48 + - 11 + + COUNT( * ) * + 69 * + + 21
----
1486

skipif mysql # not compatible
query I rowsort label-8494
SELECT DISTINCT 48 + - 11 + + COUNT ( * ) * + 69 * + + 21
----
1486

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT DISTINCT + COALESCE ( + + 76, - COUNT( * ) ) + - + 1 / ( - CASE + ( - 28 ) WHEN - 33 THEN + 55 ELSE NULL END ) + - 7 + - 40 * + 97 * + + 81 / + - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-8495
SELECT DISTINCT + COALESCE ( + + 76, - COUNT ( * ) ) + - + 1 / ( - CASE + ( - 28 ) WHEN - 33 THEN + 55 ELSE NULL END ) + - 7 + - 40 * + 97 * + + 81 / + - 16
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8496
SELECT ALL - 52 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8496
SELECT ALL - 52 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT CASE + 14 WHEN - + 68 THEN + - MIN( 25 ) / + - 32 + 32 + 17 * - - 9 END + - + 10 + + COUNT( * ) / - + 71 + + 86 + + 71 + + + CASE 34 WHEN + 88 THEN NULL WHEN COUNT( * ) + + 83 THEN NULL WHEN + + 10 THEN - - 69 ELSE NULL END * 77 * - - 79 * 8 + + + 13 * - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-8497
SELECT CASE + 14 WHEN - + 68 THEN + - MIN ( 25 ) / + - 32 + 32 + 17 * - - 9 END + - + 10 + + COUNT ( * ) / - + 71 + + 86 + + 71 + + + CASE 34 WHEN + 88 THEN NULL WHEN COUNT ( * ) + + 83 THEN NULL WHEN + + 10 THEN - - 69 ELSE NULL END * 77 * - - 79 * 8 + + + 13 * - 19
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8498
SELECT ALL NULLIF ( + - ( + 43 ), 32 - CAST( NULL AS SIGNED ) + + + 71 / 38 / + + ( + + 68 ) * 48 )
----
-43

skipif mysql # not compatible
query I rowsort label-8498
SELECT ALL NULLIF ( + - ( + 43 ), 32 - CAST ( NULL AS INTEGER ) + + + 71 / 38 / + + ( + + 68 ) * 48 )
----
-43

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8499
SELECT - 26 AS col0, CAST( NULL AS SIGNED ) + + + CAST( 65 AS DECIMAL ) AS col1
----
-26
NULL

skipif mysql # not compatible
query II rowsort label-8499
SELECT - 26 AS col0, CAST ( NULL AS INTEGER ) + + + CAST ( 65 AS REAL ) AS col1
----
-26
NULL

query I rowsort
SELECT - 6 * - 97 - - 87 - + 40
----
629

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT DISTINCT - - COUNT( * ) * + + 52 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-8501
SELECT DISTINCT - - COUNT ( * ) * + + 52 AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT 15 + + 51 + + COUNT( * ) + 64 * - - 5 + + MIN( 45 )
----
432

skipif mysql # not compatible
query I rowsort label-8502
SELECT 15 + + 51 + + COUNT ( * ) + 64 * - - 5 + + MIN ( 45 )
----
432

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT ALL NULLIF ( 66, + ( - + MAX( - 14 ) ) ) * + 84 * + + 17 col2
----
94248

skipif mysql # not compatible
query I rowsort label-8503
SELECT ALL NULLIF ( 66, + ( - + MAX ( - 14 ) ) ) * + 84 * + + 17 col2
----
94248

query I rowsort
SELECT - 73 + + 32 AS col0
----
-41

query I rowsort
SELECT - 47 + + 45 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT - MIN( ALL + + 71 ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-8506
SELECT - MIN ( ALL + + 71 ) AS col1
----
-71

query II rowsort
SELECT 58 col0, 28 AS col1
----
58
28

query I rowsort
SELECT ALL + 27 * + 39 col0
----
1053

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT + ( + + MAX( + 83 ) ) + - 24
----
59

skipif mysql # not compatible
query I rowsort label-8509
SELECT + ( + + MAX ( + 83 ) ) + - 24
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8510
SELECT + 26 DIV - 67 + + + 69 * COUNT( * ) + - + 53 + + - 16 DIV + 31 + + - 20 * 46 AS col0
----
-904

skipif mysql # not compatible
query I rowsort label-8510
SELECT + 26 / - 67 + + + 69 * COUNT ( * ) + - + 53 + + - 16 / + 31 + + - 20 * 46 AS col0
----
-904

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT + MIN( + + 2 )
----
2

skipif mysql # not compatible
query I rowsort label-8511
SELECT + MIN ( + + 2 )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8512
SELECT DISTINCT - - CAST( - + COUNT( * ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8512
SELECT DISTINCT - - CAST ( - + COUNT ( * ) AS INTEGER ) AS col2
----
-1

query I rowsort
SELECT ALL 92 * - - 12 * - - 22 col0
----
24288

query I rowsort
SELECT ( + - 18 ) AS col2
----
-18

query II rowsort
SELECT ALL + 53, 23 * - 74 AS col0
----
53
-1702

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT - COUNT( + + 34 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8516
SELECT - COUNT ( + + 34 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT - 51 / - 13 * - COUNT( * ) + + ( + CASE + 60 WHEN - 99 THEN - 64 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8517
SELECT - 51 / - 13 * - COUNT ( * ) + + ( + CASE + 60 WHEN - 99 THEN - 64 END ) AS col0
----
NULL

query I rowsort
SELECT - 9 * + 34 AS col1
----
-306

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT - 15 + + + 21 + - + 20 * - COUNT( * ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-8519
SELECT - 15 + + + 21 + - + 20 * - COUNT ( * ) AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT ALL - COUNT( * ) * + 38 + - 52 AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-8520
SELECT ALL - COUNT ( * ) * + 38 + - 52 AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT 18 * - + 7 + - MAX( DISTINCT 7 ) - + 16 * - 73 - - - 46 + 98 AS col1
----
1087

skipif mysql # not compatible
query I rowsort label-8521
SELECT 18 * - + 7 + - MAX ( DISTINCT 7 ) - + 16 * - 73 - - - 46 + 98 AS col1
----
1087

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT ALL + COUNT( + - 4 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8522
SELECT ALL + COUNT ( + - 4 ) AS col1
----
1

query I rowsort
SELECT - 88 * - - 74 + + + 44
----
-6468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8524
SELECT ALL + CAST( + + MAX( - 14 ) AS SIGNED )
----
-14

skipif mysql # not compatible
query I rowsort label-8524
SELECT ALL + CAST ( + + MAX ( - 14 ) AS INTEGER )
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8525
SELECT ALL + 30 * - 89 DIV COUNT( * ) + + - 8 + - 5
----
-2683

skipif mysql # not compatible
query I rowsort label-8525
SELECT ALL + 30 * - 89 / COUNT ( * ) + + - 8 + - 5
----
-2683

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8526
SELECT - 79 + + 41 / - CASE - 23 WHEN - 31 THEN NULL WHEN - 36 THEN 31 / - - ( - - 92 ) / + CAST( + 92 AS DECIMAL ) + 35 + COUNT( DISTINCT + 80 ) * + + 76 * - 54 + + AVG ( 72 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8526
SELECT - 79 + + 41 / - CASE - 23 WHEN - 31 THEN NULL WHEN - 36 THEN 31 / - - ( - - 92 ) / + CAST ( + 92 AS REAL ) + 35 + COUNT ( DISTINCT + 80 ) * + + 76 * - 54 + + AVG ( 72 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 53 * 66 * + 25 + 2 AS col1
----
87452

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8528
SELECT DISTINCT 56 * + COALESCE ( - - SUM( + 94 ), - 65 ) + + 82 + 62 AS col1, + 68 DIV + 25 + + 22
----
5408
24

skipif mysql # not compatible
query II rowsort label-8528
SELECT DISTINCT 56 * + COALESCE ( - - SUM ( + 94 ), - 65 ) + + 82 + 62 AS col1, + 68 / + 25 + + 22
----
5408
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT - 73 + - CASE + 50 WHEN MAX( - 81 ) THEN 71 + + - 11 WHEN - ( - - 63 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8529
SELECT - 73 + - CASE + 50 WHEN MAX ( - 81 ) THEN 71 + + - 11 WHEN - ( - - 63 ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - ( + + ( + 25 ) ) * COALESCE ( + 13, - 52 ) + 91 + - - 56 AS col2
----
-178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8531
SELECT ALL + 93 + + CAST( NULL AS SIGNED ) * + 17 - MAX( DISTINCT 37 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8531
SELECT ALL + 93 + + CAST ( NULL AS INTEGER ) * + 17 - MAX ( DISTINCT 37 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT - COUNT( * ) * + 24 * - 66
----
1584

skipif mysql # not compatible
query I rowsort label-8532
SELECT - COUNT ( * ) * + 24 * - 66
----
1584

onlyif mysql # aggregate syntax: 
query II rowsort label-8533
SELECT ALL COUNT( + 47 ) AS col0, 18 * - 58 * 27 - + 53 * 46 * - 31 AS col1
----
1
47390

skipif mysql # not compatible
query II rowsort label-8533
SELECT ALL COUNT ( + 47 ) AS col0, 18 * - 58 * 27 - + 53 * 46 * - 31 AS col1
----
1
47390

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT - 89 * + 77 * + COUNT( * ) col1
----
-6853

skipif mysql # not compatible
query I rowsort label-8534
SELECT - 89 * + 77 * + COUNT ( * ) col1
----
-6853

query II rowsort
SELECT ALL + 93 - 30 AS col0, 71 AS col1
----
63
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8536
SELECT DISTINCT - 50 * - COUNT( * ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-8536
SELECT DISTINCT - 50 * - COUNT ( * ) AS col2
----
50

query I rowsort
SELECT - ( 22 ) - + 58 * - - 41 * 19 AS col2
----
-45204

query II rowsort
SELECT - 48 + - + 28 AS col1, 21 AS col2
----
-76
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT DISTINCT 92 * - COUNT( * ) * - 79 AS col2
----
7268

skipif mysql # not compatible
query I rowsort label-8539
SELECT DISTINCT 92 * - COUNT ( * ) * - 79 AS col2
----
7268

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8540
SELECT DISTINCT - CAST( + - 78 AS SIGNED )
----
78

skipif mysql # not compatible
query I rowsort label-8540
SELECT DISTINCT - CAST ( + - 78 AS INTEGER )
----
78

query I rowsort
SELECT + - 61 * - - 35 AS col2
----
-2135

query I rowsort
SELECT DISTINCT + - 40 * - - 1 * - - 79
----
-3160

query I rowsort
SELECT + - 17 - + 85 + - 59
----
-161

query I rowsort
SELECT + 6 * ( + + 76 ) AS col0
----
456

query I rowsort
SELECT + COALESCE ( + 83, 39, ( 72 ) ) col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT NULLIF ( + COUNT( * ), + 12 + + AVG ( 6 ) + + - 84 * 2 * 4 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8546
SELECT NULLIF ( + COUNT ( * ), + 12 + + AVG ( 6 ) + + - 84 * 2 * 4 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8547
SELECT ALL COUNT( * ) DIV 62
----
0

skipif mysql # not compatible
query I rowsort label-8547
SELECT ALL COUNT ( * ) / 62
----
0

query I rowsort
SELECT + + 40 * 54
----
2160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8549
SELECT - + MAX( + 28 ) DIV + 62
----
0

skipif mysql # not compatible
query I rowsort label-8549
SELECT - + MAX ( + 28 ) / + 62
----
0

query I rowsort
SELECT ( - - 60 ) AS col2
----
60

query I rowsort
SELECT DISTINCT + 41 * - 47 * - 48 + + 5 * + + 97 col1
----
92981

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT DISTINCT - 25 * - - COALESCE ( - 26, MIN( ALL 51 ) ) + + + 63 * - 84 * - ( - + 12 ) * - + MIN( - 41 ) AS col1
----
-2603014

skipif mysql # not compatible
query I rowsort label-8552
SELECT DISTINCT - 25 * - - COALESCE ( - 26, MIN ( ALL 51 ) ) + + + 63 * - 84 * - ( - + 12 ) * - + MIN ( - 41 ) AS col1
----
-2603014

query I rowsort
SELECT + 67 + + + 58 + - 4 * 13 AS col2
----
73

query II rowsort
SELECT + 46, 83 AS col2
----
46
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT ALL + MAX( ALL 39 )
----
39

skipif mysql # not compatible
query I rowsort label-8555
SELECT ALL + MAX ( ALL 39 )
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8556
SELECT - 58 * + 21 + - COALESCE ( CAST( NULL AS SIGNED ), - 75 ) * - 90 AS col1
----
-7968

skipif mysql # not compatible
query I rowsort label-8556
SELECT - 58 * + 21 + - COALESCE ( CAST ( NULL AS INTEGER ), - 75 ) * - 90 AS col1
----
-7968

query II rowsort
SELECT - 65 * + + 57 + 30, - 71 AS col1
----
-3675
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8558
SELECT COALESCE ( 75, + CAST( - 8 AS SIGNED ) * 30, - 37 ) col1
----
75

skipif mysql # not compatible
query I rowsort label-8558
SELECT COALESCE ( 75, + CAST ( - 8 AS INTEGER ) * 30, - 37 ) col1
----
75

query II rowsort
SELECT DISTINCT + 90, 30 AS col0
----
90
30

query I rowsort
SELECT - 66 + - + 64 AS col0
----
-130

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8561
SELECT DISTINCT + 7 * + CAST( NULL AS DECIMAL ) * - 48, 3 col1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-8561
SELECT DISTINCT + 7 * + CAST ( NULL AS REAL ) * - 48, 3 col1
----
NULL
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8562
SELECT + 26 * + COUNT( * ) * + COUNT( * ) * - CAST( NULL AS SIGNED ) * + 94 + - 9 + + COUNT( * ) * - + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-8562
SELECT + 26 * + COUNT ( * ) * + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * + 94 + - 9 + + COUNT ( * ) * - + 88
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT + SUM( ALL - 56 ) + - ( + 18 ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-8563
SELECT + SUM ( ALL - 56 ) + - ( + 18 ) AS col0
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-8564
SELECT - ( + 14 ) DIV - 52
----
0

skipif mysql # not compatible
query I rowsort label-8564
SELECT - ( + 14 ) / - 52
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8565
SELECT ALL + - COUNT( * ) * + 26 * - + 33 AS col2, + ( - 71 ) AS col1
----
858
-71

skipif mysql # not compatible
query II rowsort label-8565
SELECT ALL + - COUNT ( * ) * + 26 * - + 33 AS col2, + ( - 71 ) AS col1
----
858
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8566
SELECT + + 46 * 34 * - + COUNT( * ) + - - 7 AS col0
----
-1557

skipif mysql # not compatible
query I rowsort label-8566
SELECT + + 46 * 34 * - + COUNT ( * ) + - - 7 AS col0
----
-1557

query I rowsort
SELECT - + 87 + 48 col2
----
-39

query I rowsort
SELECT - + 82 - 79 + 76 * 75 col1
----
5539

query II rowsort
SELECT + 22 AS col1, - 61 * 81
----
22
-4941

query II rowsort
SELECT DISTINCT - 26 AS col1, - 29
----
-26
-29

query I rowsort
SELECT - 24 * + + 86 * - + 49 * 4 - + 25
----
404519

query I rowsort
SELECT - 68 + - 68
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT DISTINCT + MIN( ALL 48 )
----
48

skipif mysql # not compatible
query I rowsort label-8573
SELECT DISTINCT + MIN ( ALL 48 )
----
48

query I rowsort
SELECT + CASE 6 WHEN + 11 THEN NULL ELSE - 73 * + 52 END
----
-3796

onlyif mysql # DIV for integer division: 
query I rowsort label-8575
SELECT - 95 + 59 DIV + + 17 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-8575
SELECT - 95 + 59 / + + 17 AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT - + 44 + + - 92 + - COUNT( * ) - + 59 * - - 29 * + 63 * 52 AS col2
----
-5605373

skipif mysql # not compatible
query I rowsort label-8576
SELECT - + 44 + + - 92 + - COUNT ( * ) - + 59 * - - 29 * + 63 * 52 AS col2
----
-5605373

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT - CASE - + 11 WHEN 0 + + ( ( COUNT( * ) ) ) THEN + 1 WHEN - COUNT( * ) THEN + 98 * + 53 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8577
SELECT - CASE - + 11 WHEN 0 + + ( ( COUNT ( * ) ) ) THEN + 1 WHEN - COUNT ( * ) THEN + 98 * + 53 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8578
SELECT ( + - 84 ) * - COALESCE ( 61, + 87 - + 5 ) AS col2, COUNT( * ) * 74 AS col1
----
5124
74

skipif mysql # not compatible
query II rowsort label-8578
SELECT ( + - 84 ) * - COALESCE ( 61, + 87 - + 5 ) AS col2, COUNT ( * ) * 74 AS col1
----
5124
74

onlyif mysql # aggregate syntax: 
query II rowsort label-8579
SELECT - ( + 92 ) * - COUNT( * ) AS col0, SUM( + 56 ) AS col1
----
92
56

skipif mysql # not compatible
query II rowsort label-8579
SELECT - ( + 92 ) * - COUNT ( * ) AS col0, SUM ( + 56 ) AS col1
----
92
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT ALL 10 + ( + + 45 ) * + 7 * MIN( DISTINCT - 10 ) AS col0
----
-3140

skipif mysql # not compatible
query I rowsort label-8580
SELECT ALL 10 + ( + + 45 ) * + 7 * MIN ( DISTINCT - 10 ) AS col0
----
-3140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8581
SELECT ALL - 14 + - - 74 * COUNT( * ) * + 41 + - 13 + SUM( ALL - - 99 ) * 65 DIV - ( 41 )
----
2851

skipif mysql # not compatible
query I rowsort label-8581
SELECT ALL - 14 + - - 74 * COUNT ( * ) * + 41 + - 13 + SUM ( ALL - - 99 ) * 65 / - ( 41 )
----
2851

query I rowsort
SELECT - 93 + 79 AS col0
----
-14

query II rowsort
SELECT - - 26 AS col0, + ( - 42 )
----
26
-42

query I rowsort
SELECT ALL 37 + - + 84 AS col2
----
-47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8585
SELECT - - 36 DIV + 41 + - - 71 + 48 + + + CAST( - 75 AS SIGNED ) * - - 1 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-8585
SELECT - - 36 / + 41 + - - 71 + 48 + + + CAST ( - 75 AS INTEGER ) * - - 1 AS col2
----
44

query I rowsort
SELECT ALL + 55 + 65 AS col2
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8587
SELECT COUNT( * ) DIV + + 40, 98 DIV - CAST( NULL AS SIGNED ) + + 40 + 18 + + 51 * + 97 + + 69 * COUNT( * ) * - + 72 * - 94 * - COUNT( * ) * + - 92 AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8587
SELECT COUNT ( * ) / + + 40, 98 / - CAST ( NULL AS INTEGER ) + + 40 + 18 + + 51 * + 97 + + 69 * COUNT ( * ) * - + 72 * - 94 * - COUNT ( * ) * + - 92 AS col2
----
0
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8588
SELECT + 4 DIV 44 + - MIN( DISTINCT 36 ) * - + 74 AS col2
----
2664

skipif mysql # not compatible
query I rowsort label-8588
SELECT + 4 / 44 + - MIN ( DISTINCT 36 ) * - + 74 AS col2
----
2664

query I rowsort
SELECT ALL 32 - + ( + 51 )
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-8590
SELECT 39 * - COUNT( * ) * - + COUNT( + + 48 ) AS col0, 89
----
39
89

skipif mysql # not compatible
query II rowsort label-8590
SELECT 39 * - COUNT ( * ) * - + COUNT ( + + 48 ) AS col0, 89
----
39
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT - 35 * MAX( ALL - 71 ) + + + COALESCE ( - 25, + + COUNT( * ) ) AS col1
----
2460

skipif mysql # not compatible
query I rowsort label-8591
SELECT - 35 * MAX ( ALL - 71 ) + + + COALESCE ( - 25, + + COUNT ( * ) ) AS col1
----
2460

query I rowsort
SELECT ALL 96 - 14 * - 73 AS col0
----
1118

onlyif mysql # aggregate syntax: 
query II rowsort label-8593
SELECT ALL + SUM( + - 49 ) - - - 17 + NULLIF ( + 55, ( + - 43 ) ) AS col0, - 54 + - - 5 AS col0
----
-11
-49

skipif mysql # not compatible
query II rowsort label-8593
SELECT ALL + SUM ( + - 49 ) - - - 17 + NULLIF ( + 55, ( + - 43 ) ) AS col0, - 54 + - - 5 AS col0
----
-11
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-8594
SELECT ( COUNT( * ) ) * MIN( ALL + + 70 ) AS col1, 56 col1
----
70
56

skipif mysql # not compatible
query II rowsort label-8594
SELECT ( COUNT ( * ) ) * MIN ( ALL + + 70 ) AS col1, 56 col1
----
70
56

query I rowsort
SELECT DISTINCT 89 * + 31 AS col1
----
2759

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8596
SELECT 83 + + - CAST( 23 AS SIGNED ) * - 96 * 78, - NULLIF ( + MIN( 21 ), + NULLIF ( - MAX( ALL - 31 ), 22 ) ) AS col1, - 14 AS col0
----
172307
-21
-14

skipif mysql # not compatible
query III rowsort label-8596
SELECT 83 + + - CAST ( 23 AS INTEGER ) * - 96 * 78, - NULLIF ( + MIN ( 21 ), + NULLIF ( - MAX ( ALL - 31 ), 22 ) ) AS col1, - 14 AS col0
----
172307
-21
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8597
SELECT + 97 * COUNT( * ) + NULLIF ( - + 94, + 38 + - 5 )
----
3

skipif mysql # not compatible
query I rowsort label-8597
SELECT + 97 * COUNT ( * ) + NULLIF ( - + 94, + 38 + - 5 )
----
3

query I rowsort
SELECT ( 43 ) * + ( + ( + + 71 ) ) AS col2
----
3053

onlyif mysql # aggregate syntax: 
query II rowsort label-8599
SELECT ALL + + COUNT( * ) * - 73 AS col0, ( 25 ) * + 67 * - 24 AS col0
----
-73
-40200

skipif mysql # not compatible
query II rowsort label-8599
SELECT ALL + + COUNT ( * ) * - 73 AS col0, ( 25 ) * + 67 * - 24 AS col0
----
-73
-40200

query II rowsort
SELECT + 32 - - 21, 36 col1
----
53
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT DISTINCT - - COUNT( 45 ) + + 97 + 79 * - 91 * - 64 AS col2
----
460194

skipif mysql # not compatible
query I rowsort label-8601
SELECT DISTINCT - - COUNT ( 45 ) + + 97 + 79 * - 91 * - 64 AS col2
----
460194

query I rowsort
SELECT - 25 + + 44
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT - 82 * + - 35 * 32 + MIN( + 11 )
----
91851

skipif mysql # not compatible
query I rowsort label-8603
SELECT - 82 * + - 35 * 32 + MIN ( + 11 )
----
91851

onlyif mysql # DIV for integer division: 
query I rowsort label-8604
SELECT ALL - 63 DIV - 22 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8604
SELECT ALL - 63 / - 22 AS col0
----
2

query I rowsort
SELECT ALL + 23 + - 62 AS col0
----
-39

query I rowsort
SELECT 17 + + 29
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8607
SELECT DISTINCT - COUNT( DISTINCT + 40 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8607
SELECT DISTINCT - COUNT ( DISTINCT + 40 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8608
SELECT ALL + 54 * NULLIF ( 9, ( - + 80 ) + + + 85 - + 84 + + 90 + + 96 ) - - - COUNT( * ) * - 83 * + 42 + - 34 + - - 99 DIV - CAST( - 50 AS SIGNED ) - + 20 * + 79 AS col0
----
2359

skipif mysql # not compatible
query I rowsort label-8608
SELECT ALL + 54 * NULLIF ( 9, ( - + 80 ) + + + 85 - + 84 + + 90 + + 96 ) - - - COUNT ( * ) * - 83 * + 42 + - 34 + - - 99 / - CAST ( - 50 AS INTEGER ) - + 20 * + 79 AS col0
----
2359

onlyif mysql # DIV for integer division: 
query I rowsort label-8609
SELECT 24 DIV - + 81 - 35
----
-35

skipif mysql # not compatible
query I rowsort label-8609
SELECT 24 / - + 81 - 35
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8610
SELECT COUNT( * ) * + 89 * - 49 col1
----
-4361

skipif mysql # not compatible
query I rowsort label-8610
SELECT COUNT ( * ) * + 89 * - 49 col1
----
-4361

query I rowsort
SELECT ALL + 33 * 32 * + 72
----
76032

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT DISTINCT - SUM( ALL 34 ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-8612
SELECT DISTINCT - SUM ( ALL 34 ) AS col2
----
-34

query II rowsort
SELECT + 50 AS col0, + 49 AS col1
----
50
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT SUM( ALL ( ( - ( + 5 ) ) ) ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-8614
SELECT SUM ( ALL ( ( - ( + 5 ) ) ) ) AS col0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8615
SELECT 48 + + + CAST( NULL AS SIGNED ) * ( + - AVG ( DISTINCT + 93 ) ) * - ( - 43 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8615
SELECT 48 + + + CAST ( NULL AS INTEGER ) * ( + - AVG ( DISTINCT + 93 ) ) * - ( - 43 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT + COUNT( DISTINCT + 27 )
----
1

skipif mysql # not compatible
query I rowsort label-8616
SELECT + COUNT ( DISTINCT + 27 )
----
1

query I rowsort
SELECT 87 * 47 * 32
----
130848

onlyif mysql # DIV for integer division: 
query II rowsort label-8618
SELECT 34 * - ( - 49 ) + 10 * - 89, + 52 * NULLIF ( - 89, - NULLIF ( + 52, + 84 ) ) DIV 97 col0
----
776
-47

skipif mysql # not compatible
query II rowsort label-8618
SELECT 34 * - ( - 49 ) + 10 * - 89, + 52 * NULLIF ( - 89, - NULLIF ( + 52, + 84 ) ) / 97 col0
----
776
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-8619
SELECT ALL 42 DIV - - 41
----
1

skipif mysql # not compatible
query I rowsort label-8619
SELECT ALL 42 / - - 41
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8620
SELECT 64 DIV 44
----
1

skipif mysql # not compatible
query I rowsort label-8620
SELECT 64 / 44
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8621
SELECT 77 DIV - - 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8621
SELECT 77 / - - 89 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8622
SELECT ALL - CAST( + 63 AS SIGNED ) / + CAST( NULL AS SIGNED ) * 34 - - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-8622
SELECT ALL - CAST ( + 63 AS INTEGER ) / + CAST ( NULL AS INTEGER ) * 34 - - 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT ALL - + COALESCE ( MIN( ALL - 66 ), + 60 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-8623
SELECT ALL - + COALESCE ( MIN ( ALL - 66 ), + 60 ) AS col0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8624
SELECT DISTINCT 24 * 30 * 36 * CAST( + 54 AS SIGNED )
----
1399680

skipif mysql # not compatible
query I rowsort label-8624
SELECT DISTINCT 24 * 30 * 36 * CAST ( + 54 AS INTEGER )
----
1399680

query I rowsort
SELECT ALL + NULLIF ( + - 26, 16 )
----
-26

query I rowsort
SELECT ALL 42 + - - 56 AS col2
----
98

query I rowsort
SELECT ALL + 50 + + ( - + 69 )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT + 26 * 14 * + COUNT( * ) AS col1
----
364

skipif mysql # not compatible
query I rowsort label-8628
SELECT + 26 * 14 * + COUNT ( * ) AS col1
----
364

query I rowsort
SELECT + 30 + - 39 AS col1
----
-9

query I rowsort
SELECT - 13 + 17
----
4

query I rowsort
SELECT DISTINCT ( + 56 ) + - 58 + + 52 * - - 19 + - 84 col2
----
902

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8632
SELECT DISTINCT - 34 + CASE + 80 WHEN - 5 - - + 50 THEN 89 * + + 53 * - 90 + - + ( + 27 ) WHEN - - CAST( NULL AS SIGNED ) THEN NULL END + - ( + ( NULLIF ( - 7, - + 55 ) ) ) * - SUM( + - 81 ) + + 44 / 74 + - 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8632
SELECT DISTINCT - 34 + CASE + 80 WHEN - 5 - - + 50 THEN 89 * + + 53 * - 90 + - + ( + 27 ) WHEN - - CAST ( NULL AS INTEGER ) THEN NULL END + - ( + ( NULLIF ( - 7, - + 55 ) ) ) * - SUM ( + - 81 ) + + 44 / 74 + - 99 AS col1
----
NULL

query I rowsort
SELECT + - 28 + - NULLIF ( + 70, - 12 * + 53 ) * + + 82 AS col1
----
-5768

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT ALL - MIN( 27 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-8634
SELECT ALL - MIN ( 27 ) AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT DISTINCT SUM( DISTINCT + 78 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-8635
SELECT DISTINCT SUM ( DISTINCT + 78 ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT + 42 + - + COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-8636
SELECT + 42 + - + COUNT ( * )
----
41

query I rowsort
SELECT - 33 * - 65
----
2145

query I rowsort
SELECT + 45 + - 29 AS col1
----
16

query II rowsort
SELECT - 31 AS col1, 65 AS col2
----
-31
65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8640
SELECT ALL COUNT( - + CAST( 12 AS DECIMAL ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8640
SELECT ALL COUNT ( - + CAST ( 12 AS REAL ) ) AS col2
----
1

query II rowsort
SELECT 28 AS col1, - 25
----
28
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8642
SELECT ALL NULLIF ( 45, - + CAST( NULL AS SIGNED ) * + 9 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-8642
SELECT ALL NULLIF ( 45, - + CAST ( NULL AS INTEGER ) * + 9 ) AS col2
----
45

query I rowsort
SELECT - 14 + 6 + + 72 AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8644
SELECT DISTINCT COUNT( * ) - - 58 + 66 AS col0
----
125

skipif mysql # not compatible
query I rowsort label-8644
SELECT DISTINCT COUNT ( * ) - - 58 + 66 AS col0
----
125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8645
SELECT + ( + MAX( 43 ) ) DIV + 68 + + CASE - + 55 WHEN + 5 THEN NULL ELSE + 2 * - - 47 END * + - 99 AS col2
----
-9306

skipif mysql # not compatible
query I rowsort label-8645
SELECT + ( + MAX ( 43 ) ) / + 68 + + CASE - + 55 WHEN + 5 THEN NULL ELSE + 2 * - - 47 END * + - 99 AS col2
----
-9306

query I rowsort
SELECT DISTINCT 21 * + - 3 - + 39
----
-102

query I rowsort
SELECT + 37 * + CASE WHEN NOT - 33 IS NULL THEN + - 58 END * + 66 AS col0
----
-141636

query I rowsort
SELECT - 43 * + 22
----
-946

query II rowsort
SELECT NULLIF ( COALESCE ( + 29, - 38 ), - - AVG ( ALL - + 72 ) ) * - COALESCE ( - 28, 18 ) + + + NULLIF ( + 70, - + COALESCE ( 79, + + 86 ) + 13 ) + + 33, 20 + + 44 AS col0
----
915
64

query I rowsort
SELECT + 52 * + - 87 + - + 23 AS col1
----
-4547

query I rowsort
SELECT ALL - 75 * - 26 AS col2
----
1950

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT - 7 * - COUNT( * ) * + 76 AS col2
----
532

skipif mysql # not compatible
query I rowsort label-8652
SELECT - 7 * - COUNT ( * ) * + 76 AS col2
----
532

query II rowsort
SELECT + 74 AS col2, - 73 + + ( + ( + + 92 ) ) * + 93 + - 57
----
74
8426

query I rowsort
SELECT ALL + NULLIF ( + 57, 11 * + 38 + + + 10 * + 8 + - 97 ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT ALL - 76 * - 10 * 64 * - CASE + 52 WHEN 21 THEN NULL ELSE - COUNT( * ) * + 7 + + - 4 END AS col1
----
535040

skipif mysql # not compatible
query I rowsort label-8655
SELECT ALL - 76 * - 10 * 64 * - CASE + 52 WHEN 21 THEN NULL ELSE - COUNT ( * ) * + 7 + + - 4 END AS col1
----
535040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8656
SELECT - - COUNT( * ) * + CASE + 40 WHEN + + 78 / + - 74 + - 91 + - - 19 * - 39 THEN - - 42 * + + 27 * 80 + + 16 WHEN - 51 THEN NULL WHEN COUNT( * ) * - + 4 * + 44 / 46 THEN 59 + + + ( + CAST( MAX( DISTINCT + + 30 ) AS SIGNED ) ) ELSE NULL END + - 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8656
SELECT - - COUNT ( * ) * + CASE + 40 WHEN + + 78 / + - 74 + - 91 + - - 19 * - 39 THEN - - 42 * + + 27 * 80 + + 16 WHEN - 51 THEN NULL WHEN COUNT ( * ) * - + 4 * + 44 / 46 THEN 59 + + + ( + CAST ( MAX ( DISTINCT + + 30 ) AS INTEGER ) ) ELSE NULL END + - 54 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT DISTINCT + NULLIF ( COUNT( * ), + 47 * + 24 * 89 + 19 + + 64 * + + NULLIF ( - 15, + 37 * + + MIN( + - 97 ) + + ( - - 3 ) ) / - + 28 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8657
SELECT DISTINCT + NULLIF ( COUNT ( * ), + 47 * + 24 * 89 + 19 + + 64 * + + NULLIF ( - 15, + 37 * + + MIN ( + - 97 ) + + ( - - 3 ) ) / - + 28 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8658
SELECT + 30 col2, - 30 DIV + ( COUNT( * ) ) * COUNT( * ) + + + 71 + 63
----
30
104

skipif mysql # not compatible
query II rowsort label-8658
SELECT + 30 col2, - 30 / + ( COUNT ( * ) ) * COUNT ( * ) + + + 71 + 63
----
30
104

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT ALL 81 * + 6 + MIN( DISTINCT - 11 )
----
475

skipif mysql # not compatible
query I rowsort label-8659
SELECT ALL 81 * + 6 + MIN ( DISTINCT - 11 )
----
475

onlyif mysql # aggregate syntax: 
query I rowsort label-8660
SELECT + 71 * + - COUNT( * ) + + 74 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-8660
SELECT + 71 * + - COUNT ( * ) + + 74 AS col0
----
3

query II rowsort
SELECT + 14 col2, 46 AS col2
----
14
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8662
SELECT ALL + + 54 AS col0, CASE + 9 WHEN NULLIF ( CAST( NULL AS SIGNED ), - + COUNT( * ) ) THEN NULL WHEN 54 + + CAST( NULL AS DECIMAL ) + ( - COUNT( * ) ) * + 87 THEN NULL ELSE 38 END AS col2
----
54
38

skipif mysql # not compatible
query II rowsort label-8662
SELECT ALL + + 54 AS col0, CASE + 9 WHEN NULLIF ( CAST ( NULL AS INTEGER ), - + COUNT ( * ) ) THEN NULL WHEN 54 + + CAST ( NULL AS REAL ) + ( - COUNT ( * ) ) * + 87 THEN NULL ELSE 38 END AS col2
----
54
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8663
SELECT DISTINCT 58 DIV - MAX( + 83 ) * 51 DIV + 58 - - ( COUNT( * ) ) AS col1, 45
----
1
45

skipif mysql # not compatible
query II rowsort label-8663
SELECT DISTINCT 58 / - MAX ( + 83 ) * 51 / + 58 - - ( COUNT ( * ) ) AS col1, 45
----
1
45

query I rowsort
SELECT ALL 76 * + + 80 * - - 82
----
498560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8665
SELECT DISTINCT + + 14 * - COALESCE ( - 18, + NULLIF ( COUNT( * ), + COUNT( * ) * - + 92 ) + - + 19 DIV + + COUNT( * ) - - 53 + + 38, - 62 * + + 77 + - 74 )
----
252

skipif mysql # not compatible
query I rowsort label-8665
SELECT DISTINCT + + 14 * - COALESCE ( - 18, + NULLIF ( COUNT ( * ), + COUNT ( * ) * - + 92 ) + - + 19 / + + COUNT ( * ) - - 53 + + 38, - 62 * + + 77 + - 74 )
----
252

onlyif mysql # DIV for integer division: 
query I rowsort label-8666
SELECT + + CASE - - 37 WHEN - 92 THEN - 47 ELSE + + 17 DIV + + 76 END DIV - 70 * 19 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8666
SELECT + + CASE - - 37 WHEN - 92 THEN - 47 ELSE + + 17 / + + 76 END / - 70 * 19 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8667
SELECT ALL + 65, COUNT( * ) AS col1
----
65
1

skipif mysql # not compatible
query II rowsort label-8667
SELECT ALL + 65, COUNT ( * ) AS col1
----
65
1

query I rowsort
SELECT + 73 * - 32 + 60
----
-2276

query I rowsort
SELECT ALL 43 * - 80
----
-3440

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8670
SELECT COUNT( * ) AS col2, 76 * 80 + NULLIF ( - + 60, - 7 + + COUNT( * ) + - ( - MAX( + 61 ) ) + - CAST( NULL AS DECIMAL ) ) + + + NULLIF ( - 12, - 17 * - - 61 + - 3 + - + 98 )
----
1
6008

skipif mysql # not compatible
query II rowsort label-8670
SELECT COUNT ( * ) AS col2, 76 * 80 + NULLIF ( - + 60, - 7 + + COUNT ( * ) + - ( - MAX ( + 61 ) ) + - CAST ( NULL AS REAL ) ) + + + NULLIF ( - 12, - 17 * - - 61 + - 3 + - + 98 )
----
1
6008

query I rowsort
SELECT - 30 + - 12
----
-42

query II rowsort
SELECT - 44 AS col2, - 19 * + 3 * - + 70 * - 8 * 77
----
-44
-2457840

query I rowsort
SELECT + + 75 + + 50 * + 73
----
3725

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT + COUNT( * ) * - 80 * - 94 AS col1
----
7520

skipif mysql # not compatible
query I rowsort label-8674
SELECT + COUNT ( * ) * - 80 * - 94 AS col1
----
7520

query I rowsort
SELECT + 21 * + - ( + 31 )
----
-651

query I rowsort
SELECT + 27 + + 85 col1
----
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8677
SELECT - COUNT( * ) * - 0, 25 DIV + 59
----
0
0

skipif mysql # not compatible
query II rowsort label-8677
SELECT - COUNT ( * ) * - 0, 25 / + 59
----
0
0

query II rowsort
SELECT + 55 * - 35 AS col0, - 67 col2
----
-1925
-67

query I rowsort
SELECT DISTINCT 67 * + 99 * 78 AS col0
----
517374

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8680
SELECT + COUNT( * ) DIV 25
----
0

skipif mysql # not compatible
query I rowsort label-8680
SELECT + COUNT ( * ) / 25
----
0

query I rowsort
SELECT DISTINCT 31 * - + 67
----
-2077

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8682
SELECT ALL ( + 81 ) DIV 36 + - 0 + + - NULLIF ( + 45, + CASE - - 31 WHEN 68 DIV + 5 * - + 86 - AVG ( + 63 ) + 25 THEN + 38 * + COALESCE ( + - COUNT( * ), + 21 + + 38 - MAX( - + NULLIF ( 69, + - 94 ) ), - 44 * - - CAST( + 58 AS SIGNED ) * - 55 ) + - 90 + 24 - - 86 + - + COUNT( + 39 ) * - 91 END DIV - - 48 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-8682
SELECT ALL ( + 81 ) / 36 + - 0 + + - NULLIF ( + 45, + CASE - - 31 WHEN 68 / + 5 * - + 86 - AVG ( + 63 ) + 25 THEN + 38 * + COALESCE ( + - COUNT ( * ), + 21 + + 38 - MAX ( - + NULLIF ( 69, + - 94 ) ), - 44 * - - CAST ( + 58 AS INTEGER ) * - 55 ) + - 90 + 24 - - 86 + - + COUNT ( + 39 ) * - 91 END / - - 48 ) AS col1
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8683
SELECT ALL + CASE + - 4 WHEN + 92 DIV - 75 + + 44 + + + COUNT( * ) THEN NULL WHEN - - ( 44 ) THEN + + ( 23 ) ELSE + COUNT( * ) END DIV + 28 + 80 col1
----
80

skipif mysql # not compatible
query I rowsort label-8683
SELECT ALL + CASE + - 4 WHEN + 92 / - 75 + + 44 + + + COUNT ( * ) THEN NULL WHEN - - ( 44 ) THEN + + ( 23 ) ELSE + COUNT ( * ) END / + 28 + 80 col1
----
80

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8684
SELECT DISTINCT 1 DIV CAST( 75 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8684
SELECT DISTINCT 1 / CAST ( 75 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT ALL - 83 + - - MAX( ALL - 54 )
----
-137

skipif mysql # not compatible
query I rowsort label-8685
SELECT ALL - 83 + - - MAX ( ALL - 54 )
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT SUM( ALL - - 44 ) + + ( + SUM( - - 32 ) ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-8686
SELECT SUM ( ALL - - 44 ) + + ( + SUM ( - - 32 ) ) AS col0
----
76

query I rowsort
SELECT + + NULLIF ( + ( + - 95 ), + + 42 )
----
-95

query I rowsort
SELECT + 85 + + 78 + + + 99 * + - 68
----
-6569

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8689
SELECT + 68 * COALESCE ( AVG ( 90 ), - 65 ) * + + 48 * 12 * CAST( NULL AS SIGNED ) + + + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-8689
SELECT + 68 * COALESCE ( AVG ( 90 ), - 65 ) * + + 48 * 12 * CAST ( NULL AS INTEGER ) + + + 96
----
NULL

query I rowsort
SELECT - 58 * + 92 + 0 AS col0
----
-5336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8691
SELECT DISTINCT - CAST( + 98 AS SIGNED ) + + 69 - + 74 AS col2
----
-103

skipif mysql # not compatible
query I rowsort label-8691
SELECT DISTINCT - CAST ( + 98 AS INTEGER ) + + 69 - + 74 AS col2
----
-103

onlyif mysql # aggregate syntax: 
query II rowsort label-8692
SELECT - 35 + - + 7 AS col1, ( COUNT( * ) ) + - 10 * - + CASE - - 34 WHEN 49 THEN + 69 * + 80 * + ( + MAX( ALL 25 ) ) END AS col1
----
-42
NULL

skipif mysql # not compatible
query II rowsort label-8692
SELECT - 35 + - + 7 AS col1, ( COUNT ( * ) ) + - 10 * - + CASE - - 34 WHEN 49 THEN + 69 * + 80 * + ( + MAX ( ALL 25 ) ) END AS col1
----
-42
NULL

query I rowsort
SELECT DISTINCT + 39 * - 54 AS col0
----
-2106

query I rowsort
SELECT + 1 * 57 + + - 52 - + - 77 + + 95 * + ( + 71 )
----
6827

query II rowsort
SELECT 23 * + 48 AS col2, 34 + + - 25 - 91 * - COALESCE ( + + 19, + 51 )
----
1104
1738

query II rowsort
SELECT 16 + - 3 * + 65 AS col1, 26
----
-179
26

query I rowsort
SELECT DISTINCT ( - + 41 ) * + + 2 AS col0
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8698
SELECT ALL 68 * 16 * + - CASE - - 77 WHEN + - 82 THEN + COALESCE ( - - COUNT( * ), 96 * 11 * COUNT( * ) / - 74 + + AVG ( + 91 ) * - + 20, 97 / - COUNT( * ) * COUNT( * ) * - CAST( ( + 2 ) AS SIGNED ), + + AVG ( 45 ) ) * + + 84 / + 51 * + - 27 * - 18 * - 42 WHEN + 89 * + 50 * + 9 THEN NULL WHEN - - 86 - + COUNT( CASE + 35 WHEN 32 / - + 52 THEN NULL ELSE 79 END ) THEN - - 93 - - ( 46 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8698
SELECT ALL 68 * 16 * + - CASE - - 77 WHEN + - 82 THEN + COALESCE ( - - COUNT ( * ), 96 * 11 * COUNT ( * ) / - 74 + + AVG ( + 91 ) * - + 20, 97 / - COUNT ( * ) * COUNT ( * ) * - CAST ( ( + 2 ) AS INTEGER ), + + AVG ( 45 ) ) * + + 84 / + 51 * + - 27 * - 18 * - 42 WHEN + 89 * + 50 * + 9 THEN NULL WHEN - - 86 - + COUNT ( CASE + 35 WHEN 32 / - + 52 THEN NULL ELSE 79 END ) THEN - - 93 - - ( 46 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8699
SELECT DISTINCT 33 AS col2, - COUNT( ALL + 80 )
----
33
-1

skipif mysql # not compatible
query II rowsort label-8699
SELECT DISTINCT 33 AS col2, - COUNT ( ALL + 80 )
----
33
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT ALL - 2 * - 44 * + MAX( ALL - 20 )
----
-1760

skipif mysql # not compatible
query I rowsort label-8700
SELECT ALL - 2 * - 44 * + MAX ( ALL - 20 )
----
-1760

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT 39 + - 16 + - 12 * + COUNT( * ) * + 11 AS col1
----
-109

skipif mysql # not compatible
query I rowsort label-8701
SELECT 39 + - 16 + - 12 * + COUNT ( * ) * + 11 AS col1
----
-109

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8702
SELECT 34 AS col0, CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) col0
----
34
NULL

skipif mysql # not compatible
query II rowsort label-8702
SELECT 34 AS col0, CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) col0
----
34
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT COUNT( * ) + - - 0 col2
----
1

skipif mysql # not compatible
query I rowsort label-8703
SELECT COUNT ( * ) + - - 0 col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8704
SELECT CAST( + 2 AS SIGNED ) - - ( - + 68 ) AS col0, - 65 AS col1
----
-66
-65

skipif mysql # not compatible
query II rowsort label-8704
SELECT CAST ( + 2 AS INTEGER ) - - ( - + 68 ) AS col0, - 65 AS col1
----
-66
-65

query I rowsort
SELECT 58 + + - 53 AS col1
----
5

query I rowsort
SELECT 96 + + 6 * - 13
----
18

query I rowsort
SELECT DISTINCT 61 + + 56 AS col2
----
117

query I rowsort
SELECT ALL 19 + 97
----
116

query I rowsort
SELECT 73 + + 27
----
100

query I rowsort
SELECT DISTINCT 25 + - 29 * - + 43 + + 57
----
1329

query II rowsort
SELECT ALL 83 + + 15 + 25 AS col1, - 44 AS col0
----
123
-44

query I rowsort
SELECT ( - COALESCE ( + 63, + 78 ) ) + - - 83 AS col0
----
20

query I rowsort
SELECT ALL 60 + - 65 col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT SUM( - - 79 ) * - MIN( ALL - 85 )
----
6715

skipif mysql # not compatible
query I rowsort label-8714
SELECT SUM ( - - 79 ) * - MIN ( ALL - 85 )
----
6715

query I rowsort
SELECT - 85 * + - 8 + + + 68 col0
----
748

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8716
SELECT ( - 44 ) * + CAST( 12 AS SIGNED ) + COUNT( * ) AS col1
----
-527

skipif mysql # not compatible
query I rowsort label-8716
SELECT ( - 44 ) * + CAST ( 12 AS INTEGER ) + COUNT ( * ) AS col1
----
-527

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8717
SELECT ALL - 62 * - CASE + - 99 WHEN + 58 * CAST( NULL AS DECIMAL ) + - 21 + MIN( ALL 48 ) + + 56 + 83 THEN + + 10 - - COUNT( * ) - + 43 * - NULLIF ( ( + COUNT( * ) ), - CASE + COUNT( * ) WHEN 30 + - + ( + - 49 ) THEN NULL WHEN 23 * - 9 + - - 76 THEN + + CAST( + 1 AS SIGNED ) END / - CASE - 36 WHEN - + 83 THEN NULL WHEN + 15 * + + 90 THEN + 56 WHEN 81 THEN NULL ELSE NULL END ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8717
SELECT ALL - 62 * - CASE + - 99 WHEN + 58 * CAST ( NULL AS REAL ) + - 21 + MIN ( ALL 48 ) + + 56 + 83 THEN + + 10 - - COUNT ( * ) - + 43 * - NULLIF ( ( + COUNT ( * ) ), - CASE + COUNT ( * ) WHEN 30 + - + ( + - 49 ) THEN NULL WHEN 23 * - 9 + - - 76 THEN + + CAST ( + 1 AS INTEGER ) END / - CASE - 36 WHEN - + 83 THEN NULL WHEN + 15 * + + 90 THEN + 56 WHEN 81 THEN NULL ELSE NULL END ) END AS col0
----
NULL

query I rowsort
SELECT + - ( - 64 ) AS col0
----
64

query I rowsort
SELECT - 66 + + ( + 29 ) AS col0
----
-37

query I rowsort
SELECT ALL - - 75 col1
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8721
SELECT 69 DIV + COUNT( * ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-8721
SELECT 69 / + COUNT ( * ) AS col1
----
69

query I rowsort
SELECT ALL - 10 - + - 85
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-8723
SELECT + + COUNT( * ), - 19 + + + 37 * + - ( - + 65 ) AS col1
----
1
2386

skipif mysql # not compatible
query II rowsort label-8723
SELECT + + COUNT ( * ), - 19 + + + 37 * + - ( - + 65 ) AS col1
----
1
2386

onlyif mysql # DIV for integer division: 
query I rowsort label-8724
SELECT ALL + 35 DIV 72 * + 58 + + 12
----
12

skipif mysql # not compatible
query I rowsort label-8724
SELECT ALL + 35 / 72 * + 58 + + 12
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8725
SELECT - 14 * CAST( NULL AS SIGNED ) - - - COUNT( * ) / 31 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8725
SELECT - 14 * CAST ( NULL AS INTEGER ) - - - COUNT ( * ) / 31 col2
----
NULL

query I rowsort
SELECT + ( - 83 ) AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT COUNT( * ) * + 65 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-8727
SELECT COUNT ( * ) * + 65 AS col0
----
65

query I rowsort
SELECT - 8 * - 25
----
200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8729
SELECT 91 AS col2, + 98 - CAST( NULL AS SIGNED ) + + + 84 - + CAST( COALESCE ( + - COUNT( * ), 14 ) AS SIGNED ) + - COUNT( * ) * - 92 + - + 94
----
91
NULL

skipif mysql # not compatible
query II rowsort label-8729
SELECT 91 AS col2, + 98 - CAST ( NULL AS INTEGER ) + + + 84 - + CAST ( COALESCE ( + - COUNT ( * ), 14 ) AS INTEGER ) + - COUNT ( * ) * - 92 + - + 94
----
91
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8730
SELECT + COUNT( * ), 9 DIV + + 69 AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-8730
SELECT + COUNT ( * ), 9 / + + 69 AS col2
----
1
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8731
SELECT DISTINCT - 59 col0, + CAST( - 4 AS SIGNED ) AS col1
----
-59
-4

skipif mysql # not compatible
query II rowsort label-8731
SELECT DISTINCT - 59 col0, + CAST ( - 4 AS INTEGER ) AS col1
----
-59
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8732
SELECT ALL COUNT( * ) * - NULLIF ( 33, - - CAST( NULL AS SIGNED ) * + 90 / + 49 + 91 + COUNT( * ) )
----
-33

skipif mysql # not compatible
query I rowsort label-8732
SELECT ALL COUNT ( * ) * - NULLIF ( 33, - - CAST ( NULL AS INTEGER ) * + 90 / + 49 + 91 + COUNT ( * ) )
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8733
SELECT DISTINCT ( NULLIF ( + 9, - 62 + - CAST( NULL AS SIGNED ) ) ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-8733
SELECT DISTINCT ( NULLIF ( + 9, - 62 + - CAST ( NULL AS INTEGER ) ) ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT DISTINCT + MAX( 98 ) * - 25 AS col1
----
-2450

skipif mysql # not compatible
query I rowsort label-8734
SELECT DISTINCT + MAX ( 98 ) * - 25 AS col1
----
-2450

query I rowsort
SELECT 68 * - 89 AS col1
----
-6052

query I rowsort
SELECT ALL - 16 + - 99
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT 51 + + - CASE - COUNT( DISTINCT + + 82 ) WHEN + 73 THEN - 14 + - + MIN( ALL - 64 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8737
SELECT 51 + + - CASE - COUNT ( DISTINCT + + 82 ) WHEN + 73 THEN - 14 + - + MIN ( ALL - 64 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT ALL MAX( - + ( + 93 ) )
----
-93

skipif mysql # not compatible
query I rowsort label-8738
SELECT ALL MAX ( - + ( + 93 ) )
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-8739
SELECT 58 DIV 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8739
SELECT 58 / 99 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT COUNT( * ) + 67 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-8740
SELECT COUNT ( * ) + 67 AS col2
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8741
SELECT ALL - COUNT( * ) + + COALESCE ( - CAST( NULL AS SIGNED ), + 32 ) AS col2, - 13 + - 3 - + 26 * - 48 * + - 70
----
31
-87376

skipif mysql # not compatible
query II rowsort label-8741
SELECT ALL - COUNT ( * ) + + COALESCE ( - CAST ( NULL AS INTEGER ), + 32 ) AS col2, - 13 + - 3 - + 26 * - 48 * + - 70
----
31
-87376

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8742
SELECT ALL - 44 DIV - COALESCE ( - NULLIF ( 7, 65 ), 80 * COUNT( * ) ) col0
----
-6

skipif mysql # not compatible
query I rowsort label-8742
SELECT ALL - 44 / - COALESCE ( - NULLIF ( 7, 65 ), 80 * COUNT ( * ) ) col0
----
-6

query I rowsort
SELECT DISTINCT + 89 + - 22 + + 46 AS col1
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT 86 + - 41 + - 84 * 12 + + COUNT( * ) AS col0
----
-962

skipif mysql # not compatible
query I rowsort label-8744
SELECT 86 + - 41 + - 84 * 12 + + COUNT ( * ) AS col0
----
-962

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8745
SELECT ALL MIN( DISTINCT - - 32 ) * ( CAST( NULL AS DECIMAL ) ) + + + 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8745
SELECT ALL MIN ( DISTINCT - - 32 ) * ( CAST ( NULL AS REAL ) ) + + + 98 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8746
SELECT 93 * - 88 DIV + 88 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-8746
SELECT 93 * - 88 / + 88 AS col1
----
-93

query I rowsort
SELECT ALL + 71 + 16 AS col0
----
87

query I rowsort
SELECT - 66 - - 69
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8749
SELECT ALL + 45 * CAST( NULL AS SIGNED ) * + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-8749
SELECT ALL + 45 * CAST ( NULL AS INTEGER ) * + 45
----
NULL

query I rowsort
SELECT + 48 * - 20
----
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT DISTINCT + COALESCE ( - 44, + ( + - 86 ), - COUNT( * ) + + 82 )
----
-44

skipif mysql # not compatible
query I rowsort label-8751
SELECT DISTINCT + COALESCE ( - 44, + ( + - 86 ), - COUNT ( * ) + + 82 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT ALL + - MAX( DISTINCT 81 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-8752
SELECT ALL + - MAX ( DISTINCT 81 ) AS col1
----
-81

query I rowsort
SELECT + - 20 - + 16 * + 20
----
-340

query I rowsort
SELECT ALL - 50 * - 72 AS col2
----
3600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8755
SELECT + ( + + CASE - - 61 WHEN - 50 / COUNT( * ) THEN CASE COALESCE ( + 66, + + 86 ) WHEN - 19 * 89 THEN + 26 WHEN + 26 * NULLIF ( + 84, - 88 ) + - - 22 * - MAX( DISTINCT + 57 ) + - 18 THEN - 91 WHEN + CASE - MAX( 8 ) WHEN - 58 THEN NULL WHEN + COUNT( ALL + 4 ) + - 66 THEN NULL WHEN 19 THEN - 42 ELSE - CAST( NULL AS SIGNED ) + - 10 * + CAST( NULL AS SIGNED ) END + + - 27 THEN - COUNT( * ) END WHEN - - 70 + - + 41 - 46 THEN + 76 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8755
SELECT + ( + + CASE - - 61 WHEN - 50 / COUNT ( * ) THEN CASE COALESCE ( + 66, + + 86 ) WHEN - 19 * 89 THEN + 26 WHEN + 26 * NULLIF ( + 84, - 88 ) + - - 22 * - MAX ( DISTINCT + 57 ) + - 18 THEN - 91 WHEN + CASE - MAX ( 8 ) WHEN - 58 THEN NULL WHEN + COUNT ( ALL + 4 ) + - 66 THEN NULL WHEN 19 THEN - 42 ELSE - CAST ( NULL AS INTEGER ) + - 10 * + CAST ( NULL AS INTEGER ) END + + - 27 THEN - COUNT ( * ) END WHEN - - 70 + - + 41 - 46 THEN + 76 END ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8756
SELECT - 70 + 27 - - - 73 + ( + - CAST( NULL AS SIGNED ) ) * COUNT( * ) - 64 - 49 * - 76 * - + COUNT( * ) * - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-8756
SELECT - 70 + 27 - - - 73 + ( + - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) - 64 - 49 * - 76 * - + COUNT ( * ) * - 55
----
NULL

query I rowsort
SELECT ALL 14 * + ( - - 11 ) AS col0
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT + CASE WHEN - 12 BETWEEN NULL AND NULL THEN + - 35 + - COUNT( * ) END + - + 59 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8758
SELECT + CASE WHEN - 12 BETWEEN NULL AND NULL THEN + - 35 + - COUNT ( * ) END + - + 59 col1
----
NULL

query III rowsort
SELECT + 53 - - 2 * - + ( + + 91 ) AS col0, + 7 AS col1, - 76
----
-129
7
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-8760
SELECT + MIN( + + 21 ) AS col2, + 99 * + 27 + + + 36
----
21
2709

skipif mysql # not compatible
query II rowsort label-8760
SELECT + MIN ( + + 21 ) AS col2, + 99 * + 27 + + + 36
----
21
2709

query I rowsort
SELECT ALL - 13 * - 49 * + 93 AS col2
----
59241

query I rowsort
SELECT ALL 94 * - ( + 71 ) + - 83 * - 61
----
-1611

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8763
SELECT DISTINCT COUNT( ALL + - CAST( NULL AS SIGNED ) ) * - - 68 * + + 60 AS col0, 72 * COUNT( * ) * + + 3 + + 69
----
0
285

skipif mysql # not compatible
query II rowsort label-8763
SELECT DISTINCT COUNT ( ALL + - CAST ( NULL AS INTEGER ) ) * - - 68 * + + 60 AS col0, 72 * COUNT ( * ) * + + 3 + + 69
----
0
285

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT ALL ( + 78 ) * 71 + ( - - COUNT( * ) ) * + 66 AS col0
----
5604

skipif mysql # not compatible
query I rowsort label-8764
SELECT ALL ( + 78 ) * 71 + ( - - COUNT ( * ) ) * + 66 AS col0
----
5604

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT SUM( + - 5 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-8765
SELECT SUM ( + - 5 ) AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT + MAX( + + 97 ) * - 50 * + + 82 * - - 18 AS col1
----
-7158600

skipif mysql # not compatible
query I rowsort label-8766
SELECT + MAX ( + + 97 ) * - 50 * + + 82 * - - 18 AS col1
----
-7158600

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT - COUNT( * ) + - MIN( + 56 )
----
-57

skipif mysql # not compatible
query I rowsort label-8767
SELECT - COUNT ( * ) + - MIN ( + 56 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT MAX( ALL + + 35 ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-8768
SELECT MAX ( ALL + + 35 ) AS col0
----
35

onlyif mysql # DIV for integer division: 
query II rowsort label-8769
SELECT - 45 AS col1, 97 DIV - + 86
----
-45
-1

skipif mysql # not compatible
query II rowsort label-8769
SELECT - 45 AS col1, 97 / - + 86
----
-45
-1

query I rowsort
SELECT DISTINCT 49 + - 15 AS col0
----
34

query I rowsort
SELECT DISTINCT 8 + 23 col2
----
31

query I rowsort
SELECT ALL - 40 + + 48
----
8

query I rowsort
SELECT DISTINCT - 31 * + 99
----
-3069

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8774
SELECT + 25 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8774
SELECT + 25 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 42 + - 75 + + 53 * + 61
----
3116

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT - 48 - + COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-8776
SELECT - 48 - + COUNT ( * )
----
-49

query I rowsort
SELECT DISTINCT ( ( + 92 ) )
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8778
SELECT ALL + 40 - + CASE + - COUNT( * ) WHEN + COUNT( * ) * 98 THEN MIN( CAST( + - 68 AS SIGNED ) ) / - 8 * 14 * + + CASE 8 WHEN - - 85 THEN NULL WHEN + - NULLIF ( - ( - + COALESCE ( COUNT( * ), - CASE - ( - + 55 ) WHEN NULLIF ( 71, + 51 * - - 79 * CAST( NULL AS SIGNED ) + 54 + - MIN( ALL + + 57 ) + ( - AVG ( + 15 ) ) * 82 + 50 ) THEN 64 ELSE NULL END * + 7 * + 30 ) ), + CASE + - 88 WHEN + 73 THEN NULL WHEN + + 49 THEN NULL ELSE 95 * + ( + 78 ) END ) - 38 THEN NULL ELSE 51 END WHEN 16 THEN 93 END * 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8778
SELECT ALL + 40 - + CASE + - COUNT ( * ) WHEN + COUNT ( * ) * 98 THEN MIN ( CAST ( + - 68 AS INTEGER ) ) / - 8 * 14 * + + CASE 8 WHEN - - 85 THEN NULL WHEN + - NULLIF ( - ( - + COALESCE ( COUNT ( * ), - CASE - ( - + 55 ) WHEN NULLIF ( 71, + 51 * - - 79 * CAST ( NULL AS INTEGER ) + 54 + - MIN ( ALL + + 57 ) + ( - AVG ( + 15 ) ) * 82 + 50 ) THEN 64 ELSE NULL END * + 7 * + 30 ) ), + CASE + - 88 WHEN + 73 THEN NULL WHEN + + 49 THEN NULL ELSE 95 * + ( + 78 ) END ) - 38 THEN NULL ELSE 51 END WHEN 16 THEN 93 END * 19 AS col1
----
NULL

query I rowsort
SELECT - 95 * + 38 AS col2
----
-3610

query I rowsort
SELECT ALL NULLIF ( 68, - 69 / ( + 87 ) - 92 )
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8781
SELECT DISTINCT - 13 * - 18 - + - ( + 81 ) + - + 24 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8781
SELECT DISTINCT - 13 * - 18 - + - ( + 81 ) + - + 24 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8782
SELECT DISTINCT - - 80 DIV 47 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8782
SELECT DISTINCT - - 80 / 47 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT ALL + + 18 - COUNT( * ) - + - 27 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-8783
SELECT ALL + + 18 - COUNT ( * ) - + - 27 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT ALL - 80 * COALESCE ( COUNT( ALL 72 ), + ( + COUNT( * ) ) + 42, + + COUNT( * ) ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-8784
SELECT ALL - 80 * COALESCE ( COUNT ( ALL 72 ), + ( + COUNT ( * ) ) + 42, + + COUNT ( * ) ) AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT DISTINCT - - COUNT( * ) * + - 44 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-8785
SELECT DISTINCT - - COUNT ( * ) * + - 44 AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT + + MIN( ALL 56 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-8786
SELECT + + MIN ( ALL 56 ) AS col2
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8787
SELECT + 24 + + COALESCE ( + 99, + + CAST( + 27 AS SIGNED ), ( + 49 ) + + 48 ) + + - 96 * - CAST( NULL AS SIGNED ) * - 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8787
SELECT + 24 + + COALESCE ( + 99, + + CAST ( + 27 AS INTEGER ), ( + 49 ) + + 48 ) + + - 96 * - CAST ( NULL AS INTEGER ) * - 47 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + ( - 47 ) * - NULLIF ( 98, - 33 / - 75 ) * - 38
----
-175028

query I rowsort
SELECT - 68 * 11 + + 84
----
-664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8790
SELECT 46 col1, 90 + CASE + NULLIF ( 16, + 15 ) WHEN - SUM( DISTINCT CAST( NULL AS SIGNED ) ) / + CASE - MIN( ALL 63 ) WHEN + 70 THEN NULL WHEN COUNT( 96 ) + + + COUNT( * ) THEN + MAX( ALL - 18 ) END THEN CAST( NULL AS SIGNED ) END AS col0
----
46
NULL

skipif mysql # not compatible
query II rowsort label-8790
SELECT 46 col1, 90 + CASE + NULLIF ( 16, + 15 ) WHEN - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) / + CASE - MIN ( ALL 63 ) WHEN + 70 THEN NULL WHEN COUNT ( 96 ) + + + COUNT ( * ) THEN + MAX ( ALL - 18 ) END THEN CAST ( NULL AS INTEGER ) END AS col0
----
46
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8791
SELECT - 51 DIV 6 + + 97 + - 48 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-8791
SELECT - 51 / 6 + + 97 + - 48 AS col2
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8792
SELECT + + 24 AS col2, + 39 + - COALESCE ( + 92, - + 59 ) + - 35 + ( - COUNT( * ) ) DIV NULLIF ( 53, - - NULLIF ( 77, + - 92 + COUNT( * ) ) ) col2
----
24
-88

skipif mysql # not compatible
query II rowsort label-8792
SELECT + + 24 AS col2, + 39 + - COALESCE ( + 92, - + 59 ) + - 35 + ( - COUNT ( * ) ) / NULLIF ( 53, - - NULLIF ( 77, + - 92 + COUNT ( * ) ) ) col2
----
24
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT DISTINCT COUNT( * ) * 85 + - 43 + ( - 26 ) * + 97 AS col0
----
-2480

skipif mysql # not compatible
query I rowsort label-8793
SELECT DISTINCT COUNT ( * ) * 85 + - 43 + ( - 26 ) * + 97 AS col0
----
-2480

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT DISTINCT 38 * - + MAX( 5 ) + + 70
----
-120

skipif mysql # not compatible
query I rowsort label-8794
SELECT DISTINCT 38 * - + MAX ( 5 ) + + 70
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT - MAX( ALL - 70 )
----
70

skipif mysql # not compatible
query I rowsort label-8795
SELECT - MAX ( ALL - 70 )
----
70

query I rowsort
SELECT ALL 50 * 25 AS col0
----
1250

query I rowsort
SELECT ALL 26 * + + 1 + 78 AS col1
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8798
SELECT + CASE COUNT( * ) WHEN 74 + + AVG ( + 64 ) * + NULLIF ( + - 85, + 66 + - 26 ) THEN + - CAST( NULL AS SIGNED ) WHEN COUNT( DISTINCT + 7 ) * + 14 / + 78 + + 68 THEN - + 42 - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8798
SELECT + CASE COUNT ( * ) WHEN 74 + + AVG ( + 64 ) * + NULLIF ( + - 85, + 66 + - 26 ) THEN + - CAST ( NULL AS INTEGER ) WHEN COUNT ( DISTINCT + 7 ) * + 14 / + 78 + + 68 THEN - + 42 - COUNT ( * ) END
----
NULL

query I rowsort
SELECT + CASE 11 WHEN + 27 THEN NULL WHEN 49 THEN 37 + + 8 ELSE + 22 - + - 65 * - 26 END AS col1
----
-1668

onlyif mysql # DIV for integer division: 
query I rowsort label-8800
SELECT + 91 DIV - + 18
----
-5

skipif mysql # not compatible
query I rowsort label-8800
SELECT + 91 / - + 18
----
-5

query I rowsort
SELECT CASE - 71 WHEN + 41 + - + 87 THEN - - 18 - + - 7 + - 32 + + + 96 ELSE NULL END col1
----
NULL

query II rowsort
SELECT ALL - 43 * + 38, 1 AS col1
----
-1634
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT ALL MIN( ALL + ( + 62 ) )
----
62

skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL MIN ( ALL + ( + 62 ) )
----
62

query I rowsort
SELECT DISTINCT 38 * - - 38 + 15
----
1459

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT ALL COUNT( * ) - 94 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-8805
SELECT ALL COUNT ( * ) - 94 AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT MAX( ALL 87 ) + - + 73 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-8806
SELECT MAX ( ALL 87 ) + - + 73 AS col1
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8807
SELECT 12 * - CAST( ( + + 30 ) AS SIGNED )
----
-360

skipif mysql # not compatible
query I rowsort label-8807
SELECT 12 * - CAST ( ( + + 30 ) AS INTEGER )
----
-360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8808
SELECT ALL 37 DIV + - MAX( ALL 56 )
----
0

skipif mysql # not compatible
query I rowsort label-8808
SELECT ALL 37 / + - MAX ( ALL 56 )
----
0

query I rowsort
SELECT 86 + 10 AS col0
----
96

query I rowsort
SELECT 28 + + COALESCE ( - 28, - 86 ) col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8811
SELECT 87 AS col0, COUNT( * ) - + 95
----
87
-94

skipif mysql # not compatible
query II rowsort label-8811
SELECT 87 AS col0, COUNT ( * ) - + 95
----
87
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8812
SELECT 11 * + - COUNT( * ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-8812
SELECT 11 * + - COUNT ( * ) AS col0
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8813
SELECT ALL - ( + + COUNT( DISTINCT + - 13 ) ) * 78 - + - CAST( NULL AS SIGNED ) + - 67 AS col1, 44 AS col2
----
NULL
44

skipif mysql # not compatible
query II rowsort label-8813
SELECT ALL - ( + + COUNT ( DISTINCT + - 13 ) ) * 78 - + - CAST ( NULL AS INTEGER ) + - 67 AS col1, 44 AS col2
----
NULL
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT DISTINCT CASE + - 67 WHEN + + SUM( DISTINCT + - 53 ) THEN NULL WHEN - - 82 THEN - + ( - + COUNT( * ) ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8814
SELECT DISTINCT CASE + - 67 WHEN + + SUM ( DISTINCT + - 53 ) THEN NULL WHEN - - 82 THEN - + ( - + COUNT ( * ) ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - NULLIF ( - COALESCE ( + 58, + ( 99 ) + - 87 + 46 ), + 16 ) AS col1
----
58

query II rowsort
SELECT DISTINCT - 95 col1, + 11
----
-95
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT ALL - 23 * ( + CASE 52 WHEN COUNT( * ) THEN - COUNT( DISTINCT 45 ) ELSE NULL END ) * + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-8817
SELECT ALL - 23 * ( + CASE 52 WHEN COUNT ( * ) THEN - COUNT ( DISTINCT 45 ) ELSE NULL END ) * + 20
----
NULL

query I rowsort
SELECT 54 - - + 6 col1
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8819
SELECT ALL 79 AS col0, 86 * - ( 28 ) / - CAST( NULL AS SIGNED ) AS col1
----
79
NULL

skipif mysql # not compatible
query II rowsort label-8819
SELECT ALL 79 AS col0, 86 * - ( 28 ) / - CAST ( NULL AS INTEGER ) AS col1
----
79
NULL

query I rowsort
SELECT + 52 + - 88 AS col2
----
-36

query II rowsort
SELECT - + 59, 1 AS col0
----
-59
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8822
SELECT COUNT( * ) * + CASE 12 WHEN + + COUNT( * ) THEN NULL ELSE 46 * + - NULLIF ( + 45, + MAX( + - 28 ) * + + 32 * + - COUNT( * ) ) * 4 + - - COUNT( * ) + 59 DIV - 10 * + ( COUNT( * ) ) - + - 95 + 26 + + MIN( ALL + 8 ) END AS col0
----
-8155

skipif mysql # not compatible
query I rowsort label-8822
SELECT COUNT ( * ) * + CASE 12 WHEN + + COUNT ( * ) THEN NULL ELSE 46 * + - NULLIF ( + 45, + MAX ( + - 28 ) * + + 32 * + - COUNT ( * ) ) * 4 + - - COUNT ( * ) + 59 / - 10 * + ( COUNT ( * ) ) - + - 95 + 26 + + MIN ( ALL + 8 ) END AS col0
----
-8155

onlyif mysql # DIV for integer division: 
query I rowsort label-8823
SELECT + COALESCE ( - 68, + 95 + 22, - + 60 DIV - 36 + 65 + 5 DIV 83 * 33 ) * - 77
----
5236

skipif mysql # not compatible
query I rowsort label-8823
SELECT + COALESCE ( - 68, + 95 + 22, - + 60 / - 36 + 65 + 5 / 83 * 33 ) * - 77
----
5236

onlyif mysql # aggregate syntax: 
query II rowsort label-8824
SELECT + 74 AS col2, - COUNT( * ) AS col2
----
74
-1

skipif mysql # not compatible
query II rowsort label-8824
SELECT + 74 AS col2, - COUNT ( * ) AS col2
----
74
-1

query I rowsort
SELECT DISTINCT - 29 + ( + 97 )
----
68

query I rowsort
SELECT ALL + - 27 + 11
----
-16

query I rowsort
SELECT ALL + - ( - 18 ) + 48 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT ALL - 16 + - + COUNT( * ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-8828
SELECT ALL - 16 + - + COUNT ( * ) AS col2
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8829
SELECT 22 AS col1, - ( COUNT( DISTINCT 48 ) ) * - 86 * 20 DIV - ( + 85 ) AS col0
----
22
-20

skipif mysql # not compatible
query II rowsort label-8829
SELECT 22 AS col1, - ( COUNT ( DISTINCT 48 ) ) * - 86 * 20 / - ( + 85 ) AS col0
----
22
-20

query I rowsort
SELECT 92 * 85 * - 33
----
-258060

query I rowsort
SELECT ALL - 72 + + 12 + + - 93 AS col0
----
-153

query I rowsort
SELECT + 51 - + + 96 + + - 45
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8833
SELECT ALL + 84 + + 22, CAST( 38 AS SIGNED ) AS col1
----
106
38

skipif mysql # not compatible
query II rowsort label-8833
SELECT ALL + 84 + + 22, CAST ( 38 AS INTEGER ) AS col1
----
106
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8834
SELECT ALL - NULLIF ( - 5, + 14 ), + 16 DIV - COUNT( * ) AS col2
----
5
-16

skipif mysql # not compatible
query II rowsort label-8834
SELECT ALL - NULLIF ( - 5, + 14 ), + 16 / - COUNT ( * ) AS col2
----
5
-16

query I rowsort
SELECT ALL - 57 * + 24 AS col0
----
-1368

query I rowsort
SELECT DISTINCT + 3 + + 60 * 73 col2
----
4383

query I rowsort
SELECT DISTINCT - 39 - + 2 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT ALL COUNT( * ) * + 76 * 66 * 92
----
461472

skipif mysql # not compatible
query I rowsort label-8838
SELECT ALL COUNT ( * ) * + 76 * 66 * 92
----
461472

query II rowsort
SELECT 2 * - 9, 62 * + - COALESCE ( + 7, 54 ) AS col0
----
-18
-434

query I rowsort
SELECT ALL - COALESCE ( + 7, + 6 ) AS col0
----
-7

query I rowsort
SELECT DISTINCT 54 - 50
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT ALL COUNT( * ) * + 82 * - - 74
----
6068

skipif mysql # not compatible
query I rowsort label-8842
SELECT ALL COUNT ( * ) * + 82 * - - 74
----
6068

query II rowsort
SELECT DISTINCT + 95 * - 86 AS col0, - 85
----
-8170
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8844
SELECT COUNT( * ) DIV - ( + SUM( DISTINCT + + 31 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8844
SELECT COUNT ( * ) / - ( + SUM ( DISTINCT + + 31 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT DISTINCT SUM( DISTINCT - 36 ) * + COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-8845
SELECT DISTINCT SUM ( DISTINCT - 36 ) * + COUNT ( * )
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8846
SELECT CAST( NULL AS SIGNED ) + + 35 * 50
----
NULL

skipif mysql # not compatible
query I rowsort label-8846
SELECT CAST ( NULL AS INTEGER ) + + 35 * 50
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8847
SELECT + 27 - 41 DIV + 58 * - COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-8847
SELECT + 27 - 41 / + 58 * - COUNT ( * )
----
27

query II rowsort
SELECT 13 - - + 8 col2, + 35 AS col1
----
21
35

query I rowsort
SELECT + CASE + 79 WHEN 19 THEN NULL WHEN + 54 * - 34 THEN NULL ELSE - 15 + - 52 END
----
-67

onlyif mysql # DIV for integer division: 
query II rowsort label-8850
SELECT - 50 DIV + 76 AS col1, + 8 AS col2
----
0
8

skipif mysql # not compatible
query II rowsort label-8850
SELECT - 50 / + 76 AS col1, + 8 AS col2
----
0
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8851
SELECT - 19 + - ( + COALESCE ( + - COALESCE ( - 7, - + COALESCE ( - + 46, - - 10 ), + 52 * + + CASE - + 66 WHEN + - 89 THEN - 71 WHEN COUNT( * ) * - SUM( 8 ) THEN NULL ELSE NULL END - - 45 DIV - 93 + - ( + + SUM( + 81 ) ) + + CASE 31 WHEN - + 12 * + 23 THEN + COUNT( * ) WHEN + - 2 THEN NULL ELSE NULL END ), 35 ) ) * 6 + + + COALESCE ( 38, 13 * + NULLIF ( - 13, + - 13 * - NULLIF ( + 46, + 88 * + 21 ) ) + - CASE + + 32 WHEN 8 + 81 THEN + 36 DIV 19 END ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-8851
SELECT - 19 + - ( + COALESCE ( + - COALESCE ( - 7, - + COALESCE ( - + 46, - - 10 ), + 52 * + + CASE - + 66 WHEN + - 89 THEN - 71 WHEN COUNT ( * ) * - SUM ( 8 ) THEN NULL ELSE NULL END - - 45 / - 93 + - ( + + SUM ( + 81 ) ) + + CASE 31 WHEN - + 12 * + 23 THEN + COUNT ( * ) WHEN + - 2 THEN NULL ELSE NULL END ), 35 ) ) * 6 + + + COALESCE ( 38, 13 * + NULLIF ( - 13, + - 13 * - NULLIF ( + 46, + 88 * + 21 ) ) + - CASE + + 32 WHEN 8 + 81 THEN + 36 / 19 END ) AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT DISTINCT + MAX( DISTINCT - 7 ) + + 44 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-8852
SELECT DISTINCT + MAX ( DISTINCT - 7 ) + + 44 AS col0
----
37

query I rowsort
SELECT ALL - - 75 + + 63
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT SUM( + + 17 ) + COUNT( * ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-8854
SELECT SUM ( + + 17 ) + COUNT ( * ) AS col2
----
18

query I rowsort
SELECT ALL + 36 + - 73 * - 61 AS col0
----
4489

query I rowsort
SELECT ALL ( 94 ) * 77 AS col0
----
7238

onlyif mysql # aggregate syntax: 
query I rowsort label-8857
SELECT DISTINCT 78 * MIN( - 28 ) AS col2
----
-2184

skipif mysql # not compatible
query I rowsort label-8857
SELECT DISTINCT 78 * MIN ( - 28 ) AS col2
----
-2184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8858
SELECT ALL + CAST( NULL AS SIGNED ) * - 43 * - + 50 + - 93 + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-8858
SELECT ALL + CAST ( NULL AS INTEGER ) * - 43 * - + 50 + - 93 + 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT + CASE 48 WHEN + 60 + + + 45 THEN - + CASE + + 34 WHEN 53 THEN + + NULLIF ( + 45, 20 + - 4 * - 10 ) ELSE - 66 + - 40 + + 48 END * + 6 + - COUNT( * ) + + - 13 / + 15 / COUNT( * ) * + MAX( ALL + - 46 ) * - 38 - - - SUM( ALL + 6 ) * COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8859
SELECT + CASE 48 WHEN + 60 + + + 45 THEN - + CASE + + 34 WHEN 53 THEN + + NULLIF ( + 45, 20 + - 4 * - 10 ) ELSE - 66 + - 40 + + 48 END * + 6 + - COUNT ( * ) + + - 13 / + 15 / COUNT ( * ) * + MAX ( ALL + - 46 ) * - 38 - - - SUM ( ALL + 6 ) * COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8860
SELECT 61 + - MIN( ALL - 40 ) + + COUNT( ALL + - 11 ) + + - 49 * + 6 + ( + 70 ) + 21 * - - CAST( - ( - 12 ) AS SIGNED ) + - + MIN( 15 )
----
115

skipif mysql # not compatible
query I rowsort label-8860
SELECT 61 + - MIN ( ALL - 40 ) + + COUNT ( ALL + - 11 ) + + - 49 * + 6 + ( + 70 ) + 21 * - - CAST ( - ( - 12 ) AS INTEGER ) + - + MIN ( 15 )
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT + SUM( + - 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-8861
SELECT + SUM ( + - 61 )
----
-61

query I rowsort
SELECT + 66 * - 35 * 74 + + + 69
----
-170871

onlyif mysql # DIV for integer division: 
query I rowsort label-8863
SELECT + 4 DIV + 12 + + 80
----
80

skipif mysql # not compatible
query I rowsort label-8863
SELECT + 4 / + 12 + + 80
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8864
SELECT ALL - COUNT( * ) AS col0, 18 / - CAST( NULL AS SIGNED ) / - - COUNT( - 90 ) - COUNT( * ) AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8864
SELECT ALL - COUNT ( * ) AS col0, 18 / - CAST ( NULL AS INTEGER ) / - - COUNT ( - 90 ) - COUNT ( * ) AS col2
----
-1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8865
SELECT ALL CAST( NULL AS SIGNED ) * - COALESCE ( 13, - 38 * + 16 / - 70 / - 32, - 36 ) - + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8865
SELECT ALL CAST ( NULL AS INTEGER ) * - COALESCE ( 13, - 38 * + 16 / - 70 / - 32, - 36 ) - + - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT 77 * + 62
----
4774

onlyif mysql # aggregate syntax: 
query II rowsort label-8867
SELECT ALL + 51 AS col2, MAX( DISTINCT 66 )
----
51
66

skipif mysql # not compatible
query II rowsort label-8867
SELECT ALL + 51 AS col2, MAX ( DISTINCT 66 )
----
51
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8868
SELECT DISTINCT - 93 * 69 * - - MAX( - - CAST( NULL AS SIGNED ) ) - - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8868
SELECT DISTINCT - 93 * 69 * - - MAX ( - - CAST ( NULL AS INTEGER ) ) - - COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8869
SELECT DISTINCT + 98 DIV + ( + 83 ) DIV NULLIF ( SUM( + + 7 ), + - COUNT( * ) ) * - + 65
----
0

skipif mysql # not compatible
query I rowsort label-8869
SELECT DISTINCT + 98 / + ( + 83 ) / NULLIF ( SUM ( + + 7 ), + - COUNT ( * ) ) * - + 65
----
0

query I rowsort
SELECT - 55 * + 27
----
-1485

query I rowsort
SELECT ALL + 81 * - 65 AS col1
----
-5265

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8872
SELECT - CAST( NULL AS SIGNED ) - - 51 * + + 28 - - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-8872
SELECT - CAST ( NULL AS INTEGER ) - - 51 * + + 28 - - 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT + MAX( ALL 67 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-8873
SELECT + MAX ( ALL 67 ) AS col2
----
67

query I rowsort
SELECT - 96 * - 74 AS col2
----
7104

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8875
SELECT ALL + CASE 40 WHEN 95 THEN - CAST( NULL AS SIGNED ) ELSE NULL END AS col0, 80
----
NULL
80

skipif mysql # not compatible
query II rowsort label-8875
SELECT ALL + CASE 40 WHEN 95 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END AS col0, 80
----
NULL
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT DISTINCT + 9 * + MIN( 46 ) AS col0
----
414

skipif mysql # not compatible
query I rowsort label-8876
SELECT DISTINCT + 9 * + MIN ( 46 ) AS col0
----
414

onlyif mysql # aggregate syntax: 
query II rowsort label-8877
SELECT ALL COUNT( * ), - MAX( ALL - + 58 ) AS col2
----
1
58

skipif mysql # not compatible
query II rowsort label-8877
SELECT ALL COUNT ( * ), - MAX ( ALL - + 58 ) AS col2
----
1
58

query I rowsort
SELECT DISTINCT COALESCE ( - 99, - 65, + 19, + 13 ) AS col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8879
SELECT ALL - COUNT( * ) + + 66
----
65

skipif mysql # not compatible
query I rowsort label-8879
SELECT ALL - COUNT ( * ) + + 66
----
65

query I rowsort
SELECT - + 17 + - + 74 AS col0
----
-91

query I rowsort
SELECT - 20 * 30
----
-600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8882
SELECT + 90 + + 7 - - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8882
SELECT + 90 + + 7 - - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 60 + NULLIF ( - + 83, 69 ) AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT + COUNT( * ) - + + 78 * + 54 * + 11
----
-46331

skipif mysql # not compatible
query I rowsort label-8884
SELECT + COUNT ( * ) - + + 78 * + 54 * + 11
----
-46331

query I rowsort
SELECT ALL - 40 + ( + NULLIF ( - 33, 19 + + 39 ) ) + - 80 AS col0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT + - COUNT( * ) * - 33 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-8886
SELECT + - COUNT ( * ) * - 33 AS col1
----
33

query II rowsort
SELECT + 86, 14 AS col0
----
86
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT ALL - CASE - - 2 WHEN - 9 + + 52 - + 72 * - - 96 THEN NULL ELSE ( - - 70 ) END + SUM( ALL + - 49 )
----
-119

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL - CASE - - 2 WHEN - 9 + + 52 - + 72 * - - 96 THEN NULL ELSE ( - - 70 ) END + SUM ( ALL + - 49 )
----
-119

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8889
SELECT - CAST( ( + 27 ) AS SIGNED ), 27 AS col2
----
-27
27

skipif mysql # not compatible
query II rowsort label-8889
SELECT - CAST ( ( + 27 ) AS INTEGER ), 27 AS col2
----
-27
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8890
SELECT + 36 + - ( - 1 ) * - COUNT( + - 39 ) + 38 AS col1, - CAST( - 9 AS SIGNED ) AS col0
----
73
9

skipif mysql # not compatible
query II rowsort label-8890
SELECT + 36 + - ( - 1 ) * - COUNT ( + - 39 ) + 38 AS col1, - CAST ( - 9 AS INTEGER ) AS col0
----
73
9

query I rowsort
SELECT + 50 + - 79 AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT ALL 89 + + - SUM( DISTINCT - 65 ) AS col0
----
154

skipif mysql # not compatible
query I rowsort label-8892
SELECT ALL 89 + + - SUM ( DISTINCT - 65 ) AS col0
----
154

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8893
SELECT DISTINCT COUNT( * ) DIV + 75 - 95 + - 70 * - 22 * - 7, 63 + + - 62 AS col2
----
-10875
1

skipif mysql # not compatible
query II rowsort label-8893
SELECT DISTINCT COUNT ( * ) / + 75 - 95 + - 70 * - 22 * - 7, 63 + + - 62 AS col2
----
-10875
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8894
SELECT DISTINCT + 92 DIV 57 - - 40 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-8894
SELECT DISTINCT + 92 / 57 - - 40 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT ALL COUNT( * ) * - - ( COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL COUNT ( * ) * - - ( COUNT ( * ) )
----
1

query I rowsort
SELECT + ( - - 15 ) + - - 42 AS col1
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8897
SELECT - 8 - CAST( + 60 AS SIGNED ) + 22 - - + 51 + 1 + + + 86 * - 73 + - + 36 * COALESCE ( - 3, + + COALESCE ( 26, + ( 20 ) * - 43, - 49 ) ) col2
----
-6164

skipif mysql # not compatible
query I rowsort label-8897
SELECT - 8 - CAST ( + 60 AS INTEGER ) + 22 - - + 51 + 1 + + + 86 * - 73 + - + 36 * COALESCE ( - 3, + + COALESCE ( 26, + ( 20 ) * - 43, - 49 ) ) col2
----
-6164

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8898
SELECT ( + - 88 ) AS col0, - COUNT( ALL 73 ) DIV 30
----
-88
0

skipif mysql # not compatible
query II rowsort label-8898
SELECT ( + - 88 ) AS col0, - COUNT ( ALL 73 ) / 30
----
-88
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT + 25 * + + 79 + - + 26 * + COUNT( DISTINCT 33 ) * COUNT( * )
----
1949

skipif mysql # not compatible
query I rowsort label-8899
SELECT + 25 * + + 79 + - + 26 * + COUNT ( DISTINCT 33 ) * COUNT ( * )
----
1949

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8900
SELECT - CAST( NULL AS SIGNED ) * + - MIN( DISTINCT 28 ) - + + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-8900
SELECT - CAST ( NULL AS INTEGER ) * + - MIN ( DISTINCT 28 ) - + + 87
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8901
SELECT + 96 DIV + MIN( - 58 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8901
SELECT + 96 / + MIN ( - 58 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8902
SELECT DISTINCT + 49 DIV - - 42 col2
----
1

skipif mysql # not compatible
query I rowsort label-8902
SELECT DISTINCT + 49 / - - 42 col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8903
SELECT - 48 + - 46 DIV + - 13 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-8903
SELECT - 48 + - 46 / + - 13 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-8904
SELECT ALL + MAX( DISTINCT 80 ) AS col1, 71 col0
----
80
71

skipif mysql # not compatible
query II rowsort label-8904
SELECT ALL + MAX ( DISTINCT 80 ) AS col1, 71 col0
----
80
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT ALL - COUNT( * ) * 51 + + 76 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-8905
SELECT ALL - COUNT ( * ) * 51 + + 76 AS col2
----
25

query I rowsort
SELECT + 12 * - 52 * - 47 AS col2
----
29328

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT ALL - 23 * - COUNT( * ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-8907
SELECT ALL - 23 * - COUNT ( * ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT DISTINCT + - COUNT( * ) * NULLIF ( + - NULLIF ( + 88, + 52 ), + + 69 ) + + 81 + + 36 + + 53
----
258

skipif mysql # not compatible
query I rowsort label-8908
SELECT DISTINCT + - COUNT ( * ) * NULLIF ( + - NULLIF ( + 88, + 52 ), + + 69 ) + + 81 + + 36 + + 53
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT DISTINCT + - MIN( 90 ) * + 51 + - ( + COUNT( * ) )
----
-4591

skipif mysql # not compatible
query I rowsort label-8909
SELECT DISTINCT + - MIN ( 90 ) * + 51 + - ( + COUNT ( * ) )
----
-4591

query I rowsort
SELECT ALL ( + 94 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT - 68 + + SUM( ALL + - 90 )
----
-158

skipif mysql # not compatible
query I rowsort label-8911
SELECT - 68 + + SUM ( ALL + - 90 )
----
-158

query I rowsort
SELECT ALL - 9 + 6 - 64 AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT - 7 + - COUNT( * ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-8913
SELECT - 7 + - COUNT ( * ) AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT - COUNT( * ) + - 32 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-8914
SELECT - COUNT ( * ) + - 32 AS col0
----
-33

query I rowsort
SELECT + - 48 + + 61 AS col1
----
13

query I rowsort
SELECT + + 73 + - 67 AS col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8917
SELECT + 70 + - - CAST( NULL AS SIGNED ) + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8917
SELECT + 70 + - - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 90 * - + 37 + + 30
----
-3300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8919
SELECT - 59 * - + CAST( NULL AS SIGNED ) + + - 39 AS col2, + COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8919
SELECT - 59 * - + CAST ( NULL AS INTEGER ) + + - 39 AS col2, + COUNT ( * )
----
NULL
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8920
SELECT CASE + 20 WHEN - + 63 THEN NULL WHEN - 12 THEN - 30 DIV 41 ELSE + + 33 END * + 88 * - 57 AS col1
----
-165528

skipif mysql # not compatible
query I rowsort label-8920
SELECT CASE + 20 WHEN - + 63 THEN NULL WHEN - 12 THEN - 30 / 41 ELSE + + 33 END * + 88 * - 57 AS col1
----
-165528

query I rowsort
SELECT 96 * + 92
----
8832

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT ALL 90 * - ( COUNT( * ) ) col0
----
-90

skipif mysql # not compatible
query I rowsort label-8922
SELECT ALL 90 * - ( COUNT ( * ) ) col0
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8923
SELECT ALL 2 DIV - ( + + ( 83 ) ) * 91, 64 - COUNT( * ) AS col1
----
0
63

skipif mysql # not compatible
query II rowsort label-8923
SELECT ALL 2 / - ( + + ( 83 ) ) * 91, 64 - COUNT ( * ) AS col1
----
0
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8924
SELECT ALL CAST( + 29 AS SIGNED ) * - - COUNT( * ) + + 55 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-8924
SELECT ALL CAST ( + 29 AS INTEGER ) * - - COUNT ( * ) + + 55 AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT DISTINCT CASE 97 WHEN - 71 / + NULLIF ( + MIN( - 19 ), 17 * - 22 + + 17 + + - 67 + + 79 * - 82 * COUNT( * ) ) THEN - - COUNT( * ) + - COALESCE ( - NULLIF ( - 94, - - COUNT( * ) / + 89 ), + 82 ) + 99 + + - 2 * - - 27 * - - COUNT( DISTINCT 49 ) END + + 65 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8925
SELECT DISTINCT CASE 97 WHEN - 71 / + NULLIF ( + MIN ( - 19 ), 17 * - 22 + + 17 + + - 67 + + 79 * - 82 * COUNT ( * ) ) THEN - - COUNT ( * ) + - COALESCE ( - NULLIF ( - 94, - - COUNT ( * ) / + 89 ), + 82 ) + 99 + + - 2 * - - 27 * - - COUNT ( DISTINCT 49 ) END + + 65 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8926
SELECT DISTINCT - 36 + + 36 + - + COALESCE ( - - SUM( DISTINCT - 41 ), + 37, - 71 ) DIV + MIN( DISTINCT + 3 )
----
13

skipif mysql # not compatible
query I rowsort label-8926
SELECT DISTINCT - 36 + + 36 + - + COALESCE ( - - SUM ( DISTINCT - 41 ), + 37, - 71 ) / + MIN ( DISTINCT + 3 )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8927
SELECT 30 * COALESCE ( - 80, + 32 + - - 80 + 51 + - + 81, 28 + - - COUNT( * ) + - - CAST( NULL AS SIGNED ) DIV + 20 * + 5 ) AS col0
----
-2400

skipif mysql # not compatible
query I rowsort label-8927
SELECT 30 * COALESCE ( - 80, + 32 + - - 80 + 51 + - + 81, 28 + - - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) / + 20 * + 5 ) AS col0
----
-2400

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT 1 - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-8928
SELECT 1 - - COUNT ( * )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8929
SELECT - 39 * - 72 DIV 9 - - - 33
----
279

skipif mysql # not compatible
query I rowsort label-8929
SELECT - 39 * - 72 / 9 - - - 33
----
279

query II rowsort
SELECT ALL - 82, + 68 * 48 AS col0
----
-82
3264

query I rowsort
SELECT DISTINCT 83 + 88
----
171

query I rowsort
SELECT 56 * + + 52
----
2912

query I rowsort
SELECT DISTINCT - 19 + - 25 AS col2
----
-44

query I rowsort
SELECT ALL + 64 + 61
----
125

query I rowsort
SELECT + 29 - - 77
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT ALL - - 69 * + + COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-8936
SELECT ALL - - 69 * + + COUNT ( * )
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-8937
SELECT DISTINCT 8 + + 45 + + SUM( ALL - 10 ) * - 69 AS col1, - 70
----
743
-70

skipif mysql # not compatible
query II rowsort label-8937
SELECT DISTINCT 8 + + 45 + + SUM ( ALL - 10 ) * - 69 AS col1, - 70
----
743
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT ALL COUNT( * ) - + 27
----
-26

skipif mysql # not compatible
query I rowsort label-8938
SELECT ALL COUNT ( * ) - + 27
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8939
SELECT COALESCE ( + 1, + 46 ) * COUNT( * ) + + + 90 * + - 10 * - + 20 * CAST( - 32 AS SIGNED ) + 33, - 82 col0
----
-575966
-82

skipif mysql # not compatible
query II rowsort label-8939
SELECT COALESCE ( + 1, + 46 ) * COUNT ( * ) + + + 90 * + - 10 * - + 20 * CAST ( - 32 AS INTEGER ) + 33, - 82 col0
----
-575966
-82

query I rowsort
SELECT - ( + ( + 22 ) ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT + 88 + - COUNT( * ) * + 70
----
18

skipif mysql # not compatible
query I rowsort label-8941
SELECT + 88 + - COUNT ( * ) * + 70
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8942
SELECT COALESCE ( 85, 30 ) - - NULLIF ( CASE + 11 WHEN + - 61 THEN 21 + - - 67 WHEN + ( + COALESCE ( - 7, + CASE 40 WHEN - 75 THEN NULL ELSE 6 END, 22 * - COUNT( * ) * - 74 * COALESCE ( + 43, + - 63 ) ) ) THEN + - 37 DIV - + ( + + 80 ) * + - 98 * 77 + + 56 WHEN MIN( ALL + 30 ) THEN + + 20 * 44 * - 83 + 27 - - + MAX( ALL - NULLIF ( + + COALESCE ( 49, 89 ), - - 27 ) ) + + - 69 - 75 * - COALESCE ( + + 31, 1 ) * - 69 + 59 * - 42 ELSE + 95 * + 1 END, - 6 DIV - 97 ) AS col0
----
180

skipif mysql # not compatible
query I rowsort label-8942
SELECT COALESCE ( 85, 30 ) - - NULLIF ( CASE + 11 WHEN + - 61 THEN 21 + - - 67 WHEN + ( + COALESCE ( - 7, + CASE 40 WHEN - 75 THEN NULL ELSE 6 END, 22 * - COUNT ( * ) * - 74 * COALESCE ( + 43, + - 63 ) ) ) THEN + - 37 / - + ( + + 80 ) * + - 98 * 77 + + 56 WHEN MIN ( ALL + 30 ) THEN + + 20 * 44 * - 83 + 27 - - + MAX ( ALL - NULLIF ( + + COALESCE ( 49, 89 ), - - 27 ) ) + + - 69 - 75 * - COALESCE ( + + 31, 1 ) * - 69 + 59 * - 42 ELSE + 95 * + 1 END, - 6 / - 97 ) AS col0
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT ALL - COALESCE ( COUNT( 31 ), 90 * - COALESCE ( - + 81, 67 ), - 34 )
----
-1

skipif mysql # not compatible
query I rowsort label-8943
SELECT ALL - COALESCE ( COUNT ( 31 ), 90 * - COALESCE ( - + 81, 67 ), - 34 )
----
-1

query I rowsort
SELECT + ( + 15 ) col1
----
15

query I rowsort
SELECT ALL 15 * + ( + NULLIF ( 7, - 71 ) ) AS col2
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-8946
SELECT DISTINCT - + COUNT( * ) * + - 19 * 95 AS col1
----
1805

skipif mysql # not compatible
query I rowsort label-8946
SELECT DISTINCT - + COUNT ( * ) * + - 19 * 95 AS col1
----
1805

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT ALL + MAX( 7 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-8947
SELECT ALL + MAX ( 7 ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT + 21 - + 32 - 28 + 50 * MAX( DISTINCT - 45 ) + - + 55 + - - MIN( - 96 ) + + + 97
----
-2343

skipif mysql # not compatible
query I rowsort label-8948
SELECT + 21 - + 32 - 28 + 50 * MAX ( DISTINCT - 45 ) + - + 55 + - - MIN ( - 96 ) + + + 97
----
-2343

query I rowsort
SELECT 77 + + - ( + + 7 )
----
70

query I rowsort
SELECT 15 * - 35 col0
----
-525

query I rowsort
SELECT 86 + - - 92
----
178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8952
SELECT - 30 AS col0, 32 * - ( + - CAST( NULL AS SIGNED ) ) * MIN( - 17 ) - - 83 + - + 38 + 53
----
-30
NULL

skipif mysql # not compatible
query II rowsort label-8952
SELECT - 30 AS col0, 32 * - ( + - CAST ( NULL AS INTEGER ) ) * MIN ( - 17 ) - - 83 + - + 38 + 53
----
-30
NULL

query II rowsort
SELECT + 84, + 46 AS col2
----
84
46

query I rowsort
SELECT ALL - ( - + 66 )
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8955
SELECT ALL - 68 + - - 15 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8955
SELECT ALL - 68 + - - 15 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8956
SELECT 11 - + 64 / CAST( NULL AS SIGNED ) / ( + - 64 ) + + AVG ( DISTINCT + 90 ) + + 43 / ( + 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8956
SELECT 11 - + 64 / CAST ( NULL AS INTEGER ) / ( + - 64 ) + + AVG ( DISTINCT + 90 ) + + 43 / ( + 93 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8957
SELECT ALL - CAST( + 12 AS SIGNED )
----
-12

skipif mysql # not compatible
query I rowsort label-8957
SELECT ALL - CAST ( + 12 AS INTEGER )
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8958
SELECT ALL CAST( NULL AS SIGNED ) + MAX( + 95 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8958
SELECT ALL CAST ( NULL AS INTEGER ) + MAX ( + 95 ) AS col0
----
NULL

query I rowsort
SELECT - 29 * + 51 + + 86 + 97 - 44 + + 21 AS col2
----
-1319

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT COUNT( NULLIF ( ( - ( - ( 50 ) ) ), - 87 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8960
SELECT COUNT ( NULLIF ( ( - ( - ( 50 ) ) ), - 87 ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8961
SELECT 68 * COALESCE ( + + 90, + + COUNT( 20 ) ) + - 62, 68 AS col1
----
6058
68

skipif mysql # not compatible
query II rowsort label-8961
SELECT 68 * COALESCE ( + + 90, + + COUNT ( 20 ) ) + - 62, 68 AS col1
----
6058
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8962
SELECT 95 DIV + COUNT( * ) + + 25 AS col0
----
120

skipif mysql # not compatible
query I rowsort label-8962
SELECT 95 / + COUNT ( * ) + + 25 AS col0
----
120

query II rowsort
SELECT + 50, + 6 col0
----
50
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8964
SELECT ALL - CASE 17 WHEN - 12 - - - 35 + + - 84 - + - 55 + CAST( + 44 AS SIGNED ) * 63 * COUNT( * ) * + 33 THEN - 95 WHEN - CAST( NULL AS SIGNED ) THEN 15 * - - COUNT( * ) DIV + - 89 + - 38 ELSE - 26 END AS col2
----
26

skipif mysql # not compatible
query I rowsort label-8964
SELECT ALL - CASE 17 WHEN - 12 - - - 35 + + - 84 - + - 55 + CAST ( + 44 AS INTEGER ) * 63 * COUNT ( * ) * + 33 THEN - 95 WHEN - CAST ( NULL AS INTEGER ) THEN 15 * - - COUNT ( * ) / + - 89 + - 38 ELSE - 26 END AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT 11 + - COUNT( * ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-8965
SELECT 11 + - COUNT ( * ) AS col1
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-8966
SELECT 96 DIV - + 58 - - - 14 + - 19 + + + 99 * 67 DIV - 66 + + 71 + 65 * 59
----
3772

skipif mysql # not compatible
query I rowsort label-8966
SELECT 96 / - + 58 - - - 14 + - 19 + + + 99 * 67 / - 66 + + 71 + 65 * 59
----
3772

query I rowsort
SELECT ALL CASE + - 28 WHEN + + 80 THEN - 70 WHEN + 30 + - 95 THEN NULL END + + + 5
----
NULL

query I rowsort
SELECT ALL 77 + + 64 col2
----
141

query II rowsort
SELECT + 16, - ( 40 ) AS col2
----
16
-40

query II rowsort
SELECT ALL - 72 AS col2, - 49
----
-72
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8971
SELECT ALL + COUNT( * ) DIV + 94 * COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8971
SELECT ALL + COUNT ( * ) / + 94 * COUNT ( * ) AS col0
----
0

query I rowsort
SELECT COALESCE ( - 65, + 36 ) + - NULLIF ( + 33, - + 26 - 60 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT ALL - - MIN( + 74 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-8973
SELECT ALL - - MIN ( + 74 ) AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT - 27 + + - CASE + + MIN( 92 ) WHEN + + 50 THEN + + 95 END + - 44 - + 7 + - + 99 + + - 87 - - 88 / 17 * - 47 * + 30 / - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-8974
SELECT - 27 + + - CASE + + MIN ( 92 ) WHEN + + 50 THEN + + 95 END + - 44 - + 7 + - + 99 + + - 87 - - 88 / 17 * - 47 * + 30 / - 38
----
NULL

query I rowsort
SELECT ALL 10 - - + 53 + - - 62 + 53
----
178

query I rowsort
SELECT DISTINCT 15 * + - 84 col1
----
-1260

onlyif mysql # aggregate syntax: 
query II rowsort label-8977
SELECT ALL - + COUNT( * ) AS col2, 60 col1
----
-1
60

skipif mysql # not compatible
query II rowsort label-8977
SELECT ALL - + COUNT ( * ) AS col2, 60 col1
----
-1
60

query I rowsort
SELECT - + 45 * - 66 + + - 31
----
2939

query I rowsort
SELECT + 94 * + 49
----
4606

query I rowsort
SELECT 51 * - 36 AS col1
----
-1836

query I rowsort
SELECT - 3 + 88 AS col2
----
85

query II rowsort
SELECT - 38 AS col0, 49 AS col1
----
-38
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8983
SELECT + 77 AS col1, - COUNT( * ) * - CAST( 72 AS SIGNED )
----
77
72

skipif mysql # not compatible
query II rowsort label-8983
SELECT + 77 AS col1, - COUNT ( * ) * - CAST ( 72 AS INTEGER )
----
77
72

query I rowsort
SELECT ALL 60 - - 7 * + 44 AS col1
----
368

query I rowsort
SELECT + 30 * + + 49 AS col0
----
1470

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8986
SELECT ALL + 74 AS col1, 87 / + 55 * - CAST( NULL AS SIGNED )
----
74
NULL

skipif mysql # not compatible
query II rowsort label-8986
SELECT ALL + 74 AS col1, 87 / + 55 * - CAST ( NULL AS INTEGER )
----
74
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8987
SELECT DISTINCT COUNT( - + CAST( + + 42 AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8987
SELECT DISTINCT COUNT ( - + CAST ( + + 42 AS INTEGER ) ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-8988
SELECT ALL + 64 AS col0, 46 DIV - + 87 * - - 27 AS col1
----
64
0

skipif mysql # not compatible
query II rowsort label-8988
SELECT ALL + 64 AS col0, 46 / - + 87 * - - 27 AS col1
----
64
0

query I rowsort
SELECT + - 71 + - 62
----
-133

query II rowsort
SELECT ALL 39 AS col2, 97
----
39
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8991
SELECT - + SUM( + 16 ) + + 24 + + CAST( - - 0 AS SIGNED ) + NULLIF ( + 72, - 25 ) + NULLIF ( + 86, - 33 ) + - 37 DIV - ( + COUNT( * ) ) + - CAST( 34 AS SIGNED )
----
169

skipif mysql # not compatible
query I rowsort label-8991
SELECT - + SUM ( + 16 ) + + 24 + + CAST ( - - 0 AS INTEGER ) + NULLIF ( + 72, - 25 ) + NULLIF ( + 86, - 33 ) + - 37 / - ( + COUNT ( * ) ) + - CAST ( 34 AS INTEGER )
----
169

query I rowsort
SELECT + + 85 + - 99 + - + 44
----
-58

query I rowsort
SELECT + - 27 * + - 92 + - - 94
----
2578

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8994
SELECT ALL CAST( NULL AS SIGNED ), 70 * + + 86 DIV + COUNT( * ) col1
----
NULL
6020

skipif mysql # not compatible
query II rowsort label-8994
SELECT ALL CAST ( NULL AS INTEGER ), 70 * + + 86 / + COUNT ( * ) col1
----
NULL
6020

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT - 88 + - - 54 + - 4 + + COUNT( * ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-8995
SELECT - 88 + - - 54 + - 4 + + COUNT ( * ) AS col2
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8996
SELECT - + COALESCE ( + CAST( NULL AS SIGNED ), 1 * - 71 + + 15 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-8996
SELECT - + COALESCE ( + CAST ( NULL AS INTEGER ), 1 * - 71 + + 15 ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT ALL + + 82 * - - COUNT( * ) * 66 * + 69
----
373428

skipif mysql # not compatible
query I rowsort label-8997
SELECT ALL + + 82 * - - COUNT ( * ) * 66 * + 69
----
373428

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT - 9 + + MIN( ALL + 21 )
----
12

skipif mysql # not compatible
query I rowsort label-8998
SELECT - 9 + + MIN ( ALL + 21 )
----
12

onlyif mysql # DIV for integer division: 
query II rowsort label-8999
SELECT ALL + 26 * + 97 AS col0, - 24 DIV - 31
----
2522
0

skipif mysql # not compatible
query II rowsort label-8999
SELECT ALL + 26 * + 97 AS col0, - 24 / - 31
----
2522
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9000
SELECT ALL - ( + ( - 52 ) ) + - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-9000
SELECT ALL - ( + ( - 52 ) ) + - COUNT ( * )
----
51

query II rowsort
SELECT - 97 + - 49 AS col2, 91 AS col1
----
-146
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT DISTINCT SUM( 30 )
----
30

skipif mysql # not compatible
query I rowsort label-9002
SELECT DISTINCT SUM ( 30 )
----
30

query I rowsort
SELECT DISTINCT + 47 * ( + 76 ) + 16
----
3588

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT ALL - MAX( ALL - + 37 ) * + - 24 + NULLIF ( + 84, - COUNT( * ) ) - - ( - 70 ) + + 44 - 57 * + - 2 + 23 * - + 24
----
-1268

skipif mysql # not compatible
query I rowsort label-9004
SELECT ALL - MAX ( ALL - + 37 ) * + - 24 + NULLIF ( + 84, - COUNT ( * ) ) - - ( - 70 ) + + 44 - 57 * + - 2 + 23 * - + 24
----
-1268

query I rowsort
SELECT - 13 * + 61 * + - 92 AS col0
----
72956

query I rowsort
SELECT 64 * - 44 + + 20
----
-2796

query I rowsort
SELECT ( ( - 99 ) )
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-9008
SELECT NULLIF ( ( - 12 ), 38 ) DIV + - 78 + + ( - + ( - + 55 ) ) DIV - 89
----
0

skipif mysql # not compatible
query I rowsort label-9008
SELECT NULLIF ( ( - 12 ), 38 ) / + - 78 + + ( - + ( - + 55 ) ) / - 89
----
0

query II rowsort
SELECT ( ( - + 77 ) ), - 57 AS col2
----
-77
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9010
SELECT - 83 * - - COALESCE ( - 48, - 33 ) * 46 + - ( + ( + COUNT( ALL 70 ) ) )
----
183263

skipif mysql # not compatible
query I rowsort label-9010
SELECT - 83 * - - COALESCE ( - 48, - 33 ) * 46 + - ( + ( + COUNT ( ALL 70 ) ) )
----
183263

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9011
SELECT DISTINCT - 71 * + ( 43 ) - 71 + + 3 * - NULLIF ( - - 73, - COUNT( * ) + + + CAST( NULL AS SIGNED ) )
----
-3343

skipif mysql # not compatible
query I rowsort label-9011
SELECT DISTINCT - 71 * + ( 43 ) - 71 + + 3 * - NULLIF ( - - 73, - COUNT ( * ) + + + CAST ( NULL AS INTEGER ) )
----
-3343

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9012
SELECT - COUNT( * ) DIV 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9012
SELECT - COUNT ( * ) / 59 AS col1
----
0

query I rowsort
SELECT ALL - 38 * 73 - - + 11 AS col2
----
-2763

query I rowsort
SELECT - + 2 * - 60 col0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT - + 55 * 77 * + 48 - + - 77 + - - MAX( DISTINCT + - 13 ) + - 90 * + COUNT( * ) + + 15 + + - 14 - - + NULLIF ( - - 71, - + 31 ) * - ( - - 99 ) - - + 6 + - 18 * 94 * - 46
----
-132496

skipif mysql # not compatible
query I rowsort label-9015
SELECT - + 55 * 77 * + 48 - + - 77 + - - MAX ( DISTINCT + - 13 ) + - 90 * + COUNT ( * ) + + 15 + + - 14 - - + NULLIF ( - - 71, - + 31 ) * - ( - - 99 ) - - + 6 + - 18 * 94 * - 46
----
-132496

query I rowsort
SELECT - 87 * + 35 AS col2
----
-3045

onlyif mysql # aggregate syntax: 
query II rowsort label-9017
SELECT - - 83 + NULLIF ( - - COALESCE ( - 17, - - 91 ), - 28 * 52 * + + 56 * - - 49 / MIN( + 94 ) + - 96 ), - 8 AS col2
----
66
-8

skipif mysql # not compatible
query II rowsort label-9017
SELECT - - 83 + NULLIF ( - - COALESCE ( - 17, - - 91 ), - 28 * 52 * + + 56 * - - 49 / MIN ( + 94 ) + - 96 ), - 8 AS col2
----
66
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9018
SELECT + CAST( NULL AS SIGNED ) / - 41 * 53
----
NULL

skipif mysql # not compatible
query I rowsort label-9018
SELECT + CAST ( NULL AS INTEGER ) / - 41 * 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT ALL - CASE - COUNT( ALL 59 ) WHEN - - 53 * + 92 + + 51 THEN 8 + - - 47 ELSE + 17 END * - + NULLIF ( + 20, + - COALESCE ( - 15, 65 * - 95 ) + - - 21 ) AS col0
----
340

skipif mysql # not compatible
query I rowsort label-9019
SELECT ALL - CASE - COUNT ( ALL 59 ) WHEN - - 53 * + 92 + + 51 THEN 8 + - - 47 ELSE + 17 END * - + NULLIF ( + 20, + - COALESCE ( - 15, 65 * - 95 ) + - - 21 ) AS col0
----
340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9020
SELECT DISTINCT + ( + COUNT( * ) ) DIV - + 7 * - + 43
----
0

skipif mysql # not compatible
query I rowsort label-9020
SELECT DISTINCT + ( + COUNT ( * ) ) / - + 7 * - + 43
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9021
SELECT ALL + 6 * - COUNT( * ) + COUNT( + - 84 ) * + CAST( + 15 AS SIGNED ) * + - 62 * + 27 AS col0
----
-25116

skipif mysql # not compatible
query I rowsort label-9021
SELECT ALL + 6 * - COUNT ( * ) + COUNT ( + - 84 ) * + CAST ( + 15 AS INTEGER ) * + - 62 * + 27 AS col0
----
-25116

query II rowsort
SELECT - - ( - 97 ) AS col0, 49 * - 56 col0
----
-97
-2744

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT + 51 * - + 32 - ( - COUNT( * ) ) + + COUNT( * ) AS col1
----
-1630

skipif mysql # not compatible
query I rowsort label-9023
SELECT + 51 * - + 32 - ( - COUNT ( * ) ) + + COUNT ( * ) AS col1
----
-1630

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9024
SELECT - ( + - 3 ), CAST( NULL AS SIGNED ) * 40 AS col0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-9024
SELECT - ( + - 3 ), CAST ( NULL AS INTEGER ) * 40 AS col0
----
3
NULL

query I rowsort
SELECT ALL 33 * 98 * + 46 AS col2
----
148764

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT DISTINCT - COUNT( * ) + - + 78 - + ( COALESCE ( NULLIF ( - COUNT( * ), + 6 ), - SUM( DISTINCT - 47 ) ) ) * - MAX( + + 7 ) + + COUNT( * ) * - + COUNT( ALL + 12 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-9026
SELECT DISTINCT - COUNT ( * ) + - + 78 - + ( COALESCE ( NULLIF ( - COUNT ( * ), + 6 ), - SUM ( DISTINCT - 47 ) ) ) * - MAX ( + + 7 ) + + COUNT ( * ) * - + COUNT ( ALL + 12 ) AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT ALL + CASE + COUNT( * ) WHEN + 29 THEN NULL ELSE - 76 + 33 END + + + NULLIF ( - 95, - 69 / - 12 )
----
-138

skipif mysql # not compatible
query I rowsort label-9027
SELECT ALL + CASE + COUNT ( * ) WHEN + 29 THEN NULL ELSE - 76 + 33 END + + + NULLIF ( - 95, - 69 / - 12 )
----
-138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9028
SELECT + COALESCE ( - 72, - - ( - MAX( ALL - 82 ) ) DIV CAST( NULL AS SIGNED ) + - 63, + COUNT( DISTINCT + + 34 ) ) * + 7 * + 47 + - 9 * + ( + ( - 81 ) ) + + 78 - - - 80 + - 46 * + - 62 AS col2
----
-20109

skipif mysql # not compatible
query I rowsort label-9028
SELECT + COALESCE ( - 72, - - ( - MAX ( ALL - 82 ) ) / CAST ( NULL AS INTEGER ) + - 63, + COUNT ( DISTINCT + + 34 ) ) * + 7 * + 47 + - 9 * + ( + ( - 81 ) ) + + 78 - - - 80 + - 46 * + - 62 AS col2
----
-20109

query I rowsort
SELECT ALL 0 + - 9 AS col2
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9030
SELECT ALL 79 + 53 DIV - 18 + + - SUM( 14 )
----
63

skipif mysql # not compatible
query I rowsort label-9030
SELECT ALL 79 + 53 / - 18 + + - SUM ( 14 )
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9031
SELECT ALL + COUNT( * ) DIV - 43 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9031
SELECT ALL + COUNT ( * ) / - 43 AS col0
----
0

query I rowsort
SELECT + 49 * + 74 AS col2
----
3626

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9033
SELECT ALL CASE 65 WHEN - 40 * - 39 * 6 THEN - 54 + + 1 WHEN - + 35 THEN NULL ELSE - - 39 / + - 39 / AVG ( CASE - ( + CAST( NULL AS SIGNED ) ) WHEN + 80 + - 38 THEN + + 36 END ) END + 90 * + + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-9033
SELECT ALL CASE 65 WHEN - 40 * - 39 * 6 THEN - 54 + + 1 WHEN - + 35 THEN NULL ELSE - - 39 / + - 39 / AVG ( CASE - ( + CAST ( NULL AS INTEGER ) ) WHEN + 80 + - 38 THEN + + 36 END ) END + 90 * + + 11
----
NULL

query I rowsort
SELECT + 37 + - 11 AS col2
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-9035
SELECT - 38, 60 / 65 + 35 * + - MIN( ALL + - 32 ) / + COUNT( * ) + 98 * - - 11 + + 64 + - CASE 81 WHEN + ( + - COALESCE ( 22, + COUNT( * ) ) ) THEN 25 WHEN 95 THEN + 65 END + + - 95 AS col0
----
-38
NULL

skipif mysql # not compatible
query II rowsort label-9035
SELECT - 38, 60 / 65 + 35 * + - MIN ( ALL + - 32 ) / + COUNT ( * ) + 98 * - - 11 + + 64 + - CASE 81 WHEN + ( + - COALESCE ( 22, + COUNT ( * ) ) ) THEN 25 WHEN 95 THEN + 65 END + + - 95 AS col0
----
-38
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9036
SELECT ALL ( + + 6 ) * 53 - - CASE NULLIF ( - + 65, + - AVG ( DISTINCT + + 50 ) ) WHEN CAST( NULL AS SIGNED ) THEN + COUNT( * ) WHEN + - 76 - + 13 THEN 13 * + CAST( NULL AS SIGNED ) + 65 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9036
SELECT ALL ( + + 6 ) * 53 - - CASE NULLIF ( - + 65, + - AVG ( DISTINCT + + 50 ) ) WHEN CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) WHEN + - 76 - + 13 THEN 13 * + CAST ( NULL AS INTEGER ) + 65 END AS col0
----
NULL

query I rowsort
SELECT + 14 + 4 AS col0
----
18

query I rowsort
SELECT + 90 + + - 7 + + 74
----
157

query I rowsort
SELECT - 96 * - + 19
----
1824

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9040
SELECT - CAST( NULL AS SIGNED ) AS col0, + 17
----
NULL
17

skipif mysql # not compatible
query II rowsort label-9040
SELECT - CAST ( NULL AS INTEGER ) AS col0, + 17
----
NULL
17

query I rowsort
SELECT + 66 + 74 col2
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9042
SELECT COUNT( * ) / + CASE - 98 WHEN 45 * + + 46 * + NULLIF ( 36, - - 69 ) THEN - 44 WHEN SUM( + 83 ) + - + 69 THEN - + 80 ELSE NULL END * + 76 + + + 87 - + COUNT( * ) * + COUNT( * ) / - 52 + - 18 AS col1, - ( + COALESCE ( + - CASE + 95 WHEN - + 10 * 53 / + CAST( + 92 AS SIGNED ) THEN - 42 WHEN 73 * COUNT( * ) + + 43 - + 48 THEN NULL END, + ( - MIN( NULLIF ( 17, + 52 + - + 70 ) ) ) * + + 10 + - 55 ) ) AS col2
----
NULL
225

skipif mysql # not compatible
query II rowsort label-9042
SELECT COUNT ( * ) / + CASE - 98 WHEN 45 * + + 46 * + NULLIF ( 36, - - 69 ) THEN - 44 WHEN SUM ( + 83 ) + - + 69 THEN - + 80 ELSE NULL END * + 76 + + + 87 - + COUNT ( * ) * + COUNT ( * ) / - 52 + - 18 AS col1, - ( + COALESCE ( + - CASE + 95 WHEN - + 10 * 53 / + CAST ( + 92 AS INTEGER ) THEN - 42 WHEN 73 * COUNT ( * ) + + 43 - + 48 THEN NULL END, + ( - MIN ( NULLIF ( 17, + 52 + - + 70 ) ) ) * + + 10 + - 55 ) ) AS col2
----
NULL
225

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT 6 * + 18 * - - 27 * + CASE - 41 WHEN - - 29 THEN + + 43 WHEN + 91 + + 70 - + 30 + COALESCE ( + 23, SUM( ALL + 56 ) ) / - + 68 THEN NULL END * - - 4 + - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-9043
SELECT 6 * + 18 * - - 27 * + CASE - 41 WHEN - - 29 THEN + + 43 WHEN + 91 + + 70 - + 30 + COALESCE ( + 23, SUM ( ALL + 56 ) ) / - + 68 THEN NULL END * - - 4 + - 44
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9044
SELECT + 89 DIV 93 DIV - COUNT( * ) + + + 14
----
14

skipif mysql # not compatible
query I rowsort label-9044
SELECT + 89 / 93 / - COUNT ( * ) + + + 14
----
14

query I rowsort
SELECT + 24 + + + 15 AS col0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9046
SELECT - NULLIF ( + + 3, - CAST( NULL AS SIGNED ) ) * + 81 AS col0
----
-243

skipif mysql # not compatible
query I rowsort label-9046
SELECT - NULLIF ( + + 3, - CAST ( NULL AS INTEGER ) ) * + 81 AS col0
----
-243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9047
SELECT ALL + - ( + ( + + CAST( - 0 AS SIGNED ) ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9047
SELECT ALL + - ( + ( + + CAST ( - 0 AS INTEGER ) ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT + 62 + + + CASE - COUNT( * ) WHEN - 77 + 1 - 74 * - + 60 / - 22 * - - 33 THEN + SUM( ALL - - 21 ) + - 90 WHEN + COUNT( * ) + + 10 + 0 THEN NULL END - + - 71 / + 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9048
SELECT + 62 + + + CASE - COUNT ( * ) WHEN - 77 + 1 - 74 * - + 60 / - 22 * - - 33 THEN + SUM ( ALL - - 21 ) + - 90 WHEN + COUNT ( * ) + + 10 + 0 THEN NULL END - + - 71 / + 20 AS col1
----
NULL

query I rowsort
SELECT - 32 - - CASE 76 WHEN - - 18 THEN 61 END - + 62 * - - 72 * 79 AS col0
----
NULL

query I rowsort
SELECT + + 94 * + + 19 * + - 86 + + 78 col1
----
-153518

query I rowsort
SELECT - 45 - 93 AS col1
----
-138

query I rowsort
SELECT ALL + + 82 * - 53 AS col1
----
-4346

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT DISTINCT + 68 * COUNT( * ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-9053
SELECT DISTINCT + 68 * COUNT ( * ) AS col0
----
68

query I rowsort
SELECT ALL + + 7 * - + 3
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9055
SELECT MAX( ALL - 37 ) + - 93
----
-130

skipif mysql # not compatible
query I rowsort label-9055
SELECT MAX ( ALL - 37 ) + - 93
----
-130

query I rowsort
SELECT ALL - COALESCE ( 50, + 7, + 29 * + 65 ) AS col2
----
-50

query II rowsort
SELECT + 24, 44 * + 86 AS col1
----
24
3784

query I rowsort
SELECT 69 * - 18 + 25 * + 87 + + 64
----
997

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT DISTINCT - NULLIF ( - + 70, - ( + COUNT( * ) ) )
----
70

skipif mysql # not compatible
query I rowsort label-9059
SELECT DISTINCT - NULLIF ( - + 70, - ( + COUNT ( * ) ) )
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9060
SELECT DISTINCT + 83 + - ( + - CAST( + 39 AS SIGNED ) ) * ( - 67 )
----
-2530

skipif mysql # not compatible
query I rowsort label-9060
SELECT DISTINCT + 83 + - ( + - CAST ( + 39 AS INTEGER ) ) * ( - 67 )
----
-2530

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9061
SELECT ALL - COUNT( * ) DIV 74 + - 45
----
-45

skipif mysql # not compatible
query I rowsort label-9061
SELECT ALL - COUNT ( * ) / 74 + - 45
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9062
SELECT DISTINCT + + COALESCE ( + CAST( NULL AS SIGNED ), - 47 + 59 ) + + + 76 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-9062
SELECT DISTINCT + + COALESCE ( + CAST ( NULL AS INTEGER ), - 47 + 59 ) + + + 76 AS col1
----
88

query I rowsort
SELECT - - ( - 77 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT ALL - COUNT( * ) + + - 47
----
-48

skipif mysql # not compatible
query I rowsort label-9064
SELECT ALL - COUNT ( * ) + + - 47
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9065
SELECT COUNT( * ) + - 56 DIV + 44 + - CAST( + 2 AS SIGNED ) - 71
----
-73

skipif mysql # not compatible
query I rowsort label-9065
SELECT COUNT ( * ) + - 56 / + 44 + - CAST ( + 2 AS INTEGER ) - 71
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-9066
SELECT ALL - 9 DIV + 4 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-9066
SELECT ALL - 9 / + 4 AS col0
----
-2

query I rowsort
SELECT 21 + 52 AS col1
----
73

query II rowsort
SELECT DISTINCT 61 + - 61 col2, 85 col2
----
0
85

query I rowsort
SELECT NULLIF ( - 36, + 15 * - + 5 * + NULLIF ( - 51, - 83 ) / - 40 + - 46 ) + - 77 AS col1
----
-113

query I rowsort
SELECT ALL NULLIF ( 54, - + 57 ) + + - 54
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT COUNT( * ) * 91 * - COUNT( * ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-9071
SELECT COUNT ( * ) * 91 * - COUNT ( * ) AS col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT DISTINCT ( - - 64 ) + + + 33 + + - COUNT( * ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-9072
SELECT DISTINCT ( - - 64 ) + + + 33 + + - COUNT ( * ) AS col0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9073
SELECT ALL CAST( NULL AS SIGNED ) - 74 * + 33 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9073
SELECT ALL CAST ( NULL AS INTEGER ) - 74 * + 33 col1
----
NULL

query I rowsort
SELECT ( + 24 ) * - 98 + + 18 - COALESCE ( 40, 89 ) AS col2
----
-2374

query I rowsort
SELECT 46 + 26 - + + 82
----
-10

query I rowsort
SELECT ALL 66 - - + 68 AS col0
----
134

query I rowsort
SELECT DISTINCT 89 * + + 91
----
8099

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9078
SELECT 30 * 26, ( - CAST( NULL AS SIGNED ) ) AS col1
----
780
NULL

skipif mysql # not compatible
query II rowsort label-9078
SELECT 30 * 26, ( - CAST ( NULL AS INTEGER ) ) AS col1
----
780
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9079
SELECT 71 DIV 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9079
SELECT 71 / 97 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT + CASE + 93 WHEN + + 74 - + COUNT( * ) THEN 51 ELSE ( - SUM( DISTINCT + 61 ) ) END
----
-61

skipif mysql # not compatible
query I rowsort label-9080
SELECT + CASE + 93 WHEN + + 74 - + COUNT ( * ) THEN 51 ELSE ( - SUM ( DISTINCT + 61 ) ) END
----
-61

query I rowsort
SELECT 59 * - 55 * + ( + 85 ) AS col0
----
-275825

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9082
SELECT 35 DIV + + COUNT( * ) + - 26 * + 34 * 18 AS col2, - COUNT( * ) AS col0
----
-15877
-1

skipif mysql # not compatible
query II rowsort label-9082
SELECT 35 / + + COUNT ( * ) + - 26 * + 34 * 18 AS col2, - COUNT ( * ) AS col0
----
-15877
-1

query I rowsort
SELECT ALL - NULLIF ( ( 14 ), - 4 ) * + 30 col0
----
-420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9084
SELECT SUM( + 42 ) DIV COUNT( * ) col1
----
42

skipif mysql # not compatible
query I rowsort label-9084
SELECT SUM ( + 42 ) / COUNT ( * ) col1
----
42

query I rowsort
SELECT DISTINCT ( + 40 ) * + 33 * + 25
----
33000

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT DISTINCT - 47 + - MAX( + + 98 ) col0
----
-145

skipif mysql # not compatible
query I rowsort label-9086
SELECT DISTINCT - 47 + - MAX ( + + 98 ) col0
----
-145

query I rowsort
SELECT ALL - 78 + + 29
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9088
SELECT ALL 93 + - - CAST( + - SUM( CAST( - ( + + 79 ) AS SIGNED ) ) AS SIGNED )
----
172

skipif mysql # not compatible
query I rowsort label-9088
SELECT ALL 93 + - - CAST ( + - SUM ( CAST ( - ( + + 79 ) AS INTEGER ) ) AS INTEGER )
----
172

query I rowsort
SELECT - COALESCE ( 92, + + 1 )
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-9090
SELECT + - CASE - + 6 WHEN - NULLIF ( 0, + - COUNT( * ) + - + ( + + COUNT( * ) ) ) THEN + - 82 WHEN 98 THEN NULL END, - 74 AS col0
----
NULL
-74

skipif mysql # not compatible
query II rowsort label-9090
SELECT + - CASE - + 6 WHEN - NULLIF ( 0, + - COUNT ( * ) + - + ( + + COUNT ( * ) ) ) THEN + - 82 WHEN 98 THEN NULL END, - 74 AS col0
----
NULL
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT DISTINCT - 95 * ( + - MIN( + 35 ) )
----
3325

skipif mysql # not compatible
query I rowsort label-9091
SELECT DISTINCT - 95 * ( + - MIN ( + 35 ) )
----
3325

query I rowsort
SELECT ALL + 37 + + 19 col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT DISTINCT - - MAX( 94 )
----
94

skipif mysql # not compatible
query I rowsort label-9093
SELECT DISTINCT - - MAX ( 94 )
----
94

query I rowsort
SELECT 24 - 32
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-9095
SELECT DISTINCT 71 AS col2, + MAX( ALL - - 64 )
----
71
64

skipif mysql # not compatible
query II rowsort label-9095
SELECT DISTINCT 71 AS col2, + MAX ( ALL - - 64 )
----
71
64

query I rowsort
SELECT ALL - 4 * + + 16
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-9097
SELECT 2 DIV + 54 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9097
SELECT 2 / + 54 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9098
SELECT DISTINCT - CASE 92 WHEN - - CAST( - - 63 AS SIGNED ) THEN + 79 * - + 41 * + - ( 97 ) ELSE + 20 END - 39 + - 44
----
-103

skipif mysql # not compatible
query I rowsort label-9098
SELECT DISTINCT - CASE 92 WHEN - - CAST ( - - 63 AS INTEGER ) THEN + 79 * - + 41 * + - ( 97 ) ELSE + 20 END - 39 + - 44
----
-103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9099
SELECT ALL COUNT( * ) col2, + COALESCE ( + - 10, - - CAST( NULL AS SIGNED ) ) - + 63 AS col2
----
1
-73

skipif mysql # not compatible
query II rowsort label-9099
SELECT ALL COUNT ( * ) col2, + COALESCE ( + - 10, - - CAST ( NULL AS INTEGER ) ) - + 63 AS col2
----
1
-73

query II rowsort
SELECT 57, 22 * + 53 AS col1
----
57
1166

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT ALL COUNT( ALL + 70 )
----
1

skipif mysql # not compatible
query I rowsort label-9101
SELECT ALL COUNT ( ALL + 70 )
----
1

query II rowsort
SELECT 30 AS col2, + 28 * - 32 - - 80
----
30
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT COUNT( * ) - COUNT( ALL + + 59 ) * - 39
----
40

skipif mysql # not compatible
query I rowsort label-9103
SELECT COUNT ( * ) - COUNT ( ALL + + 59 ) * - 39
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT DISTINCT SUM( ALL + + 55 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-9104
SELECT DISTINCT SUM ( ALL + + 55 ) AS col2
----
55

query I rowsort
SELECT DISTINCT 72 * 91 * 62 AS col2
----
406224

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9106
SELECT DISTINCT - CAST( - 82 AS SIGNED ) DIV - - 33
----
2

skipif mysql # not compatible
query I rowsort label-9106
SELECT DISTINCT - CAST ( - 82 AS INTEGER ) / - - 33
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT ALL CASE 58 WHEN 20 * + - 76 THEN + 17 WHEN 13 * + - 90 + + ( + COALESCE ( COALESCE ( + MAX( ALL - 86 ), 43 ), + - MAX( ALL 81 ), + ( - - NULLIF ( 80, - + 96 ) ) * - 82 ) ) THEN - 32 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9107
SELECT ALL CASE 58 WHEN 20 * + - 76 THEN + 17 WHEN 13 * + - 90 + + ( + COALESCE ( COALESCE ( + MAX ( ALL - 86 ), 43 ), + - MAX ( ALL 81 ), + ( - - NULLIF ( 80, - + 96 ) ) * - 82 ) ) THEN - 32 END AS col1
----
NULL

query I rowsort
SELECT 36 + + 61
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT - SUM( - 8 )
----
8

skipif mysql # not compatible
query I rowsort label-9109
SELECT - SUM ( - 8 )
----
8

query I rowsort
SELECT 46 + - - 87
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT ALL 12 * + + ( - COUNT( * ) )
----
-12

skipif mysql # not compatible
query I rowsort label-9111
SELECT ALL 12 * + + ( - COUNT ( * ) )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT SUM( DISTINCT - 53 ) + - COUNT( + + 42 ) + + 21 col1
----
-33

skipif mysql # not compatible
query I rowsort label-9112
SELECT SUM ( DISTINCT - 53 ) + - COUNT ( + + 42 ) + + 21 col1
----
-33

query II rowsort
SELECT 81 col1, 52
----
81
52

query I rowsort
SELECT + 53 + CASE - 51 WHEN 91 THEN NULL WHEN 6 - + 65 THEN - 57 WHEN 51 + 92 * 56 THEN + 31 + - 44 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + ( 61 ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT ALL - 70 * COUNT( * ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-9116
SELECT ALL - 70 * COUNT ( * ) AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT + ( - 78 ) + + ( - 82 ) * COALESCE ( COALESCE ( + COALESCE ( 56, - ( 29 ) * 85, 76 + - MAX( + 38 ), 6 + - 51 ), 71 * - 96 ), + 7 + - CASE + COUNT( * ) WHEN 48 THEN + 17 + + ( + 52 ) * ( + 57 * 7 ) WHEN 78 THEN NULL WHEN + 86 THEN - 17 ELSE NULL END, + 92 )
----
-4670

skipif mysql # not compatible
query I rowsort label-9117
SELECT + ( - 78 ) + + ( - 82 ) * COALESCE ( COALESCE ( + COALESCE ( 56, - ( 29 ) * 85, 76 + - MAX ( + 38 ), 6 + - 51 ), 71 * - 96 ), + 7 + - CASE + COUNT ( * ) WHEN 48 THEN + 17 + + ( + 52 ) * ( + 57 * 7 ) WHEN 78 THEN NULL WHEN + 86 THEN - 17 ELSE NULL END, + 92 )
----
-4670

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9118
SELECT DISTINCT ( + 13 ) * ( + ( CAST( NULL AS SIGNED ) ) ) + - 74 * 66 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9118
SELECT DISTINCT ( + 13 ) * ( + ( CAST ( NULL AS INTEGER ) ) ) + - 74 * 66 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9119
SELECT + 42 DIV 54 + + 39 * - COUNT( * ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-9119
SELECT + 42 / 54 + + 39 * - COUNT ( * ) AS col1
----
-39

query I rowsort
SELECT ALL 55 * ( + 58 ) + + 78 col1
----
3268

query I rowsort
SELECT + ( 70 ) + + 9 * + 62 AS col1
----
628

query I rowsort
SELECT + CASE 48 WHEN 45 + - 33 THEN NULL ELSE + 45 END
----
45

query I rowsort
SELECT + 93 - 6 * 6
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT CASE + 27 WHEN CASE WHEN NOT NULLIF ( 73, + 21 ) IS NOT NULL THEN - COALESCE ( + COUNT( * ), + 22 + - 88 * + 23 ) * + 47 + 77 END + - 67 * 2 THEN ( + AVG ( + 38 ) ) ELSE + 2 END AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9124
SELECT CASE + 27 WHEN CASE WHEN NOT NULLIF ( 73, + 21 ) IS NOT NULL THEN - COALESCE ( + COUNT ( * ), + 22 + - 88 * + 23 ) * + 47 + 77 END + - 67 * 2 THEN ( + AVG ( + 38 ) ) ELSE + 2 END AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT + 79 * 94 + + COALESCE ( 41 + 68 * + 57, - COUNT( * ) )
----
11343

skipif mysql # not compatible
query I rowsort label-9125
SELECT + 79 * 94 + + COALESCE ( 41 + 68 * + 57, - COUNT ( * ) )
----
11343

query I rowsort
SELECT DISTINCT + 81 * 10 + 48
----
858

query I rowsort
SELECT ALL + 98 * - 34 + 92 AS col2
----
-3240

query I rowsort
SELECT + 57 * 99 AS col2
----
5643

query I rowsort
SELECT ALL 63 * 43 AS col0
----
2709

onlyif mysql # DIV for integer division: 
query I rowsort label-9130
SELECT + 74 DIV 30
----
2

skipif mysql # not compatible
query I rowsort label-9130
SELECT + 74 / 30
----
2

query I rowsort
SELECT + 33 + - 52 AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT ALL + COUNT( * ) * 18 + - 39 * 29 AS col0
----
-1113

skipif mysql # not compatible
query I rowsort label-9132
SELECT ALL + COUNT ( * ) * 18 + - 39 * 29 AS col0
----
-1113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9133
SELECT + CASE 10 WHEN 64 * 57 + 23 * 56 THEN + CAST( - COUNT( * ) AS SIGNED ) + - 90 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9133
SELECT + CASE 10 WHEN 64 * 57 + 23 * 56 THEN + CAST ( - COUNT ( * ) AS INTEGER ) + - 90 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT - 97 * - 23 + COUNT( * ) * 98 AS col0
----
2329

skipif mysql # not compatible
query I rowsort label-9134
SELECT - 97 * - 23 + COUNT ( * ) * 98 AS col0
----
2329

query I rowsort
SELECT + 97 * + 76 AS col0
----
7372

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT + 14 + CASE MIN( - 35 ) + 40 WHEN 71 THEN + 60 * 6 WHEN + 27 + - 21 THEN + 17 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9136
SELECT + 14 + CASE MIN ( - 35 ) + 40 WHEN 71 THEN + 60 * 6 WHEN + 27 + - 21 THEN + 17 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9137
SELECT ALL + COUNT( - CAST( NULL AS SIGNED ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-9137
SELECT ALL + COUNT ( - CAST ( NULL AS INTEGER ) ) col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9138
SELECT + 91 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9138
SELECT + 91 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 55 - + 76 AS col2
----
-21

query I rowsort
SELECT + 67 * 48
----
3216

query I rowsort
SELECT ALL - 73 * 52 AS col1
----
-3796

query I rowsort
SELECT - 84 + + 35 AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9143
SELECT - SUM( ALL 31 ) + COALESCE ( MIN( + 33 ), 46 )
----
2

skipif mysql # not compatible
query I rowsort label-9143
SELECT - SUM ( ALL 31 ) + COALESCE ( MIN ( + 33 ), 46 )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9144
SELECT - 19 DIV 40
----
0

skipif mysql # not compatible
query I rowsort label-9144
SELECT - 19 / 40
----
0

query I rowsort
SELECT ALL - 46 * - 40 AS col0
----
1840

query I rowsort
SELECT - 37 + + 59 AS col0
----
22

query I rowsort
SELECT - ( + ( 66 ) ) col1
----
-66

query I rowsort
SELECT DISTINCT + 56 * - 96
----
-5376

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT DISTINCT NULLIF ( 32, + SUM( 37 ) ) col2
----
32

skipif mysql # not compatible
query I rowsort label-9149
SELECT DISTINCT NULLIF ( 32, + SUM ( 37 ) ) col2
----
32

query I rowsort
SELECT - 1 * 50
----
-50

query I rowsort
SELECT - COALESCE ( + 67, + 78, 92 ) + - 34 * + 23
----
-849

onlyif mysql # aggregate syntax: 
query I rowsort label-9152
SELECT ALL ( - MAX( 87 ) ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-9152
SELECT ALL ( - MAX ( 87 ) ) AS col0
----
-87

query I rowsort
SELECT DISTINCT + 29 + + 53 AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT DISTINCT COUNT( 54 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9154
SELECT DISTINCT COUNT ( 54 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9155
SELECT - COUNT( 7 ) DIV - 18 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9155
SELECT - COUNT ( 7 ) / - 18 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT ALL + 11 + 11 * + CASE + COALESCE ( + SUM( 65 ), + COUNT( DISTINCT + 75 ) * + 57 + + 50 * + 99 ) WHEN - 84 THEN - 17 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9156
SELECT ALL + 11 + 11 * + CASE + COALESCE ( + SUM ( 65 ), + COUNT ( DISTINCT + 75 ) * + 57 + + 50 * + 99 ) WHEN - 84 THEN - 17 END col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9157
SELECT ALL CASE CASE 84 WHEN COUNT( * ) + - 43 THEN NULL WHEN - COUNT( + 48 ) * 14 THEN - COUNT( NULLIF ( + 83, 0 ) ) + - COUNT( * ) ELSE - ( - 75 ) END WHEN + 48 * 91 + + 95 * - CAST( - 37 AS SIGNED ) THEN COALESCE ( - 60, AVG ( ALL - CAST( 58 AS SIGNED ) ) * 74 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9157
SELECT ALL CASE CASE 84 WHEN COUNT ( * ) + - 43 THEN NULL WHEN - COUNT ( + 48 ) * 14 THEN - COUNT ( NULLIF ( + 83, 0 ) ) + - COUNT ( * ) ELSE - ( - 75 ) END WHEN + 48 * 91 + + 95 * - CAST ( - 37 AS INTEGER ) THEN COALESCE ( - 60, AVG ( ALL - CAST ( 58 AS INTEGER ) ) * 74 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT ALL - 44 + COUNT( * ) * - 17 AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-9158
SELECT ALL - 44 + COUNT ( * ) * - 17 AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT DISTINCT ( - 15 ) + - COALESCE ( - 96 + MIN( DISTINCT - 85 ), 37 )
----
166

skipif mysql # not compatible
query I rowsort label-9159
SELECT DISTINCT ( - 15 ) + - COALESCE ( - 96 + MIN ( DISTINCT - 85 ), 37 )
----
166

query I rowsort
SELECT ALL + 64 + 1
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9161
SELECT - - CASE ( COUNT( * ) ) WHEN 73 THEN NULL WHEN 10 THEN 40 END / CASE 68 WHEN 27 * COUNT( * ) + 15 THEN 12 * 87 WHEN - CASE AVG ( ALL 60 ) WHEN 96 * 75 + 46 THEN - 22 + 44 WHEN CASE 48 WHEN - 29 THEN NULL WHEN + 60 * + COALESCE ( - 69, CAST( COUNT( * ) AS SIGNED ) / 5 - 48, - 38 * 69, 89 ) THEN - 54 + 73 END + + 65 * - 82 THEN 40 + 19 / + 32 ELSE 30 * - 20 END * 75 + 82 * NULLIF ( - COUNT( * ), 22 + CASE - 37 WHEN 13 * 4 THEN - ( + 85 ) + COALESCE ( NULLIF ( - 37, + 15 * 60 ), - 19 ) ELSE 34 * + 12 END / 36 ) THEN 87 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9161
SELECT - - CASE ( COUNT ( * ) ) WHEN 73 THEN NULL WHEN 10 THEN 40 END / CASE 68 WHEN 27 * COUNT ( * ) + 15 THEN 12 * 87 WHEN - CASE AVG ( ALL 60 ) WHEN 96 * 75 + 46 THEN - 22 + 44 WHEN CASE 48 WHEN - 29 THEN NULL WHEN + 60 * + COALESCE ( - 69, CAST ( COUNT ( * ) AS INTEGER ) / 5 - 48, - 38 * 69, 89 ) THEN - 54 + 73 END + + 65 * - 82 THEN 40 + 19 / + 32 ELSE 30 * - 20 END * 75 + 82 * NULLIF ( - COUNT ( * ), 22 + CASE - 37 WHEN 13 * 4 THEN - ( + 85 ) + COALESCE ( NULLIF ( - 37, + 15 * 60 ), - 19 ) ELSE 34 * + 12 END / 36 ) THEN 87 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9162
SELECT ALL + 53 + - 6 DIV + 11 col1
----
53

skipif mysql # not compatible
query I rowsort label-9162
SELECT ALL + 53 + - 6 / + 11 col1
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9163
SELECT - - 47 * - NULLIF ( - 77, - COALESCE ( NULLIF ( + COUNT( * ), + 98 ), - 5, COUNT( * ) - - COUNT( * ) * - 62, CASE WHEN 77 IN ( + 83 ) THEN + 88 * CAST( 98 AS SIGNED ) ELSE 56 * - MIN( DISTINCT CAST( 59 AS SIGNED ) ) END ) * + CAST( + 42 AS SIGNED ) ) AS col1
----
3619

skipif mysql # not compatible
query I rowsort label-9163
SELECT - - 47 * - NULLIF ( - 77, - COALESCE ( NULLIF ( + COUNT ( * ), + 98 ), - 5, COUNT ( * ) - - COUNT ( * ) * - 62, CASE WHEN 77 IN ( + 83 ) THEN + 88 * CAST ( 98 AS INTEGER ) ELSE 56 * - MIN ( DISTINCT CAST ( 59 AS INTEGER ) ) END ) * + CAST ( + 42 AS INTEGER ) ) AS col1
----
3619

query I rowsort
SELECT + + 83 * 33 AS col2
----
2739

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT ALL - ( + COALESCE ( CASE 82 WHEN + MIN( 62 ) + 83 THEN - 37 WHEN 94 - 85 THEN NULL ELSE NULL END, - SUM( - 95 ) + 15 ) ) * 28 AS col1
----
-3080

skipif mysql # not compatible
query I rowsort label-9165
SELECT ALL - ( + COALESCE ( CASE 82 WHEN + MIN ( 62 ) + 83 THEN - 37 WHEN 94 - 85 THEN NULL ELSE NULL END, - SUM ( - 95 ) + 15 ) ) * 28 AS col1
----
-3080

query I rowsort
SELECT ALL + - 84 col1
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9167
SELECT ALL 4 DIV COUNT( * ) + + 86 * + 57
----
4906

skipif mysql # not compatible
query I rowsort label-9167
SELECT ALL 4 / COUNT ( * ) + + 86 * + 57
----
4906

onlyif mysql # DIV for integer division: 
query I rowsort label-9168
SELECT ALL + 80 DIV - 3 + 59 * 30
----
1744

skipif mysql # not compatible
query I rowsort label-9168
SELECT ALL + 80 / - 3 + 59 * 30
----
1744

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT DISTINCT + - COUNT( * ) * SUM( 3 * 91 ) AS col2
----
-273

skipif mysql # not compatible
query I rowsort label-9169
SELECT DISTINCT + - COUNT ( * ) * SUM ( 3 * 91 ) AS col2
----
-273

query I rowsort
SELECT + - 57 * 85
----
-4845

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9171
SELECT ALL - + 43 / + 19 - + CASE NULLIF ( - 60, - 35 * 81 ) WHEN + COALESCE ( - COUNT( * ), + ( + 91 ) * 2, + 10, 47 + + CAST( 1 - ( 11 ) / - 41 AS SIGNED ) ) + NULLIF ( 25, - COUNT( * ) * 76 ) THEN COUNT( + ( - 0 ) ) WHEN ( + 75 ) * + ( 22 + 22 ) + - COALESCE ( - 1 + 93, 14 / 65 + - 43 / 36, - 69 * 35 ) / + 93 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9171
SELECT ALL - + 43 / + 19 - + CASE NULLIF ( - 60, - 35 * 81 ) WHEN + COALESCE ( - COUNT ( * ), + ( + 91 ) * 2, + 10, 47 + + CAST ( 1 - ( 11 ) / - 41 AS INTEGER ) ) + NULLIF ( 25, - COUNT ( * ) * 76 ) THEN COUNT ( + ( - 0 ) ) WHEN ( + 75 ) * + ( 22 + 22 ) + - COALESCE ( - 1 + 93, 14 / 65 + - 43 / 36, - 69 * 35 ) / + 93 THEN COUNT ( * ) END
----
NULL

query I rowsort
SELECT - + 86 * 73 + - 87
----
-6365

query I rowsort
SELECT + 30 * - 95
----
-2850

query I rowsort
SELECT - 33 * - 26 + 72 * 67
----
5682

query I rowsort
SELECT + NULLIF ( - - 30, 87 * 97 )
----
30

query I rowsort
SELECT + 97 + + 28
----
125

query I rowsort
SELECT + 67 * 3
----
201

query I rowsort
SELECT ALL 79 * 81 col1
----
6399

query I rowsort
SELECT ALL 38 * - 74 AS col0
----
-2812

query I rowsort
SELECT + 43 * - 41
----
-1763

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9181
SELECT - 55 * - CAST( NULL AS SIGNED ) * - 30 - - ( 31 - 15 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9181
SELECT - 55 * - CAST ( NULL AS INTEGER ) * - 30 - - ( 31 - 15 ) AS col2
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - - 0, COALESCE ( + 12, - COALESCE ( + ( 94 ), 9 ) * + 66 ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT + COALESCE ( + COUNT( * ), 37 ) * - 57 AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-9183
SELECT + COALESCE ( + COUNT ( * ), 37 ) * - 57 AS col2
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9184
SELECT + 7 * + + 87 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9184
SELECT + 7 * + + 87 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT + 13 * MAX( + 10 ) * - 43
----
-5590

skipif mysql # not compatible
query I rowsort label-9185
SELECT + 13 * MAX ( + 10 ) * - 43
----
-5590

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT - ( + + COUNT( DISTINCT - ( 59 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9186
SELECT - ( + + COUNT ( DISTINCT - ( 59 ) ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9187
SELECT CASE 16 WHEN AVG ( DISTINCT 78 ) + - SUM( ALL 83 ) THEN NULL WHEN - 38 * - SUM( DISTINCT - 67 ) THEN + ( 32 ) * 55 + COUNT( * ) ELSE 28 END * + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9187
SELECT CASE 16 WHEN AVG ( DISTINCT 78 ) + - SUM ( ALL 83 ) THEN NULL WHEN - 38 * - SUM ( DISTINCT - 67 ) THEN + ( 32 ) * 55 + COUNT ( * ) ELSE 28 END * + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT ALL + 43 + + COUNT( * ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-9188
SELECT ALL + 43 + + COUNT ( * ) AS col2
----
44

query I rowsort
SELECT ALL - 79 + + 36 * + 36
----
1217

query I rowsort
SELECT 71 - + - 0 AS col2
----
71

query I rowsort
SELECT DISTINCT 94 + + 2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT ALL + COUNT( * ) * 53 * + 14
----
742

skipif mysql # not compatible
query I rowsort label-9192
SELECT ALL + COUNT ( * ) * 53 * + 14
----
742

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT ALL COUNT( DISTINCT 64 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9193
SELECT ALL COUNT ( DISTINCT 64 ) AS col1
----
1

query I rowsort
SELECT 21 + 55
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9195
SELECT - COALESCE ( 10, - 47, ( + CAST( COUNT( * ) AS SIGNED ) ) + + MAX( + 42 ) ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-9195
SELECT - COALESCE ( 10, - 47, ( + CAST ( COUNT ( * ) AS INTEGER ) ) + + MAX ( + 42 ) ) AS col1
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9196
SELECT - 15 + - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9196
SELECT - 15 + - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 11 * + COALESCE ( - 25, + 41 + 38 ) col0
----
-275

query I rowsort
SELECT 14 + + - 62
----
-48

query I rowsort
SELECT - 42 + + 63 + + 10 * + 17
----
191

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9200
SELECT CASE + 1 WHEN 14 * + 49 THEN NULL WHEN ( - 77 ) + 94 THEN NULL ELSE CAST( NULL AS SIGNED ) END * 77
----
NULL

skipif mysql # not compatible
query I rowsort label-9200
SELECT CASE + 1 WHEN 14 * + 49 THEN NULL WHEN ( - 77 ) + 94 THEN NULL ELSE CAST ( NULL AS INTEGER ) END * 77
----
NULL

query I rowsort
SELECT + 65 + + 36 * + 72
----
2657

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT ( + 21 ) + NULLIF ( - 77, - COUNT( * ) ) col1
----
-56

skipif mysql # not compatible
query I rowsort label-9202
SELECT ( + 21 ) + NULLIF ( - 77, - COUNT ( * ) ) col1
----
-56

query I rowsort
SELECT ALL ( + - 17 ) * 30
----
-510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9204
SELECT 14 * + + CAST( NULL AS SIGNED ) + 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9204
SELECT 14 * + + CAST ( NULL AS INTEGER ) + 8 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT - 85 * + - COUNT( * ) + + NULLIF ( + 4 + SUM( DISTINCT + 80 ) * + 23, + CASE 20 WHEN 98 THEN NULL ELSE - 69 + 0 END ) AS col2
----
1929

skipif mysql # not compatible
query I rowsort label-9205
SELECT - 85 * + - COUNT ( * ) + + NULLIF ( + 4 + SUM ( DISTINCT + 80 ) * + 23, + CASE 20 WHEN 98 THEN NULL ELSE - 69 + 0 END ) AS col2
----
1929

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9206
SELECT ALL + COALESCE ( - CAST( 62 AS SIGNED ), - COUNT( * ) ) - + 48 * 57 AS col1
----
-2798

skipif mysql # not compatible
query I rowsort label-9206
SELECT ALL + COALESCE ( - CAST ( 62 AS INTEGER ), - COUNT ( * ) ) - + 48 * 57 AS col1
----
-2798

query I rowsort
SELECT - 31 * - 41
----
1271

onlyif mysql # DIV for integer division: 
query I rowsort label-9208
SELECT + 97 DIV + 97 + 78 + 25
----
104

skipif mysql # not compatible
query I rowsort label-9208
SELECT + 97 / + 97 + 78 + 25
----
104

query I rowsort
SELECT 52 + + 11 + 29
----
92

query I rowsort
SELECT DISTINCT + 0 * 82 AS col2
----
0

query II rowsort
SELECT ALL - 4, NULLIF ( - + 20, + 6 ) AS col0
----
-4
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-9212
SELECT 46 AS col0, 26 - COUNT( ( + ( + 26 ) ) ) AS col1
----
46
25

skipif mysql # not compatible
query II rowsort label-9212
SELECT 46 AS col0, 26 - COUNT ( ( + ( + 26 ) ) ) AS col1
----
46
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT DISTINCT + CASE + + COUNT( * ) WHEN + 76 * - 93 THEN NULL WHEN - COUNT( * ) THEN 16 + 99 ELSE NULL END * + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-9213
SELECT DISTINCT + CASE + + COUNT ( * ) WHEN + 76 * - 93 THEN NULL WHEN - COUNT ( * ) THEN 16 + 99 ELSE NULL END * + 63
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9214
SELECT ALL - CAST( - AVG ( + ( + 80 ) ) AS SIGNED )
----
80

skipif mysql # not compatible
query I rowsort label-9214
SELECT ALL - CAST ( - AVG ( + ( + 80 ) ) AS INTEGER )
----
80

query II rowsort
SELECT DISTINCT - 97 AS col0, + 37 AS col0
----
-97
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT - 50 * NULLIF ( 31, COUNT( * ) * COALESCE ( 56, + 87 + + 74 ) + 81 ) + 59 * 56
----
1754

skipif mysql # not compatible
query I rowsort label-9216
SELECT - 50 * NULLIF ( 31, COUNT ( * ) * COALESCE ( 56, + 87 + + 74 ) + 81 ) + 59 * 56
----
1754

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9217
SELECT 40, 94 * + CASE 57 WHEN 11 THEN COALESCE ( + 39, + ( COUNT( ALL CAST( NULL AS SIGNED ) ) ) + - 66, 53 ) WHEN 43 THEN - CAST( 88 AS SIGNED ) END AS col2
----
40
NULL

skipif mysql # not compatible
query II rowsort label-9217
SELECT 40, 94 * + CASE 57 WHEN 11 THEN COALESCE ( + 39, + ( COUNT ( ALL CAST ( NULL AS INTEGER ) ) ) + - 66, 53 ) WHEN 43 THEN - CAST ( 88 AS INTEGER ) END AS col2
----
40
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT ALL 89 + - - COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-9218
SELECT ALL 89 + - - COUNT ( * )
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-9219
SELECT DISTINCT + 38 DIV + 23 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9219
SELECT DISTINCT + 38 / + 23 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT SUM( - 88 ) + 60
----
-28

skipif mysql # not compatible
query I rowsort label-9220
SELECT SUM ( - 88 ) + 60
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT ALL 42 + - COUNT( * ) + + - 27 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-9221
SELECT ALL 42 + - COUNT ( * ) + + - 27 AS col1
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9222
SELECT COUNT( * ) * 82 + + - ( CAST( NULL AS SIGNED ) ) * + 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9222
SELECT COUNT ( * ) * 82 + + - ( CAST ( NULL AS INTEGER ) ) * + 65 AS col0
----
NULL

query I rowsort
SELECT 64 * + 59
----
3776

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9224
SELECT NULLIF ( + NULLIF ( - 73, + SUM( DISTINCT - 17 ) ), - 38 ) DIV - 93
----
0

skipif mysql # not compatible
query I rowsort label-9224
SELECT NULLIF ( + NULLIF ( - 73, + SUM ( DISTINCT - 17 ) ), - 38 ) / - 93
----
0

query I rowsort
SELECT 80 + - COALESCE ( - ( - 33 ), - 56 * 73 ) AS col0
----
47

query II rowsort
SELECT - + 95 AS col0, 19 AS col0
----
-95
19

query I rowsort
SELECT + COALESCE ( + ( 74 ), + 62, - 64 * + CASE 51 * 14 WHEN ( - 15 ) * 13 THEN - 35 END, - 0 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT COUNT( * ) + ( + 76 ) * 17
----
1293

skipif mysql # not compatible
query I rowsort label-9228
SELECT COUNT ( * ) + ( + 76 ) * 17
----
1293

query I rowsort
SELECT ALL - 70 - 50 AS col2
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT DISTINCT NULLIF ( - 30, + - COUNT( * ) - ( 68 + - ( 57 ) * + 49 ) ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-9230
SELECT DISTINCT NULLIF ( - 30, + - COUNT ( * ) - ( 68 + - ( 57 ) * + 49 ) ) AS col1
----
-30

query I rowsort
SELECT 5 * 91 AS col0
----
455

query II rowsort
SELECT DISTINCT - 80, - 76 col1
----
-80
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT ALL COUNT( * ) - + + 12 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-9233
SELECT ALL COUNT ( * ) - + + 12 AS col2
----
-11

query I rowsort
SELECT 28 * - 83 AS col0
----
-2324

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT DISTINCT - COUNT( * ) * 23 + - 5 * 42 AS col2
----
-233

skipif mysql # not compatible
query I rowsort label-9235
SELECT DISTINCT - COUNT ( * ) * 23 + - 5 * 42 AS col2
----
-233

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT - 29 - + COUNT( * ) + - 50
----
-80

skipif mysql # not compatible
query I rowsort label-9236
SELECT - 29 - + COUNT ( * ) + - 50
----
-80

query I rowsort
SELECT ALL - - ( 52 ) * + 20
----
1040

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT MIN( - - 8 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-9238
SELECT MIN ( - - 8 ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT COUNT( DISTINCT + 83 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9239
SELECT COUNT ( DISTINCT + 83 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9240
SELECT ALL - + 39, ( COUNT( * ) ) col0
----
-39
1

skipif mysql # not compatible
query II rowsort label-9240
SELECT ALL - + 39, ( COUNT ( * ) ) col0
----
-39
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT 87 * + NULLIF ( - 71, COUNT( * ) * - 12 ) - - 69 * - COUNT( DISTINCT 22 ) AS col2
----
-6246

skipif mysql # not compatible
query I rowsort label-9241
SELECT 87 * + NULLIF ( - 71, COUNT ( * ) * - 12 ) - - 69 * - COUNT ( DISTINCT 22 ) AS col2
----
-6246

onlyif mysql # DIV for integer division: 
query I rowsort label-9242
SELECT ALL - 14 DIV 33 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9242
SELECT ALL - 14 / 33 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT ALL 97 * - - CASE + 17 WHEN 73 THEN 23 * COUNT( * ) + + 86 ELSE 77 END + - COUNT( 42 ) AS col0
----
7468

skipif mysql # not compatible
query I rowsort label-9243
SELECT ALL 97 * - - CASE + 17 WHEN 73 THEN 23 * COUNT ( * ) + + 86 ELSE 77 END + - COUNT ( 42 ) AS col0
----
7468

query I rowsort
SELECT 56 * 5
----
280

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT 59 * + + COUNT( * ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-9245
SELECT 59 * + + COUNT ( * ) AS col2
----
59

query I rowsort
SELECT ALL 65 * + ( - 94 ) + + 38
----
-6072

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT 36 * - MIN( - 97 )
----
3492

skipif mysql # not compatible
query I rowsort label-9247
SELECT 36 * - MIN ( - 97 )
----
3492

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9248
SELECT - 47 * 89 * 79 + + 32 + CAST( NULL AS SIGNED ) / 45
----
NULL

skipif mysql # not compatible
query I rowsort label-9248
SELECT - 47 * 89 * 79 + + 32 + CAST ( NULL AS INTEGER ) / 45
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9249
SELECT - COUNT( * ) * + 99 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9249
SELECT - COUNT ( * ) * + 99 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT + ( COUNT( * ) ) + + 7 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-9250
SELECT + ( COUNT ( * ) ) + + 7 AS col1
----
8

query II rowsort
SELECT ALL + 25 * - 49, + 72 AS col1
----
-1225
72

onlyif mysql # DIV for integer division: 
query I rowsort label-9252
SELECT DISTINCT 1 + + 88 DIV + 97
----
1

skipif mysql # not compatible
query I rowsort label-9252
SELECT DISTINCT 1 + + 88 / + 97
----
1

query I rowsort
SELECT 61 * - 49 + + 77 AS col1
----
-2912

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT DISTINCT NULLIF ( 96, COUNT( + 89 ) )
----
96

skipif mysql # not compatible
query I rowsort label-9254
SELECT DISTINCT NULLIF ( 96, COUNT ( + 89 ) )
----
96

query I rowsort
SELECT ALL CASE + + ( 80 ) WHEN + 61 THEN + 17 + + AVG ( 29 - 17 ) * AVG ( + 17 ) ELSE - 72 END AS col0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9256
SELECT - NULLIF ( + 79, CAST( - + 93 AS SIGNED ) ) - 53 * ( + 47 * - 19 )
----
47250

skipif mysql # not compatible
query I rowsort label-9256
SELECT - NULLIF ( + 79, CAST ( - + 93 AS INTEGER ) ) - 53 * ( + 47 * - 19 )
----
47250

query I rowsort
SELECT - 71 * - 4 AS col2
----
284

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT + 76 * + 15 * + COUNT( * )
----
1140

skipif mysql # not compatible
query I rowsort label-9258
SELECT + 76 * + 15 * + COUNT ( * )
----
1140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9259
SELECT - + CAST( + MAX( ALL - 73 ) AS SIGNED ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-9259
SELECT - + CAST ( + MAX ( ALL - 73 ) AS INTEGER ) AS col2
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-9260
SELECT + - ( - COALESCE ( 52, 50, 12 * - 39 ) ) DIV 32 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9260
SELECT + - ( - COALESCE ( 52, 50, 12 * - 39 ) ) / 32 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT ALL 37 - 13 * SUM( + CASE + 73 WHEN 43 THEN NULL WHEN + 77 THEN NULL ELSE 41 END ) AS col1
----
-496

skipif mysql # not compatible
query I rowsort label-9261
SELECT ALL 37 - 13 * SUM ( + CASE + 73 WHEN 43 THEN NULL WHEN + 77 THEN NULL ELSE 41 END ) AS col1
----
-496

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT + + 35 * NULLIF ( - COUNT( * ), - + ( - 26 ) )
----
-35

skipif mysql # not compatible
query I rowsort label-9262
SELECT + + 35 * NULLIF ( - COUNT ( * ), - + ( - 26 ) )
----
-35

query I rowsort
SELECT + 33 - - 52 AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT DISTINCT - SUM( 26 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-9264
SELECT DISTINCT - SUM ( 26 ) AS col2
----
-26

query I rowsort
SELECT - 91 * - 33 * 36
----
108108

query I rowsort
SELECT + 60 * - 67 AS col1
----
-4020

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT ALL + ( + ( COALESCE ( - COUNT( * ), + 89 * + 87 + + 74 ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9267
SELECT ALL + ( + ( COALESCE ( - COUNT ( * ), + 89 * + 87 + + 74 ) ) ) AS col1
----
-1

query I rowsort
SELECT + - 83 + + 16 AS col2
----
-67

query I rowsort
SELECT + + 9 + ( + + 7 )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT + - COUNT( * ) + + 29
----
28

skipif mysql # not compatible
query I rowsort label-9270
SELECT + - COUNT ( * ) + + 29
----
28

query I rowsort
SELECT DISTINCT + ( + 28 ) AS col1
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9272
SELECT 68 * + 13 * - COUNT( * ) + 37 + ( CAST( NULL AS SIGNED ) ) * + 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9272
SELECT 68 * + 13 * - COUNT ( * ) + 37 + ( CAST ( NULL AS INTEGER ) ) * + 21 AS col0
----
NULL

query I rowsort
SELECT + 38 * + CASE + 36 WHEN + 72 * - ( 45 ) * 98 THEN 30 END * + 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT + 43 * + + MIN( DISTINCT 0 ) + - 64
----
-64

skipif mysql # not compatible
query I rowsort label-9274
SELECT + 43 * + + MIN ( DISTINCT 0 ) + - 64
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9275
SELECT + CASE - CAST( + - 32 AS SIGNED ) WHEN + 63 * - + 68 * 42 THEN 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9275
SELECT + CASE - CAST ( + - 32 AS INTEGER ) WHEN + 63 * - + 68 * 42 THEN 98 END
----
NULL

query I rowsort
SELECT ALL 93 * - NULLIF ( + + 68, - 26 * + 29 ) + - 55 AS col1
----
-6379

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9277
SELECT ALL 61 * + + CAST( 34 AS SIGNED ) + - + 24 + - 50 * - 14
----
2750

skipif mysql # not compatible
query I rowsort label-9277
SELECT ALL 61 * + + CAST ( 34 AS INTEGER ) + - + 24 + - 50 * - 14
----
2750

query I rowsort
SELECT + 85 * + NULLIF ( - 19, - 67 ) AS col1
----
-1615

query I rowsort
SELECT DISTINCT + ( - - 13 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT ALL NULLIF ( - COUNT( * ), + CASE + + 81 WHEN 95 THEN COUNT( * ) WHEN 50 THEN 66 / - 57 - - COUNT( * ) END ) * 64 + - 96
----
-160

skipif mysql # not compatible
query I rowsort label-9280
SELECT ALL NULLIF ( - COUNT ( * ), + CASE + + 81 WHEN 95 THEN COUNT ( * ) WHEN 50 THEN 66 / - 57 - - COUNT ( * ) END ) * 64 + - 96
----
-160

query I rowsort
SELECT DISTINCT 73 * + 9 + + 84 AS col1
----
741

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9282
SELECT + COUNT( ALL - 0 ) * + + ( 35 ) + - 68 + - 7 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9282
SELECT + COUNT ( ALL - 0 ) * + + ( 35 ) + - 68 + - 7 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT DISTINCT + 4 * - - COUNT( * ) + - COUNT( * ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-9283
SELECT DISTINCT + 4 * - - COUNT ( * ) + - COUNT ( * ) AS col2
----
3

query II rowsort
SELECT + 18 * + 13 * - 91 AS col2, - 38 AS col1
----
-21294
-38

query I rowsort
SELECT NULLIF ( - 16, 7 ) AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT - 77 * + - NULLIF ( - 77, + + COUNT( * ) ) AS col0
----
-5929

skipif mysql # not compatible
query I rowsort label-9286
SELECT - 77 * + - NULLIF ( - 77, + + COUNT ( * ) ) AS col0
----
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT - CASE + 67 WHEN - 94 + + MAX( + + 13 ) - - 84 THEN - COUNT( * ) + + 68 END + 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9287
SELECT - CASE + 67 WHEN - 94 + + MAX ( + + 13 ) - - 84 THEN - COUNT ( * ) + + 68 END + 67 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9288
SELECT - CAST( NULL AS SIGNED ) * - 79 * + - 97 * + + ( - 18 ) * + 7 - + AVG ( DISTINCT 92 + 59 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9288
SELECT - CAST ( NULL AS INTEGER ) * - 79 * + - 97 * + + ( - 18 ) * + 7 - + AVG ( DISTINCT 92 + 59 )
----
NULL

query I rowsort
SELECT DISTINCT - 77 * - 9 - + 62
----
631

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT DISTINCT - + 12 * - + 98 * + - COUNT( * )
----
-1176

skipif mysql # not compatible
query I rowsort label-9290
SELECT DISTINCT - + 12 * - + 98 * + - COUNT ( * )
----
-1176

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT ALL - MIN( ALL + 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-9291
SELECT ALL - MIN ( ALL + 11 )
----
-11

query I rowsort
SELECT DISTINCT + 49 * 73 - - + 24 + + ( + 65 ) + - 41
----
3625

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT 73 * + - 71 * + + 24 + - ( + CASE + ( 18 ) WHEN CASE WHEN NOT - COUNT( * ) < + 17 THEN + 67 END + 95 THEN 74 WHEN 66 THEN NULL WHEN 97 THEN - COALESCE ( + 56, + ( - 42 ) ) * 98 ELSE + 95 END ) - 82 + 68 AS col0
----
-124501

skipif mysql # not compatible
query I rowsort label-9293
SELECT 73 * + - 71 * + + 24 + - ( + CASE + ( 18 ) WHEN CASE WHEN NOT - COUNT ( * ) < + 17 THEN + 67 END + 95 THEN 74 WHEN 66 THEN NULL WHEN 97 THEN - COALESCE ( + 56, + ( - 42 ) ) * 98 ELSE + 95 END ) - 82 + 68 AS col0
----
-124501

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT DISTINCT CASE WHEN - 9 IS NOT NULL THEN + 50 ELSE 12 + + COUNT( * ) / 35 END AS col1
----
50

skipif mysql # not compatible
query I rowsort label-9294
SELECT DISTINCT CASE WHEN - 9 IS NOT NULL THEN + 50 ELSE 12 + + COUNT ( * ) / 35 END AS col1
----
50

query I rowsort
SELECT - + 98 + - - 28 * - 73 - - 17 AS col0
----
-2125

onlyif mysql # aggregate syntax: 
query I rowsort label-9296
SELECT - - COUNT( * ) * - - SUM( ALL + 78 ) * + 33 * - - 10 + 82 AS col0
----
25822

skipif mysql # not compatible
query I rowsort label-9296
SELECT - - COUNT ( * ) * - - SUM ( ALL + 78 ) * + 33 * - - 10 + 82 AS col0
----
25822

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9297
SELECT ALL + NULLIF ( - CAST( - + ( - CAST( NULL AS SIGNED ) ) AS DECIMAL ), + 1 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9297
SELECT ALL + NULLIF ( - CAST ( - + ( - CAST ( NULL AS INTEGER ) ) AS REAL ), + 1 ) AS col2
----
NULL

query I rowsort
SELECT + 67 + 27 AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT NULLIF ( + ( COUNT( * ) ), - - 72 * 10 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9299
SELECT NULLIF ( + ( COUNT ( * ) ), - - 72 * 10 ) AS col2
----
1

query I rowsort
SELECT + 81 + 8 AS col0
----
89

query I rowsort
SELECT NULLIF ( - + 4, + 18 * + + 57 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT DISTINCT - COUNT( 84 )
----
-1

skipif mysql # not compatible
query I rowsort label-9302
SELECT DISTINCT - COUNT ( 84 )
----
-1

query I rowsort
SELECT ( + - 26 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT ALL SUM( ALL - 11 ) + - MAX( ALL - - 63 )
----
-74

skipif mysql # not compatible
query I rowsort label-9304
SELECT ALL SUM ( ALL - 11 ) + - MAX ( ALL - - 63 )
----
-74

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9305
SELECT DISTINCT 40 + CAST( - - 30 AS SIGNED ) - 99 * - CASE + 47 WHEN - 48 DIV 47 THEN 73 DIV + 28 ELSE + 50 END
----
5020

skipif mysql # not compatible
query I rowsort label-9305
SELECT DISTINCT 40 + CAST ( - - 30 AS INTEGER ) - 99 * - CASE + 47 WHEN - 48 / 47 THEN 73 / + 28 ELSE + 50 END
----
5020

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9306
SELECT - + 11 - MAX( DISTINCT - 72 ) * + 73 + 4 DIV 11 AS col2
----
5245

skipif mysql # not compatible
query I rowsort label-9306
SELECT - + 11 - MAX ( DISTINCT - 72 ) * + 73 + 4 / 11 AS col2
----
5245

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT COUNT( * ) - - 3 + + ( - 88 ) * SUM( 71 )
----
-6244

skipif mysql # not compatible
query I rowsort label-9307
SELECT COUNT ( * ) - - 3 + + ( - 88 ) * SUM ( 71 )
----
-6244

query I rowsort
SELECT ( + 77 ) * + 0 col1
----
0

query I rowsort
SELECT 49 * + - 5 col2
----
-245

query II rowsort
SELECT + 24 AS col0, - 94 - + - 52
----
24
-42

query II rowsort
SELECT ALL - 20 AS col2, - 65 col1
----
-20
-65

query II rowsort
SELECT 62, + 74 AS col1
----
62
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9313
SELECT ALL - CAST( - NULLIF ( - AVG ( - - ( - 62 ) ), + 67 * 31 + + 61 ) AS SIGNED ) * ( + 64 * COUNT( * ) )
----
3968

skipif mysql # not compatible
query I rowsort label-9313
SELECT ALL - CAST ( - NULLIF ( - AVG ( - - ( - 62 ) ), + 67 * 31 + + 61 ) AS INTEGER ) * ( + 64 * COUNT ( * ) )
----
3968

query I rowsort
SELECT ALL 25 + 62 * 56
----
3497

query I rowsort
SELECT 61 * - 45 - - - 18 AS col2
----
-2763

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9316
SELECT + 63 DIV + 14 - - - MIN( - + 92 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-9316
SELECT + 63 / + 14 - - - MIN ( - + 92 ) AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT COUNT( DISTINCT - 65 ) * - 88 + - - 77 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-9317
SELECT COUNT ( DISTINCT - 65 ) * - 88 + - - 77 AS col2
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9318
SELECT NULLIF ( MAX( + 11 ), + 22 ) * - 1 + 90 - 88 DIV 1 col2
----
-9

skipif mysql # not compatible
query I rowsort label-9318
SELECT NULLIF ( MAX ( + 11 ), + 22 ) * - 1 + 90 - 88 / 1 col2
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9319
SELECT CASE + 97 WHEN - 84 THEN NULL ELSE - ( 88 ) + + 54 * 86 END * ( + COUNT( * ) ) + 58 DIV + COALESCE ( + COALESCE ( + 16, - 9 ), 43, - 0 - 57 * 39 )
----
4559

skipif mysql # not compatible
query I rowsort label-9319
SELECT CASE + 97 WHEN - 84 THEN NULL ELSE - ( 88 ) + + 54 * 86 END * ( + COUNT ( * ) ) + 58 / + COALESCE ( + COALESCE ( + 16, - 9 ), 43, - 0 - 57 * 39 )
----
4559

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9320
SELECT 16 + - 12 * + + CAST( NULL AS SIGNED ) + + + 99 * + - 27 / 17 * CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9320
SELECT 16 + - 12 * + + CAST ( NULL AS INTEGER ) + + + 99 * + - 27 / 17 * CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT - NULLIF ( + 60, - + NULLIF ( - - COUNT( * ), - - 89 * - COALESCE ( - AVG ( - 66 ), NULLIF ( - 75, 3 / + 73 ) ) ) * - 29 - - MIN( ALL - 51 ) ) * - 23 - + 27
----
1353

skipif mysql # not compatible
query I rowsort label-9321
SELECT - NULLIF ( + 60, - + NULLIF ( - - COUNT ( * ), - - 89 * - COALESCE ( - AVG ( - 66 ), NULLIF ( - 75, 3 / + 73 ) ) ) * - 29 - - MIN ( ALL - 51 ) ) * - 23 - + 27
----
1353

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT ALL - MIN( ALL - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-9322
SELECT ALL - MIN ( ALL - 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT CASE - 22 WHEN + 4 * AVG ( + 25 ) + + 35 + 89 THEN NULL WHEN 50 * + 38 + 7 * - 80 THEN MIN( DISTINCT + ( - 58 ) ) + 52 ELSE NULL END * 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9323
SELECT CASE - 22 WHEN + 4 * AVG ( + 25 ) + + 35 + 89 THEN NULL WHEN 50 * + 38 + 7 * - 80 THEN MIN ( DISTINCT + ( - 58 ) ) + 52 ELSE NULL END * 56 AS col0
----
NULL

query I rowsort
SELECT ALL 71 * + ( - 40 ) AS col0
----
-2840

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT + NULLIF ( + - CASE - COUNT( DISTINCT + + 1 ) WHEN - + 88 * - - 16 + COUNT( * ) - 28 THEN + 61 / COUNT( * ) + + 6 END, 63 ) * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9325
SELECT + NULLIF ( + - CASE - COUNT ( DISTINCT + + 1 ) WHEN - + 88 * - - 16 + COUNT ( * ) - 28 THEN + 61 / COUNT ( * ) + + 6 END, 63 ) * COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT - COALESCE ( 7, - 75 * 27, 57 )
----
-7

onlyif mysql # DIV for integer division: 
query II rowsort label-9327
SELECT ALL 7 AS col1, 95 DIV + 62
----
7
1

skipif mysql # not compatible
query II rowsort label-9327
SELECT ALL 7 AS col1, 95 / + 62
----
7
1

query I rowsort
SELECT ALL - ( + 8 ) + - - 80
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9329
SELECT DISTINCT MAX( ALL + 40 ) + + 74 + + + 90 * 82 DIV + - 73 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-9329
SELECT DISTINCT MAX ( ALL + 40 ) + + 74 + + + 90 * 82 / + - 73 AS col1
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-9330
SELECT 48 AS col0, - ( - 96 ) + - MIN( DISTINCT 64 ) * COUNT( * )
----
48
32

skipif mysql # not compatible
query II rowsort label-9330
SELECT 48 AS col0, - ( - 96 ) + - MIN ( DISTINCT 64 ) * COUNT ( * )
----
48
32

query I rowsort
SELECT + 32 - 18
----
14

query I rowsort
SELECT ALL - 95 * ( + 26 )
----
-2470

onlyif mysql # aggregate syntax: 
query I rowsort label-9333
SELECT CASE - + 34 WHEN + - 31 THEN + ( + 94 ) ELSE - MAX( DISTINCT - 15 ) END - - COUNT( * ) * - ( - 60 * - 21 )
----
-1245

skipif mysql # not compatible
query I rowsort label-9333
SELECT CASE - + 34 WHEN + - 31 THEN + ( + 94 ) ELSE - MAX ( DISTINCT - 15 ) END - - COUNT ( * ) * - ( - 60 * - 21 )
----
-1245

query II rowsort
SELECT 85 AS col1, + 70 AS col0
----
85
70

query II rowsort
SELECT + 59 * + + 79, - 35 AS col1
----
4661
-35

query I rowsort
SELECT ALL + 46 + - 45 AS col2
----
1

query I rowsort
SELECT 31 + + 8 - + 4 AS col1
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9338
SELECT - ( - MAX( CAST( NULL AS SIGNED ) ) ) - + 49 + CAST( - 27 AS SIGNED ) + + 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9338
SELECT - ( - MAX ( CAST ( NULL AS INTEGER ) ) ) - + 49 + CAST ( - 27 AS INTEGER ) + + 20 AS col1
----
NULL

query I rowsort
SELECT 49 + - + 98 + + - 12 * + - 46
----
503

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT SUM( - 27 ) - + - 27 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9340
SELECT SUM ( - 27 ) - + - 27 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT ALL - MIN( DISTINCT + 64 ) + + - 58
----
-122

skipif mysql # not compatible
query I rowsort label-9341
SELECT ALL - MIN ( DISTINCT + 64 ) + + - 58
----
-122

query I rowsort
SELECT 66 * - - 86 * + 72 + - 14
----
408658

onlyif mysql # aggregate syntax: 
query II rowsort label-9343
SELECT MAX( ALL 59 ) AS col2, - COUNT( * ) AS col1
----
59
-1

skipif mysql # not compatible
query II rowsort label-9343
SELECT MAX ( ALL 59 ) AS col2, - COUNT ( * ) AS col1
----
59
-1

query I rowsort
SELECT DISTINCT - 21 * 68
----
-1428

query I rowsort
SELECT ALL + 66 - ( - + 42 ) + + 25
----
133

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9346
SELECT COUNT( + + 0 ) DIV - COALESCE ( - 25, + 56 ) AS col0, 75
----
0
75

skipif mysql # not compatible
query II rowsort label-9346
SELECT COUNT ( + + 0 ) / - COALESCE ( - 25, + 56 ) AS col0, 75
----
0
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9347
SELECT + 59 DIV - 73 + + + 5 + - 20
----
-15

skipif mysql # not compatible
query I rowsort label-9347
SELECT + 59 / - 73 + + + 5 + - 20
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9348
SELECT 80 + + 75 + ( + 74 ) + + + 38 * - - 43 * + ( + COALESCE ( 79, - 92 ) ) * CASE 16 WHEN ( - 86 ) * 6 THEN AVG ( - 20 ) WHEN - 62 * 76 + - AVG ( CAST( NULL AS SIGNED ) ) / 70 THEN NULL WHEN MIN( ALL 46 ) THEN ( 2 ) * CASE - 51 - 57 WHEN - 70 THEN COUNT( * ) WHEN 2 THEN NULL ELSE COUNT( * ) END END + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9348
SELECT 80 + + 75 + ( + 74 ) + + + 38 * - - 43 * + ( + COALESCE ( 79, - 92 ) ) * CASE 16 WHEN ( - 86 ) * 6 THEN AVG ( - 20 ) WHEN - 62 * 76 + - AVG ( CAST ( NULL AS INTEGER ) ) / 70 THEN NULL WHEN MIN ( ALL 46 ) THEN ( 2 ) * CASE - 51 - 57 WHEN - 70 THEN COUNT ( * ) WHEN 2 THEN NULL ELSE COUNT ( * ) END END + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT ALL - NULLIF ( - COUNT( * ), - 23 )
----
1

skipif mysql # not compatible
query I rowsort label-9349
SELECT ALL - NULLIF ( - COUNT ( * ), - 23 )
----
1

query I rowsort
SELECT - 14 * + 32 + + 9 + 36 AS col2
----
-403

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9351
SELECT DISTINCT CASE + - 0 WHEN CAST( NULL AS SIGNED ) + CAST( + ( MIN( - 41 ) ) AS SIGNED ) THEN + 33 + + 29 END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9351
SELECT DISTINCT CASE + - 0 WHEN CAST ( NULL AS INTEGER ) + CAST ( + ( MIN ( - 41 ) ) AS INTEGER ) THEN + 33 + + 29 END * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9352
SELECT 15 + + CASE - 17 WHEN + 82 THEN + - 30 + + CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9352
SELECT 15 + + CASE - 17 WHEN + 82 THEN + - 30 + + CAST ( NULL AS INTEGER ) END AS col2
----
NULL

query I rowsort
SELECT 28 * 38 * 83 * 31 + 82 - - - 51 + - 13
----
2737690

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT - 13 * + 42 * + COALESCE ( - 13, + + 91 ) - + 63 * - SUM( DISTINCT - 60 ) AS col1
----
3318

skipif mysql # not compatible
query I rowsort label-9354
SELECT - 13 * + 42 * + COALESCE ( - 13, + + 91 ) - + 63 * - SUM ( DISTINCT - 60 ) AS col1
----
3318

query II rowsort
SELECT ALL - 2 * 42, + 85 AS col2
----
-84
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9356
SELECT + - CAST( COUNT( * ) AS SIGNED ) * - 17 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9356
SELECT + - CAST ( COUNT ( * ) AS INTEGER ) * - 17 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 10 + - 36 + + 89
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT 28 + + COUNT( * ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-9358
SELECT 28 + + COUNT ( * ) AS col0
----
29

query I rowsort
SELECT - NULLIF ( 38, - 31 * 86 )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9360
SELECT - NULLIF ( + MIN( - + 32 ), + 74 * 39 + - 94 + - - 4 + + NULLIF ( - 0, + CAST( + 66 AS SIGNED ) + + COUNT( * ) ) + 55 ) + 45 * 88
----
3992

skipif mysql # not compatible
query I rowsort label-9360
SELECT - NULLIF ( + MIN ( - + 32 ), + 74 * 39 + - 94 + - - 4 + + NULLIF ( - 0, + CAST ( + 66 AS INTEGER ) + + COUNT ( * ) ) + 55 ) + 45 * 88
----
3992

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9361
SELECT DISTINCT + + 77 DIV - - COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-9361
SELECT DISTINCT + + 77 / - - COUNT ( * )
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9362
SELECT DISTINCT - COALESCE ( COUNT( * ), + 96 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9362
SELECT DISTINCT - COALESCE ( COUNT ( * ), + 96 ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT 67 + COUNT( * ) * + 93 AS col1
----
160

skipif mysql # not compatible
query I rowsort label-9363
SELECT 67 + COUNT ( * ) * + 93 AS col1
----
160

query I rowsort
SELECT ALL 13 + - 13 + - - CASE + 59 WHEN + 79 THEN + - 67 + + + 15 + - 73 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9365
SELECT + - 94 * 97 * 84 * - 11 * CAST( NULL AS SIGNED ), 36 col0
----
NULL
36

skipif mysql # not compatible
query II rowsort label-9365
SELECT + - 94 * 97 * 84 * - 11 * CAST ( NULL AS INTEGER ), 36 col0
----
NULL
36

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9366
SELECT ALL - CASE + 7 WHEN - - CAST( - CASE + - 75 WHEN - 12 - 60 THEN 95 WHEN + 20 THEN NULL ELSE 32 END AS DECIMAL ) THEN - ( 32 ) WHEN - 66 THEN NULL ELSE - 82 - 33 END AS col0
----
115

skipif mysql # not compatible
query I rowsort label-9366
SELECT ALL - CASE + 7 WHEN - - CAST ( - CASE + - 75 WHEN - 12 - 60 THEN 95 WHEN + 20 THEN NULL ELSE 32 END AS REAL ) THEN - ( 32 ) WHEN - 66 THEN NULL ELSE - 82 - 33 END AS col0
----
115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9367
SELECT ALL + CAST( NULL AS SIGNED ) + + - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-9367
SELECT ALL + CAST ( NULL AS INTEGER ) + + - 51
----
NULL

query I rowsort
SELECT - - 3 * - 20 + + + 15
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-9369
SELECT DISTINCT COUNT( * ), 23 + 45 AS col0
----
1
68

skipif mysql # not compatible
query II rowsort label-9369
SELECT DISTINCT COUNT ( * ), 23 + 45 AS col0
----
1
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9370
SELECT DISTINCT + SUM( 42 ) - 69 + COUNT( * ) * + - NULLIF ( - 1, 82 / - + CAST( NULL AS SIGNED ) ) - + COUNT( * ) * + COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-9370
SELECT DISTINCT + SUM ( 42 ) - 69 + COUNT ( * ) * + - NULLIF ( - 1, 82 / - + CAST ( NULL AS INTEGER ) ) - + COUNT ( * ) * + COUNT ( * )
----
-27

query I rowsort
SELECT ALL NULLIF ( - + 3, ( 95 ) ) AS col2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9372
SELECT - CAST( NULL AS SIGNED ) * - + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-9372
SELECT - CAST ( NULL AS INTEGER ) * - + 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT - 96 - COUNT( * ) * + 75 * - + 79 * - - MIN( ALL + 98 ) * 30
----
17419404

skipif mysql # not compatible
query I rowsort label-9373
SELECT - 96 - COUNT ( * ) * + 75 * - + 79 * - - MIN ( ALL + 98 ) * 30
----
17419404

query I rowsort
SELECT - 78 * + 86 AS col1
----
-6708

query I rowsort
SELECT DISTINCT + NULLIF ( + 79, - - 78 )
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9376
SELECT ALL + 35 * - + COALESCE ( - + 9, - 82 * - 58 * + NULLIF ( - COUNT( * ), - CAST( NULL AS SIGNED ) ) ) AS col2
----
315

skipif mysql # not compatible
query I rowsort label-9376
SELECT ALL + 35 * - + COALESCE ( - + 9, - 82 * - 58 * + NULLIF ( - COUNT ( * ), - CAST ( NULL AS INTEGER ) ) ) AS col2
----
315

onlyif mysql # DIV for integer division: 
query I rowsort label-9377
SELECT - 42 DIV - 28
----
1

skipif mysql # not compatible
query I rowsort label-9377
SELECT - 42 / - 28
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT COALESCE ( - MIN( - 21 ), + COUNT( * ) + + 16 * + 19, + MAX( + + 14 ) ) * - 12 + + COUNT( * )
----
-251

skipif mysql # not compatible
query I rowsort label-9378
SELECT COALESCE ( - MIN ( - 21 ), + COUNT ( * ) + + 16 * + 19, + MAX ( + + 14 ) ) * - 12 + + COUNT ( * )
----
-251

query I rowsort
SELECT ALL + CASE 33 WHEN - ( + + 84 ) * 11 * - + 99 * + ( - ( 26 ) ) + ( - 62 ) THEN - 60 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9380
SELECT - + 25 / - + CASE + CAST( NULL AS SIGNED ) WHEN + 45 THEN NULL WHEN + 36 THEN NULL WHEN 78 - - 70 THEN 99 + 26 * - 21 END - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-9380
SELECT - + 25 / - + CASE + CAST ( NULL AS INTEGER ) WHEN + 45 THEN NULL WHEN + 36 THEN NULL WHEN 78 - - 70 THEN 99 + 26 * - 21 END - 93
----
NULL

query II rowsort
SELECT 97, 76 - + 87 AS col0
----
97
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9382
SELECT ALL - CAST( NULL AS SIGNED ) * + 60 + + - 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9382
SELECT ALL - CAST ( NULL AS INTEGER ) * + 60 + + - 44 AS col2
----
NULL

query II rowsort
SELECT ALL + 56 col0, 44
----
56
44

query II rowsort
SELECT + 31 AS col2, - 15 AS col1
----
31
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9385
SELECT ALL 44 * + + 93 + + - MAX( + 92 ) + CAST( 21 AS SIGNED ) * + + 95 * COALESCE ( 50, 54 * + 11 + + 57 * COUNT( * ) ) AS col2
----
103750

skipif mysql # not compatible
query I rowsort label-9385
SELECT ALL 44 * + + 93 + + - MAX ( + 92 ) + CAST ( 21 AS INTEGER ) * + + 95 * COALESCE ( 50, 54 * + 11 + + 57 * COUNT ( * ) ) AS col2
----
103750

query II rowsort
SELECT + ( - + 91 ) * 67, 13 AS col2
----
-6097
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT ALL - + SUM( ALL ( - + 70 ) ) * 7 + + 26
----
516

skipif mysql # not compatible
query I rowsort label-9387
SELECT ALL - + SUM ( ALL ( - + 70 ) ) * 7 + + 26
----
516

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT - - 98 - + COUNT( * ) * 90 + + - 43
----
-35

skipif mysql # not compatible
query I rowsort label-9388
SELECT - - 98 - + COUNT ( * ) * 90 + + - 43
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-9389
SELECT + 65 AS col2, COUNT( * )
----
65
1

skipif mysql # not compatible
query II rowsort label-9389
SELECT + 65 AS col2, COUNT ( * )
----
65
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9390
SELECT + + COALESCE ( - 35, - 11 ) + - CASE + - 66 WHEN + 46 THEN NULL WHEN + - ( + 51 ) * 48 THEN - 60 END * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9390
SELECT + + COALESCE ( - 35, - 11 ) + - CASE + - 66 WHEN + 46 THEN NULL WHEN + - ( + 51 ) * 48 THEN - 60 END * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + + 18 * - - 17
----
306

query I rowsort
SELECT + - 49 + + 10 + + 62 + + 28 * + - 34 * - + 10 AS col0
----
9543

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT ALL + COUNT( * ) - + 40
----
-39

skipif mysql # not compatible
query I rowsort label-9393
SELECT ALL + COUNT ( * ) - + 40
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT DISTINCT + SUM( - 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-9394
SELECT DISTINCT + SUM ( - 74 )
----
-74

query I rowsort
SELECT ALL 46 - - 25 * - 97 AS col2
----
-2379

onlyif mysql # DIV for integer division: 
query II rowsort label-9396
SELECT + 16 - 60 * + 75, + 82 DIV 63 * - 86 AS col0
----
-4484
-86

skipif mysql # not compatible
query II rowsort label-9396
SELECT + 16 - 60 * + 75, + 82 / 63 * - 86 AS col0
----
-4484
-86

query I rowsort
SELECT ALL 86 * + 33 AS col1
----
2838

query I rowsort
SELECT ALL CASE + - AVG ( ALL 40 ) WHEN - 82 THEN + 29 WHEN - AVG ( ALL - - 30 ) / - 57 THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9399
SELECT ALL - 38 DIV 87 AS col2, CASE + - CASE - 9 WHEN - ( CAST( + - COUNT( * ) AS SIGNED ) ) THEN NULL WHEN + 84 + 56 THEN - 51 DIV ( + NULLIF ( 11, ( 93 ) ) * 78 ) WHEN - 36 THEN NULL END WHEN 71 + - 45 * - 99 THEN NULLIF ( 11, 10 ) DIV ( CAST( - 53 AS SIGNED ) ) + 15 * + 49 WHEN 25 * COUNT( * ) + 94 THEN 20 ELSE NULL END + 45 AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9399
SELECT ALL - 38 / 87 AS col2, CASE + - CASE - 9 WHEN - ( CAST ( + - COUNT ( * ) AS INTEGER ) ) THEN NULL WHEN + 84 + 56 THEN - 51 / ( + NULLIF ( 11, ( 93 ) ) * 78 ) WHEN - 36 THEN NULL END WHEN 71 + - 45 * - 99 THEN NULLIF ( 11, 10 ) / ( CAST ( - 53 AS INTEGER ) ) + 15 * + 49 WHEN 25 * COUNT ( * ) + 94 THEN 20 ELSE NULL END + 45 AS col1
----
0
NULL

query I rowsort
SELECT + 8 + - 1 + + 55
----
62

query I rowsort
SELECT + 20 / + NULLIF ( - 11, - - 41 ) * + CASE - + 76 WHEN + 87 / + 57 + 76 THEN NULL WHEN + ( - 30 ) THEN 57 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 25 * + + 71 * - 66 AS col1
----
-117150

onlyif mysql # aggregate syntax: 
query I rowsort label-9403
SELECT ALL MAX( 59 )
----
59

skipif mysql # not compatible
query I rowsort label-9403
SELECT ALL MAX ( 59 )
----
59

query I rowsort
SELECT - 78 - - 58 - ( + 23 ) * + 15 AS col2
----
-365

query I rowsort
SELECT + 90 * - + 22
----
-1980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9406
SELECT + CAST( NULL AS SIGNED ) + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-9406
SELECT + CAST ( NULL AS INTEGER ) + 34
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9407
SELECT + COUNT( * ) + 8 DIV - + 87
----
1

skipif mysql # not compatible
query I rowsort label-9407
SELECT + COUNT ( * ) + 8 / - + 87
----
1

query I rowsort
SELECT DISTINCT + ( + 10 ) * 80
----
800

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9409
SELECT - 18 + + 88 AS col1, 66 DIV - NULLIF ( + COUNT( * ), - 95 ) + + 44 AS col0
----
70
-22

skipif mysql # not compatible
query II rowsort label-9409
SELECT - 18 + + 88 AS col1, 66 / - NULLIF ( + COUNT ( * ), - 95 ) + + 44 AS col0
----
70
-22

query I rowsort
SELECT - 36 * + 90 * - 35
----
113400

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9411
SELECT + CAST( - 62 AS SIGNED ) AS col2, + 62 + 69
----
-62
131

skipif mysql # not compatible
query II rowsort label-9411
SELECT + CAST ( - 62 AS INTEGER ) AS col2, + 62 + 69
----
-62
131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9412
SELECT 77 DIV - 48 + - COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9412
SELECT 77 / - 48 + - COUNT ( * ) AS col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9413
SELECT CAST( - 95 AS SIGNED ) col0
----
-95

skipif mysql # not compatible
query I rowsort label-9413
SELECT CAST ( - 95 AS INTEGER ) col0
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9414
SELECT ALL + COUNT( ALL + 39 ) DIV - 70 + - + 97 col2
----
-97

skipif mysql # not compatible
query I rowsort label-9414
SELECT ALL + COUNT ( ALL + 39 ) / - 70 + - + 97 col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT - COUNT( * ) + - 29 col0
----
-30

skipif mysql # not compatible
query I rowsort label-9415
SELECT - COUNT ( * ) + - 29 col0
----
-30

query I rowsort
SELECT - + 96 * - - 56
----
-5376

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT DISTINCT + + NULLIF ( - 59, + COUNT( * ) )
----
-59

skipif mysql # not compatible
query I rowsort label-9417
SELECT DISTINCT + + NULLIF ( - 59, + COUNT ( * ) )
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-9418
SELECT ALL + 81 DIV 97 + - + ( 23 ) * 34 AS col1
----
-782

skipif mysql # not compatible
query I rowsort label-9418
SELECT ALL + 81 / 97 + - + ( 23 ) * 34 AS col1
----
-782

query I rowsort
SELECT ALL - 88 / - 96 * + 81 * - ( + 75 ) + - CASE + 16 WHEN - 23 THEN + COALESCE ( 33, - 38 / 0, - 51 ) + + 49 / - 1 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 52 * + - ( + 39 ) AS col1
----
2028

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9421
SELECT DISTINCT + COUNT( * ) DIV - 99 + + - ( - + 69 ) + - 89 AS col2, + 75
----
-20
75

skipif mysql # not compatible
query II rowsort label-9421
SELECT DISTINCT + COUNT ( * ) / - 99 + + - ( - + 69 ) + - 89 AS col2, + 75
----
-20
75

query I rowsort
SELECT - 89 * 4 col0
----
-356

query I rowsort
SELECT ALL - 19 * 6
----
-114

onlyif mysql # DIV for integer division: 
query I rowsort label-9424
SELECT ALL - - 76 DIV 41 + + 24 + 59
----
84

skipif mysql # not compatible
query I rowsort label-9424
SELECT ALL - - 76 / 41 + + 24 + 59
----
84

query II rowsort
SELECT 6 * + + 12 + - 7 + + - 12 AS col0, 42
----
53
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT 50 * CASE - + 77 WHEN + + 92 * - - 7 * + 54 THEN NULL ELSE + 70 END + - - 16 + - + ( - COUNT( * ) ) * 87
----
3603

skipif mysql # not compatible
query I rowsort label-9426
SELECT 50 * CASE - + 77 WHEN + + 92 * - - 7 * + 54 THEN NULL ELSE + 70 END + - - 16 + - + ( - COUNT ( * ) ) * 87
----
3603

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT 53 * COUNT( * ) + + COUNT( * ) * + + 6 col2
----
59

skipif mysql # not compatible
query I rowsort label-9427
SELECT 53 * COUNT ( * ) + + COUNT ( * ) * + + 6 col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT + COUNT( + - 85 )
----
1

skipif mysql # not compatible
query I rowsort label-9428
SELECT + COUNT ( + - 85 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9429
SELECT COALESCE ( - COUNT( * ), NULLIF ( - + 53, COUNT( ALL CAST( + - 97 AS SIGNED ) ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9429
SELECT COALESCE ( - COUNT ( * ), NULLIF ( - + 53, COUNT ( ALL CAST ( + - 97 AS INTEGER ) ) ) )
----
-1

query II rowsort
SELECT ALL 17 - + 20, 25 AS col2
----
-3
25

onlyif mysql # aggregate syntax: 
query II rowsort label-9431
SELECT ALL - - COUNT( DISTINCT - + 86 ), - 80 + + COUNT( * ) AS col2
----
1
-79

skipif mysql # not compatible
query II rowsort label-9431
SELECT ALL - - COUNT ( DISTINCT - + 86 ), - 80 + + COUNT ( * ) AS col2
----
1
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT 12 * + COUNT( * ) + COUNT( * ) col1
----
13

skipif mysql # not compatible
query I rowsort label-9432
SELECT 12 * + COUNT ( * ) + COUNT ( * ) col1
----
13

query II rowsort
SELECT DISTINCT 17, 5 * + CASE - - ( + 0 ) WHEN 38 THEN + - 68 * - + 85 WHEN - 56 THEN 98 END AS col2
----
17
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9434
SELECT 58 * - + SUM( DISTINCT + - 99 ) * - NULLIF ( - 89, 52 ), + 24 AS col1
----
511038
24

skipif mysql # not compatible
query II rowsort label-9434
SELECT 58 * - + SUM ( DISTINCT + - 99 ) * - NULLIF ( - 89, 52 ), + 24 AS col1
----
511038
24

query II rowsort
SELECT 71, - 77 AS col2
----
71
-77

query I rowsort
SELECT 0 * - 8
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9437
SELECT DISTINCT 8 * - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9437
SELECT DISTINCT 8 * - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ( + 84 ) + + NULLIF ( 82, + CASE - - 76 WHEN - 49 THEN + 36 END ) - - - 77 - - + 13
----
102

query I rowsort
SELECT 84 * + 7 * + 11 AS col2
----
6468

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9440
SELECT ALL 60 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9440
SELECT ALL 60 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT - 62 * + 41 * + 68 AS col1
----
-172856

query I rowsort
SELECT ALL 31 + - 72 + 45 AS col0
----
4

query I rowsort
SELECT ALL 7 + - 90
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT DISTINCT COUNT( - 49 ) + + 22 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-9444
SELECT DISTINCT COUNT ( - 49 ) + + 22 AS col2
----
23

query II rowsort
SELECT 57 AS col1, 34 + - 27 * 13 * - 34
----
57
11968

onlyif mysql # DIV for integer division: 
query I rowsort label-9446
SELECT COALESCE ( - + 10, + + 77 + - - 99 ) DIV + 70
----
0

skipif mysql # not compatible
query I rowsort label-9446
SELECT COALESCE ( - + 10, + + 77 + - - 99 ) / + 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT COUNT( ALL + 26 ) - - - 98 - - COUNT( * ) + - ( 14 )
----
-110

skipif mysql # not compatible
query I rowsort label-9447
SELECT COUNT ( ALL + 26 ) - - - 98 - - COUNT ( * ) + - ( 14 )
----
-110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9448
SELECT ALL COUNT( - + 65 ) DIV 75 * + + 28 * - + MIN( ALL 26 )
----
0

skipif mysql # not compatible
query I rowsort label-9448
SELECT ALL COUNT ( - + 65 ) / 75 * + + 28 * - + MIN ( ALL 26 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9449
SELECT ALL 53 + - - 80 * CAST( NULL AS SIGNED ) AS col1, + COALESCE ( 3, + - 86 ) * 19 AS col1
----
NULL
57

skipif mysql # not compatible
query II rowsort label-9449
SELECT ALL 53 + - - 80 * CAST ( NULL AS INTEGER ) AS col1, + COALESCE ( 3, + - 86 ) * 19 AS col1
----
NULL
57

query I rowsort
SELECT 8 - COALESCE ( - 65, CASE + 65 WHEN 97 THEN NULL WHEN + 89 * - 20 * 43 + - + 28 THEN NULL ELSE 3 + - 90 * - 95 END ) AS col1
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-9451
SELECT ALL + 3 DIV - + 32 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9451
SELECT ALL + 3 / - + 32 AS col1
----
0

query I rowsort
SELECT ALL NULLIF ( + 82, - 50 / 77 ) + - 5 * + 5
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT ALL - COUNT( * ) * + 54 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-9453
SELECT ALL - COUNT ( * ) * + 54 AS col0
----
-54

query I rowsort
SELECT DISTINCT 38 + - 69 AS col1
----
-31

query I rowsort
SELECT ( + 15 ) col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT - COUNT( * ) * + 1 * + 70 * - 90 - + 65 AS col2
----
6235

skipif mysql # not compatible
query I rowsort label-9456
SELECT - COUNT ( * ) * + 1 * + 70 * - 90 - + 65 AS col2
----
6235

onlyif mysql # aggregate syntax: 
query II rowsort label-9457
SELECT + - 52 AS col1, + COUNT( - - ( + 16 ) ) AS col2
----
-52
1

skipif mysql # not compatible
query II rowsort label-9457
SELECT + - 52 AS col1, + COUNT ( - - ( + 16 ) ) AS col2
----
-52
1

query I rowsort
SELECT + ( + + 29 ) col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT 44 * + CASE 62 WHEN 29 * 49 * - + CASE + ( MIN( DISTINCT + + ( + - 67 ) ) ) WHEN 55 + + ( 79 ) THEN 86 END + - COUNT( * ) THEN - COUNT( * ) * + 75 WHEN 41 * 89 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9459
SELECT 44 * + CASE 62 WHEN 29 * 49 * - + CASE + ( MIN ( DISTINCT + + ( + - 67 ) ) ) WHEN 55 + + ( 79 ) THEN 86 END + - COUNT ( * ) THEN - COUNT ( * ) * + 75 WHEN 41 * 89 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + - 16 * 78 * - 99 AS col2
----
123552

query I rowsort
SELECT + 42 + + 3 AS col2
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9462
SELECT ( - MAX( ALL NULLIF ( + 63, + 1 ) ) ) DIV 67 + - + COUNT( DISTINCT + 16 ) AS col2, COUNT( * ) AS col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-9462
SELECT ( - MAX ( ALL NULLIF ( + 63, + 1 ) ) ) / 67 + - + COUNT ( DISTINCT + 16 ) AS col2, COUNT ( * ) AS col0
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT 94 * + - COUNT( * ) col2
----
-94

skipif mysql # not compatible
query I rowsort label-9463
SELECT 94 * + - COUNT ( * ) col2
----
-94

query I rowsort
SELECT 65 + 50
----
115

query I rowsort
SELECT 74 + 54
----
128

query II rowsort
SELECT - 76 AS col2, + 81 AS col1
----
-76
81

query I rowsort
SELECT 93 * - 83 * + 54
----
-416826

onlyif mysql # aggregate syntax: 
query II rowsort label-9468
SELECT ALL - 76 + - COUNT( * ) * - MIN( ALL - 90 ) AS col2, + 38 AS col0
----
-166
38

skipif mysql # not compatible
query II rowsort label-9468
SELECT ALL - 76 + - COUNT ( * ) * - MIN ( ALL - 90 ) AS col2, + 38 AS col0
----
-166
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT DISTINCT + COUNT( * ) + + + 95 - - 47 + - 26
----
117

skipif mysql # not compatible
query I rowsort label-9469
SELECT DISTINCT + COUNT ( * ) + + + 95 - - 47 + - 26
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT ALL ( + COUNT( * ) ) + - 27 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-9470
SELECT ALL ( + COUNT ( * ) ) + - 27 AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT COUNT( * ) - - 58 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-9471
SELECT COUNT ( * ) - - 58 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9472
SELECT ALL + 3 + + SUM( + + 1 ) + 85 + - 76 + - 48 * - 97 * 39 - + 96 - 3 * - + SUM( ALL - 85 ) - - 14 * 79
----
182352

skipif mysql # not compatible
query I rowsort label-9472
SELECT ALL + 3 + + SUM ( + + 1 ) + 85 + - 76 + - 48 * - 97 * 39 - + 96 - 3 * - + SUM ( ALL - 85 ) - - 14 * 79
----
182352

query I rowsort
SELECT 83 * - - 46 * 92 AS col0
----
351256

onlyif mysql # aggregate syntax: 
query II rowsort label-9474
SELECT DISTINCT - 31 + - COUNT( * ) AS col1, - 58 + - 26 + 30 * - + COUNT( * )
----
-32
-114

skipif mysql # not compatible
query II rowsort label-9474
SELECT DISTINCT - 31 + - COUNT ( * ) AS col1, - 58 + - 26 + 30 * - + COUNT ( * )
----
-32
-114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9475
SELECT 8 + - COUNT( * ) * - - MIN( - + ( CAST( + ( COALESCE ( - 9, + + 30 ) ) AS SIGNED ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9475
SELECT 8 + - COUNT ( * ) * - - MIN ( - + ( CAST ( + ( COALESCE ( - 9, + + 30 ) ) AS INTEGER ) ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9476
SELECT COUNT( * ) - + ( - 50 )
----
51

skipif mysql # not compatible
query I rowsort label-9476
SELECT COUNT ( * ) - + ( - 50 )
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-9477
SELECT 48 AS col2, COUNT( * )
----
48
1

skipif mysql # not compatible
query II rowsort label-9477
SELECT 48 AS col2, COUNT ( * )
----
48
1

query I rowsort
SELECT ALL 47 + - + 35 AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT ALL + 14 + + NULLIF ( + + SUM( - - 2 ), - 68 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-9479
SELECT ALL + 14 + + NULLIF ( + + SUM ( - - 2 ), - 68 ) AS col0
----
16

query I rowsort
SELECT DISTINCT - 16 + 58 + - 81 * + 42 AS col0
----
-3360

onlyif mysql # aggregate syntax: 
query II rowsort label-9481
SELECT ALL 71, - COUNT( * ) * + 42 AS col2
----
71
-42

skipif mysql # not compatible
query II rowsort label-9481
SELECT ALL 71, - COUNT ( * ) * + 42 AS col2
----
71
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT ALL + 94 - - - 99 - + 6 + - 28 + + NULLIF ( - 59, - 73 ) * + 65 * COALESCE ( COUNT( * ), - + 23 + + 91, + 95, COUNT( ( - ( + 12 ) ) ) * + 58 + 13 )
----
-3874

skipif mysql # not compatible
query I rowsort label-9482
SELECT ALL + 94 - - - 99 - + 6 + - 28 + + NULLIF ( - 59, - 73 ) * + 65 * COALESCE ( COUNT ( * ), - + 23 + + 91, + 95, COUNT ( ( - ( + 12 ) ) ) * + 58 + 13 )
----
-3874

query I rowsort
SELECT + 85 * 49 + + 79
----
4244

query I rowsort
SELECT + ( + 2 ) * - 77
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT + COUNT( ALL + - 90 ) * 59
----
59

skipif mysql # not compatible
query I rowsort label-9485
SELECT + COUNT ( ALL + - 90 ) * 59
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9486
SELECT NULLIF ( - CAST( NULL AS SIGNED ), - 66 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9486
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), - 66 ) AS col1
----
NULL

query I rowsort
SELECT + + 11 + + 80
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9488
SELECT 34 AS col1, - CAST( NULL AS SIGNED ) * SUM( 2 ) col0
----
34
NULL

skipif mysql # not compatible
query II rowsort label-9488
SELECT 34 AS col1, - CAST ( NULL AS INTEGER ) * SUM ( 2 ) col0
----
34
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT + - 36 + COUNT( * ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-9489
SELECT + - 36 + COUNT ( * ) AS col2
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9490
SELECT + SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9490
SELECT + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9491
SELECT DISTINCT + - 39, 6 DIV + COUNT( * ) AS col0
----
-39
6

skipif mysql # not compatible
query II rowsort label-9491
SELECT DISTINCT + - 39, 6 / + COUNT ( * ) AS col0
----
-39
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT + ( - - 86 ) * + COUNT( * ) * + 86 + + + 70
----
7466

skipif mysql # not compatible
query I rowsort label-9492
SELECT + ( - - 86 ) * + COUNT ( * ) * + 86 + + + 70
----
7466

query II rowsort
SELECT DISTINCT + 87 AS col1, 69
----
87
69

query I rowsort
SELECT ALL 57 * 26
----
1482

onlyif mysql # aggregate syntax: 
query II rowsort label-9495
SELECT + COUNT( * ) * 54 + - 48 + + - COUNT( * ) * + 28 * - 70 + + + 61 AS col1, 0 - 70 + - COUNT( * ) + + COUNT( * ) * - 93
----
2027
-164

skipif mysql # not compatible
query II rowsort label-9495
SELECT + COUNT ( * ) * 54 + - 48 + + - COUNT ( * ) * + 28 * - 70 + + + 61 AS col1, 0 - 70 + - COUNT ( * ) + + COUNT ( * ) * - 93
----
2027
-164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9496
SELECT - CAST( - ( + 32 ) AS SIGNED ) + - 90, ( - MIN( - + 68 ) ) col1
----
-58
68

skipif mysql # not compatible
query II rowsort label-9496
SELECT - CAST ( - ( + 32 ) AS INTEGER ) + - 90, ( - MIN ( - + 68 ) ) col1
----
-58
68

onlyif mysql # DIV for integer division: 
query II rowsort label-9497
SELECT ALL + 79 AS col1, + 59 DIV - 23 col2
----
79
-2

skipif mysql # not compatible
query II rowsort label-9497
SELECT ALL + 79 AS col1, + 59 / - 23 col2
----
79
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9498
SELECT - CAST( NULL AS SIGNED ) * + + 13 * - + 65 + + - 30 * 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9498
SELECT - CAST ( NULL AS INTEGER ) * + + 13 * - + 65 + + - 30 * 94 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9499
SELECT + CASE + 58 WHEN - 47 THEN - COUNT( * ) WHEN - 45 / + 60 - + ( + - 5 ) * 59 * + SUM( - + 69 ) + CAST( 42 AS SIGNED ) + + 66 * + 29 THEN NULL ELSE + 77 END * 68 AS col0
----
5236

skipif mysql # not compatible
query I rowsort label-9499
SELECT + CASE + 58 WHEN - 47 THEN - COUNT ( * ) WHEN - 45 / + 60 - + ( + - 5 ) * 59 * + SUM ( - + 69 ) + CAST ( 42 AS INTEGER ) + + 66 * + 29 THEN NULL ELSE + 77 END * 68 AS col0
----
5236

query I rowsort
SELECT ALL 82 * + - 86 + - 11 AS col1
----
-7063

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9501
SELECT - ( + - ( - 55 ) ) DIV + 9 + + COUNT( * ) * - ( + + 24 )
----
-30

skipif mysql # not compatible
query I rowsort label-9501
SELECT - ( + - ( - 55 ) ) / + 9 + + COUNT ( * ) * - ( + + 24 )
----
-30

query I rowsort
SELECT ALL 31 + + 87 * + + 63 * + 98 AS col2
----
537169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9503
SELECT DISTINCT 90 + - + COUNT( 18 ) * + 55 / + 28 / - COALESCE ( - 17, - + COUNT( * ) ) * + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9503
SELECT DISTINCT 90 + - + COUNT ( 18 ) * + 55 / + 28 / - COALESCE ( - 17, - + COUNT ( * ) ) * + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9504
SELECT ALL MAX( + 12 ) AS col2, 45 AS col0
----
12
45

skipif mysql # not compatible
query II rowsort label-9504
SELECT ALL MAX ( + 12 ) AS col2, 45 AS col0
----
12
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT 8 * COUNT( * ) + - - CASE - 76 WHEN + - 3 THEN - - 20 / + 80 + + 54 - - 31 WHEN - + 81 + - - 8 THEN NULL ELSE NULL END + - 46 + - 39 * + 48 * 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9505
SELECT 8 * COUNT ( * ) + - - CASE - 76 WHEN + - 3 THEN - - 20 / + 80 + + 54 - - 31 WHEN - + 81 + - - 8 THEN NULL ELSE NULL END + - 46 + - 39 * + 48 * 74 AS col2
----
NULL

query I rowsort
SELECT ALL - 72 + + - 60 - - - 33 AS col0
----
-165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9507
SELECT DISTINCT - 63 + + 50 + 89 - CAST( 61 AS SIGNED ) / CAST( NULL AS SIGNED ) * - 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9507
SELECT DISTINCT - 63 + + 50 + 89 - CAST ( 61 AS INTEGER ) / CAST ( NULL AS INTEGER ) * - 56 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9508
SELECT + CAST( NULL AS SIGNED ) * + + 95 / - COALESCE ( 9, NULLIF ( 49, + 79 ), - 28 * - 77 / 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9508
SELECT + CAST ( NULL AS INTEGER ) * + + 95 / - COALESCE ( 9, NULLIF ( 49, + 79 ), - 28 * - 77 / 44 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT ALL - NULLIF ( - 12, COUNT( ALL + 66 ) * COUNT( * ) ) + - 97
----
-85

skipif mysql # not compatible
query I rowsort label-9509
SELECT ALL - NULLIF ( - 12, COUNT ( ALL + 66 ) * COUNT ( * ) ) + - 97
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9510
SELECT - 59 DIV - ( - ( + ( + + CASE - CASE + 35 WHEN - - CAST( NULL AS SIGNED ) + + 31 THEN NULL ELSE - COUNT( * ) * + 10 * + + 85 END WHEN 33 * ( 11 * 9 ) THEN - 46 WHEN + CASE 64 WHEN 6 THEN NULL ELSE - 21 END * - 86 + + 29 * + 40 THEN 29 + - COUNT( * ) WHEN 31 THEN 47 + - 50 ELSE ( 1 ) END ) ) ) * - 1
----
59

skipif mysql # not compatible
query I rowsort label-9510
SELECT - 59 / - ( - ( + ( + + CASE - CASE + 35 WHEN - - CAST ( NULL AS INTEGER ) + + 31 THEN NULL ELSE - COUNT ( * ) * + 10 * + + 85 END WHEN 33 * ( 11 * 9 ) THEN - 46 WHEN + CASE 64 WHEN 6 THEN NULL ELSE - 21 END * - 86 + + 29 * + 40 THEN 29 + - COUNT ( * ) WHEN 31 THEN 47 + - 50 ELSE ( 1 ) END ) ) ) * - 1
----
59

query I rowsort
SELECT ALL ( + - 24 ) col1
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9512
SELECT DISTINCT + COUNT( * ) * - CASE + - COUNT( DISTINCT + - 2 ) WHEN + COUNT( * ) THEN + + 12 + COUNT( * ) + - 73 DIV + 12 ELSE COUNT( * ) DIV + + 1 + - - 3 + 22 END
----
-26

skipif mysql # not compatible
query I rowsort label-9512
SELECT DISTINCT + COUNT ( * ) * - CASE + - COUNT ( DISTINCT + - 2 ) WHEN + COUNT ( * ) THEN + + 12 + COUNT ( * ) + - 73 / + 12 ELSE COUNT ( * ) / + + 1 + - - 3 + 22 END
----
-26

query I rowsort
SELECT ALL + 45 + + + 9 AS col2
----
54

query II rowsort
SELECT DISTINCT ( - 60 ) AS col1, 70
----
-60
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT ALL COALESCE ( - + 43, 17 * + CASE - COUNT( ALL 53 ) WHEN + 42 * COUNT( * ) THEN 43 * - + 85 + + 84 ELSE - + 11 END + 52 ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-9515
SELECT ALL COALESCE ( - + 43, 17 * + CASE - COUNT ( ALL 53 ) WHEN + 42 * COUNT ( * ) THEN 43 * - + 85 + + 84 ELSE - + 11 END + 52 ) AS col2
----
-43

query I rowsort
SELECT - 5 * 88
----
-440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9517
SELECT DISTINCT + CAST( - + 40 AS SIGNED )
----
-40

skipif mysql # not compatible
query I rowsort label-9517
SELECT DISTINCT + CAST ( - + 40 AS INTEGER )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT - MIN( ALL 22 ) + + - NULLIF ( + ( 4 ), + 78 ) * 98 + + SUM( 95 ) AS col2
----
-319

skipif mysql # not compatible
query I rowsort label-9518
SELECT - MIN ( ALL 22 ) + + - NULLIF ( + ( 4 ), + 78 ) * 98 + + SUM ( 95 ) AS col2
----
-319

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9519
SELECT + NULLIF ( 94, - NULLIF ( CAST( NULL AS SIGNED ), - 55 ) * CASE - - 78 WHEN + 20 THEN SUM( DISTINCT - - 86 ) * - 47 - - - COALESCE ( 69, + 52, ( - CASE 92 WHEN + 15 THEN + 81 ELSE 20 END ) ) - + 30 * 22 ELSE NULL END + + 91 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-9519
SELECT + NULLIF ( 94, - NULLIF ( CAST ( NULL AS INTEGER ), - 55 ) * CASE - - 78 WHEN + 20 THEN SUM ( DISTINCT - - 86 ) * - 47 - - - COALESCE ( 69, + 52, ( - CASE 92 WHEN + 15 THEN + 81 ELSE 20 END ) ) - + 30 * 22 ELSE NULL END + + 91 ) AS col0
----
94

query II rowsort
SELECT - + 57 - - + 16 AS col2, 56 + + 21
----
-41
77

query I rowsort
SELECT - - 82 - + 49
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9522
SELECT ALL - COALESCE ( + + 55, 65, + 89 * 3 + - COUNT( * ) + 5 * + + ( - + NULLIF ( - CAST( ( + 46 ) AS SIGNED ), + 34 ) ) ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-9522
SELECT ALL - COALESCE ( + + 55, 65, + 89 * 3 + - COUNT ( * ) + 5 * + + ( - + NULLIF ( - CAST ( ( + 46 ) AS INTEGER ), + 34 ) ) ) AS col0
----
-55

query I rowsort
SELECT + + ( - 20 )
----
-20

query I rowsort
SELECT DISTINCT + - 7 * - 78 AS col2
----
546

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9525
SELECT + MAX( 63 ) DIV - 98 * + + COUNT( * ) - + - 72
----
72

skipif mysql # not compatible
query I rowsort label-9525
SELECT + MAX ( 63 ) / - 98 * + + COUNT ( * ) - + - 72
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-9526
SELECT ALL 41 * COALESCE ( - + ( 45 ), - - 9 DIV + - ( - NULLIF ( - - 93, 25 * 79 + - + 6 DIV 7 + - 11 ) ), 41 ) + - 90
----
-1935

skipif mysql # not compatible
query I rowsort label-9526
SELECT ALL 41 * COALESCE ( - + ( 45 ), - - 9 / + - ( - NULLIF ( - - 93, 25 * 79 + - + 6 / 7 + - 11 ) ), 41 ) + - 90
----
-1935

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT - 11 * COUNT( * ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-9527
SELECT - 11 * COUNT ( * ) AS col1
----
-11

query I rowsort
SELECT + - NULLIF ( 74, + + 42 ) * 10
----
-740

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT MIN( ALL 87 )
----
87

skipif mysql # not compatible
query I rowsort label-9529
SELECT MIN ( ALL 87 )
----
87

query I rowsort
SELECT + + 64 * 5 AS col0
----
320

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9531
SELECT DISTINCT 86 DIV - 42 AS col0, 94 * - 18 * 33 AS col2, + CASE WHEN NOT COUNT( * ) NOT BETWEEN ( MIN( 52 ) * - 14 ) AND + 10 THEN 89 ELSE NULL END * + 42 + - 40 DIV + 91 AS col1
----
-2
-55836
3738

skipif mysql # not compatible
query III rowsort label-9531
SELECT DISTINCT 86 / - 42 AS col0, 94 * - 18 * 33 AS col2, + CASE WHEN NOT COUNT ( * ) NOT BETWEEN ( MIN ( 52 ) * - 14 ) AND + 10 THEN 89 ELSE NULL END * + 42 + - 40 / + 91 AS col1
----
-2
-55836
3738

onlyif mysql # aggregate syntax: 
query II rowsort label-9532
SELECT + - CASE + + MAX( - - 76 ) WHEN 79 * - 57 + + COUNT( * ) THEN + 48 END * + 13 * + COUNT( * ) * + 36 AS col2, 70 AS col0
----
NULL
70

skipif mysql # not compatible
query II rowsort label-9532
SELECT + - CASE + + MAX ( - - 76 ) WHEN 79 * - 57 + + COUNT ( * ) THEN + 48 END * + 13 * + COUNT ( * ) * + 36 AS col2, 70 AS col0
----
NULL
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9533
SELECT ALL - 91 * + 85 + + 5 AS col1, ( - COUNT( * ) ) DIV + ( + 37 ) AS col2
----
-7730
0

skipif mysql # not compatible
query II rowsort label-9533
SELECT ALL - 91 * + 85 + + 5 AS col1, ( - COUNT ( * ) ) / + ( + 37 ) AS col2
----
-7730
0

query I rowsort
SELECT + 43 * 54 * 91 col2
----
211302

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9535
SELECT DISTINCT 49 DIV - COUNT( - 7 ) AS col1, 60 * - + CASE - 28 WHEN - 40 + - COUNT( * ) + 19 + MIN( DISTINCT + + 87 ) DIV + 45 * - COUNT( ALL ( 44 ) ) * + AVG ( + 15 ) THEN - 24 ELSE NULL END
----
-49
NULL

skipif mysql # not compatible
query II rowsort label-9535
SELECT DISTINCT 49 / - COUNT ( - 7 ) AS col1, 60 * - + CASE - 28 WHEN - 40 + - COUNT ( * ) + 19 + MIN ( DISTINCT + + 87 ) / + 45 * - COUNT ( ALL ( 44 ) ) * + AVG ( + 15 ) THEN - 24 ELSE NULL END
----
-49
NULL

query I rowsort
SELECT + 19 * - - 39
----
741

query I rowsort
SELECT + 90 + - + COALESCE ( - 90, + - 15, + 16 + - 68 ) AS col2
----
180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9538
SELECT ALL - COALESCE ( + ( ( - 74 ) ), + + 20 * - SUM( ALL + 59 ) + - - 60 + 20 * + + 94 * + - 15 ) * COUNT( * ) DIV + 18 + - MAX( DISTINCT - 34 ) + 73 DIV + 82 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-9538
SELECT ALL - COALESCE ( + ( ( - 74 ) ), + + 20 * - SUM ( ALL + 59 ) + - - 60 + 20 * + + 94 * + - 15 ) * COUNT ( * ) / + 18 + - MAX ( DISTINCT - 34 ) + 73 / + 82 AS col2
----
38

query I rowsort
SELECT 40 * - 85 + - 97 AS col2
----
-3497

query I rowsort
SELECT COALESCE ( - 70, - 94 * + 5, + 68, + 59 + - 56 ) AS col2
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9541
SELECT - MIN( DISTINCT 17 ) * NULLIF ( + 33, - 81 * + COALESCE ( + NULLIF ( 23, COUNT( * ) ), - COUNT( * ) * + + 50 ) / - + 17 + + - 88 + + 8 + - 33 * - COALESCE ( 70, 66, ( NULLIF ( ( 37 ), - 79 ) ) - - 23 * + 75, - CAST( NULL AS SIGNED ) * 96 ) ) * - 39 + 35
----
21914

skipif mysql # not compatible
query I rowsort label-9541
SELECT - MIN ( DISTINCT 17 ) * NULLIF ( + 33, - 81 * + COALESCE ( + NULLIF ( 23, COUNT ( * ) ), - COUNT ( * ) * + + 50 ) / - + 17 + + - 88 + + 8 + - 33 * - COALESCE ( 70, 66, ( NULLIF ( ( 37 ), - 79 ) ) - - 23 * + 75, - CAST ( NULL AS INTEGER ) * 96 ) ) * - 39 + 35
----
21914

query I rowsort
SELECT NULLIF ( - NULLIF ( 90, - + 90 ), AVG ( ALL - + 65 ) ) AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT + 60 + MIN( DISTINCT + 70 ) AS col2
----
130

skipif mysql # not compatible
query I rowsort label-9543
SELECT + 60 + MIN ( DISTINCT + 70 ) AS col2
----
130

query I rowsort
SELECT ALL COALESCE ( 88, - 80 + + 38 )
----
88

query I rowsort
SELECT DISTINCT - NULLIF ( 59, + ( 22 ) ) * - + 19 * + - 17 * + ( 15 ) - - 62 + - 90 * - 54
----
-280933

query I rowsort
SELECT + 12 + - 64
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9547
SELECT DISTINCT + CAST( - 66 AS SIGNED ) * - - ( + 36 ) - + - SUM( + 34 ) AS col2
----
-2342

skipif mysql # not compatible
query I rowsort label-9547
SELECT DISTINCT + CAST ( - 66 AS INTEGER ) * - - ( + 36 ) - + - SUM ( + 34 ) AS col2
----
-2342

query I rowsort
SELECT - 6 + 1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9549
SELECT 14 * - CAST( - ( + + ( - 87 ) ) AS SIGNED ) AS col1
----
-1218

skipif mysql # not compatible
query I rowsort label-9549
SELECT 14 * - CAST ( - ( + + ( - 87 ) ) AS INTEGER ) AS col1
----
-1218

onlyif mysql # DIV for integer division: 
query I rowsort label-9550
SELECT DISTINCT - 69 DIV + + 20
----
-3

skipif mysql # not compatible
query I rowsort label-9550
SELECT DISTINCT - 69 / + + 20
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9551
SELECT ALL 59 AS col1, 60 + 0 + - 25 * - + COUNT( - 5 )
----
59
85

skipif mysql # not compatible
query II rowsort label-9551
SELECT ALL 59 AS col1, 60 + 0 + - 25 * - + COUNT ( - 5 )
----
59
85

onlyif mysql # aggregate syntax: 
query II rowsort label-9552
SELECT - 60, MIN( 15 ) * + + 67 + COUNT( DISTINCT + - 30 ) * + + 94 AS col0
----
-60
1099

skipif mysql # not compatible
query II rowsort label-9552
SELECT - 60, MIN ( 15 ) * + + 67 + COUNT ( DISTINCT + - 30 ) * + + 94 AS col0
----
-60
1099

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9553
SELECT - - CAST( + 63 AS SIGNED )
----
63

skipif mysql # not compatible
query I rowsort label-9553
SELECT - - CAST ( + 63 AS INTEGER )
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-9554
SELECT + 53 + - NULLIF ( 86, + - 13 * - + 41 * - 26 DIV - 24 + + 71 * 95 ) - - 79 DIV 18
----
-29

skipif mysql # not compatible
query I rowsort label-9554
SELECT + 53 + - NULLIF ( 86, + - 13 * - + 41 * - 26 / - 24 + + 71 * 95 ) - - 79 / 18
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-9555
SELECT ALL - 91 * ( - COUNT( * ) ), + 17 AS col0
----
91
17

skipif mysql # not compatible
query II rowsort label-9555
SELECT ALL - 91 * ( - COUNT ( * ) ), + 17 AS col0
----
91
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9556
SELECT 81 + - + COUNT( * ) DIV - 33, 38 AS col0
----
81
38

skipif mysql # not compatible
query II rowsort label-9556
SELECT 81 + - + COUNT ( * ) / - 33, 38 AS col0
----
81
38

query I rowsort
SELECT + 6 + + + 84
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9558
SELECT 71 - + CAST( + CASE - + 81 WHEN + COUNT( * ) THEN NULL WHEN 14 + - - 53 THEN NULL WHEN 4 THEN - COALESCE ( + ( + ( - 39 ) ), 36 ) * - 46 + 87 ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9558
SELECT 71 - + CAST ( + CASE - + 81 WHEN + COUNT ( * ) THEN NULL WHEN 14 + - - 53 THEN NULL WHEN 4 THEN - COALESCE ( + ( + ( - 39 ) ), 36 ) * - 46 + 87 ELSE NULL END AS INTEGER )
----
NULL

query I rowsort
SELECT + 19 + + 18 AS col2
----
37

query I rowsort
SELECT ALL 89 * 48 AS col1
----
4272

query I rowsort
SELECT DISTINCT + - ( - + 0 ) * 71 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9562
SELECT - 18 AS col0, + 5 * - + 40 + + 47 * - CAST( COALESCE ( + - 87, 58 ) AS SIGNED )
----
-18
3889

skipif mysql # not compatible
query II rowsort label-9562
SELECT - 18 AS col0, + 5 * - + 40 + + 47 * - CAST ( COALESCE ( + - 87, 58 ) AS INTEGER )
----
-18
3889

query II rowsort
SELECT DISTINCT - 9, - 60 col0
----
-9
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT - ( + COUNT( * ) ) + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-9564
SELECT - ( + COUNT ( * ) ) + - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-9565
SELECT - COUNT( * ), COUNT( + 78 ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-9565
SELECT - COUNT ( * ), COUNT ( + 78 ) AS col2
----
-1
1

query I rowsort
SELECT ALL - 48 + - - 72 * - 13 AS col2
----
-984

onlyif mysql # DIV for integer division: 
query I rowsort label-9567
SELECT + - ( - 86 ) DIV + 82 + 55 * + + 49 AS col1
----
2696

skipif mysql # not compatible
query I rowsort label-9567
SELECT + - ( - 86 ) / + 82 + 55 * + + 49 AS col1
----
2696

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9568
SELECT 6 + COALESCE ( + + 39, + - CASE - 86 WHEN - 75 + + + 99 THEN NULL ELSE ( 41 ) - COUNT( * ) DIV 26 * 54 END + + 28 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-9568
SELECT 6 + COALESCE ( + + 39, + - CASE - 86 WHEN - 75 + + + 99 THEN NULL ELSE ( 41 ) - COUNT ( * ) / 26 * 54 END + + 28 ) AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT + 35 * - CASE + 90 WHEN MIN( DISTINCT - - 56 ) THEN - 56 WHEN + 3 + 71 THEN + 33 * ( - 92 ) END * 64
----
NULL

skipif mysql # not compatible
query I rowsort label-9569
SELECT + 35 * - CASE + 90 WHEN MIN ( DISTINCT - - 56 ) THEN - 56 WHEN + 3 + 71 THEN + 33 * ( - 92 ) END * 64
----
NULL

query I rowsort
SELECT ALL - + 13 + + + 80 AS col0
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9571
SELECT ALL + 54 + - ( 49 ) * CAST( 93 AS SIGNED ) AS col2
----
-4503

skipif mysql # not compatible
query I rowsort label-9571
SELECT ALL + 54 + - ( 49 ) * CAST ( 93 AS INTEGER ) AS col2
----
-4503

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9572
SELECT DISTINCT - 96 * - + 50 + - - 54 + + + 26 DIV - 35 * 95 + COUNT( * ) AS col1
----
4855

skipif mysql # not compatible
query I rowsort label-9572
SELECT DISTINCT - 96 * - + 50 + - - 54 + + + 26 / - 35 * 95 + COUNT ( * ) AS col1
----
4855

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT ALL COUNT( * ) + 49 - 61 + - 16 + 67 col2
----
40

skipif mysql # not compatible
query I rowsort label-9573
SELECT ALL COUNT ( * ) + 49 - 61 + - 16 + 67 col2
----
40

query I rowsort
SELECT - 68 * - - 10 + 86
----
-594

query I rowsort
SELECT ALL - 17 * 68 AS col1
----
-1156

query I rowsort
SELECT DISTINCT + 62 + CASE + + 62 WHEN 77 THEN + 74 + 66 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT ALL + 44 + - - COUNT( * ) * - + SUM( DISTINCT 71 ) / CASE + 26 WHEN + + COUNT( * ) THEN + - 3 + - + 54 + + ( + 78 ) + + + 32 + - ( - + ( 88 ) ) * + 61 END + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-9577
SELECT ALL + 44 + - - COUNT ( * ) * - + SUM ( DISTINCT 71 ) / CASE + 26 WHEN + + COUNT ( * ) THEN + - 3 + - + 54 + + ( + 78 ) + + + 32 + - ( - + ( 88 ) ) * + 61 END + 71
----
NULL

query I rowsort
SELECT ALL 60 + - NULLIF ( - - 32, + ( - 12 ) / + - 1 ) + 15 * 52
----
808

query I rowsort
SELECT 93 * + 94
----
8742

onlyif mysql # DIV for integer division: 
query I rowsort label-9580
SELECT 17 * - + 8 + - 60 - - 23 + - 3 DIV + - 31 AS col2
----
-173

skipif mysql # not compatible
query I rowsort label-9580
SELECT 17 * - + 8 + - 60 - - 23 + - 3 / + - 31 AS col2
----
-173

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9581
SELECT 99 DIV - - COUNT( * ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-9581
SELECT 99 / - - COUNT ( * ) AS col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9582
SELECT - COUNT( * ) * - - CASE CAST( - 89 AS SIGNED ) WHEN 76 THEN + COALESCE ( 90, - - 94 * + CASE CAST( NULL AS SIGNED ) WHEN 55 + + - 97 THEN + + 22 * + - MIN( + 5 ) + COUNT( * ) WHEN 18 + COALESCE ( 6 + + 42, 96, + NULLIF ( 39, - 46 - 69 ) ) * ( ( 27 ) + 75 ) THEN NULL ELSE 12 END, + COALESCE ( + 76, + 73 DIV + 5 + COALESCE ( - 75, + 70 ) ) ) WHEN - 32 + AVG ( 70 - - 41 ) THEN 67 * COUNT( * ) ELSE + 66 END + + 21 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-9582
SELECT - COUNT ( * ) * - - CASE CAST ( - 89 AS INTEGER ) WHEN 76 THEN + COALESCE ( 90, - - 94 * + CASE CAST ( NULL AS INTEGER ) WHEN 55 + + - 97 THEN + + 22 * + - MIN ( + 5 ) + COUNT ( * ) WHEN 18 + COALESCE ( 6 + + 42, 96, + NULLIF ( 39, - 46 - 69 ) ) * ( ( 27 ) + 75 ) THEN NULL ELSE 12 END, + COALESCE ( + 76, + 73 / + 5 + COALESCE ( - 75, + 70 ) ) ) WHEN - 32 + AVG ( 70 - - 41 ) THEN 67 * COUNT ( * ) ELSE + 66 END + + 21 AS col2
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9583
SELECT ALL COUNT( * ) DIV - + ( - ( - 70 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9583
SELECT ALL COUNT ( * ) / - + ( - ( - 70 ) ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9584
SELECT ALL - MIN( ALL + 17 ) AS col2, + CAST( NULL AS DECIMAL )
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-9584
SELECT ALL - MIN ( ALL + 17 ) AS col2, + CAST ( NULL AS REAL )
----
-17
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT ( 68 ) * - - 59 * + - COUNT( * )
----
-4012

skipif mysql # not compatible
query I rowsort label-9585
SELECT ( 68 ) * - - 59 * + - COUNT ( * )
----
-4012

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT COUNT( * ) * + + 61
----
61

skipif mysql # not compatible
query I rowsort label-9586
SELECT COUNT ( * ) * + + 61
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9587
SELECT ALL MIN( + CAST( + 98 AS SIGNED ) ) * 5 + 46
----
536

skipif mysql # not compatible
query I rowsort label-9587
SELECT ALL MIN ( + CAST ( + 98 AS INTEGER ) ) * 5 + 46
----
536

query I rowsort
SELECT 24 * - - 2
----
48

query I rowsort
SELECT DISTINCT 23 * + 39 AS col0
----
897

onlyif mysql # aggregate syntax: 
query I rowsort label-9590
SELECT COUNT( * ) * - + ( - 64 )
----
64

skipif mysql # not compatible
query I rowsort label-9590
SELECT COUNT ( * ) * - + ( - 64 )
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9591
SELECT ALL SUM( DISTINCT + + 92 ), CAST( + AVG ( DISTINCT + + ( - 9 ) ) AS SIGNED ) AS col1
----
92
-9

skipif mysql # not compatible
query II rowsort label-9591
SELECT ALL SUM ( DISTINCT + + 92 ), CAST ( + AVG ( DISTINCT + + ( - 9 ) ) AS INTEGER ) AS col1
----
92
-9

query I rowsort
SELECT DISTINCT 0 + - 3 AS col2
----
-3

query I rowsort
SELECT DISTINCT 18 + + - 41 * - - 29 + + - 74 + 4
----
-1241

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT 44 - + 35 + + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-9594
SELECT 44 - + 35 + + COUNT ( * )
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-9595
SELECT COALESCE ( - 92, + 57 DIV - 58 * + 66 - 41 ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-9595
SELECT COALESCE ( - 92, + 57 / - 58 * + 66 - 41 ) AS col0
----
-92

query I rowsort
SELECT DISTINCT + - 13 * - 60 + - 11 + ( - NULLIF ( + - 3, + 74 * 59 * 77 + 41 / - 2 * + 99 * - 81 ) )
----
772

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9597
SELECT ALL + 67 * + + 38 * - CASE COUNT( * ) WHEN 57 * - - SUM( ALL - CASE 93 WHEN + CASE - 45 WHEN + + 77 * 37 THEN - + 46 WHEN + CASE 60 WHEN + 43 THEN + 94 WHEN + 64 THEN NULL ELSE NULL END THEN ( 88 ) + 50 * - 0 ELSE NULL END + + 6 THEN NULL WHEN 98 + 44 THEN + 42 ELSE + 20 / + CAST( NULL AS SIGNED ) END ) - 3 * + 92 THEN - ( 46 ) END * 99
----
NULL

skipif mysql # not compatible
query I rowsort label-9597
SELECT ALL + 67 * + + 38 * - CASE COUNT ( * ) WHEN 57 * - - SUM ( ALL - CASE 93 WHEN + CASE - 45 WHEN + + 77 * 37 THEN - + 46 WHEN + CASE 60 WHEN + 43 THEN + 94 WHEN + 64 THEN NULL ELSE NULL END THEN ( 88 ) + 50 * - 0 ELSE NULL END + + 6 THEN NULL WHEN 98 + 44 THEN + 42 ELSE + 20 / + CAST ( NULL AS INTEGER ) END ) - 3 * + 92 THEN - ( 46 ) END * 99
----
NULL

query I rowsort
SELECT ALL + - 47 * + 9 + + 5 AS col1
----
-418

onlyif mysql # DIV for integer division: 
query I rowsort label-9599
SELECT 44 DIV + 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9599
SELECT 44 / + 69 AS col2
----
0

query I rowsort
SELECT DISTINCT 14 * + - 87 * 96 + + - 1 AS col2
----
-116929

query I rowsort
SELECT 58 * 25 + + 75
----
1525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9602
SELECT ALL - NULLIF ( - 99, + CAST( NULL AS SIGNED ) / - + 30 / - - ( + 38 ) ), COUNT( * ) AS col0
----
99
1

skipif mysql # not compatible
query II rowsort label-9602
SELECT ALL - NULLIF ( - 99, + CAST ( NULL AS INTEGER ) / - + 30 / - - ( + 38 ) ), COUNT ( * ) AS col0
----
99
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9603
SELECT ALL - CAST( + - 72 AS SIGNED )
----
72

skipif mysql # not compatible
query I rowsort label-9603
SELECT ALL - CAST ( + - 72 AS INTEGER )
----
72

query I rowsort
SELECT DISTINCT - ( - 12 ) AS col0
----
12

query I rowsort
SELECT ALL - 86 * + 36 AS col1
----
-3096

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9606
SELECT ALL - CAST( - 2 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-9606
SELECT ALL - CAST ( - 2 AS INTEGER )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9607
SELECT ALL + CAST( + 75 AS SIGNED ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-9607
SELECT ALL + CAST ( + 75 AS INTEGER ) AS col1
----
75

query I rowsort
SELECT - 77 + - + 13 AS col2
----
-90

query I rowsort
SELECT - 94 + + 77 AS col2
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9610
SELECT + COUNT( * ) DIV - 48 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9610
SELECT + COUNT ( * ) / - 48 AS col2
----
0

query I rowsort
SELECT - 70 + - 30 AS col1
----
-100

query II rowsort
SELECT ALL 4, - 31 col0
----
4
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT - 47 + + + COUNT( * ) * NULLIF ( - 68, + 0 ) * 86 AS col0
----
-5895

skipif mysql # not compatible
query I rowsort label-9613
SELECT - 47 + + + COUNT ( * ) * NULLIF ( - 68, + 0 ) * 86 AS col0
----
-5895

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9614
SELECT ALL COUNT( + ( - ( - CAST( NULL AS SIGNED ) ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9614
SELECT ALL COUNT ( + ( - ( - CAST ( NULL AS INTEGER ) ) ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT ALL + 14 + + - COUNT( * ) * COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-9615
SELECT ALL + 14 + + - COUNT ( * ) * COUNT ( * )
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-9616
SELECT - COUNT( * ) AS col0, 92 AS col2
----
-1
92

skipif mysql # not compatible
query II rowsort label-9616
SELECT - COUNT ( * ) AS col0, 92 AS col2
----
-1
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT + 38 + - - COUNT( * ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-9617
SELECT + 38 + - - COUNT ( * ) AS col1
----
39

query I rowsort
SELECT ALL 7 + COALESCE ( + 48, + 13 * + + 59 ) - - - 84 AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT DISTINCT + 90 * + - NULLIF ( + 32, + COUNT( * ) )
----
-2880

skipif mysql # not compatible
query I rowsort label-9619
SELECT DISTINCT + 90 * + - NULLIF ( + 32, + COUNT ( * ) )
----
-2880

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT + 90 + COUNT( * ) + + - 37 * - CASE + 77 WHEN 71 THEN NULL WHEN - SUM( DISTINCT + + 32 ) THEN NULL ELSE - COUNT( * ) END AS col1
----
54

skipif mysql # not compatible
query I rowsort label-9620
SELECT + 90 + COUNT ( * ) + + - 37 * - CASE + 77 WHEN 71 THEN NULL WHEN - SUM ( DISTINCT + + 32 ) THEN NULL ELSE - COUNT ( * ) END AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT + ( + + ( - + COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9621
SELECT + ( + + ( - + COUNT ( * ) ) )
----
-1

query I rowsort
SELECT DISTINCT + 40 + 69 col2
----
109

onlyif mysql # aggregate syntax: 
query II rowsort label-9623
SELECT + 17 * - 9 * - + COUNT( * ) col2, - 23
----
153
-23

skipif mysql # not compatible
query II rowsort label-9623
SELECT + 17 * - 9 * - + COUNT ( * ) col2, - 23
----
153
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-9624
SELECT - NULLIF ( - MAX( DISTINCT + 0 ), - 67 + 44 ) AS col1, 82 + + MIN( ALL - 81 ) * - 50 AS col1
----
0
4132

skipif mysql # not compatible
query II rowsort label-9624
SELECT - NULLIF ( - MAX ( DISTINCT + 0 ), - 67 + 44 ) AS col1, 82 + + MIN ( ALL - 81 ) * - 50 AS col1
----
0
4132

query I rowsort
SELECT ALL + 38 + - - 14 * 3 - - 89 AS col2
----
169

query I rowsort
SELECT DISTINCT + + COALESCE ( + 69, 22, - - 44 ) * 50
----
3450

onlyif mysql # aggregate syntax: 
query II rowsort label-9627
SELECT DISTINCT + 41, COUNT( * ) * + 37 AS col1
----
41
37

skipif mysql # not compatible
query II rowsort label-9627
SELECT DISTINCT + 41, COUNT ( * ) * + 37 AS col1
----
41
37

query I rowsort
SELECT + - 52 + + 66
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT + 93 * COUNT( * ) * 24
----
2232

skipif mysql # not compatible
query I rowsort label-9629
SELECT + 93 * COUNT ( * ) * 24
----
2232

onlyif mysql # DIV for integer division: 
query I rowsort label-9630
SELECT ALL + 99 DIV 98 * 34 - + - 0 + - 5 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-9630
SELECT ALL + 99 / 98 * 34 - + - 0 + - 5 AS col2
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-9631
SELECT + 43 DIV + 4
----
10

skipif mysql # not compatible
query I rowsort label-9631
SELECT + 43 / + 4
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9632
SELECT - 49 * - CASE - + 37 WHEN + 27 THEN - - 63 END DIV 95 AS col2, 19 DIV + 37 + 71 * + - COUNT( * ) - + MAX( 83 ) AS col0
----
NULL
-154

skipif mysql # not compatible
query II rowsort label-9632
SELECT - 49 * - CASE - + 37 WHEN + 27 THEN - - 63 END / 95 AS col2, 19 / + 37 + 71 * + - COUNT ( * ) - + MAX ( 83 ) AS col0
----
NULL
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT ALL + SUM( DISTINCT + 37 ) * + 62
----
2294

skipif mysql # not compatible
query I rowsort label-9633
SELECT ALL + SUM ( DISTINCT + 37 ) * + 62
----
2294

query I rowsort
SELECT + 61 + - 67 AS col2
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9635
SELECT ALL COUNT( ALL + 20 ) DIV - + 92
----
0

skipif mysql # not compatible
query I rowsort label-9635
SELECT ALL COUNT ( ALL + 20 ) / - + 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT ALL + CASE + 28 WHEN + 8 + + COUNT( * ) THEN NULL WHEN - 3 THEN + - 94 / 7 + - 31 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9636
SELECT ALL + CASE + 28 WHEN + 8 + + COUNT ( * ) THEN NULL WHEN - 3 THEN + - 94 / 7 + - 31 END AS col1
----
NULL

query I rowsort
SELECT - 13 * + - 97 AS col1
----
1261

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT ALL COALESCE ( + - ( + 22 ), - - COUNT( * ) ) * - 30 AS col1
----
660

skipif mysql # not compatible
query I rowsort label-9638
SELECT ALL COALESCE ( + - ( + 22 ), - - COUNT ( * ) ) * - 30 AS col1
----
660

query I rowsort
SELECT DISTINCT 77 * - 83
----
-6391

query I rowsort
SELECT - 89 * 82 * + 40
----
-291920

onlyif mysql # aggregate syntax: 
query I rowsort label-9641
SELECT DISTINCT + CASE - COUNT( DISTINCT - ( - 63 ) ) WHEN + 53 * 90 + MIN( + + 44 ) THEN + CASE 15 WHEN - 96 THEN - 48 ELSE NULL END ELSE 70 END
----
70

skipif mysql # not compatible
query I rowsort label-9641
SELECT DISTINCT + CASE - COUNT ( DISTINCT - ( - 63 ) ) WHEN + 53 * 90 + MIN ( + + 44 ) THEN + CASE 15 WHEN - 96 THEN - 48 ELSE NULL END ELSE 70 END
----
70

onlyif mysql # DIV for integer division: 
query II rowsort label-9642
SELECT + 77 DIV - + COALESCE ( 31, - 18 ), 78 + - 99 AS col2
----
-2
-21

skipif mysql # not compatible
query II rowsort label-9642
SELECT + 77 / - + COALESCE ( 31, - 18 ), 78 + - 99 AS col2
----
-2
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9643
SELECT + CAST( + 60 AS SIGNED ) col1
----
60

skipif mysql # not compatible
query I rowsort label-9643
SELECT + CAST ( + 60 AS INTEGER ) col1
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9644
SELECT - 53 * - CAST( - + 96 AS SIGNED ) col2
----
-5088

skipif mysql # not compatible
query I rowsort label-9644
SELECT - 53 * - CAST ( - + 96 AS INTEGER ) col2
----
-5088

query I rowsort
SELECT - 59 * - - 43
----
-2537

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT ALL + SUM( DISTINCT + + 23 )
----
23

skipif mysql # not compatible
query I rowsort label-9646
SELECT ALL + SUM ( DISTINCT + + 23 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT - COUNT( ALL 43 ) + 44 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-9647
SELECT - COUNT ( ALL 43 ) + 44 AS col0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9648
SELECT ALL + 63 * - 70 + - CAST( + 63 AS SIGNED ) * + - 84 AS col0
----
882

skipif mysql # not compatible
query I rowsort label-9648
SELECT ALL + 63 * - 70 + - CAST ( + 63 AS INTEGER ) * + - 84 AS col0
----
882

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT - COUNT( * ) * + 70 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-9649
SELECT - COUNT ( * ) * + 70 AS col2
----
-70

query I rowsort
SELECT ALL 2 * - 39 + + - 68
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT COALESCE ( COALESCE ( + MAX( + - 11 ), + 71 + + 37 ), + ( + 45 ) ) col0
----
-11

skipif mysql # not compatible
query I rowsort label-9651
SELECT COALESCE ( COALESCE ( + MAX ( + - 11 ), + 71 + + 37 ), + ( + 45 ) ) col0
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9652
SELECT DISTINCT + NULLIF ( - - 21, 91 ) * - - 98 * - 46 * - CAST( NULL AS SIGNED ) + + + 39 + MAX( DISTINCT - + 42 ) * + 54 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9652
SELECT DISTINCT + NULLIF ( - - 21, 91 ) * - - 98 * - 46 * - CAST ( NULL AS INTEGER ) + + + 39 + MAX ( DISTINCT - + 42 ) * + 54 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT - 39 * - MAX( ALL 91 )
----
3549

skipif mysql # not compatible
query I rowsort label-9653
SELECT - 39 * - MAX ( ALL 91 )
----
3549

query I rowsort
SELECT - 8 * - 72 AS col2
----
576

onlyif mysql # aggregate syntax: 
query II rowsort label-9655
SELECT ALL MIN( + + 13 ) * + 47 + + 38, + SUM( ALL + 53 ) AS col0
----
649
53

skipif mysql # not compatible
query II rowsort label-9655
SELECT ALL MIN ( + + 13 ) * + 47 + + 38, + SUM ( ALL + 53 ) AS col0
----
649
53

query II rowsort
SELECT DISTINCT + 61 AS col0, + 11 AS col0
----
61
11

query II rowsort
SELECT DISTINCT - 22, 14 * + - 4 AS col2
----
-22
-56

query I rowsort
SELECT ALL + 2 + 94
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9659
SELECT ALL - COUNT( * ) + - COALESCE ( - + 48, 21 DIV - - 51 + 81 - + COUNT( * ) - - MIN( + NULLIF ( + 41, + 13 ) ) * 74 * - + COUNT( * ) * - 41 ) - - 74 * - ( 76 )
----
-5577

skipif mysql # not compatible
query I rowsort label-9659
SELECT ALL - COUNT ( * ) + - COALESCE ( - + 48, 21 / - - 51 + 81 - + COUNT ( * ) - - MIN ( + NULLIF ( + 41, + 13 ) ) * 74 * - + COUNT ( * ) * - 41 ) - - 74 * - ( 76 )
----
-5577

query II rowsort
SELECT DISTINCT - 86 AS col2, - 5 AS col0
----
-86
-5

query II rowsort
SELECT + 11 * 52 AS col2, - 22 col1
----
572
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9662
SELECT ALL + COUNT( * ) DIV + 49 AS col1, 15 + - + 73
----
0
-58

skipif mysql # not compatible
query II rowsort label-9662
SELECT ALL + COUNT ( * ) / + 49 AS col1, 15 + - + 73
----
0
-58

query I rowsort
SELECT ALL 64 * 59 * - + 6
----
-22656

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT + + 39 + - COUNT( DISTINCT - 68 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-9664
SELECT + + 39 + - COUNT ( DISTINCT - 68 ) AS col1
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9665
SELECT ALL 8 - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9665
SELECT ALL 8 - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT - - ( + 71 ) * + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-9666
SELECT - - ( + 71 ) * + COUNT ( * )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT + - 64 * 20 * + COUNT( * )
----
-1280

skipif mysql # not compatible
query I rowsort label-9667
SELECT + - 64 * 20 * + COUNT ( * )
----
-1280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9668
SELECT - + 95 * + 20 + + + CAST( - MIN( DISTINCT + - 28 ) AS SIGNED ) col0
----
-1872

skipif mysql # not compatible
query I rowsort label-9668
SELECT - + 95 * + 20 + + + CAST ( - MIN ( DISTINCT + - 28 ) AS INTEGER ) col0
----
-1872

query I rowsort
SELECT ALL + 84 * 14 AS col2
----
1176

onlyif mysql # aggregate syntax: 
query II rowsort label-9670
SELECT - NULLIF ( - 13, 78 * - 26 + 74 ), MAX( 53 ) AS col1
----
13
53

skipif mysql # not compatible
query II rowsort label-9670
SELECT - NULLIF ( - 13, 78 * - 26 + 74 ), MAX ( 53 ) AS col1
----
13
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT ALL COUNT( * ) * - 56
----
-56

skipif mysql # not compatible
query I rowsort label-9671
SELECT ALL COUNT ( * ) * - 56
----
-56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9672
SELECT DISTINCT + SUM( + CAST( NULL AS DECIMAL ) ), - 22 AS col0
----
NULL
-22

skipif mysql # not compatible
query II rowsort label-9672
SELECT DISTINCT + SUM ( + CAST ( NULL AS REAL ) ), - 22 AS col0
----
NULL
-22

query I rowsort
SELECT ( + + 66 ) * + 36 * 73
----
173448

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9674
SELECT COUNT( * ) DIV + 58 + - 16 col1
----
-16

skipif mysql # not compatible
query I rowsort label-9674
SELECT COUNT ( * ) / + 58 + - 16 col1
----
-16

query I rowsort
SELECT 24 - - 24 * - - 75 AS col0
----
1824

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT ( - MAX( - 88 ) ) * 4 AS col0
----
352

skipif mysql # not compatible
query I rowsort label-9676
SELECT ( - MAX ( - 88 ) ) * 4 AS col0
----
352

query I rowsort
SELECT DISTINCT + 5 + + - 57
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9678
SELECT ALL - 51 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL - 51 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT ALL + 96 * - - COUNT( * ) * + 64
----
6144

skipif mysql # not compatible
query I rowsort label-9679
SELECT ALL + 96 * - - COUNT ( * ) * + 64
----
6144

query I rowsort
SELECT ALL COALESCE ( + - 26, + + 61 ) + + 18
----
-8

query I rowsort
SELECT DISTINCT 64 + 74
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9682
SELECT ALL 23 * + 22 col0, + CASE - COUNT( * ) WHEN - 19 THEN NULL ELSE 85 * - - CASE + ( - AVG ( + 95 ) ) WHEN 79 + + 12 + - ( 35 ) - - - 20 * 30 * - - 6 * MAX( DISTINCT CAST( 38 AS SIGNED ) ) THEN COUNT( * ) * - 7 WHEN CASE 82 WHEN 26 + 96 THEN - 32 * + 78 + + COUNT( * ) * 78 WHEN 6 THEN 51 ELSE COUNT( * ) - 25 END + 92 THEN NULL ELSE NULL END + 73 END
----
506
NULL

skipif mysql # not compatible
query II rowsort label-9682
SELECT ALL 23 * + 22 col0, + CASE - COUNT ( * ) WHEN - 19 THEN NULL ELSE 85 * - - CASE + ( - AVG ( + 95 ) ) WHEN 79 + + 12 + - ( 35 ) - - - 20 * 30 * - - 6 * MAX ( DISTINCT CAST ( 38 AS INTEGER ) ) THEN COUNT ( * ) * - 7 WHEN CASE 82 WHEN 26 + 96 THEN - 32 * + 78 + + COUNT ( * ) * 78 WHEN 6 THEN 51 ELSE COUNT ( * ) - 25 END + 92 THEN NULL ELSE NULL END + 73 END
----
506
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9683
SELECT - 75 * - COALESCE ( + ( + 1 ), + 7, + 9, - CAST( NULL AS SIGNED ) ) + - + 88 DIV - 6 + + 69 + + - 81 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-9683
SELECT - 75 * - COALESCE ( + ( + 1 ), + 7, + 9, - CAST ( NULL AS INTEGER ) ) + - + 88 / - 6 + + 69 + + - 81 AS col1
----
77

query I rowsort
SELECT + 6 * - 62 + 85
----
-287

query I rowsort
SELECT + 45 + + 32
----
77

query I rowsort
SELECT 50 + - - 14
----
64

query I rowsort
SELECT ALL + + 71 * 2 AS col1
----
142

query I rowsort
SELECT - 86 + - 80 AS col0
----
-166

query I rowsort
SELECT DISTINCT + - 21 * - + 92 + 20 AS col1
----
1952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9690
SELECT ALL + - ( 76 ) * + + 16 - + SUM( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9690
SELECT ALL + - ( 76 ) * + + 16 - + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT DISTINCT - - 41 - - COUNT( * ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-9691
SELECT DISTINCT - - 41 - - COUNT ( * ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-9692
SELECT + COUNT( * ) + 72, - 81 * + 87 AS col0
----
73
-7047

skipif mysql # not compatible
query II rowsort label-9692
SELECT + COUNT ( * ) + 72, - 81 * + 87 AS col0
----
73
-7047

query I rowsort
SELECT + 36 + ( 23 )
----
59

query I rowsort
SELECT 98 * - 11 * + 68 * - + 24
----
1759296

query I rowsort
SELECT + 45 * + 38 + + 6 + + 53 + 25 AS col2
----
1794

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9696
SELECT ALL CAST( + + 65 AS SIGNED ) AS col0, COUNT( * ) + 36 AS col2
----
65
37

skipif mysql # not compatible
query II rowsort label-9696
SELECT ALL CAST ( + + 65 AS INTEGER ) AS col0, COUNT ( * ) + 36 AS col2
----
65
37

query II rowsort
SELECT DISTINCT - 86 * 36, - 14 * - 37 AS col2
----
-3096
518

query I rowsort
SELECT 18 * COALESCE ( + ( + 36 ), + + 30 * + + 31 ) AS col1
----
648

query II rowsort
SELECT ALL 11 AS col1, 88 + - 43 * + 92 - - 47
----
11
-3821

query II rowsort
SELECT ALL 63 AS col0, 42 col0
----
63
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT COUNT( * ) * 16 col2
----
16

skipif mysql # not compatible
query I rowsort label-9701
SELECT COUNT ( * ) * 16 col2
----
16

query II rowsort
SELECT 52, 75 AS col1
----
52
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9703
SELECT ALL - ( - NULLIF ( - ( 15 ), 78 * - 65 * + 92 - + - CAST( 72 AS SIGNED ) + + 22 + CAST( NULL AS SIGNED ) DIV + ( - COUNT( * ) ) + + 10 * + + 64 + + CAST( + ( - 13 ) AS SIGNED ) * 83 ) ) DIV + ( NULLIF ( 86, - COALESCE ( - CAST( 40 AS SIGNED ), 96 * CAST( NULL AS SIGNED ), 57 ) ) * 90 + 35 )
----
0

skipif mysql # not compatible
query I rowsort label-9703
SELECT ALL - ( - NULLIF ( - ( 15 ), 78 * - 65 * + 92 - + - CAST ( 72 AS INTEGER ) + + 22 + CAST ( NULL AS INTEGER ) / + ( - COUNT ( * ) ) + + 10 * + + 64 + + CAST ( + ( - 13 ) AS INTEGER ) * 83 ) ) / + ( NULLIF ( 86, - COALESCE ( - CAST ( 40 AS INTEGER ), 96 * CAST ( NULL AS INTEGER ), 57 ) ) * 90 + 35 )
----
0

query I rowsort
SELECT 44 * - 53 * - ( 36 )
----
83952

query I rowsort
SELECT 18 * - - 84 * ( - ( 15 ) ) * ( + 81 )
----
-1837080

query II rowsort
SELECT + 31 AS col2, 44
----
31
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9707
SELECT 55 / 20 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9707
SELECT 55 / 20 + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 59 + + + 59
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT DISTINCT + ( + COUNT( * ) ) * + 87 + - 34 * - 54 AS col0
----
1923

skipif mysql # not compatible
query I rowsort label-9709
SELECT DISTINCT + ( + COUNT ( * ) ) * + 87 + - 34 * - 54 AS col0
----
1923

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9710
SELECT DISTINCT 77 + - MAX( ALL + + CAST( + 11 AS SIGNED ) ) - CAST( - 68 AS SIGNED ) * 52
----
3602

skipif mysql # not compatible
query I rowsort label-9710
SELECT DISTINCT 77 + - MAX ( ALL + + CAST ( + 11 AS INTEGER ) ) - CAST ( - 68 AS INTEGER ) * 52
----
3602

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9711
SELECT + 96 AS col1, + COALESCE ( - 87, 87 ) * - CAST( NULL AS SIGNED ) + + - 32 + - COUNT( * ) + + + 77 - + 70 * MAX( DISTINCT + 46 ) / + - COUNT( * ) * + + COALESCE ( - 91, - COUNT( * ) + 46 * + - 12 * + ( - MIN( DISTINCT - 90 ) ) + COUNT( * ), 4 * + MAX( ALL + 28 * 96 ), - 78 ) + + 53
----
96
NULL

skipif mysql # not compatible
query II rowsort label-9711
SELECT + 96 AS col1, + COALESCE ( - 87, 87 ) * - CAST ( NULL AS INTEGER ) + + - 32 + - COUNT ( * ) + + + 77 - + 70 * MAX ( DISTINCT + 46 ) / + - COUNT ( * ) * + + COALESCE ( - 91, - COUNT ( * ) + 46 * + - 12 * + ( - MIN ( DISTINCT - 90 ) ) + COUNT ( * ), 4 * + MAX ( ALL + 28 * 96 ), - 78 ) + + 53
----
96
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9712
SELECT ALL COUNT( * ) + + 21 * + CAST( NULL AS SIGNED ) * - 60 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9712
SELECT ALL COUNT ( * ) + + 21 * + CAST ( NULL AS INTEGER ) * - 60 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9713
SELECT + 75 * + - MIN( DISTINCT + + 97 ) + + CAST( - - 9 AS SIGNED ) AS col2
----
-7266

skipif mysql # not compatible
query I rowsort label-9713
SELECT + 75 * + - MIN ( DISTINCT + + 97 ) + + CAST ( - - 9 AS INTEGER ) AS col2
----
-7266

query I rowsort
SELECT DISTINCT 23 + + 98
----
121

query II rowsort
SELECT ALL - 17 AS col2, 80 AS col0
----
-17
80

query I rowsort
SELECT - 30 * 74 * + - 47
----
104340

query I rowsort
SELECT 16 * - - 71
----
1136

query II rowsort
SELECT - 21 AS col1, 24 AS col1
----
-21
24

query I rowsort
SELECT ALL 96 - - + 93
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT SUM( ALL - ( - + 10 ) ) * - + 46
----
-460

skipif mysql # not compatible
query I rowsort label-9720
SELECT SUM ( ALL - ( - + 10 ) ) * - + 46
----
-460

query I rowsort
SELECT DISTINCT + 58 * 91 AS col1
----
5278

query I rowsort
SELECT - 46 * 36 AS col2
----
-1656

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT COUNT( * ) * + 22 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-9723
SELECT COUNT ( * ) * + 22 AS col0
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9724
SELECT + COALESCE ( CAST( NULL AS SIGNED ), + ( - 20 ) DIV + 2, - ( 36 ) * - + 97 DIV 54 ) * - 39 + - - ( + MAX( - 44 ) ) - 87 * + COALESCE ( + + CASE + 48 WHEN + 33 THEN NULL WHEN 5 THEN - 95 END, 42 ) col0
----
-3308

skipif mysql # not compatible
query I rowsort label-9724
SELECT + COALESCE ( CAST ( NULL AS INTEGER ), + ( - 20 ) / + 2, - ( 36 ) * - + 97 / 54 ) * - 39 + - - ( + MAX ( - 44 ) ) - 87 * + COALESCE ( + + CASE + 48 WHEN + 33 THEN NULL WHEN 5 THEN - 95 END, 42 ) col0
----
-3308

onlyif mysql # DIV for integer division: 
query I rowsort label-9725
SELECT ALL + 59 DIV - 73
----
0

skipif mysql # not compatible
query I rowsort label-9725
SELECT ALL + 59 / - 73
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9726
SELECT - CASE + 63 WHEN + 11 + + - CAST( COALESCE ( + AVG ( 41 ), 9 ) AS SIGNED ) * + 58 * - CASE COUNT( * ) WHEN + - 62 THEN - + 98 END THEN - 77 END - - 62 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9726
SELECT - CASE + 63 WHEN + 11 + + - CAST ( COALESCE ( + AVG ( 41 ), 9 ) AS INTEGER ) * + 58 * - CASE COUNT ( * ) WHEN + - 62 THEN - + 98 END THEN - 77 END - - 62 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9727
SELECT - 29 DIV - 73 + - + 27 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-9727
SELECT - 29 / - 73 + - + 27 AS col2
----
-27

query II rowsort
SELECT - 28, + 70 AS col2
----
-28
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9729
SELECT COUNT( * ) * + + 76 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-9729
SELECT COUNT ( * ) * + + 76 AS col0
----
76

query II rowsort
SELECT ALL 23, - ( - 11 ) AS col1
----
23
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9731
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, - 79 + - 75 * 3 * 55
----
NULL
-12454

skipif mysql # not compatible
query II rowsort label-9731
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, - 79 + - 75 * 3 * 55
----
NULL
-12454

onlyif mysql # aggregate syntax: 
query II rowsort label-9732
SELECT - 90 - + COUNT( * ) AS col0, - MIN( + COALESCE ( - 81, + 21 ) ) * 80 AS col1
----
-91
6480

skipif mysql # not compatible
query II rowsort label-9732
SELECT - 90 - + COUNT ( * ) AS col0, - MIN ( + COALESCE ( - 81, + 21 ) ) * 80 AS col1
----
-91
6480

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT - COUNT( * ) + - 35 col2
----
-36

skipif mysql # not compatible
query I rowsort label-9733
SELECT - COUNT ( * ) + - 35 col2
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9734
SELECT DISTINCT COUNT( - CAST( - + 79 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-9734
SELECT DISTINCT COUNT ( - CAST ( - + 79 AS INTEGER ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9735
SELECT ALL - CAST( NULL AS SIGNED ) + + ( - 15 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9735
SELECT ALL - CAST ( NULL AS INTEGER ) + + ( - 15 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT ALL + CASE - 55 WHEN - 8 THEN NULL WHEN + 99 THEN 75 + 67 END + + COUNT( * ) + + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-9736
SELECT ALL + CASE - 55 WHEN - 8 THEN NULL WHEN + 99 THEN 75 + 67 END + + COUNT ( * ) + + 89
----
NULL

query I rowsort
SELECT - 30 + - + ( 61 )
----
-91

query I rowsort
SELECT ALL NULLIF ( 39, + + ( - + 91 ) ) col0
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9739
SELECT - 48 DIV + - 59 AS col1, - COUNT( + + 15 ) * - 3
----
0
3

skipif mysql # not compatible
query II rowsort label-9739
SELECT - 48 / + - 59 AS col1, - COUNT ( + + 15 ) * - 3
----
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT ALL - COUNT( * ) + + + COUNT( * ) + + + 80 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-9740
SELECT ALL - COUNT ( * ) + + + COUNT ( * ) + + + 80 AS col2
----
80

query I rowsort
SELECT ALL 84 * + 47 + - 42
----
3906

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9742
SELECT - COUNT( * ) / CASE + 11 WHEN ( + 99 ) THEN - - AVG ( ALL 81 ) / - 4 * 64 ELSE NULL END, 24 * + - CAST( CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9742
SELECT - COUNT ( * ) / CASE + 11 WHEN ( + 99 ) THEN - - AVG ( ALL 81 ) / - 4 * 64 ELSE NULL END, 24 * + - CAST ( CAST ( NULL AS REAL ) AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT DISTINCT 15 * - + 93 + + 0
----
-1395

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9744
SELECT DISTINCT - 79 DIV + - 1 * + COUNT( 15 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-9744
SELECT DISTINCT - 79 / + - 1 * + COUNT ( 15 ) AS col2
----
79

query I rowsort
SELECT - 64 * - 52 AS col2
----
3328

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT + COUNT( DISTINCT 47 )
----
1

skipif mysql # not compatible
query I rowsort label-9746
SELECT + COUNT ( DISTINCT 47 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT + - COUNT( DISTINCT + - NULLIF ( - 15, + 68 / NULLIF ( - + ( - 48 ), + ( 20 ) * 71 ) ) ) * - 67 * - - 47 * + + SUM( ALL + 42 ) + + + 64 AS col0
----
132322

skipif mysql # not compatible
query I rowsort label-9747
SELECT + - COUNT ( DISTINCT + - NULLIF ( - 15, + 68 / NULLIF ( - + ( - 48 ), + ( 20 ) * 71 ) ) ) * - 67 * - - 47 * + + SUM ( ALL + 42 ) + + + 64 AS col0
----
132322

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT DISTINCT - CASE - 14 WHEN + - NULLIF ( 7, 60 / ( COUNT( * ) ) - 79 ) + + COUNT( * ) THEN 32 / 81 * - 69 + + 50 WHEN - 10 + - 37 THEN NULL END * 20
----
NULL

skipif mysql # not compatible
query I rowsort label-9748
SELECT DISTINCT - CASE - 14 WHEN + - NULLIF ( 7, 60 / ( COUNT ( * ) ) - 79 ) + + COUNT ( * ) THEN 32 / 81 * - 69 + + 50 WHEN - 10 + - 37 THEN NULL END * 20
----
NULL

query I rowsort
SELECT DISTINCT - + 62 * - 25
----
1550

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT ALL + + ( + MAX( 47 ) ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-9750
SELECT ALL + + ( + MAX ( 47 ) ) AS col2
----
47

query I rowsort
SELECT DISTINCT 50 * + 63 - - 50 AS col2
----
3200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9752
SELECT + 77 - + CAST( NULL AS SIGNED ) + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-9752
SELECT + 77 - + CAST ( NULL AS INTEGER ) + 30
----
NULL

query I rowsort
SELECT ALL 99 * - 73 - 66
----
-7293

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9754
SELECT + 28 * + COUNT( * ) DIV CAST( COALESCE ( - + 80, - 3 ) AS SIGNED ) + - 29 * CAST( 81 AS SIGNED ) AS col2
----
-2349

skipif mysql # not compatible
query I rowsort label-9754
SELECT + 28 * + COUNT ( * ) / CAST ( COALESCE ( - + 80, - 3 ) AS INTEGER ) + - 29 * CAST ( 81 AS INTEGER ) AS col2
----
-2349

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9755
SELECT - CAST( NULL AS SIGNED ) * + 40, + ( + - ( - 28 ) ) AS col2
----
NULL
28

skipif mysql # not compatible
query II rowsort label-9755
SELECT - CAST ( NULL AS INTEGER ) * + 40, + ( + - ( - 28 ) ) AS col2
----
NULL
28

query I rowsort
SELECT + ( + 26 ) + 4
----
30

query I rowsort
SELECT + + 2 - 91 AS col2
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9758
SELECT DISTINCT 14 * + - 6 col1, + CAST( NULL AS SIGNED ) * COUNT( * ) AS col1
----
-84
NULL

skipif mysql # not compatible
query II rowsort label-9758
SELECT DISTINCT 14 * + - 6 col1, + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1
----
-84
NULL

query I rowsort
SELECT + + ( + - 89 ) + - 29 + 68 AS col2
----
-50

query I rowsort
SELECT ALL + 53 + + 26 - 27 AS col1
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-9761
SELECT ALL 63 * 51 DIV 99 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-9761
SELECT ALL 63 * 51 / 99 AS col0
----
32

query I rowsort
SELECT ALL - - 49 + - - 81 AS col0
----
130

query I rowsort
SELECT - NULLIF ( - 15, + - 74 + + 77 )
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-9764
SELECT + 61 DIV + ( 64 ) * - + 74
----
0

skipif mysql # not compatible
query I rowsort label-9764
SELECT + 61 / + ( 64 ) * - + 74
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT ALL ( + NULLIF ( - + ( - 45 ), - 5 ) ) + + - MAX( + - 5 )
----
50

skipif mysql # not compatible
query I rowsort label-9765
SELECT ALL ( + NULLIF ( - + ( - 45 ), - 5 ) ) + + - MAX ( + - 5 )
----
50

query I rowsort
SELECT ALL 49 + + - 46
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9767
SELECT DISTINCT ( COUNT( * ) ) DIV + - 14 - + 43 * - 12
----
516

skipif mysql # not compatible
query I rowsort label-9767
SELECT DISTINCT ( COUNT ( * ) ) / + - 14 - + 43 * - 12
----
516

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT ALL CASE 44 WHEN - - 61 THEN + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9768
SELECT ALL CASE 44 WHEN - - 61 THEN + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT ALL ( - + 12 ) + - COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-9769
SELECT ALL ( - + 12 ) + - COUNT ( * )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT ALL 13 + COUNT( * ) + 28 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-9770
SELECT ALL 13 + COUNT ( * ) + 28 AS col0
----
42

query I rowsort
SELECT ALL - 92 + 50 AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT ALL + 37 + + COUNT( * ) * - COUNT( * ) + 15
----
51

skipif mysql # not compatible
query I rowsort label-9772
SELECT ALL + 37 + + COUNT ( * ) * - COUNT ( * ) + 15
----
51

query I rowsort
SELECT - ( - 61 ) + + 78
----
139

query I rowsort
SELECT ALL - 1 * - 35 AS col1
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9775
SELECT - CAST( NULL AS SIGNED ) AS col0, + 91 * - 17 AS col1
----
NULL
-1547

skipif mysql # not compatible
query II rowsort label-9775
SELECT - CAST ( NULL AS INTEGER ) AS col0, + 91 * - 17 AS col1
----
NULL
-1547

onlyif mysql # DIV for integer division: 
query II rowsort label-9776
SELECT 20, + 96 * - 0 DIV - 18 * + 4 + 10 AS col1
----
20
10

skipif mysql # not compatible
query II rowsort label-9776
SELECT 20, + 96 * - 0 / - 18 * + 4 + 10 AS col1
----
20
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT ALL - 92 - - - 47 * + NULLIF ( - - MIN( - COALESCE ( + 52, - - 77 ) ), + + 11 )
----
2352

skipif mysql # not compatible
query I rowsort label-9777
SELECT ALL - 92 - - - 47 * + NULLIF ( - - MIN ( - COALESCE ( + 52, - - 77 ) ), + + 11 )
----
2352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9778
SELECT - CAST( + 84 AS SIGNED ) col2
----
-84

skipif mysql # not compatible
query I rowsort label-9778
SELECT - CAST ( + 84 AS INTEGER ) col2
----
-84

query I rowsort
SELECT ALL + ( - - 5 ) AS col2
----
5

query I rowsort
SELECT - NULLIF ( + 79, - + 76 ) * + 66
----
-5214

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT - MAX( DISTINCT + 41 ) + - 31 col2
----
-72

skipif mysql # not compatible
query I rowsort label-9781
SELECT - MAX ( DISTINCT + 41 ) + - 31 col2
----
-72

query I rowsort
SELECT - ( - 66 ) * - 92 - - 5 - - 34 AS col2
----
-6033

query I rowsort
SELECT - 34 + 16 * + 25 AS col2
----
366

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9784
SELECT ALL + CAST( - 95 AS SIGNED ) DIV + 46 - 69
----
-71

skipif mysql # not compatible
query I rowsort label-9784
SELECT ALL + CAST ( - 95 AS INTEGER ) / + 46 - 69
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9785
SELECT - + 64 * + + CASE - - 10 WHEN - - 74 THEN - + ( + 10 ) * - 21 + + + CAST( NULL AS SIGNED ) ELSE NULL END * + ( + COUNT( * ) ) + + + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-9785
SELECT - + 64 * + + CASE - - 10 WHEN - - 74 THEN - + ( + 10 ) * - 21 + + + CAST ( NULL AS INTEGER ) ELSE NULL END * + ( + COUNT ( * ) ) + + + 14
----
NULL

query I rowsort
SELECT + - 83 * - 4 + + ( + 20 ) + + - 43 + - + 35 + - 21
----
253

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT + - MIN( DISTINCT + + 76 ) col1
----
-76

skipif mysql # not compatible
query I rowsort label-9787
SELECT + - MIN ( DISTINCT + + 76 ) col1
----
-76

query II rowsort
SELECT ALL + 38, + 17 AS col1
----
38
17

onlyif mysql # DIV for integer division: 
query I rowsort label-9789
SELECT - + 14 DIV 50 * - + 83 col0
----
0

skipif mysql # not compatible
query I rowsort label-9789
SELECT - + 14 / 50 * - + 83 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9790
SELECT ALL + + 97 DIV + - COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-9790
SELECT ALL + + 97 / + - COUNT ( * )
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9791
SELECT - 75 + + 62 DIV 91 * + COALESCE ( COUNT( * ), - - 47 - + - CASE - COUNT( * ) WHEN + NULLIF ( + COALESCE ( - COUNT( DISTINCT - 89 ), - + 8, - 29 + 2 ), - - CAST( NULL AS SIGNED ) + - MAX( 7 ) ) + - 45 + 39 - + 47 * - COUNT( * ) * + 82 THEN 22 ELSE ( - 43 ) END + - MAX( 6 ) ) DIV 23
----
-75

skipif mysql # not compatible
query I rowsort label-9791
SELECT - 75 + + 62 / 91 * + COALESCE ( COUNT ( * ), - - 47 - + - CASE - COUNT ( * ) WHEN + NULLIF ( + COALESCE ( - COUNT ( DISTINCT - 89 ), - + 8, - 29 + 2 ), - - CAST ( NULL AS INTEGER ) + - MAX ( 7 ) ) + - 45 + 39 - + 47 * - COUNT ( * ) * + 82 THEN 22 ELSE ( - 43 ) END + - MAX ( 6 ) ) / 23
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT ALL + 92 / - ( - NULLIF ( CASE + ( - 9 ) WHEN - 74 THEN NULL WHEN - + CASE AVG ( + 57 ) WHEN 87 THEN NULL WHEN 37 - + 29 + + 99 + - + 60 / 53 THEN + 75 + - - 74 END THEN COUNT( * ) - + - 10 END, - 82 ) ) * 15
----
NULL

skipif mysql # not compatible
query I rowsort label-9792
SELECT ALL + 92 / - ( - NULLIF ( CASE + ( - 9 ) WHEN - 74 THEN NULL WHEN - + CASE AVG ( + 57 ) WHEN 87 THEN NULL WHEN 37 - + 29 + + 99 + - + 60 / 53 THEN + 75 + - - 74 END THEN COUNT ( * ) - + - 10 END, - 82 ) ) * 15
----
NULL

query I rowsort
SELECT + 88 + + + 44
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-9794
SELECT + 2 DIV - 71 * - + ( 97 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9794
SELECT + 2 / - 71 * - + ( 97 ) AS col0
----
0

query I rowsort
SELECT DISTINCT 3 + + COALESCE ( - - ( 17 ), 36 ) AS col2
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9796
SELECT ALL 8 + + ( - - COUNT( * ) ) DIV + MAX( + - 77 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-9796
SELECT ALL 8 + + ( - - COUNT ( * ) ) / + MAX ( + - 77 ) AS col2
----
8

query I rowsort
SELECT DISTINCT - ( - 26 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT ALL - 7 + COUNT( * ) + 49 - - + 73 + - 96 + + 71 - - 9 * - 26 * - 93 * + COUNT( * ) * - 33 * - - 70
----
-50270129

skipif mysql # not compatible
query I rowsort label-9798
SELECT ALL - 7 + COUNT ( * ) + 49 - - + 73 + - 96 + + 71 - - 9 * - 26 * - 93 * + COUNT ( * ) * - 33 * - - 70
----
-50270129

query II rowsort
SELECT 73, + 9 AS col0
----
73
9

query I rowsort
SELECT ALL NULLIF ( 69, - 47 ) + 25 + - + 91
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9801
SELECT COUNT( * ) - + + COUNT( 50 ) * 79 / - + COUNT( * ) + COALESCE ( 39, COUNT( + - 54 ) + 93 * + 71, + AVG ( + 19 ) ) + 78 * + CAST( + 78 AS SIGNED ) * + + 34 * + ( + CAST( NULL AS SIGNED ) ) / - 62 * - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-9801
SELECT COUNT ( * ) - + + COUNT ( 50 ) * 79 / - + COUNT ( * ) + COALESCE ( 39, COUNT ( + - 54 ) + 93 * + 71, + AVG ( + 19 ) ) + 78 * + CAST ( + 78 AS INTEGER ) * + + 34 * + ( + CAST ( NULL AS INTEGER ) ) / - 62 * - 51
----
NULL

query II rowsort
SELECT 81 AS col0, 5 * 39
----
81
195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9803
SELECT ALL ( - NULLIF ( ( - - CASE 48 WHEN COALESCE ( + - 43, - + COALESCE ( 70, + + 44 ) - 71, COUNT( * ) ) + 42 * + 24 THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN + COUNT( * ) ELSE + + 62 END ), + 45 ) ) DIV - 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9803
SELECT ALL ( - NULLIF ( ( - - CASE 48 WHEN COALESCE ( + - 43, - + COALESCE ( 70, + + 44 ) - 71, COUNT ( * ) ) + 42 * + 24 THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) ELSE + + 62 END ), + 45 ) ) / - 63 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9804
SELECT 37 - + 50 AS col2, - NULLIF ( - + 66, + 55 ) + 87 - COUNT( + 81 )
----
-13
152

skipif mysql # not compatible
query II rowsort label-9804
SELECT 37 - + 50 AS col2, - NULLIF ( - + 66, + 55 ) + 87 - COUNT ( + 81 )
----
-13
152

onlyif mysql # DIV for integer division: 
query I rowsort label-9805
SELECT NULLIF ( - - 74, - ( - + 2 ) ) DIV 22
----
3

skipif mysql # not compatible
query I rowsort label-9805
SELECT NULLIF ( - - 74, - ( - + 2 ) ) / 22
----
3

query I rowsort
SELECT ALL + 5 + - 29 + + 91 * - + 86 * - 26 AS col0
----
203452

query II rowsort
SELECT DISTINCT 22 AS col1, - 98 AS col2
----
22
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9808
SELECT DISTINCT 36 * - - CASE + CAST( NULL AS SIGNED ) WHEN 63 THEN 62 * 87 WHEN + MAX( ALL 46 ) THEN - + MIN( ALL - 45 ) + + - 47 + + 60 - - + 9 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9808
SELECT DISTINCT 36 * - - CASE + CAST ( NULL AS INTEGER ) WHEN 63 THEN 62 * 87 WHEN + MAX ( ALL 46 ) THEN - + MIN ( ALL - 45 ) + + - 47 + + 60 - - + 9 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9809
SELECT ALL 95 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9809
SELECT ALL 95 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT 78, 76 AS col2
----
78
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9811
SELECT DISTINCT 65 * - - COUNT( * ) AS col1, CASE + 55 WHEN - + 58 / - 18 + + 65 THEN COUNT( * ) * - 41 * - + COALESCE ( + 72, - + COALESCE ( + + CAST( 26 AS SIGNED ), + + 7 * - 75 * - - 82 + COUNT( ALL + - 37 ) * - 61 ) + COUNT( ALL + 36 ) + - 42 * 66 ) + 13 * COUNT( * ) END AS col0
----
65
NULL

skipif mysql # not compatible
query II rowsort label-9811
SELECT DISTINCT 65 * - - COUNT ( * ) AS col1, CASE + 55 WHEN - + 58 / - 18 + + 65 THEN COUNT ( * ) * - 41 * - + COALESCE ( + 72, - + COALESCE ( + + CAST ( 26 AS INTEGER ), + + 7 * - 75 * - - 82 + COUNT ( ALL + - 37 ) * - 61 ) + COUNT ( ALL + 36 ) + - 42 * 66 ) + 13 * COUNT ( * ) END AS col0
----
65
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9812
SELECT ( + CASE + 9 WHEN - MIN( DISTINCT - 4 ) * - 21 + - + 66 * - 66 + - 59 + 37 - - 78 THEN - 2 WHEN + ( 93 ) + + - 81 * 55 / - - 84 THEN NULL END ) - - - ( + COUNT( * ) ) AS col1, 81 * + - 83
----
NULL
-6723

skipif mysql # not compatible
query II rowsort label-9812
SELECT ( + CASE + 9 WHEN - MIN ( DISTINCT - 4 ) * - 21 + - + 66 * - 66 + - 59 + 37 - - 78 THEN - 2 WHEN + ( 93 ) + + - 81 * 55 / - - 84 THEN NULL END ) - - - ( + COUNT ( * ) ) AS col1, 81 * + - 83
----
NULL
-6723

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT COALESCE ( + COUNT( * ), 70 * - COUNT( * ) ) * - 62
----
-62

skipif mysql # not compatible
query I rowsort label-9813
SELECT COALESCE ( + COUNT ( * ), 70 * - COUNT ( * ) ) * - 62
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT MIN( 54 ) * + 16 + + + 29 * COUNT( ALL - 53 ) * + 46
----
2198

skipif mysql # not compatible
query I rowsort label-9814
SELECT MIN ( 54 ) * + 16 + + + 29 * COUNT ( ALL - 53 ) * + 46
----
2198

query I rowsort
SELECT ALL 59 - + 10 col0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9816
SELECT ALL 35 - + - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9816
SELECT ALL 35 - + - ( CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT 97 * + 47 AS col2, + 39 AS col1
----
4559
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9818
SELECT ALL MAX( ALL 70 ) DIV COALESCE ( + 62, + - 25 DIV + 55 )
----
1

skipif mysql # not compatible
query I rowsort label-9818
SELECT ALL MAX ( ALL 70 ) / COALESCE ( + 62, + - 25 / + 55 )
----
1

query II rowsort
SELECT - 50 AS col0, 7
----
-50
7

query II rowsort
SELECT DISTINCT 54, 84 * + ( 9 ) + + 59 * + + 56 AS col0
----
54
4060

query I rowsort
SELECT ALL + - 62 * - 18
----
1116

query II rowsort
SELECT 63 * 29, 41 AS col1
----
1827
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9823
SELECT 43 / + + 64 * + 36 + 59 + - - 97 + - 16 + - 6 + + + 73 + + - CAST( NULL AS SIGNED ) * NULLIF ( + 42, - CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9823
SELECT 43 / + + 64 * + 36 + 59 + - - 97 + - 16 + - 6 + + + 73 + + - CAST ( NULL AS INTEGER ) * NULLIF ( + 42, - CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT + COUNT( ALL - ( 69 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9824
SELECT + COUNT ( ALL - ( 69 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT + - COALESCE ( SUM( + 77 ), + - 99, + SUM( ALL + 92 ), 53 + 36 ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-9825
SELECT + - COALESCE ( SUM ( + 77 ), + - 99, + SUM ( ALL + 92 ), 53 + 36 ) AS col1
----
-77

query I rowsort
SELECT ALL - + ( 29 ) AS col2
----
-29

query I rowsort
SELECT + 73 * + 95
----
6935

query II rowsort
SELECT + + 17 AS col1, 83 * + 40 + + 9 AS col2
----
17
3329

query I rowsort
SELECT DISTINCT + + 20 * + 63
----
1260

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT ALL - + MIN( ALL 21 ) + + + 4 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-9830
SELECT ALL - + MIN ( ALL 21 ) + + + 4 AS col2
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9831
SELECT - 49 * + + CAST( - 15 AS SIGNED ) + + 3 * - ( 54 ) * - + 68 * - 81 * - 17 + + - 74 col0
----
15169693

skipif mysql # not compatible
query I rowsort label-9831
SELECT - 49 * + + CAST ( - 15 AS INTEGER ) + + 3 * - ( 54 ) * - + 68 * - 81 * - 17 + + - 74 col0
----
15169693

query I rowsort
SELECT ALL + + ( 26 ) + 44 AS col0
----
70

query I rowsort
SELECT 42 - 96 + 74 * 48
----
3498

onlyif mysql # aggregate syntax: 
query II rowsort label-9834
SELECT ALL - + COUNT( * ) AS col1, ( - + 19 )
----
-1
-19

skipif mysql # not compatible
query II rowsort label-9834
SELECT ALL - + COUNT ( * ) AS col1, ( - + 19 )
----
-1
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT DISTINCT - - COUNT( * ) + + 11
----
12

skipif mysql # not compatible
query I rowsort label-9835
SELECT DISTINCT - - COUNT ( * ) + + 11
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT SUM( ALL + 33 ) * - 15 + 80
----
-415

skipif mysql # not compatible
query I rowsort label-9836
SELECT SUM ( ALL + 33 ) * - 15 + 80
----
-415

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT ALL - COALESCE ( + - 49, COUNT( ALL + 59 ), 79 ) + 96 AS col2
----
145

skipif mysql # not compatible
query I rowsort label-9837
SELECT ALL - COALESCE ( + - 49, COUNT ( ALL + 59 ), 79 ) + 96 AS col2
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT + + ( COUNT( * ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9838
SELECT + + ( COUNT ( * ) ) col1
----
1

query II rowsort
SELECT + 81 AS col2, 39 AS col1
----
81
39

query I rowsort
SELECT 68 + + 4
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-9841
SELECT ALL + 9 * - - 86 DIV + 84 col2
----
9

skipif mysql # not compatible
query I rowsort label-9841
SELECT ALL + 9 * - - 86 / + 84 col2
----
9

query I rowsort
SELECT 37 + + - 1
----
36

query I rowsort
SELECT ALL + 37 + - 19 + + - 33
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9844
SELECT 10 * - 26 + + + 25 * + CASE - ( - 28 ) WHEN - CAST( - + COUNT( * ) AS DECIMAL ) THEN + ( 56 ) + 29 - + - CAST( - MIN( ALL 76 ) AS SIGNED ) END + - MAX( ALL + 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9844
SELECT 10 * - 26 + + + 25 * + CASE - ( - 28 ) WHEN - CAST ( - + COUNT ( * ) AS REAL ) THEN + ( 56 ) + 29 - + - CAST ( - MIN ( ALL 76 ) AS INTEGER ) END + - MAX ( ALL + 44 )
----
NULL

query I rowsort
SELECT ALL 19 + 86 AS col0
----
105

query I rowsort
SELECT ALL + 1 * + 31
----
31

query II rowsort
SELECT DISTINCT + 92 - - 85, - 67 - + 65 * 34 * + + 0 col0
----
177
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9848
SELECT ALL + 74 - + 67 - 29 DIV + COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-9848
SELECT ALL + 74 - + 67 - 29 / + COUNT ( * )
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-9849
SELECT 52 * - + MAX( - 42 ), 40 + ( 81 ) AS col1
----
2184
121

skipif mysql # not compatible
query II rowsort label-9849
SELECT 52 * - + MAX ( - 42 ), 40 + ( 81 ) AS col1
----
2184
121

query II rowsort
SELECT 91 + - 57 col2, 89 AS col1
----
34
89

query I rowsort
SELECT 68 + + + 20 + 84 * - NULLIF ( + 49, 55 ) AS col0
----
-4028

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT DISTINCT NULLIF ( - - NULLIF ( + COUNT( * ), - ( + + 27 ) ), 37 - + 29 * + 62 ) * + 76 + NULLIF ( - COUNT( * ), - COUNT( * ) * + 96 - - 10 )
----
75

skipif mysql # not compatible
query I rowsort label-9852
SELECT DISTINCT NULLIF ( - - NULLIF ( + COUNT ( * ), - ( + + 27 ) ), 37 - + 29 * + 62 ) * + 76 + NULLIF ( - COUNT ( * ), - COUNT ( * ) * + 96 - - 10 )
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9853
SELECT DISTINCT + 57 DIV + - 63 * 19 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9853
SELECT DISTINCT + 57 / + - 63 * 19 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9854
SELECT 97 DIV + 51
----
1

skipif mysql # not compatible
query I rowsort label-9854
SELECT 97 / + 51
----
1

query II rowsort
SELECT DISTINCT + 25 * - ( + 66 ) AS col1, - 46 AS col1
----
-1650
-46

query II rowsort
SELECT 8 + + 29 AS col0, ( 44 ) - - + 11
----
37
55

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9857
SELECT CAST( 12 AS SIGNED ) DIV + - ( 10 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9857
SELECT CAST ( 12 AS INTEGER ) / + - ( 10 ) AS col1
----
-1

query I rowsort
SELECT ALL - 89 * 97 + - 0 + - 63 AS col1
----
-8696

query I rowsort
SELECT DISTINCT + 53 * 54 + ( 83 ) AS col1
----
2945

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT ALL - - 79 * - - 46 * - - MAX( DISTINCT - - 86 ) + - COUNT( * ) AS col1
----
312523

skipif mysql # not compatible
query I rowsort label-9860
SELECT ALL - - 79 * - - 46 * - - MAX ( DISTINCT - - 86 ) + - COUNT ( * ) AS col1
----
312523

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9861
SELECT - 9 * 18 * - + 61 * + 62 + + - 72 + + 57 * + COUNT( * ) DIV COUNT( * ) AS col2, 68 DIV - 91
----
612669
0

skipif mysql # not compatible
query II rowsort label-9861
SELECT - 9 * 18 * - + 61 * + 62 + + - 72 + + 57 * + COUNT ( * ) / COUNT ( * ) AS col2, 68 / - 91
----
612669
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9862
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 2 - + - 81 + + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-9862
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 2 - + - 81 + + 21
----
NULL

query I rowsort
SELECT ALL COALESCE ( + 9, - 1 - - 31 ) * + 60 + 67 AS col2
----
607

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9864
SELECT ALL + 81 * - + CAST( MIN( ALL + 77 ) AS SIGNED ) * - 55 + + 63 + - - 54 * - 27 * - 94
----
480150

skipif mysql # not compatible
query I rowsort label-9864
SELECT ALL + 81 * - + CAST ( MIN ( ALL + 77 ) AS INTEGER ) * - 55 + + 63 + - - 54 * - 27 * - 94
----
480150

query II rowsort
SELECT + + ( - 72 ) AS col2, + ( + 44 )
----
-72
44

query I rowsort
SELECT ALL + 73 * - ( + 84 ) + - 94 col1
----
-6226

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT + 12 * - - COUNT( * ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-9867
SELECT + 12 * - - COUNT ( * ) AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT DISTINCT 52 * - COALESCE ( + 64, - ( - CASE + - ( ( COALESCE ( 38, - 12 ) ) ) WHEN - + 42 * - + ( - 21 ) - - 55 - - + 88 THEN - 74 + 97 END ) + - COUNT( * ) * + 2 )
----
-3328

skipif mysql # not compatible
query I rowsort label-9868
SELECT DISTINCT 52 * - COALESCE ( + 64, - ( - CASE + - ( ( COALESCE ( 38, - 12 ) ) ) WHEN - + 42 * - + ( - 21 ) - - 55 - - + 88 THEN - 74 + 97 END ) + - COUNT ( * ) * + 2 )
----
-3328

onlyif mysql # aggregate syntax: 
query II rowsort label-9869
SELECT ALL + - MAX( DISTINCT + 42 ) AS col2, 12 + - - 0 * + COUNT( * ) * - - CASE 62 WHEN - + 84 THEN - - 44 END
----
-42
NULL

skipif mysql # not compatible
query II rowsort label-9869
SELECT ALL + - MAX ( DISTINCT + 42 ) AS col2, 12 + - - 0 * + COUNT ( * ) * - - CASE 62 WHEN - + 84 THEN - - 44 END
----
-42
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9870
SELECT + 39 DIV 68
----
0

skipif mysql # not compatible
query I rowsort label-9870
SELECT + 39 / 68
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT ALL - 44 * COUNT( * ) * + 7 + + + 33 - 75 - - - 38 AS col1
----
-388

skipif mysql # not compatible
query I rowsort label-9871
SELECT ALL - 44 * COUNT ( * ) * + 7 + + + 33 - 75 - - - 38 AS col1
----
-388

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT ALL 56 * - SUM( DISTINCT - 16 ) - - 61
----
957

skipif mysql # not compatible
query I rowsort label-9872
SELECT ALL 56 * - SUM ( DISTINCT - 16 ) - - 61
----
957

onlyif mysql # aggregate syntax: 
query II rowsort label-9873
SELECT COUNT( * ) AS col2, 30
----
1
30

skipif mysql # not compatible
query II rowsort label-9873
SELECT COUNT ( * ) AS col2, 30
----
1
30

query I rowsort
SELECT - 1 * - 23 AS col1
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-9875
SELECT DISTINCT - 33 DIV + 51
----
0

skipif mysql # not compatible
query I rowsort label-9875
SELECT DISTINCT - 33 / + 51
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9876
SELECT + 72 + - 76 + 79 * + CAST( NULL AS SIGNED ) * NULLIF ( 51, - COUNT( * ) * - - 26 ) * + 57 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9876
SELECT + 72 + - 76 + 79 * + CAST ( NULL AS INTEGER ) * NULLIF ( 51, - COUNT ( * ) * - - 26 ) * + 57 * + COUNT ( * )
----
NULL

query II rowsort
SELECT + 69 AS col2, + 33
----
69
33

onlyif mysql # aggregate syntax: 
query II rowsort label-9878
SELECT ALL + COUNT( * ) AS col0, - 34
----
1
-34

skipif mysql # not compatible
query II rowsort label-9878
SELECT ALL + COUNT ( * ) AS col0, - 34
----
1
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT SUM( - 70 ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-9879
SELECT SUM ( - 70 ) AS col1
----
-70

query I rowsort
SELECT - ( - 15 ) col1
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-9881
SELECT COUNT( * ), 15 + 62 * + - 74 AS col0
----
1
-4573

skipif mysql # not compatible
query II rowsort label-9881
SELECT COUNT ( * ), 15 + 62 * + - 74 AS col0
----
1
-4573

query I rowsort
SELECT - 71 * - 33 AS col1
----
2343

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9883
SELECT DISTINCT - 33 * - 97 * + + 10 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9883
SELECT DISTINCT - 33 * - 97 * + + 10 * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - NULLIF ( + + 70, + 37 * - 32 / - + 5 * - 33 + 91 ) - 50 * - 9
----
380

query I rowsort
SELECT ALL - 16 * 21 * - 64
----
21504

query I rowsort
SELECT - 18 - + ( + - 0 ) AS col1
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9887
SELECT ALL - 43 DIV - COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-9887
SELECT ALL - 43 / - COUNT ( * )
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9888
SELECT - COUNT( * ) DIV + 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9888
SELECT - COUNT ( * ) / + 76 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9889
SELECT - CAST( NULL AS SIGNED ) * + + ( - 39 ) * + COUNT( * ) * - - 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9889
SELECT - CAST ( NULL AS INTEGER ) * + + ( - 39 ) * + COUNT ( * ) * - - 83 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT ALL + 71 * + SUM( - - 54 )
----
3834

skipif mysql # not compatible
query I rowsort label-9890
SELECT ALL + 71 * + SUM ( - - 54 )
----
3834

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9891
SELECT ALL NULLIF ( + - COUNT( * ), + - 41 ) AS col1, + 57 + + - 75 DIV 14 - MIN( + 38 ) + - 68 * - - 72 - + - 38 * 15 + + 16 AS col1
----
-1
-4296

skipif mysql # not compatible
query II rowsort label-9891
SELECT ALL NULLIF ( + - COUNT ( * ), + - 41 ) AS col1, + 57 + + - 75 / 14 - MIN ( + 38 ) + - 68 * - - 72 - + - 38 * 15 + + 16 AS col1
----
-1
-4296

query I rowsort
SELECT - 58 + 8 col0
----
-50

query I rowsort
SELECT - 64 - - 2 * - 18
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT - 76 * + COUNT( * ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-9894
SELECT - 76 * + COUNT ( * ) AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT + 81 * - - COUNT( * ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-9895
SELECT + 81 * - - COUNT ( * ) AS col2
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9896
SELECT DISTINCT 29 AS col0, + 10 + + - CAST( NULL AS SIGNED ) AS col2
----
29
NULL

skipif mysql # not compatible
query II rowsort label-9896
SELECT DISTINCT 29 AS col0, + 10 + + - CAST ( NULL AS INTEGER ) AS col2
----
29
NULL

query I rowsort
SELECT ALL + 5 + + 4
----
9

query II rowsort
SELECT 28 AS col1, + 94 - + + 83 AS col1
----
28
11

query I rowsort
SELECT ALL 24 + 10 AS col1
----
34

query I rowsort
SELECT - 99 + - 74
----
-173

query I rowsort
SELECT ALL + 80 * + 71
----
5680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9902
SELECT - + CAST( NULL AS SIGNED ) / - - 13 + + + CASE COUNT( * ) WHEN - 29 * 55 THEN + 93 ELSE MIN( - + 6 ) END + + COALESCE ( - COUNT( * ), 76, - - 3, + 60 ) * - 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9902
SELECT - + CAST ( NULL AS INTEGER ) / - - 13 + + + CASE COUNT ( * ) WHEN - 29 * 55 THEN + 93 ELSE MIN ( - + 6 ) END + + COALESCE ( - COUNT ( * ), 76, - - 3, + 60 ) * - 89 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT ( + + COALESCE ( + - COUNT( * ), + + 23, + 13 * + 5 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9903
SELECT ( + + COALESCE ( + - COUNT ( * ), + + 23, + 13 * + 5 ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9904
SELECT ALL + ( - 56 ) DIV - 69 + + + ( + - COALESCE ( - 2, + 76 * + 88, + 94 ) ) * + + 19 + + COUNT( * ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-9904
SELECT ALL + ( - 56 ) / - 69 + + + ( + - COALESCE ( - 2, + 76 * + 88, + 94 ) ) * + + 19 + + COUNT ( * ) AS col0
----
39

query I rowsort
SELECT ALL - 20 * - 91 AS col2
----
1820

onlyif mysql # aggregate syntax: 
query II rowsort label-9906
SELECT + - 72 AS col2, ( + COUNT( * ) ) + + + CASE - MAX( DISTINCT - 58 ) WHEN COUNT( * ) * + NULLIF ( - NULLIF ( ( 48 ), - - 83 * 82 / - 39 ), + + COUNT( * ) + + - COUNT( * ) ) * - 68 THEN - 90 * - - 36 * 7 WHEN - 95 THEN NULL WHEN + ( + 78 ) * + 89 + 81 THEN 11 * 90 + + COUNT( * ) END + 23
----
-72
NULL

skipif mysql # not compatible
query II rowsort label-9906
SELECT + - 72 AS col2, ( + COUNT ( * ) ) + + + CASE - MAX ( DISTINCT - 58 ) WHEN COUNT ( * ) * + NULLIF ( - NULLIF ( ( 48 ), - - 83 * 82 / - 39 ), + + COUNT ( * ) + + - COUNT ( * ) ) * - 68 THEN - 90 * - - 36 * 7 WHEN - 95 THEN NULL WHEN + ( + 78 ) * + 89 + 81 THEN 11 * 90 + + COUNT ( * ) END + 23
----
-72
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT - COUNT( DISTINCT 15 ) - 0 * - + 8
----
-1

skipif mysql # not compatible
query I rowsort label-9907
SELECT - COUNT ( DISTINCT 15 ) - 0 * - + 8
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9908
SELECT + 10 + + + CAST( 2 AS SIGNED ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-9908
SELECT + 10 + + + CAST ( 2 AS INTEGER ) AS col0
----
12

query II rowsort
SELECT + - 48 AS col2, - 77 AS col0
----
-48
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-9910
SELECT ALL 54 DIV - 44
----
-1

skipif mysql # not compatible
query I rowsort label-9910
SELECT ALL 54 / - 44
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9911
SELECT + 2 * + ( + + 66 ) - + ( + 1 ) DIV - - 28 + 53 + + 31 * + - COUNT( * ) * - 98 AS col2
----
3223

skipif mysql # not compatible
query I rowsort label-9911
SELECT + 2 * + ( + + 66 ) - + ( + 1 ) / - - 28 + 53 + + 31 * + - COUNT ( * ) * - 98 AS col2
----
3223

onlyif mysql # DIV for integer division: 
query I rowsort label-9912
SELECT ALL + 37 DIV - + 37
----
-1

skipif mysql # not compatible
query I rowsort label-9912
SELECT ALL + 37 / - + 37
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT ALL + ( COUNT( * ) ) * COUNT( * ) * 68 - - - 94 + - 9
----
-35

skipif mysql # not compatible
query I rowsort label-9913
SELECT ALL + ( COUNT ( * ) ) * COUNT ( * ) * 68 - - - 94 + - 9
----
-35

query I rowsort
SELECT + - 57 * + 31 * - 88 * - - 25 + + + CASE WHEN 85 IS NULL THEN NULL ELSE + 33 END * 43 col1
----
3888819

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9915
SELECT ( + CAST( COUNT( * ) AS SIGNED ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9915
SELECT ( + CAST ( COUNT ( * ) AS INTEGER ) ) AS col1
----
1

query II rowsort
SELECT 47 * - 37 + + - 95 * + - 52 col2, - 91
----
3201
-91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9917
SELECT + 14 * 52 + - 83 + 19 + + 19 * - + CAST( NULL AS DECIMAL ) * + - COUNT( * ) - 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9917
SELECT + 14 * 52 + - 83 + 19 + + 19 * - + CAST ( NULL AS REAL ) * + - COUNT ( * ) - 70 AS col2
----
NULL

query I rowsort
SELECT NULLIF ( 71, + + 53 ) AS col0
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9919
SELECT + NULLIF ( 48, COUNT( * ) ) + - 93 + COALESCE ( - - 58, 42 DIV + 43 + + 89 ) + 19
----
32

skipif mysql # not compatible
query I rowsort label-9919
SELECT + NULLIF ( 48, COUNT ( * ) ) + - 93 + COALESCE ( - - 58, 42 / + 43 + + 89 ) + 19
----
32

query I rowsort
SELECT ALL + NULLIF ( - 85, 76 ) AS col0
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9921
SELECT CAST( + 76 AS SIGNED ) * + NULLIF ( - + 12, - 4 + 15 / - - 95 ) - + - COALESCE ( - 51, + 41 ) + - SUM( - 65 ) + + COUNT( ALL + ( + 83 ) ) * - SUM( DISTINCT 86 ) * + + CAST( - COUNT( * ) AS SIGNED ) AS col1
----
-812

skipif mysql # not compatible
query I rowsort label-9921
SELECT CAST ( + 76 AS INTEGER ) * + NULLIF ( - + 12, - 4 + 15 / - - 95 ) - + - COALESCE ( - 51, + 41 ) + - SUM ( - 65 ) + + COUNT ( ALL + ( + 83 ) ) * - SUM ( DISTINCT 86 ) * + + CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
-812

query I rowsort
SELECT ALL ( + 78 ) AS col1
----
78

query II rowsort
SELECT DISTINCT ( - 29 ) AS col0, - 66 AS col1
----
-29
-66

query I rowsort
SELECT DISTINCT - 29 * + 67 + 38 col2
----
-1905

query I rowsort
SELECT + ( - 49 ) + - + 53
----
-102

query I rowsort
SELECT - 64 + ( 24 )
----
-40

query I rowsort
SELECT - 40 + + + 69
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9928
SELECT DISTINCT + 94 DIV + COUNT( * ) DIV 1 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-9928
SELECT DISTINCT + 94 / + COUNT ( * ) / 1 AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT - SUM( DISTINCT 35 ) * - 63 + + COUNT( * ) * + 98 col1
----
2303

skipif mysql # not compatible
query I rowsort label-9929
SELECT - SUM ( DISTINCT 35 ) * - 63 + + COUNT ( * ) * + 98 col1
----
2303

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9930
SELECT - + 53 + 81, - CAST( NULL AS SIGNED ) * - + COUNT( * ) + 22 AS col1
----
28
NULL

skipif mysql # not compatible
query II rowsort label-9930
SELECT - + 53 + 81, - CAST ( NULL AS INTEGER ) * - + COUNT ( * ) + 22 AS col1
----
28
NULL

query I rowsort
SELECT DISTINCT + - 13 + COALESCE ( + 52, 87 * - 33 * - - 63 )
----
39

onlyif mysql # aggregate syntax: 
query III rowsort label-9932
SELECT ALL - 84 * + - ( + MAX( + 33 ) ) AS col0, - 13 AS col1, 31
----
2772
-13
31

skipif mysql # not compatible
query III rowsort label-9932
SELECT ALL - 84 * + - ( + MAX ( + 33 ) ) AS col0, - 13 AS col1, 31
----
2772
-13
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT + 92 + - 45 * + COUNT( DISTINCT - - 86 ) + - + 42
----
5

skipif mysql # not compatible
query I rowsort label-9933
SELECT + 92 + - 45 * + COUNT ( DISTINCT - - 86 ) + - + 42
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT - - ( ( COUNT( * ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9934
SELECT - - ( ( COUNT ( * ) ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT ALL + - COUNT( * ) + + - 98
----
-99

skipif mysql # not compatible
query I rowsort label-9935
SELECT ALL + - COUNT ( * ) + + - 98
----
-99

query I rowsort
SELECT 94 + + 59 AS col1
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9937
SELECT DISTINCT CAST( + + 77 AS SIGNED ) AS col2, ( - 21 ) AS col0
----
77
-21

skipif mysql # not compatible
query II rowsort label-9937
SELECT DISTINCT CAST ( + + 77 AS INTEGER ) AS col2, ( - 21 ) AS col0
----
77
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT + 8 + - - 28 * + SUM( ALL + + 35 )
----
988

skipif mysql # not compatible
query I rowsort label-9938
SELECT + 8 + - - 28 * + SUM ( ALL + + 35 )
----
988

query I rowsort
SELECT ALL 47 - + 72
----
-25

query I rowsort
SELECT ALL + 8 * - - 0 * - 37
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9941
SELECT ALL - - CASE + 76 WHEN - COUNT( ALL - + 33 ) - - 47 THEN - 35 + + 35 + 93 + + 49 WHEN + + 0 THEN - + SUM( DISTINCT - 52 ) + CAST( NULL AS SIGNED ) ELSE SUM( ALL - 13 ) END AS col1, 67 AS col0
----
-13
67

skipif mysql # not compatible
query II rowsort label-9941
SELECT ALL - - CASE + 76 WHEN - COUNT ( ALL - + 33 ) - - 47 THEN - 35 + + 35 + 93 + + 49 WHEN + + 0 THEN - + SUM ( DISTINCT - 52 ) + CAST ( NULL AS INTEGER ) ELSE SUM ( ALL - 13 ) END AS col1, 67 AS col0
----
-13
67

query I rowsort
SELECT - 62 * 8 + + - 84 + + 51 AS col2
----
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT + COUNT( * ) * + - 44 * - 20 AS col1
----
880

skipif mysql # not compatible
query I rowsort label-9943
SELECT + COUNT ( * ) * + - 44 * - 20 AS col1
----
880

query II rowsort
SELECT 37 * - + 68 * + 52 AS col1, 63 col1
----
-130832
63

onlyif mysql # aggregate syntax: 
query II rowsort label-9945
SELECT 82 + + ( + 5 ), - 69 * COALESCE ( + 54, - COUNT( * ), + - 16 - 14 + - COUNT( * ) + + COUNT( * ) * + COUNT( + 10 ) + COUNT( * ) * + - COUNT( * ) ) AS col2
----
87
-3726

skipif mysql # not compatible
query II rowsort label-9945
SELECT 82 + + ( + 5 ), - 69 * COALESCE ( + 54, - COUNT ( * ), + - 16 - 14 + - COUNT ( * ) + + COUNT ( * ) * + COUNT ( + 10 ) + COUNT ( * ) * + - COUNT ( * ) ) AS col2
----
87
-3726

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9946
SELECT CASE + + MAX( ALL + COALESCE ( + 66, 3 ) ) WHEN CAST( + 70 AS SIGNED ) THEN NULL WHEN 83 THEN - 27 + - MAX( ALL + 76 ) ELSE - 86 END * + + 82 col1
----
-7052

skipif mysql # not compatible
query I rowsort label-9946
SELECT CASE + + MAX ( ALL + COALESCE ( + 66, 3 ) ) WHEN CAST ( + 70 AS INTEGER ) THEN NULL WHEN 83 THEN - 27 + - MAX ( ALL + 76 ) ELSE - 86 END * + + 82 col1
----
-7052

query I rowsort
SELECT ALL - 88 * + + 26
----
-2288

query I rowsort
SELECT 78 * ( 45 ) AS col1
----
3510

query II rowsort
SELECT DISTINCT - 55 AS col2, 26
----
-55
26

query I rowsort
SELECT 91 * + - 38
----
-3458

query I rowsort
SELECT ALL 83 + 4
----
87

query I rowsort
SELECT 68 * 63 col1
----
4284

query I rowsort
SELECT ALL 64 * + 18
----
1152

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT ALL ( - ( + 39 ) ) + COUNT( * ) * 77 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-9954
SELECT ALL ( - ( + 39 ) ) + COUNT ( * ) * 77 AS col0
----
38

query I rowsort
SELECT DISTINCT 93 * 24 AS col2
----
2232

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT DISTINCT - NULLIF ( + 83, + 78 + + - COUNT( * ) / + - COUNT( * ) )
----
-83

skipif mysql # not compatible
query I rowsort label-9956
SELECT DISTINCT - NULLIF ( + 83, + 78 + + - COUNT ( * ) / + - COUNT ( * ) )
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9957
SELECT CAST( NULL AS SIGNED ) AS col1, 98 * - COUNT( * ) + - + ( - COUNT( * ) ) - - + 45
----
NULL
-52

skipif mysql # not compatible
query II rowsort label-9957
SELECT CAST ( NULL AS INTEGER ) AS col1, 98 * - COUNT ( * ) + - + ( - COUNT ( * ) ) - - + 45
----
NULL
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT 32 * - SUM( ALL - 54 ) * ( + - 98 ) * + + COUNT( DISTINCT + - 68 )
----
-169344

skipif mysql # not compatible
query I rowsort label-9958
SELECT 32 * - SUM ( ALL - 54 ) * ( + - 98 ) * + + COUNT ( DISTINCT + - 68 )
----
-169344

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT ALL + SUM( ALL + - ( + 59 ) ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-9959
SELECT ALL + SUM ( ALL + - ( + 59 ) ) AS col1
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-9960
SELECT - 17 - - COUNT( * ) * - + 61, + ( 41 ) col0
----
-78
41

skipif mysql # not compatible
query II rowsort label-9960
SELECT - 17 - - COUNT ( * ) * - + 61, + ( 41 ) col0
----
-78
41

query I rowsort
SELECT ( - + 36 ) * 29 * 77
----
-80388

query I rowsort
SELECT + 39 * - + 12 AS col0
----
-468

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT DISTINCT NULLIF ( + COUNT( * ), + + 39 * + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9963
SELECT DISTINCT NULLIF ( + COUNT ( * ), + + 39 * + COUNT ( * ) ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9964
SELECT DISTINCT + 59 DIV - 86 col2
----
0

skipif mysql # not compatible
query I rowsort label-9964
SELECT DISTINCT + 59 / - 86 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT DISTINCT - + COUNT( * ) - + 64
----
-65

skipif mysql # not compatible
query I rowsort label-9965
SELECT DISTINCT - + COUNT ( * ) - + 64
----
-65

query I rowsort
SELECT - 6 * + 6
----
-36

query I rowsort
SELECT DISTINCT + CASE WHEN + 20 IS NOT NULL THEN 73 * - + 83 END AS col0
----
-6059

query I rowsort
SELECT 80 * + 61 AS col2
----
4880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9969
SELECT DISTINCT 49 * - CAST( - ( - COUNT( ALL 97 ) ) AS SIGNED ) + + 14
----
-35

skipif mysql # not compatible
query I rowsort label-9969
SELECT DISTINCT 49 * - CAST ( - ( - COUNT ( ALL 97 ) ) AS INTEGER ) + + 14
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-9970
SELECT ALL - 46 col2, + 32 + - + COUNT( * ) + - COUNT( * ) + - 38 * - CASE + 97 WHEN - - 61 + COUNT( * ) THEN + - 37 - 15 WHEN 25 THEN + + 33 ELSE - 94 + CASE + CAST( - CASE - 50 WHEN + - CAST( NULL AS SIGNED ) DIV 13 THEN NULL WHEN + - ( - 41 ) + - 99 + - COUNT( * ) THEN + COALESCE ( + - 96, - 8 * 69 ) * 96 + 79 WHEN - 90 + - 38 THEN 6 END AS DECIMAL ) WHEN 60 THEN - 38 * - 44 ELSE + COALESCE ( - 90, + 83 ) END * 12 END * - 93 + COUNT( * ) * - 53 DIV 45 AS col0
----
-46
4148945

skipif mysql # not compatible
query II rowsort label-9970
SELECT ALL - 46 col2, + 32 + - + COUNT ( * ) + - COUNT ( * ) + - 38 * - CASE + 97 WHEN - - 61 + COUNT ( * ) THEN + - 37 - 15 WHEN 25 THEN + + 33 ELSE - 94 + CASE + CAST ( - CASE - 50 WHEN + - CAST ( NULL AS INTEGER ) / 13 THEN NULL WHEN + - ( - 41 ) + - 99 + - COUNT ( * ) THEN + COALESCE ( + - 96, - 8 * 69 ) * 96 + 79 WHEN - 90 + - 38 THEN 6 END AS REAL ) WHEN 60 THEN - 38 * - 44 ELSE + COALESCE ( - 90, + 83 ) END * 12 END * - 93 + COUNT ( * ) * - 53 / 45 AS col0
----
-46
4148945

query I rowsort
SELECT 81 + - 49 col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT ALL - 84 + - + NULLIF ( + - 29, - + 23 + + MIN( ALL - ( + + 92 ) ) )
----
-55

skipif mysql # not compatible
query I rowsort label-9972
SELECT ALL - 84 + - + NULLIF ( + - 29, - + 23 + + MIN ( ALL - ( + + 92 ) ) )
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9973
SELECT DISTINCT - COALESCE ( + COUNT( * ), CASE - + 83 WHEN 88 THEN NULL WHEN - 8 DIV ( ( - 71 ) ) * - MAX( ALL + - 92 ) THEN + 16 ELSE + 80 DIV + ( + + 85 ) END + 79 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9973
SELECT DISTINCT - COALESCE ( + COUNT ( * ), CASE - + 83 WHEN 88 THEN NULL WHEN - 8 / ( ( - 71 ) ) * - MAX ( ALL + - 92 ) THEN + 16 ELSE + 80 / + ( + + 85 ) END + 79 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT COUNT( - 27 ) - + 25 * 84 * - + 35
----
73501

skipif mysql # not compatible
query I rowsort label-9974
SELECT COUNT ( - 27 ) - + 25 * 84 * - + 35
----
73501

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9975
SELECT ALL + COUNT( * ) * + - NULLIF ( 10, CAST( NULLIF ( 39, + - MIN( + + 60 ) * 50 + + 71 - - MIN( 96 ) ) AS DECIMAL ) )
----
-10

skipif mysql # not compatible
query I rowsort label-9975
SELECT ALL + COUNT ( * ) * + - NULLIF ( 10, CAST ( NULLIF ( 39, + - MIN ( + + 60 ) * 50 + + 71 - - MIN ( 96 ) ) AS REAL ) )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT ALL - 57 + + 76 * - COUNT( * ) + + - 3
----
-136

skipif mysql # not compatible
query I rowsort label-9976
SELECT ALL - 57 + + 76 * - COUNT ( * ) + + - 3
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT COUNT( * ) * + COUNT( DISTINCT + CASE 74 WHEN - + 10 THEN - - 10 WHEN + 8 THEN NULL WHEN + 99 * - 57 THEN NULL END ) + - MIN( + 86 ) + 46 * + 53 * + SUM( + - 86 ) * 80 * + 7 col1
----
-117414166

skipif mysql # not compatible
query I rowsort label-9977
SELECT COUNT ( * ) * + COUNT ( DISTINCT + CASE 74 WHEN - + 10 THEN - - 10 WHEN + 8 THEN NULL WHEN + 99 * - 57 THEN NULL END ) + - MIN ( + 86 ) + 46 * + 53 * + SUM ( + - 86 ) * 80 * + 7 col1
----
-117414166

onlyif mysql # aggregate syntax: 
query II rowsort label-9978
SELECT COUNT( * ) AS col1, 76 * + - 0
----
1
0

skipif mysql # not compatible
query II rowsort label-9978
SELECT COUNT ( * ) AS col1, 76 * + - 0
----
1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9979
SELECT ALL + 85 + + 29 + + 24 + + + 32 + 0 DIV MAX( ALL - 85 ) * + COUNT( * ) * + 64 * - 53 col0
----
170

skipif mysql # not compatible
query I rowsort label-9979
SELECT ALL + 85 + + 29 + + 24 + + + 32 + 0 / MAX ( ALL - 85 ) * + COUNT ( * ) * + 64 * - 53 col0
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT MIN( + 46 ) + + 52
----
98

skipif mysql # not compatible
query I rowsort label-9980
SELECT MIN ( + 46 ) + + 52
----
98

query II rowsort
SELECT 96 + - - 96 AS col0, ( + - 90 ) AS col2
----
192
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT DISTINCT + SUM( DISTINCT - 57 ) * + 34 AS col2
----
-1938

skipif mysql # not compatible
query I rowsort label-9982
SELECT DISTINCT + SUM ( DISTINCT - 57 ) * + 34 AS col2
----
-1938

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9983
SELECT ALL CAST( NULL AS SIGNED ) / - 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9983
SELECT ALL CAST ( NULL AS INTEGER ) / - 49 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9984
SELECT DISTINCT 50 col2, - MIN( DISTINCT + 77 )
----
50
-77

skipif mysql # not compatible
query II rowsort label-9984
SELECT DISTINCT 50 col2, - MIN ( DISTINCT + 77 )
----
50
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9985
SELECT - NULLIF ( + COALESCE ( - + 45, 33 * + ( - - 94 ) * - 19 + 69 + + ( 74 ) DIV + + 73 + 30, - 86 ), + 73 DIV - + 56 + ( 17 ) + + 82 DIV + 22 * + + MIN( DISTINCT - + ( + - 68 ) ) DIV 23 + - - 65 + - 89 ) * + - ( 94 ) + 50 * 37
----
-2380

skipif mysql # not compatible
query I rowsort label-9985
SELECT - NULLIF ( + COALESCE ( - + 45, 33 * + ( - - 94 ) * - 19 + 69 + + ( 74 ) / + + 73 + 30, - 86 ), + 73 / - + 56 + ( 17 ) + + 82 / + 22 * + + MIN ( DISTINCT - + ( + - 68 ) ) / 23 + - - 65 + - 89 ) * + - ( 94 ) + 50 * 37
----
-2380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9986
SELECT + - 87 + + + COALESCE ( - ( 41 ), - 15 / + SUM( + + 36 ) + - + COUNT( DISTINCT + 34 ) - 77 ) - + 62 + + COUNT( * ) * + + ( - CAST( NULL AS SIGNED ) ) * + 63 + + + COUNT( * ) + 95 / - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-9986
SELECT + - 87 + + + COALESCE ( - ( 41 ), - 15 / + SUM ( + + 36 ) + - + COUNT ( DISTINCT + 34 ) - 77 ) - + 62 + + COUNT ( * ) * + + ( - CAST ( NULL AS INTEGER ) ) * + 63 + + + COUNT ( * ) + 95 / - 83
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9987
SELECT ALL - 44 col1, - SUM( - - 33 )
----
-44
-33

skipif mysql # not compatible
query II rowsort label-9987
SELECT ALL - 44 col1, - SUM ( - - 33 )
----
-44
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT ALL 80 * + + 23 * + MAX( DISTINCT 61 ) AS col2
----
112240

skipif mysql # not compatible
query I rowsort label-9988
SELECT ALL 80 * + + 23 * + MAX ( DISTINCT 61 ) AS col2
----
112240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9989
SELECT ALL - COUNT( * ) - + + MAX( ALL - 94 ) + + CAST( NULL AS SIGNED ) * + + CASE + + 91 WHEN - ( - 79 ) * 68 + + 57 THEN 64 WHEN COALESCE ( - CAST( + - 61 AS SIGNED ), + + 86 ) THEN + 85 + - ( - 65 ) * + 80 * + 55 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9989
SELECT ALL - COUNT ( * ) - + + MAX ( ALL - 94 ) + + CAST ( NULL AS INTEGER ) * + + CASE + + 91 WHEN - ( - 79 ) * 68 + + 57 THEN 64 WHEN COALESCE ( - CAST ( + - 61 AS INTEGER ), + + 86 ) THEN + 85 + - ( - 65 ) * + 80 * + 55 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT MIN( DISTINCT - 61 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-9990
SELECT MIN ( DISTINCT - 61 ) AS col1
----
-61

query I rowsort
SELECT + + 52 * 18 + - 95 + 54 + + - 6 + + 2 * - 53
----
783

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9992
SELECT ALL 7 * + 88 + NULLIF ( - 57, - CASE + 77 WHEN - 26 * - 84 + + AVG ( ( CASE - CASE NULLIF ( ( + - 45 ), + 44 ) WHEN - - 85 THEN + COALESCE ( 30, ( + - 44 ), - 76 + 93 + - - COALESCE ( + + 4, - - 80 ) / - ( CAST( - 58 AS SIGNED ) * - 95 ) ) END WHEN - 75 + 89 THEN NULL WHEN + CAST( NULL AS SIGNED ) * 29 THEN 42 END ) ) + - 48 THEN NULL WHEN - 73 + CAST( NULL AS SIGNED ) THEN + 45 END ) + 98
----
657

skipif mysql # not compatible
query I rowsort label-9992
SELECT ALL 7 * + 88 + NULLIF ( - 57, - CASE + 77 WHEN - 26 * - 84 + + AVG ( ( CASE - CASE NULLIF ( ( + - 45 ), + 44 ) WHEN - - 85 THEN + COALESCE ( 30, ( + - 44 ), - 76 + 93 + - - COALESCE ( + + 4, - - 80 ) / - ( CAST ( - 58 AS INTEGER ) * - 95 ) ) END WHEN - 75 + 89 THEN NULL WHEN + CAST ( NULL AS INTEGER ) * 29 THEN 42 END ) ) + - 48 THEN NULL WHEN - 73 + CAST ( NULL AS INTEGER ) THEN + 45 END ) + 98
----
657

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT + 76 + - + SUM( - + 39 ) AS col1
----
115

skipif mysql # not compatible
query I rowsort label-9993
SELECT + 76 + - + SUM ( - + 39 ) AS col1
----
115

query II rowsort
SELECT ALL 46 * 23 AS col1, - 10 * + + 3
----
1058
-30

query II rowsort
SELECT - 83, 0 * + 95 AS col0
----
-83
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9996
SELECT ALL - COUNT( * ), + 20 AS col1
----
-1
20

skipif mysql # not compatible
query II rowsort label-9996
SELECT ALL - COUNT ( * ), + 20 AS col1
----
-1
20

onlyif mysql # aggregate syntax: 
query II rowsort label-9997
SELECT + 84 AS col0, COUNT( * ) + - ( + + 51 ) - 40 AS col2
----
84
-90

skipif mysql # not compatible
query II rowsort label-9997
SELECT + 84 AS col0, COUNT ( * ) + - ( + + 51 ) - 40 AS col2
----
84
-90

query I rowsort
SELECT ALL + ( 6 ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT - + COUNT( * ) + 58 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-9999
SELECT - + COUNT ( * ) + 58 AS col1
----
57

