sqllogictest
Artifact Content
Not logged in

Artifact 9e4d1dc245dafd5b5cb746db7f5b401c13dafe1d:


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