sqllogictest
Artifact Content
Not logged in

Artifact 78880427c5179c708c4bfb896cf8bda3ba927a0a:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + 37 * + - 96 * + 13 + 6 * 75
----
-45726

onlyif mysql # aggregate syntax: 
query I rowsort label-1
SELECT - 29 * 10 * - - 49 + - COUNT( * ) col0
----
-14211

skipif mysql # not compatible
query I rowsort label-1
SELECT - 29 * 10 * - - 49 + - COUNT ( * ) col0
----
-14211

onlyif mysql # aggregate syntax: 
query I rowsort label-2
SELECT - 17 * + 61 * - COUNT( * )
----
1037

skipif mysql # not compatible
query I rowsort label-2
SELECT - 17 * + 61 * - COUNT ( * )
----
1037

query I rowsort
SELECT ALL 47 * 33 + - 73 col2
----
1478

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4
SELECT ALL + CAST( NULL AS SIGNED ) * - 85 + - CAST( + SUM( + 31 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4
SELECT ALL + CAST ( NULL AS INTEGER ) * - 85 + - CAST ( + SUM ( + 31 ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5
SELECT ALL + 71 * COUNT( + - 61 ) + - 53 + - - SUM( ALL 98 ) + CAST( NULL AS SIGNED ) + 35 + COUNT( * ) - + 47 * - 12 * - 10 * - CASE - + 78 WHEN - + 25 THEN ( + - 41 ) * - 71 * - 23 + + ( + 0 ) + + - NULLIF ( + 26, + 23 * + 83 + 44 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5
SELECT ALL + 71 * COUNT ( + - 61 ) + - 53 + - - SUM ( ALL 98 ) + CAST ( NULL AS INTEGER ) + 35 + COUNT ( * ) - + 47 * - 12 * - 10 * - CASE - + 78 WHEN - + 25 THEN ( + - 41 ) * - 71 * - 23 + + ( + 0 ) + + - NULLIF ( + 26, + 23 * + 83 + 44 ) END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7
SELECT ALL CAST( NULL AS SIGNED ) * - COALESCE ( + ( + 14 ), 51, + 33 ) + + COUNT( * ) + 13 + + 15 * SUM( - - 59 ) * - 56 * + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-7
SELECT ALL CAST ( NULL AS INTEGER ) * - COALESCE ( + ( + 14 ), 51, + 33 ) + + COUNT ( * ) + 13 + + 15 * SUM ( - - 59 ) * - 56 * + 24
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8
SELECT DISTINCT + 27 * - ( - 95 ) + + + COUNT( * ) * - 64 * + - 57 - - - CAST( NULL AS SIGNED ) - - 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8
SELECT DISTINCT + 27 * - ( - 95 ) + + + COUNT ( * ) * - 64 * + - 57 - - - CAST ( NULL AS INTEGER ) - - 22 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9
SELECT - 63 * - MIN( - 61 )
----
-3843

skipif mysql # not compatible
query I rowsort label-9
SELECT - 63 * - MIN ( - 61 )
----
-3843

onlyif mysql # aggregate syntax: 
query I rowsort label-10
SELECT ALL - 94 * 72 + 9 + + CASE - 52 WHEN + 75 THEN + 9 * + 52 + + + COUNT( * ) ELSE + + 66 END - - 43 AS col0
----
-6650

skipif mysql # not compatible
query I rowsort label-10
SELECT ALL - 94 * 72 + 9 + + CASE - 52 WHEN + 75 THEN + 9 * + 52 + + + COUNT ( * ) ELSE + + 66 END - - 43 AS col0
----
-6650

query I rowsort
SELECT COALESCE ( + + 88, - - 24 * - + 77 + - + 77 + - 11 * + 53 + + 67 ) AS col0
----
88

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

skipif mysql # not compatible
query I rowsort label-12
SELECT + SUM ( - 51 )
----
-51

query I rowsort
SELECT - 27 * + - 70 * + 72
----
136080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-14
SELECT + 92 * ( - MAX( - 66 ) ) * - 83 + + - 31 * - - CASE - - CASE 52 WHEN - COUNT( * ) THEN - 8 + - 86 WHEN - COALESCE ( ( - 10 ), - ( + 14 ), - - 92 * + + 69 / - 30 * + COUNT( * ) / + - 91 * 34 ) * COUNT( ALL + 25 ) * + CAST( NULL AS SIGNED ) + - - 61 THEN NULL END WHEN + + 7 * 19 + CASE WHEN NOT ( ( + 6 ) = 63 ) OR NOT NULL IS NULL THEN NULL WHEN NOT NULL > + 70 / - 88 THEN - 34 + CAST( 6 - 48 AS SIGNED ) END THEN NULL ELSE 66 * + 35 END
----
-575586

skipif mysql # not compatible
query I rowsort label-14
SELECT + 92 * ( - MAX ( - 66 ) ) * - 83 + + - 31 * - - CASE - - CASE 52 WHEN - COUNT ( * ) THEN - 8 + - 86 WHEN - COALESCE ( ( - 10 ), - ( + 14 ), - - 92 * + + 69 / - 30 * + COUNT ( * ) / + - 91 * 34 ) * COUNT ( ALL + 25 ) * + CAST ( NULL AS INTEGER ) + - - 61 THEN NULL END WHEN + + 7 * 19 + CASE WHEN NOT ( ( + 6 ) = 63 ) OR NOT NULL IS NULL THEN NULL WHEN NOT NULL > + 70 / - 88 THEN - 34 + CAST ( 6 - 48 AS INTEGER ) END THEN NULL ELSE 66 * + 35 END
----
-575586

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-15
SELECT NULLIF ( + NULLIF ( 94, + 61 * + + SUM( + ( - CASE + 39 WHEN + + CAST( NULL AS SIGNED ) THEN - 16 * + 87 WHEN - 27 + - 14 THEN + 51 + - 53 * - 35 WHEN - 93 / - + COALESCE ( - 29, + + ( - - 85 ) ) * + 2 - - 5 - + 90 THEN - 19 ELSE + + 80 END ) ) ), - 33 * + COUNT( * ) ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-15
SELECT NULLIF ( + NULLIF ( 94, + 61 * + + SUM ( + ( - CASE + 39 WHEN + + CAST ( NULL AS INTEGER ) THEN - 16 * + 87 WHEN - 27 + - 14 THEN + 51 + - 53 * - 35 WHEN - 93 / - + COALESCE ( - 29, + + ( - - 85 ) ) * + 2 - - 5 - + 90 THEN - 19 ELSE + + 80 END ) ) ), - 33 * + COUNT ( * ) ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-16
SELECT ALL 90 * + - 67 - - + COUNT( * ) AS col1
----
-6029

skipif mysql # not compatible
query I rowsort label-16
SELECT ALL 90 * + - 67 - - + COUNT ( * ) AS col1
----
-6029

query I rowsort
SELECT - 19 - 8
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-18
SELECT + 44 * - CAST( SUM( ALL - - NULLIF ( + 15, - 26 ) ) AS SIGNED ) - - 86 AS col2
----
-574

skipif mysql # not compatible
query I rowsort label-18
SELECT + 44 * - CAST ( SUM ( ALL - - NULLIF ( + 15, - 26 ) ) AS INTEGER ) - - 86 AS col2
----
-574

query I rowsort
SELECT - 86 + - 5 + 31 AS col0
----
-60

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-22
SELECT + 74 * 26 * + 31 - + ( COUNT( * ) )
----
59643

skipif mysql # not compatible
query I rowsort label-22
SELECT + 74 * 26 * + 31 - + ( COUNT ( * ) )
----
59643

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-23
SELECT - - 0 + - AVG ( DISTINCT + 17 ) * COUNT( * ) + CAST( NULL AS SIGNED ) + - ( 25 ) / + 75 * 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-23
SELECT - - 0 + - AVG ( DISTINCT + 17 ) * COUNT ( * ) + CAST ( NULL AS INTEGER ) + - ( 25 ) / + 75 * 92 AS col2
----
NULL

query I rowsort
SELECT + - 50 * + + 74 AS col0
----
-3700

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT ALL + CASE - ( 42 ) WHEN 63 + 25 THEN NULL WHEN + COUNT( * ) - 75 * COALESCE ( + 43, - 93, + 47 + - 46 ) THEN - + SUM( - 60 ) + - 61 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-25
SELECT ALL + CASE - ( 42 ) WHEN 63 + 25 THEN NULL WHEN + COUNT ( * ) - 75 * COALESCE ( + 43, - 93, + 47 + - 46 ) THEN - + SUM ( - 60 ) + - 61 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-26
SELECT + COUNT( * ) + + COUNT( * ), 91 AS col0
----
2
91

skipif mysql # not compatible
query II rowsort label-26
SELECT + COUNT ( * ) + + COUNT ( * ), 91 AS col0
----
2
91

query I rowsort
SELECT + 62 + + 65 * ( + 87 )
----
5717

query I rowsort
SELECT - ( 80 ) * - 3
----
240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-29
SELECT ALL ( - CAST( - 95 AS SIGNED ) ) * - 61 * - + 58 AS col2
----
336110

skipif mysql # not compatible
query I rowsort label-29
SELECT ALL ( - CAST ( - 95 AS INTEGER ) ) * - 61 * - + 58 AS col2
----
336110

onlyif mysql # aggregate syntax: 
query I rowsort label-30
SELECT - NULLIF ( + COUNT( - 1 ), - - 62 )
----
-1

skipif mysql # not compatible
query I rowsort label-30
SELECT - NULLIF ( + COUNT ( - 1 ), - - 62 )
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT ALL COALESCE ( - 94, - 17 + - 12, + COUNT( * ) ) * COUNT( * ) + + ( - 4 ) - - 47 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-32
SELECT ALL COALESCE ( - 94, - 17 + - 12, + COUNT ( * ) ) * COUNT ( * ) + + ( - 4 ) - - 47 AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-33
SELECT ALL 94 + + + COALESCE ( NULLIF ( - - 63, - + COUNT( * ) ), + 59 )
----
157

skipif mysql # not compatible
query I rowsort label-33
SELECT ALL 94 + + + COALESCE ( NULLIF ( - - 63, - + COUNT ( * ) ), + 59 )
----
157

query I rowsort
SELECT + 0 * + - 9 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-35
SELECT + 17 DIV + + 99 col0
----
0

skipif mysql # not compatible
query I rowsort label-35
SELECT + 17 / + + 99 col0
----
0

query I rowsort
SELECT + 76 * 78
----
5928

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-37
SELECT DISTINCT - COUNT( DISTINCT - 98 ) DIV + 97 + + - 72 * + 8 * - 53 * + + ( 91 ) + MIN( ALL 59 )
----
2778107

skipif mysql # not compatible
query I rowsort label-37
SELECT DISTINCT - COUNT ( DISTINCT - 98 ) / + 97 + + - 72 * + 8 * - 53 * + + ( 91 ) + MIN ( ALL 59 )
----
2778107

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT ALL + MIN( 81 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-38
SELECT ALL + MIN ( 81 ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT 73 * 78 - - + 2 + - 40 + - ( - MIN( ALL + 23 ) )
----
5679

skipif mysql # not compatible
query I rowsort label-39
SELECT 73 * 78 - - + 2 + - 40 + - ( - MIN ( ALL + 23 ) )
----
5679

query I rowsort
SELECT ALL - 1 * - 45
----
45

query I rowsort
SELECT 64 * - + ( 87 ) + 77
----
-5491

query I rowsort
SELECT 70 - + + 30 AS col2
----
40

query I rowsort
SELECT ALL + 28 - - 31
----
59

query I rowsort
SELECT ALL - 74 * - - 34
----
-2516

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

skipif mysql # not compatible
query I rowsort label-45
SELECT DISTINCT - MIN ( - 35 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-46
SELECT ALL + 59 - + COUNT( * ) + - ( - - 52 )
----
6

skipif mysql # not compatible
query I rowsort label-46
SELECT ALL + 59 - + COUNT ( * ) + - ( - - 52 )
----
6

query I rowsort
SELECT 62 * + - 85
----
-5270

query I rowsort
SELECT - 16 * + 8 + - 33 + - - 21
----
-140

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

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

query I rowsort
SELECT - CASE + + 44 WHEN - 40 + + 27 THEN - 56 END
----
NULL

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

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

query I rowsort
SELECT + 67 + - 29
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-53
SELECT - - NULLIF ( - CAST( 2 AS SIGNED ), COUNT( * ) / + 67 + NULLIF ( - + CAST( NULL AS SIGNED ), - ( + 53 ) * + 77 ) ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-53
SELECT - - NULLIF ( - CAST ( 2 AS INTEGER ), COUNT ( * ) / + 67 + NULLIF ( - + CAST ( NULL AS INTEGER ), - ( + 53 ) * + 77 ) ) AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-54
SELECT ALL - - CASE - 40 WHEN - 30 / + - MIN( DISTINCT + 84 ) THEN + - 24 + - 83 * + 48 + 76 - + + 20 * + - COUNT( * ) WHEN - 30 THEN COUNT( * ) WHEN - + ( + CAST( NULL AS SIGNED ) ) THEN + 25 END * + + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-54
SELECT ALL - - CASE - 40 WHEN - 30 / + - MIN ( DISTINCT + 84 ) THEN + - 24 + - 83 * + 48 + 76 - + + 20 * + - COUNT ( * ) WHEN - 30 THEN COUNT ( * ) WHEN - + ( + CAST ( NULL AS INTEGER ) ) THEN + 25 END * + + 40
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-55
SELECT DISTINCT + COUNT( * ) * - + 19 * + - 1 - - - CAST( + 38 AS SIGNED ) * - + ( - 5 ) AS col0
----
-171

skipif mysql # not compatible
query I rowsort label-55
SELECT DISTINCT + COUNT ( * ) * - + 19 * + - 1 - - - CAST ( + 38 AS INTEGER ) * - + ( - 5 ) AS col0
----
-171

query I rowsort
SELECT 23 * + 80 AS col2
----
1840

query I rowsort
SELECT ALL 77 + + + 91 * + - ( - + 69 ) col2
----
6356

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-58
SELECT DISTINCT CAST( + ( - - 99 ) AS SIGNED ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-58
SELECT DISTINCT CAST ( + ( - - 99 ) AS INTEGER ) AS col1
----
99

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-60
SELECT DISTINCT + + COUNT( * ) + - - 61 DIV - 64 * + COUNT( * ) - - SUM( 79 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-60
SELECT DISTINCT + + COUNT ( * ) + - - 61 / - 64 * + COUNT ( * ) - - SUM ( 79 ) AS col0
----
80

query I rowsort
SELECT 33 - 9
----
24

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

onlyif mysql # aggregate syntax: 
query I rowsort label-63
SELECT ALL - 58 + + + CASE - NULLIF ( COUNT( * ), - COUNT( ALL 36 ) ) WHEN COUNT( ALL + 76 ) THEN NULL WHEN + 6 THEN 92 END + 9 * + 65 + - 48 * - + 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-63
SELECT ALL - 58 + + + CASE - NULLIF ( COUNT ( * ), - COUNT ( ALL 36 ) ) WHEN COUNT ( ALL + 76 ) THEN NULL WHEN + 6 THEN 92 END + 9 * + 65 + - 48 * - + 61 AS col1
----
NULL

query II rowsort
SELECT 74 AS col0, - ( - + ( 25 ) ) col2
----
74
25

query II rowsort
SELECT ALL 71 AS col0, + 28 AS col2
----
71
28

query I rowsort
SELECT ALL 88 + + 19
----
107

onlyif mysql # aggregate syntax: 
query II rowsort label-67
SELECT DISTINCT 5 + + 64 * - + 47 + + COALESCE ( - 71, + 87 - + COUNT( * ) ) AS col2, 49 + 25 + - 12 * - ( - COUNT( * ) ) AS col1
----
-3074
62

skipif mysql # not compatible
query II rowsort label-67
SELECT DISTINCT 5 + + 64 * - + 47 + + COALESCE ( - 71, + 87 - + COUNT ( * ) ) AS col2, 49 + 25 + - 12 * - ( - COUNT ( * ) ) AS col1
----
-3074
62

onlyif mysql # DIV for integer division: 
query I rowsort label-68
SELECT DISTINCT - 23 + - 2 DIV - 5
----
-23

skipif mysql # not compatible
query I rowsort label-68
SELECT DISTINCT - 23 + - 2 / - 5
----
-23

query II rowsort
SELECT ALL 83, - 73 AS col0
----
83
-73

query I rowsort
SELECT ALL 40 + + 24 AS col0
----
64

query I rowsort
SELECT 39 - + 45
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-72
SELECT DISTINCT COUNT( + 63 ) * - - CAST( + 45 AS SIGNED ) + + - 34
----
11

skipif mysql # not compatible
query I rowsort label-72
SELECT DISTINCT COUNT ( + 63 ) * - - CAST ( + 45 AS INTEGER ) + + - 34
----
11

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

skipif mysql # not compatible
query I rowsort label-73
SELECT ALL COUNT ( * ) - + 79 * - 22
----
1739

query I rowsort
SELECT DISTINCT 81 * + 93
----
7533

onlyif mysql # aggregate syntax: 
query I rowsort label-75
SELECT COUNT( + - 31 ) * - + 56 + 79
----
23

skipif mysql # not compatible
query I rowsort label-75
SELECT COUNT ( + - 31 ) * - + 56 + 79
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-76
SELECT 74 - 83 * + CAST( + + COUNT( * ) AS SIGNED ) * - - ( + CAST( NULL AS DECIMAL ) ) + + 14 + + COUNT( * ) + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-76
SELECT 74 - 83 * + CAST ( + + COUNT ( * ) AS INTEGER ) * - - ( + CAST ( NULL AS REAL ) ) + + 14 + + COUNT ( * ) + 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-77
SELECT CASE + 4 WHEN COUNT( * ) + - - ( - NULLIF ( 62, - 65 + + + 15 + 24 ) ) THEN NULL ELSE + - 13 END * - 65 AS col2
----
845

skipif mysql # not compatible
query I rowsort label-77
SELECT CASE + 4 WHEN COUNT ( * ) + - - ( - NULLIF ( 62, - 65 + + + 15 + 24 ) ) THEN NULL ELSE + - 13 END * - 65 AS col2
----
845

query II rowsort
SELECT DISTINCT 45 * 43, 52 AS col2
----
1935
52

onlyif mysql # aggregate syntax: 
query III rowsort label-79
SELECT ALL - 34 AS col2, - 42 AS col2, + COUNT( * ) * - COUNT( * ) - - + 51 * + 75 * - 67 col0
----
-34
-42
-256276

skipif mysql # not compatible
query III rowsort label-79
SELECT ALL - 34 AS col2, - 42 AS col2, + COUNT ( * ) * - COUNT ( * ) - - + 51 * + 75 * - 67 col0
----
-34
-42
-256276

onlyif mysql # aggregate syntax: 
query II rowsort label-80
SELECT DISTINCT - 5 col2, 63 * - COUNT( * ) + 64
----
-5
1

skipif mysql # not compatible
query II rowsort label-80
SELECT DISTINCT - 5 col2, 63 * - COUNT ( * ) + 64
----
-5
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-81
SELECT CASE + 92 WHEN - 44 THEN NULL ELSE - - 27 END * NULLIF ( + 53, - + 81 ) * 95 * + 75 - - + CAST( + 29 AS SIGNED ) + + 70
----
10195974

skipif mysql # not compatible
query I rowsort label-81
SELECT CASE + 92 WHEN - 44 THEN NULL ELSE - - 27 END * NULLIF ( + 53, - + 81 ) * 95 * + 75 - - + CAST ( + 29 AS INTEGER ) + + 70
----
10195974

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-84
SELECT + ( + ( - COUNT( - - 77 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-84
SELECT + ( + ( - COUNT ( - - 77 ) ) )
----
-1

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

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

query I rowsort
SELECT ALL - + 6 * + 30 * - CASE 98 WHEN - 18 THEN - - 97 WHEN 42 THEN - - 92 END + - 29 AS col1
----
NULL

query I rowsort
SELECT 0 * + 51 + - 84 AS col0
----
-84

query II rowsort
SELECT ALL - - 65 AS col1, 2 * 76 AS col1
----
65
152

query I rowsort
SELECT - NULLIF ( - 43, - 37 - + 49 )
----
43

query II rowsort
SELECT - 9 AS col0, 93
----
-9
93

onlyif mysql # aggregate syntax: 
query II rowsort label-91
SELECT 17 * + - 82 - + ( MAX( ALL 81 ) ) + - - 91 + + 37 + + - MIN( + + 14 ) - - 37 * - + 48 * + 89 AS col0, COUNT( * )
----
-159425
1

skipif mysql # not compatible
query II rowsort label-91
SELECT 17 * + - 82 - + ( MAX ( ALL 81 ) ) + - - 91 + + 37 + + - MIN ( + + 14 ) - - 37 * - + 48 * + 89 AS col0, COUNT ( * )
----
-159425
1

query I rowsort
SELECT ALL + 12 * - 29 AS col0
----
-348

query I rowsort
SELECT 56 + + - 34
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT NULLIF ( COALESCE ( COUNT( * ), + 56 ), 52 )
----
1

skipif mysql # not compatible
query I rowsort label-94
SELECT NULLIF ( COALESCE ( COUNT ( * ), + 56 ), 52 )
----
1

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

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

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

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

query I rowsort
SELECT 46 * + - 2 - COALESCE ( - - 8, 79 )
----
-100

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

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

query I rowsort
SELECT 48 + - 99
----
-51

query I rowsort
SELECT - 81 - - - 89
----
-170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-101
SELECT ALL 38, + COUNT( * ) * - CAST( NULL AS SIGNED ) * + 63 AS col0
----
38
NULL

skipif mysql # not compatible
query II rowsort label-101
SELECT ALL 38, + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * + 63 AS col0
----
38
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT DISTINCT MAX( DISTINCT - - 70 ) col0
----
70

skipif mysql # not compatible
query I rowsort label-102
SELECT DISTINCT MAX ( DISTINCT - - 70 ) col0
----
70

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

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

query I rowsort
SELECT ALL - ( NULLIF ( + 14, + - 3 ) ) + - + 35
----
-49

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

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

query I rowsort
SELECT DISTINCT - 18 * + 60 AS col2
----
-1080

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-107
SELECT - 34 * + 31 AS col0, + 6 * - CAST( NULL AS DECIMAL )
----
-1054
NULL

skipif mysql # not compatible
query II rowsort label-107
SELECT - 34 * + 31 AS col0, + 6 * - CAST ( NULL AS REAL )
----
-1054
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-108
SELECT ALL - COUNT( * ) * 66
----
-66

skipif mysql # not compatible
query I rowsort label-108
SELECT ALL - COUNT ( * ) * 66
----
-66

query II rowsort
SELECT DISTINCT - ( 23 ) - - 10 AS col1, 27 AS col1
----
-13
27

query I rowsort
SELECT - 4 * 41 * - 27 AS col0
----
4428

query II rowsort
SELECT ALL - 1 * - - 88 AS col1, 8
----
-88
8

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT NULLIF ( 40, + - 45 * + COUNT( * ) * 59 )
----
40

skipif mysql # not compatible
query I rowsort label-112
SELECT NULLIF ( 40, + - 45 * + COUNT ( * ) * 59 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-113
SELECT ALL + CASE - 5 WHEN 64 THEN + COUNT( * ) - + 33 + - + 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-113
SELECT ALL + CASE - 5 WHEN 64 THEN + COUNT ( * ) - + 33 + - + 54 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-114
SELECT + 96 * - 94 + - + COUNT( * ) * 69 AS col1
----
-9093

skipif mysql # not compatible
query I rowsort label-114
SELECT + 96 * - 94 + - + COUNT ( * ) * 69 AS col1
----
-9093

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-115
SELECT DISTINCT 21 * + + ( 80 ) - + 69 DIV - NULLIF ( + 55, - + COUNT( ALL + + CAST( NULL AS SIGNED ) ) * + COUNT( * ) * + 23 * + 83 + 45 + + 61 * + + 21 + - 84 ) + - 90
----
1591

skipif mysql # not compatible
query I rowsort label-115
SELECT DISTINCT 21 * + + ( 80 ) - + 69 / - NULLIF ( + 55, - + COUNT ( ALL + + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) * + 23 * + 83 + 45 + + 61 * + + 21 + - 84 ) + - 90
----
1591

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-116
SELECT - COUNT( * ) DIV + 91, - 51 * - - 93 * - 12 - + 55 col2
----
0
56861

skipif mysql # not compatible
query II rowsort label-116
SELECT - COUNT ( * ) / + 91, - 51 * - - 93 * - 12 - + 55 col2
----
0
56861

onlyif mysql # aggregate syntax: 
query I rowsort label-117
SELECT + COUNT( * ) * - 61 * 3
----
-183

skipif mysql # not compatible
query I rowsort label-117
SELECT + COUNT ( * ) * - 61 * 3
----
-183

query I rowsort
SELECT ALL 82 * - 66 AS col1
----
-5412

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

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

query II rowsort
SELECT + - 82 + + + 66 AS col0, - 47 + 18 * - 92
----
-16
-1703

query I rowsort
SELECT DISTINCT - 76 * - 20 AS col2
----
1520

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-122
SELECT + CASE + 31 WHEN + 29 * COALESCE ( - 60, - NULLIF ( - + CAST( - + COUNT( * ) AS DECIMAL ), + + CASE + 56 WHEN + 62 THEN NULL WHEN + + 27 + + 69 + 38 * 18 THEN - - COUNT( * ) * - 6 ELSE - + COUNT( * ) END + + COUNT( * ) ) * + 70, + 2 ) THEN - 65 END / + MIN( + 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-122
SELECT + CASE + 31 WHEN + 29 * COALESCE ( - 60, - NULLIF ( - + CAST ( - + COUNT ( * ) AS REAL ), + + CASE + 56 WHEN + 62 THEN NULL WHEN + + 27 + + 69 + 38 * 18 THEN - - COUNT ( * ) * - 6 ELSE - + COUNT ( * ) END + + COUNT ( * ) ) * + 70, + 2 ) THEN - 65 END / + MIN ( + 30 )
----
NULL

query I rowsort
SELECT + - 38 * - 56 * 8
----
17024

onlyif mysql # aggregate syntax: 
query II rowsort label-124
SELECT + - 21 + - 91 + 24 AS col0, 99 + + - 93 + - 53 * COUNT( * ) * - 8 * + 1 + - 91 - + COUNT( * ) AS col1
----
-88
338

skipif mysql # not compatible
query II rowsort label-124
SELECT + - 21 + - 91 + 24 AS col0, 99 + + - 93 + - 53 * COUNT ( * ) * - 8 * + 1 + - 91 - + COUNT ( * ) AS col1
----
-88
338

onlyif mysql # aggregate syntax: 
query I rowsort label-125
SELECT DISTINCT CASE + COUNT( * ) WHEN 57 THEN NULL WHEN + 99 + - + 11 + + - COUNT( * ) THEN + 41 END * + 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-125
SELECT DISTINCT CASE + COUNT ( * ) WHEN 57 THEN NULL WHEN + 99 + - + 11 + + - COUNT ( * ) THEN + 41 END * + 3 AS col2
----
NULL

query I rowsort
SELECT + + 46 + - + 44 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-127
SELECT ALL - ( 4 ) * - COUNT( + - 8 ) + + 25 + 70 + - NULLIF ( + 58, + - 64 * - 41 * + 40 + - - COALESCE ( + 38, + - CAST( - ( 22 ) AS SIGNED ) * - + 57 + 66 ) * - - 89 )
----
41

skipif mysql # not compatible
query I rowsort label-127
SELECT ALL - ( 4 ) * - COUNT ( + - 8 ) + + 25 + 70 + - NULLIF ( + 58, + - 64 * - 41 * + 40 + - - COALESCE ( + 38, + - CAST ( - ( 22 ) AS INTEGER ) * - + 57 + 66 ) * - - 89 )
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-128
SELECT NULLIF ( - 52, - - CAST( + + COUNT( * ) AS SIGNED ) )
----
-52

skipif mysql # not compatible
query I rowsort label-128
SELECT NULLIF ( - 52, - - CAST ( + + COUNT ( * ) AS INTEGER ) )
----
-52

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-130
SELECT DISTINCT + 83 + + COUNT( * ) + + + 42 * + 97 - + + 18 AS col0, + 6 * COALESCE ( 93, ( - 30 ) * + 23 + + MAX( + 16 ) * + 61, 22 )
----
4140
558

skipif mysql # not compatible
query II rowsort label-130
SELECT DISTINCT + 83 + + COUNT ( * ) + + + 42 * + 97 - + + 18 AS col0, + 6 * COALESCE ( 93, ( - 30 ) * + 23 + + MAX ( + 16 ) * + 61, 22 )
----
4140
558

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT ALL + ( + - COUNT( * ) ) + + 23 + - - 23 + + ( - - 59 ) * + + COUNT( * ) AS col0
----
104

skipif mysql # not compatible
query I rowsort label-131
SELECT ALL + ( + - COUNT ( * ) ) + + 23 + - - 23 + + ( - - 59 ) * + + COUNT ( * ) AS col0
----
104

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

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

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

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

skipif mysql # not compatible
query I rowsort label-134
SELECT DISTINCT + 59 - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - ( + - 94 ) col0
----
94

query II rowsort
SELECT 80 AS col1, ( 49 )
----
80
49

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT ALL + 78 - - - 29 - + COUNT( * ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-137
SELECT ALL + 78 - - - 29 - + COUNT ( * ) AS col1
----
48

query I rowsort
SELECT + 35 - + 84 AS col1
----
-49

query I rowsort
SELECT + 11 - + - 42
----
53

query I rowsort
SELECT ALL NULLIF ( + 68, 81 * + - 26 + + 99 ) AS col0
----
68

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

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

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

skipif mysql # not compatible
query I rowsort label-142
SELECT - COUNT ( * ) * CAST ( - COUNT ( * ) AS INTEGER )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-143
SELECT DISTINCT CAST( NULL AS SIGNED ) / + SUM( + 79 ) * ( + 87 ) + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-143
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + SUM ( + 79 ) * ( + 87 ) + 76
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-144
SELECT ALL ( - COALESCE ( + 5, - + 74 + + COUNT( * ) + + COUNT( * ) DIV COALESCE ( + MIN( DISTINCT + - 2 ), - 17 * - CAST( NULL AS SIGNED ) ) ) ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-144
SELECT ALL ( - COALESCE ( + 5, - + 74 + + COUNT ( * ) + + COUNT ( * ) / COALESCE ( + MIN ( DISTINCT + - 2 ), - 17 * - CAST ( NULL AS INTEGER ) ) ) ) AS col2
----
-5

query I rowsort
SELECT DISTINCT CASE 83 WHEN + 9 + + - ( - 68 ) THEN 82 WHEN + - 4 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-146
SELECT - COUNT( * ) - COUNT( * ) + SUM( + 48 ) + COUNT( * ) * + - 30 * - NULLIF ( 19, - + COUNT( * ) ) + - 2 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-146
SELECT - COUNT ( * ) - COUNT ( * ) + SUM ( + 48 ) + COUNT ( * ) * + - 30 * - NULLIF ( 19, - + COUNT ( * ) ) + - 2 * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - 45 * - 66
----
2970

query I rowsort
SELECT ALL + 70 * 50 * - 11 AS col0
----
-38500

query I rowsort
SELECT ALL + - 14 * - 76 * - 4
----
-4256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-150
SELECT - + NULLIF ( + - 31, + - NULLIF ( - 15, - 80 * COUNT( * ) ) + - - CAST( NULL AS SIGNED ) ) * CASE - 94 WHEN - + COUNT( ALL + 3 ) - - 51 * + + 31 THEN NULL ELSE + ( 59 ) * 80 END col0
----
146320

skipif mysql # not compatible
query I rowsort label-150
SELECT - + NULLIF ( + - 31, + - NULLIF ( - 15, - 80 * COUNT ( * ) ) + - - CAST ( NULL AS INTEGER ) ) * CASE - 94 WHEN - + COUNT ( ALL + 3 ) - - 51 * + + 31 THEN NULL ELSE + ( 59 ) * 80 END col0
----
146320

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

skipif mysql # not compatible
query I rowsort label-151
SELECT - 97 / 82 + - - COUNT ( * )
----
0

query I rowsort
SELECT - 86 * - - 61 + + 61
----
-5185

query II rowsort
SELECT - 21, 95 AS col0
----
-21
95

query II rowsort
SELECT ALL + + 60 AS col0, 36 + + 17
----
60
53

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT DISTINCT + 46 / - CASE + 57 WHEN + - 44 + - 2 * 9 THEN - NULLIF ( - 79, + 40 ) END * - 3 + 45 + + - 32 - COUNT( * ) * - + 11 + + 12 + - 23 * + 98 * - 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-155
SELECT DISTINCT + 46 / - CASE + 57 WHEN + - 44 + - 2 * 9 THEN - NULLIF ( - 79, + 40 ) END * - 3 + 45 + + - 32 - COUNT ( * ) * - + 11 + + 12 + - 23 * + 98 * - 43 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT DISTINCT + + MIN( ALL 58 )
----
58

skipif mysql # not compatible
query I rowsort label-156
SELECT DISTINCT + + MIN ( ALL 58 )
----
58

query I rowsort
SELECT + + 45 * - 88 - ( 97 ) + + 93 AS col0
----
-3964

query II rowsort
SELECT + 55 AS col1, 44
----
55
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-159
SELECT + - 34 DIV MIN( ALL + 58 ) DIV + 80 + - 89 AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-159
SELECT + - 34 / MIN ( ALL + 58 ) / + 80 + - 89 AS col1
----
-89

query I rowsort
SELECT ALL + 71 * + + 3 * + 34 + 3 col0
----
7245

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-161
SELECT DISTINCT + - 28, - CAST( CASE 16 WHEN CASE - 70 WHEN - - COUNT( * ) * 42 THEN NULL WHEN COUNT( * ) THEN NULL ELSE + + ( - 30 ) * + COUNT( * ) END THEN 34 + - 61 - - ( - 38 ) WHEN - 74 THEN NULL ELSE NULL END AS SIGNED ) AS col0
----
-28
NULL

skipif mysql # not compatible
query II rowsort label-161
SELECT DISTINCT + - 28, - CAST ( CASE 16 WHEN CASE - 70 WHEN - - COUNT ( * ) * 42 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE + + ( - 30 ) * + COUNT ( * ) END THEN 34 + - 61 - - ( - 38 ) WHEN - 74 THEN NULL ELSE NULL END AS INTEGER ) AS col0
----
-28
NULL

query I rowsort
SELECT ALL + 9 * - 21 - 47 col2
----
-236

query I rowsort
SELECT + 2 - - - 78 AS col1
----
-76

query I rowsort
SELECT DISTINCT + 43 * 39 AS col2
----
1677

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

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

query II rowsort
SELECT 48 + - 1 AS col2, 29
----
47
29

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT 19 + + + 17 - COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-167
SELECT 19 + + + 17 - COUNT ( * )
----
35

query I rowsort
SELECT NULLIF ( 76, + 62 ) + - 39 AS col1
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-169
SELECT 38 + - + 10 + COUNT( * ) DIV + - 53 AS col1, + 92 + + - 85 AS col0
----
28
7

skipif mysql # not compatible
query II rowsort label-169
SELECT 38 + - + 10 + COUNT ( * ) / + - 53 AS col1, + 92 + + - 85 AS col0
----
28
7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-170
SELECT DISTINCT 58 * + 44 * + 38 * - 35, - 88 * 39 + - 53 + + CASE - + 11 WHEN - + NULLIF ( + - 23, ( - 83 ) ) + - CAST( - 0 AS DECIMAL ) - 14 + - ( + 21 ) + + COUNT( * ) THEN - + 19 END AS col1
----
-3394160
-3504

skipif mysql # not compatible
query II rowsort label-170
SELECT DISTINCT 58 * + 44 * + 38 * - 35, - 88 * 39 + - 53 + + CASE - + 11 WHEN - + NULLIF ( + - 23, ( - 83 ) ) + - CAST ( - 0 AS REAL ) - 14 + - ( + 21 ) + + COUNT ( * ) THEN - + 19 END AS col1
----
-3394160
-3504

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-172
SELECT CAST( 38 AS SIGNED ) * - 28
----
-1064

skipif mysql # not compatible
query I rowsort label-172
SELECT CAST ( 38 AS INTEGER ) * - 28
----
-1064

onlyif mysql # aggregate syntax: 
query I rowsort label-173
SELECT MIN( - 58 ) + 64 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-173
SELECT MIN ( - 58 ) + 64 AS col1
----
6

query I rowsort
SELECT DISTINCT 22 * + - 18 AS col1
----
-396

onlyif mysql # aggregate syntax: 
query I rowsort label-175
SELECT 73 + - COUNT( ALL + 38 ) + - NULLIF ( - 67, - - 52 * + 99 ) + + 29 * ( - - 52 )
----
1647

skipif mysql # not compatible
query I rowsort label-175
SELECT 73 + - COUNT ( ALL + 38 ) + - NULLIF ( - 67, - - 52 * + 99 ) + + 29 * ( - - 52 )
----
1647

query I rowsort
SELECT 79 * + 68 * + - 19 AS col2
----
-102068

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

query II rowsort
SELECT 69 + - 99 AS col0, 14 AS col2
----
-30
14

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT DISTINCT - + 24 + - - NULLIF ( + 19, - COUNT( + 59 ) )
----
-5

skipif mysql # not compatible
query I rowsort label-179
SELECT DISTINCT - + 24 + - - NULLIF ( + 19, - COUNT ( + 59 ) )
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-180
SELECT DISTINCT - + 49 * - 19 / - CAST( NULL AS SIGNED ) - - + COALESCE ( 87, + - 30 ) + 92 / + 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-180
SELECT DISTINCT - + 49 * - 19 / - CAST ( NULL AS INTEGER ) - - + COALESCE ( 87, + - 30 ) + 92 / + 27 AS col0
----
NULL

query I rowsort
SELECT ALL + + 86 * - - 45 AS col0
----
3870

query I rowsort
SELECT - 78 * 73 + - 33 AS col0
----
-5727

onlyif mysql # aggregate syntax: 
query I rowsort label-183
SELECT DISTINCT + SUM( DISTINCT ( + ( + 32 ) ) ) + - 6 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-183
SELECT DISTINCT + SUM ( DISTINCT ( + ( + 32 ) ) ) + - 6 AS col0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-184
SELECT ALL + - NULLIF ( + - 20, COALESCE ( + 34, 2, + + COUNT( * ) ) * CAST( NULL AS SIGNED ) ) + - + 89
----
-69

skipif mysql # not compatible
query I rowsort label-184
SELECT ALL + - NULLIF ( + - 20, COALESCE ( + 34, 2, + + COUNT ( * ) ) * CAST ( NULL AS INTEGER ) ) + - + 89
----
-69

query I rowsort
SELECT + 50 + 29 * - + 51 AS col0
----
-1429

onlyif mysql # DIV for integer division: 
query I rowsort label-186
SELECT - NULLIF ( 59, - 17 ) DIV + 62 - + 22 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-186
SELECT - NULLIF ( 59, - 17 ) / + 62 - + 22 AS col2
----
-22

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-189
SELECT ALL - + 94 - + COUNT( * ) * - COALESCE ( + ( - COUNT( * ) ), - 59 ) * 8 AS col1, + ( + COUNT( * ) ) col1
----
-102
1

skipif mysql # not compatible
query II rowsort label-189
SELECT ALL - + 94 - + COUNT ( * ) * - COALESCE ( + ( - COUNT ( * ) ), - 59 ) * 8 AS col1, + ( + COUNT ( * ) ) col1
----
-102
1

query II rowsort
SELECT ALL - ( 85 ) AS col1, - 64
----
-85
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT COALESCE ( - - COUNT( * ), + 32 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-191
SELECT COALESCE ( - - COUNT ( * ), + 32 ) AS col2
----
1

query I rowsort
SELECT - 0 + + 25
----
25

query I rowsort
SELECT 92 * 62 * 32 AS col1
----
182528

onlyif mysql # aggregate syntax: 
query I rowsort label-194
SELECT COUNT( * ) + - 25 + 73 + - + COUNT( * ) * - 50 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-194
SELECT COUNT ( * ) + - 25 + 73 + - + COUNT ( * ) * - 50 AS col2
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-195
SELECT ALL - + 2 - - CAST( - - CAST( - - 45 AS SIGNED ) AS SIGNED ), 94 AS col2
----
43
94

skipif mysql # not compatible
query II rowsort label-195
SELECT ALL - + 2 - - CAST ( - - CAST ( - - 45 AS INTEGER ) AS INTEGER ), 94 AS col2
----
43
94

onlyif mysql # aggregate syntax: 
query I rowsort label-196
SELECT ( MAX( DISTINCT + 89 ) ) * 86 + - 86 + + 49 AS col0
----
7617

skipif mysql # not compatible
query I rowsort label-196
SELECT ( MAX ( DISTINCT + 89 ) ) * 86 + - 86 + + 49 AS col0
----
7617

query I rowsort
SELECT 22 * - NULLIF ( - 83, - 54 + + 65 + 7 * + + 3 ) * + 65 AS col0
----
118690

query I rowsort
SELECT 58 * 68 AS col1
----
3944

query I rowsort
SELECT 64 + - - 43
----
107

query I rowsort
SELECT ALL 23 * - 5 AS col2
----
-115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-201
SELECT DISTINCT - SUM( ALL 51 ) DIV + ( - 69 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-201
SELECT DISTINCT - SUM ( ALL 51 ) / + ( - 69 ) AS col0
----
0

query I rowsort
SELECT 48 * + 44 AS col0
----
2112

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-204
SELECT ALL 28 + 90 + - 18 + - CAST( COUNT( * ) AS SIGNED ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-204
SELECT ALL 28 + 90 + - 18 + - CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-205
SELECT CAST( + - 85 AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col2, COUNT( * ) DIV - 36 * - 71 AS col2, - 70
----
NULL
0
-70

skipif mysql # not compatible
query III rowsort label-205
SELECT CAST ( + - 85 AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) / - 36 * - 71 AS col2, - 70
----
NULL
0
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT - COUNT( - 40 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-206
SELECT - COUNT ( - 40 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-207
SELECT ALL 68 + - COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-207
SELECT ALL 68 + - COUNT ( * )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-208
SELECT 73 + - 96 * + - COUNT( * )
----
169

skipif mysql # not compatible
query I rowsort label-208
SELECT 73 + - 96 * + - COUNT ( * )
----
169

query I rowsort
SELECT ALL 80 + 57 - - ( - 96 ) AS col1
----
41

query I rowsort
SELECT DISTINCT 3 + + 98 + - 52 * + 11 * + 63
----
-35935

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-211
SELECT ALL MIN( + - 2 ) + + 32 + + + 37 * + COUNT( * ) + 6 + - CAST( + - MAX( - + 87 ) AS SIGNED ) * + COUNT( * ) * COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-211
SELECT ALL MIN ( + - 2 ) + + 32 + + + 37 * + COUNT ( * ) + 6 + - CAST ( + - MAX ( - + 87 ) AS INTEGER ) * + COUNT ( * ) * COUNT ( * )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT - COUNT( ALL - - 85 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-212
SELECT - COUNT ( ALL - - 85 ) AS col1
----
-1

query I rowsort
SELECT - 59 - 78 col2
----
-137

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-215
SELECT CASE 63 WHEN - 18 THEN 57 WHEN 87 * 74 + + MIN( ALL + 76 ) + - ( + 13 ) * + COUNT( * ) THEN NULL ELSE NULL END / - 66 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-215
SELECT CASE 63 WHEN - 18 THEN 57 WHEN 87 * 74 + + MIN ( ALL + 76 ) + - ( + 13 ) * + COUNT ( * ) THEN NULL ELSE NULL END / - 66 col0
----
NULL

query I rowsort
SELECT DISTINCT + 28 + + 93
----
121

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-218
SELECT 59 + - - 72 + COUNT( ALL - + 62 ) AS col1
----
132

skipif mysql # not compatible
query I rowsort label-218
SELECT 59 + - - 72 + COUNT ( ALL - + 62 ) AS col1
----
132

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

onlyif mysql # DIV for integer division: 
query I rowsort label-220
SELECT ALL - 12 DIV - + 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-220
SELECT ALL - 12 / - + 93 AS col0
----
0

query I rowsort
SELECT DISTINCT - 96 * 20 AS col0
----
-1920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-222
SELECT DISTINCT COALESCE ( COUNT( * ), + + ( + NULLIF ( + 77, 96 + 76 + - 13 DIV - NULLIF ( + + COUNT( * ), - MAX( - 46 ) + 31 + + - CAST( NULL AS SIGNED ) * - COUNT( * ) DIV 82 DIV + 33 + - + 40 ) ) ) ) DIV COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-222
SELECT DISTINCT COALESCE ( COUNT ( * ), + + ( + NULLIF ( + 77, 96 + 76 + - 13 / - NULLIF ( + + COUNT ( * ), - MAX ( - 46 ) + 31 + + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) / 82 / + 33 + - + 40 ) ) ) ) / COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT ALL + 63 * + COUNT( * ) + - 90 + - COUNT( * ) col1
----
-28

skipif mysql # not compatible
query I rowsort label-223
SELECT ALL + 63 * + COUNT ( * ) + - 90 + - COUNT ( * ) col1
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-224
SELECT ALL + 52 DIV + - 94 + + 14 + - - 45 * 28
----
1274

skipif mysql # not compatible
query I rowsort label-224
SELECT ALL + 52 / + - 94 + + 14 + - - 45 * 28
----
1274

query II rowsort
SELECT + COALESCE ( 72, 93, + 75 + 2 ) AS col0, + 36 * + 94
----
72
3384

query II rowsort
SELECT ALL + 28 AS col1, - 48 + 31 AS col0
----
28
-17

query I rowsort
SELECT - 76 * + 18 col0
----
-1368

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

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

query II rowsort
SELECT - 88 + - + 8 AS col1, - 43
----
-96
-43

query I rowsort
SELECT DISTINCT - 74 * - - 0 AS col0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-232
SELECT - MIN( DISTINCT + ( + 63 ) ) - ( + 40 ) + - + MAX( - 1 ) * + 36 col0
----
-67

skipif mysql # not compatible
query I rowsort label-232
SELECT - MIN ( DISTINCT + ( + 63 ) ) - ( + 40 ) + - + MAX ( - 1 ) * + 36 col0
----
-67

query I rowsort
SELECT ALL - CASE - 62 WHEN 66 THEN + 4 ELSE + - 82 END * - 97 * + 15
----
-119310

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

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

query I rowsort
SELECT - ( + 5 ) + + + 25 AS col0
----
20

query I rowsort
SELECT DISTINCT NULLIF ( 67, + + 63 + - 41 + + - ( 45 ) * + + 91 )
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-237
SELECT - 4 DIV + 3
----
-1

skipif mysql # not compatible
query I rowsort label-237
SELECT - 4 / + 3
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT - COUNT( * ) + - 65 * 89
----
-5786

skipif mysql # not compatible
query I rowsort label-238
SELECT - COUNT ( * ) + - 65 * 89
----
-5786

query I rowsort
SELECT - 22 + - 13 - - 66
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-240
SELECT ALL + 56 + + 17 DIV + 75
----
56

skipif mysql # not compatible
query I rowsort label-240
SELECT ALL + 56 + + 17 / + 75
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT + 11 * - 63 + - + 33 * MAX( 64 ) + 90 AS col2
----
-2715

skipif mysql # not compatible
query I rowsort label-241
SELECT + 11 * - 63 + - + 33 * MAX ( 64 ) + 90 AS col2
----
-2715

onlyif mysql # aggregate syntax: 
query I rowsort label-242
SELECT - MIN( - 82 ) + 51 AS col1
----
133

skipif mysql # not compatible
query I rowsort label-242
SELECT - MIN ( - 82 ) + 51 AS col1
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-243
SELECT ALL 86 * - NULLIF ( - - 56, + COUNT( * ) )
----
-4816

skipif mysql # not compatible
query I rowsort label-243
SELECT ALL 86 * - NULLIF ( - - 56, + COUNT ( * ) )
----
-4816

onlyif mysql # DIV for integer division: 
query III rowsort label-244
SELECT 39 col1, 73 DIV + 75 * - 82 AS col0, 69 * ( - 46 ) AS col1
----
39
0
-3174

skipif mysql # not compatible
query III rowsort label-244
SELECT 39 col1, 73 / + 75 * - 82 AS col0, 69 * ( - 46 ) AS col1
----
39
0
-3174

query I rowsort
SELECT DISTINCT + 11 * + ( + 27 )
----
297

query II rowsort
SELECT ALL 62 + COALESCE ( + 41, 33 ) AS col0, + 97
----
103
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-247
SELECT DISTINCT 10 AS col2, 46 + - CAST( - SUM( DISTINCT + 24 ) AS SIGNED ) AS col2
----
10
70

skipif mysql # not compatible
query II rowsort label-247
SELECT DISTINCT 10 AS col2, 46 + - CAST ( - SUM ( DISTINCT + 24 ) AS INTEGER ) AS col2
----
10
70

onlyif mysql # aggregate syntax: 
query I rowsort label-248
SELECT ALL CASE + + 13 WHEN - 51 / - + 72 + SUM( + 36 ) * 82 THEN - COUNT( * ) END / + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-248
SELECT ALL CASE + + 13 WHEN - 51 / - + 72 + SUM ( + 36 ) * 82 THEN - COUNT ( * ) END / + 26
----
NULL

query I rowsort
SELECT - - 66 col0
----
66

query I rowsort
SELECT ALL - - 27 + + + 79 AS col2
----
106

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

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

query II rowsort
SELECT - 72, NULLIF ( 44, - + 36 + 10 ) AS col2
----
-72
44

onlyif mysql # aggregate syntax: 
query I rowsort label-253
SELECT - 19 + - + COUNT( * ) + 60 col1
----
40

skipif mysql # not compatible
query I rowsort label-253
SELECT - 19 + - + COUNT ( * ) + 60 col1
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-254
SELECT + COUNT( * ) * 69 * 38 DIV + 30 col2
----
87

skipif mysql # not compatible
query I rowsort label-254
SELECT + COUNT ( * ) * 69 * 38 / + 30 col2
----
87

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-256
SELECT DISTINCT - NULLIF ( 41, + COUNT( * ) * - NULLIF ( - CAST( NULL AS SIGNED ), 91 ) ) - COALESCE ( + + 29, - + COUNT( * ) - + + 81 )
----
-70

skipif mysql # not compatible
query I rowsort label-256
SELECT DISTINCT - NULLIF ( 41, + COUNT ( * ) * - NULLIF ( - CAST ( NULL AS INTEGER ), 91 ) ) - COALESCE ( + + 29, - + COUNT ( * ) - + + 81 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT ALL COUNT( ALL - 72 ) - - - 13 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-257
SELECT ALL COUNT ( ALL - 72 ) - - - 13 AS col1
----
-12

query I rowsort
SELECT ALL - ( + 85 ) * - 2
----
170

onlyif mysql # DIV for integer division: 
query II rowsort label-259
SELECT + - 61 + 96 AS col2, + 70 DIV - - 63
----
35
1

skipif mysql # not compatible
query II rowsort label-259
SELECT + - 61 + 96 AS col2, + 70 / - - 63
----
35
1

query II rowsort
SELECT DISTINCT 38 * - - 33 AS col2, 51 col1
----
1254
51

query I rowsort
SELECT - + 75 * - 70 * 35 - - 61 + + 37 AS col0
----
183848

query II rowsort
SELECT 72 col0, 28 - 11 * - 92 AS col2
----
72
1040

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-263
SELECT ALL - 23 * + + 91 AS col1, CAST( NULL AS SIGNED ) AS col2
----
-2093
NULL

skipif mysql # not compatible
query II rowsort label-263
SELECT ALL - 23 * + + 91 AS col1, CAST ( NULL AS INTEGER ) AS col2
----
-2093
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-264
SELECT - 43 DIV - + 4 + - + 16 + COALESCE ( NULLIF ( 70, 64 * + - 88 * + - 22 + + - 77 * 5 ), - + 56, - 77, - + 31 ) * - - 74 * - 47 + - + 59
----
-243525

skipif mysql # not compatible
query I rowsort label-264
SELECT - 43 / - + 4 + - + 16 + COALESCE ( NULLIF ( 70, 64 * + - 88 * + - 22 + + - 77 * 5 ), - + 56, - 77, - + 31 ) * - - 74 * - 47 + - + 59
----
-243525

query II rowsort
SELECT + + 9, - 50 AS col1
----
9
-50

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-267
SELECT - COUNT( * ) DIV + - 13 * - - MAX( 42 ) * 41
----
0

skipif mysql # not compatible
query I rowsort label-267
SELECT - COUNT ( * ) / + - 13 * - - MAX ( 42 ) * 41
----
0

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

skipif mysql # not compatible
query I rowsort label-268
SELECT ( - MIN ( + 41 ) )
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-269
SELECT COALESCE ( + 34, - 74 * MIN( DISTINCT - 65 ) ) DIV - ( 83 ) + - COALESCE ( 87, - - 4 ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-269
SELECT COALESCE ( + 34, - 74 * MIN ( DISTINCT - 65 ) ) / - ( 83 ) + - COALESCE ( 87, - - 4 ) AS col0
----
-87

query I rowsort
SELECT + 29 * 70 AS col0
----
2030

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT ALL 99 * + - 31 * - + COUNT( * )
----
3069

skipif mysql # not compatible
query I rowsort label-271
SELECT ALL 99 * + - 31 * - + COUNT ( * )
----
3069

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-273
SELECT + 98 * - ( - CAST( 36 AS SIGNED ) ) * + + COUNT( * ) * 64 AS col2
----
225792

skipif mysql # not compatible
query I rowsort label-273
SELECT + 98 * - ( - CAST ( 36 AS INTEGER ) ) * + + COUNT ( * ) * 64 AS col2
----
225792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-274
SELECT DISTINCT 1 * 30 + + + COUNT( * ) * + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-274
SELECT DISTINCT 1 * 30 + + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL NULLIF ( - - 87, - - NULLIF ( + 83, + + 11 + - 55 ) )
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-276
SELECT + 88 * - SUM( + 50 ) + + CAST( + NULLIF ( + 50, + COUNT( * ) - + - CASE + 1 WHEN ( + COUNT( * ) ) + CASE - 97 WHEN + 13 / 51 + + - 51 * - 77 THEN NULL ELSE COUNT( * ) + - 58 / - - 2 / - ( - CAST( NULL AS SIGNED ) ) END * + 25 + + 36 * 42 THEN + 77 END * - + 70 * - 48 ) AS SIGNED ) AS col2
----
-4350

skipif mysql # not compatible
query I rowsort label-276
SELECT + 88 * - SUM ( + 50 ) + + CAST ( + NULLIF ( + 50, + COUNT ( * ) - + - CASE + 1 WHEN ( + COUNT ( * ) ) + CASE - 97 WHEN + 13 / 51 + + - 51 * - 77 THEN NULL ELSE COUNT ( * ) + - 58 / - - 2 / - ( - CAST ( NULL AS INTEGER ) ) END * + 25 + + 36 * 42 THEN + 77 END * - + 70 * - 48 ) AS INTEGER ) AS col2
----
-4350

onlyif mysql # DIV for integer division: 
query I rowsort label-277
SELECT - 21 DIV 11
----
-1

skipif mysql # not compatible
query I rowsort label-277
SELECT - 21 / 11
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-278
SELECT - CASE - 57 WHEN + 93 THEN NULL WHEN - 36 * - + 63 * 3 / + 91 THEN NULL ELSE - CAST( NULL AS SIGNED ) + + COUNT( * ) - + 96 + - + 68 + + ( 21 ) END - - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-278
SELECT - CASE - 57 WHEN + 93 THEN NULL WHEN - 36 * - + 63 * 3 / + 91 THEN NULL ELSE - CAST ( NULL AS INTEGER ) + + COUNT ( * ) - + 96 + - + 68 + + ( 21 ) END - - 40
----
NULL

query I rowsort
SELECT - + 56 * - + 11
----
616

query I rowsort
SELECT ALL + ( + + 32 ) AS col2
----
32

query II rowsort
SELECT DISTINCT 65 * + 99 AS col2, 95 - ( 31 ) - 83 AS col1
----
6435
-19

query I rowsort
SELECT ALL + 18 * - 50
----
-900

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

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

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

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

query I rowsort
SELECT + 71 - + - 64 + - 40
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-286
SELECT - 10 DIV 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-286
SELECT - 10 / 74 AS col2
----
0

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

query I rowsort
SELECT + 60 * + 76 AS col0
----
4560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-289
SELECT ALL + - 16 + - 72 + - + ( + CAST( NULL AS SIGNED ) ) - - 18 + 87 * 34 + - 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-289
SELECT ALL + - 16 + - 72 + - + ( + CAST ( NULL AS INTEGER ) ) - - 18 + 87 * 34 + - 75 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-290
SELECT DISTINCT - + 53 + - - CASE + 12 WHEN - - 22 * + - COUNT( * ) - - COUNT( * ) + 82 THEN CAST( NULL AS SIGNED ) WHEN 67 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-290
SELECT DISTINCT - + 53 + - - CASE + 12 WHEN - - 22 * + - COUNT ( * ) - - COUNT ( * ) + 82 THEN CAST ( NULL AS INTEGER ) WHEN 67 THEN NULL END
----
NULL

query I rowsort
SELECT ALL 53 + + 9
----
62

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

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

query I rowsort
SELECT DISTINCT 64 + - + 29 AS col1
----
35

query I rowsort
SELECT ALL 23 * - 88 AS col2
----
-2024

onlyif mysql # aggregate syntax: 
query II rowsort label-295
SELECT COUNT( * ) + + 64 * - 1 AS col1, COUNT( * ) + + 26
----
-63
27

skipif mysql # not compatible
query II rowsort label-295
SELECT COUNT ( * ) + + 64 * - 1 AS col1, COUNT ( * ) + + 26
----
-63
27

query I rowsort
SELECT ALL 17 + - - 96 + 50 - + + 62 * - 92 + + 70 AS col1
----
5937

onlyif mysql # aggregate syntax: 
query I rowsort label-297
SELECT 20 * + + NULLIF ( COUNT( * ), - 29 ) + - CASE 39 WHEN + 60 THEN NULL WHEN + 58 / 68 THEN NULL WHEN - + 18 THEN NULL WHEN - MIN( DISTINCT - 25 ) THEN + - 40 * - MAX( + 25 ) * - + 84 END + - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-297
SELECT 20 * + + NULLIF ( COUNT ( * ), - 29 ) + - CASE 39 WHEN + 60 THEN NULL WHEN + 58 / 68 THEN NULL WHEN - + 18 THEN NULL WHEN - MIN ( DISTINCT - 25 ) THEN + - 40 * - MAX ( + 25 ) * - + 84 END + - 59
----
NULL

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

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

query I rowsort
SELECT DISTINCT 22 * + 36 AS col2
----
792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-300
SELECT + 78 * COALESCE ( + + CAST( + 92 AS SIGNED ), CASE + 92 WHEN + COUNT( * ) * - 71 THEN - 99 + + 60 - 44 + + SUM( DISTINCT - 87 ) * + ( - 28 ) * - COALESCE ( + 18, 59, + - CAST( NULL AS SIGNED ) * + 85 + - 58 ) DIV + - 77 * - - COUNT( * ) + - 27 DIV + - MAX( - 94 ) ELSE - + 95 * 63 END ) + + + CAST( - 15 AS SIGNED ) DIV + 60 * - + 79 * 49 AS col2
----
7176

skipif mysql # not compatible
query I rowsort label-300
SELECT + 78 * COALESCE ( + + CAST ( + 92 AS INTEGER ), CASE + 92 WHEN + COUNT ( * ) * - 71 THEN - 99 + + 60 - 44 + + SUM ( DISTINCT - 87 ) * + ( - 28 ) * - COALESCE ( + 18, 59, + - CAST ( NULL AS INTEGER ) * + 85 + - 58 ) / + - 77 * - - COUNT ( * ) + - 27 / + - MAX ( - 94 ) ELSE - + 95 * 63 END ) + + + CAST ( - 15 AS INTEGER ) / + 60 * - + 79 * 49 AS col2
----
7176

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT DISTINCT 16 + 14 + - COUNT( * ) + - NULLIF ( + 77, - SUM( - 5 ) )
----
-48

skipif mysql # not compatible
query I rowsort label-301
SELECT DISTINCT 16 + 14 + - COUNT ( * ) + - NULLIF ( + 77, - SUM ( - 5 ) )
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-302
SELECT DISTINCT + NULLIF ( - 60, 44 ) DIV 38
----
-1

skipif mysql # not compatible
query I rowsort label-302
SELECT DISTINCT + NULLIF ( - 60, 44 ) / 38
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-303
SELECT ALL - MAX( ALL - 88 )
----
88

skipif mysql # not compatible
query I rowsort label-303
SELECT ALL - MAX ( ALL - 88 )
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-304
SELECT ALL 9 DIV - - MIN( - - 34 ) * + 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-304
SELECT ALL 9 / - - MIN ( - - 34 ) * + 99 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-305
SELECT 79 DIV + 12
----
6

skipif mysql # not compatible
query I rowsort label-305
SELECT 79 / + 12
----
6

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

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

query I rowsort
SELECT DISTINCT 44 * 90 AS col1
----
3960

onlyif mysql # aggregate syntax: 
query I rowsort label-308
SELECT CASE - - 8 WHEN - 49 + - - 35 THEN + + COUNT( * ) * - 64 END + + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-308
SELECT CASE - - 8 WHEN - 49 + - - 35 THEN + + COUNT ( * ) * - 64 END + + - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 27 + ( + 65 ) * - - 17 + - 54
----
1078

query II rowsort
SELECT DISTINCT - 57 AS col1, 50 AS col2
----
-57
50

query I rowsort
SELECT 44 + - 32 AS col1
----
12

query II rowsort
SELECT ALL 85, - 41 AS col2
----
85
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-313
SELECT DISTINCT - CASE + CAST( 74 AS SIGNED ) WHEN + AVG ( + + 92 ) THEN - - CAST( + 89 AS SIGNED ) * 51 + NULLIF ( + + 9, - CAST( NULL AS DECIMAL ) ) ELSE 80 + - COUNT( * ) END * 90 + + - 86 - + + COUNT( * ) + + - 46 * - + 4 * - + NULLIF ( - 17, - + 2 ) * + COUNT( * )
----
-4069

skipif mysql # not compatible
query I rowsort label-313
SELECT DISTINCT - CASE + CAST ( 74 AS INTEGER ) WHEN + AVG ( + + 92 ) THEN - - CAST ( + 89 AS INTEGER ) * 51 + NULLIF ( + + 9, - CAST ( NULL AS REAL ) ) ELSE 80 + - COUNT ( * ) END * 90 + + - 86 - + + COUNT ( * ) + + - 46 * - + 4 * - + NULLIF ( - 17, - + 2 ) * + COUNT ( * )
----
-4069

onlyif mysql # aggregate syntax: 
query II rowsort label-314
SELECT ALL + 8 AS col0, + COUNT( * ) AS col2
----
8
1

skipif mysql # not compatible
query II rowsort label-314
SELECT ALL + 8 AS col0, + COUNT ( * ) AS col2
----
8
1

query II rowsort
SELECT ALL 47, + 32 - ( - - 88 ) AS col0
----
47
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-316
SELECT 13 + - + 13 + 43 * - - 60 + - CASE + 19 WHEN + 60 * + 56 + 8 * + 49 * - ( + 4 ) THEN - 46 - + 59 * + 78 ELSE - 11 END AS col2, - ( + + 55 ) DIV + - COUNT( * ), - 70 + - + 21 AS col2
----
2591
55
-91

skipif mysql # not compatible
query III rowsort label-316
SELECT 13 + - + 13 + 43 * - - 60 + - CASE + 19 WHEN + 60 * + 56 + 8 * + 49 * - ( + 4 ) THEN - 46 - + 59 * + 78 ELSE - 11 END AS col2, - ( + + 55 ) / + - COUNT ( * ), - 70 + - + 21 AS col2
----
2591
55
-91

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

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

query I rowsort
SELECT + 17 + + + NULLIF ( - - 38, + ( 60 ) + - 42 ) * 90 AS col2
----
3437

query I rowsort
SELECT 23 + - 67 AS col2
----
-44

query I rowsort
SELECT ALL + + 64 + - + 79
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-321
SELECT DISTINCT - - 51 * + 96 / + 44 + CASE - CASE 92 WHEN + 20 THEN + + 30 / ( + 26 ) + + 93 END WHEN NULLIF ( 16, + ( - + COUNT( * ) ) ) THEN + 45 WHEN - COALESCE ( + - 30, - 29 * - 78, - 1 ) THEN NULL END AS col1, 25
----
NULL
25

skipif mysql # not compatible
query II rowsort label-321
SELECT DISTINCT - - 51 * + 96 / + 44 + CASE - CASE 92 WHEN + 20 THEN + + 30 / ( + 26 ) + + 93 END WHEN NULLIF ( 16, + ( - + COUNT ( * ) ) ) THEN + 45 WHEN - COALESCE ( + - 30, - 29 * - 78, - 1 ) THEN NULL END AS col1, 25
----
NULL
25

query I rowsort
SELECT 61 * + 8 * 32 * + ( + - 88 ) col1
----
-1374208

onlyif mysql # aggregate syntax: 
query I rowsort label-323
SELECT DISTINCT COUNT( * ) * AVG ( ALL + ( CASE - 77 WHEN - 3 THEN 27 + + - 38 * - - 29 + - + 31 END ) ) + - 76 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-323
SELECT DISTINCT COUNT ( * ) * AVG ( ALL + ( CASE - 77 WHEN - 3 THEN 27 + + - 38 * - - 29 + - + 31 END ) ) + - 76 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-324
SELECT + 62 DIV - 18 + 68 + + ( 73 ) + + ( - + 13 ) + 75 * - 43 * ( + + 5 )
----
-16000

skipif mysql # not compatible
query I rowsort label-324
SELECT + 62 / - 18 + 68 + + ( 73 ) + + ( - + 13 ) + 75 * - 43 * ( + + 5 )
----
-16000

query I rowsort
SELECT 54 * ( 78 ) AS col1
----
4212

query II rowsort
SELECT 99 + + 91 AS col1, 16
----
190
16

query I rowsort
SELECT ALL + 25 + - 12
----
13

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-330
SELECT MAX ( DISTINCT 40 )
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-331
SELECT ALL ( + 75 ) * 57 * - COUNT( * ) AS col2, ( + COALESCE ( - MIN( + 11 ), 91 ) ) * + 86 * + - COUNT( * ) AS col1
----
-4275
946

skipif mysql # not compatible
query II rowsort label-331
SELECT ALL ( + 75 ) * 57 * - COUNT ( * ) AS col2, ( + COALESCE ( - MIN ( + 11 ), 91 ) ) * + 86 * + - COUNT ( * ) AS col1
----
-4275
946

query I rowsort
SELECT ( + 83 ) * 20 AS col1
----
1660

onlyif mysql # aggregate syntax: 
query I rowsort label-333
SELECT 82 * - + COALESCE ( + COUNT( * ), + - 35 ) * - COUNT( * ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-333
SELECT 82 * - + COALESCE ( + COUNT ( * ), + - 35 ) * - COUNT ( * ) AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT DISTINCT - ( + MAX( DISTINCT + 27 ) ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-334
SELECT DISTINCT - ( + MAX ( DISTINCT + 27 ) ) AS col1
----
-27

onlyif mysql # DIV for integer division: 
query II rowsort label-335
SELECT DISTINCT - 29 DIV + + 9 + + 34 + + 95 AS col2, - 38
----
126
-38

skipif mysql # not compatible
query II rowsort label-335
SELECT DISTINCT - 29 / + + 9 + + 34 + + 95 AS col2, - 38
----
126
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-336
SELECT + - 79 DIV 99 + - 70 + - - SUM( ( - ( - 32 ) ) ) * + + 6 AS col2
----
122

skipif mysql # not compatible
query I rowsort label-336
SELECT + - 79 / 99 + - 70 + - - SUM ( ( - ( - 32 ) ) ) * + + 6 AS col2
----
122

query I rowsort
SELECT - + 99 * 54
----
-5346

query I rowsort
SELECT - - 41 * + - 94
----
-3854

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT + + 55 + + MIN( NULLIF ( + 51, 65 - - + 62 ) ) AS col0
----
106

skipif mysql # not compatible
query I rowsort label-339
SELECT + + 55 + + MIN ( NULLIF ( + 51, 65 - - + 62 ) ) AS col0
----
106

query I rowsort
SELECT ALL + 44 * - 73 * - 61 AS col2
----
195932

query I rowsort
SELECT ALL 84 + 87 col0
----
171

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

skipif mysql # not compatible
query I rowsort label-342
SELECT ALL + - COUNT ( * ) + + 72 AS col1
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-343
SELECT ALL - SUM( - + 26 ) + - 17 * - 13 DIV 1 - + 78 AS col0
----
169

skipif mysql # not compatible
query I rowsort label-343
SELECT ALL - SUM ( - + 26 ) + - 17 * - 13 / 1 - + 78 AS col0
----
169

query I rowsort
SELECT ALL - 83 * 38
----
-3154

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-346
SELECT - 55 - + - NULLIF ( 55, - - CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-346
SELECT - 55 - + - NULLIF ( 55, - - CAST ( NULL AS INTEGER ) ) AS col2
----
0

query I rowsort
SELECT ALL + 92 + + 77 col2
----
169

query I rowsort
SELECT - NULLIF ( 83, + 56 ) AS col2
----
-83

query I rowsort
SELECT + 23 * - 19 AS col1
----
-437

query II rowsort
SELECT 98 AS col0, + 19 + + 33 * 74
----
98
2461

onlyif mysql # aggregate syntax: 
query I rowsort label-351
SELECT ALL - 66 * 26 * - - COUNT( * ) * + 30 AS col0
----
-51480

skipif mysql # not compatible
query I rowsort label-351
SELECT ALL - 66 * 26 * - - COUNT ( * ) * + 30 AS col0
----
-51480

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-352
SELECT ALL + MIN( ALL + NULLIF ( - 50, ( + CAST( + 99 AS DECIMAL ) ) ) ) * - + 73 * + 53 + - 1
----
193449

skipif mysql # not compatible
query I rowsort label-352
SELECT ALL + MIN ( ALL + NULLIF ( - 50, ( + CAST ( + 99 AS REAL ) ) ) ) * - + 73 * + 53 + - 1
----
193449

query I rowsort
SELECT ALL - 66 * + - 32
----
2112

query I rowsort
SELECT - 4 * 12
----
-48

query I rowsort
SELECT ALL + 94 * + + 87 AS col1
----
8178

onlyif mysql # aggregate syntax: 
query I rowsort label-356
SELECT + 7 * - + COUNT( * ) + - - 73 * COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-356
SELECT + 7 * - + COUNT ( * ) + - - 73 * COUNT ( * )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-357
SELECT 94 * - NULLIF ( - 5, - + 81 * + COUNT( * ) * 50 + + + 14 ) + + 77 col2
----
547

skipif mysql # not compatible
query I rowsort label-357
SELECT 94 * - NULLIF ( - 5, - + 81 * + COUNT ( * ) * 50 + + + 14 ) + + 77 col2
----
547

onlyif mysql # DIV for integer division: 
query I rowsort label-358
SELECT + 15 DIV - + 57
----
0

skipif mysql # not compatible
query I rowsort label-358
SELECT + 15 / - + 57
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-359
SELECT + NULLIF ( - COALESCE ( 53, - ( 68 ) DIV 33 - + 52 + - - 47 DIV ( - - 22 ) ), - ( 65 ) )
----
-53

skipif mysql # not compatible
query I rowsort label-359
SELECT + NULLIF ( - COALESCE ( 53, - ( 68 ) / 33 - + 52 + - - 47 / ( - - 22 ) ), - ( 65 ) )
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-360
SELECT COALESCE ( CAST( NULL AS SIGNED ), 3, - 25 + - ( 28 ) )
----
3

skipif mysql # not compatible
query I rowsort label-360
SELECT COALESCE ( CAST ( NULL AS INTEGER ), 3, - 25 + - ( 28 ) )
----
3

query I rowsort
SELECT ALL 50 * 14
----
700

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT - 75 * - 97 + + NULLIF ( + 2 + COUNT( * ), - 25 + + 63 ) AS col0
----
7278

skipif mysql # not compatible
query I rowsort label-363
SELECT - 75 * - 97 + + NULLIF ( + 2 + COUNT ( * ), - 25 + + 63 ) AS col0
----
7278

query I rowsort
SELECT - 2 * 7 AS col2
----
-14

query I rowsort
SELECT + 8 + 23 * 4 AS col1
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-366
SELECT ALL - COUNT( * ) * + 65 + - 48 AS col2
----
-113

skipif mysql # not compatible
query I rowsort label-366
SELECT ALL - COUNT ( * ) * + 65 + - 48 AS col2
----
-113

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

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

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

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

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

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

query I rowsort
SELECT + 72 * - 90 AS col0
----
-6480

query I rowsort
SELECT - NULLIF ( + 79, - 95 ) AS col0
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-372
SELECT DISTINCT 1 + COALESCE ( 78, + 65 + + 62 ) DIV 99
----
1

skipif mysql # not compatible
query I rowsort label-372
SELECT DISTINCT 1 + COALESCE ( 78, + 65 + + 62 ) / 99
----
1

query I rowsort
SELECT DISTINCT - 14 * 78
----
-1092

query I rowsort
SELECT ALL 36 + - 92 * - 36
----
3348

query I rowsort
SELECT + 18 + 0 * + 50
----
18

query I rowsort
SELECT DISTINCT 41 + + 96 AS col1
----
137

query I rowsort
SELECT ALL 0 + 35 * - 86
----
-3010

query I rowsort
SELECT + 6 * 32 AS col2
----
192

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

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

query I rowsort
SELECT ALL 94 * - COALESCE ( - 68, 45 * - 10 + 24 )
----
6392

query I rowsort
SELECT + 0 + - 13 AS col1
----
-13

query I rowsort
SELECT DISTINCT 29 * - 63
----
-1827

onlyif mysql # aggregate syntax: 
query I rowsort label-383
SELECT ALL + 7 - MAX( 43 )
----
-36

skipif mysql # not compatible
query I rowsort label-383
SELECT ALL + 7 - MAX ( 43 )
----
-36

query I rowsort
SELECT DISTINCT 93 * - 30 col1
----
-2790

query I rowsort
SELECT - 4 * ( + 19 * 19 ) AS col2
----
-1444

query I rowsort
SELECT + 16 * 80
----
1280

onlyif mysql # DIV for integer division: 
query I rowsort label-387
SELECT 98 DIV 78 + - 89 col0
----
-88

skipif mysql # not compatible
query I rowsort label-387
SELECT 98 / 78 + - 89 col0
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-388
SELECT - 53 DIV 59 + - 43
----
-43

skipif mysql # not compatible
query I rowsort label-388
SELECT - 53 / 59 + - 43
----
-43

query I rowsort
SELECT DISTINCT + 17 * 93 AS col0
----
1581

onlyif mysql # DIV for integer division: 
query I rowsort label-390
SELECT DISTINCT 27 DIV 9
----
3

skipif mysql # not compatible
query I rowsort label-390
SELECT DISTINCT 27 / 9
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-391
SELECT 17 DIV COALESCE ( 41 * + 6, + 15 + - ( - 20 ) * 35 )
----
0

skipif mysql # not compatible
query I rowsort label-391
SELECT 17 / COALESCE ( 41 * + 6, + 15 + - ( - 20 ) * 35 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-392
SELECT DISTINCT + NULLIF ( - COUNT( * ), 17 * - 52 ) + 83 * 83
----
6888

skipif mysql # not compatible
query I rowsort label-392
SELECT DISTINCT + NULLIF ( - COUNT ( * ), 17 * - 52 ) + 83 * 83
----
6888

onlyif mysql # DIV for integer division: 
query I rowsort label-393
SELECT + COALESCE ( 42, 56 * 96 ) DIV - 4
----
-10

skipif mysql # not compatible
query I rowsort label-393
SELECT + COALESCE ( 42, 56 * 96 ) / - 4
----
-10

query I rowsort
SELECT 19 * CASE 70 * + 41 WHEN + 40 THEN 8 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-395
SELECT - MIN( + 23 ) * + 37 - NULLIF ( 0 + + 82, COUNT( * ) ) AS col1
----
-933

skipif mysql # not compatible
query I rowsort label-395
SELECT - MIN ( + 23 ) * + 37 - NULLIF ( 0 + + 82, COUNT ( * ) ) AS col1
----
-933

onlyif mysql # aggregate syntax: 
query I rowsort label-396
SELECT - 21 * + MAX( ALL + 83 ) AS col1
----
-1743

skipif mysql # not compatible
query I rowsort label-396
SELECT - 21 * + MAX ( ALL + 83 ) AS col1
----
-1743

query I rowsort
SELECT ALL + + 86 + 44 * 89
----
4002

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

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

query I rowsort
SELECT ALL - - 74 + - 34 col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-400
SELECT COUNT( * ) - + 26
----
-25

skipif mysql # not compatible
query I rowsort label-400
SELECT COUNT ( * ) - + 26
----
-25

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

query I rowsort
SELECT 70 + 71 AS col0
----
141

query I rowsort
SELECT DISTINCT + + 32 * 21 AS col2
----
672

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

query I rowsort
SELECT DISTINCT + - ( - 17 ) * + 4 AS col2
----
68

query I rowsort
SELECT ALL - - 2 - 66 * 68 AS col2
----
-4486

query I rowsort
SELECT DISTINCT + + ( - 4 ) * - 41 AS col2
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT MAX( - 62 ) + 17 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-408
SELECT MAX ( - 62 ) + 17 AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT NULLIF ( - + COUNT( * ), 9 ) + + 55
----
54

skipif mysql # not compatible
query I rowsort label-409
SELECT NULLIF ( - + COUNT ( * ), 9 ) + + 55
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-410
SELECT ( + + NULLIF ( + 94, 58 + COUNT( * ) ) ) * + COUNT( * ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-410
SELECT ( + + NULLIF ( + 94, 58 + COUNT ( * ) ) ) * + COUNT ( * ) AS col0
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-411
SELECT DISTINCT COUNT( * ) DIV + 67 col0
----
0

skipif mysql # not compatible
query I rowsort label-411
SELECT DISTINCT COUNT ( * ) / + 67 col0
----
0

query I rowsort
SELECT 88 - - 8
----
96

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-414
SELECT ALL MAX( ALL - 96 ) DIV - 39
----
2

skipif mysql # not compatible
query I rowsort label-414
SELECT ALL MAX ( ALL - 96 ) / - 39
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-415
SELECT ALL MAX( + 84 ) * + COALESCE ( 27, 19 + - 99 ) AS col2
----
2268

skipif mysql # not compatible
query I rowsort label-415
SELECT ALL MAX ( + 84 ) * + COALESCE ( 27, 19 + - 99 ) AS col2
----
2268

query I rowsort
SELECT ALL NULLIF ( 90, 27 ) + 27 * + 15 AS col2
----
495

onlyif mysql # aggregate syntax: 
query I rowsort label-417
SELECT 31 * + 52 * - COUNT( * ) - COUNT( * ) col0
----
-1613

skipif mysql # not compatible
query I rowsort label-417
SELECT 31 * + 52 * - COUNT ( * ) - COUNT ( * ) col0
----
-1613

onlyif mysql # aggregate syntax: 
query I rowsort label-418
SELECT ALL + 4 + - - COUNT( * ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-418
SELECT ALL + 4 + - - COUNT ( * ) AS col2
----
5

query I rowsort
SELECT NULLIF ( - - 45, + COALESCE ( + 23, 14 ) ) * 85 AS col2
----
3825

onlyif mysql # aggregate syntax: 
query I rowsort label-420
SELECT ALL COUNT( * ) + + + ( - 41 ) + - ( - 92 )
----
52

skipif mysql # not compatible
query I rowsort label-420
SELECT ALL COUNT ( * ) + + + ( - 41 ) + - ( - 92 )
----
52

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

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

query I rowsort
SELECT 64 - + 93 AS col2
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-423
SELECT MIN( + 94 ) + MIN( DISTINCT CAST( + 88 AS SIGNED ) + 90 * + 54 ) col2
----
5042

skipif mysql # not compatible
query I rowsort label-423
SELECT MIN ( + 94 ) + MIN ( DISTINCT CAST ( + 88 AS INTEGER ) + 90 * + 54 ) col2
----
5042

onlyif mysql # aggregate syntax: 
query I rowsort label-424
SELECT ALL + 37 + - 48 + ( COUNT( * ) )
----
-10

skipif mysql # not compatible
query I rowsort label-424
SELECT ALL + 37 + - 48 + ( COUNT ( * ) )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-425
SELECT DISTINCT - NULLIF ( + + COUNT( * ), 28 + + 9 )
----
-1

skipif mysql # not compatible
query I rowsort label-425
SELECT DISTINCT - NULLIF ( + + COUNT ( * ), 28 + + 9 )
----
-1

query I rowsort
SELECT 13 + - - 10 * 31 AS col1
----
323

query I rowsort
SELECT ALL + 56 + - 82
----
-26

query I rowsort
SELECT 44 * + 16
----
704

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-430
SELECT COUNT( * ) DIV - 92 + MAX( DISTINCT 1 ) DIV + 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-430
SELECT COUNT ( * ) / - 92 + MAX ( DISTINCT 1 ) / + 86 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-431
SELECT + NULLIF ( - 52, 89 ) DIV 27
----
-1

skipif mysql # not compatible
query I rowsort label-431
SELECT + NULLIF ( - 52, 89 ) / 27
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-432
SELECT DISTINCT - 13 DIV 40 * - 30 + - 78
----
-78

skipif mysql # not compatible
query I rowsort label-432
SELECT DISTINCT - 13 / 40 * - 30 + - 78
----
-78

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-434
SELECT ALL COUNT( * ) * + 42 * - - ( - 38 ) * 41 AS col1
----
-65436

skipif mysql # not compatible
query I rowsort label-434
SELECT ALL COUNT ( * ) * + 42 * - - ( - 38 ) * 41 AS col1
----
-65436

query I rowsort
SELECT 98 + NULLIF ( 61, + 57 * - AVG ( DISTINCT + 7 * + 71 ) + + 32 * + 35 ) * - 15
----
-817

query II rowsort
SELECT 21 col0, 26
----
21
26

query I rowsort
SELECT ALL + 35 * + 69
----
2415

query I rowsort
SELECT 88 + - - 48
----
136

query I rowsort
SELECT 92 - - 94 AS col2
----
186

query I rowsort
SELECT 98 + + 84
----
182

onlyif mysql # aggregate syntax: 
query II rowsort label-441
SELECT 38 AS col2, MIN( ALL - 41 )
----
38
-41

skipif mysql # not compatible
query II rowsort label-441
SELECT 38 AS col2, MIN ( ALL - 41 )
----
38
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-442
SELECT - 63 DIV - + 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-442
SELECT - 63 / - + 69 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-443
SELECT ALL + COUNT( * ) + + 38 + 72 AS col1
----
111

skipif mysql # not compatible
query I rowsort label-443
SELECT ALL + COUNT ( * ) + + 38 + 72 AS col1
----
111

query II rowsort
SELECT ALL 41 AS col0, 54 AS col0
----
41
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-445
SELECT ALL - 72 + - 21 - 54 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-445
SELECT ALL - 72 + - 21 - 54 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-446
SELECT DISTINCT + 17 + + CAST( NULL AS SIGNED ) / - 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-446
SELECT DISTINCT + 17 + + CAST ( NULL AS INTEGER ) / - 71 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-447
SELECT - MAX( 39 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-447
SELECT - MAX ( 39 ) AS col2
----
-39

query I rowsort
SELECT - 57 * + 60 + COALESCE ( - 84, ( 88 ) * 34 ) col0
----
-3504

onlyif mysql # aggregate syntax: 
query I rowsort label-449
SELECT ALL - ( - MAX( ALL 22 ) ) * - 51 + + 29 AS col0
----
-1093

skipif mysql # not compatible
query I rowsort label-449
SELECT ALL - ( - MAX ( ALL 22 ) ) * - 51 + + 29 AS col0
----
-1093

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT COALESCE ( ( - CASE - 30 WHEN + 31 THEN 72 * COUNT( * ) WHEN + COUNT( * ) THEN 72 END ), - ( + COUNT( * ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-450
SELECT COALESCE ( ( - CASE - 30 WHEN + 31 THEN 72 * COUNT ( * ) WHEN + COUNT ( * ) THEN 72 END ), - ( + COUNT ( * ) ) ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-451
SELECT COALESCE ( + 86, + + 36 * + ( CAST( + 58 AS SIGNED ) ) ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-451
SELECT COALESCE ( + 86, + + 36 * + ( CAST ( + 58 AS INTEGER ) ) ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-452
SELECT NULLIF ( - + COALESCE ( - COUNT( * ), ( - 12 ) * 55 ), + 43 * - 56 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-452
SELECT NULLIF ( - + COALESCE ( - COUNT ( * ), ( - 12 ) * 55 ), + 43 * - 56 ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-453
SELECT CASE + 32 WHEN - 51 + - COUNT( * ) THEN 60 WHEN - CAST( - 2 AS SIGNED ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-453
SELECT CASE + 32 WHEN - 51 + - COUNT ( * ) THEN 60 WHEN - CAST ( - 2 AS INTEGER ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT ALL + ( + - 33 ) * - - 88 * + COUNT( * ) + 15 AS col0
----
-2889

skipif mysql # not compatible
query I rowsort label-454
SELECT ALL + ( + - 33 ) * - - 88 * + COUNT ( * ) + 15 AS col0
----
-2889

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-455
SELECT - COUNT( ALL + - 49 ) DIV + 19 + + SUM( DISTINCT - 14 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-455
SELECT - COUNT ( ALL + - 49 ) / + 19 + + SUM ( DISTINCT - 14 ) AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT + MIN( - 8 ) col1
----
-8

skipif mysql # not compatible
query I rowsort label-456
SELECT + MIN ( - 8 ) col1
----
-8

query I rowsort
SELECT + 43 * + 87 * + 59
----
220719

onlyif mysql # aggregate syntax: 
query I rowsort label-458
SELECT ALL CASE + 56 WHEN + 27 + 3 THEN + 68 END * 94 + - MIN( + 86 + - ( 49 - - 15 ) * - 53 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-458
SELECT ALL CASE + 56 WHEN + 27 + 3 THEN + 68 END * 94 + - MIN ( + 86 + - ( 49 - - 15 ) * - 53 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-459
SELECT ALL + 67 * - + 49 + - CASE + 82 WHEN 55 / + 79 THEN NULL WHEN - CAST( NULL AS SIGNED ) * - 91 + NULLIF ( 42, + 92 / - 98 ) THEN + COALESCE ( - ( + AVG ( ALL 21 ) ), - COALESCE ( 89, - 94 * - 9, MIN( ALL - 6 ) * + 94, COUNT( * ) ) / MIN( ALL 10 ) ) ELSE NULL END + + 33 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-459
SELECT ALL + 67 * - + 49 + - CASE + 82 WHEN 55 / + 79 THEN NULL WHEN - CAST ( NULL AS INTEGER ) * - 91 + NULLIF ( 42, + 92 / - 98 ) THEN + COALESCE ( - ( + AVG ( ALL 21 ) ), - COALESCE ( 89, - 94 * - 9, MIN ( ALL - 6 ) * + 94, COUNT ( * ) ) / MIN ( ALL 10 ) ) ELSE NULL END + + 33 + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-460
SELECT + - COUNT( * ) col1, - ( + + 21 ) - - COUNT( * ) * 65 AS col1
----
-1
44

skipif mysql # not compatible
query II rowsort label-460
SELECT + - COUNT ( * ) col1, - ( + + 21 ) - - COUNT ( * ) * 65 AS col1
----
-1
44

query II rowsort
SELECT DISTINCT + 99, ( 52 ) AS col0
----
99
52

query II rowsort
SELECT + 84 AS col0, 74 + + 46 * 54
----
84
2558

query I rowsort
SELECT DISTINCT 66 * - 72 AS col0
----
-4752

query I rowsort
SELECT + + 45 - 43
----
2

query I rowsort
SELECT - + 39 * + - 28 AS col2
----
1092

onlyif mysql # aggregate syntax: 
query I rowsort label-466
SELECT + COUNT( + + 0 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-466
SELECT + COUNT ( + + 0 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-467
SELECT + - CASE - - 61 WHEN - - 32 THEN NULL WHEN 18 * 76 THEN NULL ELSE COUNT( * ) DIV 4 END - + 42 * 5
----
-210

skipif mysql # not compatible
query I rowsort label-467
SELECT + - CASE - - 61 WHEN - - 32 THEN NULL WHEN 18 * 76 THEN NULL ELSE COUNT ( * ) / 4 END - + 42 * 5
----
-210

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-469
SELECT + 81 * - + MAX( CAST( NULL AS SIGNED ) ) * + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-469
SELECT + 81 * - + MAX ( CAST ( NULL AS INTEGER ) ) * + 41
----
NULL

query I rowsort
SELECT DISTINCT - + 64 * + ( + - 30 ) + - 31
----
1889

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT ALL MAX( + NULLIF ( - - NULLIF ( + + 9, - 48 ), - 7 * - 7 + + 69 ) )
----
9

skipif mysql # not compatible
query I rowsort label-471
SELECT ALL MAX ( + NULLIF ( - - NULLIF ( + + 9, - 48 ), - 7 * - 7 + + 69 ) )
----
9

query I rowsort
SELECT + NULLIF ( - 51, + - ( + + 81 ) ) * 50
----
-2550

query II rowsort
SELECT - 82 * + 56, - 88 - 2 col1
----
-4592
-90

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-475
SELECT ALL + COUNT( * ) + + CAST( + + 54 AS SIGNED ) + MAX( ALL 64 ) * NULLIF ( - 10, - 35 + CASE 97 WHEN 98 THEN - 17 END * - 21 ) * + 72
----
-46025

skipif mysql # not compatible
query I rowsort label-475
SELECT ALL + COUNT ( * ) + + CAST ( + + 54 AS INTEGER ) + MAX ( ALL 64 ) * NULLIF ( - 10, - 35 + CASE 97 WHEN 98 THEN - 17 END * - 21 ) * + 72
----
-46025

query I rowsort
SELECT + ( + - 14 ) + 60 AS col2
----
46

query I rowsort
SELECT DISTINCT 34 + - 53
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-478
SELECT - 46 + + 3 * + COALESCE ( + 3, + COUNT( * ), 35 + - 94, + MIN( ALL + 18 ) ) * ( - COUNT( * ) )
----
-55

skipif mysql # not compatible
query I rowsort label-478
SELECT - 46 + + 3 * + COALESCE ( + 3, + COUNT ( * ), 35 + - 94, + MIN ( ALL + 18 ) ) * ( - COUNT ( * ) )
----
-55

onlyif mysql # DIV for integer division: 
query II rowsort label-479
SELECT - 63 DIV 52, 38 + 79 AS col2
----
-1
117

skipif mysql # not compatible
query II rowsort label-479
SELECT - 63 / 52, 38 + 79 AS col2
----
-1
117

query I rowsort
SELECT ALL 69 + + + 69 - - + 91
----
229

query I rowsort
SELECT ALL + 49 + + 74 AS col2
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-482
SELECT ALL + COALESCE ( - + 34, COUNT( * ), - - COUNT( * ) * COALESCE ( COUNT( * ), COUNT( * ) ) ) + + 98 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-482
SELECT ALL + COALESCE ( - + 34, COUNT ( * ), - - COUNT ( * ) * COALESCE ( COUNT ( * ), COUNT ( * ) ) ) + + 98 AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT DISTINCT + COUNT( * ) + - 7 * - + 14 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-483
SELECT DISTINCT + COUNT ( * ) + - 7 * - + 14 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-484
SELECT - MIN( ALL - - 61 ) + + - 9 * - 0
----
-61

skipif mysql # not compatible
query I rowsort label-484
SELECT - MIN ( ALL - - 61 ) + + - 9 * - 0
----
-61

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

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

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

query I rowsort
SELECT - 97 - - 69
----
-28

query I rowsort
SELECT - 56 * + - 46
----
2576

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT - COALESCE ( - - COUNT( * ), + MIN( DISTINCT + - 29 ), - 48 * + 15 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-489
SELECT - COALESCE ( - - COUNT ( * ), + MIN ( DISTINCT + - 29 ), - 48 * + 15 ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-490
SELECT ALL + COUNT( DISTINCT - 84 ) DIV + 45 - + 46 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-490
SELECT ALL + COUNT ( DISTINCT - 84 ) / + 45 - + 46 AS col0
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-491
SELECT DISTINCT - 77 DIV + 29 - - - 2 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-491
SELECT DISTINCT - 77 / + 29 - - - 2 AS col1
----
-4

query I rowsort
SELECT - ( - + 55 ) * + 18
----
990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-493
SELECT ALL + ( + - MAX( - + NULLIF ( - - 91, CAST( + 80 AS SIGNED ) * 54 ) ) ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-493
SELECT ALL + ( + - MAX ( - + NULLIF ( - - 91, CAST ( + 80 AS INTEGER ) * 54 ) ) ) AS col1
----
91

query I rowsort
SELECT 34 * + + 75 + - 91 - + + ( - 10 ) AS col0
----
2469

query I rowsort
SELECT - + 90 * - 7
----
630

onlyif mysql # aggregate syntax: 
query I rowsort label-496
SELECT 74 * + CASE COALESCE ( 44, - 53 - 40, - 89 + - COUNT( * ) ) WHEN - 80 THEN - 50 + 53 * 5 END + + NULLIF ( + 83, 13 * 26 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-496
SELECT 74 * + CASE COALESCE ( 44, - 53 - 40, - 89 + - COUNT ( * ) ) WHEN - 80 THEN - 50 + 53 * 5 END + + NULLIF ( + 83, 13 * 26 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-497
SELECT + - CASE + 86 WHEN + COUNT( * ) THEN + 97 + - AVG ( + 63 ) WHEN 42 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-497
SELECT + - CASE + 86 WHEN + COUNT ( * ) THEN + 97 + - AVG ( + 63 ) WHEN 42 THEN NULL END
----
NULL

query I rowsort
SELECT + 57 + + 44 AS col2
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-499
SELECT ALL - CAST( NULL AS SIGNED ) * 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-499
SELECT ALL - CAST ( NULL AS INTEGER ) * 14 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-500
SELECT + + 8 DIV + - 64 * 92 * - 53 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-500
SELECT + + 8 / + - 64 * 92 * - 53 AS col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-501
SELECT DISTINCT - + 58 DIV + 84 AS col0, - 97
----
0
-97

skipif mysql # not compatible
query II rowsort label-501
SELECT DISTINCT - + 58 / + 84 AS col0, - 97
----
0
-97

query I rowsort
SELECT DISTINCT - 22 * + 81 AS col2
----
-1782

query I rowsort
SELECT - + 89 * + 55 AS col1
----
-4895

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

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

query I rowsort
SELECT DISTINCT 31 * - - 1 + - 41 + - 62 AS col0
----
-72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT ALL + 20 * 4 + - 23 * - + COUNT( * )
----
103

skipif mysql # not compatible
query I rowsort label-507
SELECT ALL + 20 * 4 + - 23 * - + COUNT ( * )
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-508
SELECT DISTINCT - NULLIF ( + 69, + - 30 * + - ( + 58 ) ) * + COUNT( * ) + 97
----
28

skipif mysql # not compatible
query I rowsort label-508
SELECT DISTINCT - NULLIF ( + 69, + - 30 * + - ( + 58 ) ) * + COUNT ( * ) + 97
----
28

query I rowsort
SELECT DISTINCT 93 + - - 72 AS col0
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT ALL SUM( ALL - 5 ) + 16 col2
----
11

skipif mysql # not compatible
query I rowsort label-510
SELECT ALL SUM ( ALL - 5 ) + 16 col2
----
11

query I rowsort
SELECT ALL + 17 + + ( + 66 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-512
SELECT 33 + + COUNT( * ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-512
SELECT 33 + + COUNT ( * ) AS col0
----
34

query I rowsort
SELECT 36 * - 78 AS col0
----
-2808

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT ALL COUNT( * ) + - 19 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-514
SELECT ALL COUNT ( * ) + - 19 AS col0
----
-18

query I rowsort
SELECT DISTINCT 21 * + 1 AS col2
----
21

query I rowsort
SELECT - COALESCE ( + 76, - 5 + - 47, + + 44 - + 83, 91 ) AS col1
----
-76

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

skipif mysql # not compatible
query I rowsort label-517
SELECT ALL ( COUNT ( + 51 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-518
SELECT 89 * MIN( ALL - 26 ) * + 52 + + 84 AS col1
----
-120244

skipif mysql # not compatible
query I rowsort label-518
SELECT 89 * MIN ( ALL - 26 ) * + 52 + + 84 AS col1
----
-120244

query I rowsort
SELECT 90 * - NULLIF ( + - 4, - + ( ( 89 ) ) )
----
360

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-520
SELECT - 88 * 8 * - 21 * - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-520
SELECT - 88 * 8 * - 21 * - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-521
SELECT DISTINCT - - SUM( ALL 71 )
----
71

skipif mysql # not compatible
query I rowsort label-521
SELECT DISTINCT - - SUM ( ALL 71 )
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-522
SELECT DISTINCT - - 23 * + ( + CAST( NULL AS SIGNED ) ) * 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-522
SELECT DISTINCT - - 23 * + ( + CAST ( NULL AS INTEGER ) ) * 29 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-523
SELECT ALL - 73 * - + 61 + + NULLIF ( + 91, COALESCE ( ( COUNT( * ) ), COUNT( * ) + 23 * 50, 84 ) ) AS col1
----
4544

skipif mysql # not compatible
query I rowsort label-523
SELECT ALL - 73 * - + 61 + + NULLIF ( + 91, COALESCE ( ( COUNT ( * ) ), COUNT ( * ) + 23 * 50, 84 ) ) AS col1
----
4544

query I rowsort
SELECT DISTINCT - + 31 * - 85 + ( - 97 ) + + 22 AS col1
----
2560

query I rowsort
SELECT ALL - 93 + 91 + 54 * 0 * 64 AS col1
----
-2

query II rowsort
SELECT ALL - - 47 AS col1, 16 AS col0
----
47
16

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT + NULLIF ( - COUNT( * ), - 29 + + COUNT( * ) * + 23 ) * 88
----
-88

skipif mysql # not compatible
query I rowsort label-527
SELECT + NULLIF ( - COUNT ( * ), - 29 + + COUNT ( * ) * + 23 ) * 88
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-528
SELECT 36 * - ( + + COUNT( * ) ) + + 46 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-528
SELECT 36 * - ( + + COUNT ( * ) ) + + 46 AS col2
----
10

query I rowsort
SELECT ALL - 32 + - 28 + + 83
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-530
SELECT 29 DIV 39 + - - COUNT( * ) - COALESCE ( + + 84, 22 * + COUNT( * ) ) DIV - COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-530
SELECT 29 / 39 + - - COUNT ( * ) - COALESCE ( + + 84, 22 * + COUNT ( * ) ) / - COUNT ( * )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT ALL SUM( ALL 87 ) * 56 + - + 99
----
4773

skipif mysql # not compatible
query I rowsort label-531
SELECT ALL SUM ( ALL 87 ) * 56 + - + 99
----
4773

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

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

query I rowsort
SELECT ALL - 49 + 61
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-534
SELECT COUNT( * ) DIV - COALESCE ( + - COUNT( * ), 29 + + 86 )
----
1

skipif mysql # not compatible
query I rowsort label-534
SELECT COUNT ( * ) / - COALESCE ( + - COUNT ( * ), 29 + + 86 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-535
SELECT ALL + 85 + + 59 DIV + ( - 1 )
----
26

skipif mysql # not compatible
query I rowsort label-535
SELECT ALL + 85 + + 59 / + ( - 1 )
----
26

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-536
SELECT DISTINCT - NULLIF ( + + CAST( NULL AS DECIMAL ), - CAST( + NULLIF ( - - 61, - + 28 ) AS SIGNED ) * + 32 ) + - ( 66 ) / + 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-536
SELECT DISTINCT - NULLIF ( + + CAST ( NULL AS REAL ), - CAST ( + NULLIF ( - - 61, - + 28 ) AS INTEGER ) * + 32 ) + - ( 66 ) / + 8 AS col1
----
NULL

query II rowsort
SELECT ALL 74 AS col0, - ( + 3 ) AS col2
----
74
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-538
SELECT ALL 10 + + 88 DIV + + 62 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-538
SELECT ALL 10 + + 88 / + + 62 AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT 27 - + 98 + COUNT( * ) col1
----
-70

skipif mysql # not compatible
query I rowsort label-539
SELECT 27 - + 98 + COUNT ( * ) col1
----
-70

query I rowsort
SELECT ALL 22 * 88
----
1936

query I rowsort
SELECT - 95 * 66 + 72 AS col1
----
-6198

onlyif mysql # aggregate syntax: 
query I rowsort label-542
SELECT ( ( + MIN( ALL + 75 ) ) ) - 9 col2
----
66

skipif mysql # not compatible
query I rowsort label-542
SELECT ( ( + MIN ( ALL + 75 ) ) ) - 9 col2
----
66

query I rowsort
SELECT 17 * + 41 * + 43 AS col0
----
29971

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-544
SELECT - 41, + 29 * 86 - + NULLIF ( + 98, 9 + CASE MAX( ALL CAST( NULL AS DECIMAL ) ) WHEN - 55 / 38 THEN NULL ELSE - 92 * + 88 END ) AS col2
----
-41
2396

skipif mysql # not compatible
query II rowsort label-544
SELECT - 41, + 29 * 86 - + NULLIF ( + 98, 9 + CASE MAX ( ALL CAST ( NULL AS REAL ) ) WHEN - 55 / 38 THEN NULL ELSE - 92 * + 88 END ) AS col2
----
-41
2396

query I rowsort
SELECT ( - 44 ) + + 78
----
34

query II rowsort
SELECT ALL 95 AS col2, - ( - 18 )
----
95
18

query II rowsort
SELECT 67 AS col2, 17 + - + 63
----
67
-46

query II rowsort
SELECT ALL 97 AS col2, 38
----
97
38

query I rowsort
SELECT ALL 62 * 62 * - 19 AS col0
----
-73036

onlyif mysql # aggregate syntax: 
query II rowsort label-550
SELECT DISTINCT 54 col1, SUM( - 8 ) AS col2
----
54
-8

skipif mysql # not compatible
query II rowsort label-550
SELECT DISTINCT 54 col1, SUM ( - 8 ) AS col2
----
54
-8

query II rowsort
SELECT ALL 5 AS col0, 0 - 12
----
5
-12

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-553
SELECT CASE + ( ( + SUM( ALL - 84 ) ) ) WHEN 28 * + ( - 59 ) THEN NULL ELSE - 91 * - 26 + - COUNT( * ) END DIV COUNT( 16 ) AS col1
----
2365

skipif mysql # not compatible
query I rowsort label-553
SELECT CASE + ( ( + SUM ( ALL - 84 ) ) ) WHEN 28 * + ( - 59 ) THEN NULL ELSE - 91 * - 26 + - COUNT ( * ) END / COUNT ( 16 ) AS col1
----
2365

query I rowsort
SELECT 67 * - ( 16 )
----
-1072

onlyif mysql # aggregate syntax: 
query I rowsort label-555
SELECT ALL + 12 * - NULLIF ( - + CASE - ( - 16 ) WHEN + COUNT( DISTINCT - 15 ) + - 96 THEN CASE - 12 WHEN 30 THEN NULL WHEN ( 89 ) - 92 THEN - 63 END * + 81 + 90 WHEN + 29 + - ( + CASE + 60 WHEN - COUNT( * ) THEN NULL WHEN + 61 THEN NULL WHEN - 96 THEN 30 + - 14 WHEN - ( 71 ) THEN - 91 END ) THEN 5 + + 41 * - 75 ELSE NULL END, - 46 ) / - 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-555
SELECT ALL + 12 * - NULLIF ( - + CASE - ( - 16 ) WHEN + COUNT ( DISTINCT - 15 ) + - 96 THEN CASE - 12 WHEN 30 THEN NULL WHEN ( 89 ) - 92 THEN - 63 END * + 81 + 90 WHEN + 29 + - ( + CASE + 60 WHEN - COUNT ( * ) THEN NULL WHEN + 61 THEN NULL WHEN - 96 THEN 30 + - 14 WHEN - ( 71 ) THEN - 91 END ) THEN 5 + + 41 * - 75 ELSE NULL END, - 46 ) / - 15 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT ALL NULLIF ( + COUNT( * ), - 0 / COUNT( * ) * - - 95 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-556
SELECT ALL NULLIF ( + COUNT ( * ), - 0 / COUNT ( * ) * - - 95 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT 44 - + COUNT( * ) + + 93 AS col1
----
136

skipif mysql # not compatible
query I rowsort label-557
SELECT 44 - + COUNT ( * ) + + 93 AS col1
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-558
SELECT + 72 * - + CAST( NULL AS SIGNED ) col1, + 51 * 10
----
NULL
510

skipif mysql # not compatible
query II rowsort label-558
SELECT + 72 * - + CAST ( NULL AS INTEGER ) col1, + 51 * 10
----
NULL
510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-559
SELECT + CAST( NULL AS SIGNED ) + - 82 * CASE - - COUNT( * ) WHEN 49 THEN - 14 WHEN 36 THEN 91 * - 81 - - CAST( - ( 67 ) AS SIGNED ) / - 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-559
SELECT + CAST ( NULL AS INTEGER ) + - 82 * CASE - - COUNT ( * ) WHEN 49 THEN - 14 WHEN 36 THEN 91 * - 81 - - CAST ( - ( 67 ) AS INTEGER ) / - 11 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT ALL - COUNT( - 70 )
----
-1

skipif mysql # not compatible
query I rowsort label-560
SELECT ALL - COUNT ( - 70 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-561
SELECT + CAST( NULL AS SIGNED ) / - 79 * 81 / 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-561
SELECT + CAST ( NULL AS INTEGER ) / - 79 * 81 / 68 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-562
SELECT ALL + 17 * - COALESCE ( + 77, CASE - + 38 WHEN 49 / - 15 + 70 * ( - 27 * 31 ) THEN 82 * 90 ELSE CAST( 24 AS SIGNED ) END ) + SUM( DISTINCT - 16 )
----
-1325

skipif mysql # not compatible
query I rowsort label-562
SELECT ALL + 17 * - COALESCE ( + 77, CASE - + 38 WHEN 49 / - 15 + 70 * ( - 27 * 31 ) THEN 82 * 90 ELSE CAST ( 24 AS INTEGER ) END ) + SUM ( DISTINCT - 16 )
----
-1325

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT ALL - 67 * - + CASE - 87 WHEN - ( COUNT( * ) ) - + + 91 THEN 73 END + 43 + - 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-563
SELECT ALL - 67 * - + CASE - 87 WHEN - ( COUNT ( * ) ) - + + 91 THEN 73 END + 43 + - 23 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-564
SELECT + 12 DIV + - 45 + - 35 DIV + 30 - + 11
----
-12

skipif mysql # not compatible
query I rowsort label-564
SELECT + 12 / + - 45 + - 35 / + 30 - + 11
----
-12

query II rowsort
SELECT ALL - - 35 AS col2, 28 * + 42 - - 98
----
35
1274

query I rowsort
SELECT + - 2 * - - 69 + + + 14
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-567
SELECT 5 + COUNT( * ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-567
SELECT 5 + COUNT ( * ) AS col2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-568
SELECT ALL 16 * + - 70 + + 29 + 26 DIV - 82 AS col0
----
-1091

skipif mysql # not compatible
query I rowsort label-568
SELECT ALL 16 * + - 70 + + 29 + 26 / - 82 AS col0
----
-1091

query II rowsort
SELECT + + 8, 56 * + - 75 AS col1
----
8
-4200

onlyif mysql # aggregate syntax: 
query I rowsort label-570
SELECT - SUM( - + 51 ) * + - 74 AS col2
----
-3774

skipif mysql # not compatible
query I rowsort label-570
SELECT - SUM ( - + 51 ) * + - 74 AS col2
----
-3774

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-571
SELECT + 20 * 33 * + + 59 + + + 89 * - + NULLIF ( + 60, CAST( NULL AS SIGNED ) / - MIN( DISTINCT - 57 * + 50 ) )
----
33600

skipif mysql # not compatible
query I rowsort label-571
SELECT + 20 * 33 * + + 59 + + + 89 * - + NULLIF ( + 60, CAST ( NULL AS INTEGER ) / - MIN ( DISTINCT - 57 * + 50 ) )
----
33600

onlyif mysql # aggregate syntax: 
query II rowsort label-572
SELECT 80, - COUNT( * ) col1
----
80
-1

skipif mysql # not compatible
query II rowsort label-572
SELECT 80, - COUNT ( * ) col1
----
80
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-573
SELECT MAX( - CAST( NULL AS SIGNED ) ) / - + CAST( NULL AS SIGNED ) + - 12 * - COALESCE ( 87, - ( AVG ( - 53 ) ) - + 36 * 77 ) + + 64 * - 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-573
SELECT MAX ( - CAST ( NULL AS INTEGER ) ) / - + CAST ( NULL AS INTEGER ) + - 12 * - COALESCE ( 87, - ( AVG ( - 53 ) ) - + 36 * 77 ) + + 64 * - 39 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-574
SELECT ALL + + 53 * + COALESCE ( - COALESCE ( ( - - 31 ), - + SUM( 91 ) ), - 88 * COUNT( * ) + + 49 ) * 39
----
-64077

skipif mysql # not compatible
query I rowsort label-574
SELECT ALL + + 53 * + COALESCE ( - COALESCE ( ( - - 31 ), - + SUM ( 91 ) ), - 88 * COUNT ( * ) + + 49 ) * 39
----
-64077

query I rowsort
SELECT - 47 + - 77 * + + 34 * NULLIF ( + + 12, - + 79 * 2 )
----
-31463

query I rowsort
SELECT ALL 92 * - 64 + + NULLIF ( ( + - 40 ), - + ( - 71 ) + 40 )
----
-5928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-577
SELECT 90 * - 26 + - COUNT( * ) + - 18 + + CAST( NULL AS SIGNED ) + + 38 * - ( + 70 ) + 28 * 26 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-577
SELECT 90 * - 26 + - COUNT ( * ) + - 18 + + CAST ( NULL AS INTEGER ) + + 38 * - ( + 70 ) + 28 * 26 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 66 * - + 85 + + 96 AS col2
----
5706

onlyif mysql # aggregate syntax: 
query II rowsort label-579
SELECT ALL + 90 * - 41 AS col2, COALESCE ( - NULLIF ( + + 83, - 59 ), COUNT( * ) + COUNT( * ) * - 21 ) AS col2
----
-3690
-83

skipif mysql # not compatible
query II rowsort label-579
SELECT ALL + 90 * - 41 AS col2, COALESCE ( - NULLIF ( + + 83, - 59 ), COUNT ( * ) + COUNT ( * ) * - 21 ) AS col2
----
-3690
-83

query II rowsort
SELECT DISTINCT + ( - 6 ) AS col2, 86 * - - 93
----
-6
7998

onlyif mysql # aggregate syntax: 
query I rowsort label-581
SELECT ALL - ( - NULLIF ( + 13, + 59 * + - ( + 11 ) ) ) - + 55 * MAX( 67 )
----
-3672

skipif mysql # not compatible
query I rowsort label-581
SELECT ALL - ( - NULLIF ( + 13, + 59 * + - ( + 11 ) ) ) - + 55 * MAX ( 67 )
----
-3672

onlyif mysql # aggregate syntax: 
query I rowsort label-582
SELECT + COUNT( ( - 69 ) ) + - ( + 60 ) * - 31
----
1861

skipif mysql # not compatible
query I rowsort label-582
SELECT + COUNT ( ( - 69 ) ) + - ( + 60 ) * - 31
----
1861

query I rowsort
SELECT ALL + ( + + 5 ) - 50 AS col2
----
-45

query I rowsort
SELECT - 57 * + + 17
----
-969

onlyif mysql # aggregate syntax: 
query I rowsort label-585
SELECT ALL + 55 - COUNT( - 90 ) * - 39 * + 65
----
2590

skipif mysql # not compatible
query I rowsort label-585
SELECT ALL + 55 - COUNT ( - 90 ) * - 39 * + 65
----
2590

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-586
SELECT DISTINCT COALESCE ( + 69, + - 42 + + CAST( - COUNT( * ) AS SIGNED ), COALESCE ( - 23, + CAST( NULL AS SIGNED ) + + 33, + ( - 36 ) ) )
----
69

skipif mysql # not compatible
query I rowsort label-586
SELECT DISTINCT COALESCE ( + 69, + - 42 + + CAST ( - COUNT ( * ) AS INTEGER ), COALESCE ( - 23, + CAST ( NULL AS INTEGER ) + + 33, + ( - 36 ) ) )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT DISTINCT 62 * MAX( DISTINCT + 34 )
----
2108

skipif mysql # not compatible
query I rowsort label-587
SELECT DISTINCT 62 * MAX ( DISTINCT + 34 )
----
2108

query I rowsort
SELECT ALL 21 - + 35 col1
----
-14

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-590
SELECT DISTINCT COALESCE ( + CAST( NULL AS SIGNED ), 59 ), 78 AS col2
----
59
78

skipif mysql # not compatible
query II rowsort label-590
SELECT DISTINCT COALESCE ( + CAST ( NULL AS INTEGER ), 59 ), 78 AS col2
----
59
78

query II rowsort
SELECT DISTINCT + 64 * 72 AS col1, + 14 AS col0
----
4608
14

onlyif mysql # aggregate syntax: 
query I rowsort label-592
SELECT - + ( - 75 ) * + COALESCE ( - 39, - COUNT( + 75 ) - + 52 - 89 * + ( 53 ) * 75 ) * 58 + 37 * 23 AS col2
----
-168799

skipif mysql # not compatible
query I rowsort label-592
SELECT - + ( - 75 ) * + COALESCE ( - 39, - COUNT ( + 75 ) - + 52 - 89 * + ( 53 ) * 75 ) * 58 + 37 * 23 AS col2
----
-168799

query I rowsort
SELECT + + 72 * - + 14
----
-1008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-594
SELECT ALL + CASE - COALESCE ( 69, + 63 + 15 / + + 46 * - - COUNT( * ), - 29 + - 35 * 28 ) WHEN - 82 THEN NULL WHEN 92 - + CAST( 36 + + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS SIGNED ) THEN + CASE 98 WHEN 74 + 0 THEN + 87 END ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-594
SELECT ALL + CASE - COALESCE ( 69, + 63 + 15 / + + 46 * - - COUNT ( * ), - 29 + - 35 * 28 ) WHEN - 82 THEN NULL WHEN 92 - + CAST ( 36 + + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS INTEGER ) THEN + CASE 98 WHEN 74 + 0 THEN + 87 END ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-595
SELECT + + 28 - - - COUNT( * ) + + - NULLIF ( SUM( DISTINCT 96 ), COUNT( * ) ) * - - ( + NULLIF ( - 1, COUNT( * ) + CAST( NULL AS DECIMAL ) ) ) AS col2
----
123

skipif mysql # not compatible
query I rowsort label-595
SELECT + + 28 - - - COUNT ( * ) + + - NULLIF ( SUM ( DISTINCT 96 ), COUNT ( * ) ) * - - ( + NULLIF ( - 1, COUNT ( * ) + CAST ( NULL AS REAL ) ) ) AS col2
----
123

query I rowsort
SELECT + 9 * 57 * 16 + 25 * - + 85
----
6083

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

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

query I rowsort
SELECT ALL 62 + - + 77
----
-15

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-600
SELECT DISTINCT + NULLIF ( - + 31, - ( + + COUNT( * ) ) * 9 * - + 66 + + - 33 + CAST( NULL AS SIGNED ) ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-600
SELECT DISTINCT + NULLIF ( - + 31, - ( + + COUNT ( * ) ) * 9 * - + 66 + + - 33 + CAST ( NULL AS INTEGER ) ) AS col0
----
-31

query I rowsort
SELECT DISTINCT 11 + - - 62 col1
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-602
SELECT DISTINCT 39 DIV - 9 + 81 * 53
----
4289

skipif mysql # not compatible
query I rowsort label-602
SELECT DISTINCT 39 / - 9 + 81 * 53
----
4289

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-603
SELECT ALL 76 DIV 87 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-603
SELECT ALL 76 / 87 + COUNT ( * )
----
1

query I rowsort
SELECT ALL 33 * 17 col1
----
561

query I rowsort
SELECT + - 85 * + + 7 * - + 1
----
595

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-606
SELECT ALL + 5 DIV + - 82 DIV - COUNT( * ) + 68 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-606
SELECT ALL + 5 / + - 82 / - COUNT ( * ) + 68 AS col1
----
68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-607
SELECT + NULLIF ( + + 59, - CAST( NULL AS DECIMAL ) + ( + + COUNT( * ) ) ) DIV 77
----
0

skipif mysql # not compatible
query I rowsort label-607
SELECT + NULLIF ( + + 59, - CAST ( NULL AS REAL ) + ( + + COUNT ( * ) ) ) / 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT ALL 96 * + + COUNT( * ) + + 18 + NULLIF ( 74, 43 ) * - - COUNT( * ) col0
----
188

skipif mysql # not compatible
query I rowsort label-608
SELECT ALL 96 * + + COUNT ( * ) + + 18 + NULLIF ( 74, 43 ) * - - COUNT ( * ) col0
----
188

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

query I rowsort
SELECT ( - - 20 ) AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-611
SELECT - 99 * - - 43 * + NULLIF ( + 87, + - COUNT( * ) * MAX( - + NULLIF ( 12, 50 ) ) + - 6 * 87 - 67 ) * COUNT( * ) AS col1
----
-370359

skipif mysql # not compatible
query I rowsort label-611
SELECT - 99 * - - 43 * + NULLIF ( + 87, + - COUNT ( * ) * MAX ( - + NULLIF ( 12, 50 ) ) + - 6 * 87 - 67 ) * COUNT ( * ) AS col1
----
-370359

query I rowsort
SELECT DISTINCT + 78 * - - 65 - 3 AS col2
----
5067

query I rowsort
SELECT + 5 * - 61
----
-305

query II rowsort
SELECT + 23, - 78 AS col2
----
23
-78

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-615
SELECT + 81 - - CAST( AVG ( ALL + 40 ) AS SIGNED ) DIV 34 col1
----
82

skipif mysql # not compatible
query I rowsort label-615
SELECT + 81 - - CAST ( AVG ( ALL + 40 ) AS INTEGER ) / 34 col1
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-616
SELECT ALL + 88 AS col0, ( - COUNT( * ) ) DIV - COUNT( * )
----
88
1

skipif mysql # not compatible
query II rowsort label-616
SELECT ALL + 88 AS col0, ( - COUNT ( * ) ) / - COUNT ( * )
----
88
1

query I rowsort
SELECT - 57 - - 31 AS col0
----
-26

query I rowsort
SELECT DISTINCT ( 98 ) * 40 AS col1
----
3920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-619
SELECT - COALESCE ( 43, 96 ) DIV + 72 AS col0, CAST( NULL AS SIGNED ) * + - COUNT( * ) * - 60 * + + 77 + - 86
----
0
NULL

skipif mysql # not compatible
query II rowsort label-619
SELECT - COALESCE ( 43, 96 ) / + 72 AS col0, CAST ( NULL AS INTEGER ) * + - COUNT ( * ) * - 60 * + + 77 + - 86
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-620
SELECT ALL + SUM( - + 64 ) * - + 91, CASE - - 85 WHEN COUNT( * ) THEN NULL WHEN + 30 THEN NULL WHEN CAST( - 0 AS DECIMAL ) THEN - 89 * SUM( ALL + 18 ) END * + 79 + - 55 AS col0
----
5824
NULL

skipif mysql # not compatible
query II rowsort label-620
SELECT ALL + SUM ( - + 64 ) * - + 91, CASE - - 85 WHEN COUNT ( * ) THEN NULL WHEN + 30 THEN NULL WHEN CAST ( - 0 AS REAL ) THEN - 89 * SUM ( ALL + 18 ) END * + 79 + - 55 AS col0
----
5824
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT ALL COALESCE ( - + SUM( - - 46 ), + COALESCE ( - 95, - COUNT( * ), - ( CASE COALESCE ( + 80, + COUNT( * ) * - 70 ) WHEN - 38 THEN 64 + + 51 WHEN 0 * - 1 THEN NULL WHEN 73 THEN NULLIF ( 50, 42 + - 15 ) ELSE NULL END ), + 17 * 14 ) ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-621
SELECT ALL COALESCE ( - + SUM ( - - 46 ), + COALESCE ( - 95, - COUNT ( * ), - ( CASE COALESCE ( + 80, + COUNT ( * ) * - 70 ) WHEN - 38 THEN 64 + + 51 WHEN 0 * - 1 THEN NULL WHEN 73 THEN NULLIF ( 50, 42 + - 15 ) ELSE NULL END ), + 17 * 14 ) ) AS col0
----
-46

query I rowsort
SELECT + 97 + - 90
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-623
SELECT - COUNT( * ) - CAST( 38 AS SIGNED )
----
-39

skipif mysql # not compatible
query I rowsort label-623
SELECT - COUNT ( * ) - CAST ( 38 AS INTEGER )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT 96 * + 9 + - 20 * COUNT( - 63 )
----
844

skipif mysql # not compatible
query I rowsort label-624
SELECT 96 * + 9 + - 20 * COUNT ( - 63 )
----
844

onlyif mysql # DIV for integer division: 
query II rowsort label-625
SELECT - 79 - - 69 * 55 AS col1, - 82 DIV - ( - - 63 ) AS col1
----
3716
1

skipif mysql # not compatible
query II rowsort label-625
SELECT - 79 - - 69 * 55 AS col1, - 82 / - ( - - 63 ) AS col1
----
3716
1

onlyif mysql # DIV for integer division: 
query I rowsort label-626
SELECT - 91 DIV + 21 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-626
SELECT - 91 / + 21 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT - 97 * + MAX( + 96 )
----
-9312

skipif mysql # not compatible
query I rowsort label-627
SELECT - 97 * + MAX ( + 96 )
----
-9312

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-629
SELECT DISTINCT + COUNT( * ) + - ( - COALESCE ( + - COUNT( * ), + + 49, - COALESCE ( 64, + - 17, - 71, - ( 52 ) ) * 59 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-629
SELECT DISTINCT + COUNT ( * ) + - ( - COALESCE ( + - COUNT ( * ), + + 49, - COALESCE ( 64, + - 17, - 71, - ( 52 ) ) * 59 ) ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-630
SELECT - MIN( - 78 ) DIV + 35
----
2

skipif mysql # not compatible
query I rowsort label-630
SELECT - MIN ( - 78 ) / + 35
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-631
SELECT DISTINCT - - 99 DIV 19 * + + 79 * - + 64
----
-25280

skipif mysql # not compatible
query I rowsort label-631
SELECT DISTINCT - - 99 / 19 * + + 79 * - + 64
----
-25280

query I rowsort
SELECT ALL 51 + - 10 + - - 76 + 36 * ( + - 31 ) * 14 AS col2
----
-15507

onlyif mysql # aggregate syntax: 
query I rowsort label-633
SELECT DISTINCT - - ( + 73 ) + + + 23 + + MIN( + 84 ) * + ( COUNT( * ) ) + NULLIF ( COUNT( * ), 55 ) - 38
----
143

skipif mysql # not compatible
query I rowsort label-633
SELECT DISTINCT - - ( + 73 ) + + + 23 + + MIN ( + 84 ) * + ( COUNT ( * ) ) + NULLIF ( COUNT ( * ), 55 ) - 38
----
143

query I rowsort
SELECT + - 0 * 67
----
0

query I rowsort
SELECT ALL + 94 + + ( + 35 )
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT ALL + NULLIF ( - 60, - 37 + - - COALESCE ( 33, + + 12 * + + COUNT( * ) ) * + - ( - 58 ) * - NULLIF ( 37 * + 72, - COUNT( ALL 37 ) ) ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-636
SELECT ALL + NULLIF ( - 60, - 37 + - - COALESCE ( 33, + + 12 * + + COUNT ( * ) ) * + - ( - 58 ) * - NULLIF ( 37 * + 72, - COUNT ( ALL 37 ) ) ) AS col1
----
-60

query I rowsort
SELECT - - ( - 31 )
----
-31

query I rowsort
SELECT - 96 + + 34 - + 19 AS col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-639
SELECT + COALESCE ( - + COUNT( * ), - - 4 * + + 51 * 15 - 70 + 80 * + ( 87 ) - COUNT( * ), 32 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-639
SELECT + COALESCE ( - + COUNT ( * ), - - 4 * + + 51 * 15 - 70 + 80 * + ( 87 ) - COUNT ( * ), 32 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT - 10 + + 21 - - + 6 * 25 + - 79 - + 36 + - - 68 * + - 67 * 10 + 27 * ( MIN( 23 ) )
----
-44893

skipif mysql # not compatible
query I rowsort label-640
SELECT - 10 + + 21 - - + 6 * 25 + - 79 - + 36 + - - 68 * + - 67 * 10 + 27 * ( MIN ( 23 ) )
----
-44893

query I rowsort
SELECT ALL + + 44 + 84 * + 84
----
7100

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT 64 * - 55 * - 44 - - 49 * + - 62 + COUNT( * )
----
151843

skipif mysql # not compatible
query I rowsort label-642
SELECT 64 * - 55 * - 44 - - 49 * + - 62 + COUNT ( * )
----
151843

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT ALL - MIN( DISTINCT - 16 ) - + 15 * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-643
SELECT ALL - MIN ( DISTINCT - 16 ) - + 15 * + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-644
SELECT + 56, 21 - - - 38 + - - COUNT( ALL 87 ) AS col1
----
56
-16

skipif mysql # not compatible
query II rowsort label-644
SELECT + 56, 21 - - - 38 + - - COUNT ( ALL 87 ) AS col1
----
56
-16

query I rowsort
SELECT DISTINCT 85 * - 25 AS col1
----
-2125

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT ALL COUNT( * ) - - + 51
----
52

skipif mysql # not compatible
query I rowsort label-646
SELECT ALL COUNT ( * ) - - + 51
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-647
SELECT 36 + - 64 DIV 15 + - 19 * + 70 * + 77
----
-102378

skipif mysql # not compatible
query I rowsort label-647
SELECT 36 + - 64 / 15 + - 19 * + 70 * + 77
----
-102378

query I rowsort
SELECT ALL 99 - + 69 + + ( + 88 )
----
118

query I rowsort
SELECT 7 * 93
----
651

onlyif mysql # aggregate syntax: 
query I rowsort label-650
SELECT DISTINCT 17 * COUNT( * ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-650
SELECT DISTINCT 17 * COUNT ( * ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-651
SELECT 26 + NULLIF ( - 72, 46 + COUNT( * ) ) * + 55
----
-3934

skipif mysql # not compatible
query I rowsort label-651
SELECT 26 + NULLIF ( - 72, 46 + COUNT ( * ) ) * + 55
----
-3934

query I rowsort
SELECT ( + + 74 ) + 20 AS col0
----
94

query I rowsort
SELECT DISTINCT 98 * 73
----
7154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-654
SELECT DISTINCT ( 53 ) * - - CAST( NULL AS SIGNED ) * 14 * + - COALESCE ( + 40, + COUNT( * ) + - AVG ( - ( - 88 ) ) * 20 ) * - 11 + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-654
SELECT DISTINCT ( 53 ) * - - CAST ( NULL AS INTEGER ) * 14 * + - COALESCE ( + 40, + COUNT ( * ) + - AVG ( - ( - 88 ) ) * 20 ) * - 11 + 22
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-655
SELECT ( - - ( + - ( + + 58 ) ) ) * 71 * + NULLIF ( + 71, + - COALESCE ( CASE + 29 WHEN + 14 THEN NULL WHEN + 4 + COUNT( * ) THEN NULL WHEN + 52 THEN NULL ELSE + AVG ( ALL 41 ) END, 5, - COUNT( * ) ) ) * + 79 - + ( - ( 37 ) + 46 DIV - 61 ) DIV + 63
----
-23097862

skipif mysql # not compatible
query I rowsort label-655
SELECT ( - - ( + - ( + + 58 ) ) ) * 71 * + NULLIF ( + 71, + - COALESCE ( CASE + 29 WHEN + 14 THEN NULL WHEN + 4 + COUNT ( * ) THEN NULL WHEN + 52 THEN NULL ELSE + AVG ( ALL 41 ) END, 5, - COUNT ( * ) ) ) * + 79 - + ( - ( 37 ) + 46 / - 61 ) / + 63
----
-23097862

query I rowsort
SELECT 67 * - 87 AS col0
----
-5829

query I rowsort
SELECT 71 + - - 46
----
117

query I rowsort
SELECT ALL 3 + - - 60
----
63

query I rowsort
SELECT ALL - 19 * - 34 * + 94 * - CASE - - 31 WHEN - + 25 THEN NULL ELSE - 38 END
----
2307512

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-660
SELECT 57 + + 13 + + 3 - + + 11 DIV - - 88 + COUNT( * ) DIV + + 2
----
73

skipif mysql # not compatible
query I rowsort label-660
SELECT 57 + + 13 + + 3 - + + 11 / - - 88 + COUNT ( * ) / + + 2
----
73

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

query I rowsort
SELECT - 82 * 55
----
-4510

query I rowsort
SELECT ALL - 1 * 59 AS col1
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-664
SELECT - COUNT( DISTINCT 14 ) AS col2, + COALESCE ( + + 54, - CAST( - CASE - 41 WHEN + COUNT( * ) * ( ( - 2 ) ) THEN - 42 ELSE CAST( CASE - 28 WHEN + 90 THEN - COUNT( * ) WHEN - 66 THEN + 90 END AS SIGNED ) DIV 46 END AS SIGNED ) * COUNT( * ), 31 * + COUNT( * ) - 80 * ( 59 ) ) DIV 44 AS col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-664
SELECT - COUNT ( DISTINCT 14 ) AS col2, + COALESCE ( + + 54, - CAST ( - CASE - 41 WHEN + COUNT ( * ) * ( ( - 2 ) ) THEN - 42 ELSE CAST ( CASE - 28 WHEN + 90 THEN - COUNT ( * ) WHEN - 66 THEN + 90 END AS INTEGER ) / 46 END AS INTEGER ) * COUNT ( * ), 31 * + COUNT ( * ) - 80 * ( 59 ) ) / 44 AS col1
----
-1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-665
SELECT ALL + COUNT( * ) + + 93 + - 0 * - 86 * 79 DIV 48
----
94

skipif mysql # not compatible
query I rowsort label-665
SELECT ALL + COUNT ( * ) + + 93 + - 0 * - 86 * 79 / 48
----
94

query I rowsort
SELECT - 14 + - - 9 AS col2
----
-5

query I rowsort
SELECT 11 + 98
----
109

query II rowsort
SELECT - 80 + - 75, - 60 * 41 AS col0
----
-155
-2460

query I rowsort
SELECT 59 * + 17
----
1003

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-671
SELECT DISTINCT + 15 - + 8 + CAST( NULL AS SIGNED ) * - 9 * 73
----
NULL

skipif mysql # not compatible
query I rowsort label-671
SELECT DISTINCT + 15 - + 8 + CAST ( NULL AS INTEGER ) * - 9 * 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT - MAX( 34 ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-672
SELECT - MAX ( 34 ) AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT ALL + - COUNT( * ) - MAX( 82 ) + + + 23 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-673
SELECT ALL + - COUNT ( * ) - MAX ( 82 ) + + + 23 AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-674
SELECT ALL - 24 * COUNT( * ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-674
SELECT ALL - 24 * COUNT ( * ) AS col0
----
-24

query I rowsort
SELECT + 21 * - 64
----
-1344

onlyif mysql # DIV for integer division: 
query I rowsort label-676
SELECT ALL - 13 DIV 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-676
SELECT ALL - 13 / 82 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-677
SELECT - COUNT( * ) DIV + - 58 + ( - 17 ) + 98
----
81

skipif mysql # not compatible
query I rowsort label-677
SELECT - COUNT ( * ) / + - 58 + ( - 17 ) + 98
----
81

query I rowsort
SELECT 10 * - + 19
----
-190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-679
SELECT ALL - ( - + CAST( + 63 AS SIGNED ) ) * + 48
----
3024

skipif mysql # not compatible
query I rowsort label-679
SELECT ALL - ( - + CAST ( + 63 AS INTEGER ) ) * + 48
----
3024

query I rowsort
SELECT DISTINCT - CASE AVG ( - 69 ) WHEN - ( - 32 ) * 42 THEN - 45 + - - 54 ELSE + 95 * + 78 END AS col1
----
-7410

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT SUM( - - CASE 22 WHEN 25 * + 6 + - - 30 THEN 16 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-681
SELECT SUM ( - - CASE 22 WHEN 25 * + 6 + - - 30 THEN 16 ELSE NULL END )
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-683
SELECT COUNT( * ) + + COALESCE ( - ( + 70 ), - 74 DIV COALESCE ( + COUNT( * ), + - 85 ), + 26 DIV - 17 * 40 ) + 8 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-683
SELECT COUNT ( * ) + + COALESCE ( - ( + 70 ), - 74 / COALESCE ( + COUNT ( * ), + - 85 ), + 26 / - 17 * 40 ) + 8 AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-684
SELECT DISTINCT 44 * 45 * + COUNT( * )
----
1980

skipif mysql # not compatible
query I rowsort label-684
SELECT DISTINCT 44 * 45 * + COUNT ( * )
----
1980

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

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

query I rowsort
SELECT ALL 38 + - 55 AS col2
----
-17

query II rowsort
SELECT ALL - 32 AS col1, + 74 AS col2
----
-32
74

onlyif mysql # aggregate syntax: 
query I rowsort label-688
SELECT DISTINCT 67 + + + MIN( - + 5 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-688
SELECT DISTINCT 67 + + + MIN ( - + 5 ) AS col0
----
62

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

skipif mysql # not compatible
query I rowsort label-689
SELECT + SUM ( 86 )
----
86

query I rowsort
SELECT ALL 45 * - 22 + + 22 AS col2
----
-968

query I rowsort
SELECT ALL - 60 + + 59 AS col1
----
-1

query I rowsort
SELECT DISTINCT 54 + - + 94
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-693
SELECT - 83 AS col1, CAST( ( + 68 ) AS SIGNED )
----
-83
68

skipif mysql # not compatible
query II rowsort label-693
SELECT - 83 AS col1, CAST ( ( + 68 ) AS INTEGER )
----
-83
68

query I rowsort
SELECT + 99 * - + 22 + - 56 * + + 18 + - ( + NULLIF ( 65, + 70 / + + 79 + - - 89 ) ) col2
----
-3251

onlyif mysql # DIV for integer division: 
query I rowsort label-695
SELECT - 3 - + 58 DIV + - 77
----
-3

skipif mysql # not compatible
query I rowsort label-695
SELECT - 3 - + 58 / + - 77
----
-3

query I rowsort
SELECT 95 - + 85 - 60
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-697
SELECT - + MIN( DISTINCT - - 88 ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-697
SELECT - + MIN ( DISTINCT - - 88 ) AS col1
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-698
SELECT ALL 99 - - 40 + + 47 DIV + - 83 AS col1
----
139

skipif mysql # not compatible
query I rowsort label-698
SELECT ALL 99 - - 40 + + 47 / + - 83 AS col1
----
139

onlyif mysql # aggregate syntax: 
query II rowsort label-699
SELECT + NULLIF ( + 49, - COUNT( * ) ) AS col0, + 29 AS col1
----
49
29

skipif mysql # not compatible
query II rowsort label-699
SELECT + NULLIF ( + 49, - COUNT ( * ) ) AS col0, + 29 AS col1
----
49
29

query I rowsort
SELECT DISTINCT - - 19 * 55 - - 68 AS col0
----
1113

query I rowsort
SELECT + + ( 36 ) + - 5 AS col2
----
31

query I rowsort
SELECT ALL ( + COALESCE ( 56, - 23 ) )
----
56

query I rowsort
SELECT ALL - 28 * + - 52 + + 94 + - 12 col2
----
1538

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT DISTINCT - - COUNT( * ) * 68 - 45 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-705
SELECT DISTINCT - - COUNT ( * ) * 68 - 45 AS col1
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-706
SELECT - 19 * - CAST( NULL AS SIGNED ) + 85 * - 8 - + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-706
SELECT - 19 * - CAST ( NULL AS INTEGER ) + 85 * - 8 - + COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-707
SELECT + SUM( DISTINCT - 30 ) + CAST( 77 AS SIGNED ) - + + 67 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-707
SELECT + SUM ( DISTINCT - 30 ) + CAST ( 77 AS INTEGER ) - + + 67 AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-708
SELECT - MAX( + + 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-708
SELECT - MAX ( + + 34 )
----
-34

query I rowsort
SELECT ALL + ( + - 46 ) * 16 AS col1
----
-736

query I rowsort
SELECT - + 7 * + 41 AS col1
----
-287

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-712
SELECT - + 96 + + SUM( ALL + CAST( NULL AS SIGNED ) ) + - + 26 - + + ( - - 82 ) / + - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-712
SELECT - + 96 + + SUM ( ALL + CAST ( NULL AS INTEGER ) ) + - + 26 - + + ( - - 82 ) / + - 91
----
NULL

query I rowsort
SELECT - 58 + + 40 AS col2
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-714
SELECT ALL + 0 DIV + 34 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-714
SELECT ALL + 0 / + 34 AS col2
----
0

query I rowsort
SELECT - 10 * - NULLIF ( - 63, - - 34 )
----
-630

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-716
SELECT ALL - 36 * - CASE + - 52 WHEN CASE - COUNT( * ) WHEN - COUNT( * ) THEN + ( - + ( - - ( - 90 ) ) ) END THEN NULL ELSE - 47 END DIV + COUNT( * ) + COUNT( DISTINCT + 54 ) AS col2
----
-1691

skipif mysql # not compatible
query I rowsort label-716
SELECT ALL - 36 * - CASE + - 52 WHEN CASE - COUNT ( * ) WHEN - COUNT ( * ) THEN + ( - + ( - - ( - 90 ) ) ) END THEN NULL ELSE - 47 END / + COUNT ( * ) + COUNT ( DISTINCT + 54 ) AS col2
----
-1691

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

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

query I rowsort
SELECT ( NULLIF ( - + 61, - 97 - + - 57 ) )
----
-61

query I rowsort
SELECT - 98 + + + 0 - 34 AS col0
----
-132

onlyif mysql # DIV for integer division: 
query I rowsort label-720
SELECT + 37 DIV + 99 + 3 * ( - 85 )
----
-255

skipif mysql # not compatible
query I rowsort label-720
SELECT + 37 / + 99 + 3 * ( - 85 )
----
-255

query I rowsort
SELECT ALL + 91 * 85 AS col0
----
7735

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-722
SELECT COALESCE ( COALESCE ( + 36, + + 73, + 99 * + CAST( NULL AS SIGNED ) - 97 + COUNT( * ) + + 64 * 11 ), + 13 + ( - 68 + SUM( DISTINCT - 20 ) ) * - 49 )
----
36

skipif mysql # not compatible
query I rowsort label-722
SELECT COALESCE ( COALESCE ( + 36, + + 73, + 99 * + CAST ( NULL AS INTEGER ) - 97 + COUNT ( * ) + + 64 * 11 ), + 13 + ( - 68 + SUM ( DISTINCT - 20 ) ) * - 49 )
----
36

query I rowsort
SELECT - 74 * 77 AS col2
----
-5698

query I rowsort
SELECT - 80 + + - 43
----
-123

query I rowsort
SELECT CASE + 15 WHEN + ( 13 ) THEN + 67 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-726
SELECT ALL MAX( DISTINCT + 91 ) * - - 34 * + 3 + + 61
----
9343

skipif mysql # not compatible
query I rowsort label-726
SELECT ALL MAX ( DISTINCT + 91 ) * - - 34 * + 3 + + 61
----
9343

query I rowsort
SELECT + 74 * 55 + - + 49
----
4021

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

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

query I rowsort
SELECT - 44 + - 11 * 86 AS col0
----
-990

query II rowsort
SELECT ALL + 32 AS col0, - 66
----
32
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-731
SELECT - ( + 71 ) + - - 3 - + 41 DIV COALESCE ( - 8, + - 33 + + 83 * 48 + + 75 * 43 + 97 * 59 ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-731
SELECT - ( + 71 ) + - - 3 - + 41 / COALESCE ( - 8, + - 33 + + 83 * 48 + + 75 * 43 + 97 * 59 ) AS col1
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-732
SELECT ALL 99 * - 11 + 15 - - 16 * + + 43 DIV + - 21 + + 43 * - COUNT( * ) AS col0
----
-1149

skipif mysql # not compatible
query I rowsort label-732
SELECT ALL 99 * - 11 + 15 - - 16 * + + 43 / + - 21 + + 43 * - COUNT ( * ) AS col0
----
-1149

query I rowsort
SELECT NULLIF ( 12, - 77 * + - 50 ) AS col1
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-734
SELECT + COUNT( ALL - - NULLIF ( + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ), 83 ) )
----
0

skipif mysql # not compatible
query I rowsort label-734
SELECT + COUNT ( ALL - - NULLIF ( + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ), 83 ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-735
SELECT + - 39 * - 33 + + + CAST( NULL AS SIGNED ) + - 78 + 92 + - COALESCE ( - 2, + - 62 ) * - CASE + 98 WHEN + + 37 * COALESCE ( 22, - 33, ( 39 ) * 8 + + 93 ) THEN NULL WHEN 31 * + ( - COALESCE ( + 53, - CASE + ( + COUNT( * ) ) WHEN + 76 * + 56 THEN + 66 WHEN COALESCE ( COALESCE ( - 61, 36 / 57 ), + 50 + - 84, - ( 83 ) ) THEN 64 WHEN 24 + + NULLIF ( - 17, - 91 ) THEN NULL ELSE - MAX( ALL + 1 ) END, 27 / ( 80 * 89 ) ) ) THEN NULL ELSE + CAST( - 26 AS SIGNED ) * 87 END - + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-735
SELECT + - 39 * - 33 + + + CAST ( NULL AS INTEGER ) + - 78 + 92 + - COALESCE ( - 2, + - 62 ) * - CASE + 98 WHEN + + 37 * COALESCE ( 22, - 33, ( 39 ) * 8 + + 93 ) THEN NULL WHEN 31 * + ( - COALESCE ( + 53, - CASE + ( + COUNT ( * ) ) WHEN + 76 * + 56 THEN + 66 WHEN COALESCE ( COALESCE ( - 61, 36 / 57 ), + 50 + - 84, - ( 83 ) ) THEN 64 WHEN 24 + + NULLIF ( - 17, - 91 ) THEN NULL ELSE - MAX ( ALL + 1 ) END, 27 / ( 80 * 89 ) ) ) THEN NULL ELSE + CAST ( - 26 AS INTEGER ) * 87 END - + 8
----
NULL

query I rowsort
SELECT - 51 * 36 + - 15
----
-1851

onlyif mysql # aggregate syntax: 
query II rowsort label-737
SELECT DISTINCT + 92 AS col0, ( - COUNT( * ) ) + - + 30
----
92
-31

skipif mysql # not compatible
query II rowsort label-737
SELECT DISTINCT + 92 AS col0, ( - COUNT ( * ) ) + - + 30
----
92
-31

query I rowsort
SELECT - - 18 * - 75 AS col1
----
-1350

onlyif mysql # aggregate syntax: 
query II rowsort label-739
SELECT ALL + COUNT( * ) * 60 * - CASE - + ( COUNT( * ) ) WHEN - COUNT( * ) THEN NULL ELSE - + 16 * 76 END * - - 67, - 91 AS col0
----
NULL
-91

skipif mysql # not compatible
query II rowsort label-739
SELECT ALL + COUNT ( * ) * 60 * - CASE - + ( COUNT ( * ) ) WHEN - COUNT ( * ) THEN NULL ELSE - + 16 * 76 END * - - 67, - 91 AS col0
----
NULL
-91

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

skipif mysql # not compatible
query I rowsort label-740
SELECT DISTINCT ( + 29 ) * - COUNT ( * ) AS col1
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-741
SELECT DISTINCT + 79 DIV - 78 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-741
SELECT DISTINCT + 79 / - 78 AS col0
----
-1

query II rowsort
SELECT ALL 1, - 57 - 54 AS col0
----
1
-111

query II rowsort
SELECT DISTINCT - 79 AS col1, 7 AS col0
----
-79
7

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

query I rowsort
SELECT - + 91 * - 42
----
3822

query I rowsort
SELECT + - 86 + + 1 AS col0
----
-85

query I rowsort
SELECT + + 11 + 14
----
25

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

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

query I rowsort
SELECT NULLIF ( ( ( 69 ) ), 90 ) AS col1
----
69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT ALL NULLIF ( 40, - + 3 * - CASE - + COUNT( * ) WHEN + - 85 THEN + + 72 / + - 13 * - + 15 * COALESCE ( - COALESCE ( - 64, 4 + + 22 ), + ( SUM( - 73 ) ) * 17, + 73 ) + 38 WHEN + 60 THEN NULL END ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-752
SELECT ALL NULLIF ( 40, - + 3 * - CASE - + COUNT ( * ) WHEN + - 85 THEN + + 72 / + - 13 * - + 15 * COALESCE ( - COALESCE ( - 64, 4 + + 22 ), + ( SUM ( - 73 ) ) * 17, + 73 ) + 38 WHEN + 60 THEN NULL END ) AS col2
----
40

query I rowsort
SELECT DISTINCT + 14 + - 31
----
-17

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

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

query I rowsort
SELECT ALL 93 + 55
----
148

query I rowsort
SELECT - 4 + - 40 * + 4 + 98 AS col2
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-757
SELECT ALL 69 * 11 AS col2, - COUNT( DISTINCT + 36 ) * - COALESCE ( - 30, 39 ) - + 94 * + 39
----
759
-3696

skipif mysql # not compatible
query II rowsort label-757
SELECT ALL 69 * 11 AS col2, - COUNT ( DISTINCT + 36 ) * - COALESCE ( - 30, 39 ) - + 94 * + 39
----
759
-3696

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-758
SELECT ALL + 60 DIV ( + 13 ) * - COUNT( * ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-758
SELECT ALL + 60 / ( + 13 ) * - COUNT ( * ) AS col0
----
-4

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-760
SELECT ALL - 61 DIV + + COUNT( * ) + 91
----
30

skipif mysql # not compatible
query I rowsort label-760
SELECT ALL - 61 / + + COUNT ( * ) + 91
----
30

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-761
SELECT - CAST( NULL AS DECIMAL ) * - CASE + 63 WHEN - 42 THEN - + 7 WHEN + CASE + 85 WHEN - 5 * + CASE + 46 WHEN - - 23 + - COUNT( * ) + + 87 THEN MAX( ALL + 1 ) * + 4 - + 74 ELSE + 83 END THEN + 63 - 5 END - 93 * + COUNT( * ) THEN NULL ELSE 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-761
SELECT - CAST ( NULL AS REAL ) * - CASE + 63 WHEN - 42 THEN - + 7 WHEN + CASE + 85 WHEN - 5 * + CASE + 46 WHEN - - 23 + - COUNT ( * ) + + 87 THEN MAX ( ALL + 1 ) * + 4 - + 74 ELSE + 83 END THEN + 63 - 5 END - 93 * + COUNT ( * ) THEN NULL ELSE 47 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-762
SELECT + ( 17 ) * + + COUNT ( * ) + - - 17 + - - 55 AS col0
----
89

query I rowsort
SELECT - CASE - 73 WHEN - 49 THEN NULL WHEN - 11 THEN 39 + 69 END * 10 / + 42 + ( - 29 )
----
NULL

query I rowsort
SELECT - + 64 + + + ( + 76 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT + + COALESCE ( + + 79, + 47 * - COUNT( * ), + 55 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-765
SELECT + + COALESCE ( + + 79, + 47 * - COUNT ( * ), + 55 ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT ALL - + COUNT( * ) - 5 - 6
----
-12

skipif mysql # not compatible
query I rowsort label-766
SELECT ALL - + COUNT ( * ) - 5 - 6
----
-12

query II rowsort
SELECT ALL + 78 * ( - 31 ), ( + 9 ) AS col0
----
-2418
9

query I rowsort
SELECT 65 - NULLIF ( + 4, 97 ) AS col2
----
61

query II rowsort
SELECT ALL + - 11 * 76 AS col1, - 49
----
-836
-49

query I rowsort
SELECT DISTINCT - ( 86 ) AS col0
----
-86

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-772
SELECT - CASE ( - 57 ) WHEN - - 56 * - + 17 + - CAST( + - 19 AS SIGNED ) THEN - 68 WHEN + 5 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-772
SELECT - CASE ( - 57 ) WHEN - - 56 * - + 17 + - CAST ( + - 19 AS INTEGER ) THEN - 68 WHEN + 5 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT + 52 * + 9 + - NULLIF ( 88, 25 / 42 )
----
380

query I rowsort
SELECT + 40 * + 64 * + + 77 AS col1
----
197120

query II rowsort
SELECT + 10 * 76 AS col1, + 34
----
760
34

query I rowsort
SELECT ALL + 1 * + 41 - - 21 + ( + ( - + 12 ) ) AS col0
----
50

query I rowsort
SELECT ALL 7 * - 59
----
-413

query I rowsort
SELECT ALL + 74 + + ( + 7 ) AS col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-779
SELECT DISTINCT + 52 + - 29 + NULLIF ( + NULLIF ( - COUNT( * ), + 0 ), + 69 + - + 95 ) + + - CAST( NULL AS SIGNED ) + - 53 * - 13 + + 58 + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-779
SELECT DISTINCT + 52 + - 29 + NULLIF ( + NULLIF ( - COUNT ( * ), + 0 ), + 69 + - + 95 ) + + - CAST ( NULL AS INTEGER ) + - 53 * - 13 + + 58 + 21
----
NULL

query I rowsort
SELECT ALL - 93 + + 89 AS col1
----
-4

query I rowsort
SELECT 52 * 75
----
3900

onlyif mysql # aggregate syntax: 
query II rowsort label-782
SELECT DISTINCT 11 AS col2, + 89 * - 67 * + - CASE + COUNT( * ) WHEN + MIN( 39 ) THEN NULL WHEN - + 18 / - 89 + 11 + - - ( + 1 ) THEN ( 50 ) + + 5 * 79 END / - 71
----
11
NULL

skipif mysql # not compatible
query II rowsort label-782
SELECT DISTINCT 11 AS col2, + 89 * - 67 * + - CASE + COUNT ( * ) WHEN + MIN ( 39 ) THEN NULL WHEN - + 18 / - 89 + 11 + - - ( + 1 ) THEN ( 50 ) + + 5 * 79 END / - 71
----
11
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-783
SELECT ALL 62 AS col2, - 17 + + + COUNT( * ) col2
----
62
-16

skipif mysql # not compatible
query II rowsort label-783
SELECT ALL 62 AS col2, - 17 + + + COUNT ( * ) col2
----
62
-16

query I rowsort
SELECT 26 + - 75
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT 64 + - COUNT( * ) col0
----
63

skipif mysql # not compatible
query I rowsort label-785
SELECT 64 + - COUNT ( * ) col0
----
63

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-787
SELECT 71 DIV - + 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-787
SELECT 71 / - + 78 AS col1
----
0

query I rowsort
SELECT ALL 87 + + 58
----
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-789
SELECT CAST( + - 0 AS SIGNED ) - 73 + + SUM( DISTINCT - 68 ) AS col1
----
-141

skipif mysql # not compatible
query I rowsort label-789
SELECT CAST ( + - 0 AS INTEGER ) - 73 + + SUM ( DISTINCT - 68 ) AS col1
----
-141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-790
SELECT 61 + - 42 - - CASE - + 90 WHEN - + MIN( ALL + - ( + 52 ) ) THEN + ( + COUNT( * ) ) - + CAST( + + 50 AS SIGNED ) WHEN - 33 THEN NULL WHEN - 54 * 52 + + 92 THEN NULL ELSE NULL END + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-790
SELECT 61 + - 42 - - CASE - + 90 WHEN - + MIN ( ALL + - ( + 52 ) ) THEN + ( + COUNT ( * ) ) - + CAST ( + + 50 AS INTEGER ) WHEN - 33 THEN NULL WHEN - 54 * 52 + + 92 THEN NULL ELSE NULL END + 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT ALL SUM( + + 49 ) + + 37 + - + COALESCE ( + 14, - + 82 + + + 53 * 79, + 25 ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-791
SELECT ALL SUM ( + + 49 ) + + 37 + - + COALESCE ( + 14, - + 82 + + + 53 * 79, + 25 ) AS col0
----
72

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

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

query I rowsort
SELECT ALL 27 + + + 77
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-794
SELECT ALL COUNT( * ) - - - 83 * + 10 * + MIN( - 47 )
----
39011

skipif mysql # not compatible
query I rowsort label-794
SELECT ALL COUNT ( * ) - - - 83 * + 10 * + MIN ( - 47 )
----
39011

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-795
SELECT CAST( 99 AS SIGNED ) * - 29 + - 1
----
-2872

skipif mysql # not compatible
query I rowsort label-795
SELECT CAST ( 99 AS INTEGER ) * - 29 + - 1
----
-2872

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT DISTINCT 44 * + CASE 51 WHEN - + 26 THEN - 25 WHEN 16 THEN - COALESCE ( - - 16, - + 52, - - 76 ) * + 64 / - - 22 + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-796
SELECT DISTINCT 44 * + CASE 51 WHEN - + 26 THEN - 25 WHEN 16 THEN - COALESCE ( - - 16, - + 52, - - 76 ) * + 64 / - - 22 + - COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL - 2 - + + 95 AS col0
----
-97

query I rowsort
SELECT 65 * - 82 + + 7 * ( + - 94 )
----
-5988

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-800
SELECT 65 col1, COALESCE ( - - 66, - 37, 32 ) + CASE 67 WHEN + COUNT( * ) * + 46 * 74 + - 62 THEN + 90 * - 76 * 65 ELSE NULL END AS col0
----
65
NULL

skipif mysql # not compatible
query II rowsort label-800
SELECT 65 col1, COALESCE ( - - 66, - 37, 32 ) + CASE 67 WHEN + COUNT ( * ) * + 46 * 74 + - 62 THEN + 90 * - 76 * 65 ELSE NULL END AS col0
----
65
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-801
SELECT + 90 / + - 48 + - ( 12 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-801
SELECT + 90 / + - 48 + - ( 12 ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 14 * - 4 AS col2
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-803
SELECT + 52 col0, COUNT( DISTINCT + 94 ) col2
----
52
1

skipif mysql # not compatible
query II rowsort label-803
SELECT + 52 col0, COUNT ( DISTINCT + 94 ) col2
----
52
1

query I rowsort
SELECT - 96 * + 73 + 57 AS col1
----
-6951

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-805
SELECT 1 DIV - - 28 + ( - SUM( - + 25 ) ) * - CASE - 18 WHEN 44 THEN NULL ELSE - 41 + 32 + + - 70 - + COUNT( - 95 ) * 15 END + 92
----
2442

skipif mysql # not compatible
query I rowsort label-805
SELECT 1 / - - 28 + ( - SUM ( - + 25 ) ) * - CASE - 18 WHEN 44 THEN NULL ELSE - 41 + 32 + + - 70 - + COUNT ( - 95 ) * 15 END + 92
----
2442

query I rowsort
SELECT 80 + - - 15 + + - 9
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-807
SELECT + 58 DIV - 87 col0
----
0

skipif mysql # not compatible
query I rowsort label-807
SELECT + 58 / - 87 col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-809
SELECT - CASE + + COUNT( * ) WHEN - COUNT( * ) / + 61 THEN + 53 WHEN + 98 THEN NULL END * + 35 - 39 * - NULLIF ( - + 33, + + 98 ) + + - 43 + + 2 * - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-809
SELECT - CASE + + COUNT ( * ) WHEN - COUNT ( * ) / + 61 THEN + 53 WHEN + 98 THEN NULL END * + 35 - 39 * - NULLIF ( - + 33, + + 98 ) + + - 43 + + 2 * - 63
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-810
SELECT ALL - + COALESCE ( + - COUNT( * ), - ( + 23 ), 41 * + - 95 + CAST( - COUNT( * ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-810
SELECT ALL - + COALESCE ( + - COUNT ( * ), - ( + 23 ), 41 * + - 95 + CAST ( - COUNT ( * ) AS INTEGER ) )
----
1

query I rowsort
SELECT + 15 * - 34
----
-510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-812
SELECT - 24 DIV + 99 - SUM( + CAST( - 73 AS SIGNED ) ) col1
----
73

skipif mysql # not compatible
query I rowsort label-812
SELECT - 24 / + 99 - SUM ( + CAST ( - 73 AS INTEGER ) ) col1
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-813
SELECT ALL + - 8 * + ( + + ( + + 17 ) ) * + + 87 * SUM( DISTINCT - 25 ) + + - 67 + COALESCE ( 60, - - 96 + - - 89, ( CAST( + 12 AS SIGNED ) ) ) DIV 56 AS col1
----
295734

skipif mysql # not compatible
query I rowsort label-813
SELECT ALL + - 8 * + ( + + ( + + 17 ) ) * + + 87 * SUM ( DISTINCT - 25 ) + + - 67 + COALESCE ( 60, - - 96 + - - 89, ( CAST ( + 12 AS INTEGER ) ) ) / 56 AS col1
----
295734

onlyif mysql # aggregate syntax: 
query I rowsort label-814
SELECT DISTINCT - COUNT( * ) * 80 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-814
SELECT DISTINCT - COUNT ( * ) * 80 AS col1
----
-80

query I rowsort
SELECT DISTINCT + - ( - 54 ) * - + 10
----
-540

query I rowsort
SELECT + 87 * - 19 + - COALESCE ( 33, + - 14 ) AS col1
----
-1686

query I rowsort
SELECT ALL + 45 * 54 AS col2
----
2430

query I rowsort
SELECT + 74 * 62 AS col0
----
4588

query I rowsort
SELECT DISTINCT - + 66 * - + 37
----
2442

onlyif mysql # aggregate syntax: 
query I rowsort label-820
SELECT + 31 - CASE 26 WHEN MAX( 56 ) THEN + AVG ( ALL - + ( 50 ) ) END + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-820
SELECT + 31 - CASE 26 WHEN MAX ( 56 ) THEN + AVG ( ALL - + ( 50 ) ) END + 78
----
NULL

query I rowsort
SELECT DISTINCT + CASE - 14 WHEN + + 76 THEN - - 3 * - - 58 END + - 1 * - 98 - - 12 col2
----
NULL

query I rowsort
SELECT DISTINCT - 96 + + 29 + - 1 AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-823
SELECT COUNT( ALL 62 ) + - 64 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-823
SELECT COUNT ( ALL 62 ) + - 64 AS col1
----
-63

query I rowsort
SELECT ALL + 32 + ( - 40 ) - 56
----
-64

query I rowsort
SELECT 51 * - 14 AS col0
----
-714

query I rowsort
SELECT DISTINCT 98 + - - 36
----
134

query I rowsort
SELECT ALL - 78 * 18 * + 83 AS col2
----
-116532

query I rowsort
SELECT 77 * 99 AS col0
----
7623

onlyif mysql # aggregate syntax: 
query I rowsort label-829
SELECT DISTINCT - 61 * - NULLIF ( + - 45, MAX( DISTINCT + + 37 ) * - 96 + 1 * - 31 )
----
-2745

skipif mysql # not compatible
query I rowsort label-829
SELECT DISTINCT - 61 * - NULLIF ( + - 45, MAX ( DISTINCT + + 37 ) * - 96 + 1 * - 31 )
----
-2745

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-830
SELECT ALL NULLIF ( + 88, - AVG ( + 0 ) + - + 19 + + 42 + - CASE + 70 WHEN COUNT( * ) * COALESCE ( 89, + AVG ( + + NULLIF ( NULLIF ( + 93, CASE + ( + 3 ) WHEN 81 * - ( 8 ) + + 68 * - 45 THEN NULL WHEN 97 THEN NULL ELSE 64 END * + 76 + 36 ), 67 ) ), - 3 + CAST( - ( 42 ) + NULLIF ( + 61 + - 23, + 82 ) AS SIGNED ) ) + + 62 THEN SUM( 10 ) * - 14 END * 46 )
----
88

skipif mysql # not compatible
query I rowsort label-830
SELECT ALL NULLIF ( + 88, - AVG ( + 0 ) + - + 19 + + 42 + - CASE + 70 WHEN COUNT ( * ) * COALESCE ( 89, + AVG ( + + NULLIF ( NULLIF ( + 93, CASE + ( + 3 ) WHEN 81 * - ( 8 ) + + 68 * - 45 THEN NULL WHEN 97 THEN NULL ELSE 64 END * + 76 + 36 ), 67 ) ), - 3 + CAST ( - ( 42 ) + NULLIF ( + 61 + - 23, + 82 ) AS INTEGER ) ) + + 62 THEN SUM ( 10 ) * - 14 END * 46 )
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-831
SELECT 67 DIV + 64
----
1

skipif mysql # not compatible
query I rowsort label-831
SELECT 67 / + 64
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-832
SELECT + 44 * MAX( 60 ) AS col1
----
2640

skipif mysql # not compatible
query I rowsort label-832
SELECT + 44 * MAX ( 60 ) AS col1
----
2640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-833
SELECT CASE + 5 WHEN + + ( - - CAST( NULL AS SIGNED ) ) THEN + - CASE WHEN - 91 < NULL THEN - COUNT( * ) ELSE - + 25 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-833
SELECT CASE + 5 WHEN + + ( - - CAST ( NULL AS INTEGER ) ) THEN + - CASE WHEN - 91 < NULL THEN - COUNT ( * ) ELSE - + 25 END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-834
SELECT + - 39 * COUNT( * ) * - 37 AS col0
----
1443

skipif mysql # not compatible
query I rowsort label-834
SELECT + - 39 * COUNT ( * ) * - 37 AS col0
----
1443

query II rowsort
SELECT ALL + + ( - 45 ), 84 AS col2
----
-45
84

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

skipif mysql # not compatible
query I rowsort label-836
SELECT DISTINCT + CAST ( NULL AS REAL ) * + 5
----
NULL

query II rowsort
SELECT + - 6 * - 62 + 25 + + + CASE WHEN NULL IS NOT NULL THEN 76 ELSE - 77 END, + ( + + COALESCE ( + 36, + - 24 + + + ( - COALESCE ( + + 45, - 72 + 45 ) ) ) ) col1
----
320
36

onlyif mysql # DIV for integer division: 
query I rowsort label-838
SELECT ALL - 1 * + - 23 DIV + ( - + 83 )
----
0

skipif mysql # not compatible
query I rowsort label-838
SELECT ALL - 1 * + - 23 / + ( - + 83 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-839
SELECT + - 11 DIV + 82 + - - COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-839
SELECT + - 11 / + 82 + - - COUNT ( * ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT ALL + - ( 84 ) * 58 + - - NULLIF ( + 19, - + 61 + - ( - COUNT( * ) ) ) col0
----
-4853

skipif mysql # not compatible
query I rowsort label-840
SELECT ALL + - ( 84 ) * 58 + - - NULLIF ( + 19, - + 61 + - ( - COUNT ( * ) ) ) col0
----
-4853

onlyif mysql # aggregate syntax: 
query I rowsort label-841
SELECT ALL + - 95 * + NULLIF ( + COUNT( * ), - 17 ) * 86 * + - 56 * 38 + + + 40 + - + CASE + 70 WHEN 82 THEN NULL WHEN + 28 * - 6 THEN 56 * 50 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-841
SELECT ALL + - 95 * + NULLIF ( + COUNT ( * ), - 17 ) * 86 * + - 56 * 38 + + + 40 + - + CASE + 70 WHEN 82 THEN NULL WHEN + 28 * - 6 THEN 56 * 50 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT DISTINCT + 32 * + + 45 + - 9 * - 46 * 75 + + 36 + 94 + - ( - + NULLIF ( - + CASE NULLIF ( 79, + + 99 ) WHEN + - 60 THEN NULL WHEN + ( - 97 ) THEN 53 END, + COUNT( * ) * + ( + 30 ) + + 23 ) ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-842
SELECT DISTINCT + 32 * + + 45 + - 9 * - 46 * 75 + + 36 + 94 + - ( - + NULLIF ( - + CASE NULLIF ( 79, + + 99 ) WHEN + - 60 THEN NULL WHEN + ( - 97 ) THEN 53 END, + COUNT ( * ) * + ( + 30 ) + + 23 ) ) * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-843
SELECT ALL - CAST( + + NULLIF ( - 9, - + 53 + - 61 + + 59 * 5 * 13 * + 39 * + NULLIF ( - - CASE - MIN( ALL - - 59 ) WHEN + CAST( NULL AS SIGNED ) + NULLIF ( + AVG ( ALL 31 ), 90 ) * ( + 89 * COALESCE ( + 55 / + 60, 95, + COALESCE ( - 28, + 82 ) ) ) THEN + 21 * + 70 + + COALESCE ( COUNT( * ), + 69 ) END, - CAST( - NULLIF ( - 44, COUNT( ALL 18 ) ) AS SIGNED ) + - 0 ) ) AS SIGNED ) * 38 + - 5 * + COUNT( DISTINCT + 71 ) col0
----
337

skipif mysql # not compatible
query I rowsort label-843
SELECT ALL - CAST ( + + NULLIF ( - 9, - + 53 + - 61 + + 59 * 5 * 13 * + 39 * + NULLIF ( - - CASE - MIN ( ALL - - 59 ) WHEN + CAST ( NULL AS INTEGER ) + NULLIF ( + AVG ( ALL 31 ), 90 ) * ( + 89 * COALESCE ( + 55 / + 60, 95, + COALESCE ( - 28, + 82 ) ) ) THEN + 21 * + 70 + + COALESCE ( COUNT ( * ), + 69 ) END, - CAST ( - NULLIF ( - 44, COUNT ( ALL 18 ) ) AS INTEGER ) + - 0 ) ) AS INTEGER ) * 38 + - 5 * + COUNT ( DISTINCT + 71 ) col0
----
337

query I rowsort
SELECT - ( + 3 ) * 73 AS col0
----
-219

query I rowsort
SELECT DISTINCT + 91 + 42 AS col2
----
133

query I rowsort
SELECT + 52 * + 71
----
3692

query I rowsort
SELECT ALL CASE - 25 WHEN - - ( 19 ) THEN + + COALESCE ( + 45, 51 ) END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT ALL - 74 * + NULLIF ( + 75, - MIN( 76 ) ) * - 81
----
449550

skipif mysql # not compatible
query I rowsort label-848
SELECT ALL - 74 * + NULLIF ( + 75, - MIN ( 76 ) ) * - 81
----
449550

query I rowsort
SELECT DISTINCT - 65 - 71 col0
----
-136

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

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

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

query I rowsort
SELECT - 98 * 40 col0
----
-3920

onlyif mysql # aggregate syntax: 
query II rowsort label-853
SELECT ALL NULLIF ( - ( - - 40 ), - 68 + + 36 + + 11 + + 30 * + - 53 ) AS col0, COUNT( * ) + 17 * + 15 * - 71
----
-40
-18104

skipif mysql # not compatible
query II rowsort label-853
SELECT ALL NULLIF ( - ( - - 40 ), - 68 + + 36 + + 11 + + 30 * + - 53 ) AS col0, COUNT ( * ) + 17 * + 15 * - 71
----
-40
-18104

query I rowsort
SELECT - 62 * - 81 * - - 9
----
45198

onlyif mysql # aggregate syntax: 
query I rowsort label-855
SELECT DISTINCT NULLIF ( - 1, - CASE + - 93 WHEN CASE + 10 WHEN - 92 THEN 18 * 8 + - 27 END THEN NULL WHEN MIN( - 27 ) + + 88 THEN NULL ELSE COUNT( * ) / - 7 END + - 93 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-855
SELECT DISTINCT NULLIF ( - 1, - CASE + - 93 WHEN CASE + 10 WHEN - 92 THEN 18 * 8 + - 27 END THEN NULL WHEN MIN ( - 27 ) + + 88 THEN NULL ELSE COUNT ( * ) / - 7 END + - 93 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT ALL CASE + 48 WHEN 59 * - 85 / + 28 + - - AVG ( ALL 19 ) THEN NULL ELSE 4 - + - ( 13 ) + + + 74 * - + SUM( ALL 68 ) * - 91 END
----
457929

skipif mysql # not compatible
query I rowsort label-856
SELECT ALL CASE + 48 WHEN 59 * - 85 / + 28 + - - AVG ( ALL 19 ) THEN NULL ELSE 4 - + - ( 13 ) + + + 74 * - + SUM ( ALL 68 ) * - 91 END
----
457929

query I rowsort
SELECT ALL - 12 * + - 87 col2
----
1044

query I rowsort
SELECT - COALESCE ( - 1, - + 38 ) + + 9 * + - 75
----
-674

onlyif mysql # aggregate syntax: 
query I rowsort label-859
SELECT ALL COUNT( * ) * + CASE + - 61 WHEN - 52 THEN NULL ELSE + 51 + - 77 * - 42 END
----
3285

skipif mysql # not compatible
query I rowsort label-859
SELECT ALL COUNT ( * ) * + CASE + - 61 WHEN - 52 THEN NULL ELSE + 51 + - 77 * - 42 END
----
3285

query I rowsort
SELECT DISTINCT + 30 * 90 * - 72 AS col0
----
-194400

query II rowsort
SELECT ALL + 51 AS col2, 80 AS col1
----
51
80

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-864
SELECT - 12 DIV - 17 + + 79 + - + 60 * + + 14 * + 67 * + 25 - - - 75 * + 43 * - + ( + CAST( + - ( + + 79 ) AS SIGNED ) ), 12 AS col1
----
-1661696
12

skipif mysql # not compatible
query II rowsort label-864
SELECT - 12 / - 17 + + 79 + - + 60 * + + 14 * + 67 * + 25 - - - 75 * + 43 * - + ( + CAST ( + - ( + + 79 ) AS INTEGER ) ), 12 AS col1
----
-1661696
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-865
SELECT - CAST( + - 25 AS SIGNED ) / - + 30 + 33 + + CASE + + 69 WHEN - MAX( ALL - 60 ) + + 16 THEN - - 98 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-865
SELECT - CAST ( + - 25 AS INTEGER ) / - + 30 + 33 + + CASE + + 69 WHEN - MAX ( ALL - 60 ) + + 16 THEN - - 98 END AS col2
----
NULL

query I rowsort
SELECT + + 69 + + + 37 * - 14 * + 35 AS col2
----
-18061

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT - - 58 * - MIN( - 57 ) * - - NULLIF ( 96, - 94 ) AS col1
----
317376

skipif mysql # not compatible
query I rowsort label-867
SELECT - - 58 * - MIN ( - 57 ) * - - NULLIF ( 96, - 94 ) AS col1
----
317376

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

skipif mysql # not compatible
query I rowsort label-868
SELECT ALL + 64 / 22 + COUNT ( * )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-869
SELECT ALL - + 52 DIV - 35 + + 28
----
29

skipif mysql # not compatible
query I rowsort label-869
SELECT ALL - + 52 / - 35 + + 28
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-870
SELECT ALL - - 53 DIV - 22 + + 76 * 51 * ( + 34 ) * + 96
----
12651262

skipif mysql # not compatible
query I rowsort label-870
SELECT ALL - - 53 / - 22 + + 76 * 51 * ( + 34 ) * + 96
----
12651262

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

query II rowsort
SELECT 30, - 97 AS col0
----
30
-97

query I rowsort
SELECT ALL - 62 * - 87
----
5394

onlyif mysql # aggregate syntax: 
query I rowsort label-874
SELECT MAX( ALL 33 )
----
33

skipif mysql # not compatible
query I rowsort label-874
SELECT MAX ( ALL 33 )
----
33

query I rowsort
SELECT + 97 + - 3 * + 67
----
-104

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

query I rowsort
SELECT NULLIF ( - 37, - 17 * - 36 ) AS col0
----
-37

query I rowsort
SELECT + 70 + + 20 AS col2
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-879
SELECT DISTINCT + 23 * - 20 - - 85 * + + 88 AS col1, 52 DIV 18 + + 67 * + ( - SUM( DISTINCT - 93 ) ) AS col0
----
7020
6233

skipif mysql # not compatible
query II rowsort label-879
SELECT DISTINCT + 23 * - 20 - - 85 * + + 88 AS col1, 52 / 18 + + 67 * + ( - SUM ( DISTINCT - 93 ) ) AS col0
----
7020
6233

onlyif mysql # aggregate syntax: 
query II rowsort label-880
SELECT + 17 * + + ( - 51 ) + + - 97 + + 39 - - + SUM( + 36 ) * 26 * COUNT( * ), + 8 * + 75 AS col2
----
11
600

skipif mysql # not compatible
query II rowsort label-880
SELECT + 17 * + + ( - 51 ) + + - 97 + + 39 - - + SUM ( + 36 ) * 26 * COUNT ( * ), + 8 * + 75 AS col2
----
11
600

query I rowsort
SELECT ALL NULLIF ( - 35, - 62 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT CASE - - 39 WHEN + 46 THEN NULL WHEN 5 THEN + COUNT( * ) + - + 95 ELSE COUNT( * ) END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-882
SELECT CASE - - 39 WHEN + 46 THEN NULL WHEN 5 THEN + COUNT ( * ) + - + 95 ELSE COUNT ( * ) END AS col0
----
1

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

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

query I rowsort
SELECT + CASE + 76 WHEN - 88 THEN 19 + 45 WHEN - - 3 THEN NULL END * + + 60
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-885
SELECT DISTINCT COUNT( * ), 34 DIV - 13 AS col2
----
1
-2

skipif mysql # not compatible
query II rowsort label-885
SELECT DISTINCT COUNT ( * ), 34 / - 13 AS col2
----
1
-2

query I rowsort
SELECT 96 + - - 32
----
128

query I rowsort
SELECT ALL 56 * + COALESCE ( 37, 22, + ( 94 ) + + 75 )
----
2072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-888
SELECT ( + CAST( + 77 AS SIGNED ) ) * - 32
----
-2464

skipif mysql # not compatible
query I rowsort label-888
SELECT ( + CAST ( + 77 AS INTEGER ) ) * - 32
----
-2464

query I rowsort
SELECT 5 + + - 84
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-890
SELECT MAX( - 25 ) * - + 14
----
350

skipif mysql # not compatible
query I rowsort label-890
SELECT MAX ( - 25 ) * - + 14
----
350

query I rowsort
SELECT 15 * 61
----
915

onlyif mysql # DIV for integer division: 
query II rowsort label-892
SELECT 94, 38 DIV 3 AS col2
----
94
12

skipif mysql # not compatible
query II rowsort label-892
SELECT 94, 38 / 3 AS col2
----
94
12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-893
SELECT ALL 94 AS col1, 50 * CASE - - COUNT( * ) WHEN - - SUM( + 23 ) + + 51 THEN + CAST( NULL AS DECIMAL ) WHEN - + 38 - - CASE 82 WHEN 21 THEN - 2 ELSE NULL END THEN NULL ELSE NULL END * 14
----
94
NULL

skipif mysql # not compatible
query II rowsort label-893
SELECT ALL 94 AS col1, 50 * CASE - - COUNT ( * ) WHEN - - SUM ( + 23 ) + + 51 THEN + CAST ( NULL AS REAL ) WHEN - + 38 - - CASE 82 WHEN 21 THEN - 2 ELSE NULL END THEN NULL ELSE NULL END * 14
----
94
NULL

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

skipif mysql # not compatible
query I rowsort label-894
SELECT 5 * COUNT ( * )
----
5

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

skipif mysql # not compatible
query I rowsort label-895
SELECT ALL 14 + + ( + COUNT ( * ) ) AS col1
----
15

query II rowsort
SELECT 65 AS col1, - 93 AS col0
----
65
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-897
SELECT + 68 * + 49 * + CAST( - COUNT( * ) AS SIGNED ) AS col0, - COUNT( * )
----
-3332
-1

skipif mysql # not compatible
query II rowsort label-897
SELECT + 68 * + 49 * + CAST ( - COUNT ( * ) AS INTEGER ) AS col0, - COUNT ( * )
----
-3332
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT 55 * + 21 + - + COUNT( * ) AS col2
----
1154

skipif mysql # not compatible
query I rowsort label-898
SELECT 55 * + 21 + - + COUNT ( * ) AS col2
----
1154

onlyif mysql # DIV for integer division: 
query I rowsort label-899
SELECT ALL + 67 + - ( + - ( + 37 ) ) DIV 26 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-899
SELECT ALL + 67 + - ( + - ( + 37 ) ) / 26 AS col1
----
68

query II rowsort
SELECT - + 42 AS col0, - ( + 36 ) * + 16
----
-42
-576

onlyif mysql # aggregate syntax: 
query II rowsort label-901
SELECT - + COUNT( * ) col1, + 73 + + 47 + + - 8
----
-1
112

skipif mysql # not compatible
query II rowsort label-901
SELECT - + COUNT ( * ) col1, + 73 + + 47 + + - 8
----
-1
112

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

onlyif mysql # aggregate syntax: 
query I rowsort label-903
SELECT ALL + COUNT( * ) + - 78 col1
----
-77

skipif mysql # not compatible
query I rowsort label-903
SELECT ALL + COUNT ( * ) + - 78 col1
----
-77

query I rowsort
SELECT DISTINCT - 60 + + 13
----
-47

query I rowsort
SELECT ALL + 57 + - 5 AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT 4 - + 13 - 30 * - NULLIF ( + 49, + ( - COUNT( * ) ) ) * - 50 AS col1
----
-73509

skipif mysql # not compatible
query I rowsort label-906
SELECT 4 - + 13 - 30 * - NULLIF ( + 49, + ( - COUNT ( * ) ) ) * - 50 AS col1
----
-73509

query II rowsort
SELECT + ( - 43 ), 6 AS col2
----
-43
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-908
SELECT - CAST( + 52 AS SIGNED ) * CASE WHEN NOT NULL IS NOT NULL THEN + 99 ELSE + 48 END AS col2
----
-5148

skipif mysql # not compatible
query I rowsort label-908
SELECT - CAST ( + 52 AS INTEGER ) * CASE WHEN NOT NULL IS NOT NULL THEN + 99 ELSE + 48 END AS col2
----
-5148

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

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

query I rowsort
SELECT ALL - NULLIF ( - 88, 61 ) AS col2
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-911
SELECT DISTINCT MAX( - CASE - 75 WHEN + 50 THEN + 66 END ) * + + COUNT( * ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-911
SELECT DISTINCT MAX ( - CASE - 75 WHEN + 50 THEN + 66 END ) * + + COUNT ( * ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 50 * + + 59 + - + 30 col2
----
2920

query I rowsort
SELECT ALL 81 * - 13 AS col1
----
-1053

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-914
SELECT 99 + - - CAST( + 99 AS SIGNED ) + + 6 + - MAX( DISTINCT 41 ) + - ( - COALESCE ( + 16, + 90 ) ) * + 99 AS col2
----
1747

skipif mysql # not compatible
query I rowsort label-914
SELECT 99 + - - CAST ( + 99 AS INTEGER ) + + 6 + - MAX ( DISTINCT 41 ) + - ( - COALESCE ( + 16, + 90 ) ) * + 99 AS col2
----
1747

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

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

query I rowsort
SELECT 89 + + ( - - 36 ) AS col2
----
125

query I rowsort
SELECT DISTINCT 80 * + ( - 72 ) AS col0
----
-5760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-918
SELECT CAST( NULL AS SIGNED ) / COUNT( * ) * - 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-918
SELECT CAST ( NULL AS INTEGER ) / COUNT ( * ) * - 95 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT ALL COUNT( * ) + 60
----
61

skipif mysql # not compatible
query I rowsort label-919
SELECT ALL COUNT ( * ) + 60
----
61

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

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

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

query I rowsort
SELECT ALL 8 + ( + 27 ) col0
----
35

onlyif mysql # DIV for integer division: 
query II rowsort label-923
SELECT ALL 67 DIV + - 30 AS col1, - 69 col1
----
-2
-69

skipif mysql # not compatible
query II rowsort label-923
SELECT ALL 67 / + - 30 AS col1, - 69 col1
----
-2
-69

query I rowsort
SELECT 11 * + - 40 * - ( - 49 ) AS col1
----
-21560

query II rowsort
SELECT 70 * 29 col1, - 23 * + + 3 AS col0
----
2030
-69

query I rowsort
SELECT ALL 5 + - 1 - - 27 AS col0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-927
SELECT - 75 + + COALESCE ( + - 43, + 87 * 47 - - - 36 + + CAST( NULL AS SIGNED ) * - 17, 48 )
----
-118

skipif mysql # not compatible
query I rowsort label-927
SELECT - 75 + + COALESCE ( + - 43, + 87 * 47 - - - 36 + + CAST ( NULL AS INTEGER ) * - 17, 48 )
----
-118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-928
SELECT ALL - + 61 + + CAST( 10 AS SIGNED ) + + 75 + + - 38
----
-14

skipif mysql # not compatible
query I rowsort label-928
SELECT ALL - + 61 + + CAST ( 10 AS INTEGER ) + + 75 + + - 38
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-929
SELECT COUNT( * ) + + - 96 * + + COUNT( * ), 24 DIV - COUNT( DISTINCT - 82 ) AS col0
----
-95
-24

skipif mysql # not compatible
query II rowsort label-929
SELECT COUNT ( * ) + + - 96 * + + COUNT ( * ), 24 / - COUNT ( DISTINCT - 82 ) AS col0
----
-95
-24

query I rowsort
SELECT ALL + - 49 + + + 30 AS col2
----
-19

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

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

query I rowsort
SELECT DISTINCT + - 11 * - ( - 35 ) - - 90 * 31 AS col1
----
2405

onlyif mysql # aggregate syntax: 
query II rowsort label-933
SELECT MIN( - 74 ) AS col0, - 53
----
-74
-53

skipif mysql # not compatible
query II rowsort label-933
SELECT MIN ( - 74 ) AS col0, - 53
----
-74
-53

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

onlyif mysql # aggregate syntax: 
query III rowsort label-935
SELECT ( - 99 ) col2, COUNT( * ) AS col2, 81 AS col1
----
-99
1
81

skipif mysql # not compatible
query III rowsort label-935
SELECT ( - 99 ) col2, COUNT ( * ) AS col2, 81 AS col1
----
-99
1
81

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-937
SELECT 52 * 3 col1, COUNT( * ) AS col1
----
156
1

skipif mysql # not compatible
query II rowsort label-937
SELECT 52 * 3 col1, COUNT ( * ) AS col1
----
156
1

onlyif mysql # aggregate syntax: 
query I rowsort label-938
SELECT DISTINCT + 54 * - - NULLIF ( COALESCE ( 73, - 90 ), - COUNT( * ) ) - - 21
----
3963

skipif mysql # not compatible
query I rowsort label-938
SELECT DISTINCT + 54 * - - NULLIF ( COALESCE ( 73, - 90 ), - COUNT ( * ) ) - - 21
----
3963

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-939
SELECT ALL - + CASE 17 WHEN - 89 THEN - CAST( NULL AS SIGNED ) ELSE + COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-939
SELECT ALL - + CASE 17 WHEN - 89 THEN - CAST ( NULL AS INTEGER ) ELSE + COUNT ( * ) END
----
-1

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-942
SELECT ALL - 79 * - + CAST( - 96 AS SIGNED )
----
-7584

skipif mysql # not compatible
query I rowsort label-942
SELECT ALL - 79 * - + CAST ( - 96 AS INTEGER )
----
-7584

query II rowsort
SELECT + 54 AS col1, + 28
----
54
28

query I rowsort
SELECT DISTINCT - 33 * 87 AS col2
----
-2871

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT + 8 * - + 31 + - 35 - - SUM( + + 23 ) AS col0
----
-260

skipif mysql # not compatible
query I rowsort label-945
SELECT + 8 * - + 31 + - 35 - - SUM ( + + 23 ) AS col0
----
-260

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

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

query I rowsort
SELECT - 87 * - - CASE + - 80 WHEN - - 62 THEN NULL ELSE + + 35 END
----
-3045

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

skipif mysql # not compatible
query II rowsort label-948
SELECT COUNT ( * ) col2, 58 AS col0
----
1
58

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT ALL + COUNT( * ) + + - 52
----
-51

skipif mysql # not compatible
query I rowsort label-949
SELECT ALL + COUNT ( * ) + + - 52
----
-51

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

skipif mysql # not compatible
query I rowsort label-950
SELECT + 45 / + COUNT ( * ) AS col2
----
45

query I rowsort
SELECT - 57 + + + 38
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT DISTINCT - 98 + - MAX( ALL + 14 ) AS col2
----
-112

skipif mysql # not compatible
query I rowsort label-952
SELECT DISTINCT - 98 + - MAX ( ALL + 14 ) AS col2
----
-112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-953
SELECT ALL + 43 + + 87 + - 41 + + 56 + - COALESCE ( - 62, + 22, + 25 * COUNT( * ) + - 40 ) - - + 43 DIV - + ( + NULLIF ( 73, - 60 ) ) * - 16 + - 12 * - - 28 * + 61 AS col1
----
-20289

skipif mysql # not compatible
query I rowsort label-953
SELECT ALL + 43 + + 87 + - 41 + + 56 + - COALESCE ( - 62, + 22, + 25 * COUNT ( * ) + - 40 ) - - + 43 / - + ( + NULLIF ( 73, - 60 ) ) * - 16 + - 12 * - - 28 * + 61 AS col1
----
-20289

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-954
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) + + + 27 AS col0, + 41 + CAST( NULL AS SIGNED ) + ( NULLIF ( - 42, 62 ) ) - + + 93 + - - ( 68 ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-954
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) + + + 27 AS col0, + 41 + CAST ( NULL AS INTEGER ) + ( NULLIF ( - 42, 62 ) ) - + + 93 + - - ( 68 ) AS col1
----
NULL
NULL

query I rowsort
SELECT ALL 21 + 80 AS col0
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-956
SELECT - CAST( - COALESCE ( COUNT( * ), - 67 ) AS SIGNED ) * + 11
----
11

skipif mysql # not compatible
query I rowsort label-956
SELECT - CAST ( - COALESCE ( COUNT ( * ), - 67 ) AS INTEGER ) * + 11
----
11

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-958
SELECT - COUNT( * ), + 76 + - 7 AS col0
----
-1
69

skipif mysql # not compatible
query II rowsort label-958
SELECT - COUNT ( * ), + 76 + - 7 AS col0
----
-1
69

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

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

query I rowsort
SELECT + 79 + 81 AS col0
----
160

query II rowsort
SELECT DISTINCT 50 AS col2, - 45 * 31
----
50
-1395

query I rowsort
SELECT - + 45 * 26
----
-1170

query II rowsort
SELECT - 5, 36 AS col1
----
-5
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-964
SELECT - COALESCE ( 3, + - COALESCE ( 59, + ( - - 92 ) + + 55 + + - 96, - - 36 ), + + 63 * - CAST( NULL AS SIGNED ) ) AS col0, ( 60 ) AS col1
----
-3
60

skipif mysql # not compatible
query II rowsort label-964
SELECT - COALESCE ( 3, + - COALESCE ( 59, + ( - - 92 ) + + 55 + + - 96, - - 36 ), + + 63 * - CAST ( NULL AS INTEGER ) ) AS col0, ( 60 ) AS col1
----
-3
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-965
SELECT DISTINCT - CASE - 1 WHEN - 34 + 72 THEN + CAST( NULL AS SIGNED ) WHEN + AVG ( 37 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-965
SELECT DISTINCT - CASE - 1 WHEN - 34 + 72 THEN + CAST ( NULL AS INTEGER ) WHEN + AVG ( 37 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT ALL SUM( - 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-966
SELECT ALL SUM ( - 90 )
----
-90

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

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

query II rowsort
SELECT - - 97 AS col2, - 71
----
97
-71

query I rowsort
SELECT + 80 * + + 49 + + ( 4 ) AS col2
----
3924

query I rowsort
SELECT ALL 19 * - 94
----
-1786

query I rowsort
SELECT ALL + - ( - + 76 ) AS col2
----
76

query I rowsort
SELECT ALL + 83 * + 9
----
747

query I rowsort
SELECT ALL 8 * + 32
----
256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-974
SELECT + COUNT( * ) * + COUNT( * ) + + - 51 + CAST( - - 19 AS SIGNED ) AS col1, ( - 21 )
----
-31
-21

skipif mysql # not compatible
query II rowsort label-974
SELECT + COUNT ( * ) * + COUNT ( * ) + + - 51 + CAST ( - - 19 AS INTEGER ) AS col1, ( - 21 )
----
-31
-21

query I rowsort
SELECT - 69 * - 9 AS col2
----
621

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-976
SELECT CASE WHEN - 99 = NULL THEN + CASE - NULLIF ( 30, - CAST( NULL AS DECIMAL ) + + ( - 6 ) * + - 60 + 99 * - MIN( DISTINCT - 33 ) + 14 + 31 + + + 99 + NULLIF ( + 58, + 14 ) ) WHEN 47 * 76 THEN 77 + - COUNT( * ) END * 4 WHEN ( + 25 ) NOT IN ( - 77 / - 98 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-976
SELECT CASE WHEN - 99 = NULL THEN + CASE - NULLIF ( 30, - CAST ( NULL AS REAL ) + + ( - 6 ) * + - 60 + 99 * - MIN ( DISTINCT - 33 ) + 14 + 31 + + + 99 + NULLIF ( + 58, + 14 ) ) WHEN 47 * 76 THEN 77 + - COUNT ( * ) END * 4 WHEN ( + 25 ) NOT IN ( - 77 / - 98 ) THEN NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-977
SELECT ALL - 84 * + CAST ( + + COUNT ( * ) AS INTEGER )
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-978
SELECT - 33 DIV + 99 * + + 9
----
0

skipif mysql # not compatible
query I rowsort label-978
SELECT - 33 / + 99 * + + 9
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-979
SELECT ALL 10 * - - 37 + + - COUNT( * ) * - ( 17 ) * + 78 - 95 AS col0
----
1601

skipif mysql # not compatible
query I rowsort label-979
SELECT ALL 10 * - - 37 + + - COUNT ( * ) * - ( 17 ) * + 78 - 95 AS col0
----
1601

onlyif mysql # aggregate syntax: 
query II rowsort label-980
SELECT ALL - 60 * + SUM( ALL 97 ) + - COUNT( * ), - COUNT( * ) * 85 col1
----
-5821
-85

skipif mysql # not compatible
query II rowsort label-980
SELECT ALL - 60 * + SUM ( ALL 97 ) + - COUNT ( * ), - COUNT ( * ) * 85 col1
----
-5821
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-981
SELECT ALL + CASE - COUNT( * ) WHEN + - 73 + + 34 THEN NULL WHEN + + COUNT( DISTINCT NULLIF ( 22, + 44 + + NULLIF ( 58, + + 11 + 56 ) ) ) THEN + + CAST( - ( + 36 ) AS SIGNED ) END * + 94 + + + 94 + + 49 * - 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-981
SELECT ALL + CASE - COUNT ( * ) WHEN + - 73 + + 34 THEN NULL WHEN + + COUNT ( DISTINCT NULLIF ( 22, + 44 + + NULLIF ( 58, + + 11 + 56 ) ) ) THEN + + CAST ( - ( + 36 ) AS INTEGER ) END * + 94 + + + 94 + + 49 * - 55 AS col2
----
NULL

query I rowsort
SELECT NULLIF ( + + 74, - 82 ) AS col2
----
74

query I rowsort
SELECT DISTINCT - 67 * + - 8 AS col0
----
536

query I rowsort
SELECT ALL + 83 * 59 + - ( - + 28 )
----
4925

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-985
SELECT ALL + COUNT( * ) * + 18 + + - CAST( 16 AS SIGNED ) - + 93 * - 10 * 49 AS col1, ( + 61 ) * + 90 + - 53
----
45572
5437

skipif mysql # not compatible
query II rowsort label-985
SELECT ALL + COUNT ( * ) * + 18 + + - CAST ( 16 AS INTEGER ) - + 93 * - 10 * 49 AS col1, ( + 61 ) * + 90 + - 53
----
45572
5437

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-986
SELECT 13 * - 79 * + 52 - + + 73 - - - 52 DIV + SUM( DISTINCT 41 )
----
-53478

skipif mysql # not compatible
query I rowsort label-986
SELECT 13 * - 79 * + 52 - + + 73 - - - 52 / + SUM ( DISTINCT 41 )
----
-53478

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT ALL + 22 * + + MAX( - 80 ) col2
----
-1760

skipif mysql # not compatible
query I rowsort label-987
SELECT ALL + 22 * + + MAX ( - 80 ) col2
----
-1760

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-989
SELECT ALL + 30 DIV - - 73 AS col0, 75 AS col1
----
0
75

skipif mysql # not compatible
query II rowsort label-989
SELECT ALL + 30 / - - 73 AS col0, 75 AS col1
----
0
75

onlyif mysql # aggregate syntax: 
query I rowsort label-990
SELECT ALL - - 15 - - 50 + COUNT( * ) + + 68 * - - ( 71 ) + + 1 * + 16 AS col2
----
4910

skipif mysql # not compatible
query I rowsort label-990
SELECT ALL - - 15 - - 50 + COUNT ( * ) + + 68 * - - ( 71 ) + + 1 * + 16 AS col2
----
4910

query I rowsort
SELECT ALL 23 * 44
----
1012

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

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

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

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

query I rowsort
SELECT - COALESCE ( + 56, + - 51 ) + + 14 + 33
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT + 7 - COUNT( * ) * 53 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-995
SELECT + 7 - COUNT ( * ) * 53 AS col0
----
-46

query I rowsort
SELECT - 51 + + 76 AS col0
----
25

query II rowsort
SELECT ALL ( + - 98 ), + 49 + - 7 AS col0
----
-98
42

query I rowsort
SELECT - - ( - 32 ) + ( - + ( - + 74 ) ) AS col1
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-999
SELECT + + COUNT( * ) + + + 63 + - 89 * + CAST( NULL AS SIGNED ) col1, + 87 - + 78 AS col1
----
NULL
9

skipif mysql # not compatible
query II rowsort label-999
SELECT + + COUNT ( * ) + + + 63 + - 89 * + CAST ( NULL AS INTEGER ) col1, + 87 - + 78 AS col1
----
NULL
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT ALL CASE + 67 WHEN ( - COUNT( * ) ) THEN NULL WHEN + + 70 THEN NULL WHEN - + 48 THEN + MIN( - 82 ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1000
SELECT ALL CASE + 67 WHEN ( - COUNT ( * ) ) THEN NULL WHEN + + 70 THEN NULL WHEN - + 48 THEN + MIN ( - 82 ) END col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1001
SELECT + + MAX( ALL 14 ) AS col2, 94 - - 28
----
14
122

skipif mysql # not compatible
query II rowsort label-1001
SELECT + + MAX ( ALL 14 ) AS col2, 94 - - 28
----
14
122

onlyif mysql # aggregate syntax: 
query I rowsort label-1002
SELECT ALL - COALESCE ( + 91, - 68 * COUNT( * ), 38 - - 58 ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-1002
SELECT ALL - COALESCE ( + 91, - 68 * COUNT ( * ), 38 - - 58 ) AS col2
----
-91

query II rowsort
SELECT ALL 97 + - 81 + + 1 * + 39 - 12 AS col0, 12 AS col0
----
43
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1004
SELECT ALL 58 DIV + MAX( ALL - 18 )
----
-3

skipif mysql # not compatible
query I rowsort label-1004
SELECT ALL 58 / + MAX ( ALL - 18 )
----
-3

query I rowsort
SELECT ALL 34 + - 47
----
-13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1007
SELECT DISTINCT + COUNT( * ) + + 62 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-1007
SELECT DISTINCT + COUNT ( * ) + + 62 AS col1
----
63

query I rowsort
SELECT DISTINCT 57 * + + 36
----
2052

query I rowsort
SELECT DISTINCT - 80 + + + 21 AS col2
----
-59

query I rowsort
SELECT DISTINCT 50 + - 58
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1011
SELECT 24 * - 72 * + + 20, CAST( 69 AS SIGNED ) AS col0
----
-34560
69

skipif mysql # not compatible
query II rowsort label-1011
SELECT 24 * - 72 * + + 20, CAST ( 69 AS INTEGER ) AS col0
----
-34560
69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1012
SELECT 74, CAST( + + ( - + 77 ) AS SIGNED ) AS col2
----
74
-77

skipif mysql # not compatible
query II rowsort label-1012
SELECT 74, CAST ( + + ( - + 77 ) AS INTEGER ) AS col2
----
74
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1013
SELECT 17 * - SUM( + + 14 ) + 72 * ( - 62 ) AS col2
----
-4702

skipif mysql # not compatible
query I rowsort label-1013
SELECT 17 * - SUM ( + + 14 ) + 72 * ( - 62 ) AS col2
----
-4702

onlyif mysql # DIV for integer division: 
query I rowsort label-1014
SELECT DISTINCT 85 + ( ( - 41 ) ) DIV 46 + + 20
----
105

skipif mysql # not compatible
query I rowsort label-1014
SELECT DISTINCT 85 + ( ( - 41 ) ) / 46 + + 20
----
105

query I rowsort
SELECT ALL ( 99 ) + + 68 + + 79 AS col2
----
246

query II rowsort
SELECT 17 AS col1, 21
----
17
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT DISTINCT - CASE 24 WHEN 50 THEN + + COUNT( * ) + - 32 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1017
SELECT DISTINCT - CASE 24 WHEN 50 THEN + + COUNT ( * ) + - 32 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1018
SELECT 17 * 86 + - 35 * 24 DIV + 68 AS col1
----
1450

skipif mysql # not compatible
query I rowsort label-1018
SELECT 17 * 86 + - 35 * 24 / + 68 AS col1
----
1450

query I rowsort
SELECT DISTINCT 49 - + 68 col1
----
-19

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

skipif mysql # not compatible
query I rowsort label-1020
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 70
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1021
SELECT ALL - 81 - 42 + - + NULLIF ( - 79, - 36 + 61 + - - 25 * + - CASE - - 90 WHEN + + COALESCE ( + 50, + 61 ) * + ( + 36 ) * + - CAST( - COUNT( * ) AS SIGNED ) + - 75 + + CAST( NULL AS SIGNED ) / + 32 + - - COUNT( * ) THEN NULL ELSE + 72 END * CAST( - MIN( ALL - 21 ) * - 23 - - 83 * + 88 AS SIGNED ) ) * 13
----
904

skipif mysql # not compatible
query I rowsort label-1021
SELECT ALL - 81 - 42 + - + NULLIF ( - 79, - 36 + 61 + - - 25 * + - CASE - - 90 WHEN + + COALESCE ( + 50, + 61 ) * + ( + 36 ) * + - CAST ( - COUNT ( * ) AS INTEGER ) + - 75 + + CAST ( NULL AS INTEGER ) / + 32 + - - COUNT ( * ) THEN NULL ELSE + 72 END * CAST ( - MIN ( ALL - 21 ) * - 23 - - 83 * + 88 AS INTEGER ) ) * 13
----
904

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

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

query I rowsort
SELECT + 77 + 53
----
130

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

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

query II rowsort
SELECT - + 34, + 5 AS col2
----
-34
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1026
SELECT 78 + + 62 DIV + COUNT( ( + - ( + 95 ) ) ) + - 60 * + 33 + 26 AS col2
----
-1814

skipif mysql # not compatible
query I rowsort label-1026
SELECT 78 + + 62 / + COUNT ( ( + - ( + 95 ) ) ) + - 60 * + 33 + 26 AS col2
----
-1814

query I rowsort
SELECT + ( 12 ) * - 31 * - + 73 col2
----
27156

query I rowsort
SELECT + 4 + - 96 AS col0
----
-92

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

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

query I rowsort
SELECT - 71 * + + 34
----
-2414

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1031
SELECT DISTINCT + - 25 / + + ( + 14 ) * + + CASE - - 28 WHEN 72 THEN NULL WHEN + 24 * 54 * SUM( - CAST( + 87 AS SIGNED ) ) * + - 49 * + - NULLIF ( ( - COUNT( * ) ), - ( - - 82 ) - - COUNT( * ) ) * 40 + - CASE ( 21 ) WHEN + 47 THEN 20 + 0 ELSE + 60 * - 44 END + ( NULLIF ( 61, - 34 ) ) THEN NULL WHEN 18 THEN NULL ELSE - 77 * - 92 END + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1031
SELECT DISTINCT + - 25 / + + ( + 14 ) * + + CASE - - 28 WHEN 72 THEN NULL WHEN + 24 * 54 * SUM ( - CAST ( + 87 AS INTEGER ) ) * + - 49 * + - NULLIF ( ( - COUNT ( * ) ), - ( - - 82 ) - - COUNT ( * ) ) * 40 + - CASE ( 21 ) WHEN + 47 THEN 20 + 0 ELSE + 60 * - 44 END + ( NULLIF ( 61, - 34 ) ) THEN NULL WHEN 18 THEN NULL ELSE - 77 * - 92 END + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1032
SELECT DISTINCT + - 8 DIV - 96 DIV - COUNT( ALL - 96 )
----
0

skipif mysql # not compatible
query I rowsort label-1032
SELECT DISTINCT + - 8 / - 96 / - COUNT ( ALL - 96 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1033
SELECT 96 DIV - 95 + 95 + - 11 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-1033
SELECT 96 / - 95 + 95 + - 11 AS col0
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1034
SELECT ALL - SUM( + ( - 33 ) ) + + NULLIF ( - + 85, - 86 + + CAST( NULL AS SIGNED ) )
----
-52

skipif mysql # not compatible
query I rowsort label-1034
SELECT ALL - SUM ( + ( - 33 ) ) + + NULLIF ( - + 85, - 86 + + CAST ( NULL AS INTEGER ) )
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1035
SELECT + 51 * 33 DIV - MAX( - + 74 )
----
22

skipif mysql # not compatible
query I rowsort label-1035
SELECT + 51 * 33 / - MAX ( - + 74 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT + SUM( - 98 ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-1036
SELECT + SUM ( - 98 ) AS col0
----
-98

query I rowsort
SELECT ALL + + 83 + + 19 AS col0
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-1038
SELECT - - 6 AS col1, 82 + + + COUNT( * ) * + ( 51 )
----
6
133

skipif mysql # not compatible
query II rowsort label-1038
SELECT - - 6 AS col1, 82 + + + COUNT ( * ) * + ( 51 )
----
6
133

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1039
SELECT 80 - - 31 AS col1, 23 * + CAST( 72 AS SIGNED ) AS col1
----
111
1656

skipif mysql # not compatible
query II rowsort label-1039
SELECT 80 - - 31 AS col1, 23 * + CAST ( 72 AS INTEGER ) AS col1
----
111
1656

query I rowsort
SELECT ALL 52 * - - 91 col2
----
4732

onlyif mysql # aggregate syntax: 
query II rowsort label-1041
SELECT ALL 10 + + - 60 AS col2, - 7 + - COUNT( * )
----
-50
-8

skipif mysql # not compatible
query II rowsort label-1041
SELECT ALL 10 + + - 60 AS col2, - 7 + - COUNT ( * )
----
-50
-8

query I rowsort
SELECT 93 * - 16 - - + 61 AS col1
----
-1427

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1043
SELECT ALL - 57 + 21 + 55 + - - CAST( - 51 AS SIGNED ) + + 34 + + COALESCE ( 59, + - 27, - 3 ) * + 77 + + + 90 * 12 * - 2 * - - 78 * - 53 AS col2
----
8933985

skipif mysql # not compatible
query I rowsort label-1043
SELECT ALL - 57 + 21 + 55 + - - CAST ( - 51 AS INTEGER ) + + 34 + + COALESCE ( 59, + - 27, - 3 ) * + 77 + + + 90 * 12 * - 2 * - - 78 * - 53 AS col2
----
8933985

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT COUNT( + 42 ) * 72 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-1044
SELECT COUNT ( + 42 ) * 72 AS col1
----
72

query II rowsort
SELECT ALL - ( 58 ), 51 AS col0
----
-58
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1046
SELECT COUNT( * ), 11 DIV - 3 AS col1
----
1
-3

skipif mysql # not compatible
query II rowsort label-1046
SELECT COUNT ( * ), 11 / - 3 AS col1
----
1
-3

query I rowsort
SELECT + 58 * 32 + + 32 + 48 * - 22 col2
----
832

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT - ( - 90 ) * - - 34 * + 41 + + - 19 + 58 - + COUNT( * )
----
125498

skipif mysql # not compatible
query I rowsort label-1048
SELECT - ( - 90 ) * - - 34 * + 41 + + - 19 + 58 - + COUNT ( * )
----
125498

query I rowsort
SELECT 30 * - 47 - - 94
----
-1316

onlyif mysql # DIV for integer division: 
query I rowsort label-1050
SELECT ALL 44 - + 34 DIV - ( + 50 ) * - 30 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-1050
SELECT ALL 44 - + 34 / - ( + 50 ) * - 30 AS col2
----
44

query I rowsort
SELECT NULLIF ( - + 10, + - 22 * 78 / - - 35 + + 57 ) + - 79 * + ( + 8 ) - 44 AS col1
----
-686

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

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

query I rowsort
SELECT 31 * 66 + + - 2
----
2044

query I rowsort
SELECT DISTINCT 32 * + 4
----
128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1055
SELECT ALL - COALESCE ( CASE + 27 WHEN - COUNT( * ) THEN + 92 END, 94 DIV + 88 - - + 34 + + + 63, 73 DIV 7, + 89 ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-1055
SELECT ALL - COALESCE ( CASE + 27 WHEN - COUNT ( * ) THEN + 92 END, 94 / + 88 - - + 34 + + + 63, 73 / 7, + 89 ) AS col0
----
-98

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1058
SELECT + 66 * COUNT( * ) * - ( 85 )
----
-5610

skipif mysql # not compatible
query I rowsort label-1058
SELECT + 66 * COUNT ( * ) * - ( 85 )
----
-5610

onlyif mysql # aggregate syntax: 
query I rowsort label-1059
SELECT ALL MIN( DISTINCT NULLIF ( + 7, + + ( - 21 ) ) ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-1059
SELECT ALL MIN ( DISTINCT NULLIF ( + 7, + + ( - 21 ) ) ) AS col2
----
7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1061
SELECT - 14 * - 84 - 20 + + SUM( + - 63 ) * + COUNT( ALL 74 ) + 4 + 57 + + 94 * COUNT( * ) + + - 22 + + 85 - - COALESCE ( - + 79, - MIN( DISTINCT + - 27 ) ) col0
----
1232

skipif mysql # not compatible
query I rowsort label-1061
SELECT - 14 * - 84 - 20 + + SUM ( + - 63 ) * + COUNT ( ALL 74 ) + 4 + 57 + + 94 * COUNT ( * ) + + - 22 + + 85 - - COALESCE ( - + 79, - MIN ( DISTINCT + - 27 ) ) col0
----
1232

query II rowsort
SELECT ALL 53, - ( - 38 ) AS col1
----
53
38

query I rowsort
SELECT 72 + + 30 * + + 29 AS col0
----
942

query I rowsort
SELECT - 69 * 32 AS col1
----
-2208

query I rowsort
SELECT ALL + 96 * - 50 * - 98 AS col0
----
470400

query I rowsort
SELECT DISTINCT + CASE + 92 WHEN - - 66 + - + 42 THEN NULL WHEN 99 + - + 79 THEN - 9 + 45 END / + - 84 * + 35 AS col0
----
NULL

query I rowsort
SELECT ALL + 26 + 17 AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1068
SELECT + - COUNT( * ) + - + 29 * 24 + ( + - 17 ) - 9 * 22 * - 58
----
10770

skipif mysql # not compatible
query I rowsort label-1068
SELECT + - COUNT ( * ) + - + 29 * 24 + ( + - 17 ) - 9 * 22 * - 58
----
10770

query III rowsort
SELECT - + 75 AS col0, 82, - + 85 * + 15 AS col2
----
-75
82
-1275

onlyif mysql # DIV for integer division: 
query I rowsort label-1070
SELECT - 32 DIV + + 15
----
-2

skipif mysql # not compatible
query I rowsort label-1070
SELECT - 32 / + + 15
----
-2

query I rowsort
SELECT DISTINCT + 33 + 62 AS col2
----
95

query I rowsort
SELECT ALL + 98 + - 23
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-1073
SELECT ALL 22 + COUNT( * ), 23
----
23
23

skipif mysql # not compatible
query II rowsort label-1073
SELECT ALL 22 + COUNT ( * ), 23
----
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1074
SELECT - 93 + - - 70 + + 27 * - COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-1074
SELECT - 93 + - - 70 + + 27 * - COUNT ( * )
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1075
SELECT ALL - 25 + + CAST( NULL AS SIGNED ) + - 45 / - 80 + 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1075
SELECT ALL - 25 + + CAST ( NULL AS INTEGER ) + - 45 / - 80 + 45 AS col1
----
NULL

query I rowsort
SELECT - 10 * + 91 AS col2
----
-910

onlyif mysql # DIV for integer division: 
query I rowsort label-1077
SELECT ALL - 53 DIV - - 61
----
0

skipif mysql # not compatible
query I rowsort label-1077
SELECT ALL - 53 / - - 61
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT ALL MIN( DISTINCT - + 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-1078
SELECT ALL MIN ( DISTINCT - + 38 )
----
-38

query I rowsort
SELECT - 86 + + + 16
----
-70

query II rowsort
SELECT ( + + 65 ), 38 AS col2
----
65
38

query I rowsort
SELECT + 39 + + 67 + 24 * 46
----
1210

onlyif mysql # aggregate syntax: 
query II rowsort label-1082
SELECT - 50 * - COUNT( * ) * - 45 AS col1, - 33 AS col0
----
-2250
-33

skipif mysql # not compatible
query II rowsort label-1082
SELECT - 50 * - COUNT ( * ) * - 45 AS col1, - 33 AS col0
----
-2250
-33

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1083
SELECT COALESCE ( - 36, + 97 * + 39 DIV + CAST( NULL AS SIGNED ) )
----
-36

skipif mysql # not compatible
query I rowsort label-1083
SELECT COALESCE ( - 36, + 97 * + 39 / + CAST ( NULL AS INTEGER ) )
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-1084
SELECT - 20 + 19 DIV 47
----
-20

skipif mysql # not compatible
query I rowsort label-1084
SELECT - 20 + 19 / 47
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1085
SELECT ALL + CAST( 46 AS SIGNED ) AS col2, SUM( ALL - 99 ) AS col1
----
46
-99

skipif mysql # not compatible
query II rowsort label-1085
SELECT ALL + CAST ( 46 AS INTEGER ) AS col2, SUM ( ALL - 99 ) AS col1
----
46
-99

query I rowsort
SELECT - 67 - + 4 + 98
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1087
SELECT + NULLIF ( + 31, + MAX( DISTINCT - - 50 ) ) * - + 69 - - 25 + 83 + 81 + - + 3 * + CAST( NULL AS SIGNED ) + + + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-1087
SELECT + NULLIF ( + 31, + MAX ( DISTINCT - - 50 ) ) * - + 69 - - 25 + 83 + 81 + - + 3 * + CAST ( NULL AS INTEGER ) + + + 78
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1088
SELECT ALL + - COALESCE ( - 57, 29 + CAST( + 2 AS SIGNED ) + 38 )
----
57

skipif mysql # not compatible
query I rowsort label-1088
SELECT ALL + - COALESCE ( - 57, 29 + CAST ( + 2 AS INTEGER ) + 38 )
----
57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1089
SELECT - 17 / CAST( NULL AS DECIMAL ) / + - 12 / + 39 * 27
----
NULL

skipif mysql # not compatible
query I rowsort label-1089
SELECT - 17 / CAST ( NULL AS REAL ) / + - 12 / + 39 * 27
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1090
SELECT + 87 / + CAST( NULL AS SIGNED ) + + 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1090
SELECT + 87 / + CAST ( NULL AS INTEGER ) + + 30 AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1092
SELECT + + 86 + - 40 * + - CASE 13 WHEN + - COUNT( * ) + + 47 THEN - 79 * - NULLIF ( + CAST( - 10 AS SIGNED ), + 40 * + SUM( ALL 58 ) * - 13 + ( - ( + 96 ) ) ) + - 96 * + 7 END + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-1092
SELECT + + 86 + - 40 * + - CASE 13 WHEN + - COUNT ( * ) + + 47 THEN - 79 * - NULLIF ( + CAST ( - 10 AS INTEGER ), + 40 * + SUM ( ALL 58 ) * - 13 + ( - ( + 96 ) ) ) + - 96 * + 7 END + 66
----
NULL

query I rowsort
SELECT ALL - 90 * - 34 + 25 + 69 - ( 81 )
----
3073

query I rowsort
SELECT - + 92 + - 26
----
-118

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

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

query I rowsort
SELECT ALL 59 + - + 63 * 11
----
-634

onlyif mysql # aggregate syntax: 
query II rowsort label-1097
SELECT + COUNT( * ) + - 87 AS col2, - COUNT( DISTINCT + 37 ) AS col1
----
-86
-1

skipif mysql # not compatible
query II rowsort label-1097
SELECT + COUNT ( * ) + - 87 AS col2, - COUNT ( DISTINCT + 37 ) AS col1
----
-86
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1098
SELECT + MIN( + ( - + 9 ) ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-1098
SELECT + MIN ( + ( - + 9 ) ) AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1099
SELECT ALL - COUNT( * ) + 59 - + 89 * - 66 * 75
----
440608

skipif mysql # not compatible
query I rowsort label-1099
SELECT ALL - COUNT ( * ) + 59 - + 89 * - 66 * 75
----
440608

query II rowsort
SELECT - ( + 40 ) col1, 1 * 94
----
-40
94

query II rowsort
SELECT + + 34 * 23 * + - 15 AS col2, 87
----
-11730
87

query I rowsort
SELECT ALL + 23 * - 1 * - + 54 * - + 37
----
-45954

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT + COALESCE ( + 41, CASE MIN( ALL 7 ) WHEN 38 THEN NULL WHEN 2 THEN NULLIF ( 30, NULLIF ( - - 82, + + 66 ) ) * + 93 END )
----
41

skipif mysql # not compatible
query I rowsort label-1103
SELECT + COALESCE ( + 41, CASE MIN ( ALL 7 ) WHEN 38 THEN NULL WHEN 2 THEN NULLIF ( 30, NULLIF ( - - 82, + + 66 ) ) * + 93 END )
----
41

query I rowsort
SELECT ALL + 93 - - 45
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1105
SELECT - CAST( + NULLIF ( - COALESCE ( + 88, + - 61 + 83 + - 92 * COUNT( * ), + 36 * + 47 ), - - 85 * 66 ) AS SIGNED )
----
88

skipif mysql # not compatible
query I rowsort label-1105
SELECT - CAST ( + NULLIF ( - COALESCE ( + 88, + - 61 + 83 + - 92 * COUNT ( * ), + 36 * + 47 ), - - 85 * 66 ) AS INTEGER )
----
88

query I rowsort
SELECT + 81 - 27
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1107
SELECT - 87 * - MIN( + ( + 81 ) ) AS col0
----
7047

skipif mysql # not compatible
query I rowsort label-1107
SELECT - 87 * - MIN ( + ( + 81 ) ) AS col0
----
7047

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1108
SELECT ALL COUNT( + - 34 ) - CAST( NULL AS DECIMAL ) + - ( - ( ( ( 8 ) ) ) ) + + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1108
SELECT ALL COUNT ( + - 34 ) - CAST ( NULL AS REAL ) + - ( - ( ( ( 8 ) ) ) ) + + + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1109
SELECT + 51 DIV + 16 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-1109
SELECT + 51 / + 16 AS col2
----
3

query I rowsort
SELECT - 57 * + 83
----
-4731

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1111
SELECT ALL CASE COALESCE ( - 16, + - 61 * + CAST( NULL AS SIGNED ) ) WHEN NULLIF ( 25, 3 * COUNT( * ) + 67 ) THEN NULL WHEN + CAST( NULL AS SIGNED ) * + + 92 THEN + 99 * + - ( + - 36 ) WHEN + 72 + - 82 * - 4 THEN NULL ELSE - MAX( ALL 20 ) END AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-1111
SELECT ALL CASE COALESCE ( - 16, + - 61 * + CAST ( NULL AS INTEGER ) ) WHEN NULLIF ( 25, 3 * COUNT ( * ) + 67 ) THEN NULL WHEN + CAST ( NULL AS INTEGER ) * + + 92 THEN + 99 * + - ( + - 36 ) WHEN + 72 + - 82 * - 4 THEN NULL ELSE - MAX ( ALL 20 ) END AS col0
----
-20

query II rowsort
SELECT + 27 - + - NULLIF ( + 41, - 84 ) AS col0, - 75 col0
----
68
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-1113
SELECT ALL - 95 DIV + - 28
----
3

skipif mysql # not compatible
query I rowsort label-1113
SELECT ALL - 95 / + - 28
----
3

query I rowsort
SELECT - 21 * - 26
----
546

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1116
SELECT - COUNT( - 81 ) * - - 15
----
-15

skipif mysql # not compatible
query I rowsort label-1116
SELECT - COUNT ( - 81 ) * - - 15
----
-15

query I rowsort
SELECT 68 * ( - - 29 ) * - + 87 + + - 77
----
-171641

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1118
SELECT CAST( - COALESCE ( 85, 88, + 70, + 26 ) AS SIGNED ) AS col0, - 80 col1
----
-85
-80

skipif mysql # not compatible
query II rowsort label-1118
SELECT CAST ( - COALESCE ( 85, 88, + 70, + 26 ) AS INTEGER ) AS col0, - 80 col1
----
-85
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-1119
SELECT + COUNT( * ) * 5 - 66, + COUNT( * ) + + 75 AS col2
----
-61
76

skipif mysql # not compatible
query II rowsort label-1119
SELECT + COUNT ( * ) * 5 - 66, + COUNT ( * ) + + 75 AS col2
----
-61
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT - COUNT( - - 15 ) * + COUNT( ALL + 35 )
----
-1

skipif mysql # not compatible
query I rowsort label-1120
SELECT - COUNT ( - - 15 ) * + COUNT ( ALL + 35 )
----
-1

query II rowsort
SELECT - ( - + 47 ) * - 77 AS col0, + 12
----
-3619
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1122
SELECT 5 * - 90 - - ( + COUNT( * ) ) + 17 + - 78 + ( - + 22 ) DIV - 45 * - 85
----
-510

skipif mysql # not compatible
query I rowsort label-1122
SELECT 5 * - 90 - - ( + COUNT ( * ) ) + 17 + - 78 + ( - + 22 ) / - 45 * - 85
----
-510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1123
SELECT ALL 43 / + CASE - 21 WHEN + - 87 THEN - - 72 WHEN + COALESCE ( - 2, - 26 + - CAST( NULL AS SIGNED ) ) * 1 + - 90 * 66 * - + MAX( 8 ) * + 34 THEN 83 * + 22 * + + 30 END + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1123
SELECT ALL 43 / + CASE - 21 WHEN + - 87 THEN - - 72 WHEN + COALESCE ( - 2, - 26 + - CAST ( NULL AS INTEGER ) ) * 1 + - 90 * 66 * - + MAX ( 8 ) * + 34 THEN 83 * + 22 * + + 30 END + COUNT ( * ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1124
SELECT ALL 81 DIV ( - 6 ) + - - 11 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-1124
SELECT ALL 81 / ( - 6 ) + - - 11 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT - - 56 + ( - + 17 ) - - - ( 95 ) * + CASE - 59 WHEN + - 4 / MIN( DISTINCT ( - + 28 ) ) + 63 * + 2 * - + 4 / + + 27 * + + ( - CASE - 39 WHEN + COUNT( * ) * 51 THEN + 71 ELSE NULL END ) * + + 24 + - 80 + - 12 / 75 THEN NULL ELSE COUNT( * ) END + 27
----
-29

skipif mysql # not compatible
query I rowsort label-1125
SELECT - - 56 + ( - + 17 ) - - - ( 95 ) * + CASE - 59 WHEN + - 4 / MIN ( DISTINCT ( - + 28 ) ) + 63 * + 2 * - + 4 / + + 27 * + + ( - CASE - 39 WHEN + COUNT ( * ) * 51 THEN + 71 ELSE NULL END ) * + + 24 + - 80 + - 12 / 75 THEN NULL ELSE COUNT ( * ) END + 27
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1126
SELECT ALL - - CASE + NULLIF ( COUNT( * ), - COALESCE ( 68, NULLIF ( + COUNT( * ), ( 92 ) + 4 - + 6 ) / 63 + 86 * 87 ) ) WHEN + 77 THEN - 39 END * CASE + 83 WHEN - 33 * - 21 * - + 74 * 74 / CASE SUM( + 27 ) WHEN 57 THEN + 54 / 78 + - 27 ELSE - 71 END THEN NULL ELSE - 82 END - + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-1126
SELECT ALL - - CASE + NULLIF ( COUNT ( * ), - COALESCE ( 68, NULLIF ( + COUNT ( * ), ( 92 ) + 4 - + 6 ) / 63 + 86 * 87 ) ) WHEN + 77 THEN - 39 END * CASE + 83 WHEN - 33 * - 21 * - + 74 * 74 / CASE SUM ( + 27 ) WHEN 57 THEN + 54 / 78 + - 27 ELSE - 71 END THEN NULL ELSE - 82 END - + 89
----
NULL

query I rowsort
SELECT - + 40 * + NULLIF ( + 44, + 0 ) AS col1
----
-1760

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT + 85 * - + 34 + - COALESCE ( - 95, + 62 + - - COUNT( * ) + + 42 + - 8 + 95 ) + + 45 AS col2
----
-2750

skipif mysql # not compatible
query I rowsort label-1128
SELECT + 85 * - + 34 + - COALESCE ( - 95, + 62 + - - COUNT ( * ) + + 42 + - 8 + 95 ) + + 45 AS col2
----
-2750

query I rowsort
SELECT DISTINCT - 18 * - 23 AS col0
----
414

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

skipif mysql # not compatible
query I rowsort label-1130
SELECT ALL - + COUNT ( DISTINCT + - 59 ) AS col2
----
-1

query II rowsort
SELECT + - 2 col2, 67
----
-2
67

query I rowsort
SELECT - 4 + + 55
----
51

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

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

query II rowsort
SELECT 94 + + - 65 - 69 AS col1, 69 - + - COALESCE ( - 38, + - 22 * + 51 ) AS col1
----
-40
31

onlyif mysql # aggregate syntax: 
query II rowsort label-1135
SELECT + 99 AS col2, - MIN( + 22 )
----
99
-22

skipif mysql # not compatible
query II rowsort label-1135
SELECT + 99 AS col2, - MIN ( + 22 )
----
99
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1136
SELECT ALL CAST( - 58 AS SIGNED )
----
-58

skipif mysql # not compatible
query I rowsort label-1136
SELECT ALL CAST ( - 58 AS INTEGER )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1137
SELECT ALL + - 59 + + NULLIF ( NULLIF ( + 4, + COUNT( ALL 90 ) ), - - ( + 44 ) - - + 4 - 28 / - + ( - 8 ) * - 3 * + MAX( DISTINCT - - 72 ) * - + ( COUNT( ALL 91 ) ) + - 20 + + + 77 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-1137
SELECT ALL + - 59 + + NULLIF ( NULLIF ( + 4, + COUNT ( ALL 90 ) ), - - ( + 44 ) - - + 4 - 28 / - + ( - 8 ) * - 3 * + MAX ( DISTINCT - - 72 ) * - + ( COUNT ( ALL 91 ) ) + - 20 + + + 77 ) AS col2
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1138
SELECT ALL - 74 DIV + - CAST( + 59 AS SIGNED ), - COUNT( * ) AS col2
----
1
-1

skipif mysql # not compatible
query II rowsort label-1138
SELECT ALL - 74 / + - CAST ( + 59 AS INTEGER ), - COUNT ( * ) AS col2
----
1
-1

query I rowsort
SELECT + 53 + 22 * + - 48
----
-1003

query II rowsort
SELECT ALL + 94, - 85 AS col1
----
94
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1141
SELECT 79 + - - 38 / - 29 * 84 + - CASE + 23 WHEN - + 26 THEN - AVG ( - CAST( NULL AS SIGNED ) ) * 44 WHEN + 42 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1141
SELECT 79 + - - 38 / - 29 * 84 + - CASE + 23 WHEN - + 26 THEN - AVG ( - CAST ( NULL AS INTEGER ) ) * 44 WHEN + 42 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1142
SELECT COUNT( * ) - 63 - + - 28 * 48 * 67 DIV - + 51 AS col0
----
-1827

skipif mysql # not compatible
query I rowsort label-1142
SELECT COUNT ( * ) - 63 - + - 28 * 48 * 67 / - + 51 AS col0
----
-1827

onlyif mysql # aggregate syntax: 
query II rowsort label-1143
SELECT ALL 93 * 78 * + ( 78 ) AS col1, + MIN( ALL - 79 )
----
565812
-79

skipif mysql # not compatible
query II rowsort label-1143
SELECT ALL 93 * 78 * + ( 78 ) AS col1, + MIN ( ALL - 79 )
----
565812
-79

query II rowsort
SELECT 89 + 88, - 35 AS col2
----
177
-35

query I rowsort
SELECT NULLIF ( 82, + 63 ) + - 77 * - 47
----
3701

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1146
SELECT COUNT( * ) + + + CAST( NULL AS SIGNED ) AS col0, + 10 + + 9 AS col0
----
NULL
19

skipif mysql # not compatible
query II rowsort label-1146
SELECT COUNT ( * ) + + + CAST ( NULL AS INTEGER ) AS col0, + 10 + + 9 AS col0
----
NULL
19

query I rowsort
SELECT 8 * + 11 col0
----
88

query I rowsort
SELECT 14 + - + ( + 83 ) + - + 77 + + + 57
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1149
SELECT NULLIF ( - COUNT( * ), 80 + - + 86 - + + 75 + + 42 * - 6 ) + + ( - - 61 ) + - 51, + 99 DIV + 81 * + COUNT( - ( - 89 ) ) AS col1
----
9
1

skipif mysql # not compatible
query II rowsort label-1149
SELECT NULLIF ( - COUNT ( * ), 80 + - + 86 - + + 75 + + 42 * - 6 ) + + ( - - 61 ) + - 51, + 99 / + 81 * + COUNT ( - ( - 89 ) ) AS col1
----
9
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1150
SELECT 33 + - COUNT( * ) * ( + 49 ) AS col1, - 40
----
-16
-40

skipif mysql # not compatible
query II rowsort label-1150
SELECT 33 + - COUNT ( * ) * ( + 49 ) AS col1, - 40
----
-16
-40

query I rowsort
SELECT DISTINCT 20 * 45 * + + 39
----
35100

query I rowsort
SELECT 59 + + + 89 AS col2
----
148

query I rowsort
SELECT DISTINCT 73 + 15 AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1154
SELECT ALL - 73 + - 32 + COUNT( * ) + - - 45 * 21 - 86 AS col0
----
755

skipif mysql # not compatible
query I rowsort label-1154
SELECT ALL - 73 + - 32 + COUNT ( * ) + - - 45 * 21 - 86 AS col0
----
755

query I rowsort
SELECT NULLIF ( - - 12, + 72 ) * - 57
----
-684

onlyif mysql # aggregate syntax: 
query I rowsort label-1156
SELECT ALL COUNT( * ) * - 96 * 67 AS col1
----
-6432

skipif mysql # not compatible
query I rowsort label-1156
SELECT ALL COUNT ( * ) * - 96 * 67 AS col1
----
-6432

query II rowsort
SELECT DISTINCT - 22 + - - 90 col1, 9 AS col2
----
68
9

query I rowsort
SELECT DISTINCT + + 66 + + 85
----
151

query I rowsort
SELECT ALL + - 24 + ( 69 ) + + - 14 * ( + 92 ) * - ( + 70 ) + - 80 * - - 15
----
89005

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT 27 + - NULLIF ( ( - + 56 ), + 90 + + CASE + 7 WHEN 99 THEN NULL WHEN + 37 THEN NULL ELSE ( + + COUNT( * ) ) * + 97 - - 29 END )
----
83

skipif mysql # not compatible
query I rowsort label-1160
SELECT 27 + - NULLIF ( ( - + 56 ), + 90 + + CASE + 7 WHEN 99 THEN NULL WHEN + 37 THEN NULL ELSE ( + + COUNT ( * ) ) * + 97 - - 29 END )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1161
SELECT DISTINCT - - 94 * MIN( DISTINCT - - 8 )
----
752

skipif mysql # not compatible
query I rowsort label-1161
SELECT DISTINCT - - 94 * MIN ( DISTINCT - - 8 )
----
752

query I rowsort
SELECT 96 + 86 AS col0
----
182

query I rowsort
SELECT DISTINCT 33 * - 18 AS col0
----
-594

query I rowsort
SELECT 14 + + + 39 AS col2
----
53

query I rowsort
SELECT 20 * + + 40 * + - 57
----
-45600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1166
SELECT ( + CAST( NULL AS SIGNED ) ) * - - 57 + + 25 + 20 - + + MAX( 45 ) * - 27 + - - 86 * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1166
SELECT ( + CAST ( NULL AS INTEGER ) ) * - - 57 + + 25 + 20 - + + MAX ( 45 ) * - 27 + - - 86 * + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT 33 * - 84
----
-2772

query I rowsort
SELECT ALL 32 + - + 69
----
-37

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1170
SELECT ALL + 77 + - CASE COUNT( * ) WHEN - ( - 45 ) THEN - 16 + - 76 + + SUM( + CAST( - 10 AS SIGNED ) ) ELSE - 43 END AS col2
----
120

skipif mysql # not compatible
query I rowsort label-1170
SELECT ALL + 77 + - CASE COUNT ( * ) WHEN - ( - 45 ) THEN - 16 + - 76 + + SUM ( + CAST ( - 10 AS INTEGER ) ) ELSE - 43 END AS col2
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1171
SELECT NULLIF ( 30, - + 79 * CAST( NULL AS SIGNED ) * 35 * + 90 ) - + COUNT( * ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-1171
SELECT NULLIF ( 30, - + 79 * CAST ( NULL AS INTEGER ) * 35 * + 90 ) - + COUNT ( * ) AS col0
----
29

query I rowsort
SELECT ALL + 0 * - 66 + - 72
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1173
SELECT + - 74 * - COALESCE ( + - 22, + + COUNT( * ) * + + 44 * 8 ) AS col1
----
-1628

skipif mysql # not compatible
query I rowsort label-1173
SELECT + - 74 * - COALESCE ( + - 22, + + COUNT ( * ) * + + 44 * 8 ) AS col1
----
-1628

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1174
SELECT ALL + 68 * - + 40 * + 73, 33 * - NULLIF ( 8, + + 69 + - 8 ) * - 34 + 75 - - + CASE + ( + CAST( + 53 AS SIGNED ) ) WHEN - 29 + + CAST( NULL AS SIGNED ) THEN CAST( NULL AS SIGNED ) END + 32 * - + 13 AS col2
----
-198560
NULL

skipif mysql # not compatible
query II rowsort label-1174
SELECT ALL + 68 * - + 40 * + 73, 33 * - NULLIF ( 8, + + 69 + - 8 ) * - 34 + 75 - - + CASE + ( + CAST ( + 53 AS INTEGER ) ) WHEN - 29 + + CAST ( NULL AS INTEGER ) THEN CAST ( NULL AS INTEGER ) END + 32 * - + 13 AS col2
----
-198560
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1176
SELECT - COALESCE ( 20, + ( - + 92 ) / 46 * + 66, - SUM( + - 0 ) + - 92 * + 23 + + 88 ) * - 11 - 89 + - 38 * + - 80 * 72 + + 50 - ( CAST( NULL AS SIGNED ) ) / + COALESCE ( - 69, - 30 * + + AVG ( - - 38 ) ) * + 71 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1176
SELECT - COALESCE ( 20, + ( - + 92 ) / 46 * + 66, - SUM ( + - 0 ) + - 92 * + 23 + + 88 ) * - 11 - 89 + - 38 * + - 80 * 72 + + 50 - ( CAST ( NULL AS INTEGER ) ) / + COALESCE ( - 69, - 30 * + + AVG ( - - 38 ) ) * + 71 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1177
SELECT + 11, CAST( + 73 AS SIGNED ) AS col1
----
11
73

skipif mysql # not compatible
query II rowsort label-1177
SELECT + 11, CAST ( + 73 AS INTEGER ) AS col1
----
11
73

query II rowsort
SELECT + 22 AS col2, + 43
----
22
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1179
SELECT ALL 21 * 56 * - 69 * 94 * - CAST( NULL AS SIGNED ) - COALESCE ( + 94, - 1 + + COUNT( 82 ) + - CASE + 0 WHEN - 77 + + 47 THEN 84 END * - COUNT( * ) - - NULLIF ( - - MIN( + + 26 ), 30 ) / + 25 * + ( 16 ), + 62 + - CAST( + 68 AS SIGNED ) ) + + 25 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1179
SELECT ALL 21 * 56 * - 69 * 94 * - CAST ( NULL AS INTEGER ) - COALESCE ( + 94, - 1 + + COUNT ( 82 ) + - CASE + 0 WHEN - 77 + + 47 THEN 84 END * - COUNT ( * ) - - NULLIF ( - - MIN ( + + 26 ), 30 ) / + 25 * + ( 16 ), + 62 + - CAST ( + 68 AS INTEGER ) ) + + 25 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1180
SELECT DISTINCT + 82, - ( - 79 ) * 31 * - MAX( DISTINCT - 7 ) AS col2
----
82
17143

skipif mysql # not compatible
query II rowsort label-1180
SELECT DISTINCT + 82, - ( - 79 ) * 31 * - MAX ( DISTINCT - 7 ) AS col2
----
82
17143

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1183
SELECT ALL + COALESCE ( 61, 37 ) DIV - 39 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1183
SELECT ALL + COALESCE ( 61, 37 ) / - 39 AS col0
----
-1

query I rowsort
SELECT + + 61 + - - 24 AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1185
SELECT - + CASE - 90 WHEN - 77 THEN NULL WHEN + ( + 19 ) THEN + 34 END / - + COUNT( * ) + + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-1185
SELECT - + CASE - 90 WHEN - 77 THEN NULL WHEN + ( + 19 ) THEN + 34 END / - + COUNT ( * ) + + 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1186
SELECT + - 86 + - 28 + COALESCE ( + + SUM( DISTINCT 54 ), + + 50, 8 ) * - 69 AS col0
----
-3840

skipif mysql # not compatible
query I rowsort label-1186
SELECT + - 86 + - 28 + COALESCE ( + + SUM ( DISTINCT 54 ), + + 50, 8 ) * - 69 AS col0
----
-3840

query I rowsort
SELECT - - 23 + - 16 AS col2
----
7

query II rowsort
SELECT DISTINCT 52, 86 * - 67 AS col2
----
52
-5762

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1190
SELECT - 80 + + ( + 25 ) + + 17 DIV 4 - + ( - - 18 ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-1190
SELECT - 80 + + ( + 25 ) + + 17 / 4 - + ( - - 18 ) AS col2
----
-69

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1192
SELECT DISTINCT COALESCE ( COUNT( * ), - ( 38 ) * - 37 + + - COUNT( * ), + - 26 ), 30 AS col0
----
1
30

skipif mysql # not compatible
query II rowsort label-1192
SELECT DISTINCT COALESCE ( COUNT ( * ), - ( 38 ) * - 37 + + - COUNT ( * ), + - 26 ), 30 AS col0
----
1
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1193
SELECT - 68 + 84 + + 32 * + CAST( - SUM( ALL 12 ) AS SIGNED ) * + COUNT( * ) * 22
----
-8432

skipif mysql # not compatible
query I rowsort label-1193
SELECT - 68 + 84 + + 32 * + CAST ( - SUM ( ALL 12 ) AS INTEGER ) * + COUNT ( * ) * 22
----
-8432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1194
SELECT ALL - COUNT( * ) + + 82 + - 24 + + COUNT( * ) * + 47 * CAST( NULL AS SIGNED ) * - 81 * 56
----
NULL

skipif mysql # not compatible
query I rowsort label-1194
SELECT ALL - COUNT ( * ) + + 82 + - 24 + + COUNT ( * ) * + 47 * CAST ( NULL AS INTEGER ) * - 81 * 56
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1195
SELECT - 20 DIV ( - 66 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1195
SELECT - 20 / ( - 66 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1196
SELECT + NULLIF ( - + COUNT( * ), - + 45 ) + NULLIF ( - - 96, - CAST( - 62 AS SIGNED ) / - - 2 * + 30 )
----
95

skipif mysql # not compatible
query I rowsort label-1196
SELECT + NULLIF ( - + COUNT ( * ), - + 45 ) + NULLIF ( - - 96, - CAST ( - 62 AS INTEGER ) / - - 2 * + 30 )
----
95

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

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

query II rowsort
SELECT 44 AS col0, NULLIF ( + 92, - 39 ) AS col2
----
44
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT DISTINCT COUNT( * ) + 42 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-1199
SELECT DISTINCT COUNT ( * ) + 42 AS col1
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-1200
SELECT ALL - 51 AS col2, + CASE 49 WHEN COUNT( * ) THEN + 64 ELSE NULL END AS col0
----
-51
NULL

skipif mysql # not compatible
query II rowsort label-1200
SELECT ALL - 51 AS col2, + CASE 49 WHEN COUNT ( * ) THEN + 64 ELSE NULL END AS col0
----
-51
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1201
SELECT - + 8 DIV + + 49 + - - 68
----
68

skipif mysql # not compatible
query I rowsort label-1201
SELECT - + 8 / + + 49 + - - 68
----
68

query I rowsort
SELECT + + 3 + 90
----
93

query I rowsort
SELECT + 31 + 4 AS col0
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1204
SELECT ALL - MAX( + 67 ) DIV 87 DIV - COUNT( * ) - + + 67
----
-67

skipif mysql # not compatible
query I rowsort label-1204
SELECT ALL - MAX ( + 67 ) / 87 / - COUNT ( * ) - + + 67
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1205
SELECT + 17, - 48 * + + MAX( + CAST( NULL AS SIGNED ) ) * - 40 AS col0
----
17
NULL

skipif mysql # not compatible
query II rowsort label-1205
SELECT + 17, - 48 * + + MAX ( + CAST ( NULL AS INTEGER ) ) * - 40 AS col0
----
17
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( + ( 40 ), - 34 * - + ( - 15 ) * - + 75 + - 34 ) AS col2
----
40

query I rowsort
SELECT ALL + ( 78 ) col1
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1208
SELECT ALL + CAST( NULL AS SIGNED ) / + - 96 - 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1208
SELECT ALL + CAST ( NULL AS INTEGER ) / + - 96 - 26 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1209
SELECT + MIN ( - 53 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT DISTINCT + - SUM( DISTINCT - 36 ) col2
----
36

skipif mysql # not compatible
query I rowsort label-1210
SELECT DISTINCT + - SUM ( DISTINCT - 36 ) col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1211
SELECT + + 58 * COUNT( * ) - - 75 AS col2
----
133

skipif mysql # not compatible
query I rowsort label-1211
SELECT + + 58 * COUNT ( * ) - - 75 AS col2
----
133

query I rowsort
SELECT + - 1 * - + 34 - 86
----
-52

query I rowsort
SELECT + - 89 col2
----
-89

query I rowsort
SELECT - - 32 - + 87
----
-55

query I rowsort
SELECT DISTINCT + 63 * 21 AS col2
----
1323

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT + 0 * SUM( ALL 5 ) - + 33 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-1216
SELECT + 0 * SUM ( ALL 5 ) - + 33 AS col1
----
-33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1217
SELECT - NULLIF ( - + 98, 4 * + + COUNT( * ) / + 25 ) * + 44 * - + 5 * - 68 - + 44 * - 13 + 83 - - 9 AS col1, NULLIF ( + CAST( NULL AS DECIMAL ), + - 34 + - AVG ( + 74 ) + COUNT( * ) * + COUNT( * ) * MAX( - + 60 ) )
----
1466744
NULL

skipif mysql # not compatible
query II rowsort label-1217
SELECT - NULLIF ( - + 98, 4 * + + COUNT ( * ) / + 25 ) * + 44 * - + 5 * - 68 - + 44 * - 13 + 83 - - 9 AS col1, NULLIF ( + CAST ( NULL AS REAL ), + - 34 + - AVG ( + 74 ) + COUNT ( * ) * + COUNT ( * ) * MAX ( - + 60 ) )
----
1466744
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1218
SELECT DISTINCT + 64 * + + CAST( + 93 AS SIGNED ) + 69 * - + NULLIF ( - 21, + COUNT( - 98 ) ) AS col2
----
7401

skipif mysql # not compatible
query I rowsort label-1218
SELECT DISTINCT + 64 * + + CAST ( + 93 AS INTEGER ) + 69 * - + NULLIF ( - 21, + COUNT ( - 98 ) ) AS col2
----
7401

onlyif mysql # aggregate syntax: 
query II rowsort label-1219
SELECT CASE 29 WHEN - - 87 + ( 27 ) THEN + SUM( + 98 ) END, 74 AS col2
----
NULL
74

skipif mysql # not compatible
query II rowsort label-1219
SELECT CASE 29 WHEN - - 87 + ( 27 ) THEN + SUM ( + 98 ) END, 74 AS col2
----
NULL
74

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1220
SELECT ALL + 70 * 44 + - 41 * - 85 - CAST( + 4 AS SIGNED ) DIV - 50 AS col2
----
6565

skipif mysql # not compatible
query I rowsort label-1220
SELECT ALL + 70 * 44 + - 41 * - 85 - CAST ( + 4 AS INTEGER ) / - 50 AS col2
----
6565

query I rowsort
SELECT + 68 * 28 AS col0
----
1904

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1222
SELECT - 74 * 17, 54 AS col1, - ( + 11 ) + CASE 34 WHEN 98 THEN NULL ELSE 19 END * - CAST( NULL AS SIGNED ) AS col0
----
-1258
54
NULL

skipif mysql # not compatible
query III rowsort label-1222
SELECT - 74 * 17, 54 AS col1, - ( + 11 ) + CASE 34 WHEN 98 THEN NULL ELSE 19 END * - CAST ( NULL AS INTEGER ) AS col0
----
-1258
54
NULL

query I rowsort
SELECT + 45 * - 83
----
-3735

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT - MIN( - - ( 44 ) ) * - 60 AS col0
----
2640

skipif mysql # not compatible
query I rowsort label-1224
SELECT - MIN ( - - ( 44 ) ) * - 60 AS col0
----
2640

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

query II rowsort
SELECT DISTINCT 62 + + + 2 AS col2, + 28
----
64
28

query I rowsort
SELECT ALL ( - 70 ) + 18 AS col0
----
-52

query I rowsort
SELECT DISTINCT + 60 + - 37 AS col1
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1229
SELECT DISTINCT CAST( 17 AS SIGNED ) * + 83 + + + 64 AS col1
----
1475

skipif mysql # not compatible
query I rowsort label-1229
SELECT DISTINCT CAST ( 17 AS INTEGER ) * + 83 + + + 64 AS col1
----
1475

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1230
SELECT ALL + 69 * 71 AS col1, + NULLIF ( - 99, + CAST( + 91 AS SIGNED ) ) AS col2
----
4899
-99

skipif mysql # not compatible
query II rowsort label-1230
SELECT ALL + 69 * 71 AS col1, + NULLIF ( - 99, + CAST ( + 91 AS INTEGER ) ) AS col2
----
4899
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT COUNT( * ) + - 78 * - 45 + - - 29 * - + ( - 82 ) + + + 81 + + - COUNT( * ) + + + 37 * 74 AS col2
----
8707

skipif mysql # not compatible
query I rowsort label-1231
SELECT COUNT ( * ) + - 78 * - 45 + - - 29 * - + ( - 82 ) + + + 81 + + - COUNT ( * ) + + + 37 * 74 AS col2
----
8707

onlyif mysql # aggregate syntax: 
query II rowsort label-1232
SELECT 25 + 84 AS col1, + COUNT( * )
----
109
1

skipif mysql # not compatible
query II rowsort label-1232
SELECT 25 + 84 AS col1, + COUNT ( * )
----
109
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT + COUNT( * ) * 32 col0
----
32

skipif mysql # not compatible
query I rowsort label-1233
SELECT + COUNT ( * ) * 32 col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT COALESCE ( + + ( - + 62 ), COUNT( DISTINCT 82 ) ) - - 68 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-1234
SELECT COALESCE ( + + ( - + 62 ), COUNT ( DISTINCT 82 ) ) - - 68 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT + 81 - + MIN( + 13 ) * - - 33 + + 47
----
-301

skipif mysql # not compatible
query I rowsort label-1235
SELECT + 81 - + MIN ( + 13 ) * - - 33 + + 47
----
-301

onlyif mysql # DIV for integer division: 
query I rowsort label-1236
SELECT + + 26 DIV + COALESCE ( - + 29, - 59 ) * - + 54 + 67
----
67

skipif mysql # not compatible
query I rowsort label-1236
SELECT + + 26 / + COALESCE ( - + 29, - 59 ) * - + 54 + 67
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1237
SELECT DISTINCT - COUNT( - - 28 ) DIV - 10
----
0

skipif mysql # not compatible
query I rowsort label-1237
SELECT DISTINCT - COUNT ( - - 28 ) / - 10
----
0

query I rowsort
SELECT 36 * - + 79 + + - 1
----
-2845

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1239
SELECT 71 DIV - 20, - NULLIF ( - + 83, + + MAX( - 87 ) ) + 48 AS col1
----
-3
131

skipif mysql # not compatible
query II rowsort label-1239
SELECT 71 / - 20, - NULLIF ( - + 83, + + MAX ( - 87 ) ) + 48 AS col1
----
-3
131

query II rowsort
SELECT - 31 - + 46 AS col0, - 19
----
-77
-19

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

skipif mysql # not compatible
query I rowsort label-1241
SELECT DISTINCT + + 25 * ( - - COUNT ( - 18 ) ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT DISTINCT + + COALESCE ( + 92, 21 - 9 * + 9, + ( ( + 78 ) ), + - COUNT( * ) * - COUNT( * ) + - 77 ) + + 2 * + 97 AS col2
----
286

skipif mysql # not compatible
query I rowsort label-1242
SELECT DISTINCT + + COALESCE ( + 92, 21 - 9 * + 9, + ( ( + 78 ) ), + - COUNT ( * ) * - COUNT ( * ) + - 77 ) + + 2 * + 97 AS col2
----
286

query I rowsort
SELECT DISTINCT - 51 + + + 58 * - 22 * 7 - - 16
----
-8967

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1245
SELECT + 56, SUM( DISTINCT + 53 ) + CAST( - 4 AS SIGNED ) col0
----
56
49

skipif mysql # not compatible
query II rowsort label-1245
SELECT + 56, SUM ( DISTINCT + 53 ) + CAST ( - 4 AS INTEGER ) col0
----
56
49

query I rowsort
SELECT 59 * - + 29 AS col1
----
-1711

query II rowsort
SELECT ALL 57 + + 59 * + - 95 col0, + 88 * 80 * + 48 + + 56 col1
----
-5548
337976

query II rowsort
SELECT + 65 AS col2, 95
----
65
95

onlyif mysql # aggregate syntax: 
query II rowsort label-1249
SELECT DISTINCT - ( 81 ) + 70 AS col2, - SUM( + 25 )
----
-11
-25

skipif mysql # not compatible
query II rowsort label-1249
SELECT DISTINCT - ( 81 ) + 70 AS col2, - SUM ( + 25 )
----
-11
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1250
SELECT ALL 9 * - 6 * + 31 * - - COUNT( * ) * + ( - - 16 )
----
-26784

skipif mysql # not compatible
query I rowsort label-1250
SELECT ALL 9 * - 6 * + 31 * - - COUNT ( * ) * + ( - - 16 )
----
-26784

query I rowsort
SELECT 49 + - 87
----
-38

query I rowsort
SELECT ALL 21 + - 7 AS col0
----
14

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1254
SELECT ( - + MAX( ALL - + 82 ) ) + + + 28 * - + COUNT( ALL + + CAST( - 10 AS SIGNED ) ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-1254
SELECT ( - + MAX ( ALL - + 82 ) ) + + + 28 * - + COUNT ( ALL + + CAST ( - 10 AS INTEGER ) ) AS col2
----
54

query I rowsort
SELECT ALL 3 - + 60 AS col0
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1256
SELECT 39 DIV - ( + - COUNT( DISTINCT 97 ) )
----
39

skipif mysql # not compatible
query I rowsort label-1256
SELECT 39 / - ( + - COUNT ( DISTINCT 97 ) )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT COUNT( ALL ( - 31 ) ) * 88
----
88

skipif mysql # not compatible
query I rowsort label-1257
SELECT COUNT ( ALL ( - 31 ) ) * 88
----
88

query II rowsort
SELECT - 85 AS col0, 83 AS col0
----
-85
83

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

query II rowsort
SELECT 63 AS col1, - 77 + 74
----
63
-3

query II rowsort
SELECT - 42 AS col1, - 15 AS col2
----
-42
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT 93 + + - 16 + MAX( DISTINCT + ( 37 ) ) - - - 2
----
112

skipif mysql # not compatible
query I rowsort label-1262
SELECT 93 + + - 16 + MAX ( DISTINCT + ( 37 ) ) - - - 2
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT ALL 43 - + 41 + + COUNT( + + 78 )
----
3

skipif mysql # not compatible
query I rowsort label-1263
SELECT ALL 43 - + 41 + + COUNT ( + + 78 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1264
SELECT MIN( DISTINCT + + 10 ) / - 62 + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1264
SELECT MIN ( DISTINCT + + 10 ) / - 62 + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT 0 * - + 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT + 13 + 2 - - 47 + + - CASE WHEN 48 > 41 + - 15 + 61 - - 67 - 14 + - SUM( + CASE + 67 WHEN + 53 + - 70 THEN + 85 END ) / - + 79 * - + 50 THEN NULL ELSE - 26 END AS col2
----
88

skipif mysql # not compatible
query I rowsort label-1266
SELECT + 13 + 2 - - 47 + + - CASE WHEN 48 > 41 + - 15 + 61 - - 67 - 14 + - SUM ( + CASE + 67 WHEN + 53 + - 70 THEN + 85 END ) / - + 79 * - + 50 THEN NULL ELSE - 26 END AS col2
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1267
SELECT ALL - + CAST( + 3 AS SIGNED ) * + + 1
----
-3

skipif mysql # not compatible
query I rowsort label-1267
SELECT ALL - + CAST ( + 3 AS INTEGER ) * + + 1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1268
SELECT ALL + ( + CAST( + + 26 AS SIGNED ) ), 28 * + 45 * - 81 col2
----
26
-102060

skipif mysql # not compatible
query II rowsort label-1268
SELECT ALL + ( + CAST ( + + 26 AS INTEGER ) ), 28 * + 45 * - 81 col2
----
26
-102060

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

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

query I rowsort
SELECT - 79 + + 61
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT ALL - + 2 * + MIN( + - 84 ) * + 63 - + COUNT( * )
----
10583

skipif mysql # not compatible
query I rowsort label-1271
SELECT ALL - + 2 * + MIN ( + - 84 ) * + 63 - + COUNT ( * )
----
10583

query II rowsort
SELECT ALL + 29 * - - 8 * 7, 48 col2
----
1624
48

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query III rowsort label-1274
SELECT DISTINCT - - CAST( NULL AS DECIMAL ), 36 * + MAX( - + 41 ) + SUM( DISTINCT + 89 ) AS col2, 67 / - CAST( - CASE + + 76 WHEN + 96 * + ( - COUNT( ALL - 56 ) ) + - CAST( 0 AS SIGNED ) / 69 + + + 87 THEN - + 75 WHEN - - COUNT( * ) THEN NULL END AS SIGNED ) AS col0
----
NULL
-1387
NULL

skipif mysql # not compatible
query III rowsort label-1274
SELECT DISTINCT - - CAST ( NULL AS REAL ), 36 * + MAX ( - + 41 ) + SUM ( DISTINCT + 89 ) AS col2, 67 / - CAST ( - CASE + + 76 WHEN + 96 * + ( - COUNT ( ALL - 56 ) ) + - CAST ( 0 AS INTEGER ) / 69 + + + 87 THEN - + 75 WHEN - - COUNT ( * ) THEN NULL END AS INTEGER ) AS col0
----
NULL
-1387
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT DISTINCT + + COUNT( * ) * - 32 + - - 27 + - 8 + - 73 AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-1275
SELECT DISTINCT + + COUNT ( * ) * - 32 + - - 27 + - 8 + - 73 AS col0
----
-86

query I rowsort
SELECT ALL + + 83 * - 71 + + - 43 + + + 30 + - 48 AS col0
----
-5954

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1277
SELECT 75 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1277
SELECT 75 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1278
SELECT - COALESCE ( 35, + + ( + 4 ) ) DIV - + 45 - - 43
----
43

skipif mysql # not compatible
query I rowsort label-1278
SELECT - COALESCE ( 35, + + ( + 4 ) ) / - + 45 - - 43
----
43

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

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

query I rowsort
SELECT 49 + - + 51
----
-2

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

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

query I rowsort
SELECT ALL - ( + - 91 ) * 54
----
4914

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT - COUNT( 74 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-1283
SELECT - COUNT ( 74 ) col0
----
-1

query I rowsort
SELECT - 8 * + - 64 AS col0
----
512

onlyif mysql # DIV for integer division: 
query I rowsort label-1285
SELECT ALL - 42 DIV ( - 63 )
----
0

skipif mysql # not compatible
query I rowsort label-1285
SELECT ALL - 42 / ( - 63 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1286
SELECT DISTINCT 24 * + - 49 * - 62 * + 65, - 1 + + 19 + - 8 * - 30 + + CAST( NULL AS DECIMAL ) AS col1
----
4739280
NULL

skipif mysql # not compatible
query II rowsort label-1286
SELECT DISTINCT 24 * + - 49 * - 62 * + 65, - 1 + + 19 + - 8 * - 30 + + CAST ( NULL AS REAL ) AS col1
----
4739280
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1287
SELECT - + 94 + - 33 DIV ( - 80 ), COUNT( * ) DIV 90 col1
----
-94
0

skipif mysql # not compatible
query II rowsort label-1287
SELECT - + 94 + - 33 / ( - 80 ), COUNT ( * ) / 90 col1
----
-94
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1289
SELECT DISTINCT + CASE + CASE 23 WHEN + + 25 THEN 54 + + + CAST( + 23 AS SIGNED ) * COUNT( * ) + - + COUNT( * ) ELSE - - COUNT( * ) / MAX( + 34 ) + 55 - + + 45 END WHEN + + 31 / - + CAST( + 45 AS SIGNED ) THEN + CASE + 50 WHEN - - 43 THEN - + 41 WHEN - 17 * 40 + + 87 - 86 THEN NULL ELSE + + ( - 66 ) * - 17 + - 82 END WHEN + 56 THEN NULL END / + 78 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1289
SELECT DISTINCT + CASE + CASE 23 WHEN + + 25 THEN 54 + + + CAST ( + 23 AS INTEGER ) * COUNT ( * ) + - + COUNT ( * ) ELSE - - COUNT ( * ) / MAX ( + 34 ) + 55 - + + 45 END WHEN + + 31 / - + CAST ( + 45 AS INTEGER ) THEN + CASE + 50 WHEN - - 43 THEN - + 41 WHEN - 17 * 40 + + 87 - 86 THEN NULL ELSE + + ( - 66 ) * - 17 + - 82 END WHEN + 56 THEN NULL END / + 78 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1290
SELECT DISTINCT 92 + - COUNT( * ) - + ( 66 ) AS col2, 66 AS col0
----
25
66

skipif mysql # not compatible
query II rowsort label-1290
SELECT DISTINCT 92 + - COUNT ( * ) - + ( 66 ) AS col2, 66 AS col0
----
25
66

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

skipif mysql # not compatible
query I rowsort label-1291
SELECT DISTINCT - 6 + - COUNT ( * ) * + 81 col0
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1292
SELECT ALL COUNT( * ) DIV + 98 * - 95 + + + 64 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-1292
SELECT ALL COUNT ( * ) / + 98 * - 95 + + + 64 AS col0
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1293
SELECT ALL - - 8 + COALESCE ( - CAST( + 46 AS SIGNED ), - + CASE - COUNT( * ) WHEN - MIN( ALL + 32 ) * - + 15 + + + SUM( ALL 79 ) * + 8 * 10 THEN - 39 WHEN 93 THEN NULL ELSE NULL END, + 49 + + COUNT( * ) ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-1293
SELECT ALL - - 8 + COALESCE ( - CAST ( + 46 AS INTEGER ), - + CASE - COUNT ( * ) WHEN - MIN ( ALL + 32 ) * - + 15 + + + SUM ( ALL 79 ) * + 8 * 10 THEN - 39 WHEN 93 THEN NULL ELSE NULL END, + 49 + + COUNT ( * ) ) AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1294
SELECT + + CASE - + 1 WHEN + + COALESCE ( - 93, 50 ) THEN NULL WHEN - 41 - + + ( + 57 ) / + 59 THEN NULL ELSE MIN( DISTINCT - ( NULLIF ( + - 14, + 34 ) ) ) END AS col1
----
14

skipif mysql # not compatible
query I rowsort label-1294
SELECT + + CASE - + 1 WHEN + + COALESCE ( - 93, 50 ) THEN NULL WHEN - 41 - + + ( + 57 ) / + 59 THEN NULL ELSE MIN ( DISTINCT - ( NULLIF ( + - 14, + 34 ) ) ) END AS col1
----
14

query I rowsort
SELECT ALL + ( - 14 ) col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT ALL - - 39 * + NULLIF ( + 8, - COUNT( * ) ) * 87 * - 35 + - ( + 88 ) * - + 22
----
-948104

skipif mysql # not compatible
query I rowsort label-1296
SELECT ALL - - 39 * + NULLIF ( + 8, - COUNT ( * ) ) * 87 * - 35 + - ( + 88 ) * - + 22
----
-948104

onlyif mysql # aggregate syntax: 
query II rowsort label-1297
SELECT MIN( DISTINCT 92 ) AS col2, + 89
----
92
89

skipif mysql # not compatible
query II rowsort label-1297
SELECT MIN ( DISTINCT 92 ) AS col2, + 89
----
92
89

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

skipif mysql # not compatible
query I rowsort label-1298
SELECT - 20 / - - 13 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1299
SELECT ALL + CASE 72 WHEN + CAST( 85 AS SIGNED ) THEN NULL WHEN MIN( DISTINCT - + 72 ) THEN COALESCE ( - + COUNT( * ), - + NULLIF ( + 4, 77 + - CAST( 76 AS DECIMAL ) ), - - 80, - CASE - COUNT( * ) WHEN + ( ( + + 51 ) ) / + + 62 THEN + - COUNT( * ) + - 94 WHEN + CASE - - NULLIF ( - 3, ( + 33 ) + + - 10 ) WHEN - - 50 THEN - - 24 END THEN 71 END * MAX( DISTINCT + 96 + + 24 ) ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1299
SELECT ALL + CASE 72 WHEN + CAST ( 85 AS INTEGER ) THEN NULL WHEN MIN ( DISTINCT - + 72 ) THEN COALESCE ( - + COUNT ( * ), - + NULLIF ( + 4, 77 + - CAST ( 76 AS REAL ) ), - - 80, - CASE - COUNT ( * ) WHEN + ( ( + + 51 ) ) / + + 62 THEN + - COUNT ( * ) + - 94 WHEN + CASE - - NULLIF ( - 3, ( + 33 ) + + - 10 ) WHEN - - 50 THEN - - 24 END THEN 71 END * MAX ( DISTINCT + 96 + + 24 ) ) ELSE NULL END AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1301
SELECT + 84 * - MIN( - + 55 ) + + COUNT( * )
----
4621

skipif mysql # not compatible
query I rowsort label-1301
SELECT + 84 * - MIN ( - + 55 ) + + COUNT ( * )
----
4621

query I rowsort
SELECT DISTINCT + 78 * 9 - - 23
----
725

query I rowsort
SELECT NULLIF ( - 24, - - NULLIF ( + 15, + 37 + - 57 ) )
----
-24

query I rowsort
SELECT + ( - 53 ) * - - 78 * - - 19 + - 61 AS col2
----
-78607

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1305
SELECT COALESCE ( - SUM( ALL + 90 ), - 81, 64 DIV + + 20, 89 * + 80 DIV 16 * - 84 DIV + + COUNT( * ) ) col1
----
-90

skipif mysql # not compatible
query I rowsort label-1305
SELECT COALESCE ( - SUM ( ALL + 90 ), - 81, 64 / + + 20, 89 * + 80 / 16 * - 84 / + + COUNT ( * ) ) col1
----
-90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT DISTINCT + 1 * 68 * - COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-1307
SELECT DISTINCT + 1 * 68 * - COUNT ( * )
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1308
SELECT - COALESCE ( - ( 58 ), 67 + 88, + CAST( NULL AS SIGNED ) ) * + 20 * + - COUNT( * ) AS col1
----
-1160

skipif mysql # not compatible
query I rowsort label-1308
SELECT - COALESCE ( - ( 58 ), 67 + 88, + CAST ( NULL AS INTEGER ) ) * + 20 * + - COUNT ( * ) AS col1
----
-1160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1309
SELECT - COUNT( ALL NULLIF ( - CAST( NULL AS SIGNED ), + 44 + + 0 + - + ( 30 ) ) ) + - 62 + 38 * + - 24 AS col1, + 58 * + - 0 col2
----
-974
0

skipif mysql # not compatible
query II rowsort label-1309
SELECT - COUNT ( ALL NULLIF ( - CAST ( NULL AS INTEGER ), + 44 + + 0 + - + ( 30 ) ) ) + - 62 + 38 * + - 24 AS col1, + 58 * + - 0 col2
----
-974
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1310
SELECT ALL 20 * - 72 - - ( 23 ) DIV - COUNT( * ) - + 49 AS col1
----
-1512

skipif mysql # not compatible
query I rowsort label-1310
SELECT ALL 20 * - 72 - - ( 23 ) / - COUNT ( * ) - + 49 AS col1
----
-1512

query II rowsort
SELECT ALL + 22, - 82 AS col1
----
22
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1312
SELECT 19 * NULLIF ( 35, - + 76 ) * - 37 + + 83 - - 91 + - 91 * - 43 + + COUNT( * ) * - + 32 + 15 col2
----
-20535

skipif mysql # not compatible
query I rowsort label-1312
SELECT 19 * NULLIF ( 35, - + 76 ) * - 37 + + 83 - - 91 + - 91 * - 43 + + COUNT ( * ) * - + 32 + 15 col2
----
-20535

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1313
SELECT NULLIF ( + 4, COALESCE ( + 59, NULLIF ( - 86, + + 8 * - - CAST( NULL AS DECIMAL ) * - + NULLIF ( 75, + 96 * + 33 ) / 18 ), + COUNT( DISTINCT + 41 ) * - SUM( 8 ) + - 54 * + - AVG ( + + ( CAST( NULL AS SIGNED ) ) ) * - ( 22 ) - - COUNT( * ) ) + + + 32 / 27 )
----
4

skipif mysql # not compatible
query I rowsort label-1313
SELECT NULLIF ( + 4, COALESCE ( + 59, NULLIF ( - 86, + + 8 * - - CAST ( NULL AS REAL ) * - + NULLIF ( 75, + 96 * + 33 ) / 18 ), + COUNT ( DISTINCT + 41 ) * - SUM ( 8 ) + - 54 * + - AVG ( + + ( CAST ( NULL AS INTEGER ) ) ) * - ( 22 ) - - COUNT ( * ) ) + + + 32 / 27 )
----
4

query I rowsort
SELECT - 49 * 16 AS col0
----
-784

query I rowsort
SELECT ALL + 11 * + 75 AS col0
----
825

onlyif mysql # aggregate syntax: 
query I rowsort label-1316
SELECT - COUNT( * ) + - 0 * + COUNT( * ) * - 13 + + 92 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-1316
SELECT - COUNT ( * ) + - 0 * + COUNT ( * ) * - 13 + + 92 AS col1
----
91

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1318
SELECT DISTINCT - 38 * - CASE - 24 WHEN - + 24 * 15 * + 83 THEN 43 * 70 - - 88 - - CAST( NULL AS SIGNED ) WHEN - ( + 12 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1318
SELECT DISTINCT - 38 * - CASE - 24 WHEN - + 24 * 15 * + 83 THEN 43 * 70 - - 88 - - CAST ( NULL AS INTEGER ) WHEN - ( + 12 ) THEN NULL END AS col0
----
NULL

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

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

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

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

query I rowsort
SELECT + 84 + + + 81
----
165

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1322
SELECT ALL - 66 AS col0, 55 + 58 + + - CAST( NULL AS SIGNED ) - + 65 + + 52 - 1 AS col2
----
-66
NULL

skipif mysql # not compatible
query II rowsort label-1322
SELECT ALL - 66 AS col0, 55 + 58 + + - CAST ( NULL AS INTEGER ) - + 65 + + 52 - 1 AS col2
----
-66
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1323
SELECT - 28 * + CAST( 87 AS SIGNED ) AS col0
----
-2436

skipif mysql # not compatible
query I rowsort label-1323
SELECT - 28 * + CAST ( 87 AS INTEGER ) AS col0
----
-2436

onlyif mysql # aggregate syntax: 
query II rowsort label-1324
SELECT + 97 + + COUNT( * ) * - 2 AS col1, - 0 + 60
----
95
60

skipif mysql # not compatible
query II rowsort label-1324
SELECT + 97 + + COUNT ( * ) * - 2 AS col1, - 0 + 60
----
95
60

query I rowsort
SELECT ALL + 19 * + 58
----
1102

query I rowsort
SELECT + 64 * ( + + 54 ) * - + ( 22 )
----
-76032

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT - + 47 * - COUNT( * ) * ( + 35 ) + + 18
----
1663

skipif mysql # not compatible
query I rowsort label-1330
SELECT - + 47 * - COUNT ( * ) * ( + 35 ) + + 18
----
1663

query I rowsort
SELECT + + 41 * + + 90 AS col0
----
3690

query I rowsort
SELECT - 39 + - 60
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT + COALESCE ( - 35, + COUNT( * ) ) + - - 42 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-1333
SELECT + COALESCE ( - 35, + COUNT ( * ) ) + - - 42 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1334
SELECT + COUNT( * ) * - 61 * 60 col1
----
-3660

skipif mysql # not compatible
query I rowsort label-1334
SELECT + COUNT ( * ) * - 61 * 60 col1
----
-3660

onlyif mysql # DIV for integer division: 
query I rowsort label-1335
SELECT ALL 34 DIV + 36
----
0

skipif mysql # not compatible
query I rowsort label-1335
SELECT ALL 34 / + 36
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1336
SELECT ALL NULLIF ( + 74, ( + MAX( COALESCE ( 29, - 88 * + 10 ) ) ) * 84 ) DIV + 84 * + 50 - - - 7
----
-7

skipif mysql # not compatible
query I rowsort label-1336
SELECT ALL NULLIF ( + 74, ( + MAX ( COALESCE ( 29, - 88 * + 10 ) ) ) * 84 ) / + 84 * + 50 - - - 7
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-1337
SELECT DISTINCT 63 DIV 45 col1
----
1

skipif mysql # not compatible
query I rowsort label-1337
SELECT DISTINCT 63 / 45 col1
----
1

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

query I rowsort
SELECT ALL ( + - 69 ) - - 80 + + - 83 + 77
----
5

query I rowsort
SELECT ( - 36 ) * - + 1 AS col1
----
36

query II rowsort
SELECT DISTINCT - 7, + 52 - 4 AS col0
----
-7
48

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

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

query II rowsort
SELECT ALL - 38, 70 * + 81 * + 71 + 61 col1
----
-38
402631

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT DISTINCT - COALESCE ( MIN( ALL - - 21 ), COALESCE ( - - 26, MIN( + - 16 ) * + 41 * + 63 ) + + - 27 )
----
-21

skipif mysql # not compatible
query I rowsort label-1344
SELECT DISTINCT - COALESCE ( MIN ( ALL - - 21 ), COALESCE ( - - 26, MIN ( + - 16 ) * + 41 * + 63 ) + + - 27 )
----
-21

query II rowsort
SELECT ALL - 12 AS col0, 90
----
-12
90

onlyif mysql # DIV for integer division: 
query I rowsort label-1346
SELECT DISTINCT + 79 DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-1346
SELECT DISTINCT + 79 / - 80
----
0

query II rowsort
SELECT + 39 col2, 18
----
39
18

query I rowsort
SELECT DISTINCT - NULLIF ( - 55, 60 ) AS col0
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-1349
SELECT 2 DIV - - 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1349
SELECT 2 / - - 75 AS col2
----
0

query I rowsort
SELECT - 85 * + 29 AS col1
----
-2465

query II rowsort
SELECT 28 AS col1, 97 * + 74 AS col2
----
28
7178

query I rowsort
SELECT ALL - 83 + + 1
----
-82

query II rowsort
SELECT - 20, 58 * 43 AS col1
----
-20
2494

query I rowsort
SELECT ALL - + 28 * - 23 * + 41 AS col0
----
26404

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1355
SELECT - COUNT( 19 ) DIV - 76 * + 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1355
SELECT - COUNT ( 19 ) / - 76 * + 85 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1356
SELECT ALL - + COALESCE ( - 90, - 79 * 39 + + - CASE 30 WHEN - COUNT( * ) + - 37 * COALESCE ( + + 47, - + COUNT( - 13 ) + CASE - - 51 WHEN - 47 * CAST( + COUNT( * ) AS SIGNED ) * - + 29 + - 85 THEN COUNT( * ) WHEN + + MAX( DISTINCT 13 ) * + MAX( 29 ) + ( + + MIN( ALL - + 40 ) ) THEN NULL ELSE + - 17 - 46 END, + 33 ) + CAST( NULL AS SIGNED ) THEN NULL WHEN - MIN( 69 ) THEN NULL ELSE 56 + 13 END + + 38 ) + 0
----
90

skipif mysql # not compatible
query I rowsort label-1356
SELECT ALL - + COALESCE ( - 90, - 79 * 39 + + - CASE 30 WHEN - COUNT ( * ) + - 37 * COALESCE ( + + 47, - + COUNT ( - 13 ) + CASE - - 51 WHEN - 47 * CAST ( + COUNT ( * ) AS INTEGER ) * - + 29 + - 85 THEN COUNT ( * ) WHEN + + MAX ( DISTINCT 13 ) * + MAX ( 29 ) + ( + + MIN ( ALL - + 40 ) ) THEN NULL ELSE + - 17 - 46 END, + 33 ) + CAST ( NULL AS INTEGER ) THEN NULL WHEN - MIN ( 69 ) THEN NULL ELSE 56 + 13 END + + 38 ) + 0
----
90

query I rowsort
SELECT 25 * 48 - 0 AS col0
----
1200

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

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

query I rowsort
SELECT ALL + - 99 * 99 - - ( 45 ) * - 95 + + 65 + - 28 AS col2
----
-14039

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

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

query I rowsort
SELECT ALL + - 24 + + 25 AS col0
----
1

query I rowsort
SELECT 42 + + 82 + + 25
----
149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1363
SELECT - CAST( 15 AS SIGNED ) - 1
----
-16

skipif mysql # not compatible
query I rowsort label-1363
SELECT - CAST ( 15 AS INTEGER ) - 1
----
-16

query II rowsort
SELECT - 11 AS col0, + 86 AS col1
----
-11
86

query I rowsort
SELECT - 41 + + 94 + 87
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT ALL - + 36 - COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-1366
SELECT ALL - + 36 - COUNT ( * )
----
-37

query I rowsort
SELECT ALL - 41 * 99
----
-4059

query I rowsort
SELECT + 64 + - - 14 + ( - 91 )
----
-13

query I rowsort
SELECT ALL - COALESCE ( - 93, - 92 ) * 89 - + 31 * + 6
----
8091

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1370
SELECT 39 + - 22 DIV - 76 + - - SUM( + - 34 ) - 59 + - CASE - + 66 WHEN - 6 - + + 12 THEN 60 ELSE CAST( + 92 AS SIGNED ) * 27 END AS col0
----
-2538

skipif mysql # not compatible
query I rowsort label-1370
SELECT 39 + - 22 / - 76 + - - SUM ( + - 34 ) - 59 + - CASE - + 66 WHEN - 6 - + + 12 THEN 60 ELSE CAST ( + 92 AS INTEGER ) * 27 END AS col0
----
-2538

query I rowsort
SELECT 28 * + 90 + - 25
----
2495

onlyif mysql # DIV for integer division: 
query I rowsort label-1372
SELECT 58 DIV COALESCE ( + - 10, + AVG ( + 3 ) ) * - 62 * - 0 DIV - + 1 * + + 13 - + 35 - + 84 + 36 * - 64 AS col0
----
-2423

skipif mysql # not compatible
query I rowsort label-1372
SELECT 58 / COALESCE ( + - 10, + AVG ( + 3 ) ) * - 62 * - 0 / - + 1 * + + 13 - + 35 - + 84 + 36 * - 64 AS col0
----
-2423

query I rowsort
SELECT 93 * 92 AS col0
----
8556

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1374
SELECT ALL - ( + NULLIF ( + 77, + COALESCE ( + + 15, - MIN( DISTINCT - CAST( + - 71 AS SIGNED ) ) ) ) ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-1374
SELECT ALL - ( + NULLIF ( + 77, + COALESCE ( + + 15, - MIN ( DISTINCT - CAST ( + - 71 AS INTEGER ) ) ) ) ) AS col0
----
-77

query II rowsort
SELECT ALL 8 + 41, + 64 AS col1
----
49
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT ALL 84 + + COUNT( * ) + + 96 * - CASE - 85 WHEN - 38 THEN 80 + + + NULLIF ( - ( ( + COUNT( * ) ) ), - 91 ) WHEN - - 94 THEN NULL END * + COUNT( * ) + + 23 + + COUNT( * ) + 22 / - - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-1376
SELECT ALL 84 + + COUNT ( * ) + + 96 * - CASE - 85 WHEN - 38 THEN 80 + + + NULLIF ( - ( ( + COUNT ( * ) ) ), - 91 ) WHEN - - 94 THEN NULL END * + COUNT ( * ) + + 23 + + COUNT ( * ) + 22 / - - 28
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1377
SELECT ALL 43 + - CAST( - 87 AS SIGNED ) + - + 56 * + - 88
----
5058

skipif mysql # not compatible
query I rowsort label-1377
SELECT ALL 43 + - CAST ( - 87 AS INTEGER ) + - + 56 * + - 88
----
5058

query I rowsort
SELECT 84 * - + 9 * - + 9 - - 0 - 16
----
6788

query II rowsort
SELECT ( 95 ) + 50, 71 AS col1
----
145
71

query II rowsort
SELECT ALL - 21 + + 13 AS col0, + 20
----
-8
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT + NULLIF ( + COUNT( * ), - 24 * 1 ) + + + NULLIF ( 72, - 24 * + 37 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-1381
SELECT + NULLIF ( + COUNT ( * ), - 24 * 1 ) + + + NULLIF ( 72, - 24 * + 37 ) AS col0
----
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT 41 * - - 57 + + + NULLIF ( - + ( 88 ), + + 7 ) * + 87 + + COUNT( * ) AS col2
----
-5318

skipif mysql # not compatible
query I rowsort label-1383
SELECT 41 * - - 57 + + + NULLIF ( - + ( 88 ), + + 7 ) * + 87 + + COUNT ( * ) AS col2
----
-5318

onlyif mysql # aggregate syntax: 
query I rowsort label-1384
SELECT ALL - COUNT( DISTINCT - 81 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1384
SELECT ALL - COUNT ( DISTINCT - 81 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT DISTINCT 97 + COUNT( * ) + 47 AS col0
----
145

skipif mysql # not compatible
query I rowsort label-1385
SELECT DISTINCT 97 + COUNT ( * ) + 47 AS col0
----
145

onlyif mysql # DIV for integer division: 
query I rowsort label-1386
SELECT ALL - ( - 44 ) DIV - 61 * 49 * + 48
----
0

skipif mysql # not compatible
query I rowsort label-1386
SELECT ALL - ( - 44 ) / - 61 * 49 * + 48
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1387
SELECT - 46 + 89 DIV + 51
----
-45

skipif mysql # not compatible
query I rowsort label-1387
SELECT - 46 + 89 / + 51
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-1388
SELECT ALL 15 - + 52 DIV + 38
----
14

skipif mysql # not compatible
query I rowsort label-1388
SELECT ALL 15 - + 52 / + 38
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-1389
SELECT 78 + - 60, 40 col0, + COALESCE ( + + COUNT( * ), - 98 DIV + + MAX( ALL + 96 ) * 53 * + 11 + - MAX( - + 74 ) + + CAST( NULL AS SIGNED ) * + MIN( + + 93 ) ) AS col1
----
18
40
1

skipif mysql # not compatible
query III rowsort label-1389
SELECT 78 + - 60, 40 col0, + COALESCE ( + + COUNT ( * ), - 98 / + + MAX ( ALL + 96 ) * 53 * + 11 + - MAX ( - + 74 ) + + CAST ( NULL AS INTEGER ) * + MIN ( + + 93 ) ) AS col1
----
18
40
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT ALL - COUNT( * ) * 73 * - COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-1390
SELECT ALL - COUNT ( * ) * 73 * - COUNT ( * )
----
73

query I rowsort
SELECT + 82 + + 43 AS col1
----
125

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT DISTINCT - - 59 * COUNT( * ) + + 33 + + + COUNT( * ) * + - 42 + + 32
----
82

skipif mysql # not compatible
query I rowsort label-1393
SELECT DISTINCT - - 59 * COUNT ( * ) + + 33 + + + COUNT ( * ) * + - 42 + + 32
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1394
SELECT ALL + COUNT( * ) - COUNT( * ) + + COALESCE ( 79, - 31 ) + 81 / + - MAX( + - 95 ) * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1394
SELECT ALL + COUNT ( * ) - COUNT ( * ) + + COALESCE ( 79, - 31 ) + 81 / + - MAX ( + - 95 ) * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1395
SELECT DISTINCT - MAX( + 68 ) * - CASE ( - 23 ) WHEN - 21 THEN + - COUNT( * ) * 39 ELSE NULL END / - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-1395
SELECT DISTINCT - MAX ( + 68 ) * - CASE ( - 23 ) WHEN - 21 THEN + - COUNT ( * ) * 39 ELSE NULL END / - 71
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1396
SELECT - + 64 DIV 48
----
-1

skipif mysql # not compatible
query I rowsort label-1396
SELECT - + 64 / 48
----
-1

query I rowsort
SELECT DISTINCT - 42 * + - 18
----
756

query I rowsort
SELECT ALL + 84 * + 56
----
4704

onlyif mysql # aggregate syntax: 
query I rowsort label-1399
SELECT - 39 - CASE - + COUNT( * ) WHEN 97 THEN + 37 WHEN - SUM( 78 ) THEN NULL END * + 33 * + + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-1399
SELECT - 39 - CASE - + COUNT ( * ) WHEN 97 THEN + 37 WHEN - SUM ( 78 ) THEN NULL END * + 33 * + + 73
----
NULL

query I rowsort
SELECT - 57 * + - 55 AS col2
----
3135

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1401
SELECT 12 AS col0, 14 * COUNT( * ) DIV + 84
----
12
0

skipif mysql # not compatible
query II rowsort label-1401
SELECT 12 AS col0, 14 * COUNT ( * ) / + 84
----
12
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1402
SELECT + COUNT( - 87 )
----
1

skipif mysql # not compatible
query I rowsort label-1402
SELECT + COUNT ( - 87 )
----
1

query I rowsort
SELECT DISTINCT 8 * + 33 + 78
----
342

query I rowsort
SELECT ALL - 97 * + 95 AS col1
----
-9215

query II rowsort
SELECT + 14 AS col2, 41 AS col0
----
14
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1406
SELECT DISTINCT CASE + 79 WHEN COUNT( * ) THEN + + CAST( 53 AS SIGNED ) END * + COUNT( * ) * - COUNT( * ) + - 88 + + 8 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1406
SELECT DISTINCT CASE + 79 WHEN COUNT ( * ) THEN + + CAST ( 53 AS INTEGER ) END * + COUNT ( * ) * - COUNT ( * ) + - 88 + + 8 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1407
SELECT ALL 20 * + COUNT( * ) + - 27 AS col2, - 59
----
-7
-59

skipif mysql # not compatible
query II rowsort label-1407
SELECT ALL 20 * + COUNT ( * ) + - 27 AS col2, - 59
----
-7
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1408
SELECT + 33 DIV + - 67 + - + 57 * + 38 * MIN( - 42 ) AS col0
----
90972

skipif mysql # not compatible
query I rowsort label-1408
SELECT + 33 / + - 67 + - + 57 * + 38 * MIN ( - 42 ) AS col0
----
90972

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1409
SELECT ALL 45 * - 98 * - COALESCE ( + COUNT( * ), + + 42 ) + + + CAST( 46 AS SIGNED )
----
4456

skipif mysql # not compatible
query I rowsort label-1409
SELECT ALL 45 * - 98 * - COALESCE ( + COUNT ( * ), + + 42 ) + + + CAST ( 46 AS INTEGER )
----
4456

query I rowsort
SELECT ALL - 97 * 93
----
-9021

onlyif mysql # DIV for integer division: 
query I rowsort label-1411
SELECT - 79 DIV - 28 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1411
SELECT - 79 / - 28 AS col1
----
2

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

skipif mysql # not compatible
query I rowsort label-1412
SELECT ALL + COUNT ( * ) * - + 0 * 58 + - COUNT ( * ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1413
SELECT DISTINCT - 79 * + - CAST( NULL AS SIGNED ) * - + 86, - 50 AS col1
----
NULL
-50

skipif mysql # not compatible
query II rowsort label-1413
SELECT DISTINCT - 79 * + - CAST ( NULL AS INTEGER ) * - + 86, - 50 AS col1
----
NULL
-50

query I rowsort
SELECT ALL 57 * + + 76 + - 40 AS col1
----
4292

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT + 73 + SUM( + + 66 ) * - 69 * - 70
----
318853

skipif mysql # not compatible
query I rowsort label-1415
SELECT + 73 + SUM ( + + 66 ) * - 69 * - 70
----
318853

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

skipif mysql # not compatible
query I rowsort label-1416
SELECT - COUNT ( * ) / + 98 * 91 * + 31 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1417
SELECT 89 * - 47 + + 8 DIV - 62 * + COUNT( * ) * - 75
----
-4183

skipif mysql # not compatible
query I rowsort label-1417
SELECT 89 * - 47 + + 8 / - 62 * + COUNT ( * ) * - 75
----
-4183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1418
SELECT ALL + 54 * - CAST( NULL AS SIGNED ) + 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1418
SELECT ALL + 54 * - CAST ( NULL AS INTEGER ) + 64 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1419
SELECT COALESCE ( + 86, - CAST( NULL AS SIGNED ) )
----
86

skipif mysql # not compatible
query I rowsort label-1419
SELECT COALESCE ( + 86, - CAST ( NULL AS INTEGER ) )
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-1420
SELECT ALL - 51 * 25 + - 24, + 30 + + + NULLIF ( COUNT( * ), 57 ) * + 76 DIV 62 AS col1, - MAX( DISTINCT - ( + 14 ) ) * - - CAST( NULL AS SIGNED ) + + - ( - 45 ) + MIN( ALL 56 ) * 62 AS col1
----
-1299
31
NULL

skipif mysql # not compatible
query III rowsort label-1420
SELECT ALL - 51 * 25 + - 24, + 30 + + + NULLIF ( COUNT ( * ), 57 ) * + 76 / 62 AS col1, - MAX ( DISTINCT - ( + 14 ) ) * - - CAST ( NULL AS INTEGER ) + + - ( - 45 ) + MIN ( ALL 56 ) * 62 AS col1
----
-1299
31
NULL

query II rowsort
SELECT - 16 AS col0, 16 + 50 AS col2
----
-16
66

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1423
SELECT + - CAST( NULL AS SIGNED ) AS col2, - CAST( 17 AS SIGNED ) col2
----
NULL
-17

skipif mysql # not compatible
query II rowsort label-1423
SELECT + - CAST ( NULL AS INTEGER ) AS col2, - CAST ( 17 AS INTEGER ) col2
----
NULL
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-1424
SELECT ALL 91 DIV + 88 + + ( + ( 6 ) )
----
7

skipif mysql # not compatible
query I rowsort label-1424
SELECT ALL 91 / + 88 + + ( + ( 6 ) )
----
7

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

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

query II rowsort
SELECT ALL + - 18 * - 86 - - - 36, - 59 + + + CASE - - 61 WHEN - 26 + 9 THEN + 84 * + + 35 * 38 WHEN - - 89 THEN NULL END * 55 AS col1
----
1512
NULL

query II rowsort
SELECT + 6, 22 AS col1
----
6
22

query I rowsort
SELECT ALL - 40 * - + 65 * + 24 AS col2
----
62400

query I rowsort
SELECT + - 34 - 11
----
-45

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

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

query II rowsort
SELECT ALL 62, + 46 AS col0
----
62
46

query I rowsort
SELECT ALL 89 * - + 86
----
-7654

onlyif mysql # aggregate syntax: 
query I rowsort label-1434
SELECT DISTINCT - COUNT( * ) * + 73 AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-1434
SELECT DISTINCT - COUNT ( * ) * + 73 AS col2
----
-73

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1436
SELECT + - NULLIF ( - - COUNT( * ), NULLIF ( + + ( - + 68 ), - - 27 ) + + + ( - CAST( NULL AS SIGNED ) ) ) * 0 + 16 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-1436
SELECT + - NULLIF ( - - COUNT ( * ), NULLIF ( + + ( - + 68 ), - - 27 ) + + + ( - CAST ( NULL AS INTEGER ) ) ) * 0 + 16 AS col0
----
16

query II rowsort
SELECT + 24 AS col2, 87 * + + 51
----
24
4437

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1438
SELECT - + COALESCE ( - 89, + 10 * + 44 * - 50 * - + COUNT( * ) * MIN( ALL - 53 ) * - NULLIF ( + - CAST( 24 AS SIGNED ), MIN( DISTINCT + + 0 ) ) )
----
89

skipif mysql # not compatible
query I rowsort label-1438
SELECT - + COALESCE ( - 89, + 10 * + 44 * - 50 * - + COUNT ( * ) * MIN ( ALL - 53 ) * - NULLIF ( + - CAST ( 24 AS INTEGER ), MIN ( DISTINCT + + 0 ) ) )
----
89

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

skipif mysql # not compatible
query I rowsort label-1439
SELECT ALL 34 / + 80 * + COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1440
SELECT + 39 + - 37 + 20 + + + 74 DIV - 94 * 55
----
22

skipif mysql # not compatible
query I rowsort label-1440
SELECT + 39 + - 37 + 20 + + + 74 / - 94 * 55
----
22

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

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

query I rowsort
SELECT + 16 + ( 62 ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT - 21 - + + MAX( + - 53 ) + + - 49 * ( - ( 36 ) )
----
1796

skipif mysql # not compatible
query I rowsort label-1443
SELECT - 21 - + + MAX ( + - 53 ) + + - 49 * ( - ( 36 ) )
----
1796

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1444
SELECT ALL NULLIF ( + 14, - COUNT( * ) + 41 * - - 48 + + COALESCE ( 12, + AVG ( - 10 ) + 38 + - CASE - 16 WHEN - 95 * - 17 + - 0 - COALESCE ( 87, + COUNT( * ) - - + ( - + 35 ) / - 43 ) THEN + - CASE + + 46 WHEN 6 THEN - 50 ELSE + 91 END WHEN - 43 THEN - - 26 + - - 16 * CASE 81 WHEN - 49 THEN NULL WHEN + + 78 THEN NULL ELSE - COALESCE ( 35, SUM( DISTINCT 82 ) * 89 + COALESCE ( - 46, 32, 48 * - MIN( 12 ) ) ) + 22 END - - ( - 36 ) * ( 23 + - 2 ) END + + CAST( NULLIF ( 47, COUNT( * ) + 91 * - 85 ) AS SIGNED ) * 58 ) - + 1 * - COUNT( * ) )
----
14

skipif mysql # not compatible
query I rowsort label-1444
SELECT ALL NULLIF ( + 14, - COUNT ( * ) + 41 * - - 48 + + COALESCE ( 12, + AVG ( - 10 ) + 38 + - CASE - 16 WHEN - 95 * - 17 + - 0 - COALESCE ( 87, + COUNT ( * ) - - + ( - + 35 ) / - 43 ) THEN + - CASE + + 46 WHEN 6 THEN - 50 ELSE + 91 END WHEN - 43 THEN - - 26 + - - 16 * CASE 81 WHEN - 49 THEN NULL WHEN + + 78 THEN NULL ELSE - COALESCE ( 35, SUM ( DISTINCT 82 ) * 89 + COALESCE ( - 46, 32, 48 * - MIN ( 12 ) ) ) + 22 END - - ( - 36 ) * ( 23 + - 2 ) END + + CAST ( NULLIF ( 47, COUNT ( * ) + 91 * - 85 ) AS INTEGER ) * 58 ) - + 1 * - COUNT ( * ) )
----
14

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1446
SELECT ALL + 65 * - CAST( NULL AS SIGNED ) / + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-1446
SELECT ALL + 65 * - CAST ( NULL AS INTEGER ) / + 56
----
NULL

query II rowsort
SELECT DISTINCT - 10 * - + 38, - 99 AS col2
----
380
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT ALL + 56 + + NULLIF ( - 43, - ( - 35 ) * - CASE - + COALESCE ( + 21, - + 6, - 61 + 27 ) WHEN + COUNT( * ) THEN NULL WHEN 83 THEN NULL ELSE + 66 END ) - - - NULLIF ( + 66, - 43 + - - 48 ) * + + 68 AS col0
----
-4475

skipif mysql # not compatible
query I rowsort label-1448
SELECT ALL + 56 + + NULLIF ( - 43, - ( - 35 ) * - CASE - + COALESCE ( + 21, - + 6, - 61 + 27 ) WHEN + COUNT ( * ) THEN NULL WHEN 83 THEN NULL ELSE + 66 END ) - - - NULLIF ( + 66, - 43 + - - 48 ) * + + 68 AS col0
----
-4475

onlyif mysql # aggregate syntax: 
query I rowsort label-1449
SELECT DISTINCT + COUNT( * ) + - CASE - 44 WHEN + ( - 80 ) THEN - - CASE + - 37 WHEN + - 18 THEN + + 19 ELSE ( + + ( - - 28 ) ) END END
----
NULL

skipif mysql # not compatible
query I rowsort label-1449
SELECT DISTINCT + COUNT ( * ) + - CASE - 44 WHEN + ( - 80 ) THEN - - CASE + - 37 WHEN + - 18 THEN + + 19 ELSE ( + + ( - - 28 ) ) END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT - ( - + 47 ) + - - MAX( + 4 )
----
51

skipif mysql # not compatible
query I rowsort label-1450
SELECT - ( - + 47 ) + - - MAX ( + 4 )
----
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1451
SELECT ALL 67 + - CAST( NULL AS DECIMAL ) + + 50 + + 92 / + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-1451
SELECT ALL 67 + - CAST ( NULL AS REAL ) + + 50 + + 92 / + 9
----
NULL

query I rowsort
SELECT DISTINCT 26 * - 73
----
-1898

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1453
SELECT DISTINCT + 87 DIV - COUNT( * ) + - COUNT( - 19 ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-1453
SELECT DISTINCT + 87 / - COUNT ( * ) + - COUNT ( - 19 ) AS col2
----
-88

query I rowsort
SELECT + 67 + 1 * 77
----
144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1455
SELECT DISTINCT + 10 DIV + 98 + + 44 + SUM( ALL + 84 ) * + 58 * + 33
----
160820

skipif mysql # not compatible
query I rowsort label-1455
SELECT DISTINCT + 10 / + 98 + + 44 + SUM ( ALL + 84 ) * + 58 * + 33
----
160820

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT DISTINCT - COUNT( * ) * + - COUNT( * ) * + CASE + - 8 WHEN + 2 THEN - + ( - 5 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1456
SELECT DISTINCT - COUNT ( * ) * + - COUNT ( * ) * + CASE + - 8 WHEN + 2 THEN - + ( - 5 ) END AS col1
----
NULL

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

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

query I rowsort
SELECT ALL - + 9 * + + 95
----
-855

query I rowsort
SELECT - + 24 + + 51
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-1460
SELECT ALL + - ( 14 ) DIV NULLIF ( 88, 10 + + 45 ) - - - 1
----
-1

skipif mysql # not compatible
query I rowsort label-1460
SELECT ALL + - ( 14 ) / NULLIF ( 88, 10 + + 45 ) - - - 1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1461
SELECT COUNT( * ) * - - 63 + + + 39 + + - 87 * + + 10 * 1
----
-768

skipif mysql # not compatible
query I rowsort label-1461
SELECT COUNT ( * ) * - - 63 + + + 39 + + - 87 * + + 10 * 1
----
-768

query I rowsort
SELECT - + 74 * - 42 col2
----
3108

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT ALL + + ( + ( - ( + 0 ) ) ) * CASE + 27 WHEN - ( + 95 ) THEN - 76 + + 0 + + 66 * + 36 * + NULLIF ( 74, - + COUNT( * ) ) + + + 87 ELSE NULL END + - 62 * 91
----
NULL

skipif mysql # not compatible
query I rowsort label-1463
SELECT ALL + + ( + ( - ( + 0 ) ) ) * CASE + 27 WHEN - ( + 95 ) THEN - 76 + + 0 + + 66 * + 36 * + NULLIF ( 74, - + COUNT ( * ) ) + + + 87 ELSE NULL END + - 62 * 91
----
NULL

query I rowsort
SELECT - + 63 + - 78 AS col1
----
-141

query I rowsort
SELECT - 0 * 29 - ( + - NULLIF ( + 71, 80 ) )
----
71

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1467
SELECT - 8 * + 66 + - COALESCE ( - - 61, - 24, + + COALESCE ( + 76, - CAST( - - 28 AS SIGNED ) ) ) * - 30 AS col0, - ( + COALESCE ( MIN( ALL - 90 ), + COUNT( * ), COUNT( * ) * + 16 + - 24 + - + 40 ) )
----
1302
90

skipif mysql # not compatible
query II rowsort label-1467
SELECT - 8 * + 66 + - COALESCE ( - - 61, - 24, + + COALESCE ( + 76, - CAST ( - - 28 AS INTEGER ) ) ) * - 30 AS col0, - ( + COALESCE ( MIN ( ALL - 90 ), + COUNT ( * ), COUNT ( * ) * + 16 + - 24 + - + 40 ) )
----
1302
90

onlyif mysql # DIV for integer division: 
query I rowsort label-1468
SELECT DISTINCT + 86 DIV + - 15 + + 60 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-1468
SELECT DISTINCT + 86 / + - 15 + + 60 AS col0
----
55

query I rowsort
SELECT + 21 * - 49 + 40 + + 60 * 60 - + 92
----
2519

onlyif mysql # aggregate syntax: 
query I rowsort label-1470
SELECT ALL 61 * - + COUNT( * ) * + 71 * - 2 AS col1
----
8662

skipif mysql # not compatible
query I rowsort label-1470
SELECT ALL 61 * - + COUNT ( * ) * + 71 * - 2 AS col1
----
8662

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1471
SELECT ( - CAST( NULL AS DECIMAL ) ) / + + 54 + - + 84 AS col1, 84 AS col2
----
NULL
84

skipif mysql # not compatible
query II rowsort label-1471
SELECT ( - CAST ( NULL AS REAL ) ) / + + 54 + - + 84 AS col1, 84 AS col2
----
NULL
84

onlyif mysql # DIV for integer division: 
query I rowsort label-1472
SELECT DISTINCT + + 0 DIV + 5 * + - 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1472
SELECT DISTINCT + + 0 / + 5 * + - 85 AS col1
----
0

query I rowsort
SELECT ALL - 93 + 82
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1474
SELECT DISTINCT + 34 * + 80 + + COUNT( ALL + - 32 ) AS col1, + ( 97 ) DIV + - 74 * - COUNT( * ) + + + 2
----
2721
3

skipif mysql # not compatible
query II rowsort label-1474
SELECT DISTINCT + 34 * + 80 + + COUNT ( ALL + - 32 ) AS col1, + ( 97 ) / + - 74 * - COUNT ( * ) + + + 2
----
2721
3

query I rowsort
SELECT 52 * 58 AS col1
----
3016

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT MAX( 94 ) + + 36 AS col2
----
130

skipif mysql # not compatible
query I rowsort label-1476
SELECT MAX ( 94 ) + + 36 AS col2
----
130

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

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

query I rowsort
SELECT ALL 21 + - 92 AS col1
----
-71

query I rowsort
SELECT ALL 80 + 62
----
142

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1481
SELECT 81, + CAST( - 30 AS SIGNED ) * - - 21 * + 59 AS col0
----
81
-37170

skipif mysql # not compatible
query II rowsort label-1481
SELECT 81, + CAST ( - 30 AS INTEGER ) * - - 21 * + 59 AS col0
----
81
-37170

query I rowsort
SELECT ALL 68 + + + 47
----
115

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT ALL 85 + + MIN( DISTINCT + + 18 ) + + COUNT( * )
----
104

skipif mysql # not compatible
query I rowsort label-1484
SELECT ALL 85 + + MIN ( DISTINCT + + 18 ) + + COUNT ( * )
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1485
SELECT MIN( - + CAST( NULL AS SIGNED ) ) - - CAST( NULL AS DECIMAL ) / 79 / - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-1485
SELECT MIN ( - + CAST ( NULL AS INTEGER ) ) - - CAST ( NULL AS REAL ) / 79 / - 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT CASE + SUM( DISTINCT - 5 ) WHEN + - 24 THEN + 10 WHEN + - 57 THEN NULL END + + + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-1486
SELECT CASE + SUM ( DISTINCT - 5 ) WHEN + - 24 THEN + 10 WHEN + - 57 THEN NULL END + + + 47
----
NULL

query I rowsort
SELECT 77 - - 7
----
84

query I rowsort
SELECT 18 + 4 + + 4 AS col2
----
26

query I rowsort
SELECT ALL 84 - - 7 col1
----
91

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

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

query I rowsort
SELECT ALL - 62 * + ( + + 27 )
----
-1674

onlyif mysql # DIV for integer division: 
query I rowsort label-1492
SELECT DISTINCT 19 - 32 DIV - 36 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-1492
SELECT DISTINCT 19 - 32 / - 36 AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT ALL MAX( ALL 76 ) * - + ( + 88 ) * 53 * - 57 - + - 75 - ( - 43 ) + - 12 * + - 51 AS col0
----
20205178

skipif mysql # not compatible
query I rowsort label-1493
SELECT ALL MAX ( ALL 76 ) * - + ( + 88 ) * 53 * - 57 - + - 75 - ( - 43 ) + - 12 * + - 51 AS col0
----
20205178

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1494
SELECT - CASE MAX( ALL + 49 ) WHEN - 19 + - 47 * - + 14 * 96 THEN NULL ELSE - COUNT( * ) END DIV - 43 + + - 94, + 68 AS col2
----
-94
68

skipif mysql # not compatible
query II rowsort label-1494
SELECT - CASE MAX ( ALL + 49 ) WHEN - 19 + - 47 * - + 14 * 96 THEN NULL ELSE - COUNT ( * ) END / - 43 + + - 94, + 68 AS col2
----
-94
68

query I rowsort
SELECT 21 - - 39
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT ALL - CASE 52 WHEN + 47 * + COUNT( * ) THEN + 69 - + - 8 * - COUNT( * ) * CASE 26 WHEN - 6 THEN ( + + 19 ) - - + 99 ELSE NULL END / - - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1496
SELECT ALL - CASE 52 WHEN + 47 * + COUNT ( * ) THEN + 69 - + - 8 * - COUNT ( * ) * CASE 26 WHEN - 6 THEN ( + + 19 ) - - + 99 ELSE NULL END / - - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1497
SELECT + ( NULLIF ( + 28, - 38 * - + 19 + + COUNT( * ) ) ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-1497
SELECT + ( NULLIF ( + 28, - 38 * - + 19 + + COUNT ( * ) ) ) AS col1
----
28

query I rowsort
SELECT ALL - - 82 col2
----
82

onlyif mysql # aggregate syntax: 
query III rowsort label-1499
SELECT + + 71 col1, COUNT( * ) * + COUNT( * ) AS col0, - - 15 AS col1
----
71
1
15

skipif mysql # not compatible
query III rowsort label-1499
SELECT + + 71 col1, COUNT ( * ) * + COUNT ( * ) AS col0, - - 15 AS col1
----
71
1
15

query I rowsort
SELECT 14 + + + 66 AS col1
----
80

query I rowsort
SELECT + - 77 * + 76 + 98 - - + 35 + 43 - 52 * 81
----
-9888

query I rowsort
SELECT DISTINCT - NULLIF ( 54, - - 61 )
----
-54

query II rowsort
SELECT DISTINCT - 22 AS col1, + 63 * + 1 AS col0
----
-22
63

query I rowsort
SELECT - 92 * - 86
----
7912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1505
SELECT ALL - CASE + 58 WHEN - 42 THEN 41 DIV CAST( NULL AS SIGNED ) ELSE 64 END col2, CAST( NULL AS SIGNED ) * - SUM( ALL - ( - 5 ) )
----
-64
NULL

skipif mysql # not compatible
query II rowsort label-1505
SELECT ALL - CASE + 58 WHEN - 42 THEN 41 / CAST ( NULL AS INTEGER ) ELSE 64 END col2, CAST ( NULL AS INTEGER ) * - SUM ( ALL - ( - 5 ) )
----
-64
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT DISTINCT + COUNT( * ) * MAX( ALL + 16 ) col2
----
16

skipif mysql # not compatible
query I rowsort label-1507
SELECT DISTINCT + COUNT ( * ) * MAX ( ALL + 16 ) col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1508
SELECT ALL + NULLIF ( + CASE - - ( 64 ) WHEN - + 69 THEN 67 WHEN + MIN( ALL - 28 ) - - COUNT( * ) THEN NULL ELSE NULL END, + + 96 ) * + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-1508
SELECT ALL + NULLIF ( + CASE - - ( 64 ) WHEN - + 69 THEN 67 WHEN + MIN ( ALL - 28 ) - - COUNT ( * ) THEN NULL ELSE NULL END, + + 96 ) * + 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1509
SELECT NULLIF ( - - 36, - COALESCE ( - - COUNT( * ), + COUNT( ALL - 73 ) ) ) * COUNT( * ) - + 60 + - 27 col1
----
-51

skipif mysql # not compatible
query I rowsort label-1509
SELECT NULLIF ( - - 36, - COALESCE ( - - COUNT ( * ), + COUNT ( ALL - 73 ) ) ) * COUNT ( * ) - + 60 + - 27 col1
----
-51

query I rowsort
SELECT 11 * - 81
----
-891

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1511
SELECT SUM( + CAST( NULL AS DECIMAL ) ) * + SUM( - 42 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1511
SELECT SUM ( + CAST ( NULL AS REAL ) ) * + SUM ( - 42 ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1512
SELECT ALL + + 97 + + CAST ( NULL AS INTEGER ) / - + 17
----
NULL

query I rowsort
SELECT DISTINCT + 83 + 43 AS col0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-1514
SELECT ALL MAX( DISTINCT + 69 ) + 41
----
110

skipif mysql # not compatible
query I rowsort label-1514
SELECT ALL MAX ( DISTINCT + 69 ) + 41
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT 87 - - + NULLIF ( 73, 55 ) + 0 - + + COUNT( * ) * - COALESCE ( + 63, - + 99 ) - COUNT( * ) AS col1
----
222

skipif mysql # not compatible
query I rowsort label-1515
SELECT 87 - - + NULLIF ( 73, 55 ) + 0 - + + COUNT ( * ) * - COALESCE ( + 63, - + 99 ) - COUNT ( * ) AS col1
----
222

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1516
SELECT ALL 56 AS col0, + MIN( ALL - CAST( NULL AS SIGNED ) ) * ( - 39 ) * 11 + - 52 col0
----
56
NULL

skipif mysql # not compatible
query II rowsort label-1516
SELECT ALL 56 AS col0, + MIN ( ALL - CAST ( NULL AS INTEGER ) ) * ( - 39 ) * 11 + - 52 col0
----
56
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1517
SELECT DISTINCT 33 * - 50 / + 77 / CAST( NULL AS SIGNED ) * + CAST( COUNT( * ) AS SIGNED ) * - 49 * - 23 * - 58 + - 88 + + + 93 * 21
----
NULL

skipif mysql # not compatible
query I rowsort label-1517
SELECT DISTINCT 33 * - 50 / + 77 / CAST ( NULL AS INTEGER ) * + CAST ( COUNT ( * ) AS INTEGER ) * - 49 * - 23 * - 58 + - 88 + + + 93 * 21
----
NULL

query II rowsort
SELECT 58, 65 AS col2
----
58
65

query I rowsort
SELECT 67 + ( 5 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1520
SELECT 3 * + COUNT( * ) * - 97 AS col0
----
-291

skipif mysql # not compatible
query I rowsort label-1520
SELECT 3 * + COUNT ( * ) * - 97 AS col0
----
-291

query I rowsort
SELECT 77 + - 20 + 91 AS col1
----
148

query I rowsort
SELECT NULLIF ( 27, + - 16 ) - + 88
----
-61

query I rowsort
SELECT 86 + COALESCE ( + 12, - - 31, 5 ) AS col0
----
98

query I rowsort
SELECT 22 - 75
----
-53

query II rowsort
SELECT ALL 21 AS col1, 11
----
21
11

query I rowsort
SELECT DISTINCT - 21 - + ( + 43 )
----
-64

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

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

query I rowsort
SELECT 12 + + - 64
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1529
SELECT DISTINCT COUNT( * ) * CAST( + + 97 AS SIGNED ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-1529
SELECT DISTINCT COUNT ( * ) * CAST ( + + 97 AS INTEGER ) AS col2
----
97

query I rowsort
SELECT ( + 1 ) + - 86
----
-85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1531
SELECT + CAST( NULL AS DECIMAL ) / 87 / - 18 * 64 + + 96 * - - 4 * - 51 * + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-1531
SELECT + CAST ( NULL AS REAL ) / 87 / - 18 * 64 + + 96 * - - 4 * - 51 * + 22
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1532
SELECT 13 AS col1, + 86 + - 29 DIV 35 AS col1
----
13
86

skipif mysql # not compatible
query II rowsort label-1532
SELECT 13 AS col1, + 86 + - 29 / 35 AS col1
----
13
86

onlyif mysql # DIV for integer division: 
query I rowsort label-1533
SELECT 98 DIV 15 + - 50 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-1533
SELECT 98 / 15 + - 50 AS col1
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-1534
SELECT NULLIF ( - - COUNT( - + 92 ), + COUNT( * ) * + 34 ) * - ( - - 74 ) + - CASE - 7 WHEN - + 55 THEN + + 41 - - COUNT( * ) - + - ( - 47 ) * 65 WHEN - - NULLIF ( 32, COUNT( * ) ) * - - 54 * + 21 * + 83 * - - COUNT( * ) * + 66 * - - ( + 61 ) / + - 16 THEN NULL WHEN 60 THEN - - 37 END + + AVG ( + - 68 ) * + 3, - 47 col1
----
NULL
-47

skipif mysql # not compatible
query II rowsort label-1534
SELECT NULLIF ( - - COUNT ( - + 92 ), + COUNT ( * ) * + 34 ) * - ( - - 74 ) + - CASE - 7 WHEN - + 55 THEN + + 41 - - COUNT ( * ) - + - ( - 47 ) * 65 WHEN - - NULLIF ( 32, COUNT ( * ) ) * - - 54 * + 21 * + 83 * - - COUNT ( * ) * + 66 * - - ( + 61 ) / + - 16 THEN NULL WHEN 60 THEN - - 37 END + + AVG ( + - 68 ) * + 3, - 47 col1
----
NULL
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT + 71 * - + 46 + SUM( - 30 ) AS col0
----
-3296

skipif mysql # not compatible
query I rowsort label-1535
SELECT + 71 * - + 46 + SUM ( - 30 ) AS col0
----
-3296

query I rowsort
SELECT - COALESCE ( + 34, - 8, - 37 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1537
SELECT ALL - CASE - 60 WHEN - 48 * + - COUNT( DISTINCT + 73 ) THEN + COALESCE ( 19, + - COUNT( * ) + 10 + - 79 * - 7 * - - 65, - - 79 ) * - - 73 WHEN - AVG ( ALL - - 98 ) * - 60 THEN 63 ELSE NULL END * + + COUNT( * ) * 39 * - CASE - NULLIF ( MIN( + 37 ), - 48 ) WHEN + COALESCE ( 55, + 10 ) - + ( ( + COUNT( * ) ) ) * - - 70 THEN NULL ELSE + + 59 END + - 75 + + 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1537
SELECT ALL - CASE - 60 WHEN - 48 * + - COUNT ( DISTINCT + 73 ) THEN + COALESCE ( 19, + - COUNT ( * ) + 10 + - 79 * - 7 * - - 65, - - 79 ) * - - 73 WHEN - AVG ( ALL - - 98 ) * - 60 THEN 63 ELSE NULL END * + + COUNT ( * ) * 39 * - CASE - NULLIF ( MIN ( + 37 ), - 48 ) WHEN + COALESCE ( 55, + 10 ) - + ( ( + COUNT ( * ) ) ) * - - 70 THEN NULL ELSE + + 59 END + - 75 + + 46 AS col0
----
NULL

query I rowsort
SELECT + 85 + - 38 * - 84 * - 89
----
-284003

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT ALL 55 * - MIN( - - 83 )
----
-4565

skipif mysql # not compatible
query I rowsort label-1539
SELECT ALL 55 * - MIN ( - - 83 )
----
-4565

query II rowsort
SELECT ALL + 67 AS col0, 74 AS col0
----
67
74

query II rowsort
SELECT ALL + 57, 99 AS col0
----
57
99

query I rowsort
SELECT + 65 + - + 70
----
-5

query II rowsort
SELECT - 93 AS col2, + 12 + + 45 * - 67 AS col1
----
-93
-3003

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1544
SELECT + - ( - 32 ) + + CAST( 25 AS SIGNED ) * COUNT( * ) * + + ( - COUNT( * ) ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-1544
SELECT + - ( - 32 ) + + CAST ( 25 AS INTEGER ) * COUNT ( * ) * + + ( - COUNT ( * ) ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1545
SELECT - - 65 + 10 * - COUNT( * ) * + 76 * - - COUNT( * ) + + + 8
----
-687

skipif mysql # not compatible
query I rowsort label-1545
SELECT - - 65 + 10 * - COUNT ( * ) * + 76 * - - COUNT ( * ) + + + 8
----
-687

query I rowsort
SELECT ALL + - NULLIF ( - 26, - 86 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT ALL - COUNT( * ) + COUNT( * ) * 10 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-1547
SELECT ALL - COUNT ( * ) + COUNT ( * ) * 10 AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT - SUM( - 40 ) + - 25
----
15

skipif mysql # not compatible
query I rowsort label-1548
SELECT - SUM ( - 40 ) + - 25
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1549
SELECT ALL 92 + - 56 - + 22 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1549
SELECT ALL 92 + - 56 - + 22 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1550
SELECT - CAST( - 40 AS SIGNED ) + + 63 + + 49 * 9 + - + 59 col2
----
485

skipif mysql # not compatible
query I rowsort label-1550
SELECT - CAST ( - 40 AS INTEGER ) + + 63 + + 49 * 9 + - + 59 col2
----
485

onlyif mysql # DIV for integer division: 
query I rowsort label-1551
SELECT - 27 DIV + 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1551
SELECT - 27 / + 82 AS col1
----
0

query I rowsort
SELECT ALL - 34 * - 6 * + 27
----
5508

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

skipif mysql # not compatible
query I rowsort label-1553
SELECT - 9 + - 44 - CAST ( NULL AS INTEGER ) + - + 38
----
NULL

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1557
SELECT - 97 DIV + - ( + - MIN( 40 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-1557
SELECT - 97 / + - ( + - MIN ( 40 ) )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1558
SELECT ALL NULLIF ( + 77, COUNT( * ) )
----
77

skipif mysql # not compatible
query I rowsort label-1558
SELECT ALL NULLIF ( + 77, COUNT ( * ) )
----
77

query I rowsort
SELECT DISTINCT 26 - + - 53 * NULLIF ( 87, + 19 * + 98 ) AS col1
----
4637

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1560
SELECT DISTINCT COALESCE ( + 24, + COUNT( * ) * - - 32, + 13 DIV + 67 ) col1
----
24

skipif mysql # not compatible
query I rowsort label-1560
SELECT DISTINCT COALESCE ( + 24, + COUNT ( * ) * - - 32, + 13 / + 67 ) col1
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1561
SELECT DISTINCT CASE WHEN ( CAST( NULL AS SIGNED ) ) IS NOT NULL THEN NULL ELSE MIN( 57 ) DIV + 20 END AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1561
SELECT DISTINCT CASE WHEN ( CAST ( NULL AS INTEGER ) ) IS NOT NULL THEN NULL ELSE MIN ( 57 ) / + 20 END AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT ALL SUM( - 14 ) * ( + 92 )
----
-1288

skipif mysql # not compatible
query I rowsort label-1562
SELECT ALL SUM ( - 14 ) * ( + 92 )
----
-1288

query I rowsort
SELECT - 66 * - 21 * 42 * + 79 col2
----
4598748

query II rowsort
SELECT - 37 - 65 col1, - 59 + 39 AS col1
----
-102
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT + COUNT( * ) * + 73 * + ( + NULLIF ( + - 18, + + 23 ) )
----
-1314

skipif mysql # not compatible
query I rowsort label-1565
SELECT + COUNT ( * ) * + 73 * + ( + NULLIF ( + - 18, + + 23 ) )
----
-1314

query I rowsort
SELECT - 13 - - 25
----
12

query I rowsort
SELECT ALL NULLIF ( - 57, 41 )
----
-57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1568
SELECT ALL - + 91 / + + 75 + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1568
SELECT ALL - + 91 / + + 75 + + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT - + 40 * + 71 + - 64 AS col0
----
-2904

query I rowsort
SELECT + ( + + 18 ) - 71 + - 90 AS col1
----
-143

query I rowsort
SELECT ALL - - 31 * 25 AS col0
----
775

query I rowsort
SELECT ALL + - ( + + 2 ) col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1573
SELECT + 83 * ( + - 54 ) * - 1 / - - 49 * - CASE + + 42 WHEN + 50 THEN - ( + 7 ) * 7 ELSE + 57 + - 87 - CAST( NULL AS SIGNED ) * - 8 END * + 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1573
SELECT + 83 * ( + - 54 ) * - 1 / - - 49 * - CASE + + 42 WHEN + 50 THEN - ( + 7 ) * 7 ELSE + 57 + - 87 - CAST ( NULL AS INTEGER ) * - 8 END * + 60 AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1574
SELECT ALL + - 71 / 86 / + 29 + + + AVG ( CAST( NULL AS DECIMAL ) ) * - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-1574
SELECT ALL + - 71 / 86 / + 29 + + + AVG ( CAST ( NULL AS REAL ) ) * - 97
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1575
SELECT ALL + + 72 DIV + 46 + + ( - 82 )
----
-81

skipif mysql # not compatible
query I rowsort label-1575
SELECT ALL + + 72 / + 46 + + ( - 82 )
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1576
SELECT DISTINCT ( + - 60 ) DIV - COUNT( * ) + - + 49 + + 68 - 20 col1
----
59

skipif mysql # not compatible
query I rowsort label-1576
SELECT DISTINCT ( + - 60 ) / - COUNT ( * ) + - + 49 + + 68 - 20 col1
----
59

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

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

query I rowsort
SELECT + - 69 + + + COALESCE ( + 91, + 81 ) + 49
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1579
SELECT - ( + + NULLIF ( - 78, 44 * + NULLIF ( 82, - COUNT( * ) ) ) )
----
78

skipif mysql # not compatible
query I rowsort label-1579
SELECT - ( + + NULLIF ( - 78, 44 * + NULLIF ( 82, - COUNT ( * ) ) ) )
----
78

query I rowsort
SELECT + - 39 * + - 37 + 51 * 38 * 23 * - - 99
----
4414269

query I rowsort
SELECT + 86 * + 6 col1
----
516

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1582
SELECT DISTINCT CASE + 80 WHEN + - ( + 1 ) * COUNT( * ) THEN - ( - 59 ) * + 68 ELSE NULL END / + 92 / 41 * - CAST( - 73 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1582
SELECT DISTINCT CASE + 80 WHEN + - ( + 1 ) * COUNT ( * ) THEN - ( - 59 ) * + 68 ELSE NULL END / + 92 / 41 * - CAST ( - 73 AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT 80 * + 81 + - 83 - + - 81 + - 90 AS col2, - 45 / + + CASE + 70 WHEN - - 89 THEN + 17 + + 75 / - 59 WHEN - + 28 THEN - 82 END
----
6388
NULL

query II rowsort
SELECT DISTINCT + 19, + COALESCE ( + 54, - 44 ) AS col1
----
19
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT COALESCE ( - 34, - + COUNT( * ) * - 9 * - 9 - - - 21 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-1585
SELECT COALESCE ( - 34, - + COUNT ( * ) * - 9 * - 9 - - - 21 ) AS col1
----
-34

query I rowsort
SELECT COALESCE ( 11, - + 23 + 68 ) col0
----
11

query I rowsort
SELECT + 3 + + 78 + - 45 AS col0
----
36

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

skipif mysql # not compatible
query I rowsort label-1588
SELECT SUM ( DISTINCT 37 )
----
37

query I rowsort
SELECT + 97 - + 17 AS col2
----
80

query II rowsort
SELECT ALL - ( + 11 ) * 23, 50 AS col1
----
-253
50

query I rowsort
SELECT - 90 * + 77
----
-6930

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT DISTINCT COALESCE ( SUM( + + 90 ), + 68 )
----
90

skipif mysql # not compatible
query I rowsort label-1592
SELECT DISTINCT COALESCE ( SUM ( + + 90 ), + 68 )
----
90

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

skipif mysql # not compatible
query I rowsort label-1593
SELECT - 25 * ( - COUNT ( * ) )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT + 37 + + MAX( 38 ) + - + 94 * - 69
----
6561

skipif mysql # not compatible
query I rowsort label-1594
SELECT + 37 + + MAX ( 38 ) + - + 94 * - 69
----
6561

query I rowsort
SELECT + 55 * - + 45 AS col0
----
-2475

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT - COUNT( * ) - - - ( 42 ) - + 49 * + + 76 AS col0
----
-3767

skipif mysql # not compatible
query I rowsort label-1597
SELECT - COUNT ( * ) - - - ( 42 ) - + 49 * + + 76 AS col0
----
-3767

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1598
SELECT DISTINCT - CAST( - 11 AS SIGNED ) * ( + 16 ) * + 20 + - 28 AS col1
----
3492

skipif mysql # not compatible
query I rowsort label-1598
SELECT DISTINCT - CAST ( - 11 AS INTEGER ) * ( + 16 ) * + 20 + - 28 AS col1
----
3492

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT 21 + - 74 * - 92 * + 60 * + 30 * COUNT( * ) + + 56 * - 3 * 93 AS col1
----
12238797

skipif mysql # not compatible
query I rowsort label-1599
SELECT 21 + - 74 * - 92 * + 60 * + 30 * COUNT ( * ) + + 56 * - 3 * 93 AS col1
----
12238797

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT 56 - + + MIN( DISTINCT + - 7 ) - 82 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-1600
SELECT 56 - + + MIN ( DISTINCT + - 7 ) - 82 AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT ALL - COUNT( * ) + - COUNT( * ) + + - 12 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-1601
SELECT ALL - COUNT ( * ) + - COUNT ( * ) + + - 12 AS col0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1602
SELECT ALL + + CASE + + 18 WHEN + 5 THEN NULL WHEN - ( - + COUNT( DISTINCT + - 26 ) ) + 36 * CASE - 36 WHEN - 87 * + 23 THEN - - MIN( DISTINCT + + 57 ) ELSE NULL END THEN 32 WHEN NULLIF ( - 92, 30 + - 69 ) + + + CAST( - - 36 AS SIGNED ) + - 20 THEN 37 ELSE NULL END + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-1602
SELECT ALL + + CASE + + 18 WHEN + 5 THEN NULL WHEN - ( - + COUNT ( DISTINCT + - 26 ) ) + 36 * CASE - 36 WHEN - 87 * + 23 THEN - - MIN ( DISTINCT + + 57 ) ELSE NULL END THEN 32 WHEN NULLIF ( - 92, 30 + - 69 ) + + + CAST ( - - 36 AS INTEGER ) + - 20 THEN 37 ELSE NULL END + 86
----
NULL

query I rowsort
SELECT ALL + - 66 + 69 AS col1
----
3

query I rowsort
SELECT ALL - + 3 + + 48
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT 78 / + 32 + CASE - MAX( + 12 ) WHEN + 11 THEN NULL ELSE + + 49 END + + + 93 * + + 8 + - + CASE 94 WHEN 17 THEN 20 END * + 92 / - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-1605
SELECT 78 / + 32 + CASE - MAX ( + 12 ) WHEN + 11 THEN NULL ELSE + + 49 END + + + 93 * + + 8 + - + CASE 94 WHEN 17 THEN 20 END * + 92 / - 13
----
NULL

query I rowsort
SELECT 71 + - 39 - + + NULLIF ( + - 58, - 41 ) AS col1
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1607
SELECT - 3 DIV + 92 - + ( - COUNT( * ) ) DIV + - COUNT( * ) + 59 AS col0, - COUNT( * )
----
58
-1

skipif mysql # not compatible
query II rowsort label-1607
SELECT - 3 / + 92 - + ( - COUNT ( * ) ) / + - COUNT ( * ) + 59 AS col0, - COUNT ( * )
----
58
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT ALL - ( - COUNT( * ) ) * 3 + - 64 col2
----
-61

skipif mysql # not compatible
query I rowsort label-1608
SELECT ALL - ( - COUNT ( * ) ) * 3 + - 64 col2
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1609
SELECT 61 * CAST( NULL AS SIGNED ) * COALESCE ( - 97, + 49 / + + NULLIF ( 93, - 13 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1609
SELECT 61 * CAST ( NULL AS INTEGER ) * COALESCE ( - 97, + 49 / + + NULLIF ( 93, - 13 ) )
----
NULL

query I rowsort
SELECT ALL - 18 + - 59 col0
----
-77

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1612
SELECT + + MIN( DISTINCT + 79 ) DIV 39 + + 53
----
55

skipif mysql # not compatible
query I rowsort label-1612
SELECT + + MIN ( DISTINCT + 79 ) / 39 + + 53
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1613
SELECT + 27, + 66 * 63 - - CAST( NULL AS SIGNED ) AS col0
----
27
NULL

skipif mysql # not compatible
query II rowsort label-1613
SELECT + 27, + 66 * 63 - - CAST ( NULL AS INTEGER ) AS col0
----
27
NULL

query I rowsort
SELECT ALL - 74 * + 15 + + + 0 col0
----
-1110

onlyif mysql # aggregate syntax: 
query I rowsort label-1615
SELECT COUNT( * ) + + 29 * - COALESCE ( 64, - + 73, - 39 ) AS col2
----
-1855

skipif mysql # not compatible
query I rowsort label-1615
SELECT COUNT ( * ) + + 29 * - COALESCE ( 64, - + 73, - 39 ) AS col2
----
-1855

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1616
SELECT DISTINCT - ( + ( + + ( + CAST( - 82 AS SIGNED ) ) ) )
----
82

skipif mysql # not compatible
query I rowsort label-1616
SELECT DISTINCT - ( + ( + + ( + CAST ( - 82 AS INTEGER ) ) ) )
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1617
SELECT 86 + + 35 DIV MAX( NULLIF ( + + 39, - 19 ) ) + - 5 + + 55 + 74 * - - 75
----
5686

skipif mysql # not compatible
query I rowsort label-1617
SELECT 86 + + 35 / MAX ( NULLIF ( + + 39, - 19 ) ) + - 5 + + 55 + 74 * - - 75
----
5686

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1618
SELECT ALL + 82 - - + MAX( DISTINCT 42 ) DIV - - COUNT( * ) AS col2
----
124

skipif mysql # not compatible
query I rowsort label-1618
SELECT ALL + 82 - - + MAX ( DISTINCT 42 ) / - - COUNT ( * ) AS col2
----
124

onlyif mysql # aggregate syntax: 
query II rowsort label-1619
SELECT MIN( + - 31 ) * + 51 - - + 92 AS col0, ( + 70 ) + 51 + - 46 AS col1
----
-1489
75

skipif mysql # not compatible
query II rowsort label-1619
SELECT MIN ( + - 31 ) * + 51 - - + 92 AS col0, ( + 70 ) + 51 + - 46 AS col1
----
-1489
75

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

skipif mysql # not compatible
query I rowsort label-1620
SELECT COUNT ( * ) / + 84 + 82
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1621
SELECT 70 * + 14 - - + 85 * + 35 AS col2, COUNT( * ) * - - 82 - + 68 + + 98 * - COALESCE ( - CASE + 60 WHEN - CAST( NULL AS SIGNED ) * + 9 - - - 2 THEN - 79 - 80 ELSE - COUNT( * ) END, - 87 DIV + 65 ) * 47
----
3955
-4592

skipif mysql # not compatible
query II rowsort label-1621
SELECT 70 * + 14 - - + 85 * + 35 AS col2, COUNT ( * ) * - - 82 - + 68 + + 98 * - COALESCE ( - CASE + 60 WHEN - CAST ( NULL AS INTEGER ) * + 9 - - - 2 THEN - 79 - 80 ELSE - COUNT ( * ) END, - 87 / + 65 ) * 47
----
3955
-4592

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT - 15 * - 14 - - MIN( ALL 63 )
----
273

skipif mysql # not compatible
query I rowsort label-1622
SELECT - 15 * - 14 - - MIN ( ALL 63 )
----
273

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1623
SELECT ALL 98 DIV - MAX( ALL 56 )
----
-1

skipif mysql # not compatible
query I rowsort label-1623
SELECT ALL 98 / - MAX ( ALL 56 )
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT DISTINCT - NULLIF ( + 59, + 55 + - + 27 - - COUNT( 44 ) * 30 + - - 86 )
----
-59

skipif mysql # not compatible
query I rowsort label-1625
SELECT DISTINCT - NULLIF ( + 59, + 55 + - + 27 - - COUNT ( 44 ) * 30 + - - 86 )
----
-59

query I rowsort
SELECT 7 * + 30 + - + ( + 7 ) + + - 5 + - + 27
----
171

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1627
SELECT ALL 62 DIV 55 * + + COUNT( * ) * - + 12
----
-12

skipif mysql # not compatible
query I rowsort label-1627
SELECT ALL 62 / 55 * + + COUNT ( * ) * - + 12
----
-12

query I rowsort
SELECT 21 + - - 88 * - - 51
----
4509

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

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

query I rowsort
SELECT DISTINCT 90 * + 29
----
2610

query I rowsort
SELECT ALL 8 + - 30
----
-22

query I rowsort
SELECT 44 * 66 + 13
----
2917

query I rowsort
SELECT 18 * 18 AS col0
----
324

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1634
SELECT ALL - CASE - CAST( NULL AS SIGNED ) WHEN - - 36 + - 40 + + COUNT( * ) THEN + 18 END + + 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1634
SELECT ALL - CASE - CAST ( NULL AS INTEGER ) WHEN - - 36 + - 40 + + COUNT ( * ) THEN + 18 END + + 22 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1635
SELECT DISTINCT COUNT( * ) + - 10 AS col0, 57 col2
----
-9
57

skipif mysql # not compatible
query II rowsort label-1635
SELECT DISTINCT COUNT ( * ) + - 10 AS col0, 57 col2
----
-9
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1636
SELECT DISTINCT - 41 + COUNT( 74 ) + - 54 * + + 71 * - 4
----
15296

skipif mysql # not compatible
query I rowsort label-1636
SELECT DISTINCT - 41 + COUNT ( 74 ) + - 54 * + + 71 * - 4
----
15296

query I rowsort
SELECT 94 * - 92 AS col2
----
-8648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1638
SELECT + 9 - - 45 + + + 80 * + NULLIF ( - - CAST( + 69 AS SIGNED ), - 62 )
----
5574

skipif mysql # not compatible
query I rowsort label-1638
SELECT + 9 - - 45 + + + 80 * + NULLIF ( - - CAST ( + 69 AS INTEGER ), - 62 )
----
5574

onlyif mysql # aggregate syntax: 
query I rowsort label-1639
SELECT 55 - + SUM( 28 ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-1639
SELECT 55 - + SUM ( 28 ) AS col0
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1640
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1640
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT ALL + NULLIF ( + 19, - + 28 / + COUNT( * ) + + 30 * 24 * - NULLIF ( + + 88, + 32 ) + + MIN( + 6 ) / 98 ) + - - ( + 69 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-1641
SELECT ALL + NULLIF ( + 19, - + 28 / + COUNT ( * ) + + 30 * 24 * - NULLIF ( + + 88, + 32 ) + + MIN ( + 6 ) / 98 ) + - - ( + 69 ) AS col0
----
88

query I rowsort
SELECT DISTINCT - 36 * 65 + 67 - + 24 AS col1
----
-2297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1643
SELECT - ( + CAST( - - COALESCE ( - 20, 34 ) AS SIGNED ) ) * + 17 * + 49 AS col2
----
16660

skipif mysql # not compatible
query I rowsort label-1643
SELECT - ( + CAST ( - - COALESCE ( - 20, 34 ) AS INTEGER ) ) * + 17 * + 49 AS col2
----
16660

query I rowsort
SELECT ALL - NULLIF ( - 15, + - 12 ) AS col0
----
15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1646
SELECT 32 + - + MIN( + 20 ) + - 58 - + 58 AS col0
----
-104

skipif mysql # not compatible
query I rowsort label-1646
SELECT 32 + - + MIN ( + 20 ) + - 58 - + 58 AS col0
----
-104

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1647
SELECT DISTINCT + + 46 DIV - CAST( - 29 AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1647
SELECT DISTINCT + + 46 / - CAST ( - 29 AS INTEGER ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT DISTINCT - COUNT( * ) * - - 19 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-1648
SELECT DISTINCT - COUNT ( * ) * - - 19 AS col1
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-1649
SELECT COUNT( * ) AS col1, - CASE + 71 WHEN - 15 THEN - - 80 WHEN + - COUNT( * ) * + 83 THEN NULL END + - 99
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1649
SELECT COUNT ( * ) AS col1, - CASE + 71 WHEN - 15 THEN - - 80 WHEN + - COUNT ( * ) * + 83 THEN NULL END + - 99
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1650
SELECT DISTINCT - ( - + ( + COUNT( * ) ) ) AS col1, - 96 DIV - 58 AS col1
----
1
1

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1651
SELECT DISTINCT + 30 * + 51 * + CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1651
SELECT DISTINCT + 30 * + 51 * + CAST ( NULL AS REAL ) col1
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-1653
SELECT COUNT ( * ) * - 32
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1654
SELECT 2 + 81 - - COUNT( * ), + COUNT( * ) * - 30 DIV + + 83 * + COUNT( * ) * 44 AS col2
----
84
0

skipif mysql # not compatible
query II rowsort label-1654
SELECT 2 + 81 - - COUNT ( * ), + COUNT ( * ) * - 30 / + + 83 * + COUNT ( * ) * 44 AS col2
----
84
0

query I rowsort
SELECT NULLIF ( - 84, + 68 ) * + 38
----
-3192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1656
SELECT ALL COALESCE ( ( + 80 ), - CAST( + 23 AS SIGNED ), - - COUNT( + - 31 ) ) + + 4 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-1656
SELECT ALL COALESCE ( ( + 80 ), - CAST ( + 23 AS INTEGER ), - - COUNT ( + - 31 ) ) + + 4 AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT - 29 * 21 + COALESCE ( + - MIN( 34 ), + 43 * + 62 + + 96 + + 39 + - COUNT( DISTINCT + 95 ) * 29 )
----
-643

skipif mysql # not compatible
query I rowsort label-1657
SELECT - 29 * 21 + COALESCE ( + - MIN ( 34 ), + 43 * + 62 + + 96 + + 39 + - COUNT ( DISTINCT + 95 ) * 29 )
----
-643

query I rowsort
SELECT - 90 + + 86
----
-4

query I rowsort
SELECT ALL 2 + 67 AS col1
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1660
SELECT DISTINCT CAST( - 67 AS SIGNED ) * + 16 - + 25
----
-1097

skipif mysql # not compatible
query I rowsort label-1660
SELECT DISTINCT CAST ( - 67 AS INTEGER ) * + 16 - + 25
----
-1097

onlyif mysql # DIV for integer division: 
query I rowsort label-1661
SELECT + 66 DIV 14 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-1661
SELECT + 66 / 14 AS col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1662
SELECT ALL + CASE - 89 WHEN - CASE + MIN( - - ( 19 ) ) WHEN + + 72 THEN + + COUNT( * ) END * + 74 + + COUNT( * ) THEN NULL ELSE - 74 / - 66 END + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1662
SELECT ALL + CASE - 89 WHEN - CASE + MIN ( - - ( 19 ) ) WHEN + + 72 THEN + + COUNT ( * ) END * + 74 + + COUNT ( * ) THEN NULL ELSE - 74 / - 66 END + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT ALL 54 + - ( - 69 ) * + COUNT( * ) * - 21 + - - 44 AS col0
----
-1351

skipif mysql # not compatible
query I rowsort label-1663
SELECT ALL 54 + - ( - 69 ) * + COUNT ( * ) * - 21 + - - 44 AS col0
----
-1351

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

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

query I rowsort
SELECT - 80 * - 41
----
3280

query I rowsort
SELECT ALL 19 * - 78 AS col0
----
-1482

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT + CASE COUNT( * ) WHEN + - 96 + + 51 THEN + + ( + 31 ) + - + 32 * + - 27 WHEN + 11 + - 7 THEN NULL END + + 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1667
SELECT + CASE COUNT ( * ) WHEN + - 96 + + 51 THEN + + ( + 31 ) + - + 32 * + - 27 WHEN + 11 + - 7 THEN NULL END + + 68 AS col2
----
NULL

query I rowsort
SELECT + 7 + + 5
----
12

query I rowsort
SELECT + 76 - 99 AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1670
SELECT - COUNT( DISTINCT - - 27 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1670
SELECT - COUNT ( DISTINCT - - 27 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT + 76 - 30
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1672
SELECT ALL + COUNT( * ) - 58 AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-1672
SELECT ALL + COUNT ( * ) - 58 AS col2
----
-57

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1674
SELECT DISTINCT 45, NULLIF ( - - COUNT( * ), - 74 * - - 45 / + + ( COUNT( * ) ) + - COUNT( * ) * 95 ) + + MIN( 17 ) AS col1
----
45
18

skipif mysql # not compatible
query II rowsort label-1674
SELECT DISTINCT 45, NULLIF ( - - COUNT ( * ), - 74 * - - 45 / + + ( COUNT ( * ) ) + - COUNT ( * ) * 95 ) + + MIN ( 17 ) AS col1
----
45
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1675
SELECT + + CASE + ( + + 80 ) WHEN - 85 THEN + - COUNT( * ) WHEN COALESCE ( + + 53, 81 + - 49 + + 21 + - COUNT( * ) ) * - 30 * COUNT( * ) + + - 22 THEN - 26 DIV ( - 33 ) ELSE + + COUNT( * ) * 47 * - - 67 END + 38 * 98 AS col1
----
6873

skipif mysql # not compatible
query I rowsort label-1675
SELECT + + CASE + ( + + 80 ) WHEN - 85 THEN + - COUNT ( * ) WHEN COALESCE ( + + 53, 81 + - 49 + + 21 + - COUNT ( * ) ) * - 30 * COUNT ( * ) + + - 22 THEN - 26 / ( - 33 ) ELSE + + COUNT ( * ) * 47 * - - 67 END + 38 * 98 AS col1
----
6873

onlyif mysql # DIV for integer division: 
query I rowsort label-1676
SELECT DISTINCT + 35 * - 18 DIV COALESCE ( + 22, + 82 ) DIV 68 col1
----
0

skipif mysql # not compatible
query I rowsort label-1676
SELECT DISTINCT + 35 * - 18 / COALESCE ( + 22, + 82 ) / 68 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT DISTINCT + COALESCE ( 82, + 3, 94 ) * - + MIN( - 60 ) AS col0
----
4920

skipif mysql # not compatible
query I rowsort label-1677
SELECT DISTINCT + COALESCE ( 82, + 3, 94 ) * - + MIN ( - 60 ) AS col0
----
4920

query II rowsort
SELECT + + 60 + + 91 + + 18 AS col0, + 77
----
169
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT + 23 * - 43 + + COUNT( * ) * ( + - 82 ) AS col0
----
-1071

skipif mysql # not compatible
query I rowsort label-1679
SELECT + 23 * - 43 + + COUNT ( * ) * ( + - 82 ) AS col0
----
-1071

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1680
SELECT - 93 * + 29 * - 27 col1, - ( 24 ) DIV COUNT( * ) + 8
----
72819
-16

skipif mysql # not compatible
query II rowsort label-1680
SELECT - 93 * + 29 * - 27 col1, - ( 24 ) / COUNT ( * ) + 8
----
72819
-16

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1682
SELECT - 48 * 85 + - - COUNT( * ) AS col0, 79 + 97 + + SUM( DISTINCT + 96 ) AS col0
----
-4079
272

skipif mysql # not compatible
query II rowsort label-1682
SELECT - 48 * 85 + - - COUNT ( * ) AS col0, 79 + 97 + + SUM ( DISTINCT + 96 ) AS col0
----
-4079
272

query I rowsort
SELECT ALL + ( + 27 ) AS col2
----
27

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT ALL + SUM( + - 17 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-1686
SELECT ALL + SUM ( + - 17 ) AS col1
----
-17

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1688
SELECT 16 * - 20 DIV + COUNT( * ) + - COUNT( * ) + - 22 * - COUNT( * ) DIV 83 + 54 AS col1
----
-267

skipif mysql # not compatible
query I rowsort label-1688
SELECT 16 * - 20 / + COUNT ( * ) + - COUNT ( * ) + - 22 * - COUNT ( * ) / 83 + 54 AS col1
----
-267

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

skipif mysql # not compatible
query I rowsort label-1689
SELECT ALL - 42 * CAST ( + + 53 AS INTEGER ) + + CAST ( NULL AS REAL ) * + COUNT ( * ) * - + 17 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT + 38 + - 52 + - - 47 * COUNT( * ) + - 21 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-1690
SELECT + 38 + - 52 + - - 47 * COUNT ( * ) + - 21 AS col1
----
12

query I rowsort
SELECT - 62 * + 85 - + 94 AS col0
----
-5364

query I rowsort
SELECT NULLIF ( - 69, - 19 )
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1693
SELECT - 14 + - MIN( + ( 15 ) ) + 71 + 65 DIV + 51 * - - COUNT( * ) + COALESCE ( 45, - SUM( ALL - - 43 ) * + CASE WHEN NOT CAST( NULL AS SIGNED ) IS NOT NULL THEN + 22 END ) * 14 AS col1, 4
----
673
4

skipif mysql # not compatible
query II rowsort label-1693
SELECT - 14 + - MIN ( + ( 15 ) ) + 71 + 65 / + 51 * - - COUNT ( * ) + COALESCE ( 45, - SUM ( ALL - - 43 ) * + CASE WHEN NOT CAST ( NULL AS INTEGER ) IS NOT NULL THEN + 22 END ) * 14 AS col1, 4
----
673
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT 81 * - 42 + + + NULLIF ( + 58, 89 - + SUM( - - 78 ) + + 66 )
----
-3344

skipif mysql # not compatible
query I rowsort label-1694
SELECT 81 * - 42 + + + NULLIF ( + 58, 89 - + SUM ( - - 78 ) + + 66 )
----
-3344

query I rowsort
SELECT ALL - 44 * - + 21 * + + 8 * 2
----
14784

query I rowsort
SELECT NULLIF ( 38, 97 )
----
38

query I rowsort
SELECT - 90 * + + 97 AS col1
----
-8730

query II rowsort
SELECT + 24, + 92 - + + 41 AS col0
----
24
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1699
SELECT ALL + NULLIF ( 24, 77 ) * + 29 + - + COUNT( * ) * - COALESCE ( 86, + + 56, + - 57 DIV + 11 + + - 80 )
----
782

skipif mysql # not compatible
query I rowsort label-1699
SELECT ALL + NULLIF ( 24, 77 ) * + 29 + - + COUNT ( * ) * - COALESCE ( 86, + + 56, + - 57 / + 11 + + - 80 )
----
782

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT DISTINCT - NULLIF ( - ( + NULLIF ( - 18, - 81 * + 32 ) ), 36 ) * NULLIF ( - + 27, + 14 * - SUM( + 81 ) + - 61 + - 32 + + 99 * 59 ) + - NULLIF ( - + 37, - + ( + 23 ) / + + COUNT( * ) * - - 92 * - - 6 + + 60 * + 95 ) AS col1
----
523

skipif mysql # not compatible
query I rowsort label-1700
SELECT DISTINCT - NULLIF ( - ( + NULLIF ( - 18, - 81 * + 32 ) ), 36 ) * NULLIF ( - + 27, + 14 * - SUM ( + 81 ) + - 61 + - 32 + + 99 * 59 ) + - NULLIF ( - + 37, - + ( + 23 ) / + + COUNT ( * ) * - - 92 * - - 6 + + 60 * + 95 ) AS col1
----
523

onlyif mysql # aggregate syntax: 
query II rowsort label-1701
SELECT ALL SUM( 87 ) * + 85 + + - 43 * 88 + - COUNT( * ), 21 AS col2
----
3610
21

skipif mysql # not compatible
query II rowsort label-1701
SELECT ALL SUM ( 87 ) * + 85 + + - 43 * 88 + - COUNT ( * ), 21 AS col2
----
3610
21

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

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

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

skipif mysql # not compatible
query I rowsort label-1703
SELECT - 36 + - COUNT ( * ) AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1704
SELECT ALL 97 * COUNT( * ) + ( + COUNT( * ) ) + - 92
----
6

skipif mysql # not compatible
query I rowsort label-1704
SELECT ALL 97 * COUNT ( * ) + ( + COUNT ( * ) ) + - 92
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT - + ( + 58 ) * + 30 + + COUNT( * ) + - 13 AS col0
----
-1752

skipif mysql # not compatible
query I rowsort label-1705
SELECT - + ( + 58 ) * + 30 + + COUNT ( * ) + - 13 AS col0
----
-1752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1706
SELECT DISTINCT + + 47 - - CASE - - COUNT( * ) WHEN - 67 THEN - SUM( + - 11 ) + + COUNT( * ) + + + MIN( ALL + 69 ) / - 77 + + 90 + - 26 * + COALESCE ( ( - 14 ), - - AVG ( DISTINCT + 75 ) ) * - + 55 * - COUNT( * ) * + 82 + - COALESCE ( + COALESCE ( - 64, + 93 + - ( - + AVG ( DISTINCT 39 ) ) * - 0 ), NULLIF ( - - 84, + NULLIF ( COUNT( * ), + CAST( NULL AS DECIMAL ) ) ) ) / + COALESCE ( - COUNT( 63 ), - NULLIF ( - CASE - 60 WHEN - 3 - + MIN( DISTINCT 80 ) + MAX( + 94 ) / 94 THEN NULL ELSE + 52 END, 61 + + COUNT( * ) ) + 74, 25 / + 32, + CASE + 66 WHEN 60 THEN 35 ELSE NULL END * - 30 - 33 ) WHEN 82 / CAST( NULL AS SIGNED ) THEN + 72 WHEN - 14 THEN NULL ELSE CAST( NULL AS SIGNED ) - 17 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1706
SELECT DISTINCT + + 47 - - CASE - - COUNT ( * ) WHEN - 67 THEN - SUM ( + - 11 ) + + COUNT ( * ) + + + MIN ( ALL + 69 ) / - 77 + + 90 + - 26 * + COALESCE ( ( - 14 ), - - AVG ( DISTINCT + 75 ) ) * - + 55 * - COUNT ( * ) * + 82 + - COALESCE ( + COALESCE ( - 64, + 93 + - ( - + AVG ( DISTINCT 39 ) ) * - 0 ), NULLIF ( - - 84, + NULLIF ( COUNT ( * ), + CAST ( NULL AS REAL ) ) ) ) / + COALESCE ( - COUNT ( 63 ), - NULLIF ( - CASE - 60 WHEN - 3 - + MIN ( DISTINCT 80 ) + MAX ( + 94 ) / 94 THEN NULL ELSE + 52 END, 61 + + COUNT ( * ) ) + 74, 25 / + 32, + CASE + 66 WHEN 60 THEN 35 ELSE NULL END * - 30 - 33 ) WHEN 82 / CAST ( NULL AS INTEGER ) THEN + 72 WHEN - 14 THEN NULL ELSE CAST ( NULL AS INTEGER ) - 17 END AS col0
----
NULL

query I rowsort
SELECT + - ( - 93 ) + + - 19 AS col1
----
74

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

query I rowsort
SELECT DISTINCT - - 55 - + 54
----
1

query I rowsort
SELECT + 36 + 32 * - 42 AS col2
----
-1308

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1712
SELECT ALL - - 4 * - 3 + + 33 DIV 48
----
-12

skipif mysql # not compatible
query I rowsort label-1712
SELECT ALL - - 4 * - 3 + + 33 / 48
----
-12

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1714
SELECT - NULLIF ( + COUNT( * ), 66 * + + 95 + + CAST( 90 AS SIGNED ) + - 20 + 21 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1714
SELECT - NULLIF ( + COUNT ( * ), 66 * + + 95 + + CAST ( 90 AS INTEGER ) + - 20 + 21 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1715
SELECT + + ( - + 30 ) DIV - - 65
----
0

skipif mysql # not compatible
query I rowsort label-1715
SELECT + + ( - + 30 ) / - - 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT + - 15 * + CASE - ( 53 ) WHEN - 97 * - SUM( DISTINCT + 64 ) THEN - 83 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1716
SELECT + - 15 * + CASE - ( 53 ) WHEN - 97 * - SUM ( DISTINCT + 64 ) THEN - 83 END col0
----
NULL

query II rowsort
SELECT + - 9 + - 22, 0 * - 3 col1
----
-31
0

query II rowsort
SELECT DISTINCT 24 AS col2, - 74 AS col1
----
24
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT ALL - SUM( - NULLIF ( + 10, + 91 * 60 + + - 75 ) )
----
10

skipif mysql # not compatible
query I rowsort label-1719
SELECT ALL - SUM ( - NULLIF ( + 10, + 91 * 60 + + - 75 ) )
----
10

query II rowsort
SELECT + + 40 * + 77, 71 AS col1
----
3080
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1721
SELECT + MAX( 25 ) + + CAST( 17 AS SIGNED ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-1721
SELECT + MAX ( 25 ) + + CAST ( 17 AS INTEGER ) AS col0
----
42

query I rowsort
SELECT ALL 83 + - 69 AS col2
----
14

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1724
SELECT ALL + 75 DIV + COALESCE ( + NULLIF ( - - 3, - 5 ), + - 22 ) + - 49 AS col2, - 71 * + + 76 AS col2
----
-24
-5396

skipif mysql # not compatible
query II rowsort label-1724
SELECT ALL + 75 / + COALESCE ( + NULLIF ( - - 3, - 5 ), + - 22 ) + - 49 AS col2, - 71 * + + 76 AS col2
----
-24
-5396

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1725
SELECT DISTINCT + CAST( - 83 AS SIGNED ) * - 21 + 94 + - 70 + COALESCE ( - - 97, + + 7 )
----
1864

skipif mysql # not compatible
query I rowsort label-1725
SELECT DISTINCT + CAST ( - 83 AS INTEGER ) * - 21 + 94 + - 70 + COALESCE ( - - 97, + + 7 )
----
1864

onlyif mysql # DIV for integer division: 
query I rowsort label-1726
SELECT DISTINCT + 31 DIV 83 + + + 41 * - + 38
----
-1558

skipif mysql # not compatible
query I rowsort label-1726
SELECT DISTINCT + 31 / 83 + + + 41 * - + 38
----
-1558

query I rowsort
SELECT + 27 * 78 AS col1
----
2106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1728
SELECT ALL - CASE + - ( + - 68 ) WHEN - + 35 THEN + ( - CAST( - 57 AS SIGNED ) ) ELSE NULL END / + + 77 + 64 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1728
SELECT ALL - CASE + - ( + - 68 ) WHEN - + 35 THEN + ( - CAST ( - 57 AS INTEGER ) ) ELSE NULL END / + + 77 + 64 col2
----
NULL

query I rowsort
SELECT + 38 * 57
----
2166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1730
SELECT DISTINCT 67 + - + CAST( - + CASE + 29 WHEN + 0 * + COUNT( * ) + - 54 THEN + 49 * 61 + - + 47 ELSE 47 * - - ( + + COUNT( * ) ) + - 61 END AS SIGNED ) - - 40 + 49 * - + 69 * 42 / - CAST( + CAST( + 26 AS SIGNED ) AS SIGNED ) + 29 * + - COUNT( * ) + - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1730
SELECT DISTINCT 67 + - + CAST ( - + CASE + 29 WHEN + 0 * + COUNT ( * ) + - 54 THEN + 49 * 61 + - + 47 ELSE 47 * - - ( + + COUNT ( * ) ) + - 61 END AS INTEGER ) - - 40 + 49 * - + 69 * 42 / - CAST ( + CAST ( + 26 AS INTEGER ) AS INTEGER ) + 29 * + - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1731
SELECT ALL 85 * + + CASE 36 WHEN - 47 THEN 1 WHEN 54 THEN NULL ELSE NULL END * + CAST( NULL AS SIGNED ) + - 60 + + + 41 + 29 AS col2, - 25 AS col1
----
NULL
-25

skipif mysql # not compatible
query II rowsort label-1731
SELECT ALL 85 * + + CASE 36 WHEN - 47 THEN 1 WHEN 54 THEN NULL ELSE NULL END * + CAST ( NULL AS INTEGER ) + - 60 + + + 41 + 29 AS col2, - 25 AS col1
----
NULL
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-1732
SELECT 46 DIV + 48 * + + ( - - 9 )
----
0

skipif mysql # not compatible
query I rowsort label-1732
SELECT 46 / + 48 * + + ( - - 9 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1733
SELECT ALL - 13 DIV + 8, - COALESCE ( + - 65, + + 84 ) * COUNT( * ) col1
----
-1
65

skipif mysql # not compatible
query II rowsort label-1733
SELECT ALL - 13 / + 8, - COALESCE ( + - 65, + + 84 ) * COUNT ( * ) col1
----
-1
65

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

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

query I rowsort
SELECT DISTINCT + 68 - + + 36 - 88 AS col1
----
-56

query I rowsort
SELECT DISTINCT - + 82 * 4 AS col1
----
-328

query I rowsort
SELECT + 89 + - 23 * - 32 AS col0
----
825

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1738
SELECT ALL COUNT( ALL + 19 ) DIV + - 6 * 75
----
0

skipif mysql # not compatible
query I rowsort label-1738
SELECT ALL COUNT ( ALL + 19 ) / + - 6 * 75
----
0

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

skipif mysql # not compatible
query I rowsort label-1739
SELECT - 98 / - COUNT ( * )
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1740
SELECT - COALESCE ( - - 77, CASE + 3 WHEN - - 33 THEN - 32 DIV + + COALESCE ( + 27, + 41 + - - 0 + - - COUNT( * ) + + 3 ) + - + CAST( NULL AS SIGNED ) + - 76 * - 73 WHEN + 56 THEN - 57 ELSE + - 53 END DIV + + 54 ) - + 87 AS col2
----
-164

skipif mysql # not compatible
query I rowsort label-1740
SELECT - COALESCE ( - - 77, CASE + 3 WHEN - - 33 THEN - 32 / + + COALESCE ( + 27, + 41 + - - 0 + - - COUNT ( * ) + + 3 ) + - + CAST ( NULL AS INTEGER ) + - 76 * - 73 WHEN + 56 THEN - 57 ELSE + - 53 END / + + 54 ) - + 87 AS col2
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-1741
SELECT - COUNT( * ) + - 22 - 39 * 76 AS col1
----
-2987

skipif mysql # not compatible
query I rowsort label-1741
SELECT - COUNT ( * ) + - 22 - 39 * 76 AS col1
----
-2987

query I rowsort
SELECT + 48 * + ( + 75 ) AS col2
----
3600

query I rowsort
SELECT 10 + + - 12 * - + 11 * - 39 * + 92 col2
----
-473606

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1744
SELECT + COUNT( * ) + - 60 + + ( 48 ) DIV MAX( ALL + 95 ) * 34 AS col2, - 92 + + COUNT( DISTINCT + 28 ) AS col2
----
-59
-91

skipif mysql # not compatible
query II rowsort label-1744
SELECT + COUNT ( * ) + - 60 + + ( 48 ) / MAX ( ALL + 95 ) * 34 AS col2, - 92 + + COUNT ( DISTINCT + 28 ) AS col2
----
-59
-91

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

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

query II rowsort
SELECT 30 * + 91, - 2 * + 17 * 94 * + 85 AS col1
----
2730
-271660

query I rowsort
SELECT DISTINCT + 41 * - 91 * + 13 * 29 AS col1
----
-1406587

query I rowsort
SELECT ALL 67 + + 27 * - 87 AS col2
----
-2282

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT - + ( + MAX( + - 8 ) )
----
8

skipif mysql # not compatible
query I rowsort label-1749
SELECT - + ( + MAX ( + - 8 ) )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1750
SELECT DISTINCT MIN( + + CAST( NULL AS SIGNED ) ) * + 20 * - 72 + - ( - 23 ) - - - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-1750
SELECT DISTINCT MIN ( + + CAST ( NULL AS INTEGER ) ) * + 20 * - 72 + - ( - 23 ) - - - 48
----
NULL

query I rowsort
SELECT 53 * + 92 + - - 0 AS col0
----
4876

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1752
SELECT - CAST( NULL AS DECIMAL ) / + CASE 69 WHEN + 80 * + - 59 + - - 71 THEN + 57 WHEN - - COALESCE ( + 79, 42 + 37 * - 85 + + 21, 82 ) / + 67 + COUNT( + 10 ) + - + 14 * ( + 84 ) + + 80 THEN COUNT( * ) ELSE 88 END * 68 + + - 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1752
SELECT - CAST ( NULL AS REAL ) / + CASE 69 WHEN + 80 * + - 59 + - - 71 THEN + 57 WHEN - - COALESCE ( + 79, 42 + 37 * - 85 + + 21, 82 ) / + 67 + COUNT ( + 10 ) + - + 14 * ( + 84 ) + + 80 THEN COUNT ( * ) ELSE 88 END * 68 + + - 61 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT DISTINCT - COUNT( ALL - 57 ) + - 20 + COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-1753
SELECT DISTINCT - COUNT ( ALL - 57 ) + - 20 + COUNT ( * )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT ALL 79 + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-1754
SELECT ALL 79 + COUNT ( * )
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1755
SELECT COUNT( * ) DIV + + 49 + - 60 * - + 13 + 83 + - - 55 + + 17 + COUNT( * ) * - 89 + 28 * - COUNT( * ) * 16
----
398

skipif mysql # not compatible
query I rowsort label-1755
SELECT COUNT ( * ) / + + 49 + - 60 * - + 13 + 83 + - - 55 + + 17 + COUNT ( * ) * - 89 + 28 * - COUNT ( * ) * 16
----
398

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1756
SELECT COALESCE ( 41, + - 55 ) + - + 21 + + COUNT( * ) DIV - CAST( - 31 AS SIGNED ) - COALESCE ( + MIN( 83 ), 35 ) * - + CAST( - 80 AS SIGNED ) AS col0
----
-6620

skipif mysql # not compatible
query I rowsort label-1756
SELECT COALESCE ( 41, + - 55 ) + - + 21 + + COUNT ( * ) / - CAST ( - 31 AS INTEGER ) - COALESCE ( + MIN ( 83 ), 35 ) * - + CAST ( - 80 AS INTEGER ) AS col0
----
-6620

query I rowsort
SELECT ALL 31 * - 63 AS col2
----
-1953

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1758
SELECT ALL - 91, CASE - + 89 WHEN + - 43 * 60 * + COUNT( * ) - + - 64 THEN NULL WHEN + 6 + 21 * + - COUNT( 93 ) * + + 37 * + 31 * - + ( - 21 ) THEN 3 * - MIN( DISTINCT + + 56 ) + + CAST( NULL AS SIGNED ) WHEN + 93 * - 33 - - CASE + - 31 WHEN - CAST( - 56 AS SIGNED ) THEN NULL ELSE 52 END THEN NULL END col2
----
-91
NULL

skipif mysql # not compatible
query II rowsort label-1758
SELECT ALL - 91, CASE - + 89 WHEN + - 43 * 60 * + COUNT ( * ) - + - 64 THEN NULL WHEN + 6 + 21 * + - COUNT ( 93 ) * + + 37 * + 31 * - + ( - 21 ) THEN 3 * - MIN ( DISTINCT + + 56 ) + + CAST ( NULL AS INTEGER ) WHEN + 93 * - 33 - - CASE + - 31 WHEN - CAST ( - 56 AS INTEGER ) THEN NULL ELSE 52 END THEN NULL END col2
----
-91
NULL

query I rowsort
SELECT 62 * + 20
----
1240

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT 81 + MAX( ALL - - 34 ) + + 79 AS col1
----
194

skipif mysql # not compatible
query I rowsort label-1760
SELECT 81 + MAX ( ALL - - 34 ) + + 79 AS col1
----
194

query I rowsort
SELECT 52 * + ( + 91 )
----
4732

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1763
SELECT DISTINCT + 52 - - 53 + 58 + + - COUNT( * ) - - + 95 DIV + ( - 78 ) - 23 + + 96 + 39 + + 40 * + ( COUNT( ALL - + 44 ) ) * 8 * - SUM( - + 34 )
----
11153

skipif mysql # not compatible
query I rowsort label-1763
SELECT DISTINCT + 52 - - 53 + 58 + + - COUNT ( * ) - - + 95 / + ( - 78 ) - 23 + + 96 + 39 + + 40 * + ( COUNT ( ALL - + 44 ) ) * 8 * - SUM ( - + 34 )
----
11153

query I rowsort
SELECT - 87 * 89 AS col1
----
-7743

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1765
SELECT ALL - CAST( 50 AS SIGNED ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-1765
SELECT ALL - CAST ( 50 AS INTEGER ) AS col2
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-1766
SELECT - NULLIF ( 56, COALESCE ( + 97, - 54 ) * 58 + + 63 / - 53 ), - COUNT( * ) * + ( - 40 ) * 97 AS col2
----
-56
3880

skipif mysql # not compatible
query II rowsort label-1766
SELECT - NULLIF ( 56, COALESCE ( + 97, - 54 ) * 58 + + 63 / - 53 ), - COUNT ( * ) * + ( - 40 ) * 97 AS col2
----
-56
3880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1767
SELECT DISTINCT + + 87 / COALESCE ( - 30, 57 * 99 ) / + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1767
SELECT DISTINCT + + 87 / COALESCE ( - 30, 57 * 99 ) / + - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT 73 * 58 + + 91 + - 16 * 68
----
3237

query I rowsort
SELECT 24 * - 51 AS col2
----
-1224

onlyif mysql # DIV for integer division: 
query I rowsort label-1770
SELECT DISTINCT - 76 DIV - 75
----
1

skipif mysql # not compatible
query I rowsort label-1770
SELECT DISTINCT - 76 / - 75
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1771
SELECT ALL + - COUNT( DISTINCT + - 71 ) + - 0 + + 25 AS col2, SUM( ALL + 72 )
----
24
72

skipif mysql # not compatible
query II rowsort label-1771
SELECT ALL + - COUNT ( DISTINCT + - 71 ) + - 0 + + 25 AS col2, SUM ( ALL + 72 )
----
24
72

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1773
SELECT DISTINCT - - CAST( COUNT( * ) AS SIGNED ) + 78 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-1773
SELECT DISTINCT - - CAST ( COUNT ( * ) AS INTEGER ) + 78 AS col0
----
79

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1774
SELECT ALL COALESCE ( - - 1, + 77, + AVG ( + 72 ) DIV - 17 * CAST( NULL AS SIGNED ) * + 89 * - - 55 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-1774
SELECT ALL COALESCE ( - - 1, + 77, + AVG ( + 72 ) / - 17 * CAST ( NULL AS INTEGER ) * + 89 * - - 55 ) col1
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT ALL - + 33 + + COUNT( * ) + - 6 * - - 56 AS col0
----
-368

skipif mysql # not compatible
query I rowsort label-1776
SELECT ALL - + 33 + + COUNT ( * ) + - 6 * - - 56 AS col0
----
-368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1777
SELECT ALL + 30 + + + CAST( NULL AS SIGNED ) * 74 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1777
SELECT ALL + 30 + + + CAST ( NULL AS INTEGER ) * 74 col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1778
SELECT - 98 - - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1778
SELECT - 98 - - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1779
SELECT DISTINCT CASE - ( + 47 ) WHEN + 92 / + 56 + + COUNT( * ) + - COUNT( * ) * - 75 * - - CAST( + COUNT( * ) AS SIGNED ) + + 5 THEN NULL ELSE - - COUNT( * ) * - 94 + - 80 + - - 0 + - - CAST( + 55 AS SIGNED ) + + + 60 END
----
-59

skipif mysql # not compatible
query I rowsort label-1779
SELECT DISTINCT CASE - ( + 47 ) WHEN + 92 / + 56 + + COUNT ( * ) + - COUNT ( * ) * - 75 * - - CAST ( + COUNT ( * ) AS INTEGER ) + + 5 THEN NULL ELSE - - COUNT ( * ) * - 94 + - 80 + - - 0 + - - CAST ( + 55 AS INTEGER ) + + + 60 END
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT ALL - 85 + - MIN( ALL - 50 ) col0
----
-35

skipif mysql # not compatible
query I rowsort label-1780
SELECT ALL - 85 + - MIN ( ALL - 50 ) col0
----
-35

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

skipif mysql # not compatible
query I rowsort label-1781
SELECT - 85 / + 1
----
-85

query I rowsort
SELECT DISTINCT 97 * 51
----
4947

onlyif mysql # DIV for integer division: 
query I rowsort label-1783
SELECT DISTINCT + 40 DIV 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1783
SELECT DISTINCT + 40 / 71 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT ALL 32 * + + MIN( - 28 ) AS col1
----
-896

skipif mysql # not compatible
query I rowsort label-1784
SELECT ALL 32 * + + MIN ( - 28 ) AS col1
----
-896

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT CASE + MAX( 4 ) WHEN + 53 * - 52 - + + ( + 34 ) THEN ( 35 ) WHEN + 50 THEN NULL ELSE COUNT( * ) + + - MIN( ALL + 52 ) END AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-1785
SELECT CASE + MAX ( 4 ) WHEN + 53 * - 52 - + + ( + 34 ) THEN ( 35 ) WHEN + 50 THEN NULL ELSE COUNT ( * ) + + - MIN ( ALL + 52 ) END AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT ALL + COUNT( * ) * + 24 * - 68
----
-1632

skipif mysql # not compatible
query I rowsort label-1786
SELECT ALL + COUNT ( * ) * + 24 * - 68
----
-1632

query I rowsort
SELECT + 31 * - - 89
----
2759

onlyif mysql # aggregate syntax: 
query II rowsort label-1788
SELECT DISTINCT 37 * + 12 * - ( + - 40 ) AS col1, COUNT( * )
----
17760
1

skipif mysql # not compatible
query II rowsort label-1788
SELECT DISTINCT 37 * + 12 * - ( + - 40 ) AS col1, COUNT ( * )
----
17760
1

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

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

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

query I rowsort
SELECT ALL - 51 * - - 18 col0
----
-918

onlyif mysql # DIV for integer division: 
query I rowsort label-1792
SELECT ALL + 59 DIV + COALESCE ( - ( + 74 ), - 60, - 61 ) + - + 99 AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-1792
SELECT ALL + 59 / + COALESCE ( - ( + 74 ), - 60, - 61 ) + - + 99 AS col2
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-1793
SELECT ALL + ( 79 ) AS col0, COALESCE ( + COUNT( ALL - 92 ), 63 ) col2
----
79
1

skipif mysql # not compatible
query II rowsort label-1793
SELECT ALL + ( 79 ) AS col0, COALESCE ( + COUNT ( ALL - 92 ), 63 ) col2
----
79
1

query I rowsort
SELECT + COALESCE ( + - NULLIF ( + + 4, + CASE - 60 WHEN + 45 * - ( - - 10 ) THEN - 20 END ), + 62, - 7 * + 4 + - + 97 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1795
SELECT + COALESCE ( SUM( DISTINCT - 49 ), + COUNT( * ), + + ( + 86 ) ) * + 93
----
-4557

skipif mysql # not compatible
query I rowsort label-1795
SELECT + COALESCE ( SUM ( DISTINCT - 49 ), + COUNT ( * ), + + ( + 86 ) ) * + 93
----
-4557

query I rowsort
SELECT + 21 * - 97
----
-2037

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1797
SELECT ALL + COUNT( * ) * + - 81 + 32 - - CAST( + 56 AS SIGNED ) col2
----
7

skipif mysql # not compatible
query I rowsort label-1797
SELECT ALL + COUNT ( * ) * + - 81 + 32 - - CAST ( + 56 AS INTEGER ) col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1798
SELECT + + NULLIF ( + MIN( - 56 ), + 70 )
----
-56

skipif mysql # not compatible
query I rowsort label-1798
SELECT + + NULLIF ( + MIN ( - 56 ), + 70 )
----
-56

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

query II rowsort
SELECT + 87 + - + 10, + 18 + 19 + - 6 * 69 AS col2
----
77
-377

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT ALL - MAX( - + 39 ) + - 10 + NULLIF ( 40, 87 * + 71 ) + 44 + + 16 * - - 47 AS col2
----
865

skipif mysql # not compatible
query I rowsort label-1801
SELECT ALL - MAX ( - + 39 ) + - 10 + NULLIF ( 40, 87 * + 71 ) + 44 + + 16 * - - 47 AS col2
----
865

query I rowsort
SELECT DISTINCT - ( - 70 ) * - 16
----
-1120

query I rowsort
SELECT - - 28 + - - 95 + + + ( + 64 ) col1
----
187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1804
SELECT ALL 6 + 57 + CASE SUM( - 30 ) WHEN - - 28 * - 83 / - - CAST( - + 46 AS SIGNED ) - - + 35 + + + 11 THEN NULL WHEN + 9 THEN NULL WHEN - 62 * - 86 - 55 THEN + 71 + + MAX( ALL - + 88 ) - + + 64 ELSE - 41 END + 94 * COUNT( * ) col0, 18
----
116
18

skipif mysql # not compatible
query II rowsort label-1804
SELECT ALL 6 + 57 + CASE SUM ( - 30 ) WHEN - - 28 * - 83 / - - CAST ( - + 46 AS INTEGER ) - - + 35 + + + 11 THEN NULL WHEN + 9 THEN NULL WHEN - 62 * - 86 - 55 THEN + 71 + + MAX ( ALL - + 88 ) - + + 64 ELSE - 41 END + 94 * COUNT ( * ) col0, 18
----
116
18

onlyif mysql # DIV for integer division: 
query I rowsort label-1805
SELECT + + 0 * + - ( - - 80 ) DIV 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1805
SELECT + + 0 * + - ( - - 80 ) / 79 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1806
SELECT + MIN( - NULLIF ( + COALESCE ( 19, + 44 ), - 90 ) ) + - - CAST( + 11 AS SIGNED )
----
-8

skipif mysql # not compatible
query I rowsort label-1806
SELECT + MIN ( - NULLIF ( + COALESCE ( 19, + 44 ), - 90 ) ) + - - CAST ( + 11 AS INTEGER )
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-1807
SELECT ALL ( 85 ) DIV + + 49 + - 84
----
-83

skipif mysql # not compatible
query I rowsort label-1807
SELECT ALL ( 85 ) / + + 49 + - 84
----
-83

query I rowsort
SELECT - ( - NULLIF ( - 88, 92 ) ) AS col2
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-1809
SELECT - COALESCE ( 93, + 76 ) DIV + 52
----
-1

skipif mysql # not compatible
query I rowsort label-1809
SELECT - COALESCE ( 93, + 76 ) / + 52
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1810
SELECT - CAST( NULL AS SIGNED ), + 63 AS col2
----
NULL
63

skipif mysql # not compatible
query II rowsort label-1810
SELECT - CAST ( NULL AS INTEGER ), + 63 AS col2
----
NULL
63

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT - SUM( ALL 25 ) * 83 col2
----
-2075

skipif mysql # not compatible
query I rowsort label-1812
SELECT - SUM ( ALL 25 ) * 83 col2
----
-2075

query I rowsort
SELECT - 85 - + + 78 AS col2
----
-163

query I rowsort
SELECT - 44 * + 81
----
-3564

onlyif mysql # DIV for integer division: 
query I rowsort label-1815
SELECT ALL + 27 * 7 DIV - 70
----
-2

skipif mysql # not compatible
query I rowsort label-1815
SELECT ALL + 27 * 7 / - 70
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1816
SELECT ALL CASE CAST( - COUNT( * ) AS SIGNED ) WHEN + COUNT( * ) * 5 * + 3 + - 60 THEN + 37 END * - ( - COALESCE ( + + 66, 20 / - 86 ) ) AS col1, + 5 * - 38
----
NULL
-190

skipif mysql # not compatible
query II rowsort label-1816
SELECT ALL CASE CAST ( - COUNT ( * ) AS INTEGER ) WHEN + COUNT ( * ) * 5 * + 3 + - 60 THEN + 37 END * - ( - COALESCE ( + + 66, 20 / - 86 ) ) AS col1, + 5 * - 38
----
NULL
-190

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

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

query I rowsort
SELECT + 8 * 10
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1819
SELECT - COALESCE ( 42, ( + + COUNT( * ) ) ) * - 5
----
210

skipif mysql # not compatible
query I rowsort label-1819
SELECT - COALESCE ( 42, ( + + COUNT ( * ) ) ) * - 5
----
210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1820
SELECT 27 * + 35 + CASE AVG ( DISTINCT + 9 ) WHEN - CAST( NULL AS SIGNED ) * + 48 THEN NULL ELSE - 32 END * - - 20
----
305

skipif mysql # not compatible
query I rowsort label-1820
SELECT 27 * + 35 + CASE AVG ( DISTINCT + 9 ) WHEN - CAST ( NULL AS INTEGER ) * + 48 THEN NULL ELSE - 32 END * - - 20
----
305

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT - SUM( ALL - 21 ) * 13 AS col2
----
273

skipif mysql # not compatible
query I rowsort label-1821
SELECT - SUM ( ALL - 21 ) * 13 AS col2
----
273

onlyif mysql # aggregate syntax: 
query II rowsort label-1822
SELECT - 72 + ( - 55 ) + - - MAX( ALL + 79 ), 92 - COUNT( * ) AS col1
----
-48
91

skipif mysql # not compatible
query II rowsort label-1822
SELECT - 72 + ( - 55 ) + - - MAX ( ALL + 79 ), 92 - COUNT ( * ) AS col1
----
-48
91

query I rowsort
SELECT - 78 + 55 AS col1
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-1824
SELECT ALL + + 46 DIV - + ( - 49 )
----
0

skipif mysql # not compatible
query I rowsort label-1824
SELECT ALL + + 46 / - + ( - 49 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1825
SELECT CAST( NULL AS SIGNED ) * - - 79 + 49 + 22 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1825
SELECT CAST ( NULL AS INTEGER ) * - - 79 + 49 + 22 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT DISTINCT + CASE - 29 WHEN - + 99 THEN + 75 WHEN - COUNT( * ) THEN + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1826
SELECT DISTINCT + CASE - 29 WHEN - + 99 THEN + 75 WHEN - COUNT ( * ) THEN + COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT - + 48 * - - NULLIF ( - + 97, + 70 )
----
4656

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1828
SELECT - - 55 * 4 + + 20 + - COUNT( * ) DIV - - 72, + 61 + - + ( - 79 ) col2
----
240
140

skipif mysql # not compatible
query II rowsort label-1828
SELECT - - 55 * 4 + + 20 + - COUNT ( * ) / - - 72, + 61 + - + ( - 79 ) col2
----
240
140

query I rowsort
SELECT ALL ( + + 37 ) * + - 35 + + + NULLIF ( 66, 6 ) AS col0
----
-1229

onlyif mysql # aggregate syntax: 
query I rowsort label-1830
SELECT DISTINCT 20 * - 44 + - COUNT( ALL + - 98 )
----
-881

skipif mysql # not compatible
query I rowsort label-1830
SELECT DISTINCT 20 * - 44 + - COUNT ( ALL + - 98 )
----
-881

onlyif mysql # DIV for integer division: 
query I rowsort label-1831
SELECT - + 98 DIV + 35 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1831
SELECT - + 98 / + 35 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT ALL + ( + ( - - 97 ) ) * - - 85 + + 13 + + + COUNT( ALL 79 ) * 94 + 56 * + 74
----
12496

skipif mysql # not compatible
query I rowsort label-1832
SELECT ALL + ( + ( - - 97 ) ) * - - 85 + + 13 + + + COUNT ( ALL 79 ) * 94 + 56 * + 74
----
12496

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT ALL + 33 * 60 + + - 94 + 13 + - 6 + - 89 * - 17 * + 91 * - COUNT( * )
----
-135790

skipif mysql # not compatible
query I rowsort label-1834
SELECT ALL + 33 * 60 + + - 94 + 13 + - 6 + - 89 * - 17 * + 91 * - COUNT ( * )
----
-135790

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1835
SELECT DISTINCT - 40 * CASE CAST( NULL AS SIGNED ) WHEN + COUNT( * ) THEN ( + - 68 ) END + CASE + 63 WHEN - 2 + CAST( COUNT( * ) AS SIGNED ) THEN - 48 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1835
SELECT DISTINCT - 40 * CASE CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) THEN ( + - 68 ) END + CASE + 63 WHEN - 2 + CAST ( COUNT ( * ) AS INTEGER ) THEN - 48 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT ( + NULLIF ( + + COUNT( * ), - 67 + + 91 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1836
SELECT ( + NULLIF ( + + COUNT ( * ), - 67 + + 91 ) ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1837
SELECT DISTINCT 18 * 54 DIV 45 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-1837
SELECT DISTINCT 18 * 54 / 45 AS col2
----
21

query I rowsort
SELECT DISTINCT 22 - - 65
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1839
SELECT 61 AS col2, 88 + CAST( NULL AS SIGNED ) * + MAX( - ( + - 95 ) ) AS col0
----
61
NULL

skipif mysql # not compatible
query II rowsort label-1839
SELECT 61 AS col2, 88 + CAST ( NULL AS INTEGER ) * + MAX ( - ( + - 95 ) ) AS col0
----
61
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1840
SELECT DISTINCT ( - - 16 ) * + + 40 * 97 * CAST( - 98 AS SIGNED ) AS col1
----
-6083840

skipif mysql # not compatible
query I rowsort label-1840
SELECT DISTINCT ( - - 16 ) * + + 40 * 97 * CAST ( - 98 AS INTEGER ) AS col1
----
-6083840

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1841
SELECT ALL 98, + 90 + + COUNT( + 72 ) + + 8 DIV 23 DIV - - COUNT( DISTINCT + - ( 28 ) ) * - 25 + - COUNT( * ) AS col0
----
98
90

skipif mysql # not compatible
query II rowsort label-1841
SELECT ALL 98, + 90 + + COUNT ( + 72 ) + + 8 / 23 / - - COUNT ( DISTINCT + - ( 28 ) ) * - 25 + - COUNT ( * ) AS col0
----
98
90

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

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

query II rowsort
SELECT ALL 68 * NULLIF ( 84, - + 69 ), - 36 AS col1
----
5712
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-1844
SELECT 30 DIV 2 * - + 7
----
-105

skipif mysql # not compatible
query I rowsort label-1844
SELECT 30 / 2 * - + 7
----
-105

query I rowsort
SELECT 66 * + 21 AS col1
----
1386

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT 72 + - ( - COUNT( * ) ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-1846
SELECT 72 + - ( - COUNT ( * ) ) AS col2
----
73

query II rowsort
SELECT 77 AS col2, 61
----
77
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT 81 + + COUNT( * ) + 38 AS col2
----
120

skipif mysql # not compatible
query I rowsort label-1848
SELECT 81 + + COUNT ( * ) + 38 AS col2
----
120

onlyif mysql # aggregate syntax: 
query II rowsort label-1849
SELECT 15, COUNT( * ) + - 21 col2
----
15
-20

skipif mysql # not compatible
query II rowsort label-1849
SELECT 15, COUNT ( * ) + - 21 col2
----
15
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-1850
SELECT 55 DIV - 2
----
-27

skipif mysql # not compatible
query I rowsort label-1850
SELECT 55 / - 2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT ( 74 ) * 82 + + + COUNT( * ) AS col1
----
6069

skipif mysql # not compatible
query I rowsort label-1851
SELECT ( 74 ) * 82 + + + COUNT ( * ) AS col1
----
6069

query II rowsort
SELECT + 28 AS col0, - 39 AS col0
----
28
-39

query I rowsort
SELECT ALL - 33 + + - 71 AS col2
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT DISTINCT + 78 + + + 11 + + + COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-1854
SELECT DISTINCT + 78 + + + 11 + + + COUNT ( * )
----
90

query I rowsort
SELECT 90 * ( - + 79 ) * - + 79 AS col0
----
561690

onlyif mysql # aggregate syntax: 
query II rowsort label-1856
SELECT 59, 84 + + COUNT( * ) AS col1
----
59
85

skipif mysql # not compatible
query II rowsort label-1856
SELECT 59, 84 + + COUNT ( * ) AS col1
----
59
85

query I rowsort
SELECT ALL - 82 + + - 9
----
-91

query I rowsort
SELECT ALL + 91 + - 86
----
5

query I rowsort
SELECT DISTINCT 21 * - + 62 AS col0
----
-1302

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1860
SELECT - 65 - - COUNT( * ) + + 33 DIV + 52 * + COALESCE ( 78, - 43, + 53 + - 44 - + CAST( NULL AS SIGNED ) + - COUNT( * ) - + CASE + 81 WHEN - - ( + - 77 ) DIV - 53 + 18 THEN 57 ELSE - 52 END - - 4 * - 49 * + ( + - 7 ) DIV - + 90 DIV + 0 + - - 18 + - ( - - 10 ) ) + 52 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-1860
SELECT - 65 - - COUNT ( * ) + + 33 / + 52 * + COALESCE ( 78, - 43, + 53 + - 44 - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) - + CASE + 81 WHEN - - ( + - 77 ) / - 53 + 18 THEN 57 ELSE - 52 END - - 4 * - 49 * + ( + - 7 ) / - + 90 / + 0 + - - 18 + - ( - - 10 ) ) + 52 AS col1
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1861
SELECT DISTINCT - + 93 + + 99 + - - 78 * - + CASE + 95 WHEN + COUNT( * ) * - + COUNT( * ) * - 9 THEN 15 ELSE + 28 DIV + ( - NULLIF ( + COUNT( * ), 4 ) ) END AS col0
----
2190

skipif mysql # not compatible
query I rowsort label-1861
SELECT DISTINCT - + 93 + + 99 + - - 78 * - + CASE + 95 WHEN + COUNT ( * ) * - + COUNT ( * ) * - 9 THEN 15 ELSE + 28 / + ( - NULLIF ( + COUNT ( * ), 4 ) ) END AS col0
----
2190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1862
SELECT - COALESCE ( 76, - 93, + ( + + CAST( NULL AS SIGNED ) ) )
----
-76

skipif mysql # not compatible
query I rowsort label-1862
SELECT - COALESCE ( 76, - 93, + ( + + CAST ( NULL AS INTEGER ) ) )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT + COALESCE ( - 4, + COUNT( ALL 68 ) * ( 10 ), - - 60 ) * - 86
----
344

skipif mysql # not compatible
query I rowsort label-1863
SELECT + COALESCE ( - 4, + COUNT ( ALL 68 ) * ( 10 ), - - 60 ) * - 86
----
344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1864
SELECT - + 28 * + CAST( NULL AS SIGNED ) * + CASE COALESCE ( + - 45, + 18 + + 99 ) WHEN - 46 + + - 32 THEN NULL ELSE 99 END + - MAX( - COALESCE ( 44, - CAST( NULL AS SIGNED ) ) ) * - 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1864
SELECT - + 28 * + CAST ( NULL AS INTEGER ) * + CASE COALESCE ( + - 45, + 18 + + 99 ) WHEN - 46 + + - 32 THEN NULL ELSE 99 END + - MAX ( - COALESCE ( 44, - CAST ( NULL AS INTEGER ) ) ) * - 54 AS col0
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-1866
SELECT 68 / 82 * COUNT ( * ) / + ( + COUNT ( * ) )
----
0

query I rowsort
SELECT ALL - NULLIF ( 55, 6 ) * - 30 AS col2
----
1650

query I rowsort
SELECT - 94 * 39
----
-3666

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

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

query I rowsort
SELECT 47 * - 42
----
-1974

query I rowsort
SELECT 46 * - 24 AS col0
----
-1104

query I rowsort
SELECT DISTINCT 14 * - 73 * + 97
----
-99134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1873
SELECT ALL + CAST( + + 19 AS SIGNED ) + - + NULLIF ( 94, - + 75 ) - + - 49
----
-26

skipif mysql # not compatible
query I rowsort label-1873
SELECT ALL + CAST ( + + 19 AS INTEGER ) + - + NULLIF ( 94, - + 75 ) - + - 49
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT DISTINCT 78 * + + COALESCE ( 36, + SUM( ALL + 60 ) )
----
2808

skipif mysql # not compatible
query I rowsort label-1874
SELECT DISTINCT 78 * + + COALESCE ( 36, + SUM ( ALL + 60 ) )
----
2808

query II rowsort
SELECT DISTINCT 1 + - 82 AS col0, 68
----
-81
68

query II rowsort
SELECT ALL 13 * + 69 col1, 56 AS col1
----
897
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT ALL COUNT( * ) + - + 41 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-1877
SELECT ALL COUNT ( * ) + - + 41 AS col0
----
-40

query I rowsort
SELECT - 13 + 57 AS col0
----
44

onlyif mysql # DIV for integer division: 
query II rowsort label-1879
SELECT + 95 * + 31 + - - 53 DIV 82 + + 44, - 6 * - + 35 + 12 * + 84 AS col2
----
2989
1218

skipif mysql # not compatible
query II rowsort label-1879
SELECT + 95 * + 31 + - - 53 / 82 + + 44, - 6 * - + 35 + 12 * + 84 AS col2
----
2989
1218

query I rowsort
SELECT - 96 - 66 AS col2
----
-162

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

skipif mysql # not compatible
query I rowsort label-1881
SELECT ALL + + ( - 27 ) * 13 + - + ( + + 13 ) / + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

query I rowsort
SELECT + 62 + - + 98 * 20
----
-1898

query I rowsort
SELECT ( - 10 ) * 68 * + 2
----
-1360

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT DISTINCT SUM( DISTINCT 14 ) * + COUNT( * ) * - 41 * + - 16 * + COUNT( * ) + + 58
----
9242

skipif mysql # not compatible
query I rowsort label-1885
SELECT DISTINCT SUM ( DISTINCT 14 ) * + COUNT ( * ) * - 41 * + - 16 * + COUNT ( * ) + + 58
----
9242

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT DISTINCT + + ( - - 95 ) * - 45 + - - 87 - 0 * 70 + - COUNT( DISTINCT - + 60 ) AS col0
----
-4189

skipif mysql # not compatible
query I rowsort label-1886
SELECT DISTINCT + + ( - - 95 ) * - 45 + - - 87 - 0 * 70 + - COUNT ( DISTINCT - + 60 ) AS col0
----
-4189

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

skipif mysql # not compatible
query I rowsort label-1887
SELECT MIN ( + 18 )
----
18

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

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

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

query I rowsort
SELECT - 39 * - 23 AS col2
----
897

query I rowsort
SELECT - 3 * + + 31 - + 67 AS col1
----
-160

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1893
SELECT - 3 DIV - 75 * + + 12 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1893
SELECT - 3 / - 75 * + + 12 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1894
SELECT ALL NULLIF ( 2, 31 * - 41 ) col0, COUNT( * ) AS col0
----
2
1

skipif mysql # not compatible
query II rowsort label-1894
SELECT ALL NULLIF ( 2, 31 * - 41 ) col0, COUNT ( * ) AS col0
----
2
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT ALL + MAX( - - 52 ) + COUNT( * ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-1895
SELECT ALL + MAX ( - - 52 ) + COUNT ( * ) AS col0
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1896
SELECT - 61 AS col1, 61 * - + 64 * CAST( NULL AS SIGNED ) col1
----
-61
NULL

skipif mysql # not compatible
query II rowsort label-1896
SELECT - 61 AS col1, 61 * - + 64 * CAST ( NULL AS INTEGER ) col1
----
-61
NULL

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

skipif mysql # not compatible
query I rowsort label-1897
SELECT - 49 + - COUNT ( * ) AS col0
----
-50

query II rowsort
SELECT - 72 AS col2, 46
----
-72
46

onlyif mysql # aggregate syntax: 
query II rowsort label-1899
SELECT ALL + 33 + MAX( DISTINCT 59 ) AS col2, + ( - - 5 ) AS col2
----
92
5

skipif mysql # not compatible
query II rowsort label-1899
SELECT ALL + 33 + MAX ( DISTINCT 59 ) AS col2, + ( - - 5 ) AS col2
----
92
5

query I rowsort
SELECT - 13 * 97
----
-1261

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT + 19 + - 4 * + NULLIF ( + + 77, + 89 + - + MAX( + 24 ) + + COUNT( * ) ) * + + 27 AS col1
----
-8297

skipif mysql # not compatible
query I rowsort label-1901
SELECT + 19 + - 4 * + NULLIF ( + + 77, + 89 + - + MAX ( + 24 ) + + COUNT ( * ) ) * + + 27 AS col1
----
-8297

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT DISTINCT 24 + - COUNT( * ) * - - NULLIF ( - - 99, + MIN( - + 97 ) * - COUNT( * ) ) * + + 44 + - - 65 * - ( - 93 ) AS col1
----
1713

skipif mysql # not compatible
query I rowsort label-1902
SELECT DISTINCT 24 + - COUNT ( * ) * - - NULLIF ( - - 99, + MIN ( - + 97 ) * - COUNT ( * ) ) * + + 44 + - - 65 * - ( - 93 ) AS col1
----
1713

onlyif mysql # aggregate syntax: 
query I rowsort label-1903
SELECT ALL COUNT( DISTINCT - 4 ) * - + ( - + 60 )
----
60

skipif mysql # not compatible
query I rowsort label-1903
SELECT ALL COUNT ( DISTINCT - 4 ) * - + ( - + 60 )
----
60

query I rowsort
SELECT DISTINCT + + 97 + + 62 + 88
----
247

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

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

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

skipif mysql # not compatible
query I rowsort label-1906
SELECT - - MIN ( DISTINCT - - 42 )
----
42

query I rowsort
SELECT ALL - - 84 * + 40
----
3360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1908
SELECT - 99 - - COUNT( 62 ) + + COUNT( * ) + 33 + + ( + + 12 ) DIV - - 25
----
-64

skipif mysql # not compatible
query I rowsort label-1908
SELECT - 99 - - COUNT ( 62 ) + + COUNT ( * ) + 33 + + ( + + 12 ) / - - 25
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT + 63 * + COUNT( * ) + 61 - ( - + 12 )
----
136

skipif mysql # not compatible
query I rowsort label-1909
SELECT + 63 * + COUNT ( * ) + 61 - ( - + 12 )
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1910
SELECT - 75 DIV MAX( 59 ) + + 67 - 36
----
30

skipif mysql # not compatible
query I rowsort label-1910
SELECT - 75 / MAX ( 59 ) + + 67 - 36
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-1911
SELECT + - ( + 1 ) DIV 87
----
0

skipif mysql # not compatible
query I rowsort label-1911
SELECT + - ( + 1 ) / 87
----
0

query I rowsort
SELECT + + 92 - + 41
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT ALL - - 96 * - - CASE MIN( ALL - 85 ) WHEN 45 THEN + COUNT( * ) * + 22 ELSE - - 10 END
----
960

skipif mysql # not compatible
query I rowsort label-1913
SELECT ALL - - 96 * - - CASE MIN ( ALL - 85 ) WHEN 45 THEN + COUNT ( * ) * + 22 ELSE - - 10 END
----
960

query I rowsort
SELECT ( - 75 ) * 24 * 34 - + - 25
----
-61175

query I rowsort
SELECT DISTINCT - 54 * + 27 AS col1
----
-1458

onlyif mysql # aggregate syntax: 
query I rowsort label-1916
SELECT DISTINCT + MIN( ALL + - 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-1916
SELECT DISTINCT + MIN ( ALL + - 82 )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT ALL COUNT( * ) * - 70 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-1917
SELECT ALL COUNT ( * ) * - 70 AS col1
----
-70

query I rowsort
SELECT NULLIF ( - 56, + - 38 + + 28 )
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1919
SELECT - 36 * - 76 + - COALESCE ( + 48, + - 62 DIV - SUM( ALL - + 33 ) * + 66 * - ( - 47 ) + 63 ) AS col1
----
2688

skipif mysql # not compatible
query I rowsort label-1919
SELECT - 36 * - 76 + - COALESCE ( + 48, + - 62 / - SUM ( ALL - + 33 ) * + 66 * - ( - 47 ) + 63 ) AS col1
----
2688

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

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

query I rowsort
SELECT ALL + 36 * - 5 + - 38 AS col2
----
-218

query I rowsort
SELECT DISTINCT ( + 30 ) * + 97 + - 18 + 10 + 44 * + - 41 AS col1
----
1098

query I rowsort
SELECT ALL 79 * + 35 + 3 AS col0
----
2768

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1925
SELECT DISTINCT NULLIF ( + + 77, - 76 + + 30 + CAST( NULL AS DECIMAL ) * + COUNT( * ) * CASE NULLIF ( SUM( - + 20 ), + + 80 ) WHEN - ( CASE 31 WHEN 29 / - - CASE + + 11 WHEN + 37 - - + CAST( - - 47 AS SIGNED ) + - 27 + - COUNT( * ) + - + ( 19 ) THEN - - 54 WHEN - 48 + + ( - 84 ) * + + 0 * 68 THEN - COUNT( * ) * - 4 / - 68 * + + COUNT( - 93 ) / - + SUM( DISTINCT - - 62 ) + - - CAST( + + 44 AS SIGNED ) WHEN + 26 THEN + 38 END + - 97 - - 45 + 53 THEN 41 + 83 ELSE 31 * + COUNT( * ) * - - NULLIF ( + 26, 34 * 40 ) * + 66 END ) * 63 + 44 * + 4 THEN 37 ELSE NULL END - MIN( 66 ) * + 96 )
----
77

skipif mysql # not compatible
query I rowsort label-1925
SELECT DISTINCT NULLIF ( + + 77, - 76 + + 30 + CAST ( NULL AS REAL ) * + COUNT ( * ) * CASE NULLIF ( SUM ( - + 20 ), + + 80 ) WHEN - ( CASE 31 WHEN 29 / - - CASE + + 11 WHEN + 37 - - + CAST ( - - 47 AS INTEGER ) + - 27 + - COUNT ( * ) + - + ( 19 ) THEN - - 54 WHEN - 48 + + ( - 84 ) * + + 0 * 68 THEN - COUNT ( * ) * - 4 / - 68 * + + COUNT ( - 93 ) / - + SUM ( DISTINCT - - 62 ) + - - CAST ( + + 44 AS INTEGER ) WHEN + 26 THEN + 38 END + - 97 - - 45 + 53 THEN 41 + 83 ELSE 31 * + COUNT ( * ) * - - NULLIF ( + 26, 34 * 40 ) * + 66 END ) * 63 + 44 * + 4 THEN 37 ELSE NULL END - MIN ( 66 ) * + 96 )
----
77

query I rowsort
SELECT 46 * - + 88 + + 95 AS col0
----
-3953

onlyif mysql # aggregate syntax: 
query I rowsort label-1927
SELECT ALL 47 * - + CASE - COUNT( * ) WHEN 57 THEN CASE 25 WHEN 26 + - - 71 + 34 THEN + - 37 / CASE + AVG ( + - 88 ) WHEN 46 THEN + COUNT( * ) * + 12 + - AVG ( 34 ) END ELSE NULL END + + COUNT( * ) + - 86 - + + NULLIF ( - ( + COUNT( * ) ), 37 + - 8 / - + 98 + - AVG ( DISTINCT - ( ( 84 ) ) ) ) * 19 * - 25 * - - 75 - + + 51 * 24 WHEN + + 21 * + + 90 + 16 THEN + 27 WHEN - 88 + + 20 THEN + 0 * + ( - ( + ( + + 10 ) ) ) * - 85 END * + 49 + - + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-1927
SELECT ALL 47 * - + CASE - COUNT ( * ) WHEN 57 THEN CASE 25 WHEN 26 + - - 71 + 34 THEN + - 37 / CASE + AVG ( + - 88 ) WHEN 46 THEN + COUNT ( * ) * + 12 + - AVG ( 34 ) END ELSE NULL END + + COUNT ( * ) + - 86 - + + NULLIF ( - ( + COUNT ( * ) ), 37 + - 8 / - + 98 + - AVG ( DISTINCT - ( ( 84 ) ) ) ) * 19 * - 25 * - - 75 - + + 51 * 24 WHEN + + 21 * + + 90 + 16 THEN + 27 WHEN - 88 + + 20 THEN + 0 * + ( - ( + ( + + 10 ) ) ) * - 85 END * + 49 + - + 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT + 37 + - + COALESCE ( SUM( ALL 31 ), + 98 + - 32, ( + + 60 ) ) * - + 65
----
2052

skipif mysql # not compatible
query I rowsort label-1928
SELECT + 37 + - + COALESCE ( SUM ( ALL 31 ), + 98 + - 32, ( + + 60 ) ) * - + 65
----
2052

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT - NULLIF ( 88, COUNT( * ) + + 96 + + 19 + + 89 * - - 14 ) + + 8
----
-80

skipif mysql # not compatible
query I rowsort label-1929
SELECT - NULLIF ( 88, COUNT ( * ) + + 96 + + 19 + + 89 * - - 14 ) + + 8
----
-80

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1931
SELECT - CAST( MIN( + CAST( NULL AS SIGNED ) ) AS SIGNED ) * + 7 * - 20 + + 88 + - 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1931
SELECT - CAST ( MIN ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) * + 7 * - 20 + + 88 + - 60 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1932
SELECT - 31 + CAST( + + 77 AS SIGNED ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-1932
SELECT - 31 + CAST ( + + 77 AS INTEGER ) AS col1
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-1933
SELECT - - 65 DIV + 61 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1933
SELECT - - 65 / + 61 AS col1
----
1

query I rowsort
SELECT + ( + 86 ) + 49 + 21 * - 84 - - + 98
----
-1531

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT CASE + + 81 WHEN - 44 THEN NULL WHEN - 99 - + 20 + - 48 - - 88 * - - COUNT( 15 ) THEN - COUNT( * ) END + + ( 81 ) + - 67 - + AVG ( - 13 ) * 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1935
SELECT CASE + + 81 WHEN - 44 THEN NULL WHEN - 99 - + 20 + - 48 - - 88 * - - COUNT ( 15 ) THEN - COUNT ( * ) END + + ( 81 ) + - 67 - + AVG ( - 13 ) * 20 AS col0
----
NULL

query II rowsort
SELECT ALL ( + - 6 ) AS col1, + 86 * + 17
----
-6
1462

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1937
SELECT 22 DIV 1 + + - 30 + COUNT( * ) DIV - NULLIF ( + + 49, + ( + - 48 ) * + + 38 * + + 75 ) * + 31 + - 4 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-1937
SELECT 22 / 1 + + - 30 + COUNT ( * ) / - NULLIF ( + + 49, + ( + - 48 ) * + + 38 * + + 75 ) * + 31 + - 4 AS col2
----
-12

query I rowsort
SELECT 23 * + 9 * 81 AS col2
----
16767

query I rowsort
SELECT 54 + ( + 39 )
----
93

query I rowsort
SELECT ALL ( + 27 ) + + + ( + 68 )
----
95

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1942
SELECT ( CAST( NULL AS SIGNED ) ) DIV + CAST( + COUNT( * ) AS SIGNED ) + + ( - 48 ) col0, + 6 DIV - + 34 * + - MAX( ALL - 89 ) AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1942
SELECT ( CAST ( NULL AS INTEGER ) ) / + CAST ( + COUNT ( * ) AS INTEGER ) + + ( - 48 ) col0, + 6 / - + 34 * + - MAX ( ALL - 89 ) AS col1
----
NULL
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1943
SELECT ALL - 11 AS col1, + CASE + 21 WHEN + COUNT( * ) + - SUM( DISTINCT + + 33 ) * + NULLIF ( - 77, + 91 / 73 * - COUNT( * ) ) THEN 77 ELSE + - 76 - COUNT( * ) + + 51 END AS col1
----
-11
-26

skipif mysql # not compatible
query II rowsort label-1943
SELECT ALL - 11 AS col1, + CASE + 21 WHEN + COUNT ( * ) + - SUM ( DISTINCT + + 33 ) * + NULLIF ( - 77, + 91 / 73 * - COUNT ( * ) ) THEN 77 ELSE + - 76 - COUNT ( * ) + + 51 END AS col1
----
-11
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT DISTINCT 56 + + - 24 + + COUNT( * ) * + 92 * - 92 * - MAX( + 9 )
----
76208

skipif mysql # not compatible
query I rowsort label-1944
SELECT DISTINCT 56 + + - 24 + + COUNT ( * ) * + 92 * - 92 * - MAX ( + 9 )
----
76208

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT COALESCE ( - 43, MIN( + + 48 ), 65 * - 42 ) * - 44
----
1892

skipif mysql # not compatible
query I rowsort label-1945
SELECT COALESCE ( - 43, MIN ( + + 48 ), 65 * - 42 ) * - 44
----
1892

onlyif mysql # aggregate syntax: 
query II rowsort label-1946
SELECT ALL + ( 85 ) + + - COUNT( * ), MIN( - 65 ) AS col2
----
84
-65

skipif mysql # not compatible
query II rowsort label-1946
SELECT ALL + ( 85 ) + + - COUNT ( * ), MIN ( - 65 ) AS col2
----
84
-65

query I rowsort
SELECT DISTINCT 91 + NULLIF ( + 90, + 94 ) AS col1
----
181

query I rowsort
SELECT ALL 50 + + 85
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1949
SELECT DISTINCT 20 + + 67 + + + 50 + + - 43 * - 99 AS col1, + 15 + - CAST( - CAST( - + 54 AS SIGNED ) AS SIGNED )
----
4394
-39

skipif mysql # not compatible
query II rowsort label-1949
SELECT DISTINCT 20 + + 67 + + + 50 + + - 43 * - 99 AS col1, + 15 + - CAST ( - CAST ( - + 54 AS INTEGER ) AS INTEGER )
----
4394
-39

query I rowsort
SELECT ALL 44 * + 69
----
3036

query I rowsort
SELECT 81 + + 23 * + 88 * + 14 AS col2
----
28417

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1952
SELECT + 59 AS col1, CASE + 71 WHEN - + 21 THEN NULL ELSE COALESCE ( + 15, - 0, - 45 ) * + 56 + 17 END * CAST( NULL AS SIGNED ) AS col1
----
59
NULL

skipif mysql # not compatible
query II rowsort label-1952
SELECT + 59 AS col1, CASE + 71 WHEN - + 21 THEN NULL ELSE COALESCE ( + 15, - 0, - 45 ) * + 56 + 17 END * CAST ( NULL AS INTEGER ) AS col1
----
59
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1953
SELECT 92 AS col0, + 92 + 20 + 71 * 46 + - COUNT( * ) * + ( - 48 ) * CAST( 10 AS SIGNED ) + - - 93 + - + 64 AS col2
----
92
3887

skipif mysql # not compatible
query II rowsort label-1953
SELECT 92 AS col0, + 92 + 20 + 71 * 46 + - COUNT ( * ) * + ( - 48 ) * CAST ( 10 AS INTEGER ) + - - 93 + - + 64 AS col2
----
92
3887

query I rowsort
SELECT ALL 90 + 50 - + 12 * + 91 + + + 43 * 65 AS col0
----
1843

query I rowsort
SELECT ALL 95 * - + 79 AS col0
----
-7505

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

skipif mysql # not compatible
query I rowsort label-1956
SELECT ALL 54 - + + COUNT ( * ) AS col2
----
53

query I rowsort
SELECT ALL + 15 - - 56 AS col1
----
71

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1959
SELECT 6 + 5 * CAST( NULL AS SIGNED ) * CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0, 77 DIV + 42
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1959
SELECT 6 + 5 * CAST ( NULL AS INTEGER ) * CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0, 77 / + 42
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT 9 - COUNT( * ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-1960
SELECT 9 - COUNT ( * ) AS col1
----
8

query I rowsort
SELECT 25 * 57
----
1425

query I rowsort
SELECT DISTINCT + 98 * 21 AS col2
----
2058

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

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

query I rowsort
SELECT ALL - CASE WHEN + 59 IS NULL THEN 79 - 69 END * - 47
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1965
SELECT 15 * - CAST( 20 AS SIGNED )
----
-300

skipif mysql # not compatible
query I rowsort label-1965
SELECT 15 * - CAST ( 20 AS INTEGER )
----
-300

onlyif mysql # DIV for integer division: 
query I rowsort label-1966
SELECT ALL 82 DIV 43 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1966
SELECT ALL 82 / 43 AS col1
----
1

query I rowsort
SELECT DISTINCT 99 * - 87
----
-8613

onlyif mysql # DIV for integer division: 
query I rowsort label-1968
SELECT 34 DIV 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1968
SELECT 34 / 80 AS col1
----
0

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

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

query I rowsort
SELECT DISTINCT + ( ( + 38 ) ) + - 90 AS col1
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-1971
SELECT ALL - 35 DIV - 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1971
SELECT ALL - 35 / - 65 AS col2
----
0

query I rowsort
SELECT ALL - ( 29 ) col0
----
-29

query I rowsort
SELECT ALL - 75 * 12 + ( + 9 ) AS col0
----
-891

query I rowsort
SELECT 21 - + CASE 72 WHEN NULLIF ( + 87, + 86 ) - + 22 THEN NULL ELSE - ( - 42 ) END AS col1
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-1975
SELECT 59 DIV + 14 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-1975
SELECT 59 / + 14 AS col0
----
4

query I rowsort
SELECT 9 * - 15 - 29
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT COUNT( DISTINCT 36 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1977
SELECT COUNT ( DISTINCT 36 ) AS col1
----
1

query I rowsort
SELECT DISTINCT + 64 + + 96 AS col2
----
160

query I rowsort
SELECT ALL 50 + 80
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT MIN( 8 ) - 33 * 46 AS col2
----
-1510

skipif mysql # not compatible
query I rowsort label-1980
SELECT MIN ( 8 ) - 33 * 46 AS col2
----
-1510

query I rowsort
SELECT ALL + 73 * - 69
----
-5037

query I rowsort
SELECT 49 + 18
----
67

query I rowsort
SELECT ALL - 46 + 45
----
-1

query I rowsort
SELECT 55 * 44 AS col1
----
2420

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT 10 - - COUNT( 20 ) * - 69
----
-59

skipif mysql # not compatible
query I rowsort label-1985
SELECT 10 - - COUNT ( 20 ) * - 69
----
-59

query I rowsort
SELECT 81 * + 73 AS col2
----
5913

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT ALL + 83 - COUNT( ALL 63 + 8 )
----
82

skipif mysql # not compatible
query I rowsort label-1987
SELECT ALL + 83 - COUNT ( ALL 63 + 8 )
----
82

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

query I rowsort
SELECT ALL 36 * - 21
----
-756

onlyif mysql # DIV for integer division: 
query I rowsort label-1990
SELECT 0 DIV 79 col1
----
0

skipif mysql # not compatible
query I rowsort label-1990
SELECT 0 / 79 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1991
SELECT ALL - 11 DIV + 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1991
SELECT ALL - 11 / + 92 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1992
SELECT DISTINCT 66 DIV 40 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1992
SELECT DISTINCT 66 / 40 AS col1
----
1

query I rowsort
SELECT ALL ( 44 ) * 60 AS col0
----
2640

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT 20 * + 48 + - 62 * COUNT( DISTINCT + 27 ) AS col2
----
898

skipif mysql # not compatible
query I rowsort label-1994
SELECT 20 * + 48 + - 62 * COUNT ( DISTINCT + 27 ) AS col2
----
898

query I rowsort
SELECT ALL + 43 * + 10
----
430

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

skipif mysql # not compatible
query I rowsort label-1996
SELECT + - 37 / - 40
----
0

query I rowsort
SELECT + 66 + - 14
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT + + 57 * + SUM( DISTINCT - 1 - CASE + 90 WHEN - 1 THEN 81 + 9 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1998
SELECT + + 57 * + SUM ( DISTINCT - 1 - CASE + 90 WHEN - 1 THEN 81 + 9 END ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT NULLIF ( COUNT( * ), + 66 * 33 + + 61 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2000
SELECT NULLIF ( COUNT ( * ), + 66 * 33 + + 61 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2001
SELECT DISTINCT 67 * COALESCE ( - SUM( CAST( NULL AS SIGNED ) ), - 60 )
----
-4020

skipif mysql # not compatible
query I rowsort label-2001
SELECT DISTINCT 67 * COALESCE ( - SUM ( CAST ( NULL AS INTEGER ) ), - 60 )
----
-4020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2002
SELECT DISTINCT CASE 92 WHEN - MIN( DISTINCT CAST( + 97 AS SIGNED ) ) * AVG ( DISTINCT 45 + - 99 ) THEN 71 ELSE 49 END col0
----
49

skipif mysql # not compatible
query I rowsort label-2002
SELECT DISTINCT CASE 92 WHEN - MIN ( DISTINCT CAST ( + 97 AS INTEGER ) ) * AVG ( DISTINCT 45 + - 99 ) THEN 71 ELSE 49 END col0
----
49

query I rowsort
SELECT + - 80 - + 56 * + 20
----
-1200

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

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

skipif mysql # not compatible
query I rowsort label-2005
SELECT ALL - 25 + + COUNT ( * ) / - 39 AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2006
SELECT + 82 + COALESCE ( COALESCE ( 82, CASE - COUNT( * ) WHEN + 39 THEN + COUNT( * ) ELSE NULL END ) + - ( 6 ), - 70 )
----
158

skipif mysql # not compatible
query I rowsort label-2006
SELECT + 82 + COALESCE ( COALESCE ( 82, CASE - COUNT ( * ) WHEN + 39 THEN + COUNT ( * ) ELSE NULL END ) + - ( 6 ), - 70 )
----
158

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

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

query I rowsort
SELECT - - ( - 65 )
----
-65

query I rowsort
SELECT + ( + 56 ) + + 67 * 1
----
123

query I rowsort
SELECT - 65 - + 33
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2011
SELECT ALL - COUNT( DISTINCT COALESCE ( 69, 32 + - 20 ) ) + - 48 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-2011
SELECT ALL - COUNT ( DISTINCT COALESCE ( 69, 32 + - 20 ) ) + - 48 AS col1
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2012
SELECT + 9 + + NULLIF ( + 86 + + 21, 67 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2012
SELECT + 9 + + NULLIF ( + 86 + + 21, 67 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT - SUM( DISTINCT 57 ) - 25 * 75 col1
----
-1932

skipif mysql # not compatible
query I rowsort label-2013
SELECT - SUM ( DISTINCT 57 ) - 25 * 75 col1
----
-1932

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT DISTINCT 47 * 28 + ( 81 ) * COUNT( ( + ( 87 ) ) * 50 - - ( - 6 ) ) AS col1
----
1397

skipif mysql # not compatible
query I rowsort label-2014
SELECT DISTINCT 47 * 28 + ( 81 ) * COUNT ( ( + ( 87 ) ) * 50 - - ( - 6 ) ) AS col1
----
1397

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2015
SELECT ALL + CAST( NULL AS SIGNED ) * 24 + 6 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2015
SELECT ALL + CAST ( NULL AS INTEGER ) * 24 + 6 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT ALL COUNT( * ) * - SUM( DISTINCT + 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-2016
SELECT ALL COUNT ( * ) * - SUM ( DISTINCT + 72 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT ALL 21 * - SUM( - 46 ) AS col0
----
966

skipif mysql # not compatible
query I rowsort label-2017
SELECT ALL 21 * - SUM ( - 46 ) AS col0
----
966

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT DISTINCT 17 * + COUNT( * ) * 95 + + 50 col0
----
1665

skipif mysql # not compatible
query I rowsort label-2018
SELECT DISTINCT 17 * + COUNT ( * ) * 95 + + 50 col0
----
1665

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2020
SELECT 51 * + COUNT( * ) + + MIN( DISTINCT - 67 ) * 44
----
-2897

skipif mysql # not compatible
query I rowsort label-2020
SELECT 51 * + COUNT ( * ) + + MIN ( DISTINCT - 67 ) * 44
----
-2897

query I rowsort
SELECT ALL 92 * + 97 - 37 AS col2
----
8887

query I rowsort
SELECT + 20 * - - 69 col1
----
1380

onlyif mysql # aggregate syntax: 
query I rowsort label-2023
SELECT - NULLIF ( + 75, - MAX( - 19 ) + ( MAX( ALL - 68 ) + - 0 ) * SUM( ALL + 8 + 34 ) ) * + 68
----
-5100

skipif mysql # not compatible
query I rowsort label-2023
SELECT - NULLIF ( + 75, - MAX ( - 19 ) + ( MAX ( ALL - 68 ) + - 0 ) * SUM ( ALL + 8 + 34 ) ) * + 68
----
-5100

query I rowsort
SELECT - 97 * - 33 AS col1
----
3201

query I rowsort
SELECT - 2 * - 51 * + 96 AS col1
----
9792

query I rowsort
SELECT COALESCE ( 3, 87 )
----
3

query I rowsort
SELECT COALESCE ( - 96, + 49 + + 43, + 18, - 90 )
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2028
SELECT DISTINCT + CASE - 52 WHEN - AVG ( ALL CAST( NULL AS DECIMAL ) ) THEN + COUNT( * ) + COALESCE ( - CAST( NULL AS SIGNED ), COUNT( * ) - - 36, 55 * - 23 ) * 6 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2028
SELECT DISTINCT + CASE - 52 WHEN - AVG ( ALL CAST ( NULL AS REAL ) ) THEN + COUNT ( * ) + COALESCE ( - CAST ( NULL AS INTEGER ), COUNT ( * ) - - 36, 55 * - 23 ) * 6 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT ALL + 73 * ( 47 ) - + COUNT( * ) AS col1
----
3430

skipif mysql # not compatible
query I rowsort label-2029
SELECT ALL + 73 * ( 47 ) - + COUNT ( * ) AS col1
----
3430

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT DISTINCT 96 * - - SUM( DISTINCT - 9 )
----
-864

skipif mysql # not compatible
query I rowsort label-2030
SELECT DISTINCT 96 * - - SUM ( DISTINCT - 9 )
----
-864

query I rowsort
SELECT DISTINCT - 25 * - 25 AS col2
----
625

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT DISTINCT + COALESCE ( 88, ( 1 ) * 0, 11 * - 0, COUNT( * ) ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-2032
SELECT DISTINCT + COALESCE ( 88, ( 1 ) * 0, 11 * - 0, COUNT ( * ) ) AS col0
----
88

query I rowsort
SELECT ALL - 16 * + 15 col0
----
-240

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2035
SELECT - 36 + SUM( 35 )
----
-1

skipif mysql # not compatible
query I rowsort label-2035
SELECT - 36 + SUM ( 35 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT - 55 - - 25 + 12 * - COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-2036
SELECT - 55 - - 25 + 12 * - COUNT ( * )
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-2037
SELECT + 24 DIV - + 83
----
0

skipif mysql # not compatible
query I rowsort label-2037
SELECT + 24 / - + 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2038
SELECT + + 70 + ( COUNT( * ) ) col1
----
71

skipif mysql # not compatible
query I rowsort label-2038
SELECT + + 70 + ( COUNT ( * ) ) col1
----
71

query I rowsort
SELECT DISTINCT - + 83 * + - 23 AS col2
----
1909

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT ALL - 89 + ( - COALESCE ( 5, MIN( DISTINCT 80 ) + + COUNT( * ), 6, 70 ) ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-2040
SELECT ALL - 89 + ( - COALESCE ( 5, MIN ( DISTINCT 80 ) + + COUNT ( * ), 6, 70 ) ) AS col2
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2041
SELECT ALL 21 DIV CASE 74 WHEN 89 THEN NULL ELSE COUNT( * ) END
----
21

skipif mysql # not compatible
query I rowsort label-2041
SELECT ALL 21 / CASE 74 WHEN 89 THEN NULL ELSE COUNT ( * ) END
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT - MAX( - 44 )
----
44

skipif mysql # not compatible
query I rowsort label-2042
SELECT - MAX ( - 44 )
----
44

query I rowsort
SELECT ALL - 40 + 4
----
-36

query I rowsort
SELECT ALL - 29 + + 12 + 83
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-2045
SELECT ALL + 70 DIV - 77 * - 71
----
0

skipif mysql # not compatible
query I rowsort label-2045
SELECT ALL + 70 / - 77 * - 71
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2046
SELECT + 27 DIV - + 51 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2046
SELECT + 27 / - + 51 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2047
SELECT DISTINCT - 37 * - 51 DIV - MIN( + 17 ) + + 81
----
-30

skipif mysql # not compatible
query I rowsort label-2047
SELECT DISTINCT - 37 * - 51 / - MIN ( + 17 ) + + 81
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-2048
SELECT - 80 * - ( - 16 ) - - 94 DIV - 7
----
-1293

skipif mysql # not compatible
query I rowsort label-2048
SELECT - 80 * - ( - 16 ) - - 94 / - 7
----
-1293

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT + + MAX( 34 ) + - 27
----
7

skipif mysql # not compatible
query I rowsort label-2049
SELECT + + MAX ( 34 ) + - 27
----
7

query I rowsort
SELECT ALL + 13 + + - 5
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2051
SELECT ALL MAX( DISTINCT - + 94 ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-2051
SELECT ALL MAX ( DISTINCT - + 94 ) AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2052
SELECT - SUM( 76 )
----
-76

skipif mysql # not compatible
query I rowsort label-2052
SELECT - SUM ( 76 )
----
-76

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

query I rowsort
SELECT + 33 * - + NULLIF ( + ( 91 ), - 26 ) AS col0
----
-3003

query I rowsort
SELECT ALL 39 - + - 92 AS col2
----
131

query I rowsort
SELECT + 79 * - - 54 AS col0
----
4266

query I rowsort
SELECT - 3 * - ( 8 ) * 7
----
168

query II rowsort
SELECT + 97, 2 * 17 - 69 AS col2
----
97
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2059
SELECT ALL + COALESCE ( 30, + - COUNT( * ) + SUM( DISTINCT 12 + + 94 ) DIV - 25 )
----
30

skipif mysql # not compatible
query I rowsort label-2059
SELECT ALL + COALESCE ( 30, + - COUNT ( * ) + SUM ( DISTINCT 12 + + 94 ) / - 25 )
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2060
SELECT + 44 / + 55 * ( - 32 ) + - 26 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2060
SELECT + 44 / + 55 * ( - 32 ) + - 26 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT + CASE - + COALESCE ( + + 6, - 9 ) WHEN COUNT( * ) * - 39 + NULLIF ( AVG ( ALL - 70 ), 54 ) THEN NULL WHEN COUNT( * ) THEN 27 END / 66
----
NULL

skipif mysql # not compatible
query I rowsort label-2061
SELECT + CASE - + COALESCE ( + + 6, - 9 ) WHEN COUNT ( * ) * - 39 + NULLIF ( AVG ( ALL - 70 ), 54 ) THEN NULL WHEN COUNT ( * ) THEN 27 END / 66
----
NULL

query I rowsort
SELECT ALL 73 * 2 AS col2
----
146

query I rowsort
SELECT DISTINCT 90 * 70 AS col2
----
6300

query II rowsort
SELECT ALL - 71 AS col0, + 39 + 20
----
-71
59

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

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

query I rowsort
SELECT 16 * + 66 * + ( 52 ) AS col1
----
54912

query I rowsort
SELECT 19 + + 57 * - - 84 AS col1
----
4807

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

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

query I rowsort
SELECT + 37 * - + 54 + - 0 + 50
----
-1948

query II rowsort
SELECT 32 AS col2, - 75 * - NULLIF ( + 15, + 79 + + 19 )
----
32
1125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2071
SELECT 57 * 75 + - CASE - 56 WHEN - 4 * CASE - 10 * 0 WHEN + 36 + - NULLIF ( + 12, 50 ) THEN NULL ELSE - 66 * - CAST( 1 AS SIGNED ) END + + MAX( ALL 12 ) THEN 59 * 16 + CAST( NULL AS SIGNED ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2071
SELECT 57 * 75 + - CASE - 56 WHEN - 4 * CASE - 10 * 0 WHEN + 36 + - NULLIF ( + 12, 50 ) THEN NULL ELSE - 66 * - CAST ( 1 AS INTEGER ) END + + MAX ( ALL 12 ) THEN 59 * 16 + CAST ( NULL AS INTEGER ) END col1
----
NULL

query I rowsort
SELECT 44 - - + 24 AS col1
----
68

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2074
SELECT ALL + 24 + CAST( + 7 AS SIGNED ) DIV 42
----
24

skipif mysql # not compatible
query I rowsort label-2074
SELECT ALL + 24 + CAST ( + 7 AS INTEGER ) / 42
----
24

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

query I rowsort
SELECT DISTINCT - 91 + + 34
----
-57

query I rowsort
SELECT DISTINCT + 33 + 72 + 48
----
153

query I rowsort
SELECT ALL - + 97 + - 42 AS col0
----
-139

query I rowsort
SELECT 28 * + 61 + + - 15
----
1693

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT DISTINCT - + COUNT( 70 ) + 72 * 31 AS col1
----
2231

skipif mysql # not compatible
query I rowsort label-2080
SELECT DISTINCT - + COUNT ( 70 ) + 72 * 31 AS col1
----
2231

query II rowsort
SELECT ALL 9 AS col0, 86 - - - 66 AS col0
----
9
20

query I rowsort
SELECT 7 + - 81 AS col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT + MAX( - 17 ) + - + 45 * 51 AS col1
----
-2312

skipif mysql # not compatible
query I rowsort label-2083
SELECT + MAX ( - 17 ) + - + 45 * 51 AS col1
----
-2312

query I rowsort
SELECT DISTINCT - - 93 + - 44
----
49

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

query I rowsort
SELECT ALL + 48 * 85 AS col0
----
4080

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT ALL NULLIF ( + - 66, + COUNT( * ) - + 41 * - 30 )
----
-66

skipif mysql # not compatible
query I rowsort label-2087
SELECT ALL NULLIF ( + - 66, + COUNT ( * ) - + 41 * - 30 )
----
-66

query I rowsort
SELECT DISTINCT + - 63 - - 72
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT DISTINCT - 56 - - COUNT( * ) + + COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-2089
SELECT DISTINCT - 56 - - COUNT ( * ) + + COUNT ( * )
----
-54

query I rowsort
SELECT - 27 + + 14 + + 26 + + 67 * + 94 * 6 AS col2
----
37801

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

skipif mysql # not compatible
query I rowsort label-2091
SELECT ALL + + CAST ( NULL AS REAL ) - + 69 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2092
SELECT DISTINCT + + 88 / - + 71
----
-1

query I rowsort
SELECT 55 + - + 93 + + 25 AS col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT COUNT( ALL + - 98 ) * - 7 * - 48 + - 51 AS col2
----
285

skipif mysql # not compatible
query I rowsort label-2094
SELECT COUNT ( ALL + - 98 ) * - 7 * - 48 + - 51 AS col2
----
285

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT COUNT( DISTINCT + + 69 ) + - - COUNT( * ) + - 23 + - 30
----
-51

skipif mysql # not compatible
query I rowsort label-2097
SELECT COUNT ( DISTINCT + + 69 ) + - - COUNT ( * ) + - 23 + - 30
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT ( + COUNT( * ) ) - ( - 93 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-2098
SELECT ( + COUNT ( * ) ) - ( - 93 ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2099
SELECT COUNT( * ) + + + 37 * - + 87 * COUNT( * ) * + 10
----
-32189

skipif mysql # not compatible
query I rowsort label-2099
SELECT COUNT ( * ) + + + 37 * - + 87 * COUNT ( * ) * + 10
----
-32189

query I rowsort
SELECT ALL 85 - - 10 AS col1
----
95

query I rowsort
SELECT 81 * + 35 AS col0
----
2835

query I rowsort
SELECT DISTINCT - 42 * 64
----
-2688

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT MAX( DISTINCT + 29 ) * + - 18 + 9 + + COUNT( * ) * + 49
----
-464

skipif mysql # not compatible
query I rowsort label-2103
SELECT MAX ( DISTINCT + 29 ) * + - 18 + 9 + + COUNT ( * ) * + 49
----
-464

query I rowsort
SELECT ALL 32 * + 69
----
2208

onlyif mysql # DIV for integer division: 
query I rowsort label-2105
SELECT - 21 DIV 72 * 95 * + 18 + 63 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-2105
SELECT - 21 / 72 * 95 * + 18 + 63 AS col1
----
63

query I rowsort
SELECT ALL 49 * - 71
----
-3479

query I rowsort
SELECT 9 + + 66 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT COUNT( ALL - 64 ) * 22
----
22

skipif mysql # not compatible
query I rowsort label-2108
SELECT COUNT ( ALL - 64 ) * 22
----
22

query I rowsort
SELECT - 33 * - 20 + + + 65 + + 48
----
773

query I rowsort
SELECT ALL 78 + 67 AS col1
----
145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2111
SELECT 6 + CAST( 14 AS SIGNED )
----
20

skipif mysql # not compatible
query I rowsort label-2111
SELECT 6 + CAST ( 14 AS INTEGER )
----
20

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT DISTINCT + MAX( ALL - - 92 ) + + 51 * + - 45
----
-2203

skipif mysql # not compatible
query I rowsort label-2114
SELECT DISTINCT + MAX ( ALL - - 92 ) + + 51 * + - 45
----
-2203

query I rowsort
SELECT ALL 42 * - 94 AS col1
----
-3948

query I rowsort
SELECT - + COALESCE ( - 23, - 12 ) * 14 + 6 AS col0
----
328

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT ALL MAX( ALL + + 61 ) * + + 84 * - CASE 53 WHEN 66 THEN 60 WHEN 12 + + ( + 36 ) * - 89 THEN + 77 WHEN + 86 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2117
SELECT ALL MAX ( ALL + + 61 ) * + + 84 * - CASE 53 WHEN 66 THEN 60 WHEN 12 + + ( + 36 ) * - 89 THEN + 77 WHEN + 86 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT ALL + COALESCE ( COUNT( * ), - + 91 + - + ( - 82 ) + COUNT( * ) * + 17, - COUNT( * ) * + 80, COUNT( 20 ) + 2 ) + 18 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-2118
SELECT ALL + COALESCE ( COUNT ( * ), - + 91 + - + ( - 82 ) + COUNT ( * ) * + 17, - COUNT ( * ) * + 80, COUNT ( 20 ) + 2 ) + 18 AS col2
----
19

query I rowsort
SELECT + 39 * + ( - 5 ) + + 58 * - 68 col1
----
-4139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2120
SELECT + NULLIF ( + 79, - COUNT( * ) ) DIV + ( - 21 )
----
-3

skipif mysql # not compatible
query I rowsort label-2120
SELECT + NULLIF ( + 79, - COUNT ( * ) ) / + ( - 21 )
----
-3

query I rowsort
SELECT CASE + 98 WHEN - 13 * + 64 THEN NULL WHEN - 57 THEN NULL ELSE - 7 END - + 65 AS col1
----
-72

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

query II rowsort
SELECT - 31 + 81 AS col1, + 65 * - - 13 AS col2
----
50
845

onlyif mysql # aggregate syntax: 
query II rowsort label-2124
SELECT DISTINCT + 46 - 48, - 44 + + COUNT( * ) * 67 AS col1
----
-2
23

skipif mysql # not compatible
query II rowsort label-2124
SELECT DISTINCT + 46 - 48, - 44 + + COUNT ( * ) * 67 AS col1
----
-2
23

query I rowsort
SELECT ALL + NULLIF ( 33, + 57 )
----
33

query I rowsort
SELECT ALL + 18 - + + 23 + + 75
----
70

query I rowsort
SELECT ALL + 96 * - 71
----
-6816

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT DISTINCT + + ( - COUNT( DISTINCT + - 32 ) ) - - 93 * ( - 4 + COALESCE ( + COUNT( * ), + 18, - 32 * - 50 + 73 ) * - 38 )
----
-3907

skipif mysql # not compatible
query I rowsort label-2128
SELECT DISTINCT + + ( - COUNT ( DISTINCT + - 32 ) ) - - 93 * ( - 4 + COALESCE ( + COUNT ( * ), + 18, - 32 * - 50 + 73 ) * - 38 )
----
-3907

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT DISTINCT + MAX( DISTINCT 91 ) * COUNT( * ) * MAX( DISTINCT 71 ) * NULLIF ( - 20 * + 16, 49 + + 13 / 70 ) col2
----
-2067520

skipif mysql # not compatible
query I rowsort label-2129
SELECT DISTINCT + MAX ( DISTINCT 91 ) * COUNT ( * ) * MAX ( DISTINCT 71 ) * NULLIF ( - 20 * + 16, 49 + + 13 / 70 ) col2
----
-2067520

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT - MIN( + 78 ) * + 86 * + 25 - 16 AS col0
----
-167716

skipif mysql # not compatible
query I rowsort label-2130
SELECT - MIN ( + 78 ) * + 86 * + 25 - 16 AS col0
----
-167716

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

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

query I rowsort
SELECT - - COALESCE ( 6, - 27 * - 15 ) col1
----
6

query I rowsort
SELECT DISTINCT + 1 * 2 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT COUNT( * ) * - - 37 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-2134
SELECT COUNT ( * ) * - - 37 AS col0
----
37

query II rowsort
SELECT 20 col1, - 70
----
20
-70

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

skipif mysql # not compatible
query I rowsort label-2136
SELECT DISTINCT MAX ( 41 )
----
41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT ALL MAX( 88 )
----
88

skipif mysql # not compatible
query I rowsort label-2138
SELECT ALL MAX ( 88 )
----
88

query II rowsort
SELECT 20 AS col2, 32 AS col2
----
20
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2140
SELECT - 90 / + 22 / CASE + + 27 WHEN - + 21 + - CAST( 58 AS SIGNED ) THEN NULL WHEN 56 THEN 56 END * - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-2140
SELECT - 90 / + 22 / CASE + + 27 WHEN - + 21 + - CAST ( 58 AS INTEGER ) THEN NULL WHEN 56 THEN 56 END * - 43
----
NULL

query I rowsort
SELECT + 96 * + + 85 * + 97 AS col1
----
791520

query II rowsort
SELECT 20 * - 2 - 1 AS col2, - 86
----
-41
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-2143
SELECT - 60 + 56 DIV + 5
----
-49

skipif mysql # not compatible
query I rowsort label-2143
SELECT - 60 + 56 / + 5
----
-49

query II rowsort
SELECT ALL + 80 AS col1, 24 AS col2
----
80
24

query I rowsort
SELECT + 36 + + 82
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2146
SELECT ALL - 87 * 82 + + - CASE + 24 WHEN + - COUNT( * ) * 95 THEN CAST( 22 AS DECIMAL ) WHEN CAST( + 67 AS SIGNED ) THEN 4 / COALESCE ( + 18, - 89, + 43 * - 36 ) + - CAST( NULL AS SIGNED ) END * 63
----
NULL

skipif mysql # not compatible
query I rowsort label-2146
SELECT ALL - 87 * 82 + + - CASE + 24 WHEN + - COUNT ( * ) * 95 THEN CAST ( 22 AS REAL ) WHEN CAST ( + 67 AS INTEGER ) THEN 4 / COALESCE ( + 18, - 89, + 43 * - 36 ) + - CAST ( NULL AS INTEGER ) END * 63
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2147
SELECT DISTINCT - COUNT( * ) * - 83 + 89, SUM( 72 ) * 1 AS col1
----
172
72

skipif mysql # not compatible
query II rowsort label-2147
SELECT DISTINCT - COUNT ( * ) * - 83 + 89, SUM ( 72 ) * 1 AS col1
----
172
72

query II rowsort
SELECT DISTINCT + 96 AS col0, - 34
----
96
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT ALL + MAX( ( 8 ) ) col2
----
8

skipif mysql # not compatible
query I rowsort label-2149
SELECT ALL + MAX ( ( 8 ) ) col2
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2150
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 49 * - 96 AS col2, 16 + + 30 + 6 * - 15
----
NULL
-44

skipif mysql # not compatible
query II rowsort label-2150
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 49 * - 96 AS col2, 16 + + 30 + 6 * - 15
----
NULL
-44

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2151
SELECT - + COUNT( * ) * 66 * - CAST( NULL AS DECIMAL ) + + 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2151
SELECT - + COUNT ( * ) * 66 * - CAST ( NULL AS REAL ) + + 49 AS col1
----
NULL

query I rowsort
SELECT + + 89 + + 30 AS col0
----
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2153
SELECT CASE + + MAX( ALL + + 36 ) WHEN + - SUM( DISTINCT 44 ) THEN NULL WHEN - MAX( 37 ) THEN NULL ELSE - 61 * - CAST( COUNT( * ) AS SIGNED ) END AS col1
----
61

skipif mysql # not compatible
query I rowsort label-2153
SELECT CASE + + MAX ( ALL + + 36 ) WHEN + - SUM ( DISTINCT 44 ) THEN NULL WHEN - MAX ( 37 ) THEN NULL ELSE - 61 * - CAST ( COUNT ( * ) AS INTEGER ) END AS col1
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2154
SELECT - - 83 * + - AVG ( - - 58 ) * - CAST( NULL AS SIGNED ) + + 49 + - 83 + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-2154
SELECT - - 83 * + - AVG ( - - 58 ) * - CAST ( NULL AS INTEGER ) + + 49 + - 83 + 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT + 7 * - - COUNT( * ) * - 9
----
-63

skipif mysql # not compatible
query I rowsort label-2155
SELECT + 7 * - - COUNT ( * ) * - 9
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT + + 28 + 43 * - COALESCE ( - 68, - 72 * - 84, - MIN( ALL - 10 ) * - ( 63 ) )
----
2952

skipif mysql # not compatible
query I rowsort label-2156
SELECT + + 28 + 43 * - COALESCE ( - 68, - 72 * - 84, - MIN ( ALL - 10 ) * - ( 63 ) )
----
2952

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT + CASE + - 9 WHEN - - ( - 88 ) * - 47 THEN + NULLIF ( + 57, - CASE 45 WHEN 2 THEN - 10 * + 47 + 33 * - 96 ELSE NULL END + 76 ) ELSE 18 END * COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-2157
SELECT + CASE + - 9 WHEN - - ( - 88 ) * - 47 THEN + NULLIF ( + 57, - CASE 45 WHEN 2 THEN - 10 * + 47 + 33 * - 96 ELSE NULL END + 76 ) ELSE 18 END * COUNT ( * )
----
18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT + 87 + - MAX( - - 78 ) + CASE 61 WHEN + COALESCE ( + MAX( 45 ), + 49 * + 10 ) / 69 + + 32 * + 2 THEN + ( COALESCE ( ( 88 ), 13 ) ) WHEN ( 47 ) THEN NULL END + 33 * SUM( 86 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2159
SELECT + 87 + - MAX ( - - 78 ) + CASE 61 WHEN + COALESCE ( + MAX ( 45 ), + 49 * + 10 ) / 69 + + 32 * + 2 THEN + ( COALESCE ( ( 88 ), 13 ) ) WHEN ( 47 ) THEN NULL END + 33 * SUM ( 86 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2160
SELECT DISTINCT COUNT( DISTINCT 35 ) * + 27, + 93 AS col2
----
27
93

skipif mysql # not compatible
query II rowsort label-2160
SELECT DISTINCT COUNT ( DISTINCT 35 ) * + 27, + 93 AS col2
----
27
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2161
SELECT + 80 * + + COUNT( * ) + 7 AS col2, + 12 + - 16 + COUNT( * ) / - CAST( NULL AS SIGNED ) * 32
----
87
NULL

skipif mysql # not compatible
query II rowsort label-2161
SELECT + 80 * + + COUNT ( * ) + 7 AS col2, + 12 + - 16 + COUNT ( * ) / - CAST ( NULL AS INTEGER ) * 32
----
87
NULL

query I rowsort
SELECT + + 76 * + 24
----
1824

query I rowsort
SELECT - - 70 * - + 98
----
-6860

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2164
SELECT + COUNT( DISTINCT - + 99 ) + + + ( 41 ) + - NULLIF ( COUNT( * ), + 97 ) DIV - 2 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-2164
SELECT + COUNT ( DISTINCT - + 99 ) + + + ( 41 ) + - NULLIF ( COUNT ( * ), + 97 ) / - 2 AS col1
----
42

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2166
SELECT - 36 / CAST( NULL AS SIGNED ) - - - 2 + + - 45 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2166
SELECT - 36 / CAST ( NULL AS INTEGER ) - - - 2 + + - 45 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2167
SELECT ALL - 15 DIV - 43
----
0

skipif mysql # not compatible
query I rowsort label-2167
SELECT ALL - 15 / - 43
----
0

query I rowsort
SELECT + 76 + - 34
----
42

query II rowsort
SELECT ALL 31, 31
----
31
31

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2171
SELECT DISTINCT MAX( ALL + CAST( + 53 AS SIGNED ) ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-2171
SELECT DISTINCT MAX ( ALL + CAST ( + 53 AS INTEGER ) ) AS col2
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2172
SELECT ALL - 24 + - COUNT( * ) + + CASE + + 94 WHEN - 21 + + CASE 61 WHEN 5 THEN COALESCE ( - 51, 69, + 76 / - 56 ) * + 22 WHEN + COUNT( * ) THEN NULL ELSE 10 + COALESCE ( - 45 + - 4, - ( - 23 ) * + AVG ( ALL 23 ) ) END + - 67 THEN NULL WHEN COUNT( * ) THEN NULL ELSE - 82 * + 86 END + - ( + CAST( 35 AS SIGNED ) ) * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2172
SELECT ALL - 24 + - COUNT ( * ) + + CASE + + 94 WHEN - 21 + + CASE 61 WHEN 5 THEN COALESCE ( - 51, 69, + 76 / - 56 ) * + 22 WHEN + COUNT ( * ) THEN NULL ELSE 10 + COALESCE ( - 45 + - 4, - ( - 23 ) * + AVG ( ALL 23 ) ) END + - 67 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE - 82 * + 86 END + - ( + CAST ( 35 AS INTEGER ) ) * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2173
SELECT - 44 + + 21 DIV - + 94
----
-44

skipif mysql # not compatible
query I rowsort label-2173
SELECT - 44 + + 21 / - + 94
----
-44

query I rowsort
SELECT DISTINCT - 43 + + 44
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2175
SELECT - 96 + 16 - 58 * + 80 / CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2175
SELECT - 96 + 16 - 58 * + 80 / CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT ALL + 25 + - 10 AS col0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-2177
SELECT - 72 + - 1 DIV + 52
----
-72

skipif mysql # not compatible
query I rowsort label-2177
SELECT - 72 + - 1 / + 52
----
-72

query I rowsort
SELECT - 84 + + 80
----
-4

query I rowsort
SELECT - 90 + - 74 + - 33 col1
----
-197

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2180
SELECT ALL - ( + + CAST( 61 AS SIGNED ) ) * + SUM( DISTINCT - + 2 )
----
122

skipif mysql # not compatible
query I rowsort label-2180
SELECT ALL - ( + + CAST ( 61 AS INTEGER ) ) * + SUM ( DISTINCT - + 2 )
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT ALL 66 + - + MAX( + 21 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-2181
SELECT ALL 66 + - + MAX ( + 21 ) AS col1
----
45

query II rowsort
SELECT + 16, 48 col0
----
16
48

query I rowsort
SELECT - 30 + - 39 AS col1
----
-69

query I rowsort
SELECT ALL + CASE - 77 WHEN 0 - 52 THEN + AVG ( DISTINCT - 0 ) + 97 * + 31 ELSE 2 * - ( + 42 ) END AS col0
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-2185
SELECT DISTINCT - 70 DIV - + 81 * - + 44 - ( - + 66 ) + - + NULLIF ( - 20, 4 )
----
86

skipif mysql # not compatible
query I rowsort label-2185
SELECT DISTINCT - 70 / - + 81 * - + 44 - ( - + 66 ) + - + NULLIF ( - 20, 4 )
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-2186
SELECT ALL - 21 * - COALESCE ( - + 14, + 22 + 54 + 14 + - 76 DIV 16 ) AS col0
----
-294

skipif mysql # not compatible
query I rowsort label-2186
SELECT ALL - 21 * - COALESCE ( - + 14, + 22 + 54 + 14 + - 76 / 16 ) AS col0
----
-294

query I rowsort
SELECT - - 15 * + - 7 + + - 11 + 6 AS col2
----
-110

onlyif mysql # DIV for integer division: 
query I rowsort label-2188
SELECT DISTINCT - 10 DIV - 64
----
0

skipif mysql # not compatible
query I rowsort label-2188
SELECT DISTINCT - 10 / - 64
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT ALL + 64 * 61 - + 63 * + + 59 + + 4 + - COUNT( * )
----
190

skipif mysql # not compatible
query I rowsort label-2189
SELECT ALL + 64 * 61 - + 63 * + + 59 + + 4 + - COUNT ( * )
----
190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2190
SELECT + CASE 94 WHEN - 22 THEN + CAST( - + NULLIF ( CAST( NULL AS SIGNED ), - COALESCE ( 63, 44 * 91 ) * + 86 + 69 ) AS SIGNED ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2190
SELECT + CASE 94 WHEN - 22 THEN + CAST ( - + NULLIF ( CAST ( NULL AS INTEGER ), - COALESCE ( 63, 44 * 91 ) * + 86 + 69 ) AS INTEGER ) ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2191
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) / AVG ( - 57 ) + - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-2191
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) / AVG ( - 57 ) + - 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT DISTINCT + 21 * ( + 13 ) * + COUNT( DISTINCT 49 ) + + 22 - - COUNT( * ) - - 46 AS col2
----
342

skipif mysql # not compatible
query I rowsort label-2192
SELECT DISTINCT + 21 * ( + 13 ) * + COUNT ( DISTINCT 49 ) + + 22 - - COUNT ( * ) - - 46 AS col2
----
342

query I rowsort
SELECT + + ( + + 76 ) * + 60 AS col0
----
4560

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT ALL - - COUNT( * ) * + 76 * - 73
----
-5548

skipif mysql # not compatible
query I rowsort label-2194
SELECT ALL - - COUNT ( * ) * + 76 * - 73
----
-5548

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

query II rowsort
SELECT ALL + - 63 AS col1, + 3 + - 34 AS col2
----
-63
-31

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

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

query I rowsort
SELECT + 51 - + 14
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2199
SELECT ALL - COUNT( * ) AS col2, + CAST( - 99 AS SIGNED ) + - 28 AS col1
----
-1
-127

skipif mysql # not compatible
query II rowsort label-2199
SELECT ALL - COUNT ( * ) AS col2, + CAST ( - 99 AS INTEGER ) + - 28 AS col1
----
-1
-127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2200
SELECT ALL + ( CAST( 8 AS SIGNED ) ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-2200
SELECT ALL + ( CAST ( 8 AS INTEGER ) ) AS col0
----
8

query I rowsort
SELECT + - 64 * - 44 AS col1
----
2816

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT ALL + CASE 73 WHEN + - 5 THEN - - NULLIF ( - COUNT( * ), + 65 ) WHEN + 90 THEN NULL END * 22 + 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2202
SELECT ALL + CASE 73 WHEN + - 5 THEN - - NULLIF ( - COUNT ( * ), + 65 ) WHEN + 90 THEN NULL END * 22 + 61 AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2203
SELECT DISTINCT 74 / - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2203
SELECT DISTINCT 74 / - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL 9 * + - 77 AS col0
----
-693

query I rowsort
SELECT ALL 26 + + + ( + 99 ) - + 23 AS col1
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT ALL COALESCE ( 66, 84 ) + - - COUNT( * ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-2206
SELECT ALL COALESCE ( 66, 84 ) + - - COUNT ( * ) AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT DISTINCT 61 + + COALESCE ( + CASE + + 8 WHEN 69 THEN + 6 ELSE NULL END, + COUNT( * ), 94 ) * 14 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-2207
SELECT DISTINCT 61 + + COALESCE ( + CASE + + 8 WHEN 69 THEN + 6 ELSE NULL END, + COUNT ( * ), 94 ) * 14 AS col2
----
75

query II rowsort
SELECT 35 * + 76 col2, 71 * - 42 AS col2
----
2660
-2982

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2209
SELECT 9 * - + COALESCE ( 37, + - MIN( + 19 ) + + 64 ) * + 95 * NULLIF ( - 95 DIV - 35, NULLIF ( + 65, - 6 + 42 ) ) AS col2
----
-63270

skipif mysql # not compatible
query I rowsort label-2209
SELECT 9 * - + COALESCE ( 37, + - MIN ( + 19 ) + + 64 ) * + 95 * NULLIF ( - 95 / - 35, NULLIF ( + 65, - 6 + 42 ) ) AS col2
----
-63270

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT ALL 66 + + - MAX( DISTINCT - 43 ) * - 32
----
-1310

skipif mysql # not compatible
query I rowsort label-2210
SELECT ALL 66 + + - MAX ( DISTINCT - 43 ) * - 32
----
-1310

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT ( + 41 ) - - SUM( - 74 ) + + 3 + + 70 + 40 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-2211
SELECT ( + 41 ) - - SUM ( - 74 ) + + 3 + + 70 + 40 AS col0
----
80

query I rowsort
SELECT 34 * - ( - 54 ) * + 37 col0
----
67932

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT NULLIF ( + 33, - COUNT( * ) ) + + 49 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-2213
SELECT NULLIF ( + 33, - COUNT ( * ) ) + + 49 AS col2
----
82

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

skipif mysql # not compatible
query I rowsort label-2214
SELECT ALL - CAST ( NULL AS INTEGER ) * 47
----
NULL

query I rowsort
SELECT ALL - 25 * 7
----
-175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2216
SELECT - - CASE - 76 WHEN - - COUNT( * ) THEN NULL WHEN + 9 + + 2 THEN NULL WHEN 72 THEN ( + CAST( NULL AS SIGNED ) ) ELSE 44 * + 10 END DIV - 63 + 37
----
31

skipif mysql # not compatible
query I rowsort label-2216
SELECT - - CASE - 76 WHEN - - COUNT ( * ) THEN NULL WHEN + 9 + + 2 THEN NULL WHEN 72 THEN ( + CAST ( NULL AS INTEGER ) ) ELSE 44 * + 10 END / - 63 + 37
----
31

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2218
SELECT + - ( - 90 ), - 29 + + ( + COUNT( * ) ) * + 44 AS col0
----
90
15

skipif mysql # not compatible
query II rowsort label-2218
SELECT + - ( - 90 ), - 29 + + ( + COUNT ( * ) ) * + 44 AS col0
----
90
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2219
SELECT + COUNT( * ) + 25 DIV + 26 * 78
----
1

skipif mysql # not compatible
query I rowsort label-2219
SELECT + COUNT ( * ) + 25 / + 26 * 78
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2220
SELECT ALL - CAST( + - 90 AS SIGNED ) * + 29 + - 9 + + 4 + - COUNT( * ) * + 13 * - 50 AS col0
----
3255

skipif mysql # not compatible
query I rowsort label-2220
SELECT ALL - CAST ( + - 90 AS INTEGER ) * + 29 + - 9 + + 4 + - COUNT ( * ) * + 13 * - 50 AS col0
----
3255

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2221
SELECT + 28 * + - 7 AS col1, + 53 * + CASE - - 58 WHEN 61 + + 28 THEN + CAST( NULL AS SIGNED ) ELSE 44 END * + 91
----
-196
212212

skipif mysql # not compatible
query II rowsort label-2221
SELECT + 28 * + - 7 AS col1, + 53 * + CASE - - 58 WHEN 61 + + 28 THEN + CAST ( NULL AS INTEGER ) ELSE 44 END * + 91
----
-196
212212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2222
SELECT + - 60 * 93 + CASE + ( 67 ) WHEN 58 - + + CAST( NULL AS SIGNED ) THEN 81 WHEN 62 + 74 THEN NULL ELSE NULL END + NULLIF ( + 31 + 66, + 46 * ( + 72 * - COUNT( * ) ) - 41 ) * + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-2222
SELECT + - 60 * 93 + CASE + ( 67 ) WHEN 58 - + + CAST ( NULL AS INTEGER ) THEN 81 WHEN 62 + 74 THEN NULL ELSE NULL END + NULLIF ( + 31 + 66, + 46 * ( + 72 * - COUNT ( * ) ) - 41 ) * + 85
----
NULL

query I rowsort
SELECT ALL - CASE - 93 WHEN + NULLIF ( - 82, - + 91 + + 68 ) THEN NULL ELSE - 16 END
----
16

query I rowsort
SELECT ALL - - ( - 16 ) AS col0
----
-16

query I rowsort
SELECT 97 * - - 86 * - 26 col0
----
-216892

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT - COUNT( * ) * - 81 + - 37 + - - SUM( ALL - - 2 ) + - 13 + - - 34 + + MIN( 77 ) * - 91 AS col0
----
-6940

skipif mysql # not compatible
query I rowsort label-2226
SELECT - COUNT ( * ) * - 81 + - 37 + - - SUM ( ALL - - 2 ) + - 13 + - - 34 + + MIN ( 77 ) * - 91 AS col0
----
-6940

query I rowsort
SELECT 59 + - 22 * + 86 + 38
----
-1795

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2228
SELECT ALL + 65 DIV + COUNT( DISTINCT - 66 )
----
65

skipif mysql # not compatible
query I rowsort label-2228
SELECT ALL + 65 / + COUNT ( DISTINCT - 66 )
----
65

query I rowsort
SELECT 46 + + 87 AS col2
----
133

query I rowsort
SELECT ( - 7 ) * 34
----
-238

query I rowsort
SELECT + 44 * + NULLIF ( + + 37, - 84 ) + + - 5 * - - 35 AS col2
----
1453

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT DISTINCT + + 37 + + 38 * - 54 + + + 81 + - MAX( DISTINCT - 21 ) * 21 AS col1
----
-1493

skipif mysql # not compatible
query I rowsort label-2232
SELECT DISTINCT + + 37 + + 38 * - 54 + + + 81 + - MAX ( DISTINCT - 21 ) * 21 AS col1
----
-1493

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT COUNT( * ) + + COUNT( * ) + + - 16 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-2233
SELECT COUNT ( * ) + + COUNT ( * ) + + - 16 AS col1
----
-14

query II rowsort
SELECT ALL 36, 42 * - 79 * - - 53 + 6 AS col0
----
36
-175848

query II rowsort
SELECT - 38, - 32 AS col1
----
-38
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2236
SELECT COUNT( DISTINCT - + 30 ) + + 26 + + ( ( + 42 ) ) DIV 34 * 71
----
98

skipif mysql # not compatible
query I rowsort label-2236
SELECT COUNT ( DISTINCT - + 30 ) + + 26 + + ( ( + 42 ) ) / 34 * 71
----
98

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2238
SELECT 9 + 25 - + 82 DIV COUNT( * ) * - - 73
----
-5952

skipif mysql # not compatible
query I rowsort label-2238
SELECT 9 + 25 - + 82 / COUNT ( * ) * - - 73
----
-5952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2239
SELECT ALL MAX( + 95 ) + + COUNT( ALL CAST( + 23 AS SIGNED ) ) * + + COUNT( ALL - - 56 )
----
96

skipif mysql # not compatible
query I rowsort label-2239
SELECT ALL MAX ( + 95 ) + + COUNT ( ALL CAST ( + 23 AS INTEGER ) ) * + + COUNT ( ALL - - 56 )
----
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT 25 + + 5 - + - COUNT( * ) col0
----
31

skipif mysql # not compatible
query I rowsort label-2241
SELECT 25 + + 5 - + - COUNT ( * ) col0
----
31

query II rowsort
SELECT DISTINCT 7 col1, ( + - 13 )
----
7
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2243
SELECT ALL COUNT( * ) DIV - 43 * + 61, MIN( DISTINCT - - 37 ) + + + COUNT( * ) * 32 AS col1
----
0
69

skipif mysql # not compatible
query II rowsort label-2243
SELECT ALL COUNT ( * ) / - 43 * + 61, MIN ( DISTINCT - - 37 ) + + + COUNT ( * ) * 32 AS col1
----
0
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2244
SELECT NULLIF ( COUNT( * ), - + 87 ) + - + 8 * - CASE - 10 WHEN 56 + + COUNT( * ) - COUNT( DISTINCT 79 ) * 17 * + MAX( + 72 ) THEN + 50 * + 21 ELSE NULL END * ( - 23 * CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2244
SELECT NULLIF ( COUNT ( * ), - + 87 ) + - + 8 * - CASE - 10 WHEN 56 + + COUNT ( * ) - COUNT ( DISTINCT 79 ) * 17 * + MAX ( + 72 ) THEN + 50 * + 21 ELSE NULL END * ( - 23 * CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT DISTINCT CASE 47 WHEN - + 96 * + COUNT( * ) + 66 THEN - 83 END * - 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2245
SELECT DISTINCT CASE 47 WHEN - + 96 * + COUNT ( * ) + 66 THEN - 83 END * - 99 AS col0
----
NULL

query I rowsort
SELECT ALL 13 - - 2 + - 11 + + 31
----
35

query I rowsort
SELECT DISTINCT CASE - - 19 WHEN + - 64 THEN - 16 END * + 55 * 40 + + 51
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2248
SELECT COALESCE ( - + 50, + 75 + - + CASE + - 89 WHEN + 90 - - - 48 THEN + ( + ( + 94 ) ) + - 26 DIV CASE - ( 35 ) * - 23 WHEN 49 * + 22 THEN - 81 * 72 - 84 WHEN + 37 * 87 THEN NULL END ELSE + 64 + COUNT( * ) END ) DIV + 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2248
SELECT COALESCE ( - + 50, + 75 + - + CASE + - 89 WHEN + 90 - - - 48 THEN + ( + ( + 94 ) ) + - 26 / CASE - ( 35 ) * - 23 WHEN 49 * + 22 THEN - 81 * 72 - 84 WHEN + 37 * 87 THEN NULL END ELSE + 64 + COUNT ( * ) END ) / + 57 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2249
SELECT ( - + 11 ) DIV 79 * - 81 * + + NULLIF ( + 51, - + ( + 51 ) + + NULLIF ( SUM( 94 ), - CAST( NULL AS SIGNED ) * - 61 ) ) * - COUNT( * ) + - 55
----
-55

skipif mysql # not compatible
query I rowsort label-2249
SELECT ( - + 11 ) / 79 * - 81 * + + NULLIF ( + 51, - + ( + 51 ) + + NULLIF ( SUM ( 94 ), - CAST ( NULL AS INTEGER ) * - 61 ) ) * - COUNT ( * ) + - 55
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-2250
SELECT 97, + 2 + 63 * COUNT( * ) AS col1
----
97
65

skipif mysql # not compatible
query II rowsort label-2250
SELECT 97, + 2 + 63 * COUNT ( * ) AS col1
----
97
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT 69 + - ( + COUNT( * ) ) + + COUNT( * ) + 72 + + MAX( - - 35 ) * - COUNT( 26 ) * COUNT( * ) * - 55 AS col2
----
2066

skipif mysql # not compatible
query I rowsort label-2251
SELECT 69 + - ( + COUNT ( * ) ) + + COUNT ( * ) + 72 + + MAX ( - - 35 ) * - COUNT ( 26 ) * COUNT ( * ) * - 55 AS col2
----
2066

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2252
SELECT ALL - 21 DIV + NULLIF ( - 16, - 69 ) + 65 + + COUNT( * ) + 36 AS col0
----
103

skipif mysql # not compatible
query I rowsort label-2252
SELECT ALL - 21 / + NULLIF ( - 16, - 69 ) + 65 + + COUNT ( * ) + 36 AS col0
----
103

query I rowsort
SELECT ALL - CASE + 10 WHEN 42 * + 8 THEN 70 ELSE - + 84 END
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2254
SELECT ALL CAST( NULL AS SIGNED ) - - - 65 * + - 78 * - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-2254
SELECT ALL CAST ( NULL AS INTEGER ) - - - 65 * + - 78 * - 93
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2255
SELECT 43 / CASE MIN( DISTINCT + 24 ) WHEN + + 63 THEN 88 WHEN - CAST( NULL AS SIGNED ) THEN 20 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2255
SELECT 43 / CASE MIN ( DISTINCT + 24 ) WHEN + + 63 THEN 88 WHEN - CAST ( NULL AS INTEGER ) THEN 20 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT - ( + COALESCE ( 65, - 2 + + + CASE - + COUNT( ALL - + 0 ) WHEN - 70 / + MAX( + 22 ) - 42 * + 5 THEN COUNT( * ) END * + 32, 51 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-2256
SELECT - ( + COALESCE ( 65, - 2 + + + CASE - + COUNT ( ALL - + 0 ) WHEN - 70 / + MAX ( + 22 ) - 42 * + 5 THEN COUNT ( * ) END * + 32, 51 ) )
----
-65

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT + SUM( DISTINCT 50 )
----
50

skipif mysql # not compatible
query I rowsort label-2258
SELECT + SUM ( DISTINCT 50 )
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2259
SELECT COALESCE ( 32, - 82 DIV + 13 + + ( + + 85 ), COUNT( + + 23 ) ) * - 7
----
-224

skipif mysql # not compatible
query I rowsort label-2259
SELECT COALESCE ( 32, - 82 / + 13 + + ( + + 85 ), COUNT ( + + 23 ) ) * - 7
----
-224

query I rowsort
SELECT ALL 77 * 30 + + 26 col0
----
2336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2261
SELECT - 60 / CASE - - SUM( - 61 ) WHEN 42 THEN + 65 + 78 WHEN SUM( - CASE + CAST( - 77 AS SIGNED ) WHEN 4 + 69 THEN NULL WHEN 86 * 49 + 34 THEN NULL ELSE - 83 + 81 END ) THEN + CAST( NULL AS SIGNED ) + COUNT( * ) * - 89 END + COUNT( 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2261
SELECT - 60 / CASE - - SUM ( - 61 ) WHEN 42 THEN + 65 + 78 WHEN SUM ( - CASE + CAST ( - 77 AS INTEGER ) WHEN 4 + 69 THEN NULL WHEN 86 * 49 + 34 THEN NULL ELSE - 83 + 81 END ) THEN + CAST ( NULL AS INTEGER ) + COUNT ( * ) * - 89 END + COUNT ( 39 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2262
SELECT DISTINCT - 75 * + CASE 6 WHEN - - 94 + 91 + + COUNT( * ) + MAX( + + 54 ) + 87 * + COUNT( 63 ) / 58 THEN 56 WHEN 30 * + 63 - 28 * COUNT( * ) THEN - CASE - 5 WHEN - CAST( NULL AS SIGNED ) * NULLIF ( 46, SUM( ALL 40 ) + - 48 ) - 68 THEN MAX( DISTINCT 30 ) WHEN COUNT( + 1 ) THEN + 21 END ELSE NULL END + 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2262
SELECT DISTINCT - 75 * + CASE 6 WHEN - - 94 + 91 + + COUNT ( * ) + MAX ( + + 54 ) + 87 * + COUNT ( 63 ) / 58 THEN 56 WHEN 30 * + 63 - 28 * COUNT ( * ) THEN - CASE - 5 WHEN - CAST ( NULL AS INTEGER ) * NULLIF ( 46, SUM ( ALL 40 ) + - 48 ) - 68 THEN MAX ( DISTINCT 30 ) WHEN COUNT ( + 1 ) THEN + 21 END ELSE NULL END + 35 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT ALL - + CASE 80 WHEN - 90 THEN 97 / COUNT( * ) END * - 79 / + 40 + - - 53 + 94 / - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-2263
SELECT ALL - + CASE 80 WHEN - 90 THEN 97 / COUNT ( * ) END * - 79 / + 40 + - - 53 + 94 / - 93
----
NULL

query I rowsort
SELECT ALL - - 47 + - 17
----
30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2265
SELECT - CAST( NULL AS DECIMAL ) / 62 * - + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-2265
SELECT - CAST ( NULL AS REAL ) / 62 * - + 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT ALL + SUM( DISTINCT - - ( 44 ) ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-2266
SELECT ALL + SUM ( DISTINCT - - ( 44 ) ) AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT - MAX( - 78 ) * + + 19 AS col0
----
1482

skipif mysql # not compatible
query I rowsort label-2267
SELECT - MAX ( - 78 ) * + + 19 AS col0
----
1482

query I rowsort
SELECT - 91 + 79 AS col1
----
-12

query I rowsort
SELECT ALL + ( - 47 ) - - 51
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT ALL - 39 * - COUNT( + NULLIF ( - - 65, + - 64 ) ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-2270
SELECT ALL - 39 * - COUNT ( + NULLIF ( - - 65, + - 64 ) ) AS col0
----
39

query II rowsort
SELECT - 55 * + - 9 AS col1, + 42 * - 55 AS col1
----
495
-2310

query I rowsort
SELECT ALL COALESCE ( + 27, - COALESCE ( - + 45, - 17 ) )
----
27

query I rowsort
SELECT DISTINCT + NULLIF ( + 38, + 39 ) * 92
----
3496

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT - 19 - COUNT( * ) + + 63 / - + 37 + - + 6 + - ( + + SUM( DISTINCT CASE - 28 WHEN - 33 + 75 THEN - 19 WHEN + NULLIF ( + 1, 61 ) + + 87 THEN NULL END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2274
SELECT - 19 - COUNT ( * ) + + 63 / - + 37 + - + 6 + - ( + + SUM ( DISTINCT CASE - 28 WHEN - 33 + 75 THEN - 19 WHEN + NULLIF ( + 1, 61 ) + + 87 THEN NULL END ) )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT ALL COALESCE ( - 15, - COUNT( DISTINCT + 77 ), + 73 + 36 )
----
-15

skipif mysql # not compatible
query I rowsort label-2276
SELECT ALL COALESCE ( - 15, - COUNT ( DISTINCT + 77 ), + 73 + 36 )
----
-15

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

query I rowsort
SELECT DISTINCT CASE - 42 WHEN + 54 THEN NULL ELSE + 84 + + ( - + 44 ) END AS col2
----
40

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2280
SELECT DISTINCT + COUNT( * ) * + + 59 AS col0, 55 AS col0
----
59
55

skipif mysql # not compatible
query II rowsort label-2280
SELECT DISTINCT + COUNT ( * ) * + + 59 AS col0, 55 AS col0
----
59
55

query I rowsort
SELECT ALL - 98 * 69 * + 49
----
-331338

onlyif mysql # aggregate syntax: 
query I rowsort label-2282
SELECT DISTINCT 16 * + COUNT( * ) * 20
----
320

skipif mysql # not compatible
query I rowsort label-2282
SELECT DISTINCT 16 * + COUNT ( * ) * 20
----
320

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT + 16 * 4 * + COUNT( * ) + - 6
----
58

skipif mysql # not compatible
query I rowsort label-2283
SELECT + 16 * 4 * + COUNT ( * ) + - 6
----
58

query I rowsort
SELECT DISTINCT + ( + 93 ) * + + 51
----
4743

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT ALL + 15 * - ( + 55 ) + + 60 * + - 40 * COALESCE ( 64, SUM( ALL - 64 ) ) + + 37
----
-154388

skipif mysql # not compatible
query I rowsort label-2285
SELECT ALL + 15 * - ( + 55 ) + + 60 * + - 40 * COALESCE ( 64, SUM ( ALL - 64 ) ) + + 37
----
-154388

onlyif mysql # aggregate syntax: 
query I rowsort label-2286
SELECT ALL - MAX( - 6 ) * - 37 + 14 + + - ( 29 )
----
-237

skipif mysql # not compatible
query I rowsort label-2286
SELECT ALL - MAX ( - 6 ) * - 37 + 14 + + - ( 29 )
----
-237

query I rowsort
SELECT - + 43 * - 80 * 46 + 61 AS col0
----
158301

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2288
SELECT COUNT( * ) DIV - CAST( COALESCE ( 60, SUM( - ( - ( 21 ) ) ) DIV - 94 + 73 + MIN( ALL 63 ), - 95 ) AS SIGNED ) + - 50
----
-50

skipif mysql # not compatible
query I rowsort label-2288
SELECT COUNT ( * ) / - CAST ( COALESCE ( 60, SUM ( - ( - ( 21 ) ) ) / - 94 + 73 + MIN ( ALL 63 ), - 95 ) AS INTEGER ) + - 50
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2289
SELECT + - CAST( + NULLIF ( 66, + - ( + COUNT( * ) ) + - 96 ) AS SIGNED ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-2289
SELECT + - CAST ( + NULLIF ( 66, + - ( + COUNT ( * ) ) + - 96 ) AS INTEGER ) AS col2
----
-66

query I rowsort
SELECT + 91 * 49 + ( + 19 )
----
4478

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2291
SELECT ALL CASE + - 42 WHEN + + 97 THEN - - 50 * - - MIN( ALL CAST( - 75 AS DECIMAL ) ) * - 37 ELSE - 37 * - CAST( NULL AS SIGNED ) + - MIN( ALL + 32 ) END * AVG ( 25 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2291
SELECT ALL CASE + - 42 WHEN + + 97 THEN - - 50 * - - MIN ( ALL CAST ( - 75 AS REAL ) ) * - 37 ELSE - 37 * - CAST ( NULL AS INTEGER ) + - MIN ( ALL + 32 ) END * AVG ( 25 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2292
SELECT 43 * + 92 * + - 72 + + MAX( ALL - - 20 ) + + 24 * + 55 + SUM( ALL + + 1 ) * SUM( ALL + 50 ) DIV - MIN( ( + 64 ) )
----
-283492

skipif mysql # not compatible
query I rowsort label-2292
SELECT 43 * + 92 * + - 72 + + MAX ( ALL - - 20 ) + + 24 * + 55 + SUM ( ALL + + 1 ) * SUM ( ALL + 50 ) / - MIN ( ( + 64 ) )
----
-283492

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2294
SELECT ALL + ( + + CAST( - 76 AS SIGNED ) ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL + ( + + CAST ( - 76 AS INTEGER ) ) AS col0
----
-76

query II rowsort
SELECT + 38 * - - 49 * + 36 AS col2, - 31 AS col0
----
67032
-31

query I rowsort
SELECT ALL NULLIF ( - 75, + - 99 ) * - - 26
----
-1950

query I rowsort
SELECT + 2 * + + 40
----
80

query I rowsort
SELECT + 95 + + 56 AS col0
----
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2299
SELECT - 54 / - 7 * + + CAST( + + COUNT( * ) AS SIGNED ) * + + CAST( NULL AS SIGNED ) * MAX( DISTINCT CAST( 53 AS SIGNED ) ) * + 46 * + 2 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2299
SELECT - 54 / - 7 * + + CAST ( + + COUNT ( * ) AS INTEGER ) * + + CAST ( NULL AS INTEGER ) * MAX ( DISTINCT CAST ( 53 AS INTEGER ) ) * + 46 * + 2 + COUNT ( * )
----
NULL

query I rowsort
SELECT - 60 * + 46
----
-2760

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT ALL - ( + COUNT( * ) ) * - - 53 + - 94 AS col1
----
-147

skipif mysql # not compatible
query I rowsort label-2301
SELECT ALL - ( + COUNT ( * ) ) * - - 53 + - 94 AS col1
----
-147

query I rowsort
SELECT - 72 + 1
----
-71

query I rowsort
SELECT DISTINCT - 63 * - + 10 AS col2
----
630

query I rowsort
SELECT ALL + 0 * + + 63
----
0

query I rowsort
SELECT DISTINCT + 91 * - 37 AS col0
----
-3367

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2306
SELECT ALL + 13 + + 98 + - 5 * CAST( - ( - CAST( + COUNT( * ) AS SIGNED ) ) AS SIGNED ) - + CASE WHEN 44 IN ( MIN( - COALESCE ( + 11, + 72 ) ) + MIN( ALL + ( - 84 ) ) * ( ( 21 ) ) ) THEN NULL ELSE 40 + - MIN( + 44 ) END
----
110

skipif mysql # not compatible
query I rowsort label-2306
SELECT ALL + 13 + + 98 + - 5 * CAST ( - ( - CAST ( + COUNT ( * ) AS INTEGER ) ) AS INTEGER ) - + CASE WHEN 44 IN ( MIN ( - COALESCE ( + 11, + 72 ) ) + MIN ( ALL + ( - 84 ) ) * ( ( 21 ) ) ) THEN NULL ELSE 40 + - MIN ( + 44 ) END
----
110

query I rowsort
SELECT - + 7 + + 12 AS col2
----
5

query I rowsort
SELECT - - 33 + + 18 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT + MAX( DISTINCT - - 50 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-2309
SELECT + MAX ( DISTINCT - - 50 ) AS col1
----
50

query I rowsort
SELECT + + 58 + - 25
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2311
SELECT ALL + 52 + + COUNT( * ) + CAST( NULL AS SIGNED ) * + ( + ( - 10 ) ) / - 4 + + + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-2311
SELECT ALL + 52 + + COUNT ( * ) + CAST ( NULL AS INTEGER ) * + ( + ( - 10 ) ) / - 4 + + + 83
----
NULL

query I rowsort
SELECT ALL - + 97 + - ( + 72 )
----
-169

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT ALL + COALESCE ( + + ( + + COUNT( * ) ), + 35 )
----
1

skipif mysql # not compatible
query I rowsort label-2315
SELECT ALL + COALESCE ( + + ( + + COUNT ( * ) ), + 35 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2316
SELECT DISTINCT + SUM( ALL - 38 ) + CAST( + 65 AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-2316
SELECT DISTINCT + SUM ( ALL - 38 ) + CAST ( + 65 AS INTEGER )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT DISTINCT - - COALESCE ( - + COUNT( * ), - 3, + ( - + 51 ) ) + - 43 AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-2317
SELECT DISTINCT - - COALESCE ( - + COUNT ( * ), - 3, + ( - + 51 ) ) + - 43 AS col2
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-2318
SELECT ALL - - 63 col0, COUNT( 47 ) - + + 6 AS col1
----
63
-5

skipif mysql # not compatible
query II rowsort label-2318
SELECT ALL - - 63 col0, COUNT ( 47 ) - + + 6 AS col1
----
63
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2319
SELECT ALL - 37 + ( - CASE 87 WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN + 1 THEN 37 END ) - 70 + + - 92 * 18 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2319
SELECT ALL - 37 + ( - CASE 87 WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 1 THEN 37 END ) - 70 + + - 92 * 18 col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2321
SELECT ALL - - 93 * + COUNT( * ) * + 9 * - MIN( ( 50 ) ) AS col2
----
-41850

skipif mysql # not compatible
query I rowsort label-2321
SELECT ALL - - 93 * + COUNT ( * ) * + 9 * - MIN ( ( 50 ) ) AS col2
----
-41850

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT DISTINCT - 92 * + AVG ( - 73 ) * COUNT( * ) + CASE 50 WHEN + + 41 + - 61 THEN 96 - + 9 * - 37 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2322
SELECT DISTINCT - 92 * + AVG ( - 73 ) * COUNT ( * ) + CASE 50 WHEN + + 41 + - 61 THEN 96 - + 9 * - 37 END AS col1
----
NULL

query I rowsort
SELECT ALL 34 - 60
----
-26

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2324
SELECT - COUNT( * ) - - + 27 + CASE - - 41 WHEN 74 THEN 11 WHEN + + CAST( NULL AS DECIMAL ) + - 61 THEN 28 END * - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-2324
SELECT - COUNT ( * ) - - + 27 + CASE - - 41 WHEN 74 THEN 11 WHEN + + CAST ( NULL AS REAL ) + - 61 THEN 28 END * - 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT 90 * + COALESCE ( + - 95, - 82 ) * - 72 * + COUNT( * ) + 82 col0
----
615682

skipif mysql # not compatible
query I rowsort label-2325
SELECT 90 * + COALESCE ( + - 95, - 82 ) * - 72 * + COUNT ( * ) + 82 col0
----
615682

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2326
SELECT 54 DIV + - ( 43 ) + + 77 + - - 63, COUNT( * ) + - 56 AS col2
----
139
-55

skipif mysql # not compatible
query II rowsort label-2326
SELECT 54 / + - ( 43 ) + + 77 + - - 63, COUNT ( * ) + - 56 AS col2
----
139
-55

query I rowsort
SELECT 92 * 55
----
5060

onlyif mysql # aggregate syntax: 
query II rowsort label-2328
SELECT ALL - 74 AS col1, COUNT( * ) * - COUNT( * ) + 10 + - + 2 * NULLIF ( 75, - 69 / 70 / - 96 ) * + + 52 * 83
----
-74
-647391

skipif mysql # not compatible
query II rowsort label-2328
SELECT ALL - 74 AS col1, COUNT ( * ) * - COUNT ( * ) + 10 + - + 2 * NULLIF ( 75, - 69 / 70 / - 96 ) * + + 52 * 83
----
-74
-647391

onlyif mysql # aggregate syntax: 
query II rowsort label-2329
SELECT 60 AS col0, MIN( - 88 ) - - - 70
----
60
-158

skipif mysql # not compatible
query II rowsort label-2329
SELECT 60 AS col0, MIN ( - 88 ) - - - 70
----
60
-158

onlyif mysql # DIV for integer division: 
query I rowsort label-2330
SELECT ALL 32 DIV + 40 col1
----
0

skipif mysql # not compatible
query I rowsort label-2330
SELECT ALL 32 / + 40 col1
----
0

query I rowsort
SELECT 19 * 73 AS col2
----
1387

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2332
SELECT ALL SUM( ALL - + NULLIF ( - - CAST( + 34 AS SIGNED ), + 87 ) ) DIV + + 83 col1
----
0

skipif mysql # not compatible
query I rowsort label-2332
SELECT ALL SUM ( ALL - + NULLIF ( - - CAST ( + 34 AS INTEGER ), + 87 ) ) / + + 83 col1
----
0

query I rowsort
SELECT DISTINCT 61 - - 1 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT COUNT( * ) + 6 + + + 18
----
25

skipif mysql # not compatible
query I rowsort label-2334
SELECT COUNT ( * ) + 6 + + + 18
----
25

query II rowsort
SELECT 92 AS col1, - 79 + - 57 * 11
----
92
-706

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

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

query I rowsort
SELECT 54 * - + 58 * 16 AS col2
----
-50112

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT ALL 90 * MIN( ALL - 73 ) * - - ( + - 65 ) * + COUNT( * ) + 98
----
427148

skipif mysql # not compatible
query I rowsort label-2338
SELECT ALL 90 * MIN ( ALL - 73 ) * - - ( + - 65 ) * + COUNT ( * ) + 98
----
427148

query II rowsort
SELECT + 55 AS col0, 71
----
55
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT DISTINCT 25 * - + ( - MAX( - 64 ) )
----
-1600

skipif mysql # not compatible
query I rowsort label-2340
SELECT DISTINCT 25 * - + ( - MAX ( - 64 ) )
----
-1600

query I rowsort
SELECT ALL 42 * - 96
----
-4032

query I rowsort
SELECT 44 * - 31 col2
----
-1364

query I rowsort
SELECT ALL 54 * - 31
----
-1674

query II rowsort
SELECT - 66 AS col1, - 41 AS col2
----
-66
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-2345
SELECT ALL + 4 + 89 DIV - 65
----
3

skipif mysql # not compatible
query I rowsort label-2345
SELECT ALL + 4 + 89 / - 65
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2346
SELECT ALL - 41 + COALESCE ( + CAST( NULL AS SIGNED ), - 26 + CASE + 29 WHEN - 63 THEN CAST( NULL AS SIGNED ) - - - 75 ELSE NULL END, - COUNT( * ) * + COUNT( * ) ) * 0
----
-41

skipif mysql # not compatible
query I rowsort label-2346
SELECT ALL - 41 + COALESCE ( + CAST ( NULL AS INTEGER ), - 26 + CASE + 29 WHEN - 63 THEN CAST ( NULL AS INTEGER ) - - - 75 ELSE NULL END, - COUNT ( * ) * + COUNT ( * ) ) * 0
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2347
SELECT - 45 - CAST( MAX( DISTINCT + 81 ) AS SIGNED )
----
-126

skipif mysql # not compatible
query I rowsort label-2347
SELECT - 45 - CAST ( MAX ( DISTINCT + 81 ) AS INTEGER )
----
-126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2348
SELECT - 19 DIV + + MAX( DISTINCT + 1 ) col0
----
-19

skipif mysql # not compatible
query I rowsort label-2348
SELECT - 19 / + + MAX ( DISTINCT + 1 ) col0
----
-19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2349
SELECT ALL - + CAST( NULL AS DECIMAL ) + - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-2349
SELECT ALL - + CAST ( NULL AS REAL ) + - 30
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2350
SELECT COUNT( * ) - - ( - 76 ) + + CASE + COUNT( * ) WHEN + 24 THEN ( + - 71 ) * - 79 * - 33 * + COUNT( * ) * + CASE - NULLIF ( 46, + AVG ( + 40 ) * 26 ) WHEN - CAST( 20 AS SIGNED ) / COUNT( * ) + 8 THEN NULL WHEN - 1 THEN 52 + 41 ELSE NULL END + - 39 WHEN 84 / 18 THEN NULL END * + 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2350
SELECT COUNT ( * ) - - ( - 76 ) + + CASE + COUNT ( * ) WHEN + 24 THEN ( + - 71 ) * - 79 * - 33 * + COUNT ( * ) * + CASE - NULLIF ( 46, + AVG ( + 40 ) * 26 ) WHEN - CAST ( 20 AS INTEGER ) / COUNT ( * ) + 8 THEN NULL WHEN - 1 THEN 52 + 41 ELSE NULL END + - 39 WHEN 84 / 18 THEN NULL END * + 70 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 48 + - 9 - - - COALESCE ( - 39, 28 - 55 ) * - 0 * + 25 AS col1
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2352
SELECT + 86 DIV MIN( + 66 )
----
1

skipif mysql # not compatible
query I rowsort label-2352
SELECT + 86 / MIN ( + 66 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2353
SELECT ALL + COUNT( * ) + + - MAX( ALL + 63 ) * + 68 col2, 93 * - COUNT( - + 36 ) + - CASE 68 WHEN - CASE - 10 WHEN - 74 + 75 * - COUNT( * ) THEN NULL ELSE + CAST( + COALESCE ( + 1, NULLIF ( COUNT( * ), 4 ), + 60 ) AS SIGNED ) END THEN - 3 - + MIN( - 58 ) ELSE NULL END
----
-4283
NULL

skipif mysql # not compatible
query II rowsort label-2353
SELECT ALL + COUNT ( * ) + + - MAX ( ALL + 63 ) * + 68 col2, 93 * - COUNT ( - + 36 ) + - CASE 68 WHEN - CASE - 10 WHEN - 74 + 75 * - COUNT ( * ) THEN NULL ELSE + CAST ( + COALESCE ( + 1, NULLIF ( COUNT ( * ), 4 ), + 60 ) AS INTEGER ) END THEN - 3 - + MIN ( - 58 ) ELSE NULL END
----
-4283
NULL

query I rowsort
SELECT + 95 * 34
----
3230

query I rowsort
SELECT ALL + 40 + - 96 * 52 AS col0
----
-4952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2356
SELECT SUM( DISTINCT + + CAST( + 86 AS SIGNED ) ) * - - ( - + COUNT( * ) )
----
-86

skipif mysql # not compatible
query I rowsort label-2356
SELECT SUM ( DISTINCT + + CAST ( + 86 AS INTEGER ) ) * - - ( - + COUNT ( * ) )
----
-86

query I rowsort
SELECT + 70 * 80 + + - 49 AS col2
----
5551

query I rowsort
SELECT + 11 * 56
----
616

onlyif mysql # aggregate syntax: 
query II rowsort label-2359
SELECT DISTINCT - 35 AS col2, + COUNT( * ) + + COUNT( * ) AS col1
----
-35
2

skipif mysql # not compatible
query II rowsort label-2359
SELECT DISTINCT - 35 AS col2, + COUNT ( * ) + + COUNT ( * ) AS col1
----
-35
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2360
SELECT ALL - + 85, + COUNT( DISTINCT + + 12 ) * - + CAST( NULL AS SIGNED ) * - 97 AS col0
----
-85
NULL

skipif mysql # not compatible
query II rowsort label-2360
SELECT ALL - + 85, + COUNT ( DISTINCT + + 12 ) * - + CAST ( NULL AS INTEGER ) * - 97 AS col0
----
-85
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT 28 * NULLIF ( - - 78, + 46 + - - COUNT( * ) )
----
2184

skipif mysql # not compatible
query I rowsort label-2361
SELECT 28 * NULLIF ( - - 78, + 46 + - - COUNT ( * ) )
----
2184

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

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

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

skipif mysql # not compatible
query I rowsort label-2363
SELECT ALL - CAST ( + 60 AS INTEGER ) AS col2
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2364
SELECT ALL - CAST( + 33 AS SIGNED ) AS col1, 92
----
-33
92

skipif mysql # not compatible
query II rowsort label-2364
SELECT ALL - CAST ( + 33 AS INTEGER ) AS col1, 92
----
-33
92

onlyif mysql # DIV for integer division: 
query II rowsort label-2365
SELECT 18 DIV - + ( - + 22 ) AS col0, 23 + - + 20
----
0
3

skipif mysql # not compatible
query II rowsort label-2365
SELECT 18 / - + ( - + 22 ) AS col0, 23 + - + 20
----
0
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2366
SELECT COUNT( * ) DIV + 67 * + 87 DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-2366
SELECT COUNT ( * ) / + 67 * + 87 / - 78
----
0

query I rowsort
SELECT ALL - 18 * - 92
----
1656

onlyif mysql # DIV for integer division: 
query II rowsort label-2368
SELECT DISTINCT 78 DIV 99 AS col1, - 9 + - - ( - 12 )
----
0
-21

skipif mysql # not compatible
query II rowsort label-2368
SELECT DISTINCT 78 / 99 AS col1, - 9 + - - ( - 12 )
----
0
-21

query I rowsort
SELECT ALL 36 + - 21 AS col0
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-2370
SELECT DISTINCT 42 + + - COUNT( * ), + COUNT( * ) * + - 48 AS col2
----
41
-48

skipif mysql # not compatible
query II rowsort label-2370
SELECT DISTINCT 42 + + - COUNT ( * ), + COUNT ( * ) * + - 48 AS col2
----
41
-48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT COUNT( * ) - - 64 + + 93 + ( - 65 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-2372
SELECT COUNT ( * ) - - 64 + + 93 + ( - 65 ) AS col0
----
93

query I rowsort
SELECT ( + 14 ) + + 42 AS col0
----
56

query I rowsort
SELECT ALL 96 + + 95
----
191

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT ALL ( CASE - COUNT( ALL - - 0 ) WHEN - 0 + + 63 + + 77 * - + 96 THEN + AVG ( DISTINCT - 97 ) ELSE - COUNT( * ) END )
----
-1

skipif mysql # not compatible
query I rowsort label-2375
SELECT ALL ( CASE - COUNT ( ALL - - 0 ) WHEN - 0 + + 63 + + 77 * - + 96 THEN + AVG ( DISTINCT - 97 ) ELSE - COUNT ( * ) END )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT + - ( 91 ) + + COUNT( * ) * + 90 col1
----
-1

skipif mysql # not compatible
query I rowsort label-2376
SELECT + - ( 91 ) + + COUNT ( * ) * + 90 col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2377
SELECT ALL - 50 + + + CAST( COUNT( * ) AS SIGNED ) + + 46 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-2377
SELECT ALL - 50 + + + CAST ( COUNT ( * ) AS INTEGER ) + + 46 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT DISTINCT + 92 + - 65 * - + 31 * + - COUNT( * )
----
-1923

skipif mysql # not compatible
query I rowsort label-2378
SELECT DISTINCT + 92 + - 65 * - + 31 * + - COUNT ( * )
----
-1923

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

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

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

query I rowsort
SELECT ALL 62 * - 31
----
-1922

query I rowsort
SELECT + 6 + + NULLIF ( - 30, + + 12 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT DISTINCT COALESCE ( - + 56, - 55 * - MIN( + ( 18 ) ), - - COUNT( * ) )
----
-56

skipif mysql # not compatible
query I rowsort label-2383
SELECT DISTINCT COALESCE ( - + 56, - 55 * - MIN ( + ( 18 ) ), - - COUNT ( * ) )
----
-56

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

skipif mysql # not compatible
query I rowsort label-2384
SELECT ALL - CAST ( NULL AS INTEGER ) - + + COUNT ( * ) + + 0 * - 94 / - 12 * 90
----
NULL

query II rowsort
SELECT + - 3 * 14 AS col2, - 9 AS col0
----
-42
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2386
SELECT - + 98 * NULLIF ( - 4, CAST( NULL AS DECIMAL ) ) AS col0
----
392

skipif mysql # not compatible
query I rowsort label-2386
SELECT - + 98 * NULLIF ( - 4, CAST ( NULL AS REAL ) ) AS col0
----
392

query I rowsort
SELECT - ( - 63 ) + + + 52 AS col2
----
115

query I rowsort
SELECT ALL + - 26 * 51 * - + 66
----
87516

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2389
SELECT - CAST( + - 54 AS SIGNED ), - CAST( NULL AS SIGNED ) - 76 AS col0
----
54
NULL

skipif mysql # not compatible
query II rowsort label-2389
SELECT - CAST ( + - 54 AS INTEGER ), - CAST ( NULL AS INTEGER ) - 76 AS col0
----
54
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT ALL NULLIF ( + 62, ( 18 ) + + + SUM( DISTINCT 40 ) ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL NULLIF ( + 62, ( 18 ) + + + SUM ( DISTINCT 40 ) ) AS col1
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-2391
SELECT DISTINCT - 15 DIV - 55
----
0

skipif mysql # not compatible
query I rowsort label-2391
SELECT DISTINCT - 15 / - 55
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2392
SELECT DISTINCT - CASE + 15 WHEN - - CAST( - 46 AS SIGNED ) + - 28 + - + 20 * + 91 * + - COUNT( * ) * - COALESCE ( - 62, 74, + 23 ) THEN NULL WHEN 63 THEN - 32 ELSE - COUNT( + ( 52 ) ) + 48 END * COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-2392
SELECT DISTINCT - CASE + 15 WHEN - - CAST ( - 46 AS INTEGER ) + - 28 + - + 20 * + 91 * + - COUNT ( * ) * - COALESCE ( - 62, 74, + 23 ) THEN NULL WHEN 63 THEN - 32 ELSE - COUNT ( + ( 52 ) ) + 48 END * COUNT ( * )
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2393
SELECT DISTINCT - ( 96 ) * - CAST( + 18 AS SIGNED )
----
1728

skipif mysql # not compatible
query I rowsort label-2393
SELECT DISTINCT - ( 96 ) * - CAST ( + 18 AS INTEGER )
----
1728

query I rowsort
SELECT + 3 * + 7
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2395
SELECT - 8 * - CAST( - + SUM( 44 ) AS SIGNED ) AS col2
----
-352

skipif mysql # not compatible
query I rowsort label-2395
SELECT - 8 * - CAST ( - + SUM ( 44 ) AS INTEGER ) AS col2
----
-352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2396
SELECT COALESCE ( + - COUNT( * ), - CAST( NULL AS SIGNED ) * - 11, + 87 * + 92 * 47 + + 57 + + + 75 + - 73 DIV + - 64 + + COALESCE ( - + 43, CAST( NULL AS SIGNED ) - + 58, - 17 * ( 65 * + 4 ) ) * 58 )
----
-1

skipif mysql # not compatible
query I rowsort label-2396
SELECT COALESCE ( + - COUNT ( * ), - CAST ( NULL AS INTEGER ) * - 11, + 87 * + 92 * 47 + + 57 + + + 75 + - 73 / + - 64 + + COALESCE ( - + 43, CAST ( NULL AS INTEGER ) - + 58, - 17 * ( 65 * + 4 ) ) * 58 )
----
-1

query I rowsort
SELECT - 55 - 60 * + 18
----
-1135

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT ALL + SUM( DISTINCT - 54 ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-2398
SELECT ALL + SUM ( DISTINCT - 54 ) AS col1
----
-54

query I rowsort
SELECT - 73 * 75
----
-5475

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT DISTINCT + 92 * + 56 * + 1 + + COUNT( * ) + MAX( DISTINCT + 15 )
----
5168

skipif mysql # not compatible
query I rowsort label-2400
SELECT DISTINCT + 92 * + 56 * + 1 + + COUNT ( * ) + MAX ( DISTINCT + 15 )
----
5168

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT COALESCE ( - COUNT( * ), 73 * + 23 )
----
-1

skipif mysql # not compatible
query I rowsort label-2401
SELECT COALESCE ( - COUNT ( * ), 73 * + 23 )
----
-1

query I rowsort
SELECT ALL 46 * - 4 * 9 + 79 * 59 * + 32 AS col1
----
147496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2403
SELECT ALL CAST( NULL AS SIGNED ) * - ( - 54 ) * + 87 + + NULLIF ( - + COALESCE ( - 26, - COUNT( * ) + + COUNT( * ) ), + 53 * + 70 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2403
SELECT ALL CAST ( NULL AS INTEGER ) * - ( - 54 ) * + 87 + + NULLIF ( - + COALESCE ( - 26, - COUNT ( * ) + + COUNT ( * ) ), + 53 * + 70 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 54 * - 62 AS col2
----
-3348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2405
SELECT - CASE COALESCE ( 14, 66 * 72, COUNT( ALL + + CAST( NULL AS SIGNED ) ) * + + COALESCE ( + 21, - - ( + 90 ) / - COUNT( * ) + 78 ) ) WHEN - 49 * + 19 + CAST( NULL AS DECIMAL ) * - ( - 94 ) THEN - ( + 79 ) * - 93 WHEN 66 * 97 THEN COUNT( * ) END - - COALESCE ( 36, - 60 / + ( ( 19 ) ) + + 63 / - 62, - 50 / - 73 - 33 / 59 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2405
SELECT - CASE COALESCE ( 14, 66 * 72, COUNT ( ALL + + CAST ( NULL AS INTEGER ) ) * + + COALESCE ( + 21, - - ( + 90 ) / - COUNT ( * ) + 78 ) ) WHEN - 49 * + 19 + CAST ( NULL AS REAL ) * - ( - 94 ) THEN - ( + 79 ) * - 93 WHEN 66 * 97 THEN COUNT ( * ) END - - COALESCE ( 36, - 60 / + ( ( 19 ) ) + + 63 / - 62, - 50 / - 73 - 33 / 59 ) AS col1
----
NULL

query I rowsort
SELECT COALESCE ( - + 24, + 50 ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT ALL 83 * - 30 + + 38 + - - COUNT( * ) * + 74
----
-2378

skipif mysql # not compatible
query I rowsort label-2407
SELECT ALL 83 * - 30 + + 38 + - - COUNT ( * ) * + 74
----
-2378

query I rowsort
SELECT CASE - + 5 WHEN ( - 97 ) THEN NULL ELSE - 13 END
----
-13

query II rowsort
SELECT + 21 AS col0, 57
----
21
57

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT + SUM( DISTINCT - - 60 )
----
60

skipif mysql # not compatible
query I rowsort label-2411
SELECT + SUM ( DISTINCT - - 60 )
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2412
SELECT + AVG ( ALL CAST( NULL AS SIGNED ) ) * - 57 + + + 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2412
SELECT + AVG ( ALL CAST ( NULL AS INTEGER ) ) * - 57 + + + 67 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2413
SELECT + + 93 DIV - NULLIF ( + + CAST( - 49 AS SIGNED ), - MAX( ALL + 17 ) * - 8 ) - + 83 * 7
----
-580

skipif mysql # not compatible
query I rowsort label-2413
SELECT + + 93 / - NULLIF ( + + CAST ( - 49 AS INTEGER ), - MAX ( ALL + 17 ) * - 8 ) - + 83 * 7
----
-580

onlyif mysql # DIV for integer division: 
query I rowsort label-2414
SELECT DISTINCT + 82 DIV - COALESCE ( - 97, - 15 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2414
SELECT DISTINCT + 82 / - COALESCE ( - 97, - 15 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2415
SELECT DISTINCT 55 DIV - 17 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-2415
SELECT DISTINCT 55 / - 17 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2416
SELECT - - 7 * - - 32 * - 52 col0, 17 + + SUM( + 49 ) AS col0
----
-11648
66

skipif mysql # not compatible
query II rowsort label-2416
SELECT - - 7 * - - 32 * - 52 col0, 17 + + SUM ( + 49 ) AS col0
----
-11648
66

query I rowsort
SELECT - + 49 * 90 col2
----
-4410

query I rowsort
SELECT - + 33 - - 58
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT + 57 - ( + + COUNT( * ) ) * - 61
----
118

skipif mysql # not compatible
query I rowsort label-2419
SELECT + 57 - ( + + COUNT ( * ) ) * - 61
----
118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2420
SELECT + COALESCE ( - 28, - - 90 + 4, - 78 * + + 31 + + CASE + MAX( + 29 ) WHEN - - 58 + SUM( ALL 13 ) THEN - 39 DIV COUNT( * ) WHEN - 62 + + COUNT( * ) THEN COUNT( * ) END * 27 ) * 75 AS col1
----
-2100

skipif mysql # not compatible
query I rowsort label-2420
SELECT + COALESCE ( - 28, - - 90 + 4, - 78 * + + 31 + + CASE + MAX ( + 29 ) WHEN - - 58 + SUM ( ALL 13 ) THEN - 39 / COUNT ( * ) WHEN - 62 + + COUNT ( * ) THEN COUNT ( * ) END * 27 ) * 75 AS col1
----
-2100

query I rowsort
SELECT ALL CASE + - 60 WHEN 67 * - + 65 THEN NULL ELSE + + 11 END
----
11

query II rowsort
SELECT - 96 col0, ( + - 40 )
----
-96
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-2423
SELECT ALL 23 * + 34 + + 53 DIV - 70
----
782

skipif mysql # not compatible
query I rowsort label-2423
SELECT ALL 23 * + 34 + + 53 / - 70
----
782

query I rowsort
SELECT ALL + 86 * + + 4
----
344

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2425
SELECT ALL 18 AS col0, - CAST( NULL AS SIGNED ) AS col1
----
18
NULL

skipif mysql # not compatible
query II rowsort label-2425
SELECT ALL 18 AS col0, - CAST ( NULL AS INTEGER ) AS col1
----
18
NULL

query I rowsort
SELECT + - 17 - - 55 AS col0
----
38

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT ALL - 64 / CASE 36 WHEN 84 * + 63 + - 14 THEN + + 22 + 82 - - + COUNT( * ) + + 63 ELSE NULL END + + + 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2429
SELECT ALL - 64 / CASE 36 WHEN 84 * + 63 + - 14 THEN + + 22 + 82 - - + COUNT ( * ) + + 63 ELSE NULL END + + + 83 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2430
SELECT ALL 36 DIV 3 + - + 19 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-2430
SELECT ALL 36 / 3 + - + 19 AS col1
----
-7

query I rowsort
SELECT + 54 * - 78 + 20
----
-4192

onlyif mysql # DIV for integer division: 
query I rowsort label-2432
SELECT DISTINCT 35 DIV - 84 * - - NULLIF ( + 90, - 57 ) + 15
----
15

skipif mysql # not compatible
query I rowsort label-2432
SELECT DISTINCT 35 / - 84 * - - NULLIF ( + 90, - 57 ) + 15
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2433
SELECT CAST( - - 27 AS SIGNED ) col1
----
27

skipif mysql # not compatible
query I rowsort label-2433
SELECT CAST ( - - 27 AS INTEGER ) col1
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-2434
SELECT ALL 10 DIV - + 49 + 91
----
91

skipif mysql # not compatible
query I rowsort label-2434
SELECT ALL 10 / - + 49 + 91
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-2435
SELECT + COUNT( DISTINCT + 68 ), - 28 + - 72 + + COUNT( * ) * 77 AS col0
----
1
-23

skipif mysql # not compatible
query II rowsort label-2435
SELECT + COUNT ( DISTINCT + 68 ), - 28 + - 72 + + COUNT ( * ) * 77 AS col0
----
1
-23

query I rowsort
SELECT DISTINCT + COALESCE ( - - 84, 57 )
----
84

query I rowsort
SELECT ALL 65 + 54
----
119

query I rowsort
SELECT ALL 24 - + 90
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2439
SELECT DISTINCT - CAST( 17 AS SIGNED ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-2439
SELECT DISTINCT - CAST ( 17 AS INTEGER ) AS col0
----
-17

query I rowsort
SELECT 95 - ( - 74 )
----
169

query I rowsort
SELECT + 65 * + - 2 * + 2
----
-260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2442
SELECT + + CASE - 51 WHEN + - COUNT( * ) * + 7 * + - 72 - - CASE + CASE + + 51 WHEN - AVG ( ALL + 19 ) THEN - CAST( - - 48 AS SIGNED ) + + 46 WHEN 9 * 60 THEN NULL WHEN + 60 / 37 THEN NULL END WHEN 48 + + COUNT( * ) THEN + 10 WHEN - 73 * + 22 THEN COALESCE ( NULLIF ( 28, + ( 55 ) + - ( + 62 + + 60 * + ( 30 ) ) ), - 48 * SUM( ALL 75 ) ) / 94 ELSE 53 END * 28 THEN - COUNT( * ) * + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2442
SELECT + + CASE - 51 WHEN + - COUNT ( * ) * + 7 * + - 72 - - CASE + CASE + + 51 WHEN - AVG ( ALL + 19 ) THEN - CAST ( - - 48 AS INTEGER ) + + 46 WHEN 9 * 60 THEN NULL WHEN + 60 / 37 THEN NULL END WHEN 48 + + COUNT ( * ) THEN + 10 WHEN - 73 * + 22 THEN COALESCE ( NULLIF ( 28, + ( 55 ) + - ( + 62 + + 60 * + ( 30 ) ) ), - 48 * SUM ( ALL 75 ) ) / 94 ELSE 53 END * 28 THEN - COUNT ( * ) * + COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-2443
SELECT ALL + + 34 DIV COUNT( NULLIF ( - 81, 60 - - 52 + + CAST( NULL AS DECIMAL ) * 33 + - 11 ) ), 81 col2
----
34
81

skipif mysql # not compatible
query II rowsort label-2443
SELECT ALL + + 34 / COUNT ( NULLIF ( - 81, 60 - - 52 + + CAST ( NULL AS REAL ) * 33 + - 11 ) ), 81 col2
----
34
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2444
SELECT + 38 * - CASE 99 WHEN 70 + - 27 THEN + CAST( NULL AS SIGNED ) WHEN + 32 / + 38 + - COUNT( * ) THEN + 54 END + + 78 + - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-2444
SELECT + 38 * - CASE 99 WHEN 70 + - 27 THEN + CAST ( NULL AS INTEGER ) WHEN + 32 / + 38 + - COUNT ( * ) THEN + 54 END + + 78 + - 53
----
NULL

query I rowsort
SELECT + ( NULLIF ( + 25, - 24 ) ) * 75 AS col1
----
1875

query I rowsort
SELECT 21 + + 99 * - 66 AS col2
----
-6513

query I rowsort
SELECT DISTINCT + 76 * 95
----
7220

query I rowsort
SELECT 13 * - - 23
----
299

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

skipif mysql # not compatible
query I rowsort label-2449
SELECT COALESCE ( - CAST ( NULL AS REAL ), - + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2450
SELECT CAST ( + COUNT ( * ) AS INTEGER ) + - 49
----
-48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2451
SELECT 92 * NULLIF ( + COUNT( * ), - 68 / - + 62 - COUNT( + 42 ) + + CAST( NULL AS DECIMAL ) * + 77 * 61 ) + - 85 + - 4 + + 75 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-2451
SELECT 92 * NULLIF ( + COUNT ( * ), - 68 / - + 62 - COUNT ( + 42 ) + + CAST ( NULL AS REAL ) * + 77 * 61 ) + - 85 + - 4 + + 75 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT + 4 + 96 * + CASE + + 21 WHEN 25 THEN NULL WHEN + 60 * - 47 + + - 85 / + + 71 THEN + + COUNT( * ) END / + + 27 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2452
SELECT + 4 + 96 * + CASE + + 21 WHEN 25 THEN NULL WHEN + 60 * - 47 + + - 85 / + + 71 THEN + + COUNT ( * ) END / + + 27 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2453
SELECT + COUNT( * ) * 45 * + COUNT( * ) - + 13 AS col0, + 7 * + 88
----
32
616

skipif mysql # not compatible
query II rowsort label-2453
SELECT + COUNT ( * ) * 45 * + COUNT ( * ) - + 13 AS col0, + 7 * + 88
----
32
616

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2454
SELECT 63 + COUNT( * ) + - 75 AS col2, + 70 DIV - 73 * 73 * 83 AS col1
----
-11
0

skipif mysql # not compatible
query II rowsort label-2454
SELECT 63 + COUNT ( * ) + - 75 AS col2, + 70 / - 73 * 73 * 83 AS col1
----
-11
0

query I rowsort
SELECT ALL 26 + - - 1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2456
SELECT ALL + 85 + MAX( ALL + 61 )
----
146

skipif mysql # not compatible
query I rowsort label-2456
SELECT ALL + 85 + MAX ( ALL + 61 )
----
146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2457
SELECT DISTINCT 61 + CAST( 83 AS SIGNED ) * + + 39
----
3298

skipif mysql # not compatible
query I rowsort label-2457
SELECT DISTINCT 61 + CAST ( 83 AS INTEGER ) * + + 39
----
3298

query I rowsort
SELECT ALL 20 + 46 + 62 * ( + 26 )
----
1678

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

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

query I rowsort
SELECT ALL 84 + - 34
----
50

query I rowsort
SELECT 53 * + - 87 * + 35 * 75
----
-12103875

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT CASE - 10 WHEN + 20 THEN + 63 + - + COUNT( * ) * + COUNT( * ) * 44 * + 44 END * - + 47 * + + COUNT( * ) + - COUNT( DISTINCT + - 28 ) + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-2462
SELECT CASE - 10 WHEN + 20 THEN + 63 + - + COUNT ( * ) * + COUNT ( * ) * 44 * + 44 END * - + 47 * + + COUNT ( * ) + - COUNT ( DISTINCT + - 28 ) + 36
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2463
SELECT DISTINCT 12 DIV - 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2463
SELECT DISTINCT 12 / - 67 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2464
SELECT 72 DIV 35 * + 17 AS col0, - 31 * COUNT( * )
----
34
-31

skipif mysql # not compatible
query II rowsort label-2464
SELECT 72 / 35 * + 17 AS col0, - 31 * COUNT ( * )
----
34
-31

query I rowsort
SELECT 78 * 4 AS col2
----
312

query I rowsort
SELECT ALL + 24 - + + 28
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT DISTINCT - MAX( ALL + 11 ) * + SUM( 36 )
----
-396

skipif mysql # not compatible
query I rowsort label-2467
SELECT DISTINCT - MAX ( ALL + 11 ) * + SUM ( 36 )
----
-396

onlyif mysql # DIV for integer division: 
query I rowsort label-2468
SELECT DISTINCT 76 DIV + 10
----
7

skipif mysql # not compatible
query I rowsort label-2468
SELECT DISTINCT 76 / + 10
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT - 89 * - + CASE ( - - MIN( + 35 ) ) WHEN - 16 THEN NULL WHEN - - COUNT( * ) + CASE - 70 WHEN 31 + - + MAX( ALL - 73 ) THEN COUNT( ALL - - 9 ) END THEN NULL ELSE - 39 * - 19 END + + 96
----
66045

skipif mysql # not compatible
query I rowsort label-2469
SELECT - 89 * - + CASE ( - - MIN ( + 35 ) ) WHEN - 16 THEN NULL WHEN - - COUNT ( * ) + CASE - 70 WHEN 31 + - + MAX ( ALL - 73 ) THEN COUNT ( ALL - - 9 ) END THEN NULL ELSE - 39 * - 19 END + + 96
----
66045

query I rowsort
SELECT ALL 28 * + 6 AS col2
----
168

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2472
SELECT 59 DIV 34 * - + ( - + 19 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-2472
SELECT 59 / 34 * - + ( - + 19 ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT + - MAX( - 87 )
----
87

skipif mysql # not compatible
query I rowsort label-2473
SELECT + - MAX ( - 87 )
----
87

query I rowsort
SELECT + 95 + + 54 col0
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT COUNT( * ) * + + 81 + - 13 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-2475
SELECT COUNT ( * ) * + + 81 + - 13 AS col0
----
68

query I rowsort
SELECT 28 * + 34
----
952

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2477
SELECT ALL CAST( NULL AS SIGNED ) AS col0, 69
----
NULL
69

skipif mysql # not compatible
query II rowsort label-2477
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, 69
----
NULL
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT ALL + 95 + + + COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-2478
SELECT ALL + 95 + + + COUNT ( * )
----
96

query I rowsort
SELECT - 2 * - 37 + 82 AS col1
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2480
SELECT COUNT( * ) - + 50 + 89 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-2480
SELECT COUNT ( * ) - + 50 + 89 AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT + CASE + - COUNT( * ) WHEN - 79 THEN + - 6 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2481
SELECT + CASE + - COUNT ( * ) WHEN - 79 THEN + - 6 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT ALL + COUNT( * ) + + - 14 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-2482
SELECT ALL + COUNT ( * ) + + - 14 AS col0
----
-13

query I rowsort
SELECT + 55 - + CASE + 65 WHEN - - 37 - - AVG ( DISTINCT + - 6 ) * + 23 * + 34 * - - 28 THEN NULL WHEN + 98 + 17 THEN 78 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT DISTINCT - NULLIF ( + 12, - 93 / + - COUNT( * ) + + AVG ( ALL + - 59 ) ) * - 10 + - 40 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-2484
SELECT DISTINCT - NULLIF ( + 12, - 93 / + - COUNT ( * ) + + AVG ( ALL + - 59 ) ) * - 10 + - 40 AS col0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2485
SELECT DISTINCT 34, + CAST( - 28 AS SIGNED ) AS col0
----
34
-28

skipif mysql # not compatible
query II rowsort label-2485
SELECT DISTINCT 34, + CAST ( - 28 AS INTEGER ) AS col0
----
34
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-2486
SELECT ALL COUNT( * ) AS col2, 45 + - ( + 35 ) AS col2
----
1
10

skipif mysql # not compatible
query II rowsort label-2486
SELECT ALL COUNT ( * ) AS col2, 45 + - ( + 35 ) AS col2
----
1
10

query I rowsort
SELECT 37 + - 54
----
-17

query I rowsort
SELECT ALL + 54 + 37 col0
----
91

query II rowsort
SELECT 25 AS col0, 54 AS col1
----
25
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT - SUM( DISTINCT 15 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-2490
SELECT - SUM ( DISTINCT 15 ) AS col0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2491
SELECT SUM( + + NULLIF ( - 26, - 26 ) ) * - COUNT( * ) + COUNT( * ) * COALESCE ( + CAST( - - 99 AS SIGNED ), 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2491
SELECT SUM ( + + NULLIF ( - 26, - 26 ) ) * - COUNT ( * ) + COUNT ( * ) * COALESCE ( + CAST ( - - 99 AS INTEGER ), 18 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2492
SELECT ALL 78 DIV + 41 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2492
SELECT ALL 78 / + 41 AS col0
----
1

query I rowsort
SELECT + 48 * + + 45
----
2160

onlyif mysql # DIV for integer division: 
query II rowsort label-2494
SELECT DISTINCT + 36, + 26 DIV - - 61 col1
----
36
0

skipif mysql # not compatible
query II rowsort label-2494
SELECT DISTINCT + 36, + 26 / - - 61 col1
----
36
0

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

skipif mysql # not compatible
query II rowsort label-2495
SELECT - COUNT ( * ) + 0 col1, 82
----
-1
82

query I rowsort
SELECT ALL + NULLIF ( + - 99, + + 21 )
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2497
SELECT ALL - CAST( + 7 AS SIGNED ) * 77 + - 22 + - + SUM( - - 53 ) + + ( - 58 ) * 94 + + 76 - - 10
----
-5980

skipif mysql # not compatible
query I rowsort label-2497
SELECT ALL - CAST ( + 7 AS INTEGER ) * 77 + - 22 + - + SUM ( - - 53 ) + + ( - 58 ) * 94 + + 76 - - 10
----
-5980

query I rowsort
SELECT + 12 * - - 76
----
912

query II rowsort
SELECT DISTINCT + 26 col1, 27 AS col1
----
26
27

query II rowsort
SELECT + 72 AS col0, 89 * + - 47
----
72
-4183

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2501
SELECT NULLIF ( - - 23, - 18 ) DIV + + 27 + - MIN( + 56 ) - COUNT( * ) DIV - 7 + - SUM( + 52 ) col0
----
-108

skipif mysql # not compatible
query I rowsort label-2501
SELECT NULLIF ( - - 23, - 18 ) / + + 27 + - MIN ( + 56 ) - COUNT ( * ) / - 7 + - SUM ( + 52 ) col0
----
-108

query I rowsort
SELECT - 87 * ( + 69 ) * + + 39 AS col1
----
-234117

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT + MAX( - ( - - 26 ) )
----
-26

skipif mysql # not compatible
query I rowsort label-2503
SELECT + MAX ( - ( - - 26 ) )
----
-26

query II rowsort
SELECT ALL + 14, - 11 AS col1
----
14
-11

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

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

query II rowsort
SELECT + 30 AS col0, 92 + + + 81
----
30
173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2507
SELECT DISTINCT CAST( + CAST( 70 AS SIGNED ) AS SIGNED ) DIV + NULLIF ( + COALESCE ( - COUNT( ALL 64 ), + + 27 * + + 66 * - 83 * + 58 ), + 14 ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-2507
SELECT DISTINCT CAST ( + CAST ( 70 AS INTEGER ) AS INTEGER ) / + NULLIF ( + COALESCE ( - COUNT ( ALL 64 ), + + 27 * + + 66 * - 83 * + 58 ), + 14 ) AS col1
----
-70

query II rowsort
SELECT DISTINCT + - 2, 75 + + 65 AS col0
----
-2
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2509
SELECT ALL - CAST( - + COUNT( * ) AS SIGNED ) * + + 55 + 24 col1, + 22 col0
----
79
22

skipif mysql # not compatible
query II rowsort label-2509
SELECT ALL - CAST ( - + COUNT ( * ) AS INTEGER ) * + + 55 + 24 col1, + 22 col0
----
79
22

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

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

query I rowsort
SELECT + 59 + + 7 AS col2
----
66

query I rowsort
SELECT + 3 * - 87
----
-261

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT - MAX( ALL + 75 ) + CASE + 43 WHEN - - CASE - 70 WHEN 58 + + 64 + + 5 * + + 32 THEN + 98 END + + 29 THEN + + 30 WHEN - 28 THEN 59 + - - 38 + 48 * + ( - COUNT( * ) / 94 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2513
SELECT - MAX ( ALL + 75 ) + CASE + 43 WHEN - - CASE - 70 WHEN 58 + + 64 + + 5 * + + 32 THEN + 98 END + + 29 THEN + + 30 WHEN - 28 THEN 59 + - - 38 + 48 * + ( - COUNT ( * ) / 94 ) END AS col1
----
NULL

query I rowsort
SELECT - COALESCE ( + NULLIF ( - - 91, + 3 ), - + 2 * 42 ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT + 95 * 48 - COUNT( * ) * + COUNT( * ) - - 67 AS col2
----
4626

skipif mysql # not compatible
query I rowsort label-2515
SELECT + 95 * 48 - COUNT ( * ) * + COUNT ( * ) - - 67 AS col2
----
4626

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2516
SELECT ALL 15 + + - 25, + CASE 22 WHEN - 59 THEN + - COUNT( * ) * - + 16 + - 3 - - AVG ( - - 93 ) WHEN 22 THEN + - 60 WHEN - COUNT( + - 65 ) * + - 24 * CAST( NULL AS SIGNED ) + - 0 THEN NULL END AS col2
----
-10
-60

skipif mysql # not compatible
query II rowsort label-2516
SELECT ALL 15 + + - 25, + CASE 22 WHEN - 59 THEN + - COUNT ( * ) * - + 16 + - 3 - - AVG ( - - 93 ) WHEN 22 THEN + - 60 WHEN - COUNT ( + - 65 ) * + - 24 * CAST ( NULL AS INTEGER ) + - 0 THEN NULL END AS col2
----
-10
-60

query I rowsort
SELECT DISTINCT NULLIF ( + 35, + ( - 57 ) * - + 45 * + 56 - 17 ) col2
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2518
SELECT ALL + 59 + - + COALESCE ( + - 75, + + CAST( + - 98 AS SIGNED ), + 6 )
----
134

skipif mysql # not compatible
query I rowsort label-2518
SELECT ALL + 59 + - + COALESCE ( + - 75, + + CAST ( + - 98 AS INTEGER ), + 6 )
----
134

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

skipif mysql # not compatible
query I rowsort label-2519
SELECT ALL COUNT ( CAST ( 85 AS INTEGER ) )
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT - 79 + MAX( ALL 51 ) col0
----
-28

skipif mysql # not compatible
query I rowsort label-2521
SELECT - 79 + MAX ( ALL 51 ) col0
----
-28

query I rowsort
SELECT DISTINCT - 14 * + - 41
----
574

onlyif mysql # aggregate syntax: 
query II rowsort label-2523
SELECT ALL - 96 * - COUNT( * ) * + NULLIF ( 37, 10 - + - 99 + + - 57 + - + 35 / + 32 + - 81 ) AS col1, - SUM( - ( + + 96 ) ) + - 16
----
3552
80

skipif mysql # not compatible
query II rowsort label-2523
SELECT ALL - 96 * - COUNT ( * ) * + NULLIF ( 37, 10 - + - 99 + + - 57 + - + 35 / + 32 + - 81 ) AS col1, - SUM ( - ( + + 96 ) ) + - 16
----
3552
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT DISTINCT + COUNT( * ) - - ( + 94 )
----
95

skipif mysql # not compatible
query I rowsort label-2524
SELECT DISTINCT + COUNT ( * ) - - ( + 94 )
----
95

query II rowsort
SELECT DISTINCT ( + - 72 ) AS col2, + 35 AS col2
----
-72
35

query II rowsort
SELECT ALL + 96 * - 6 AS col2, + 49 * 66 AS col1
----
-576
3234

query I rowsort
SELECT DISTINCT + NULLIF ( + 86, ( + 23 ) * - + 59 )
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-2528
SELECT 51 DIV - 41 + 92
----
91

skipif mysql # not compatible
query I rowsort label-2528
SELECT 51 / - 41 + 92
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2529
SELECT + 82 + 31 DIV - - 46 - + ( COUNT( DISTINCT 18 ) ) - 89 AS col1, 84
----
-8
84

skipif mysql # not compatible
query II rowsort label-2529
SELECT + 82 + 31 / - - 46 - + ( COUNT ( DISTINCT 18 ) ) - 89 AS col1, 84
----
-8
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2530
SELECT + - 85 * 69 - COUNT( - CAST( NULL AS SIGNED ) ) + + 10 DIV 42 * 80
----
-5865

skipif mysql # not compatible
query I rowsort label-2530
SELECT + - 85 * 69 - COUNT ( - CAST ( NULL AS INTEGER ) ) + + 10 / 42 * 80
----
-5865

onlyif mysql # aggregate syntax: 
query II rowsort label-2531
SELECT - + COUNT( * ) - + 38 col1, 99 AS col0
----
-39
99

skipif mysql # not compatible
query II rowsort label-2531
SELECT - + COUNT ( * ) - + 38 col1, 99 AS col0
----
-39
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2532
SELECT ALL + + CAST( + + CASE - + 55 WHEN + CASE + 40 WHEN - + COALESCE ( 58, - 9 / + 77 ) THEN NULLIF ( - COUNT( * ), - 63 * - 30 - + COUNT( * ) + + - MIN( + + 19 ) * 80 * 17 ) ELSE NULL END - 12 THEN 92 WHEN - COUNT( * ) / + 48 + CAST( NULL AS SIGNED ) THEN + MAX( 54 ) ELSE NULL END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2532
SELECT ALL + + CAST ( + + CASE - + 55 WHEN + CASE + 40 WHEN - + COALESCE ( 58, - 9 / + 77 ) THEN NULLIF ( - COUNT ( * ), - 63 * - 30 - + COUNT ( * ) + + - MIN ( + + 19 ) * 80 * 17 ) ELSE NULL END - 12 THEN 92 WHEN - COUNT ( * ) / + 48 + CAST ( NULL AS INTEGER ) THEN + MAX ( 54 ) ELSE NULL END AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2533
SELECT 41 * - - 49 - - CASE - 6 WHEN - AVG ( - 10 ) / - CAST( + - 79 AS SIGNED ) + + CAST( - COUNT( * ) AS SIGNED ) THEN - 70 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2533
SELECT 41 * - - 49 - - CASE - 6 WHEN - AVG ( - 10 ) / - CAST ( + - 79 AS INTEGER ) + + CAST ( - COUNT ( * ) AS INTEGER ) THEN - 70 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT ALL CASE + 78 WHEN + COALESCE ( + + COUNT( * ), + + 17 ) THEN NULL ELSE - CASE - NULLIF ( + 41, - 67 ) WHEN - - 28 THEN - 30 + - 38 + - 97 / + 46 WHEN + + 85 THEN - 38 ELSE NULL END + - 55 END * 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2534
SELECT ALL CASE + 78 WHEN + COALESCE ( + + COUNT ( * ), + + 17 ) THEN NULL ELSE - CASE - NULLIF ( + 41, - 67 ) WHEN - - 28 THEN - 30 + - 38 + - 97 / + 46 WHEN + + 85 THEN - 38 ELSE NULL END + - 55 END * 78 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2535
SELECT ALL + 9 DIV - 72 + - CAST( COUNT( * ) AS SIGNED ) DIV + - 65
----
0

skipif mysql # not compatible
query I rowsort label-2535
SELECT ALL + 9 / - 72 + - CAST ( COUNT ( * ) AS INTEGER ) / + - 65
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2536
SELECT DISTINCT + + ( + 51 ) * MIN( DISTINCT + + 56 ) * - 54 + 13 + - MIN( - + 79 ) + + CAST( 26 AS SIGNED )
----
-154106

skipif mysql # not compatible
query I rowsort label-2536
SELECT DISTINCT + + ( + 51 ) * MIN ( DISTINCT + + 56 ) * - 54 + 13 + - MIN ( - + 79 ) + + CAST ( 26 AS INTEGER )
----
-154106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2537
SELECT ALL - - 51 * + CASE 96 WHEN AVG ( + 46 ) THEN MIN( + + 20 ) + 21 WHEN + 58 / - CAST( + 87 AS SIGNED ) + 23 + - - 50 THEN NULL END + - COUNT( * ) + - - 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2537
SELECT ALL - - 51 * + CASE 96 WHEN AVG ( + 46 ) THEN MIN ( + + 20 ) + 21 WHEN + 58 / - CAST ( + 87 AS INTEGER ) + 23 + - - 50 THEN NULL END + - COUNT ( * ) + - - 32 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2538
SELECT - - 87 * COUNT( * ) + + + 26 DIV 69 * - + 63 + 29 AS col2
----
116

skipif mysql # not compatible
query I rowsort label-2538
SELECT - - 87 * COUNT ( * ) + + + 26 / 69 * - + 63 + 29 AS col2
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-2539
SELECT DISTINCT - 30 * - 38 DIV + - COALESCE ( + 19, + 65 * 46 * 14 * - 37, + 70 DIV 54 ) + 75 + + - 41 * - 96 + - 16 AS col1
----
3935

skipif mysql # not compatible
query I rowsort label-2539
SELECT DISTINCT - 30 * - 38 / + - COALESCE ( + 19, + 65 * 46 * 14 * - 37, + 70 / 54 ) + 75 + + - 41 * - 96 + - 16 AS col1
----
3935

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2540
SELECT ALL - + 73 * + CAST( - 69 AS SIGNED ) AS col2
----
5037

skipif mysql # not compatible
query I rowsort label-2540
SELECT ALL - + 73 * + CAST ( - 69 AS INTEGER ) AS col2
----
5037

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2541
SELECT + - 59 * + COUNT( * ), + CAST( NULL AS DECIMAL ) col2
----
-59
NULL

skipif mysql # not compatible
query II rowsort label-2541
SELECT + - 59 * + COUNT ( * ), + CAST ( NULL AS REAL ) col2
----
-59
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2542
SELECT ALL + NULLIF ( + 37, 82 / + 24 + + 26 ) * - 26 - + 45 + - 56 + - - 70 * SUM( - 27 ) * - 86 AS col2, MAX( DISTINCT - 70 ) * 74 + + - ( - 2 )
----
161477
-5178

skipif mysql # not compatible
query II rowsort label-2542
SELECT ALL + NULLIF ( + 37, 82 / + 24 + + 26 ) * - 26 - + 45 + - 56 + - - 70 * SUM ( - 27 ) * - 86 AS col2, MAX ( DISTINCT - 70 ) * 74 + + - ( - 2 )
----
161477
-5178

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

query I rowsort
SELECT + NULLIF ( + + 37, + 70 ) AS col0
----
37

query I rowsort
SELECT ALL + + CASE 91 WHEN 60 THEN + 74 WHEN + - 9 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2546
SELECT ALL + 29 * NULLIF ( + 58, - - 19 * - - ( + 22 ) + + 1 ) * 39 DIV 89 - 11 - - ( 67 ) + - COUNT( * ) + + 0 AS col0
----
792

skipif mysql # not compatible
query I rowsort label-2546
SELECT ALL + 29 * NULLIF ( + 58, - - 19 * - - ( + 22 ) + + 1 ) * 39 / 89 - 11 - - ( 67 ) + - COUNT ( * ) + + 0 AS col0
----
792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2547
SELECT ALL 81 * + CAST( NULL AS SIGNED ) * + COALESCE ( COUNT( * ), - ( + 28 ), ( - + 44 ) - - CASE + 79 WHEN - - 19 / - CAST( NULL AS SIGNED ) THEN NULL WHEN + 45 * 43 + + SUM( + 73 ) THEN - + 60 + - 24 * + 65 END / 24 ) / 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2547
SELECT ALL 81 * + CAST ( NULL AS INTEGER ) * + COALESCE ( COUNT ( * ), - ( + 28 ), ( - + 44 ) - - CASE + 79 WHEN - - 19 / - CAST ( NULL AS INTEGER ) THEN NULL WHEN + 45 * 43 + + SUM ( + 73 ) THEN - + 60 + - 24 * + 65 END / 24 ) / 70 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2548
SELECT - CAST( NULL AS SIGNED ) AS col2, COALESCE ( CASE WHEN NOT 81 IS NULL THEN + 74 ELSE - 79 + + 28 * - 99 + - - 61 END, + AVG ( ALL 15 ), - 29 + + COUNT( * ) + + 13 * + 5 ) DIV + + 27 AS col2
----
NULL
2

skipif mysql # not compatible
query II rowsort label-2548
SELECT - CAST ( NULL AS INTEGER ) AS col2, COALESCE ( CASE WHEN NOT 81 IS NULL THEN + 74 ELSE - 79 + + 28 * - 99 + - - 61 END, + AVG ( ALL 15 ), - 29 + + COUNT ( * ) + + 13 * + 5 ) / + + 27 AS col2
----
NULL
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2549
SELECT ALL - COUNT( * ) * + 46 - 33 + - 91 * 59 DIV - + 96 DIV COUNT( * ) * - - COUNT( * ) col0
----
-24

skipif mysql # not compatible
query I rowsort label-2549
SELECT ALL - COUNT ( * ) * + 46 - 33 + - 91 * 59 / - + 96 / COUNT ( * ) * - - COUNT ( * ) col0
----
-24

query I rowsort
SELECT ALL 67 * - 89
----
-5963

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT + SUM( DISTINCT 61 ) + - - 56 + - + 46 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-2551
SELECT + SUM ( DISTINCT 61 ) + - - 56 + - + 46 AS col2
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2552
SELECT + MIN( DISTINCT + - 64 ) DIV 82 AS col0, - COUNT( + + 53 )
----
0
-1

skipif mysql # not compatible
query II rowsort label-2552
SELECT + MIN ( DISTINCT + - 64 ) / 82 AS col0, - COUNT ( + + 53 )
----
0
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT DISTINCT 2 * - + COUNT( * ) * + - 9 * 23 AS col0
----
414

skipif mysql # not compatible
query I rowsort label-2553
SELECT DISTINCT 2 * - + COUNT ( * ) * + - 9 * 23 AS col0
----
414

query I rowsort
SELECT 91 * 35 AS col1
----
3185

query I rowsort
SELECT DISTINCT 8 * - 35
----
-280

query I rowsort
SELECT ALL - 91 - - 27
----
-64

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2558
SELECT ALL 58, - COUNT( * ) AS col1
----
58
-1

skipif mysql # not compatible
query II rowsort label-2558
SELECT ALL 58, - COUNT ( * ) AS col1
----
58
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2559
SELECT CASE - - CASE - + COUNT( * ) WHEN + NULLIF ( + + ( CAST( NULL AS SIGNED ) ), - 90 ) * + COUNT( * ) THEN - - 94 * 85 WHEN + 18 THEN + 34 * + 63 + - CAST( NULL AS SIGNED ) * + 88 + + COUNT( * ) END WHEN - 65 THEN NULL WHEN ( - COUNT( * ) ) THEN - ( - 89 ) ELSE NULL END * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2559
SELECT CASE - - CASE - + COUNT ( * ) WHEN + NULLIF ( + + ( CAST ( NULL AS INTEGER ) ), - 90 ) * + COUNT ( * ) THEN - - 94 * 85 WHEN + 18 THEN + 34 * + 63 + - CAST ( NULL AS INTEGER ) * + 88 + + COUNT ( * ) END WHEN - 65 THEN NULL WHEN ( - COUNT ( * ) ) THEN - ( - 89 ) ELSE NULL END * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2560
SELECT - 15, - ( 27 ) DIV + 16 col1
----
-15
-1

skipif mysql # not compatible
query II rowsort label-2560
SELECT - 15, - ( 27 ) / + 16 col1
----
-15
-1

query I rowsort
SELECT ALL + 65 * + - 13
----
-845

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT ( + 8 ) + NULLIF ( - + 81, 64 + + + 58 - COUNT( * ) + + + 12 + ( - COUNT( + 83 ) ) * 82 )
----
-73

skipif mysql # not compatible
query I rowsort label-2562
SELECT ( + 8 ) + NULLIF ( - + 81, 64 + + + 58 - COUNT ( * ) + + + 12 + ( - COUNT ( + 83 ) ) * 82 )
----
-73

query I rowsort
SELECT 97 + 26 col0
----
123

query I rowsort
SELECT ALL - - ( - + 87 ) col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT ALL + COALESCE ( 13, 66 + + 38 * - COUNT( * ) ) + + + 50 - - + 6 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-2565
SELECT ALL + COALESCE ( 13, 66 + + 38 * - COUNT ( * ) ) + + + 50 - - + 6 AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT + COALESCE ( COUNT( * ), + - COUNT( * ) * + - 70 )
----
1

skipif mysql # not compatible
query I rowsort label-2566
SELECT + COALESCE ( COUNT ( * ), + - COUNT ( * ) * + - 70 )
----
1

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

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

query I rowsort
SELECT DISTINCT + + 83 * + 80 AS col0
----
6640

query I rowsort
SELECT 36 * - - 93
----
3348

onlyif mysql # DIV for integer division: 
query I rowsort label-2570
SELECT + 41 DIV - 60 * - 47 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2570
SELECT + 41 / - 60 * - 47 AS col2
----
0

query I rowsort
SELECT ALL - 7 + - - 6
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2572
SELECT - CAST( NULL AS SIGNED ) + + 46 * + + 19 * - 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2572
SELECT - CAST ( NULL AS INTEGER ) + + 46 * + + 19 * - 4 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2573
SELECT + 83 AS col1, + NULLIF ( - 60, + 99 ) + + CAST( NULL AS SIGNED ) + + 86 + - + 29 * + 60
----
83
NULL

skipif mysql # not compatible
query II rowsort label-2573
SELECT + 83 AS col1, + NULLIF ( - 60, + 99 ) + + CAST ( NULL AS INTEGER ) + + 86 + - + 29 * + 60
----
83
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2574
SELECT 61 * CAST( NULL AS SIGNED ) / + 94 + - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-2574
SELECT 61 * CAST ( NULL AS INTEGER ) / + 94 + - 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT + COUNT( + 51 ) + + + 59 + - NULLIF ( - 26, + 44 + + + 74 )
----
86

skipif mysql # not compatible
query I rowsort label-2575
SELECT + COUNT ( + 51 ) + + + 59 + - NULLIF ( - 26, + 44 + + + 74 )
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2576
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) + - 68 + - - 5 * ( + + COALESCE ( - 42, 25 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2576
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) + - 68 + - - 5 * ( + + COALESCE ( - 42, 25 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2577
SELECT SUM( ALL + ( - CAST( + 78 AS SIGNED ) ) ) + + 81 * 86 AS col0
----
6888

skipif mysql # not compatible
query I rowsort label-2577
SELECT SUM ( ALL + ( - CAST ( + 78 AS INTEGER ) ) ) + + 81 * 86 AS col0
----
6888

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2579
SELECT ( + + 23 ) DIV - COALESCE ( + 52, - - 28, - 58 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2579
SELECT ( + + 23 ) / - COALESCE ( + 52, - - 28, - 58 ) AS col0
----
0

query I rowsort
SELECT ALL 84 * 78 AS col1
----
6552

onlyif mysql # DIV for integer division: 
query I rowsort label-2581
SELECT 97 + + - 43 DIV - - 5
----
89

skipif mysql # not compatible
query I rowsort label-2581
SELECT 97 + + - 43 / - - 5
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT DISTINCT 13 + - - 30 + COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-2582
SELECT DISTINCT 13 + - - 30 + COUNT ( * )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT COALESCE ( COUNT( DISTINCT + 17 ), 45 * + 10 ) * + - 5
----
-5

skipif mysql # not compatible
query I rowsort label-2583
SELECT COALESCE ( COUNT ( DISTINCT + 17 ), 45 * + 10 ) * + - 5
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT 16 + + NULLIF ( - 43, - COUNT( * ) ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-2584
SELECT 16 + + NULLIF ( - 43, - COUNT ( * ) ) AS col1
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2585
SELECT ALL 12 + + - NULLIF ( - - 89, + NULLIF ( - ( - - 89 ), + 95 ) * + 81 + - - 17 ) + + 77 - + 50 + NULLIF ( - ( + - 98 ), CAST( NULL AS SIGNED ) * 49 * 35 / 21 + + 4 * 53 ) * 6 * 92 AS col1
----
54046

skipif mysql # not compatible
query I rowsort label-2585
SELECT ALL 12 + + - NULLIF ( - - 89, + NULLIF ( - ( - - 89 ), + 95 ) * + 81 + - - 17 ) + + 77 - + 50 + NULLIF ( - ( + - 98 ), CAST ( NULL AS INTEGER ) * 49 * 35 / 21 + + 4 * 53 ) * 6 * 92 AS col1
----
54046

query I rowsort
SELECT DISTINCT - 72 + - 98 AS col0
----
-170

query I rowsort
SELECT ALL + 14 + 17 + + - 50 * 86
----
-4269

query I rowsort
SELECT + 47 + - 55
----
-8

query I rowsort
SELECT NULLIF ( + + 29, 46 + + + 55 * + 14 )
----
29

query I rowsort
SELECT DISTINCT + - 76 * - 45 + - 88
----
3332

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2591
SELECT COALESCE ( - - ( - 8 ), - CAST( + + 53 AS SIGNED ) ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-2591
SELECT COALESCE ( - - ( - 8 ), - CAST ( + + 53 AS INTEGER ) ) AS col1
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-2592
SELECT ALL - 71 * ( ( - + 50 ) ) - + 25 - - - 98 + 58 - + 67 + 73 * + 94 + - 57 DIV - - 78 + - 22 AS col0
----
10258

skipif mysql # not compatible
query I rowsort label-2592
SELECT ALL - 71 * ( ( - + 50 ) ) - + 25 - - - 98 + 58 - + 67 + 73 * + 94 + - 57 / - - 78 + - 22 AS col0
----
10258

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

skipif mysql # not compatible
query I rowsort label-2593
SELECT ALL - + COUNT ( * ) * + ( - + 19 ) AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT ALL - COUNT( DISTINCT 60 ) * - 22 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-2594
SELECT ALL - COUNT ( DISTINCT 60 ) * - 22 AS col1
----
22

query I rowsort
SELECT ALL + - 91 * 93 - + 3 AS col0
----
-8466

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2596
SELECT CAST( + + 84 AS SIGNED ) * + 90
----
7560

skipif mysql # not compatible
query I rowsort label-2596
SELECT CAST ( + + 84 AS INTEGER ) * + 90
----
7560

query I rowsort
SELECT - 99 * - 13 + - - 3
----
1290

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2599
SELECT - COUNT( * ) * - COALESCE ( - 55, + COUNT( * ) + - - 66 DIV + 1, - 56 * - - 97 + - + MAX( DISTINCT - 31 ) ) AS col0, + 17 * + + COUNT( * )
----
-55
17

skipif mysql # not compatible
query II rowsort label-2599
SELECT - COUNT ( * ) * - COALESCE ( - 55, + COUNT ( * ) + - - 66 / + 1, - 56 * - - 97 + - + MAX ( DISTINCT - 31 ) ) AS col0, + 17 * + + COUNT ( * )
----
-55
17

query II rowsort
SELECT DISTINCT + 95 AS col2, + 39 - - 20 - 55 - - 77 AS col2
----
95
81

query I rowsort
SELECT ALL - 37 * - - 6 AS col0
----
-222

query I rowsort
SELECT - 20 * 62 * 98 AS col1
----
-121520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2603
SELECT - CAST( 68 AS SIGNED ) * + 95
----
-6460

skipif mysql # not compatible
query I rowsort label-2603
SELECT - CAST ( 68 AS INTEGER ) * + 95
----
-6460

query I rowsort
SELECT - 84 + + ( + 67 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT + 66 * COUNT( * ) * - COUNT( DISTINCT + 45 )
----
-66

skipif mysql # not compatible
query I rowsort label-2605
SELECT + 66 * COUNT ( * ) * - COUNT ( DISTINCT + 45 )
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-2606
SELECT ALL - MAX( - - 71 ) + - + 6, + 80 AS col2
----
-77
80

skipif mysql # not compatible
query II rowsort label-2606
SELECT ALL - MAX ( - - 71 ) + - + 6, + 80 AS col2
----
-77
80

query II rowsort
SELECT 26, ( 43 ) AS col2
----
26
43

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2609
SELECT - CASE + + 34 WHEN 33 THEN + 2 + + - 92 * + - COUNT( * ) WHEN + 2 + - 93 THEN NULL WHEN 64 - - - 77 + + 47 THEN NULL END + - 45 * + COALESCE ( - CAST( 91 AS SIGNED ), + 68 ) + + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2609
SELECT - CASE + + 34 WHEN 33 THEN + 2 + + - 92 * + - COUNT ( * ) WHEN + 2 + - 93 THEN NULL WHEN 64 - - - 77 + + 47 THEN NULL END + - 45 * + COALESCE ( - CAST ( 91 AS INTEGER ), + 68 ) + + - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 20 + - + 67 AS col1
----
-47

query I rowsort
SELECT ALL + 2 + + 46
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT DISTINCT NULLIF ( - COUNT( * ), + - COUNT( + 90 ) - + - 19 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2612
SELECT DISTINCT NULLIF ( - COUNT ( * ), + - COUNT ( + 90 ) - + - 19 ) AS col1
----
-1

query I rowsort
SELECT + 82 + + - 37 + 38 * + 97 - 32
----
3699

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2614
SELECT + 1 - + 39 * 21 * - + COUNT( * ) * - - CASE + 28 WHEN + - 8 + + 99 THEN + + CAST( NULL AS SIGNED ) * COALESCE ( + + COUNT( DISTINCT 49 ), - 94 ) * + 1 + CASE - + CAST( + - 6 AS SIGNED ) WHEN - 77 THEN - COALESCE ( + 51, ( 38 ) ) END * ( + 74 ) ELSE 89 END + + 40 col2
----
72932

skipif mysql # not compatible
query I rowsort label-2614
SELECT + 1 - + 39 * 21 * - + COUNT ( * ) * - - CASE + 28 WHEN + - 8 + + 99 THEN + + CAST ( NULL AS INTEGER ) * COALESCE ( + + COUNT ( DISTINCT 49 ), - 94 ) * + 1 + CASE - + CAST ( + - 6 AS INTEGER ) WHEN - 77 THEN - COALESCE ( + 51, ( 38 ) ) END * ( + 74 ) ELSE 89 END + + 40 col2
----
72932

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2615
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + - 67 / + ( + CAST( NULL AS SIGNED ) ) + 9 + - 62 - - - 17 + + 47 / - 91 + 52 - - + 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2615
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + - 67 / + ( + CAST ( NULL AS INTEGER ) ) + 9 + - 62 - - - 17 + + 47 / - 91 + 52 - - + 78 AS col2
----
NULL

query I rowsort
SELECT ALL 84 + - - 46 + 80 * + - 38 AS col2
----
-2910

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2617
SELECT + 53 * + - CAST( - 23 AS SIGNED ), - 18 AS col0
----
1219
-18

skipif mysql # not compatible
query II rowsort label-2617
SELECT + 53 * + - CAST ( - 23 AS INTEGER ), - 18 AS col0
----
1219
-18

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

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

query I rowsort
SELECT ALL + 91 * - 1 AS col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT + - ( + 93 ) * - + COUNT( * ) * + + 71
----
6603

skipif mysql # not compatible
query I rowsort label-2620
SELECT + - ( + 93 ) * - + COUNT ( * ) * + + 71
----
6603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2621
SELECT + + CAST( + 93 AS SIGNED ) + COUNT( * ) * - 29
----
64

skipif mysql # not compatible
query I rowsort label-2621
SELECT + + CAST ( + 93 AS INTEGER ) + COUNT ( * ) * - 29
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2622
SELECT ALL + - CAST( NULL AS SIGNED ) / 40 - - - 59 - + SUM( - 9 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL + - CAST ( NULL AS INTEGER ) / 40 - - - 59 - + SUM ( - 9 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2623
SELECT - + SUM( ALL + - 25 ) * CAST( NULL AS SIGNED ) + + 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2623
SELECT - + SUM ( ALL + - 25 ) * CAST ( NULL AS INTEGER ) + + 15 AS col0
----
NULL

query I rowsort
SELECT + 70 * + + 11 AS col2
----
770

query I rowsort
SELECT + + CASE WHEN NOT ( NOT ( + - 40 ) IS NULL ) THEN NULL ELSE - 99 END AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT + - ( - 7 ) + NULLIF ( - - 4, + + 82 ) + - 88 + SUM( ALL 12 ) + - + ( + 34 ) * 24
----
-881

skipif mysql # not compatible
query I rowsort label-2626
SELECT + - ( - 7 ) + NULLIF ( - - 4, + + 82 ) + - 88 + SUM ( ALL 12 ) + - + ( + 34 ) * 24
----
-881

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

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

query I rowsort
SELECT + 44 + - 57
----
-13

query I rowsort
SELECT + 95 * - 9 + + + 22 * + 60 AS col1
----
465

query I rowsort
SELECT ALL + NULLIF ( 14, - + 23 + 40 )
----
14

query I rowsort
SELECT - 96 * - 10
----
960

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2632
SELECT + AVG ( CAST( NULL AS DECIMAL ) ) / - 48 - + 12 / - 61 * CAST( NULL AS DECIMAL ) + - - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-2632
SELECT + AVG ( CAST ( NULL AS REAL ) ) / - 48 - + 12 / - 61 * CAST ( NULL AS REAL ) + - - 16
----
NULL

query I rowsort
SELECT - 66 + + + 1 * + - 98 + 36
----
-128

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2634
SELECT DISTINCT + ( - - 29 ), + COUNT( * ) DIV 69 AS col1
----
29
0

skipif mysql # not compatible
query II rowsort label-2634
SELECT DISTINCT + ( - - 29 ), + COUNT ( * ) / 69 AS col1
----
29
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2635
SELECT COUNT( ALL - 65 ), 64 AS col1
----
1
64

skipif mysql # not compatible
query II rowsort label-2635
SELECT COUNT ( ALL - 65 ), 64 AS col1
----
1
64

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

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

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

query II rowsort
SELECT ALL - 98 * + + 63 + - - 98 * + 70, 89 AS col1
----
686
89

onlyif mysql # DIV for integer division: 
query I rowsort label-2639
SELECT - COALESCE ( + 87, + - 71 ) DIV - + ( + 74 )
----
1

skipif mysql # not compatible
query I rowsort label-2639
SELECT - COALESCE ( + 87, + - 71 ) / - + ( + 74 )
----
1

query I rowsort
SELECT ALL 0 * + 75 + 64
----
64

query I rowsort
SELECT - 6 * - 66
----
396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2642
SELECT - 0 + CASE - COALESCE ( CAST( NULL AS SIGNED ), - + ( - 92 ) ) WHEN - COUNT( * ) THEN NULL ELSE + 40 END
----
40

skipif mysql # not compatible
query I rowsort label-2642
SELECT - 0 + CASE - COALESCE ( CAST ( NULL AS INTEGER ), - + ( - 92 ) ) WHEN - COUNT ( * ) THEN NULL ELSE + 40 END
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT ALL - COUNT( * ) * NULLIF ( MAX( + - 91 ), + + 18 )
----
91

skipif mysql # not compatible
query I rowsort label-2643
SELECT ALL - COUNT ( * ) * NULLIF ( MAX ( + - 91 ), + + 18 )
----
91

query I rowsort
SELECT - 70 * - ( + ( + + 32 ) )
----
2240

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT - 76 + + - COUNT( * ) - + + 87
----
-164

skipif mysql # not compatible
query I rowsort label-2645
SELECT - 76 + + - COUNT ( * ) - + + 87
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT - 98 + + ( SUM( DISTINCT - 21 ) ) + COUNT( * ) * 82 * 80
----
6441

skipif mysql # not compatible
query I rowsort label-2646
SELECT - 98 + + ( SUM ( DISTINCT - 21 ) ) + COUNT ( * ) * 82 * 80
----
6441

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT ALL + + 26 - - 96 * COUNT( * ) + + + COUNT( * )
----
123

skipif mysql # not compatible
query I rowsort label-2647
SELECT ALL + + 26 - - 96 * COUNT ( * ) + + + COUNT ( * )
----
123

onlyif mysql # aggregate syntax: 
query II rowsort label-2648
SELECT - - NULLIF ( + ( - COUNT( * ) ), - 81 ) AS col2, 8
----
-1
8

skipif mysql # not compatible
query II rowsort label-2648
SELECT - - NULLIF ( + ( - COUNT ( * ) ), - 81 ) AS col2, 8
----
-1
8

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

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

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

skipif mysql # not compatible
query I rowsort label-2650
SELECT - - COUNT ( * ) * 6
----
6

query I rowsort
SELECT DISTINCT - - 97 * - + 57 * - 21 AS col0
----
116109

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

skipif mysql # not compatible
query II rowsort label-2652
SELECT COUNT ( * ), - 2 AS col0
----
1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT ALL 18 - - - NULLIF ( - + ( + MAX( ALL + + 98 ) ), ( 5 ) + + - 50 )
----
116

skipif mysql # not compatible
query I rowsort label-2653
SELECT ALL 18 - - - NULLIF ( - + ( + MAX ( ALL + + 98 ) ), ( 5 ) + + - 50 )
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2654
SELECT - + 34, - SUM( DISTINCT - 1 ) * + - COUNT( * ) - - CAST( + 10 AS SIGNED ) + - + CAST( NULL AS DECIMAL ) AS col0
----
-34
NULL

skipif mysql # not compatible
query II rowsort label-2654
SELECT - + 34, - SUM ( DISTINCT - 1 ) * + - COUNT ( * ) - - CAST ( + 10 AS INTEGER ) + - + CAST ( NULL AS REAL ) AS col0
----
-34
NULL

query I rowsort
SELECT + - 73 + - + 66
----
-139

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

skipif mysql # not compatible
query I rowsort label-2656
SELECT - + COUNT ( * ) * - 2 - - + 4 AS col0
----
6

query I rowsort
SELECT ( - 59 ) + - 26 * 82 * + 47
----
-100263

query I rowsort
SELECT + 67 * 82 + 83
----
5577

query II rowsort
SELECT + + 44 AS col0, - 57 * + - 98 * - - ( + - 27 ) AS col1
----
44
-150822

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT ( + + 18 ) - + COALESCE ( - - 20, - 57, + - ( + + 30 ) + + COUNT( * ) ) + + ( - 44 )
----
-46

skipif mysql # not compatible
query I rowsort label-2660
SELECT ( + + 18 ) - + COALESCE ( - - 20, - 57, + - ( + + 30 ) + + COUNT ( * ) ) + + ( - 44 )
----
-46

query I rowsort
SELECT 90 * - + 22 * - COALESCE ( - + ( + 25 ), + 11 ) AS col0
----
-49500

query I rowsort
SELECT ALL + 33 * + 43 * + 58
----
82302

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2663
SELECT ALL - COUNT( * ) col0, COUNT( * ) DIV + + 2 * 24 col0
----
-1
0

skipif mysql # not compatible
query II rowsort label-2663
SELECT ALL - COUNT ( * ) col0, COUNT ( * ) / + + 2 * 24 col0
----
-1
0

query I rowsort
SELECT 37 * 29 * + 31 AS col0
----
33263

query I rowsort
SELECT ALL 32 + - 13 AS col2
----
19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT ALL 2 + SUM( ALL 42 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-2667
SELECT ALL 2 + SUM ( ALL 42 ) AS col0
----
44

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

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

query I rowsort
SELECT 97 * - + 94
----
-9118

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

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

query I rowsort
SELECT 26 * - 20 AS col1
----
-520

query I rowsort
SELECT 12 + + ( - 75 ) AS col0
----
-63

query I rowsort
SELECT 34 + + 26 + + - 82 AS col1
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-2674
SELECT ALL 19 - - + 46 + + 35 DIV - 72
----
65

skipif mysql # not compatible
query I rowsort label-2674
SELECT ALL 19 - - + 46 + + 35 / - 72
----
65

query I rowsort
SELECT DISTINCT + NULLIF ( 39, - 36 * 44 ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-2676
SELECT 26 + COALESCE ( ( + 77 ), + + 87 ) AS col2, COUNT( * ) AS col1
----
103
1

skipif mysql # not compatible
query II rowsort label-2676
SELECT 26 + COALESCE ( ( + 77 ), + + 87 ) AS col2, COUNT ( * ) AS col1
----
103
1

query I rowsort
SELECT ALL + - 98 - 53 AS col0
----
-151

onlyif mysql # aggregate syntax: 
query II rowsort label-2678
SELECT COUNT( * ) - 39 AS col2, 5 * - + COALESCE ( - 98, 36 + - - 4, + 62 ) col1
----
-38
490

skipif mysql # not compatible
query II rowsort label-2678
SELECT COUNT ( * ) - 39 AS col2, 5 * - + COALESCE ( - 98, 36 + - - 4, + 62 ) col1
----
-38
490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2679
SELECT + CAST( NULL AS SIGNED ) * COALESCE ( - - 58, - + COUNT( * ), - 15 * - COUNT( DISTINCT + 68 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2679
SELECT + CAST ( NULL AS INTEGER ) * COALESCE ( - - 58, - + COUNT ( * ), - 15 * - COUNT ( DISTINCT + 68 ) )
----
NULL

query I rowsort
SELECT + 99 + - - 23 AS col1
----
122

query I rowsort
SELECT 26 * 53
----
1378

query II rowsort
SELECT - 65 + - 2, 87 * + + 46 AS col2
----
-67
4002

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

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

query I rowsort
SELECT ALL + - 27 * - 69
----
1863

query I rowsort
SELECT ALL + 87 + - + 65 AS col2
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-2686
SELECT DISTINCT 36 DIV + 52 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2686
SELECT DISTINCT 36 / + 52 AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-2687
SELECT SUM ( DISTINCT 1 )
----
1

query I rowsort
SELECT + 87 * 64 + + 57 col0
----
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT DISTINCT + COUNT( * ) + + 17 col1
----
18

skipif mysql # not compatible
query I rowsort label-2689
SELECT DISTINCT + COUNT ( * ) + + 17 col1
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-2690
SELECT ALL - 36 col2, - ( + + 37 ) + + COUNT( * ) AS col0
----
-36
-36

skipif mysql # not compatible
query II rowsort label-2690
SELECT ALL - 36 col2, - ( + + 37 ) + + COUNT ( * ) AS col0
----
-36
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-2691
SELECT 37 AS col2, COUNT( * ) + - + 46 + - SUM( ALL + 42 ) AS col1
----
37
-87

skipif mysql # not compatible
query II rowsort label-2691
SELECT 37 AS col2, COUNT ( * ) + - + 46 + - SUM ( ALL + 42 ) AS col1
----
37
-87

query I rowsort
SELECT ALL NULLIF ( 63, 18 ) + + 83 * + 57
----
4794

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT COUNT( * ) * 19 + 92 AS col0
----
111

skipif mysql # not compatible
query I rowsort label-2693
SELECT COUNT ( * ) * 19 + 92 AS col0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT ALL COUNT( * ) + 70 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-2694
SELECT ALL COUNT ( * ) + 70 AS col0
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2695
SELECT - 48 * - 33 + + NULLIF ( - NULLIF ( + 50, + 41 + + 42 ), - COUNT( * ) ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2695
SELECT - 48 * - 33 + + NULLIF ( - NULLIF ( + 50, + 41 + + 42 ), - COUNT ( * ) ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 6 * + - 34
----
-204

query I rowsort
SELECT ( 35 ) * - 8
----
-280

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2698
SELECT DISTINCT 36 DIV - + 81 * - 83, ( + - 8 ) + - SUM( ALL - + 62 ) AS col0
----
0
54

skipif mysql # not compatible
query II rowsort label-2698
SELECT DISTINCT 36 / - + 81 * - 83, ( + - 8 ) + - SUM ( ALL - + 62 ) AS col0
----
0
54

query I rowsort
SELECT DISTINCT 48 - - + 3
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-2700
SELECT + 6 AS col2, 69 + + 11 DIV + 39
----
6
69

skipif mysql # not compatible
query II rowsort label-2700
SELECT + 6 AS col2, 69 + + 11 / + 39
----
6
69

query I rowsort
SELECT 32 + - 55
----
-23

query I rowsort
SELECT ALL 83 - + 40 col0
----
43

query II rowsort
SELECT - 4 * + 92 + 7 + + - 80 + + 60 - + 82 + 53 * - 61 col2, + 52 AS col1
----
-3696
52

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT ( - COUNT( + - 10 ) ) * - + 45
----
45

skipif mysql # not compatible
query I rowsort label-2705
SELECT ( - COUNT ( + - 10 ) ) * - + 45
----
45

query II rowsort
SELECT 80 * - 26 + - - 4 AS col0, - 23 AS col0
----
-2076
-23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2707
SELECT 41 AS col0, - COALESCE ( - CAST( 85 AS SIGNED ), 79 ) * - + 71 - - + 24 AS col2
----
41
-6011

skipif mysql # not compatible
query II rowsort label-2707
SELECT 41 AS col0, - COALESCE ( - CAST ( 85 AS INTEGER ), 79 ) * - + 71 - - + 24 AS col2
----
41
-6011

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2708
SELECT ALL - 3 * CASE COUNT( ALL 77 ) WHEN + + 69 + + + 75 + + 10 THEN 29 / 18 WHEN 86 THEN NULL WHEN + - 73 THEN NULL ELSE NULL END + CAST( ( 54 ) AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2708
SELECT ALL - 3 * CASE COUNT ( ALL 77 ) WHEN + + 69 + + + 75 + + 10 THEN 29 / 18 WHEN 86 THEN NULL WHEN + - 73 THEN NULL ELSE NULL END + CAST ( ( 54 ) AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2709
SELECT ALL + 59 * - COALESCE ( COUNT( ALL + 82 ), + - 11 * 98 DIV 0 + COUNT( * ) + - - 11 + + - 96 + - ( + MIN( DISTINCT 82 ) ) * + 86 * + 11 ) + - + 0
----
-59

skipif mysql # not compatible
query I rowsort label-2709
SELECT ALL + 59 * - COALESCE ( COUNT ( ALL + 82 ), + - 11 * 98 / 0 + COUNT ( * ) + - - 11 + + - 96 + - ( + MIN ( DISTINCT 82 ) ) * + 86 * + 11 ) + - + 0
----
-59

query II rowsort
SELECT - - 71 AS col0, - 48 + - 75
----
71
-123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2711
SELECT - + CASE + 88 WHEN - 75 + - CASE + 76 WHEN + - CAST( + 31 AS SIGNED ) / - 28 + - + 28 + + 3 + + + 39 * + - 57 * + 26 / + 40 THEN + 12 / 20 - - 8 * COUNT( * ) END THEN + 3 - 16 - + ( 93 ) / - + 5 WHEN - 68 + - 1 THEN - 9 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2711
SELECT - + CASE + 88 WHEN - 75 + - CASE + 76 WHEN + - CAST ( + 31 AS INTEGER ) / - 28 + - + 28 + + 3 + + + 39 * + - 57 * + 26 / + 40 THEN + 12 / 20 - - 8 * COUNT ( * ) END THEN + 3 - 16 - + ( 93 ) / - + 5 WHEN - 68 + - 1 THEN - 9 ELSE NULL END col0
----
NULL

query II rowsort
SELECT + 97, 13 AS col2
----
97
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2713
SELECT - 97 * + - 63 + - 18 * - CAST( + - ( + + 78 ) AS SIGNED ) * - 20 + - + 22 AS col1
----
34169

skipif mysql # not compatible
query I rowsort label-2713
SELECT - 97 * + - 63 + - 18 * - CAST ( + - ( + + 78 ) AS INTEGER ) * - 20 + - + 22 AS col1
----
34169

query I rowsort
SELECT ALL - + 92 + - 26 + 66 * + 30 * - + 93 AS col2
----
-184258

query I rowsort
SELECT + 63 * 26 + + + 12 AS col1
----
1650

onlyif mysql # DIV for integer division: 
query I rowsort label-2716
SELECT ALL - - 79 DIV 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL - - 79 / 84 AS col1
----
0

query I rowsort
SELECT ALL + 16 + - 18 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT ALL + 58 + - MIN( - - NULLIF ( + 32, + + 31 ) ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-2718
SELECT ALL + 58 + - MIN ( - - NULLIF ( + 32, + + 31 ) ) AS col2
----
26

query I rowsort
SELECT DISTINCT - 94 * + 46 * - 62
----
268088

query I rowsort
SELECT ALL + 36 + + + 72 + - + 2 * 59 + + 9 AS col0
----
-1

query I rowsort
SELECT DISTINCT + + 50 + - - 59 + 20 * + - 78
----
-1451

query II rowsort
SELECT + 93 AS col2, 73 col2
----
93
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT - 8 + + + COUNT( * ) * + COUNT( * ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-2723
SELECT - 8 + + + COUNT ( * ) * + COUNT ( * ) AS col2
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-2724
SELECT ALL + 46 * 76 DIV - - 96 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-2724
SELECT ALL + 46 * 76 / - - 96 AS col1
----
36

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT NULLIF ( - + 51, + + CASE + COUNT( * ) WHEN 91 - 24 + SUM( + 32 ) * - SUM( DISTINCT + 41 ) * 83 + - ( 71 ) + - 84 + - MAX( - 84 ) + + 48 * + ( - 7 ) THEN - 10 WHEN MIN( - - 34 ) THEN NULL END ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-2726
SELECT NULLIF ( - + 51, + + CASE + COUNT ( * ) WHEN 91 - 24 + SUM ( + 32 ) * - SUM ( DISTINCT + 41 ) * 83 + - ( 71 ) + - 84 + - MAX ( - 84 ) + + 48 * + ( - 7 ) THEN - 10 WHEN MIN ( - - 34 ) THEN NULL END ) AS col1
----
-51

query I rowsort
SELECT DISTINCT - 33 * 81 + - 85 AS col2
----
-2758

query I rowsort
SELECT ALL 19 * 84 AS col1
----
1596

query I rowsort
SELECT DISTINCT - 0 * + 32 * 16 - 16 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT NULLIF ( - COUNT( * ), 38 / + + 20 + MIN( DISTINCT + 94 ) * + 18 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2730
SELECT NULLIF ( - COUNT ( * ), 38 / + + 20 + MIN ( DISTINCT + 94 ) * + 18 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT 57 * - + 92 - - + 62
----
-5182

onlyif mysql # DIV for integer division: 
query I rowsort label-2732
SELECT - 1 DIV + 8 col1
----
0

skipif mysql # not compatible
query I rowsort label-2732
SELECT - 1 / + 8 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2733
SELECT DISTINCT + CAST( - + NULLIF ( - - 34, + 76 ) AS SIGNED ), + 43 + - 36 AS col1
----
-34
7

skipif mysql # not compatible
query II rowsort label-2733
SELECT DISTINCT + CAST ( - + NULLIF ( - - 34, + 76 ) AS INTEGER ), + 43 + - 36 AS col1
----
-34
7

query II rowsort
SELECT COALESCE ( 42, + NULLIF ( + 76, - 7 * 27 - + - 89 ) ) AS col0, 14 AS col0
----
42
14

onlyif mysql # aggregate syntax: 
query II rowsort label-2735
SELECT + MAX( DISTINCT 97 ) AS col1, 65
----
97
65

skipif mysql # not compatible
query II rowsort label-2735
SELECT + MAX ( DISTINCT 97 ) AS col1, 65
----
97
65

onlyif mysql # DIV for integer division: 
query I rowsort label-2736
SELECT - 48 * 1 DIV + 28
----
-1

skipif mysql # not compatible
query I rowsort label-2736
SELECT - 48 * 1 / + 28
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2737
SELECT DISTINCT + CASE - + 91 WHEN + CAST( - - 64 AS SIGNED ) THEN NULL WHEN 48 THEN - 9 + + + 19 / - - 17 - - + 74 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2737
SELECT DISTINCT + CASE - + 91 WHEN + CAST ( - - 64 AS INTEGER ) THEN NULL WHEN 48 THEN - 9 + + + 19 / - - 17 - - + 74 END col0
----
NULL

query I rowsort
SELECT DISTINCT - + 90 * - 74
----
6660

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

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

query I rowsort
SELECT DISTINCT - 5 * - 92
----
460

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2741
SELECT + - 94 DIV COUNT( * ) AS col2, - 73 * - ( - 75 ) AS col2
----
-94
-5475

skipif mysql # not compatible
query II rowsort label-2741
SELECT + - 94 / COUNT ( * ) AS col2, - 73 * - ( - 75 ) AS col2
----
-94
-5475

onlyif mysql # DIV for integer division: 
query II rowsort label-2742
SELECT - 98 + + ( ( + + 63 ) ) AS col0, 37 + + 49 * 88 DIV + - 92
----
-35
-9

skipif mysql # not compatible
query II rowsort label-2742
SELECT - 98 + + ( ( + + 63 ) ) AS col0, 37 + + 49 * 88 / + - 92
----
-35
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT + + 17 + - NULLIF ( - - 13, - - COUNT( * ) ) col2
----
4

skipif mysql # not compatible
query I rowsort label-2743
SELECT + + 17 + - NULLIF ( - - 13, - - COUNT ( * ) ) col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2744
SELECT + 94 * + COUNT( * ) * CAST( NULL AS SIGNED ) / + - 6 * + 95 col2, CAST( - COALESCE ( + 77, 76, 10 ) AS SIGNED ) + + COALESCE ( + 67, + SUM( DISTINCT - - NULLIF ( - 27, NULLIF ( - + 5, + 69 * + 99 ) + - - ( + 95 ) ) ), + MAX( ALL + 1 ) + + 3 + - 22 ) - 46
----
NULL
-56

skipif mysql # not compatible
query II rowsort label-2744
SELECT + 94 * + COUNT ( * ) * CAST ( NULL AS INTEGER ) / + - 6 * + 95 col2, CAST ( - COALESCE ( + 77, 76, 10 ) AS INTEGER ) + + COALESCE ( + 67, + SUM ( DISTINCT - - NULLIF ( - 27, NULLIF ( - + 5, + 69 * + 99 ) + - - ( + 95 ) ) ), + MAX ( ALL + 1 ) + + 3 + - 22 ) - 46
----
NULL
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-2745
SELECT ALL 64 + + 87 AS col0, - COUNT( + + 92 ) AS col1
----
151
-1

skipif mysql # not compatible
query II rowsort label-2745
SELECT ALL 64 + + 87 AS col0, - COUNT ( + + 92 ) AS col1
----
151
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT DISTINCT COUNT( * ) + - - 7 + - 73 * 6 + - + ( COUNT( * ) ) AS col2
----
-431

skipif mysql # not compatible
query I rowsort label-2747
SELECT DISTINCT COUNT ( * ) + - - 7 + - 73 * 6 + - + ( COUNT ( * ) ) AS col2
----
-431

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT DISTINCT - 98 * + + NULLIF ( + COUNT( * ), 79 ) * - - 90 + CASE WHEN NOT NULL IS NULL THEN - 19 END + - 11 + 51 * + 42 * + 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2748
SELECT DISTINCT - 98 * + + NULLIF ( + COUNT ( * ), 79 ) * - - 90 + CASE WHEN NOT NULL IS NULL THEN - 19 END + - 11 + 51 * + 42 * + 75 AS col1
----
NULL

query I rowsort
SELECT ALL + 87 + + - 80 AS col0
----
7

query I rowsort
SELECT ALL + 7 + - - 55 + - + 70 * + - 83
----
5872

query I rowsort
SELECT + 83 + 65 AS col0
----
148

query I rowsort
SELECT + ( - 70 ) + - 61 * - 43 AS col0
----
2553

query I rowsort
SELECT - 10 + - 57 * 29 col1
----
-1663

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT + 14 + - COUNT( * ) + + + 44 * COUNT( DISTINCT - 71 )
----
57

skipif mysql # not compatible
query I rowsort label-2755
SELECT + 14 + - COUNT ( * ) + + + 44 * COUNT ( DISTINCT - 71 )
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2756
SELECT + ( + - 66 ) DIV - 72 * ( - SUM( DISTINCT 56 ) ) * 74 + + 60 + 31 + 47 DIV + 30
----
92

skipif mysql # not compatible
query I rowsort label-2756
SELECT + ( + - 66 ) / - 72 * ( - SUM ( DISTINCT 56 ) ) * 74 + + 60 + 31 + 47 / + 30
----
92

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2757
SELECT 89 DIV CAST( + - 65 AS SIGNED ) + - 53
----
-54

skipif mysql # not compatible
query I rowsort label-2757
SELECT 89 / CAST ( + - 65 AS INTEGER ) + - 53
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT ALL + SUM( + + 19 ) col1
----
19

skipif mysql # not compatible
query I rowsort label-2758
SELECT ALL + SUM ( + + 19 ) col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT + 24 * + - COUNT( * ) * + + 62
----
-1488

skipif mysql # not compatible
query I rowsort label-2759
SELECT + 24 * + - COUNT ( * ) * + + 62
----
-1488

query I rowsort
SELECT - 30 * + 97
----
-2910

query I rowsort
SELECT - 42 + - 0 + - 40 * + ( + NULLIF ( 75, + 50 ) ) + 60
----
-2982

onlyif mysql # DIV for integer division: 
query I rowsort label-2762
SELECT DISTINCT 65 * - COALESCE ( + CASE + - 53 WHEN + 92 + - 21 + + + 63 * - 85 THEN + 5 * + 14 DIV + - 60 END, - - 33 ) AS col0
----
-2145

skipif mysql # not compatible
query I rowsort label-2762
SELECT DISTINCT 65 * - COALESCE ( + CASE + - 53 WHEN + 92 + - 21 + + + 63 * - 85 THEN + 5 * + 14 / + - 60 END, - - 33 ) AS col0
----
-2145

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT ALL + MAX( - 9 ) col2
----
-9

skipif mysql # not compatible
query I rowsort label-2763
SELECT ALL + MAX ( - 9 ) col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT COUNT( * ) * + 37 + + - 23 col0
----
14

skipif mysql # not compatible
query I rowsort label-2764
SELECT COUNT ( * ) * + 37 + + - 23 col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT DISTINCT + MIN( 40 ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-2765
SELECT DISTINCT + MIN ( 40 ) AS col0
----
40

query I rowsort
SELECT - 38 + - - 19
----
-19

query I rowsort
SELECT 11 * - + 96 col0
----
-1056

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT + MAX( DISTINCT - + 85 ) + - 40
----
-125

skipif mysql # not compatible
query I rowsort label-2768
SELECT + MAX ( DISTINCT - + 85 ) + - 40
----
-125

query I rowsort
SELECT ALL + 51 + - 89
----
-38

query I rowsort
SELECT + - COALESCE ( - 3, + 18 - ( + 87 ) ) AS col0
----
3

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2772
SELECT ALL + - 8 + - 79 DIV - + 11, - 18 * - 82 * + 17 - + + COUNT( * ) AS col0
----
-1
25091

skipif mysql # not compatible
query II rowsort label-2772
SELECT ALL + - 8 + - 79 / - + 11, - 18 * - 82 * + 17 - + + COUNT ( * ) AS col0
----
-1
25091

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2774
SELECT - 45 DIV + 80 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2774
SELECT - 45 / + 80 AS col2
----
0

query I rowsort
SELECT ALL - 16 + + - 6 AS col1
----
-22

query I rowsort
SELECT DISTINCT + 58 + - 58 AS col2
----
0

query I rowsort
SELECT ALL + 99 * - - 13 AS col2
----
1287

query I rowsort
SELECT 60 * - 49
----
-2940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2779
SELECT ALL - - 8 * CAST( + - CASE + 69 WHEN 64 THEN - 88 WHEN - - 25 THEN - COUNT( * ) * - 74 END AS SIGNED ) + - 26 - - COUNT( * ) + + + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-2779
SELECT ALL - - 8 * CAST ( + - CASE + 69 WHEN 64 THEN - 88 WHEN - - 25 THEN - COUNT ( * ) * - 74 END AS INTEGER ) + - 26 - - COUNT ( * ) + + + 35
----
NULL

query II rowsort
SELECT DISTINCT 10 AS col1, 48 * - 63 AS col0
----
10
-3024

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

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

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

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

query I rowsort
SELECT + 34 * - 19 AS col0
----
-646

onlyif mysql # DIV for integer division: 
query II rowsort label-2784
SELECT - NULLIF ( 26, - 32 ) AS col1, 42 DIV - - 5
----
-26
8

skipif mysql # not compatible
query II rowsort label-2784
SELECT - NULLIF ( 26, - 32 ) AS col1, 42 / - - 5
----
-26
8

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

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

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

query I rowsort
SELECT 7 * - 9 AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT DISTINCT 20 * + MAX( - - 23 )
----
460

skipif mysql # not compatible
query I rowsort label-2788
SELECT DISTINCT 20 * + MAX ( - - 23 )
----
460

query I rowsort
SELECT DISTINCT 31 * 86 * 24 col2
----
63984

query I rowsort
SELECT 90 + + 6
----
96

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

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

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

query I rowsort
SELECT DISTINCT 84 * + 36 AS col1
----
3024

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2795
SELECT COUNT( * ) DIV - 67 * + + NULLIF ( + 29, 39 DIV + 22 + + 86 ), - CAST( NULL AS SIGNED ) AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2795
SELECT COUNT ( * ) / - 67 * + + NULLIF ( + 29, 39 / + 22 + + 86 ), - CAST ( NULL AS INTEGER ) AS col1
----
0
NULL

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

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

query II rowsort
SELECT DISTINCT - 64 AS col1, - 91 * - 23 AS col2
----
-64
2093

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2798
SELECT COALESCE ( 17, - 58 + 11 * 73, - - 29 * + 0 - - CASE - + NULLIF ( + 80, - 40 + - + AVG ( - 20 ) ) WHEN AVG ( ALL + - 76 ) * - + 1 - + - 55 * - 59 THEN - 94 DIV - ( - 76 ) * - 47 END - - 11 ) DIV + MIN( - + 27 ) - - 87 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-2798
SELECT COALESCE ( 17, - 58 + 11 * 73, - - 29 * + 0 - - CASE - + NULLIF ( + 80, - 40 + - + AVG ( - 20 ) ) WHEN AVG ( ALL + - 76 ) * - + 1 - + - 55 * - 59 THEN - 94 / - ( - 76 ) * - 47 END - - 11 ) / + MIN ( - + 27 ) - - 87 AS col0
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-2799
SELECT ALL + 12 + - + 66 AS col2, - COUNT( * ) * + 97 * + + 63
----
-54
-6111

skipif mysql # not compatible
query II rowsort label-2799
SELECT ALL + 12 + - + 66 AS col2, - COUNT ( * ) * + 97 * + + 63
----
-54
-6111

onlyif mysql # DIV for integer division: 
query I rowsort label-2800
SELECT DISTINCT NULLIF ( + 68, + 62 * 43 ) DIV + + 41
----
1

skipif mysql # not compatible
query I rowsort label-2800
SELECT DISTINCT NULLIF ( + 68, + 62 * 43 ) / + + 41
----
1

query II rowsort
SELECT + 15 AS col2, 50 AS col1
----
15
50

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

skipif mysql # not compatible
query II rowsort label-2802
SELECT 6 AS col1, + COUNT ( * ) + - CAST ( NULL AS REAL ) * - + 28
----
6
NULL

query I rowsort
SELECT ALL ( + 61 ) * 41 AS col1
----
2501

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2804
SELECT + ( CAST( - 40 AS SIGNED ) ) * + - CASE + 74 WHEN + + ( 88 ) * + ( + + SUM( DISTINCT - + 50 ) ) * - SUM( DISTINCT - 62 ) THEN 22 ELSE + 35 * + 70 - + + COUNT( * ) END - 73 AS col2
----
97887

skipif mysql # not compatible
query I rowsort label-2804
SELECT + ( CAST ( - 40 AS INTEGER ) ) * + - CASE + 74 WHEN + + ( 88 ) * + ( + + SUM ( DISTINCT - + 50 ) ) * - SUM ( DISTINCT - 62 ) THEN 22 ELSE + 35 * + 70 - + + COUNT ( * ) END - 73 AS col2
----
97887

query I rowsort
SELECT ALL - - 60 + - 55 AS col1
----
5

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2807
SELECT DISTINCT + ( 83 ) + + 65 * COALESCE ( - + 18, - 26 * - 22 + - - COALESCE ( - + COUNT( * ), - 23 + - 89 + CAST( 4 AS SIGNED ) + + 15 ) ), 26 + - 4 AS col2
----
-1087
22

skipif mysql # not compatible
query II rowsort label-2807
SELECT DISTINCT + ( 83 ) + + 65 * COALESCE ( - + 18, - 26 * - 22 + - - COALESCE ( - + COUNT ( * ), - 23 + - 89 + CAST ( 4 AS INTEGER ) + + 15 ) ), 26 + - 4 AS col2
----
-1087
22

query I rowsort
SELECT ALL 85 + + 10 AS col1
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2809
SELECT + COALESCE ( + + COUNT( ALL + - 16 ), + 86 * - CAST( NULL AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-2809
SELECT + COALESCE ( + + COUNT ( ALL + - 16 ), + 86 * - CAST ( NULL AS INTEGER ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2810
SELECT ALL + + 72 + + 33 DIV ( + - ( + 7 ) )
----
68

skipif mysql # not compatible
query I rowsort label-2810
SELECT ALL + + 72 + + 33 / ( + - ( + 7 ) )
----
68

query II rowsort
SELECT ALL - 85, - ( + ( - ( - 23 ) ) ) AS col1
----
-85
-23

query I rowsort
SELECT 65 * + - 60 + + 85 col0
----
-3815

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT + 52 - + COUNT( * ) * - 0 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-2813
SELECT + 52 - + COUNT ( * ) * - 0 AS col1
----
52

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

query I rowsort
SELECT ALL - 79 - + 33 * + 58 * 53 AS col0
----
-101521

onlyif mysql # aggregate syntax: 
query II rowsort label-2816
SELECT 83, - 90 - + COUNT( * ) AS col2
----
83
-91

skipif mysql # not compatible
query II rowsort label-2816
SELECT 83, - 90 - + COUNT ( * ) AS col2
----
83
-91

query I rowsort
SELECT ALL + - 93 - + COALESCE ( - 73, - - 37 )
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2818
SELECT - COUNT( * ) + - 41 + - 30 DIV 28 * + 29 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-2818
SELECT - COUNT ( * ) + - 41 + - 30 / 28 * + 29 AS col2
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-2819
SELECT DISTINCT + 77 DIV + 83
----
0

skipif mysql # not compatible
query I rowsort label-2819
SELECT DISTINCT + 77 / + 83
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2820
SELECT ALL 34 AS col2, 22 - 41 * - SUM( 41 ) * - 14 + + + 30 DIV 75
----
34
-23512

skipif mysql # not compatible
query II rowsort label-2820
SELECT ALL 34 AS col2, 22 - 41 * - SUM ( 41 ) * - 14 + + + 30 / 75
----
34
-23512

query I rowsort
SELECT 43 + 46 + - 66 + 13 * + - 20 AS col0
----
-237

query I rowsort
SELECT ALL + + 1 * 73 * + 99
----
7227

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2823
SELECT 10 + + COALESCE ( - + 4, - + 38 * - - 23 * 10, CASE + 83 WHEN 26 THEN - - ( + - 57 ) DIV 47 - + 65 * 65 WHEN - 93 + COUNT( * ) * - - 38 THEN NULL WHEN + COUNT( * ) DIV - + 87 DIV - + 34 + + 58 THEN + - 69 END * 97 + + 34 * COALESCE ( + COUNT( * ), + NULLIF ( 37, + 65 ) * 34 ) + 63 ) * COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-2823
SELECT 10 + + COALESCE ( - + 4, - + 38 * - - 23 * 10, CASE + 83 WHEN 26 THEN - - ( + - 57 ) / 47 - + 65 * 65 WHEN - 93 + COUNT ( * ) * - - 38 THEN NULL WHEN + COUNT ( * ) / - + 87 / - + 34 + + 58 THEN + - 69 END * 97 + + 34 * COALESCE ( + COUNT ( * ), + NULLIF ( 37, + 65 ) * 34 ) + 63 ) * COUNT ( * )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT ALL - COALESCE ( + 69, - - 20 * - 42 + - 14 * - - COUNT( * ) + - - 22 * + COUNT( * ) * - CASE + 33 WHEN - 10 + - - ( 13 ) THEN NULL ELSE NULLIF ( + 94, + 66 ) END ) * - - 62 * - 28 * - 8 AS col2
----
-958272

skipif mysql # not compatible
query I rowsort label-2824
SELECT ALL - COALESCE ( + 69, - - 20 * - 42 + - 14 * - - COUNT ( * ) + - - 22 * + COUNT ( * ) * - CASE + 33 WHEN - 10 + - - ( 13 ) THEN NULL ELSE NULLIF ( + 94, + 66 ) END ) * - - 62 * - 28 * - 8 AS col2
----
-958272

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT COUNT( * ) + + 80 * - 60 AS col0
----
-4799

skipif mysql # not compatible
query I rowsort label-2825
SELECT COUNT ( * ) + + 80 * - 60 AS col0
----
-4799

onlyif mysql # DIV for integer division: 
query II rowsort label-2826
SELECT 97 DIV - + 79 AS col1, 39 AS col2
----
-1
39

skipif mysql # not compatible
query II rowsort label-2826
SELECT 97 / - + 79 AS col1, 39 AS col2
----
-1
39

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2827
SELECT COALESCE ( + + CAST( + 34 AS SIGNED ), + 13 - - 22 + - 60 DIV - - ( - 28 ) + + - 11 + 13 * - 48 + + 76 ) * - 50 * + 33 AS col0
----
-56100

skipif mysql # not compatible
query I rowsort label-2827
SELECT COALESCE ( + + CAST ( + 34 AS INTEGER ), + 13 - - 22 + - 60 / - - ( - 28 ) + + - 11 + 13 * - 48 + + 76 ) * - 50 * + 33 AS col0
----
-56100

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

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

query I rowsort
SELECT 42 * - + 51
----
-2142

query I rowsort
SELECT ( - + 33 ) + 86 AS col0
----
53

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

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

query I rowsort
SELECT 32 * - 83 AS col0
----
-2656

query I rowsort
SELECT ALL - 80 + - + 39 AS col1
----
-119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2834
SELECT DISTINCT - CASE - - MAX( + 38 ) WHEN - COUNT( * ) * - 3 THEN + NULLIF ( - - 93, ( + 84 ) * + 29 + ( + - 33 ) + + COUNT( * ) - 45 / 32 + - - 96 + + 29 * - - 47 / 31 * 89 / + 84 + 35 ) * + CAST( ( 27 ) AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2834
SELECT DISTINCT - CASE - - MAX ( + 38 ) WHEN - COUNT ( * ) * - 3 THEN + NULLIF ( - - 93, ( + 84 ) * + 29 + ( + - 33 ) + + COUNT ( * ) - 45 / 32 + - - 96 + + 29 * - - 47 / 31 * 89 / + 84 + 35 ) * + CAST ( ( 27 ) AS INTEGER ) END AS col1
----
NULL

query II rowsort
SELECT ALL 81 * + - NULLIF ( 34, - 85 ) + - + 72 col0, - 32 AS col2
----
-2826
-32

query I rowsort
SELECT ALL 65 * - 33 AS col0
----
-2145

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT ALL + COUNT( * ) * + - 59 + + + ( + 23 ) - + COALESCE ( - 0, - 6, 64 )
----
-36

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL + COUNT ( * ) * + - 59 + + + ( + 23 ) - + COALESCE ( - 0, - 6, 64 )
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2838
SELECT - 87 * 64 + + CAST( + 34 AS SIGNED ) + + + 2 col1
----
-5532

skipif mysql # not compatible
query I rowsort label-2838
SELECT - 87 * 64 + + CAST ( + 34 AS INTEGER ) + + + 2 col1
----
-5532

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2839
SELECT + COUNT( + 60 ) - NULLIF ( - 0, - CAST( 94 AS SIGNED ) ) DIV - 76 * + 4
----
1

skipif mysql # not compatible
query I rowsort label-2839
SELECT + COUNT ( + 60 ) - NULLIF ( - 0, - CAST ( 94 AS INTEGER ) ) / - 76 * + 4
----
1

query I rowsort
SELECT DISTINCT - 81 * 6 * - 70 + + 94 * + 96 AS col2
----
43044

query I rowsort
SELECT ALL 29 * + 21 * + - 42 * - 80 AS col0
----
2046240

onlyif mysql # DIV for integer division: 
query I rowsort label-2842
SELECT + 34 DIV - 58 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2842
SELECT + 34 / - 58 AS col2
----
0

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

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

query I rowsort
SELECT DISTINCT + NULLIF ( - - 50, - 52 + 14 ) AS col0
----
50

query I rowsort
SELECT DISTINCT + + 89 * 51 * + + 94 + - 19 + - + 36 * + 35 * + - 18 * + + 57 AS col1
----
1719407

query I rowsort
SELECT + 37 * + CASE + + NULLIF ( - - 30, 68 ) WHEN + + 58 THEN NULL WHEN + 80 * - + 30 * + - 96 THEN NULL WHEN - NULLIF ( + 64, 1 + 15 ) * 57 * 46 THEN + 26 ELSE NULL END + 12
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2847
SELECT ALL + 87 * 45 + + 1 * CASE + + CAST( + 96 AS SIGNED ) WHEN + + COUNT( DISTINCT - - 96 ) THEN + MIN( + - ( 31 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2847
SELECT ALL + 87 * 45 + + 1 * CASE + + CAST ( + 96 AS INTEGER ) WHEN + + COUNT ( DISTINCT - - 96 ) THEN + MIN ( + - ( 31 ) ) END
----
NULL

query I rowsort
SELECT ALL + 22 * 67 + 37 - + 93
----
1418

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT 63 * ( 40 ) * + COUNT( * ) - - 4 + 13
----
2537

skipif mysql # not compatible
query I rowsort label-2849
SELECT 63 * ( 40 ) * + COUNT ( * ) - - 4 + 13
----
2537

query I rowsort
SELECT + + 5 * - 52
----
-260

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2851
SELECT ALL + CASE 25 WHEN + - 33 * 18 + - + 46 THEN 20 - + + 74 * 62 ELSE 4 END DIV - COUNT( + 20 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-2851
SELECT ALL + CASE 25 WHEN + - 33 * 18 + - + 46 THEN 20 - + + 74 * 62 ELSE 4 END / - COUNT ( + 20 ) AS col1
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2852
SELECT + + CAST( - CASE - 25 WHEN + - 32 * - 4 THEN - 27 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2852
SELECT + + CAST ( - CASE - 25 WHEN + - 32 * - 4 THEN - 27 END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2853
SELECT + + 88 + 62 + - + 46 AS col0, - 16 - - ( - + 96 ) + COUNT( * ) * + COUNT( * ) - - 7
----
104
-104

skipif mysql # not compatible
query II rowsort label-2853
SELECT + + 88 + 62 + - + 46 AS col0, - 16 - - ( - + 96 ) + COUNT ( * ) * + COUNT ( * ) - - 7
----
104
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT DISTINCT 15 * - MIN( - 75 ) AS col2
----
1125

skipif mysql # not compatible
query I rowsort label-2854
SELECT DISTINCT 15 * - MIN ( - 75 ) AS col2
----
1125

query I rowsort
SELECT - 61 * 0 + 78 AS col1
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2856
SELECT DISTINCT + COUNT( ALL - 47 ) * + 91 DIV - 53
----
-1

skipif mysql # not compatible
query I rowsort label-2856
SELECT DISTINCT + COUNT ( ALL - 47 ) * + 91 / - 53
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT DISTINCT + + ( - + CASE - COUNT( * ) WHEN - 52 THEN NULL WHEN - NULLIF ( - 7, 17 * + COUNT( * ) / 73 ) THEN - 51 + + 30 - - 84 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2857
SELECT DISTINCT + + ( - + CASE - COUNT ( * ) WHEN - 52 THEN NULL WHEN - NULLIF ( - 7, 17 * + COUNT ( * ) / 73 ) THEN - 51 + + 30 - - 84 END )
----
NULL

query I rowsort
SELECT ALL + 47 - + + 48 col2
----
-1

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

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

query I rowsort
SELECT - ( + CASE + + 90 WHEN 31 THEN - + 63 ELSE - 54 END ) AS col2
----
54

query II rowsort
SELECT 91, - 77 AS col0
----
91
-77

query I rowsort
SELECT - 78 + + 44 - - - 70
----
-104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2863
SELECT DISTINCT COALESCE ( + COUNT( * ), - CAST( ( 34 ) AS SIGNED ) DIV - 66 )
----
1

skipif mysql # not compatible
query I rowsort label-2863
SELECT DISTINCT COALESCE ( + COUNT ( * ), - CAST ( ( 34 ) AS INTEGER ) / - 66 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2864
SELECT - COUNT( * ) AS col1, + CASE 85 WHEN - + 99 THEN NULL ELSE - 89 END
----
-1
-89

skipif mysql # not compatible
query II rowsort label-2864
SELECT - COUNT ( * ) AS col1, + CASE 85 WHEN - + 99 THEN NULL ELSE - 89 END
----
-1
-89

query I rowsort
SELECT ALL COALESCE ( - 88, + 3 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT - 42 + - ( SUM( ALL + 51 ) ) * 50
----
-2592

skipif mysql # not compatible
query I rowsort label-2866
SELECT - 42 + - ( SUM ( ALL + 51 ) ) * 50
----
-2592

query I rowsort
SELECT DISTINCT 48 + + 61 AS col0
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2868
SELECT - COUNT( * ) DIV + 13 * + 9, 37 AS col0
----
0
37

skipif mysql # not compatible
query II rowsort label-2868
SELECT - COUNT ( * ) / + 13 * + 9, 37 AS col0
----
0
37

query I rowsort
SELECT DISTINCT + 12 + + 94
----
106

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

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

query II rowsort
SELECT - 99 AS col2, - 69
----
-99
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT ALL - ( 17 ) * - NULLIF ( - ( - + 20 ), + NULLIF ( + 99, - 28 + + COUNT( * ) ) )
----
340

skipif mysql # not compatible
query I rowsort label-2872
SELECT ALL - ( 17 ) * - NULLIF ( - ( - + 20 ), + NULLIF ( + 99, - 28 + + COUNT ( * ) ) )
----
340

onlyif mysql # DIV for integer division: 
query I rowsort label-2873
SELECT - 83 DIV - + 54
----
1

skipif mysql # not compatible
query I rowsort label-2873
SELECT - 83 / - + 54
----
1

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT - + COUNT( DISTINCT + 10 ) * 45 + + 66 * COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-2877
SELECT - + COUNT ( DISTINCT + 10 ) * 45 + + 66 * COUNT ( * )
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2878
SELECT ALL - COUNT( * ) DIV 98 + + - NULLIF ( 78, - + 51 + - 88 + + 75 ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-2878
SELECT ALL - COUNT ( * ) / 98 + + - NULLIF ( 78, - + 51 + - 88 + + 75 ) AS col0
----
-78

query II rowsort
SELECT - 16 col2, + 82 * + ( - ( ( + 21 ) ) ) AS col2
----
-16
-1722

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT DISTINCT + - SUM( DISTINCT + 24 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-2880
SELECT DISTINCT + - SUM ( DISTINCT + 24 ) AS col1
----
-24

query I rowsort
SELECT + 7 * + + 50
----
350

onlyif mysql # aggregate syntax: 
query II rowsort label-2882
SELECT DISTINCT + MIN( DISTINCT + 92 ) * + 98 AS col0, + COUNT( * ) * 53 * + + 76 * COUNT( * ) * 91 AS col2
----
9016
366548

skipif mysql # not compatible
query II rowsort label-2882
SELECT DISTINCT + MIN ( DISTINCT + 92 ) * + 98 AS col0, + COUNT ( * ) * 53 * + + 76 * COUNT ( * ) * 91 AS col2
----
9016
366548

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT ALL + 46 * - 2 - + - 17 * + 91 + - + NULLIF ( - - 54, + + MIN( + - 66 ) ) * + 44
----
-921

skipif mysql # not compatible
query I rowsort label-2883
SELECT ALL + 46 * - 2 - + - 17 * + 91 + - + NULLIF ( - - 54, + + MIN ( + - 66 ) ) * + 44
----
-921

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT + 91 * - 78 * - COUNT( * )
----
7098

skipif mysql # not compatible
query I rowsort label-2884
SELECT + 91 * - 78 * - COUNT ( * )
----
7098

query II rowsort
SELECT DISTINCT + 63 AS col1, 36 * - + 84
----
63
-3024

query I rowsort
SELECT ALL - CASE - NULLIF ( - 20, - - 34 ) WHEN + 43 * + 18 + - + 73 THEN - - 33 + + 98 + + 28 ELSE NULL END * + 71 - - ( 96 )
----
NULL

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

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

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

query II rowsort
SELECT + 50 - + ( - - 79 ), - 60 AS col2
----
-29
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-2890
SELECT 61 * - 82 * + - 31 - - + 75 AS col0, COUNT( * ) * NULLIF ( + ( + 27 ), + 43 ) + + + 14
----
155137
41

skipif mysql # not compatible
query II rowsort label-2890
SELECT 61 * - 82 * + - 31 - - + 75 AS col0, COUNT ( * ) * NULLIF ( + ( + 27 ), + 43 ) + + + 14
----
155137
41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT DISTINCT + 3 * 10 + + + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-2892
SELECT DISTINCT + 3 * 10 + + + COUNT ( * )
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-2893
SELECT + 25 + 38 col2, 83 * - COUNT( * ) AS col2
----
63
-83

skipif mysql # not compatible
query II rowsort label-2893
SELECT + 25 + 38 col2, 83 * - COUNT ( * ) AS col2
----
63
-83

query I rowsort
SELECT ALL ( + + 35 ) * 9 * + 76 * - + 46 AS col0
----
-1101240

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT DISTINCT CASE 81 WHEN + + 54 THEN NULL WHEN - + 38 THEN + COUNT( * ) ELSE NULL END * + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-2896
SELECT DISTINCT CASE 81 WHEN + + 54 THEN NULL WHEN - + 38 THEN + COUNT ( * ) ELSE NULL END * + 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT + COUNT( ALL + - 16 ) + - 18
----
-17

skipif mysql # not compatible
query I rowsort label-2897
SELECT + COUNT ( ALL + - 16 ) + - 18
----
-17

query I rowsort
SELECT ALL ( 71 ) + + - 46 AS col2
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2899
SELECT ALL COUNT( DISTINCT - - 11 ) + - 47 DIV - - 33 - + 32
----
-32

skipif mysql # not compatible
query I rowsort label-2899
SELECT ALL COUNT ( DISTINCT - - 11 ) + - 47 / - - 33 - + 32
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2900
SELECT CAST( NULL AS SIGNED ) * - COUNT( * ) col1, - ( + 45 ) AS col1
----
NULL
-45

skipif mysql # not compatible
query II rowsort label-2900
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) col1, - ( + 45 ) AS col1
----
NULL
-45

query I rowsort
SELECT 70 + - 55
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-2902
SELECT 50 * - 0 DIV - 15
----
0

skipif mysql # not compatible
query I rowsort label-2902
SELECT 50 * - 0 / - 15
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2903
SELECT ALL - 91 * - CASE 94 WHEN - 97 * - + COUNT( * ) THEN + 36 ELSE + - MIN( 33 ) END * + - 36
----
108108

skipif mysql # not compatible
query I rowsort label-2903
SELECT ALL - 91 * - CASE 94 WHEN - 97 * - + COUNT ( * ) THEN + 36 ELSE + - MIN ( 33 ) END * + - 36
----
108108

query II rowsort
SELECT 57 + - 90 AS col1, 71 AS col2
----
-33
71

query I rowsort
SELECT DISTINCT 35 - + 82 AS col0
----
-47

query I rowsort
SELECT DISTINCT + - 41 - - 33 AS col0
----
-8

query I rowsort
SELECT ALL - 44 * + - 95 + + - 67
----
4113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2908
SELECT 1 * - + COALESCE ( MIN( - 7 ), - - COUNT( * ) + - ( 95 ), 40 * ( - + 14 ) - + 43 + - 30 + 6 + + - CAST( NULL AS SIGNED ) * + - CASE 66 WHEN 22 + - - 47 THEN + + 47 + 81 ELSE + MAX( 36 ) * + 92 END * + 83 * COUNT( * ) - + - 73 + - 14 ) AS col1, + 72 AS col1
----
7
72

skipif mysql # not compatible
query II rowsort label-2908
SELECT 1 * - + COALESCE ( MIN ( - 7 ), - - COUNT ( * ) + - ( 95 ), 40 * ( - + 14 ) - + 43 + - 30 + 6 + + - CAST ( NULL AS INTEGER ) * + - CASE 66 WHEN 22 + - - 47 THEN + + 47 + 81 ELSE + MAX ( 36 ) * + 92 END * + 83 * COUNT ( * ) - + - 73 + - 14 ) AS col1, + 72 AS col1
----
7
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2909
SELECT ALL - 33 * + CAST( + + CAST( + COUNT( * ) AS DECIMAL ) AS SIGNED ) + - 0 * + 8 * + + 61 * - - 61 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-2909
SELECT ALL - 33 * + CAST ( + + CAST ( + COUNT ( * ) AS REAL ) AS INTEGER ) + - 0 * + 8 * + + 61 * - - 61 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-2910
SELECT + 65 * + 66 + - + 96 + + + 22 + 95 * - + 44 + - - 66 * + SUM( DISTINCT - 24 ) AS col1, 85 AS col1
----
-1548
85

skipif mysql # not compatible
query II rowsort label-2910
SELECT + 65 * + 66 + - + 96 + + + 22 + 95 * - + 44 + - - 66 * + SUM ( DISTINCT - 24 ) AS col1, 85 AS col1
----
-1548
85

onlyif mysql # aggregate syntax: 
query II rowsort label-2911
SELECT + 5 + + 51 AS col1, COUNT( * ) col2
----
56
1

skipif mysql # not compatible
query II rowsort label-2911
SELECT + 5 + + 51 AS col1, COUNT ( * ) col2
----
56
1

query I rowsort
SELECT ALL + 41 - - 78 * + 40 AS col0
----
3161

query I rowsort
SELECT - 69 * + 33 + - + 0 AS col0
----
-2277

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT - MAX( + 84 ) / 36 + + 2 / 84 * + 25 * - CASE 94 WHEN 70 * ( + ( - + AVG ( - + 27 ) ) ) THEN NULL WHEN - - COUNT( * ) * + 82 THEN - 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2914
SELECT - MAX ( + 84 ) / 36 + + 2 / 84 * + 25 * - CASE 94 WHEN 70 * ( + ( - + AVG ( - + 27 ) ) ) THEN NULL WHEN - - COUNT ( * ) * + 82 THEN - 74 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2916
SELECT ALL - - CASE - MIN( - 10 ) WHEN 33 THEN CASE - 45 WHEN - + 8 THEN + 12 WHEN 28 + - - 10 THEN NULL WHEN + 76 THEN NULL END - - + 13 END AS col0, 72 AS col1
----
NULL
72

skipif mysql # not compatible
query II rowsort label-2916
SELECT ALL - - CASE - MIN ( - 10 ) WHEN 33 THEN CASE - 45 WHEN - + 8 THEN + 12 WHEN 28 + - - 10 THEN NULL WHEN + 76 THEN NULL END - - + 13 END AS col0, 72 AS col1
----
NULL
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT COALESCE ( + COUNT( * ), - - COUNT( * ), + + ( + SUM( 28 ) ) + - 25 )
----
1

skipif mysql # not compatible
query I rowsort label-2917
SELECT COALESCE ( + COUNT ( * ), - - COUNT ( * ), + + ( + SUM ( 28 ) ) + - 25 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT - 77 * - COUNT( DISTINCT - ( - + 88 ) ) + 85 AS col0
----
162

skipif mysql # not compatible
query I rowsort label-2918
SELECT - 77 * - COUNT ( DISTINCT - ( - + 88 ) ) + 85 AS col0
----
162

query I rowsort
SELECT 29 * + 46 * - 96 - - 2 AS col2
----
-128062

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT ALL - - 81 * + SUM( ALL - 93 )
----
-7533

skipif mysql # not compatible
query I rowsort label-2920
SELECT ALL - - 81 * + SUM ( ALL - 93 )
----
-7533

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT + NULLIF ( 23, + ( + MIN( DISTINCT + 69 ) ) * - 92 * - 97 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-2921
SELECT + NULLIF ( 23, + ( + MIN ( DISTINCT + 69 ) ) * - 92 * - 97 ) AS col2
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-2922
SELECT 9 DIV - 15
----
0

skipif mysql # not compatible
query I rowsort label-2922
SELECT 9 / - 15
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2924
SELECT ALL 20 + - + ( + MAX( - CAST( NULL AS DECIMAL ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2924
SELECT ALL 20 + - + ( + MAX ( - CAST ( NULL AS REAL ) ) ) AS col0
----
NULL

query I rowsort
SELECT ALL ( + 90 ) + - 73 + + 17
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2926
SELECT DISTINCT 55 + + MAX( - - 97 ) + - 73 DIV + 18 AS col0
----
148

skipif mysql # not compatible
query I rowsort label-2926
SELECT DISTINCT 55 + + MAX ( - - 97 ) + - 73 / + 18 AS col0
----
148

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2928
SELECT ALL ( 26 ) + + CASE + - ( - 75 ) WHEN + 12 * 18 - - + 15 + - 23 THEN + 69 DIV 56 + 85 DIV - 19 ELSE 15 + - 55 END * + - 18 * - ( 84 ) DIV - COUNT( * ) AS col2
----
60506

skipif mysql # not compatible
query I rowsort label-2928
SELECT ALL ( 26 ) + + CASE + - ( - 75 ) WHEN + 12 * 18 - - + 15 + - 23 THEN + 69 / 56 + 85 / - 19 ELSE 15 + - 55 END * + - 18 * - ( 84 ) / - COUNT ( * ) AS col2
----
60506

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT DISTINCT COUNT( * ) + - 73
----
-72

skipif mysql # not compatible
query I rowsort label-2929
SELECT DISTINCT COUNT ( * ) + - 73
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-2930
SELECT 25 - MAX( DISTINCT - 27 ) AS col1, 73
----
52
73

skipif mysql # not compatible
query II rowsort label-2930
SELECT 25 - MAX ( DISTINCT - 27 ) AS col1, 73
----
52
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT MIN( - 79 ) * - + 94
----
7426

skipif mysql # not compatible
query I rowsort label-2931
SELECT MIN ( - 79 ) * - + 94
----
7426

query I rowsort
SELECT DISTINCT 89 * - + 70 AS col1
----
-6230

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT - SUM( ( ( + 29 ) ) ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-2933
SELECT - SUM ( ( ( + 29 ) ) ) AS col1
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-2934
SELECT ALL 53 AS col0, CASE 53 WHEN + 82 + + - 56 THEN + COUNT( * ) * - 41 / + 5 + + + COALESCE ( 72, COUNT( * ) + - 6 * + 39 ) WHEN + 0 THEN NULL ELSE - + 51 END AS col2
----
53
-51

skipif mysql # not compatible
query II rowsort label-2934
SELECT ALL 53 AS col0, CASE 53 WHEN + 82 + + - 56 THEN + COUNT ( * ) * - 41 / + 5 + + + COALESCE ( 72, COUNT ( * ) + - 6 * + 39 ) WHEN + 0 THEN NULL ELSE - + 51 END AS col2
----
53
-51

query II rowsort
SELECT - 55 AS col0, + 70 AS col1
----
-55
70

query I rowsort
SELECT ALL 0 * - 36 * - + 46 * 12 AS col2
----
0

query I rowsort
SELECT ALL 11 * 92 AS col0
----
1012

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2938
SELECT COALESCE ( 42, + MAX( DISTINCT - ( + + 91 ) ) DIV - 34 + + - ( 22 ) ) + + 48 + + 57 col0, - 66 * - - 83 AS col0
----
147
-5478

skipif mysql # not compatible
query II rowsort label-2938
SELECT COALESCE ( 42, + MAX ( DISTINCT - ( + + 91 ) ) / - 34 + + - ( 22 ) ) + + 48 + + 57 col0, - 66 * - - 83 AS col0
----
147
-5478

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2939
SELECT + 2 + + CASE + 22 WHEN - COALESCE ( + 98, - 42 / 18 * - 89 / + + 5 + + + 40 ) THEN NULL ELSE + SUM( + 86 ) * - - CAST( NULL AS SIGNED ) + 41 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2939
SELECT + 2 + + CASE + 22 WHEN - COALESCE ( + 98, - 42 / 18 * - 89 / + + 5 + + + 40 ) THEN NULL ELSE + SUM ( + 86 ) * - - CAST ( NULL AS INTEGER ) + 41 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT MIN( + 46 ) * + 50 + - 69 AS col0
----
2231

skipif mysql # not compatible
query I rowsort label-2940
SELECT MIN ( + 46 ) * + 50 + - 69 AS col0
----
2231

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT + 16 * COUNT( * ) * 42 + - - 59 + - ( COALESCE ( - 79, + ( + 47 ) ) ) AS col2
----
810

skipif mysql # not compatible
query I rowsort label-2941
SELECT + 16 * COUNT ( * ) * 42 + - - 59 + - ( COALESCE ( - 79, + ( + 47 ) ) ) AS col2
----
810

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2943
SELECT ALL - + 59 * 97 + + 20 + - 88 * + 70 DIV + - COUNT( * )
----
457

skipif mysql # not compatible
query I rowsort label-2943
SELECT ALL - + 59 * 97 + + 20 + - 88 * + 70 / + - COUNT ( * )
----
457

query I rowsort
SELECT - 82 * + - 93 AS col1
----
7626

query II rowsort
SELECT ALL - - 26 AS col2, 86 * + 6
----
26
516

query I rowsort
SELECT DISTINCT - - 92 * + ( + 50 )
----
4600

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT DISTINCT - + SUM( - 46 )
----
46

skipif mysql # not compatible
query I rowsort label-2947
SELECT DISTINCT - + SUM ( - 46 )
----
46

query I rowsort
SELECT + 49 + - 22 col1
----
27

query II rowsort
SELECT + 18 * + 7 * 99 AS col1, - 75
----
12474
-75

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

skipif mysql # not compatible
query I rowsort label-2950
SELECT ALL + CAST ( + - COUNT ( * ) AS INTEGER ) * 5
----
-5

query I rowsort
SELECT ALL - 36 * + + 19
----
-684

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT SUM( ALL - - 3 )
----
3

skipif mysql # not compatible
query I rowsort label-2952
SELECT SUM ( ALL - - 3 )
----
3

query I rowsort
SELECT 74 - 77 AS col0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2954
SELECT + COALESCE ( - + ( - - 93 ), - ( - SUM( - - 4 ) ) + - 95 * - - ( SUM( DISTINCT - 89 ) ) + + - 73 + 89 + - COUNT( * ) DIV - + 30 + + + 79 + - + 34, + - NULLIF ( + ( - NULLIF ( MIN( DISTINCT + 27 ), + - 59 + + 20 ) ), + + ( - - MAX( DISTINCT + 40 ) ) * - 63 ) )
----
-93

skipif mysql # not compatible
query I rowsort label-2954
SELECT + COALESCE ( - + ( - - 93 ), - ( - SUM ( - - 4 ) ) + - 95 * - - ( SUM ( DISTINCT - 89 ) ) + + - 73 + 89 + - COUNT ( * ) / - + 30 + + + 79 + - + 34, + - NULLIF ( + ( - NULLIF ( MIN ( DISTINCT + 27 ), + - 59 + + 20 ) ), + + ( - - MAX ( DISTINCT + 40 ) ) * - 63 ) )
----
-93

query I rowsort
SELECT ALL + 44 + + + NULLIF ( - 24, 35 ) + 27 * + ( + 21 )
----
587

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2956
SELECT ALL - 64 AS col2, ( + 96 ) DIV - COUNT( * ) + - COUNT( DISTINCT 41 ) AS col2
----
-64
-97

skipif mysql # not compatible
query II rowsort label-2956
SELECT ALL - 64 AS col2, ( + 96 ) / - COUNT ( * ) + - COUNT ( DISTINCT 41 ) AS col2
----
-64
-97

query II rowsort
SELECT 98 * 20 * + - 57 + 46, 76 * - + 79 AS col1
----
-111674
-6004

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2958
SELECT DISTINCT - CASE - CAST( 97 AS SIGNED ) WHEN - 50 THEN + 11 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2958
SELECT DISTINCT - CASE - CAST ( 97 AS INTEGER ) WHEN - 50 THEN + 11 ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2959
SELECT ALL + ( + - 51 ) + + COALESCE ( + 39, - + 57 DIV - - 21 ), - 59 AS col2
----
-12
-59

skipif mysql # not compatible
query II rowsort label-2959
SELECT ALL + ( + - 51 ) + + COALESCE ( + 39, - + 57 / - - 21 ), - 59 AS col2
----
-12
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-2960
SELECT COUNT( * ) AS col0, - 9 + + 98
----
1
89

skipif mysql # not compatible
query II rowsort label-2960
SELECT COUNT ( * ) AS col0, - 9 + + 98
----
1
89

query I rowsort
SELECT DISTINCT + 80 + 76 AS col0
----
156

query I rowsort
SELECT - 42 + + + 26
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2963
SELECT + CASE 61 WHEN - 10 * + 6 THEN - 13 WHEN + NULLIF ( - + 51, - 47 ) + - - 69 * + 88 / - CAST( NULL AS SIGNED ) / - COUNT( * ) + - ( + 84 ) THEN + 29 ELSE NULL END * + + 26 - + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-2963
SELECT + CASE 61 WHEN - 10 * + 6 THEN - 13 WHEN + NULLIF ( - + 51, - 47 ) + - - 69 * + 88 / - CAST ( NULL AS INTEGER ) / - COUNT ( * ) + - ( + 84 ) THEN + 29 ELSE NULL END * + + 26 - + 92
----
NULL

query I rowsort
SELECT DISTINCT - 8 * - 75
----
600

query I rowsort
SELECT - 19 + + 61 * + 52
----
3153

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT - 36 * - - MAX( ALL - - ( - 65 ) )
----
2340

skipif mysql # not compatible
query I rowsort label-2966
SELECT - 36 * - - MAX ( ALL - - ( - 65 ) )
----
2340

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT DISTINCT - ( - 92 ) * - 38 + - MAX( DISTINCT 8 ) + - 93 + - 6
----
-3603

skipif mysql # not compatible
query I rowsort label-2968
SELECT DISTINCT - ( - 92 ) * - 38 + - MAX ( DISTINCT 8 ) + - 93 + - 6
----
-3603

query III rowsort
SELECT - 61 AS col1, - 30 AS col1, + - 40 * - 50 col2
----
-61
-30
2000

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT - MAX( ALL + 91 ) + 39 * + COUNT( - 34 )
----
-52

skipif mysql # not compatible
query I rowsort label-2970
SELECT - MAX ( ALL + 91 ) + 39 * + COUNT ( - 34 )
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2971
SELECT - COALESCE ( NULLIF ( - + 9, - - MAX( CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) + 62 ), + 46, + 96 ) AS col1, + 51
----
9
51

skipif mysql # not compatible
query II rowsort label-2971
SELECT - COALESCE ( NULLIF ( - + 9, - - MAX ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) + 62 ), + 46, + 96 ) AS col1, + 51
----
9
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT + - 47 + COUNT( * ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-2972
SELECT + - 47 + COUNT ( * ) AS col1
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2973
SELECT DISTINCT + CASE 91 WHEN - 23 THEN - COALESCE ( 38, - - SUM( ALL - - 68 ), + - 29, + CASE 94 WHEN - 79 * + CASE + 55 WHEN + 22 THEN - COALESCE ( ( + 93 ), + 83 ) * ( - 92 ) + + + CAST( MAX( 14 ) AS SIGNED ) / - MIN( 14 ) - - 58 + - + 26 * - + 82 + - + 21 + + 6 + - 54 + 38 * - CAST( - 82 AS SIGNED ) WHEN 69 THEN NULL ELSE NULL END THEN 47 WHEN 87 THEN 79 ELSE - 5 * 76 END * COUNT( * ) - 7 ) ELSE NULL END / COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2973
SELECT DISTINCT + CASE 91 WHEN - 23 THEN - COALESCE ( 38, - - SUM ( ALL - - 68 ), + - 29, + CASE 94 WHEN - 79 * + CASE + 55 WHEN + 22 THEN - COALESCE ( ( + 93 ), + 83 ) * ( - 92 ) + + + CAST ( MAX ( 14 ) AS INTEGER ) / - MIN ( 14 ) - - 58 + - + 26 * - + 82 + - + 21 + + 6 + - 54 + 38 * - CAST ( - 82 AS INTEGER ) WHEN 69 THEN NULL ELSE NULL END THEN 47 WHEN 87 THEN 79 ELSE - 5 * 76 END * COUNT ( * ) - 7 ) ELSE NULL END / COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT ALL + 5 AS col2, - 0
----
5
0

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

skipif mysql # not compatible
query I rowsort label-2975
SELECT + 31 / - - 37
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT ALL 70 * + + ( + - 27 ) + + COUNT( * ) * - 87 AS col0
----
-1977

skipif mysql # not compatible
query I rowsort label-2976
SELECT ALL 70 * + + ( + - 27 ) + + COUNT ( * ) * - 87 AS col0
----
-1977

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2977
SELECT + COUNT( * ) + 75 * + 88 * - NULLIF ( - - ( - 71 ), + 47 * CAST( + 55 AS SIGNED ) + - 9 + - - 24 ) / + 78 * - + 76 + + + CAST( NULL AS SIGNED ) + 21 / - COUNT( * ) + 84 * 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2977
SELECT + COUNT ( * ) + 75 * + 88 * - NULLIF ( - - ( - 71 ), + 47 * CAST ( + 55 AS INTEGER ) + - 9 + - - 24 ) / + 78 * - + 76 + + + CAST ( NULL AS INTEGER ) + 21 / - COUNT ( * ) + 84 * 46 AS col0
----
NULL

query II rowsort
SELECT DISTINCT + ( - ( 5 ) ) * + 86 AS col1, - 21 * 10
----
-430
-210

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2979
SELECT DISTINCT - CAST( + 91 AS SIGNED ), 87 col1
----
-91
87

skipif mysql # not compatible
query II rowsort label-2979
SELECT DISTINCT - CAST ( + 91 AS INTEGER ), 87 col1
----
-91
87

query II rowsort
SELECT DISTINCT - 58 * + 62, + 72 AS col0
----
-3596
72

query II rowsort
SELECT ALL - 43 AS col1, 5 AS col2
----
-43
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2982
SELECT + - ( - COUNT( + 92 ) ) + 29 * + + 75 * - 73 - - COUNT( ALL CAST( + 95 AS SIGNED ) )
----
-158773

skipif mysql # not compatible
query I rowsort label-2982
SELECT + - ( - COUNT ( + 92 ) ) + 29 * + + 75 * - 73 - - COUNT ( ALL CAST ( + 95 AS INTEGER ) )
----
-158773

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2983
SELECT ALL + 89 + + - 40 AS col1, 17 + 61 * + 42 * - CAST( NULL AS SIGNED ) + 46 + - 13 * 52 * + + 66 * 42 + 0 + 95
----
49
NULL

skipif mysql # not compatible
query II rowsort label-2983
SELECT ALL + 89 + + - 40 AS col1, 17 + 61 * + 42 * - CAST ( NULL AS INTEGER ) + 46 + - 13 * 52 * + + 66 * 42 + 0 + 95
----
49
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT + + 20 * + 94 - - COUNT( DISTINCT + 40 ) AS col2
----
1881

skipif mysql # not compatible
query I rowsort label-2984
SELECT + + 20 * + 94 - - COUNT ( DISTINCT + 40 ) AS col2
----
1881

onlyif mysql # DIV for integer division: 
query I rowsort label-2985
SELECT ( - + 76 ) DIV - 35 + - 50 - + - 99
----
51

skipif mysql # not compatible
query I rowsort label-2985
SELECT ( - + 76 ) / - 35 + - 50 - + - 99
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2986
SELECT ALL + COALESCE ( + 16, + COUNT( * ) DIV - - 57 * 59 + + CASE - 2 WHEN 9 THEN + COALESCE ( - 16, - + 12 ) ELSE NULL END + + + 35 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-2986
SELECT ALL + COALESCE ( + 16, + COUNT ( * ) / - - 57 * 59 + + CASE - 2 WHEN 9 THEN + COALESCE ( - 16, - + 12 ) ELSE NULL END + + + 35 ) AS col2
----
16

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

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

skipif mysql # not compatible
query I rowsort label-2988
SELECT + 3 + - COUNT ( * ) AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2989
SELECT + 15, + 10 + - CAST( NULL AS SIGNED ) * - + 89 + 62 AS col0
----
15
NULL

skipif mysql # not compatible
query II rowsort label-2989
SELECT + 15, + 10 + - CAST ( NULL AS INTEGER ) * - + 89 + 62 AS col0
----
15
NULL

query I rowsort
SELECT ALL - - 38 * - 26 + - 27
----
-1015

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2991
SELECT - 6 DIV - 95 + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2991
SELECT - 6 / - 95 + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT ALL - + 39 * - 58 + + + 3 + - 43 + 11 + + 90 col0
----
2323

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2993
SELECT DISTINCT - COUNT( - + 15 ) * 81 * - 18 + - 85 + COALESCE ( - 74, COUNT( * ) * - 70 + + COUNT( * ) - + COUNT( DISTINCT - + 32 ) * - + 66 * 65 + + - ( - COUNT( * ) ), + 77, - + COUNT( * ) ) + 42 DIV 94
----
1299

skipif mysql # not compatible
query I rowsort label-2993
SELECT DISTINCT - COUNT ( - + 15 ) * 81 * - 18 + - 85 + COALESCE ( - 74, COUNT ( * ) * - 70 + + COUNT ( * ) - + COUNT ( DISTINCT - + 32 ) * - + 66 * 65 + + - ( - COUNT ( * ) ), + 77, - + COUNT ( * ) ) + 42 / 94
----
1299

query I rowsort
SELECT ALL + - 14 * - - 19
----
-266

onlyif mysql # DIV for integer division: 
query I rowsort label-2995
SELECT DISTINCT NULLIF ( - - 0, + 15 * - 46 ) DIV 10 col0
----
0

skipif mysql # not compatible
query I rowsort label-2995
SELECT DISTINCT NULLIF ( - - 0, + 15 * - 46 ) / 10 col0
----
0

query I rowsort
SELECT DISTINCT - 27 * 1 * 94 + + - 69 AS col2
----
-2607

query I rowsort
SELECT COALESCE ( ( + 97 ), ( + + 30 ) + + 84 ) col1
----
97

query I rowsort
SELECT + 99 * + + 76 + + 1
----
7525

query II rowsort
SELECT + ( 11 ) col1, ( - 90 ) AS col0
----
11
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT - 48 + - MIN( DISTINCT + 54 )
----
-102

skipif mysql # not compatible
query I rowsort label-3000
SELECT - 48 + - MIN ( DISTINCT + 54 )
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT DISTINCT + CASE + 84 WHEN - COUNT( 76 ) THEN 28 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3001
SELECT DISTINCT + CASE + 84 WHEN - COUNT ( 76 ) THEN 28 END AS col0
----
NULL

query I rowsort
SELECT + 11 * + 43 * - + 55 + 18
----
-25997

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3003
SELECT - COUNT( * ) DIV - COALESCE ( 45, - + 29 )
----
0

skipif mysql # not compatible
query I rowsort label-3003
SELECT - COUNT ( * ) / - COALESCE ( 45, - + 29 )
----
0

query I rowsort
SELECT - ( + 16 ) * - 79
----
1264

onlyif mysql # DIV for integer division: 
query I rowsort label-3005
SELECT 40 * + 11 + 62 DIV + 77
----
440

skipif mysql # not compatible
query I rowsort label-3005
SELECT 40 * + 11 + 62 / + 77
----
440

onlyif mysql # DIV for integer division: 
query I rowsort label-3006
SELECT - 13 * - - ( + 78 ) DIV + 38 - - + 50 col2
----
24

skipif mysql # not compatible
query I rowsort label-3006
SELECT - 13 * - - ( + 78 ) / + 38 - - + 50 col2
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-3007
SELECT ALL COUNT( * ) * - ( - - 17 ), - 4 * + - 34 AS col1
----
-17
136

skipif mysql # not compatible
query II rowsort label-3007
SELECT ALL COUNT ( * ) * - ( - - 17 ), - 4 * + - 34 AS col1
----
-17
136

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT DISTINCT CASE - 33 WHEN MAX( 10 ) THEN NULL WHEN - 86 + + + 61 / + 69 THEN NULL ELSE 45 END
----
45

skipif mysql # not compatible
query I rowsort label-3008
SELECT DISTINCT CASE - 33 WHEN MAX ( 10 ) THEN NULL WHEN - 86 + + + 61 / + 69 THEN NULL ELSE 45 END
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3009
SELECT DISTINCT CAST( 43 AS SIGNED ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-3009
SELECT DISTINCT CAST ( 43 AS INTEGER ) AS col0
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3010
SELECT DISTINCT NULLIF ( COUNT( * ), + ( COUNT( 98 ) ) + + + COUNT( * ) * - CASE + - 44 WHEN - 82 + + + 99 - 89 * - 19 * + - ( + 44 ) THEN NULL WHEN + NULLIF ( - + 51, - 99 * - + 15 + 18 ) + - 98 + + 4 THEN + COALESCE ( + - AVG ( ALL - + 58 ), + + COALESCE ( - + 52, 41 ) ) * CASE + + 46 WHEN - - CAST( + - ( - 33 ) AS SIGNED ) THEN CASE - CAST( 54 AS SIGNED ) WHEN COALESCE ( 91, + ( + 9 ) + - 22, + 81 ) * - 20 THEN 23 WHEN + 88 THEN - CASE 14 WHEN 12 * 56 THEN - 54 * 29 WHEN + 54 THEN NULL END - 58 WHEN 26 THEN NULL ELSE NULL END WHEN + COUNT( ALL 2 ) * - CASE 41 / - 14 + + 21 * - 83 WHEN - 74 * CASE NULLIF ( + COUNT( * ), + 22 * COUNT( * ) ) WHEN 88 THEN NULL WHEN 8 THEN NULL ELSE COUNT( DISTINCT - 71 ) + 88 END THEN - COUNT( * ) * + NULLIF ( 21, MIN( 58 ) / 49 ) END THEN NULL ELSE 82 + + 35 END ELSE NULL END + - 66 / + 85 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3010
SELECT DISTINCT NULLIF ( COUNT ( * ), + ( COUNT ( 98 ) ) + + + COUNT ( * ) * - CASE + - 44 WHEN - 82 + + + 99 - 89 * - 19 * + - ( + 44 ) THEN NULL WHEN + NULLIF ( - + 51, - 99 * - + 15 + 18 ) + - 98 + + 4 THEN + COALESCE ( + - AVG ( ALL - + 58 ), + + COALESCE ( - + 52, 41 ) ) * CASE + + 46 WHEN - - CAST ( + - ( - 33 ) AS INTEGER ) THEN CASE - CAST ( 54 AS INTEGER ) WHEN COALESCE ( 91, + ( + 9 ) + - 22, + 81 ) * - 20 THEN 23 WHEN + 88 THEN - CASE 14 WHEN 12 * 56 THEN - 54 * 29 WHEN + 54 THEN NULL END - 58 WHEN 26 THEN NULL ELSE NULL END WHEN + COUNT ( ALL 2 ) * - CASE 41 / - 14 + + 21 * - 83 WHEN - 74 * CASE NULLIF ( + COUNT ( * ), + 22 * COUNT ( * ) ) WHEN 88 THEN NULL WHEN 8 THEN NULL ELSE COUNT ( DISTINCT - 71 ) + 88 END THEN - COUNT ( * ) * + NULLIF ( 21, MIN ( 58 ) / 49 ) END THEN NULL ELSE 82 + + 35 END ELSE NULL END + - 66 / + 85 ) col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3011
SELECT DISTINCT 94 * - 84 col2, + 82 + - 75 - + COUNT( * ) col1
----
-7896
6

skipif mysql # not compatible
query II rowsort label-3011
SELECT DISTINCT 94 * - 84 col2, + 82 + - 75 - + COUNT ( * ) col1
----
-7896
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3012
SELECT - 53 - CASE - 74 WHEN AVG ( + - 10 ) * - 95 THEN NULL WHEN - COUNT( * ) THEN NULL ELSE 33 + + CASE - - 32 WHEN - 20 THEN NULL ELSE 52 END - - ( + - 94 ) END AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-3012
SELECT - 53 - CASE - 74 WHEN AVG ( + - 10 ) * - 95 THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE 33 + + CASE - - 32 WHEN - 20 THEN NULL ELSE 52 END - - ( + - 94 ) END AS col0
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-3013
SELECT ALL ( + 48 ) AS col1, 84 - - 20 + - 42 * + 72 - + + MIN( 46 ) * - MAX( DISTINCT + 25 )
----
48
-1770

skipif mysql # not compatible
query II rowsort label-3013
SELECT ALL ( + 48 ) AS col1, 84 - - 20 + - 42 * + 72 - + + MIN ( 46 ) * - MAX ( DISTINCT + 25 )
----
48
-1770

onlyif mysql # aggregate syntax: 
query III rowsort label-3014
SELECT - COUNT( * ) + + + 43 * + - 76 AS col1, ( + 74 ), + 84 - - 12 AS col2
----
-3269
74
96

skipif mysql # not compatible
query III rowsort label-3014
SELECT - COUNT ( * ) + + + 43 * + - 76 AS col1, ( + 74 ), + 84 - - 12 AS col2
----
-3269
74
96

onlyif mysql # aggregate syntax: 
query II rowsort label-3015
SELECT - COUNT( * ) * + 92 AS col0, 44 + 27 AS col1
----
-92
71

skipif mysql # not compatible
query II rowsort label-3015
SELECT - COUNT ( * ) * + 92 AS col0, 44 + 27 AS col1
----
-92
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3016
SELECT + 52 + + - 39 + 20 + 74 * - MIN( DISTINCT - 94 ) * ( - ( + - 62 ) ) + - NULLIF ( + MAX( - 9 ), 70 * 95 ) - - 4 + + + 80 DIV 61 DIV 44 * + 69
----
431318

skipif mysql # not compatible
query I rowsort label-3016
SELECT + 52 + + - 39 + 20 + 74 * - MIN ( DISTINCT - 94 ) * ( - ( + - 62 ) ) + - NULLIF ( + MAX ( - 9 ), 70 * 95 ) - - 4 + + + 80 / 61 / 44 * + 69
----
431318

onlyif mysql # aggregate syntax: 
query II rowsort label-3017
SELECT ALL + 21 * + 79, - COUNT( * ) * - 58 col1
----
1659
58

skipif mysql # not compatible
query II rowsort label-3017
SELECT ALL + 21 * + 79, - COUNT ( * ) * - 58 col1
----
1659
58

query I rowsort
SELECT DISTINCT - 51 + + 73 + 82 + - 46
----
58

query I rowsort
SELECT DISTINCT 86 + - 99
----
-13

query I rowsort
SELECT DISTINCT 90 + - 27
----
63

onlyif mysql # DIV for integer division: 
query II rowsort label-3021
SELECT - + COALESCE ( - 96, - COALESCE ( 70, + - 10 ) ), - 85 DIV - 15 AS col1
----
96
5

skipif mysql # not compatible
query II rowsort label-3021
SELECT - + COALESCE ( - 96, - COALESCE ( 70, + - 10 ) ), - 85 / - 15 AS col1
----
96
5

query I rowsort
SELECT - 17 * + - 95 AS col1
----
1615

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT + 87 + - 18 + + 28 * + COUNT( * ) - - 55 AS col1
----
152

skipif mysql # not compatible
query I rowsort label-3023
SELECT + 87 + - 18 + + 28 * + COUNT ( * ) - - 55 AS col1
----
152

query I rowsort
SELECT + CASE - 45 WHEN - 60 - - 91 THEN 35 END - - 33 AS col1
----
NULL

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

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

query I rowsort
SELECT + CASE - 64 WHEN - + 96 THEN NULL WHEN 10 THEN NULL ELSE - 96 END * + 68 AS col1
----
-6528

onlyif mysql # DIV for integer division: 
query I rowsort label-3027
SELECT ALL - - 8 DIV - NULLIF ( + + 6, 61 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3027
SELECT ALL - - 8 / - NULLIF ( + + 6, 61 ) AS col1
----
-1

query I rowsort
SELECT ALL + ( - 19 ) * 62 AS col1
----
-1178

onlyif mysql # DIV for integer division: 
query I rowsort label-3029
SELECT + - 22 DIV - 24 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3029
SELECT + - 22 / - 24 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3030
SELECT ALL - 64 DIV 80 + + + 36 * 30
----
1080

skipif mysql # not compatible
query I rowsort label-3030
SELECT ALL - 64 / 80 + + + 36 * 30
----
1080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3031
SELECT ALL - 53 * CASE + + 66 WHEN + 59 * + 57 THEN NULL ELSE - COUNT( * ) * NULLIF ( - NULLIF ( - - 70, NULLIF ( - SUM( 80 ), 95 ) + - - 71 * - - COUNT( * ) ), + 48 ) - - NULLIF ( 81, + CAST( NULL AS SIGNED ) ) + - - MIN( CAST( NULL AS SIGNED ) ) END + + + 39 + - ( 77 ) * - 94 * ( - + NULLIF ( + 51, + - 72 * + COUNT( * ) ) ) AS col1, 49
----
NULL
49

skipif mysql # not compatible
query II rowsort label-3031
SELECT ALL - 53 * CASE + + 66 WHEN + 59 * + 57 THEN NULL ELSE - COUNT ( * ) * NULLIF ( - NULLIF ( - - 70, NULLIF ( - SUM ( 80 ), 95 ) + - - 71 * - - COUNT ( * ) ), + 48 ) - - NULLIF ( 81, + CAST ( NULL AS INTEGER ) ) + - - MIN ( CAST ( NULL AS INTEGER ) ) END + + + 39 + - ( 77 ) * - 94 * ( - + NULLIF ( + 51, + - 72 * + COUNT ( * ) ) ) AS col1, 49
----
NULL
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT ALL + COALESCE ( 82, ( + 53 ) ) + + + COUNT( * ) - - 14 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-3032
SELECT ALL + COALESCE ( 82, ( + 53 ) ) + + + COUNT ( * ) - - 14 AS col0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3033
SELECT ALL COUNT( * ) - - - MAX( DISTINCT + CAST( 50 AS SIGNED ) )
----
-49

skipif mysql # not compatible
query I rowsort label-3033
SELECT ALL COUNT ( * ) - - - MAX ( DISTINCT + CAST ( 50 AS INTEGER ) )
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3034
SELECT - CAST( + 50 AS SIGNED ) * 30 + - ( + - 69 ) AS col0
----
-1431

skipif mysql # not compatible
query I rowsort label-3034
SELECT - CAST ( + 50 AS INTEGER ) * 30 + - ( + - 69 ) AS col0
----
-1431

onlyif mysql # DIV for integer division: 
query I rowsort label-3035
SELECT 35 DIV + 16 + - 47 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-3035
SELECT 35 / + 16 + - 47 AS col1
----
-45

query II rowsort
SELECT ALL - 86 AS col1, 42
----
-86
42

query II rowsort
SELECT + 72 AS col0, 41
----
72
41

onlyif mysql # DIV for integer division: 
query I rowsort label-3038
SELECT ( 89 ) * 24 DIV + 75 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-3038
SELECT ( 89 ) * 24 / + 75 AS col0
----
28

query II rowsort
SELECT 7 AS col0, - ( - + 10 ) AS col0
----
7
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3040
SELECT ALL 24 DIV + + COALESCE ( - - 28, NULLIF ( 24, + NULLIF ( - 44, + 43 + + 46 ) * COUNT( * ) ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3040
SELECT ALL 24 / + + COALESCE ( - - 28, NULLIF ( 24, + NULLIF ( - 44, + 43 + + 46 ) * COUNT ( * ) ) ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3041
SELECT ALL 71 DIV + + ( - 55 ) * COUNT( * ), - 56 col0
----
-1
-56

skipif mysql # not compatible
query II rowsort label-3041
SELECT ALL 71 / + + ( - 55 ) * COUNT ( * ), - 56 col0
----
-1
-56

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

skipif mysql # not compatible
query I rowsort label-3042
SELECT ALL + COUNT ( * ) * ( + 84 ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3043
SELECT 73 * + COUNT( * ) * - 65 * + ( - - CASE - 44 WHEN - ( COUNT( * ) ) THEN NULL ELSE 65 END ) * + - ( ( + 41 ) ) - + 96 * 92 + - + ( + 91 )
----
12636502

skipif mysql # not compatible
query I rowsort label-3043
SELECT 73 * + COUNT ( * ) * - 65 * + ( - - CASE - 44 WHEN - ( COUNT ( * ) ) THEN NULL ELSE 65 END ) * + - ( ( + 41 ) ) - + 96 * 92 + - + ( + 91 )
----
12636502

query I rowsort
SELECT 85 - 31
----
54

query I rowsort
SELECT ALL 23 * 96
----
2208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3046
SELECT MAX( - + 83 ) * + MIN( + 89 ) * - 76 - + 87 + 4 + + - ( - 74 ) + + 80 - CAST( - 59 AS SIGNED ) * - 93 * MIN( + 85 ) col2
----
95088

skipif mysql # not compatible
query I rowsort label-3046
SELECT MAX ( - + 83 ) * + MIN ( + 89 ) * - 76 - + 87 + 4 + + - ( - 74 ) + + 80 - CAST ( - 59 AS INTEGER ) * - 93 * MIN ( + 85 ) col2
----
95088

onlyif mysql # DIV for integer division: 
query I rowsort label-3047
SELECT 1 DIV + 83 * - 59
----
0

skipif mysql # not compatible
query I rowsort label-3047
SELECT 1 / + 83 * - 59
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3048
SELECT DISTINCT - 28 + - 66 DIV + - 75 * 2 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-3048
SELECT DISTINCT - 28 + - 66 / + - 75 * 2 AS col2
----
-28

query I rowsort
SELECT 11 * - 43
----
-473

query I rowsort
SELECT 14 * - + 8 * 46 * + 39
----
-200928

onlyif mysql # aggregate syntax: 
query I rowsort label-3051
SELECT + COUNT( * ) + + + 79 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-3051
SELECT + COUNT ( * ) + + + 79 AS col2
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-3052
SELECT ALL - - 27 DIV - 24 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3052
SELECT ALL - - 27 / - 24 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3053
SELECT - 22 DIV 64
----
0

skipif mysql # not compatible
query I rowsort label-3053
SELECT - 22 / 64
----
0

query I rowsort
SELECT DISTINCT 91 + + 94
----
185

onlyif mysql # aggregate syntax: 
query II rowsort label-3055
SELECT ALL - MIN( + - 44 ) + - - MAX( + 62 ) AS col2, 16 * + 79 * - + 74 AS col2
----
106
-93536

skipif mysql # not compatible
query II rowsort label-3055
SELECT ALL - MIN ( + - 44 ) + - - MAX ( + 62 ) AS col2, 16 * + 79 * - + 74 AS col2
----
106
-93536

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

query II rowsort
SELECT ALL - + 60 + 49 * - 56 * + 93 - + + 94 - 92 * - + COALESCE ( + - 59, ( + - 74 ) ) * 78 AS col2, - 28 col1
----
-678730
-28

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

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

query I rowsort
SELECT - 88 + - 45 AS col1
----
-133

query I rowsort
SELECT 72 * - COALESCE ( + + 37, + 9 ) AS col0
----
-2664

query II rowsort
SELECT ALL - 60, - 26 col1
----
-60
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-3062
SELECT COUNT( * ) + + MAX( DISTINCT + - 14 ) AS col2, 85
----
-13
85

skipif mysql # not compatible
query II rowsort label-3062
SELECT COUNT ( * ) + + MAX ( DISTINCT + - 14 ) AS col2, 85
----
-13
85

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

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

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

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

query I rowsort
SELECT ALL - 7 + + - 79
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3066
SELECT DISTINCT - 79 + - 87 * + CAST( - 30 AS SIGNED ) + - + ( + 67 ) AS col2
----
2464

skipif mysql # not compatible
query I rowsort label-3066
SELECT DISTINCT - 79 + - 87 * + CAST ( - 30 AS INTEGER ) + - + ( + 67 ) AS col2
----
2464

query I rowsort
SELECT ALL - COALESCE ( - 55, - - 72 ) AS col2
----
55

query I rowsort
SELECT 72 + + - 30 AS col2
----
42

query I rowsort
SELECT ALL + - 43 - - 69
----
26

query I rowsort
SELECT ALL - - 80 * + + 66
----
5280

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT 18 + - COUNT( * ) + + - 11 * + + NULLIF ( 93, 36 * + 26 ) * 79 * - 76 AS col0
----
6142109

skipif mysql # not compatible
query I rowsort label-3071
SELECT 18 + - COUNT ( * ) + + - 11 * + + NULLIF ( 93, 36 * + 26 ) * 79 * - 76 AS col0
----
6142109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3072
SELECT ALL 4 - + CAST( + 95 AS SIGNED ) + + + 61 AS col2, - CASE + 75 WHEN 14 + - ( + 72 ) - + + 56 - COUNT( * ) * 23 / + - 35 + + + 52 THEN NULL WHEN + 34 * + + 95 + + - 40 * - 2 - - 68 THEN 14 ELSE NULL END AS col0
----
-30
NULL

skipif mysql # not compatible
query II rowsort label-3072
SELECT ALL 4 - + CAST ( + 95 AS INTEGER ) + + + 61 AS col2, - CASE + 75 WHEN 14 + - ( + 72 ) - + + 56 - COUNT ( * ) * 23 / + - 35 + + + 52 THEN NULL WHEN + 34 * + + 95 + + - 40 * - 2 - - 68 THEN 14 ELSE NULL END AS col0
----
-30
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3073
SELECT - 91 DIV - ( + SUM( - + ( - 76 ) ) ) + - + 70 - - 83 col0
----
14

skipif mysql # not compatible
query I rowsort label-3073
SELECT - 91 / - ( + SUM ( - + ( - 76 ) ) ) + - + 70 - - 83 col0
----
14

query II rowsort
SELECT 50 + + 52 AS col1, + 55
----
102
55

query I rowsort
SELECT DISTINCT 25 * 4
----
100

query I rowsort
SELECT ALL 84 * + + 7
----
588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3077
SELECT + COUNT( * ) * 23 * ( 8 ) * - 56 * 31 * + CAST( NULL AS SIGNED ) + + + 35 + + MAX( - 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3077
SELECT + COUNT ( * ) * 23 * ( 8 ) * - 56 * 31 * + CAST ( NULL AS INTEGER ) + + + 35 + + MAX ( - 39 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3078
SELECT ALL - CAST( + - COALESCE ( - - ( 77 ), 14 * 29 * + 37 - + 48 * 66 ) AS SIGNED ), + 97 + - 88 AS col2
----
77
9

skipif mysql # not compatible
query II rowsort label-3078
SELECT ALL - CAST ( + - COALESCE ( - - ( 77 ), 14 * 29 * + 37 - + 48 * 66 ) AS INTEGER ), + 97 + - 88 AS col2
----
77
9

query I rowsort
SELECT DISTINCT 30 * + 72
----
2160

query I rowsort
SELECT ( - 72 ) * - 26
----
1872

query I rowsort
SELECT ALL 48 * - 75
----
-3600

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3082
SELECT CAST( CASE + - 72 WHEN - 96 THEN + 46 WHEN 65 THEN + 38 END AS DECIMAL ) + - 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3082
SELECT CAST ( CASE + - 72 WHEN - 96 THEN + 46 WHEN 65 THEN + 38 END AS REAL ) + - 24 AS col0
----
NULL

query I rowsort
SELECT 69 * + 9 AS col1
----
621

query I rowsort
SELECT 78 * + 69 + - 62 AS col1
----
5320

query I rowsort
SELECT ALL 17 + - + ( - 55 ) AS col1
----
72

query I rowsort
SELECT ALL 35 + + + NULLIF ( - - 54, 40 )
----
89

query I rowsort
SELECT DISTINCT 47 + - 62 AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT CASE - - ( 19 ) WHEN - 78 THEN + 9 * - 61 END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3088
SELECT CASE - - ( 19 ) WHEN - 78 THEN + 9 * - 61 END + COUNT ( * )
----
NULL

query I rowsort
SELECT 94 * + - 60 AS col0
----
-5640

query I rowsort
SELECT ALL 80 + + 57 AS col0
----
137

query I rowsort
SELECT ALL + ( 90 ) + - 29 + 15 * - 84 * + + 32 col0
----
-40259

onlyif mysql # aggregate syntax: 
query I rowsort label-3092
SELECT + COALESCE ( + 2, COUNT( * ) + 1 + - ( - 0 ) * - - 4 )
----
2

skipif mysql # not compatible
query I rowsort label-3092
SELECT + COALESCE ( + 2, COUNT ( * ) + 1 + - ( - 0 ) * - - 4 )
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-3093
SELECT 16 * - - COUNT( * ) * 67 + + + 9 + + 93, 72 AS col1
----
1174
72

skipif mysql # not compatible
query II rowsort label-3093
SELECT 16 * - - COUNT ( * ) * 67 + + + 9 + + 93, 72 AS col1
----
1174
72

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3095
SELECT ALL + 52 * COUNT( * ), + 43 * + 79 col2
----
52
3397

skipif mysql # not compatible
query II rowsort label-3095
SELECT ALL + 52 * COUNT ( * ), + 43 * + 79 col2
----
52
3397

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3096
SELECT + ( - - CAST( + 50 AS SIGNED ) ) + - COALESCE ( 61, CAST( + + 60 AS SIGNED ) ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-3096
SELECT + ( - - CAST ( + 50 AS INTEGER ) ) + - COALESCE ( 61, CAST ( + + 60 AS INTEGER ) ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT 8 * + MIN( ALL + 14 )
----
112

skipif mysql # not compatible
query I rowsort label-3097
SELECT 8 * + MIN ( ALL + 14 )
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3098
SELECT DISTINCT + 8 * + + 46 + + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3098
SELECT DISTINCT + 8 * + + 46 + + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT DISTINCT MIN( DISTINCT - 24 ) - - 48 * - 43 + COUNT( * ) AS col2
----
-2087

skipif mysql # not compatible
query I rowsort label-3099
SELECT DISTINCT MIN ( DISTINCT - 24 ) - - 48 * - 43 + COUNT ( * ) AS col2
----
-2087

query II rowsort
SELECT - 40 - - + 43 AS col0, 82 * + 91
----
3
7462

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT DISTINCT COALESCE ( + COUNT( * ), + - COUNT( * ) * - + 15 * CASE + 61 WHEN + 85 * 30 * + 58 THEN NULL ELSE - 74 END, - 70 )
----
1

skipif mysql # not compatible
query I rowsort label-3101
SELECT DISTINCT COALESCE ( + COUNT ( * ), + - COUNT ( * ) * - + 15 * CASE + 61 WHEN + 85 * 30 * + 58 THEN NULL ELSE - 74 END, - 70 )
----
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3103
SELECT - ( COUNT( * ) ) col1, - 58 * 48
----
-1
-2784

skipif mysql # not compatible
query II rowsort label-3103
SELECT - ( COUNT ( * ) ) col1, - 58 * 48
----
-1
-2784

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT - - 81 - COUNT( * ) * 12 col0
----
69

skipif mysql # not compatible
query I rowsort label-3104
SELECT - - 81 - COUNT ( * ) * 12 col0
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3105
SELECT ALL - MIN( - 52 ) * 35 DIV + 65 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-3105
SELECT ALL - MIN ( - 52 ) * 35 / + 65 AS col0
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-3106
SELECT - - 70 * - ( + 29 ) + - + 74 * 40 DIV 4 + - 17 * - 56
----
-1818

skipif mysql # not compatible
query I rowsort label-3106
SELECT - - 70 * - ( + 29 ) + - + 74 * 40 / 4 + - 17 * - 56
----
-1818

query I rowsort
SELECT ALL + NULLIF ( - + 25, - 77 + - 86 * 44 ) AS col0
----
-25

query II rowsort
SELECT ALL + 25 AS col1, 34
----
25
34

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

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

query I rowsort
SELECT DISTINCT - 63 * - - 52
----
-3276

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT COALESCE ( 3, + SUM( ALL + 10 ) ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-3111
SELECT COALESCE ( 3, + SUM ( ALL + 10 ) ) AS col0
----
3

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

query I rowsort
SELECT ALL 55 * + 55 + 95 AS col0
----
3120

onlyif mysql # DIV for integer division: 
query I rowsort label-3114
SELECT 9 DIV + - 55 + + 46
----
46

skipif mysql # not compatible
query I rowsort label-3114
SELECT 9 / + - 55 + + 46
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3115
SELECT 82 * + 7 DIV - - COUNT( * ) + - 3 - - + CASE 93 WHEN - 29 THEN + 25 ELSE - + 64 * + MIN( ( + + 36 ) ) END + + + 35 + - 36 * + + 48 AS col2
----
-3426

skipif mysql # not compatible
query I rowsort label-3115
SELECT 82 * + 7 / - - COUNT ( * ) + - 3 - - + CASE 93 WHEN - 29 THEN + 25 ELSE - + 64 * + MIN ( ( + + 36 ) ) END + + + 35 + - 36 * + + 48 AS col2
----
-3426

query I rowsort
SELECT + 12 * + 96 AS col2
----
1152

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT 73 * - 90 * MIN( + 79 ) - + 86
----
-519116

skipif mysql # not compatible
query I rowsort label-3117
SELECT 73 * - 90 * MIN ( + 79 ) - + 86
----
-519116

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT DISTINCT 35 * - SUM( ALL - 75 ) col1
----
2625

skipif mysql # not compatible
query I rowsort label-3118
SELECT DISTINCT 35 * - SUM ( ALL - 75 ) col1
----
2625

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT ALL COALESCE ( - 91, - + CASE - 22 WHEN + COUNT( * ) THEN NULL WHEN 93 * + + 43 + 82 THEN + 59 + - 69 + ( ( - + 64 ) ) * - 96 ELSE NULL END + - - 31, + 66 * - 97 ) * + COUNT( * ) + + 8
----
-83

skipif mysql # not compatible
query I rowsort label-3119
SELECT ALL COALESCE ( - 91, - + CASE - 22 WHEN + COUNT ( * ) THEN NULL WHEN 93 * + + 43 + 82 THEN + 59 + - 69 + ( ( - + 64 ) ) * - 96 ELSE NULL END + - - 31, + 66 * - 97 ) * + COUNT ( * ) + + 8
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3120
SELECT ALL + 20 * - + NULLIF ( + 88, + 30 - - CASE 80 WHEN - COUNT( * ) THEN + - 98 * - CAST( 17 AS SIGNED ) / 45 END ) + ( - 17 )
----
-1777

skipif mysql # not compatible
query I rowsort label-3120
SELECT ALL + 20 * - + NULLIF ( + 88, + 30 - - CASE 80 WHEN - COUNT ( * ) THEN + - 98 * - CAST ( 17 AS INTEGER ) / 45 END ) + ( - 17 )
----
-1777

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3121
SELECT ALL + ( CAST( NULL AS DECIMAL ) ) * + 71 + + ( + 72 ) - - + MAX( DISTINCT + 66 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3121
SELECT ALL + ( CAST ( NULL AS REAL ) ) * + 71 + + ( + 72 ) - - + MAX ( DISTINCT + 66 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT + MAX( DISTINCT - - 18 ) * + 93 + 83 AS col0
----
1757

skipif mysql # not compatible
query I rowsort label-3122
SELECT + MAX ( DISTINCT - - 18 ) * + 93 + 83 AS col0
----
1757

query I rowsort
SELECT + + 62 - + 43 + 23 * + - ( + 96 )
----
-2189

query I rowsort
SELECT DISTINCT + 79 - 3 AS col0
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3125
SELECT + 24 + 78 + - 82 AS col1, + CASE 18 WHEN - 62 * 71 - + MIN( DISTINCT - 44 ) THEN - 22 + 5 END / - ( CAST( NULL AS SIGNED ) ) + 23
----
20
NULL

skipif mysql # not compatible
query II rowsort label-3125
SELECT + 24 + 78 + - 82 AS col1, + CASE 18 WHEN - 62 * 71 - + MIN ( DISTINCT - 44 ) THEN - 22 + 5 END / - ( CAST ( NULL AS INTEGER ) ) + 23
----
20
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3126
SELECT ALL - + NULLIF ( - + NULLIF ( - 71, COUNT( + 14 ) * + 50 + - CAST( 63 AS SIGNED ) + + 61 ), + ( + 14 ) ) - + - 25 AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-3126
SELECT ALL - + NULLIF ( - + NULLIF ( - 71, COUNT ( + 14 ) * + 50 + - CAST ( 63 AS INTEGER ) + + 61 ), + ( + 14 ) ) - + - 25 AS col2
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-3127
SELECT ALL + 55 DIV + 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3127
SELECT ALL + 55 / + 88 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3129
SELECT - NULLIF ( 4, + 35 ) AS col2, COUNT( * ) * 85 * 19
----
-4
1615

skipif mysql # not compatible
query II rowsort label-3129
SELECT - NULLIF ( 4, + 35 ) AS col2, COUNT ( * ) * 85 * 19
----
-4
1615

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3130
SELECT + 0 + ( - 71 ) - - 39 DIV - COUNT( * ) + + MIN( + ( - 92 ) ) AS col1, - 43 AS col2
----
-202
-43

skipif mysql # not compatible
query II rowsort label-3130
SELECT + 0 + ( - 71 ) - - 39 / - COUNT ( * ) + + MIN ( + ( - 92 ) ) AS col1, - 43 AS col2
----
-202
-43

query II rowsort
SELECT + 57 AS col2, 99 col0
----
57
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT - + ( - COUNT( DISTINCT + + 52 ) ) + - 18
----
-17

skipif mysql # not compatible
query I rowsort label-3132
SELECT - + ( - COUNT ( DISTINCT + + 52 ) ) + - 18
----
-17

query I rowsort
SELECT ALL + 5 * 45
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3134
SELECT + CAST( NULL AS SIGNED ) * AVG ( DISTINCT - 91 ) AS col1, 90
----
NULL
90

skipif mysql # not compatible
query II rowsort label-3134
SELECT + CAST ( NULL AS INTEGER ) * AVG ( DISTINCT - 91 ) AS col1, 90
----
NULL
90

query II rowsort
SELECT + 14 + + + 76 AS col1, - 55 AS col0
----
90
-55

query I rowsort
SELECT ALL 20 * ( + 59 ) AS col1
----
1180

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT + SUM( ALL + - 77 ) + 44 + - 95 * + - 28 * - + COUNT( * ) AS col2
----
-2693

skipif mysql # not compatible
query I rowsort label-3137
SELECT + SUM ( ALL + - 77 ) + 44 + - 95 * + - 28 * - + COUNT ( * ) AS col2
----
-2693

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3138
SELECT ALL NULLIF ( + - COALESCE ( + NULLIF ( + 93, 80 / 91 ), - - 41 * CAST( NULL AS SIGNED ) - 18 + + 60, CAST( NULL AS SIGNED ) + + 80 + - ( - 24 ) * + 57 ), 66 / - 99 * - 89 )
----
-93

skipif mysql # not compatible
query I rowsort label-3138
SELECT ALL NULLIF ( + - COALESCE ( + NULLIF ( + 93, 80 / 91 ), - - 41 * CAST ( NULL AS INTEGER ) - 18 + + 60, CAST ( NULL AS INTEGER ) + + 80 + - ( - 24 ) * + 57 ), 66 / - 99 * - 89 )
----
-93

query I rowsort
SELECT ALL 72 + 86 * - 11
----
-874

query I rowsort
SELECT - 84 + + 76 + - + 57
----
-65

query I rowsort
SELECT ALL 48 + + 58 col0
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-3142
SELECT DISTINCT 51 DIV + - 52 + - - 29 DIV - 9 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-3142
SELECT DISTINCT 51 / + - 52 + - - 29 / - 9 AS col1
----
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT + 30 * - NULLIF ( + 42, + CASE - 78 WHEN + - 56 + - - 68 - 74 * + MAX( + 93 ) THEN NULL WHEN - 93 THEN 7 * - MAX( 31 ) * MAX( - 56 ) + + COUNT( + 78 ) + + 33 + - - 28 * + 95 END ) AS col0
----
-1260

skipif mysql # not compatible
query I rowsort label-3144
SELECT + 30 * - NULLIF ( + 42, + CASE - 78 WHEN + - 56 + - - 68 - 74 * + MAX ( + 93 ) THEN NULL WHEN - 93 THEN 7 * - MAX ( 31 ) * MAX ( - 56 ) + + COUNT ( + 78 ) + + 33 + - - 28 * + 95 END ) AS col0
----
-1260

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3145
SELECT ALL 26 DIV - COUNT( * ) + 46
----
20

skipif mysql # not compatible
query I rowsort label-3145
SELECT ALL 26 / - COUNT ( * ) + 46
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3146
SELECT ALL + NULLIF ( + 31, CAST( - + ( - ( - 17 ) ) AS SIGNED ) ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-3146
SELECT ALL + NULLIF ( + 31, CAST ( - + ( - ( - 17 ) ) AS INTEGER ) ) AS col1
----
31

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3149
SELECT ALL 63 DIV 25 + - 53
----
-51

skipif mysql # not compatible
query I rowsort label-3149
SELECT ALL 63 / 25 + - 53
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-3150
SELECT + 0 AS col1, + COUNT( * ) * 86 + - 84
----
0
2

skipif mysql # not compatible
query II rowsort label-3150
SELECT + 0 AS col1, + COUNT ( * ) * 86 + - 84
----
0
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3151
SELECT CAST( NULL AS SIGNED ) AS col0, + 41 AS col2
----
NULL
41

skipif mysql # not compatible
query II rowsort label-3151
SELECT CAST ( NULL AS INTEGER ) AS col0, + 41 AS col2
----
NULL
41

onlyif mysql # DIV for integer division: 
query II rowsort label-3152
SELECT ALL 75 DIV 95 + 12 + - 37 col0, 28 - - - 91 col2
----
-25
-63

skipif mysql # not compatible
query II rowsort label-3152
SELECT ALL 75 / 95 + 12 + - 37 col0, 28 - - - 91 col2
----
-25
-63

query I rowsort
SELECT - 70 * - 23 AS col1
----
1610

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3154
SELECT ALL + 49, CAST( - + 46 AS SIGNED ) AS col0
----
49
-46

skipif mysql # not compatible
query II rowsort label-3154
SELECT ALL + 49, CAST ( - + 46 AS INTEGER ) AS col0
----
49
-46

query I rowsort
SELECT ( - - 76 ) col2
----
76

query I rowsort
SELECT - 46 + 41 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-3157
SELECT ALL + 65 AS col1, COUNT( * ) + + - 20 + + - 98 * - ( - 37 ) AS col0
----
65
-3645

skipif mysql # not compatible
query II rowsort label-3157
SELECT ALL + 65 AS col1, COUNT ( * ) + + - 20 + + - 98 * - ( - 37 ) AS col0
----
65
-3645

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT ALL - - 84 * + 33 - - 42 * - SUM( ALL + - 61 ) * - 0
----
2772

skipif mysql # not compatible
query I rowsort label-3158
SELECT ALL - - 84 * + 33 - - 42 * - SUM ( ALL + - 61 ) * - 0
----
2772

onlyif mysql # aggregate syntax: 
query II rowsort label-3159
SELECT + 38 * - COALESCE ( + + 63, - 76 ), + COUNT( * ) * + - 32 * - + 50 AS col2
----
-2394
1600

skipif mysql # not compatible
query II rowsort label-3159
SELECT + 38 * - COALESCE ( + + 63, - 76 ), + COUNT ( * ) * + - 32 * - + 50 AS col2
----
-2394
1600

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

skipif mysql # not compatible
query I rowsort label-3160
SELECT DISTINCT + 94 / - CAST ( NULL AS INTEGER ) + 76
----
NULL

query I rowsort
SELECT ALL + - 66 * 73 AS col2
----
-4818

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3162
SELECT ALL + ( - + 31 ) DIV 77 + 15 + - 93 + ( + COUNT( * ) ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-3162
SELECT ALL + ( - + 31 ) / 77 + 15 + - 93 + ( + COUNT ( * ) ) AS col2
----
-77

query II rowsort
SELECT DISTINCT - 6 col2, + NULLIF ( + + 42, 36 )
----
-6
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT ALL + MIN( DISTINCT - 83 ) * + 31 + + COUNT( - 59 ) AS col2
----
-2572

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL + MIN ( DISTINCT - 83 ) * + 31 + + COUNT ( - 59 ) AS col2
----
-2572

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT SUM( - - 19 )
----
19

skipif mysql # not compatible
query I rowsort label-3165
SELECT SUM ( - - 19 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT + COUNT( * ) * 63 + - 59
----
4

skipif mysql # not compatible
query I rowsort label-3166
SELECT + COUNT ( * ) * 63 + - 59
----
4

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

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

query II rowsort
SELECT 23 AS col2, - 94 + - + 69
----
23
-163

query I rowsort
SELECT ALL - + 61 * 60 AS col1
----
-3660

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3170
SELECT - 29 AS col2, 82 * - - CAST( NULL AS SIGNED ) AS col0
----
-29
NULL

skipif mysql # not compatible
query II rowsort label-3170
SELECT - 29 AS col2, 82 * - - CAST ( NULL AS INTEGER ) AS col0
----
-29
NULL

query II rowsort
SELECT - - 96, + 22 AS col0
----
96
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3172
SELECT COUNT( * ) * 31 DIV NULLIF ( - COUNT( * ), - 53 + + 12 )
----
-31

skipif mysql # not compatible
query I rowsort label-3172
SELECT COUNT ( * ) * 31 / NULLIF ( - COUNT ( * ), - 53 + + 12 )
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3173
SELECT - 25 - - 78 DIV COALESCE ( + + 61, 75 + - SUM( 61 ) ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-3173
SELECT - 25 - - 78 / COALESCE ( + + 61, 75 + - SUM ( 61 ) ) AS col1
----
-24

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

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

query II rowsort
SELECT ALL 72 + 24, + ( - 8 ) * 25 AS col0
----
96
-200

query I rowsort
SELECT DISTINCT 7 + - 11
----
-4

query I rowsort
SELECT DISTINCT 66 + - 94 + - 22 * + 42 + - - ( - 31 ) AS col2
----
-983

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3178
SELECT CASE - - 75 WHEN 76 THEN + - 95 * + 30 ELSE NULL END / + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3178
SELECT CASE - - 75 WHEN 76 THEN + - 95 * + 30 ELSE NULL END / + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3179
SELECT CAST( - - 16 AS SIGNED ) * + 32 + - 66
----
446

skipif mysql # not compatible
query I rowsort label-3179
SELECT CAST ( - - 16 AS INTEGER ) * + 32 + - 66
----
446

query I rowsort
SELECT ALL 18 + 70 AS col0
----
88

query I rowsort
SELECT 75 - - - 68
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3182
SELECT ALL + SUM( DISTINCT + NULLIF ( + - 43, - - CAST( 74 AS SIGNED ) ) ) DIV + CAST( - COUNT( * ) AS SIGNED ) - - + 0 + - 74
----
-31

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL + SUM ( DISTINCT + NULLIF ( + - 43, - - CAST ( 74 AS INTEGER ) ) ) / + CAST ( - COUNT ( * ) AS INTEGER ) - - + 0 + - 74
----
-31

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3184
SELECT DISTINCT 17 - + CAST( - COUNT( * ) AS SIGNED ) + 53 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-3184
SELECT DISTINCT 17 - + CAST ( - COUNT ( * ) AS INTEGER ) + 53 AS col2
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3185
SELECT MIN( ALL 65 ) + - 57 + + 22 DIV + 32 AS col1, - MIN( - - 33 ) AS col0
----
8
-33

skipif mysql # not compatible
query II rowsort label-3185
SELECT MIN ( ALL 65 ) + - 57 + + 22 / + 32 AS col1, - MIN ( - - 33 ) AS col0
----
8
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-3186
SELECT 94 + 42 AS col0, NULLIF ( 84, + 77 * - 59 * + - SUM( DISTINCT + 95 ) * - - 51 * - 72 + - 27 * - ( - NULLIF ( 53, - 92 ) ) * - 56 )
----
136
84

skipif mysql # not compatible
query II rowsort label-3186
SELECT 94 + 42 AS col0, NULLIF ( 84, + 77 * - 59 * + - SUM ( DISTINCT + 95 ) * - - 51 * - 72 + - 27 * - ( - NULLIF ( 53, - 92 ) ) * - 56 )
----
136
84

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3187
SELECT - NULLIF ( + - NULLIF ( + ( + CAST( NULL AS DECIMAL ) ), + ( - COUNT( * ) ) ), - - COALESCE ( + 30, + 44 * 33 ) ) * - 39 + 41 * + COUNT( * ) + + 1 + + 45 * 80
----
NULL

skipif mysql # not compatible
query I rowsort label-3187
SELECT - NULLIF ( + - NULLIF ( + ( + CAST ( NULL AS REAL ) ), + ( - COUNT ( * ) ) ), - - COALESCE ( + 30, + 44 * 33 ) ) * - 39 + 41 * + COUNT ( * ) + + 1 + + 45 * 80
----
NULL

query I rowsort
SELECT - + 29 * - 52 + COALESCE ( ( - 15 ), - 79, - 34 ) + - - 34
----
1527

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT + 6 + - MIN( + - ( - + 70 ) ) col0
----
-64

skipif mysql # not compatible
query I rowsort label-3190
SELECT + 6 + - MIN ( + - ( - + 70 ) ) col0
----
-64

query I rowsort
SELECT DISTINCT + + ( - 48 ) * + 97 AS col2
----
-4656

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3192
SELECT 42 + CAST( NULL AS SIGNED ) - - 84 / - 96 * - 72 AS col1, 36 * + - 92
----
NULL
-3312

skipif mysql # not compatible
query II rowsort label-3192
SELECT 42 + CAST ( NULL AS INTEGER ) - - 84 / - 96 * - 72 AS col1, 36 * + - 92
----
NULL
-3312

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3194
SELECT ALL + 88 DIV 69 + + 26 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-3194
SELECT ALL + 88 / 69 + + 26 AS col2
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3195
SELECT + 50 * + 5 * - + SUM( ALL 38 ) * 98 + - - 35 * 66 DIV - - COUNT( * ) AS col1, 69 DIV 90 * - 54 AS col1
----
-928690
0

skipif mysql # not compatible
query II rowsort label-3195
SELECT + 50 * + 5 * - + SUM ( ALL 38 ) * 98 + - - 35 * 66 / - - COUNT ( * ) AS col1, 69 / 90 * - 54 AS col1
----
-928690
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3196
SELECT DISTINCT - ( 75 ) DIV 75
----
-1

skipif mysql # not compatible
query I rowsort label-3196
SELECT DISTINCT - ( 75 ) / 75
----
-1

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

skipif mysql # not compatible
query I rowsort label-3197
SELECT ALL + + CAST ( NULL AS INTEGER ) + - 67 + - + 99 AS col1
----
NULL

query I rowsort
SELECT ALL 78 + - 67 * - 18 AS col0
----
1284

query I rowsort
SELECT DISTINCT - 4 * - + 13 AS col0
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-3200
SELECT - 19 AS col0, MIN( DISTINCT + + 34 ) + - - 9 AS col0
----
-19
43

skipif mysql # not compatible
query II rowsort label-3200
SELECT - 19 AS col0, MIN ( DISTINCT + + 34 ) + - - 9 AS col0
----
-19
43

query II rowsort
SELECT 60 + - - 87 + 51 col2, - 65
----
198
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3202
SELECT 35 AS col2, + 89 + - 68 + - MAX( DISTINCT + 81 ) DIV + + 66 AS col0
----
35
20

skipif mysql # not compatible
query II rowsort label-3202
SELECT 35 AS col2, + 89 + - 68 + - MAX ( DISTINCT + 81 ) / + + 66 AS col0
----
35
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT ALL COUNT( * ) + - + 48 + - - 85
----
38

skipif mysql # not compatible
query I rowsort label-3203
SELECT ALL COUNT ( * ) + - + 48 + - - 85
----
38

query I rowsort
SELECT DISTINCT + 41 * - 42 * 46
----
-79212

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT 85 + + 56 + - + 3 * + - NULLIF ( - 2, - 62 * + - MIN( ALL + - 51 ) * + 15 - - ( + 42 ) )
----
135

skipif mysql # not compatible
query I rowsort label-3205
SELECT 85 + + 56 + - + 3 * + - NULLIF ( - 2, - 62 * + - MIN ( ALL + - 51 ) * + 15 - - ( + 42 ) )
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT ALL + 15 - - ( + NULLIF ( + 91, - + 8 * 17 - - 81 + - - 49 + COALESCE ( - - COUNT( * ), + 56 ) ) ) AS col0
----
106

skipif mysql # not compatible
query I rowsort label-3206
SELECT ALL + 15 - - ( + NULLIF ( + 91, - + 8 * 17 - - 81 + - - 49 + COALESCE ( - - COUNT ( * ), + 56 ) ) ) AS col0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT 4 + + - 0 * + COUNT( * ) * + - 76 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-3207
SELECT 4 + + - 0 * + COUNT ( * ) * + - 76 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT COUNT( * ) + COUNT( * ) * + 40
----
41

skipif mysql # not compatible
query I rowsort label-3208
SELECT COUNT ( * ) + COUNT ( * ) * + 40
----
41

query I rowsort
SELECT ( + 79 ) * + + 10 - - ( - 33 ) + + 55
----
812

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

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

query II rowsort
SELECT + 52 AS col1, + 31 + - 38 + - + CASE + 35 WHEN + 10 + 54 THEN NULL ELSE + 30 END + - 4 * + 65
----
52
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT CASE + + 52 WHEN + COUNT( * ) / - SUM( ALL + 64 ) * ( 36 ) - - + COUNT( * ) THEN + 55 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3212
SELECT CASE + + 52 WHEN + COUNT ( * ) / - SUM ( ALL + 64 ) * ( 36 ) - - + COUNT ( * ) THEN + 55 END
----
NULL

query I rowsort
SELECT ALL - 79 * - 82 AS col2
----
6478

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3214
SELECT + 77 * - 34 + - + 84 * COALESCE ( + COUNT( * ), 16, 73 + + 23 + - 28 * ( + - 75 ) - + CAST( - CAST( - + 40 AS SIGNED ) AS SIGNED ) ) * + 23 - + - 0 + - - 40 AS col0
----
-4510

skipif mysql # not compatible
query I rowsort label-3214
SELECT + 77 * - 34 + - + 84 * COALESCE ( + COUNT ( * ), 16, 73 + + 23 + - 28 * ( + - 75 ) - + CAST ( - CAST ( - + 40 AS INTEGER ) AS INTEGER ) ) * + 23 - + - 0 + - - 40 AS col0
----
-4510

query I rowsort
SELECT ALL + - NULLIF ( - 58, 67 )
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3216
SELECT DISTINCT - 11 DIV SUM( + + 19 ) DIV - 33 + - - 23
----
23

skipif mysql # not compatible
query I rowsort label-3216
SELECT DISTINCT - 11 / SUM ( + + 19 ) / - 33 + - - 23
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-3217
SELECT + - 8, MIN( 77 ) + + + 85 + - 52 AS col0
----
-8
110

skipif mysql # not compatible
query II rowsort label-3217
SELECT + - 8, MIN ( 77 ) + + + 85 + - 52 AS col0
----
-8
110

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT - MIN( - + 96 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-3218
SELECT - MIN ( - + 96 ) AS col1
----
96

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

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

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

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

query II rowsort
SELECT + 64 col2, - CASE + 99 WHEN - + 83 THEN 9 END
----
64
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3222
SELECT - 36 * + + 57 * - + 10 + 89 DIV + 82 AS col0
----
20521

skipif mysql # not compatible
query I rowsort label-3222
SELECT - 36 * + + 57 * - + 10 + 89 / + 82 AS col0
----
20521

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3223
SELECT + - 12 - CAST( NULL AS SIGNED ) * CAST( + - 41 AS SIGNED ) + - + 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3223
SELECT + - 12 - CAST ( NULL AS INTEGER ) * CAST ( + - 41 AS INTEGER ) + - + 32 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + 56 + 76 col0
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3225
SELECT ALL + + 94 * + 48 * - 58 col1, - MAX( ALL ( + 31 ) ) DIV + 28 + COUNT( * ) + - 92 + - - 31 + COUNT( * ) DIV MAX( - + 14 ) * 87, - 15 AS col1
----
-261696
-61
-15

skipif mysql # not compatible
query III rowsort label-3225
SELECT ALL + + 94 * + 48 * - 58 col1, - MAX ( ALL ( + 31 ) ) / + 28 + COUNT ( * ) + - 92 + - - 31 + COUNT ( * ) / MAX ( - + 14 ) * 87, - 15 AS col1
----
-261696
-61
-15

query II rowsort
SELECT - 2 * - 56 * - + 28 * + - 77 * 39 + + 48, 41 AS col2
----
9417456
41

query I rowsort
SELECT ALL 76 + + 40 AS col1
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3228
SELECT - - 56, - 9 * COUNT( 65 ) - 78 - - + 79 * 86 * + - CAST( 32 AS SIGNED ) col0
----
56
-217495

skipif mysql # not compatible
query II rowsort label-3228
SELECT - - 56, - 9 * COUNT ( 65 ) - 78 - - + 79 * 86 * + - CAST ( 32 AS INTEGER ) col0
----
56
-217495

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3229
SELECT DISTINCT + - 81 + - CAST( 89 AS SIGNED )
----
-170

skipif mysql # not compatible
query I rowsort label-3229
SELECT DISTINCT + - 81 + - CAST ( 89 AS INTEGER )
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT + COUNT( * ) + 15
----
16

skipif mysql # not compatible
query I rowsort label-3230
SELECT + COUNT ( * ) + 15
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT ALL + COUNT( * ) + 40 * - 68 * - 42
----
114241

skipif mysql # not compatible
query I rowsort label-3231
SELECT ALL + COUNT ( * ) + 40 * - 68 * - 42
----
114241

onlyif mysql # aggregate syntax: 
query II rowsort label-3232
SELECT - 60 - 61 AS col0, 8 * - + 56 * COUNT( * )
----
-121
-448

skipif mysql # not compatible
query II rowsort label-3232
SELECT - 60 - 61 AS col0, 8 * - + 56 * COUNT ( * )
----
-121
-448

onlyif mysql # aggregate syntax: 
query II rowsort label-3233
SELECT ALL + 28 - - 7 + + 41 + - COUNT( * ), 92 AS col1
----
75
92

skipif mysql # not compatible
query II rowsort label-3233
SELECT ALL + 28 - - 7 + + 41 + - COUNT ( * ), 92 AS col1
----
75
92

query I rowsort
SELECT DISTINCT CASE - 17 WHEN - 44 THEN - + 43 WHEN + 89 THEN NULL WHEN - - 84 THEN NULL ELSE NULL END col0
----
NULL

query I rowsort
SELECT ALL - 56 * + + 84
----
-4704

query I rowsort
SELECT + 6 * 96 AS col0
----
576

query I rowsort
SELECT DISTINCT ( 32 ) col1
----
32

query I rowsort
SELECT - 35 - + 39
----
-74

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

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

query I rowsort
SELECT - 11 - 42 col2
----
-53

query I rowsort
SELECT - 70 * + ( 59 ) col1
----
-4130

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT MIN( 86 )
----
86

skipif mysql # not compatible
query I rowsort label-3242
SELECT MIN ( 86 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT - - 7 + - SUM( DISTINCT + + 60 ) * - COUNT( * ) + + - ( + COALESCE ( - COUNT( * ), + 95 ) ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-3243
SELECT - - 7 + - SUM ( DISTINCT + + 60 ) * - COUNT ( * ) + + - ( + COALESCE ( - COUNT ( * ), + 95 ) ) AS col1
----
68

query I rowsort
SELECT + + 27 * - + 67 * 8
----
-14472

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

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

query I rowsort
SELECT - 58 * + 25 + - 79
----
-1529

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

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

query I rowsort
SELECT + ( + + 92 ) + + 23 + 19 * - 31 * + + 55 AS col2
----
-32280

onlyif mysql # aggregate syntax: 
query II rowsort label-3249
SELECT + ( - ( - COUNT( ALL + 15 ) ) ), + 22 AS col0
----
1
22

skipif mysql # not compatible
query II rowsort label-3249
SELECT + ( - ( - COUNT ( ALL + 15 ) ) ), + 22 AS col0
----
1
22

query I rowsort
SELECT + 4 + + + 56 + - 74 AS col0
----
-14

query II rowsort
SELECT + - 6 * + + 43 AS col0, - 93 * 47 AS col1
----
-258
-4371

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3252
SELECT ALL + COALESCE ( - 12, - + 25 DIV - COUNT( * ) * + - COUNT( * ), + 64 ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-3252
SELECT ALL + COALESCE ( - 12, - + 25 / - COUNT ( * ) * + - COUNT ( * ), + 64 ) AS col2
----
-12

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

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

query I rowsort
SELECT DISTINCT - 61 * - 50 + NULLIF ( - 57, + 22 ) * - 6 AS col2
----
3392

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT ALL 4 * - + MAX( ALL 42 ) + - ( + 73 ) AS col0
----
-241

skipif mysql # not compatible
query I rowsort label-3255
SELECT ALL 4 * - + MAX ( ALL 42 ) + - ( + 73 ) AS col0
----
-241

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3256
SELECT ALL CAST( NULL AS SIGNED ) * - 98 - + + 11 AS col0, MAX( + NULLIF ( 92, + 36 ) ) col1
----
NULL
92

skipif mysql # not compatible
query II rowsort label-3256
SELECT ALL CAST ( NULL AS INTEGER ) * - 98 - + + 11 AS col0, MAX ( + NULLIF ( 92, + 36 ) ) col1
----
NULL
92

query I rowsort
SELECT + 84 * - 27 * 22 AS col1
----
-49896

query I rowsort
SELECT DISTINCT - 69 * 65
----
-4485

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT DISTINCT + 34 * + + 77 * - - 10 - - - COUNT( * ) + - 42 + - 67
----
26070

skipif mysql # not compatible
query I rowsort label-3259
SELECT DISTINCT + 34 * + + 77 * - - 10 - - - COUNT ( * ) + - 42 + - 67
----
26070

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT + 65 + + + 36 + + + COUNT( * ) + COUNT( * ) * 15 * - + SUM( + 87 ) * + + COUNT( * ) * - 3 - + 30
----
3987

skipif mysql # not compatible
query I rowsort label-3260
SELECT + 65 + + + 36 + + + COUNT ( * ) + COUNT ( * ) * 15 * - + SUM ( + 87 ) * + + COUNT ( * ) * - 3 - + 30
----
3987

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3261
SELECT - CAST( ( + NULLIF ( + 8, + - 74 ) ) AS SIGNED ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-3261
SELECT - CAST ( ( + NULLIF ( + 8, + - 74 ) ) AS INTEGER ) AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT ALL CASE ( + SUM( - 14 ) ) WHEN + 79 THEN 89 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3262
SELECT ALL CASE ( + SUM ( - 14 ) ) WHEN + 79 THEN 89 ELSE NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3264
SELECT - 6 + - - COUNT( * ) / - CAST( NULL AS SIGNED ), 76 col1
----
NULL
76

skipif mysql # not compatible
query II rowsort label-3264
SELECT - 6 + - - COUNT ( * ) / - CAST ( NULL AS INTEGER ), 76 col1
----
NULL
76

query I rowsort
SELECT 10 + + + 94 AS col2
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3266
SELECT 13 DIV + - MAX( + + 64 )
----
0

skipif mysql # not compatible
query I rowsort label-3266
SELECT 13 / + - MAX ( + + 64 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3267
SELECT 20 + + 35 DIV + CASE - + CASE 22 WHEN + + 3 THEN + + 52 DIV - + MIN( - 2 ) + + - 3 ELSE NULL END WHEN 23 THEN NULL ELSE - NULLIF ( - - 30, + 63 DIV MIN( + 39 ) ) END
----
19

skipif mysql # not compatible
query I rowsort label-3267
SELECT 20 + + 35 / + CASE - + CASE 22 WHEN + + 3 THEN + + 52 / - + MIN ( - 2 ) + + - 3 ELSE NULL END WHEN 23 THEN NULL ELSE - NULLIF ( - - 30, + 63 / MIN ( + 39 ) ) END
----
19

query I rowsort
SELECT 29 + + + 0
----
29

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

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

query I rowsort
SELECT + 98 * 45 AS col2
----
4410

query I rowsort
SELECT - 68 + - 20 - - 75
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT DISTINCT + - MIN( DISTINCT - 91 ) + 68
----
159

skipif mysql # not compatible
query I rowsort label-3272
SELECT DISTINCT + - MIN ( DISTINCT - 91 ) + 68
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT + COALESCE ( + - COUNT( * ), - 20, - COUNT( * ) ) * - COUNT( * ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-3273
SELECT + COALESCE ( + - COUNT ( * ), - 20, - COUNT ( * ) ) * - COUNT ( * ) + + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT ALL + + COUNT( * ) + + - 29 + + 4 * + + 75 * 48 col2
----
14372

skipif mysql # not compatible
query I rowsort label-3274
SELECT ALL + + COUNT ( * ) + + - 29 + + 4 * + + 75 * 48 col2
----
14372

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3275
SELECT DISTINCT - + ( 34 ) * + - ( 85 ) * + 57 + + MIN( - 21 ) * ( + - 20 ) DIV 49 * 98 + - 98
----
165416

skipif mysql # not compatible
query I rowsort label-3275
SELECT DISTINCT - + ( 34 ) * + - ( 85 ) * + 57 + + MIN ( - 21 ) * ( + - 20 ) / 49 * 98 + - 98
----
165416

onlyif mysql # aggregate syntax: 
query II rowsort label-3276
SELECT ALL - 81 + MIN( ALL + - 66 ), - 44 * - + 22 AS col1
----
-147
968

skipif mysql # not compatible
query II rowsort label-3276
SELECT ALL - 81 + MIN ( ALL + - 66 ), - 44 * - + 22 AS col1
----
-147
968

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

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

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

skipif mysql # not compatible
query I rowsort label-3278
SELECT ALL + + COUNT ( * ) + 23 AS col1
----
24

query I rowsort
SELECT + 75 * - 65 AS col2
----
-4875

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT ALL - 10 + + COUNT( 16 )
----
-9

skipif mysql # not compatible
query I rowsort label-3280
SELECT ALL - 10 + + COUNT ( 16 )
----
-9

query I rowsort
SELECT 86 * - 11 AS col1
----
-946

query I rowsort
SELECT ALL 94 - - 65 * - 96 AS col0
----
-6146

onlyif mysql # DIV for integer division: 
query I rowsort label-3283
SELECT ALL + + 68 DIV 69 + + + 88
----
88

skipif mysql # not compatible
query I rowsort label-3283
SELECT ALL + + 68 / 69 + + + 88
----
88

query I rowsort
SELECT + 87 * 47 + - 31 AS col2
----
4058

query II rowsort
SELECT ALL - 24 AS col1, + 46 * + 30 AS col1
----
-24
1380

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

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

query II rowsort
SELECT - 74 AS col0, - 43
----
-74
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT 78 + + ( + 11 ) + SUM( + 18 )
----
107

skipif mysql # not compatible
query I rowsort label-3288
SELECT 78 + + ( + 11 ) + SUM ( + 18 )
----
107

query II rowsort
SELECT 51, 52 col2
----
51
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3290
SELECT CAST( NULL AS SIGNED ) - - MIN( DISTINCT + + 2 ) + - NULLIF ( + NULLIF ( - 86, + 5 ), - COUNT( - + 93 ) ) AS col1, 66 AS col2
----
NULL
66

skipif mysql # not compatible
query II rowsort label-3290
SELECT CAST ( NULL AS INTEGER ) - - MIN ( DISTINCT + + 2 ) + - NULLIF ( + NULLIF ( - 86, + 5 ), - COUNT ( - + 93 ) ) AS col1, 66 AS col2
----
NULL
66

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3292
SELECT ALL 37 col0, + NULLIF ( - + 60, + - 60 * - COALESCE ( 26, - NULLIF ( + - COUNT( * ), + - 37 + + - COALESCE ( 41, + - 57 / 78 * + CAST( NULL AS SIGNED ) - + - 69 ) * 52 / - 62 ) ) ) + - 39
----
37
-99

skipif mysql # not compatible
query II rowsort label-3292
SELECT ALL 37 col0, + NULLIF ( - + 60, + - 60 * - COALESCE ( 26, - NULLIF ( + - COUNT ( * ), + - 37 + + - COALESCE ( 41, + - 57 / 78 * + CAST ( NULL AS INTEGER ) - + - 69 ) * 52 / - 62 ) ) ) + - 39
----
37
-99

query I rowsort
SELECT 4 * - + 59
----
-236

onlyif mysql # aggregate syntax: 
query II rowsort label-3294
SELECT ALL 96 AS col2, MIN( ALL - - ( - + 1 ) ) AS col1
----
96
-1

skipif mysql # not compatible
query II rowsort label-3294
SELECT ALL 96 AS col2, MIN ( ALL - - ( - + 1 ) ) AS col1
----
96
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3295
SELECT COALESCE ( - ( + 72 ), + 44 * + 29 * + MAX( ALL + 17 ) * - 44 - - 23 - - 42 + CAST( + 1 AS SIGNED ) ) * 57 col0
----
-4104

skipif mysql # not compatible
query I rowsort label-3295
SELECT COALESCE ( - ( + 72 ), + 44 * + 29 * + MAX ( ALL + 17 ) * - 44 - - 23 - - 42 + CAST ( + 1 AS INTEGER ) ) * 57 col0
----
-4104

query I rowsort
SELECT ALL + 21 * + 54
----
1134

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT DISTINCT MIN( - + COALESCE ( - 2, - 47, - 83 ) ) * 69
----
138

skipif mysql # not compatible
query I rowsort label-3297
SELECT DISTINCT MIN ( - + COALESCE ( - 2, - 47, - 83 ) ) * 69
----
138

query I rowsort
SELECT ALL 46 + - - 9 AS col0
----
55

query I rowsort
SELECT 10 - - 70 - + 38 AS col0
----
42

query I rowsort
SELECT ALL + 55 + - 18 * - 24 AS col1
----
487

query II rowsort
SELECT 35 AS col2, - 12 col2
----
35
-12

query I rowsort
SELECT - NULLIF ( - - 90, + 67 ) AS col2
----
-90

query I rowsort
SELECT 93 - + NULLIF ( - CASE 1 WHEN + 82 THEN NULL WHEN - 81 THEN NULL ELSE + - 35 END, - 86 ) AS col1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3304
SELECT ALL - 42 AS col0, ( CASE + 16 WHEN ( + + 80 ) THEN - - 78 WHEN 76 * 97 THEN - - 61 END ) * COALESCE ( + CAST( 60 AS SIGNED ), - 35, + + 0 ) - 85 AS col2
----
-42
NULL

skipif mysql # not compatible
query II rowsort label-3304
SELECT ALL - 42 AS col0, ( CASE + 16 WHEN ( + + 80 ) THEN - - 78 WHEN 76 * 97 THEN - - 61 END ) * COALESCE ( + CAST ( 60 AS INTEGER ), - 35, + + 0 ) - 85 AS col2
----
-42
NULL

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

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

query I rowsort
SELECT 62 * - 54 - 28 col1
----
-3376

onlyif mysql # DIV for integer division: 
query I rowsort label-3307
SELECT DISTINCT + 28 DIV - 32 * + 89 - + 40 * - - 7
----
-280

skipif mysql # not compatible
query I rowsort label-3307
SELECT DISTINCT + 28 / - 32 * + 89 - + 40 * - - 7
----
-280

onlyif mysql # DIV for integer division: 
query I rowsort label-3308
SELECT + + 82 DIV - 90 - - 10 * + 53
----
530

skipif mysql # not compatible
query I rowsort label-3308
SELECT + + 82 / - 90 - - 10 * + 53
----
530

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT ALL + ( COUNT( * ) ) * + 35 * + 81 * - 79 AS col2
----
-223965

skipif mysql # not compatible
query I rowsort label-3309
SELECT ALL + ( COUNT ( * ) ) * + 35 * + 81 * - 79 AS col2
----
-223965

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3310
SELECT + CAST( NULL AS DECIMAL ) * + - 15 + + + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-3310
SELECT + CAST ( NULL AS REAL ) * + - 15 + + + 67
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3311
SELECT + + 46 DIV + - 73 + - 94 AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-3311
SELECT + + 46 / + - 73 + - 94 AS col2
----
-94

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

skipif mysql # not compatible
query I rowsort label-3312
SELECT 98 + - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3313
SELECT ALL - NULLIF ( - - COUNT( * ), + + 30 * + COUNT( * ) + 43 * 36 + + + 37 ) AS col0, - 43 AS col0, COUNT( * ) + - 91 * 29 DIV - - ( 15 )
----
-1
-43
-174

skipif mysql # not compatible
query III rowsort label-3313
SELECT ALL - NULLIF ( - - COUNT ( * ), + + 30 * + COUNT ( * ) + 43 * 36 + + + 37 ) AS col0, - 43 AS col0, COUNT ( * ) + - 91 * 29 / - - ( 15 )
----
-1
-43
-174

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3314
SELECT COUNT( * ) DIV 59 col2, 45
----
0
45

skipif mysql # not compatible
query II rowsort label-3314
SELECT COUNT ( * ) / 59 col2, 45
----
0
45

query I rowsort
SELECT 85 * 30 * + - 25 AS col2
----
-63750

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT COALESCE ( + 84, - + 66 + + 51, COUNT( * ) ) + - 23 + + ( - 12 ) * + - 58 * 58 + - COUNT( * ) + - - COUNT( * ) AS col2
----
40429

skipif mysql # not compatible
query I rowsort label-3316
SELECT COALESCE ( + 84, - + 66 + + 51, COUNT ( * ) ) + - 23 + + ( - 12 ) * + - 58 * 58 + - COUNT ( * ) + - - COUNT ( * ) AS col2
----
40429

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3317
SELECT ALL ( + 8 ) + - 32 + + - SUM( ALL - 66 ) DIV - 95 * COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-3317
SELECT ALL ( + 8 ) + - 32 + + - SUM ( ALL - 66 ) / - 95 * COUNT ( * )
----
-24

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3318
SELECT DISTINCT + 52 DIV 1 * CAST( - 61 AS SIGNED ) DIV 55, - 49 AS col0
----
-57
-49

skipif mysql # not compatible
query II rowsort label-3318
SELECT DISTINCT + 52 / 1 * CAST ( - 61 AS INTEGER ) / 55, - 49 AS col0
----
-57
-49

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3320
SELECT DISTINCT COALESCE ( - 90, + - COUNT( * ) * 24 + 38 - + 42 + 15 DIV - - 43 * + 28 )
----
-90

skipif mysql # not compatible
query I rowsort label-3320
SELECT DISTINCT COALESCE ( - 90, + - COUNT ( * ) * 24 + 38 - + 42 + 15 / - - 43 * + 28 )
----
-90

query I rowsort
SELECT DISTINCT 76 + - 1 * + 60 * - - 73
----
-4304

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT ALL COUNT( * ) + ( + 57 ) - - 77
----
135

skipif mysql # not compatible
query I rowsort label-3322
SELECT ALL COUNT ( * ) + ( + 57 ) - - 77
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-3323
SELECT - 52 + - 61 + - + ( - 5 ) + + - 12 * + ( 45 ) * + 73 + + 55 DIV 46 * - 86 * 17 AS col0
----
-40990

skipif mysql # not compatible
query I rowsort label-3323
SELECT - 52 + - 61 + - + ( - 5 ) + + - 12 * + ( 45 ) * + 73 + + 55 / 46 * - 86 * 17 AS col0
----
-40990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3324
SELECT - 29 + + 21 * - 18, - MAX( DISTINCT - ( - CAST( NULL AS SIGNED ) ) ) AS col2
----
-407
NULL

skipif mysql # not compatible
query II rowsort label-3324
SELECT - 29 + + 21 * - 18, - MAX ( DISTINCT - ( - CAST ( NULL AS INTEGER ) ) ) AS col2
----
-407
NULL

query I rowsort
SELECT + 34 + + 12 AS col2
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3326
SELECT ALL 40 + 30 DIV + 26 * + COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-3326
SELECT ALL 40 + 30 / + 26 * + COUNT ( * )
----
41

query I rowsort
SELECT + + NULLIF ( 96, - 84 ) * - 48 AS col1
----
-4608

query I rowsort
SELECT + + 3 + + 10 + + 55 AS col1
----
68

query I rowsort
SELECT + 17 + 97
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT + COALESCE ( - 34, - COUNT( * ) + - 75 ) + 49
----
15

skipif mysql # not compatible
query I rowsort label-3330
SELECT + COALESCE ( - 34, - COUNT ( * ) + - 75 ) + 49
----
15

query I rowsort
SELECT ALL 69 * 23 AS col1
----
1587

onlyif mysql # aggregate syntax: 
query II rowsort label-3332
SELECT ALL + - 85 * + + 90, - COUNT( * ) AS col2
----
-7650
-1

skipif mysql # not compatible
query II rowsort label-3332
SELECT ALL + - 85 * + + 90, - COUNT ( * ) AS col2
----
-7650
-1

query I rowsort
SELECT ALL 27 * + 63 * 41 * + + 27 AS col1
----
1883007

query I rowsort
SELECT - + 13 + 16
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3335
SELECT ALL - 71 * + 82 - - 70 + 3 DIV + COUNT( * )
----
-5749

skipif mysql # not compatible
query I rowsort label-3335
SELECT ALL - 71 * + 82 - - 70 + 3 / + COUNT ( * )
----
-5749

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3336
SELECT + CAST( + NULLIF ( - 5, 51 ) AS SIGNED )
----
-5

skipif mysql # not compatible
query I rowsort label-3336
SELECT + CAST ( + NULLIF ( - 5, 51 ) AS INTEGER )
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3337
SELECT + + COUNT( * ) * + 67 DIV - + 87 + - + 67 AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-3337
SELECT + + COUNT ( * ) * + 67 / - + 87 + - + 67 AS col1
----
-67

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

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

query I rowsort
SELECT - ( - + 54 ) * + 31
----
1674

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT ALL + CASE + + 86 WHEN + AVG ( ALL 36 ) THEN NULL ELSE ( + 14 ) - COALESCE ( - - 68, + 11, 83 * 42 ) + - ( + SUM( + 48 ) ) + - - COALESCE ( - 2, + 46, + 0 * - 81 ) + + - 67 * + + COUNT( * ) END AS col2
----
-171

skipif mysql # not compatible
query I rowsort label-3340
SELECT ALL + CASE + + 86 WHEN + AVG ( ALL 36 ) THEN NULL ELSE ( + 14 ) - COALESCE ( - - 68, + 11, 83 * 42 ) + - ( + SUM ( + 48 ) ) + - - COALESCE ( - 2, + 46, + 0 * - 81 ) + + - 67 * + + COUNT ( * ) END AS col2
----
-171

query I rowsort
SELECT - 55 * + 70 AS col2
----
-3850

query I rowsort
SELECT - 13 * - 71 AS col2
----
923

onlyif mysql # DIV for integer division: 
query I rowsort label-3343
SELECT ALL 19 DIV 23 * + + 41 DIV + ( - 58 )
----
0

skipif mysql # not compatible
query I rowsort label-3343
SELECT ALL 19 / 23 * + + 41 / + ( - 58 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT + 25 - - - NULLIF ( + MIN( ALL + + 62 ), 81 )
----
-37

skipif mysql # not compatible
query I rowsort label-3344
SELECT + 25 - - - NULLIF ( + MIN ( ALL + + 62 ), 81 )
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-3345
SELECT + 42 DIV + + 43 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3345
SELECT + 42 / + + 43 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3346
SELECT + 25, 69 * SUM( ALL - 35 ) * - + COUNT( * ) * - MIN( DISTINCT + 56 ) * - - 43 + 67 * - 69 * + 39 AS col0
----
25
-5995617

skipif mysql # not compatible
query II rowsort label-3346
SELECT + 25, 69 * SUM ( ALL - 35 ) * - + COUNT ( * ) * - MIN ( DISTINCT + 56 ) * - - 43 + 67 * - 69 * + 39 AS col0
----
25
-5995617

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3347
SELECT ALL - 25 * - ( - + 94 ) * - 32 + - COALESCE ( COUNT( * ), 84 ) * - 35 * CASE 54 WHEN 21 THEN NULL WHEN - 34 THEN + CAST( + + 71 AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3347
SELECT ALL - 25 * - ( - + 94 ) * - 32 + - COALESCE ( COUNT ( * ), 84 ) * - 35 * CASE 54 WHEN 21 THEN NULL WHEN - 34 THEN + CAST ( + + 71 AS INTEGER ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3348
SELECT - 71 - + + COUNT( * ) + + 47 * + 9 - - 61 + 36 + + 51 * - 27 col2, 45
----
-929
45

skipif mysql # not compatible
query II rowsort label-3348
SELECT - 71 - + + COUNT ( * ) + + 47 * + 9 - - 61 + 36 + + 51 * - 27 col2, 45
----
-929
45

query II rowsort
SELECT - 89 * - 56 * 18 AS col1, - 76
----
89712
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3350
SELECT - 47 - 18 + 10 + - + 66 + - 17 + - CAST( NULL AS SIGNED ) + 52 + 97 - 74 - 46 * + COUNT( * ) * + - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-3350
SELECT - 47 - 18 + 10 + - + 66 + - 17 + - CAST ( NULL AS INTEGER ) + 52 + 97 - 74 - 46 * + COUNT ( * ) * + - 60
----
NULL

query I rowsort
SELECT NULLIF ( + 1, + 71 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT - 53 * + 62 * - + 81 * + + COUNT( ALL - + 2 )
----
266166

skipif mysql # not compatible
query I rowsort label-3352
SELECT - 53 * + 62 * - + 81 * + + COUNT ( ALL - + 2 )
----
266166

query I rowsort
SELECT DISTINCT + 32 * + - 18 * + ( + 69 ) + 81 AS col1
----
-39663

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT 94 * + 35 + MIN( DISTINCT - + 73 ) + + + 85
----
3302

skipif mysql # not compatible
query I rowsort label-3354
SELECT 94 * + 35 + MIN ( DISTINCT - + 73 ) + + + 85
----
3302

query I rowsort
SELECT + 93 - - 66
----
159

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

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

query I rowsort
SELECT DISTINCT + 52 + - 20 AS col1
----
32

query I rowsort
SELECT ALL - 94 * - 55 * NULLIF ( - + 99, - AVG ( DISTINCT 28 ) * + 72 ) AS col2
----
-511830

query I rowsort
SELECT - 72 * + 22
----
-1584

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3360
SELECT + + 17 DIV 68 + + ( + COUNT( * ) ), + 68 DIV - + 65 col1
----
1
-1

skipif mysql # not compatible
query II rowsort label-3360
SELECT + + 17 / 68 + + ( + COUNT ( * ) ), + 68 / - + 65 col1
----
1
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3361
SELECT - 95 AS col1, CAST( NULL AS DECIMAL ) col0
----
-95
NULL

skipif mysql # not compatible
query II rowsort label-3361
SELECT - 95 AS col1, CAST ( NULL AS REAL ) col0
----
-95
NULL

query I rowsort
SELECT - NULLIF ( + 41, + + 35 ) AS col2
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-3363
SELECT - COUNT( * ) AS col0, - 16 * - - 96
----
-1
-1536

skipif mysql # not compatible
query II rowsort label-3363
SELECT - COUNT ( * ) AS col0, - 16 * - - 96
----
-1
-1536

query I rowsort
SELECT - + 73 * + 49
----
-3577

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

query I rowsort
SELECT + - 98 * - + 31
----
3038

onlyif mysql # aggregate syntax: 
query II rowsort label-3367
SELECT ALL + 27 AS col0, MIN( ALL + + 56 ) * - 33
----
27
-1848

skipif mysql # not compatible
query II rowsort label-3367
SELECT ALL + 27 AS col0, MIN ( ALL + + 56 ) * - 33
----
27
-1848

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT + COUNT( * ) - + 86 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-3368
SELECT + COUNT ( * ) - + 86 AS col1
----
-85

query I rowsort
SELECT + 44 + 98 AS col0
----
142

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3370
SELECT ALL + + 83 AS col0, - COUNT( * ) + + 31 + - 12 + - + COUNT( DISTINCT - - 96 ) DIV - 72 + 77 * - + 97 col1
----
83
-7451

skipif mysql # not compatible
query II rowsort label-3370
SELECT ALL + + 83 AS col0, - COUNT ( * ) + + 31 + - 12 + - + COUNT ( DISTINCT - - 96 ) / - 72 + 77 * - + 97 col1
----
83
-7451

query I rowsort
SELECT ALL + 26 * ( + 86 )
----
2236

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3372
SELECT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col0, + 60 AS col0
----
NULL
60

skipif mysql # not compatible
query II rowsort label-3372
SELECT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0, + 60 AS col0
----
NULL
60

query I rowsort
SELECT 30 * 72 AS col1
----
2160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3374
SELECT DISTINCT 31 + SUM( - - 40 ) + + 58 - + CAST( NULL AS SIGNED ) + - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3374
SELECT DISTINCT 31 + SUM ( - - 40 ) + + 58 - + CAST ( NULL AS INTEGER ) + - - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 66 + - 56
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT DISTINCT COUNT( * ) + 15
----
16

skipif mysql # not compatible
query I rowsort label-3376
SELECT DISTINCT COUNT ( * ) + 15
----
16

query I rowsort
SELECT ( - 81 ) + + 34 + + 99 - + 81 * + 44 * + - 34 + + 23 AS col1
----
121251

onlyif mysql # aggregate syntax: 
query II rowsort label-3378
SELECT DISTINCT - 79 * + 30 AS col0, COUNT( * ) * - 91
----
-2370
-91

skipif mysql # not compatible
query II rowsort label-3378
SELECT DISTINCT - 79 * + 30 AS col0, COUNT ( * ) * - 91
----
-2370
-91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT 3 * SUM( - 18 )
----
-54

skipif mysql # not compatible
query I rowsort label-3380
SELECT 3 * SUM ( - 18 )
----
-54

query I rowsort
SELECT 10 + 65 + - + 52 * - COALESCE ( - - 0, + 85, + - 26, + 48 ) AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT DISTINCT COUNT( - 68 ) + + + COALESCE ( - + ( + + ( 37 ) ), - COUNT( * ) * - 36, + 67 + 14 )
----
-36

skipif mysql # not compatible
query I rowsort label-3382
SELECT DISTINCT COUNT ( - 68 ) + + + COALESCE ( - + ( + + ( 37 ) ), - COUNT ( * ) * - 36, + 67 + 14 )
----
-36

query I rowsort
SELECT 55 * 50
----
2750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3384
SELECT DISTINCT + COALESCE ( CASE CAST( NULL AS SIGNED ) WHEN - COALESCE ( + COALESCE ( - - ( + + 73 ), 65 * + + 21 / + - 15 ), - 93 ) - + 95 THEN + + ( - NULLIF ( + COUNT( * ), 82 + 65 * 62 * 6 * + - ( + - AVG ( + 9 ) ) ) ) - + + ( - 27 ) WHEN 34 + 28 * 89 + - - 62 THEN NULL END, COALESCE ( + ( 44 ), 53, - 27 + - NULLIF ( + + 52, + + 63 / + ( - 65 ) ) - 58 ) ) * - COUNT( * ) col0
----
-44

skipif mysql # not compatible
query I rowsort label-3384
SELECT DISTINCT + COALESCE ( CASE CAST ( NULL AS INTEGER ) WHEN - COALESCE ( + COALESCE ( - - ( + + 73 ), 65 * + + 21 / + - 15 ), - 93 ) - + 95 THEN + + ( - NULLIF ( + COUNT ( * ), 82 + 65 * 62 * 6 * + - ( + - AVG ( + 9 ) ) ) ) - + + ( - 27 ) WHEN 34 + 28 * 89 + - - 62 THEN NULL END, COALESCE ( + ( 44 ), 53, - 27 + - NULLIF ( + + 52, + + 63 / + ( - 65 ) ) - 58 ) ) * - COUNT ( * ) col0
----
-44

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3386
SELECT 45 + - 24 - - - MAX( + + 2 ) * + COUNT( * ) AS col0, 59 - 38
----
19
21

skipif mysql # not compatible
query II rowsort label-3386
SELECT 45 + - 24 - - - MAX ( + + 2 ) * + COUNT ( * ) AS col0, 59 - 38
----
19
21

query I rowsort
SELECT DISTINCT 22 * - ( + + 99 ) AS col2
----
-2178

query I rowsort
SELECT 6 * 33 * - + 83 AS col0
----
-16434

query I rowsort
SELECT ALL + + ( + 93 ) - 76
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3390
SELECT - 35 - - + 31 + + COUNT( * ) + + AVG ( + + CAST( NULL AS SIGNED ) ) * + + ( 51 ) * 1 * + + NULLIF ( - COUNT( ALL + + 93 ), + 87 * + 97 - + + 63 + - + 87 / + 78 * + 41 + + 3 ) + 43 AS col0, + COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3390
SELECT - 35 - - + 31 + + COUNT ( * ) + + AVG ( + + CAST ( NULL AS INTEGER ) ) * + + ( 51 ) * 1 * + + NULLIF ( - COUNT ( ALL + + 93 ), + 87 * + 97 - + + 63 + - + 87 / + 78 * + 41 + + 3 ) + 43 AS col0, + COUNT ( * )
----
NULL
1

query I rowsort
SELECT NULLIF ( - 0, 53 ) * + - ( ( 40 ) ) AS col0
----
0

query I rowsort
SELECT ALL ( ( - 58 ) ) AS col2
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3393
SELECT 60 + + CAST( - + 66 AS SIGNED ) * - AVG ( ALL + CASE + + 11 WHEN - 10 THEN NULL WHEN 18 THEN - - ( 37 ) * + + 16 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3393
SELECT 60 + + CAST ( - + 66 AS INTEGER ) * - AVG ( ALL + CASE + + 11 WHEN - 10 THEN NULL WHEN 18 THEN - - ( 37 ) * + + 16 END ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 49 * + - 26
----
1274

onlyif mysql # DIV for integer division: 
query I rowsort label-3395
SELECT + COALESCE ( - 94, - 77 DIV + 85 ) + + 23 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-3395
SELECT + COALESCE ( - 94, - 77 / + 85 ) + + 23 AS col0
----
-71

query I rowsort
SELECT 9 * 55 * 90 AS col0
----
44550

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

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

query I rowsort
SELECT 39 + + 8
----
47

query I rowsort
SELECT DISTINCT - 99 * + ( + 63 ) * + - 27 col0
----
168399

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3400
SELECT DISTINCT - - CAST( - + 23 AS SIGNED ) * - - 98 AS col1
----
-2254

skipif mysql # not compatible
query I rowsort label-3400
SELECT DISTINCT - - CAST ( - + 23 AS INTEGER ) * - - 98 AS col1
----
-2254

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT + 42 + + CASE 44 WHEN - 73 THEN + COUNT( * ) * - 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3401
SELECT + 42 + + CASE 44 WHEN - 73 THEN + COUNT ( * ) * - 24 END
----
NULL

query I rowsort
SELECT ALL - 55 * 93 col1
----
-5115

query I rowsort
SELECT DISTINCT + 97 * 99 - + + 78 AS col1
----
9525

query I rowsort
SELECT - 8 * 99 AS col1
----
-792

onlyif mysql # DIV for integer division: 
query I rowsort label-3405
SELECT 55 + 7 DIV - 67
----
55

skipif mysql # not compatible
query I rowsort label-3405
SELECT 55 + 7 / - 67
----
55

query I rowsort
SELECT 98 * - 44 AS col0
----
-4312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3407
SELECT 74 DIV 38 + + + 28 - - + SUM( DISTINCT + - 93 )
----
-64

skipif mysql # not compatible
query I rowsort label-3407
SELECT 74 / 38 + + + 28 - - + SUM ( DISTINCT + - 93 )
----
-64

query I rowsort
SELECT ALL 90 + 65
----
155

query I rowsort
SELECT ALL + 11 + 59
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3410
SELECT DISTINCT 25 + - 54 + - COALESCE ( + 73, + CAST( NULL AS SIGNED ) * - 68 ) col2
----
-102

skipif mysql # not compatible
query I rowsort label-3410
SELECT DISTINCT 25 + - 54 + - COALESCE ( + 73, + CAST ( NULL AS INTEGER ) * - 68 ) col2
----
-102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3411
SELECT DISTINCT + CASE - + ( 7 ) WHEN + - 49 THEN COUNT( * ) ELSE + CAST( - ( 63 ) AS SIGNED ) END + 74 + + 23 DIV - + 31
----
11

skipif mysql # not compatible
query I rowsort label-3411
SELECT DISTINCT + CASE - + ( 7 ) WHEN + - 49 THEN COUNT ( * ) ELSE + CAST ( - ( 63 ) AS INTEGER ) END + 74 + + 23 / - + 31
----
11

query I rowsort
SELECT DISTINCT 77 + + - 50 AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT COUNT( * ) - + 10 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-3413
SELECT COUNT ( * ) - + 10 AS col2
----
-9

query I rowsort
SELECT 75 * 23 - - 92
----
1817

query I rowsort
SELECT 48 * + 83 AS col2
----
3984

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT ALL 76 - - 89 + - - NULLIF ( + 2, - + COUNT( * ) ) * + - COUNT( * ) AS col1
----
163

skipif mysql # not compatible
query I rowsort label-3416
SELECT ALL 76 - - 89 + - - NULLIF ( + 2, - + COUNT ( * ) ) * + - COUNT ( * ) AS col1
----
163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3417
SELECT CAST( NULL AS SIGNED ) - 74 + + + NULLIF ( - + COUNT( * ), + 10 / 40 * 31 + - 29 / + COUNT( * ) ) + 9 - - 9 + + + 14 + + 93 + + 73 * - + COUNT( * ) * 0 * + 6 * MAX( ALL - ( 94 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3417
SELECT CAST ( NULL AS INTEGER ) - 74 + + + NULLIF ( - + COUNT ( * ), + 10 / 40 * 31 + - 29 / + COUNT ( * ) ) + 9 - - 9 + + + 14 + + 93 + + 73 * - + COUNT ( * ) * 0 * + 6 * MAX ( ALL - ( 94 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3418
SELECT DISTINCT MIN( - CAST( NULL AS SIGNED ) ) / + COUNT( * ) + 51 + - 98 * - - 85 * - + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-3418
SELECT DISTINCT MIN ( - CAST ( NULL AS INTEGER ) ) / + COUNT ( * ) + 51 + - 98 * - - 85 * - + 63
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3419
SELECT - 23 DIV - 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3419
SELECT - 23 / - 84 AS col2
----
0

query I rowsort
SELECT ALL 93 * + 51 + 20 AS col0
----
4763

query I rowsort
SELECT 85 * - 75
----
-6375

onlyif mysql # DIV for integer division: 
query I rowsort label-3422
SELECT + 44 * - - 12 + + 84 DIV 62 + + 56 AS col0
----
585

skipif mysql # not compatible
query I rowsort label-3422
SELECT + 44 * - - 12 + + 84 / 62 + + 56 AS col0
----
585

query I rowsort
SELECT 44 - - ( + ( - + 17 ) ) AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT ALL - 20 * - COUNT( DISTINCT 39 )
----
20

skipif mysql # not compatible
query I rowsort label-3424
SELECT ALL - 20 * - COUNT ( DISTINCT 39 )
----
20

query II rowsort
SELECT ALL - 34, + 27 AS col2
----
-34
27

onlyif mysql # DIV for integer division: 
query I rowsort label-3426
SELECT - 90 DIV + 86
----
-1

skipif mysql # not compatible
query I rowsort label-3426
SELECT - 90 / + 86
----
-1

query I rowsort
SELECT ALL - 51 * + - 86
----
4386

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3428
SELECT - CAST( CAST( NULLIF ( - - 55, + 59 ) AS SIGNED ) AS SIGNED ) - CASE + 0 WHEN + - 48 THEN NULL WHEN - ( + 39 ) THEN - 69 * AVG ( DISTINCT - + 79 ) + + 34 / - + 54 * - 65 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3428
SELECT - CAST ( CAST ( NULLIF ( - - 55, + 59 ) AS INTEGER ) AS INTEGER ) - CASE + 0 WHEN + - 48 THEN NULL WHEN - ( + 39 ) THEN - 69 * AVG ( DISTINCT - + 79 ) + + 34 / - + 54 * - 65 END AS col1
----
NULL

query I rowsort
SELECT - 40 * - 88
----
3520

query I rowsort
SELECT 34 + - 99 col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT COUNT( - + CASE - 3 WHEN - + ( + 28 ) * 94 THEN - 34 ELSE NULL END ) + 54
----
54

skipif mysql # not compatible
query I rowsort label-3431
SELECT COUNT ( - + CASE - 3 WHEN - + ( + 28 ) * 94 THEN - 34 ELSE NULL END ) + 54
----
54

query I rowsort
SELECT - - COALESCE ( + 46, 72, - 57 + + 9 + + 1 - - CASE - ( + - 34 ) WHEN + - 83 THEN 79 WHEN - 77 * - 44 / - 96 THEN + 4 END ) * 32 AS col2
----
1472

query I rowsort
SELECT ALL + - 81 + + 60
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT - + 38 - ( - 3 ) + + COUNT( * ) col2
----
-34

skipif mysql # not compatible
query I rowsort label-3434
SELECT - + 38 - ( - 3 ) + + COUNT ( * ) col2
----
-34

query II rowsort
SELECT ALL 8, 10 AS col2
----
8
10

query I rowsort
SELECT DISTINCT + 24 + - 4 AS col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3437
SELECT ALL COALESCE ( + SUM( ALL + 96 ), + 20 + - CASE - + 79 WHEN 16 / + + 98 + - 81 + + + 65 + + 22 * + 67 * - 36 / - 93 THEN - 98 * + COUNT( * ) END * + 29, + NULLIF ( - + 87, 18 / 79 + - + 71 + 25 * - + CAST( NULL AS DECIMAL ) * - + 82 ), + NULLIF ( - 36, + - 11 * - 39 + - 76 / + - 98 ) * + 61 * - - 4 + 98 )
----
96

skipif mysql # not compatible
query I rowsort label-3437
SELECT ALL COALESCE ( + SUM ( ALL + 96 ), + 20 + - CASE - + 79 WHEN 16 / + + 98 + - 81 + + + 65 + + 22 * + 67 * - 36 / - 93 THEN - 98 * + COUNT ( * ) END * + 29, + NULLIF ( - + 87, 18 / 79 + - + 71 + 25 * - + CAST ( NULL AS REAL ) * - + 82 ), + NULLIF ( - 36, + - 11 * - 39 + - 76 / + - 98 ) * + 61 * - - 4 + 98 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT ALL + SUM( ALL - + 36 ) * + 63
----
-2268

skipif mysql # not compatible
query I rowsort label-3438
SELECT ALL + SUM ( ALL - + 36 ) * + 63
----
-2268

query I rowsort
SELECT - 48 + 9 - - + 81 * + 64 col0
----
5145

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT ALL + COUNT( * ) + - 27 - 12 col2
----
-38

skipif mysql # not compatible
query I rowsort label-3440
SELECT ALL + COUNT ( * ) + - 27 - 12 col2
----
-38

query I rowsort
SELECT 7 * + 1 + ( + - 86 )
----
-79

query II rowsort
SELECT NULLIF ( 69, + + 37 / + - 20 + 27 + + - 81 ) AS col0, + 83
----
69
83

query I rowsort
SELECT - 40 * 16 - 66
----
-706

onlyif mysql # aggregate syntax: 
query II rowsort label-3444
SELECT + COUNT( * ) AS col2, - 18 * - 15 * + 46
----
1
12420

skipif mysql # not compatible
query II rowsort label-3444
SELECT + COUNT ( * ) AS col2, - 18 * - 15 * + 46
----
1
12420

query I rowsort
SELECT + ( + 23 ) + 88 AS col2
----
111

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3447
SELECT DISTINCT + CAST( + 69 AS SIGNED ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-3447
SELECT DISTINCT + CAST ( + 69 AS INTEGER ) AS col0
----
69

query II rowsort
SELECT ALL + 19 AS col0, - 15 + - - 61 - 99
----
19
-53

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

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

query I rowsort
SELECT ALL - 40 * - - 16 - + + 73 AS col0
----
-713

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

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

query I rowsort
SELECT - 22 * 68 col1
----
-1496

onlyif mysql # aggregate syntax: 
query II rowsort label-3453
SELECT + COUNT( * ) * 57, 63 AS col2
----
57
63

skipif mysql # not compatible
query II rowsort label-3453
SELECT + COUNT ( * ) * 57, 63 AS col2
----
57
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT - 58 * - MIN( DISTINCT - 34 ) + - + 84 + 25
----
-2031

skipif mysql # not compatible
query I rowsort label-3454
SELECT - 58 * - MIN ( DISTINCT - 34 ) + - + 84 + 25
----
-2031

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3455
SELECT + 13 * - 71 + + - CASE - 71 WHEN + 72 + - + 2 * - 2 + - CAST( NULL AS SIGNED ) + - 29 - - - COUNT( * ) - - - COUNT( * ) * - 53 * + 97 * - + 38 * + SUM( DISTINCT - COALESCE ( - 69, 6, + 28 ) ) THEN + 88 - + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3455
SELECT + 13 * - 71 + + - CASE - 71 WHEN + 72 + - + 2 * - 2 + - CAST ( NULL AS INTEGER ) + - 29 - - - COUNT ( * ) - - - COUNT ( * ) * - 53 * + 97 * - + 38 * + SUM ( DISTINCT - COALESCE ( - 69, 6, + 28 ) ) THEN + 88 - + - COUNT ( * ) END
----
NULL

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

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

query I rowsort
SELECT + - 54 * + 52
----
-2808

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT + MIN( DISTINCT 84 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-3458
SELECT + MIN ( DISTINCT 84 ) AS col0
----
84

query I rowsort
SELECT DISTINCT 67 * + + 10 + - + 95 * 16
----
-850

query II rowsort
SELECT DISTINCT - 20 AS col0, - 34 AS col2
----
-20
-34

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

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

query I rowsort
SELECT + - 8 + - - 9 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3463
SELECT DISTINCT + COALESCE ( + - 85, + 2 DIV 56 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-3463
SELECT DISTINCT + COALESCE ( + - 85, + 2 / 56 ) AS col0
----
-85

query I rowsort
SELECT + + 33 + - + 96
----
-63

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3466
SELECT - + 61, 66 + ( COUNT( * ) ) + - - 51 AS col1
----
-61
118

skipif mysql # not compatible
query II rowsort label-3466
SELECT - + 61, 66 + ( COUNT ( * ) ) + - - 51 AS col1
----
-61
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3467
SELECT ALL + 47 + + - CAST( + 74 AS SIGNED ) + + 24 + 95
----
92

skipif mysql # not compatible
query I rowsort label-3467
SELECT ALL + 47 + + - CAST ( + 74 AS INTEGER ) + + 24 + 95
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3468
SELECT - - 78 + + CAST( 30 AS SIGNED ) * + - 26 + - 99 / + CAST( NULL AS SIGNED ) * 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3468
SELECT - - 78 + + CAST ( 30 AS INTEGER ) * + - 26 + - 99 / + CAST ( NULL AS INTEGER ) * 41 AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3470
SELECT CASE 41 WHEN + 1 * + + 57 * - + 83 THEN - - 98 - + COUNT( ALL - 68 ) * + ( + 45 ) * - COUNT( * ) + - - COUNT( ALL + 27 ) + - 84 + - 42 * + SUM( DISTINCT - 50 ) * COUNT( * ) + + 11 - + ( - - CAST( NULL AS SIGNED ) ) + + - 46 * - - COUNT( 72 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3470
SELECT CASE 41 WHEN + 1 * + + 57 * - + 83 THEN - - 98 - + COUNT ( ALL - 68 ) * + ( + 45 ) * - COUNT ( * ) + - - COUNT ( ALL + 27 ) + - 84 + - 42 * + SUM ( DISTINCT - 50 ) * COUNT ( * ) + + 11 - + ( - - CAST ( NULL AS INTEGER ) ) + + - 46 * - - COUNT ( 72 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3471
SELECT ALL - CASE + + 12 WHEN - 35 * - + 32 * - - 7 THEN NULL WHEN + 19 / + + NULLIF ( + COUNT( * ), + - 24 ) - - COUNT( * ) THEN - 62 ELSE CAST( NULL AS SIGNED ) / 82 - - + 82 - - 22 * + COUNT( * ) - ( + 95 ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3471
SELECT ALL - CASE + + 12 WHEN - 35 * - + 32 * - - 7 THEN NULL WHEN + 19 / + + NULLIF ( + COUNT ( * ), + - 24 ) - - COUNT ( * ) THEN - 62 ELSE CAST ( NULL AS INTEGER ) / 82 - - + 82 - - 22 * + COUNT ( * ) - ( + 95 ) END col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3472
SELECT + COALESCE ( + 23, MIN( ALL + + 60 ), 25 ) + + SUM( DISTINCT + 24 ) DIV + 55
----
23

skipif mysql # not compatible
query I rowsort label-3472
SELECT + COALESCE ( + 23, MIN ( ALL + + 60 ), 25 ) + + SUM ( DISTINCT + 24 ) / + 55
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT ALL 82 + - SUM( DISTINCT - 61 ) col1
----
143

skipif mysql # not compatible
query I rowsort label-3473
SELECT ALL 82 + - SUM ( DISTINCT - 61 ) col1
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT ALL 54 + 34 + + + 86 + + ( 7 ) * - 41 * + COUNT( DISTINCT ( 7 ) )
----
-113

skipif mysql # not compatible
query I rowsort label-3474
SELECT ALL 54 + 34 + + + 86 + + ( 7 ) * - 41 * + COUNT ( DISTINCT ( 7 ) )
----
-113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3475
SELECT DISTINCT COUNT( * ) * + COALESCE ( + 34, - ( - SUM( + - 66 ) ) DIV + CASE + - 90 WHEN + COUNT( * ) THEN - + SUM( DISTINCT - 23 ) ELSE NULL END, - COUNT( * ) * + ( - - 17 ) ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-3475
SELECT DISTINCT COUNT ( * ) * + COALESCE ( + 34, - ( - SUM ( + - 66 ) ) / + CASE + - 90 WHEN + COUNT ( * ) THEN - + SUM ( DISTINCT - 23 ) ELSE NULL END, - COUNT ( * ) * + ( - - 17 ) ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-3476
SELECT DISTINCT SUM( + 96 ) AS col2, + 16 + + 79
----
96
95

skipif mysql # not compatible
query II rowsort label-3476
SELECT DISTINCT SUM ( + 96 ) AS col2, + 16 + + 79
----
96
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT - ( + ( - NULLIF ( + + MAX( ALL + - 4 ), - 13 ) ) ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-3477
SELECT - ( + ( - NULLIF ( + + MAX ( ALL + - 4 ), - 13 ) ) ) AS col0
----
-4

query I rowsort
SELECT - CASE - 98 WHEN - 41 / - 37 THEN 78 ELSE NULL END + + - 67
----
NULL

query II rowsort
SELECT + 6 * + 87 AS col2, 88 AS col2
----
522
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT ALL + MIN( DISTINCT 89 ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-3480
SELECT ALL + MIN ( DISTINCT 89 ) AS col1
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3481
SELECT ALL + CASE + + 52 WHEN - + 80 THEN NULL WHEN + - 90 + - 70 THEN - 92 WHEN + COUNT( * ) + ( + - CAST( NULL AS SIGNED ) ) THEN - + 3 ELSE - - 99 END / - ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3481
SELECT ALL + CASE + + 52 WHEN - + 80 THEN NULL WHEN + - 90 + - 70 THEN - 92 WHEN + COUNT ( * ) + ( + - CAST ( NULL AS INTEGER ) ) THEN - + 3 ELSE - - 99 END / - ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 31 * + 73 AS col1, + 29 AS col0
----
2263
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT - ( + + 9 ) * COUNT( * ) + - 57 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-3483
SELECT - ( + + 9 ) * COUNT ( * ) + - 57 AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT - COUNT( * ) - - - COALESCE ( + + ( - 21 ), - 46 * - 80 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-3484
SELECT - COUNT ( * ) - - - COALESCE ( + + ( - 21 ), - 46 * - 80 ) AS col2
----
20

query I rowsort
SELECT ALL + 40 * + + 91
----
3640

query II rowsort
SELECT - 40 * 58, - 74 AS col0
----
-2320
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT + NULLIF ( + 63, + 94 + 70 - + + NULLIF ( + 48, COUNT( * ) ) ) + - 75 + + - 51
----
-63

skipif mysql # not compatible
query I rowsort label-3487
SELECT + NULLIF ( + 63, + 94 + 70 - + + NULLIF ( + 48, COUNT ( * ) ) ) + - 75 + + - 51
----
-63

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3489
SELECT - + COUNT( + - 62 ) DIV + 76 - 6 + 2 - + ( + + COUNT( * ) ) + + + 90 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-3489
SELECT - + COUNT ( + - 62 ) / + 76 - 6 + 2 - + ( + + COUNT ( * ) ) + + + 90 AS col0
----
85

query I rowsort
SELECT ALL 15 * 37 + 39 AS col1
----
594

query I rowsort
SELECT ALL 81 * - - 15 * + 1 + + 92 * - 36 + - 2 * - 81 AS col2
----
-1935

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT DISTINCT - ( - + 63 ) * COUNT( * ) + + - 86 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-3492
SELECT DISTINCT - ( - + 63 ) * COUNT ( * ) + + - 86 AS col2
----
-23

query I rowsort
SELECT ALL + 28 * - 22 + + + 77 AS col1
----
-539

query I rowsort
SELECT - + 37 * + + 62 AS col1
----
-2294

query I rowsort
SELECT - + NULLIF ( + 18, + - 81 ) + - 85 AS col2
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3496
SELECT 61 * + CAST( - - 59 AS SIGNED ) - + - 90 * + 18 AS col1
----
5219

skipif mysql # not compatible
query I rowsort label-3496
SELECT 61 * + CAST ( - - 59 AS INTEGER ) - + - 90 * + 18 AS col1
----
5219

onlyif mysql # DIV for integer division: 
query I rowsort label-3497
SELECT ALL 0 + 77 DIV - 37
----
-2

skipif mysql # not compatible
query I rowsort label-3497
SELECT ALL 0 + 77 / - 37
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT DISTINCT + - 48 + - + COUNT( DISTINCT 97 ) + 38 + - - NULLIF ( + 24, - 51 * ( - 50 ) ) + + COUNT( * ) * 65 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-3498
SELECT DISTINCT + - 48 + - + COUNT ( DISTINCT 97 ) + 38 + - - NULLIF ( + 24, - 51 * ( - 50 ) ) + + COUNT ( * ) * 65 AS col2
----
78

query I rowsort
SELECT 39 * 23 * + 40 AS col0
----
35880

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3501
SELECT 23 + + + COUNT( DISTINCT - 95 ) AS col2, 1 AS col0
----
24
1

skipif mysql # not compatible
query II rowsort label-3501
SELECT 23 + + + COUNT ( DISTINCT - 95 ) AS col2, 1 AS col0
----
24
1

query I rowsort
SELECT ALL 1 - + 81
----
-80

query I rowsort
SELECT DISTINCT 94 * + 4 AS col1
----
376

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3504
SELECT DISTINCT 79 AS col2, + COALESCE ( - + CAST( - 48 AS SIGNED ), - 15 ) + 79
----
79
127

skipif mysql # not compatible
query II rowsort label-3504
SELECT DISTINCT 79 AS col2, + COALESCE ( - + CAST ( - 48 AS INTEGER ), - 15 ) + 79
----
79
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3505
SELECT DISTINCT CAST( NULL AS SIGNED ) * 66 * - - COALESCE ( - CASE - ( + + 50 ) WHEN + 96 - + COUNT( * ) / + 38 * - + 57 THEN ( + + ( + + 54 ) ) + + CASE - - 1 WHEN - + 46 * - SUM( DISTINCT 2 ) THEN NULL WHEN + + 16 THEN - - ( 69 ) ELSE NULL END END, 89 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3505
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 66 * - - COALESCE ( - CASE - ( + + 50 ) WHEN + 96 - + COUNT ( * ) / + 38 * - + 57 THEN ( + + ( + + 54 ) ) + + CASE - - 1 WHEN - + 46 * - SUM ( DISTINCT 2 ) THEN NULL WHEN + + 16 THEN - - ( 69 ) ELSE NULL END END, 89 ) AS col2
----
NULL

query I rowsort
SELECT ALL - NULLIF ( - 94, + - 12 ) AS col2
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3507
SELECT CAST( + AVG ( - - 46 ) AS SIGNED ) * 17 col0
----
782

skipif mysql # not compatible
query I rowsort label-3507
SELECT CAST ( + AVG ( - - 46 ) AS INTEGER ) * 17 col0
----
782

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3508
SELECT + 94 * - - 77 * + 15 - - CAST( NULL AS SIGNED ) + + - 4 * 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3508
SELECT + 94 * - - 77 * + 15 - - CAST ( NULL AS INTEGER ) + + - 4 * 23 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3509
SELECT CAST( 42 AS SIGNED ) * COUNT( * ), 24 DIV 98 AS col0
----
42
0

skipif mysql # not compatible
query II rowsort label-3509
SELECT CAST ( 42 AS INTEGER ) * COUNT ( * ), 24 / 98 AS col0
----
42
0

query I rowsort
SELECT 92 - + 44 col1
----
48

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3512
SELECT ALL - 99 AS col1, 9 - - - 90 + - + 54 + - 68 * - - 20, - COUNT( * ) DIV - 98 * - 43 + - + COUNT( * ) AS col2
----
-99
-1495
-1

skipif mysql # not compatible
query III rowsort label-3512
SELECT ALL - 99 AS col1, 9 - - - 90 + - + 54 + - 68 * - - 20, - COUNT ( * ) / - 98 * - 43 + - + COUNT ( * ) AS col2
----
-99
-1495
-1

query I rowsort
SELECT ALL 57 + + 51 AS col0
----
108

query I rowsort
SELECT ALL - ( + - 81 ) + + 81
----
162

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3515
SELECT + MAX( ALL + 36 ) DIV + ( 59 ) + + COALESCE ( - + 25, + 95 * - COUNT( * ) ) AS col1, 51 * + + 76 + 48 * + + SUM( DISTINCT + 5 ) * - + 25 AS col2
----
-25
-2124

skipif mysql # not compatible
query II rowsort label-3515
SELECT + MAX ( ALL + 36 ) / + ( 59 ) + + COALESCE ( - + 25, + 95 * - COUNT ( * ) ) AS col1, 51 * + + 76 + 48 * + + SUM ( DISTINCT + 5 ) * - + 25 AS col2
----
-25
-2124

onlyif mysql # DIV for integer division: 
query I rowsort label-3516
SELECT DISTINCT ( 85 ) DIV + 77 + + 46 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-3516
SELECT DISTINCT ( 85 ) / + 77 + + 46 AS col1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3517
SELECT ALL - 83 * - - 37 + CAST( NULL AS SIGNED ) * + + 27 * + - 54 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3517
SELECT ALL - 83 * - - 37 + CAST ( NULL AS INTEGER ) * + + 27 * + - 54 col0
----
NULL

query I rowsort
SELECT ALL - 72 + - 27 AS col0
----
-99

query I rowsort
SELECT ALL + + 87 + 50 + - 37 * + + 6
----
-85

query II rowsort
SELECT 86 AS col0, - 32
----
86
-32

query I rowsort
SELECT + 36 * 67 * 58 AS col1
----
139896

onlyif mysql # DIV for integer division: 
query I rowsort label-3522
SELECT 28 * - + ( + 63 ) + - - 2 DIV + 73
----
-1764

skipif mysql # not compatible
query I rowsort label-3522
SELECT 28 * - + ( + 63 ) + - - 2 / + 73
----
-1764

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT + 66 * MAX( ALL 9 ) * + ( - 51 ) * + + 79 * - COUNT( DISTINCT + + 68 ) + + NULLIF ( - + 34, 34 ) * + 63 * + 34
----
2320398

skipif mysql # not compatible
query I rowsort label-3523
SELECT + 66 * MAX ( ALL 9 ) * + ( - 51 ) * + + 79 * - COUNT ( DISTINCT + + 68 ) + + NULLIF ( - + 34, 34 ) * + 63 * + 34
----
2320398

onlyif mysql # DIV for integer division: 
query I rowsort label-3524
SELECT 29 DIV 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3524
SELECT 29 / 55 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-3525
SELECT - 95 * 76 + + MIN( 97 ) DIV + 71 + + NULLIF ( + 73, - - CAST( NULL AS DECIMAL ) * + CAST( 93 AS SIGNED ) ) AS col0
----
-7146

skipif mysql # not compatible
query I rowsort label-3525
SELECT - 95 * 76 + + MIN ( 97 ) / + 71 + + NULLIF ( + 73, - - CAST ( NULL AS REAL ) * + CAST ( 93 AS INTEGER ) ) AS col0
----
-7146

query I rowsort
SELECT ALL + 36 * + 63
----
2268

onlyif mysql # DIV for integer division: 
query I rowsort label-3527
SELECT ALL - + 74 DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-3527
SELECT ALL - + 74 / + 98
----
0

query I rowsort
SELECT ( 83 ) + + + 91 + 76
----
250

onlyif mysql # DIV for integer division: 
query I rowsort label-3529
SELECT ALL - + 58 - + 7 DIV + 71 * - 30
----
-58

skipif mysql # not compatible
query I rowsort label-3529
SELECT ALL - + 58 - + 7 / + 71 * - 30
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT DISTINCT - NULLIF ( - - CASE - - COUNT( * ) WHEN + + 48 + - 48 + 48 + + - ( + + COUNT( + - 77 ) ) THEN + 22 END, 39 + - - 82 * - 62 + + 51 + - 54 ) / CASE - 28 WHEN COUNT( * ) THEN - COUNT( * ) * - + ( + COUNT( * ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3530
SELECT DISTINCT - NULLIF ( - - CASE - - COUNT ( * ) WHEN + + 48 + - 48 + 48 + + - ( + + COUNT ( + - 77 ) ) THEN + 22 END, 39 + - - 82 * - 62 + + 51 + - 54 ) / CASE - 28 WHEN COUNT ( * ) THEN - COUNT ( * ) * - + ( + COUNT ( * ) ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 65 - - 1
----
66

query II rowsort
SELECT DISTINCT - 29 AS col0, - 8 + + 51
----
-29
43

query I rowsort
SELECT ALL NULLIF ( - - 92, 29 + - + 29 )
----
92

query I rowsort
SELECT 88 + - 84 + + 20 * 90 AS col0
----
1804

query I rowsort
SELECT ALL - 75 - + 93
----
-168

query I rowsort
SELECT 38 + + 3 + - - 86
----
127

query I rowsort
SELECT ALL - ( 69 ) * 67
----
-4623

query I rowsort
SELECT ALL - 58 * 20
----
-1160

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3540
SELECT ALL 47 DIV + MIN( ( NULLIF ( 56, - + 57 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-3540
SELECT ALL 47 / + MIN ( ( NULLIF ( 56, - + 57 ) ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3541
SELECT 64 DIV + + 57 AS col1, - ( 3 ) * + + 76 DIV + 35 * - ( COUNT( * ) ) AS col1
----
1
6

skipif mysql # not compatible
query II rowsort label-3541
SELECT 64 / + + 57 AS col1, - ( 3 ) * + + 76 / + 35 * - ( COUNT ( * ) ) AS col1
----
1
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT - SUM( + 25 ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-3542
SELECT - SUM ( + 25 ) AS col2
----
-25

query I rowsort
SELECT 47 * - 37 AS col0
----
-1739

onlyif mysql # DIV for integer division: 
query I rowsort label-3544
SELECT 54 DIV 6
----
9

skipif mysql # not compatible
query I rowsort label-3544
SELECT 54 / 6
----
9

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

skipif mysql # not compatible
query I rowsort label-3545
SELECT DISTINCT 46 * - - COUNT ( * ) * 96
----
4416

query I rowsort
SELECT ALL 33 * 20 + + 77
----
737

query I rowsort
SELECT DISTINCT 2 * + 4 + - 96 AS col1
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3548
SELECT ALL 52 * + 7 + COUNT( * ) + COUNT( * ) + NULLIF ( + + CAST( NULL AS SIGNED ), + 76 + - COUNT( * ) * + - CAST( NULL AS SIGNED ) ) * 80 + + 71 - 71 * COUNT( * ) * + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-3548
SELECT ALL 52 * + 7 + COUNT ( * ) + COUNT ( * ) + NULLIF ( + + CAST ( NULL AS INTEGER ), + 76 + - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) ) * 80 + + 71 - 71 * COUNT ( * ) * + 13
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3549
SELECT - COALESCE ( + 60, - 68 + CAST( - 4 AS SIGNED ), + + 42 + 18 + + - 94 )
----
-60

skipif mysql # not compatible
query I rowsort label-3549
SELECT - COALESCE ( + 60, - 68 + CAST ( - 4 AS INTEGER ), + + 42 + 18 + + - 94 )
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-3550
SELECT DISTINCT 15 * COUNT( * ) * 85 + - + 26 + - 93 AS col1, + 28 * + 22 AS col1
----
1156
616

skipif mysql # not compatible
query II rowsort label-3550
SELECT DISTINCT 15 * COUNT ( * ) * 85 + - + 26 + - 93 AS col1, + 28 * + 22 AS col1
----
1156
616

query I rowsort
SELECT + 68 * - 90 + - - 63
----
-6057

query I rowsort
SELECT + 52 * + 37 + 31 + - 30
----
1925

query I rowsort
SELECT - 4 * + + 24 - + 97
----
-193

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT DISTINCT - 40 * COUNT( * ) - - - 94 * 71 - - SUM( - 79 ) AS col2
----
-6793

skipif mysql # not compatible
query I rowsort label-3554
SELECT DISTINCT - 40 * COUNT ( * ) - - - 94 * 71 - - SUM ( - 79 ) AS col2
----
-6793

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3555
SELECT DISTINCT + MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col2, - 66 AS col1
----
NULL
-66

skipif mysql # not compatible
query II rowsort label-3555
SELECT DISTINCT + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2, - 66 AS col1
----
NULL
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3556
SELECT ALL 49 DIV - 51, NULLIF ( + ( 45 ), - + ( + CAST( 86 AS SIGNED ) ) ) * - COUNT( DISTINCT 33 ) + + 22 AS col2
----
0
-23

skipif mysql # not compatible
query II rowsort label-3556
SELECT ALL 49 / - 51, NULLIF ( + ( 45 ), - + ( + CAST ( 86 AS INTEGER ) ) ) * - COUNT ( DISTINCT 33 ) + + 22 AS col2
----
0
-23

query I rowsort
SELECT + ( - ( + 47 ) ) + - - ( - 26 ) AS col0
----
-73

query I rowsort
SELECT - 6 * + + 34 / ( - CASE + - 30 WHEN - - 85 THEN 87 END ) / + 70 + 75
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3559
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + AVG ( - + 8 ) * + + 29
----
NULL

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

query I rowsort
SELECT ALL CASE + 36 WHEN - + 13 THEN NULL WHEN + 41 THEN 36 END
----
NULL

query II rowsort
SELECT - 62, 67 * 49 AS col1
----
-62
3283

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT DISTINCT SUM( ALL 72 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-3562
SELECT DISTINCT SUM ( ALL 72 ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-3563
SELECT ALL COUNT( * ) AS col2, 63 + MIN( + 18 ) + + 14
----
1
95

skipif mysql # not compatible
query II rowsort label-3563
SELECT ALL COUNT ( * ) AS col2, 63 + MIN ( + 18 ) + + 14
----
1
95

onlyif mysql # DIV for integer division: 
query I rowsort label-3564
SELECT DISTINCT + 99 DIV 63 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3564
SELECT DISTINCT + 99 / 63 AS col0
----
1

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

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

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

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

query I rowsort
SELECT - 6 * + 70
----
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT - 12 * - - COUNT( DISTINCT + ( - 15 ) ) col0
----
-12

skipif mysql # not compatible
query I rowsort label-3568
SELECT - 12 * - - COUNT ( DISTINCT + ( - 15 ) ) col0
----
-12

query I rowsort
SELECT ALL - 54 + + 20 + + NULLIF ( - 69, + 83 ) AS col1
----
-103

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3570
SELECT DISTINCT NULLIF ( CAST( NULL AS DECIMAL ), - 67 + - 1 * - - 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3570
SELECT DISTINCT NULLIF ( CAST ( NULL AS REAL ), - 67 + - 1 * - - 35 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT - COUNT( * ) + + CASE ( - 25 ) WHEN + ( - - 91 ) / 92 / + + COALESCE ( 88, - - 20 ) THEN NULL WHEN - - COUNT( * ) THEN 98 + - - COUNT( * ) ELSE NULL END + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-3571
SELECT - COUNT ( * ) + + CASE ( - 25 ) WHEN + ( - - 91 ) / 92 / + + COALESCE ( 88, - - 20 ) THEN NULL WHEN - - COUNT ( * ) THEN 98 + - - COUNT ( * ) ELSE NULL END + 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT - COUNT( + - 50 )
----
-1

skipif mysql # not compatible
query I rowsort label-3572
SELECT - COUNT ( + - 50 )
----
-1

query I rowsort
SELECT ALL - 27 * COALESCE ( - 81, - 53 ) AS col1
----
2187

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT + MIN( ALL - 35 ) * + 24 + + 95 AS col1
----
-745

skipif mysql # not compatible
query I rowsort label-3574
SELECT + MIN ( ALL - 35 ) * + 24 + + 95 AS col1
----
-745

onlyif mysql # aggregate syntax: 
query II rowsort label-3575
SELECT - 91 AS col1, 82 * - COUNT( * ) * - 90
----
-91
7380

skipif mysql # not compatible
query II rowsort label-3575
SELECT - 91 AS col1, 82 * - COUNT ( * ) * - 90
----
-91
7380

query II rowsort
SELECT - ( + 84 ) + + - 41 col2, + 92 * + 18 + + 53 AS col1
----
-125
1709

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT ALL CASE + + 98 WHEN + + 14 THEN - 58 + + COUNT( * ) * + ( + 5 ) * + NULLIF ( 82, - + 76 * - 72 * + 49 ) WHEN 23 THEN NULL WHEN - 24 + 68 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3577
SELECT ALL CASE + + 98 WHEN + + 14 THEN - 58 + + COUNT ( * ) * + ( + 5 ) * + NULLIF ( 82, - + 76 * - 72 * + 49 ) WHEN 23 THEN NULL WHEN - 24 + 68 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT - COUNT( * ) + + 44 * - ( 46 ) * - COALESCE ( 4, 48 * - - 67 ) * + 21
----
170015

skipif mysql # not compatible
query I rowsort label-3578
SELECT - COUNT ( * ) + + 44 * - ( 46 ) * - COALESCE ( 4, 48 * - - 67 ) * + 21
----
170015

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT DISTINCT ( - + COALESCE ( - + 12, + + COUNT( * ) ) )
----
12

skipif mysql # not compatible
query I rowsort label-3579
SELECT DISTINCT ( - + COALESCE ( - + 12, + + COUNT ( * ) ) )
----
12

query I rowsort
SELECT DISTINCT + 9 + + 37
----
46

query I rowsort
SELECT ALL - 55 + - - 59 + - + 25
----
-21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT - 4 * + COUNT( * ) + - 64 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-3583
SELECT - 4 * + COUNT ( * ) + - 64 AS col2
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-3584
SELECT ALL 16 DIV - 8 + + 88
----
86

skipif mysql # not compatible
query I rowsort label-3584
SELECT ALL 16 / - 8 + + 88
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-3585
SELECT + 29 DIV - ( 24 ) + 7 * - 53 AS col2
----
-372

skipif mysql # not compatible
query I rowsort label-3585
SELECT + 29 / - ( 24 ) + 7 * - 53 AS col2
----
-372

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT + 16 * SUM( DISTINCT 98 ) AS col2
----
1568

skipif mysql # not compatible
query I rowsort label-3586
SELECT + 16 * SUM ( DISTINCT 98 ) AS col2
----
1568

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT + SUM( + 34 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-3587
SELECT + SUM ( + 34 ) AS col2
----
34

query I rowsort
SELECT - 86 + 91
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3589
SELECT 55 DIV 74 - 1 col0
----
-1

skipif mysql # not compatible
query I rowsort label-3589
SELECT 55 / 74 - 1 col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3590
SELECT DISTINCT SUM( 27 ) DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-3590
SELECT DISTINCT SUM ( 27 ) / 71
----
0

query I rowsort
SELECT + 41 * - 24 + 13
----
-971

query I rowsort
SELECT + 68 + - 2 * 74 AS col1
----
-80

query I rowsort
SELECT + ( 15 ) * - 96
----
-1440

query I rowsort
SELECT ALL + ( + 75 ) * 68 - + 41
----
5059

query I rowsort
SELECT 56 * + 25 + - 70 AS col2
----
1330

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT ALL CASE - 30 WHEN 6 THEN + 55 WHEN COUNT( * ) * + COUNT( 40 ) THEN - 49 + + SUM( + 74 ) END * 43
----
NULL

skipif mysql # not compatible
query I rowsort label-3597
SELECT ALL CASE - 30 WHEN 6 THEN + 55 WHEN COUNT ( * ) * + COUNT ( 40 ) THEN - 49 + + SUM ( + 74 ) END * 43
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT ALL - 78 * - 36 - ( NULLIF ( 98, - 73 * + COUNT( * ) + 0 ) ) AS col0
----
2710

skipif mysql # not compatible
query I rowsort label-3598
SELECT ALL - 78 * - 36 - ( NULLIF ( 98, - 73 * + COUNT ( * ) + 0 ) ) AS col0
----
2710

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

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

query I rowsort
SELECT + 38 + 48 AS col2
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3601
SELECT + CASE - CASE 23 WHEN 19 + 40 * - 6 THEN NULL WHEN CAST( NULL AS SIGNED ) + - ( 96 ) * + 1 THEN - ( + 15 ) WHEN + ( 97 ) + 48 * 85 THEN NULL ELSE NULL END WHEN + 28 * - 84 - 91 THEN 51 - + COALESCE ( 17 + 57, 88 + - 38 * + NULLIF ( NULLIF ( 47, - 88 ) + 6, 16 ), - NULLIF ( + 3, CAST( 9 AS SIGNED ) / 52 ) ) ELSE - 88 END
----
-88

skipif mysql # not compatible
query I rowsort label-3601
SELECT + CASE - CASE 23 WHEN 19 + 40 * - 6 THEN NULL WHEN CAST ( NULL AS INTEGER ) + - ( 96 ) * + 1 THEN - ( + 15 ) WHEN + ( 97 ) + 48 * 85 THEN NULL ELSE NULL END WHEN + 28 * - 84 - 91 THEN 51 - + COALESCE ( 17 + 57, 88 + - 38 * + NULLIF ( NULLIF ( 47, - 88 ) + 6, 16 ), - NULLIF ( + 3, CAST ( 9 AS INTEGER ) / 52 ) ) ELSE - 88 END
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT CASE + 52 WHEN COUNT( * ) THEN NULL WHEN + MIN( ALL 28 ) * 50 + - AVG ( ALL - 82 ) THEN 46 * 42 + + 33 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3602
SELECT CASE + 52 WHEN COUNT ( * ) THEN NULL WHEN + MIN ( ALL 28 ) * 50 + - AVG ( ALL - 82 ) THEN 46 * 42 + + 33 ELSE NULL END AS col0
----
NULL

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

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

query I rowsort
SELECT - 55 + + 49 AS col1
----
-6

query I rowsort
SELECT + 84 + ( - 85 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3606
SELECT DISTINCT - 52 * - ( + 32 ) + - ( + 36 ) DIV - ( + CAST( + 47 AS SIGNED ) * - CAST( 9 AS SIGNED ) ) AS col1
----
1664

skipif mysql # not compatible
query I rowsort label-3606
SELECT DISTINCT - 52 * - ( + 32 ) + - ( + 36 ) / - ( + CAST ( + 47 AS INTEGER ) * - CAST ( 9 AS INTEGER ) ) AS col1
----
1664

query I rowsort
SELECT DISTINCT + 12 * 19
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT ALL - COUNT( * ) * COUNT( * ) + 68 * 45
----
3059

skipif mysql # not compatible
query I rowsort label-3608
SELECT ALL - COUNT ( * ) * COUNT ( * ) + 68 * 45
----
3059

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT ALL ( + 25 ) * + COUNT( 28 )
----
25

skipif mysql # not compatible
query I rowsort label-3609
SELECT ALL ( + 25 ) * + COUNT ( 28 )
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-3610
SELECT - COALESCE ( 16, - 67 ) DIV 49
----
0

skipif mysql # not compatible
query I rowsort label-3610
SELECT - COALESCE ( 16, - 67 ) / 49
----
0

query I rowsort
SELECT + 24 * + 46 AS col2
----
1104

query I rowsort
SELECT + 70 * + 19 + 37
----
1367

query I rowsort
SELECT DISTINCT 36 * 7 AS col1
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT - 6 + COUNT( * ) * - 11 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-3614
SELECT - 6 + COUNT ( * ) * - 11 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT ALL CASE 94 WHEN 69 * - 66 + 69 THEN + MAX( - 7 ) * + 45 + + COUNT( * ) * 76 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3615
SELECT ALL CASE 94 WHEN 69 * - 66 + 69 THEN + MAX ( - 7 ) * + 45 + + COUNT ( * ) * 76 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3616
SELECT - CAST( 73 AS SIGNED ) + 60 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-3616
SELECT - CAST ( 73 AS INTEGER ) + 60 AS col0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3617
SELECT - CASE + NULLIF ( 36, COUNT( * ) + 75 ) WHEN + 57 THEN 87 + 40 WHEN 86 / + CAST( NULL AS SIGNED ) THEN NULL ELSE 91 * + 10 END * - 52
----
47320

skipif mysql # not compatible
query I rowsort label-3617
SELECT - CASE + NULLIF ( 36, COUNT ( * ) + 75 ) WHEN + 57 THEN 87 + 40 WHEN 86 / + CAST ( NULL AS INTEGER ) THEN NULL ELSE 91 * + 10 END * - 52
----
47320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3618
SELECT DISTINCT CAST( NULL AS SIGNED ) * NULLIF ( - 15, MIN( DISTINCT - 41 ) + 48 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3618
SELECT DISTINCT CAST ( NULL AS INTEGER ) * NULLIF ( - 15, MIN ( DISTINCT - 41 ) + 48 )
----
NULL

query I rowsort
SELECT ALL - 23 + 48
----
25

query I rowsort
SELECT DISTINCT + 68 + + 98 * 4 AS col2
----
460

query I rowsort
SELECT DISTINCT 93 + NULLIF ( 76, 4 )
----
169

onlyif mysql # DIV for integer division: 
query I rowsort label-3622
SELECT DISTINCT + 78 DIV + 34
----
2

skipif mysql # not compatible
query I rowsort label-3622
SELECT DISTINCT + 78 / + 34
----
2

query I rowsort
SELECT ALL - 23 + ( + CASE + 14 WHEN NULLIF ( - 10, + 43 / 48 ) + 50 THEN - 75 WHEN - 20 / 16 THEN NULL END )
----
NULL

query I rowsort
SELECT DISTINCT + 5 - - 68 AS col2
----
73

query I rowsort
SELECT - + CASE - 41 WHEN - AVG ( - 90 ) * + 69 THEN NULL ELSE 39 END AS col2
----
-39

query I rowsort
SELECT 4 + + 92 AS col1
----
96

query I rowsort
SELECT DISTINCT + + ( - 44 ) - 67 AS col0
----
-111

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

query I rowsort
SELECT ALL + 60 * - 92 col1
----
-5520

query I rowsort
SELECT DISTINCT + + 39 * ( 64 + 10 ) AS col0
----
2886

onlyif mysql # DIV for integer division: 
query I rowsort label-3631
SELECT 63 DIV + 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3631
SELECT 63 / + 85 AS col0
----
0

query I rowsort
SELECT - - 10 * + 54 + - 44 AS col0
----
496

query I rowsort
SELECT - 97 + - 92 AS col2
----
-189

query I rowsort
SELECT DISTINCT 67 * 32
----
2144

query I rowsort
SELECT DISTINCT + 71 + + 38
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT ALL - COALESCE ( - 94, - ( MIN( ALL 59 ) ) * - 25 + 37 * + 14 ) + + 14 AS col0
----
108

skipif mysql # not compatible
query I rowsort label-3636
SELECT ALL - COALESCE ( - 94, - ( MIN ( ALL 59 ) ) * - 25 + 37 * + 14 ) + + 14 AS col0
----
108

query I rowsort
SELECT ALL COALESCE ( + ( 31 ), - 66 + - 82 ) + - 30 * + 67
----
-1979

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3638
SELECT COUNT( * ) + 55 DIV 17 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-3638
SELECT COUNT ( * ) + 55 / 17 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT DISTINCT 53 + + - SUM( ALL 99 ) * + 46 AS col2
----
-4501

skipif mysql # not compatible
query I rowsort label-3639
SELECT DISTINCT 53 + + - SUM ( ALL 99 ) * + 46 AS col2
----
-4501

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

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

query I rowsort
SELECT ALL 88 + + 15 + + 29
----
132

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT DISTINCT COUNT( ALL + 38 ) * + 12 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-3643
SELECT DISTINCT COUNT ( ALL + 38 ) * + 12 AS col1
----
12

query I rowsort
SELECT ALL 52 + - - ( + 47 ) + 93
----
192

query I rowsort
SELECT ALL + 64 * ( 80 )
----
5120

query I rowsort
SELECT ( + ( - 22 ) ) + - 78 AS col0
----
-100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3647
SELECT DISTINCT COUNT( * ) * - 70 DIV 29 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3647
SELECT DISTINCT COUNT ( * ) * - 70 / 29 AS col2
----
-2

query I rowsort
SELECT 8 - - 97
----
105

query I rowsort
SELECT 11 * - - 58 AS col1
----
638

query I rowsort
SELECT 82 + - + CASE WHEN NOT NULL IN ( 15 ) THEN - 49 + ( 84 ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3651
SELECT 17 DIV + 47 col0
----
0

skipif mysql # not compatible
query I rowsort label-3651
SELECT 17 / + 47 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT 60 * - MAX( 29 ) AS col1
----
-1740

skipif mysql # not compatible
query I rowsort label-3652
SELECT 60 * - MAX ( 29 ) AS col1
----
-1740

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

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

query I rowsort
SELECT ALL + 64 - + 84
----
-20

query I rowsort
SELECT 22 * - 93 * ( + 48 )
----
-98208

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT - COUNT( * ) + - + NULLIF ( + 93, 11 ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-3657
SELECT - COUNT ( * ) + - + NULLIF ( + 93, 11 ) AS col1
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-3658
SELECT ALL - 73 DIV - 38
----
1

skipif mysql # not compatible
query I rowsort label-3658
SELECT ALL - 73 / - 38
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT 98 + SUM( DISTINCT + 7 )
----
105

skipif mysql # not compatible
query I rowsort label-3659
SELECT 98 + SUM ( DISTINCT + 7 )
----
105

query I rowsort
SELECT ALL NULLIF ( - - 97, - 83 )
----
97

query I rowsort
SELECT - - NULLIF ( - 81, + 89 ) AS col1
----
-81

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3663
SELECT ALL - + 49 DIV 70
----
0

skipif mysql # not compatible
query I rowsort label-3663
SELECT ALL - + 49 / 70
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3664
SELECT + 45 DIV + 8
----
5

skipif mysql # not compatible
query I rowsort label-3664
SELECT + 45 / + 8
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3665
SELECT - + 63 DIV ( + 1 ) + - 21 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-3665
SELECT - + 63 / ( + 1 ) + - 21 AS col2
----
-84

query I rowsort
SELECT ALL - - NULLIF ( + 20, + 32 )
----
20

query I rowsort
SELECT 9 * - 67 * 92
----
-55476

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT + 3 + - + ( + 94 ) * + ( + COUNT( * ) ) col0
----
-91

skipif mysql # not compatible
query I rowsort label-3668
SELECT + 3 + - + ( + 94 ) * + ( + COUNT ( * ) ) col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT NULLIF ( + 58, COUNT( * ) * ( + 40 ) + 6 / + 17 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-3669
SELECT NULLIF ( + 58, COUNT ( * ) * ( + 40 ) + 6 / + 17 ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT DISTINCT - - 23 + - 49 + + ( - COUNT( * ) ) * 57 * + 73 AS col2
----
-4187

skipif mysql # not compatible
query I rowsort label-3670
SELECT DISTINCT - - 23 + - 49 + + ( - COUNT ( * ) ) * 57 * + 73 AS col2
----
-4187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3671
SELECT ALL + + CASE + CAST( COALESCE ( ( ( COUNT( * ) ) ), 19 * COUNT( * ) ) AS SIGNED ) WHEN - SUM( ALL 51 ) THEN NULL WHEN 28 / + 5 THEN + SUM( CAST( NULL AS SIGNED ) ) ELSE + CASE + 49 WHEN + CAST( NULL AS SIGNED ) + + 36 THEN 85 ELSE + 71 END END * - NULLIF ( 90 * 77, - 30 + + 66 )
----
-492030

skipif mysql # not compatible
query I rowsort label-3671
SELECT ALL + + CASE + CAST ( COALESCE ( ( ( COUNT ( * ) ) ), 19 * COUNT ( * ) ) AS INTEGER ) WHEN - SUM ( ALL 51 ) THEN NULL WHEN 28 / + 5 THEN + SUM ( CAST ( NULL AS INTEGER ) ) ELSE + CASE + 49 WHEN + CAST ( NULL AS INTEGER ) + + 36 THEN 85 ELSE + 71 END END * - NULLIF ( 90 * 77, - 30 + + 66 )
----
-492030

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

query I rowsort
SELECT ALL - - CASE 58 WHEN - 61 THEN NULL ELSE 65 END
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3674
SELECT DISTINCT - 18 + - SUM( DISTINCT 48 ) DIV + 74
----
-18

skipif mysql # not compatible
query I rowsort label-3674
SELECT DISTINCT - 18 + - SUM ( DISTINCT 48 ) / + 74
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT 7 * + - ( - 96 ) + + 32 + - SUM( - 89 + 4 )
----
789

skipif mysql # not compatible
query I rowsort label-3675
SELECT 7 * + - ( - 96 ) + + 32 + - SUM ( - 89 + 4 )
----
789

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

skipif mysql # not compatible
query I rowsort label-3676
SELECT ALL - - CAST ( NULL AS INTEGER ) + + 1 * - 48
----
NULL

query I rowsort
SELECT DISTINCT - - 31 + 98
----
129

query I rowsort
SELECT ALL - - 69 * - 73 * 99 col0
----
-498663

query I rowsort
SELECT ALL + 67 + - 57 + - 24 * 65
----
-1550

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3680
SELECT DISTINCT - 99 AS col1, + CAST( ( - 41 ) AS SIGNED )
----
-99
-41

skipif mysql # not compatible
query II rowsort label-3680
SELECT DISTINCT - 99 AS col1, + CAST ( ( - 41 ) AS INTEGER )
----
-99
-41

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

query I rowsort
SELECT 38 + 7 + + 41 AS col1
----
86

query I rowsort
SELECT 41 * + + 9 col2
----
369

onlyif mysql # aggregate syntax: 
query II rowsort label-3684
SELECT ALL - 12 AS col0, - SUM( - 11 )
----
-12
11

skipif mysql # not compatible
query II rowsort label-3684
SELECT ALL - 12 AS col0, - SUM ( - 11 )
----
-12
11

query I rowsort
SELECT 58 * + 81 + + - 1 + 77 * + 55 AS col0
----
8932

query I rowsort
SELECT 83 * + 17 AS col1
----
1411

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

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

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

query I rowsort
SELECT ALL 89 + 26
----
115

query I rowsort
SELECT ALL 47 * - - 21 AS col1
----
987

onlyif mysql # aggregate syntax: 
query II rowsort label-3691
SELECT 41, + 78 * - 82 + - COUNT( * ) AS col2
----
41
-6397

skipif mysql # not compatible
query II rowsort label-3691
SELECT 41, + 78 * - 82 + - COUNT ( * ) AS col2
----
41
-6397

query I rowsort
SELECT DISTINCT + 41 + - + 95
----
-54

query II rowsort
SELECT + 76 AS col1, 36 + 33
----
76
69

onlyif mysql # DIV for integer division: 
query I rowsort label-3694
SELECT DISTINCT - 77 DIV 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3694
SELECT DISTINCT - 77 / 91 AS col1
----
0

query I rowsort
SELECT ALL + 23 - - 33 * + - 31 * 21
----
-21460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3696
SELECT ALL - 68 * + - CASE + - SUM( + 46 ) WHEN - 93 THEN 32 WHEN + CAST( NULL AS SIGNED ) THEN MAX( - 68 ) + + COUNT( 16 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3696
SELECT ALL - 68 * + - CASE + - SUM ( + 46 ) WHEN - 93 THEN 32 WHEN + CAST ( NULL AS INTEGER ) THEN MAX ( - 68 ) + + COUNT ( 16 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT 96 * + 59 * + 22 * + 70 + + 37
----
8722597

onlyif mysql # DIV for integer division: 
query I rowsort label-3698
SELECT 63 DIV 46 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3698
SELECT 63 / 46 AS col2
----
1

query I rowsort
SELECT DISTINCT 46 * - - COALESCE ( + - 1, - 17 * 31 + 1 * 85, + 71, 47 ) AS col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT ALL COUNT( * ) * + - 94 * + 3
----
-282

skipif mysql # not compatible
query I rowsort label-3700
SELECT ALL COUNT ( * ) * + - 94 * + 3
----
-282

query I rowsort
SELECT + 17 + + - 16
----
1

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

skipif mysql # not compatible
query II rowsort label-3702
SELECT - COUNT ( * ), 82 AS col1
----
-1
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT + 93 + + COUNT( ALL 97 )
----
94

skipif mysql # not compatible
query I rowsort label-3703
SELECT + 93 + + COUNT ( ALL 97 )
----
94

query I rowsort
SELECT + 81 * - 31 * + - 66 AS col0
----
165726

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3705
SELECT ALL + 43 * + 31 + ( - 32 ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3705
SELECT ALL + 43 * + 31 + ( - 32 ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3706
SELECT DISTINCT - 26 AS col1, - COUNT( DISTINCT - 47 ) * CASE ( 8 ) WHEN - 61 THEN 74 ELSE NULL END AS col0
----
-26
NULL

skipif mysql # not compatible
query II rowsort label-3706
SELECT DISTINCT - 26 AS col1, - COUNT ( DISTINCT - 47 ) * CASE ( 8 ) WHEN - 61 THEN 74 ELSE NULL END AS col0
----
-26
NULL

query I rowsort
SELECT + 60 - 90
----
-30

query II rowsort
SELECT 22, - 72 * 22 AS col0
----
22
-1584

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT + SUM( ALL 11 ) * COUNT( * ) * + 89 AS col0
----
979

skipif mysql # not compatible
query I rowsort label-3709
SELECT + SUM ( ALL 11 ) * COUNT ( * ) * + 89 AS col0
----
979

query I rowsort
SELECT DISTINCT + 50 + + - CASE - + 49 WHEN + 40 THEN - 42 ELSE NULL END AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3712
SELECT - - COALESCE ( + + 74, 76 + - CAST( NULL AS SIGNED ) DIV + 84 )
----
74

skipif mysql # not compatible
query I rowsort label-3712
SELECT - - COALESCE ( + + 74, 76 + - CAST ( NULL AS INTEGER ) / + 84 )
----
74

query I rowsort
SELECT + 1 * - 93 * + NULLIF ( - COALESCE ( 23, 55, - 76 * - 83 ), 31 ) * - 45 + - 69 * + 33 col2
----
-98532

query I rowsort
SELECT ALL - 17 + + 63 + + 89 + - 18 AS col0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT ALL - 8 * + + 34 + + COUNT( * )
----
-271

skipif mysql # not compatible
query I rowsort label-3715
SELECT ALL - 8 * + + 34 + + COUNT ( * )
----
-271

query II rowsort
SELECT ALL + 3 AS col0, - 12
----
3
-12

query I rowsort
SELECT DISTINCT + 87 * - - 37 + + - 94
----
3125

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3718
SELECT ALL - 51 * - + CAST( - 90 AS SIGNED ) + - 72 DIV - 23 + - ( + 36 - - 84 * - 88 ) * - NULLIF ( + 25, 46 )
----
-188487

skipif mysql # not compatible
query I rowsort label-3718
SELECT ALL - 51 * - + CAST ( - 90 AS INTEGER ) + - 72 / - 23 + - ( + 36 - - 84 * - 88 ) * - NULLIF ( + 25, 46 )
----
-188487

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3720
SELECT + 26, 88 + COUNT( * ) col1
----
26
89

skipif mysql # not compatible
query II rowsort label-3720
SELECT + 26, 88 + COUNT ( * ) col1
----
26
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT - COUNT( * ) * - + COUNT( - 52 ) * + + 59 + 69 + 34 * 26
----
1012

skipif mysql # not compatible
query I rowsort label-3721
SELECT - COUNT ( * ) * - + COUNT ( - 52 ) * + + 59 + 69 + 34 * 26
----
1012

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT - COUNT( 28 ) * + 29 - - 64
----
35

skipif mysql # not compatible
query I rowsort label-3722
SELECT - COUNT ( 28 ) * + 29 - - 64
----
35

query I rowsort
SELECT CASE + 22 WHEN - + 23 THEN + ( - 57 ) * - 1 + 25 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3724
SELECT + 58 DIV - 63 + - 88 + - ( - 95 ) - 31 * + 97
----
-3000

skipif mysql # not compatible
query I rowsort label-3724
SELECT + 58 / - 63 + - 88 + - ( - 95 ) - 31 * + 97
----
-3000

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT DISTINCT 70 * - 63 + - - COUNT( * ) * 29
----
-4381

skipif mysql # not compatible
query I rowsort label-3725
SELECT DISTINCT 70 * - 63 + - - COUNT ( * ) * 29
----
-4381

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT ALL 45 * - - 30 + 12 + + + 14 + + ( 4 + CASE 62 WHEN - COUNT( 6 ) + - 14 THEN NULL WHEN + 73 + 28 THEN NULL WHEN - 98 THEN 60 * + 84 + ( 4 ) ELSE + NULLIF ( + 33, ( 8 ) ) END ) * - 89
----
-1917

skipif mysql # not compatible
query I rowsort label-3727
SELECT ALL 45 * - - 30 + 12 + + + 14 + + ( 4 + CASE 62 WHEN - COUNT ( 6 ) + - 14 THEN NULL WHEN + 73 + 28 THEN NULL WHEN - 98 THEN 60 * + 84 + ( 4 ) ELSE + NULLIF ( + 33, ( 8 ) ) END ) * - 89
----
-1917

query I rowsort
SELECT ALL + COALESCE ( 91, 52 + - 34 ) col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT DISTINCT COUNT( * ) * - MAX( + 66 ) - - - 32
----
-98

skipif mysql # not compatible
query I rowsort label-3729
SELECT DISTINCT COUNT ( * ) * - MAX ( + 66 ) - - - 32
----
-98

query I rowsort
SELECT NULLIF ( 21, + 7 / - 87 + 76 + 69 ) AS col0
----
21

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

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

query I rowsort
SELECT DISTINCT - 82 * - + 24 AS col0
----
1968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3733
SELECT + COUNT( * ) * + 75 - - 28 - 35 * CAST( 67 AS SIGNED ) AS col1
----
-2242

skipif mysql # not compatible
query I rowsort label-3733
SELECT + COUNT ( * ) * + 75 - - 28 - 35 * CAST ( 67 AS INTEGER ) AS col1
----
-2242

onlyif mysql # aggregate syntax: 
query II rowsort label-3734
SELECT - 94 * + 44 AS col2, COUNT( * ) * - + 18 * 87 + 77 AS col1
----
-4136
-1489

skipif mysql # not compatible
query II rowsort label-3734
SELECT - 94 * + 44 AS col2, COUNT ( * ) * - + 18 * 87 + 77 AS col1
----
-4136
-1489

query I rowsort
SELECT - 0 * + 11 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT - ( COUNT( * ) ) + 82 + + SUM( DISTINCT + 81 ) AS col2
----
162

skipif mysql # not compatible
query I rowsort label-3736
SELECT - ( COUNT ( * ) ) + 82 + + SUM ( DISTINCT + 81 ) AS col2
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT DISTINCT + MIN( + 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-3737
SELECT DISTINCT + MIN ( + 79 ) AS col0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3738
SELECT ALL ( + + CAST( NULL AS SIGNED ) ) AS col2, + 86 * + 16 + + 70 col2
----
NULL
1446

skipif mysql # not compatible
query II rowsort label-3738
SELECT ALL ( + + CAST ( NULL AS INTEGER ) ) AS col2, + 86 * + 16 + + 70 col2
----
NULL
1446

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3740
SELECT ALL NULLIF ( 29, - - CAST( 37 AS SIGNED ) / 87 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-3740
SELECT ALL NULLIF ( 29, - - CAST ( 37 AS INTEGER ) / 87 ) AS col2
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-3741
SELECT DISTINCT + 47 DIV 37 * - - 29 * + COALESCE ( 78, + 38 ) AS col1
----
2262

skipif mysql # not compatible
query I rowsort label-3741
SELECT DISTINCT + 47 / 37 * - - 29 * + COALESCE ( 78, + 38 ) AS col1
----
2262

query I rowsort
SELECT ALL ( 24 ) AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT ALL - 73 * - 65 - - 39 * - COUNT( * ) + 59 AS col2
----
4765

skipif mysql # not compatible
query I rowsort label-3743
SELECT ALL - 73 * - 65 - - 39 * - COUNT ( * ) + 59 AS col2
----
4765

query I rowsort
SELECT - 91 * + - 22 + + 97 * + - 9
----
1129

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT ALL + + MAX( ALL - 99 ) * + 4
----
-396

skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL + + MAX ( ALL - 99 ) * + 4
----
-396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3746
SELECT DISTINCT + CASE + 59 WHEN 91 + - 88 * + NULLIF ( CAST( NULL AS SIGNED ) * 32, SUM( DISTINCT + 69 ) ) THEN - 61 / 14 + - 22 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3746
SELECT DISTINCT + CASE + 59 WHEN 91 + - 88 * + NULLIF ( CAST ( NULL AS INTEGER ) * 32, SUM ( DISTINCT + 69 ) ) THEN - 61 / 14 + - 22 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3747
SELECT DISTINCT + - COUNT( * ) * - + COALESCE ( + - COUNT( * ), NULLIF ( ( 93 ), 53 ), 26 ) + 3 * COALESCE ( - 84 DIV - 54 + 32, CASE + 64 WHEN CAST( - 19 AS SIGNED ) THEN - 0 * CAST( - 33 * 90 AS SIGNED ) WHEN - ( + MAX( DISTINCT 14 ) ) + + 82 THEN NULL ELSE NULL END + COUNT( * ) )
----
98

skipif mysql # not compatible
query I rowsort label-3747
SELECT DISTINCT + - COUNT ( * ) * - + COALESCE ( + - COUNT ( * ), NULLIF ( ( 93 ), 53 ), 26 ) + 3 * COALESCE ( - 84 / - 54 + 32, CASE + 64 WHEN CAST ( - 19 AS INTEGER ) THEN - 0 * CAST ( - 33 * 90 AS INTEGER ) WHEN - ( + MAX ( DISTINCT 14 ) ) + + 82 THEN NULL ELSE NULL END + COUNT ( * ) )
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3748
SELECT - 44 + + MAX( - 60 ) * + 93 DIV + COUNT( * )
----
-5624

skipif mysql # not compatible
query I rowsort label-3748
SELECT - 44 + + MAX ( - 60 ) * + 93 / + COUNT ( * )
----
-5624

onlyif mysql # aggregate syntax: 
query II rowsort label-3749
SELECT - 58 + + 57, COUNT( * ) + - 88 * - COUNT( * ) AS col2
----
-1
89

skipif mysql # not compatible
query II rowsort label-3749
SELECT - 58 + + 57, COUNT ( * ) + - 88 * - COUNT ( * ) AS col2
----
-1
89

query I rowsort
SELECT - 71 + 43
----
-28

query I rowsort
SELECT + 85 + 16 + - 40 * - ( COALESCE ( 86, + 11 ) )
----
3541

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

skipif mysql # not compatible
query I rowsort label-3752
SELECT DISTINCT 33 + - + COUNT ( * ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT + - 65 + - COUNT( * ) + - + COUNT( * ) * 0
----
-66

skipif mysql # not compatible
query I rowsort label-3753
SELECT + - 65 + - COUNT ( * ) + - + COUNT ( * ) * 0
----
-66

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3755
SELECT ALL 91 + + 26 DIV COUNT( * ) + + 79 * COUNT( * )
----
196

skipif mysql # not compatible
query I rowsort label-3755
SELECT ALL 91 + + 26 / COUNT ( * ) + + 79 * COUNT ( * )
----
196

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT ALL - 82 / + 38 + SUM( DISTINCT + 39 ) - 33 * 71 + CASE - 37 + COALESCE ( - CASE 78 WHEN 27 THEN NULL ELSE - ( COALESCE ( 54, COUNT( * ) * + 29 + - 84 ) ) END, 17 ) WHEN 6 THEN 22 + + 58 WHEN + ( - 18 ) + + 76 * COUNT( * ) THEN NULL ELSE NULL END * - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL - 82 / + 38 + SUM ( DISTINCT + 39 ) - 33 * 71 + CASE - 37 + COALESCE ( - CASE 78 WHEN 27 THEN NULL ELSE - ( COALESCE ( 54, COUNT ( * ) * + 29 + - 84 ) ) END, 17 ) WHEN 6 THEN 22 + + 58 WHEN + ( - 18 ) + + 76 * COUNT ( * ) THEN NULL ELSE NULL END * - 40
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3758
SELECT DISTINCT - COUNT( * ) / - COUNT( * ) * + + CASE + 54 WHEN 41 THEN - 13 + + CAST( NULL AS DECIMAL ) ELSE NULL END / - 94 + - CASE + 16 WHEN - COALESCE ( - 85, 86 * 30, 87 / 12 ) * COUNT( * ) THEN - 13 WHEN COUNT( * ) THEN NULL END / - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-3758
SELECT DISTINCT - COUNT ( * ) / - COUNT ( * ) * + + CASE + 54 WHEN 41 THEN - 13 + + CAST ( NULL AS REAL ) ELSE NULL END / - 94 + - CASE + 16 WHEN - COALESCE ( - 85, 86 * 30, 87 / 12 ) * COUNT ( * ) THEN - 13 WHEN COUNT ( * ) THEN NULL END / - 13
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3759
SELECT + 60 DIV - 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3759
SELECT + 60 / - 70 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3760
SELECT + 54 DIV + - 58 + 40 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-3760
SELECT + 54 / + - 58 + 40 AS col1
----
40

query I rowsort
SELECT ALL 72 * + 5
----
360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3762
SELECT ALL - 33 DIV - COALESCE ( ( + - 60 ), - 67, - SUM( 3 ) ) - 66 DIV - 83
----
0

skipif mysql # not compatible
query I rowsort label-3762
SELECT ALL - 33 / - COALESCE ( ( + - 60 ), - 67, - SUM ( 3 ) ) - 66 / - 83
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3764
SELECT DISTINCT 18 * + COALESCE ( 13, 57, COUNT( * ), 4 - 49 DIV 69 )
----
234

skipif mysql # not compatible
query I rowsort label-3764
SELECT DISTINCT 18 * + COALESCE ( 13, 57, COUNT ( * ), 4 - 49 / 69 )
----
234

onlyif mysql # DIV for integer division: 
query I rowsort label-3765
SELECT + NULLIF ( 22, + 99 + NULLIF ( - - 30, - 73 + - 19 * + 85 ) * 44 ) DIV 45
----
0

skipif mysql # not compatible
query I rowsort label-3765
SELECT + NULLIF ( 22, + 99 + NULLIF ( - - 30, - 73 + - 19 * + 85 ) * 44 ) / 45
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT ALL 36 * - NULLIF ( - - COALESCE ( + COUNT( * ), 62 ), - SUM( ALL + 46 ) + - 33 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-3766
SELECT ALL 36 * - NULLIF ( - - COALESCE ( + COUNT ( * ), 62 ), - SUM ( ALL + 46 ) + - 33 ) AS col2
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-3767
SELECT DISTINCT + 50, - COALESCE ( - COUNT( + + 71 ), - - 52 + + 14 ) AS col2
----
50
1

skipif mysql # not compatible
query II rowsort label-3767
SELECT DISTINCT + 50, - COALESCE ( - COUNT ( + + 71 ), - - 52 + + 14 ) AS col2
----
50
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3768
SELECT DISTINCT + 61 DIV + 34 - - 78 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-3768
SELECT DISTINCT + 61 / + 34 - - 78 AS col2
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-3769
SELECT + 21 AS col1, + NULLIF ( + 36, - + SUM( - + 52 ) ) * + 26
----
21
936

skipif mysql # not compatible
query II rowsort label-3769
SELECT + 21 AS col1, + NULLIF ( + 36, - + SUM ( - + 52 ) ) * + 26
----
21
936

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3770
SELECT 63 + - COUNT( * ) + - + 7 * - + 4 DIV - 34 * + 83
----
62

skipif mysql # not compatible
query I rowsort label-3770
SELECT 63 + - COUNT ( * ) + - + 7 * - + 4 / - 34 * + 83
----
62

query I rowsort
SELECT 2 * - 46 AS col1
----
-92

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

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

query I rowsort
SELECT + 65 * + 31 + - 94 + + + 5 * 38 * 81
----
17311

query I rowsort
SELECT 8 - + - ( - 97 ) AS col2
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3775
SELECT DISTINCT + 23 - - 15 DIV - 11 * COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-3775
SELECT DISTINCT + 23 - - 15 / - 11 * COUNT ( * )
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3776
SELECT CAST( NULL AS SIGNED ) * 83 + + MAX( - 14 ) + + 15 * 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3776
SELECT CAST ( NULL AS INTEGER ) * 83 + + MAX ( - 14 ) + + 15 * 22 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3777
SELECT ALL - CASE ( - 23 ) WHEN - 12 THEN NULL WHEN + 0 THEN 18 WHEN CAST( ( 93 ) AS SIGNED ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3777
SELECT ALL - CASE ( - 23 ) WHEN - 12 THEN NULL WHEN + 0 THEN 18 WHEN CAST ( ( 93 ) AS INTEGER ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT 98 + - COUNT( * ) * + - NULLIF ( + + 58, - 79 ) - - MIN( 28 ) AS col0
----
184

skipif mysql # not compatible
query I rowsort label-3778
SELECT 98 + - COUNT ( * ) * + - NULLIF ( + + 58, - 79 ) - - MIN ( 28 ) AS col0
----
184

query I rowsort
SELECT 1 * + 28
----
28

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

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

query I rowsort
SELECT ALL 63 * - ( + - 43 )
----
2709

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT ALL - NULLIF ( 65, - + 86 - COUNT( * ) ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-3782
SELECT ALL - NULLIF ( 65, - + 86 - COUNT ( * ) ) AS col0
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3783
SELECT DISTINCT - COUNT( + + CAST( + ( - CAST( - 94 AS SIGNED ) ) AS SIGNED ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3783
SELECT DISTINCT - COUNT ( + + CAST ( + ( - CAST ( - 94 AS INTEGER ) ) AS INTEGER ) ) AS col1
----
-1

query I rowsort
SELECT ALL + NULLIF ( 57, 43 * + 58 / + 28 ) * - 91
----
-5187

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT DISTINCT + MIN( DISTINCT - CASE + 42 WHEN - 87 + - NULLIF ( + 15, 41 ) THEN NULLIF ( - 39, 2 ) WHEN + 76 + + 20 THEN NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3785
SELECT DISTINCT + MIN ( DISTINCT - CASE + 42 WHEN - 87 + - NULLIF ( + 15, 41 ) THEN NULLIF ( - 39, 2 ) WHEN + 76 + + 20 THEN NULL END ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3786
SELECT - CASE - ( - + 41 ) WHEN - 76 + - + 97 THEN NULL ELSE 44 DIV 98 END
----
0

skipif mysql # not compatible
query I rowsort label-3786
SELECT - CASE - ( - + 41 ) WHEN - 76 + - + 97 THEN NULL ELSE 44 / 98 END
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3787
SELECT DISTINCT + CASE 85 WHEN + 90 + - NULLIF ( - 93, + ( + 18 ) + - 77 ) THEN NULL ELSE + 90 END + - COALESCE ( + 51 + + 85, 67 DIV 90 - - COUNT( * ) )
----
-46

skipif mysql # not compatible
query I rowsort label-3787
SELECT DISTINCT + CASE 85 WHEN + 90 + - NULLIF ( - 93, + ( + 18 ) + - 77 ) THEN NULL ELSE + 90 END + - COALESCE ( + 51 + + 85, 67 / 90 - - COUNT ( * ) )
----
-46

query I rowsort
SELECT + 56 * - 75 - - 46 * + - 10
----
-4660

query I rowsort
SELECT ( + + 67 ) + 43 + ( + 70 ) * + 97
----
6900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3790
SELECT ALL + - COALESCE ( + - CAST( NULL AS SIGNED ), + 34, - COUNT( * ) + - 91 ) + - 76 * - 40 col0
----
3006

skipif mysql # not compatible
query I rowsort label-3790
SELECT ALL + - COALESCE ( + - CAST ( NULL AS INTEGER ), + 34, - COUNT ( * ) + - 91 ) + - 76 * - 40 col0
----
3006

query II rowsort
SELECT ALL 9, 86 AS col1
----
9
86

query I rowsort
SELECT ALL - 80 + + 53 AS col2
----
-27

onlyif mysql # DIV for integer division: 
query II rowsort label-3793
SELECT DISTINCT + 22 + - + 96 DIV + 71 AS col2, 10 AS col1
----
21
10

skipif mysql # not compatible
query II rowsort label-3793
SELECT DISTINCT + 22 + - + 96 / + 71 AS col2, 10 AS col1
----
21
10

query II rowsort
SELECT 82 AS col0, 15 * - 52
----
82
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT ALL + - 54 + 99 * MIN( + 35 ) AS col0
----
3411

skipif mysql # not compatible
query I rowsort label-3795
SELECT ALL + - 54 + 99 * MIN ( + 35 ) AS col0
----
3411

onlyif mysql # DIV for integer division: 
query II rowsort label-3796
SELECT 53 * + 82 * + + 91, ( + 57 ) DIV - 84 + + 18 col2
----
395486
18

skipif mysql # not compatible
query II rowsort label-3796
SELECT 53 * + 82 * + + 91, ( + 57 ) / - 84 + + 18 col2
----
395486
18

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

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

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

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

query I rowsort
SELECT 32 - + 1
----
31

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

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

query I rowsort
SELECT ALL - - 74 * 53
----
3922

query I rowsort
SELECT + ( + 34 ) * + 64 AS col0
----
2176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3803
SELECT ALL - + 49 * - MAX( DISTINCT + CAST( + + 36 AS SIGNED ) ) AS col0
----
1764

skipif mysql # not compatible
query I rowsort label-3803
SELECT ALL - + 49 * - MAX ( DISTINCT + CAST ( + + 36 AS INTEGER ) ) AS col0
----
1764

query I rowsort
SELECT - - 24 col1
----
24

query I rowsort
SELECT ALL - NULLIF ( 38, + - 43 ) AS col1
----
-38

query I rowsort
SELECT DISTINCT CASE ( + + 20 ) WHEN + 31 * + 35 + + 96 THEN NULL WHEN - 71 * 29 THEN 76 + + 86 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT - SUM( ALL - 66 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-3807
SELECT - SUM ( ALL - 66 ) AS col1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3808
SELECT DISTINCT - 54 - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + ( + 20 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3808
SELECT DISTINCT - 54 - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + ( + 20 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3809
SELECT ALL - 38 AS col1, 3 + - + CAST( 69 AS SIGNED ) - 22
----
-38
-88

skipif mysql # not compatible
query II rowsort label-3809
SELECT ALL - 38 AS col1, 3 + - + CAST ( 69 AS INTEGER ) - 22
----
-38
-88

query I rowsort
SELECT DISTINCT - COALESCE ( - + 46, 73 ) AS col2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3811
SELECT DISTINCT - 54 col0, 41 + - 22 * - 62 - + 56 * + MIN( CAST( NULL AS SIGNED ) ) / 96 AS col0
----
-54
NULL

skipif mysql # not compatible
query II rowsort label-3811
SELECT DISTINCT - 54 col0, 41 + - 22 * - 62 - + 56 * + MIN ( CAST ( NULL AS INTEGER ) ) / 96 AS col0
----
-54
NULL

query II rowsort
SELECT ALL - 28, - 11 AS col1
----
-28
-11

query II rowsort
SELECT 43, - 64 * + 70 AS col0
----
43
-4480

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT DISTINCT MIN( + 49 ) * + + 66
----
3234

skipif mysql # not compatible
query I rowsort label-3814
SELECT DISTINCT MIN ( + 49 ) * + + 66
----
3234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3815
SELECT + 61 * 38 / - CASE 57 WHEN + ( - - COUNT( * ) ) + + 63 * ( + 30 * 37 ) THEN NULL ELSE + MIN( - ( CAST( NULL AS SIGNED ) ) ) END + 17 * 66
----
NULL

skipif mysql # not compatible
query I rowsort label-3815
SELECT + 61 * 38 / - CASE 57 WHEN + ( - - COUNT ( * ) ) + + 63 * ( + 30 * 37 ) THEN NULL ELSE + MIN ( - ( CAST ( NULL AS INTEGER ) ) ) END + 17 * 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT ALL MAX( DISTINCT - + 14 ) * + 74 AS col0
----
-1036

skipif mysql # not compatible
query I rowsort label-3816
SELECT ALL MAX ( DISTINCT - + 14 ) * + 74 AS col0
----
-1036

onlyif mysql # DIV for integer division: 
query I rowsort label-3817
SELECT - ( - - 74 ) DIV - 65 + + - 18
----
-17

skipif mysql # not compatible
query I rowsort label-3817
SELECT - ( - - 74 ) / - 65 + + - 18
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT DISTINCT NULLIF ( - COUNT( * ), + 80 + 75 ) * - + 21 + ( - 68 ) * + 54
----
-3651

skipif mysql # not compatible
query I rowsort label-3818
SELECT DISTINCT NULLIF ( - COUNT ( * ), + 80 + 75 ) * - + 21 + ( - 68 ) * + 54
----
-3651

query I rowsort
SELECT DISTINCT 29 * 72 AS col1
----
2088

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3820
SELECT + 84, CAST( - + 25 AS SIGNED ) + + 24 * 63 + - + 26 AS col0
----
84
1461

skipif mysql # not compatible
query II rowsort label-3820
SELECT + 84, CAST ( - + 25 AS INTEGER ) + + 24 * 63 + - + 26 AS col0
----
84
1461

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

skipif mysql # not compatible
query I rowsort label-3821
SELECT ( 93 ) * - COUNT ( * )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT DISTINCT MAX( ALL 94 ) * ( - - 41 ) AS col2
----
3854

skipif mysql # not compatible
query I rowsort label-3822
SELECT DISTINCT MAX ( ALL 94 ) * ( - - 41 ) AS col2
----
3854

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

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

query I rowsort
SELECT ALL ( + ( - ( ( + - 3 ) ) ) ) + 95 * 97
----
9218

query I rowsort
SELECT + 85 * + 99 - + 39
----
8376

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3827
SELECT ( + - 98 ) + + 19 + + 18 AS col0, 52 + - CASE ( + 3 ) WHEN + 6 * + COUNT( * ) THEN - 25 / 82 END col0
----
-61
NULL

skipif mysql # not compatible
query II rowsort label-3827
SELECT ( + - 98 ) + + 19 + + 18 AS col0, 52 + - CASE ( + 3 ) WHEN + 6 * + COUNT ( * ) THEN - 25 / 82 END col0
----
-61
NULL

query II rowsort
SELECT + 87 col2, - 52 AS col1
----
87
-52

query II rowsort
SELECT DISTINCT - 39 AS col0, - 62
----
-39
-62

query I rowsort
SELECT ALL + - 2 + + 88 AS col1
----
86

query II rowsort
SELECT DISTINCT - 19, 5 + 19 AS col0
----
-19
24

query I rowsort
SELECT ALL - 29 + - - 75
----
46

query I rowsort
SELECT - 6 * + + 8 - + 79 AS col0
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT ALL ( COUNT( * ) ) * - - 38
----
38

skipif mysql # not compatible
query I rowsort label-3834
SELECT ALL ( COUNT ( * ) ) * - - 38
----
38

query I rowsort
SELECT 68 * - + NULLIF ( - 69, + + 13 * + 78 + ( 40 ) + - 43 / + ( - 54 ) ) * - 67 AS col2
----
-314364

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3836
SELECT ALL COALESCE ( 28, CAST( NULL AS SIGNED ) + COUNT( * ) ) col1
----
28

skipif mysql # not compatible
query I rowsort label-3836
SELECT ALL COALESCE ( 28, CAST ( NULL AS INTEGER ) + COUNT ( * ) ) col1
----
28

query I rowsort
SELECT ( - + 74 ) + - 47
----
-121

query I rowsort
SELECT - ( - - 91 ) AS col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT COUNT( * ) + - 2 + - 62 * - + 89
----
5517

skipif mysql # not compatible
query I rowsort label-3839
SELECT COUNT ( * ) + - 2 + - 62 * - + 89
----
5517

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

skipif mysql # not compatible
query II rowsort label-3840
SELECT ALL - ( + 90 ), - COUNT ( - + 86 ) AS col0
----
-90
-1

query I rowsort
SELECT 37 - 82 AS col1
----
-45

query II rowsort
SELECT + 17, 41 AS col1
----
17
41

onlyif mysql # aggregate syntax: 
query II rowsort label-3843
SELECT 39 + - - 13 AS col1, + COUNT( * ) * + - 24 AS col1
----
52
-24

skipif mysql # not compatible
query II rowsort label-3843
SELECT 39 + - - 13 AS col1, + COUNT ( * ) * + - 24 AS col1
----
52
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-3844
SELECT 70 DIV - ( - - 13 )
----
-5

skipif mysql # not compatible
query I rowsort label-3844
SELECT 70 / - ( - - 13 )
----
-5

query I rowsort
SELECT 76 + 37 AS col2
----
113

query I rowsort
SELECT ALL - 32 * - 75 * + 3 * - - 69 AS col1
----
496800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3847
SELECT ALL MAX( DISTINCT + - ( - CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3847
SELECT ALL MAX ( DISTINCT + - ( - CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3848
SELECT DISTINCT - 23 * - 94 AS col2, 28 DIV + + 59 - - - 64 * + - 97 AS col0
----
2162
6208

skipif mysql # not compatible
query II rowsort label-3848
SELECT DISTINCT - 23 * - 94 AS col2, 28 / + + 59 - - - 64 * + - 97 AS col0
----
2162
6208

query I rowsort
SELECT + 20 * - + 10 + COALESCE ( - + ( - ( ( 24 ) ) ), - 86 )
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT NULLIF ( 87, - CASE + 15 WHEN + COUNT( * ) + 62 / - 2 + 67 * 65 THEN - 93 + 89 / - 64 END ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-3850
SELECT NULLIF ( 87, - CASE + 15 WHEN + COUNT ( * ) + 62 / - 2 + 67 * 65 THEN - 93 + 89 / - 64 END ) AS col2
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3851
SELECT - COUNT( * ) DIV - + 37 + - 82 * - 44
----
3608

skipif mysql # not compatible
query I rowsort label-3851
SELECT - COUNT ( * ) / - + 37 + - 82 * - 44
----
3608

query I rowsort
SELECT - ( + 36 ) * - 26
----
936

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3853
SELECT DISTINCT CAST( NULL AS SIGNED ) * + ( + - 99 ) + + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-3853
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + ( + - 99 ) + + 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT ALL - COUNT( * ) * - + 54 + 65 + + - 43 * - + 56 + - - 66 AS col0
----
2593

skipif mysql # not compatible
query I rowsort label-3854
SELECT ALL - COUNT ( * ) * - + 54 + 65 + + - 43 * - + 56 + - - 66 AS col0
----
2593

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT NULLIF ( - 5, - COUNT( * ) + - COUNT( * ) + + AVG ( + 55 ) ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-3855
SELECT NULLIF ( - 5, - COUNT ( * ) + - COUNT ( * ) + + AVG ( + 55 ) ) AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT CASE - 49 WHEN - + 21 THEN + - COUNT( - ( + - 76 ) ) / + ( + 66 ) + 4 * 13 - 27 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3856
SELECT CASE - 49 WHEN - + 21 THEN + - COUNT ( - ( + - 76 ) ) / + ( + 66 ) + 4 * 13 - 27 END
----
NULL

query I rowsort
SELECT - ( + + 62 ) * - - 38 + + 12
----
-2344

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT + COUNT( * ) - 23 + - 8
----
-30

skipif mysql # not compatible
query I rowsort label-3858
SELECT + COUNT ( * ) - 23 + - 8
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT + 98 * + MIN( + 91 ) * - 25 + 63 + - 21 - + - 80 * + 73 col1
----
-217068

skipif mysql # not compatible
query I rowsort label-3859
SELECT + 98 * + MIN ( + 91 ) * - 25 + 63 + - 21 - + - 80 * + 73 col1
----
-217068

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT DISTINCT + SUM( ALL 42 )
----
42

skipif mysql # not compatible
query I rowsort label-3860
SELECT DISTINCT + SUM ( ALL 42 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT ALL + - COUNT( * ) * - + 8 + - 61 + + 34 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-3861
SELECT ALL + - COUNT ( * ) * - + 8 + - 61 + + 34 AS col1
----
-19

query I rowsort
SELECT + + 28 + + ( - 21 ) AS col1
----
7

query I rowsort
SELECT DISTINCT - + 45 * - ( 79 ) * - - 88 * - 30
----
-9385200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3864
SELECT ALL + NULLIF ( - - CAST( NULL AS SIGNED ), + - AVG ( + + 16 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3864
SELECT ALL + NULLIF ( - - CAST ( NULL AS INTEGER ), + - AVG ( + + 16 ) ) AS col0
----
NULL

query I rowsort
SELECT ALL - 89 * - + 80 * 82
----
583840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3866
SELECT - ( - 87 ) * + 20 + - 10 * + + 77 + + + 53 + + 60 + 41 DIV COUNT( * )
----
1124

skipif mysql # not compatible
query I rowsort label-3866
SELECT - ( - 87 ) * + 20 + - 10 * + + 77 + + + 53 + + 60 + 41 / COUNT ( * )
----
1124

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT ALL - COALESCE ( ( 30 ), - + 16 * - ( COUNT( * ) ) + - 30 + 89, 6 + + COUNT( * ) ) * 53 - + 44
----
-1634

skipif mysql # not compatible
query I rowsort label-3867
SELECT ALL - COALESCE ( ( 30 ), - + 16 * - ( COUNT ( * ) ) + - 30 + 89, 6 + + COUNT ( * ) ) * 53 - + 44
----
-1634

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3868
SELECT CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3868
SELECT CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 27 * + 1 + + + 27
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT DISTINCT MIN( DISTINCT + 93 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-3870
SELECT DISTINCT MIN ( DISTINCT + 93 ) AS col1
----
93

query I rowsort
SELECT - 10 + ( 35 ) + - - 50 AS col1
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3872
SELECT ALL 80 DIV 22 + + - SUM( 93 ) * - 50 AS col1
----
4653

skipif mysql # not compatible
query I rowsort label-3872
SELECT ALL 80 / 22 + + - SUM ( 93 ) * - 50 AS col1
----
4653

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3873
SELECT DISTINCT - MIN( ALL + 32 ) DIV - 69 * + + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3873
SELECT DISTINCT - MIN ( ALL + 32 ) / - 69 * + + COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3874
SELECT DISTINCT + CAST( + ( - + 62 ) AS SIGNED )
----
-62

skipif mysql # not compatible
query I rowsort label-3874
SELECT DISTINCT + CAST ( + ( - + 62 ) AS INTEGER )
----
-62

query I rowsort
SELECT + NULLIF ( 59, - 96 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT ALL + + 82 * - + COUNT( DISTINCT 26 )
----
-82

skipif mysql # not compatible
query I rowsort label-3876
SELECT ALL + + 82 * - + COUNT ( DISTINCT 26 )
----
-82

query I rowsort
SELECT ALL COALESCE ( - 51, 90 ) col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT ALL MAX( - + 3 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-3878
SELECT ALL MAX ( - + 3 ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT - CASE + - 32 WHEN 80 THEN - + COUNT( * ) WHEN - + 0 THEN 89 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3879
SELECT - CASE + - 32 WHEN 80 THEN - + COUNT ( * ) WHEN - + 0 THEN 89 ELSE NULL END
----
NULL

query I rowsort
SELECT - 83 * + 23 AS col1
----
-1909

query I rowsort
SELECT ALL 89 * 36 AS col0
----
3204

query I rowsort
SELECT + 95 - + 37 AS col0
----
58

query I rowsort
SELECT ALL - 37 * - 79
----
2923

onlyif mysql # aggregate syntax: 
query II rowsort label-3884
SELECT 95 col1, - 80 * + + NULLIF ( - COUNT( * ), - 52 * + 72 + - - 89 + - - ( COUNT( * ) ) * 97 )
----
95
80

skipif mysql # not compatible
query II rowsort label-3884
SELECT 95 col1, - 80 * + + NULLIF ( - COUNT ( * ), - 52 * + 72 + - - 89 + - - ( COUNT ( * ) ) * 97 )
----
95
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT + 47 * - ( - COALESCE ( + 72, + 97 * + - 61 + + COUNT( * ) ) ) * 87 * + 58
----
17075664

skipif mysql # not compatible
query I rowsort label-3885
SELECT + 47 * - ( - COALESCE ( + 72, + 97 * + - 61 + + COUNT ( * ) ) ) * 87 * + 58
----
17075664

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT ALL + 46 + - - 12 * MAX( + 11 ) * + + 81
----
10738

skipif mysql # not compatible
query I rowsort label-3886
SELECT ALL + 46 + - - 12 * MAX ( + 11 ) * + + 81
----
10738

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3887
SELECT 12 AS col0, + 41 * - CAST( NULL AS SIGNED ) * - 73 col2
----
12
NULL

skipif mysql # not compatible
query II rowsort label-3887
SELECT 12 AS col0, + 41 * - CAST ( NULL AS INTEGER ) * - 73 col2
----
12
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3888
SELECT DISTINCT 47 DIV - COUNT( * ) + + ( + - 52 ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-3888
SELECT DISTINCT 47 / - COUNT ( * ) + + ( + - 52 ) AS col2
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3889
SELECT 47 * - CAST( 6 AS SIGNED ) - - 71 * + - 24 + 75 AS col2, 84 * COUNT( * ) DIV + 37
----
-1911
2

skipif mysql # not compatible
query II rowsort label-3889
SELECT 47 * - CAST ( 6 AS INTEGER ) - - 71 * + - 24 + 75 AS col2, 84 * COUNT ( * ) / + 37
----
-1911
2

query I rowsort
SELECT ALL - 74 * + 10 col1
----
-740

query I rowsort
SELECT - 35 / - CASE + + 82 WHEN - 72 THEN NULL WHEN - 33 * 48 + + 92 THEN + + 98 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3892
SELECT + CAST( - 68 AS SIGNED ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-3892
SELECT + CAST ( - 68 AS INTEGER ) AS col1
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3893
SELECT ALL + CAST( NULL AS SIGNED ) / + 57 * - + ( - COUNT( * ) ) + - CAST( + + 5 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3893
SELECT ALL + CAST ( NULL AS INTEGER ) / + 57 * - + ( - COUNT ( * ) ) + - CAST ( + + 5 AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3894
SELECT - 81 + + + COUNT( * ) + 90 AS col0, 32 AS col2
----
10
32

skipif mysql # not compatible
query II rowsort label-3894
SELECT - 81 + + + COUNT ( * ) + 90 AS col0, 32 AS col2
----
10
32

onlyif mysql # aggregate syntax: 
query II rowsort label-3895
SELECT ALL - ( COUNT( * ) ) * COUNT( * ), 62 AS col0
----
-1
62

skipif mysql # not compatible
query II rowsort label-3895
SELECT ALL - ( COUNT ( * ) ) * COUNT ( * ), 62 AS col0
----
-1
62

onlyif mysql # DIV for integer division: 
query I rowsort label-3896
SELECT - 99 DIV 71 DIV - + 16
----
0

skipif mysql # not compatible
query I rowsort label-3896
SELECT - 99 / 71 / - + 16
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3897
SELECT CAST( NULL AS SIGNED ) AS col0, - 79 DIV 90
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3897
SELECT CAST ( NULL AS INTEGER ) AS col0, - 79 / 90
----
NULL
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3898
SELECT ALL + NULLIF ( + - CAST( NULL AS SIGNED ), - 20 ) * - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-3898
SELECT ALL + NULLIF ( + - CAST ( NULL AS INTEGER ), - 20 ) * - 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT DISTINCT + MAX( ALL + - 71 ) col1
----
-71

skipif mysql # not compatible
query I rowsort label-3899
SELECT DISTINCT + MAX ( ALL + - 71 ) col1
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3900
SELECT ALL + 60 DIV 11 + + + 2 AS col1, COUNT( * ) AS col0
----
7
1

skipif mysql # not compatible
query II rowsort label-3900
SELECT ALL + 60 / 11 + + + 2 AS col1, COUNT ( * ) AS col0
----
7
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3901
SELECT DISTINCT + ( - 13 ) * + CAST( NULL AS SIGNED ) * + + 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3901
SELECT DISTINCT + ( - 13 ) * + CAST ( NULL AS INTEGER ) * + + 73 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3902
SELECT ALL + + 25 DIV - 47 + - 56 + COUNT( * ) + ( + - 6 ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-3902
SELECT ALL + + 25 / - 47 + - 56 + COUNT ( * ) + ( + - 6 ) AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT - + COUNT( * ) + + 12 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-3903
SELECT - + COUNT ( * ) + + 12 AS col0
----
11

query III rowsort
SELECT DISTINCT + + 93 col1, + NULLIF ( - - ( - - 63 ), - 58 + + - 31 ) AS col2, - 61
----
93
63
-61

query I rowsort
SELECT - 35 * + 27 - - 26 - - 65
----
-854

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT - COUNT( * ) + 9 - 71
----
-63

skipif mysql # not compatible
query I rowsort label-3906
SELECT - COUNT ( * ) + 9 - 71
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-3907
SELECT + - COUNT( * ) AS col1, 72 * - - 33
----
-1
2376

skipif mysql # not compatible
query II rowsort label-3907
SELECT + - COUNT ( * ) AS col1, 72 * - - 33
----
-1
2376

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT - - MAX( + 34 ) * - + 27 - - MIN( ALL - 46 ) - + 86 + 58 AS col1
----
-992

skipif mysql # not compatible
query I rowsort label-3908
SELECT - - MAX ( + 34 ) * - + 27 - - MIN ( ALL - 46 ) - + 86 + 58 AS col1
----
-992

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT ALL ( + MAX( 94 ) ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-3909
SELECT ALL ( + MAX ( 94 ) ) AS col1
----
94

query I rowsort
SELECT + + 22 * + 97 AS col1
----
2134

query I rowsort
SELECT ALL - 17 * - 86 + - ( - + 99 ) * 83 AS col2
----
9679

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3912
SELECT COUNT( * ) * - 41 DIV 1 * 68 + 21 + + 87 * + + 1 * - + 78 * - 22 - 62 DIV - COUNT( DISTINCT + 79 ) AS col0
----
146587

skipif mysql # not compatible
query I rowsort label-3912
SELECT COUNT ( * ) * - 41 / 1 * 68 + 21 + + 87 * + + 1 * - + 78 * - 22 - 62 / - COUNT ( DISTINCT + 79 ) AS col0
----
146587

query II rowsort
SELECT - 2 AS col1, 99 - 40 + - - 53 AS col0
----
-2
112

query I rowsort
SELECT 30 * - + 83 AS col0
----
-2490

query I rowsort
SELECT - 1 * + 10
----
-10

query I rowsort
SELECT - 40 + - - 26 AS col2
----
-14

query I rowsort
SELECT 5 * + + ( - + 21 )
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT ALL 66 + - + ( 3 ) + + ( 3 ) * - 73 + - 45 * - - 24 + NULLIF ( 81, - COUNT( * ) ) AS col0
----
-1155

skipif mysql # not compatible
query I rowsort label-3918
SELECT ALL 66 + - + ( 3 ) + + ( 3 ) * - 73 + - 45 * - - 24 + NULLIF ( 81, - COUNT ( * ) ) AS col0
----
-1155

query II rowsort
SELECT 76 + + 95 AS col0, 53 col2
----
171
53

query I rowsort
SELECT 11 - 93 * - - 47 AS col2
----
-4360

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT MIN( ALL + - 39 ) + + 0 + + 35 * - - 38 + - 78
----
1213

skipif mysql # not compatible
query I rowsort label-3921
SELECT MIN ( ALL + - 39 ) + + 0 + + 35 * - - 38 + - 78
----
1213

query I rowsort
SELECT 21 - + 10
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3923
SELECT ALL SUM( DISTINCT 92 ) * + + ( - + 5 ) / 10 + - 76 * 55 + 73 + - ( CASE + CAST( 6 AS SIGNED ) WHEN COUNT( * ) THEN 16 - - 77 END ) * - 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3923
SELECT ALL SUM ( DISTINCT 92 ) * + + ( - + 5 ) / 10 + - 76 * 55 + 73 + - ( CASE + CAST ( 6 AS INTEGER ) WHEN COUNT ( * ) THEN 16 - - 77 END ) * - 91 AS col0
----
NULL

query I rowsort
SELECT ALL 35 + 25 AS col0
----
60

query I rowsort
SELECT 1 + - - 0 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3926
SELECT ALL - COUNT( * ) * + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3926
SELECT ALL - COUNT ( * ) * + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT DISTINCT 65 + + - 23 + - 56 AS col1
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3928
SELECT DISTINCT - CAST( 96 AS SIGNED ) + + - CASE - CAST( NULL AS SIGNED ) WHEN NULLIF ( - COUNT( * ), - 96 * - SUM( DISTINCT 35 ) - 28 ) THEN COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3928
SELECT DISTINCT - CAST ( 96 AS INTEGER ) + + - CASE - CAST ( NULL AS INTEGER ) WHEN NULLIF ( - COUNT ( * ), - 96 * - SUM ( DISTINCT 35 ) - 28 ) THEN COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT 20 + - - 32 * 6 AS col1
----
212

query II rowsort
SELECT ALL 0 + 56, + 0 AS col2
----
56
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT DISTINCT 34 * + COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-3931
SELECT DISTINCT 34 * + COUNT ( * )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT COUNT( * ) * + 57 * + 13
----
741

skipif mysql # not compatible
query I rowsort label-3932
SELECT COUNT ( * ) * + 57 * + 13
----
741

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3933
SELECT COUNT( * ) / + + ( 44 ) + - MAX( 73 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3933
SELECT COUNT ( * ) / + + ( 44 ) + - MAX ( 73 ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3934
SELECT DISTINCT - CAST( + - 85 AS SIGNED ) + + - 14
----
71

skipif mysql # not compatible
query I rowsort label-3934
SELECT DISTINCT - CAST ( + - 85 AS INTEGER ) + + - 14
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT DISTINCT 99 * - NULLIF ( - COUNT( * ), - + ( 34 ) ) * + 34 * - - 55 + + - 10 * - COALESCE ( 56, 38 ) * - 68 + + COUNT( * ) AS col1
----
147051

skipif mysql # not compatible
query I rowsort label-3935
SELECT DISTINCT 99 * - NULLIF ( - COUNT ( * ), - + ( 34 ) ) * + 34 * - - 55 + + - 10 * - COALESCE ( 56, 38 ) * - 68 + + COUNT ( * ) AS col1
----
147051

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT ALL - MIN( - + 83 ) col0
----
83

skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL - MIN ( - + 83 ) col0
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3937
SELECT ALL - COALESCE ( + COUNT( * ), + CAST( NULL AS SIGNED ) ) * - + 16
----
16

skipif mysql # not compatible
query I rowsort label-3937
SELECT ALL - COALESCE ( + COUNT ( * ), + CAST ( NULL AS INTEGER ) ) * - + 16
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT - 87 * - + 11 + - COUNT( * )
----
956

skipif mysql # not compatible
query I rowsort label-3938
SELECT - 87 * - + 11 + - COUNT ( * )
----
956

query II rowsort
SELECT DISTINCT 98 - + 21 AS col0, 86 + + 5
----
77
91

query I rowsort
SELECT 76 * + 62
----
4712

query I rowsort
SELECT - 0 * - + 60 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3942
SELECT 76 * - CAST( NULL AS SIGNED ) + + 72 + + + COUNT( * ), + 63 col0
----
NULL
63

skipif mysql # not compatible
query II rowsort label-3942
SELECT 76 * - CAST ( NULL AS INTEGER ) + + 72 + + + COUNT ( * ), + 63 col0
----
NULL
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3943
SELECT 96 + ( + 14 ) * MIN( - 19 ) DIV - - COUNT( * ) AS col0
----
-170

skipif mysql # not compatible
query I rowsort label-3943
SELECT 96 + ( + 14 ) * MIN ( - 19 ) / - - COUNT ( * ) AS col0
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT + NULLIF ( 74, + COUNT( * ) + + 98 ) * - 94 + 67 + 30 AS col0
----
-6859

skipif mysql # not compatible
query I rowsort label-3944
SELECT + NULLIF ( 74, + COUNT ( * ) + + 98 ) * - 94 + 67 + 30 AS col0
----
-6859

query I rowsort
SELECT DISTINCT + + 86 * + 76 AS col0
----
6536

query I rowsort
SELECT ALL - 21 * + 37
----
-777

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT 76 + + ( 11 ) + 84 + MAX( DISTINCT 27 ) AS col0
----
198

skipif mysql # not compatible
query I rowsort label-3947
SELECT 76 + + ( 11 ) + 84 + MAX ( DISTINCT 27 ) AS col0
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT + CASE - 1 WHEN 6 * + 63 + - - COALESCE ( 30, NULLIF ( + - 52, - - 15 + + 52 / COUNT( * ) ) ) + 68 * - 59 THEN 68 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3948
SELECT + CASE - 1 WHEN 6 * + 63 + - - COALESCE ( 30, NULLIF ( + - 52, - - 15 + + 52 / COUNT ( * ) ) ) + 68 * - 59 THEN 68 END
----
NULL

query I rowsort
SELECT ALL - - ( - COALESCE ( - + 26, - 71 ) ) AS col0
----
26

query I rowsort
SELECT 22 + ( - - 15 ) + - 76 AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT DISTINCT MIN( ALL + - 67 ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-3951
SELECT DISTINCT MIN ( ALL + - 67 ) AS col1
----
-67

query I rowsort
SELECT DISTINCT ( 53 ) AS col2
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-3953
SELECT - 50 col0, + COUNT( * ) AS col0
----
-50
1

skipif mysql # not compatible
query II rowsort label-3953
SELECT - 50 col0, + COUNT ( * ) AS col0
----
-50
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT DISTINCT COUNT( * ) * + + 81 * - + 74 AS col2
----
-5994

skipif mysql # not compatible
query I rowsort label-3954
SELECT DISTINCT COUNT ( * ) * + + 81 * - + 74 AS col2
----
-5994

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3955
SELECT ALL + 19 + - 44 DIV - - ( MIN( ALL - + 44 ) ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-3955
SELECT ALL + 19 + - 44 / - - ( MIN ( ALL - + 44 ) ) AS col1
----
20

query I rowsort
SELECT ALL 12 + + 54
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT ALL - 47 + + MIN( ALL + 81 )
----
34

skipif mysql # not compatible
query I rowsort label-3957
SELECT ALL - 47 + + MIN ( ALL + 81 )
----
34

query I rowsort
SELECT 17 + + 82 + - - 96
----
195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3959
SELECT 1 - + + ( MIN( DISTINCT 74 ) ) + - ( - 29 ) * - 31 + + COUNT( * ) + + ( 43 ) DIV - 15 AS col2
----
-973

skipif mysql # not compatible
query I rowsort label-3959
SELECT 1 - + + ( MIN ( DISTINCT 74 ) ) + - ( - 29 ) * - 31 + + COUNT ( * ) + + ( 43 ) / - 15 AS col2
----
-973

query I rowsort
SELECT DISTINCT 11 - 12 AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3961
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) DIV - MAX( 21 ) * - 98
----
0

skipif mysql # not compatible
query I rowsort label-3961
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) / - MAX ( 21 ) * - 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT ALL COUNT( * ) - + 67
----
-66

skipif mysql # not compatible
query I rowsort label-3962
SELECT ALL COUNT ( * ) - + 67
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3963
SELECT DISTINCT CAST( NULL AS SIGNED ) * 87
----
NULL

skipif mysql # not compatible
query I rowsort label-3963
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 87
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3964
SELECT ALL ( + 2 ) DIV - 22 + - + 3 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-3964
SELECT ALL ( + 2 ) / - 22 + - + 3 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT COUNT( + 24 )
----
1

skipif mysql # not compatible
query I rowsort label-3965
SELECT COUNT ( + 24 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT MIN( ALL + - 19 ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-3966
SELECT MIN ( ALL + - 19 ) AS col1
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-3967
SELECT + - 93 DIV + 87 - + 66
----
-67

skipif mysql # not compatible
query I rowsort label-3967
SELECT + - 93 / + 87 - + 66
----
-67

query I rowsort
SELECT + - ( + - 63 ) AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT 91 + + MAX( - 77 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-3969
SELECT 91 + + MAX ( - 77 ) AS col0
----
14

query I rowsort
SELECT + 54 * + 69 AS col1
----
3726

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3971
SELECT + + ( + - NULLIF ( 41, MIN( - + 39 ) + + ( - - 95 ) - 87 + 1 ) ) DIV + - 23 + - MIN( - 59 ) + 46 AS col0
----
106

skipif mysql # not compatible
query I rowsort label-3971
SELECT + + ( + - NULLIF ( 41, MIN ( - + 39 ) + + ( - - 95 ) - 87 + 1 ) ) / + - 23 + - MIN ( - 59 ) + 46 AS col0
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3972
SELECT - 20 * + + COUNT( - CAST( NULL AS SIGNED ) ) * + CASE WHEN NOT NULL >= - ( - 29 ) THEN NULL WHEN NOT + 5 IS NOT NULL THEN - 41 / + 3 WHEN - 70 IN ( + 73 ) THEN NULL ELSE NULL END + - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-3972
SELECT - 20 * + + COUNT ( - CAST ( NULL AS INTEGER ) ) * + CASE WHEN NOT NULL >= - ( - 29 ) THEN NULL WHEN NOT + 5 IS NOT NULL THEN - 41 / + 3 WHEN - 70 IN ( + 73 ) THEN NULL ELSE NULL END + - 60
----
NULL

query I rowsort
SELECT DISTINCT - + ( 83 )
----
-83

query I rowsort
SELECT DISTINCT + NULLIF ( 95, 66 ) * - 80 col1
----
-7600

query I rowsort
SELECT - 47 + - - 4
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3976
SELECT + CAST( + CASE 26 WHEN - ( - - 91 ) THEN + 65 - 93 + + 92 END AS SIGNED ) * + COUNT( * ) * 70 - SUM( DISTINCT + 75 + + 4 ) * - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-3976
SELECT + CAST ( + CASE 26 WHEN - ( - - 91 ) THEN + 65 - 93 + + 92 END AS INTEGER ) * + COUNT ( * ) * 70 - SUM ( DISTINCT + 75 + + 4 ) * - 62
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3977
SELECT DISTINCT + 67 DIV + + 72 * - 85
----
0

skipif mysql # not compatible
query I rowsort label-3977
SELECT DISTINCT + 67 / + + 72 * - 85
----
0

query I rowsort
SELECT ALL - - 96 + + 34
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3979
SELECT + 88 * + - COUNT( * ) - + - 15 + - 77 + + 86 + + + 43 DIV + COALESCE ( + 61, + - CASE - 3 WHEN COALESCE ( - MAX( DISTINCT - 12 ), + 26 * COUNT( * ), ( - 67 ) ) * 89 THEN SUM( 8 ) WHEN 86 * + 20 - 77 * COUNT( * ) THEN 74 WHEN + 52 DIV + 74 + - COUNT( * ) * 87 THEN NULL ELSE NULL END, CAST( 77 AS SIGNED ) * + 82 + - 9 )
----
-64

skipif mysql # not compatible
query I rowsort label-3979
SELECT + 88 * + - COUNT ( * ) - + - 15 + - 77 + + 86 + + + 43 / + COALESCE ( + 61, + - CASE - 3 WHEN COALESCE ( - MAX ( DISTINCT - 12 ), + 26 * COUNT ( * ), ( - 67 ) ) * 89 THEN SUM ( 8 ) WHEN 86 * + 20 - 77 * COUNT ( * ) THEN 74 WHEN + 52 / + 74 + - COUNT ( * ) * 87 THEN NULL ELSE NULL END, CAST ( 77 AS INTEGER ) * + 82 + - 9 )
----
-64

query I rowsort
SELECT + - ( + 87 )
----
-87

query I rowsort
SELECT + - 28 + + 88 - - - 7 * - 90 * - 98 - + 89 + 75
----
-61694

query I rowsort
SELECT ALL + 17 + 46 * - + 39 AS col2
----
-1777

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT - COUNT( * ) * - + NULLIF ( - COUNT( * ), + 1 + 78 ) + + + 17 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-3983
SELECT - COUNT ( * ) * - + NULLIF ( - COUNT ( * ), + 1 + 78 ) + + + 17 AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT ALL + 87 + - - CASE + COUNT( * ) WHEN ( - AVG ( DISTINCT + + 26 ) ) / + 34 * + 3 THEN 16 ELSE 18 END * + 42 + - 25
----
818

skipif mysql # not compatible
query I rowsort label-3984
SELECT ALL + 87 + - - CASE + COUNT ( * ) WHEN ( - AVG ( DISTINCT + + 26 ) ) / + 34 * + 3 THEN 16 ELSE 18 END * + 42 + - 25
----
818

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT ALL + 15 + + 12 + - SUM( 37 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-3985
SELECT ALL + 15 + + 12 + - SUM ( 37 ) AS col0
----
-10

query I rowsort
SELECT - 94 + - 47 * + 33 * 99 - 57 AS col2
----
-153700

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT - 6 + - COUNT( * ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-3987
SELECT - 6 + - COUNT ( * ) AS col1
----
-7

query I rowsort
SELECT - 82 + + 56 * - 55
----
-3162

query II rowsort
SELECT - 88 * 35, 22 AS col2
----
-3080
22

onlyif mysql # DIV for integer division: 
query I rowsort label-3990
SELECT ALL COALESCE ( + 91, - 5 + 33 DIV 9 )
----
91

skipif mysql # not compatible
query I rowsort label-3990
SELECT ALL COALESCE ( + 91, - 5 + 33 / 9 )
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3991
SELECT - 58 + + 16 DIV + - 92 AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-3991
SELECT - 58 + + 16 / + - 92 AS col2
----
-58

query I rowsort
SELECT + 64 - + 17 AS col0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3993
SELECT ALL CAST( NULL AS SIGNED ) - + 24 AS col1, 19 * - COUNT( * ) + - 21
----
NULL
-40

skipif mysql # not compatible
query II rowsort label-3993
SELECT ALL CAST ( NULL AS INTEGER ) - + 24 AS col1, 19 * - COUNT ( * ) + - 21
----
NULL
-40

query I rowsort
SELECT - 52 * - 71 * - NULLIF ( - 25, 50 )
----
92300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3995
SELECT DISTINCT CAST( - + NULLIF ( - - 30, + COUNT( * ) + - 19 ) AS SIGNED ) * + NULLIF ( 89, - 83 )
----
-2670

skipif mysql # not compatible
query I rowsort label-3995
SELECT DISTINCT CAST ( - + NULLIF ( - - 30, + COUNT ( * ) + - 19 ) AS INTEGER ) * + NULLIF ( 89, - 83 )
----
-2670

query II rowsort
SELECT ALL 88, 53 AS col1
----
88
53

query I rowsort
SELECT ALL + 53 * + - 76 col1
----
-4028

query I rowsort
SELECT DISTINCT ( - 27 ) AS col1
----
-27

query I rowsort
SELECT + 81 + 69
----
150

onlyif mysql # DIV for integer division: 
query I rowsort label-4000
SELECT + 38 DIV ( 48 ) DIV - - 25 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4000
SELECT + 38 / ( 48 ) / - - 25 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4001
SELECT DISTINCT - 23 DIV + CASE - - COUNT( * ) WHEN + - 2 * + 22 + + - 95 + + 91 + - + CAST( + COUNT( * ) AS SIGNED ) + - 76 * - 72 + + 47 + 61 THEN NULL ELSE + 24 * 29 END
----
0

skipif mysql # not compatible
query I rowsort label-4001
SELECT DISTINCT - 23 / + CASE - - COUNT ( * ) WHEN + - 2 * + 22 + + - 95 + + 91 + - + CAST ( + COUNT ( * ) AS INTEGER ) + - 76 * - 72 + + 47 + 61 THEN NULL ELSE + 24 * 29 END
----
0

query I rowsort
SELECT + 91 + 10
----
101

query I rowsort
SELECT ALL + - ( - ( - ( - - 69 ) ) )
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4004
SELECT ALL 35 / + - COUNT( * ) * - + CAST( NULL AS SIGNED ) - + 66 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4004
SELECT ALL 35 / + - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) - + 66 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4005
SELECT + 4 DIV + - 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4005
SELECT + 4 / + - 91 AS col0
----
0

query I rowsort
SELECT + - 68 + COALESCE ( + ( 86 ), - - 5 * + 27 * 79 + + + 7 + + 60, + + 10 * + + 8 + 54 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT ALL NULLIF ( + MAX( ALL - 79 ), - 74 ) * - 29 * + 65 * - + 7 + - 28 + - 24 * - + 86 - - - 4 - + 99 * 25
----
-1042848

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL NULLIF ( + MAX ( ALL - 79 ), - 74 ) * - 29 * + 65 * - + 7 + - 28 + - 24 * - + 86 - - - 4 - + 99 * 25
----
-1042848

onlyif mysql # DIV for integer division: 
query II rowsort label-4008
SELECT ALL + + 1, 48 DIV - - 78 - - NULLIF ( - 21, + 41 ) AS col0
----
1
-21

skipif mysql # not compatible
query II rowsort label-4008
SELECT ALL + + 1, 48 / - - 78 - - NULLIF ( - 21, + 41 ) AS col0
----
1
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT DISTINCT 7 * NULLIF ( - COUNT( 25 ), 15 * 97 ) - 47 + 78 + 51
----
75

skipif mysql # not compatible
query I rowsort label-4009
SELECT DISTINCT 7 * NULLIF ( - COUNT ( 25 ), 15 * 97 ) - 47 + 78 + 51
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4010
SELECT + + CAST( NULL AS SIGNED ) AS col2, 39 * - - 10 - - 46 col2
----
NULL
436

skipif mysql # not compatible
query II rowsort label-4010
SELECT + + CAST ( NULL AS INTEGER ) AS col2, 39 * - - 10 - - 46 col2
----
NULL
436

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT ALL - 81 * CASE - MIN( - 53 ) WHEN + - 65 / 6 / + + 84 - 88 THEN NULL WHEN + - 40 / + 63 THEN ( 94 ) + COUNT( * ) END * + 93 + COALESCE ( + 85, 91 + - 7 ) * + 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL - 81 * CASE - MIN ( - 53 ) WHEN + - 65 / 6 / + + 84 - 88 THEN NULL WHEN + - 40 / + 63 THEN ( 94 ) + COUNT ( * ) END * + 93 + COALESCE ( + 85, 91 + - 7 ) * + 89 AS col1
----
NULL

query I rowsort
SELECT + 93 + 77 AS col1
----
170

query I rowsort
SELECT + 63 - - + 86 AS col1
----
149

query I rowsort
SELECT NULLIF ( 75, - 93 ) AS col1
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4015
SELECT - 76 + - - ( - + AVG ( ALL + - CAST( NULL AS SIGNED ) ) ) + 62 + - - 38 * + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4015
SELECT - 76 + - - ( - + AVG ( ALL + - CAST ( NULL AS INTEGER ) ) ) + 62 + - - 38 * + 48
----
NULL

query I rowsort
SELECT ALL - 2 * - - 72 + + 71 + + + 95
----
22

query I rowsort
SELECT ALL + - 51 col0
----
-51

query I rowsort
SELECT ALL + CASE - + 82 WHEN - 25 THEN + - 77 END * 88 * + ( 76 ) * + 50 - - 97 + 57 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT + - COUNT( * ) * + - 67 + - CASE MAX( + 9 ) WHEN + 96 THEN NULL WHEN - 28 THEN 9 END + - 21 - + COUNT( * ) * 29 * 91
----
NULL

skipif mysql # not compatible
query I rowsort label-4019
SELECT + - COUNT ( * ) * + - 67 + - CASE MAX ( + 9 ) WHEN + 96 THEN NULL WHEN - 28 THEN 9 END + - 21 - + COUNT ( * ) * 29 * 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT - SUM( 30 ) col2
----
-30

skipif mysql # not compatible
query I rowsort label-4020
SELECT - SUM ( 30 ) col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT ALL - + ( - 50 ) * - - 49 + + CASE + - ( - MAX( ( 40 ) ) ) WHEN + 39 THEN + MAX( + + 36 ) * - MAX( DISTINCT 50 ) ELSE + 14 * - ( + 26 ) END
----
2086

skipif mysql # not compatible
query I rowsort label-4021
SELECT ALL - + ( - 50 ) * - - 49 + + CASE + - ( - MAX ( ( 40 ) ) ) WHEN + 39 THEN + MAX ( + + 36 ) * - MAX ( DISTINCT 50 ) ELSE + 14 * - ( + 26 ) END
----
2086

query I rowsort
SELECT + - 91 + + 19 AS col1
----
-72

query II rowsort
SELECT ALL + 51, 50 AS col0
----
51
50

onlyif mysql # DIV for integer division: 
query II rowsort label-4024
SELECT ALL - 55 DIV - + 60 AS col1, - 42
----
0
-42

skipif mysql # not compatible
query II rowsort label-4024
SELECT ALL - 55 / - + 60 AS col1, - 42
----
0
-42

query I rowsort
SELECT + 18 + + + 27
----
45

query I rowsort
SELECT ALL - 47 * - 72 AS col1
----
3384

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT CASE 40 WHEN 5 + - 55 THEN NULL WHEN + 59 / 24 + NULLIF ( + 41, 76 + + COUNT( * ) ) THEN + 75 + - 3 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4027
SELECT CASE 40 WHEN 5 + - 55 THEN NULL WHEN + 59 / 24 + NULLIF ( + 41, 76 + + COUNT ( * ) ) THEN + 75 + - 3 END AS col2
----
NULL

query I rowsort
SELECT + 65 * - 29 AS col1
----
-1885

query I rowsort
SELECT ALL 77 * - + COALESCE ( - 19, 46 * 93 ) AS col0
----
1463

onlyif mysql # DIV for integer division: 
query I rowsort label-4030
SELECT + 82 DIV + ( 11 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-4030
SELECT + 82 / + ( 11 ) AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT - 88 + + + 44 + MAX( DISTINCT - + 70 ) + 12
----
-102

skipif mysql # not compatible
query I rowsort label-4031
SELECT - 88 + + + 44 + MAX ( DISTINCT - + 70 ) + 12
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4032
SELECT - CAST( - 72 AS SIGNED ) AS col0, 20
----
72
20

skipif mysql # not compatible
query II rowsort label-4032
SELECT - CAST ( - 72 AS INTEGER ) AS col0, 20
----
72
20

onlyif mysql # aggregate syntax: 
query II rowsort label-4033
SELECT - MAX( 15 ) + 54 + + SUM( DISTINCT + ( - + 43 ) ) + + - 8, 1 AS col1
----
-12
1

skipif mysql # not compatible
query II rowsort label-4033
SELECT - MAX ( 15 ) + 54 + + SUM ( DISTINCT + ( - + 43 ) ) + + - 8, 1 AS col1
----
-12
1

query I rowsort
SELECT ALL + ( + 45 ) * + 4
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT ALL - 29 * COUNT( DISTINCT - + 42 )
----
-29

skipif mysql # not compatible
query I rowsort label-4035
SELECT ALL - 29 * COUNT ( DISTINCT - + 42 )
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-4036
SELECT ALL 41 * - - 43 AS col0, - NULLIF ( COUNT( - ( + - 48 ) ), + 61 / - ( - 21 ) ) * - COUNT( * ) * + 0 AS col1
----
1763
0

skipif mysql # not compatible
query II rowsort label-4036
SELECT ALL 41 * - - 43 AS col0, - NULLIF ( COUNT ( - ( + - 48 ) ), + 61 / - ( - 21 ) ) * - COUNT ( * ) * + 0 AS col1
----
1763
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4037
SELECT - 52 DIV + 74 * 65
----
0

skipif mysql # not compatible
query I rowsort label-4037
SELECT - 52 / + 74 * 65
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4038
SELECT DISTINCT ( - CASE + 32 WHEN + 76 * - - SUM( ALL - 31 ) / CAST( NULL AS DECIMAL ) + - + COUNT( * ) * - 23 + ( 51 ) THEN 74 * + 80 ELSE 99 * 66 + - 36 END ) col0
----
-6498

skipif mysql # not compatible
query I rowsort label-4038
SELECT DISTINCT ( - CASE + 32 WHEN + 76 * - - SUM ( ALL - 31 ) / CAST ( NULL AS REAL ) + - + COUNT ( * ) * - 23 + ( 51 ) THEN 74 * + 80 ELSE 99 * 66 + - 36 END ) col0
----
-6498

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4039
SELECT ALL CAST( - + 42 AS SIGNED )
----
-42

skipif mysql # not compatible
query I rowsort label-4039
SELECT ALL CAST ( - + 42 AS INTEGER )
----
-42

query I rowsort
SELECT - 29 * 39
----
-1131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4041
SELECT DISTINCT CAST( + 9 AS SIGNED ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-4041
SELECT DISTINCT CAST ( + 9 AS INTEGER ) AS col1
----
9

query I rowsort
SELECT ALL ( 74 ) col2
----
74

query I rowsort
SELECT - 69 - - 85 AS col1
----
16

query II rowsort
SELECT ALL - 94 * 31 col2, 46 + + 83 col1
----
-2914
129

query I rowsort
SELECT - - 88 * 42 - - 65
----
3761

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4046
SELECT ALL - 83 + + - 14 AS col1, - CAST( CASE - - 76 WHEN + - 70 THEN - + 93 WHEN + + 54 + 15 THEN NULL END AS SIGNED ) / + 18 * 87 - - + ( - 56 ) - + ( 19 ) * ( - 0 ) AS col2
----
-97
NULL

skipif mysql # not compatible
query II rowsort label-4046
SELECT ALL - 83 + + - 14 AS col1, - CAST ( CASE - - 76 WHEN + - 70 THEN - + 93 WHEN + + 54 + 15 THEN NULL END AS INTEGER ) / + 18 * 87 - - + ( - 56 ) - + ( 19 ) * ( - 0 ) AS col2
----
-97
NULL

query I rowsort
SELECT ALL + - 96 + - - 71 * + 10 AS col0
----
614

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT ALL - 44 + COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-4048
SELECT ALL - 44 + COUNT ( * )
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4049
SELECT ALL - COUNT( * ) * - CAST( NULL AS SIGNED ) * - 10 / 21
----
NULL

skipif mysql # not compatible
query I rowsort label-4049
SELECT ALL - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - 10 / 21
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4050
SELECT 28 * 69 * - CASE - CASE COUNT( * ) WHEN 76 THEN NULL ELSE - + 79 END WHEN + + CAST( MIN( ALL - 48 ) AS SIGNED ) + + - 40 THEN - 98 WHEN COUNT( * ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4050
SELECT 28 * 69 * - CASE - CASE COUNT ( * ) WHEN 76 THEN NULL ELSE - + 79 END WHEN + + CAST ( MIN ( ALL - 48 ) AS INTEGER ) + + - 40 THEN - 98 WHEN COUNT ( * ) THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4051
SELECT + 91 * - MIN( DISTINCT + - 52 ) AS col2, - COUNT( ALL + 29 )
----
4732
-1

skipif mysql # not compatible
query II rowsort label-4051
SELECT + 91 * - MIN ( DISTINCT + - 52 ) AS col2, - COUNT ( ALL + 29 )
----
4732
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4052
SELECT DISTINCT - 76 + + 84 AS col2, - CAST( NULL AS SIGNED ) * + - 30 AS col2
----
8
NULL

skipif mysql # not compatible
query II rowsort label-4052
SELECT DISTINCT - 76 + + 84 AS col2, - CAST ( NULL AS INTEGER ) * + - 30 AS col2
----
8
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4053
SELECT ALL COUNT( * ) DIV + 78 * - SUM( + + 69 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4053
SELECT ALL COUNT ( * ) / + 78 * - SUM ( + + 69 ) AS col2
----
0

query I rowsort
SELECT ALL - - 25 + 15 + 37 + COALESCE ( + + 76, + + 30 ) AS col2
----
153

query I rowsort
SELECT DISTINCT + COALESCE ( - 9, + 4 ) + 83 AS col0
----
74

query I rowsort
SELECT DISTINCT 53 * + + 83 * - - 7 + - 74 AS col2
----
30719

query I rowsort
SELECT DISTINCT + - 12 + - 89 AS col1
----
-101

onlyif mysql # DIV for integer division: 
query I rowsort label-4058
SELECT ALL - - 50 DIV - 51 * + ( 3 ) * 63 * - 64 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4058
SELECT ALL - - 50 / - 51 * + ( 3 ) * 63 * - 64 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4059
SELECT DISTINCT - CAST( 22 AS SIGNED ) - - 89 - + + 88 * + 42 * - 4
----
14851

skipif mysql # not compatible
query I rowsort label-4059
SELECT DISTINCT - CAST ( 22 AS INTEGER ) - - 89 - + + 88 * + 42 * - 4
----
14851

query I rowsort
SELECT 51 * - 87 * + 26 + - 92 col2
----
-115454

query II rowsort
SELECT + 53, + 22 * + CASE + - NULLIF ( + ( - 33 ), 67 ) WHEN + - 99 + - 5 THEN NULL WHEN 52 * + 91 THEN - 5 / - 73 * + 38 + 59 END AS col0
----
53
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4062
SELECT - CAST( NULL AS SIGNED ) * + AVG ( DISTINCT - 40 ) * - 65 * - + 3 + - 71 + + ( + ( 34 ) ) + - MIN( + - CASE - 53 WHEN - 66 * 65 + 40 THEN + 80 ELSE NULL END ) * - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-4062
SELECT - CAST ( NULL AS INTEGER ) * + AVG ( DISTINCT - 40 ) * - 65 * - + 3 + - 71 + + ( + ( 34 ) ) + - MIN ( + - CASE - 53 WHEN - 66 * 65 + 40 THEN + 80 ELSE NULL END ) * - 65
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4063
SELECT + 56, - CAST( NULL AS SIGNED ) / - - 6 + + 74 + ( MAX( DISTINCT - 0 ) ) * + - 78 * + NULLIF ( + + 1, - 21 ) * - + 36 col1
----
56
NULL

skipif mysql # not compatible
query II rowsort label-4063
SELECT + 56, - CAST ( NULL AS INTEGER ) / - - 6 + + 74 + ( MAX ( DISTINCT - 0 ) ) * + - 78 * + NULLIF ( + + 1, - 21 ) * - + 36 col1
----
56
NULL

query I rowsort
SELECT 11 + + 18
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT ALL 71 - + - CASE - MAX( 69 ) WHEN + 90 * + 28 THEN NULL WHEN 46 THEN NULL WHEN 92 THEN - 26 END * - + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-4065
SELECT ALL 71 - + - CASE - MAX ( 69 ) WHEN + 90 * + 28 THEN NULL WHEN 46 THEN NULL WHEN 92 THEN - 26 END * - + 8
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4066
SELECT ALL - 85, + COUNT( * ) * ( 16 ) AS col1
----
-85
16

skipif mysql # not compatible
query II rowsort label-4066
SELECT ALL - 85, + COUNT ( * ) * ( 16 ) AS col1
----
-85
16

query I rowsort
SELECT DISTINCT 0 * - - 29
----
0

query I rowsort
SELECT 30 * - 89 * - 69
----
184230

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4069
SELECT ( - COALESCE ( + - 56, - + 34 ) ) + + CAST( NULL AS DECIMAL ) + + COALESCE ( - - AVG ( ALL + 3 ), + 2 * + 44 / - 98 - - 45, COUNT( * ) + 79 ) * 26
----
NULL

skipif mysql # not compatible
query I rowsort label-4069
SELECT ( - COALESCE ( + - 56, - + 34 ) ) + + CAST ( NULL AS REAL ) + + COALESCE ( - - AVG ( ALL + 3 ), + 2 * + 44 / - 98 - - 45, COUNT ( * ) + 79 ) * 26
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4070
SELECT 20 * + CAST( 37 AS SIGNED ) AS col0
----
740

skipif mysql # not compatible
query I rowsort label-4070
SELECT 20 * + CAST ( 37 AS INTEGER ) AS col0
----
740

onlyif mysql # DIV for integer division: 
query I rowsort label-4071
SELECT 61 DIV + - 36 DIV - 1
----
1

skipif mysql # not compatible
query I rowsort label-4071
SELECT 61 / + - 36 / - 1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4072
SELECT ( - + 53 ) + - COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-4072
SELECT ( - + 53 ) + - COUNT ( * )
----
-54

query I rowsort
SELECT 80 - + 10
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT DISTINCT + 35 * - COUNT( * ) * - 70 AS col2
----
2450

skipif mysql # not compatible
query I rowsort label-4074
SELECT DISTINCT + 35 * - COUNT ( * ) * - 70 AS col2
----
2450

query I rowsort
SELECT ALL - 32 + - - 36 AS col1
----
4

query I rowsort
SELECT ALL + - 94 + 43 col2
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4077
SELECT 66 + - 46 + + CAST( 78 AS SIGNED ) * COALESCE ( + - 96, - CASE + 80 WHEN - + MIN( - 27 ) THEN - - 25 - 33 + 40 + + NULLIF ( - 9, CAST( NULL AS SIGNED ) ) END, + 1 ) AS col0
----
-7468

skipif mysql # not compatible
query I rowsort label-4077
SELECT 66 + - 46 + + CAST ( 78 AS INTEGER ) * COALESCE ( + - 96, - CASE + 80 WHEN - + MIN ( - 27 ) THEN - - 25 - 33 + 40 + + NULLIF ( - 9, CAST ( NULL AS INTEGER ) ) END, + 1 ) AS col0
----
-7468

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4078
SELECT ALL 56 * + COALESCE ( - - 59, 65 ) * ( - + CAST( CAST( ( 47 ) AS SIGNED ) AS SIGNED ) )
----
-155288

skipif mysql # not compatible
query I rowsort label-4078
SELECT ALL 56 * + COALESCE ( - - 59, 65 ) * ( - + CAST ( CAST ( ( 47 ) AS INTEGER ) AS INTEGER ) )
----
-155288

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4079
SELECT - 0 + - 65 - + 1 DIV + MIN( DISTINCT - + ( + 16 ) ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-4079
SELECT - 0 + - 65 - + 1 / + MIN ( DISTINCT - + ( + 16 ) ) AS col0
----
-65

query II rowsort
SELECT - 48 AS col2, + 93 AS col2
----
-48
93

query I rowsort
SELECT ALL + - 2 + - ( + 95 ) col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT + COALESCE ( - NULLIF ( + COUNT( * ), - 22 ), - 74 + - - NULLIF ( - - 61, + - AVG ( - - 2 ) ) * + 9 * - 93 * - + ( 63 ) + 74 )
----
-1

skipif mysql # not compatible
query I rowsort label-4082
SELECT + COALESCE ( - NULLIF ( + COUNT ( * ), - 22 ), - 74 + - - NULLIF ( - - 61, + - AVG ( - - 2 ) ) * + 9 * - 93 * - + ( 63 ) + 74 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4083
SELECT - CASE - - 41 WHEN + + 85 * 29 THEN NULL ELSE 16 END * - 77 * CAST( + 54 AS SIGNED ), 75 * + NULLIF ( - 81, - CAST( + - MIN( 90 ) AS SIGNED ) ) AS col0
----
66528
-6075

skipif mysql # not compatible
query II rowsort label-4083
SELECT - CASE - - 41 WHEN + + 85 * 29 THEN NULL ELSE 16 END * - 77 * CAST ( + 54 AS INTEGER ), 75 * + NULLIF ( - 81, - CAST ( + - MIN ( 90 ) AS INTEGER ) ) AS col0
----
66528
-6075

query I rowsort
SELECT + 75 + 40
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4085
SELECT DISTINCT - 88 * ( + 17 ) DIV 12 * 88 * - CAST( + 0 AS SIGNED ) + + CAST( + ( COUNT( DISTINCT - 89 ) ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4085
SELECT DISTINCT - 88 * ( + 17 ) / 12 * 88 * - CAST ( + 0 AS INTEGER ) + + CAST ( + ( COUNT ( DISTINCT - 89 ) ) AS INTEGER ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4086
SELECT ALL + + 77 + - 22 * - - 86 AS col0, SUM( - - 81 )
----
-1815
81

skipif mysql # not compatible
query II rowsort label-4086
SELECT ALL + + 77 + - 22 * - - 86 AS col0, SUM ( - - 81 )
----
-1815
81

query I rowsort
SELECT ALL - 55 * + ( - 17 )
----
935

query I rowsort
SELECT 45 + - - 36 AS col2
----
81

query I rowsort
SELECT + ( + - COALESCE ( - + 88, + 12 * - 41, + - 61 ) ) col0
----
88

query I rowsort
SELECT DISTINCT - - 47 * + + 16
----
752

query I rowsort
SELECT 6 * 14 * - - 43 * - + 2
----
-7224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4092
SELECT 0 DIV COUNT( * ) * 17 + + 27 * - COUNT( ALL + 21 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-4092
SELECT 0 / COUNT ( * ) * 17 + + 27 * - COUNT ( ALL + 21 ) AS col2
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-4093
SELECT ALL - 95 * + - ( - 21 ) AS col0, - COUNT( * ) col1
----
-1995
-1

skipif mysql # not compatible
query II rowsort label-4093
SELECT ALL - 95 * + - ( - 21 ) AS col0, - COUNT ( * ) col1
----
-1995
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4094
SELECT 24 DIV + + 71 - 22
----
-22

skipif mysql # not compatible
query I rowsort label-4094
SELECT 24 / + + 71 - 22
----
-22

query II rowsort
SELECT + + 40 AS col1, + ( + 91 )
----
40
91

query I rowsort
SELECT 37 + - 53 AS col0
----
-16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4097
SELECT ALL - CASE 52 WHEN + + CAST( - - 81 AS DECIMAL ) THEN NULL WHEN 4 * + COUNT( * ) THEN + 79 ELSE + + 79 + 26 END, + 72 AS col0
----
-105
72

skipif mysql # not compatible
query II rowsort label-4097
SELECT ALL - CASE 52 WHEN + + CAST ( - - 81 AS REAL ) THEN NULL WHEN 4 * + COUNT ( * ) THEN + 79 ELSE + + 79 + 26 END, + 72 AS col0
----
-105
72

query I rowsort
SELECT ALL 23 * - - 71 * + 2 * - + 26
----
-84916

query I rowsort
SELECT DISTINCT 41 * + - 54 * - 10 AS col1
----
22140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4100
SELECT DISTINCT + COUNT( * ) DIV - + 80 * - 4 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4100
SELECT DISTINCT + COUNT ( * ) / - + 80 * - 4 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT + MIN( ALL 55 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-4101
SELECT + MIN ( ALL 55 ) AS col1
----
55

query I rowsort
SELECT 65 * + + 89 * + 17
----
98345

query I rowsort
SELECT 71 + - 38 * 93 + 83 + 15
----
-3365

query I rowsort
SELECT ALL 81 * 44 AS col2
----
3564

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT ALL 40 + + COUNT( * ) * + 58 + - + 70 * - 31 + 74
----
2342

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL 40 + + COUNT ( * ) * + 58 + - + 70 * - 31 + 74
----
2342

onlyif mysql # aggregate syntax: 
query II rowsort label-4106
SELECT - MIN( ALL 11 ) AS col1, - 0 + + - 91
----
-11
-91

skipif mysql # not compatible
query II rowsort label-4106
SELECT - MIN ( ALL 11 ) AS col1, - 0 + + - 91
----
-11
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT 55 * COALESCE ( 39, COALESCE ( + + ( + + 24 ), 15, - + CASE - + ( 19 ) WHEN 75 THEN + + 35 * 50 WHEN + COALESCE ( 84, + 77 ) + 68 THEN NULL END ) - COUNT( * ) )
----
2145

skipif mysql # not compatible
query I rowsort label-4107
SELECT 55 * COALESCE ( 39, COALESCE ( + + ( + + 24 ), 15, - + CASE - + ( 19 ) WHEN 75 THEN + + 35 * 50 WHEN + COALESCE ( 84, + 77 ) + 68 THEN NULL END ) - COUNT ( * ) )
----
2145

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT ALL COUNT( * ) * - 26 col0
----
-26

skipif mysql # not compatible
query I rowsort label-4108
SELECT ALL COUNT ( * ) * - 26 col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT ALL COUNT( * ) + NULLIF ( - - 73, + + 43 - - 43 * 85 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-4109
SELECT ALL COUNT ( * ) + NULLIF ( - - 73, + + 43 - - 43 * 85 ) AS col1
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4110
SELECT + + 36 - COALESCE ( + CAST( NULL AS SIGNED ), 29 ) col1
----
7

skipif mysql # not compatible
query I rowsort label-4110
SELECT + + 36 - COALESCE ( + CAST ( NULL AS INTEGER ), 29 ) col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT + - SUM( + + COALESCE ( - 48, + 45, + - 0 ) ) - 82 - + 45 - + + ( + NULLIF ( + 74, 44 * + ( + 53 ) - - COUNT( DISTINCT 14 ) - - 41 * + 29 ) )
----
-153

skipif mysql # not compatible
query I rowsort label-4111
SELECT + - SUM ( + + COALESCE ( - 48, + 45, + - 0 ) ) - 82 - + 45 - + + ( + NULLIF ( + 74, 44 * + ( + 53 ) - - COUNT ( DISTINCT 14 ) - - 41 * + 29 ) )
----
-153

query I rowsort
SELECT - - 56 * + - ( 98 ) AS col0
----
-5488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4113
SELECT ALL - CASE 23 WHEN + + ( + CAST( NULL AS SIGNED ) ) * + COUNT( * ) * - + 44 * + 31 THEN - ( 85 ) ELSE 61 END * - COALESCE ( + CASE - + 24 WHEN - 29 THEN NULL ELSE 60 END, + 33 ) * - 22
----
-80520

skipif mysql # not compatible
query I rowsort label-4113
SELECT ALL - CASE 23 WHEN + + ( + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) * - + 44 * + 31 THEN - ( 85 ) ELSE 61 END * - COALESCE ( + CASE - + 24 WHEN - 29 THEN NULL ELSE 60 END, + 33 ) * - 22
----
-80520

query I rowsort
SELECT + + 87 + - 74 AS col0
----
13

query I rowsort
SELECT DISTINCT - 59 * - 59 * 4
----
13924

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT + COUNT( ALL + - 62 ) * - - 31 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-4116
SELECT + COUNT ( ALL + - 62 ) * - - 31 AS col0
----
31

query I rowsort
SELECT ALL 56 * + 1 + + 16
----
72

query I rowsort
SELECT + 0 - 73 col0
----
-73

query I rowsort
SELECT ALL - 98 * + 89
----
-8722

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT - + 29 * + + COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-4120
SELECT - + 29 * + + COUNT ( * )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT + - 60 * - + MAX( NULLIF ( + 42, + + 57 * + 74 ) ) + - COUNT( * ) * 15 * - COUNT( * ) AS col2
----
2535

skipif mysql # not compatible
query I rowsort label-4121
SELECT + - 60 * - + MAX ( NULLIF ( + 42, + + 57 * + 74 ) ) + - COUNT ( * ) * 15 * - COUNT ( * ) AS col2
----
2535

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4122
SELECT - + CAST( - + 64 AS SIGNED ) * + 62 + + 41 + + NULLIF ( - + 12, + 97 / 9 + - 10 + + 70 + + + 77 + - 10 )
----
3997

skipif mysql # not compatible
query I rowsort label-4122
SELECT - + CAST ( - + 64 AS INTEGER ) * + 62 + + 41 + + NULLIF ( - + 12, + 97 / 9 + - 10 + + 70 + + + 77 + - 10 )
----
3997

query II rowsort
SELECT ALL + 49, - 16 AS col2
----
49
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT - 36 * - - COUNT( - + 64 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-4124
SELECT - 36 * - - COUNT ( - + 64 ) AS col2
----
-36

query I rowsort
SELECT ALL + NULLIF ( + 24, + 19 ) * + 70 + - + 83
----
1597

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT DISTINCT + 7 * COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-4126
SELECT DISTINCT + 7 * COUNT ( * )
----
7

query I rowsort
SELECT ALL + 98 * + 15 AS col2
----
1470

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT - COUNT( * ) * + - 45 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-4128
SELECT - COUNT ( * ) * + - 45 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT ALL + 25 * + + MAX( - 60 ) AS col1
----
-1500

skipif mysql # not compatible
query I rowsort label-4129
SELECT ALL + 25 * + + MAX ( - 60 ) AS col1
----
-1500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4130
SELECT CASE - CAST( NULL AS SIGNED ) WHEN + 64 THEN NULL WHEN - - 43 THEN 74 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4130
SELECT CASE - CAST ( NULL AS INTEGER ) WHEN + 64 THEN NULL WHEN - - 43 THEN 74 END AS col1
----
NULL

query I rowsort
SELECT NULLIF ( + 27, + - 7 ) AS col1
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4132
SELECT - CASE 50 WHEN - 48 THEN NULL ELSE 35 END DIV - COALESCE ( + + CASE 85 WHEN - COUNT( * ) + - COUNT( * ) THEN NULL WHEN + MIN( ALL - - 32 ) THEN NULL ELSE - 43 * 92 END, + 65 * - - 17 * COUNT( * ) + 62 ) + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4132
SELECT - CASE 50 WHEN - 48 THEN NULL ELSE 35 END / - COALESCE ( + + CASE 85 WHEN - COUNT ( * ) + - COUNT ( * ) THEN NULL WHEN + MIN ( ALL - - 32 ) THEN NULL ELSE - 43 * 92 END, + 65 * - - 17 * COUNT ( * ) + 62 ) + COUNT ( * ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4133
SELECT - 70 + - 8 + + 22 + ( 15 ) + 13 + CAST( - 70 AS SIGNED ) * + 29 * + - CAST( NULL AS SIGNED ) * - - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-4133
SELECT - 70 + - 8 + + 22 + ( 15 ) + 13 + CAST ( - 70 AS INTEGER ) * + 29 * + - CAST ( NULL AS INTEGER ) * - - 65
----
NULL

query I rowsort
SELECT ALL 92 * - 45 + + 37
----
-4103

query I rowsort
SELECT - 46 + + - 15
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT + COALESCE ( + - COUNT( * ), - ( + ( + - 70 ) ), 84 )
----
-1

skipif mysql # not compatible
query I rowsort label-4136
SELECT + COALESCE ( + - COUNT ( * ), - ( + ( + - 70 ) ), 84 )
----
-1

query I rowsort
SELECT DISTINCT + 8 * + 86 AS col1
----
688

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT ALL 36 * + 0 + - COUNT( ALL - + 23 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4138
SELECT ALL 36 * + 0 + - COUNT ( ALL - + 23 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT 63 * + 21 + - CASE + - 5 WHEN + + COUNT( * ) THEN + COUNT( * ) * - - 98 * - COUNT( * ) + 27 + - - 88 WHEN + + 60 THEN 63 * + 98 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4139
SELECT 63 * + 21 + - CASE + - 5 WHEN + + COUNT ( * ) THEN + COUNT ( * ) * - - 98 * - COUNT ( * ) + 27 + - - 88 WHEN + + 60 THEN 63 * + 98 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4140
SELECT ALL MAX( + + 18 ) * CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4140
SELECT ALL MAX ( + + 18 ) * CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4141
SELECT + CAST( - 89 AS SIGNED ) + 81 * - 21 + + ( + - 86 )
----
-1876

skipif mysql # not compatible
query I rowsort label-4141
SELECT + CAST ( - 89 AS INTEGER ) + 81 * - 21 + + ( + - 86 )
----
-1876

query II rowsort
SELECT + 21, 53 * - - 88 AS col2
----
21
4664

query I rowsort
SELECT ALL 61 * + - 13
----
-793

query I rowsort
SELECT - + 91 + + 2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT + COALESCE ( 84, + 14 + COUNT( DISTINCT - - 42 ) ) - - 96
----
180

skipif mysql # not compatible
query I rowsort label-4145
SELECT + COALESCE ( 84, + 14 + COUNT ( DISTINCT - - 42 ) ) - - 96
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT - + MIN( ALL - + 7 ) col2
----
7

skipif mysql # not compatible
query I rowsort label-4146
SELECT - + MIN ( ALL - + 7 ) col2
----
7

query I rowsort
SELECT - 48 + - 13
----
-61

query II rowsort
SELECT + 44, + 68 AS col2
----
44
68

query I rowsort
SELECT DISTINCT + 61 * + + 63 AS col1
----
3843

query I rowsort
SELECT ALL - ( - 15 ) - - 23 * + - 87
----
-1986

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4151
SELECT ALL ( + 29 ) DIV - MIN( ALL + 97 )
----
0

skipif mysql # not compatible
query I rowsort label-4151
SELECT ALL ( + 29 ) / - MIN ( ALL + 97 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT + 60 + + COUNT( * ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-4152
SELECT + 60 + + COUNT ( * ) AS col1
----
61

query II rowsort
SELECT - 29 AS col1, - 3 * 43
----
-29
-129

query I rowsort
SELECT + 73 + 96 * 74 AS col2
----
7177

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT - + MIN( ALL - 54 )
----
54

skipif mysql # not compatible
query I rowsort label-4155
SELECT - + MIN ( ALL - 54 )
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4156
SELECT ALL 48 DIV - ( + - 94 ) + + SUM( DISTINCT - - 40 ) * 28 DIV + 71 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-4156
SELECT ALL 48 / - ( + - 94 ) + + SUM ( DISTINCT - - 40 ) * 28 / + 71 AS col1
----
15

query I rowsort
SELECT ALL - 38 * - ( + 60 )
----
2280

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT + 12 * MIN( ALL - 45 )
----
-540

skipif mysql # not compatible
query I rowsort label-4158
SELECT + 12 * MIN ( ALL - 45 )
----
-540

query II rowsort
SELECT ALL + 65, - 15 * 87 AS col0
----
65
-1305

query II rowsort
SELECT ALL + 10, - 24 * 89 + - - ( + ( + ( 6 ) ) ) col1
----
10
-2130

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT 30 * - - 90 + - COUNT( * )
----
2699

skipif mysql # not compatible
query I rowsort label-4161
SELECT 30 * - - 90 + - COUNT ( * )
----
2699

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4162
SELECT CAST( - 44 AS SIGNED ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-4162
SELECT CAST ( - 44 AS INTEGER ) AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT - 76 + + + 30 + + COUNT( ALL 68 ) + + 96 + 74 * - 26
----
-1873

skipif mysql # not compatible
query I rowsort label-4163
SELECT - 76 + + + 30 + + COUNT ( ALL 68 ) + + 96 + 74 * - 26
----
-1873

query II rowsort
SELECT + 70 AS col0, - 71 * + ( + 15 ) * 85 + 75 * + + 77 + + 42
----
70
-84708

onlyif mysql # aggregate syntax: 
query II rowsort label-4165
SELECT + COUNT( * ) * - - 51, + COUNT( ALL - 95 ) * - + 15 AS col0
----
51
-15

skipif mysql # not compatible
query II rowsort label-4165
SELECT + COUNT ( * ) * - - 51, + COUNT ( ALL - 95 ) * - + 15 AS col0
----
51
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT DISTINCT 63 + COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-4166
SELECT DISTINCT 63 + COUNT ( * )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT ALL + 58 * + COUNT( * ) * COUNT( * ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-4167
SELECT ALL + 58 * + COUNT ( * ) * COUNT ( * ) AS col1
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-4168
SELECT ALL - COUNT( * ) AS col2, 45 * + + ( 48 ) AS col2
----
-1
2160

skipif mysql # not compatible
query II rowsort label-4168
SELECT ALL - COUNT ( * ) AS col2, 45 * + + ( 48 ) AS col2
----
-1
2160

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT ALL - 31 + - COUNT( * ) + + + 25
----
-7

skipif mysql # not compatible
query I rowsort label-4169
SELECT ALL - 31 + - COUNT ( * ) + + + 25
----
-7

query I rowsort
SELECT DISTINCT + 77 * - - 60
----
4620

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4171
SELECT 95 AS col1, + ( - - ( - - CAST( NULL AS SIGNED ) ) ) / 60
----
95
NULL

skipif mysql # not compatible
query II rowsort label-4171
SELECT 95 AS col1, + ( - - ( - - CAST ( NULL AS INTEGER ) ) ) / 60
----
95
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4172
SELECT + 93 AS col2, 16 * + + 26 * - - 71 + 28 - - CASE COUNT( - CAST( ( 53 ) AS SIGNED ) ) WHEN 39 * - CAST( NULL AS SIGNED ) + + ( - 37 ) / MAX( ( + 1 ) ) + + 20 THEN NULL WHEN 93 THEN - CAST( NULL AS SIGNED ) ELSE COUNT( DISTINCT - 21 ) * + CAST( NULL AS DECIMAL ) END * 36 * + 27 AS col2
----
93
NULL

skipif mysql # not compatible
query II rowsort label-4172
SELECT + 93 AS col2, 16 * + + 26 * - - 71 + 28 - - CASE COUNT ( - CAST ( ( 53 ) AS INTEGER ) ) WHEN 39 * - CAST ( NULL AS INTEGER ) + + ( - 37 ) / MAX ( ( + 1 ) ) + + 20 THEN NULL WHEN 93 THEN - CAST ( NULL AS INTEGER ) ELSE COUNT ( DISTINCT - 21 ) * + CAST ( NULL AS REAL ) END * 36 * + 27 AS col2
----
93
NULL

query I rowsort
SELECT 51 * + 47 - + 43
----
2354

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4174
SELECT - CAST( + + NULLIF ( 13, 74 ) AS SIGNED ) * + - 54 AS col1
----
702

skipif mysql # not compatible
query I rowsort label-4174
SELECT - CAST ( + + NULLIF ( 13, 74 ) AS INTEGER ) * + - 54 AS col1
----
702

query II rowsort
SELECT 37, 40 AS col2
----
37
40

query II rowsort
SELECT + 42 * 41 AS col0, 1 AS col1
----
1722
1

query I rowsort
SELECT ALL 8 * + + 14
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT - SUM( DISTINCT + 9 ) + + - 66 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-4178
SELECT - SUM ( DISTINCT + 9 ) + + - 66 AS col2
----
-75

query II rowsort
SELECT ALL + ( 36 ) AS col1, 94 * 45
----
36
4230

onlyif mysql # aggregate syntax: 
query II rowsort label-4180
SELECT 99 * COUNT( * ) - ( + 14 ) AS col0, 17 * 61 * 5 + + + 61 + + + COUNT( * )
----
85
5247

skipif mysql # not compatible
query II rowsort label-4180
SELECT 99 * COUNT ( * ) - ( + 14 ) AS col0, 17 * 61 * 5 + + + 61 + + + COUNT ( * )
----
85
5247

query I rowsort
SELECT 58 * - 80 AS col1
----
-4640

query I rowsort
SELECT - 35 - - 4 AS col0
----
-31

query I rowsort
SELECT 92 + 8 col0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT + 58 * - ( COUNT( * ) ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-4184
SELECT + 58 * - ( COUNT ( * ) ) AS col1
----
-58

query II rowsort
SELECT + 27 + + + 88 AS col1, - 25 AS col2
----
115
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4186
SELECT DISTINCT - 16 * - - 67 + 68 + + 12 + - 67 * - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4186
SELECT DISTINCT - 16 * - - 67 + 68 + + 12 + - 67 * - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT DISTINCT + + 61 * - - CASE - + CASE - 27 WHEN + - 4 * 32 + + + COUNT( * ) - + + 70 THEN NULL WHEN + - 28 * 69 + + - 99 + 45 / + - 57 THEN + 41 + - MAX( + - 58 ) END WHEN + ( 60 ) THEN ( - NULLIF ( + 5, + MAX( DISTINCT + 35 ) - - 14 ) ) * - 61 + - 52 WHEN - 23 / 22 + COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4187
SELECT DISTINCT + + 61 * - - CASE - + CASE - 27 WHEN + - 4 * 32 + + + COUNT ( * ) - + + 70 THEN NULL WHEN + - 28 * 69 + + - 99 + 45 / + - 57 THEN + 41 + - MAX ( + - 58 ) END WHEN + ( 60 ) THEN ( - NULLIF ( + 5, + MAX ( DISTINCT + 35 ) - - 14 ) ) * - 61 + - 52 WHEN - 23 / 22 + COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4188
SELECT ALL CAST( + + 46 AS SIGNED )
----
46

skipif mysql # not compatible
query I rowsort label-4188
SELECT ALL CAST ( + + 46 AS INTEGER )
----
46

query I rowsort
SELECT DISTINCT + 25 + + ( + 80 ) + - + 25 AS col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4190
SELECT COUNT( * ) * - + 44 + + 14 + + 35 - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + - - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-4190
SELECT COUNT ( * ) * - + 44 + + 14 + + 35 - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - - 23
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4191
SELECT 55 DIV - 55
----
-1

skipif mysql # not compatible
query I rowsort label-4191
SELECT 55 / - 55
----
-1

query I rowsort
SELECT 26 * + 33 AS col2
----
858

query II rowsort
SELECT ALL 65 + - 99, + 92 AS col1
----
-34
92

query I rowsort
SELECT DISTINCT 23 + 21 AS col2
----
44

query I rowsort
SELECT ALL 58 + 65 * + - 16 AS col0
----
-982

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4196
SELECT + 3 * 17 - + NULLIF ( + - 94, + CAST( NULL AS SIGNED ) )
----
145

skipif mysql # not compatible
query I rowsort label-4196
SELECT + 3 * 17 - + NULLIF ( + - 94, + CAST ( NULL AS INTEGER ) )
----
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4197
SELECT DISTINCT 64 + + 75 + 85 + COUNT( * ) * - 39 + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4197
SELECT DISTINCT 64 + + 75 + 85 + COUNT ( * ) * - 39 + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL 22 + - 61 - 61 + 26 * - + 53 + - 6 * + 43 AS col0
----
-1736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4199
SELECT NULLIF ( + 18, + 9 * 28 ) * + + 84 + 54 + - 62 * + CAST( 36 AS SIGNED ) - - 5 + 22 AS col1
----
-639

skipif mysql # not compatible
query I rowsort label-4199
SELECT NULLIF ( + 18, + 9 * 28 ) * + + 84 + 54 + - 62 * + CAST ( 36 AS INTEGER ) - - 5 + 22 AS col1
----
-639

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4200
SELECT CAST( 20 AS SIGNED ) + + 88 AS col0
----
108

skipif mysql # not compatible
query I rowsort label-4200
SELECT CAST ( 20 AS INTEGER ) + + 88 AS col0
----
108

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4201
SELECT - 65 * - - 81 - 40 + - CAST( NULL AS DECIMAL ) * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4201
SELECT - 65 * - - 81 - 40 + - CAST ( NULL AS REAL ) * + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4202
SELECT + 17 + CAST( + 55 AS SIGNED ) * 11 + - COUNT( * ) AS col1
----
621

skipif mysql # not compatible
query I rowsort label-4202
SELECT + 17 + CAST ( + 55 AS INTEGER ) * 11 + - COUNT ( * ) AS col1
----
621

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT ALL - CASE + 87 WHEN - 90 THEN + - 81 END - + + ( + 50 ) / 27 / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL - CASE + 87 WHEN - 90 THEN + - 81 END - + + ( + 50 ) / 27 / - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT + MIN( DISTINCT + + 33 ) * - 16 + 51 + - - 54
----
-423

skipif mysql # not compatible
query I rowsort label-4204
SELECT + MIN ( DISTINCT + + 33 ) * - 16 + 51 + - - 54
----
-423

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4205
SELECT 89 + + 54 + - 82 + 81 * + 58 + 27 + - 61 DIV - COUNT( * ) * - COUNT( * )
----
4725

skipif mysql # not compatible
query I rowsort label-4205
SELECT 89 + + 54 + - 82 + 81 * + 58 + 27 + - 61 / - COUNT ( * ) * - COUNT ( * )
----
4725

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT DISTINCT - ( ( + + MIN( + + 76 ) ) ) * + 68 AS col2
----
-5168

skipif mysql # not compatible
query I rowsort label-4206
SELECT DISTINCT - ( ( + + MIN ( + + 76 ) ) ) * + 68 AS col2
----
-5168

query I rowsort
SELECT - 59 * + 75 + 44 + - + 58
----
-4439

query I rowsort
SELECT 37 * - 99 * 20 col0
----
-73260

onlyif mysql # aggregate syntax: 
query II rowsort label-4209
SELECT - 67 + + - 67 AS col2, 35 + + - SUM( + + ( ( + + 73 ) ) ) + - - 49 AS col1
----
-134
11

skipif mysql # not compatible
query II rowsort label-4209
SELECT - 67 + + - 67 AS col2, 35 + + - SUM ( + + ( ( + + 73 ) ) ) + - - 49 AS col1
----
-134
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4210
SELECT 68 DIV - 27 AS col2, - COUNT( - 1 ) + - COUNT( * ) * - - CAST( NULL AS SIGNED ) * + - COUNT( * )
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-4210
SELECT 68 / - 27 AS col2, - COUNT ( - 1 ) + - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) * + - COUNT ( * )
----
-2
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4211
SELECT DISTINCT - + 38 * 44, - 85 DIV + 44 AS col0
----
-1672
-1

skipif mysql # not compatible
query II rowsort label-4211
SELECT DISTINCT - + 38 * 44, - 85 / + 44 AS col0
----
-1672
-1

query I rowsort
SELECT ALL - 78 * + 18
----
-1404

query I rowsort
SELECT ALL + 76 + + 37 * - - 57 AS col1
----
2185

query II rowsort
SELECT ALL + 37 + 30 + - ( 98 ) * 4 AS col1, COALESCE ( - - 47, 35 + COALESCE ( + 67, - 58 ), - 53 * + 66 ) AS col2
----
-325
47

onlyif mysql # aggregate syntax: 
query II rowsort label-4215
SELECT - 83 + - COUNT( * ) AS col1, 7
----
-84
7

skipif mysql # not compatible
query II rowsort label-4215
SELECT - 83 + - COUNT ( * ) AS col1, 7
----
-84
7

query I rowsort
SELECT 71 - + - 3 AS col0
----
74

query I rowsort
SELECT 45 + - - 1 + 56 * - 42 * + 88
----
-206930

onlyif mysql # aggregate syntax: 
query II rowsort label-4218
SELECT ALL 17 * + ( - 5 ) AS col0, + 82 * + 78 + - COUNT( * ) + - ( + - 81 ) + - 35 * + 4 + 71 * - COUNT( * )
----
-85
6265

skipif mysql # not compatible
query II rowsort label-4218
SELECT ALL 17 * + ( - 5 ) AS col0, + 82 * + 78 + - COUNT ( * ) + - ( + - 81 ) + - 35 * + 4 + 71 * - COUNT ( * )
----
-85
6265

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT NULLIF ( + 81, - NULLIF ( - 71, NULLIF ( + 62, - SUM( - 9 ) ) ) / + MAX( + + 50 ) * 40 + - NULLIF ( + 77, - 77 * + - 78 ) ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-4219
SELECT NULLIF ( + 81, - NULLIF ( - 71, NULLIF ( + 62, - SUM ( - 9 ) ) ) / + MAX ( + + 50 ) * 40 + - NULLIF ( + 77, - 77 * + - 78 ) ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT + 36 * - + COUNT( * ) * 74 + + - 38
----
-2702

skipif mysql # not compatible
query I rowsort label-4220
SELECT + 36 * - + COUNT ( * ) * 74 + + - 38
----
-2702

query II rowsort
SELECT ALL + 9 AS col2, 45
----
9
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4222
SELECT CAST( NULL AS SIGNED ) * - + 54 + 32 - + 67 / + 21 * + 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4222
SELECT CAST ( NULL AS INTEGER ) * - + 54 + 32 - + 67 / + 21 * + 93 AS col1
----
NULL

query I rowsort
SELECT - 5 * 7
----
-35

query I rowsort
SELECT COALESCE ( + 27, - 94, - 68 ) AS col0
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-4225
SELECT + COUNT( * ) * + COALESCE ( - + MIN( ALL 49 ), - 47, + + 51 * - ( 26 ) + 84 ) * - MIN( + + 15 ) AS col1, + COUNT( * )
----
735
1

skipif mysql # not compatible
query II rowsort label-4225
SELECT + COUNT ( * ) * + COALESCE ( - + MIN ( ALL 49 ), - 47, + + 51 * - ( 26 ) + 84 ) * - MIN ( + + 15 ) AS col1, + COUNT ( * )
----
735
1

query I rowsort
SELECT + - 28 * 48 AS col2
----
-1344

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4227
SELECT ALL - ( ( + - 24 ) ) DIV - CAST( + + 81 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4227
SELECT ALL - ( ( + - 24 ) ) / - CAST ( + + 81 AS INTEGER )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4228
SELECT + - CAST( COALESCE ( + - 34, 57 ) AS SIGNED ) AS col0, 30 AS col0
----
34
30

skipif mysql # not compatible
query II rowsort label-4228
SELECT + - CAST ( COALESCE ( + - 34, 57 ) AS INTEGER ) AS col0, 30 AS col0
----
34
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4229
SELECT ALL + 60 AS col2, - ( + CASE WHEN - 25 > + 91 THEN - COALESCE ( 74, - CAST( 61 AS SIGNED ) + 31, - - 40 ) WHEN + 4 * + + 56 / 13 * - 15 + + CAST( NULLIF ( - 81, 5 ) AS DECIMAL ) NOT BETWEEN 58 + - 72 AND + COUNT( * ) THEN NULL END )
----
60
NULL

skipif mysql # not compatible
query II rowsort label-4229
SELECT ALL + 60 AS col2, - ( + CASE WHEN - 25 > + 91 THEN - COALESCE ( 74, - CAST ( 61 AS INTEGER ) + 31, - - 40 ) WHEN + 4 * + + 56 / 13 * - 15 + + CAST ( NULLIF ( - 81, 5 ) AS REAL ) NOT BETWEEN 58 + - 72 AND + COUNT ( * ) THEN NULL END )
----
60
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT + 81 * - NULLIF ( - 36, + + MAX( DISTINCT 2 ) ) + - 7 * 20
----
2776

skipif mysql # not compatible
query I rowsort label-4230
SELECT + 81 * - NULLIF ( - 36, + + MAX ( DISTINCT 2 ) ) + - 7 * 20
----
2776

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT + SUM( - - ( - 79 ) ) * + 64 + + - 76
----
-5132

skipif mysql # not compatible
query I rowsort label-4231
SELECT + SUM ( - - ( - 79 ) ) * + 64 + + - 76
----
-5132

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4232
SELECT + + COALESCE ( + 15, - CAST( NULL AS SIGNED ) ) AS col2, 74 AS col2
----
15
74

skipif mysql # not compatible
query II rowsort label-4232
SELECT + + COALESCE ( + 15, - CAST ( NULL AS INTEGER ) ) AS col2, 74 AS col2
----
15
74

query II rowsort
SELECT DISTINCT + + 29, 29
----
29
29

query I rowsort
SELECT DISTINCT 96 + - + 10 + - - 95 + + ( + ( 81 ) )
----
262

onlyif mysql # aggregate syntax: 
query II rowsort label-4235
SELECT ALL - 21 + + ( - - 59 ) - - - NULLIF ( - + ( - 55 ), 38 + - 12 * - - 95 ) AS col2, 15 * + NULLIF ( + CASE 43 WHEN + 46 THEN NULL WHEN + - SUM( + + 52 ) * 10 + 8 + + 74 THEN - COUNT( * ) / 96 + - 30 / - 88 WHEN - 20 + 63 THEN NULL ELSE NULL END, + 87 * - AVG ( 37 ) ) - + 4 * - 2
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-4235
SELECT ALL - 21 + + ( - - 59 ) - - - NULLIF ( - + ( - 55 ), 38 + - 12 * - - 95 ) AS col2, 15 * + NULLIF ( + CASE 43 WHEN + 46 THEN NULL WHEN + - SUM ( + + 52 ) * 10 + 8 + + 74 THEN - COUNT ( * ) / 96 + - 30 / - 88 WHEN - 20 + 63 THEN NULL ELSE NULL END, + 87 * - AVG ( 37 ) ) - + 4 * - 2
----
-17
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4236
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - + 14 + + ( 91 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4236
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - + 14 + + ( 91 ) AS col0
----
NULL

query I rowsort
SELECT - ( - + 9 ) * + 52 AS col0
----
468

query I rowsort
SELECT - + 44 col2
----
-44

query II rowsort
SELECT - - 31, + 39 AS col0
----
31
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT - + COUNT( ALL + 97 )
----
-1

skipif mysql # not compatible
query I rowsort label-4240
SELECT - + COUNT ( ALL + 97 )
----
-1

query I rowsort
SELECT + 53 + + 3
----
56

query I rowsort
SELECT + 30 + 87 * + - 83 + - + 12
----
-7203

query I rowsort
SELECT ALL NULLIF ( - + 92, + + 40 * - COALESCE ( 41, - COALESCE ( ( + - 9 ), + 53, - - 63 ) - 92 * + 85 / 36 * - 43 ) ) AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT ALL ( + ( - CASE + - COALESCE ( + CASE 68 WHEN + 44 + COUNT( * ) - + 2 THEN + 54 END, + + 5 - + 64 + 75 / - ( - 52 ) ) WHEN - 36 THEN + - 31 + + 59 END ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4244
SELECT ALL ( + ( - CASE + - COALESCE ( + CASE 68 WHEN + 44 + COUNT ( * ) - + 2 THEN + 54 END, + + 5 - + 64 + 75 / - ( - 52 ) ) WHEN - 36 THEN + - 31 + + 59 END ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4245
SELECT DISTINCT COUNT( 17 ) AS col1, - NULLIF ( + + 73, + 41 ) + - 34 AS col1
----
1
-107

skipif mysql # not compatible
query II rowsort label-4245
SELECT DISTINCT COUNT ( 17 ) AS col1, - NULLIF ( + + 73, + 41 ) + - 34 AS col1
----
1
-107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4246
SELECT DISTINCT + 17 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4246
SELECT DISTINCT + 17 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT - CASE + CASE MAX( DISTINCT - 2 ) WHEN MIN( DISTINCT 53 ) THEN + 41 ELSE + - 30 - COALESCE ( COUNT( * ), - COUNT( * ) ) * 51 * - ( - ( - 73 ) ) * + - 79 END WHEN + - 66 THEN COUNT( * ) END + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4247
SELECT - CASE + CASE MAX ( DISTINCT - 2 ) WHEN MIN ( DISTINCT 53 ) THEN + 41 ELSE + - 30 - COALESCE ( COUNT ( * ), - COUNT ( * ) ) * 51 * - ( - ( - 73 ) ) * + - 79 END WHEN + - 66 THEN COUNT ( * ) END + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4248
SELECT ALL CASE + MAX( DISTINCT - 96 ) WHEN + 67 THEN NULL WHEN + - CAST( NULL AS SIGNED ) + + 96 + - ( + - 31 ) * - + 25 THEN COUNT( * ) * + + ( 8 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4248
SELECT ALL CASE + MAX ( DISTINCT - 96 ) WHEN + 67 THEN NULL WHEN + - CAST ( NULL AS INTEGER ) + + 96 + - ( + - 31 ) * - + 25 THEN COUNT ( * ) * + + ( 8 ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4249
SELECT - COALESCE ( - - 16, + MIN( + + 14 ) + + 20 + - + 78 ) / + 48 + + CAST( NULL AS SIGNED ) * + + 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4249
SELECT - COALESCE ( - - 16, + MIN ( + + 14 ) + + 20 + - + 78 ) / + 48 + + CAST ( NULL AS INTEGER ) * + + 40 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4250
SELECT - CAST( NULL AS SIGNED ) * - 32 * - - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-4250
SELECT - CAST ( NULL AS INTEGER ) * - 32 * - - 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT DISTINCT + COALESCE ( - COUNT( * ), - - 20 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4251
SELECT DISTINCT + COALESCE ( - COUNT ( * ), - - 20 ) col0
----
-1

query I rowsort
SELECT DISTINCT 63 * 79
----
4977

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4253
SELECT DISTINCT - 55 * + CAST( NULL AS SIGNED ) / - - 24 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4253
SELECT DISTINCT - 55 * + CAST ( NULL AS INTEGER ) / - - 24 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT - 12 * - + COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-4254
SELECT - 12 * - + COUNT ( * )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT 80 * - 50 + ( - COUNT( * ) ) + + - 5 - + + COUNT( * )
----
-4007

skipif mysql # not compatible
query I rowsort label-4255
SELECT 80 * - 50 + ( - COUNT ( * ) ) + + - 5 - + + COUNT ( * )
----
-4007

onlyif mysql # aggregate syntax: 
query II rowsort label-4256
SELECT ALL + 89 * + 23 + 86 + - COUNT( * ) * 31 AS col2, COUNT( * )
----
2102
1

skipif mysql # not compatible
query II rowsort label-4256
SELECT ALL + 89 * + 23 + 86 + - COUNT ( * ) * 31 AS col2, COUNT ( * )
----
2102
1

query I rowsort
SELECT + + 32 * + 15 - - 35 + 17
----
532

onlyif mysql # aggregate syntax: 
query II rowsort label-4258
SELECT + ( - NULLIF ( - - 97, + + 63 ) ) AS col2, COUNT( * ) + + 39 AS col1
----
-97
40

skipif mysql # not compatible
query II rowsort label-4258
SELECT + ( - NULLIF ( - - 97, + + 63 ) ) AS col2, COUNT ( * ) + + 39 AS col1
----
-97
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT - COUNT( * ) + 63 + - ( 81 ) - CASE - 47 WHEN COALESCE ( - 2, - - SUM( DISTINCT - + 68 ) ) * 10 * + 64 THEN + + 29 * COUNT( * ) WHEN - SUM( + 86 ) THEN MIN( - ( - 27 ) ) * - 92 WHEN 25 THEN 0 ELSE NULL END * - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-4259
SELECT - COUNT ( * ) + 63 + - ( 81 ) - CASE - 47 WHEN COALESCE ( - 2, - - SUM ( DISTINCT - + 68 ) ) * 10 * + 64 THEN + + 29 * COUNT ( * ) WHEN - SUM ( + 86 ) THEN MIN ( - ( - 27 ) ) * - 92 WHEN 25 THEN 0 ELSE NULL END * - 84
----
NULL

query I rowsort
SELECT - 92 * + - NULLIF ( - 11, - + AVG ( DISTINCT + - 79 ) ) - - 82
----
-930

onlyif mysql # aggregate syntax: 
query II rowsort label-4261
SELECT 81 * COUNT( DISTINCT + - 13 ) + 33 / - CASE 41 WHEN + 72 - - + 12 - COUNT( * ) THEN + + 72 * - 65 - 23 * - + 41 * - 13 ELSE NULL END AS col2, 63 + + - 0 AS col2
----
NULL
63

skipif mysql # not compatible
query II rowsort label-4261
SELECT 81 * COUNT ( DISTINCT + - 13 ) + 33 / - CASE 41 WHEN + 72 - - + 12 - COUNT ( * ) THEN + + 72 * - 65 - 23 * - + 41 * - 13 ELSE NULL END AS col2, 63 + + - 0 AS col2
----
NULL
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4262
SELECT - 0 * 46 + + + 99 + + MAX( - - 7 ) DIV + + 74 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-4262
SELECT - 0 * 46 + + + 99 + + MAX ( - - 7 ) / + + 74 AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT - + COUNT( - 70 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4263
SELECT - + COUNT ( - 70 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4264
SELECT ALL - 59 * + 22 + + 23 + MIN( COALESCE ( + + 62, - 76 ) ) * CAST( NULL AS SIGNED ) * CAST( ( - - 77 ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4264
SELECT ALL - 59 * + 22 + + 23 + MIN ( COALESCE ( + + 62, - 76 ) ) * CAST ( NULL AS INTEGER ) * CAST ( ( - - 77 ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + - 29 * ( + + 1 ) AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT - - MAX( + 1 )
----
1

skipif mysql # not compatible
query I rowsort label-4266
SELECT - - MAX ( + 1 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT + 30 * - COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-4267
SELECT + 30 * - COUNT ( * )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT - COUNT( * ) + 53 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-4268
SELECT - COUNT ( * ) + 53 AS col0
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4269
SELECT ALL CAST( NULL AS SIGNED ) - 87 * + - 2 / - + 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4269
SELECT ALL CAST ( NULL AS INTEGER ) - 87 * + - 2 / - + 57 AS col2
----
NULL

query II rowsort
SELECT DISTINCT 51 col2, - 8 - - - 84 AS col1
----
51
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT CASE + 6 WHEN ( + + COUNT( * ) ) THEN NULL WHEN 64 THEN 58 END * + + 85 + 65 * 61 / - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4271
SELECT CASE + 6 WHEN ( + + COUNT ( * ) ) THEN NULL WHEN 64 THEN 58 END * + + 85 + 65 * 61 / - + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4272
SELECT - 10 AS col1, - CASE 51 WHEN + + CASE - COUNT( * ) WHEN + COUNT( * ) THEN + 49 WHEN 18 / + 28 * - + 69 * + 55 + + 82 - + 97 + COUNT( + 71 ) * + - 63 THEN NULL WHEN + 81 THEN NULL ELSE NULL END + 30 THEN NULL WHEN - + SUM( + 74 ) / + 51 + 29 THEN - 58 * + CAST( NULL AS SIGNED ) END
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-4272
SELECT - 10 AS col1, - CASE 51 WHEN + + CASE - COUNT ( * ) WHEN + COUNT ( * ) THEN + 49 WHEN 18 / + 28 * - + 69 * + 55 + + 82 - + 97 + COUNT ( + 71 ) * + - 63 THEN NULL WHEN + 81 THEN NULL ELSE NULL END + 30 THEN NULL WHEN - + SUM ( + 74 ) / + 51 + 29 THEN - 58 * + CAST ( NULL AS INTEGER ) END
----
-10
NULL

query I rowsort
SELECT 90 * + 75
----
6750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4274
SELECT 64 - - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4274
SELECT 64 - - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 6 - 47
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4276
SELECT 9 DIV COUNT( * ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-4276
SELECT 9 / COUNT ( * ) AS col2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4277
SELECT CAST( + + CAST( NULL AS DECIMAL ) AS SIGNED ) * + 29 * + COUNT( * ) + + 36 * - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-4277
SELECT CAST ( + + CAST ( NULL AS REAL ) AS INTEGER ) * + 29 * + COUNT ( * ) + + 36 * - 51
----
NULL

query I rowsort
SELECT ALL 40 * - 51
----
-2040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-4279
SELECT DISTINCT 57 * - CASE 47 WHEN - 35 THEN NULL WHEN - COUNT( + CAST( NULL AS SIGNED ) ) THEN NULL ELSE - 80 - - + CASE - 72 WHEN - + CAST( 40 AS DECIMAL ) + + - 89 THEN - - 66 ELSE 41 DIV 6 END END * 19
----
80142

skipif mysql # not compatible
query I rowsort label-4279
SELECT DISTINCT 57 * - CASE 47 WHEN - 35 THEN NULL WHEN - COUNT ( + CAST ( NULL AS INTEGER ) ) THEN NULL ELSE - 80 - - + CASE - 72 WHEN - + CAST ( 40 AS REAL ) + + - 89 THEN - - 66 ELSE 41 / 6 END END * 19
----
80142

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT 96 + + + 32 - 79 + ( - + COUNT( * ) ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-4280
SELECT 96 + + + 32 - 79 + ( - + COUNT ( * ) ) AS col1
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4281
SELECT DISTINCT - 31, - 83 + CASE + - 26 WHEN - + 23 * - + COUNT( - 11 ) THEN NULL WHEN + + 85 * 57 * + ( ( 27 ) ) * 91 * + + 10 THEN NULL WHEN - 49 * - 14 * + COUNT( * ) THEN + 98 ELSE - 94 DIV + 22 + 1 END + - 98 AS col2
----
-31
-184

skipif mysql # not compatible
query II rowsort label-4281
SELECT DISTINCT - 31, - 83 + CASE + - 26 WHEN - + 23 * - + COUNT ( - 11 ) THEN NULL WHEN + + 85 * 57 * + ( ( 27 ) ) * 91 * + + 10 THEN NULL WHEN - 49 * - 14 * + COUNT ( * ) THEN + 98 ELSE - 94 / + 22 + 1 END + - 98 AS col2
----
-31
-184

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4282
SELECT - 90 * - 91 * + 7 * + 38 + + + 6 AS col2, 94 * + + CAST( + + 52 AS SIGNED ) + + ( + 19 ) * + 3
----
2178546
4945

skipif mysql # not compatible
query II rowsort label-4282
SELECT - 90 * - 91 * + 7 * + 38 + + + 6 AS col2, 94 * + + CAST ( + + 52 AS INTEGER ) + + ( + 19 ) * + 3
----
2178546
4945

query I rowsort
SELECT DISTINCT + - ( + + 15 ) + - - 70 AS col1
----
55

query I rowsort
SELECT ALL - - 44 + + 49 AS col1
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-4285
SELECT 33 DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-4285
SELECT 33 / 67
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4286
SELECT 20 * - 90 * ( - 51 ) DIV + + ( - - 9 ) + + + 33 + - ( - 75 ) AS col0
----
10308

skipif mysql # not compatible
query I rowsort label-4286
SELECT 20 * - 90 * ( - 51 ) / + + ( - - 9 ) + + + 33 + - ( - 75 ) AS col0
----
10308

query I rowsort
SELECT 64 + + ( + + 11 ) AS col1
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4288
SELECT DISTINCT - - 32 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4288
SELECT DISTINCT - - 32 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - ( 97 ) * 57
----
-5529

query I rowsort
SELECT 10 + - 50
----
-40

query I rowsort
SELECT DISTINCT + + 2 + - 89 col0
----
-87

query I rowsort
SELECT ALL + 99 + + - 42 + - 87
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4293
SELECT ALL - + MAX( DISTINCT CAST( 15 AS SIGNED ) ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-4293
SELECT ALL - + MAX ( DISTINCT CAST ( 15 AS INTEGER ) ) AS col0
----
-15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4294
SELECT DISTINCT + + 27 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4294
SELECT DISTINCT + + 27 + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT MAX( + 96 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-4295
SELECT MAX ( + 96 ) AS col2
----
96

query II rowsort
SELECT ALL + 39 + - ( 67 ) AS col1, - 59
----
-28
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT - 85 * + - 47 * COUNT( * ) + - 18 * - 25
----
4445

skipif mysql # not compatible
query I rowsort label-4297
SELECT - 85 * + - 47 * COUNT ( * ) + - 18 * - 25
----
4445

query I rowsort
SELECT ( + 91 ) * 19 AS col2
----
1729

query II rowsort
SELECT ALL 46 AS col2, 59 AS col1
----
46
59

onlyif mysql # DIV for integer division: 
query I rowsort label-4300
SELECT ALL - 44 DIV - - 69
----
0

skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL - 44 / - - 69
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4301
SELECT DISTINCT 52, + CAST( NULL AS SIGNED ) AS col2
----
52
NULL

skipif mysql # not compatible
query II rowsort label-4301
SELECT DISTINCT 52, + CAST ( NULL AS INTEGER ) AS col2
----
52
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4302
SELECT DISTINCT - 35 * - ( COALESCE ( - NULLIF ( + - 1, + 71 ), COALESCE ( 18, + 95, 69 ) + NULLIF ( - - 92, + 86 ) - + 93 - - 47 + - + COUNT( * ) * + COUNT( * ) * - 18 DIV 20 * + 59 + + 67 * CAST( NULL AS SIGNED ) ) )
----
35

skipif mysql # not compatible
query I rowsort label-4302
SELECT DISTINCT - 35 * - ( COALESCE ( - NULLIF ( + - 1, + 71 ), COALESCE ( 18, + 95, 69 ) + NULLIF ( - - 92, + 86 ) - + 93 - - 47 + - + COUNT ( * ) * + COUNT ( * ) * - 18 / 20 * + 59 + + 67 * CAST ( NULL AS INTEGER ) ) )
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4303
SELECT DISTINCT 0 * - - CAST( - + 50 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4303
SELECT DISTINCT 0 * - - CAST ( - + 50 AS INTEGER ) AS col0
----
0

query I rowsort
SELECT ALL 58 * - 84 AS col1
----
-4872

onlyif mysql # DIV for integer division: 
query I rowsort label-4305
SELECT 54 DIV + - 52
----
-1

skipif mysql # not compatible
query I rowsort label-4305
SELECT 54 / + - 52
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4306
SELECT 90 * - + ( - CASE + COALESCE ( 17, + 62, - 57 * - 11, 62 * - + NULLIF ( + CASE COUNT( * ) WHEN + 56 THEN - + ( 84 ) ELSE NULL END, + 47 + + 58 / + 7 ) / CAST( NULL AS SIGNED ) * - 48 + - 74 * + 76 ) WHEN - AVG ( 17 ) * - COALESCE ( 93 * 84, - ( + COUNT( * ) ) * 93 ) THEN NULLIF ( 93, CASE - 66 WHEN + 60 THEN 37 ELSE + 70 END ) WHEN NULLIF ( - 6, 2 ) + 69 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4306
SELECT 90 * - + ( - CASE + COALESCE ( 17, + 62, - 57 * - 11, 62 * - + NULLIF ( + CASE COUNT ( * ) WHEN + 56 THEN - + ( 84 ) ELSE NULL END, + 47 + + 58 / + 7 ) / CAST ( NULL AS INTEGER ) * - 48 + - 74 * + 76 ) WHEN - AVG ( 17 ) * - COALESCE ( 93 * 84, - ( + COUNT ( * ) ) * 93 ) THEN NULLIF ( 93, CASE - 66 WHEN + 60 THEN 37 ELSE + 70 END ) WHEN NULLIF ( - 6, 2 ) + 69 THEN NULL END )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4307
SELECT - 13 col1, - 8 DIV 38 + 63 + + 65 * + 51 + 69
----
-13
3447

skipif mysql # not compatible
query II rowsort label-4307
SELECT - 13 col1, - 8 / 38 + 63 + + 65 * + 51 + 69
----
-13
3447

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT CASE 39 WHEN 55 THEN 40 ELSE + 39 * + COUNT( * ) + 94 END * + 0 * + + 95 * 15 * + + 3 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4308
SELECT CASE 39 WHEN 55 THEN 40 ELSE + 39 * + COUNT ( * ) + 94 END * + 0 * + + 95 * 15 * + + 3 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4309
SELECT 55 AS col0, + COUNT( * ) * - 18 * + ( - NULLIF ( - + 94, + + 88 ) ) + + 30 + - 7 col0
----
55
-1669

skipif mysql # not compatible
query II rowsort label-4309
SELECT 55 AS col0, + COUNT ( * ) * - 18 * + ( - NULLIF ( - + 94, + + 88 ) ) + + 30 + - 7 col0
----
55
-1669

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4310
SELECT ( - 36 ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4310
SELECT ( - 36 ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4311
SELECT 80 DIV SUM( DISTINCT + - 22 ) * + + 67 AS col0
----
-201

skipif mysql # not compatible
query I rowsort label-4311
SELECT 80 / SUM ( DISTINCT + - 22 ) * + + 67 AS col0
----
-201

query II rowsort
SELECT ALL 32, + 87 AS col1
----
32
87

query II rowsort
SELECT ALL 10 + + 88, 71 + - 18 AS col1
----
98
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4314
SELECT CAST( NULL AS SIGNED ) * 75
----
NULL

skipif mysql # not compatible
query I rowsort label-4314
SELECT CAST ( NULL AS INTEGER ) * 75
----
NULL

query I rowsort
SELECT ( 42 ) - - 46 * - + 81 * - 1 + 68
----
3836

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT MIN( DISTINCT - + 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-4316
SELECT MIN ( DISTINCT - + 44 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT COUNT( * ) * + 78 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-4317
SELECT COUNT ( * ) * + 78 AS col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4318
SELECT ALL + NULLIF ( 15, + COALESCE ( NULLIF ( + COUNT( * ), + CAST( NULL AS SIGNED ) + ( - CAST( - + 75 AS DECIMAL ) ) ), + 93 ) ) * + ( + 20 ) + - + 48 AS col2
----
252

skipif mysql # not compatible
query I rowsort label-4318
SELECT ALL + NULLIF ( 15, + COALESCE ( NULLIF ( + COUNT ( * ), + CAST ( NULL AS INTEGER ) + ( - CAST ( - + 75 AS REAL ) ) ), + 93 ) ) * + ( + 20 ) + - + 48 AS col2
----
252

query II rowsort
SELECT DISTINCT - - 56 * - 91 * 54 + 31, - 76 + - 34 AS col2
----
-275153
-110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4320
SELECT COALESCE ( - 28, CAST( NULL AS SIGNED ) ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-4320
SELECT COALESCE ( - 28, CAST ( NULL AS INTEGER ) ) AS col0
----
-28

query II rowsort
SELECT + 42 * - + 8, + 76 AS col0
----
-336
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT + - COALESCE ( + 20, + COUNT( DISTINCT 40 ), 62 )
----
-20

skipif mysql # not compatible
query I rowsort label-4322
SELECT + - COALESCE ( + 20, + COUNT ( DISTINCT 40 ), 62 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT - MAX( ALL 71 ) * - 42 + + - 51 + + ( 54 )
----
2985

skipif mysql # not compatible
query I rowsort label-4323
SELECT - MAX ( ALL 71 ) * - 42 + + - 51 + + ( 54 )
----
2985

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4324
SELECT ALL - 18 * - 97 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4324
SELECT ALL - 18 * - 97 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT DISTINCT + - MIN( DISTINCT + - 11 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-4325
SELECT DISTINCT + - MIN ( DISTINCT + - 11 ) AS col0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4326
SELECT - + 38 + - + 48 * ( + - CAST( - - 3 AS SIGNED ) ) AS col0
----
106

skipif mysql # not compatible
query I rowsort label-4326
SELECT - + 38 + - + 48 * ( + - CAST ( - - 3 AS INTEGER ) ) AS col0
----
106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4327
SELECT - 22 * CAST( NULL AS SIGNED ) * + 70 * + ( + 98 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4327
SELECT - 22 * CAST ( NULL AS INTEGER ) * + 70 * + ( + 98 ) col1
----
NULL

query II rowsort
SELECT ALL + 65 AS col0, 11
----
65
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT ALL + NULLIF ( 1, - 28 * + 27 + + - COUNT( * ) + - 99 + + NULLIF ( - + 76, COUNT( * ) * - 4 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL + NULLIF ( 1, - 28 * + 27 + + - COUNT ( * ) + - 99 + + NULLIF ( - + 76, COUNT ( * ) * - 4 ) )
----
1

query I rowsort
SELECT - 94 * + 94
----
-8836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4331
SELECT ALL CASE + - CASE + - COUNT( * ) WHEN 27 - 45 - - - 30 THEN NULL WHEN 32 / - 6 THEN - NULLIF ( - 77, + 88 * - 47 * COALESCE ( COUNT( * ), - 16 * + MIN( DISTINCT + - 22 ), 47, + - ( - 6 ) * + CAST( NULL AS SIGNED ) ) + + + 89 + + 99 * - 15 / - 61 ) ELSE NULL END WHEN + 15 + + 35 * - MIN( ALL ( ( 89 ) ) + - 20 ) THEN NULL ELSE + 31 * 71 END AS col1
----
2201

skipif mysql # not compatible
query I rowsort label-4331
SELECT ALL CASE + - CASE + - COUNT ( * ) WHEN 27 - 45 - - - 30 THEN NULL WHEN 32 / - 6 THEN - NULLIF ( - 77, + 88 * - 47 * COALESCE ( COUNT ( * ), - 16 * + MIN ( DISTINCT + - 22 ), 47, + - ( - 6 ) * + CAST ( NULL AS INTEGER ) ) + + + 89 + + 99 * - 15 / - 61 ) ELSE NULL END WHEN + 15 + + 35 * - MIN ( ALL ( ( 89 ) ) + - 20 ) THEN NULL ELSE + 31 * 71 END AS col1
----
2201

query I rowsort
SELECT DISTINCT NULLIF ( + 83, - 56 + - + 42 ) AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT DISTINCT COUNT( * ) + + 85
----
86

skipif mysql # not compatible
query I rowsort label-4333
SELECT DISTINCT COUNT ( * ) + + 85
----
86

query I rowsort
SELECT ALL 5 * + 36 * + ( + 99 ) AS col2
----
17820

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT ALL NULLIF ( 49, - 64 + + - 42 - MIN( + 51 ) ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-4335
SELECT ALL NULLIF ( 49, - 64 + + - 42 - MIN ( + 51 ) ) AS col1
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-4336
SELECT DISTINCT + 59 + - - 59 DIV - - 97 + 16 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-4336
SELECT DISTINCT + 59 + - - 59 / - - 97 + 16 AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT - COUNT( DISTINCT + - 25 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4337
SELECT - COUNT ( DISTINCT + - 25 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT ALL - MAX( ALL - 77 ) * - + 89
----
-6853

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL - MAX ( ALL - 77 ) * - + 89
----
-6853

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4339
SELECT + 80 DIV + ( + COUNT( * ) )
----
80

skipif mysql # not compatible
query I rowsort label-4339
SELECT + 80 / + ( + COUNT ( * ) )
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-4340
SELECT - COUNT( * ) - + + 8 AS col1, - 30 * - COUNT( * )
----
-9
30

skipif mysql # not compatible
query II rowsort label-4340
SELECT - COUNT ( * ) - + + 8 AS col1, - 30 * - COUNT ( * )
----
-9
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4341
SELECT ALL SUM( ALL 95 ) col1, CAST( 48 AS SIGNED ) col1
----
95
48

skipif mysql # not compatible
query II rowsort label-4341
SELECT ALL SUM ( ALL 95 ) col1, CAST ( 48 AS INTEGER ) col1
----
95
48

query II rowsort
SELECT + 24 - + 83, + 71 AS col0
----
-59
71

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4343
SELECT ALL + 54 * 10 + - - CAST( NULL AS SIGNED ) + - + 14 + - 30 AS col0, + 47 DIV ( ( + 35 ) ) + - 58 * + 56 * - 42 + + + 38 AS col1
----
NULL
136455

skipif mysql # not compatible
query II rowsort label-4343
SELECT ALL + 54 * 10 + - - CAST ( NULL AS INTEGER ) + - + 14 + - 30 AS col0, + 47 / ( ( + 35 ) ) + - 58 * + 56 * - 42 + + + 38 AS col1
----
NULL
136455

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT ALL COUNT( * ) + - 50 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-4344
SELECT ALL COUNT ( * ) + - 50 AS col1
----
-49

query I rowsort
SELECT ALL + - 51 col1
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-4346
SELECT DISTINCT + - 77 DIV - + 94 + + 60
----
60

skipif mysql # not compatible
query I rowsort label-4346
SELECT DISTINCT + - 77 / - + 94 + + 60
----
60

query I rowsort
SELECT ALL 34 * - 77
----
-2618

query II rowsort
SELECT ( - + 53 ) AS col1, + 95
----
-53
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4349
SELECT + - COUNT( * ) + - 56 DIV + 57 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4349
SELECT + - COUNT ( * ) + - 56 / + 57 AS col1
----
-1

query II rowsort
SELECT DISTINCT COALESCE ( + 84, + + 61 ) * - - 63 + - + 91, 46 AS col1
----
5201
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT DISTINCT + MIN( 38 ) * - CASE + ( - 44 ) WHEN - 38 THEN 91 WHEN + 83 THEN + 94 - + 2 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4351
SELECT DISTINCT + MIN ( 38 ) * - CASE + ( - 44 ) WHEN - 38 THEN 91 WHEN + 83 THEN + 94 - + 2 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 76 * + 41 - + ( 87 )
----
3029

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT DISTINCT + COUNT( * ) * - COALESCE ( + MAX( - - 42 ), + + 75 )
----
-42

skipif mysql # not compatible
query I rowsort label-4353
SELECT DISTINCT + COUNT ( * ) * - COALESCE ( + MAX ( - - 42 ), + + 75 )
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-4354
SELECT ALL - 6 DIV 36 - 99
----
-99

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL - 6 / 36 - 99
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT - MIN( DISTINCT 77 ) * + - 3 AS col1
----
231

skipif mysql # not compatible
query I rowsort label-4355
SELECT - MIN ( DISTINCT 77 ) * + - 3 AS col1
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT ALL + COALESCE ( NULLIF ( - 87, COUNT( * ) ), + 7 )
----
-87

skipif mysql # not compatible
query I rowsort label-4356
SELECT ALL + COALESCE ( NULLIF ( - 87, COUNT ( * ) ), + 7 )
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4357
SELECT + COUNT( * ) - 20 * 95 + - 30 * ( - CAST( 31 AS SIGNED ) ) * - COUNT( * ) * + MIN( DISTINCT + 67 ) AS col1
----
-64209

skipif mysql # not compatible
query I rowsort label-4357
SELECT + COUNT ( * ) - 20 * 95 + - 30 * ( - CAST ( 31 AS INTEGER ) ) * - COUNT ( * ) * + MIN ( DISTINCT + 67 ) AS col1
----
-64209

query I rowsort
SELECT COALESCE ( + - 63, + 83 * - 15 )
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4359
SELECT DISTINCT NULLIF ( + 91, CAST( NULL AS SIGNED ) + - 24 + ( 3 ) + + + 86 + 71 + NULLIF ( + 92, - 98 * COUNT( * ) ) * 62 * + 92 * + - COUNT( * ) ) * + 78 + COUNT( * ) + + 12 * + - 60 * + + 93
----
-59861

skipif mysql # not compatible
query I rowsort label-4359
SELECT DISTINCT NULLIF ( + 91, CAST ( NULL AS INTEGER ) + - 24 + ( 3 ) + + + 86 + 71 + NULLIF ( + 92, - 98 * COUNT ( * ) ) * 62 * + 92 * + - COUNT ( * ) ) * + 78 + COUNT ( * ) + + 12 * + - 60 * + + 93
----
-59861

query I rowsort
SELECT ALL 35 * + ( - 70 ) + - 70 + + + 9
----
-2511

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT ALL - 97 * COUNT( * ) * + - 11 + COUNT( * ) + + 13 * - 12 + 9 + + 13 * - 25 * + MIN( 45 )
----
-13704

skipif mysql # not compatible
query I rowsort label-4361
SELECT ALL - 97 * COUNT ( * ) * + - 11 + COUNT ( * ) + + 13 * - 12 + 9 + + 13 * - 25 * + MIN ( 45 )
----
-13704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4362
SELECT DISTINCT - COUNT( * ) * - COUNT( DISTINCT CAST( 80 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-4362
SELECT DISTINCT - COUNT ( * ) * - COUNT ( DISTINCT CAST ( 80 AS INTEGER ) )
----
1

query II rowsort
SELECT DISTINCT 78 * - + 96 + 77 AS col0, - 42
----
-7411
-42

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4364
SELECT ALL CAST( NULL AS DECIMAL ) AS col0, 10 DIV 26 * - 87 * - + 47
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4364
SELECT ALL CAST ( NULL AS REAL ) AS col0, 10 / 26 * - 87 * - + 47
----
NULL
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4365
SELECT - 5 + + 65 * COUNT( * ) AS col0, - 51 col0
----
60
-51

skipif mysql # not compatible
query II rowsort label-4365
SELECT - 5 + + 65 * COUNT ( * ) AS col0, - 51 col0
----
60
-51

query II rowsort
SELECT DISTINCT - 10 + - - ( 47 ) AS col2, 41 * - 56 AS col0
----
37
-2296

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT DISTINCT - 1 * - COALESCE ( + - 96, - + 88 * - COUNT( * ) - 59, + 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-4367
SELECT DISTINCT - 1 * - COALESCE ( + - 96, - + 88 * - COUNT ( * ) - 59, + 96 )
----
-96

query I rowsort
SELECT - 40 * + 34 col0
----
-1360

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4369
SELECT - CAST( NULL AS DECIMAL ) + + 8 + - ( - - CAST( + 28 AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4369
SELECT - CAST ( NULL AS REAL ) + + 8 + - ( - - CAST ( + 28 AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4370
SELECT - 4 + + 80 + - CAST( + 84 AS SIGNED ) + + 8 * - - 30
----
232

skipif mysql # not compatible
query I rowsort label-4370
SELECT - 4 + + 80 + - CAST ( + 84 AS INTEGER ) + + 8 * - - 30
----
232

query II rowsort
SELECT - + 64 col2, + 98 * 85 * 28 AS col0
----
-64
233240

onlyif mysql # DIV for integer division: 
query I rowsort label-4372
SELECT DISTINCT - - 95 DIV - 11
----
-8

skipif mysql # not compatible
query I rowsort label-4372
SELECT DISTINCT - - 95 / - 11
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT DISTINCT + 76 - NULLIF ( ( 96 ), - MIN( + 55 ) - - - 39 ) col0
----
-20

skipif mysql # not compatible
query I rowsort label-4373
SELECT DISTINCT + 76 - NULLIF ( ( 96 ), - MIN ( + 55 ) - - - 39 ) col0
----
-20

query I rowsort
SELECT ALL - 12 * + 94 AS col2
----
-1128

query I rowsort
SELECT ALL + + 45 - + - 81 AS col2
----
126

onlyif mysql # aggregate syntax: 
query II rowsort label-4376
SELECT ALL + COUNT( * ) AS col0, + 77 * + + ( 12 )
----
1
924

skipif mysql # not compatible
query II rowsort label-4376
SELECT ALL + COUNT ( * ) AS col0, + 77 * + + ( 12 )
----
1
924

query I rowsort
SELECT - + ( - + 75 ) AS col0
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4378
SELECT - - COUNT( DISTINCT + + 65 ) * - 12 AS col1, 63 * 33 * 38
----
-12
79002

skipif mysql # not compatible
query II rowsort label-4378
SELECT - - COUNT ( DISTINCT + + 65 ) * - 12 AS col1, 63 * 33 * 38
----
-12
79002

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT + + 57 * - + 70 + + SUM( DISTINCT + 93 ) AS col1
----
-3897

skipif mysql # not compatible
query I rowsort label-4379
SELECT + + 57 * - + 70 + + SUM ( DISTINCT + 93 ) AS col1
----
-3897

query I rowsort
SELECT ALL + ( - 60 ) AS col1
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-4381
SELECT - 62 DIV - 71 + + 86 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-4381
SELECT - 62 / - 71 + + 86 AS col1
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-4382
SELECT 64 DIV - 39
----
-1

skipif mysql # not compatible
query I rowsort label-4382
SELECT 64 / - 39
----
-1

query I rowsort
SELECT 67 + - 23 * + 34 * - 2
----
1631

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4384
SELECT ALL 7 - - - COUNT( * ) * + - 51 * + + 26 - 15 DIV + 71 * - + 27 + + 58
----
1391

skipif mysql # not compatible
query I rowsort label-4384
SELECT ALL 7 - - - COUNT ( * ) * + - 51 * + + 26 - 15 / + 71 * - + 27 + + 58
----
1391

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4385
SELECT - 95 * + 47 * + - CASE - + 28 WHEN + 2 THEN + - 26 * - 77 * + + 25 + - ( - - 42 ) * - 7 WHEN 36 + + 80 - + 84 + - 27 THEN NULL END / CAST( NULL AS SIGNED ) + - + COUNT( * ) + 7 AS col2, + 19 * 62
----
NULL
1178

skipif mysql # not compatible
query II rowsort label-4385
SELECT - 95 * + 47 * + - CASE - + 28 WHEN + 2 THEN + - 26 * - 77 * + + 25 + - ( - - 42 ) * - 7 WHEN 36 + + 80 - + 84 + - 27 THEN NULL END / CAST ( NULL AS INTEGER ) + - + COUNT ( * ) + 7 AS col2, + 19 * 62
----
NULL
1178

query I rowsort
SELECT ALL - COALESCE ( + + NULLIF ( + 30, - + 73 ), + ( + + 30 ), + + 92 ) AS col2
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-4387
SELECT 36 - + COUNT( * ) + + 31, NULLIF ( + 21, - + COUNT( * ) ) AS col0
----
66
21

skipif mysql # not compatible
query II rowsort label-4387
SELECT 36 - + COUNT ( * ) + + 31, NULLIF ( + 21, - + COUNT ( * ) ) AS col0
----
66
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT DISTINCT 77 * MAX( - 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4388
SELECT DISTINCT 77 * MAX ( - 0 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT ALL 35 + 23 * + MIN( - + 41 ) * + + 6 + + 3 col2
----
-5620

skipif mysql # not compatible
query I rowsort label-4389
SELECT ALL 35 + 23 * + MIN ( - + 41 ) * + + 6 + + 3 col2
----
-5620

query I rowsort
SELECT ALL 29 * - - 6 AS col1
----
174

query I rowsort
SELECT DISTINCT 41 + 66 AS col2
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4392
SELECT DISTINCT 23 + - - 70 + COUNT( * ) - 48 + - 37 DIV - - CAST( - 66 AS SIGNED ) * - 58 * - - 15 AS col2, + 71 AS col1
----
46
71

skipif mysql # not compatible
query II rowsort label-4392
SELECT DISTINCT 23 + - - 70 + COUNT ( * ) - 48 + - 37 / - - CAST ( - 66 AS INTEGER ) * - 58 * - - 15 AS col2, + 71 AS col1
----
46
71

query I rowsort
SELECT ALL 69 + + 48
----
117

query I rowsort
SELECT DISTINCT 87 + 12 AS col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4395
SELECT ALL CASE + COUNT( * ) WHEN - 70 + - + COUNT( * ) THEN + + COUNT( - 85 ) WHEN + 94 + + + ( + 16 ) * + + CAST( + + NULLIF ( 3, + - 45 ) AS SIGNED ) + 84 + + 95 / + ( 80 ) * + 86 THEN 53 ELSE NULL END / - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-4395
SELECT ALL CASE + COUNT ( * ) WHEN - 70 + - + COUNT ( * ) THEN + + COUNT ( - 85 ) WHEN + 94 + + + ( + 16 ) * + + CAST ( + + NULLIF ( 3, + - 45 ) AS INTEGER ) + 84 + + 95 / + ( 80 ) * + 86 THEN 53 ELSE NULL END / - 98
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4396
SELECT CAST( NULL AS SIGNED ) / 55
----
NULL

skipif mysql # not compatible
query I rowsort label-4396
SELECT CAST ( NULL AS INTEGER ) / 55
----
NULL

query I rowsort
SELECT ALL + 24 * 90 AS col2
----
2160

query I rowsort
SELECT ALL 86 - - 59
----
145

query I rowsort
SELECT DISTINCT 29 - ( 88 ) AS col1
----
-59

query I rowsort
SELECT + 72 + + 23 + 58
----
153

query I rowsort
SELECT + 77 * + + 60 * - 16 AS col1
----
-73920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4402
SELECT ALL - MIN( DISTINCT 18 ) * - + COUNT( * ) DIV + ( + 84 )
----
0

skipif mysql # not compatible
query I rowsort label-4402
SELECT ALL - MIN ( DISTINCT 18 ) * - + COUNT ( * ) / + ( + 84 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT - SUM( + 93 ) + 64 * - 66
----
-4317

skipif mysql # not compatible
query I rowsort label-4403
SELECT - SUM ( + 93 ) + 64 * - 66
----
-4317

onlyif mysql # aggregate syntax: 
query II rowsort label-4404
SELECT ALL + + COUNT( * ) * + COUNT( * ) * - 26 * + 60 AS col0, + 73 * 51
----
-1560
3723

skipif mysql # not compatible
query II rowsort label-4404
SELECT ALL + + COUNT ( * ) * + COUNT ( * ) * - 26 * + 60 AS col0, + 73 * 51
----
-1560
3723

query I rowsort
SELECT 43 + - 53
----
-10

query I rowsort
SELECT - 39 + + 6 AS col2
----
-33

query I rowsort
SELECT - 52 + - 89 AS col1
----
-141

query I rowsort
SELECT ALL NULLIF ( + 95, - 8 * + ( - 17 ) ) col1
----
95

query II rowsort
SELECT + 79 * + - 75 col0, + 51 * + + ( - + 52 ) AS col0
----
-5925
-2652

query II rowsort
SELECT ALL + 39 * - 33, 38 AS col0
----
-1287
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT - 46 * + 92 + - COUNT( * ) * - 77 AS col0
----
-4155

skipif mysql # not compatible
query I rowsort label-4411
SELECT - 46 * + 92 + - COUNT ( * ) * - 77 AS col0
----
-4155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4412
SELECT ALL + + CAST( 87 AS SIGNED ) * - 33 AS col1
----
-2871

skipif mysql # not compatible
query I rowsort label-4412
SELECT ALL + + CAST ( 87 AS INTEGER ) * - 33 AS col1
----
-2871

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4413
SELECT + - NULLIF ( 68, - - ( - 23 ) ) DIV - ( + - ( + 44 ) ) * + COUNT( * ) + - - ( - 75 ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-4413
SELECT + - NULLIF ( 68, - - ( - 23 ) ) / - ( + - ( + 44 ) ) * + COUNT ( * ) + - - ( - 75 ) AS col0
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4414
SELECT ALL + CAST( - 25 AS SIGNED ) + - - 31
----
6

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL + CAST ( - 25 AS INTEGER ) + - - 31
----
6

query I rowsort
SELECT ALL - - 63 + 17 col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT 99 + COUNT( * ) AS col2
----
100

skipif mysql # not compatible
query I rowsort label-4416
SELECT 99 + COUNT ( * ) AS col2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT DISTINCT - 45 + - MIN( 96 ) AS col0
----
-141

skipif mysql # not compatible
query I rowsort label-4417
SELECT DISTINCT - 45 + - MIN ( 96 ) AS col0
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT ALL COALESCE ( + COUNT( * ), + 26, - ( 18 ) ) + - - 68 + 82 * + 91 * + 26 * + - 88 + ( - - 6 ) - - + 94 AS col1
----
-17072887

skipif mysql # not compatible
query I rowsort label-4418
SELECT ALL COALESCE ( + COUNT ( * ), + 26, - ( 18 ) ) + - - 68 + 82 * + 91 * + 26 * + - 88 + ( - - 6 ) - - + 94 AS col1
----
-17072887

query II rowsort
SELECT 51, + 7 AS col2
----
51
7

query I rowsort
SELECT ALL 82 + - - ( + 28 )
----
110

query II rowsort
SELECT ALL - 34 AS col2, - 20
----
-34
-20

query I rowsort
SELECT DISTINCT - COALESCE ( + 93, + 97 ) AS col2
----
-93

query I rowsort
SELECT 73 * + + 50 * - 78
----
-284700

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT COUNT( * ) * - + 87 AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-4424
SELECT COUNT ( * ) * - + 87 AS col2
----
-87

query I rowsort
SELECT ALL 46 + + + 64 AS col2
----
110

onlyif mysql # aggregate syntax: 
query II rowsort label-4426
SELECT MAX( + - 48 ) - - + 68 + + + 83 * + NULLIF ( - + 88, + COALESCE ( 7, - 54 - + 9 ) ), + 71 AS col0
----
-7284
71

skipif mysql # not compatible
query II rowsort label-4426
SELECT MAX ( + - 48 ) - - + 68 + + + 83 * + NULLIF ( - + 88, + COALESCE ( 7, - 54 - + 9 ) ), + 71 AS col0
----
-7284
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4427
SELECT ALL COALESCE ( + ( COUNT( * ) ), - 88 + - - 80, - 7 + - + 75 ) * - 3 - + COUNT( * ) DIV 89 AS col2, + 0 * - + 31 - + 90 AS col2, - - 28 + + 35 AS col2
----
-3
-90
63

skipif mysql # not compatible
query III rowsort label-4427
SELECT ALL COALESCE ( + ( COUNT ( * ) ), - 88 + - - 80, - 7 + - + 75 ) * - 3 - + COUNT ( * ) / 89 AS col2, + 0 * - + 31 - + 90 AS col2, - - 28 + + 35 AS col2
----
-3
-90
63

query II rowsort
SELECT 56 AS col0, 82
----
56
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT DISTINCT MIN( DISTINCT - 6 ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-4429
SELECT DISTINCT MIN ( DISTINCT - 6 ) AS col2
----
-6

query I rowsort
SELECT DISTINCT ( + + 77 ) * - 7 AS col1
----
-539

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT ( MAX( + 97 ) ) * + 56
----
5432

skipif mysql # not compatible
query I rowsort label-4431
SELECT ( MAX ( + 97 ) ) * + 56
----
5432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4432
SELECT DISTINCT ( ( + ( + + CASE + - 64 WHEN + 69 * - COUNT( * ) THEN NULL WHEN - 58 * 87 * + - COUNT( * ) THEN - - COUNT( * ) + + + 51 + - 79 ELSE NULL END ) ) ) - + - 35 + 15 AS col0, - 17 * - + COALESCE ( + 25, + - 99, - - 57 + - CAST( NULL AS SIGNED ) + MIN( ALL 94 ) + + CAST( - ( + ( 59 ) ) AS SIGNED ), + NULLIF ( + 5, 74 - 61 / + 33 ) ) * + 17
----
NULL
7225

skipif mysql # not compatible
query II rowsort label-4432
SELECT DISTINCT ( ( + ( + + CASE + - 64 WHEN + 69 * - COUNT ( * ) THEN NULL WHEN - 58 * 87 * + - COUNT ( * ) THEN - - COUNT ( * ) + + + 51 + - 79 ELSE NULL END ) ) ) - + - 35 + 15 AS col0, - 17 * - + COALESCE ( + 25, + - 99, - - 57 + - CAST ( NULL AS INTEGER ) + MIN ( ALL 94 ) + + CAST ( - ( + ( 59 ) ) AS INTEGER ), + NULLIF ( + 5, 74 - 61 / + 33 ) ) * + 17
----
NULL
7225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4433
SELECT + CAST( - 49 AS SIGNED ) - 94 AS col2
----
-143

skipif mysql # not compatible
query I rowsort label-4433
SELECT + CAST ( - 49 AS INTEGER ) - 94 AS col2
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT - SUM( ALL + 53 ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-4434
SELECT - SUM ( ALL + 53 ) AS col0
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-4435
SELECT 62 AS col0, - COUNT( * ) AS col2
----
62
-1

skipif mysql # not compatible
query II rowsort label-4435
SELECT 62 AS col0, - COUNT ( * ) AS col2
----
62
-1

query I rowsort
SELECT + 28 + - 69
----
-41

query I rowsort
SELECT + - 29 * + - 26 - 69 AS col2
----
685

query I rowsort
SELECT + + 54 * + 98 + + - 75 AS col2
----
5217

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4439
SELECT ALL CASE - + 3 WHEN - 57 THEN + 23 WHEN - 87 * + CAST( NULL AS SIGNED ) * SUM( DISTINCT 27 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4439
SELECT ALL CASE - + 3 WHEN - 57 THEN + 23 WHEN - 87 * + CAST ( NULL AS INTEGER ) * SUM ( DISTINCT 27 ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL - + 3 + - 72 - 70
----
-145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4441
SELECT ALL + MAX( DISTINCT 28 ) * + + CAST( - 28 AS SIGNED ) + 16
----
-768

skipif mysql # not compatible
query I rowsort label-4441
SELECT ALL + MAX ( DISTINCT 28 ) * + + CAST ( - 28 AS INTEGER ) + 16
----
-768

query I rowsort
SELECT + 17 + - 42
----
-25

query I rowsort
SELECT + + 2 - + ( + - 62 ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT + COUNT( * ) * + 45 + - - 60 col2
----
105

skipif mysql # not compatible
query I rowsort label-4444
SELECT + COUNT ( * ) * + 45 + - - 60 col2
----
105

query I rowsort
SELECT NULLIF ( + 69, ( - 90 ) )
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4446
SELECT DISTINCT - 48 * + CAST( + ( - 68 ) AS SIGNED ) * - 3 + + 80
----
-9712

skipif mysql # not compatible
query I rowsort label-4446
SELECT DISTINCT - 48 * + CAST ( + ( - 68 ) AS INTEGER ) * - 3 + + 80
----
-9712

query I rowsort
SELECT DISTINCT 54 * - 98 + - 49 AS col0
----
-5341

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4448
SELECT ALL + NULLIF ( - 14, - MAX( 35 ) * 66 + CASE + 78 WHEN + 2 - + 20 THEN 38 + + CAST( + 56 AS SIGNED ) ELSE NULL END * 58 )
----
-14

skipif mysql # not compatible
query I rowsort label-4448
SELECT ALL + NULLIF ( - 14, - MAX ( 35 ) * 66 + CASE + 78 WHEN + 2 - + 20 THEN 38 + + CAST ( + 56 AS INTEGER ) ELSE NULL END * 58 )
----
-14

query II rowsort
SELECT NULLIF ( 33, + - 57 ) * - 37 * + 82 + - 52 + - - 27 AS col1, - 86 AS col1
----
-100147
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT - 64 + + + MAX( DISTINCT + 62 )
----
-2

skipif mysql # not compatible
query I rowsort label-4450
SELECT - 64 + + + MAX ( DISTINCT + 62 )
----
-2

query I rowsort
SELECT - 76 * 74
----
-5624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4452
SELECT ALL - COUNT( * ) * + 61 DIV - 97 - + 44 AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-4452
SELECT ALL - COUNT ( * ) * + 61 / - 97 - + 44 AS col2
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4453
SELECT COALESCE ( + 49, + - COUNT( * ) - + 51 + - - MAX( DISTINCT - 23 ) DIV - 86, + - 50 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-4453
SELECT COALESCE ( + 49, + - COUNT ( * ) - + 51 + - - MAX ( DISTINCT - 23 ) / - 86, + - 50 ) AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT - 28 + + SUM( DISTINCT + + 68 ) * - 83
----
-5672

skipif mysql # not compatible
query I rowsort label-4454
SELECT - 28 + + SUM ( DISTINCT + + 68 ) * - 83
----
-5672

query I rowsort
SELECT 60 * - + 60 - - 1 + 39 - 85
----
-3645

query I rowsort
SELECT - 46 * + 10 AS col2
----
-460

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT DISTINCT - 51 * MAX( ALL - 83 )
----
4233

skipif mysql # not compatible
query I rowsort label-4457
SELECT DISTINCT - 51 * MAX ( ALL - 83 )
----
4233

query I rowsort
SELECT ALL 78 * - + 98 - + - 97 * - 78 * + 81
----
-620490

query II rowsort
SELECT COALESCE ( 14, + + 59, + - 40 ), + 84 col0
----
14
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4460
SELECT 69 * - 74 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4460
SELECT 69 * - 74 + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + 53 AS col0, + 72
----
53
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT DISTINCT - COUNT( * ) * + + 24 - 45 * - + 5 * - COUNT( * ) + + 89 * - - 38 * + MAX( ALL - 67 )
----
-226843

skipif mysql # not compatible
query I rowsort label-4462
SELECT DISTINCT - COUNT ( * ) * + + 24 - 45 * - + 5 * - COUNT ( * ) + + 89 * - - 38 * + MAX ( ALL - 67 )
----
-226843

query I rowsort
SELECT ALL + ( - + 70 ) AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT DISTINCT + MAX( - 33 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-4464
SELECT DISTINCT + MAX ( - 33 ) AS col0
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-4465
SELECT + 34, - ( + 99 ) * - 85 * + COUNT( * ) AS col1
----
34
8415

skipif mysql # not compatible
query II rowsort label-4465
SELECT + 34, - ( + 99 ) * - 85 * + COUNT ( * ) AS col1
----
34
8415

onlyif mysql # aggregate syntax: 
query II rowsort label-4466
SELECT ALL + NULLIF ( + COUNT( DISTINCT + 40 ), + ( - ( - + 59 ) ) ) col1, 22 * - + 84
----
1
-1848

skipif mysql # not compatible
query II rowsort label-4466
SELECT ALL + NULLIF ( + COUNT ( DISTINCT + 40 ), + ( - ( - + 59 ) ) ) col1, 22 * - + 84
----
1
-1848

query I rowsort
SELECT - - 33 + + 20 AS col0
----
53

query III rowsort
SELECT 58 AS col2, 96 + - 94 * - 19 AS col1, - - 26 AS col1
----
58
1882
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT ALL - COUNT( - + 45 ) * + 10 * - + CASE 13 WHEN + COUNT( * ) THEN NULL WHEN NULLIF ( 78, 41 * - 70 * - 41 * + 23 + - - ( - 93 ) * NULLIF ( 1, + 63 ) - - - 70 + 86 + + COUNT( - 26 ) * + 60 + + ( - COUNT( * ) ) * 26 ) THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4469
SELECT ALL - COUNT ( - + 45 ) * + 10 * - + CASE 13 WHEN + COUNT ( * ) THEN NULL WHEN NULLIF ( 78, 41 * - 70 * - 41 * + 23 + - - ( - 93 ) * NULLIF ( 1, + 63 ) - - - 70 + 86 + + COUNT ( - 26 ) * + 60 + + ( - COUNT ( * ) ) * 26 ) THEN COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 34 * + 85 AS col1
----
2890

query I rowsort
SELECT ALL 74 + 46 * - + 59 AS col0
----
-2640

query I rowsort
SELECT + 57 + - 51 * + + 31 - - 39 * - 96
----
-5268

query II rowsort
SELECT - - 11 AS col2, 63 AS col1
----
11
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4474
SELECT - ( + NULLIF ( - 32, MIN( + + 11 ) ) ) DIV + 57
----
0

skipif mysql # not compatible
query I rowsort label-4474
SELECT - ( + NULLIF ( - 32, MIN ( + + 11 ) ) ) / + 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT + + COUNT( * ) + + 16
----
17

skipif mysql # not compatible
query I rowsort label-4475
SELECT + + COUNT ( * ) + + 16
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT ALL + COUNT( * ) + - COUNT( * ) * 24 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-4476
SELECT ALL + COUNT ( * ) + - COUNT ( * ) * 24 AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT NULLIF ( - + COUNT( * ), - 65 / + COUNT( * ) * - - ( 63 ) + - 9 )
----
-1

skipif mysql # not compatible
query I rowsort label-4477
SELECT NULLIF ( - + COUNT ( * ), - 65 / + COUNT ( * ) * - - ( 63 ) + - 9 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4478
SELECT + - CAST( NULL AS SIGNED ) + + 47 * + - 33 - + 31 AS col2, + 4 AS col2
----
NULL
4

skipif mysql # not compatible
query II rowsort label-4478
SELECT + - CAST ( NULL AS INTEGER ) + + 47 * + - 33 - + 31 AS col2, + 4 AS col2
----
NULL
4

query I rowsort
SELECT + - 32 + 15
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4480
SELECT - 64 AS col0, - 39 + - + 31 + - + 92 DIV + COUNT( * )
----
-64
-162

skipif mysql # not compatible
query II rowsort label-4480
SELECT - 64 AS col0, - 39 + - + 31 + - + 92 / + COUNT ( * )
----
-64
-162

query I rowsort
SELECT - ( - ( + 40 ) )
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-4482
SELECT + + 57 + 65 + - 55 DIV - + 77 AS col2
----
122

skipif mysql # not compatible
query I rowsort label-4482
SELECT + + 57 + 65 + - 55 / - + 77 AS col2
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT - 7 + + + 42 * + - ( + - 93 ) + 53 * - 9 + - COUNT( * ) + ( - 36 ) + + COUNT( * )
----
3386

skipif mysql # not compatible
query I rowsort label-4483
SELECT - 7 + + + 42 * + - ( + - 93 ) + 53 * - 9 + - COUNT ( * ) + ( - 36 ) + + COUNT ( * )
----
3386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4484
SELECT ALL CAST( NULL AS SIGNED ) AS col1, 30 DIV 77 DIV ( NULLIF ( - SUM( + 53 ), + 67 * - 77 ) )
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4484
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, 30 / 77 / ( NULLIF ( - SUM ( + 53 ), + 67 * - 77 ) )
----
NULL
0

query I rowsort
SELECT ALL 20 + - + 5 * 74 + - - 17 - + 29
----
-362

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4486
SELECT DISTINCT COALESCE ( + - 73, - CASE - NULLIF ( + 94, AVG ( - - 23 ) DIV + + 91 * - AVG ( ALL - - 90 ) ) WHEN - - 47 THEN + COUNT( * ) WHEN 56 THEN NULL WHEN + COUNT( * ) THEN - COUNT( * ) * - 1 * 16 ELSE NULL END * - COALESCE ( + 14, - - CAST( NULL AS SIGNED ) + - - COUNT( * ) * + 71 ) * + 67 + - SUM( ALL CAST( NULL AS SIGNED ) ) + - COUNT( 49 ) * 75 DIV - COUNT( * ), - 61 DIV COUNT( * ) )
----
-73

skipif mysql # not compatible
query I rowsort label-4486
SELECT DISTINCT COALESCE ( + - 73, - CASE - NULLIF ( + 94, AVG ( - - 23 ) / + + 91 * - AVG ( ALL - - 90 ) ) WHEN - - 47 THEN + COUNT ( * ) WHEN 56 THEN NULL WHEN + COUNT ( * ) THEN - COUNT ( * ) * - 1 * 16 ELSE NULL END * - COALESCE ( + 14, - - CAST ( NULL AS INTEGER ) + - - COUNT ( * ) * + 71 ) * + 67 + - SUM ( ALL CAST ( NULL AS INTEGER ) ) + - COUNT ( 49 ) * 75 / - COUNT ( * ), - 61 / COUNT ( * ) )
----
-73

query I rowsort
SELECT ALL - 96 + + 61 * - 46 AS col0
----
-2902

onlyif mysql # DIV for integer division: 
query I rowsort label-4488
SELECT DISTINCT 18 DIV + 52 * + 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4488
SELECT DISTINCT 18 / + 52 * + 75 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT + 44 * + COUNT( * ) + CASE + + 13 WHEN - 95 + + + 89 + 34 * 34 THEN + - COALESCE ( - 85, - 99, - 44 * 76 ) WHEN + AVG ( ALL - 33 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4489
SELECT + 44 * + COUNT ( * ) + CASE + + 13 WHEN - 95 + + + 89 + 34 * 34 THEN + - COALESCE ( - 85, - 99, - 44 * 76 ) WHEN + AVG ( ALL - 33 ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4490
SELECT 64 DIV - - 56 + - COUNT( * ) * - 13 * 35 AS col0
----
456

skipif mysql # not compatible
query I rowsort label-4490
SELECT 64 / - - 56 + - COUNT ( * ) * - 13 * 35 AS col0
----
456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4491
SELECT ALL 62 DIV 93 - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4491
SELECT ALL 62 / 93 - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4492
SELECT CAST( - 8 AS SIGNED ) AS col2, + COUNT( * )
----
-8
1

skipif mysql # not compatible
query II rowsort label-4492
SELECT CAST ( - 8 AS INTEGER ) AS col2, + COUNT ( * )
----
-8
1

query I rowsort
SELECT ALL 47 * + 9 * + - 73 AS col0
----
-30879

query I rowsort
SELECT + 52 * + 10 * + 86
----
44720

query I rowsort
SELECT - 58 * + - NULLIF ( 3, 50 + - 40 * 83 ) AS col2
----
174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4496
SELECT + CAST( + ( + + 58 ) AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-4496
SELECT + CAST ( + ( + + 58 ) AS INTEGER )
----
58

query I rowsort
SELECT - 34 + + + 88 AS col0
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-4498
SELECT ALL + MIN( ALL 31 ) AS col2, + SUM( 17 ) + + 83 - COUNT( * ) - + + COUNT( * )
----
31
98

skipif mysql # not compatible
query II rowsort label-4498
SELECT ALL + MIN ( ALL 31 ) AS col2, + SUM ( 17 ) + + 83 - COUNT ( * ) - + + COUNT ( * )
----
31
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT DISTINCT + MIN( ALL - + 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-4499
SELECT DISTINCT + MIN ( ALL - + 51 )
----
-51

query I rowsort
SELECT ( CASE + 43 WHEN + ( + - ( 54 ) ) THEN - - 4 ELSE NULL END ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4501
SELECT ( NULLIF ( CAST( NULL AS SIGNED ), - COUNT( * ) * - + 89 * 41 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4501
SELECT ( NULLIF ( CAST ( NULL AS INTEGER ), - COUNT ( * ) * - + 89 * 41 ) )
----
NULL

query I rowsort
SELECT + 86 * + 35
----
3010

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT + 45 + + + 59 + + SUM( DISTINCT + 50 ) AS col0
----
154

skipif mysql # not compatible
query I rowsort label-4503
SELECT + 45 + + + 59 + + SUM ( DISTINCT + 50 ) AS col0
----
154

onlyif mysql # aggregate syntax: 
query II rowsort label-4504
SELECT + MIN( DISTINCT + 69 ) AS col2, - 69 * 59
----
69
-4071

skipif mysql # not compatible
query II rowsort label-4504
SELECT + MIN ( DISTINCT + 69 ) AS col2, - 69 * 59
----
69
-4071

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4505
SELECT ALL - COUNT( * ) * + + COUNT( * ), 17 DIV - - 20 AS col0
----
-1
0

skipif mysql # not compatible
query II rowsort label-4505
SELECT ALL - COUNT ( * ) * + + COUNT ( * ), 17 / - - 20 AS col0
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4506
SELECT 23 - + 4 + + 36 DIV + 7
----
24

skipif mysql # not compatible
query I rowsort label-4506
SELECT 23 - + 4 + + 36 / + 7
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-4507
SELECT 59 DIV + 39
----
1

skipif mysql # not compatible
query I rowsort label-4507
SELECT 59 / + 39
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT ALL - CASE 27 WHEN 15 THEN + + COUNT( * ) + + + 79 END * - 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL - CASE 27 WHEN 15 THEN + + COUNT ( * ) + + + 79 END * - 2 AS col1
----
NULL

query II rowsort
SELECT ALL - - 44 * - 7 AS col1, - 69
----
-308
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT ALL MIN( 6 ) + + 19
----
25

skipif mysql # not compatible
query I rowsort label-4510
SELECT ALL MIN ( 6 ) + + 19
----
25

query I rowsort
SELECT DISTINCT - 99 + - 21 + - 50 * 96 * - - 55 * + 62 + + 94
----
-16368026

query I rowsort
SELECT ALL + 41 + - - 73 AS col2
----
114

query I rowsort
SELECT ALL - + 56 + - 35 AS col1
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-4514
SELECT - 8 * - + MIN( DISTINCT + + 87 ) AS col0, + 46 * 70 AS col1
----
696
3220

skipif mysql # not compatible
query II rowsort label-4514
SELECT - 8 * - + MIN ( DISTINCT + + 87 ) AS col0, + 46 * 70 AS col1
----
696
3220

query I rowsort
SELECT ( 60 ) + + - 86 AS col0
----
-26

query I rowsort
SELECT ALL - 6 + + 41 AS col1
----
35

query I rowsort
SELECT ALL 74 + 74 col1
----
148

query I rowsort
SELECT 28 * + - 85 col0
----
-2380

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT ALL - 56 * + 53 + 25 - - NULLIF ( - COUNT( * ), + - ( - 23 ) ) + 29 AS col0
----
-2915

skipif mysql # not compatible
query I rowsort label-4519
SELECT ALL - 56 * + 53 + 25 - - NULLIF ( - COUNT ( * ), + - ( - 23 ) ) + 29 AS col0
----
-2915

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4520
SELECT + 71 DIV - COUNT( * ) AS col1, COUNT( ALL 34 ) + + + CAST( + 26 AS SIGNED ) AS col1
----
-71
27

skipif mysql # not compatible
query II rowsort label-4520
SELECT + 71 / - COUNT ( * ) AS col1, COUNT ( ALL 34 ) + + + CAST ( + 26 AS INTEGER ) AS col1
----
-71
27

onlyif mysql # aggregate syntax: 
query II rowsort label-4521
SELECT MIN( DISTINCT + 33 ) + + 44 AS col0, - 31
----
77
-31

skipif mysql # not compatible
query II rowsort label-4521
SELECT MIN ( DISTINCT + 33 ) + + 44 AS col0, - 31
----
77
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT ALL COUNT( ALL - 31 ) - - ( + 32 ) col0
----
33

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL COUNT ( ALL - 31 ) - - ( + 32 ) col0
----
33

query I rowsort
SELECT 83 * 88 AS col0
----
7304

query I rowsort
SELECT 89 + ( + 66 ) * 82 * + 15
----
81269

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT COUNT( * ) * + - 29
----
-29

skipif mysql # not compatible
query I rowsort label-4525
SELECT COUNT ( * ) * + - 29
----
-29

query I rowsort
SELECT 99 + - 84 AS col0
----
15

query II rowsort
SELECT + 3, - 66 AS col2
----
3
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4528
SELECT ALL COALESCE ( + - 6, - - 90 ) * + + COALESCE ( + + 66, + 98 + + 36, + - 21 * - + CAST( 70 AS SIGNED ) * - CASE + - COALESCE ( + - CAST( - 62 AS SIGNED ), + CAST( + 90 AS SIGNED ) + - 4, COALESCE ( - - 8, + 99, + 24 * - 6 + - 91 - 5 * + 38 ) + 50 ) WHEN - + 27 * - ( - 22 ) * + 36 THEN NULL WHEN - 46 THEN - 37 * 29 + + COUNT( * ) WHEN 98 * - 98 THEN CAST( NULL AS SIGNED ) * + 73 ELSE 96 END ) + ( + 38 ) AS col0
----
-358

skipif mysql # not compatible
query I rowsort label-4528
SELECT ALL COALESCE ( + - 6, - - 90 ) * + + COALESCE ( + + 66, + 98 + + 36, + - 21 * - + CAST ( 70 AS INTEGER ) * - CASE + - COALESCE ( + - CAST ( - 62 AS INTEGER ), + CAST ( + 90 AS INTEGER ) + - 4, COALESCE ( - - 8, + 99, + 24 * - 6 + - 91 - 5 * + 38 ) + 50 ) WHEN - + 27 * - ( - 22 ) * + 36 THEN NULL WHEN - 46 THEN - 37 * 29 + + COUNT ( * ) WHEN 98 * - 98 THEN CAST ( NULL AS INTEGER ) * + 73 ELSE 96 END ) + ( + 38 ) AS col0
----
-358

onlyif mysql # DIV for integer division: 
query I rowsort label-4529
SELECT 97 * - ( 53 ) - + 20 * 33 DIV + - 54
----
-5129

skipif mysql # not compatible
query I rowsort label-4529
SELECT 97 * - ( 53 ) - + 20 * 33 / + - 54
----
-5129

query I rowsort
SELECT DISTINCT - 24 * + 5 AS col2
----
-120

onlyif mysql # DIV for integer division: 
query I rowsort label-4531
SELECT - 70 DIV + + 97 + + 29
----
29

skipif mysql # not compatible
query I rowsort label-4531
SELECT - 70 / + + 97 + + 29
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4532
SELECT COUNT( * ) DIV + + 14 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4532
SELECT COUNT ( * ) / + + 14 AS col0
----
0

query I rowsort
SELECT ALL 57 * + 77 * + 90 AS col0
----
395010

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4534
SELECT + 24, + COUNT( * ) DIV - ( 35 ) + ( + + 67 ) AS col1
----
24
67

skipif mysql # not compatible
query II rowsort label-4534
SELECT + 24, + COUNT ( * ) / - ( 35 ) + ( + + 67 ) AS col1
----
24
67

query I rowsort
SELECT 49 * + + 85
----
4165

query I rowsort
SELECT - 7 * + 30 + NULLIF ( - + 36, + + 53 )
----
-246

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT ALL COUNT( * ) + - + 81 col2
----
-80

skipif mysql # not compatible
query I rowsort label-4537
SELECT ALL COUNT ( * ) + - + 81 col2
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4538
SELECT 33 + - COUNT( * ) + + MAX( - + CAST( + 15 AS SIGNED ) )
----
17

skipif mysql # not compatible
query I rowsort label-4538
SELECT 33 + - COUNT ( * ) + + MAX ( - + CAST ( + 15 AS INTEGER ) )
----
17

query I rowsort
SELECT ALL 21 * 63 col0
----
1323

query I rowsort
SELECT DISTINCT + 43 + - - 26 AS col2
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4541
SELECT CAST( NULL AS SIGNED ) + 50 + - 10 / + 57 * + 29 - - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4541
SELECT CAST ( NULL AS INTEGER ) + 50 + - 10 / + 57 * + 29 - - + COUNT ( * ) AS col2
----
NULL

query II rowsort
SELECT ALL - 12, 84 + - + 51 AS col2
----
-12
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4543
SELECT ALL + CAST( NULL AS SIGNED ) + - + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-4543
SELECT ALL + CAST ( NULL AS INTEGER ) + - + 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT ALL - + COUNT( * ) + + 71 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-4544
SELECT ALL - + COUNT ( * ) + + 71 AS col2
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4545
SELECT CAST( - - COUNT( * ) AS SIGNED ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4545
SELECT CAST ( - - COUNT ( * ) AS INTEGER ) col2
----
1

query I rowsort
SELECT DISTINCT - - 79 + - 99
----
-20

query I rowsort
SELECT ALL + 12 + 45 col0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4548
SELECT DISTINCT + + 67 * + 11 * 93 * + COALESCE ( - + 69, + + 84 ) * + CAST( - - 89 AS SIGNED ), + 15 AS col0
----
-420910281
15

skipif mysql # not compatible
query II rowsort label-4548
SELECT DISTINCT + + 67 * + 11 * 93 * + COALESCE ( - + 69, + + 84 ) * + CAST ( - - 89 AS INTEGER ), + 15 AS col0
----
-420910281
15

query I rowsort
SELECT - 5 + + + 12 AS col2
----
7

query I rowsort
SELECT 74 * - 72 AS col1
----
-5328

query I rowsort
SELECT ALL 80 * - COALESCE ( + - 67, 53 )
----
5360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4552
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 91
----
NULL

skipif mysql # not compatible
query I rowsort label-4552
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 91
----
NULL

query I rowsort
SELECT ALL - 60 * - 17
----
1020

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT ALL + MIN( 16 ) - MIN( DISTINCT + - 85 )
----
101

skipif mysql # not compatible
query I rowsort label-4554
SELECT ALL + MIN ( 16 ) - MIN ( DISTINCT + - 85 )
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT ALL - NULLIF ( - NULLIF ( + 55, + CASE - 28 WHEN - 1 * - 89 + + 56 THEN + 23 + - 99 END ), + COUNT( * ) * - COUNT( * ) * 99 - - - 55 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-4555
SELECT ALL - NULLIF ( - NULLIF ( + 55, + CASE - 28 WHEN - 1 * - 89 + + 56 THEN + 23 + - 99 END ), + COUNT ( * ) * - COUNT ( * ) * 99 - - - 55 ) AS col1
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4556
SELECT ALL + + ( - ( + COUNT( * ) ) ) DIV 33 + - 15 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-4556
SELECT ALL + + ( - ( + COUNT ( * ) ) ) / 33 + - 15 AS col0
----
-15

query II rowsort
SELECT + 55 + + + 89 + - 67 AS col1, + 96 AS col2
----
77
96

query II rowsort
SELECT DISTINCT + 69 - - + 4 + - 28 * 77, 97 AS col0
----
-2083
97

onlyif mysql # aggregate syntax: 
query II rowsort label-4559
SELECT 92 * COUNT( * ) AS col2, 33
----
92
33

skipif mysql # not compatible
query II rowsort label-4559
SELECT 92 * COUNT ( * ) AS col2, 33
----
92
33

query I rowsort
SELECT 18 * + + 51
----
918

onlyif mysql # DIV for integer division: 
query I rowsort label-4561
SELECT ALL + COALESCE ( - 39, + 60 + - - 24 * + 62 ) * 24 * - 91 + + 52 + + 43 + - + 46 DIV + - 76
----
85271

skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL + COALESCE ( - 39, + 60 + - - 24 * + 62 ) * 24 * - 91 + + 52 + + 43 + - + 46 / + - 76
----
85271

query I rowsort
SELECT DISTINCT + 20 * - 55 AS col1
----
-1100

query II rowsort
SELECT 8 * 12, - 14 AS col1
----
96
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4564
SELECT COALESCE ( - + COALESCE ( - 5, COUNT( DISTINCT + 2 ), - - CAST( + + 27 AS SIGNED ) * 46 ), + + 60 )
----
5

skipif mysql # not compatible
query I rowsort label-4564
SELECT COALESCE ( - + COALESCE ( - 5, COUNT ( DISTINCT + 2 ), - - CAST ( + + 27 AS INTEGER ) * 46 ), + + 60 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT NULLIF ( - 31, COUNT( * ) )
----
-31

skipif mysql # not compatible
query I rowsort label-4565
SELECT NULLIF ( - 31, COUNT ( * ) )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT ALL - 14 * COUNT( * ) * 75 + - 55 + - 33
----
-1138

skipif mysql # not compatible
query I rowsort label-4566
SELECT ALL - 14 * COUNT ( * ) * 75 + - 55 + - 33
----
-1138

query I rowsort
SELECT + 16 * + 3
----
48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4568
SELECT + MAX( CAST( NULL AS DECIMAL ) ) AS col2, + COUNT( * ) * + - 44 * ( - 86 ) DIV - 41
----
NULL
-92

skipif mysql # not compatible
query II rowsort label-4568
SELECT + MAX ( CAST ( NULL AS REAL ) ) AS col2, + COUNT ( * ) * + - 44 * ( - 86 ) / - 41
----
NULL
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-4569
SELECT ALL 71 * + - COUNT( * ) + - COUNT( * ) * 54 AS col0, - ( - 35 )
----
-125
35

skipif mysql # not compatible
query II rowsort label-4569
SELECT ALL 71 * + - COUNT ( * ) + - COUNT ( * ) * 54 AS col0, - ( - 35 )
----
-125
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT DISTINCT 62 * ( - COUNT( * ) )
----
-62

skipif mysql # not compatible
query I rowsort label-4570
SELECT DISTINCT 62 * ( - COUNT ( * ) )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT ALL + COALESCE ( - + 24, + 21 * 76, - 97 + - - NULLIF ( + 0, - COUNT( * ) ), - - COUNT( * ) ) * 84 + + + 42 * 52 * - 27 AS col2
----
-60984

skipif mysql # not compatible
query I rowsort label-4571
SELECT ALL + COALESCE ( - + 24, + 21 * 76, - 97 + - - NULLIF ( + 0, - COUNT ( * ) ), - - COUNT ( * ) ) * 84 + + + 42 * 52 * - 27 AS col2
----
-60984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4572
SELECT ALL - 89 * + CAST( + COUNT( * ) AS SIGNED ) * + + 96 + 68 + - 68 / + CAST( NULL AS SIGNED ) * 89 * 39 / NULLIF ( AVG ( ALL 0 ), + + COUNT( * ) + - - 8 * + 63 - + 7 ) + - ( + 52 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4572
SELECT ALL - 89 * + CAST ( + COUNT ( * ) AS INTEGER ) * + + 96 + 68 + - 68 / + CAST ( NULL AS INTEGER ) * 89 * 39 / NULLIF ( AVG ( ALL 0 ), + + COUNT ( * ) + - - 8 * + 63 - + 7 ) + - ( + 52 ) AS col0
----
NULL

query I rowsort
SELECT + 23 + - + ( 48 ) AS col1
----
-25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4574
SELECT + COUNT( * ) / + COALESCE ( + CAST( - NULLIF ( + NULLIF ( 80, 36 + COUNT( * ) ), - 62 ) AS DECIMAL ), + ( + 44 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4574
SELECT + COUNT ( * ) / + COALESCE ( + CAST ( - NULLIF ( + NULLIF ( 80, 36 + COUNT ( * ) ), - 62 ) AS REAL ), + ( + 44 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT + SUM( ALL - + 77 ) - + 28
----
-105

skipif mysql # not compatible
query I rowsort label-4575
SELECT + SUM ( ALL - + 77 ) - + 28
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT ALL + + COALESCE ( - - 80, - 60 * + COUNT( * ), + 83 * + COUNT( * ) * - ( + + 87 ), - COUNT( * ) - + 39 - 23 * - MIN( ALL 66 ) + - + 98 * + 29 ) col2
----
80

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL + + COALESCE ( - - 80, - 60 * + COUNT ( * ), + 83 * + COUNT ( * ) * - ( + + 87 ), - COUNT ( * ) - + 39 - 23 * - MIN ( ALL 66 ) + - + 98 * + 29 ) col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4577
SELECT ALL + CASE - COUNT( * ) WHEN + + 82 THEN + CAST( NULL AS SIGNED ) ELSE NULL END - - ( 40 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4577
SELECT ALL + CASE - COUNT ( * ) WHEN + + 82 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END - - ( 40 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 68 * 40 AS col2
----
2720

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT ALL - MIN( + ( - - 10 ) ) col1
----
-10

skipif mysql # not compatible
query I rowsort label-4579
SELECT ALL - MIN ( + ( - - 10 ) ) col1
----
-10

query I rowsort
SELECT - - NULLIF ( + + ( - ( - + 75 ) ), - 47 )
----
75

query I rowsort
SELECT ALL ( - + 16 ) AS col2
----
-16

query II rowsort
SELECT DISTINCT + 67 * - COALESCE ( 95, 0 + 80 ) AS col1, 34 + + - 39 AS col2
----
-6365
-5

query I rowsort
SELECT + + 59 * - 15 + NULLIF ( - 88, 8 ) AS col0
----
-973

query I rowsort
SELECT - + 45 - 56 + + 67 AS col0
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-4585
SELECT - 57 - - 16 AS col0, COUNT( * ) * + + COUNT( DISTINCT 67 )
----
-41
1

skipif mysql # not compatible
query II rowsort label-4585
SELECT - 57 - - 16 AS col0, COUNT ( * ) * + + COUNT ( DISTINCT 67 )
----
-41
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4586
SELECT ALL 27 - + 1, + CASE + CASE + 91 WHEN + COUNT( * ) + - COUNT( * ) THEN 61 + + - 3 WHEN COALESCE ( - - 66, + NULLIF ( ( + + 96 ), + 14 ), 91 + - 5 ) * - 82 THEN NULL END WHEN + 45 * + 59 + - COUNT( 26 ) / - + CASE COUNT( * ) WHEN - NULLIF ( - 91, + 18 ) THEN NULL WHEN - 18 THEN NULL WHEN + - 52 / - ( 85 + CAST( NULL AS SIGNED ) ) + + COUNT( ALL 25 ) THEN + 70 END THEN - 37 END / + CAST( MAX( - CASE - 25 WHEN 89 / 53 THEN NULL WHEN 6 THEN CAST( NULL AS SIGNED ) * ( 84 ) ELSE + ( - 70 ) END ) AS SIGNED ) AS col1
----
26
NULL

skipif mysql # not compatible
query II rowsort label-4586
SELECT ALL 27 - + 1, + CASE + CASE + 91 WHEN + COUNT ( * ) + - COUNT ( * ) THEN 61 + + - 3 WHEN COALESCE ( - - 66, + NULLIF ( ( + + 96 ), + 14 ), 91 + - 5 ) * - 82 THEN NULL END WHEN + 45 * + 59 + - COUNT ( 26 ) / - + CASE COUNT ( * ) WHEN - NULLIF ( - 91, + 18 ) THEN NULL WHEN - 18 THEN NULL WHEN + - 52 / - ( 85 + CAST ( NULL AS INTEGER ) ) + + COUNT ( ALL 25 ) THEN + 70 END THEN - 37 END / + CAST ( MAX ( - CASE - 25 WHEN 89 / 53 THEN NULL WHEN 6 THEN CAST ( NULL AS INTEGER ) * ( 84 ) ELSE + ( - 70 ) END ) AS INTEGER ) AS col1
----
26
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT DISTINCT + 6 * + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-4587
SELECT DISTINCT + 6 * + COUNT ( * )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4588
SELECT + CAST( NULL AS SIGNED ) / + - MIN( - + 85 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4588
SELECT + CAST ( NULL AS INTEGER ) / + - MIN ( - + 85 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT - 80 * - + MIN( DISTINCT + - 30 ) AS col2
----
-2400

skipif mysql # not compatible
query I rowsort label-4589
SELECT - 80 * - + MIN ( DISTINCT + - 30 ) AS col2
----
-2400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4590
SELECT ALL + 5 * - - COUNT( * ) DIV - 50 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4590
SELECT ALL + 5 * - - COUNT ( * ) / - 50 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT DISTINCT + COUNT( - 83 ) * + 48 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-4591
SELECT DISTINCT + COUNT ( - 83 ) * + 48 AS col2
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4592
SELECT ALL COALESCE ( + 33, - 87 - + 31 + - - ( + CAST( + 83 AS SIGNED ) ) + - 68 - + 68, COUNT( DISTINCT + + 11 ) )
----
33

skipif mysql # not compatible
query I rowsort label-4592
SELECT ALL COALESCE ( + 33, - 87 - + 31 + - - ( + CAST ( + 83 AS INTEGER ) ) + - 68 - + 68, COUNT ( DISTINCT + + 11 ) )
----
33

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4593
SELECT ALL CASE WHEN NOT 73 IS NULL THEN NULL ELSE - ( + CAST( NULL AS DECIMAL ) ) + + 60 END AS col1, - 54 + - 47 + + + 75 col0
----
NULL
-26

skipif mysql # not compatible
query II rowsort label-4593
SELECT ALL CASE WHEN NOT 73 IS NULL THEN NULL ELSE - ( + CAST ( NULL AS REAL ) ) + + 60 END AS col1, - 54 + - 47 + + + 75 col0
----
NULL
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-4594
SELECT - 82 DIV 69
----
-1

skipif mysql # not compatible
query I rowsort label-4594
SELECT - 82 / 69
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT DISTINCT + 51 * + + ( + COUNT( DISTINCT 87 ) ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-4595
SELECT DISTINCT + 51 * + + ( + COUNT ( DISTINCT 87 ) ) AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT ALL COALESCE ( COUNT( - 12 ), - 69, 88 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4596
SELECT ALL COALESCE ( COUNT ( - 12 ), - 69, 88 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4597
SELECT - 46 + - CASE - 62 WHEN + 57 THEN NULL ELSE + 32 END, - 15 - - 82 + MIN( - 22 ) col0
----
-78
45

skipif mysql # not compatible
query II rowsort label-4597
SELECT - 46 + - CASE - 62 WHEN + 57 THEN NULL ELSE + 32 END, - 15 - - 82 + MIN ( - 22 ) col0
----
-78
45

query I rowsort
SELECT - 52 * - 39 col1
----
2028

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT - 63 + - MAX( ALL 7 )
----
-70

skipif mysql # not compatible
query I rowsort label-4599
SELECT - 63 + - MAX ( ALL 7 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT - 40 + - COUNT( * ) * + 6 + MIN( ALL + 29 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-4600
SELECT - 40 + - COUNT ( * ) * + 6 + MIN ( ALL + 29 ) AS col2
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4601
SELECT DISTINCT - 26 DIV - - 3 + - + 3 * + - MIN( + - 65 ), 77 AS col1
----
-203
77

skipif mysql # not compatible
query II rowsort label-4601
SELECT DISTINCT - 26 / - - 3 + - + 3 * + - MIN ( + - 65 ), 77 AS col1
----
-203
77

query I rowsort
SELECT DISTINCT 21 * - + 62
----
-1302

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4603
SELECT DISTINCT - COALESCE ( - - CAST( NULL AS SIGNED ), ( ( 56 ) ), + - 56 * COUNT( * ) ) DIV + - 40 + + 87
----
88

skipif mysql # not compatible
query I rowsort label-4603
SELECT DISTINCT - COALESCE ( - - CAST ( NULL AS INTEGER ), ( ( 56 ) ), + - 56 * COUNT ( * ) ) / + - 40 + + 87
----
88

query I rowsort
SELECT - 56 * - 28
----
1568

query II rowsort
SELECT DISTINCT + + 91 AS col1, 39 AS col2
----
91
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT + + COUNT( * ) * - - 10 + 76 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-4606
SELECT + + COUNT ( * ) * - - 10 + 76 AS col1
----
86

query I rowsort
SELECT - - 15 + - - 97 AS col1
----
112

query I rowsort
SELECT ALL + + ( - - 66 ) AS col1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4609
SELECT DISTINCT + - CAST( 29 AS SIGNED )
----
-29

skipif mysql # not compatible
query I rowsort label-4609
SELECT DISTINCT + - CAST ( 29 AS INTEGER )
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4610
SELECT ALL 49 * - 0 + COUNT( * ) - + - 74 DIV 51 * + + 5 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-4610
SELECT ALL 49 * - 0 + COUNT ( * ) - + - 74 / 51 * + + 5 AS col0
----
6

query I rowsort
SELECT + 1 * + 95 AS col0
----
95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4612
SELECT DISTINCT + 34 * - ( + 41 ) * + AVG ( - - 40 ) * + - 80 DIV - CAST( NULL AS SIGNED ) + + 55 * - CAST( NULL AS SIGNED ) - + 41, - 88 DIV + - 91 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4612
SELECT DISTINCT + 34 * - ( + 41 ) * + AVG ( - - 40 ) * + - 80 / - CAST ( NULL AS INTEGER ) + + 55 * - CAST ( NULL AS INTEGER ) - + 41, - 88 / + - 91 AS col2
----
NULL
0

query I rowsort
SELECT ALL 54 * 29
----
1566

query I rowsort
SELECT + 28 + - 82 * 11
----
-874

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT - SUM( + - 56 ) * - NULLIF ( + 28, - 79 * + 40 / - - 40 + 21 - 93 ) * - 38 + + - 44
----
59540

skipif mysql # not compatible
query I rowsort label-4615
SELECT - SUM ( + - 56 ) * - NULLIF ( + 28, - 79 * + 40 / - - 40 + 21 - 93 ) * - 38 + + - 44
----
59540

query I rowsort
SELECT + + 57 * - 19
----
-1083

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT + + 88 * - MAX( - 45 )
----
3960

skipif mysql # not compatible
query I rowsort label-4617
SELECT + + 88 * - MAX ( - 45 )
----
3960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4618
SELECT ALL - 77 * NULLIF ( - + 45, + NULLIF ( - - COALESCE ( - CAST( + 69 AS SIGNED ), - 45 ), - 53 ) )
----
3465

skipif mysql # not compatible
query I rowsort label-4618
SELECT ALL - 77 * NULLIF ( - + 45, + NULLIF ( - - COALESCE ( - CAST ( + 69 AS INTEGER ), - 45 ), - 53 ) )
----
3465

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT + + 97 + - - COUNT( * ) + 60 col1
----
158

skipif mysql # not compatible
query I rowsort label-4619
SELECT + + 97 + - - COUNT ( * ) + 60 col1
----
158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4620
SELECT CAST( + 87 AS SIGNED )
----
87

skipif mysql # not compatible
query I rowsort label-4620
SELECT CAST ( + 87 AS INTEGER )
----
87

query II rowsort
SELECT DISTINCT 36, + 80 + 43 * + - 56 - - - 90 + + - 26 * - 27 * - 61 AS col2
----
36
-45240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4622
SELECT ALL COALESCE ( + + CASE + NULLIF ( SUM( DISTINCT + 11 ), - 6 ) WHEN + 85 DIV + - COUNT( * ) + - - COUNT( * ) THEN NULL WHEN - COUNT( * ) + 10 + + - 16 * + + 0 - + 56 THEN + 86 END, COUNT( * ) * 94 * - 96 - + 23 DIV - 30 ) col0
----
-9024

skipif mysql # not compatible
query I rowsort label-4622
SELECT ALL COALESCE ( + + CASE + NULLIF ( SUM ( DISTINCT + 11 ), - 6 ) WHEN + 85 / + - COUNT ( * ) + - - COUNT ( * ) THEN NULL WHEN - COUNT ( * ) + 10 + + - 16 * + + 0 - + 56 THEN + 86 END, COUNT ( * ) * 94 * - 96 - + 23 / - 30 ) col0
----
-9024

query I rowsort
SELECT ALL 82 + - 34
----
48

query I rowsort
SELECT DISTINCT 99 + 21
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4625
SELECT 75 AS col0, + 5 + + 40 + - CAST( NULL AS SIGNED ) - + 90 + - + 64 + 67 AS col2
----
75
NULL

skipif mysql # not compatible
query II rowsort label-4625
SELECT 75 AS col0, + 5 + + 40 + - CAST ( NULL AS INTEGER ) - + 90 + - + 64 + 67 AS col2
----
75
NULL

query II rowsort
SELECT DISTINCT 57 AS col0, 92 col0
----
57
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT ALL 34 + - + 12 + + 81 * - 71 * NULLIF ( - 70, COUNT( * ) + + - 14 - 1 ) AS col1
----
402592

skipif mysql # not compatible
query I rowsort label-4627
SELECT ALL 34 + - + 12 + + 81 * - 71 * NULLIF ( - 70, COUNT ( * ) + + - 14 - 1 ) AS col1
----
402592

query I rowsort
SELECT 24 * - 32 * - 55
----
42240

query I rowsort
SELECT 59 + 40 - 88 AS col0
----
11

query I rowsort
SELECT DISTINCT - 57 + + + 26
----
-31

query I rowsort
SELECT ALL 98 + + 45 AS col2
----
143

query I rowsort
SELECT 49 * - 10 AS col2
----
-490

query I rowsort
SELECT ALL ( 43 ) * - CASE + 77 WHEN - 98 THEN NULL WHEN 3 THEN - 45 * + ( + - NULLIF ( + - 88, + 73 ) ) END * + 86 + - + 2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4634
SELECT 12 col1, - 10 * + + 92 + - + 52 + COUNT( * ) + - NULLIF ( 86, - ( - - 60 ) ) + - - 42 * 55 * - 8 AS col2
----
12
-19537

skipif mysql # not compatible
query II rowsort label-4634
SELECT 12 col1, - 10 * + + 92 + - + 52 + COUNT ( * ) + - NULLIF ( 86, - ( - - 60 ) ) + - - 42 * 55 * - 8 AS col2
----
12
-19537

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4635
SELECT ALL CAST( 81 AS SIGNED ) * + 3 * - 59 + - - 82
----
-14255

skipif mysql # not compatible
query I rowsort label-4635
SELECT ALL CAST ( 81 AS INTEGER ) * + 3 * - 59 + - - 82
----
-14255

query I rowsort
SELECT ALL - 39 + + - 24 + 92 + - 78 * + - 91 + + + 34 * + 77 * - 2 AS col2
----
1891

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT COUNT( * ) * - + 9
----
-9

skipif mysql # not compatible
query I rowsort label-4637
SELECT COUNT ( * ) * - + 9
----
-9

query II rowsort
SELECT 93 AS col1, 53 AS col2
----
93
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4639
SELECT CAST( 37 AS SIGNED ) - 32 + + COUNT( ALL + 59 ) * + 63
----
68

skipif mysql # not compatible
query I rowsort label-4639
SELECT CAST ( 37 AS INTEGER ) - 32 + + COUNT ( ALL + 59 ) * + 63
----
68

query II rowsort
SELECT + - 31, 21 AS col0
----
-31
21

query II rowsort
SELECT DISTINCT - - 75 col2, + NULLIF ( - 17, + - 34 ) * + - 27 + - + 16 AS col2
----
75
443

query II rowsort
SELECT + 94 AS col0, - 70 * - + 67 AS col2
----
94
4690

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT + - COUNT( ALL 7 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4643
SELECT + - COUNT ( ALL 7 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT ALL 29 * - 36 + + NULLIF ( + 17, + + COUNT( * ) + 48 ) + + COUNT( * ) + - - 62 * 52
----
2198

skipif mysql # not compatible
query I rowsort label-4644
SELECT ALL 29 * - 36 + + NULLIF ( + 17, + + COUNT ( * ) + 48 ) + + COUNT ( * ) + - - 62 * 52
----
2198

query I rowsort
SELECT - 99 - 43
----
-142

query I rowsort
SELECT + 34 * + - 65 * - 27 * + COALESCE ( - + 4, + 45 ) + 89 + 31 AS col2
----
-238560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4647
SELECT ALL - + CAST( + + 32 AS SIGNED )
----
-32

skipif mysql # not compatible
query I rowsort label-4647
SELECT ALL - + CAST ( + + 32 AS INTEGER )
----
-32

query II rowsort
SELECT + - 36 AS col2, + 45
----
-36
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4649
SELECT + 29 AS col1, CASE + 9 WHEN - 13 THEN - 71 ELSE NULL END * - 6 * - 33 + - 69 + + CAST( NULL AS SIGNED ) * 42 * + 8 * - COUNT( * ) * 96
----
29
NULL

skipif mysql # not compatible
query II rowsort label-4649
SELECT + 29 AS col1, CASE + 9 WHEN - 13 THEN - 71 ELSE NULL END * - 6 * - 33 + - 69 + + CAST ( NULL AS INTEGER ) * 42 * + 8 * - COUNT ( * ) * 96
----
29
NULL

query I rowsort
SELECT ( 42 ) * + 32 AS col2
----
1344

query I rowsort
SELECT + ( ( + 0 ) ) * - 84 + 9
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4652
SELECT 5 DIV - 99
----
0

skipif mysql # not compatible
query I rowsort label-4652
SELECT 5 / - 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT ALL - - COUNT( * ) + + 19
----
20

skipif mysql # not compatible
query I rowsort label-4653
SELECT ALL - - COUNT ( * ) + + 19
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4654
SELECT ALL CAST( - - 48 AS SIGNED ) + ( 77 ) AS col1
----
125

skipif mysql # not compatible
query I rowsort label-4654
SELECT ALL CAST ( - - 48 AS INTEGER ) + ( 77 ) AS col1
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4655
SELECT ALL MIN( CAST( NULL AS SIGNED ) ) + - 78 * - - 39 - 90 * 78 + + ( + 91 ) + + 57 * - 55 * - SUM( 54 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4655
SELECT ALL MIN ( CAST ( NULL AS INTEGER ) ) + - 78 * - - 39 - 90 * 78 + + ( + 91 ) + + 57 * - 55 * - SUM ( 54 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4656
SELECT ALL - MIN( ALL - 93 ) DIV + - MIN( ALL 34 )
----
-2

skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL - MIN ( ALL - 93 ) / + - MIN ( ALL 34 )
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4657
SELECT 98 DIV - + 35 * + COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4657
SELECT 98 / - + 35 * + COUNT ( * ) AS col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4658
SELECT 34 * - - CAST( + + 2 AS SIGNED ) col0, 92
----
68
92

skipif mysql # not compatible
query II rowsort label-4658
SELECT 34 * - - CAST ( + + 2 AS INTEGER ) col0, 92
----
68
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4659
SELECT ( CAST( + 96 AS SIGNED ) ) - + + NULLIF ( - SUM( DISTINCT + 95 ), - - COUNT( * ) + COALESCE ( - 61, + + 82 + - 41 * + 88 ) * 53 ) + SUM( DISTINCT - + 52 ) AS col0
----
139

skipif mysql # not compatible
query I rowsort label-4659
SELECT ( CAST ( + 96 AS INTEGER ) ) - + + NULLIF ( - SUM ( DISTINCT + 95 ), - - COUNT ( * ) + COALESCE ( - 61, + + 82 + - 41 * + 88 ) * 53 ) + SUM ( DISTINCT - + 52 ) AS col0
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT DISTINCT SUM( - - 56 ) + - 1 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-4660
SELECT DISTINCT SUM ( - - 56 ) + - 1 AS col0
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-4661
SELECT 24 DIV 70 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4661
SELECT 24 / 70 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT 33 * COUNT( * ) * - COALESCE ( + - 50, - 58, + COUNT( * ) ) AS col2
----
1650

skipif mysql # not compatible
query I rowsort label-4662
SELECT 33 * COUNT ( * ) * - COALESCE ( + - 50, - 58, + COUNT ( * ) ) AS col2
----
1650

query I rowsort
SELECT DISTINCT 28 + - + 70 * + 99 + - + 76
----
-6978

query I rowsort
SELECT 59 - - 29 + ( - 96 )
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-4665
SELECT COUNT( * ) + + - 50 * + 6 * + 7 * + 48 * - + 43 * 5 AS col1, 17 AS col0
----
21672001
17

skipif mysql # not compatible
query II rowsort label-4665
SELECT COUNT ( * ) + + - 50 * + 6 * + 7 * + 48 * - + 43 * 5 AS col1, 17 AS col0
----
21672001
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT ALL 45 - - - 36 * + COUNT( * ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-4666
SELECT ALL 45 - - - 36 * + COUNT ( * ) AS col0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4667
SELECT ( CAST( + + MIN( + 28 ) AS SIGNED ) ) + COUNT( * ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-4667
SELECT ( CAST ( + + MIN ( + 28 ) AS INTEGER ) ) + COUNT ( * ) AS col2
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-4668
SELECT 45 - + COUNT( * ), + 22 * - COALESCE ( 16, + 30 - - COUNT( * ), 52 ) * + + ( + - 93 ) AS col1
----
44
32736

skipif mysql # not compatible
query II rowsort label-4668
SELECT 45 - + COUNT ( * ), + 22 * - COALESCE ( 16, + 30 - - COUNT ( * ), 52 ) * + + ( + - 93 ) AS col1
----
44
32736

query II rowsort
SELECT + 8 * + 83, 68 - - 58 + - + 21 AS col1
----
664
105

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT - 47 + + - COUNT( ALL + 46 ) * - COUNT( * ) + - 98 AS col0
----
-144

skipif mysql # not compatible
query I rowsort label-4670
SELECT - 47 + + - COUNT ( ALL + 46 ) * - COUNT ( * ) + - 98 AS col0
----
-144

query I rowsort
SELECT ALL - - CASE - 55 WHEN - 36 + 17 THEN - 38 WHEN 10 THEN NULL WHEN - - 34 THEN - + 88 END * - 5 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4672
SELECT DISTINCT - 33 * - CAST( NULL AS SIGNED ) * + 74 + COUNT( * ) * + 39 * - + 12 + + 60 - - 89 + - + 42 * + + 9 * - + 48 + + 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4672
SELECT DISTINCT - 33 * - CAST ( NULL AS INTEGER ) * + 74 + COUNT ( * ) * + 39 * - + 12 + + 60 - - 89 + - + 42 * + + 9 * - + 48 + + 5 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4673
SELECT - 99 DIV - COUNT( * ) + - 97
----
2

skipif mysql # not compatible
query I rowsort label-4673
SELECT - 99 / - COUNT ( * ) + - 97
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT ALL + 2 * + + 56 + - NULLIF ( + - 56, - COUNT( * ) * 67 * - 52 * - COALESCE ( + COUNT( ALL 22 ), + - 47 ) / + - 65 + - 78 ) + 32
----
200

skipif mysql # not compatible
query I rowsort label-4674
SELECT ALL + 2 * + + 56 + - NULLIF ( + - 56, - COUNT ( * ) * 67 * - 52 * - COALESCE ( + COUNT ( ALL 22 ), + - 47 ) / + - 65 + - 78 ) + 32
----
200

query I rowsort
SELECT + 22 * + ( ( 82 ) ) * - - 61
----
110044

onlyif mysql # aggregate syntax: 
query II rowsort label-4676
SELECT + 97 + + 39 AS col0, + 57 * + + COUNT( * )
----
136
57

skipif mysql # not compatible
query II rowsort label-4676
SELECT + 97 + + 39 AS col0, + 57 * + + COUNT ( * )
----
136
57

query I rowsort
SELECT + 40 * - + 24 - - 31 AS col1
----
-929

query I rowsort
SELECT ( - 81 ) + - - 16
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4679
SELECT 94 DIV 59 * + + 39 * COUNT( * ) col1
----
39

skipif mysql # not compatible
query I rowsort label-4679
SELECT 94 / 59 * + + 39 * COUNT ( * ) col1
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-4680
SELECT 83 * - ( 94 ) + 6 DIV + ( ( + - 53 ) ) * + + 53 AS col2
----
-7802

skipif mysql # not compatible
query I rowsort label-4680
SELECT 83 * - ( 94 ) + 6 / + ( ( + - 53 ) ) * + + 53 AS col2
----
-7802

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4681
SELECT DISTINCT + + 40 DIV + COUNT( * ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-4681
SELECT DISTINCT + + 40 / + COUNT ( * ) AS col1
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4682
SELECT + 72 * + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4682
SELECT + 72 * + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 28 + + + ( - + 53 ) - + - 0 + + 67 + - - 70
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT - CASE - + 41 WHEN - MIN( - 41 ) + 30 + - - ( + COUNT( * ) ) + 61 * - 65 THEN 86 ELSE + 3 END * 96 * + - 61
----
17568

skipif mysql # not compatible
query I rowsort label-4684
SELECT - CASE - + 41 WHEN - MIN ( - 41 ) + 30 + - - ( + COUNT ( * ) ) + 61 * - 65 THEN 86 ELSE + 3 END * 96 * + - 61
----
17568

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4685
SELECT ALL - - 11 + 51 + + 32 + 13 - - - NULLIF ( - + 52, + + 19 ) - + ( + + 9 ) + + 44 * - 69 / + - 30 + 24 / - 71 + + CAST( NULL AS DECIMAL ) * - 72 + - 44 * - + 68 + - + COUNT( DISTINCT 55 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4685
SELECT ALL - - 11 + 51 + + 32 + 13 - - - NULLIF ( - + 52, + + 19 ) - + ( + + 9 ) + + 44 * - 69 / + - 30 + 24 / - 71 + + CAST ( NULL AS REAL ) * - 72 + - 44 * - + 68 + - + COUNT ( DISTINCT 55 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT DISTINCT - - MIN( 88 )
----
88

skipif mysql # not compatible
query I rowsort label-4686
SELECT DISTINCT - - MIN ( 88 )
----
88

query I rowsort
SELECT ALL - 94 + + 99
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT ALL + 36 + - COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-4688
SELECT ALL + 36 + - COUNT ( * )
----
35

query I rowsort
SELECT ALL - COALESCE ( + 91, - 30 )
----
-91

query I rowsort
SELECT DISTINCT - 92 + - + ( - 56 ) * + 41
----
2204

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT - 29 * + - COUNT( * ) * + 48 AS col1
----
1392

skipif mysql # not compatible
query I rowsort label-4691
SELECT - 29 * + - COUNT ( * ) * + 48 AS col1
----
1392

query I rowsort
SELECT ALL - CASE - + 31 WHEN - 71 THEN - 57 ELSE NULL END + 97 AS col1
----
NULL

query I rowsort
SELECT ALL + 20 + - 8 * - 88 + 91 col1
----
815

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT - 41 + + COUNT( * ) + 64 * 12
----
728

skipif mysql # not compatible
query I rowsort label-4694
SELECT - 41 + + COUNT ( * ) + 64 * 12
----
728

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT - SUM( - - 91 ) col1
----
-91

skipif mysql # not compatible
query I rowsort label-4695
SELECT - SUM ( - - 91 ) col1
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-4696
SELECT ALL 5, + COUNT( * ) AS col0
----
5
1

skipif mysql # not compatible
query II rowsort label-4696
SELECT ALL 5, + COUNT ( * ) AS col0
----
5
1

query I rowsort
SELECT ALL 81 * 67 AS col0
----
5427

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4698
SELECT + SUM( DISTINCT - + COALESCE ( + ( 91 ), + 44 * + 64 ) ) + + CAST( + + 47 AS SIGNED ) - 50 * - CASE + 40 WHEN + COUNT( * ) + + ( COUNT( * ) ) THEN NULL ELSE + COUNT( * ) * + 68 - + 38 - - 86 + + - CAST( 97 AS SIGNED ) + - 33 END col2
----
-744

skipif mysql # not compatible
query I rowsort label-4698
SELECT + SUM ( DISTINCT - + COALESCE ( + ( 91 ), + 44 * + 64 ) ) + + CAST ( + + 47 AS INTEGER ) - 50 * - CASE + 40 WHEN + COUNT ( * ) + + ( COUNT ( * ) ) THEN NULL ELSE + COUNT ( * ) * + 68 - + 38 - - 86 + + - CAST ( 97 AS INTEGER ) + - 33 END col2
----
-744

onlyif mysql # aggregate syntax: 
query II rowsort label-4699
SELECT - COUNT( * ) AS col2, + 98 + + 3 AS col2
----
-1
101

skipif mysql # not compatible
query II rowsort label-4699
SELECT - COUNT ( * ) AS col2, + 98 + + 3 AS col2
----
-1
101

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4700
SELECT ALL COALESCE ( + 83, - 39 DIV - AVG ( - - ( ( - 52 ) ) ) * + ( 63 ) + + CAST( NULL AS SIGNED ) )
----
83

skipif mysql # not compatible
query I rowsort label-4700
SELECT ALL COALESCE ( + 83, - 39 / - AVG ( - - ( ( - 52 ) ) ) * + ( 63 ) + + CAST ( NULL AS INTEGER ) )
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-4701
SELECT DISTINCT + 30 DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-4701
SELECT DISTINCT + 30 / + 79
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4702
SELECT - COUNT( * ) * + + 81 * - - 90 AS col2, - 51 AS col0
----
-7290
-51

skipif mysql # not compatible
query II rowsort label-4702
SELECT - COUNT ( * ) * + + 81 * - - 90 AS col2, - 51 AS col0
----
-7290
-51

query I rowsort
SELECT ALL 45 * - 2 AS col0
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4704
SELECT - SUM( - 6 ) DIV 48 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4704
SELECT - SUM ( - 6 ) / 48 AS col2
----
0

query II rowsort
SELECT - 29 AS col1, + 68 AS col2
----
-29
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT + 33 + + ( - 29 ) * MAX( DISTINCT 63 )
----
-1794

skipif mysql # not compatible
query I rowsort label-4706
SELECT + 33 + + ( - 29 ) * MAX ( DISTINCT 63 )
----
-1794

query I rowsort
SELECT DISTINCT 39 * - 64 * - 44 AS col0
----
109824

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT DISTINCT MAX( - - 72 )
----
72

skipif mysql # not compatible
query I rowsort label-4708
SELECT DISTINCT MAX ( - - 72 )
----
72

query II rowsort
SELECT DISTINCT NULLIF ( + 28, - + 43 + - 24 - + 57 * + - 91 ) AS col0, 80 * 26 AS col2
----
28
2080

query I rowsort
SELECT - + 67 * - ( - 12 ) * + - 46
----
36984

query I rowsort
SELECT DISTINCT + 57 * + 37 + - COALESCE ( 81, + 24 + - 31, - 3 )
----
2028

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT + 34 - + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-4712
SELECT + 34 - + COUNT ( * )
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-4713
SELECT + SUM( - ( + + 78 ) ) col1, 34 + + 64 AS col2
----
-78
98

skipif mysql # not compatible
query II rowsort label-4713
SELECT + SUM ( - ( + + 78 ) ) col1, 34 + + 64 AS col2
----
-78
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4714
SELECT + CAST( NULL AS SIGNED ) * - - 84 - + - CAST( NULL AS SIGNED ), 29 / CASE + + 55 WHEN - COUNT( * ) THEN NULL WHEN + SUM( ALL - 87 ) THEN + 68 / + + ( 79 ) ELSE NULL END / - COUNT( * )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4714
SELECT + CAST ( NULL AS INTEGER ) * - - 84 - + - CAST ( NULL AS INTEGER ), 29 / CASE + + 55 WHEN - COUNT ( * ) THEN NULL WHEN + SUM ( ALL - 87 ) THEN + 68 / + + ( 79 ) ELSE NULL END / - COUNT ( * )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4715
SELECT - 13 AS col1, COUNT( * ) - + 87
----
-13
-86

skipif mysql # not compatible
query II rowsort label-4715
SELECT - 13 AS col1, COUNT ( * ) - + 87
----
-13
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT ALL - CASE + 86 WHEN - - 37 THEN NULL WHEN - - 53 THEN MAX( ALL - 23 ) * 75 ELSE NULL END * - CASE - 1 WHEN + 63 THEN - 95 WHEN + 11 THEN NULL END * MAX( DISTINCT - 14 ) + + 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4716
SELECT ALL - CASE + 86 WHEN - - 37 THEN NULL WHEN - - 53 THEN MAX ( ALL - 23 ) * 75 ELSE NULL END * - CASE - 1 WHEN + 63 THEN - 95 WHEN + 11 THEN NULL END * MAX ( DISTINCT - 14 ) + + 36 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT ALL + - 2 * + - 40 + + ( - SUM( - 62 ) ) col1
----
142

skipif mysql # not compatible
query I rowsort label-4717
SELECT ALL + - 2 * + - 40 + + ( - SUM ( - 62 ) ) col1
----
142

onlyif mysql # aggregate syntax: 
query II rowsort label-4718
SELECT + + COUNT( * ) AS col1, - 86
----
1
-86

skipif mysql # not compatible
query II rowsort label-4718
SELECT + + COUNT ( * ) AS col1, - 86
----
1
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4719
SELECT ALL - 92 * - - CAST( NULL AS SIGNED ) + - ( 31 ) - - 97 - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-4719
SELECT ALL - 92 * - - CAST ( NULL AS INTEGER ) + - ( 31 ) - - 97 - 79
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4720
SELECT ALL + 27 * + 79 + 63 + + 56 * - COUNT( * ) + 58 + 23 - 18, 66 * 44 col1
----
2203
2904

skipif mysql # not compatible
query II rowsort label-4720
SELECT ALL + 27 * + 79 + 63 + + 56 * - COUNT ( * ) + 58 + 23 - 18, 66 * 44 col1
----
2203
2904

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4721
SELECT ALL 53 * CAST( + - ( + - 85 ) AS SIGNED ) AS col0
----
4505

skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL 53 * CAST ( + - ( + - 85 ) AS INTEGER ) AS col0
----
4505

onlyif mysql # DIV for integer division: 
query I rowsort label-4722
SELECT ALL + COALESCE ( 64, + NULLIF ( - + 3, - 48 ) DIV - - 21 + + 55, + 78, + - 12 ) * + 67 + + + 68 + - - 58 DIV 77 + + 14
----
4370

skipif mysql # not compatible
query I rowsort label-4722
SELECT ALL + COALESCE ( 64, + NULLIF ( - + 3, - 48 ) / - - 21 + + 55, + 78, + - 12 ) * + 67 + + + 68 + - - 58 / 77 + + 14
----
4370

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT + + SUM( DISTINCT + 75 ) - - + MAX( + - 86 )
----
-11

skipif mysql # not compatible
query I rowsort label-4723
SELECT + + SUM ( DISTINCT + 75 ) - - + MAX ( + - 86 )
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-4724
SELECT COUNT( * ) AS col2, - COUNT( * ) + - + 22 col0
----
1
-23

skipif mysql # not compatible
query II rowsort label-4724
SELECT COUNT ( * ) AS col2, - COUNT ( * ) + - + 22 col0
----
1
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4725
SELECT ALL + 93 * + CAST( NULL AS SIGNED ) + + 47 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4725
SELECT ALL + 93 * + CAST ( NULL AS INTEGER ) + + 47 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT ALL - 10 * + 39 * + 24 + - 65 * + 50 * - COALESCE ( + COUNT( ALL - 55 ), + 83 )
----
-6110

skipif mysql # not compatible
query I rowsort label-4726
SELECT ALL - 10 * + 39 * + 24 + - 65 * + 50 * - COALESCE ( + COUNT ( ALL - 55 ), + 83 )
----
-6110

query I rowsort
SELECT + 41 * + 92
----
3772

query I rowsort
SELECT + 0 + - + 40 * - 96
----
3840

onlyif mysql # DIV for integer division: 
query I rowsort label-4729
SELECT ALL + 16 DIV + 58
----
0

skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL + 16 / + 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT CASE - - 95 WHEN - 38 + 62 * + + COUNT( * ) * + 73 * COALESCE ( - - 62, + 59 + - + 51 ) * + 3 THEN NULL WHEN 99 / - - 46 THEN - 23 - 86 + + + 63 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4730
SELECT CASE - - 95 WHEN - 38 + 62 * + + COUNT ( * ) * + 73 * COALESCE ( - - 62, + 59 + - + 51 ) * + 3 THEN NULL WHEN 99 / - - 46 THEN - 23 - 86 + + + 63 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT ALL + 43 * - COUNT( * ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-4731
SELECT ALL + 43 * - COUNT ( * ) AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4732
SELECT - COUNT( * ) * + - 44 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-4732
SELECT - COUNT ( * ) * + - 44 AS col1
----
44

query I rowsort
SELECT ALL ( - + 67 ) col1
----
-67

query I rowsort
SELECT - 51 - + - 16 - + 72 col1
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT - COUNT( * ) * - 50 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-4735
SELECT - COUNT ( * ) * - 50 AS col2
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4736
SELECT - ( - COALESCE ( - COUNT( * ), + + 50 * + - 19 + - - 6 + 5 DIV + 53 - + + CAST( - COALESCE ( - - 88, + 87 ) AS SIGNED ) * - - 70 + - 95 ) ) * - 58 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-4736
SELECT - ( - COALESCE ( - COUNT ( * ), + + 50 * + - 19 + - - 6 + 5 / + 53 - + + CAST ( - COALESCE ( - - 88, + 87 ) AS INTEGER ) * - - 70 + - 95 ) ) * - 58 AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT - COUNT( * ) - + 58 * + NULLIF ( + 60, + 34 ) AS col2
----
-3481

skipif mysql # not compatible
query I rowsort label-4737
SELECT - COUNT ( * ) - + 58 * + NULLIF ( + 60, + 34 ) AS col2
----
-3481

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4738
SELECT DISTINCT CAST( 67 AS SIGNED ), 95 AS col2
----
67
95

skipif mysql # not compatible
query II rowsort label-4738
SELECT DISTINCT CAST ( 67 AS INTEGER ), 95 AS col2
----
67
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4739
SELECT DISTINCT CAST( + - 80 AS SIGNED )
----
-80

skipif mysql # not compatible
query I rowsort label-4739
SELECT DISTINCT CAST ( + - 80 AS INTEGER )
----
-80

query I rowsort
SELECT - ( - 51 ) - - ( + - COALESCE ( 52, 75, - 81 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT - + CASE + COUNT( DISTINCT - 50 ) WHEN 21 * - 75 - 7 * + 92 THEN - 47 * + 23 WHEN - 62 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4741
SELECT - + CASE + COUNT ( DISTINCT - 50 ) WHEN 21 * - 75 - 7 * + 92 THEN - 47 * + 23 WHEN - 62 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4742
SELECT - 52 - - 1 * + ( - - 53 ), COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-4742
SELECT - 52 - - 1 * + ( - - 53 ), COUNT ( * )
----
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4743
SELECT ALL + + SUM( + 22 ) DIV COUNT( * ) + - 31 AS col1, + 44 * CAST( 14 AS SIGNED ) - 0 + - NULLIF ( + + 64, - 29 ) * + 62 + - + 98
----
-9
-3450

skipif mysql # not compatible
query II rowsort label-4743
SELECT ALL + + SUM ( + 22 ) / COUNT ( * ) + - 31 AS col1, + 44 * CAST ( 14 AS INTEGER ) - 0 + - NULLIF ( + + 64, - 29 ) * + 62 + - + 98
----
-9
-3450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4744
SELECT - NULLIF ( ( + COALESCE ( + + 1, CAST( NULL AS SIGNED ) ) ), + 63 ) * 94 AS col1, ( + 46 ) + 63 * - MAX( DISTINCT + 83 ) + - - COUNT( * ) + - COUNT( * )
----
-94
-5183

skipif mysql # not compatible
query II rowsort label-4744
SELECT - NULLIF ( ( + COALESCE ( + + 1, CAST ( NULL AS INTEGER ) ) ), + 63 ) * 94 AS col1, ( + 46 ) + 63 * - MAX ( DISTINCT + 83 ) + - - COUNT ( * ) + - COUNT ( * )
----
-94
-5183

query I rowsort
SELECT ALL - 10 + + 6 AS col2
----
-4

query I rowsort
SELECT - - 5 + - 63 AS col1
----
-58

query I rowsort
SELECT - + 30 + 45 AS col0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4748
SELECT ALL CASE + CAST( - 14 AS SIGNED ) WHEN + ( - - 92 ) THEN + 93 WHEN - - 78 THEN 82 * + 15 / 17 * + 15 * + 89 * 59 * 90 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4748
SELECT ALL CASE + CAST ( - 14 AS INTEGER ) WHEN + ( - - 92 ) THEN + 93 WHEN - - 78 THEN 82 * + 15 / 17 * + 15 * + 89 * 59 * 90 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4749
SELECT ALL 19 / - 12 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4749
SELECT ALL 19 / - 12 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4750
SELECT - CAST( NULL AS SIGNED ) / MAX( - 19 ) * - 64 + + ( 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4750
SELECT - CAST ( NULL AS INTEGER ) / MAX ( - 19 ) * - 64 + + ( 72 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4751
SELECT ALL 64 + + 59 - + - CASE 25 WHEN 51 * + + ( + + MIN( - - 11 ) ) * - - CAST( + - 9 AS SIGNED ) + - 45 * - 90 * + + 87 THEN NULL ELSE - 94 END + + NULLIF ( + 82, - SUM( + 79 ) ) col1
----
111

skipif mysql # not compatible
query I rowsort label-4751
SELECT ALL 64 + + 59 - + - CASE 25 WHEN 51 * + + ( + + MIN ( - - 11 ) ) * - - CAST ( + - 9 AS INTEGER ) + - 45 * - 90 * + + 87 THEN NULL ELSE - 94 END + + NULLIF ( + 82, - SUM ( + 79 ) ) col1
----
111

query I rowsort
SELECT DISTINCT 70 * + 8
----
560

onlyif mysql # DIV for integer division: 
query II rowsort label-4753
SELECT 71 AS col2, + 0 * + 90 DIV + ( 52 ) + - 7 + 67 * - - 76
----
71
5085

skipif mysql # not compatible
query II rowsort label-4753
SELECT 71 AS col2, + 0 * + 90 / + ( 52 ) + - 7 + 67 * - - 76
----
71
5085

query I rowsort
SELECT DISTINCT 5 * - 13
----
-65

query I rowsort
SELECT ALL 64 - - 8 col1
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4756
SELECT DISTINCT 34 * CAST( 71 AS SIGNED ) AS col0
----
2414

skipif mysql # not compatible
query I rowsort label-4756
SELECT DISTINCT 34 * CAST ( 71 AS INTEGER ) AS col0
----
2414

onlyif mysql # DIV for integer division: 
query I rowsort label-4757
SELECT 62 DIV 79
----
0

skipif mysql # not compatible
query I rowsort label-4757
SELECT 62 / 79
----
0

query II rowsort
SELECT 6 AS col2, - 7
----
6
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4759
SELECT 52 DIV + COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-4759
SELECT 52 / + COUNT ( * )
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-4760
SELECT 87 DIV 93
----
0

skipif mysql # not compatible
query I rowsort label-4760
SELECT 87 / 93
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4761
SELECT ALL 22 DIV + - ( + + COUNT( * ) )
----
-22

skipif mysql # not compatible
query I rowsort label-4761
SELECT ALL 22 / + - ( + + COUNT ( * ) )
----
-22

query I rowsort
SELECT 58 + + + 69 AS col2
----
127

onlyif mysql # aggregate syntax: 
query II rowsort label-4763
SELECT 0, + COUNT( * ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-4763
SELECT 0, + COUNT ( * ) AS col2
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4764
SELECT ALL + 95 * - CAST( 0 AS SIGNED ) AS col1, + 18 * + + 21 * + 42 col2
----
0
15876

skipif mysql # not compatible
query II rowsort label-4764
SELECT ALL + 95 * - CAST ( 0 AS INTEGER ) AS col1, + 18 * + + 21 * + 42 col2
----
0
15876

query I rowsort
SELECT DISTINCT 21 + 42 * + 65 col1
----
2751

query I rowsort
SELECT ALL - 14 + - 34
----
-48

query I rowsort
SELECT ALL + 56 * + - 57 AS col2
----
-3192

query I rowsort
SELECT + 93 * + + 27 * - 73 col2
----
-183303

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4769
SELECT SUM( 93 ) + CAST( + COUNT( * ) AS SIGNED ) col1
----
94

skipif mysql # not compatible
query I rowsort label-4769
SELECT SUM ( 93 ) + CAST ( + COUNT ( * ) AS INTEGER ) col1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4770
SELECT ALL - 65 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4770
SELECT ALL - 65 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4771
SELECT ALL + ( 95 ) + - + 68 + + COALESCE ( 92, 87 DIV 70 * + - 45 * + 65 - + 70 * + COUNT( * ) + 66 ) + 2, + 76 * 57 AS col0
----
121
4332

skipif mysql # not compatible
query II rowsort label-4771
SELECT ALL + ( 95 ) + - + 68 + + COALESCE ( 92, 87 / 70 * + - 45 * + 65 - + 70 * + COUNT ( * ) + 66 ) + 2, + 76 * 57 AS col0
----
121
4332

query I rowsort
SELECT DISTINCT + ( - - 20 )
----
20

query I rowsort
SELECT DISTINCT + 71 + + 11 - + - 55 AS col0
----
137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4774
SELECT + 32 - 18 + + + 38 + - 24 * - 43 + - CAST( NULL AS SIGNED ) + + 43 * 20 * + 79 * + + 92 / 17
----
NULL

skipif mysql # not compatible
query I rowsort label-4774
SELECT + 32 - 18 + + + 38 + - 24 * - 43 + - CAST ( NULL AS INTEGER ) + + 43 * 20 * + 79 * + + 92 / 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT ALL + + ( COUNT( + 79 ) ) * 97
----
97

skipif mysql # not compatible
query I rowsort label-4775
SELECT ALL + + ( COUNT ( + 79 ) ) * 97
----
97

query I rowsort
SELECT - - 18 * + 82 * + 45 - + - 81
----
66501

onlyif mysql # aggregate syntax: 
query II rowsort label-4777
SELECT ALL - 7 AS col1, + COUNT( * ) * - + 90 + - + ( - - NULLIF ( - NULLIF ( + 29, - NULLIF ( 99, - MAX( - + 48 ) ) * - + 34 ), - - COUNT( * ) ) )
----
-7
-61

skipif mysql # not compatible
query II rowsort label-4777
SELECT ALL - 7 AS col1, + COUNT ( * ) * - + 90 + - + ( - - NULLIF ( - NULLIF ( + 29, - NULLIF ( 99, - MAX ( - + 48 ) ) * - + 34 ), - - COUNT ( * ) ) )
----
-7
-61

query I rowsort
SELECT ALL 64 - + 11
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT ALL - MAX( ALL + 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-4779
SELECT ALL - MAX ( ALL + 34 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT MIN( + 64 ) - - + 10
----
74

skipif mysql # not compatible
query I rowsort label-4780
SELECT MIN ( + 64 ) - - + 10
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4781
SELECT ALL 28 - 11 + + - 45 + + COUNT( * ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4781
SELECT ALL 28 - 11 + + - 45 + + COUNT ( * ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 78 * 46
----
3588

query I rowsort
SELECT ALL 81 * + 43
----
3483

query I rowsort
SELECT 68 * + 7
----
476

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4785
SELECT DISTINCT 27 / + NULLIF ( + CAST( NULL AS DECIMAL ), - 55 + + 98 * + + 59 * 71 ) * + + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-4785
SELECT DISTINCT 27 / + NULLIF ( + CAST ( NULL AS REAL ), - 55 + + 98 * + + 59 * 71 ) * + + 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT ALL 86 + + MAX( - 70 )
----
16

skipif mysql # not compatible
query I rowsort label-4786
SELECT ALL 86 + + MAX ( - 70 )
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4787
SELECT ALL 68 + - - 44 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4787
SELECT ALL 68 + - - 44 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 93 * - 77
----
-7161

query II rowsort
SELECT 91 AS col1, ( ( + 11 ) ) AS col0
----
91
11

onlyif mysql # aggregate syntax: 
query III rowsort label-4790
SELECT - 97 col1, NULLIF ( + 45, CASE - 8 WHEN - 11 + + - 4 THEN NULL ELSE + SUM( - 52 ) END ), - 49 AS col2
----
-97
45
-49

skipif mysql # not compatible
query III rowsort label-4790
SELECT - 97 col1, NULLIF ( + 45, CASE - 8 WHEN - 11 + + - 4 THEN NULL ELSE + SUM ( - 52 ) END ), - 49 AS col2
----
-97
45
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4791
SELECT + 47 DIV - COUNT( * ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-4791
SELECT + 47 / - COUNT ( * ) AS col0
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4792
SELECT 25 - + - 44 * COUNT( 87 ) AS col1, 90 * + NULLIF ( - 45, - 7 / + 5 * - + 43 ) + 16 + CAST( NULL AS SIGNED ) / 72 * - + 71
----
69
NULL

skipif mysql # not compatible
query II rowsort label-4792
SELECT 25 - + - 44 * COUNT ( 87 ) AS col1, 90 * + NULLIF ( - 45, - 7 / + 5 * - + 43 ) + 16 + CAST ( NULL AS INTEGER ) / 72 * - + 71
----
69
NULL

query I rowsort
SELECT - ( - - 77 ) + + ( + + 76 ) AS col1
----
-1

query II rowsort
SELECT ALL + 30 AS col0, 56
----
30
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4795
SELECT - 14 / CAST( NULL AS SIGNED ) * - 35 + - 71 * - 54 + - 34, + 60 col0
----
NULL
60

skipif mysql # not compatible
query II rowsort label-4795
SELECT - 14 / CAST ( NULL AS INTEGER ) * - 35 + - 71 * - 54 + - 34, + 60 col0
----
NULL
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT ALL - - 31 + - COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-4796
SELECT ALL - - 31 + - COUNT ( * )
----
30

query I rowsort
SELECT ALL 97 + + 65
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT 94 - - COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-4798
SELECT 94 - - COUNT ( * )
----
95

query I rowsort
SELECT - + 47 - 16 + - + 43 * - - 20 col1
----
-923

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4800
SELECT + COUNT( * ) * - 68 AS col0, 63 DIV 84 * + 50 DIV + + COUNT( * )
----
-68
0

skipif mysql # not compatible
query II rowsort label-4800
SELECT + COUNT ( * ) * - 68 AS col0, 63 / 84 * + 50 / + + COUNT ( * )
----
-68
0

query I rowsort
SELECT - CASE + + ( - 45 ) WHEN + 68 + + 58 THEN + 51 END
----
NULL

query II rowsort
SELECT - 66, 88 AS col2
----
-66
88

onlyif mysql # DIV for integer division: 
query II rowsort label-4803
SELECT - + 78 AS col2, - 92 DIV + 46
----
-78
-2

skipif mysql # not compatible
query II rowsort label-4803
SELECT - + 78 AS col2, - 92 / + 46
----
-78
-2

query I rowsort
SELECT - 30 + - 36 AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT - 81 * - - 68 + + ( + 51 ) + CASE - 77 WHEN 86 * + MAX( + 67 ) * - COUNT( * ) THEN NULL ELSE + 39 END * + COALESCE ( + 30, + 82 ) AS col2
----
-4287

skipif mysql # not compatible
query I rowsort label-4805
SELECT - 81 * - - 68 + + ( + 51 ) + CASE - 77 WHEN 86 * + MAX ( + 67 ) * - COUNT ( * ) THEN NULL ELSE + 39 END * + COALESCE ( + 30, + 82 ) AS col2
----
-4287

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4806
SELECT - 70 DIV + + COUNT( * )
----
-70

skipif mysql # not compatible
query I rowsort label-4806
SELECT - 70 / + + COUNT ( * )
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-4807
SELECT DISTINCT - 84 DIV + + ( - 73 )
----
1

skipif mysql # not compatible
query I rowsort label-4807
SELECT DISTINCT - 84 / + + ( - 73 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4808
SELECT ALL + ( - COUNT( * ) ), - ( + + 94 ) - - COUNT( ALL 82 ) AS col1
----
-1
-93

skipif mysql # not compatible
query II rowsort label-4808
SELECT ALL + ( - COUNT ( * ) ), - ( + + 94 ) - - COUNT ( ALL 82 ) AS col1
----
-1
-93

query I rowsort
SELECT - 17 * + 79 AS col0
----
-1343

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4810
SELECT - COUNT( * ) * + COALESCE ( - COUNT( * ), + 5, + 92 * + 9 + - ( 99 ) DIV - 42 + - - 43 * + + SUM( 16 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4810
SELECT - COUNT ( * ) * + COALESCE ( - COUNT ( * ), + 5, + 92 * + 9 + - ( 99 ) / - 42 + - - 43 * + + SUM ( 16 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT DISTINCT - 85 * 21 * - COUNT( * ) * 53
----
94605

skipif mysql # not compatible
query I rowsort label-4811
SELECT DISTINCT - 85 * 21 * - COUNT ( * ) * 53
----
94605

query I rowsort
SELECT + 16 * - + 76 col1
----
-1216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4813
SELECT - COUNT( * ) DIV - 27 * + - 26 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4813
SELECT - COUNT ( * ) / - 27 * + - 26 AS col0
----
0

query I rowsort
SELECT NULLIF ( + 59, - 16 * 20 ) AS col0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4815
SELECT - 80 * + 79 * + CAST( - 75 AS SIGNED )
----
474000

skipif mysql # not compatible
query I rowsort label-4815
SELECT - 80 * + 79 * + CAST ( - 75 AS INTEGER )
----
474000

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT ALL COUNT( * ) * + 31 + 48 * - ( + 38 )
----
-1793

skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL COUNT ( * ) * + 31 + 48 * - ( + 38 )
----
-1793

query I rowsort
SELECT ALL + 53 * - 39 + + - 47 * + + 89 * - + 74 + + 50 AS col0
----
307525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4818
SELECT DISTINCT COUNT( * ) * + + 61 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4818
SELECT DISTINCT COUNT ( * ) * + + 61 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT SUM( 66 )
----
66

skipif mysql # not compatible
query I rowsort label-4819
SELECT SUM ( 66 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT - ( + 53 ) + + - 52 + - - MAX( + + ( - - 40 ) ) col2
----
-65

skipif mysql # not compatible
query I rowsort label-4820
SELECT - ( + 53 ) + + - 52 + - - MAX ( + + ( - - 40 ) ) col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT - - COUNT( * ) + + + 72 * + 85 - - 55 AS col1
----
6176

skipif mysql # not compatible
query I rowsort label-4821
SELECT - - COUNT ( * ) + + + 72 * + 85 - - 55 AS col1
----
6176

query I rowsort
SELECT ALL - 31 + + - 61 AS col2
----
-92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4823
SELECT ALL - MAX( DISTINCT ( + ( + 85 ) ) ) * - - 49 + 36 + - 84 * 86 * + 91 * - CAST( NULL AS DECIMAL ) / - ( - 48 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL - MAX ( DISTINCT ( + ( + 85 ) ) ) * - - 49 + 36 + - 84 * 86 * + 91 * - CAST ( NULL AS REAL ) / - ( - 48 )
----
NULL

query I rowsort
SELECT DISTINCT ( + 2 ) - - + ( - - 10 ) col1
----
12

onlyif mysql # DIV for integer division: 
query II rowsort label-4825
SELECT ALL 4 - - + 20 col2, + 13 DIV + 37 col2
----
24
0

skipif mysql # not compatible
query II rowsort label-4825
SELECT ALL 4 - - + 20 col2, + 13 / + 37 col2
----
24
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT + COUNT( - 34 ) * + 57 * + ( - 16 ) AS col2
----
-912

skipif mysql # not compatible
query I rowsort label-4826
SELECT + COUNT ( - 34 ) * + 57 * + ( - 16 ) AS col2
----
-912

query I rowsort
SELECT + 61 + 76 + - 12
----
125

query I rowsort
SELECT + + 50 * + 86
----
4300

query I rowsort
SELECT + + 91 * + 79
----
7189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4830
SELECT ALL COUNT( * ) AS col0, + ( + CASE COUNT( * ) WHEN + ( + 81 ) THEN NULLIF ( 18, + 22 ) ELSE - 76 + - CAST( NULL AS SIGNED ) END ) / + - 82 * - - 32
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4830
SELECT ALL COUNT ( * ) AS col0, + ( + CASE COUNT ( * ) WHEN + ( + 81 ) THEN NULLIF ( 18, + 22 ) ELSE - 76 + - CAST ( NULL AS INTEGER ) END ) / + - 82 * - - 32
----
1
NULL

query I rowsort
SELECT + 59 * - 56 AS col2
----
-3304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4832
SELECT CAST( - + 0 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4832
SELECT CAST ( - + 0 AS INTEGER ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4833
SELECT + 90 AS col1, - NULLIF ( + - COUNT( * ), - - 65 ) AS col0
----
90
1

skipif mysql # not compatible
query II rowsort label-4833
SELECT + 90 AS col1, - NULLIF ( + - COUNT ( * ), - - 65 ) AS col0
----
90
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT DISTINCT + NULLIF ( 5, 70 * - 29 + + 57 / - + COUNT( * ) - 89 * 94 * 23 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-4834
SELECT DISTINCT + NULLIF ( 5, 70 * - 29 + + 57 / - + COUNT ( * ) - 89 * 94 * 23 ) AS col2
----
5

query I rowsort
SELECT + 11 - + 76 AS col1
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4836
SELECT DISTINCT 52 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4836
SELECT DISTINCT 52 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4837
SELECT ALL + COUNT( * ) AS col0, - COUNT( * ) * - - 81 * - 69 + + 83
----
1
5672

skipif mysql # not compatible
query II rowsort label-4837
SELECT ALL + COUNT ( * ) AS col0, - COUNT ( * ) * - - 81 * - 69 + + 83
----
1
5672

onlyif mysql # DIV for integer division: 
query II rowsort label-4838
SELECT DISTINCT 41 DIV + 84 + - 52 AS col1, 48
----
-52
48

skipif mysql # not compatible
query II rowsort label-4838
SELECT DISTINCT 41 / + 84 + - 52 AS col1, 48
----
-52
48

onlyif mysql # DIV for integer division: 
query I rowsort label-4839
SELECT + 91 * 37 + + 42 DIV 40 AS col1
----
3368

skipif mysql # not compatible
query I rowsort label-4839
SELECT + 91 * 37 + + 42 / 40 AS col1
----
3368

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT 36 * + CASE - 58 WHEN + 85 / + + 87 * - - 62 THEN COUNT( * ) + + 15 END - + 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4840
SELECT 36 * + CASE - 58 WHEN + 85 / + + 87 * - - 62 THEN COUNT ( * ) + + 15 END - + 91 AS col2
----
NULL

query I rowsort
SELECT - ( + + 53 ) * - + 42 AS col2
----
2226

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4842
SELECT - CAST( NULL AS DECIMAL ) / - + 8 * + MIN( 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4842
SELECT - CAST ( NULL AS REAL ) / - + 8 * + MIN ( 84 )
----
NULL

query I rowsort
SELECT ( + 36 ) * - ( + ( - + 16 ) ) + - + 55 * - + 29 AS col0
----
2171

query I rowsort
SELECT ALL - 77 * - 33 AS col0
----
2541

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT + - COUNT( DISTINCT - - 62 )
----
-1

skipif mysql # not compatible
query I rowsort label-4845
SELECT + - COUNT ( DISTINCT - - 62 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT ALL + + CASE + 64 WHEN - 63 / + 96 THEN + 7 + - ( - 76 ) * - 59 WHEN COUNT( * ) THEN COUNT( * ) WHEN 58 * - + 32 + - 41 + + ( + CASE + 50 WHEN - 76 + + 2 THEN 12 / + 22 * + + 20 + + - 79 + - 50 - 57 WHEN - + 6 / + 67 THEN - + 38 END ) THEN - 33 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4846
SELECT ALL + + CASE + 64 WHEN - 63 / + 96 THEN + 7 + - ( - 76 ) * - 59 WHEN COUNT ( * ) THEN COUNT ( * ) WHEN 58 * - + 32 + - 41 + + ( + CASE + 50 WHEN - 76 + + 2 THEN 12 / + 22 * + + 20 + + - 79 + - 50 - 57 WHEN - + 6 / + 67 THEN - + 38 END ) THEN - 33 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4847
SELECT - + 97 * + + MAX( DISTINCT + 19 ) AS col2, + COALESCE ( - 39, - 80 + - 29, + 41 ) * + 49 + 58 + + 45 * COUNT( * ) + - - NULLIF ( - 1, - 55 * - - MIN( + - ( 83 ) ) + - + 72 + - 29 ) * COALESCE ( - - 51, + ( 30 ) * MAX( - + 26 ) + - 71 ) * - 71
----
-1843
1813

skipif mysql # not compatible
query II rowsort label-4847
SELECT - + 97 * + + MAX ( DISTINCT + 19 ) AS col2, + COALESCE ( - 39, - 80 + - 29, + 41 ) * + 49 + 58 + + 45 * COUNT ( * ) + - - NULLIF ( - 1, - 55 * - - MIN ( + - ( 83 ) ) + - + 72 + - 29 ) * COALESCE ( - - 51, + ( 30 ) * MAX ( - + 26 ) + - 71 ) * - 71
----
-1843
1813

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT DISTINCT - COUNT( * ) - 63
----
-64

skipif mysql # not compatible
query I rowsort label-4848
SELECT DISTINCT - COUNT ( * ) - 63
----
-64

query II rowsort
SELECT ALL 5, - 1 AS col2
----
5
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4850
SELECT - 17 AS col2, COUNT( * ) * + - 58
----
-17
-58

skipif mysql # not compatible
query II rowsort label-4850
SELECT - 17 AS col2, COUNT ( * ) * + - 58
----
-17
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT - SUM( + 43 ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-4851
SELECT - SUM ( + 43 ) AS col0
----
-43

query II rowsort
SELECT - - 16 AS col2, 6
----
16
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4853
SELECT COUNT( * ) + + - 47 DIV + - 98
----
1

skipif mysql # not compatible
query I rowsort label-4853
SELECT COUNT ( * ) + + - 47 / + - 98
----
1

query I rowsort
SELECT CASE - + 54 WHEN - 34 THEN ( - 46 ) + + - 19 + + 84 WHEN 6 - 59 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4855
SELECT - 21 DIV + - 77
----
0

skipif mysql # not compatible
query I rowsort label-4855
SELECT - 21 / + - 77
----
0

query I rowsort
SELECT - 78 + ( + 92 )
----
14

query I rowsort
SELECT 72 - + 38
----
34

query I rowsort
SELECT - 61 + - + 27
----
-88

query I rowsort
SELECT ALL 5 + + ( ( + + 32 ) ) * + 35
----
1125

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4860
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) + + + ( + CASE 26 WHEN 27 / + 79 + - 76 * 35 THEN NULL ELSE - 36 * + 23 * - - 85 END ) * 81 * + 90 AS col0, + CAST( NULL AS SIGNED ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4860
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) + + + ( + CASE 26 WHEN 27 / + 79 + - 76 * 35 THEN NULL ELSE - 36 * + 23 * - - 85 END ) * 81 * + 90 AS col0, + CAST ( NULL AS INTEGER ) AS col1
----
NULL
NULL

query I rowsort
SELECT 62 + - 12 * 49
----
-526

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT ALL MIN( ALL - 3 ) + 3
----
0

skipif mysql # not compatible
query I rowsort label-4862
SELECT ALL MIN ( ALL - 3 ) + 3
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4863
SELECT + 87 / 82 + - 96 - + 78 - CAST( NULL AS SIGNED ) - + 95 + + - 8 * - CASE + 27 WHEN - ( - 60 ) THEN COUNT( * ) END / - 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4863
SELECT + 87 / 82 + - 96 - + 78 - CAST ( NULL AS INTEGER ) - + 95 + + - 8 * - CASE + 27 WHEN - ( - 60 ) THEN COUNT ( * ) END / - 78 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT ALL + 67 + + - COUNT( * ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-4864
SELECT ALL + 67 + + - COUNT ( * ) AS col2
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4865
SELECT + COUNT( * ) DIV - + 66 + 97 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-4865
SELECT + COUNT ( * ) / - + 66 + 97 AS col0
----
97

query I rowsort
SELECT ALL 92 + + 96
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT DISTINCT MIN( 50 ) * - 60 AS col2
----
-3000

skipif mysql # not compatible
query I rowsort label-4867
SELECT DISTINCT MIN ( 50 ) * - 60 AS col2
----
-3000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4868
SELECT DISTINCT 62 * - - ( COUNT( DISTINCT + 88 ) ), CASE 27 WHEN 55 THEN NULL WHEN - 79 THEN + 5 / + 7 + - - CAST( COUNT( * ) AS SIGNED ) + - - 62 ELSE NULL END + - + CAST( NULL AS DECIMAL ) + - SUM( DISTINCT + 66 ) * - 73 AS col1
----
62
NULL

skipif mysql # not compatible
query II rowsort label-4868
SELECT DISTINCT 62 * - - ( COUNT ( DISTINCT + 88 ) ), CASE 27 WHEN 55 THEN NULL WHEN - 79 THEN + 5 / + 7 + - - CAST ( COUNT ( * ) AS INTEGER ) + - - 62 ELSE NULL END + - + CAST ( NULL AS REAL ) + - SUM ( DISTINCT + 66 ) * - 73 AS col1
----
62
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4869
SELECT CAST( NULL AS DECIMAL ) + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-4869
SELECT CAST ( NULL AS REAL ) + 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT ALL 56 - + 99 + - - COUNT( * ) * 27
----
-16

skipif mysql # not compatible
query I rowsort label-4870
SELECT ALL 56 - + 99 + - - COUNT ( * ) * 27
----
-16

query I rowsort
SELECT ALL + + 62 - + 63 AS col0
----
-1

query I rowsort
SELECT - 93 * + + 14 AS col2
----
-1302

query II rowsort
SELECT + 3 + + 23, 22 AS col2
----
26
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT + 41 * - 6 + + COALESCE ( 22, COUNT( * ) * 59 + - ( - COUNT( * ) ) )
----
-224

skipif mysql # not compatible
query I rowsort label-4874
SELECT + 41 * - 6 + + COALESCE ( 22, COUNT ( * ) * 59 + - ( - COUNT ( * ) ) )
----
-224

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT ALL - + MIN( + 33 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-4875
SELECT ALL - + MIN ( + 33 ) AS col2
----
-33

query I rowsort
SELECT 38 * - 62 + - + 16 * + 43 AS col0
----
-3044

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4877
SELECT + 69 + 58 + COUNT( + 90 ) * + COALESCE ( - - ( SUM( + - 32 ) ), - + 7 * - 25 - 4 + + COUNT( - + 2 ) DIV MAX( - - 23 ), + + MIN( DISTINCT 77 ) + + 31 ) col2
----
95

skipif mysql # not compatible
query I rowsort label-4877
SELECT + 69 + 58 + COUNT ( + 90 ) * + COALESCE ( - - ( SUM ( + - 32 ) ), - + 7 * - 25 - 4 + + COUNT ( - + 2 ) / MAX ( - - 23 ), + + MIN ( DISTINCT 77 ) + + 31 ) col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT COALESCE ( - + 7, 57 ) * COUNT( * ) + 38
----
31

skipif mysql # not compatible
query I rowsort label-4878
SELECT COALESCE ( - + 7, 57 ) * COUNT ( * ) + 38
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT ALL + ( + MIN( - 51 ) )
----
-51

skipif mysql # not compatible
query I rowsort label-4879
SELECT ALL + ( + MIN ( - 51 ) )
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-4880
SELECT DISTINCT 48 DIV - + 36 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4880
SELECT DISTINCT 48 / - + 36 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4881
SELECT ALL - 30 * + + 52 * + + CASE + - COUNT( * ) WHEN - CAST( NULL AS SIGNED ) + - 51 THEN + - 16 * + + COALESCE ( + - 84, NULLIF ( - 7, - 19 ) * + - 23 * + 62 + 78 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL - 30 * + + 52 * + + CASE + - COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) + - 51 THEN + - 16 * + + COALESCE ( + - 84, NULLIF ( - 7, - 19 ) * + - 23 * + 62 + 78 ) END AS col1
----
NULL

query I rowsort
SELECT 18 * - + 24 + - 13 * + 1 AS col2
----
-445

query I rowsort
SELECT ALL - + 53 * 28 * + + 21 AS col2
----
-31164

onlyif mysql # aggregate syntax: 
query II rowsort label-4884
SELECT DISTINCT SUM( DISTINCT 70 ), 56 AS col0
----
70
56

skipif mysql # not compatible
query II rowsort label-4884
SELECT DISTINCT SUM ( DISTINCT 70 ), 56 AS col0
----
70
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT - 10 * + COALESCE ( + ( + 92 ), - COUNT( + 72 ) ) - + 2
----
-922

skipif mysql # not compatible
query I rowsort label-4885
SELECT - 10 * + COALESCE ( + ( + 92 ), - COUNT ( + 72 ) ) - + 2
----
-922

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT + COUNT( * ) + COUNT( * ) + + 49
----
51

skipif mysql # not compatible
query I rowsort label-4886
SELECT + COUNT ( * ) + COUNT ( * ) + + 49
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4887
SELECT DISTINCT + - 40 * - NULLIF ( + + 23, - CASE WHEN NOT + 6 BETWEEN + 52 AND 34 AND NOT ( NULL ) IN ( - + CAST( NULL AS SIGNED ) - 25 ) THEN NULLIF ( + 96, + 29 + 64 ) END )
----
920

skipif mysql # not compatible
query I rowsort label-4887
SELECT DISTINCT + - 40 * - NULLIF ( + + 23, - CASE WHEN NOT + 6 BETWEEN + 52 AND 34 AND NOT ( NULL ) IN ( - + CAST ( NULL AS INTEGER ) - 25 ) THEN NULLIF ( + 96, + 29 + 64 ) END )
----
920

onlyif mysql # aggregate syntax: 
query II rowsort label-4888
SELECT + COUNT( * ) + + 59 * + 28 * + 37 AS col1, 22 * 38
----
61125
836

skipif mysql # not compatible
query II rowsort label-4888
SELECT + COUNT ( * ) + + 59 * + 28 * + 37 AS col1, 22 * 38
----
61125
836

onlyif mysql # aggregate syntax: 
query II rowsort label-4889
SELECT + 76 * + + COUNT( * ) + - - ( - 41 ) AS col1, 59
----
35
59

skipif mysql # not compatible
query II rowsort label-4889
SELECT + 76 * + + COUNT ( * ) + - - ( - 41 ) AS col1, 59
----
35
59

query I rowsort
SELECT 87 + + 61 * 5 AS col0
----
392

query II rowsort
SELECT ALL + - 65 + 18 AS col0, 63 AS col1
----
-47
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4892
SELECT - - CASE - 52 WHEN - - 61 * + COALESCE ( + + CAST( + 76 AS SIGNED ), + + COUNT( * ), - ( - 25 ) / - + 89 + COUNT( * ) ) THEN 2 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4892
SELECT - - CASE - 52 WHEN - - 61 * + COALESCE ( + + CAST ( + 76 AS INTEGER ), + + COUNT ( * ), - ( - 25 ) / - + 89 + COUNT ( * ) ) THEN 2 END
----
NULL

query I rowsort
SELECT DISTINCT + 80 + - + 93
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT DISTINCT - MIN( DISTINCT - - 72 ) + + - COUNT( * ) * + + 83
----
-155

skipif mysql # not compatible
query I rowsort label-4894
SELECT DISTINCT - MIN ( DISTINCT - - 72 ) + + - COUNT ( * ) * + + 83
----
-155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4895
SELECT DISTINCT COUNT( * ) + + - 87 + - 94 * - CAST( + - COUNT( * ) AS SIGNED ) * - 63 AS col1
----
5836

skipif mysql # not compatible
query I rowsort label-4895
SELECT DISTINCT COUNT ( * ) + + - 87 + - 94 * - CAST ( + - COUNT ( * ) AS INTEGER ) * - 63 AS col1
----
5836

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4896
SELECT ALL MAX( - + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4896
SELECT ALL MAX ( - + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT 61 + 92 + - COUNT( + 55 )
----
152

skipif mysql # not compatible
query I rowsort label-4897
SELECT 61 + 92 + - COUNT ( + 55 )
----
152

query I rowsort
SELECT ALL 76 * 63 + 77 AS col0
----
4865

query I rowsort
SELECT DISTINCT - 46 * + - 51
----
2346

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4900
SELECT 2 * + + CASE + + CAST( NULL AS SIGNED ) WHEN 11 + - COUNT( * ) THEN + 15 ELSE - 47 * COUNT( * ) + COUNT( * ) END * COUNT( * ) + - ( + - ( + 58 ) ) - - 23
----
-11

skipif mysql # not compatible
query I rowsort label-4900
SELECT 2 * + + CASE + + CAST ( NULL AS INTEGER ) WHEN 11 + - COUNT ( * ) THEN + 15 ELSE - 47 * COUNT ( * ) + COUNT ( * ) END * COUNT ( * ) + - ( + - ( + 58 ) ) - - 23
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT ALL COUNT( * ) * + + 63 - + + 70 * + - 15
----
1113

skipif mysql # not compatible
query I rowsort label-4901
SELECT ALL COUNT ( * ) * + + 63 - + + 70 * + - 15
----
1113

onlyif mysql # DIV for integer division: 
query I rowsort label-4902
SELECT + 44 DIV + 58 * + - 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4902
SELECT + 44 / + 58 * + - 95 AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4903
SELECT + CASE + - 24 WHEN - 30 THEN - CAST( CAST( NULL AS DECIMAL ) AS DECIMAL ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4903
SELECT + CASE + - 24 WHEN - 30 THEN - CAST ( CAST ( NULL AS REAL ) AS REAL ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4904
SELECT 88 AS col1, + COUNT( * ) AS col2
----
88
1

skipif mysql # not compatible
query II rowsort label-4904
SELECT 88 AS col1, + COUNT ( * ) AS col2
----
88
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT DISTINCT + + COUNT( ALL - + 38 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4905
SELECT DISTINCT + + COUNT ( ALL - + 38 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT ALL ( - COUNT( * ) ) * - - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4906
SELECT ALL ( - COUNT ( * ) ) * - - COUNT ( * )
----
-1

query I rowsort
SELECT ALL 54 * + 85 col1
----
4590

query II rowsort
SELECT ALL 25, + 9 AS col0
----
25
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT + - MAX( - 46 ) + + NULLIF ( - 29, - COUNT( * ) + 28 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-4909
SELECT + - MAX ( - 46 ) + + NULLIF ( - 29, - COUNT ( * ) + 28 ) AS col1
----
17

query I rowsort
SELECT - + 29 + 47 + - - COALESCE ( + 38, 83, - + 22 + 49 + + 78 / - + 87 * + 91 ) + NULLIF ( + CASE - + ( 53 ) WHEN + 28 * 98 THEN - 61 END, 78 + + 99 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4911
SELECT + + 18 DIV 23 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4911
SELECT + + 18 / 23 AS col1
----
0

query I rowsort
SELECT ALL - 7 + - - 80 AS col0
----
73

query I rowsort
SELECT + 69 - + 88 + + 34 AS col0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4914
SELECT CAST( + 60 AS SIGNED ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-4914
SELECT CAST ( + 60 AS INTEGER ) AS col2
----
60

query I rowsort
SELECT + + 25 * + 40 * + 61 + - 8 AS col1
----
60992

onlyif mysql # aggregate syntax: 
query II rowsort label-4916
SELECT + 87, + COUNT( * ) AS col2
----
87
1

skipif mysql # not compatible
query II rowsort label-4916
SELECT + 87, + COUNT ( * ) AS col2
----
87
1

query I rowsort
SELECT - 96 + 20 AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT ALL 66 + - + SUM( ALL ( + + 25 ) ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-4918
SELECT ALL 66 + - + SUM ( ALL ( + + 25 ) ) AS col1
----
41

query II rowsort
SELECT 27 AS col0, + 62 * + 95 AS col0
----
27
5890

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT ALL + 77 * + COUNT( 75 )
----
77

skipif mysql # not compatible
query I rowsort label-4920
SELECT ALL + 77 * + COUNT ( 75 )
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4921
SELECT - 10 + - 62 * CAST( + 96 AS SIGNED ) AS col1
----
-5962

skipif mysql # not compatible
query I rowsort label-4921
SELECT - 10 + - 62 * CAST ( + 96 AS INTEGER ) AS col1
----
-5962

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4922
SELECT ALL + 4 - - + MIN( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4922
SELECT ALL + 4 - - + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT - 52 AS col0, + 64 AS col1
----
-52
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4924
SELECT 45 AS col0, - COUNT( * ) * CASE + - CASE + CAST( - - 33 AS SIGNED ) WHEN + MIN( ALL - 97 ) THEN - 7 + 73 * - - 76 ELSE NULL END WHEN + - 72 THEN + - 77 * + + 22 ELSE - + 73 END
----
45
73

skipif mysql # not compatible
query II rowsort label-4924
SELECT 45 AS col0, - COUNT ( * ) * CASE + - CASE + CAST ( - - 33 AS INTEGER ) WHEN + MIN ( ALL - 97 ) THEN - 7 + 73 * - - 76 ELSE NULL END WHEN + - 72 THEN + - 77 * + + 22 ELSE - + 73 END
----
45
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT - 98 + - COUNT( * )
----
-99

skipif mysql # not compatible
query I rowsort label-4925
SELECT - 98 + - COUNT ( * )
----
-99

query I rowsort
SELECT ALL + 5 - + + 78 * - 10
----
785

query I rowsort
SELECT - 51 + - 7 AS col0
----
-58

query I rowsort
SELECT - 68 * + + 49 * + - 15 AS col0
----
49980

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT + MAX( 23 )
----
23

skipif mysql # not compatible
query I rowsort label-4929
SELECT + MAX ( 23 )
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-4930
SELECT + 20 + - + 21 - 11 + 30 * + 3 + + - 4 * - 79 * - 96 * - 55 + 75 DIV 87 + 23 * + 72
----
1670214

skipif mysql # not compatible
query I rowsort label-4930
SELECT + 20 + - + 21 - 11 + 30 * + 3 + + - 4 * - 79 * - 96 * - 55 + 75 / 87 + 23 * + 72
----
1670214

query I rowsort
SELECT - 32 * - + 60
----
1920

query II rowsort
SELECT ALL + 88 AS col0, + 10
----
88
10

query I rowsort
SELECT DISTINCT - 96 * 59 AS col2
----
-5664

query II rowsort
SELECT + - 78, - CASE + 11 WHEN + 13 THEN NULL WHEN - 78 + 2 THEN NULL WHEN + ( + - 22 ) * + 17 THEN - 18 + + + 36 ELSE - 18 END AS col1
----
-78
18

q