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

query II rowsort
SELECT ALL + - 81 AS col1, - 66
----
-81
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4936
SELECT 57 * + - CAST( NULL AS SIGNED ) + + - 69 + + 11 AS col2, 80 + - - 52
----
NULL
132

skipif mysql # not compatible
query II rowsort label-4936
SELECT 57 * + - CAST ( NULL AS INTEGER ) + + - 69 + + 11 AS col2, 80 + - - 52
----
NULL
132

query I rowsort
SELECT DISTINCT - 52 * - 13 AS col2
----
676

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4938
SELECT ALL + 94 * - 26 + 57 DIV - + SUM( DISTINCT 53 )
----
-2445

skipif mysql # not compatible
query I rowsort label-4938
SELECT ALL + 94 * - 26 + 57 / - + SUM ( DISTINCT 53 )
----
-2445

onlyif mysql # aggregate syntax: 
query I rowsort label-4939
SELECT + + COUNT( ALL + - 46 ) + - - 1
----
2

skipif mysql # not compatible
query I rowsort label-4939
SELECT + + COUNT ( ALL + - 46 ) + - - 1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT DISTINCT 65 * - COUNT( * ) + - 42 * + COUNT( ALL - 62 ) * + - ( 48 ) + + - 75 + + + 40 + - 77 AS col1
----
1839

skipif mysql # not compatible
query I rowsort label-4940
SELECT DISTINCT 65 * - COUNT ( * ) + - 42 * + COUNT ( ALL - 62 ) * + - ( 48 ) + + - 75 + + + 40 + - 77 AS col1
----
1839

onlyif mysql # DIV for integer division: 
query I rowsort label-4941
SELECT ALL - 13 DIV 92 * + 35 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4941
SELECT ALL - 13 / 92 * + 35 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4942
SELECT + MIN( ALL + + CAST( + 24 AS SIGNED ) )
----
24

skipif mysql # not compatible
query I rowsort label-4942
SELECT + MIN ( ALL + + CAST ( + 24 AS INTEGER ) )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT - COUNT( * ) * + ( - 89 ) + 99 AS col1
----
188

skipif mysql # not compatible
query I rowsort label-4943
SELECT - COUNT ( * ) * + ( - 89 ) + 99 AS col1
----
188

query II rowsort
SELECT 7, 54 AS col2
----
7
54

query II rowsort
SELECT + 94 * + ( - 88 ) + + 78 * + + 77 + + - 29, 57 + 67 AS col2
----
-2295
124

onlyif mysql # DIV for integer division: 
query I rowsort label-4946
SELECT ALL + 0 * 69 DIV + 30 + + 24
----
24

skipif mysql # not compatible
query I rowsort label-4946
SELECT ALL + 0 * 69 / + 30 + + 24
----
24

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4948
SELECT + - COUNT( DISTINCT - - 30 ) + COUNT( * ) - CAST( NULL AS SIGNED ) AS col2, - COALESCE ( + - 46, - - 66 )
----
NULL
46

skipif mysql # not compatible
query II rowsort label-4948
SELECT + - COUNT ( DISTINCT - - 30 ) + COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col2, - COALESCE ( + - 46, - - 66 )
----
NULL
46

onlyif mysql # aggregate syntax: 
query II rowsort label-4949
SELECT DISTINCT - COUNT( * ) * - 68 * - 81 + 66 + + + 21 - - CASE - - 21 WHEN + ( 16 ) - + 67 + + + 42 + COUNT( DISTINCT - 69 ) * + + 68 * + + 33 THEN NULL WHEN + - 48 THEN + + 74 END AS col0, COUNT( - + 47 ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4949
SELECT DISTINCT - COUNT ( * ) * - 68 * - 81 + 66 + + + 21 - - CASE - - 21 WHEN + ( 16 ) - + 67 + + + 42 + COUNT ( DISTINCT - 69 ) * + + 68 * + + 33 THEN NULL WHEN + - 48 THEN + + 74 END AS col0, COUNT ( - + 47 ) AS col0
----
NULL
1

query I rowsort
SELECT ALL + + 66 * - 97 + 44
----
-6358

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4951
SELECT ALL 55 * - 45 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4951
SELECT ALL 55 * - 45 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-4953
SELECT + COUNT ( * ) * + MAX ( ALL - 5 ) AS col1
----
-5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT ALL 40 - - SUM( DISTINCT - 41 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-4955
SELECT ALL 40 - - SUM ( DISTINCT - 41 ) col2
----
-1

query I rowsort
SELECT + 46 * - + 89
----
-4094

query I rowsort
SELECT - 11 + - 51 AS col0
----
-62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT + CASE - CASE - + 47 WHEN + + 91 + - 44 THEN NULL WHEN 60 THEN - + 72 + 39 / MIN( ALL 39 ) ELSE NULL END WHEN - 79 - + 82 THEN - 16 * 21 END / 16
----
NULL

skipif mysql # not compatible
query I rowsort label-4959
SELECT + CASE - CASE - + 47 WHEN + + 91 + - 44 THEN NULL WHEN 60 THEN - + 72 + 39 / MIN ( ALL 39 ) ELSE NULL END WHEN - 79 - + 82 THEN - 16 * 21 END / 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT DISTINCT + 91 * + NULLIF ( - 4, + 78 + NULLIF ( - - ( + NULLIF ( 29, + COUNT( * ) ) ), + 34 * + - COUNT( * ) ) + - - 11 + 2 + - 29 + + 47 )
----
-364

skipif mysql # not compatible
query I rowsort label-4960
SELECT DISTINCT + 91 * + NULLIF ( - 4, + 78 + NULLIF ( - - ( + NULLIF ( 29, + COUNT ( * ) ) ), + 34 * + - COUNT ( * ) ) + - - 11 + 2 + - 29 + + 47 )
----
-364

onlyif mysql # DIV for integer division: 
query I rowsort label-4961
SELECT DISTINCT 39 DIV 70 * + 51
----
0

skipif mysql # not compatible
query I rowsort label-4961
SELECT DISTINCT 39 / 70 * + 51
----
0

query I rowsort
SELECT 6 * - 30
----
-180

onlyif mysql # DIV for integer division: 
query I rowsort label-4963
SELECT 12 DIV - 97
----
0

skipif mysql # not compatible
query I rowsort label-4963
SELECT 12 / - 97
----
0

query II rowsort
SELECT ( NULLIF ( + ( - 2 ), 16 - + 72 ) ) + + 36 AS col2, + 41
----
34
41

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

skipif mysql # not compatible
query I rowsort label-4965
SELECT 37 + + 45 + - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4966
SELECT DISTINCT - ( + 63 ) * - - 5 - + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4966
SELECT DISTINCT - ( + 63 ) * - - 5 - + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - - 76 + - 8 * - 9 * - 93
----
-6620

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4968
SELECT + 67 DIV SUM( + 35 ) - + 10 * + + 66 - + MIN( - 45 ) * - 68 * 14 AS col2
----
-43499

skipif mysql # not compatible
query I rowsort label-4968
SELECT + 67 / SUM ( + 35 ) - + 10 * + + 66 - + MIN ( - 45 ) * - 68 * 14 AS col2
----
-43499

query I rowsort
SELECT DISTINCT - - 14 AS col0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4970
SELECT + 53 + 10 * CAST( - 16 AS SIGNED ) - + - 24 + + 57 * + ( + - 65 )
----
-3788

skipif mysql # not compatible
query I rowsort label-4970
SELECT + 53 + 10 * CAST ( - 16 AS INTEGER ) - + - 24 + + 57 * + ( + - 65 )
----
-3788

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

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

query I rowsort
SELECT ALL - 73 + + 73 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT 68 * + - COUNT( * ) + 53 + 87
----
72

skipif mysql # not compatible
query I rowsort label-4973
SELECT 68 * + - COUNT ( * ) + 53 + 87
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-4974
SELECT 3 DIV 61
----
0

skipif mysql # not compatible
query I rowsort label-4974
SELECT 3 / 61
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT DISTINCT - + MIN( + 28 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-4975
SELECT DISTINCT - + MIN ( + 28 ) AS col0
----
-28

query I rowsort
SELECT DISTINCT + + 42 + + 60 * + 43 + 77 AS col0
----
2699

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4977
SELECT DISTINCT - 8 DIV - COUNT( * ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-4977
SELECT DISTINCT - 8 / - COUNT ( * ) AS col2
----
8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4978
SELECT MAX( ALL + + 24 ) + SUM( + CAST( NULL AS DECIMAL ) ) * + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-4978
SELECT MAX ( ALL + + 24 ) + SUM ( + CAST ( NULL AS REAL ) ) * + 99
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4979
SELECT ALL 35, COUNT( * ) AS col1
----
35
1

skipif mysql # not compatible
query II rowsort label-4979
SELECT ALL 35, COUNT ( * ) AS col1
----
35
1

query I rowsort
SELECT DISTINCT 34 * + 47
----
1598

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT DISTINCT 98 * COUNT( * ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-4981
SELECT DISTINCT 98 * COUNT ( * ) AS col1
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4982
SELECT ALL 4, + 30 + + - 44 + + 25 + - - 20 * - - 16 * 66 * - CASE - 22 WHEN + 39 / + 77 THEN + 14 + 27 + - - CASE + CAST( - 6 AS SIGNED ) WHEN - - COUNT( * ) THEN + 47 END * - ( + 73 ) * - 82 WHEN 25 + + + 96 + 55 THEN + 50 ELSE NULL END col1
----
4
NULL

skipif mysql # not compatible
query II rowsort label-4982
SELECT ALL 4, + 30 + + - 44 + + 25 + - - 20 * - - 16 * 66 * - CASE - 22 WHEN + 39 / + 77 THEN + 14 + 27 + - - CASE + CAST ( - 6 AS INTEGER ) WHEN - - COUNT ( * ) THEN + 47 END * - ( + 73 ) * - 82 WHEN 25 + + + 96 + 55 THEN + 50 ELSE NULL END col1
----
4
NULL

query I rowsort
SELECT NULLIF ( + + 79, - + 56 - - 58 ) - + ( - 47 )
----
126

query I rowsort
SELECT 31 + 34 AS col2
----
65

query II rowsort
SELECT ALL 16 AS col1, 23
----
16
23

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4987
SELECT 8 AS col0, MAX( 17 )
----
8
17

skipif mysql # not compatible
query II rowsort label-4987
SELECT 8 AS col0, MAX ( 17 )
----
8
17

onlyif mysql # DIV for integer division: 
query I rowsort label-4988
SELECT DISTINCT ( ( + 55 ) ) DIV - + 73 * + ( - 89 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4988
SELECT DISTINCT ( ( + 55 ) ) / - + 73 * + ( - 89 ) AS col0
----
0

query I rowsort
SELECT ALL 79 + + 25
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT MAX( ALL - 57 ) + - - 44 * + - 24 AS col2
----
-1113

skipif mysql # not compatible
query I rowsort label-4990
SELECT MAX ( ALL - 57 ) + - - 44 * + - 24 AS col2
----
-1113

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT DISTINCT COUNT( * ) + - + COALESCE ( - + 42, 78 ) * - 54
----
-2267

skipif mysql # not compatible
query I rowsort label-4991
SELECT DISTINCT COUNT ( * ) + - + COALESCE ( - + 42, 78 ) * - 54
----
-2267

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT ALL 7 + + CASE - SUM( ALL 53 ) WHEN + 53 THEN + COUNT( * ) + 17 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4992
SELECT ALL 7 + + CASE - SUM ( ALL 53 ) WHEN + 53 THEN + COUNT ( * ) + 17 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT 41 * + SUM( ALL + 75 )
----
3075

skipif mysql # not compatible
query I rowsort label-4993
SELECT 41 * + SUM ( ALL + 75 )
----
3075

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT ALL - COUNT( * ) * 98 + 50 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-4994
SELECT ALL - COUNT ( * ) * 98 + 50 AS col1
----
-48

query II rowsort
SELECT DISTINCT - 89, 97 + 94 AS col0
----
-89
191

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT + MIN( DISTINCT + 98 ) * 88 * - + 25 * - + ( - 53 ) + - 8
----
-11426808

skipif mysql # not compatible
query I rowsort label-4996
SELECT + MIN ( DISTINCT + 98 ) * 88 * - + 25 * - + ( - 53 ) + - 8
----
-11426808

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

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

query I rowsort
SELECT ALL + 50 * 98
----
4900

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT - COALESCE ( + 4, + - NULLIF ( - ( MIN( DISTINCT - 52 ) ), 70 ) ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-4999
SELECT - COALESCE ( + 4, + - NULLIF ( - ( MIN ( DISTINCT - 52 ) ), 70 ) ) AS col2
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-5000
SELECT - COUNT( - 56 ) * + - 44 col1, 12
----
44
12

skipif mysql # not compatible
query II rowsort label-5000
SELECT - COUNT ( - 56 ) * + - 44 col1, 12
----
44
12

query I rowsort
SELECT - 20 - - ( + 86 ) - + 69 AS col1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5002
SELECT - 3 DIV 62 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5002
SELECT - 3 / 62 AS col1
----
0

query I rowsort
SELECT ALL + 18 * + 35 col2
----
630

query II rowsort
SELECT 71 * 12, - 74 AS col1
----
852
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT ALL - COUNT( + 13 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5005
SELECT ALL - COUNT ( + 13 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5006
SELECT 90 DIV + + 96
----
0

skipif mysql # not compatible
query I rowsort label-5006
SELECT 90 / + + 96
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-5008
SELECT DISTINCT MIN ( 75 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT - 39 * ( - - COUNT( * ) )
----
-39

skipif mysql # not compatible
query I rowsort label-5009
SELECT - 39 * ( - - COUNT ( * ) )
----
-39

query II rowsort
SELECT + 45 + + 70, + 46 AS col0
----
115
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5011
SELECT ALL - SUM( ALL - 11 ) DIV 4 + + 42 * - 73 - - 85 * + + MAX( + - 68 ) + - 63 + + 16 AS col0
----
-8891

skipif mysql # not compatible
query I rowsort label-5011
SELECT ALL - SUM ( ALL - 11 ) / 4 + + 42 * - 73 - - 85 * + + MAX ( + - 68 ) + - 63 + + 16 AS col0
----
-8891

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5012
SELECT - 92 DIV + NULLIF ( 87, - 52 * COUNT( * ) + ( - - 2 ) ) AS col2, SUM( DISTINCT + 16 ) AS col2
----
-1
16

skipif mysql # not compatible
query II rowsort label-5012
SELECT - 92 / + NULLIF ( 87, - 52 * COUNT ( * ) + ( - - 2 ) ) AS col2, SUM ( DISTINCT + 16 ) AS col2
----
-1
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT - NULLIF ( - SUM( + + 92 ), - AVG ( DISTINCT + + 18 ) )
----
92

skipif mysql # not compatible
query I rowsort label-5013
SELECT - NULLIF ( - SUM ( + + 92 ), - AVG ( DISTINCT + + 18 ) )
----
92

query I rowsort
SELECT ALL ( + 1 ) + - + 71 col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT DISTINCT COALESCE ( + 36, + MAX( 2 ) ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-5015
SELECT DISTINCT COALESCE ( + 36, + MAX ( 2 ) ) AS col1
----
36

query I rowsort
SELECT DISTINCT + 2 + 23 * + - 29 AS col1
----
-665

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT DISTINCT - ( + + ( 67 ) ) + - - 29 + + CASE 12 WHEN + COUNT( * ) THEN - - 8 - - - 65 END + 50 * - + COUNT( * ) * - 53 * + - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-5017
SELECT DISTINCT - ( + + ( 67 ) ) + - - 29 + + CASE 12 WHEN + COUNT ( * ) THEN - - 8 - - - 65 END + 50 * - + COUNT ( * ) * - 53 * + - 18
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5018
SELECT - 75 + - - CASE + + 80 WHEN - - COUNT( * ) THEN - CAST( - - 45 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5018
SELECT - 75 + - - CASE + + 80 WHEN - - COUNT ( * ) THEN - CAST ( - - 45 AS INTEGER ) END
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5021
SELECT ALL 21 / CASE - CAST( NULL AS SIGNED ) WHEN + + 54 THEN - 89 END * + COUNT( * ) - + 35 * + - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL 21 / CASE - CAST ( NULL AS INTEGER ) WHEN + + 54 THEN - 89 END * + COUNT ( * ) - + 35 * + - 62
----
NULL

query I rowsort
SELECT + - 19 * 3 + + - 19
----
-76

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT - + COUNT( * ) * - 79 + - COUNT( ALL 72 )
----
78

skipif mysql # not compatible
query I rowsort label-5024
SELECT - + COUNT ( * ) * - 79 + - COUNT ( ALL 72 )
----
78

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

skipif mysql # not compatible
query I rowsort label-5025
SELECT ALL - COUNT ( * ) * - COUNT ( * ) * + 19 AS col0
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5026
SELECT CAST( + - 98 AS SIGNED ) * - 77 - + - COUNT( * ) - + + 74
----
7473

skipif mysql # not compatible
query I rowsort label-5026
SELECT CAST ( + - 98 AS INTEGER ) * - 77 - + - COUNT ( * ) - + + 74
----
7473

onlyif mysql # DIV for integer division: 
query I rowsort label-5027
SELECT + + 58 DIV - 99 * + 36
----
0

skipif mysql # not compatible
query I rowsort label-5027
SELECT + + 58 / - 99 * + 36
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5028
SELECT ALL + - ( - 49 ) AS col2, + 30 + + COUNT( * ) + + 15 - + 58 * - 61 + + COALESCE ( - 39, + + 73 ) DIV 55 DIV 15 AS col2
----
49
3584

skipif mysql # not compatible
query II rowsort label-5028
SELECT ALL + - ( - 49 ) AS col2, + 30 + + COUNT ( * ) + + 15 - + 58 * - 61 + + COALESCE ( - 39, + + 73 ) / 55 / 15 AS col2
----
49
3584

query I rowsort
SELECT + - 83 * 15
----
-1245

query I rowsort
SELECT - 88 * - 38 AS col1
----
3344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5031
SELECT NULLIF ( + 4, + + MAX( + 3 ) ) * + - 60 * 54 * 3 * COALESCE ( 45, 73 * - 9, + 60 ) - + 95 + + CASE + NULLIF ( - 45, 60 ) WHEN - + 30 THEN NULL ELSE - + CAST( + + 45 AS SIGNED ) * - 34 END + + + 80 + COUNT( * ) + COUNT( * ) + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5031
SELECT NULLIF ( + 4, + + MAX ( + 3 ) ) * + - 60 * 54 * 3 * COALESCE ( 45, 73 * - 9, + 60 ) - + 95 + + CASE + NULLIF ( - 45, 60 ) WHEN - + 30 THEN NULL ELSE - + CAST ( + + 45 AS INTEGER ) * - 34 END + + + 80 + COUNT ( * ) + COUNT ( * ) + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT DISTINCT 23 * MIN( ALL - 48 )
----
-1104

skipif mysql # not compatible
query I rowsort label-5032
SELECT DISTINCT 23 * MIN ( ALL - 48 )
----
-1104

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT - 52 * - ( - COUNT( - 96 ) ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-5033
SELECT - 52 * - ( - COUNT ( - 96 ) ) AS col2
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5034
SELECT ALL + COALESCE ( 46, + 24, - CAST( - 74 AS SIGNED ) ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-5034
SELECT ALL + COALESCE ( 46, + 24, - CAST ( - 74 AS INTEGER ) ) AS col0
----
46

query I rowsort
SELECT ALL - 87 * + + 24
----
-2088

query I rowsort
SELECT + 16 + 92 * - + ( + 26 )
----
-2376

query I rowsort
SELECT - 22 * - CASE - 70 WHEN 64 THEN + 55 WHEN + + COALESCE ( - 59, + + 59 ) + 52 / - COALESCE ( + + 48, - 85 ) THEN + 23 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5038
SELECT - MIN ( DISTINCT - 23 )
----
23

query I rowsort
SELECT ALL 74 + + + 2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT - 86 + COUNT( * ) + COUNT( * ) * - 32 AS col2
----
-117

skipif mysql # not compatible
query I rowsort label-5040
SELECT - 86 + COUNT ( * ) + COUNT ( * ) * - 32 AS col2
----
-117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5041
SELECT DISTINCT - 70 + - COALESCE ( - 89, 83 - - 63 * - 55 * + CAST( + 6 AS SIGNED ), + 77 DIV - 46 * - COALESCE ( - + 41, - COUNT( * ) + - + 45 + COUNT( * ) * - 3 ) ) * - - MIN( 29 ) * - COUNT( * ) AS col1
----
-2651

skipif mysql # not compatible
query I rowsort label-5041
SELECT DISTINCT - 70 + - COALESCE ( - 89, 83 - - 63 * - 55 * + CAST ( + 6 AS INTEGER ), + 77 / - 46 * - COALESCE ( - + 41, - COUNT ( * ) + - + 45 + COUNT ( * ) * - 3 ) ) * - - MIN ( 29 ) * - COUNT ( * ) AS col1
----
-2651

query II rowsort
SELECT 33 AS col1, ( - - 7 )
----
33
7

query I rowsort
SELECT - 38 + 73 * + 86
----
6240

query I rowsort
SELECT DISTINCT + 97 + + 66 + + 81 * - + 9 + + NULLIF ( 22, + ( - 44 ) ) AS col1
----
-544

query I rowsort
SELECT - + 50 + COALESCE ( + 24, + - 10 + + - 37 ) AS col1
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-5046
SELECT ALL - 86 DIV + - 13 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-5046
SELECT ALL - 86 / + - 13 AS col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5047
SELECT - SUM( CAST( NULL AS DECIMAL ) ) * 96 + + + 94 - + + 64 * - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-5047
SELECT - SUM ( CAST ( NULL AS REAL ) ) * 96 + + + 94 - + + 64 * - 35
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5048
SELECT - 77 AS col1, - 68 + - COALESCE ( - NULLIF ( + MIN( ALL 16 ), + + NULLIF ( + + CAST( + COUNT( ALL - 16 ) AS SIGNED ), ( 90 ) + + ( - - CAST( 90 AS SIGNED ) ) ) ), - 89 )
----
-77
-52

skipif mysql # not compatible
query II rowsort label-5048
SELECT - 77 AS col1, - 68 + - COALESCE ( - NULLIF ( + MIN ( ALL 16 ), + + NULLIF ( + + CAST ( + COUNT ( ALL - 16 ) AS INTEGER ), ( 90 ) + + ( - - CAST ( 90 AS INTEGER ) ) ) ), - 89 )
----
-77
-52

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

skipif mysql # not compatible
query I rowsort label-5049
SELECT DISTINCT - - 27 / 87
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT ALL + NULLIF ( COUNT( 70 ), + 47 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5051
SELECT ALL + NULLIF ( COUNT ( 70 ), + 47 ) AS col1
----
1

query I rowsort
SELECT + 22 + - 1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT ALL - COUNT( * ) - - + COUNT( ALL + 87 ) * + + 10
----
9

skipif mysql # not compatible
query I rowsort label-5053
SELECT ALL - COUNT ( * ) - - + COUNT ( ALL + 87 ) * + + 10
----
9

query I rowsort
SELECT + + 23 * - + 81 - - 24 AS col2
----
-1839

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5055
SELECT ALL CASE + + 49 WHEN - 71 THEN 28 * - + 64 + - + 30 ELSE 38 * + 17 * NULLIF ( - COUNT( * ), + 18 * 34 + 26 * + + 88 * + 78 - CAST( - + 72 AS SIGNED ) ) + + 12 END
----
-634

skipif mysql # not compatible
query I rowsort label-5055
SELECT ALL CASE + + 49 WHEN - 71 THEN 28 * - + 64 + - + 30 ELSE 38 * + 17 * NULLIF ( - COUNT ( * ), + 18 * 34 + 26 * + + 88 * + 78 - CAST ( - + 72 AS INTEGER ) ) + + 12 END
----
-634

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT DISTINCT - + 22 * + MAX( - + 8 ) AS col0
----
176

skipif mysql # not compatible
query I rowsort label-5056
SELECT DISTINCT - + 22 * + MAX ( - + 8 ) AS col0
----
176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5057
SELECT - CASE - 16 WHEN + COALESCE ( + - SUM( DISTINCT - - ( - 98 ) ), + 21 ) THEN 5 WHEN - 91 + + 24 THEN NULL ELSE NULL END / - 51 - CAST( + 69 AS SIGNED ) + + 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5057
SELECT - CASE - 16 WHEN + COALESCE ( + - SUM ( DISTINCT - - ( - 98 ) ), + 21 ) THEN 5 WHEN - 91 + + 24 THEN NULL ELSE NULL END / - 51 - CAST ( + 69 AS INTEGER ) + + 37 AS col2
----
NULL

query I rowsort
SELECT ALL + 68 * + - 63 + - + 26 AS col0
----
-4310

query I rowsort
SELECT - 98 * + 81 AS col2
----
-7938

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5061
SELECT + - CASE - CAST( NULL AS SIGNED ) WHEN - 64 + - COUNT( * ) - 12 THEN + NULLIF ( + AVG ( + 69 ), 67 * - COUNT( * ) + + 41 + - + 45 + + + 50 / + 64 + COUNT( DISTINCT + 58 ) * + + ( + - ( - - 60 ) ) ) + + 73 WHEN - + 15 THEN NULL ELSE NULL END + - ( - - 42 ) * - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-5061
SELECT + - CASE - CAST ( NULL AS INTEGER ) WHEN - 64 + - COUNT ( * ) - 12 THEN + NULLIF ( + AVG ( + 69 ), 67 * - COUNT ( * ) + + 41 + - + 45 + + + 50 / + 64 + COUNT ( DISTINCT + 58 ) * + + ( + - ( - - 60 ) ) ) + + 73 WHEN - + 15 THEN NULL ELSE NULL END + - ( - - 42 ) * - 24
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5062
SELECT 28, - MIN( DISTINCT - 42 ) AS col0
----
28
42

skipif mysql # not compatible
query II rowsort label-5062
SELECT 28, - MIN ( DISTINCT - 42 ) AS col0
----
28
42

onlyif mysql # DIV for integer division: 
query I rowsort label-5063
SELECT + ( 40 ) DIV - 31 + + + 47 DIV - 45 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5063
SELECT + ( 40 ) / - 31 + + + 47 / - 45 AS col2
----
-2

query I rowsort
SELECT 96 * - 25 + + + NULLIF ( + ( + 42 ), 74 * 49 * + 11 )
----
-2358

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5065
SELECT DISTINCT - 85 DIV MAX( ALL + + 39 ) DIV - 48 * + + 54, - 30 DIV - - ( + 50 ) * 78 AS col2
----
0
0

skipif mysql # not compatible
query II rowsort label-5065
SELECT DISTINCT - 85 / MAX ( ALL + + 39 ) / - 48 * + + 54, - 30 / - - ( + 50 ) * 78 AS col2
----
0
0

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

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

query II rowsort
SELECT ALL - 35, 20 AS col0
----
-35
20

onlyif mysql # DIV for integer division: 
query II rowsort label-5068
SELECT 6 DIV - 21 AS col2, 9
----
0
9

skipif mysql # not compatible
query II rowsort label-5068
SELECT 6 / - 21 AS col2, 9
----
0
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5069
SELECT ALL - COALESCE ( + 47, - NULLIF ( + ( + - 64 ), - 71 * - - 36 ) DIV - 34 ) + 17
----
-30

skipif mysql # not compatible
query I rowsort label-5069
SELECT ALL - COALESCE ( + 47, - NULLIF ( + ( + - 64 ), - 71 * - - 36 ) / - 34 ) + 17
----
-30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT ALL 10 * + COUNT( * ) * - 69
----
-690

skipif mysql # not compatible
query I rowsort label-5071
SELECT ALL 10 * + COUNT ( * ) * - 69
----
-690

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT 41 + + MAX( ALL 61 ) - 90 + - 74 + + ( + 55 ) * + + 87 + - 21 - + 37 AS col0
----
4665

skipif mysql # not compatible
query I rowsort label-5072
SELECT 41 + + MAX ( ALL 61 ) - 90 + - 74 + + ( + 55 ) * + + 87 + - 21 - + 37 AS col0
----
4665

query I rowsort
SELECT ALL 4 + + 81 AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT DISTINCT MAX( 37 ) + 90
----
127

skipif mysql # not compatible
query I rowsort label-5074
SELECT DISTINCT MAX ( 37 ) + 90
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5075
SELECT + 53, COUNT( * ) + + CAST( NULL AS SIGNED ) AS col1
----
53
NULL

skipif mysql # not compatible
query II rowsort label-5075
SELECT + 53, COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col1
----
53
NULL

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

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

query I rowsort
SELECT ALL 68 + + 25 * + - 65 AS col1
----
-1557

query II rowsort
SELECT 5 AS col1, 52 * 46
----
5
2392

query I rowsort
SELECT 21 * 58 col2
----
1218

onlyif mysql # DIV for integer division: 
query I rowsort label-5080
SELECT 56 * 25 * 14 DIV + 2
----
9800

skipif mysql # not compatible
query I rowsort label-5080
SELECT 56 * 25 * 14 / + 2
----
9800

query II rowsort
SELECT ALL 75 col2, 4 * 96
----
75
384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5082
SELECT - 22, 45 * COALESCE ( + 27, - 90 + + COUNT( * ) + + ( - COUNT( * ) ), 62 ) AS col0, CAST( NULL AS SIGNED ) * - ( - + 28 ) * AVG ( ALL + + 56 ) AS col0
----
-22
1215
NULL

skipif mysql # not compatible
query III rowsort label-5082
SELECT - 22, 45 * COALESCE ( + 27, - 90 + + COUNT ( * ) + + ( - COUNT ( * ) ), 62 ) AS col0, CAST ( NULL AS INTEGER ) * - ( - + 28 ) * AVG ( ALL + + 56 ) AS col0
----
-22
1215
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5083
SELECT CAST( NULL AS SIGNED ) AS col1, - 60 - 20 AS col0
----
NULL
-80

skipif mysql # not compatible
query II rowsort label-5083
SELECT CAST ( NULL AS INTEGER ) AS col1, - 60 - 20 AS col0
----
NULL
-80

query I rowsort
SELECT ALL - - 25 * 72 AS col2
----
1800

onlyif mysql # aggregate syntax: 
query II rowsort label-5085
SELECT NULLIF ( - - 65, NULLIF ( + 58, 70 - 64 ) ) * ( + 97 ) - + 71 AS col1, MAX( ALL + 40 ) + - + 53
----
6234
-13

skipif mysql # not compatible
query II rowsort label-5085
SELECT NULLIF ( - - 65, NULLIF ( + 58, 70 - 64 ) ) * ( + 97 ) - + 71 AS col1, MAX ( ALL + 40 ) + - + 53
----
6234
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT ALL - - NULLIF ( - ( - 20 ), 44 + - 43 * COUNT( * ) ) * + + COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-5086
SELECT ALL - - NULLIF ( - ( - 20 ), 44 + - 43 * COUNT ( * ) ) * + + COUNT ( * )
----
20

query I rowsort
SELECT - ( - 19 ) col0
----
19

query I rowsort
SELECT 72 * + - 12 AS col2
----
-864

query I rowsort
SELECT 16 + + 18 * 50 + + 77
----
993

onlyif mysql # DIV for integer division: 
query I rowsort label-5090
SELECT DISTINCT + + 7 DIV + 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5090
SELECT DISTINCT + + 7 / + 96 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5091
SELECT - 95 * 84 AS col2, CASE CASE - 87 WHEN + 6 THEN - + 15 * + 91 / - 36 + + 91 WHEN - COUNT( + ( - 24 ) ) THEN NULL ELSE + + COUNT( * ) * - 9 END WHEN + - CAST( NULL AS SIGNED ) THEN NULL ELSE + ( + 53 ) END
----
-7980
53

skipif mysql # not compatible
query II rowsort label-5091
SELECT - 95 * 84 AS col2, CASE CASE - 87 WHEN + 6 THEN - + 15 * + 91 / - 36 + + 91 WHEN - COUNT ( + ( - 24 ) ) THEN NULL ELSE + + COUNT ( * ) * - 9 END WHEN + - CAST ( NULL AS INTEGER ) THEN NULL ELSE + ( + 53 ) END
----
-7980
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT CASE - NULLIF ( + - 20, - MIN( - 31 ) - - + 56 + - + 26 * 17 + + - 15 ) WHEN 45 THEN 46 WHEN 52 * - 13 + + 61 * + 56 THEN NULL ELSE + 6 END * - ( + 32 )
----
-192

skipif mysql # not compatible
query I rowsort label-5092
SELECT CASE - NULLIF ( + - 20, - MIN ( - 31 ) - - + 56 + - + 26 * 17 + + - 15 ) WHEN 45 THEN 46 WHEN 52 * - 13 + + 61 * + 56 THEN NULL ELSE + 6 END * - ( + 32 )
----
-192

query I rowsort
SELECT - 70 * + - 60 + - 87 + + 93
----
4206

query I rowsort
SELECT ALL + 47 * + - 64 + + 53
----
-2955

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5095
SELECT ALL + 36 DIV + COALESCE ( - + 3, + CASE - 47 WHEN 75 THEN 64 DIV + 73 ELSE NULL END * + + COUNT( * ) DIV 24 * 7, + - 4 * + AVG ( ALL - 1 ), - - CAST( 9 AS SIGNED ) DIV + 29 ) + - SUM( DISTINCT 60 ) col2, - 76
----
-72
-76

skipif mysql # not compatible
query II rowsort label-5095
SELECT ALL + 36 / + COALESCE ( - + 3, + CASE - 47 WHEN 75 THEN 64 / + 73 ELSE NULL END * + + COUNT ( * ) / 24 * 7, + - 4 * + AVG ( ALL - 1 ), - - CAST ( 9 AS INTEGER ) / + 29 ) + - SUM ( DISTINCT 60 ) col2, - 76
----
-72
-76

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT + 31 * - - COUNT( ALL 13 ) * + + 59 AS col1
----
1829

skipif mysql # not compatible
query I rowsort label-5097
SELECT + 31 * - - COUNT ( ALL 13 ) * + + 59 AS col1
----
1829

query I rowsort
SELECT ALL - 45 + 14
----
-31

query I rowsort
SELECT DISTINCT - - 3 * ( + 31 ) AS col0
----
93

query I rowsort
SELECT ALL ( + 86 ) + + 77 AS col2
----
163

query I rowsort
SELECT 86 * + 23 AS col1
----
1978

query I rowsort
SELECT DISTINCT 69 + ( - NULLIF ( + + 16, - 45 * - ( + + 1 ) ) ) * + 21
----
-267

query I rowsort
SELECT ALL ( - - 34 ) + + 65
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5104
SELECT 15 * + CAST( + - MIN( DISTINCT + 71 ) AS SIGNED ) - - - ( + 49 ) * + 39 + - + ( + + 3 ) + - 26 AS col1
----
-3005

skipif mysql # not compatible
query I rowsort label-5104
SELECT 15 * + CAST ( + - MIN ( DISTINCT + 71 ) AS INTEGER ) - - - ( + 49 ) * + 39 + - + ( + + 3 ) + - 26 AS col1
----
-3005

query I rowsort
SELECT DISTINCT - 69 + 87
----
18

query I rowsort
SELECT ALL - COALESCE ( + 53, - 1, 10 ) + - - 38 AS col2
----
-15

query I rowsort
SELECT DISTINCT 15 + - 21 * ( - 20 ) * + 29 - - + 76
----
12271

query I rowsort
SELECT ALL 50 - 4
----
46

query I rowsort
SELECT CASE - + COALESCE ( 74, + 35 + + 38 ) WHEN - CASE 55 WHEN - ( + 22 ) THEN 3 * - 73 + - 6 + - + 84 END * + 84 THEN - + 94 END * 17 * + + 9 + + 33
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5110
SELECT ALL NULLIF ( + 15, - + 31 ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5110
SELECT ALL NULLIF ( + 15, - + 31 ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5111
SELECT COUNT( * ) + - 89 AS col0, 47 AS col2
----
-88
47

skipif mysql # not compatible
query II rowsort label-5111
SELECT COUNT ( * ) + - 89 AS col0, 47 AS col2
----
-88
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT 30 + + MIN( DISTINCT - 97 )
----
-67

skipif mysql # not compatible
query I rowsort label-5112
SELECT 30 + + MIN ( DISTINCT - 97 )
----
-67

query I rowsort
SELECT ALL 14 - - + 93
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT COALESCE ( - 66, - 3, + 66 ) * - COUNT( * ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-5114
SELECT COALESCE ( - 66, - 3, + 66 ) * - COUNT ( * ) AS col1
----
66

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

skipif mysql # not compatible
query I rowsort label-5115
SELECT NULLIF ( - COUNT ( * ), + 50 ) col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5116
SELECT ALL + AVG ( ( CAST( NULL AS SIGNED ) ) ) * + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL + AVG ( ( CAST ( NULL AS INTEGER ) ) ) * + 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT + ( - + 81 ) + MAX( 51 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-5117
SELECT + ( - + 81 ) + MAX ( 51 ) AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5118
SELECT ALL + 67 - + - 7 * - COUNT( ALL 59 ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-5118
SELECT ALL + 67 - + - 7 * - COUNT ( ALL 59 ) AS col1
----
60

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

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

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

query I rowsort
SELECT - 13 * + 23
----
-299

query I rowsort
SELECT ALL + 51 * 59 * 98 * 29 AS col1
----
8551578

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT COUNT( * ) * - 59 * 13 + 24 col1
----
-743

skipif mysql # not compatible
query I rowsort label-5123
SELECT COUNT ( * ) * - 59 * 13 + 24 col1
----
-743

onlyif mysql # aggregate syntax: 
query II rowsort label-5124
SELECT + COUNT( + + 23 ) + - - 84 AS col0, + 94 AS col0
----
85
94

skipif mysql # not compatible
query II rowsort label-5124
SELECT + COUNT ( + + 23 ) + - - 84 AS col0, + 94 AS col0
----
85
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT DISTINCT - ( 69 ) + 47 + MAX( DISTINCT 50 )
----
28

skipif mysql # not compatible
query I rowsort label-5125
SELECT DISTINCT - ( 69 ) + 47 + MAX ( DISTINCT 50 )
----
28

query I rowsort
SELECT DISTINCT 72 + - 31 * - 32 + + 90 AS col1
----
1154

query I rowsort
SELECT ALL - 90 * - 30 col0
----
2700

onlyif mysql # DIV for integer division: 
query I rowsort label-5128
SELECT - 16 DIV + - 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5128
SELECT - 16 / + - 88 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT ALL ( - ( + - NULLIF ( + 84, - + 72 + 15 ) ) ) + + - MIN( ALL + + 75 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-5129
SELECT ALL ( - ( + - NULLIF ( + 84, - + 72 + 15 ) ) ) + + - MIN ( ALL + + 75 ) AS col1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5130
SELECT DISTINCT + CAST( + 84 AS SIGNED ) * + + COUNT( * ) - - 82 * + 18
----
1560

skipif mysql # not compatible
query I rowsort label-5130
SELECT DISTINCT + CAST ( + 84 AS INTEGER ) * + + COUNT ( * ) - - 82 * + 18
----
1560

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT NULLIF ( + 0, + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-5132
SELECT NULLIF ( + 0, + COUNT ( * ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5133
SELECT NULLIF ( 33, - - COALESCE ( - 6, - + NULLIF ( - COUNT( * ), COUNT( * ) ), - CAST( NULL AS SIGNED ) ) / + - 35 )
----
33

skipif mysql # not compatible
query I rowsort label-5133
SELECT NULLIF ( 33, - - COALESCE ( - 6, - + NULLIF ( - COUNT ( * ), COUNT ( * ) ), - CAST ( NULL AS INTEGER ) ) / + - 35 )
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-5134
SELECT - 23 * 33 * + ( - - COUNT( * ) ) AS col0, 51 * - - 27
----
-759
1377

skipif mysql # not compatible
query II rowsort label-5134
SELECT - 23 * 33 * + ( - - COUNT ( * ) ) AS col0, 51 * - - 27
----
-759
1377

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5135
SELECT COALESCE ( 87, + - ( + + 31 ) + CASE - + 28 WHEN 52 * COUNT( * ) * - 41 THEN NULL WHEN 56 * + 1 THEN + - 7 DIV 44 DIV - 98 WHEN + 72 + + 70 - 46 * COUNT( - 26 ) * - 25 THEN NULL ELSE NULL END - + 16 ) AS col2, 79
----
87
79

skipif mysql # not compatible
query II rowsort label-5135
SELECT COALESCE ( 87, + - ( + + 31 ) + CASE - + 28 WHEN 52 * COUNT ( * ) * - 41 THEN NULL WHEN 56 * + 1 THEN + - 7 / 44 / - 98 WHEN + 72 + + 70 - 46 * COUNT ( - 26 ) * - 25 THEN NULL ELSE NULL END - + 16 ) AS col2, 79
----
87
79

query I rowsort
SELECT DISTINCT + 10 * + 39 AS col0
----
390

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

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

query I rowsort
SELECT 19 * 69 + ( - 56 ) AS col1
----
1255

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT - MIN( - 85 ) + 16 AS col1
----
101

skipif mysql # not compatible
query I rowsort label-5139
SELECT - MIN ( - 85 ) + 16 AS col1
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-5140
SELECT ALL + MAX( DISTINCT 72 ) * + - 15 col2, 52
----
-1080
52

skipif mysql # not compatible
query II rowsort label-5140
SELECT ALL + MAX ( DISTINCT 72 ) * + - 15 col2, 52
----
-1080
52

query I rowsort
SELECT - 9 - 89 AS col2
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-5142
SELECT COUNT( * ), - 92 * + - 79 AS col1
----
1
7268

skipif mysql # not compatible
query II rowsort label-5142
SELECT COUNT ( * ), - 92 * + - 79 AS col1
----
1
7268

query II rowsort
SELECT ALL + + 36, + 19 AS col0
----
36
19

query II rowsort
SELECT - 84 AS col1, 36 AS col2
----
-84
36

query II rowsort
SELECT DISTINCT 12 AS col2, 68 + - 21 * - - 13 * + + 1 AS col1
----
12
-205

query II rowsort
SELECT + 88 * + + 39 * 18 col0, 98 * 77
----
61776
7546

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT - COALESCE ( - - 91, + 93 - MIN( DISTINCT 30 ) + + NULLIF ( - - 23, + 87 / 73 + ( CASE MIN( DISTINCT - + 83 ) WHEN - - 12 - + + 57 THEN 61 + - 84 WHEN - + 27 THEN NULL ELSE - 58 + 12 * + 46 * - 25 + - 92 END ) ) + + 63 + - - 46 )
----
-91

skipif mysql # not compatible
query I rowsort label-5147
SELECT - COALESCE ( - - 91, + 93 - MIN ( DISTINCT 30 ) + + NULLIF ( - - 23, + 87 / 73 + ( CASE MIN ( DISTINCT - + 83 ) WHEN - - 12 - + + 57 THEN 61 + - 84 WHEN - + 27 THEN NULL ELSE - 58 + 12 * + 46 * - 25 + - 92 END ) ) + + 63 + - - 46 )
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5148
SELECT + - 50 * MIN( ALL + CAST( - ( + 13 ) AS SIGNED ) )
----
650

skipif mysql # not compatible
query I rowsort label-5148
SELECT + - 50 * MIN ( ALL + CAST ( - ( + 13 ) AS INTEGER ) )
----
650

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT + + 86 * + 22 * + COUNT( * ) AS col1
----
1892

skipif mysql # not compatible
query I rowsort label-5149
SELECT + + 86 * + 22 * + COUNT ( * ) AS col1
----
1892

onlyif mysql # aggregate syntax: 
query I rowsort label-5150
SELECT ALL + 80 * + 79 * ( - - COALESCE ( - - COUNT( * ), 49, + 88 * - - 27 + + 13 * + 34 * 22 * + CASE - 78 WHEN + 45 THEN NULL WHEN + + 30 * 77 THEN 41 + - 78 ELSE NULL END * - NULLIF ( + + 56, 28 / + 20 + + 13 ) * CASE - - 60 WHEN - - 27 THEN + - CASE - COUNT( * ) WHEN + 48 THEN + 97 ELSE NULL END WHEN - COUNT( ALL + 47 ) THEN NULL ELSE NULL END ) )
----
6320

skipif mysql # not compatible
query I rowsort label-5150
SELECT ALL + 80 * + 79 * ( - - COALESCE ( - - COUNT ( * ), 49, + 88 * - - 27 + + 13 * + 34 * 22 * + CASE - 78 WHEN + 45 THEN NULL WHEN + + 30 * 77 THEN 41 + - 78 ELSE NULL END * - NULLIF ( + + 56, 28 / + 20 + + 13 ) * CASE - - 60 WHEN - - 27 THEN + - CASE - COUNT ( * ) WHEN + 48 THEN + 97 ELSE NULL END WHEN - COUNT ( ALL + 47 ) THEN NULL ELSE NULL END ) )
----
6320

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT DISTINCT + 22 * + 15 + + + SUM( + 87 )
----
417

skipif mysql # not compatible
query I rowsort label-5151
SELECT DISTINCT + 22 * + 15 + + + SUM ( + 87 )
----
417

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5152
SELECT + - COALESCE ( + 55, + COALESCE ( + + 28, - COUNT( * ) + 55 ) * - 46 - 95, 32 ) * + AVG ( + ( + - 53 ) ) + + COUNT( * ) + 44 + ( CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5152
SELECT + - COALESCE ( + 55, + COALESCE ( + + 28, - COUNT ( * ) + 55 ) * - 46 - 95, 32 ) * + AVG ( + ( + - 53 ) ) + + COUNT ( * ) + 44 + ( CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT + 77 - 12 AS col2
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5154
SELECT ALL + 89, COALESCE ( - + 53, 49 * 78, - - 84 DIV - COUNT( * ), - - 57 + 76 ) AS col1
----
89
-53

skipif mysql # not compatible
query II rowsort label-5154
SELECT ALL + 89, COALESCE ( - + 53, 49 * 78, - - 84 / - COUNT ( * ), - - 57 + 76 ) AS col1
----
89
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT + CASE 82 WHEN + MIN( ALL - 84 ) THEN NULL WHEN + - NULLIF ( + 29, + - 14 / + + 52 / - COUNT( * ) + 2 * - 76 ) THEN + - ( + - 29 ) * - 79 / 91 - 41 END * + - SUM( + - 14 ) - 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5155
SELECT + CASE 82 WHEN + MIN ( ALL - 84 ) THEN NULL WHEN + - NULLIF ( + 29, + - 14 / + + 52 / - COUNT ( * ) + 2 * - 76 ) THEN + - ( + - 29 ) * - 79 / 91 - 41 END * + - SUM ( + - 14 ) - 52 AS col0
----
NULL

query I rowsort
SELECT ALL 61 + - 30
----
31

query I rowsort
SELECT DISTINCT - 61 * 67
----
-4087

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT DISTINCT MIN( DISTINCT - 70 ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-5159
SELECT DISTINCT MIN ( DISTINCT - 70 ) AS col2
----
-70

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5160
SELECT ALL 88 + + + 77 DIV - CAST( + 25 AS SIGNED ) col1
----
85

skipif mysql # not compatible
query I rowsort label-5160
SELECT ALL 88 + + + 77 / - CAST ( + 25 AS INTEGER ) col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT + 57 + 76 * + COUNT( ALL + + 74 ) AS col2
----
133

skipif mysql # not compatible
query I rowsort label-5161
SELECT + 57 + 76 * + COUNT ( ALL + + 74 ) AS col2
----
133

query I rowsort
SELECT ALL 1 + 63 AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT + + CASE - ( 32 ) WHEN + COUNT( * ) THEN + 92 - + + 28 ELSE NULL END + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-5163
SELECT + + CASE - ( 32 ) WHEN + COUNT ( * ) THEN + 92 - + + 28 ELSE NULL END + 64
----
NULL

query I rowsort
SELECT - + 84 - - 39 AS col1
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5165
SELECT ALL CASE - 17 WHEN - 7 THEN NULL WHEN + 64 * + 19 / 73 + - 12 + - 0 * - 13 THEN NULL WHEN 73 * - 80 - - CAST( NULL AS SIGNED ) THEN COUNT( * ) + - CAST( - COUNT( * ) AS SIGNED ) / - MIN( 27 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5165
SELECT ALL CASE - 17 WHEN - 7 THEN NULL WHEN + 64 * + 19 / 73 + - 12 + - 0 * - 13 THEN NULL WHEN 73 * - 80 - - CAST ( NULL AS INTEGER ) THEN COUNT ( * ) + - CAST ( - COUNT ( * ) AS INTEGER ) / - MIN ( 27 ) END AS col0
----
NULL

query II rowsort
SELECT - 98, + 14 * 42 AS col0
----
-98
588

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5167
SELECT ALL 87 + - CASE - 24 WHEN - - 43 + - 74 THEN + NULLIF ( 71, - - SUM( - 55 ) DIV + COUNT( * ) DIV - + 67 ) * 58 WHEN + 0 THEN NULL ELSE 20 END DIV + + 36 col2
----
87

skipif mysql # not compatible
query I rowsort label-5167
SELECT ALL 87 + - CASE - 24 WHEN - - 43 + - 74 THEN + NULLIF ( 71, - - SUM ( - 55 ) / + COUNT ( * ) / - + 67 ) * 58 WHEN + 0 THEN NULL ELSE 20 END / + + 36 col2
----
87

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5169
SELECT ALL COALESCE ( - COUNT( * ), + CAST( NULL AS SIGNED ) * 63 * - 49 * - 2 )
----
-1

skipif mysql # not compatible
query I rowsort label-5169
SELECT ALL COALESCE ( - COUNT ( * ), + CAST ( NULL AS INTEGER ) * 63 * - 49 * - 2 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT DISTINCT 17 + - + COALESCE ( + 14, 72 * - 85 + + - COUNT( * ) ) + - 23
----
-20

skipif mysql # not compatible
query I rowsort label-5170
SELECT DISTINCT 17 + - + COALESCE ( + 14, 72 * - 85 + + - COUNT ( * ) ) + - 23
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5171
SELECT ALL + ( 89 ) * + - COALESCE ( + + 6, - + ( 54 ) * - NULLIF ( - - 50, CAST( NULL AS SIGNED ) * - 61 * - - ( - + 91 ) ) ) + - 91 AS col1
----
-625

skipif mysql # not compatible
query I rowsort label-5171
SELECT ALL + ( 89 ) * + - COALESCE ( + + 6, - + ( 54 ) * - NULLIF ( - - 50, CAST ( NULL AS INTEGER ) * - 61 * - - ( - + 91 ) ) ) + - 91 AS col1
----
-625

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT DISTINCT + 43 / + COUNT( * ) - - NULLIF ( CASE - COALESCE ( - + 62, - + ( - + 60 ) ) WHEN - 70 * - - 65 THEN + 50 ELSE NULL END, AVG ( ALL + 77 ) / + - COUNT( * ) - - ( - 55 ) * + ( - 14 ) ) * 94 / - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-5172
SELECT DISTINCT + 43 / + COUNT ( * ) - - NULLIF ( CASE - COALESCE ( - + 62, - + ( - + 60 ) ) WHEN - 70 * - - 65 THEN + 50 ELSE NULL END, AVG ( ALL + 77 ) / + - COUNT ( * ) - - ( - 55 ) * + ( - 14 ) ) * 94 / - 51
----
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5174
SELECT DISTINCT - 28 / 91 / + CAST( NULL AS DECIMAL ) - - 9 * - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-5174
SELECT DISTINCT - 28 / 91 / + CAST ( NULL AS REAL ) - - 9 * - 31
----
NULL

query I rowsort
SELECT + 3 * + 97 col0
----
291

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5176
SELECT ALL + COALESCE ( 11, - 84 - - - COALESCE ( 8, - + 39 ) - - 8 * - 89 * - SUM( - - 89 ) * + COUNT( * ) * 59 + + 28 + + 99 DIV + 61 * + 44, 1 - 85, + COUNT( ALL + 66 ) ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-5176
SELECT ALL + COALESCE ( 11, - 84 - - - COALESCE ( 8, - + 39 ) - - 8 * - 89 * - SUM ( - - 89 ) * + COUNT ( * ) * 59 + + 28 + + 99 / + 61 * + 44, 1 - 85, + COUNT ( ALL + 66 ) ) AS col0
----
11

query I rowsort
SELECT ALL - 62 * 39 AS col2
----
-2418

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

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

query I rowsort
SELECT ALL + 89 * + + 15
----
1335

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT - + 95 + + MIN( - 86 ) AS col2
----
-181

skipif mysql # not compatible
query I rowsort label-5180
SELECT - + 95 + + MIN ( - 86 ) AS col2
----
-181

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT COUNT( * ) * 39 * - 6 * - + 63 + + - 31 + COUNT( * ) AS col2
----
14712

skipif mysql # not compatible
query I rowsort label-5181
SELECT COUNT ( * ) * 39 * - 6 * - + 63 + + - 31 + COUNT ( * ) AS col2
----
14712

query I rowsort
SELECT - ( 63 ) * 48 + + 6
----
-3018

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT - 75 + - + SUM( DISTINCT + + ( + + 53 ) ) + - + COUNT( ALL - 80 ) AS col1
----
-129

skipif mysql # not compatible
query I rowsort label-5183
SELECT - 75 + - + SUM ( DISTINCT + + ( + + 53 ) ) + - + COUNT ( ALL - 80 ) AS col1
----
-129

query I rowsort
SELECT ALL + + 34 + - 46 AS col0
----
-12

query I rowsort
SELECT ALL - 68 + + 4
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5186
SELECT 42 DIV - - 36 AS col0, + COUNT( - 27 ) * + 69 + MAX( DISTINCT - 44 )
----
1
25

skipif mysql # not compatible
query II rowsort label-5186
SELECT 42 / - - 36 AS col0, + COUNT ( - 27 ) * + 69 + MAX ( DISTINCT - 44 )
----
1
25

query I rowsort
SELECT + 25 + - 83 AS col2
----
-58

query I rowsort
SELECT ALL 95 * - 72
----
-6840

query I rowsort
SELECT - - ( - NULLIF ( 40, + 39 + + + 46 ) )
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5190
SELECT CAST( NULL AS SIGNED ) + - 26 + + 58 * - - 52 * + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-5190
SELECT CAST ( NULL AS INTEGER ) + - 26 + + 58 * - - 52 * + 25
----
NULL

query I rowsort
SELECT DISTINCT - 75 * + 15 col0
----
-1125

query I rowsort
SELECT ALL 64 - 24
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-5193
SELECT 15 DIV + + 44 * + 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5193
SELECT 15 / + + 44 * + 68 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-5194
SELECT ALL - COUNT ( * ) * + CAST ( + ( - 62 ) AS INTEGER )
----
62

query I rowsort
SELECT 21 + - 43 * - 40 AS col0
----
1741

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT ALL ( + + NULLIF ( + - COUNT( * ), 15 * + 26 ) ) * 45
----
-45

skipif mysql # not compatible
query I rowsort label-5196
SELECT ALL ( + + NULLIF ( + - COUNT ( * ), 15 * + 26 ) ) * 45
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5197
SELECT NULLIF ( - 39, + CAST( NULL AS SIGNED ) * - 20 ) - + 5 + - 13 * 24 col0
----
-356

skipif mysql # not compatible
query I rowsort label-5197
SELECT NULLIF ( - 39, + CAST ( NULL AS INTEGER ) * - 20 ) - + 5 + - 13 * 24 col0
----
-356

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

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

query I rowsort
SELECT 40 * + + 79
----
3160

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT 75 * - - COUNT( * ) * - - COUNT( DISTINCT + + 28 )
----
75

skipif mysql # not compatible
query I rowsort label-5200
SELECT 75 * - - COUNT ( * ) * - - COUNT ( DISTINCT + + 28 )
----
75

query I rowsort
SELECT ALL 92 * - - 91
----
8372

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

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

query I rowsort
SELECT 65 + + 92
----
157

query I rowsort
SELECT ALL 56 * + + 22
----
1232

query I rowsort
SELECT 49 + - 83 * 21 AS col1
----
-1694

query I rowsort
SELECT 55 * 19
----
1045

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5207
SELECT 94 * 80 + + NULLIF ( + COALESCE ( + COUNT( * ), 69 DIV + COUNT( * ) ) - MAX( ( + 4 ) ), ( - 42 ) ) AS col0
----
7517

skipif mysql # not compatible
query I rowsort label-5207
SELECT 94 * 80 + + NULLIF ( + COALESCE ( + COUNT ( * ), 69 / + COUNT ( * ) ) - MAX ( ( + 4 ) ), ( - 42 ) ) AS col0
----
7517

query I rowsort
SELECT ALL - 58 + 74 AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT ALL - COALESCE ( - 68, + SUM( ALL - 3 ) )
----
68

skipif mysql # not compatible
query I rowsort label-5209
SELECT ALL - COALESCE ( - 68, + SUM ( ALL - 3 ) )
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5210
SELECT CAST( 5 AS SIGNED ) * 42 AS col1
----
210

skipif mysql # not compatible
query I rowsort label-5210
SELECT CAST ( 5 AS INTEGER ) * 42 AS col1
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT - COUNT( * ) * - MIN( ALL + 45 * 25 ) + + 52
----
1177

skipif mysql # not compatible
query I rowsort label-5211
SELECT - COUNT ( * ) * - MIN ( ALL + 45 * 25 ) + + 52
----
1177

query I rowsort
SELECT 10 + - 40 * - 50
----
2010

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

skipif mysql # not compatible
query I rowsort label-5213
SELECT ALL - COUNT ( * ) + + ( + 69 + CAST ( NULL AS INTEGER ) * 46 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 77 + 36
----
113

query I rowsort
SELECT 90 * - 85 AS col0
----
-7650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5216
SELECT ALL - CAST( + 44 AS SIGNED ) col0
----
-44

skipif mysql # not compatible
query I rowsort label-5216
SELECT ALL - CAST ( + 44 AS INTEGER ) col0
----
-44

query I rowsort
SELECT ALL - 4 * - 14
----
56

query I rowsort
SELECT DISTINCT - 41 * + 39
----
-1599

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

skipif mysql # not compatible
query I rowsort label-5219
SELECT DISTINCT SUM ( DISTINCT - 4 )
----
-4

query I rowsort
SELECT 80 - 26
----
54

query I rowsort
SELECT 16 * 37
----
592

query I rowsort
SELECT ALL - 59 * 65
----
-3835

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT DISTINCT - NULLIF ( 39, 77 ) * + MAX( ALL - 8 )
----
312

skipif mysql # not compatible
query I rowsort label-5223
SELECT DISTINCT - NULLIF ( 39, 77 ) * + MAX ( ALL - 8 )
----
312

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

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

query I rowsort
SELECT 15 - - 82
----
97

query I rowsort
SELECT DISTINCT - 42 * AVG ( ALL 11 / - CASE - 46 WHEN 59 THEN NULL WHEN 51 - 70 THEN 79 + 88 ELSE NULL END ) AS col1
----
NULL

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

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

query I rowsort
SELECT 31 * + 10 AS col0
----
310

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT ALL SUM( 8 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-5229
SELECT ALL SUM ( 8 ) AS col1
----
8

query I rowsort
SELECT DISTINCT 93 * + 46 AS col0
----
4278

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

skipif mysql # not compatible
query I rowsort label-5231
SELECT 50 / 95
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5232
SELECT ALL - 97 DIV 95
----
-1

skipif mysql # not compatible
query I rowsort label-5232
SELECT ALL - 97 / 95
----
-1

query I rowsort
SELECT 21 * 17 AS col0
----
357

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5234
SELECT ( 47 ) - - NULLIF ( + 46, MIN( - 32 ) * 0 ) DIV - 98
----
47

skipif mysql # not compatible
query I rowsort label-5234
SELECT ( 47 ) - - NULLIF ( + 46, MIN ( - 32 ) * 0 ) / - 98
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-5235
SELECT 40 DIV - 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5235
SELECT 40 / - 82 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5236
SELECT COUNT( DISTINCT 51 ) DIV 8 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5236
SELECT COUNT ( DISTINCT 51 ) / 8 AS col0
----
0

query I rowsort
SELECT ALL 92 * + 31 AS col1
----
2852

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5238
SELECT DISTINCT + 80 * CAST( 49 AS SIGNED ) AS col0
----
3920

skipif mysql # not compatible
query I rowsort label-5238
SELECT DISTINCT + 80 * CAST ( 49 AS INTEGER ) AS col0
----
3920

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT ALL COUNT( * ) * - 34 + 94 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-5239
SELECT ALL COUNT ( * ) * - 34 + 94 AS col2
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-5240
SELECT ALL 15 * ( ( + 71 ) DIV 44 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-5240
SELECT ALL 15 * ( ( + 71 ) / 44 ) AS col1
----
15

query I rowsort
SELECT 75 * 2 AS col1
----
150

query I rowsort
SELECT 46 + 81
----
127

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5244
SELECT SUM( ALL 7 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-5244
SELECT SUM ( ALL 7 ) AS col1
----
7

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

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

query I rowsort
SELECT ALL + COALESCE ( CASE - 33 WHEN 55 + - AVG ( DISTINCT - 96 ) * 13 THEN NULL ELSE 80 END, + 5 ) * 26 + 81
----
2161

onlyif mysql # DIV for integer division: 
query I rowsort label-5247
SELECT + 50 DIV + 32 - ( 63 )
----
-62

skipif mysql # not compatible
query I rowsort label-5247
SELECT + 50 / + 32 - ( 63 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5248
SELECT ALL - COUNT( * ) * + 97 + 12 col2
----
-85

skipif mysql # not compatible
query I rowsort label-5248
SELECT ALL - COUNT ( * ) * + 97 + 12 col2
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5249
SELECT DISTINCT - 43 * CAST( NULL AS SIGNED ) + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-5249
SELECT DISTINCT - 43 * CAST ( NULL AS INTEGER ) + 70
----
NULL

query I rowsort
SELECT ALL - - 46 * + 86
----
3956

query I rowsort
SELECT DISTINCT + + 34 * - 14 + - 2 AS col1
----
-478

query I rowsort
SELECT DISTINCT - 64 * ( 10 ) + + 49
----
-591

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5253
SELECT + 10 + + CAST( + 65 - - 53 AS SIGNED ) * NULLIF ( + 63 - - 0 * 93, + CAST( COUNT( * ) AS SIGNED ) * 51 ) AS col0
----
7444

skipif mysql # not compatible
query I rowsort label-5253
SELECT + 10 + + CAST ( + 65 - - 53 AS INTEGER ) * NULLIF ( + 63 - - 0 * 93, + CAST ( COUNT ( * ) AS INTEGER ) * 51 ) AS col0
----
7444

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT - + MIN( 89 ) * + 71 - 33
----
-6352

skipif mysql # not compatible
query I rowsort label-5254
SELECT - + MIN ( 89 ) * + 71 - 33
----
-6352

query I rowsort
SELECT ALL - 41 * - 49 AS col1
----
2009

query I rowsort
SELECT + 24 + + 21 * + ( + 52 )
----
1116

query I rowsort
SELECT - 93 - 16 * 53
----
-941

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

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

query I rowsort
SELECT ALL + 91 - 97 AS col0
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5260
SELECT + - 86 DIV - COUNT( + 12 ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-5260
SELECT + - 86 / - COUNT ( + 12 ) AS col1
----
86

query I rowsort
SELECT - - 80 * + 80 col1
----
6400

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT - 83 * COUNT( * ) + ( - ( + 96 ) + 99 * 61 ) * + 88 AS col2
----
522901

skipif mysql # not compatible
query I rowsort label-5263
SELECT - 83 * COUNT ( * ) + ( - ( + 96 ) + 99 * 61 ) * + 88 AS col2
----
522901

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

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

query I rowsort
SELECT ALL + 25 * - 81
----
-2025

onlyif mysql # DIV for integer division: 
query I rowsort label-5266
SELECT DISTINCT 52 DIV 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5266
SELECT DISTINCT 52 / 97 AS col0
----
0

query I rowsort
SELECT DISTINCT + 56 * + 71
----
3976

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

skipif mysql # not compatible
query I rowsort label-5268
SELECT ALL - CAST ( NULL AS INTEGER ) * 61
----
NULL

query I rowsort
SELECT - 93 + 66 AS col0
----
-27

query I rowsort
SELECT - 10 * + COALESCE ( 50, - 46 * - 59 )
----
-500

query I rowsort
SELECT DISTINCT - 93 * - + 24 * - 72
----
-160704

query I rowsort
SELECT - 74 + - - ( + 73 )
----
-1

query I rowsort
SELECT ALL + 76 + + 86 - - 58
----
220

query I rowsort
SELECT DISTINCT NULLIF ( - - 14, - 60 - 24 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT - 97 - - 24 - COALESCE ( 83 - COUNT( * ), - 31 - 6, - 31 ) * - 71
----
5749

skipif mysql # not compatible
query I rowsort label-5275
SELECT - 97 - - 24 - COALESCE ( 83 - COUNT ( * ), - 31 - 6, - 31 ) * - 71
----
5749

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5276
SELECT DISTINCT COUNT( * ) DIV 68 + - ( - 62 ) DIV - CASE ( 14 ) WHEN + CAST( NULL AS DECIMAL ) THEN NULL ELSE COUNT( * ) + 28 END
----
-2

skipif mysql # not compatible
query I rowsort label-5276
SELECT DISTINCT COUNT ( * ) / 68 + - ( - 62 ) / - CASE ( 14 ) WHEN + CAST ( NULL AS REAL ) THEN NULL ELSE COUNT ( * ) + 28 END
----
-2

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5279
SELECT ALL 94 DIV - 82 + + 35 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-5279
SELECT ALL 94 / - 82 + + 35 AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT + 11 * + COALESCE ( - 11, + 13 ) + - COUNT( * ) * 40
----
-161

skipif mysql # not compatible
query I rowsort label-5280
SELECT + 11 * + COALESCE ( - 11, + 13 ) + - COUNT ( * ) * 40
----
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT ALL + - NULLIF ( 78, COUNT( * ) * + 49 ) * - COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL + - NULLIF ( 78, COUNT ( * ) * + 49 ) * - COUNT ( * )
----
78

query I rowsort
SELECT ALL + 53 * 37 * 93 + 7 + 81
----
182461

query I rowsort
SELECT DISTINCT + + COALESCE ( + 88, + 30 ) AS col2
----
88

query I rowsort
SELECT DISTINCT + - 43 col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT - 48 * CASE - 76 WHEN 65 + 65 THEN NULL WHEN + 93 THEN - 88 * 17 END / - COUNT( * ) + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-5285
SELECT - 48 * CASE - 76 WHEN 65 + 65 THEN NULL WHEN + 93 THEN - 88 * 17 END / - COUNT ( * ) + 47
----
NULL

query I rowsort
SELECT DISTINCT 83 * - CASE 94 WHEN 33 THEN + 18 + 63 ELSE 66 END * - 11
----
60258

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5287
SELECT ALL + - COALESCE ( + COUNT( * ), - CASE - 42 WHEN CASE + 38 WHEN CAST( NULL AS DECIMAL ) THEN COUNT( * ) WHEN 1 + - 69 * - 31 THEN NULL END THEN + 16 + - 35 END ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5287
SELECT ALL + - COALESCE ( + COUNT ( * ), - CASE - 42 WHEN CASE + 38 WHEN CAST ( NULL AS REAL ) THEN COUNT ( * ) WHEN 1 + - 69 * - 31 THEN NULL END THEN + 16 + - 35 END ) AS col1
----
-1

query I rowsort
SELECT ALL + 96 * - - 59 - 19 AS col2
----
5645

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5289
SELECT + 71 * + - ( 67 ) + COUNT( DISTINCT 71 - CAST( NULL AS SIGNED ) ) col1
----
-4757

skipif mysql # not compatible
query I rowsort label-5289
SELECT + 71 * + - ( 67 ) + COUNT ( DISTINCT 71 - CAST ( NULL AS INTEGER ) ) col1
----
-4757

query I rowsort
SELECT ALL 41 * + + 95 col2
----
3895

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5291
SELECT + + CAST( + + 44 AS SIGNED ) DIV + 46 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5291
SELECT + + CAST ( + + 44 AS INTEGER ) / + 46 AS col2
----
0

query I rowsort
SELECT + 11 - + 12 AS col0
----
-1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5294
SELECT - 80 AS col2, 0 * - COUNT( * ) * + 99 + - 50 AS col1
----
-80
-50

skipif mysql # not compatible
query II rowsort label-5294
SELECT - 80 AS col2, 0 * - COUNT ( * ) * + 99 + - 50 AS col1
----
-80
-50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT MAX( + 20 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-5296
SELECT MAX ( + 20 ) AS col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5297
SELECT ALL + 34 DIV - COALESCE ( 50, - 0 + ( CAST( NULL AS SIGNED ) - + 77 ) * SUM( - 68 * 79 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5297
SELECT ALL + 34 / - COALESCE ( 50, - 0 + ( CAST ( NULL AS INTEGER ) - + 77 ) * SUM ( - 68 * 79 ) ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5298
SELECT + CASE + 0 WHEN - + 33 * 49 THEN 70 ELSE 66 END DIV 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5298
SELECT + CASE + 0 WHEN - + 33 * 49 THEN 70 ELSE 66 END / 99 AS col1
----
0

query I rowsort
SELECT DISTINCT + 16 + 75 AS col1
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5300
SELECT ALL 15 + - CAST( - COUNT( * ) AS SIGNED ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-5300
SELECT ALL 15 + - CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
16

query I rowsort
SELECT ALL - 7 + + 74
----
67

query I rowsort
SELECT ALL NULLIF ( + + ( ( 60 ) ), 79 )
----
60

query I rowsort
SELECT + 97 + + + 48 AS col1
----
145

query I rowsort
SELECT ALL + 71 * + 63
----
4473

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5305
SELECT - COALESCE ( + + COALESCE ( + 58, + CAST( 27 AS SIGNED ) + - 25, - 11 ), - 90 ) + COUNT( * ) * + COUNT( * ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-5305
SELECT - COALESCE ( + + COALESCE ( + 58, + CAST ( 27 AS INTEGER ) + - 25, - 11 ), - 90 ) + COUNT ( * ) * + COUNT ( * ) AS col1
----
-57

query I rowsort
SELECT DISTINCT + 62 + 32 AS col2
----
94

query II rowsort
SELECT - 14, + 84 AS col0
----
-14
84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT ALL + 45 + - - CASE - - 15 WHEN + 21 THEN - 83 - - AVG ( 1 ) / - ( + 2 * 77 + 6 ) WHEN MIN( ALL + 16 ) * 28 THEN NULLIF ( ( 87 ), 1 ) + 1 ELSE NULL END - ( - 22 + - 85 ) / ( - 66 - 29 * 2 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5309
SELECT ALL + 45 + - - CASE - - 15 WHEN + 21 THEN - 83 - - AVG ( 1 ) / - ( + 2 * 77 + 6 ) WHEN MIN ( ALL + 16 ) * 28 THEN NULLIF ( ( 87 ), 1 ) + 1 ELSE NULL END - ( - 22 + - 85 ) / ( - 66 - 29 * 2 ) AS col1
----
NULL

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

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

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

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

query I rowsort
SELECT 84 + 78
----
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5313
SELECT ALL - 85 - CAST( 95 AS SIGNED ) AS col0
----
-180

skipif mysql # not compatible
query I rowsort label-5313
SELECT ALL - 85 - CAST ( 95 AS INTEGER ) AS col0
----
-180

query II rowsort
SELECT DISTINCT - 11, - 55 AS col1
----
-11
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5315
SELECT CAST( + 34 AS SIGNED ) + - 33 + - 42 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-5315
SELECT CAST ( + 34 AS INTEGER ) + - 33 + - 42 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT + 83 / - - CASE - + 89 WHEN + 15 * CASE 30 WHEN COUNT( DISTINCT 45 ) / 15 THEN NULL ELSE 74 * - ( 16 ) + + 17 * + 84 END THEN + 96 + 16 WHEN - COUNT( * ) * COUNT( * ) + - 80 THEN NULL ELSE NULL END + AVG ( ALL + 0 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5316
SELECT + 83 / - - CASE - + 89 WHEN + 15 * CASE 30 WHEN COUNT ( DISTINCT 45 ) / 15 THEN NULL ELSE 74 * - ( 16 ) + + 17 * + 84 END THEN + 96 + 16 WHEN - COUNT ( * ) * COUNT ( * ) + - 80 THEN NULL ELSE NULL END + AVG ( ALL + 0 ) col1
----
NULL

query I rowsort
SELECT 29 * - + 68 * + 25 * 18
----
-887400

onlyif mysql # DIV for integer division: 
query I rowsort label-5318
SELECT ALL + 41 DIV 41
----
1

skipif mysql # not compatible
query I rowsort label-5318
SELECT ALL + 41 / 41
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT + COUNT( * ) * - COUNT( * ) + COALESCE ( 9, + 13 )
----
8

skipif mysql # not compatible
query I rowsort label-5319
SELECT + COUNT ( * ) * - COUNT ( * ) + COALESCE ( 9, + 13 )
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-5320
SELECT 2 AS col0, 14 * + 25 + - CASE 9 WHEN 3 - COUNT( * ) THEN + NULLIF ( 14, 62 ) WHEN 69 THEN 98 + - 78 END * - 75 AS col1
----
2
NULL

skipif mysql # not compatible
query II rowsort label-5320
SELECT 2 AS col0, 14 * + 25 + - CASE 9 WHEN 3 - COUNT ( * ) THEN + NULLIF ( 14, 62 ) WHEN 69 THEN 98 + - 78 END * - 75 AS col1
----
2
NULL

query I rowsort
SELECT ALL + - 87 - - 37 AS col1
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-5322
SELECT 44 * - ( + 99 ) - ( 83 ) DIV + 35 AS col2
----
-4358

skipif mysql # not compatible
query I rowsort label-5322
SELECT 44 * - ( + 99 ) - ( 83 ) / + 35 AS col2
----
-4358

query I rowsort
SELECT 8 * 32 AS col0
----
256

query I rowsort
SELECT - NULLIF ( + 74, - 95 * 24 ) * 77 col0
----
-5698

query I rowsort
SELECT - 42 + + 7 + - 52 + + 80
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT ALL + 89 * 26 + - 69 - - 87 * COUNT( 95 ) AS col0
----
2332

skipif mysql # not compatible
query I rowsort label-5326
SELECT ALL + 89 * 26 + - 69 - - 87 * COUNT ( 95 ) AS col0
----
2332

query I rowsort
SELECT ALL - - 45 * 99 AS col1
----
4455

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT COUNT( * ) * - - 24 * + 70 * - 16
----
-26880

skipif mysql # not compatible
query I rowsort label-5328
SELECT COUNT ( * ) * - - 24 * + 70 * - 16
----
-26880

onlyif mysql # DIV for integer division: 
query I rowsort label-5329
SELECT ALL - 9 DIV + 64 * 21 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5329
SELECT ALL - 9 / + 64 * 21 AS col2
----
0

query I rowsort
SELECT 78 * - 38 * + 98 AS col1
----
-290472

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT + 16 * ( - 58 ) - CASE + 88 WHEN 59 - + 39 * - 36 THEN NULL WHEN 54 * 0 THEN NULL ELSE 37 END * CASE + 74 * 16 WHEN 20 THEN NULL WHEN CASE 54 WHEN COUNT( * ) * + 39 + + 18 THEN + 10 / 77 END THEN - 96 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5332
SELECT + 16 * ( - 58 ) - CASE + 88 WHEN 59 - + 39 * - 36 THEN NULL WHEN 54 * 0 THEN NULL ELSE 37 END * CASE + 74 * 16 WHEN 20 THEN NULL WHEN CASE 54 WHEN COUNT ( * ) * + 39 + + 18 THEN + 10 / 77 END THEN - 96 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5333
SELECT 11 + SUM( DISTINCT + - 13 ) + 14 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-5333
SELECT 11 + SUM ( DISTINCT + - 13 ) + 14 AS col0
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-5334
SELECT 60 - + - ( - + 50 ) DIV 87
----
60

skipif mysql # not compatible
query I rowsort label-5334
SELECT 60 - + - ( - + 50 ) / 87
----
60

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

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

query I rowsort
SELECT ( + 70 ) + - - 38 AS col2
----
108

query I rowsort
SELECT ALL 75 + - - 64 + + - 35 AS col2
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5338
SELECT DISTINCT 93 + + - 19 * 52 + - CAST( + 10 AS SIGNED ) * - 43
----
-465

skipif mysql # not compatible
query I rowsort label-5338
SELECT DISTINCT 93 + + - 19 * 52 + - CAST ( + 10 AS INTEGER ) * - 43
----
-465

query I rowsort
SELECT DISTINCT + 93 + - 56 + - - 15 AS col1
----
52

query I rowsort
SELECT ALL 28 + - 26 AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5341
SELECT ( + 41 ) + + CAST( NULL AS SIGNED ) * 8
----
NULL

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

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

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

query I rowsort
SELECT ALL 92 + + - 31 * - 46
----
1518

query II rowsort
SELECT 84 + - 24, 6 * - 18 + + 18 AS col2
----
60
-90

query I rowsort
SELECT DISTINCT 27 + + + 17 AS col0
----
44

query I rowsort
SELECT 4 + + 94
----
98

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

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

query I rowsort
SELECT DISTINCT 91 - + - 42 + + 38 * - + 95 - + 87 * 20
----
-5217

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT ( + - 66 ) + + 12 + + + MIN( + 13 )
----
-41

skipif mysql # not compatible
query I rowsort label-5349
SELECT ( + - 66 ) + + 12 + + + MIN ( + 13 )
----
-41

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

skipif mysql # not compatible
query I rowsort label-5350
SELECT 93 / COUNT ( ALL + 82 )
----
93

query I rowsort
SELECT ALL 26 - - - 54 AS col2
----
-28

query I rowsort
SELECT ( + - 57 ) * ( ( 72 ) ) AS col2
----
-4104

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT DISTINCT - NULLIF ( + - CASE + + 23 WHEN 53 THEN 8 END, MAX( - ( - 96 ) ) * + 66 ) * + 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5353
SELECT DISTINCT - NULLIF ( + - CASE + + 23 WHEN 53 THEN 8 END, MAX ( - ( - 96 ) ) * + 66 ) * + 29 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 87 * + 24
----
2088

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5356
SELECT DISTINCT + 12 * + 67 - + - CAST( + + COUNT( * ) AS SIGNED ) AS col1
----
805

skipif mysql # not compatible
query I rowsort label-5356
SELECT DISTINCT + 12 * + 67 - + - CAST ( + + COUNT ( * ) AS INTEGER ) AS col1
----
805

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT MAX( + + 29 )
----
29

skipif mysql # not compatible
query I rowsort label-5357
SELECT MAX ( + + 29 )
----
29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5358
SELECT ALL + 95 * - - CASE 37 WHEN + CAST( NULL AS DECIMAL ) / + 77 THEN 22 WHEN + 57 * 35 THEN - 17 * + 53 ELSE - 62 * 22 END
----
-129580

skipif mysql # not compatible
query I rowsort label-5358
SELECT ALL + 95 * - - CASE 37 WHEN + CAST ( NULL AS REAL ) / + 77 THEN 22 WHEN + 57 * 35 THEN - 17 * + 53 ELSE - 62 * 22 END
----
-129580

onlyif mysql # aggregate syntax: 
query II rowsort label-5359
SELECT - 90 * + 72, 28 * + + 78 + - COUNT( * ) col2
----
-6480
2183

skipif mysql # not compatible
query II rowsort label-5359
SELECT - 90 * + 72, 28 * + + 78 + - COUNT ( * ) col2
----
-6480
2183

query I rowsort
SELECT 74 + 43 + + 44 * + - 90 + + 99 AS col0
----
-3744

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5361
SELECT DISTINCT 78 * - 51 + - - 28 DIV + MIN( - ( 27 ) )
----
-3979

skipif mysql # not compatible
query I rowsort label-5361
SELECT DISTINCT 78 * - 51 + - - 28 / + MIN ( - ( 27 ) )
----
-3979

onlyif mysql # DIV for integer division: 
query I rowsort label-5362
SELECT + 76 DIV - ( - 41 ) + + 98 + 82 * 97
----
8053

skipif mysql # not compatible
query I rowsort label-5362
SELECT + 76 / - ( - 41 ) + + 98 + 82 * 97
----
8053

query I rowsort
SELECT ALL - + 93 + + - 35
----
-128

query I rowsort
SELECT 33 * + 87 + - ( - + 16 )
----
2887

query I rowsort
SELECT 77 + - 62 * - 54
----
3425

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

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

query I rowsort
SELECT + ( + - 77 ) * 59 * + 61 + + 1
----
-277122

query I rowsort
SELECT ALL - + 17 * - 92 col1
----
1564

onlyif mysql # DIV for integer division: 
query II rowsort label-5369
SELECT 26 DIV + 35 AS col0, + 52 * - - 15 + + 51 AS col1
----
0
831

skipif mysql # not compatible
query II rowsort label-5369
SELECT 26 / + 35 AS col0, + 52 * - - 15 + + 51 AS col1
----
0
831

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT - 89 + + + CASE 7 WHEN - - COUNT( * ) * 27 THEN - 64 WHEN + 54 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5370
SELECT - 89 + + + CASE 7 WHEN - - COUNT ( * ) * 27 THEN - 64 WHEN + 54 THEN NULL ELSE NULL END
----
NULL

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

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

query II rowsort
SELECT DISTINCT - 34 * + 78 * + 86 AS col1, + 42 * - 25 AS col0
----
-228072
-1050

query I rowsort
SELECT ALL 28 + + 29
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-5374
SELECT 59 DIV - 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5374
SELECT 59 / - 61 AS col0
----
0

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

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

skipif mysql # not compatible
query I rowsort label-5376
SELECT ALL COUNT ( * ) + 99 AS col2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT ALL NULLIF ( + - 61, - + 77 + - 55 - + COUNT( * ) + COUNT( * ) * - 62 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-5377
SELECT ALL NULLIF ( + - 61, - + 77 + - 55 - + COUNT ( * ) + COUNT ( * ) * - 62 ) AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT CASE + 28 WHEN - 6 / - - 11 - + + 29 THEN 15 WHEN - NULLIF ( 12, + NULLIF ( 5, - 30 * COUNT( * ) ) ) * - 89 THEN 15 * + SUM( ALL + 55 ) + + 56 END * + NULLIF ( - 98 * 95, - 56 * - 8 ) + COALESCE ( COUNT( + 35 ) + + SUM( 2 ), - 13, + 0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5378
SELECT CASE + 28 WHEN - 6 / - - 11 - + + 29 THEN 15 WHEN - NULLIF ( 12, + NULLIF ( 5, - 30 * COUNT ( * ) ) ) * - 89 THEN 15 * + SUM ( ALL + 55 ) + + 56 END * + NULLIF ( - 98 * 95, - 56 * - 8 ) + COALESCE ( COUNT ( + 35 ) + + SUM ( 2 ), - 13, + 0 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5379
SELECT - 46 AS col1, + 88 + NULLIF ( + ( - + 58 ), COUNT( 18 ) ) AS col2
----
-46
30

skipif mysql # not compatible
query II rowsort label-5379
SELECT - 46 AS col1, + 88 + NULLIF ( + ( - + 58 ), COUNT ( 18 ) ) AS col2
----
-46
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5380
SELECT - ( ( 44 ) ) + - - 29 + CAST( 44 AS SIGNED ) * 21 * 66
----
60969

skipif mysql # not compatible
query I rowsort label-5380
SELECT - ( ( 44 ) ) + - - 29 + CAST ( 44 AS INTEGER ) * 21 * 66
----
60969

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5381
SELECT + 97 + + 12 - + 38 * + - COALESCE ( + 20, - 74 * CAST( COUNT( * ) AS SIGNED ), - 32 - + 96 DIV 34 ) * + 45
----
34309

skipif mysql # not compatible
query I rowsort label-5381
SELECT + 97 + + 12 - + 38 * + - COALESCE ( + 20, - 74 * CAST ( COUNT ( * ) AS INTEGER ), - 32 - + 96 / 34 ) * + 45
----
34309

query II rowsort
SELECT 47 col1, 8 AS col1
----
47
8

onlyif mysql # aggregate syntax: 
query II rowsort label-5383
SELECT ALL 57, - 39 + + COUNT( * ) col0
----
57
-38

skipif mysql # not compatible
query II rowsort label-5383
SELECT ALL 57, - 39 + + COUNT ( * ) col0
----
57
-38

query I rowsort
SELECT ALL 38 * - 68
----
-2584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5385
SELECT + 44 - - CAST( + 65 AS SIGNED ) * - 52 AS col1
----
-3336

skipif mysql # not compatible
query I rowsort label-5385
SELECT + 44 - - CAST ( + 65 AS INTEGER ) * - 52 AS col1
----
-3336

query I rowsort
SELECT ALL NULLIF ( ( + ( - - 98 ) ), 18 )
----
98

query I rowsort
SELECT + ( + 10 ) - 56
----
-46

query I rowsort
SELECT DISTINCT 85 * 36
----
3060

query I rowsort
SELECT - 8 + + + 53
----
45

query I rowsort
SELECT + 14 * - 45 AS col1
----
-630

query I rowsort
SELECT ALL ( 59 ) * - 50 AS col1
----
-2950

query I rowsort
SELECT + 52 + + 49 + + 82
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT + 35 - + 44 + COALESCE ( - NULLIF ( + - 4, + NULLIF ( + 67, 19 + COUNT( * ) ) ), - 81 )
----
-5

skipif mysql # not compatible
query I rowsort label-5393
SELECT + 35 - + 44 + COALESCE ( - NULLIF ( + - 4, + NULLIF ( + 67, 19 + COUNT ( * ) ) ), - 81 )
----
-5

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

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

query I rowsort
SELECT + - 13 * 22
----
-286

query I rowsort
SELECT CASE - + 13 WHEN + NULLIF ( + - 31, 62 ) + 88 THEN NULL ELSE - 75 END
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT + - 69 + - - 46 * CASE - 24 WHEN - 8 THEN NULL WHEN 91 THEN COUNT( * ) + 28 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5397
SELECT + - 69 + - - 46 * CASE - 24 WHEN - 8 THEN NULL WHEN 91 THEN COUNT ( * ) + 28 END
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5399
SELECT + 10 * - 12 DIV 22 DIV + - 38 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5399
SELECT + 10 * - 12 / 22 / + - 38 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT DISTINCT - - 20 * COUNT( * ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-5400
SELECT DISTINCT - - 20 * COUNT ( * ) AS col1
----
20

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5402
SELECT ALL - + 22 * + 82 * 32 + - 95 DIV + 71 + + 71 col0
----
-57658

skipif mysql # not compatible
query I rowsort label-5402
SELECT ALL - + 22 * + 82 * 32 + - 95 / + 71 + + 71 col0
----
-57658

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT ALL - NULLIF ( - 50, + COUNT( DISTINCT - - 60 ) * 73 * 17 ) * + 97 + 90 * + 80 AS col2
----
12050

skipif mysql # not compatible
query I rowsort label-5403
SELECT ALL - NULLIF ( - 50, + COUNT ( DISTINCT - - 60 ) * 73 * 17 ) * + 97 + 90 * + 80 AS col2
----
12050

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT - COUNT( * ) * - NULLIF ( + ( 32 ), - 53 + + 73 * + 73 )
----
32

skipif mysql # not compatible
query I rowsort label-5404
SELECT - COUNT ( * ) * - NULLIF ( + ( 32 ), - 53 + + 73 * + 73 )
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5405
SELECT COALESCE ( - 85, 90 / 42 ) * 43 + + 46 / ( + 35 ) + 50 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5405
SELECT COALESCE ( - 85, 90 / 42 ) * 43 + + 46 / ( + 35 ) + 50 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - COALESCE ( + 82, - 80 + + - 77 )
----
-82

query I rowsort
SELECT - 44 * 23 + - 32 + ( + + 52 ) - - 7 AS col2
----
-985

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5408
SELECT DISTINCT + 12 AS col2, + CAST( NULL AS DECIMAL ) / - COALESCE ( 44, 5, - 91 + 80 )
----
12
NULL

skipif mysql # not compatible
query II rowsort label-5408
SELECT DISTINCT + 12 AS col2, + CAST ( NULL AS REAL ) / - COALESCE ( 44, 5, - 91 + 80 )
----
12
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5409
SELECT - - 51 + + - 28 * + - ( - 81 ) * + + COUNT( - CAST( NULL AS SIGNED ) ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-5409
SELECT - - 51 + + - 28 * + - ( - 81 ) * + + COUNT ( - CAST ( NULL AS INTEGER ) ) AS col2
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-5410
SELECT ALL + MAX( - 30 ) AS col0, COUNT( * ) col0
----
-30
1

skipif mysql # not compatible
query II rowsort label-5410
SELECT ALL + MAX ( - 30 ) AS col0, COUNT ( * ) col0
----
-30
1

query I rowsort
SELECT - NULLIF ( + + 33, - 40 * - - ( + + 80 ) ) + 63
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT ALL COUNT( * ) * - COUNT( * ) * - 72 + + 84
----
156

skipif mysql # not compatible
query I rowsort label-5412
SELECT ALL COUNT ( * ) * - COUNT ( * ) * - 72 + + 84
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT 84 * + COALESCE ( 73, + 71, + 64 ) + + COUNT( * )
----
6133

skipif mysql # not compatible
query I rowsort label-5413
SELECT 84 * + COALESCE ( 73, + 71, + 64 ) + + COUNT ( * )
----
6133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5414
SELECT ALL 17 * - - COALESCE ( ( - COUNT( * ) ), - 40, 4 + 69 DIV 84 ) + - 84 DIV 94 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-5414
SELECT ALL 17 * - - COALESCE ( ( - COUNT ( * ) ), - 40, 4 + 69 / 84 ) + - 84 / 94 AS col2
----
-17

query I rowsort
SELECT - 28 * - + 26 * 89
----
64792

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT ALL + COALESCE ( COUNT( * ), - 82 )
----
1

skipif mysql # not compatible
query I rowsort label-5416
SELECT ALL + COALESCE ( COUNT ( * ), - 82 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT + 48 * COUNT( * ) - - - COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-5417
SELECT + 48 * COUNT ( * ) - - - COUNT ( * ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT CASE - + COUNT( * ) WHEN - + COUNT( * ) THEN NULL WHEN + + 60 + COUNT( * ) THEN NULL WHEN - + CASE - 96 WHEN 14 THEN - 88 * - 57 + - 55 / 71 ELSE NULL END THEN NULL ELSE + ( - 93 ) END * + 61 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5418
SELECT CASE - + COUNT ( * ) WHEN - + COUNT ( * ) THEN NULL WHEN + + 60 + COUNT ( * ) THEN NULL WHEN - + CASE - 96 WHEN 14 THEN - 88 * - 57 + - 55 / 71 ELSE NULL END THEN NULL ELSE + ( - 93 ) END * + 61 + + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 66 * - 92 - - 26 AS col2
----
-6046

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT - SUM( ALL - 40 ) * - 58 AS col0
----
-2320

skipif mysql # not compatible
query I rowsort label-5420
SELECT - SUM ( ALL - 40 ) * - 58 AS col0
----
-2320

query I rowsort
SELECT DISTINCT - 3 * 41
----
-123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5422
SELECT DISTINCT 29 * - + ( + 5 ) - + CAST( - COALESCE ( 60, - 63 / - 87 ) AS SIGNED ) * + 64
----
3695

skipif mysql # not compatible
query I rowsort label-5422
SELECT DISTINCT 29 * - + ( + 5 ) - + CAST ( - COALESCE ( 60, - 63 / - 87 ) AS INTEGER ) * + 64
----
3695

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT DISTINCT ( - COALESCE ( 52, 37 + 0, + 87 * 52, COUNT( ALL 49 ) - 65 ) )
----
-52

skipif mysql # not compatible
query I rowsort label-5423
SELECT DISTINCT ( - COALESCE ( 52, 37 + 0, + 87 * 52, COUNT ( ALL 49 ) - 65 ) )
----
-52

query I rowsort
SELECT - NULLIF ( + 35, + 7 * + 87 + 62 ) + + - 95 AS col0
----
-130

query I rowsort
SELECT ALL + 13 * - 50 AS col0
----
-650

onlyif mysql # DIV for integer division: 
query I rowsort label-5426
SELECT - 20 + - 68 DIV - - 77
----
-20

skipif mysql # not compatible
query I rowsort label-5426
SELECT - 20 + - 68 / - - 77
----
-20

query II rowsort
SELECT ALL 9 AS col0, 73 * 22 + 11 AS col1
----
9
1617

query I rowsort
SELECT ALL - 41 * + 64 * + 29
----
-76096

query I rowsort
SELECT ALL + 86 * 89
----
7654

query I rowsort
SELECT + 90 + - 57 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT - 2 * + + COALESCE ( - - COUNT( * ), + ( + 91 ) + - - 52 * 42 )
----
-2

skipif mysql # not compatible
query I rowsort label-5431
SELECT - 2 * + + COALESCE ( - - COUNT ( * ), + ( + 91 ) + - - 52 * 42 )
----
-2

query I rowsort
SELECT + - 59 + CASE - - 3 WHEN ( - 45 ) THEN NULL ELSE 7 END AS col2
----
-52

query II rowsort
SELECT + 62 AS col2, 87 AS col1
----
62
87

query I rowsort
SELECT + + 84 + + 56 AS col2
----
140

query II rowsort
SELECT - + 14 AS col1, COALESCE ( + 15, - - 40 * + 31 + + 58 )
----
-14
15

query I rowsort
SELECT DISTINCT 20 * 28 + - 11 AS col2
----
549

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

skipif mysql # not compatible
query I rowsort label-5437
SELECT ALL COUNT ( * ) * ( + 67 ) AS col0
----
67

query I rowsort
SELECT + 8 * - 30 * + 77 * 7 * + 46
----
-5950560

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

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

query I rowsort
SELECT - + 96 * - + ( + 37 ) AS col1
----
3552

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5443
SELECT + - 16 + + 91 DIV 35 * + 39 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-5443
SELECT + - 16 + + 91 / 35 * + 39 AS col2
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5444
SELECT ALL + 52 * 55 * + - 68 + 27 + + - 2 DIV + COALESCE ( + COALESCE ( 83, 41, COUNT( * ) ), - 89 + 42 * - 48, 15 ) * + COUNT( * ) AS col0
----
-194453

skipif mysql # not compatible
query I rowsort label-5444
SELECT ALL + 52 * 55 * + - 68 + 27 + + - 2 / + COALESCE ( + COALESCE ( 83, 41, COUNT ( * ) ), - 89 + 42 * - 48, 15 ) * + COUNT ( * ) AS col0
----
-194453

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5445
SELECT - + 46 DIV - SUM( DISTINCT + 85 )
----
0

skipif mysql # not compatible
query I rowsort label-5445
SELECT - + 46 / - SUM ( DISTINCT + 85 )
----
0

query II rowsort
SELECT ALL + + 18 AS col1, 7 AS col0
----
18
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT MAX( DISTINCT - NULLIF ( + 19, 99 ) ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-5447
SELECT MAX ( DISTINCT - NULLIF ( + 19, 99 ) ) AS col0
----
-19

query I rowsort
SELECT + - 66 + - 44 AS col1
----
-110

query I rowsort
SELECT + - 22 - + 99
----
-121

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

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

query I rowsort
SELECT ALL + 89 * + 89 AS col0
----
7921

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

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

query II rowsort
SELECT DISTINCT 51 - - 91, 85 - + + CASE + + 51 WHEN 97 * - 95 * 89 THEN + 98 * 26 + AVG ( 95 + 92 ) * - ( 15 - 66 / 52 ) WHEN 74 THEN 47 END AS col2
----
142
NULL

query I rowsort
SELECT 88 * - + 47 col0
----
-4136

query I rowsort
SELECT ALL 69 * + + 20 AS col0
----
1380

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT ALL - 17 * - CASE 71 WHEN + - 0 + + 66 THEN + + 28 END * - - MAX( 20 ) / - 91 + - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-5457
SELECT ALL - 17 * - CASE 71 WHEN + - 0 + + 66 THEN + + 28 END * - - MAX ( 20 ) / - 91 + - 5
----
NULL

query II rowsort
SELECT ALL 74 * - 56 AS col0, 55 * + 40
----
-4144
2200

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT ALL - NULLIF ( - 25, COUNT( DISTINCT - 13 ) )
----
25

skipif mysql # not compatible
query I rowsort label-5459
SELECT ALL - NULLIF ( - 25, COUNT ( DISTINCT - 13 ) )
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-5460
SELECT DISTINCT 9 * 80 AS col1, 35 - - + COUNT( * )
----
720
36

skipif mysql # not compatible
query II rowsort label-5460
SELECT DISTINCT 9 * 80 AS col1, 35 - - + COUNT ( * )
----
720
36

query I rowsort
SELECT 74 - + - 6 AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5462
SELECT ( - 38 ) * + - NULLIF ( + 50, - + SUM( ALL - 97 ) ) AS col2
----
1900

skipif mysql # not compatible
query I rowsort label-5462
SELECT ( - 38 ) * + - NULLIF ( + 50, - + SUM ( ALL - 97 ) ) AS col2
----
1900

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT 93 + 11 * MAX( DISTINCT - + 61 ) AS col1
----
-578

skipif mysql # not compatible
query I rowsort label-5463
SELECT 93 + 11 * MAX ( DISTINCT - + 61 ) AS col1
----
-578

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT DISTINCT + 64 * - SUM( - 6 )
----
384

skipif mysql # not compatible
query I rowsort label-5464
SELECT DISTINCT + 64 * - SUM ( - 6 )
----
384

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT ALL + - 78 * 47 * + + MAX( ALL - 17 ) AS col2
----
62322

skipif mysql # not compatible
query I rowsort label-5465
SELECT ALL + - 78 * 47 * + + MAX ( ALL - 17 ) AS col2
----
62322

onlyif mysql # DIV for integer division: 
query I rowsort label-5466
SELECT ALL 26 DIV + - 4
----
-6

skipif mysql # not compatible
query I rowsort label-5466
SELECT ALL 26 / + - 4
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5467
SELECT ALL - 33 + 79 * - + MIN( - CAST( NULL AS SIGNED ) ) + - 40 + + + ( - + ( + COUNT( 54 ) ) ) * 99 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5467
SELECT ALL - 33 + 79 * - + MIN ( - CAST ( NULL AS INTEGER ) ) + - 40 + + + ( - + ( + COUNT ( 54 ) ) ) * 99 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT - 70 - - - 48 + + CASE + + 70 WHEN 86 + + COUNT( * ) THEN - - 94 * COUNT( * ) + 30 * + SUM( ALL 59 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5468
SELECT - 70 - - - 48 + + CASE + + 70 WHEN 86 + + COUNT ( * ) THEN - - 94 * COUNT ( * ) + 30 * + SUM ( ALL 59 ) END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - - 49 + - 67 * - - 81 AS col0
----
-5378

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT - NULLIF ( - ( - + 88 ), - 83 + + - COUNT( - - 5 ) )
----
-88

skipif mysql # not compatible
query I rowsort label-5470
SELECT - NULLIF ( - ( - + 88 ), - 83 + + - COUNT ( - - 5 ) )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT + 36 + - + MIN( - - 4 ) * + 46 AS col1
----
-148

skipif mysql # not compatible
query I rowsort label-5471
SELECT + 36 + - + MIN ( - - 4 ) * + 46 AS col1
----
-148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5472
SELECT 29 DIV + ( + - 5 ) + + COUNT( ALL - COALESCE ( + 29, + - 53 * 80, + 32 ) ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-5472
SELECT 29 / + ( + - 5 ) + + COUNT ( ALL - COALESCE ( + 29, + - 53 * 80, + 32 ) ) AS col0
----
-4

query I rowsort
SELECT + 33 - + - 7 col2
----
40

query I rowsort
SELECT ALL + - 73 + + 93
----
20

query I rowsort
SELECT ALL - 31 + - ( - 68 )
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5476
SELECT ALL 39 * - 67 * - 94 + ( + 59 ) + + 90 * 10 - - 30 DIV COUNT( * ) AS col2
----
246611

skipif mysql # not compatible
query I rowsort label-5476
SELECT ALL 39 * - 67 * - 94 + ( + 59 ) + + 90 * 10 - - 30 / COUNT ( * ) AS col2
----
246611

query I rowsort
SELECT 43 * + - 55 AS col2
----
-2365

query II rowsort
SELECT 77, 97 * + 23 col1
----
77
2231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5479
SELECT + COUNT( * ) / + CASE - + CASE - COALESCE ( + 95, + 69 ) WHEN ( 23 ) THEN + 8 * MAX( - 31 ) END WHEN + 55 * 97 THEN - 26 + 40 WHEN - 78 * 98 + 24 THEN NULL END * CAST( 21 AS SIGNED ) + CAST( COUNT( * ) AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5479
SELECT + COUNT ( * ) / + CASE - + CASE - COALESCE ( + 95, + 69 ) WHEN ( 23 ) THEN + 8 * MAX ( - 31 ) END WHEN + 55 * 97 THEN - 26 + 40 WHEN - 78 * 98 + 24 THEN NULL END * CAST ( 21 AS INTEGER ) + CAST ( COUNT ( * ) AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ALL + 13 * + 46 col0
----
598

query I rowsort
SELECT 84 + + 73 * - 73 AS col2
----
-5245

query II rowsort
SELECT ALL - 55 AS col1, ( 52 )
----
-55
52

onlyif mysql # DIV for integer division: 
query I rowsort label-5483
SELECT ALL COALESCE ( + 70, - - 47, - - 10 ) DIV - 9
----
-7

skipif mysql # not compatible
query I rowsort label-5483
SELECT ALL COALESCE ( + 70, - - 47, - - 10 ) / - 9
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT + 52 * - + COALESCE ( COUNT( * ), - 21 * + + 82 * - - CASE + 48 WHEN + 66 THEN NULL WHEN + 78 THEN - 4 END * + 8, + 21 ) + + 13 * + 76
----
936

skipif mysql # not compatible
query I rowsort label-5484
SELECT + 52 * - + COALESCE ( COUNT ( * ), - 21 * + + 82 * - - CASE + 48 WHEN + 66 THEN NULL WHEN + 78 THEN - 4 END * + 8, + 21 ) + + 13 * + 76
----
936

onlyif mysql # DIV for integer division: 
query I rowsort label-5485
SELECT 13 DIV + 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5485
SELECT 13 / + 84 AS col2
----
0

query I rowsort
SELECT 84 + + 17 AS col1
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5487
SELECT 19 + + - CASE + 69 WHEN + + 8 / - 79 + - + CASE - + 94 WHEN - - 6 + - COALESCE ( 63, 74 + 99 / 17 ) THEN 69 WHEN COUNT( * ) THEN NULL ELSE NULL END + + NULLIF ( + 68, 24 ) / 77 * - 27 THEN 62 WHEN ( - SUM( CAST( NULL AS SIGNED ) ) ) THEN CAST( NULL AS SIGNED ) + + MIN( 18 ) WHEN - COUNT( * ) * + MAX( ALL 19 * COALESCE ( + 17, + 40, 59 ) ) - ( CASE + 51 WHEN 75 THEN NULL ELSE - ( - 79 ) END ) * 18 THEN NULL END / - MAX( ALL 82 + + 7 * + 13 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5487
SELECT 19 + + - CASE + 69 WHEN + + 8 / - 79 + - + CASE - + 94 WHEN - - 6 + - COALESCE ( 63, 74 + 99 / 17 ) THEN 69 WHEN COUNT ( * ) THEN NULL ELSE NULL END + + NULLIF ( + 68, 24 ) / 77 * - 27 THEN 62 WHEN ( - SUM ( CAST ( NULL AS INTEGER ) ) ) THEN CAST ( NULL AS INTEGER ) + + MIN ( 18 ) WHEN - COUNT ( * ) * + MAX ( ALL 19 * COALESCE ( + 17, + 40, 59 ) ) - ( CASE + 51 WHEN 75 THEN NULL ELSE - ( - 79 ) END ) * 18 THEN NULL END / - MAX ( ALL 82 + + 7 * + 13 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5488
SELECT 90 DIV 49
----
1

skipif mysql # not compatible
query I rowsort label-5488
SELECT 90 / 49
----
1

query I rowsort
SELECT DISTINCT 14 + 67 AS col1
----
81

query I rowsort
SELECT 35 * - - 17 * - 45
----
-26775

query I rowsort
SELECT 87 * 27 + + 6 * ( - 56 )
----
2013

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5492
SELECT MIN( ALL 3 ) + + + NULLIF ( - + 62, + 17 * 62 ) - + - 56 + SUM( ALL + CAST( NULL AS DECIMAL ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5492
SELECT MIN ( ALL 3 ) + + + NULLIF ( - + 62, + 17 * 62 ) - + - 56 + SUM ( ALL + CAST ( NULL AS REAL ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT ALL COUNT( ALL 68 )
----
1

skipif mysql # not compatible
query I rowsort label-5493
SELECT ALL COUNT ( ALL 68 )
----
1

query I rowsort
SELECT 28 * - - 16
----
448

query I rowsort
SELECT DISTINCT - 35 + - 73
----
-108

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5497
SELECT CAST( + + 96 AS SIGNED ) * + CAST( 73 AS SIGNED ) * 66 + 87 AS col1
----
462615

skipif mysql # not compatible
query I rowsort label-5497
SELECT CAST ( + + 96 AS INTEGER ) * + CAST ( 73 AS INTEGER ) * 66 + 87 AS col1
----
462615

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5498
SELECT ALL 20 col1, ( - CAST( NULL AS DECIMAL ) ) AS col1
----
20
NULL

skipif mysql # not compatible
query II rowsort label-5498
SELECT ALL 20 col1, ( - CAST ( NULL AS REAL ) ) AS col1
----
20
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT 8 + COUNT( * ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-5499
SELECT 8 + COUNT ( * ) AS col0
----
9

query I rowsort
SELECT COALESCE ( + 49, 38 + + - 75 ) AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT DISTINCT - MAX( - 40 ) + - - 24 * - 3 + + - 95 AS col0
----
-127

skipif mysql # not compatible
query I rowsort label-5501
SELECT DISTINCT - MAX ( - 40 ) + - - 24 * - 3 + + - 95 AS col0
----
-127

query II rowsort
SELECT - + 0 AS col0, 99 AS col0
----
0
99

query I rowsort
SELECT ALL + + 33 * + 88 AS col0
----
2904

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT - COUNT( DISTINCT - 62 ) * SUM( DISTINCT - 26 ) * 37 col0
----
962

skipif mysql # not compatible
query I rowsort label-5504
SELECT - COUNT ( DISTINCT - 62 ) * SUM ( DISTINCT - 26 ) * 37 col0
----
962

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

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

query I rowsort
SELECT ALL + + 79 - - + 81 AS col0
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT + + COUNT( * ) - - ( - 96 ) * + - 81 * - - 46 * - 76 + + 11
----
-27184884

skipif mysql # not compatible
query I rowsort label-5507
SELECT + + COUNT ( * ) - - ( - 96 ) * + - 81 * - - 46 * - 76 + + 11
----
-27184884

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5508
SELECT - 29 + - 93 + - COUNT( * ) * CAST( - CAST( - - COUNT( * ) AS SIGNED ) AS SIGNED ) col2
----
-121

skipif mysql # not compatible
query I rowsort label-5508
SELECT - 29 + - 93 + - COUNT ( * ) * CAST ( - CAST ( - - COUNT ( * ) AS INTEGER ) AS INTEGER ) col2
----
-121

query I rowsort
SELECT - ( ( + 98 ) ) * NULLIF ( + - 7, - 87 ) col1
----
686

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5510
SELECT COALESCE ( 99, MIN( - 65 ) + - 21 - CAST( NULL AS SIGNED ) + - 89 ), 36 AS col1
----
99
36

skipif mysql # not compatible
query II rowsort label-5510
SELECT COALESCE ( 99, MIN ( - 65 ) + - 21 - CAST ( NULL AS INTEGER ) + - 89 ), 36 AS col1
----
99
36

onlyif mysql # DIV for integer division: 
query I rowsort label-5511
SELECT + COALESCE ( 41, + 67 ) DIV 90 + + + NULLIF ( + 47, - 21 + + 67 )
----
47

skipif mysql # not compatible
query I rowsort label-5511
SELECT + COALESCE ( 41, + 67 ) / 90 + + + NULLIF ( + 47, - 21 + + 67 )
----
47

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5513
SELECT NULLIF ( 53, - CAST( COUNT( * ) AS SIGNED ) ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-5513
SELECT NULLIF ( 53, - CAST ( COUNT ( * ) AS INTEGER ) ) AS col1
----
53

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5515
SELECT ALL + NULLIF ( + 69, + 15 * CAST( + ( - 43 ) AS SIGNED ) )
----
69

skipif mysql # not compatible
query I rowsort label-5515
SELECT ALL + NULLIF ( + 69, + 15 * CAST ( + ( - 43 ) AS INTEGER ) )
----
69

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5517
SELECT CASE + 74 WHEN + 78 THEN NULL WHEN + CASE - 82 WHEN + + NULLIF ( + 50, + 8 + 12 + + CAST( NULL AS SIGNED ) * CASE 17 * 7 WHEN MAX( - 75 ) / + 96 THEN - COUNT( + 71 ) WHEN 9 THEN NULL ELSE NULL END * 79 ) THEN 24 ELSE - 28 + - 1 END THEN 87 * - SUM( DISTINCT 1 * + 82 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5517
SELECT CASE + 74 WHEN + 78 THEN NULL WHEN + CASE - 82 WHEN + + NULLIF ( + 50, + 8 + 12 + + CAST ( NULL AS INTEGER ) * CASE 17 * 7 WHEN MAX ( - 75 ) / + 96 THEN - COUNT ( + 71 ) WHEN 9 THEN NULL ELSE NULL END * 79 ) THEN 24 ELSE - 28 + - 1 END THEN 87 * - SUM ( DISTINCT 1 * + 82 ) END col1
----
NULL

query I rowsort
SELECT DISTINCT + 82 * + 82
----
6724

query I rowsort
SELECT ALL 4 * 77 + + + 96 AS col2
----
404

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5520
SELECT + 67 * - + 18 * + COALESCE ( - 72, - COALESCE ( - 47, - 71 * - 49 * - 88 + ( CAST( + 73 AS SIGNED ) ), - 48, - 62 ), + 56 ) AS col1
----
86832

skipif mysql # not compatible
query I rowsort label-5520
SELECT + 67 * - + 18 * + COALESCE ( - 72, - COALESCE ( - 47, - 71 * - 49 * - 88 + ( CAST ( + 73 AS INTEGER ) ), - 48, - 62 ), + 56 ) AS col1
----
86832

query I rowsort
SELECT ALL + CASE 45 WHEN + 80 THEN + + 86 END * - 20 + 44 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT ALL 47 * + ( 13 ) + + COUNT( * ) AS col2
----
612

skipif mysql # not compatible
query I rowsort label-5522
SELECT ALL 47 * + ( 13 ) + + COUNT ( * ) AS col2
----
612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5523
SELECT DISTINCT + 25 * - + COALESCE ( + + NULLIF ( + NULLIF ( - 86, - 81 ), - 46 ), 19, - 83 + - ( 97 + + 17 * + CAST( NULL AS SIGNED ) ) DIV - CAST( NULL AS SIGNED ) ) + COUNT( * ) DIV + ( 7 * - 81 ) AS col2
----
2150

skipif mysql # not compatible
query I rowsort label-5523
SELECT DISTINCT + 25 * - + COALESCE ( + + NULLIF ( + NULLIF ( - 86, - 81 ), - 46 ), 19, - 83 + - ( 97 + + 17 * + CAST ( NULL AS INTEGER ) ) / - CAST ( NULL AS INTEGER ) ) + COUNT ( * ) / + ( 7 * - 81 ) AS col2
----
2150

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT ALL 43 / - 25 * 64 * + CASE - 70 WHEN + 77 * - COUNT( * ) THEN + 47 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5524
SELECT ALL 43 / - 25 * 64 * + CASE - 70 WHEN + 77 * - COUNT ( * ) THEN + 47 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + + NULLIF ( - 78, + 81 + + 61 ) * + - 48 + - ( + ( + COALESCE ( - 56, - 12 + 43 * + 5 ) ) ) + 96
----
3896

query II rowsort
SELECT - 5 + - NULLIF ( - - 6, - 31 ) AS col1, + CASE + 80 WHEN ( - ( - 77 ) ) THEN NULLIF ( 53, - 60 + + ( 99 ) ) END col2
----
-11
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5527
SELECT ALL 44 DIV 80
----
0

skipif mysql # not compatible
query I rowsort label-5527
SELECT ALL 44 / 80
----
0

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

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

query I rowsort
SELECT ALL 71 + 76 AS col1
----
147

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

skipif mysql # not compatible
query I rowsort label-5530
SELECT ALL - ( + 6 ) - COUNT ( * ) AS col0
----
-7

query I rowsort
SELECT ALL + 73 * + 43
----
3139

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5532
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - 49 * + 99 * + - CAST( NULL AS SIGNED ) / + ( 6 ) / - 99 / - 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5532
SELECT DISTINCT CAST ( NULL AS REAL ) * - 49 * + 99 * + - CAST ( NULL AS INTEGER ) / + ( 6 ) / - 99 / - 18 AS col0
----
NULL

query I rowsort
SELECT ALL NULLIF ( 16, 3 )
----
16

query I rowsort
SELECT + - 35 + 1
----
-34

query I rowsort
SELECT ALL + 29 - - + ( 3 ) AS col0
----
32

query I rowsort
SELECT + 34 + 85 AS col2
----
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5537
SELECT - CASE + + 78 WHEN - 92 * - 85 + + CAST( NULL AS SIGNED ) THEN 13 WHEN 20 THEN NULL WHEN + 40 THEN - MAX( + 9 ) - + 17 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5537
SELECT - CASE + + 78 WHEN - 92 * - 85 + + CAST ( NULL AS INTEGER ) THEN 13 WHEN 20 THEN NULL WHEN + 40 THEN - MAX ( + 9 ) - + 17 END
----
NULL

query I rowsort
SELECT - 18 - + 89 + + - 32
----
-139

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5540
SELECT - 31 - - - CAST( + 7 AS SIGNED ) * + COUNT( ALL - 14 )
----
-38

skipif mysql # not compatible
query I rowsort label-5540
SELECT - 31 - - - CAST ( + 7 AS INTEGER ) * + COUNT ( ALL - 14 )
----
-38

query I rowsort
SELECT ALL - 58 * - + 14 * 27
----
21924

query I rowsort
SELECT - 45 * 82 * 15 AS col0
----
-55350

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5543
SELECT + 82 AS col0, + CAST( NULL AS DECIMAL ) col0
----
82
NULL

skipif mysql # not compatible
query II rowsort label-5543
SELECT + 82 AS col0, + CAST ( NULL AS REAL ) col0
----
82
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT + COUNT( * ) + - 15 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-5545
SELECT + COUNT ( * ) + - 15 AS col0
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5546
SELECT 86 DIV + + 16 - - 65, 1 + + + 60 DIV COUNT( * ) * + 88 AS col2
----
70
5281

skipif mysql # not compatible
query II rowsort label-5546
SELECT 86 / + + 16 - - 65, 1 + + + 60 / COUNT ( * ) * + 88 AS col2
----
70
5281

query I rowsort
SELECT ( + 3 ) * - - 83 + - 13 AS col2
----
236

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5548
SELECT ALL + 75 DIV - COUNT( * ) DIV COALESCE ( COUNT( * ), + 20, 80 ) + 31 + - 7 * - + MAX( ALL + 58 ) * 78 AS col1
----
31624

skipif mysql # not compatible
query I rowsort label-5548
SELECT ALL + 75 / - COUNT ( * ) / COALESCE ( COUNT ( * ), + 20, 80 ) + 31 + - 7 * - + MAX ( ALL + 58 ) * 78 AS col1
----
31624

query I rowsort
SELECT - 79 * + + 4 * - 98 col2
----
30968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5550
SELECT ALL - CAST( - 56 AS SIGNED ) DIV - 36 + SUM( + - 7 )
----
-8

skipif mysql # not compatible
query I rowsort label-5550
SELECT ALL - CAST ( - 56 AS INTEGER ) / - 36 + SUM ( + - 7 )
----
-8

query I rowsort
SELECT ALL - 98 * + 41 * - 75 * - NULLIF ( - - 88, + - 93 ) + - + 86
----
-26518886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5552
SELECT 96 * - CAST( NULL AS SIGNED ) + NULLIF ( + 77, - - 58 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5552
SELECT 96 * - CAST ( NULL AS INTEGER ) + NULLIF ( + 77, - - 58 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5553
SELECT ALL - 59 * + - 68 * - 95 + 97 / - CAST( NULL AS SIGNED ) + - 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5553
SELECT ALL - 59 * + - 68 * - 95 + 97 / - CAST ( NULL AS INTEGER ) + - 80 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT - 11 * - + 2 + + 26 + 24 * 75 * + + COUNT( * ) - - 53 AS col1
----
1901

skipif mysql # not compatible
query I rowsort label-5554
SELECT - 11 * - + 2 + + 26 + 24 * 75 * + + COUNT ( * ) - - 53 AS col1
----
1901

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5555
SELECT ALL - 85 * - - ( + CAST( + + 52 AS SIGNED ) ) + - ( + 58 )
----
-4478

skipif mysql # not compatible
query I rowsort label-5555
SELECT ALL - 85 * - - ( + CAST ( + + 52 AS INTEGER ) ) + - ( + 58 )
----
-4478

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5556
SELECT - COUNT( * ) * + 44 DIV 67 + 58 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-5556
SELECT - COUNT ( * ) * + 44 / 67 + 58 AS col1
----
58

query I rowsort
SELECT + + 74 + - 4 AS col2
----
70

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5559
SELECT ALL - + 0 * - 26 * + 82 DIV - COUNT( ALL 17 ) AS col1, - ( - 92 ) + 7 AS col2
----
0
99

skipif mysql # not compatible
query II rowsort label-5559
SELECT ALL - + 0 * - 26 * + 82 / - COUNT ( ALL 17 ) AS col1, - ( - 92 ) + 7 AS col2
----
0
99

query I rowsort
SELECT + 83 * - 71 + + ( + 94 )
----
-5799

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT - SUM( ALL 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-5561
SELECT - SUM ( ALL 74 )
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-5562
SELECT ALL 5 DIV + 6 * - - 14
----
0

skipif mysql # not compatible
query I rowsort label-5562
SELECT ALL 5 / + 6 * - - 14
----
0

query I rowsort
SELECT + 75 * - 91 * 90 * + 64
----
-39312000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5564
SELECT - SUM( ALL - 79 ) * - + COUNT( * ) + + + 7 DIV + 77 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-5564
SELECT - SUM ( ALL - 79 ) * - + COUNT ( * ) + + + 7 / + 77 AS col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT + 28 + - - 85 * - + CASE 45 WHEN 93 THEN COUNT( * ) * + COUNT( * ) * - + 37 + - COUNT( * ) END / + + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-5565
SELECT + 28 + - - 85 * - + CASE 45 WHEN 93 THEN COUNT ( * ) * + COUNT ( * ) * - + 37 + - COUNT ( * ) END / + + 33
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5566
SELECT MIN( DISTINCT 8 ) DIV 32
----
0

skipif mysql # not compatible
query I rowsort label-5566
SELECT MIN ( DISTINCT 8 ) / 32
----
0

query I rowsort
SELECT + 11 * + 66 AS col1
----
726

query I rowsort
SELECT NULLIF ( - 28, 37 * 96 ) + 93
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5569
SELECT ALL CAST( - 90 AS SIGNED ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-5569
SELECT ALL CAST ( - 90 AS INTEGER ) AS col1
----
-90

query I rowsort
SELECT + 55 * + 30
----
1650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5571
SELECT DISTINCT + 48 / CASE - 50 WHEN 64 * + CAST( - + 47 AS SIGNED ) + - - 38 THEN - - NULLIF ( - 13, 25 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5571
SELECT DISTINCT + 48 / CASE - 50 WHEN 64 * + CAST ( - + 47 AS INTEGER ) + - - 38 THEN - - NULLIF ( - 13, 25 ) END AS col0
----
NULL

query I rowsort
SELECT ALL 10 * - 75 AS col0
----
-750

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT DISTINCT - 54 + - 0 + - 59 + NULLIF ( - + 47, + MAX( - 14 ) ) + - - 25 + - 90 - 38 * - + 85 - 96 * 15 * 28 AS col2
----
-37315

skipif mysql # not compatible
query I rowsort label-5573
SELECT DISTINCT - 54 + - 0 + - 59 + NULLIF ( - + 47, + MAX ( - 14 ) ) + - - 25 + - 90 - 38 * - + 85 - 96 * 15 * 28 AS col2
----
-37315

query II rowsort
SELECT - 79 col0, 92
----
-79
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT ALL COUNT( * ) + - - COUNT( DISTINCT + - 96 ) + 30
----
32

skipif mysql # not compatible
query I rowsort label-5575
SELECT ALL COUNT ( * ) + - - COUNT ( DISTINCT + - 96 ) + 30
----
32

query I rowsort
SELECT 77 - 50 AS col1
----
27

query I rowsort
SELECT 84 * - - 53 AS col0
----
4452

onlyif mysql # DIV for integer division: 
query I rowsort label-5578
SELECT 19 + - 71 DIV 92 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-5578
SELECT 19 + - 71 / 92 AS col2
----
19

onlyif mysql # DIV for integer division: 
query II rowsort label-5579
SELECT - 89 DIV - 24 + - ( - - 53 ) AS col0, + 65 AS col2
----
-50
65

skipif mysql # not compatible
query II rowsort label-5579
SELECT - 89 / - 24 + - ( - - 53 ) AS col0, + 65 AS col2
----
-50
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT DISTINCT + NULLIF ( + - CASE - NULLIF ( + 25, + - 25 ) WHEN 9 THEN NULL ELSE + 38 * - 94 END, - ( + NULLIF ( - 21, + COUNT( * ) - + 96 / - 7 ) ) * 58 + 5 ) * + 41 AS col2
----
146452

skipif mysql # not compatible
query I rowsort label-5580
SELECT DISTINCT + NULLIF ( + - CASE - NULLIF ( + 25, + - 25 ) WHEN 9 THEN NULL ELSE + 38 * - 94 END, - ( + NULLIF ( - 21, + COUNT ( * ) - + 96 / - 7 ) ) * 58 + 5 ) * + 41 AS col2
----
146452

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

skipif mysql # not compatible
query II rowsort label-5581
SELECT 3 AS col1, - CAST ( NULL AS INTEGER ) AS col1
----
3
NULL

query I rowsort
SELECT ALL + 92 + + 73 + + 67 AS col0
----
232

query I rowsort
SELECT 35 * 86 AS col2
----
3010

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5584
SELECT DISTINCT NULLIF ( - 17, - 67 ) * - 84 AS col0, + 8 * - + 58 + - - ( + 93 ) DIV - + 2 * - COUNT( * ) + 12
----
1428
-406

skipif mysql # not compatible
query II rowsort label-5584
SELECT DISTINCT NULLIF ( - 17, - 67 ) * - 84 AS col0, + 8 * - + 58 + - - ( + 93 ) / - + 2 * - COUNT ( * ) + 12
----
1428
-406

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT 9 * - 65 * ( - COALESCE ( 86, ( - - 3 ) * 45 * + 1, - MAX( - - 53 ) * - 26 + 69 * ( - 85 ) ) )
----
50310

skipif mysql # not compatible
query I rowsort label-5585
SELECT 9 * - 65 * ( - COALESCE ( 86, ( - - 3 ) * 45 * + 1, - MAX ( - - 53 ) * - 26 + 69 * ( - 85 ) ) )
----
50310

query I rowsort
SELECT 47 * - 4 col1
----
-188

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

query I rowsort
SELECT - 9 * 40 AS col1
----
-360

query I rowsort
SELECT 21 * - 81 + - 76 * + 22
----
-3373

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5590
SELECT DISTINCT - CAST( + 99 AS SIGNED ) * - COUNT( * ) + - 46
----
53

skipif mysql # not compatible
query I rowsort label-5590
SELECT DISTINCT - CAST ( + 99 AS INTEGER ) * - COUNT ( * ) + - 46
----
53

query II rowsort
SELECT ALL - 54 AS col2, 42
----
-54
42

query II rowsort
SELECT DISTINCT - 70 AS col1, 30 AS col1
----
-70
30

query II rowsort
SELECT + 50, 29 AS col2
----
50
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5594
SELECT COUNT( * ) + + MIN( ALL + 77 ) DIV + 44
----
2

skipif mysql # not compatible
query I rowsort label-5594
SELECT COUNT ( * ) + + MIN ( ALL + 77 ) / + 44
----
2

query I rowsort
SELECT ALL - + 29 AS col0
----
-29

query I rowsort
SELECT 7 * - 68 + 58
----
-418

query I rowsort
SELECT + 12 * - - 55 AS col0
----
660

query I rowsort
SELECT - 76 * - - 4 + + 41 col2
----
-263

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT - 95 + + + COUNT( * ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-5599
SELECT - 95 + + + COUNT ( * ) AS col2
----
-94

query I rowsort
SELECT ALL + + 47 + + 61
----
108

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT 93 + - 76 + - 25 * COUNT( * ) + COUNT( * ) - - 8
----
1

skipif mysql # not compatible
query I rowsort label-5602
SELECT 93 + - 76 + - 25 * COUNT ( * ) + COUNT ( * ) - - 8
----
1

query II rowsort
SELECT ALL 69, + 76 * - 78 + + + 48 * CASE - 1 WHEN - 94 * - + 27 + + 4 * 98 THEN - 76 END + 48 AS col1
----
69
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5604
SELECT MAX( DISTINCT 64 ) DIV + + 12 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-5604
SELECT MAX ( DISTINCT 64 ) / + + 12 AS col0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5605
SELECT ALL - 95 + + + 29 + - CAST( NULL AS SIGNED ) * 76 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5605
SELECT ALL - 95 + + + 29 + - CAST ( NULL AS INTEGER ) * 76 AS col2
----
NULL

query I rowsort
SELECT 77 + + + 72 AS col2
----
149

onlyif mysql # DIV for integer division: 
query I rowsort label-5607
SELECT ( 74 ) DIV 51 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5607
SELECT ( 74 ) / 51 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT DISTINCT CASE - 70 WHEN - - 28 + 65 THEN - 22 END + - NULLIF ( + 30, - 10 * - 75 * + NULLIF ( - - 38, - + COUNT( * ) ) + 27 / + 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5608
SELECT DISTINCT CASE - 70 WHEN - - 28 + 65 THEN - 22 END + - NULLIF ( + 30, - 10 * - 75 * + NULLIF ( - - 38, - + COUNT ( * ) ) + 27 / + 1 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5609
SELECT 29 * + COUNT( * ), 74 - 13 AS col1
----
29
61

skipif mysql # not compatible
query II rowsort label-5609
SELECT 29 * + COUNT ( * ), 74 - 13 AS col1
----
29
61

query I rowsort
SELECT DISTINCT 92 * + 72
----
6624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5611
SELECT COALESCE ( 76, 11 * 91, + + COUNT( * ) ) - + COUNT( * ) + + + 85 DIV ( + 78 ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-5611
SELECT COALESCE ( 76, 11 * 91, + + COUNT ( * ) ) - + COUNT ( * ) + + + 85 / ( + 78 ) AS col2
----
76

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

skipif mysql # not compatible
query I rowsort label-5612
SELECT COUNT ( * ) * - 25 / 29
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5613
SELECT + MAX( DISTINCT 49 ) col2, ( + - 40 )
----
49
-40

skipif mysql # not compatible
query II rowsort label-5613
SELECT + MAX ( DISTINCT 49 ) col2, ( + - 40 )
----
49
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5614
SELECT COUNT( * ) + + + 4 DIV - + COUNT( * ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-5614
SELECT COUNT ( * ) + + + 4 / - + COUNT ( * ) AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT 33 * + - MAX( DISTINCT - 68 ) + + 37 * + 87 + 43 + - COUNT( * ) + - + 72
----
5433

skipif mysql # not compatible
query I rowsort label-5615
SELECT 33 * + - MAX ( DISTINCT - 68 ) + + 37 * + 87 + 43 + - COUNT ( * ) + - + 72
----
5433

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT ALL + 94 * - - 69 * - SUM( ALL - 12 ) - - - 1 AS col1
----
77831

skipif mysql # not compatible
query I rowsort label-5616
SELECT ALL + 94 * - - 69 * - SUM ( ALL - 12 ) - - - 1 AS col1
----
77831

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5617
SELECT - COUNT( * ) DIV - 44 + + - CAST( - 87 AS SIGNED )
----
87

skipif mysql # not compatible
query I rowsort label-5617
SELECT - COUNT ( * ) / - 44 + + - CAST ( - 87 AS INTEGER )
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5618
SELECT ALL - MAX( ALL - - CAST( + 45 AS SIGNED ) )
----
-45

skipif mysql # not compatible
query I rowsort label-5618
SELECT ALL - MAX ( ALL - - CAST ( + 45 AS INTEGER ) )
----
-45

query I rowsort
SELECT - 7 + + + 99 AS col2
----
92

onlyif mysql # DIV for integer division: 
query II rowsort label-5620
SELECT DISTINCT 99 DIV + + 56 AS col1, 89 * 9 - - + 72 AS col2
----
1
873

skipif mysql # not compatible
query II rowsort label-5620
SELECT DISTINCT 99 / + + 56 AS col1, 89 * 9 - - + 72 AS col2
----
1
873

onlyif mysql # aggregate syntax: 
query II rowsort label-5621
SELECT + ( + 62 ) AS col1, ( COUNT( * ) ) * 69 - + NULLIF ( 79, - ( - + 37 ) ) * + - 76 - + 32 col1
----
62
6041

skipif mysql # not compatible
query II rowsort label-5621
SELECT + ( + 62 ) AS col1, ( COUNT ( * ) ) * 69 - + NULLIF ( 79, - ( - + 37 ) ) * + - 76 - + 32 col1
----
62
6041

query I rowsort
SELECT + - 66 * - 18 + - 93 + - 71 * 9 * + 56 AS col2
----
-34689

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5623
SELECT SUM( + 73 ) col1, - 83 DIV MAX( DISTINCT - 49 )
----
73
1

skipif mysql # not compatible
query II rowsort label-5623
SELECT SUM ( + 73 ) col1, - 83 / MAX ( DISTINCT - 49 )
----
73
1

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

query I rowsort
SELECT + 10 * - 9
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT + COUNT( * ) * - 24 * - 16 AS col1
----
384

skipif mysql # not compatible
query I rowsort label-5626
SELECT + COUNT ( * ) * - 24 * - 16 AS col1
----
384

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5627
SELECT - CAST( 55 AS SIGNED ) + 99 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-5627
SELECT - CAST ( 55 AS INTEGER ) + 99 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5628
SELECT ALL + + 45 + - + COUNT( DISTINCT + 5 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-5628
SELECT ALL + + 45 + - + COUNT ( DISTINCT + 5 ) AS col1
----
44

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5630
SELECT - + 79 * 17 - + - 42 DIV + - 44
----
-1343

skipif mysql # not compatible
query I rowsort label-5630
SELECT - + 79 * 17 - + - 42 / + - 44
----
-1343

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT DISTINCT + COUNT( DISTINCT - + 42 ) + 83 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-5631
SELECT DISTINCT + COUNT ( DISTINCT - + 42 ) + 83 AS col0
----
84

query I rowsort
SELECT - COALESCE ( - - 87, + 68 )
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-5633
SELECT ALL - - COUNT( * ) + + ( - + 45 ) + 31 + + 66 + + 97 + - 77 AS col1, 57 + - COUNT( * ) * + + ( - COUNT( * ) )
----
73
58

skipif mysql # not compatible
query II rowsort label-5633
SELECT ALL - - COUNT ( * ) + + ( - + 45 ) + 31 + + 66 + + 97 + - 77 AS col1, 57 + - COUNT ( * ) * + + ( - COUNT ( * ) )
----
73
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5634
SELECT - - CAST( - COALESCE ( - NULLIF ( - 87, + 1 ), 96 + - ( - NULLIF ( CASE - CAST( CASE + + ( 61 ) WHEN 70 THEN 28 END AS SIGNED ) WHEN 99 + - 75 THEN NULL WHEN 88 THEN + 14 END, + 84 ) ) + + 65 * + 97 ) AS SIGNED )
----
-87

skipif mysql # not compatible
query I rowsort label-5634
SELECT - - CAST ( - COALESCE ( - NULLIF ( - 87, + 1 ), 96 + - ( - NULLIF ( CASE - CAST ( CASE + + ( 61 ) WHEN 70 THEN 28 END AS INTEGER ) WHEN 99 + - 75 THEN NULL WHEN 88 THEN + 14 END, + 84 ) ) + + 65 * + 97 ) AS INTEGER )
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5635
SELECT + NULLIF ( COALESCE ( 32, - - 99 DIV 99 * + MIN( ALL - - ( - - 51 ) ) + - COUNT( * ) - + 80 * 28 DIV 73 - - + 68 - - 62 + 48 * - 12 ), + CASE - 15 WHEN COUNT( * ) + - ( 43 ) * + 32 THEN 65 ELSE NULL END ) + + 60
----
92

skipif mysql # not compatible
query I rowsort label-5635
SELECT + NULLIF ( COALESCE ( 32, - - 99 / 99 * + MIN ( ALL - - ( - - 51 ) ) + - COUNT ( * ) - + 80 * 28 / 73 - - + 68 - - 62 + 48 * - 12 ), + CASE - 15 WHEN COUNT ( * ) + - ( 43 ) * + 32 THEN 65 ELSE NULL END ) + + 60
----
92

query II rowsort
SELECT 99, - 79 AS col1
----
99
-79

query I rowsort
SELECT - 92 + - + ( - 16 ) + + 53 col1
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5638
SELECT - 51 * - + CAST( 61 AS SIGNED ) AS col1, 13
----
3111
13

skipif mysql # not compatible
query II rowsort label-5638
SELECT - 51 * - + CAST ( 61 AS INTEGER ) AS col1, 13
----
3111
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT ALL + COUNT( * ) * - 51 * + + 71 col1
----
-3621

skipif mysql # not compatible
query I rowsort label-5639
SELECT ALL + COUNT ( * ) * - 51 * + + 71 col1
----
-3621

query I rowsort
SELECT ALL - 9 + - + NULLIF ( 6, - 95 ) AS col0
----
-15

query I rowsort
SELECT - 57 + 69 + + 13 AS col2
----
25

query I rowsort
SELECT ALL + 37 * - + NULLIF ( - 75, - + 82 + - 32 )
----
2775

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5643
SELECT - 33 + - 93 * - CASE - 12 WHEN + 75 * - + CASE + 39 WHEN + ( - - NULLIF ( - - 50, 87 + - 10 ) ) THEN 79 + 5 END / NULLIF ( 91, 57 ) THEN NULL WHEN 70 THEN + COUNT( 25 ) WHEN 77 / + CAST( NULL AS DECIMAL ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5643
SELECT - 33 + - 93 * - CASE - 12 WHEN + 75 * - + CASE + 39 WHEN + ( - - NULLIF ( - - 50, 87 + - 10 ) ) THEN 79 + 5 END / NULLIF ( 91, 57 ) THEN NULL WHEN 70 THEN + COUNT ( 25 ) WHEN 77 / + CAST ( NULL AS REAL ) THEN NULL END AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5645
SELECT ALL 44 AS col2, - COALESCE ( + + NULLIF ( NULLIF ( + COALESCE ( - + 83, 36 ), + 60 ), + 16 ), - 84 - - CAST( NULL AS SIGNED ) + 46 + + 15 + 0 DIV 58 ) * - 72 AS col2
----
44
-5976

skipif mysql # not compatible
query II rowsort label-5645
SELECT ALL 44 AS col2, - COALESCE ( + + NULLIF ( NULLIF ( + COALESCE ( - + 83, 36 ), + 60 ), + 16 ), - 84 - - CAST ( NULL AS INTEGER ) + 46 + + 15 + 0 / 58 ) * - 72 AS col2
----
44
-5976

query I rowsort
SELECT - 9 + 18 - - ( 70 ) * + 55 + - - 79 + + - 52 * - 41
----
6070

query I rowsort
SELECT ALL COALESCE ( - ( + 45 ), - 82 ) AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT - 79 * + + MIN( 72 )
----
-5688

skipif mysql # not compatible
query I rowsort label-5648
SELECT - 79 * + + MIN ( 72 )
----
-5688

query I rowsort
SELECT + 3 + + 42 AS col1
----
45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT + SUM( - 41 ) + 80 col0
----
39

skipif mysql # not compatible
query I rowsort label-5651
SELECT + SUM ( - 41 ) + 80 col0
----
39

query I rowsort
SELECT - 49 * + 73
----
-3577

query I rowsort
SELECT ALL 37 * ( - + 47 ) AS col1
----
-1739

query I rowsort
SELECT ALL - - 93 * - CASE - 95 WHEN + + 11 THEN + 49 WHEN + - 23 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5655
SELECT DISTINCT + - 84, ( 88 ) * + + 19 + + COUNT( * ) * - COUNT( * ) + + + 30 + + - 31 AS col1
----
-84
1670

skipif mysql # not compatible
query II rowsort label-5655
SELECT DISTINCT + - 84, ( 88 ) * + + 19 + + COUNT ( * ) * - COUNT ( * ) + + + 30 + + - 31 AS col1
----
-84
1670

query II rowsort
SELECT ALL + 46 * + 3 + - 48 AS col0, ( 13 )
----
90
13

query I rowsort
SELECT DISTINCT - 12 * 37 * + 43
----
-19092

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT DISTINCT - COUNT( * ) * ( - COUNT( * ) ) + - 71 * - 40 AS col1
----
2841

skipif mysql # not compatible
query I rowsort label-5659
SELECT DISTINCT - COUNT ( * ) * ( - COUNT ( * ) ) + - 71 * - 40 AS col1
----
2841

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT DISTINCT + - MIN( + 20 ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-5660
SELECT DISTINCT + - MIN ( + 20 ) AS col1
----
-20

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

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

query II rowsort
SELECT ALL + + 91, 13 col0
----
91
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5663
SELECT + MAX( + NULLIF ( CAST( 31 AS SIGNED ), + 88 ) ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-5663
SELECT + MAX ( + NULLIF ( CAST ( 31 AS INTEGER ), + 88 ) ) AS col2
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-5664
SELECT ALL + - 74, + 60 - + COUNT( * ) AS col0
----
-74
59

skipif mysql # not compatible
query II rowsort label-5664
SELECT ALL + - 74, + 60 - + COUNT ( * ) AS col0
----
-74
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5665
SELECT + - MAX( DISTINCT - + NULLIF ( + - 95, - 54 ) ) DIV + 88
----
-1

skipif mysql # not compatible
query I rowsort label-5665
SELECT + - MAX ( DISTINCT - + NULLIF ( + - 95, - 54 ) ) / + 88
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5666
SELECT + 88 + - - ( 16 ) - + 83 + - 72 * 85, MAX( + - 21 ) AS col2
----
-6099
-21

skipif mysql # not compatible
query II rowsort label-5666
SELECT + 88 + - - ( 16 ) - + 83 + - 72 * 85, MAX ( + - 21 ) AS col2
----
-6099
-21

query I rowsort
SELECT ALL 40 * - - 36 AS col1
----
1440

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT DISTINCT MIN( DISTINCT + + 31 ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-5668
SELECT DISTINCT MIN ( DISTINCT + + 31 ) AS col0
----
31

query I rowsort
SELECT + 97 + - 44 AS col0
----
53

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

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

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

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

query I rowsort
SELECT - 43 - + 73 + + 31
----
-85

query I rowsort
SELECT 50 * - 80 * 99 + + 30 * - 1 * 92 AS col1
----
-398760

onlyif mysql # DIV for integer division: 
query I rowsort label-5674
SELECT 69 DIV 51 + - 37
----
-36

skipif mysql # not compatible
query I rowsort label-5674
SELECT 69 / 51 + - 37
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5675
SELECT - CAST( + 54 AS SIGNED ) + - - 88 col2
----
34

skipif mysql # not compatible
query I rowsort label-5675
SELECT - CAST ( + 54 AS INTEGER ) + - - 88 col2
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5676
SELECT + 36 / + - 46 * - 34 - + + ( 79 ) * - 31 * + CASE + NULLIF ( - 78, + 86 ) WHEN 1 * - 20 THEN + 58 END * - 42 * ( 23 ) + + CAST( + CASE + COUNT( * ) WHEN 44 THEN - COALESCE ( + AVG ( DISTINCT + 86 ), + ( 20 ) ) END + - COUNT( * ) * 40 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5676
SELECT + 36 / + - 46 * - 34 - + + ( 79 ) * - 31 * + CASE + NULLIF ( - 78, + 86 ) WHEN 1 * - 20 THEN + 58 END * - 42 * ( 23 ) + + CAST ( + CASE + COUNT ( * ) WHEN 44 THEN - COALESCE ( + AVG ( DISTINCT + 86 ), + ( 20 ) ) END + - COUNT ( * ) * 40 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5677
SELECT ALL - 25 DIV + MAX( ALL + 86 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5677
SELECT ALL - 25 / + MAX ( ALL + 86 ) AS col0
----
0

query I rowsort
SELECT 20 * - 22 + ( - ( + 32 ) ) col0
----
-472

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5679
SELECT + 44 * + + 57 * - CAST( + + COUNT( * ) AS SIGNED ) + 56 + + 63 * - 94 col2
----
-8374

skipif mysql # not compatible
query I rowsort label-5679
SELECT + 44 * + + 57 * - CAST ( + + COUNT ( * ) AS INTEGER ) + 56 + + 63 * - 94 col2
----
-8374

query I rowsort
SELECT - NULLIF ( + 86, 74 ) AS col2
----
-86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT ALL COUNT( * ) * 3 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-5682
SELECT ALL COUNT ( * ) * 3 AS col0
----
3

query I rowsort
SELECT DISTINCT - 31 + + 88 + + 28 + + ( - + 19 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT - CASE COALESCE ( - 13, - NULLIF ( + 0, 78 ) ) WHEN + 17 * 70 THEN + COUNT( + 21 ) - MAX( ALL ( 94 ) ) ELSE COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-5684
SELECT - CASE COALESCE ( - 13, - NULLIF ( + 0, 78 ) ) WHEN + 17 * 70 THEN + COUNT ( + 21 ) - MAX ( ALL ( 94 ) ) ELSE COUNT ( * ) END
----
-1

query I rowsort
SELECT + 82 * + 98 + 53 + - 75
----
8014

query I rowsort
SELECT - 46 + - 80
----
-126

query I rowsort
SELECT 78 * - + 50 * 40
----
-156000

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

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

query I rowsort
SELECT ALL 34 - + 86 AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5690
SELECT 3 * COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-5690
SELECT 3 * COUNT ( * )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5691
SELECT DISTINCT 69 * + COUNT( * ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-5691
SELECT DISTINCT 69 * + COUNT ( * ) AS col2
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-5692
SELECT 28 * + COUNT( DISTINCT + 81 ), + 54 AS col1
----
28
54

skipif mysql # not compatible
query II rowsort label-5692
SELECT 28 * + COUNT ( DISTINCT + 81 ), + 54 AS col1
----
28
54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5693
SELECT - 35 * - 4 / - 41 - - - CAST( NULL AS DECIMAL ) / + 6 + NULLIF ( - 69, + + ( + COUNT( * ) ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5693
SELECT - 35 * - 4 / - 41 - - - CAST ( NULL AS REAL ) / + 6 + NULLIF ( - 69, + + ( + COUNT ( * ) ) ) col1
----
NULL

query I rowsort
SELECT COALESCE ( 78, + 71 ) + 57
----
135

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT ALL SUM( ALL + 61 ) * - + 34 + - 63 AS col2
----
-2137

skipif mysql # not compatible
query I rowsort label-5696
SELECT ALL SUM ( ALL + 61 ) * - + 34 + - 63 AS col2
----
-2137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5697
SELECT DISTINCT CAST( NULL AS SIGNED ) * 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5697
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 77 AS col2
----
NULL

query II rowsort
SELECT 75 AS col2, + CASE 22 WHEN - 33 / + 35 THEN + + AVG ( 41 ) WHEN + - ( AVG ( + 86 ) ) THEN NULL WHEN - ( - 3 ) THEN NULL ELSE NULL END + + - 45
----
75
NULL

query I rowsort
SELECT DISTINCT 73 * NULLIF ( - - 36, + + 58 )
----
2628

query I rowsort
SELECT DISTINCT 91 * 98
----
8918

query I rowsort
SELECT 47 - + + 57
----
-10

query I rowsort
SELECT 53 + - 58 AS col1
----
-5

query I rowsort
SELECT 42 + 65
----
107

query I rowsort
SELECT ALL - - 13 + + 42
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5705
SELECT DISTINCT 46 * + CASE - 29 WHEN + ( + + 90 ) THEN - 97 * - + COUNT( * ) ELSE 77 END * 28 + - 82 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5705
SELECT DISTINCT 46 * + CASE - 29 WHEN + ( + + 90 ) THEN - 97 * - + COUNT ( * ) ELSE 77 END * 28 + - 82 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5706
SELECT DISTINCT - 35 + + + COUNT( * ) + - - 97 * SUM( - + 52 ) + 20 - - 20 + CAST( - + COUNT( 37 ) AS SIGNED ) + - 31
----
-5070

skipif mysql # not compatible
query I rowsort label-5706
SELECT DISTINCT - 35 + + + COUNT ( * ) + - - 97 * SUM ( - + 52 ) + 20 - - 20 + CAST ( - + COUNT ( 37 ) AS INTEGER ) + - 31
----
-5070

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

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

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

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

query I rowsort
SELECT + 25 * + + 52 - - 76
----
1376

onlyif mysql # aggregate syntax: 
query I rowsort label-5710
SELECT + COUNT( * ) * + + 31 * 63 - - - 56 AS col1
----
1897

skipif mysql # not compatible
query I rowsort label-5710
SELECT + COUNT ( * ) * + + 31 * 63 - - - 56 AS col1
----
1897

query I rowsort
SELECT 90 * ( + 34 ) AS col1
----
3060

query I rowsort
SELECT DISTINCT - - ( 93 )
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5713
SELECT ALL + 86 - + 42 - - 46 + CASE - ( + 99 ) WHEN + CASE - 65 WHEN 46 + - AVG ( DISTINCT - + NULLIF ( - 51, - 59 * + - 88 ) ) THEN NULL WHEN - + ( 71 ) + + ( - AVG ( DISTINCT 15 ) - AVG ( - 31 + CAST( NULL AS SIGNED ) ) ) THEN 79 END THEN NULL WHEN MIN( ALL 89 ) THEN 37 * 66 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5713
SELECT ALL + 86 - + 42 - - 46 + CASE - ( + 99 ) WHEN + CASE - 65 WHEN 46 + - AVG ( DISTINCT - + NULLIF ( - 51, - 59 * + - 88 ) ) THEN NULL WHEN - + ( 71 ) + + ( - AVG ( DISTINCT 15 ) - AVG ( - 31 + CAST ( NULL AS INTEGER ) ) ) THEN 79 END THEN NULL WHEN MIN ( ALL 89 ) THEN 37 * 66 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5714
SELECT ALL + - ( - - 99 ) DIV 45 * + + MIN( 12 ) + + ( + 32 ) * - - SUM( + 90 ) + + COUNT( * ) + + 34 * 31 AS col2
----
3911

skipif mysql # not compatible
query I rowsort label-5714
SELECT ALL + - ( - - 99 ) / 45 * + + MIN ( 12 ) + + ( + 32 ) * - - SUM ( + 90 ) + + COUNT ( * ) + + 34 * 31 AS col2
----
3911

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5715
SELECT DISTINCT + SUM( ALL 70 ) DIV - 84 * - 5 AS col0, + 98 + + 75
----
0
173

skipif mysql # not compatible
query II rowsort label-5715
SELECT DISTINCT + SUM ( ALL 70 ) / - 84 * - 5 AS col0, + 98 + + 75
----
0
173

query I rowsort
SELECT ALL 28 * - 91 AS col1
----
-2548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5717
SELECT ALL + ( CAST( - - NULLIF ( - + 91, + - 38 + - 7 + + 85 * - CASE CAST( NULL AS DECIMAL ) WHEN + 53 + + - 51 - - 44 * - + 79 THEN + 67 ELSE + + 35 * + + 60 + - CASE WHEN NOT 98 NOT BETWEEN ( - 35 ) AND + COUNT( * ) * - 74 + 31 THEN + ( 89 ) * 18 ELSE NULL END END ) AS SIGNED ) ) - + 25 AS col2
----
-116

skipif mysql # not compatible
query I rowsort label-5717
SELECT ALL + ( CAST ( - - NULLIF ( - + 91, + - 38 + - 7 + + 85 * - CASE CAST ( NULL AS REAL ) WHEN + 53 + + - 51 - - 44 * - + 79 THEN + 67 ELSE + + 35 * + + 60 + - CASE WHEN NOT 98 NOT BETWEEN ( - 35 ) AND + COUNT ( * ) * - 74 + 31 THEN + ( 89 ) * 18 ELSE NULL END END ) AS INTEGER ) ) - + 25 AS col2
----
-116

query I rowsort
SELECT 2 + + - 62 * - - 14
----
-866

onlyif mysql # aggregate syntax: 
query II rowsort label-5719
SELECT 38 * - COUNT( * ) AS col2, - 52 AS col2
----
-38
-52

skipif mysql # not compatible
query II rowsort label-5719
SELECT 38 * - COUNT ( * ) AS col2, - 52 AS col2
----
-38
-52

query I rowsort
SELECT ALL - ( + 91 ) * + + 56 AS col2
----
-5096

onlyif mysql # aggregate syntax: 
query I rowsort label-5721
SELECT - 69 * - 1 + - COUNT( + 99 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-5721
SELECT - 69 * - 1 + - COUNT ( + 99 ) AS col0
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5722
SELECT COALESCE ( + 55, + 71 * - 23 + 20 + 74 DIV - COUNT( ALL - 0 ) DIV + 75, - 85 DIV - 71 ) - + - 62 + - - CAST( + 88 AS SIGNED ) * + + 83 AS col0
----
7421

skipif mysql # not compatible
query I rowsort label-5722
SELECT COALESCE ( + 55, + 71 * - 23 + 20 + 74 / - COUNT ( ALL - 0 ) / + 75, - 85 / - 71 ) - + - 62 + - - CAST ( + 88 AS INTEGER ) * + + 83 AS col0
----
7421

query I rowsort
SELECT ( + 42 ) + - 71
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5724
SELECT 28 * - + COALESCE ( 54, + 75, 78 - CASE 84 WHEN - + COUNT( * ) + CAST( 8 AS SIGNED ) / + 9 THEN - ( + 32 ) END )
----
-1512

skipif mysql # not compatible
query I rowsort label-5724
SELECT 28 * - + COALESCE ( 54, + 75, 78 - CASE 84 WHEN - + COUNT ( * ) + CAST ( 8 AS INTEGER ) / + 9 THEN - ( + 32 ) END )
----
-1512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5725
SELECT ALL - COUNT( * ) * + 16 DIV + CASE + 86 WHEN + CAST( + + COUNT( ALL + 76 ) AS SIGNED ) + - 40 + + 4 * + CAST( NULL AS SIGNED ) THEN - 5 ELSE + 23 END AS col0, - COALESCE ( - + SUM( - ( - + 64 ) ), 33 * 42 + ( 15 ), 46 * 91 + - 43, - COUNT( * ) ) * - 41 AS col1
----
0
-2624

skipif mysql # not compatible
query II rowsort label-5725
SELECT ALL - COUNT ( * ) * + 16 / + CASE + 86 WHEN + CAST ( + + COUNT ( ALL + 76 ) AS INTEGER ) + - 40 + + 4 * + CAST ( NULL AS INTEGER ) THEN - 5 ELSE + 23 END AS col0, - COALESCE ( - + SUM ( - ( - + 64 ) ), 33 * 42 + ( 15 ), 46 * 91 + - 43, - COUNT ( * ) ) * - 41 AS col1
----
0
-2624

query II rowsort
SELECT DISTINCT 46, - 58 col0
----
46
-58

query I rowsort
SELECT DISTINCT - ( + 2 ) + - - 16
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5728
SELECT ALL 14 * COUNT( * ) DIV - 63 * - 6 AS col0, CASE + AVG ( ALL 78 ) WHEN - 78 * - 81 + + - 70 THEN - NULLIF ( - 4, - ( + 52 ) + + 85 ) WHEN + 52 DIV + ( 29 ) THEN NULL ELSE 44 END AS col2
----
0
44

skipif mysql # not compatible
query II rowsort label-5728
SELECT ALL 14 * COUNT ( * ) / - 63 * - 6 AS col0, CASE + AVG ( ALL 78 ) WHEN - 78 * - 81 + + - 70 THEN - NULLIF ( - 4, - ( + 52 ) + + 85 ) WHEN + 52 / + ( 29 ) THEN NULL ELSE 44 END AS col2
----
0
44

onlyif mysql # aggregate syntax: 
query II rowsort label-5729
SELECT - COUNT( * ) AS col2, - ( - 17 ) + 33 AS col1
----
-1
50

skipif mysql # not compatible
query II rowsort label-5729
SELECT - COUNT ( * ) AS col2, - ( - 17 ) + 33 AS col1
----
-1
50

onlyif mysql # aggregate syntax: 
query II rowsort label-5730
SELECT - 8 + + 57 * + 1 * + 2, 83 + + COUNT( * ) AS col1
----
106
84

skipif mysql # not compatible
query II rowsort label-5730
SELECT - 8 + + 57 * + 1 * + 2, 83 + + COUNT ( * ) AS col1
----
106
84

onlyif mysql # aggregate syntax: 
query II rowsort label-5731
SELECT 47 AS col0, 45 * + COUNT( * ) + + - 26 AS col0
----
47
19

skipif mysql # not compatible
query II rowsort label-5731
SELECT 47 AS col0, 45 * + COUNT ( * ) + + - 26 AS col0
----
47
19

onlyif mysql # aggregate syntax: 
query II rowsort label-5732
SELECT 82 col2, - MAX( DISTINCT + 65 ) + + - 77
----
82
-142

skipif mysql # not compatible
query II rowsort label-5732
SELECT 82 col2, - MAX ( DISTINCT + 65 ) + + - 77
----
82
-142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5733
SELECT ALL 78 + + + CAST( NULL AS SIGNED ) - + 15 * + 26 * - + 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5733
SELECT ALL 78 + + + CAST ( NULL AS INTEGER ) - + 15 * + 26 * - + 6 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5734
SELECT + 84 + SUM( ALL ( + 35 ) ) col0
----
119

skipif mysql # not compatible
query I rowsort label-5734
SELECT + 84 + SUM ( ALL ( + 35 ) ) col0
----
119

query II rowsort
SELECT - 31 col2, 49
----
-31
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT ALL SUM( ALL + 80 ) + 36 AS col1
----
116

skipif mysql # not compatible
query I rowsort label-5736
SELECT ALL SUM ( ALL + 80 ) + 36 AS col1
----
116

query I rowsort
SELECT DISTINCT + NULLIF ( + + 4, - - COALESCE ( + 59, - ( 46 ) + + 18 ) * - 5 * + 85 + + 25 / ( 1 ) + + 63 ) AS col0
----
4

query I rowsort
SELECT DISTINCT + 64 + - + 29 + + 39
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT ALL + 6 + - - ( - 72 ) * + 13 * + SUM( ALL - + 51 ) col2
----
47742

skipif mysql # not compatible
query I rowsort label-5739
SELECT ALL + 6 + - - ( - 72 ) * + 13 * + SUM ( ALL - + 51 ) col2
----
47742

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5740
SELECT ALL + 42 DIV + - 43 * + MAX( DISTINCT - ( + 23 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5740
SELECT ALL + 42 / + - 43 * + MAX ( DISTINCT - ( + 23 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5741
SELECT + - COUNT( * ) + 85 AS col2, 55 + - 12
----
84
43

skipif mysql # not compatible
query II rowsort label-5741
SELECT + - COUNT ( * ) + 85 AS col2, 55 + - 12
----
84
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT - 10 * + 23 + + COUNT( * ) AS col0
----
-229

skipif mysql # not compatible
query I rowsort label-5742
SELECT - 10 * + 23 + + COUNT ( * ) AS col0
----
-229

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5743
SELECT - - ( - 88 ) / - 86 - + ( + CAST( 96 AS SIGNED ) ) / - CAST( NULL AS DECIMAL ) - 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5743
SELECT - - ( - 88 ) / - 86 - + ( + CAST ( 96 AS INTEGER ) ) / - CAST ( NULL AS REAL ) - 3 AS col2
----
NULL

query I rowsort
SELECT + + 98 * + 99 + + - 85
----
9617

query I rowsort
SELECT - 37 - + NULLIF ( COALESCE ( - 89, + - 12 ), + 58 * + + 71 ) - 51 * - 2 - - - 75 col2
----
79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5747
SELECT ALL + - MAX( - COALESCE ( + - 55, 74 * - - 7 * 12 ) ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-5747
SELECT ALL + - MAX ( - COALESCE ( + - 55, 74 * - - 7 * 12 ) ) AS col1
----
-55

query I rowsort
SELECT DISTINCT + + 69 col0
----
69

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5751
SELECT 82 * + 72 + - + ( + 40 ) DIV + + COUNT( * ) AS col2
----
5864

skipif mysql # not compatible
query I rowsort label-5751
SELECT 82 * + 72 + - + ( + 40 ) / + + COUNT ( * ) AS col2
----
5864

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT DISTINCT + MIN( - 82 ) * + - 35 AS col0
----
2870

skipif mysql # not compatible
query I rowsort label-5752
SELECT DISTINCT + MIN ( - 82 ) * + - 35 AS col0
----
2870

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT - 65 * + 50 + + 9 * + + MAX( 35 ) * 78 - 78 + 15 AS col0
----
21257

skipif mysql # not compatible
query I rowsort label-5753
SELECT - 65 * + 50 + + 9 * + + MAX ( 35 ) * 78 - 78 + 15 AS col0
----
21257

onlyif mysql # aggregate syntax: 
query I rowsort label-5754
SELECT COUNT( * ) * 5 * - 60 + + 94 col1
----
-206

skipif mysql # not compatible
query I rowsort label-5754
SELECT COUNT ( * ) * 5 * - 60 + + 94 col1
----
-206

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5755
SELECT - 33 * + CAST( COALESCE ( + + 15, + 95 / 93, + 55 - COALESCE ( - - 34, + + COUNT( * ) ) * - 19 ) AS SIGNED ) * + - 66 + + ( + 58 ) * + 14 + - 14 * + 33
----
33020

skipif mysql # not compatible
query I rowsort label-5755
SELECT - 33 * + CAST ( COALESCE ( + + 15, + 95 / 93, + 55 - COALESCE ( - - 34, + + COUNT ( * ) ) * - 19 ) AS INTEGER ) * + - 66 + + ( + 58 ) * + 14 + - 14 * + 33
----
33020

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

skipif mysql # not compatible
query II rowsort label-5756
SELECT ALL + COUNT ( * ) / 20, - 60 AS col2
----
0
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-5757
SELECT - 50 DIV 20 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-5757
SELECT - 50 / 20 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5758
SELECT ALL + MIN( DISTINCT - 64 ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-5758
SELECT ALL + MIN ( DISTINCT - 64 ) AS col1
----
-64

query I rowsort
SELECT DISTINCT + 29 * - 24 * - 36 AS col1
----
25056

query I rowsort
SELECT DISTINCT + 97 * - 61 * 84 + 7 col1
----
-497021

onlyif mysql # DIV for integer division: 
query I rowsort label-5761
SELECT ALL + 47 DIV - 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5761
SELECT ALL + 47 / - 78 AS col2
----
0

query II rowsort
SELECT DISTINCT 14 * + - ( - - 26 ) + 46 * - 80, ( - 69 ) AS col1
----
-4044
-69

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT MAX( DISTINCT 4 ) * + 10 + 61
----
101

skipif mysql # not compatible
query I rowsort label-5764
SELECT MAX ( DISTINCT 4 ) * + 10 + 61
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT + CASE + 3 WHEN - 79 - 28 THEN - 85 WHEN + + 6 + 26 THEN + 99 WHEN + 82 THEN COUNT( * ) + 46 + 35 * - COUNT( * ) * - 36 ELSE NULL END + - - 34 + - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-5765
SELECT + CASE + 3 WHEN - 79 - 28 THEN - 85 WHEN + + 6 + 26 THEN + 99 WHEN + 82 THEN COUNT ( * ) + 46 + 35 * - COUNT ( * ) * - 36 ELSE NULL END + - - 34 + - 73
----
NULL

query I rowsort
SELECT DISTINCT + - 5 * 12 AS col2
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5767
SELECT DISTINCT + - 80 + 69 DIV + MAX( + 54 )
----
-79

skipif mysql # not compatible
query I rowsort label-5767
SELECT DISTINCT + - 80 + 69 / + MAX ( + 54 )
----
-79

query I rowsort
SELECT ALL + - 29 + 51 AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5769
SELECT ALL + NULLIF ( + COALESCE ( MAX( 66 ), + 65, 66 + - 32 ), + COALESCE ( - 63, - 42 ) )
----
66

skipif mysql # not compatible
query I rowsort label-5769
SELECT ALL + NULLIF ( + COALESCE ( MAX ( 66 ), + 65, 66 + - 32 ), + COALESCE ( - 63, - 42 ) )
----
66

query I rowsort
SELECT + + 66 + 77 * + 36
----
2838

query I rowsort
SELECT ALL 11 - - + 76 + + - 47
----
40

query I rowsort
SELECT - - 97 * - + 56 + - - 45
----
-5387

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5773
SELECT + COALESCE ( + 64, - + MAX( ALL + 10 ) + - 32, - 13 * + COALESCE ( - + 34, - - 6 * 21 + COUNT( - + 47 ) * + 55 + - 99, - CAST( NULL AS SIGNED ) ) * + + CAST( - COUNT( * ) AS SIGNED ) * 66 - + 66 * COUNT( * ) ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-5773
SELECT + COALESCE ( + 64, - + MAX ( ALL + 10 ) + - 32, - 13 * + COALESCE ( - + 34, - - 6 * 21 + COUNT ( - + 47 ) * + 55 + - 99, - CAST ( NULL AS INTEGER ) ) * + + CAST ( - COUNT ( * ) AS INTEGER ) * 66 - + 66 * COUNT ( * ) ) AS col0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5774
SELECT - 25 / - - COALESCE ( 15, + CAST( - 70 AS SIGNED ), CAST( NULL AS SIGNED ) + + 97 - + ( + 32 ) + 44 ) * - CAST( NULL AS SIGNED ) + - 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5774
SELECT - 25 / - - COALESCE ( 15, + CAST ( - 70 AS INTEGER ), CAST ( NULL AS INTEGER ) + + 97 - + ( + 32 ) + 44 ) * - CAST ( NULL AS INTEGER ) + - 51 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5775
SELECT + ( + + ( 41 ) ) + ( - + 23 ) AS col1, ( - 6 ) + - COUNT( * ) - + 37
----
18
-44

skipif mysql # not compatible
query II rowsort label-5775
SELECT + ( + + ( 41 ) ) + ( - + 23 ) AS col1, ( - 6 ) + - COUNT ( * ) - + 37
----
18
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT + 12 * SUM( + 98 ) + + - 83 AS col0
----
1093

skipif mysql # not compatible
query I rowsort label-5776
SELECT + 12 * SUM ( + 98 ) + + - 83 AS col0
----
1093

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

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

query I rowsort
SELECT DISTINCT - 92 * ( 15 )
----
-1380

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

skipif mysql # not compatible
query I rowsort label-5779
SELECT + 79 / + COUNT ( + 45 ) AS col1
----
79

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5781
SELECT + + 20 DIV + 4
----
5

skipif mysql # not compatible
query I rowsort label-5781
SELECT + + 20 / + 4
----
5

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5783
SELECT ALL + 63 AS col2, + 84 * + - 19 * + + COUNT( * ) * - - 70 AS col2
----
63
-111720

skipif mysql # not compatible
query II rowsort label-5783
SELECT ALL + 63 AS col2, + 84 * + - 19 * + + COUNT ( * ) * - - 70 AS col2
----
63
-111720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5784
SELECT ALL 98 DIV 79 * + COUNT( * ) + - 69 * + 31
----
-2138

skipif mysql # not compatible
query I rowsort label-5784
SELECT ALL 98 / 79 * + COUNT ( * ) + - 69 * + 31
----
-2138

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT COUNT( * ) + 72 * - 64 AS col2
----
-4607

skipif mysql # not compatible
query I rowsort label-5785
SELECT COUNT ( * ) + 72 * - 64 AS col2
----
-4607

query I rowsort
SELECT DISTINCT - 25 + 24
----
-1

query I rowsort
SELECT 82 - 87 AS col1
----
-5

query I rowsort
SELECT + 41 * + ( - + 6 ) - - 66 AS col0
----
-180

onlyif mysql # DIV for integer division: 
query I rowsort label-5789
SELECT DISTINCT - 98 DIV - 95
----
1

skipif mysql # not compatible
query I rowsort label-5789
SELECT DISTINCT - 98 / - 95
----
1

query I rowsort
SELECT DISTINCT 2 + 55
----
57

query I rowsort
SELECT ALL - + COALESCE ( - + 43, 38 + + + 26 ) * + + 93 col2
----
3999

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

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

query I rowsort
SELECT + 47 + + + 64 AS col0
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-5794
SELECT DISTINCT - 48 DIV - 51
----
0

skipif mysql # not compatible
query I rowsort label-5794
SELECT DISTINCT - 48 / - 51
----
0

query I rowsort
SELECT 19 * - - 24 AS col2
----
456

onlyif mysql # DIV for integer division: 
query I rowsort label-5796
SELECT ALL - 15 * 23 + - 86 DIV - 85
----
-344

skipif mysql # not compatible
query I rowsort label-5796
SELECT ALL - 15 * 23 + - 86 / - 85
----
-344

onlyif mysql # aggregate syntax: 
query I rowsort label-5797
SELECT 6 + MIN( + 19 )
----
25

skipif mysql # not compatible
query I rowsort label-5797
SELECT 6 + MIN ( + 19 )
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5798
SELECT - 13 * - SUM( ALL - - 15 ) * + 15 + + 95 DIV + 4
----
2948

skipif mysql # not compatible
query I rowsort label-5798
SELECT - 13 * - SUM ( ALL - - 15 ) * + 15 + + 95 / + 4
----
2948

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5799
SELECT - 22 AS col0, CASE + - 63 WHEN + 6 * + 80 * - 2 * - - 81 + - 62 THEN + CASE + 82 WHEN + 45 + - 14 + - CAST( NULL AS SIGNED ) * + 77 THEN 98 WHEN + + 85 - 90 / - 91 THEN NULL END END AS col0
----
-22
NULL

skipif mysql # not compatible
query II rowsort label-5799
SELECT - 22 AS col0, CASE + - 63 WHEN + 6 * + 80 * - 2 * - - 81 + - 62 THEN + CASE + 82 WHEN + 45 + - 14 + - CAST ( NULL AS INTEGER ) * + 77 THEN 98 WHEN + + 85 - 90 / - 91 THEN NULL END END AS col0
----
-22
NULL

query I rowsort
SELECT ALL + + 35 * 25
----
875

onlyif mysql # aggregate syntax: 
query I rowsort label-5801
SELECT 75 - - COUNT( * ) - - + 40 * + - MAX( ALL 73 ) + - ( - - ( + 44 ) ) * 82
----
-6452

skipif mysql # not compatible
query I rowsort label-5801
SELECT 75 - - COUNT ( * ) - - + 40 * + - MAX ( ALL 73 ) + - ( - - ( + 44 ) ) * 82
----
-6452

query I rowsort
SELECT DISTINCT + 63 * - 12 AS col1
----
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT - 72 + COUNT( DISTINCT + 57 )
----
-71

skipif mysql # not compatible
query I rowsort label-5803
SELECT - 72 + COUNT ( DISTINCT + 57 )
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5804
SELECT ALL + CAST( + - 86 AS SIGNED )
----
-86

skipif mysql # not compatible
query I rowsort label-5804
SELECT ALL + CAST ( + - 86 AS INTEGER )
----
-86

query I rowsort
SELECT ALL + + 47 + + - 25
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT - 38 + + - NULLIF ( - + COUNT( * ), - 65 * - COUNT( * ) + + - 94 + + + 74 ) + - + 78 * 49 * 23 + + 85 * - 49
----
-92108

skipif mysql # not compatible
query I rowsort label-5806
SELECT - 38 + + - NULLIF ( - + COUNT ( * ), - 65 * - COUNT ( * ) + + - 94 + + + 74 ) + - + 78 * 49 * 23 + + 85 * - 49
----
-92108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5807
SELECT - 30 DIV + 14 - COUNT( * ) + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-5807
SELECT - 30 / + 14 - COUNT ( * ) + COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5808
SELECT 19 * - + COUNT( * ) + 84 + + 52 / 76 * CASE + 12 WHEN + 31 + + ( + + ( 29 ) ) THEN - - 3 - 27 + - 44 + + - 92 + - 74 / - 77 + - + 89 * - CASE - 24 WHEN NULLIF ( + 52, 85 * 37 + ( 53 ) ) THEN NULL WHEN + 87 THEN 50 ELSE NULL END * + 14 WHEN - 93 THEN NULL ELSE NULL END + + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-5808
SELECT 19 * - + COUNT ( * ) + 84 + + 52 / 76 * CASE + 12 WHEN + 31 + + ( + + ( 29 ) ) THEN - - 3 - 27 + - 44 + + - 92 + - 74 / - 77 + - + 89 * - CASE - 24 WHEN NULLIF ( + 52, 85 * 37 + ( 53 ) ) THEN NULL WHEN + 87 THEN 50 ELSE NULL END * + 14 WHEN - 93 THEN NULL ELSE NULL END + + 21
----
NULL

query I rowsort
SELECT 48 - - 50 * + 3 * 45 * 74 + + - 13 * + - 21 AS col2
----
499821

query I rowsort
SELECT ALL 69 * 75 AS col0
----
5175

query II rowsort
SELECT ( - ( 82 ) ) + - + 39 * - + 41 AS col0, - 1 * - 39 AS col0
----
1517
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5812
SELECT 31 DIV - MIN( ALL - 54 )
----
0

skipif mysql # not compatible
query I rowsort label-5812
SELECT 31 / - MIN ( ALL - 54 )
----
0

query I rowsort
SELECT ALL - 56 + - 99
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT ALL - 47 * - 82 * + COUNT( * )
----
3854

skipif mysql # not compatible
query I rowsort label-5814
SELECT ALL - 47 * - 82 * + COUNT ( * )
----
3854

query I rowsort
SELECT ALL 98 + + 24 * + 69 AS col0
----
1754

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT ALL ( - + MAX( + + 53 ) ) + + 97 + - - 89 + + 92 AS col2
----
225

skipif mysql # not compatible
query I rowsort label-5816
SELECT ALL ( - + MAX ( + + 53 ) ) + + 97 + - - 89 + + 92 AS col2
----
225

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT + NULLIF ( + + ( - 63 ), - COUNT( + 94 ) ) * + + COUNT( - 30 ) + - ( - 87 ) + - COUNT( * ) + + 17 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-5818
SELECT + NULLIF ( + + ( - 63 ), - COUNT ( + 94 ) ) * + + COUNT ( - 30 ) + - ( - 87 ) + - COUNT ( * ) + + 17 AS col1
----
40

query I rowsort
SELECT ALL 62 + 5 + + - 52 col0
----
15

query I rowsort
SELECT DISTINCT 97 + - - 71
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-5821
SELECT 92 + - - SUM( ALL + - 27 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-5821
SELECT 92 + - - SUM ( ALL + - 27 ) AS col0
----
65

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT DISTINCT 61 - - COUNT( * ) - + 9
----
53

skipif mysql # not compatible
query I rowsort label-5823
SELECT DISTINCT 61 - - COUNT ( * ) - + 9
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5824
SELECT + 36 * + - 90 * + 19 + 64 - + MAX( - 75 ) * - + 32 AS col0
----
-63896

skipif mysql # not compatible
query I rowsort label-5824
SELECT + 36 * + - 90 * + 19 + 64 - + MAX ( - 75 ) * - + 32 AS col0
----
-63896

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

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

query I rowsort
SELECT 42 + + 7 AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT ALL - 19 * - - 38 + - 69 + + 85 * + COUNT( DISTINCT - ( + 29 ) ) + 26
----
-680

skipif mysql # not compatible
query I rowsort label-5827
SELECT ALL - 19 * - - 38 + - 69 + + 85 * + COUNT ( DISTINCT - ( + 29 ) ) + 26
----
-680

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5831
SELECT + 90 + - NULLIF ( + 64, + COUNT( * ) ) DIV - + 45
----
91

skipif mysql # not compatible
query I rowsort label-5831
SELECT + 90 + - NULLIF ( + 64, + COUNT ( * ) ) / - + 45
----
91

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

query II rowsort
SELECT 13 * + 91, + 83 AS col2
----
1183
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5834
SELECT ALL - - 87 DIV - 11 + - 20 + COALESCE ( + 15, + 70 * 79 + - 61 DIV - NULLIF ( - 93, + COUNT( * ) * 94 ) * + 33 + COUNT( * ) ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-5834
SELECT ALL - - 87 / - 11 + - 20 + COALESCE ( + 15, + 70 * 79 + - 61 / - NULLIF ( - 93, + COUNT ( * ) * 94 ) * + 33 + COUNT ( * ) ) AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT 44 + - 78 + - MIN( DISTINCT 98 ) * - 67 * - 15 + - + 41 - 41
----
-98606

skipif mysql # not compatible
query I rowsort label-5835
SELECT 44 + - 78 + - MIN ( DISTINCT 98 ) * - 67 * - 15 + - + 41 - 41
----
-98606

onlyif mysql # aggregate syntax: 
query II rowsort label-5836
SELECT DISTINCT COUNT( 27 ) AS col2, ( + - 35 ) AS col1
----
1
-35

skipif mysql # not compatible
query II rowsort label-5836
SELECT DISTINCT COUNT ( 27 ) AS col2, ( + - 35 ) AS col1
----
1
-35

query I rowsort
SELECT - 56 + 55
----
-1

query I rowsort
SELECT - 61 - 21 + 9 AS col0
----
-73

onlyif mysql # DIV for integer division: 
query II rowsort label-5839
SELECT ALL - 59 DIV 42 + - 14 * - 67 AS col2, - 70 AS col1
----
937
-70

skipif mysql # not compatible
query II rowsort label-5839
SELECT ALL - 59 / 42 + - 14 * - 67 AS col2, - 70 AS col1
----
937
-70

query I rowsort
SELECT DISTINCT + 9 * 87
----
783

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5843
SELECT MIN( - ( 31 ) ) * + - 31 AS col0, 98 * COUNT( * ) * - + 68
----
961
-6664

skipif mysql # not compatible
query II rowsort label-5843
SELECT MIN ( - ( 31 ) ) * + - 31 AS col0, 98 * COUNT ( * ) * - + 68
----
961
-6664

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT + 19 + - COUNT( * ) col1
----
18

skipif mysql # not compatible
query I rowsort label-5844
SELECT + 19 + - COUNT ( * ) col1
----
18

query I rowsort
SELECT DISTINCT + ( - 89 ) + 3
----
-86

query II rowsort
SELECT DISTINCT - ( + - 80 ) + 52 AS col0, 32 * ( - 89 )
----
132
-2848

query I rowsort
SELECT ALL + 88 + - - 22 col1
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT COALESCE ( - 85, COUNT( * ) ) col2
----
-85

skipif mysql # not compatible
query I rowsort label-5848
SELECT COALESCE ( - 85, COUNT ( * ) ) col2
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-5849
SELECT - 4 * - - 59 * + 71, + SUM( CASE - - 93 WHEN + 82 THEN + 9 + 14 ELSE NULL END ) AS col2
----
-16756
NULL

skipif mysql # not compatible
query II rowsort label-5849
SELECT - 4 * - - 59 * + 71, + SUM ( CASE - - 93 WHEN + 82 THEN + 9 + 14 ELSE NULL END ) AS col2
----
-16756
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5850
SELECT ALL + COALESCE ( + 64, + + 58 * + - NULLIF ( - 18, 22 ) DIV - 18 ) * 2 DIV - 82 + + + 87 + + 6 + + 10 + + - 95 + - - 3 * 5 * + ( 78 )
----
1177

skipif mysql # not compatible
query I rowsort label-5850
SELECT ALL + COALESCE ( + 64, + + 58 * + - NULLIF ( - 18, 22 ) / - 18 ) * 2 / - 82 + + + 87 + + 6 + + 10 + + - 95 + - - 3 * 5 * + ( 78 )
----
1177

query I rowsort
SELECT ALL 58 * - - 69 + - - 44 + 39
----
4085

query I rowsort
SELECT + 74 * + 40 col2
----
2960

query I rowsort
SELECT ALL - 16 * - - 79 AS col1
----
-1264

query I rowsort
SELECT DISTINCT 14 * + - 90 AS col0
----
-1260

onlyif mysql # DIV for integer division: 
query I rowsort label-5855
SELECT - 20 + - + 51 + - 99 + - 17 DIV 15 * - + 68 * + 8 * + 41 + - + 95 * + 88 * - - ( 63 ) col1
----
-504546

skipif mysql # not compatible
query I rowsort label-5855
SELECT - 20 + - + 51 + - 99 + - 17 / 15 * - + 68 * + 8 * + 41 + - + 95 * + 88 * - - ( 63 ) col1
----
-504546

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT ALL - 5 * - NULLIF ( + ( + + ( COUNT( * ) ) ), - - 43 ) - 54 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-5856
SELECT ALL - 5 * - NULLIF ( + ( + + ( COUNT ( * ) ) ), - - 43 ) - 54 AS col1
----
-49

query I rowsort
SELECT ALL 14 * + - 75 - 91 AS col2
----
-1141

query I rowsort
SELECT + 32 * + 87 * 65 - + + ( + 76 ) AS col1
----
180884

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

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

query II rowsort
SELECT ALL + 26 AS col2, + 96 * - ( - 23 )
----
26
2208

onlyif mysql # DIV for integer division: 
query I rowsort label-5861
SELECT + + 4 DIV - + 30 * - 78
----
0

skipif mysql # not compatible
query I rowsort label-5861
SELECT + + 4 / - + 30 * - 78
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5862
SELECT ALL + 98 DIV CAST( 46 AS SIGNED ) * + COUNT( * ) + + 27 - ( + 98 )
----
-69

skipif mysql # not compatible
query I rowsort label-5862
SELECT ALL + 98 / CAST ( 46 AS INTEGER ) * + COUNT ( * ) + + 27 - ( + 98 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SELECT + - COUNT( * ) - 17 * - - ( - + 13 ) col0
----
220

skipif mysql # not compatible
query I rowsort label-5863
SELECT + - COUNT ( * ) - 17 * - - ( - + 13 ) col0
----
220

onlyif mysql # aggregate syntax: 
query II rowsort label-5864
SELECT DISTINCT - COALESCE ( CASE - 58 WHEN - - MAX( DISTINCT - 20 ) * 85 THEN NULL ELSE - 98 END, + 77 ) AS col1, COUNT( * ) AS col0
----
98
1

skipif mysql # not compatible
query II rowsort label-5864
SELECT DISTINCT - COALESCE ( CASE - 58 WHEN - - MAX ( DISTINCT - 20 ) * 85 THEN NULL ELSE - 98 END, + 77 ) AS col1, COUNT ( * ) AS col0
----
98
1

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5866
SELECT ALL + 61 col1, 39 DIV - 27 col1
----
61
-1

skipif mysql # not compatible
query II rowsort label-5866
SELECT ALL + 61 col1, 39 / - 27 col1
----
61
-1

query I rowsort
SELECT ALL - 71 + - 83
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT + + COUNT( * ) * + - 6 + + 20
----
14

skipif mysql # not compatible
query I rowsort label-5868
SELECT + + COUNT ( * ) * + - 6 + + 20
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5869
SELECT - COALESCE ( + - ( COUNT( * ) ), - 72 )
----
1

skipif mysql # not compatible
query I rowsort label-5869
SELECT - COALESCE ( + - ( COUNT ( * ) ), - 72 )
----
1

query II rowsort
SELECT 81, + 39 + - - 42 * + - 38 AS col0
----
81
-1557

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT - CASE + - 5 WHEN + + 66 THEN NULL WHEN - COUNT( * ) THEN - - COUNT( * ) / - - 61 - 78 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5871
SELECT - CASE + - 5 WHEN + + 66 THEN NULL WHEN - COUNT ( * ) THEN - - COUNT ( * ) / - - 61 - 78 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT DISTINCT - 78 + + SUM( DISTINCT - + 69 ) AS col1
----
-147

skipif mysql # not compatible
query I rowsort label-5872
SELECT DISTINCT - 78 + + SUM ( DISTINCT - + 69 ) AS col1
----
-147

query I rowsort
SELECT + 28 + - 22
----
6

query I rowsort
SELECT DISTINCT 51 + NULLIF ( - 63, 49 )
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-5875
SELECT ALL ( + COUNT( * ) ), 38 - + + 60 AS col1
----
1
-22

skipif mysql # not compatible
query II rowsort label-5875
SELECT ALL ( + COUNT ( * ) ), 38 - + + 60 AS col1
----
1
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT - 80 + - - MIN( DISTINCT 21 ) + + 51 + CASE + ( - + COUNT( * ) ) WHEN 87 THEN - - 31 + + 35 WHEN 73 THEN - COUNT( DISTINCT 37 ) END - - 13 / - + 12 * + - 44 * + 3 * - - 18 - 17 * - + 63 * 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5876
SELECT - 80 + - - MIN ( DISTINCT 21 ) + + 51 + CASE + ( - + COUNT ( * ) ) WHEN 87 THEN - - 31 + + 35 WHEN 73 THEN - COUNT ( DISTINCT 37 ) END - - 13 / - + 12 * + - 44 * + 3 * - - 18 - 17 * - + 63 * 79 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5877
SELECT ALL - CAST( - - CAST( - 71 AS SIGNED ) AS SIGNED ) + 1, - COUNT( * ) DIV - 2 AS col0
----
72
0

skipif mysql # not compatible
query II rowsort label-5877
SELECT ALL - CAST ( - - CAST ( - 71 AS INTEGER ) AS INTEGER ) + 1, - COUNT ( * ) / - 2 AS col0
----
72
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5878
SELECT + 92 + + - 19 AS col1, - COUNT( * ) + - - 72 DIV + COUNT( * )
----
73
71

skipif mysql # not compatible
query II rowsort label-5878
SELECT + 92 + + - 19 AS col1, - COUNT ( * ) + - - 72 / + COUNT ( * )
----
73
71

query I rowsort
SELECT + 51 * + 49 AS col1
----
2499

onlyif mysql # aggregate syntax: 
query I rowsort label-5880
SELECT + MIN( ALL + + 86 ) + + 28 AS col0
----
114

skipif mysql # not compatible
query I rowsort label-5880
SELECT + MIN ( ALL + + 86 ) + + 28 AS col0
----
114

onlyif mysql # aggregate syntax: 
query II rowsort label-5881
SELECT ALL + 84 * - ( + COUNT( 52 ) ), ( 57 ) + 63 AS col0
----
-84
120

skipif mysql # not compatible
query II rowsort label-5881
SELECT ALL + 84 * - ( + COUNT ( 52 ) ), ( 57 ) + 63 AS col0
----
-84
120

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5883
SELECT 93 * 55 + + - COUNT( * ) + + CAST( 45 AS SIGNED ) * + 86 * - 38 AS col0
----
-141946

skipif mysql # not compatible
query I rowsort label-5883
SELECT 93 * 55 + + - COUNT ( * ) + + CAST ( 45 AS INTEGER ) * + 86 * - 38 AS col0
----
-141946

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT - MIN( + 88 ) - + 26 - - + 89 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-5884
SELECT - MIN ( + 88 ) - + 26 - - + 89 AS col2
----
-25

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5886
SELECT DISTINCT + COUNT( * ) AS col1, 28 DIV - - COUNT( * )
----
1
28

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5887
SELECT ALL + CASE + + 26 WHEN 26 * - 86 / + 14 + 87 THEN + + ( + CASE + + AVG ( ALL - 93 ) WHEN - CASE + - 7 WHEN - AVG ( 1 ) * + + 55 THEN NULL WHEN + 45 THEN NULL WHEN + 61 + + COUNT( * ) THEN NULL WHEN 40 + - - 79 THEN NULL ELSE - 79 + - 80 * 46 END + - 66 THEN NULL ELSE - ( AVG ( 43 ) ) * CASE + COUNT( * ) + + 34 WHEN CAST( NULL AS DECIMAL ) THEN - 90 ELSE NULL END END ) WHEN + 97 THEN 8 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5887
SELECT ALL + CASE + + 26 WHEN 26 * - 86 / + 14 + 87 THEN + + ( + CASE + + AVG ( ALL - 93 ) WHEN - CASE + - 7 WHEN - AVG ( 1 ) * + + 55 THEN NULL WHEN + 45 THEN NULL WHEN + 61 + + COUNT ( * ) THEN NULL WHEN 40 + - - 79 THEN NULL ELSE - 79 + - 80 * 46 END + - 66 THEN NULL ELSE - ( AVG ( 43 ) ) * CASE + COUNT ( * ) + + 34 WHEN CAST ( NULL AS REAL ) THEN - 90 ELSE NULL END END ) WHEN + 97 THEN 8 END
----
NULL

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

skipif mysql # not compatible
query II rowsort label-5888
SELECT ALL + COUNT ( * ), + 39 col1
----
1
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT ALL - 21 * - 61 * + COUNT( * )
----
1281

skipif mysql # not compatible
query I rowsort label-5889
SELECT ALL - 21 * - 61 * + COUNT ( * )
----
1281

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5890
SELECT - 90 + + ( + + CAST( - 40 AS SIGNED ) ) * 53 * + 21 AS col1, COUNT( * )
----
-44610
1

skipif mysql # not compatible
query II rowsort label-5890
SELECT - 90 + + ( + + CAST ( - 40 AS INTEGER ) ) * 53 * + 21 AS col1, COUNT ( * )
----
-44610
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT + 66 * CASE 63 WHEN ( + 65 ) * + - MIN( + 6 ) * - + 5 + - + 66 / + 12 + 37 THEN + 54 END + - 43 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5891
SELECT + 66 * CASE 63 WHEN ( + 65 ) * + - MIN ( + 6 ) * - + 5 + - + 66 / + 12 + 37 THEN + 54 END + - 43 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5892
SELECT ALL + COUNT( * ) col1, 74 + 12
----
1
86

skipif mysql # not compatible
query II rowsort label-5892
SELECT ALL + COUNT ( * ) col1, 74 + 12
----
1
86

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

query I rowsort
SELECT + NULLIF ( - 38, - - 39 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5895
SELECT - 75 + COUNT( * ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-5895
SELECT - 75 + COUNT ( * ) AS col1
----
-74

query I rowsort
SELECT + 49 + + 9 AS col2
----
58

query I rowsort
SELECT - 89 * + 19 col1
----
-1691

query I rowsort
SELECT + - 42 * + 18 AS col0
----
-756

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5899
SELECT DISTINCT - 36 * - - COUNT( + 65 ) + - 9 * + - AVG ( ALL - CAST( NULL AS SIGNED ) ) * 52 * + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-5899
SELECT DISTINCT - 36 * - - COUNT ( + 65 ) + - 9 * + - AVG ( ALL - CAST ( NULL AS INTEGER ) ) * 52 * + 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT + + COUNT( * ) + - 61
----
-60

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5901
SELECT - 91 DIV 57 * + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5901
SELECT - 91 / 57 * + COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT + 79 * + + 80 * - ( 67 ) col1
----
-423440

query I rowsort
SELECT DISTINCT - CASE NULLIF ( 79, + - 75 * + - 65 * 22 ) WHEN 68 THEN NULL WHEN + 10 + 17 * 68 * + + 19 * - + 87 THEN - 90 END AS col0
----
NULL

query I rowsort
SELECT + 41 + 85
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT DISTINCT SUM( + 1 ) * - + 85 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-5905
SELECT DISTINCT SUM ( + 1 ) * - + 85 AS col2
----
-85

query II rowsort
SELECT DISTINCT - 50, - 99 AS col2
----
-50
-99

query I rowsort
SELECT ALL 10 + + 78
----
88

query I rowsort
SELECT ALL 75 * + 30 * 11
----
24750

query I rowsort
SELECT ALL ( - 6 ) - - 86 col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5910
SELECT 73 + + 44 + - CASE CAST( + 38 AS SIGNED ) WHEN - 19 THEN NULL WHEN + 0 THEN 88 + 77 / - 64 * - 9 + 22 + - + SUM( ALL 77 ) END * + 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5910
SELECT 73 + + 44 + - CASE CAST ( + 38 AS INTEGER ) WHEN - 19 THEN NULL WHEN + 0 THEN 88 + 77 / - 64 * - 9 + 22 + - + SUM ( ALL 77 ) END * + 11 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5911
SELECT 76 * + CAST ( NULL AS REAL )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5912
SELECT 82 + 37 + - COUNT ( * ) / + + 60
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5913
SELECT DISTINCT CAST( 21 AS SIGNED ) - + + 23 + - CASE + 24 WHEN + 36 THEN - + 76 * - - 39 END - + - 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5913
SELECT DISTINCT CAST ( 21 AS INTEGER ) - + + 23 + - CASE + 24 WHEN + 36 THEN - + 76 * - - 39 END - + - 82 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 7 - - + 78 * + 69 + ( 11 ) AS col1
----
5386

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5915
SELECT CAST( - 38 AS SIGNED ) * - 87
----
3306

skipif mysql # not compatible
query I rowsort label-5915
SELECT CAST ( - 38 AS INTEGER ) * - 87
----
3306

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5916
SELECT ALL 73 DIV - - 77, 94 * + COUNT( * ) col0
----
0
94

skipif mysql # not compatible
query II rowsort label-5916
SELECT ALL 73 / - - 77, 94 * + COUNT ( * ) col0
----
0
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5917
SELECT NULLIF ( + 94, - COUNT( * ) + - - 14 ) * - 75 + CAST( - 80 AS SIGNED ) * + CASE + 90 WHEN + COUNT( * ) THEN - - 89 WHEN + 69 THEN NULL WHEN - 41 THEN + + 80 + + 59 ELSE + + 42 END + 77 - - 55 + 27 + - 78 + + 31 - - 38 * - 87 * 91
----
-311144

skipif mysql # not compatible
query I rowsort label-5917
SELECT NULLIF ( + 94, - COUNT ( * ) + - - 14 ) * - 75 + CAST ( - 80 AS INTEGER ) * + CASE + 90 WHEN + COUNT ( * ) THEN - - 89 WHEN + 69 THEN NULL WHEN - 41 THEN + + 80 + + 59 ELSE + + 42 END + 77 - - 55 + 27 + - 78 + + 31 - - 38 * - 87 * 91
----
-311144

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

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

onlyif mysql # DIV for integer division: 
query III rowsort label-5919
SELECT ALL 90 * - - 67 AS col2, 14 DIV - 68 * - 51 AS col0, 91
----
6030
0
91

skipif mysql # not compatible
query III rowsort label-5919
SELECT ALL 90 * - - 67 AS col2, 14 / - 68 * - 51 AS col0, 91
----
6030
0
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5920
SELECT + COUNT( * ) * + - 12 * 14 + - 52 AS col1
----
-220

skipif mysql # not compatible
query I rowsort label-5920
SELECT + COUNT ( * ) * + - 12 * 14 + - 52 AS col1
----
-220

query I rowsort
SELECT CASE + - 32 WHEN - 56 THEN ( 46 ) * + + 62 ELSE NULL END * - 42
----
NULL

query I rowsort
SELECT 81 + - ( + + ( + 83 ) )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5923
SELECT ALL - SUM( + ( + 74 ) ) * + + 81 AS col2
----
-5994

skipif mysql # not compatible
query I rowsort label-5923
SELECT ALL - SUM ( + ( + 74 ) ) * + + 81 AS col2
----
-5994

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5924
SELECT ALL - NULLIF ( + CAST( NULL AS SIGNED ), ( - + 31 ) ) + + 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5924
SELECT ALL - NULLIF ( + CAST ( NULL AS INTEGER ), ( - + 31 ) ) + + 84 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5925
SELECT 27 * + 42 - + ( - COUNT( * ) ) AS col0
----
1135

skipif mysql # not compatible
query I rowsort label-5925
SELECT 27 * + 42 - + ( - COUNT ( * ) ) AS col0
----
1135

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-5926
SELECT - 23 * + 17 - 21 DIV COUNT( * ) * - 23 + + + 90 * - 49 AS col0, + 22 * 1 * + ( SUM( DISTINCT - 69 ) ) + CAST( NULL AS DECIMAL ) + 99
----
-4318
NULL

skipif mysql # not compatible
query II rowsort label-5926
SELECT - 23 * + 17 - 21 / COUNT ( * ) * - 23 + + + 90 * - 49 AS col0, + 22 * 1 * + ( SUM ( DISTINCT - 69 ) ) + CAST ( NULL AS REAL ) + 99
----
-4318
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5927
SELECT CASE + 26 WHEN - 38 - 48 * 70 THEN NULL WHEN - - 68 THEN + MIN( ALL + - ( + 52 ) ) END + + 7, 98 AS col2
----
NULL
98

skipif mysql # not compatible
query II rowsort label-5927
SELECT CASE + 26 WHEN - 38 - 48 * 70 THEN NULL WHEN - - 68 THEN + MIN ( ALL + - ( + 52 ) ) END + + 7, 98 AS col2
----
NULL
98

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

skipif mysql # not compatible
query I rowsort label-5928
SELECT ALL - - ( - - COUNT ( * ) ) + - COUNT ( * ) + 31 / - MIN ( + 40 )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5929
SELECT DISTINCT - NULLIF ( 5, + - 2 ) AS col0, - 3 + - 3 + + - 65 DIV + - 84 AS col1
----
-5
-6

skipif mysql # not compatible
query II rowsort label-5929
SELECT DISTINCT - NULLIF ( 5, + - 2 ) AS col0, - 3 + - 3 + + - 65 / + - 84 AS col1
----
-5
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT CASE - 76 WHEN - - 52 THEN NULL WHEN - + 1 THEN - - 20 WHEN + 54 THEN NULL WHEN + NULLIF ( + - COUNT( DISTINCT + + 40 ), - 65 ) * - 64 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5930
SELECT CASE - 76 WHEN - - 52 THEN NULL WHEN - + 1 THEN - - 20 WHEN + 54 THEN NULL WHEN + NULLIF ( + - COUNT ( DISTINCT + + 40 ), - 65 ) * - 64 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5931
SELECT ALL + 80 DIV 35 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-5931
SELECT ALL + 80 / 35 AS col1
----
2

query I rowsort
SELECT DISTINCT - + 38 + - 52 + - 7
----
-97

query II rowsort
SELECT 37 + - 22 AS col0, 71 * 56
----
15
3976

query I rowsort
SELECT ALL - 89 + + 73 - + 91 AS col0
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-5935
SELECT ALL + COUNT( * ) + - 60 - + MIN( ALL + + 8 ) * MIN( - - 9 )
----
-131

skipif mysql # not compatible
query I rowsort label-5935
SELECT ALL + COUNT ( * ) + - 60 - + MIN ( ALL + + 8 ) * MIN ( - - 9 )
----
-131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5936
SELECT DISTINCT - 86 * - 93, + 34 + + CAST( + COUNT( * ) AS SIGNED ) * + 85 AS col0
----
7998
119

skipif mysql # not compatible
query II rowsort label-5936
SELECT DISTINCT - 86 * - 93, + 34 + + CAST ( + COUNT ( * ) AS INTEGER ) * + 85 AS col0
----
7998
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5937
SELECT ALL + 28 - ( - - 20 ) col2, 19 / - 84 + CAST( NULL AS SIGNED ) + COUNT( * ) / - CASE 13 WHEN 89 * 63 * 66 THEN NULL ELSE + + ( - 85 ) END
----
8
NULL

skipif mysql # not compatible
query II rowsort label-5937
SELECT ALL + 28 - ( - - 20 ) col2, 19 / - 84 + CAST ( NULL AS INTEGER ) + COUNT ( * ) / - CASE 13 WHEN 89 * 63 * 66 THEN NULL ELSE + + ( - 85 ) END
----
8
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT ALL - + 33 * + - NULLIF ( 41, - COUNT( * ) * - + 62 )
----
1353

skipif mysql # not compatible
query I rowsort label-5938
SELECT ALL - + 33 * + - NULLIF ( 41, - COUNT ( * ) * - + 62 )
----
1353

query I rowsort
SELECT - 92 + ( + 17 )
----
-75

query I rowsort
SELECT 37 + - 21 * - 4 + + + 74 AS col1
----
195

query I rowsort
SELECT 76 * - 62 AS col2
----
-4712

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

skipif mysql # not compatible
query I rowsort label-5942
SELECT ALL 39 / - COUNT ( * ) AS col2
----
-39

query I rowsort
SELECT 47 + - 6
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5944
SELECT 75, COUNT( * ) DIV - MIN( DISTINCT 37 ) AS col0
----
75
0

skipif mysql # not compatible
query II rowsort label-5944
SELECT 75, COUNT ( * ) / - MIN ( DISTINCT 37 ) AS col0
----
75
0

query I rowsort
SELECT ALL 57 - + - 76 * + 71 AS col1
----
5453

query II rowsort
SELECT DISTINCT 24 col0, 73 - - - 68 AS col2
----
24
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT DISTINCT COUNT( 65 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5947
SELECT DISTINCT COUNT ( 65 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT ALL SUM( - 91 ) * - - ( + + 4 ) * + - CASE - 82 WHEN COUNT( * ) + - 28 / - COUNT( * ) THEN + 11 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5948
SELECT ALL SUM ( - 91 ) * - - ( + + 4 ) * + - CASE - 82 WHEN COUNT ( * ) + - 28 / - COUNT ( * ) THEN + 11 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5949
SELECT ALL 88, - CAST( - + ( + + NULLIF ( - - 36, - 77 ) ) AS SIGNED ) AS col1
----
88
36

skipif mysql # not compatible
query II rowsort label-5949
SELECT ALL 88, - CAST ( - + ( + + NULLIF ( - - 36, - 77 ) ) AS INTEGER ) AS col1
----
88
36

query II rowsort
SELECT 42, + 8 AS col0
----
42
8

onlyif mysql # aggregate syntax: 
query II rowsort label-5951
SELECT SUM( ALL - 59 ) + 2 * + 0 AS col0, - 88 AS col0
----
-59
-88

skipif mysql # not compatible
query II rowsort label-5951
SELECT SUM ( ALL - 59 ) + 2 * + 0 AS col0, - 88 AS col0
----
-59
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-5952
SELECT - COUNT( * ) AS col1, SUM( ALL - - 10 ) col2
----
-1
10

skipif mysql # not compatible
query II rowsort label-5952
SELECT - COUNT ( * ) AS col1, SUM ( ALL - - 10 ) col2
----
-1
10

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5954
SELECT - ( 61 ) DIV 75 - + - 7 + - - 55 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-5954
SELECT - ( 61 ) / 75 - + - 7 + - - 55 AS col0
----
62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5956
SELECT DISTINCT 7 * - COUNT( DISTINCT - 45 ) + 46 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-5956
SELECT DISTINCT 7 * - COUNT ( DISTINCT - 45 ) + 46 AS col2
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5957
SELECT ALL - 41 * 98 * 86 DIV + - ( - COUNT( * ) ) + COALESCE ( 66, - 47 ) col2
----
-345482

skipif mysql # not compatible
query I rowsort label-5957
SELECT ALL - 41 * 98 * 86 / + - ( - COUNT ( * ) ) + COALESCE ( 66, - 47 ) col2
----
-345482

onlyif mysql # aggregate syntax: 
query II rowsort label-5958
SELECT + COUNT( * ) AS col0, 53 * - ( - 37 ) AS col0
----
1
1961

skipif mysql # not compatible
query II rowsort label-5958
SELECT + COUNT ( * ) AS col0, 53 * - ( - 37 ) AS col0
----
1
1961

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT DISTINCT - 97 * + 60 + + - 18 - + - COUNT( * ) + + - 64 + - COUNT( * ) + + 4
----
-5898

skipif mysql # not compatible
query I rowsort label-5959
SELECT DISTINCT - 97 * + 60 + + - 18 - + - COUNT ( * ) + + - 64 + - COUNT ( * ) + + 4
----
-5898

query I rowsort
SELECT DISTINCT - 83 * 72 + + 11
----
-5965

onlyif mysql # DIV for integer division: 
query II rowsort label-5961
SELECT ALL - - 24, 37 DIV + 79 + - 86 AS col0
----
24
-86

skipif mysql # not compatible
query II rowsort label-5961
SELECT ALL - - 24, 37 / + 79 + - 86 AS col0
----
24
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT ALL + ( - + 55 ) * COALESCE ( + - 28, - - 67, - 57 ) + + 23 * + 8 + - CASE + 8 WHEN + - 58 * + 58 * - 91 * - ( + ( ( - + 23 ) ) ) / - - NULLIF ( + 10, - SUM( - COALESCE ( + - 32, + - 67 / 80 ) ) + 64 ) * - 16 - 80 + COALESCE ( + 39, - 49 ) THEN 48 ELSE 57 + + CASE 73 - COUNT( * ) * - 50 WHEN 29 * COUNT( * ) THEN NULL WHEN + 41 THEN - 72 + 79 END * - 28 END + 97 + 0 * 89
----
NULL

skipif mysql # not compatible
query I rowsort label-5962
SELECT ALL + ( - + 55 ) * COALESCE ( + - 28, - - 67, - 57 ) + + 23 * + 8 + - CASE + 8 WHEN + - 58 * + 58 * - 91 * - ( + ( ( - + 23 ) ) ) / - - NULLIF ( + 10, - SUM ( - COALESCE ( + - 32, + - 67 / 80 ) ) + 64 ) * - 16 - 80 + COALESCE ( + 39, - 49 ) THEN 48 ELSE 57 + + CASE 73 - COUNT ( * ) * - 50 WHEN 29 * COUNT ( * ) THEN NULL WHEN + 41 THEN - 72 + 79 END * - 28 END + 97 + 0 * 89
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5963
SELECT ALL + + 52 * - 82 + 79 * CASE WHEN NOT 85 >= - 92 THEN NULL ELSE 10 * + + 2 + + + 52 + + ( + 68 ) END - - 70 + - - 7 * SUM( ALL 58 ) * - 97 + + 74 + - + COUNT( CAST( - + COALESCE ( - 65, - - 89, ( 52 ) ) AS SIGNED ) ) AS col1
----
-32443

skipif mysql # not compatible
query I rowsort label-5963
SELECT ALL + + 52 * - 82 + 79 * CASE WHEN NOT 85 >= - 92 THEN NULL ELSE 10 * + + 2 + + + 52 + + ( + 68 ) END - - 70 + - - 7 * SUM ( ALL 58 ) * - 97 + + 74 + - + COUNT ( CAST ( - + COALESCE ( - 65, - - 89, ( 52 ) ) AS INTEGER ) ) AS col1
----
-32443

onlyif mysql # DIV for integer division: 
query I rowsort label-5964
SELECT DISTINCT 86 DIV - 93 * - - 15 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5964
SELECT DISTINCT 86 / - 93 * - - 15 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5965
SELECT ALL - - 54 * - 56 + 94 / - - COUNT( * ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5965
SELECT ALL - - 54 * - 56 + 94 / - - COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 73 + - + 56 AS col0
----
17

query II rowsort
SELECT 6 * - + 15 + + 32 * - 89 + + - ( - 9 ) AS col2, 59 AS col1
----
-2929
59

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

query I rowsort
SELECT ALL - - 86 - + + 97
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-5970
SELECT ALL + - 40, ( 56 ) * - - MAX( - - 85 ) AS col1
----
-40
4760

skipif mysql # not compatible
query II rowsort label-5970
SELECT ALL + - 40, ( 56 ) * - - MAX ( - - 85 ) AS col1
----
-40
4760

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT DISTINCT MAX( + NULLIF ( - 74, - 7 ) ) - - 93 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-5971
SELECT DISTINCT MAX ( + NULLIF ( - 74, - 7 ) ) - - 93 AS col0
----
19

query II rowsort
SELECT ALL + - 53 AS col2, + 9
----
-53
9

query II rowsort
SELECT + - 62 col1, + 82 AS col1
----
-62
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5974
SELECT - 36 + - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) DIV - 1 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-5974
SELECT - 36 + - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) / - 1 AS col0
----
-36

query I rowsort
SELECT + 80 * 80 + - ( + + 27 ) AS col0
----
6373

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5976
SELECT - + 13 * + + 51 * 92 + + CAST( NULL AS SIGNED ) * + COUNT( * ) * 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5976
SELECT - + 13 * + + 51 * 92 + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) * 22 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 79 * 24 col0
----
-1896

query I rowsort
SELECT ALL - 70 * - 52 AS col1
----
3640

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT - 21 * + COUNT( ALL + 20 ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-5979
SELECT - 21 * + COUNT ( ALL + 20 ) AS col0
----
-21

query I rowsort
SELECT DISTINCT - 53 * + - 97
----
5141

query I rowsort
SELECT DISTINCT - 80 * + + ( + - 47 ) AS col2
----
3760

query I rowsort
SELECT - 91 * - 1 * - 64
----
-5824

query I rowsort
SELECT ALL - 35 + 62 * + + 69 AS col0
----
4243

query I rowsort
SELECT DISTINCT 84 + - 9 + + - 44
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-5985
SELECT ALL 2 DIV - 12 * + 51 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5985
SELECT ALL 2 / - 12 * + 51 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5986
SELECT - COALESCE ( 39, - - 12 ) DIV - 68 * - - 93 * 69 - + 50
----
-50

skipif mysql # not compatible
query I rowsort label-5986
SELECT - COALESCE ( 39, - - 12 ) / - 68 * - - 93 * 69 - + 50
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5987
SELECT ALL 96 + + COALESCE ( + 82, - + 55 * 23 + - 4, + + 69 + + - 23 - + - COUNT( * ) + - 52 + + - COUNT( - CAST( NULL AS SIGNED ) ) * 69 ) + + 2 AS col0
----
180

skipif mysql # not compatible
query I rowsort label-5987
SELECT ALL 96 + + COALESCE ( + 82, - + 55 * 23 + - 4, + + 69 + + - 23 - + - COUNT ( * ) + - 52 + + - COUNT ( - CAST ( NULL AS INTEGER ) ) * 69 ) + + 2 AS col0
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-5988
SELECT DISTINCT 56 * NULLIF ( - + 89, - 81 * - 74 + ( + NULLIF ( + 50, - + 23 ) ) + + COUNT( * ) ) AS col0
----
-4984

skipif mysql # not compatible
query I rowsort label-5988
SELECT DISTINCT 56 * NULLIF ( - + 89, - 81 * - 74 + ( + NULLIF ( + 50, - + 23 ) ) + + COUNT ( * ) ) AS col0
----
-4984

query I rowsort
SELECT 41 * + 42 * + 29 + - 27
----
49911

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT + 25 * - 4 * - COUNT( * ) + - + 59
----
41

skipif mysql # not compatible
query I rowsort label-5990
SELECT + 25 * - 4 * - COUNT ( * ) + - + 59
----
41

query I rowsort
SELECT ALL - NULLIF ( 48, NULLIF ( - 18, + 47 ) ) * + 84
----
-4032

onlyif mysql # aggregate syntax: 
query II rowsort label-5992
SELECT ALL - 53 * - 21 AS col1, + COUNT( * ) * - 47 + + + 9 * + + ( - COUNT( * ) ) + 83 * + + 83 col0
----
1113
6833

skipif mysql # not compatible
query II rowsort label-5992
SELECT ALL - 53 * - 21 AS col1, + COUNT ( * ) * - 47 + + + 9 * + + ( - COUNT ( * ) ) + 83 * + + 83 col0
----
1113
6833

query I rowsort
SELECT ALL + NULLIF ( - - 55, + 27 ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5994
SELECT + 62 * + 54 + - + COUNT( * )
----
3347

skipif mysql # not compatible
query I rowsort label-5994
SELECT + 62 * + 54 + - + COUNT ( * )
----
3347

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5995
SELECT + - COALESCE ( + + 0, + SUM( DISTINCT + 44 ) + 35 ) DIV + COALESCE ( COUNT( * ), - 58 DIV + 1 ) col2, - COUNT( * ) * 83 * + - 67
----
0
5561

skipif mysql # not compatible
query II rowsort label-5995
SELECT + - COALESCE ( + + 0, + SUM ( DISTINCT + 44 ) + 35 ) / + COALESCE ( COUNT ( * ), - 58 / + 1 ) col2, - COUNT ( * ) * 83 * + - 67
----
0
5561

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5996
SELECT ALL + 37 * COUNT( 35 ) DIV - - 48 * 55 + + - ( 14 ) - + 47 AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-5996
SELECT ALL + 37 * COUNT ( 35 ) / - - 48 * 55 + + - ( 14 ) - + 47 AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT - ( - MAX( - 58 ) ) * - ( 52 ) + + ( - - 10 ) AS col2
----
3026

skipif mysql # not compatible
query I rowsort label-5997
SELECT - ( - MAX ( - 58 ) ) * - ( 52 ) + + ( - - 10 ) AS col2
----
3026

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT - - SUM( + + 8 ) * - COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-5998
SELECT - - SUM ( + + 8 ) * - COUNT ( * )
----
-8

query I rowsort
SELECT DISTINCT 26 * 72
----
1872

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

skipif mysql # not compatible
query I rowsort label-6000
SELECT + COUNT ( * ) / + 73 col2
----
0

query II rowsort
SELECT + 98 * ( + 61 ), - 26 AS col2
----
5978
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6002
SELECT ALL NULLIF ( + CASE - - 85 WHEN - 90 + - - 24 - - + 96 + - 0 * ( 38 ) + + COUNT( ALL + 14 ) * - + SUM( - ( 59 ) ) * - 68 + - + 52 THEN - ( - 8 ) ELSE - 80 + - 24 END, + + SUM( - CAST( NULL AS SIGNED ) ) * + COUNT( * ) ) AS col2
----
-104

skipif mysql # not compatible
query I rowsort label-6002
SELECT ALL NULLIF ( + CASE - - 85 WHEN - 90 + - - 24 - - + 96 + - 0 * ( 38 ) + + COUNT ( ALL + 14 ) * - + SUM ( - ( 59 ) ) * - 68 + - + 52 THEN - ( - 8 ) ELSE - 80 + - 24 END, + + SUM ( - CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) ) AS col2
----
-104

query I rowsort
SELECT DISTINCT ( - - 86 ) AS col0
----
86

query II rowsort
SELECT - 71 col0, 81 - + 83 AS col0
----
-71
-2

query I rowsort
SELECT DISTINCT 25 * 98 + 97 AS col2
----
2547

query I rowsort
SELECT ALL - 67 + + 15 + 40 * - ( + 62 ) * - 82
----
203308

query I rowsort
SELECT + 79 + + 58
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT + ( 1 ) + + + MAX( - 43 )
----
-42

skipif mysql # not compatible
query I rowsort label-6008
SELECT + ( 1 ) + + + MAX ( - 43 )
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6009
SELECT - 61 - + 69 + + CAST( - + 23 AS SIGNED )
----
-153

skipif mysql # not compatible
query I rowsort label-6009
SELECT - 61 - + 69 + + CAST ( - + 23 AS INTEGER )
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-6010
SELECT - COUNT( * ) + - 63 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-6010
SELECT - COUNT ( * ) + - 63 AS col2
----
-64

query I rowsort
SELECT ALL - 31 + ( + - 56 ) + + - 15 * + 77 * - 80
----
92313

query I rowsort
SELECT ALL 14 + 64
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6013
SELECT DISTINCT 73 + COUNT( * ) * - 27 + + 58 AS col0
----
104

skipif mysql # not compatible
query I rowsort label-6013
SELECT DISTINCT 73 + COUNT ( * ) * - 27 + + 58 AS col0
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT ALL + ( + COUNT( 36 ) ) + 51
----
52

skipif mysql # not compatible
query I rowsort label-6014
SELECT ALL + ( + COUNT ( 36 ) ) + 51
----
52

query I rowsort
SELECT ALL + 32 + - 68
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT - 78 + - COUNT( * ) col2
----
-79

skipif mysql # not compatible
query I rowsort label-6016
SELECT - 78 + - COUNT ( * ) col2
----
-79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT ALL + 59 + - - COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-6018
SELECT ALL + 59 + - - COUNT ( * )
----
60

query I rowsort
SELECT - - 53 * + 94 * 72 - - 73 + + + 35
----
358812

onlyif mysql # aggregate syntax: 
query I rowsort label-6020
SELECT ALL MIN( DISTINCT 66 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-6020
SELECT ALL MIN ( DISTINCT 66 ) AS col1
----
66

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6021
SELECT - CAST( NULL AS DECIMAL ) * + 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6021
SELECT - CAST ( NULL AS REAL ) * + 3 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6022
SELECT + COUNT( * ) + + 25 * + + 99
----
2476

skipif mysql # not compatible
query I rowsort label-6022
SELECT + COUNT ( * ) + + 25 * + + 99
----
2476

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6023
SELECT ( + COALESCE ( + 29, - + COALESCE ( 62, + CASE + 80 WHEN + 92 THEN NULL ELSE + AVG ( 7 ) + ( + + 9 ) + + - COUNT( * ) END DIV 85, + 21 + + - ( 90 ) + - MIN( DISTINCT - NULLIF ( - ( 62 ), - 63 ) ) ) * - 94 - + 61 - + - 74 * + 87 ) )
----
29

skipif mysql # not compatible
query I rowsort label-6023
SELECT ( + COALESCE ( + 29, - + COALESCE ( 62, + CASE + 80 WHEN + 92 THEN NULL ELSE + AVG ( 7 ) + ( + + 9 ) + + - COUNT ( * ) END / 85, + 21 + + - ( 90 ) + - MIN ( DISTINCT - NULLIF ( - ( 62 ), - 63 ) ) ) * - 94 - + 61 - + - 74 * + 87 ) )
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6024
SELECT ALL + - CAST( - 89 AS SIGNED ) - COALESCE ( - 80, 5 + 27 + - 83 * + COUNT( * ) * 4, + 59 * + 33 + 1 - + 8 * + - NULLIF ( - 53, 26 ) - + 42 * - 85 ) * + CAST( - - 6 AS SIGNED )
----
569

skipif mysql # not compatible
query I rowsort label-6024
SELECT ALL + - CAST ( - 89 AS INTEGER ) - COALESCE ( - 80, 5 + 27 + - 83 * + COUNT ( * ) * 4, + 59 * + 33 + 1 - + 8 * + - NULLIF ( - 53, 26 ) - + 42 * - 85 ) * + CAST ( - - 6 AS INTEGER )
----
569

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6025
SELECT MIN( DISTINCT 59 ) * + + CAST( NULL AS DECIMAL ) * 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6025
SELECT MIN ( DISTINCT 59 ) * + + CAST ( NULL AS REAL ) * 20 AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6026
SELECT + + 89 AS col1, + CAST( NULL AS DECIMAL ) * - + 66
----
89
NULL

skipif mysql # not compatible
query II rowsort label-6026
SELECT + + 89 AS col1, + CAST ( NULL AS REAL ) * - + 66
----
89
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT DISTINCT COUNT( * ) - 22 * - + 35 + 75 AS col0
----
846

skipif mysql # not compatible
query I rowsort label-6027
SELECT DISTINCT COUNT ( * ) - 22 * - + 35 + 75 AS col0
----
846

query II rowsort
SELECT DISTINCT - 25 AS col2, 4
----
-25
4

query I rowsort
SELECT 43 * 30 + 49 AS col1
----
1339

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6030
SELECT ALL - + MAX( + 74 ) * + - CAST( NULL AS SIGNED ) * - - CASE CASE + NULLIF ( - CAST( NULL AS SIGNED ), 23 ) WHEN + 57 + + CASE - 84 WHEN + COUNT( * ) THEN 66 WHEN + 44 * 42 + - 68 * + 25 - + 66 THEN NULL ELSE NULL END - + NULLIF ( - ( + 86 ), + + 13 / - + 98 + + 50 + - AVG ( + 94 ) + - 60 * COUNT( * ) ) + MAX( DISTINCT - 23 ) * + 10 * + 12 THEN 74 ELSE 61 + + 5 END WHEN 98 + - 8 * - 43 THEN + CAST( + 98 AS SIGNED ) WHEN + 38 + - 28 THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6030
SELECT ALL - + MAX ( + 74 ) * + - CAST ( NULL AS INTEGER ) * - - CASE CASE + NULLIF ( - CAST ( NULL AS INTEGER ), 23 ) WHEN + 57 + + CASE - 84 WHEN + COUNT ( * ) THEN 66 WHEN + 44 * 42 + - 68 * + 25 - + 66 THEN NULL ELSE NULL END - + NULLIF ( - ( + 86 ), + + 13 / - + 98 + + 50 + - AVG ( + 94 ) + - 60 * COUNT ( * ) ) + MAX ( DISTINCT - 23 ) * + 10 * + 12 THEN 74 ELSE 61 + + 5 END WHEN 98 + - 8 * - 43 THEN + CAST ( + 98 AS INTEGER ) WHEN + 38 + - 28 THEN NULL END col0
----
NULL

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

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

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

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

query I rowsort
SELECT ALL + - 47 * - + 47 AS col1
----
2209

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT DISTINCT 39 + - + COALESCE ( COUNT( * ), - - 77 ) - - 24
----
62

skipif mysql # not compatible
query I rowsort label-6035
SELECT DISTINCT 39 + - + COALESCE ( COUNT ( * ), - - 77 ) - - 24
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT CASE - - COUNT( * ) WHEN - + 40 THEN AVG ( + 5 ) END * - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-6036
SELECT CASE - - COUNT ( * ) WHEN - + 40 THEN AVG ( + 5 ) END * - 62
----
NULL

query I rowsort
SELECT ALL 74 + 39 AS col1
----
113

query II rowsort
SELECT - 29 AS col1, - 36 AS col2
----
-29
-36

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6040
SELECT DISTINCT 88 col0, 56 * 70 * ( + COUNT( * ) ) + + 16 + - 41 + - - 79
----
88
3974

skipif mysql # not compatible
query II rowsort label-6040
SELECT DISTINCT 88 col0, 56 * 70 * ( + COUNT ( * ) ) + + 16 + - 41 + - - 79
----
88
3974

query II rowsort
SELECT ALL - 36 + + 35 AS col1, - 55
----
-1
-55

query I rowsort
SELECT DISTINCT 32 * + 81
----
2592

query I rowsort
SELECT ALL + ( + 20 ) + + - 3 AS col0
----
17

query II rowsort
SELECT DISTINCT 97 AS col0, + 74 col2
----
97
74

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

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

query II rowsort
SELECT ALL 5 AS col0, - 71 + 48 + + 3 AS col1
----
5
-20

query I rowsort
SELECT 97 - 60
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6048
SELECT NULLIF ( ( + SUM( DISTINCT + 51 ) ), - - MAX( ALL - + CAST( NULL AS SIGNED ) ) ) AS col2, - ( COALESCE ( - 38, + 31 ) ) * + 10 + COUNT( * )
----
51
381

skipif mysql # not compatible
query II rowsort label-6048
SELECT NULLIF ( ( + SUM ( DISTINCT + 51 ) ), - - MAX ( ALL - + CAST ( NULL AS INTEGER ) ) ) AS col2, - ( COALESCE ( - 38, + 31 ) ) * + 10 + COUNT ( * )
----
51
381

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6050
SELECT ALL + 36 DIV + 84
----
0

skipif mysql # not compatible
query I rowsort label-6050
SELECT ALL + 36 / + 84
----
0

query II rowsort
SELECT - + 34 AS col0, 60 AS col0
----
-34
60

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6053
SELECT 68 DIV 43 + 4 DIV 44 * 77
----
1

skipif mysql # not compatible
query I rowsort label-6053
SELECT 68 / 43 + 4 / 44 * 77
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6054
SELECT DISTINCT + MIN( ALL - - 18 ) * + 13 AS col2
----
234

skipif mysql # not compatible
query I rowsort label-6054
SELECT DISTINCT + MIN ( ALL - - 18 ) * + 13 AS col2
----
234

query II rowsort
SELECT ALL - 70 AS col1, - 83 AS col0
----
-70
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6056
SELECT - - SUM( - 83 ) DIV + 78 + - - 17 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-6056
SELECT - - SUM ( - 83 ) / + 78 + - - 17 AS col1
----
16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6057
SELECT + 83 * AVG ( 69 ) + - 22 / 71 - - CAST( NULL AS DECIMAL ) * - COUNT( * ) AS col2, + COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6057
SELECT + 83 * AVG ( 69 ) + - 22 / 71 - - CAST ( NULL AS REAL ) * - COUNT ( * ) AS col2, + COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6058
SELECT 91 DIV - + 63
----
-1

skipif mysql # not compatible
query I rowsort label-6058
SELECT 91 / - + 63
----
-1

query I rowsort
SELECT 6 + - - 93 * - 56 AS col2
----
-5202

onlyif mysql # DIV for integer division: 
query I rowsort label-6060
SELECT ALL - 71 DIV - 54 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6060
SELECT ALL - 71 / - 54 AS col1
----
1

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

query I rowsort
SELECT ALL 86 * + 72 AS col2
----
6192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6063
SELECT DISTINCT + 66 + 16 + + 45 DIV - + COUNT( * ) + + SUM( - CAST( + 97 AS SIGNED ) )
----
-60

skipif mysql # not compatible
query I rowsort label-6063
SELECT DISTINCT + 66 + 16 + + 45 / - + COUNT ( * ) + + SUM ( - CAST ( + 97 AS INTEGER ) )
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-6064
SELECT ALL - 3 + + + NULLIF ( - 75, - + 26 ) + - + 66 * 53 DIV - 11 AS col2
----
240

skipif mysql # not compatible
query I rowsort label-6064
SELECT ALL - 3 + + + NULLIF ( - 75, - + 26 ) + - + 66 * 53 / - 11 AS col2
----
240

query II rowsort
SELECT ALL + 49 + + 84 col0, - 30 AS col2
----
133
-30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT DISTINCT MAX( - + 84 ) + + 55
----
-29

skipif mysql # not compatible
query I rowsort label-6067
SELECT DISTINCT MAX ( - + 84 ) + + 55
----
-29

query I rowsort
SELECT ALL NULLIF ( + - ( + 35 ), 21 ) + + 41
----
6

query I rowsort
SELECT DISTINCT + 31 * - 35
----
-1085

query I rowsort
SELECT ( + 26 ) + + + 55 AS col2
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6071
SELECT ALL CASE + 23 WHEN - 40 * - - 83 THEN + 44 + - - 89 - - - 19 WHEN SUM( - 19 ) * - 36 * - - 82 THEN - COALESCE ( + + COUNT( * ), - COUNT( * ) ) + + 66 * 19 END - - + 97 col1, + 10 + - - 51 DIV - - 34 col0
----
NULL
11

skipif mysql # not compatible
query II rowsort label-6071
SELECT ALL CASE + 23 WHEN - 40 * - - 83 THEN + 44 + - - 89 - - - 19 WHEN SUM ( - 19 ) * - 36 * - - 82 THEN - COALESCE ( + + COUNT ( * ), - COUNT ( * ) ) + + 66 * 19 END - - + 97 col1, + 10 + - - 51 / - - 34 col0
----
NULL
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6072
SELECT 35 * COUNT( * ) * 53
----
1855

skipif mysql # not compatible
query I rowsort label-6072
SELECT 35 * COUNT ( * ) * 53
----
1855

query I rowsort
SELECT 6 + + - 34 AS col2
----
-28

query I rowsort
SELECT 42 - - 41 + + + 12 * - 28
----
-253

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6076
SELECT DISTINCT COUNT( DISTINCT 13 ) - + - CASE 86 WHEN + 52 * COUNT( * ) THEN - 58 END * - + COALESCE ( - CASE 25 WHEN - 58 THEN + 15 WHEN - 33 + - - NULLIF ( + 10, - - MAX( DISTINCT - CAST( + 25 AS SIGNED ) ) * - 8 + 49 + + 83 ) THEN NULL END, + 39 * + + COUNT( * ) + - + 29, + - 65 ) * - 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6076
SELECT DISTINCT COUNT ( DISTINCT 13 ) - + - CASE 86 WHEN + 52 * COUNT ( * ) THEN - 58 END * - + COALESCE ( - CASE 25 WHEN - 58 THEN + 15 WHEN - 33 + - - NULLIF ( + 10, - - MAX ( DISTINCT - CAST ( + 25 AS INTEGER ) ) * - 8 + 49 + + 83 ) THEN NULL END, + 39 * + + COUNT ( * ) + - + 29, + - 65 ) * - 92 AS col2
----
NULL

query I rowsort
SELECT + - 87 * - 35 * 89
----
271005

query I rowsort
SELECT + 51 + - + 13 AS col0
----
38

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6080
SELECT - + 55 + + - 50 + 87 * - CAST( NULL AS SIGNED ) * + 99 * + COALESCE ( + 99, + 57 / 97 + + 21 - SUM( DISTINCT - 37 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6080
SELECT - + 55 + + - 50 + 87 * - CAST ( NULL AS INTEGER ) * + 99 * + COALESCE ( + 99, + 57 / 97 + + 21 - SUM ( DISTINCT - 37 ) ) AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6082
SELECT + - SUM( - CAST( - 99 AS SIGNED ) ) * - 26 DIV 1 AS col2
----
2574

skipif mysql # not compatible
query I rowsort label-6082
SELECT + - SUM ( - CAST ( - 99 AS INTEGER ) ) * - 26 / 1 AS col2
----
2574

onlyif mysql # aggregate syntax: 
query I rowsort label-6083
SELECT ALL 59 * + - ( 16 ) * + + 94 * + 63 * - 68 + 34 + - 80 * + 98 + COUNT( - + ( + + 55 ) ) AS col0
----
380137219

skipif mysql # not compatible
query I rowsort label-6083
SELECT ALL 59 * + - ( 16 ) * + + 94 * + 63 * - 68 + 34 + - 80 * + 98 + COUNT ( - + ( + + 55 ) ) AS col0
----
380137219

query I rowsort
SELECT DISTINCT + - 97 * - ( 72 ) * + CASE 58 WHEN 66 THEN + COALESCE ( 44, - - 56, 50 + + + 21 ) ELSE NULL END + - + 31 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6085
SELECT ALL 80 * 22 + ( 97 ) + - - 59 * + COUNT( * ) DIV + 65 + + COALESCE ( - 87, ( + 89 ) + + 5 ) * + ( + 92 ) * - 86 - 89 col1
----
690112

skipif mysql # not compatible
query I rowsort label-6085
SELECT ALL 80 * 22 + ( 97 ) + - - 59 * + COUNT ( * ) / + 65 + + COALESCE ( - 87, ( + 89 ) + + 5 ) * + ( + 92 ) * - 86 - 89 col1
----
690112

query II rowsort
SELECT ALL - + 47 * - 67 AS col2, 60 AS col0
----
3149
60

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

skipif mysql # not compatible
query I rowsort label-6087
SELECT - + 3 / 96
----
0

query I rowsort
SELECT ALL 38 * - 20 * + 33 + - 84 * - + 74
----
-18864

onlyif mysql # aggregate syntax: 
query II rowsort label-6089
SELECT ALL + 36 AS col2, MAX( + 81 )
----
36
81

skipif mysql # not compatible
query II rowsort label-6089
SELECT ALL + 36 AS col2, MAX ( + 81 )
----
36
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6090
SELECT COUNT( ALL - + 25 ) DIV - 59 + + - 44 AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-6090
SELECT COUNT ( ALL - + 25 ) / - 59 + + - 44 AS col2
----
-44

query I rowsort
SELECT COALESCE ( - NULLIF ( 74, + 77 / - 23 ), + 48 * - 86 - 28 )
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-6092
SELECT ALL + NULLIF ( + - COUNT( * ), 38 * + COUNT( * ) ) AS col2, 19 AS col1
----
-1
19

skipif mysql # not compatible
query II rowsort label-6092
SELECT ALL + NULLIF ( + - COUNT ( * ), 38 * + COUNT ( * ) ) AS col2, 19 AS col1
----
-1
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6093
SELECT DISTINCT - 70 * - ( - 24 ) + CAST( NULL AS SIGNED ) + - - 98 * - CASE - + 98 WHEN + - AVG ( DISTINCT - 78 ) THEN - 86 * - ( 54 ) * + + 71 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6093
SELECT DISTINCT - 70 * - ( - 24 ) + CAST ( NULL AS INTEGER ) + - - 98 * - CASE - + 98 WHEN + - AVG ( DISTINCT - 78 ) THEN - 86 * - ( 54 ) * + + 71 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 9 * + 68
----
-612

onlyif mysql # DIV for integer division: 
query I rowsort label-6095
SELECT ALL - 72 DIV + 66
----
-1

skipif mysql # not compatible
query I rowsort label-6095
SELECT ALL - 72 / + 66
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6096
SELECT ALL + 38 * + COUNT( * ) * + + MAX( - 67 ) - + COUNT( * ) * + - 3 * - - 90 DIV 77 + + + 48
----
-2495

skipif mysql # not compatible
query I rowsort label-6096
SELECT ALL + 38 * + COUNT ( * ) * + + MAX ( - 67 ) - + COUNT ( * ) * + - 3 * - - 90 / 77 + + + 48
----
-2495

onlyif mysql # aggregate syntax: 
query II rowsort label-6097
SELECT + 79, + 98 + + COUNT( * ) + - - 39 AS col0
----
79
138

skipif mysql # not compatible
query II rowsort label-6097
SELECT + 79, + 98 + + COUNT ( * ) + - - 39 AS col0
----
79
138

onlyif mysql # DIV for integer division: 
query I rowsort label-6098
SELECT DISTINCT - 90 DIV + 16
----
-5

skipif mysql # not compatible
query I rowsort label-6098
SELECT DISTINCT - 90 / + 16
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6099
SELECT ALL + 81 AS col0, 88 - 81 + - 68 + - 15 DIV - SUM( + 5 )
----
81
-58

skipif mysql # not compatible
query II rowsort label-6099
SELECT ALL + 81 AS col0, 88 - 81 + - 68 + - 15 / - SUM ( + 5 )
----
81
-58

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

skipif mysql # not compatible
query I rowsort label-6100
SELECT ALL + COUNT ( DISTINCT + - ( - 96 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT ALL - 60 * + - 93 * - - COUNT( * ) - - 62
----
5642

skipif mysql # not compatible
query I rowsort label-6101
SELECT ALL - 60 * + - 93 * - - COUNT ( * ) - - 62
----
5642

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6102
SELECT COUNT( * ) AS col1, + COUNT( * ) * - CAST( NULL AS SIGNED ) + COALESCE ( - + 64, - 77 * + - 46 + - ( 42 ) / 44 + - + CASE 63 WHEN 99 * - - 70 * + 26 / + 43 THEN + 94 WHEN + 7 THEN - 24 / - - 21 + - + 64 + + 33 + 5 * - 17 / - ( CASE + 77 WHEN MIN( CASE - 51 WHEN - 50 + - 65 * + 74 THEN + 28 END ) + 20 * 1 THEN 12 / - 5 + + 53 * - 21 END ) - 80 ELSE + 5 END, - 89, + 26, 65 ) + - 22 / + 22 col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6102
SELECT COUNT ( * ) AS col1, + COUNT ( * ) * - CAST ( NULL AS INTEGER ) + COALESCE ( - + 64, - 77 * + - 46 + - ( 42 ) / 44 + - + CASE 63 WHEN 99 * - - 70 * + 26 / + 43 THEN + 94 WHEN + 7 THEN - 24 / - - 21 + - + 64 + + 33 + 5 * - 17 / - ( CASE + 77 WHEN MIN ( CASE - 51 WHEN - 50 + - 65 * + 74 THEN + 28 END ) + 20 * 1 THEN 12 / - 5 + + 53 * - 21 END ) - 80 ELSE + 5 END, - 89, + 26, 65 ) + - 22 / + 22 col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT DISTINCT - 11 * COUNT( * ) - + 55 + 81
----
15

skipif mysql # not compatible
query I rowsort label-6103
SELECT DISTINCT - 11 * COUNT ( * ) - + 55 + 81
----
15

query I rowsort
SELECT DISTINCT + NULLIF ( - - ( 55 ), 34 * - 71 ) * + ( + ( 82 ) ) - - 25 col2
----
4535

onlyif mysql # DIV for integer division: 
query I rowsort label-6105
SELECT + 49 + + 24 DIV - 72 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-6105
SELECT + 49 + + 24 / - 72 AS col2
----
49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6106
SELECT + 7 * CAST( NULL AS DECIMAL ) * - 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6106
SELECT + 7 * CAST ( NULL AS REAL ) * - 66 AS col1
----
NULL

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

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

query I rowsort
SELECT ALL 31 * - + 42 AS col0
----
-1302

onlyif mysql # aggregate syntax: 
query II rowsort label-6109
SELECT ALL 58 AS col0, ( - COUNT( ALL 43 ) ) + - 64 * + - 94 * + ( + + 23 )
----
58
138367

skipif mysql # not compatible
query II rowsort label-6109
SELECT ALL 58 AS col0, ( - COUNT ( ALL 43 ) ) + - 64 * + - 94 * + ( + + 23 )
----
58
138367

query I rowsort
SELECT + 26 * + NULLIF ( - 41, - 40 ) AS col2
----
-1066

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6111
SELECT ALL - CAST( NULL AS SIGNED ) * - 49 - 59 AS col1, - CAST( NULL AS SIGNED ) / - 41 col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6111
SELECT ALL - CAST ( NULL AS INTEGER ) * - 49 - 59 AS col1, - CAST ( NULL AS INTEGER ) / - 41 col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6112
SELECT ALL + SUM( ALL + - ( 2 ) ) AS col0, + 53
----
-2
53

skipif mysql # not compatible
query II rowsort label-6112
SELECT ALL + SUM ( ALL + - ( 2 ) ) AS col0, + 53
----
-2
53

onlyif mysql # DIV for integer division: 
query II rowsort label-6113
SELECT - - 39 - + + ( 28 ) DIV + 55, 15 AS col1
----
39
15

skipif mysql # not compatible
query II rowsort label-6113
SELECT - - 39 - + + ( 28 ) / + 55, 15 AS col1
----
39
15

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

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

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

skipif mysql # not compatible
query I rowsort label-6115
SELECT ALL - 95 + + COUNT ( * ) AS col0
----
-94

query I rowsort
SELECT ALL + 20 * 34 AS col1
----
680

onlyif mysql # aggregate syntax: 
query I rowsort label-6117
SELECT + + 15 * COALESCE ( - COUNT( * ), - 45 ) * + COUNT( * ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-6117
SELECT + + 15 * COALESCE ( - COUNT ( * ), - 45 ) * + COUNT ( * ) AS col1
----
-15

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

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

query I rowsort
SELECT ALL 82 + - 65
----
17

query I rowsort
SELECT ALL ( - + 90 ) + + 65 + + 4
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT DISTINCT + COUNT( * ) + + 27 + + 72 * - - 42
----
3052

skipif mysql # not compatible
query I rowsort label-6121
SELECT DISTINCT + COUNT ( * ) + + 27 + + 72 * - - 42
----
3052

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6122
SELECT + - 97 AS col0, - MAX( + CASE + + 82 WHEN ( - 21 ) - + - 85 THEN + CAST( NULL AS SIGNED ) ELSE NULL END )
----
-97
NULL

skipif mysql # not compatible
query II rowsort label-6122
SELECT + - 97 AS col0, - MAX ( + CASE + + 82 WHEN ( - 21 ) - + - 85 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END )
----
-97
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6123
SELECT ALL - 10 DIV + + 40 + 2 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6123
SELECT ALL - 10 / + + 40 + 2 AS col2
----
2

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

skipif mysql # not compatible
query II rowsort label-6124
SELECT - 98 col1, CAST ( NULL AS INTEGER )
----
-98
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6125
SELECT 85 DIV + 20 + COALESCE ( 36, 41 ) * + MIN( DISTINCT + + 60 ) col2, 77 AS col1
----
2164
77

skipif mysql # not compatible
query II rowsort label-6125
SELECT 85 / + 20 + COALESCE ( 36, 41 ) * + MIN ( DISTINCT + + 60 ) col2, 77 AS col1
----
2164
77

query I rowsort
SELECT 49 * + + 73 - + 98 AS col1
----
3479

query II rowsort
SELECT + 85 * 30 col2, 45 * - 34
----
2550
-1530

query I rowsort
SELECT ALL - ( 4 ) * 76
----
-304

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT ( - + SUM( - 83 ) ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-6129
SELECT ( - + SUM ( - 83 ) ) AS col2
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-6130
SELECT DISTINCT 84 DIV 1 - - 32
----
116

skipif mysql # not compatible
query I rowsort label-6130
SELECT DISTINCT 84 / 1 - - 32
----
116

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6132
SELECT ALL + COUNT( 31 ) AS col1, 75 + - 18 + 40
----
1
97

skipif mysql # not compatible
query II rowsort label-6132
SELECT ALL + COUNT ( 31 ) AS col1, 75 + - 18 + 40
----
1
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6133
SELECT + MIN( ALL 6 ) * 59 AS col2
----
354

skipif mysql # not compatible
query I rowsort label-6133
SELECT + MIN ( ALL 6 ) * 59 AS col2
----
354

query I rowsort
SELECT - 55 * - 61
----
3355

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT + MIN( + - 85 ) + - 4
----
-89

skipif mysql # not compatible
query I rowsort label-6135
SELECT + MIN ( + - 85 ) + - 4
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT ( COUNT( - 95 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6136
SELECT ( COUNT ( - 95 ) ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6137
SELECT 45 DIV 51
----
0

skipif mysql # not compatible
query I rowsort label-6137
SELECT 45 / 51
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6138
SELECT 16 * - 80, + CASE 53 WHEN - 19 + - ( COUNT( * ) ) THEN - + 23 + + AVG ( ALL 5 ) + ( 34 ) WHEN + COUNT( * ) THEN NULL END + - 61 * - 88 AS col2
----
-1280
NULL

skipif mysql # not compatible
query II rowsort label-6138
SELECT 16 * - 80, + CASE 53 WHEN - 19 + - ( COUNT ( * ) ) THEN - + 23 + + AVG ( ALL 5 ) + ( 34 ) WHEN + COUNT ( * ) THEN NULL END + - 61 * - 88 AS col2
----
-1280
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6139
SELECT ALL - MAX( - 19 ) AS col1, 42 col0
----
19
42

skipif mysql # not compatible
query II rowsort label-6139
SELECT ALL - MAX ( - 19 ) AS col1, 42 col0
----
19
42

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

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

query I rowsort
SELECT 42 * - - 46 - 72 AS col0
----
1860

onlyif mysql # DIV for integer division: 
query I rowsort label-6142
SELECT 35 DIV + + 10
----
3

skipif mysql # not compatible
query I rowsort label-6142
SELECT 35 / + + 10
----
3

query I rowsort
SELECT ALL + 15 * + 53 * + - 77
----
-61215

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6145
SELECT - MAX( - CAST( + CASE - 78 WHEN + 85 THEN + 28 END AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6145
SELECT - MAX ( - CAST ( + CASE - 78 WHEN + 85 THEN + 28 END AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT - 86 + + 99 * + - 95 AS col1
----
-9491

query II rowsort
SELECT 66 + - - 65, 57 AS col2
----
131
57

query I rowsort
SELECT - 69 - - - 71 AS col1
----
-140

query I rowsort
SELECT - 13 + - - 7 * + + 42 AS col2
----
281

query II rowsort
SELECT ALL + COALESCE ( - + 13, + 56 ) + - + ( + 54 ) AS col0, 61 * 79 AS col0
----
-67
4819

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6151
SELECT COUNT( * ) + 71 - + + 59 + COUNT( * ) / - CAST( NULL AS DECIMAL ) * - 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6151
SELECT COUNT ( * ) + 71 - + + 59 + COUNT ( * ) / - CAST ( NULL AS REAL ) * - 84 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT ALL + + 76 + + 29 * SUM( 98 ) AS col2
----
2918

skipif mysql # not compatible
query I rowsort label-6152
SELECT ALL + + 76 + + 29 * SUM ( 98 ) AS col2
----
2918

query I rowsort
SELECT ALL - 97 + 66 * + + 58 * - + 31 * + + 53
----
-6289501

query I rowsort
SELECT + 76 + 98
----
174

onlyif mysql # DIV for integer division: 
query II rowsort label-6155
SELECT - 29 DIV 20 AS col1, 30 * 44
----
-1
1320

skipif mysql # not compatible
query II rowsort label-6155
SELECT - 29 / 20 AS col1, 30 * 44
----
-1
1320

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT DISTINCT COUNT( * ) * + + 61 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-6156
SELECT DISTINCT COUNT ( * ) * + + 61 AS col2
----
61

query I rowsort
SELECT ALL 4 - + - 6 + + 28 AS col1
----
38

query I rowsort
SELECT ALL + 90 * 94
----
8460

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT DISTINCT COUNT( * ) * - + 92 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-6159
SELECT DISTINCT COUNT ( * ) * - + 92 AS col2
----
-92

query I rowsort
SELECT ALL 68 * 87 * + 30
----
177480

query II rowsort
SELECT + 77 AS col2, 82
----
77
82

query I rowsort
SELECT 0 - 75 AS col1
----
-75

query I rowsort
SELECT 6 + 78 AS col0
----
84

query I rowsort
SELECT DISTINCT - CASE + + 87 WHEN + 4 THEN + 3 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6165
SELECT DISTINCT - 64 AS col2, MAX( ALL - 76 ) * - - 69 AS col2
----
-64
-5244

skipif mysql # not compatible
query II rowsort label-6165
SELECT DISTINCT - 64 AS col2, MAX ( ALL - 76 ) * - - 69 AS col2
----
-64
-5244

query I rowsort
SELECT DISTINCT - 37 * + 98 AS col0
----
-3626

onlyif mysql # aggregate syntax: 
query I rowsort label-6167
SELECT COUNT( * ) * + + 2 + - 6 * - 10
----
62

skipif mysql # not compatible
query I rowsort label-6167
SELECT COUNT ( * ) * + + 2 + - 6 * - 10
----
62

query I rowsort
SELECT ALL + 53 + + 92
----
145

query I rowsort
SELECT - 84 * 96
----
-8064

query I rowsort
SELECT 78 + + 29 AS col2
----
107

query I rowsort
SELECT ALL + 37 + + 63 - - ( CASE - 82 WHEN - - 35 THEN - - 82 + - 33 WHEN + 24 * - + 46 - + 50 * - 72 THEN NULL END )
----
NULL

query II rowsort
SELECT DISTINCT + 26 * - 77 * 64, + 80 AS col1
----
-128128
80

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

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

query I rowsort
SELECT ALL - ( + 99 ) + - - 62 AS col0
----
-37

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

skipif mysql # not compatible
query I rowsort label-6175
SELECT ALL - CAST ( + 89 AS INTEGER ) AS col2
----
-89

query I rowsort
SELECT + 33 * - 34
----
-1122

query I rowsort
SELECT ALL - 1 + + CASE - 32 WHEN 78 / - 32 + + + 1 THEN ( - ( + 62 ) ) + - 22 END
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6180
SELECT 37 - - MIN( ALL + - 33 ) AS col1, 12 AS col0
----
4
12

skipif mysql # not compatible
query II rowsort label-6180
SELECT 37 - - MIN ( ALL + - 33 ) AS col1, 12 AS col0
----
4
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6181
SELECT + 93 AS col0, + COUNT( * ) * ( 54 ) + CAST( NULL AS SIGNED ) col1
----
93
NULL

skipif mysql # not compatible
query II rowsort label-6181
SELECT + 93 AS col0, + COUNT ( * ) * ( 54 ) + CAST ( NULL AS INTEGER ) col1
----
93
NULL

query I rowsort
SELECT - 0 - 48
----
-48

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

skipif mysql # not compatible
query I rowsort label-6183
SELECT 26 * - - COUNT ( * ) + 69 AS col1
----
95

query I rowsort
SELECT DISTINCT - - 11 - ( + - 1 ) col0
----
12

query II rowsort
SELECT DISTINCT ( ( 56 ) ) col1, - 87 * + + 26
----
56
-2262

query I rowsort
SELECT - + NULLIF ( + + 10, - + 74 )
----
-10

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

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

query I rowsort
SELECT DISTINCT + 4 - - + 9
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6189
SELECT 10 - + 81 + - - 89 + + 69 * 64 + + CAST( COUNT( ALL + ( + ( 8 ) ) ) AS SIGNED )
----
4435

skipif mysql # not compatible
query I rowsort label-6189
SELECT 10 - + 81 + - - 89 + + 69 * 64 + + CAST ( COUNT ( ALL + ( + ( 8 ) ) ) AS INTEGER )
----
4435

query I rowsort
SELECT 95 * - 94 * + - 58 + + + 42 col0
----
517982

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6191
SELECT NULLIF ( + CAST( - + 41 AS SIGNED ), - 54 ) col2
----
-41

skipif mysql # not compatible
query I rowsort label-6191
SELECT NULLIF ( + CAST ( - + 41 AS INTEGER ), - 54 ) col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6192
SELECT CASE - MIN( - + 6 ) WHEN + + 53 * - - 27 + 42 * - - COUNT( * ) * - - NULLIF ( + - 29, + 84 + 29 ) THEN + - 44 - 38 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6192
SELECT CASE - MIN ( - + 6 ) WHEN + + 53 * - - 27 + 42 * - - COUNT ( * ) * - - NULLIF ( + - 29, + 84 + 29 ) THEN + - 44 - 38 ELSE NULL END col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT - 31 * + + COUNT( - 93 ) + + 41
----
10

skipif mysql # not compatible
query I rowsort label-6194
SELECT - 31 * + + COUNT ( - 93 ) + + 41
----
10

query I rowsort
SELECT - 44 * + 56 AS col2
----
-2464

onlyif mysql # DIV for integer division: 
query I rowsort label-6196
SELECT + 96 DIV + - 38 col1
----
-2

skipif mysql # not compatible
query I rowsort label-6196
SELECT + 96 / + - 38 col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6197
SELECT DISTINCT + 42 * - COUNT( * ) * - - ( - - SUM( + NULLIF ( + 20, - 6 ) ) )
----
-840

skipif mysql # not compatible
query I rowsort label-6197
SELECT DISTINCT + 42 * - COUNT ( * ) * - - ( - - SUM ( + NULLIF ( + 20, - 6 ) ) )
----
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT - MAX( DISTINCT - 29 ) * 74 + - - 26 - 0 * - + 62 * 17 * - COUNT( * ) AS col0
----
2172

skipif mysql # not compatible
query I rowsort label-6198
SELECT - MAX ( DISTINCT - 29 ) * 74 + - - 26 - 0 * - + 62 * 17 * - COUNT ( * ) AS col0
----
2172

onlyif mysql # aggregate syntax: 
query I rowsort label-6199
SELECT ALL - 19 * 70 * + 96 + + MIN( + + 82 ) AS col0
----
-127598

skipif mysql # not compatible
query I rowsort label-6199
SELECT ALL - 19 * 70 * + 96 + + MIN ( + + 82 ) AS col0
----
-127598

query I rowsort
SELECT + 54 + 44
----
98

query II rowsort
SELECT + 81 AS col0, - 43 AS col2
----
81
-43

query I rowsort
SELECT ALL 34 + + 29 + - 38
----
25

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

skipif mysql # not compatible
query I rowsort label-6203
SELECT + 4 - COUNT ( * ) AS col0
----
3

query I rowsort
SELECT + NULLIF ( 2, - - 83 / 47 - + 30 ) col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6205
SELECT ALL + - 13 * + - NULLIF ( - CAST( 21 AS SIGNED ), + 1 ) AS col0
----
-273

skipif mysql # not compatible
query I rowsort label-6205
SELECT ALL + - 13 * + - NULLIF ( - CAST ( 21 AS INTEGER ), + 1 ) AS col0
----
-273

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6206
SELECT ALL 93, 66 - CAST( NULL AS SIGNED ) + 90 * - + ( 1 ) AS col0
----
93
NULL

skipif mysql # not compatible
query II rowsort label-6206
SELECT ALL 93, 66 - CAST ( NULL AS INTEGER ) + 90 * - + ( 1 ) AS col0
----
93
NULL

query II rowsort
SELECT - 4 AS col0, - 54
----
-4
-54

query I rowsort
SELECT + 75 * - 18 + - 2
----
-1352

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6209
SELECT - 66 AS col0, - CAST( NULL AS SIGNED )
----
-66
NULL

skipif mysql # not compatible
query II rowsort label-6209
SELECT - 66 AS col0, - CAST ( NULL AS INTEGER )
----
-66
NULL

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

query I rowsort
SELECT - - 95 - + 63
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT + + 26 + 88 + + COUNT( + - 81 )
----
115

skipif mysql # not compatible
query I rowsort label-6212
SELECT + + 26 + 88 + + COUNT ( + - 81 )
----
115

onlyif mysql # aggregate syntax: 
query II rowsort label-6213
SELECT + COALESCE ( + - 84, 4 + - - COUNT( * ) ) col0, - 29 AS col2
----
-84
-29

skipif mysql # not compatible
query II rowsort label-6213
SELECT + COALESCE ( + - 84, 4 + - - COUNT ( * ) ) col0, - 29 AS col2
----
-84
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6214
SELECT - 63 + - COUNT( * ), - CAST( + 48 AS SIGNED ) - - + COUNT( * ) AS col2
----
-64
-47

skipif mysql # not compatible
query II rowsort label-6214
SELECT - 63 + - COUNT ( * ), - CAST ( + 48 AS INTEGER ) - - + COUNT ( * ) AS col2
----
-64
-47

query I rowsort
SELECT - 80 * + 92
----
-7360

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6216
SELECT DISTINCT - COALESCE ( + - ( + CAST( NULL AS SIGNED ) ), + 80 + + 69 ) DIV - - 2
----
-74

skipif mysql # not compatible
query I rowsort label-6216
SELECT DISTINCT - COALESCE ( + - ( + CAST ( NULL AS INTEGER ) ), + 80 + + 69 ) / - - 2
----
-74

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6217
SELECT - ( - - CAST( NULL AS DECIMAL ) ) AS col2, - 52 col1
----
NULL
-52

skipif mysql # not compatible
query II rowsort label-6217
SELECT - ( - - CAST ( NULL AS REAL ) ) AS col2, - 52 col1
----
NULL
-52

query I rowsort
SELECT - 56 * - 96
----
5376

query I rowsort
SELECT ALL COALESCE ( - 33, 52 + - 51 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6220
SELECT ALL + 55 * - NULLIF ( - COALESCE ( COUNT( * ), 59, - 47 ), - 22 )
----
55

skipif mysql # not compatible
query I rowsort label-6220
SELECT ALL + 55 * - NULLIF ( - COALESCE ( COUNT ( * ), 59, - 47 ), - 22 )
----
55

query I rowsort
SELECT - 20 * 49
----
-980

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6222
SELECT ALL - 41 DIV - 34 + - 62 + + + COUNT( * ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-6222
SELECT ALL - 41 / - 34 + - 62 + + + COUNT ( * ) AS col2
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6223
SELECT ALL + 57 / - - 57 * + 57 + + 77 - + CAST( NULL AS SIGNED ) * - + ( + 88 ) + + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-6223
SELECT ALL + 57 / - - 57 * + 57 + + 77 - + CAST ( NULL AS INTEGER ) * - + ( + 88 ) + + 11
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6224
SELECT ALL 2 DIV + 86 * 10 + + 61 - - 57 + + + 16 * + + COUNT( * ) col1
----
134

skipif mysql # not compatible
query I rowsort label-6224
SELECT ALL 2 / + 86 * 10 + + 61 - - 57 + + + 16 * + + COUNT ( * ) col1
----
134

onlyif mysql # aggregate syntax: 
query II rowsort label-6225
SELECT ( + 99 ) col1, + CASE + 10 WHEN + - 74 THEN NULL ELSE + CASE + + 83 WHEN + + COUNT( ALL - + 12 ) THEN NULL WHEN - 68 THEN + 93 + - 75 + + ( - 89 ) END END + + - 11 * + - 9 AS col1
----
99
NULL

skipif mysql # not compatible
query II rowsort label-6225
SELECT ( + 99 ) col1, + CASE + 10 WHEN + - 74 THEN NULL ELSE + CASE + + 83 WHEN + + COUNT ( ALL - + 12 ) THEN NULL WHEN - 68 THEN + 93 + - 75 + + ( - 89 ) END END + + - 11 * + - 9 AS col1
----
99
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6227
SELECT ALL + ( 93 ) DIV + 3 + - 12 + + 15 + 46 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-6227
SELECT ALL + ( 93 ) / + 3 + - 12 + + 15 + 46 AS col0
----
80

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

skipif mysql # not compatible
query I rowsort label-6228
SELECT + SUM ( + 74 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6229
SELECT - 13 - COUNT( * ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-6229
SELECT - 13 - COUNT ( * ) AS col1
----
-14

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6231
SELECT ALL + CAST( NULL AS SIGNED ) * 68 AS col0, + 22 AS col0
----
NULL
22

skipif mysql # not compatible
query II rowsort label-6231
SELECT ALL + CAST ( NULL AS INTEGER ) * 68 AS col0, + 22 AS col0
----
NULL
22

query I rowsort
SELECT DISTINCT - 4 * 67
----
-268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6233
SELECT + + 65 * - - COUNT( * ) + + + 84 * - - CASE - 26 WHEN - 12 THEN + CAST( - SUM( - 92 ) AS SIGNED ) + - 10 WHEN - 3 THEN NULL END + - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-6233
SELECT + + 65 * - - COUNT ( * ) + + + 84 * - - CASE - 26 WHEN - 12 THEN + CAST ( - SUM ( - 92 ) AS INTEGER ) + - 10 WHEN - 3 THEN NULL END + - 51
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6234
SELECT DISTINCT 44 * CASE - + 73 WHEN 99 THEN - 36 - COUNT( * ) ELSE - + 31 + + COUNT( * ) + + - 52 * + + 64 * COUNT( * ) + - 53 * - 80 * + + 21 END + + 83 + + 25 + + - 94 + - - 98 * + + 8 + 35 AS col2, 90 * + CAST( NULL AS SIGNED )
----
3770841
NULL

skipif mysql # not compatible
query II rowsort label-6234
SELECT DISTINCT 44 * CASE - + 73 WHEN 99 THEN - 36 - COUNT ( * ) ELSE - + 31 + + COUNT ( * ) + + - 52 * + + 64 * COUNT ( * ) + - 53 * - 80 * + + 21 END + + 83 + + 25 + + - 94 + - - 98 * + + 8 + 35 AS col2, 90 * + CAST ( NULL AS INTEGER )
----
3770841
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT 65 * + + 73 + COUNT( * ) AS col1
----
4746

skipif mysql # not compatible
query I rowsort label-6235
SELECT 65 * + + 73 + COUNT ( * ) AS col1
----
4746

query I rowsort
SELECT + 6 - 5
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT ALL + 85 * + MIN( DISTINCT + + 64 ) * - + COUNT( * ) + 23 - - - 0 + 97 + 78 * - 29 * + 88 * 94
----
-18716584

skipif mysql # not compatible
query I rowsort label-6238
SELECT ALL + 85 * + MIN ( DISTINCT + + 64 ) * - + COUNT ( * ) + 23 - - - 0 + 97 + 78 * - 29 * + 88 * 94
----
-18716584

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6239
SELECT - - COALESCE ( - COUNT( * ), + 97, + 41 ) * - ( COUNT( * ) ) * + 70 + 33 * 16 DIV - ( - - 8 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-6239
SELECT - - COALESCE ( - COUNT ( * ), + 97, + 41 ) * - ( COUNT ( * ) ) * + 70 + 33 * 16 / - ( - - 8 ) AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT + - 16 * - CASE - ( + COUNT( DISTINCT 35 ) ) WHEN + + COUNT( ALL + ( - 30 ) ) + - CASE - 20 WHEN + 68 + SUM( DISTINCT 94 ) THEN + 76 ELSE NULL END + - 98 THEN NULL WHEN + CASE + + 51 WHEN - - 87 THEN NULL WHEN - COUNT( DISTINCT 94 ) THEN - 90 ELSE NULL END THEN + 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6240
SELECT + - 16 * - CASE - ( + COUNT ( DISTINCT 35 ) ) WHEN + + COUNT ( ALL + ( - 30 ) ) + - CASE - 20 WHEN + 68 + SUM ( DISTINCT 94 ) THEN + 76 ELSE NULL END + - 98 THEN NULL WHEN + CASE + + 51 WHEN - - 87 THEN NULL WHEN - COUNT ( DISTINCT 94 ) THEN - 90 ELSE NULL END THEN + 75 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT + 51 + - COUNT( 13 ) col2
----
50

skipif mysql # not compatible
query I rowsort label-6242
SELECT + 51 + - COUNT ( 13 ) col2
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6243
SELECT ALL - 7 * + 77 + 39 DIV COUNT( * ) - + 45
----
-545

skipif mysql # not compatible
query I rowsort label-6243
SELECT ALL - 7 * + 77 + 39 / COUNT ( * ) - + 45
----
-545

query I rowsort
SELECT DISTINCT - ( - 39 ) AS col0
----
39

query I rowsort
SELECT ALL 48 * + + NULLIF ( + - 75, - + 99 + 12 ) AS col0
----
-3600

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

query I rowsort
SELECT + 75 * + 46 col2
----
3450

query I rowsort
SELECT ALL 45 * + 40
----
1800

query I rowsort
SELECT + 51 - + 97
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-6250
SELECT + 57 DIV + + 66 * - + 91
----
0

skipif mysql # not compatible
query I rowsort label-6250
SELECT + 57 / + + 66 * - + 91
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6251
SELECT NULLIF ( + 83, + CAST( NULL AS SIGNED ) ) - + + 84 - - 43 col0
----
42

skipif mysql # not compatible
query I rowsort label-6251
SELECT NULLIF ( + 83, + CAST ( NULL AS INTEGER ) ) - + + 84 - - 43 col0
----
42

query I rowsort
SELECT 10 + + - 2 AS col1
----
8

query II rowsort
SELECT DISTINCT 71 col2, + 30 AS col2
----
71
30

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6255
SELECT DISTINCT 44 * - COALESCE ( COALESCE ( - COUNT( * ), COUNT( * ) + - 91 ), - SUM( + + 98 ) DIV + 10 * + 95 ) * + - COALESCE ( + 46, - 85 * + + 5, - + 80 )
----
-2024

skipif mysql # not compatible
query I rowsort label-6255
SELECT DISTINCT 44 * - COALESCE ( COALESCE ( - COUNT ( * ), COUNT ( * ) + - 91 ), - SUM ( + + 98 ) / + 10 * + 95 ) * + - COALESCE ( + 46, - 85 * + + 5, - + 80 )
----
-2024

query II rowsort
SELECT DISTINCT + 51 + + - 55 + + - 45 * 45 AS col2, 9
----
-2029
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT ALL - 96 + - 67 - + SUM( ALL - 6 ) AS col1
----
-157

skipif mysql # not compatible
query I rowsort label-6257
SELECT ALL - 96 + - 67 - + SUM ( ALL - 6 ) AS col1
----
-157

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT 45 - - CASE + + 70 WHEN COUNT( * ) + SUM( DISTINCT 91 ) + MIN( DISTINCT 41 ) / 65 THEN + 98 END * + - 0 - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6259
SELECT 45 - - CASE + + 70 WHEN COUNT ( * ) + SUM ( DISTINCT 91 ) + MIN ( DISTINCT 41 ) / 65 THEN + 98 END * + - 0 - - COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT 76 AS col0, + 26 * + + ( + 94 ) AS col1
----
76
2444

query II rowsort
SELECT + 86 col2, + 23 AS col0
----
86
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6262
SELECT DISTINCT CAST( + - 84 AS SIGNED ) + + ( COALESCE ( 80, + 71, - 58 * 2 * + 37 * + + MAX( DISTINCT - 11 ) ) ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-6262
SELECT DISTINCT CAST ( + - 84 AS INTEGER ) + + ( COALESCE ( 80, + 71, - 58 * 2 * + 37 * + + MAX ( DISTINCT - 11 ) ) ) AS col0
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6263
SELECT ALL COUNT( * ) + 96 * - 91 * - + CAST( - ( - + 82 ) AS SIGNED ) + + 32
----
716385

skipif mysql # not compatible
query I rowsort label-6263
SELECT ALL COUNT ( * ) + 96 * - 91 * - + CAST ( - ( - + 82 ) AS INTEGER ) + + 32
----
716385

onlyif mysql # aggregate syntax: 
query II rowsort label-6264
SELECT 27 AS col1, MAX( ALL - + 99 )
----
27
-99

skipif mysql # not compatible
query II rowsort label-6264
SELECT 27 AS col1, MAX ( ALL - + 99 )
----
27
-99

query I rowsort
SELECT 44 + - + 20
----
24

query II rowsort
SELECT + 52 AS col0, - 7 col2
----
52
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6267
SELECT DISTINCT + 52 + - 43 * + 75 + - + MIN( DISTINCT - + 76 ) - - 88
----
-3009

skipif mysql # not compatible
query I rowsort label-6267
SELECT DISTINCT + 52 + - 43 * + 75 + - + MIN ( DISTINCT - + 76 ) - - 88
----
-3009

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT DISTINCT - - 79 * - COUNT( * ) + - - 62 + - 87
----
-104

skipif mysql # not compatible
query I rowsort label-6269
SELECT DISTINCT - - 79 * - COUNT ( * ) + - - 62 + - 87
----
-104

query I rowsort
SELECT + 30 * 58 AS col2
----
1740

query I rowsort
SELECT - 39 + + 61 AS col1
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6272
SELECT - CAST( 89 AS SIGNED ) col2
----
-89

skipif mysql # not compatible
query I rowsort label-6272
SELECT - CAST ( 89 AS INTEGER ) col2
----
-89

query I rowsort
SELECT - 52 + + - 69 col1
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT + 27 * + COUNT( * ) * - 73 - 18 + 68 AS col0
----
-1921

skipif mysql # not compatible
query I rowsort label-6274
SELECT + 27 * + COUNT ( * ) * - 73 - 18 + 68 AS col0
----
-1921

onlyif mysql # aggregate syntax: 
query I rowsort label-6275
SELECT ALL - - SUM( ALL 35 ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-6275
SELECT ALL - - SUM ( ALL 35 ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6276
SELECT ALL - - COALESCE ( - 66, MIN( - 0 ) * 27 ) col1
----
-66

skipif mysql # not compatible
query I rowsort label-6276
SELECT ALL - - COALESCE ( - 66, MIN ( - 0 ) * 27 ) col1
----
-66

query I rowsort
SELECT DISTINCT - 31 * + 47 col2
----
-1457

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6278
SELECT DISTINCT - 20 DIV + 74 DIV - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6278
SELECT DISTINCT - 20 / + 74 / - COUNT ( * )
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6280
SELECT ALL + 98 * - 2 + - - ( + COUNT( * ) ) - + CAST( NULL AS DECIMAL ) / - - COUNT( * ) * - CASE + + 77 WHEN 55 * COUNT( ALL + 69 ) - + + 9 THEN COUNT( * ) ELSE NULL END * + 58 + - 4 + 17 / - 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6280
SELECT ALL + 98 * - 2 + - - ( + COUNT ( * ) ) - + CAST ( NULL AS REAL ) / - - COUNT ( * ) * - CASE + + 77 WHEN 55 * COUNT ( ALL + 69 ) - + + 9 THEN COUNT ( * ) ELSE NULL END * + 58 + - 4 + 17 / - 89 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT 73 * 58 * COUNT( * )
----
4234

skipif mysql # not compatible
query I rowsort label-6281
SELECT 73 * 58 * COUNT ( * )
----
4234

query I rowsort
SELECT DISTINCT - 71 * - 66 col0
----
4686

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT + NULLIF ( - - 72, + 31 * + - MIN( DISTINCT + ( + - 3 ) ) ) + 9
----
81

skipif mysql # not compatible
query I rowsort label-6283
SELECT + NULLIF ( - - 72, + 31 * + - MIN ( DISTINCT + ( + - 3 ) ) ) + 9
----
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT + 53 * - + COUNT( * ) + COUNT( * ) + - 15
----
-67

skipif mysql # not compatible
query I rowsort label-6285
SELECT + 53 * - + COUNT ( * ) + COUNT ( * ) + - 15
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT MIN( DISTINCT - 48 ) * 29 + + COUNT( * ) AS col2
----
-1391

skipif mysql # not compatible
query I rowsort label-6286
SELECT MIN ( DISTINCT - 48 ) * 29 + + COUNT ( * ) AS col2
----
-1391

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6287
SELECT 36 - + 79 AS col0, + COUNT( * ) DIV 99 * + - 6
----
-43
0

skipif mysql # not compatible
query II rowsort label-6287
SELECT 36 - + 79 AS col0, + COUNT ( * ) / 99 * + - 6
----
-43
0

query I rowsort
SELECT 10 + - 34
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6289
SELECT 19 * - 28 AS col2, - CAST( - 22 AS SIGNED ) AS col2
----
-532
22

skipif mysql # not compatible
query II rowsort label-6289
SELECT 19 * - 28 AS col2, - CAST ( - 22 AS INTEGER ) AS col2
----
-532
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6290
SELECT ALL 91 + + + 15 + + CAST( + - SUM( ( 71 ) ) AS SIGNED )
----
35

skipif mysql # not compatible
query I rowsort label-6290
SELECT ALL 91 + + + 15 + + CAST ( + - SUM ( ( 71 ) ) AS INTEGER )
----
35

query I rowsort
SELECT COALESCE ( - 16, 80, + 47 ) + 76
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6292
SELECT 35 * CAST( NULL AS SIGNED ), + COUNT( ALL - 2 ) - + + 77 * - 28 * 85 AS col2
----
NULL
183261

skipif mysql # not compatible
query II rowsort label-6292
SELECT 35 * CAST ( NULL AS INTEGER ), + COUNT ( ALL - 2 ) - + + 77 * - 28 * 85 AS col2
----
NULL
183261

query I rowsort
SELECT 41 + - 1 AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT DISTINCT COUNT( * ) * - 73 * 50
----
-3650

skipif mysql # not compatible
query I rowsort label-6294
SELECT DISTINCT COUNT ( * ) * - 73 * 50
----
-3650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6295
SELECT ALL CAST( 38 AS SIGNED ) - - - 55 * - + 68 AS col2, COUNT( 62 )
----
3778
1

skipif mysql # not compatible
query II rowsort label-6295
SELECT ALL CAST ( 38 AS INTEGER ) - - - 55 * - + 68 AS col2, COUNT ( 62 )
----
3778
1

query I rowsort
SELECT DISTINCT - NULLIF ( + 74, 39 )
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6297
SELECT COALESCE ( + COUNT( * ), + 87 + 77 ) DIV - - 34 + + 44
----
44

skipif mysql # not compatible
query I rowsort label-6297
SELECT COALESCE ( + COUNT ( * ), + 87 + 77 ) / - - 34 + + 44
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT - 84 + - + 91 + - - MIN( 7 ) * - 32
----
-399

skipif mysql # not compatible
query I rowsort label-6298
SELECT - 84 + - + 91 + - - MIN ( 7 ) * - 32
----
-399

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT - 28 * - NULLIF ( - - COUNT( * ), + - 41 ) col1
----
28

skipif mysql # not compatible
query I rowsort label-6299
SELECT - 28 * - NULLIF ( - - COUNT ( * ), + - 41 ) col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6300
SELECT - NULLIF ( ( + COUNT( * ) ), 92 * + 97 + + 38 * + 94 + - + 55 - + 69 * 26 )
----
-1

skipif mysql # not compatible
query I rowsort label-6300
SELECT - NULLIF ( ( + COUNT ( * ) ), 92 * + 97 + + 38 * + 94 + - + 55 - + 69 * 26 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT SUM( 29 ) * + + 4 * 45 * + ( + + 44 ) AS col2
----
229680

skipif mysql # not compatible
query I rowsort label-6301
SELECT SUM ( 29 ) * + + 4 * 45 * + ( + + 44 ) AS col2
----
229680

query I rowsort
SELECT ALL - - 2 * + 14
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6303
SELECT - 6 * - 82 + + MAX( ALL + 36 ) DIV + 91 AS col2
----
492

skipif mysql # not compatible
query I rowsort label-6303
SELECT - 6 * - 82 + + MAX ( ALL + 36 ) / + 91 AS col2
----
492

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT + ( + - NULLIF ( - NULLIF ( 92, + - CASE 55 WHEN + + MIN( DISTINCT 65 ) * 68 THEN NULL WHEN + + 57 THEN - 92 * + 68 * + + 49 + 79 * - 33 END * 80 ), 47 ) ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-6304
SELECT + ( + - NULLIF ( - NULLIF ( 92, + - CASE 55 WHEN + + MIN ( DISTINCT 65 ) * 68 THEN NULL WHEN + + 57 THEN - 92 * + 68 * + + 49 + 79 * - 33 END * 80 ), 47 ) ) AS col0
----
92

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6306
SELECT DISTINCT + + CAST( SUM( DISTINCT - ( + 46 ) ) AS SIGNED ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-6306
SELECT DISTINCT + + CAST ( SUM ( DISTINCT - ( + 46 ) ) AS INTEGER ) AS col0
----
-46

query I rowsort
SELECT - 66 * - 0 + - 35 AS col0
----
-35

query I rowsort
SELECT DISTINCT + NULLIF ( 86, - 64 ) + - - 86
----
172

query I rowsort
SELECT - 97 * + 78
----
-7566

onlyif mysql # DIV for integer division: 
query I rowsort label-6310
SELECT DISTINCT + 23 DIV 45
----
0

skipif mysql # not compatible
query I rowsort label-6310
SELECT DISTINCT + 23 / 45
----
0

query II rowsort
SELECT - 16, - ( + 29 ) AS col1
----
-16
-29

query I rowsort
SELECT DISTINCT 85 * 97
----
8245

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT ALL + CASE - CASE + + 7 WHEN - COALESCE ( 84, 98 + 53 ) THEN NULL WHEN + 29 THEN 67 * + + 78 - - 2 WHEN - 73 - + COUNT( * ) THEN NULL END WHEN ( - + 64 ) THEN - + 97 END + + + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-6313
SELECT ALL + CASE - CASE + + 7 WHEN - COALESCE ( 84, 98 + 53 ) THEN NULL WHEN + 29 THEN 67 * + + 78 - - 2 WHEN - 73 - + COUNT ( * ) THEN NULL END WHEN ( - + 64 ) THEN - + 97 END + + + 80
----
NULL

query I rowsort
SELECT - 61 * - - 10 * + + 65
----
-39650

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT ALL - COALESCE ( + COUNT( * ), 91 + + 68 + + 55 + 95 ) * - 17 * - 40
----
-680

skipif mysql # not compatible
query I rowsort label-6316
SELECT ALL - COALESCE ( + COUNT ( * ), 91 + + 68 + + 55 + 95 ) * - 17 * - 40
----
-680

onlyif mysql # aggregate syntax: 
query I rowsort label-6317
SELECT - COUNT( * ) - - 73 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-6317
SELECT - COUNT ( * ) - - 73 AS col2
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-6318
SELECT + ( - 36 ) DIV + 16 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-6318
SELECT + ( - 36 ) / + 16 AS col1
----
-2

query I rowsort
SELECT - 90 + - 26
----
-116

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

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

query I rowsort
SELECT ALL 78 - - + 30 AS col1
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6322
SELECT + MAX( DISTINCT - 40 ) - + 92 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6322
SELECT + MAX ( DISTINCT - 40 ) - + 92 + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 72 * - 34 * - 80 * - - 88
----
17233920

query I rowsort
SELECT ALL 42 - 62 AS col1
----
-20

query II rowsort
SELECT 51, 27 * 41 AS col1
----
51
1107

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT + CASE + - 25 WHEN 38 THEN - COALESCE ( - + 68, + ( + CASE - 95 WHEN + 67 THEN NULL WHEN 67 THEN - COUNT( * ) / + MIN( DISTINCT + + 89 ) + 67 - - + 15 + + 20 / + 73 WHEN + COALESCE ( - NULLIF ( 45, + 69 ), - - 78 + 69 + - 12 + + 63 ) * COUNT( * ) + 50 - - 1 THEN NULL END ) ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6326
SELECT + CASE + - 25 WHEN 38 THEN - COALESCE ( - + 68, + ( + CASE - 95 WHEN + 67 THEN NULL WHEN 67 THEN - COUNT ( * ) / + MIN ( DISTINCT + + 89 ) + 67 - - + 15 + + 20 / + 73 WHEN + COALESCE ( - NULLIF ( 45, + 69 ), - - 78 + 69 + - 12 + + 63 ) * COUNT ( * ) + 50 - - 1 THEN NULL END ) ) ELSE NULL END col2
----
NULL

query I rowsort
SELECT ALL + - 95 * - 77 + 93 * - 8 + - 15
----
6556

onlyif mysql # aggregate syntax: 
query II rowsort label-6328
SELECT + - 42 * + - MIN( DISTINCT - 85 ) col1, 75 + - 0
----
-3570
75

skipif mysql # not compatible
query II rowsort label-6328
SELECT + - 42 * + - MIN ( DISTINCT - 85 ) col1, 75 + - 0
----
-3570
75

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

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

query I rowsort
SELECT DISTINCT 20 * - + 8 * + - 78 + + 13 AS col1
----
12493

onlyif mysql # DIV for integer division: 
query I rowsort label-6331
SELECT ALL + 82 DIV - + 84 * - - 47
----
0

skipif mysql # not compatible
query I rowsort label-6331
SELECT ALL + 82 / - + 84 * - - 47
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT + 84 * + 0 + - - SUM( ALL 4 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-6332
SELECT + 84 * + 0 + - - SUM ( ALL 4 ) AS col0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6333
SELECT + CAST( - - 89 AS SIGNED ) * - 11 col1
----
-979

skipif mysql # not compatible
query I rowsort label-6333
SELECT + CAST ( - - 89 AS INTEGER ) * - 11 col1
----
-979

query I rowsort
SELECT + + 16 + - - 83 col1
----
99

query I rowsort
SELECT - + 10 * + + 91 * + - ( - 66 ) * - + 63 + + - 16 AS col2
----
3783764

query I rowsort
SELECT COALESCE ( + 73, + 19, - 69 + 32 ) * + COALESCE ( + 31, + + ( + 10 ) ) + 34
----
2297

query I rowsort
SELECT + + 66 + + 73 AS col1
----
139

query I rowsort
SELECT COALESCE ( + + 68, + 35 + + + 87 * + 21 ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT ALL MAX( ALL - 37 ) * + 22 AS col1
----
-814

skipif mysql # not compatible
query I rowsort label-6339
SELECT ALL MAX ( ALL - 37 ) * + 22 AS col1
----
-814

query I rowsort
SELECT - 50 + 61 AS col1
----
11

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

skipif mysql # not compatible
query I rowsort label-6341
SELECT + 36 * + COUNT ( * ) + + 9
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6342
SELECT + 38 + - 10 * + 32 + - - 56 + - CAST( NULL AS SIGNED ) + - + 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6342
SELECT + 38 + - 10 * + 32 + - - 56 + - CAST ( NULL AS INTEGER ) + - + 38 AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6344
SELECT DISTINCT CASE - COUNT( * ) WHEN - - 54 THEN 59 * 91 + + 61 + + 72 WHEN - 9 THEN CAST( NULL AS SIGNED ) ELSE - ( - 91 ) END
----
91

skipif mysql # not compatible
query I rowsort label-6344
SELECT DISTINCT CASE - COUNT ( * ) WHEN - - 54 THEN 59 * 91 + + 61 + + 72 WHEN - 9 THEN CAST ( NULL AS INTEGER ) ELSE - ( - 91 ) END
----
91

query I rowsort
SELECT - 14 + 92 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT - MAX( DISTINCT 38 ) + - - 34
----
-4

skipif mysql # not compatible
query I rowsort label-6346
SELECT - MAX ( DISTINCT 38 ) + - - 34
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6347
SELECT DISTINCT COUNT( - 18 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6347
SELECT DISTINCT COUNT ( - 18 ) AS col1
----
1

query I rowsort
SELECT DISTINCT + 47 * + 17
----
799

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6349
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, SUM( + 31 ) + - 94 + + 21 * - 62
----
NULL
-1365

skipif mysql # not compatible
query II rowsort label-6349
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, SUM ( + 31 ) + - 94 + + 21 * - 62
----
NULL
-1365

query I rowsort
SELECT DISTINCT NULLIF ( + + ( + + 17 ), + 98 + - 77 ) AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT ALL + COUNT( * ) * + SUM( 12 ) * + - 8 AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-6351
SELECT ALL + COUNT ( * ) * + SUM ( 12 ) * + - 8 AS col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6352
SELECT ALL ( + + CASE + 34 WHEN 70 * - 61 + - MAX( - - 44 ) + - 85 THEN NULL ELSE 94 + + 4 END )
----
98

skipif mysql # not compatible
query I rowsort label-6352
SELECT ALL ( + + CASE + 34 WHEN 70 * - 61 + - MAX ( - - 44 ) + - 85 THEN NULL ELSE 94 + + 4 END )
----
98

query I rowsort
SELECT - 48 * + ( - + 98 ) col0
----
4704

query I rowsort
SELECT - 13 + 78 + - - ( - 60 ) AS col0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6355
SELECT + 30 DIV + 30 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6355
SELECT + 30 / + 30 AS col0
----
1

query II rowsort
SELECT ALL 56 AS col0, + 82
----
56
82

query I rowsort
SELECT - 19 + - 32 AS col0
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6358
SELECT ALL - COALESCE ( - 9, 77 DIV + + 99 ) AS col0, COUNT( * ) AS col0
----
9
1

skipif mysql # not compatible
query II rowsort label-6358
SELECT ALL - COALESCE ( - 9, 77 / + + 99 ) AS col0, COUNT ( * ) AS col0
----
9
1

query II rowsort
SELECT + - 33, 97 AS col0
----
-33
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6360
SELECT ALL + + 23 DIV ( 59 ) + + - 78 + + CASE - ( + 39 ) WHEN 95 THEN NULL WHEN MAX( - + 99 ) THEN + 3 * - 39 + + 34 + 60 + MAX( DISTINCT + - CASE + 63 WHEN - CASE + + 32 WHEN - 48 THEN NULL ELSE + 90 - + ( - 12 ) END THEN 34 END ) ELSE + 93 END * - 18
----
-1752

skipif mysql # not compatible
query I rowsort label-6360
SELECT ALL + + 23 / ( 59 ) + + - 78 + + CASE - ( + 39 ) WHEN 95 THEN NULL WHEN MAX ( - + 99 ) THEN + 3 * - 39 + + 34 + 60 + MAX ( DISTINCT + - CASE + 63 WHEN - CASE + + 32 WHEN - 48 THEN NULL ELSE + 90 - + ( - 12 ) END THEN 34 END ) ELSE + 93 END * - 18
----
-1752

onlyif mysql # aggregate syntax: 
query I rowsort label-6361
SELECT + SUM( ALL - 5 ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-6361
SELECT + SUM ( ALL - 5 ) AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT + - 5 + 19 - + - SUM( ALL + 12 ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-6362
SELECT + - 5 + 19 - + - SUM ( ALL + 12 ) AS col1
----
26

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

skipif mysql # not compatible
query I rowsort label-6363
SELECT ALL + COUNT ( * ) + + 60 AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6364
SELECT + MAX( ALL NULLIF ( 7, 74 ) ) + - 73 AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-6364
SELECT + MAX ( ALL NULLIF ( 7, 74 ) ) + - 73 AS col0
----
-66

onlyif mysql # DIV for integer division: 
query II rowsort label-6365
SELECT ALL - + 65 AS col0, 54 DIV - - 70
----
-65
0

skipif mysql # not compatible
query II rowsort label-6365
SELECT ALL - + 65 AS col0, 54 / - - 70
----
-65
0

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

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

query II rowsort
SELECT 2 AS col2, - 96 AS col0
----
2
-96

query I rowsort
SELECT DISTINCT + 48 * 62
----
2976

onlyif mysql # aggregate syntax: 
query I rowsort label-6369
SELECT 28 * - - COUNT( * ) + NULLIF ( 84, 36 ) AS col1
----
112

skipif mysql # not compatible
query I rowsort label-6369
SELECT 28 * - - COUNT ( * ) + NULLIF ( 84, 36 ) AS col1
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT COUNT( * ) - - - 7 * 25 AS col2
----
-174

skipif mysql # not compatible
query I rowsort label-6370
SELECT COUNT ( * ) - - - 7 * 25 AS col2
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-6371
SELECT 19 * COALESCE ( + - COUNT( + 4 ), - - 40 * 70 )
----
-19

skipif mysql # not compatible
query I rowsort label-6371
SELECT 19 * COALESCE ( + - COUNT ( + 4 ), - - 40 * 70 )
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6372
SELECT 25 DIV - COUNT( * ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-6372
SELECT 25 / - COUNT ( * ) AS col0
----
-25

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6373
SELECT 61 / - 27 * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6373
SELECT 61 / - 27 * + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6374
SELECT DISTINCT 67 DIV + ( + 1 )
----
67

skipif mysql # not compatible
query I rowsort label-6374
SELECT DISTINCT 67 / + ( + 1 )
----
67

query I rowsort
SELECT 73 * + 69 AS col1
----
5037

query I rowsort
SELECT ALL 2 - - 33 AS col2
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6377
SELECT CAST( - 20 AS SIGNED ) * - 4 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-6377
SELECT CAST ( - 20 AS INTEGER ) * - 4 AS col0
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6378
SELECT DISTINCT 8 * + + CASE + NULLIF ( - - CASE - ( 52 ) WHEN + 18 - - COUNT( * ) THEN + 4 WHEN + + 93 - - ( - 40 ) THEN - - 1 * 27 * MIN( DISTINCT - 85 ) + - - 29 * - + CASE - CASE - 66 WHEN - + 87 / 51 THEN 25 * 78 END WHEN - 12 * - 38 / + - 64 * - - CASE - - 61 WHEN + - 84 + 83 + + 36 * NULLIF ( - 46, - 21 ) * 21 + - 18 + - 21 THEN + 8 * 45 WHEN + 40 THEN NULL END * 7 THEN NULL WHEN - 8 THEN SUM( + 62 ) * 44 WHEN - ( - ( + ( 6 ) ) ) THEN + 91 + + 38 ELSE NULL END END, + 57 ) WHEN - CAST( NULL AS SIGNED ) THEN ( 46 ) ELSE NULL END * - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-6378
SELECT DISTINCT 8 * + + CASE + NULLIF ( - - CASE - ( 52 ) WHEN + 18 - - COUNT ( * ) THEN + 4 WHEN + + 93 - - ( - 40 ) THEN - - 1 * 27 * MIN ( DISTINCT - 85 ) + - - 29 * - + CASE - CASE - 66 WHEN - + 87 / 51 THEN 25 * 78 END WHEN - 12 * - 38 / + - 64 * - - CASE - - 61 WHEN + - 84 + 83 + + 36 * NULLIF ( - 46, - 21 ) * 21 + - 18 + - 21 THEN + 8 * 45 WHEN + 40 THEN NULL END * 7 THEN NULL WHEN - 8 THEN SUM ( + 62 ) * 44 WHEN - ( - ( + ( 6 ) ) ) THEN + 91 + + 38 ELSE NULL END END, + 57 ) WHEN - CAST ( NULL AS INTEGER ) THEN ( 46 ) ELSE NULL END * - 77
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6379
SELECT ( + CAST ( NULL AS INTEGER ) ) + - - 50 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6381
SELECT DISTINCT 60 * - - COALESCE ( + 20, ( 20 ) + 45, ( SUM( DISTINCT + + 30 ) ), - 64 ) AS col2, 33
----
1200
33

skipif mysql # not compatible
query II rowsort label-6381
SELECT DISTINCT 60 * - - COALESCE ( + 20, ( 20 ) + 45, ( SUM ( DISTINCT + + 30 ) ), - 64 ) AS col2, 33
----
1200
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6382
SELECT MAX( DISTINCT - 29 ) - - 17
----
-12

skipif mysql # not compatible
query I rowsort label-6382
SELECT MAX ( DISTINCT - 29 ) - - 17
----
-12

query I rowsort
SELECT 98 * + 84 * - 34 AS col2
----
-279888

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT ALL - COUNT( * ) + 96 col1
----
95

skipif mysql # not compatible
query I rowsort label-6384
SELECT ALL - COUNT ( * ) + 96 col1
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6385
SELECT 69 + - NULLIF ( + + 80, - 98 ) - CAST( + 92 AS SIGNED ) AS col2
----
-103

skipif mysql # not compatible
query I rowsort label-6385
SELECT 69 + - NULLIF ( + + 80, - 98 ) - CAST ( + 92 AS INTEGER ) AS col2
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-6386
SELECT DISTINCT - 48 DIV 92 DIV - - 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6386
SELECT DISTINCT - 48 / 92 / - - 69 AS col1
----
0

query I rowsort
SELECT ALL - + 95 + + - 85
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-6388
SELECT ALL + 56 + + 73 + + ( + 12 ) - + COUNT( * )
----
140

skipif mysql # not compatible
query I rowsort label-6388
SELECT ALL + 56 + + 73 + + ( + 12 ) - + COUNT ( * )
----
140

query I rowsort
SELECT 48 - - NULLIF ( 93, + 76 )
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-6390
SELECT MIN( ALL 22 ) + + 31 * - MAX( ALL 84 ) - - 5 AS col1
----
-2577

skipif mysql # not compatible
query I rowsort label-6390
SELECT MIN ( ALL 22 ) + + 31 * - MAX ( ALL 84 ) - - 5 AS col1
----
-2577

query II rowsort
SELECT - ( 48 ) AS col0, - 34 AS col1
----
-48
-34

query I rowsort
SELECT ALL - 54 + 38 AS col2
----
-16

query I rowsort
SELECT + 32 * 28 + - 50 AS col1
----
846

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT DISTINCT - - 53 + COUNT( * ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-6394
SELECT DISTINCT - - 53 + COUNT ( * ) AS col0
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6395
SELECT + 44 DIV + + 65 + - COALESCE ( - - ( + - COALESCE ( 87, - 97 + + 46, - SUM( 67 ) * + - 63 + + 19 ) ), + 22 ) * - - COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-6395
SELECT + 44 / + + 65 + - COALESCE ( - - ( + - COALESCE ( 87, - 97 + + 46, - SUM ( 67 ) * + - 63 + + 19 ) ), + 22 ) * - - COUNT ( * )
----
87

query I rowsort
SELECT 17 * - 15 AS col0
----
-255

onlyif mysql # aggregate syntax: 
query II rowsort label-6397
SELECT DISTINCT + SUM( DISTINCT 35 ) * 57 AS col1, 97
----
1995
97

skipif mysql # not compatible
query II rowsort label-6397
SELECT DISTINCT + SUM ( DISTINCT 35 ) * 57 AS col1, 97
----
1995
97

query I rowsort
SELECT ALL - 93 + - 92
----
-185

query I rowsort
SELECT ALL + + 23 * - 56 AS col2
----
-1288

query I rowsort
SELECT DISTINCT - 60 - CASE - 10 WHEN - 70 THEN 68 * - - 76 * 57 * + 8 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6401
SELECT ALL - COUNT( 26 ), 36 AS col0
----
-1
36

skipif mysql # not compatible
query II rowsort label-6401
SELECT ALL - COUNT ( 26 ), 36 AS col0
----
-1
36

query I rowsort
SELECT 25 + 60 AS col0
----
85

query I rowsort
SELECT 64 * 13 AS col2
----
832

query I rowsort
SELECT 35 + ( - 81 ) AS col0
----
-46

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

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

query II rowsort
SELECT ALL - 5 AS col1, 44
----
-5
44

query I rowsort
SELECT 44 * ( + - 76 ) col0
----
-3344

query I rowsort
SELECT 79 + + - 94
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-6409
SELECT COUNT( + - 77 ) + - 73 AS col0, 63 * + - COUNT( * ) + + 17
----
-72
-46

skipif mysql # not compatible
query II rowsort label-6409
SELECT COUNT ( + - 77 ) + - 73 AS col0, 63 * + - COUNT ( * ) + + 17
----
-72
-46

query I rowsort
SELECT 69 + 0 + 96 + - 35
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT NULLIF ( - ( - 18 ), - 23 / - 38 * - 23 * ( COUNT( * ) ) + + 63 ) + COUNT( * ) - - 86
----
105

skipif mysql # not compatible
query I rowsort label-6411
SELECT NULLIF ( - ( - 18 ), - 23 / - 38 * - 23 * ( COUNT ( * ) ) + + 63 ) + COUNT ( * ) - - 86
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6412
SELECT DISTINCT 24 + CAST( - CASE - 0 WHEN 54 * + 9 + + 23 / + - 67 * 80 THEN NULL ELSE - + 94 * - + COUNT( * ) END AS SIGNED ) AS col2, - 79
----
-70
-79

skipif mysql # not compatible
query II rowsort label-6412
SELECT DISTINCT 24 + CAST ( - CASE - 0 WHEN 54 * + 9 + + 23 / + - 67 * 80 THEN NULL ELSE - + 94 * - + COUNT ( * ) END AS INTEGER ) AS col2, - 79
----
-70
-79

query I rowsort
SELECT DISTINCT 80 + - - 81
----
161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6414
SELECT ALL - + CASE + 98 WHEN + 68 * - 90 THEN ( - COUNT( * ) ) * 57 + + 35 * - COUNT( * ) DIV 30 ELSE - 6 - + 58 END + + 18, CAST( + - 9 AS SIGNED ) * + NULLIF ( - 21, 6 ) + - 57 AS col1
----
82
132

skipif mysql # not compatible
query II rowsort label-6414
SELECT ALL - + CASE + 98 WHEN + 68 * - 90 THEN ( - COUNT ( * ) ) * 57 + + 35 * - COUNT ( * ) / 30 ELSE - 6 - + 58 END + + 18, CAST ( + - 9 AS INTEGER ) * + NULLIF ( - 21, 6 ) + - 57 AS col1
----
82
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6415
SELECT + 28 + + 52 + - + 16 DIV - CASE + COUNT( * ) WHEN - 20 * 31 THEN 82 ELSE - + 97 END + + - 59 + + - 79 + 93 * + 4
----
314

skipif mysql # not compatible
query I rowsort label-6415
SELECT + 28 + + 52 + - + 16 / - CASE + COUNT ( * ) WHEN - 20 * 31 THEN 82 ELSE - + 97 END + + - 59 + + - 79 + 93 * + 4
----
314

query I rowsort
SELECT NULLIF ( - + 72, 61 * - COALESCE ( + 31, + + 85 ) + - + 55 )
----
-72

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT + 94 * + 85 + - NULLIF ( 93, COUNT( * ) ) + + 77 * - 9
----
7204

skipif mysql # not compatible
query I rowsort label-6419
SELECT + 94 * + 85 + - NULLIF ( 93, COUNT ( * ) ) + + 77 * - 9
----
7204

query I rowsort
SELECT + - 3 + + 71 + 5 * 80 AS col0
----
468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6421
SELECT DISTINCT - - SUM( + 34 ) + - - 78, + 8 + + NULLIF ( + 80, + CAST( NULL AS SIGNED ) ) + 30 + - 2 DIV - 80 AS col2
----
112
118

skipif mysql # not compatible
query II rowsort label-6421
SELECT DISTINCT - - SUM ( + 34 ) + - - 78, + 8 + + NULLIF ( + 80, + CAST ( NULL AS INTEGER ) ) + 30 + - 2 / - 80 AS col2
----
112
118

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT DISTINCT 82 * - - 91 + - - 10 * - - COUNT( * ) AS col0
----
7472

skipif mysql # not compatible
query I rowsort label-6422
SELECT DISTINCT 82 * - - 91 + - - 10 * - - COUNT ( * ) AS col0
----
7472

query I rowsort
SELECT ALL 91 - + 36 AS col0
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6424
SELECT - - 4 DIV COUNT( + + 73 ) * + - COUNT( * ) col2
----
-4

skipif mysql # not compatible
query I rowsort label-6424
SELECT - - 4 / COUNT ( + + 73 ) * + - COUNT ( * ) col2
----
-4

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

skipif mysql # not compatible
query I rowsort label-6425
SELECT ALL - 98 / 56 * COUNT ( * ) * + + COUNT ( * ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6426
SELECT - COUNT( DISTINCT + 51 ) + - 1 AS col1, CAST( - + 24 AS SIGNED ) AS col2
----
-2
-24

skipif mysql # not compatible
query II rowsort label-6426
SELECT - COUNT ( DISTINCT + 51 ) + - 1 AS col1, CAST ( - + 24 AS INTEGER ) AS col2
----
-2
-24

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6428
SELECT + COUNT( * ) AS col2, - CASE - + COUNT( * ) WHEN 10 - - + 4 + + 52 * - ( + 79 ) THEN - + 33 WHEN - 87 / + + 20 + 2 + + 59 * + MAX( 72 ) * COUNT( * ) + NULLIF ( + 21, + 66 * + + 23 * + + COALESCE ( - - 20, 28 ) + + + COUNT( * ) / - + 76 * + 46 ) THEN NULL ELSE + 79 * 70 END * 58 * - + 23
----
1
7377020

skipif mysql # not compatible
query II rowsort label-6428
SELECT + COUNT ( * ) AS col2, - CASE - + COUNT ( * ) WHEN 10 - - + 4 + + 52 * - ( + 79 ) THEN - + 33 WHEN - 87 / + + 20 + 2 + + 59 * + MAX ( 72 ) * COUNT ( * ) + NULLIF ( + 21, + 66 * + + 23 * + + COALESCE ( - - 20, 28 ) + + + COUNT ( * ) / - + 76 * + 46 ) THEN NULL ELSE + 79 * 70 END * 58 * - + 23
----
1
7377020

onlyif mysql # aggregate syntax: 
query I rowsort label-6429
SELECT DISTINCT 74 * COALESCE ( ( 7 ), + 56 ) - COUNT( * ) col1
----
517

skipif mysql # not compatible
query I rowsort label-6429
SELECT DISTINCT 74 * COALESCE ( ( 7 ), + 56 ) - COUNT ( * ) col1
----
517

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT DISTINCT COALESCE ( - - 1, + 97 + + + COUNT( * ), - - COUNT( * ) + - 17 + + - 78 + + COUNT( * ) + 21 ) * + COALESCE ( + MAX( + 73 ), + 34 + + 60 + - 41 )
----
73

skipif mysql # not compatible
query I rowsort label-6430
SELECT DISTINCT COALESCE ( - - 1, + 97 + + + COUNT ( * ), - - COUNT ( * ) + - 17 + + - 78 + + COUNT ( * ) + 21 ) * + COALESCE ( + MAX ( + 73 ), + 34 + + 60 + - 41 )
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6431
SELECT - SUM( DISTINCT - 99 ) DIV + + 66 + 74 * - - 16
----
1185

skipif mysql # not compatible
query I rowsort label-6431
SELECT - SUM ( DISTINCT - 99 ) / + + 66 + 74 * - - 16
----
1185

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT COALESCE ( + 46, - 5 * + COUNT( * ) + - - 19 * + 35 ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-6432
SELECT COALESCE ( + 46, - 5 * + COUNT ( * ) + - - 19 * + 35 ) AS col0
----
46

query I rowsort
SELECT DISTINCT + CASE - COALESCE ( + 5, - + 65 ) WHEN NULLIF ( ( + - 29 ), + 92 ) * + 29 THEN + 83 * + 37 END
----
NULL

query II rowsort
SELECT ALL + NULLIF ( ( + + 77 ), - 45 ) AS col1, 47
----
77
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6435
SELECT - COUNT( * ) - - CASE + 37 WHEN + COUNT( DISTINCT - 55 ) THEN NULL WHEN - 22 + ( 76 ) * + - 28 * - 5 + - 98 THEN NULL WHEN COUNT( * ) THEN + + COUNT( * ) DIV - 49 * - 95 ELSE - COALESCE ( + 70, ( 57 ), 79 ) END AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-6435
SELECT - COUNT ( * ) - - CASE + 37 WHEN + COUNT ( DISTINCT - 55 ) THEN NULL WHEN - 22 + ( 76 ) * + - 28 * - 5 + - 98 THEN NULL WHEN COUNT ( * ) THEN + + COUNT ( * ) / - 49 * - 95 ELSE - COALESCE ( + 70, ( 57 ), 79 ) END AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6436
SELECT - 8 * COUNT( - 29 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-6436
SELECT - 8 * COUNT ( - 29 ) AS col1
----
-8

query I rowsort
SELECT + 14 * - 63 AS col0
----
-882

query I rowsort
SELECT DISTINCT CASE 95 WHEN - + 92 THEN + 27 ELSE - + 15 * + + 40 END
----
-600

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

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

query II rowsort
SELECT ALL ( + 10 ) AS col1, - 68 AS col0
----
10
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT + COUNT( * ) * + COALESCE ( - + 35, + 5 * + - 11 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-6441
SELECT + COUNT ( * ) * + COALESCE ( - + 35, + 5 * + - 11 ) AS col0
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6442
SELECT - + COALESCE ( - - ( 81 ), + COUNT( * ) + 22 - + + ( + COUNT( * ) ) + + - 23 DIV ( - 61 ) * - 40 * + MAX( ALL - 18 ) - - - 7 + + 88 + 94 * - 17 DIV + ( - 78 ) ) + - - 59 + - 88 * + - 71 * - 58 + - ( 80 ) + + ( COUNT( * ) )
----
-362485

skipif mysql # not compatible
query I rowsort label-6442
SELECT - + COALESCE ( - - ( 81 ), + COUNT ( * ) + 22 - + + ( + COUNT ( * ) ) + + - 23 / ( - 61 ) * - 40 * + MAX ( ALL - 18 ) - - - 7 + + 88 + 94 * - 17 / + ( - 78 ) ) + - - 59 + - 88 * + - 71 * - 58 + - ( 80 ) + + ( COUNT ( * ) )
----
-362485

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT ALL 9 + + + COUNT( * ) + - - 2 * + 70 + + 5
----
155

skipif mysql # not compatible
query I rowsort label-6443
SELECT ALL 9 + + + COUNT ( * ) + - - 2 * + 70 + + 5
----
155

onlyif mysql # aggregate syntax: 
query II rowsort label-6444
SELECT - MIN( DISTINCT - 21 ) + - 13 * + + 19 AS col0, 34 AS col2
----
-226
34

skipif mysql # not compatible
query II rowsort label-6444
SELECT - MIN ( DISTINCT - 21 ) + - 13 * + + 19 AS col0, 34 AS col2
----
-226
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT + + 43 * - NULLIF ( + COUNT( * ), + 64 * + - 84 + - ( + - 61 ) + + - 95 - 2 ) col0
----
-43

skipif mysql # not compatible
query I rowsort label-6445
SELECT + + 43 * - NULLIF ( + COUNT ( * ), + 64 * + - 84 + - ( + - 61 ) + + - 95 - 2 ) col0
----
-43

query II rowsort
SELECT + 92 + + - 11 * + 21 + - NULLIF ( 79, 93 ) + 81, + 8 col0
----
-137
8

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

query I rowsort
SELECT ALL + - ( + - 46 ) - - 26
----
72

query I rowsort
SELECT + + 82 * - + 62 + - 84 AS col0
----
-5168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6450
SELECT ALL - COALESCE ( + 5, 78 ) - CASE + CASE 61 WHEN + 98 THEN 87 * + - 51 WHEN 77 THEN - AVG ( DISTINCT 98 ) + - 10 ELSE - 39 END WHEN 55 THEN CAST( - 80 AS SIGNED ) ELSE + MIN( ALL - 75 ) + - SUM( ALL + 52 ) END - 49 + CAST( 73 AS SIGNED ) + 94 * - CASE AVG ( + 34 ) WHEN 86 THEN NULL WHEN + 89 THEN - 88 END * - 20 / + + 16 * + CAST( NULL AS SIGNED ) + - 61 * + COALESCE ( + 73, + - 15 - + 26 * + ( 89 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6450
SELECT ALL - COALESCE ( + 5, 78 ) - CASE + CASE 61 WHEN + 98 THEN 87 * + - 51 WHEN 77 THEN - AVG ( DISTINCT 98 ) + - 10 ELSE - 39 END WHEN 55 THEN CAST ( - 80 AS INTEGER ) ELSE + MIN ( ALL - 75 ) + - SUM ( ALL + 52 ) END - 49 + CAST ( 73 AS INTEGER ) + 94 * - CASE AVG ( + 34 ) WHEN 86 THEN NULL WHEN + 89 THEN - 88 END * - 20 / + + 16 * + CAST ( NULL AS INTEGER ) + - 61 * + COALESCE ( + 73, + - 15 - + 26 * + ( 89 ) )
----
NULL

query I rowsort
SELECT + - 8 * + 14 * + 7 * - 71 + - NULLIF ( + - 63, 78 ) + + - ( 59 )
----
55668

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

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

query I rowsort
SELECT DISTINCT - 69 * + 16 - + NULLIF ( + 25, - 87 ) + ( - 16 ) + 63
----
-1082

query I rowsort
SELECT + 55 + - 23 * + 69 * - - 99 + - 22
----
-157080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6455
SELECT + CASE + 91 WHEN - COALESCE ( - COUNT( * ), + 92 / - 38 ) * + 94 + + 60 - + + 20 * 52 * - COUNT( * ) THEN 36 END * - + ( + ( CAST( NULL AS SIGNED ) ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6455
SELECT + CASE + 91 WHEN - COALESCE ( - COUNT ( * ), + 92 / - 38 ) * + 94 + + 60 - + + 20 * 52 * - COUNT ( * ) THEN 36 END * - + ( + ( CAST ( NULL AS INTEGER ) ) ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6456
SELECT + CASE + - COUNT( * ) WHEN - 69 THEN + ( 22 ) END, 48 DIV + 11 AS col2
----
NULL
4

skipif mysql # not compatible
query II rowsort label-6456
SELECT + CASE + - COUNT ( * ) WHEN - 69 THEN + ( 22 ) END, 48 / + 11 AS col2
----
NULL
4

query I rowsort
SELECT + 92 * + 24
----
2208

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6459
SELECT ALL + 25 AS col2, 42 * + 26 + - COUNT( * ) DIV + 10 AS col1
----
25
1092

skipif mysql # not compatible
query II rowsort label-6459
SELECT ALL + 25 AS col2, 42 * + 26 + - COUNT ( * ) / + 10 AS col1
----
25
1092

query I rowsort
SELECT + 85 - - 93 + 41
----
219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6461
SELECT CAST( + + CASE - + ( + 60 ) WHEN + 12 THEN NULL WHEN + + 80 THEN NULL WHEN + + 26 THEN NULL ELSE - 87 END AS SIGNED ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-6461
SELECT CAST ( + + CASE - + ( + 60 ) WHEN + 12 THEN NULL WHEN + + 80 THEN NULL WHEN + + 26 THEN NULL ELSE - 87 END AS INTEGER ) AS col2
----
-87

query II rowsort
SELECT + COALESCE ( + - ( 70 ), - 34 ) + + 19 AS col0, - 78 - + + 21
----
-51
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT + 81 * + - COUNT( * ) - - ( - 94 ) AS col0
----
-175

skipif mysql # not compatible
query I rowsort label-6463
SELECT + 81 * + - COUNT ( * ) - - ( - 94 ) AS col0
----
-175

query I rowsort
SELECT DISTINCT + 3 * + - 54 AS col0
----
-162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6465
SELECT + MIN( - 1 ) * + 59 + - 44 * 95 / + + 84 / 26 + CAST( NULL AS SIGNED ) * - COUNT( * ) + - 70 * + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-6465
SELECT + MIN ( - 1 ) * + 59 + - 44 * 95 / + + 84 / 26 + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - 70 * + 28
----
NULL

query I rowsort
SELECT DISTINCT 62 * + + 56 + - + 94
----
3378

query I rowsort
SELECT DISTINCT + NULLIF ( + - 51, - 19 ) AS col2
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6468
SELECT ALL + 31 * - 0 + - + 34 * 93 * COALESCE ( - + COUNT( * ), MIN( DISTINCT 62 ) + - 28 * - - 93 * - 49, 99 * + COUNT( * ) ) * - 51 + - + 24 + + - NULLIF ( + + 65, - 74 ) + + 28 + + - 77 + + 49 * - ( + 18 ) + NULLIF ( + 27, + ( - 74 ) * - - 45 DIV 7 * + 20 ) + - + 57 DIV - 45 AS col2
----
-162254

skipif mysql # not compatible
query I rowsort label-6468
SELECT ALL + 31 * - 0 + - + 34 * 93 * COALESCE ( - + COUNT ( * ), MIN ( DISTINCT 62 ) + - 28 * - - 93 * - 49, 99 * + COUNT ( * ) ) * - 51 + - + 24 + + - NULLIF ( + + 65, - 74 ) + + 28 + + - 77 + + 49 * - ( + 18 ) + NULLIF ( + 27, + ( - 74 ) * - - 45 / 7 * + 20 ) + - + 57 / - 45 AS col2
----
-162254

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT - SUM( - + 28 ) + - 66 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-6469
SELECT - SUM ( - + 28 ) + - 66 AS col0
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-6470
SELECT COALESCE ( + CASE - - 9 WHEN - 83 THEN + + 33 END, + CASE + - 58 WHEN - 58 THEN COALESCE ( 51, - - 33 * SUM( ALL - 97 ) + 30 ) END, 69 ) AS col1, 35
----
51
35

skipif mysql # not compatible
query II rowsort label-6470
SELECT COALESCE ( + CASE - - 9 WHEN - 83 THEN + + 33 END, + CASE + - 58 WHEN - 58 THEN COALESCE ( 51, - - 33 * SUM ( ALL - 97 ) + 30 ) END, 69 ) AS col1, 35
----
51
35

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT ALL + - NULLIF ( - COUNT( * ), + COUNT( * ) ) + - - 69
----
70

skipif mysql # not compatible
query I rowsort label-6472
SELECT ALL + - NULLIF ( - COUNT ( * ), + COUNT ( * ) ) + - - 69
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6473
SELECT + ( - COUNT( * ) ) * 46 col0
----
-46

skipif mysql # not compatible
query I rowsort label-6473
SELECT + ( - COUNT ( * ) ) * 46 col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6474
SELECT DISTINCT + 25 - - - MIN( ALL 19 ) * - - 9 * - 50
----
8575

skipif mysql # not compatible
query I rowsort label-6474
SELECT DISTINCT + 25 - - - MIN ( ALL 19 ) * - - 9 * - 50
----
8575

query I rowsort
SELECT ALL + - COALESCE ( + 16, + - 9 ) - + + 26 * 5 * 83 AS col2
----
-10806

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6477
SELECT 2 DIV 77 * 17 * 51
----
0

skipif mysql # not compatible
query I rowsort label-6477
SELECT 2 / 77 * 17 * 51
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6478
SELECT 81 / + - SUM( DISTINCT + 54 ) * + COUNT( * ) + COALESCE ( + 49, 68 ) + + COUNT( * ) * - CASE + - 82 WHEN - CAST( NULL AS SIGNED ) THEN - 51 ELSE + CAST( NULL AS SIGNED ) + - 85 + 11 - - 32 / + 47 + + - 4 END * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6478
SELECT 81 / + - SUM ( DISTINCT + 54 ) * + COUNT ( * ) + COALESCE ( + 49, 68 ) + + COUNT ( * ) * - CASE + - 82 WHEN - CAST ( NULL AS INTEGER ) THEN - 51 ELSE + CAST ( NULL AS INTEGER ) + - 85 + 11 - - 32 / + 47 + + - 4 END * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6479
SELECT + 49 * - CAST( - + ( + CAST( 45 AS SIGNED ) ) AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col1
----
NULL

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

query I rowsort
SELECT ( + + 61 ) * + 49 + - 56 AS col1
----
2933

query I rowsort
SELECT 58 + - 17
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-6482
SELECT - 15 DIV 18 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6482
SELECT - 15 / 18 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6483
SELECT DISTINCT CAST( - + SUM( - - 69 ) AS SIGNED ) * 38 AS col0
----
-2622

skipif mysql # not compatible
query I rowsort label-6483
SELECT DISTINCT CAST ( - + SUM ( - - 69 ) AS INTEGER ) * 38 AS col0
----
-2622

onlyif mysql # aggregate syntax: 
query I rowsort label-6484
SELECT ALL 39 * - - COUNT( * ) * 69 col0
----
2691

skipif mysql # not compatible
query I rowsort label-6484
SELECT ALL 39 * - - COUNT ( * ) * 69 col0
----
2691

onlyif mysql # aggregate syntax: 
query II rowsort label-6485
SELECT 70, 48 + + 25 + + MIN( - 12 ) + + MAX( ALL + ( - + 13 ) ) * - 93 * 67 * - 43 * 38 col2
----
70
-132358841

skipif mysql # not compatible
query II rowsort label-6485
SELECT 70, 48 + + 25 + + MIN ( - 12 ) + + MAX ( ALL + ( - + 13 ) ) * - 93 * 67 * - 43 * 38 col2
----
70
-132358841

query I rowsort
SELECT DISTINCT 9 + + + 17
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT ALL 3 + - MIN( + 5 ) * 35
----
-172

skipif mysql # not compatible
query I rowsort label-6487
SELECT ALL 3 + - MIN ( + 5 ) * 35
----
-172

onlyif mysql # aggregate syntax: 
query II rowsort label-6488
SELECT + 18 AS col1, 78 + + COUNT( * )
----
18
79

skipif mysql # not compatible
query II rowsort label-6488
SELECT + 18 AS col1, 78 + + COUNT ( * )
----
18
79

query II rowsort
SELECT + 73 AS col2, 91 col1
----
73
91

query I rowsort
SELECT ALL 8 + + - 54 AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT ALL 90 + + NULLIF ( - COUNT( * ), - 83 + 82 - - 11 + - + 7 + + 91 * + - 65 / 89 * - 90 / 34 * - + 48 * - COUNT( * ) + + 14 + - - 86 - + - ( - + 78 ) + + 67 / 57 ) - - 32 - + 99
----
22

skipif mysql # not compatible
query I rowsort label-6491
SELECT ALL 90 + + NULLIF ( - COUNT ( * ), - 83 + 82 - - 11 + - + 7 + + 91 * + - 65 / 89 * - 90 / 34 * - + 48 * - COUNT ( * ) + + 14 + - - 86 - + - ( - + 78 ) + + 67 / 57 ) - - 32 - + 99
----
22

query II rowsort
SELECT ALL - 24 AS col2, 86
----
-24
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT ALL 54 + + SUM( - 23 ) col1
----
31

skipif mysql # not compatible
query I rowsort label-6493
SELECT ALL 54 + + SUM ( - 23 ) col1
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6494
SELECT ALL COALESCE ( - 84, 29 * + COUNT( * ) * - - 72 DIV COUNT( DISTINCT 24 ) * + - ( + 69 ) + + 63 + + ( + 47 ) - + - 82 * - - COUNT( * ) ) - + - 29
----
-55

skipif mysql # not compatible
query I rowsort label-6494
SELECT ALL COALESCE ( - 84, 29 * + COUNT ( * ) * - - 72 / COUNT ( DISTINCT 24 ) * + - ( + 69 ) + + 63 + + ( + 47 ) - + - 82 * - - COUNT ( * ) ) - + - 29
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-6495
SELECT 16 AS col1, - 35 * COUNT( * ) AS col1
----
16
-35

skipif mysql # not compatible
query II rowsort label-6495
SELECT 16 AS col1, - 35 * COUNT ( * ) AS col1
----
16
-35

query II rowsort
SELECT 1, 89 AS col0
----
1
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT ALL COUNT( * ) - 3 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-6497
SELECT ALL COUNT ( * ) - 3 AS col2
----
-2

query I rowsort
SELECT 78 * - - 43 AS col0
----
3354

onlyif mysql # aggregate syntax: 
query II rowsort label-6499
SELECT COUNT( * ) col1, - 55 * + 36 + - COUNT( * )
----
1
-1981

skipif mysql # not compatible
query II rowsort label-6499
SELECT COUNT ( * ) col1, - 55 * + 36 + - COUNT ( * )
----
1
-1981

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6500
SELECT ALL + + 81 - - 85 + + CASE + 16 WHEN + 74 THEN + ( - + 93 ) * - CAST( NULL AS SIGNED ) * 85 + + NULLIF ( + - COALESCE ( + 13, + 62 * - - 63 - - 99, ( + - 44 ) - + 99 ), + 64 / + - 2 + + 8 + - + ( 51 ) ) WHEN - NULLIF ( + 65, - ( 59 ) * 87 ) / 65 * + + 91 THEN - 47 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6500
SELECT ALL + + 81 - - 85 + + CASE + 16 WHEN + 74 THEN + ( - + 93 ) * - CAST ( NULL AS INTEGER ) * 85 + + NULLIF ( + - COALESCE ( + 13, + 62 * - - 63 - - 99, ( + - 44 ) - + 99 ), + 64 / + - 2 + + 8 + - + ( 51 ) ) WHEN - NULLIF ( + 65, - ( 59 ) * 87 ) / 65 * + + 91 THEN - 47 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6501
SELECT 25 * - 79 * AVG ( DISTINCT - - 27 ) * - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) - - - 81 / + 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6501
SELECT 25 * - 79 * AVG ( DISTINCT - - 27 ) * - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) - - - 81 / + 93 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6502
SELECT ALL - COUNT( * ) * - - 10 * + + 14 - + 84 AS col0, 71 AS col0
----
-224
71

skipif mysql # not compatible
query II rowsort label-6502
SELECT ALL - COUNT ( * ) * - - 10 * + + 14 - + 84 AS col0, 71 AS col0
----
-224
71

query I rowsort
SELECT ALL - ( + NULLIF ( + 33, 56 ) )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT 4 * + COUNT( * ) * 59 + + COUNT( * ) + + MAX( ( - - 51 ) ) AS col2
----
288

skipif mysql # not compatible
query I rowsort label-6504
SELECT 4 * + COUNT ( * ) * 59 + + COUNT ( * ) + + MAX ( ( - - 51 ) ) AS col2
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT COUNT( * ) * - 90 + 78 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-6505
SELECT COUNT ( * ) * - 90 + 78 AS col2
----
-12

query II rowsort
SELECT 87 AS col0, 98 * + 6
----
87
588

query I rowsort
SELECT + 37 * + 56 AS col1
----
2072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6508
SELECT 96 + 12 + - + 0 + - 51 * - 59 - + CAST( + + COALESCE ( + 40, + - 7, 41 - - 5 * + + 82 ) AS SIGNED ) AS col2
----
3077

skipif mysql # not compatible
query I rowsort label-6508
SELECT 96 + 12 + - + 0 + - 51 * - 59 - + CAST ( + + COALESCE ( + 40, + - 7, 41 - - 5 * + + 82 ) AS INTEGER ) AS col2
----
3077

query I rowsort
SELECT ALL + + 89 * 80 AS col1
----
7120

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT DISTINCT SUM( ALL + 99 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-6510
SELECT DISTINCT SUM ( ALL + 99 ) AS col1
----
99

query II rowsort
SELECT ALL - 86 AS col2, + 17
----
-86
17

onlyif mysql # aggregate syntax: 
query II rowsort label-6512
SELECT DISTINCT NULLIF ( 18, 57 * - COUNT( * ) / - 33 + 59 + - + 34 * 60 + + - 3 ) AS col0, + 75 + + 83 * + + COUNT( ALL 75 ) - 85 AS col2
----
18
73

skipif mysql # not compatible
query II rowsort label-6512
SELECT DISTINCT NULLIF ( 18, 57 * - COUNT ( * ) / - 33 + 59 + - + 34 * 60 + + - 3 ) AS col0, + 75 + + 83 * + + COUNT ( ALL 75 ) - 85 AS col2
----
18
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6513
SELECT ALL + + COUNT( * ) * - 70 DIV + 19
----
-3

skipif mysql # not compatible
query I rowsort label-6513
SELECT ALL + + COUNT ( * ) * - 70 / + 19
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT ALL - + 35 + - - 76 * + 91 + COALESCE ( + 93, - CASE 71 WHEN + - 36 THEN - 54 END ) * + 52 + 37 * - COUNT( * ) AS col0
----
11680

skipif mysql # not compatible
query I rowsort label-6514
SELECT ALL - + 35 + - - 76 * + 91 + COALESCE ( + 93, - CASE 71 WHEN + - 36 THEN - 54 END ) * + 52 + 37 * - COUNT ( * ) AS col0
----
11680

query I rowsort
SELECT ALL 56 + + + 31 * - 66 AS col2
----
-1990

query I rowsort
SELECT 38 * 25 * 44
----
41800

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT 73 + + + ( - + COUNT( * ) ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-6517
SELECT 73 + + + ( - + COUNT ( * ) ) AS col2
----
72

query II rowsort
SELECT ALL - 20 * + + 4 col1, 69 AS col1
----
-80
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6519
SELECT 79 / 95 * - + CASE - ( COUNT( * ) ) WHEN - CAST( NULL AS SIGNED ) * + - COUNT( * ) THEN - 76 * - 41 + + 33 WHEN - SUM( + + 89 ) THEN NULL WHEN 51 * + 6 * + + CASE + 95 WHEN 35 THEN NULL WHEN - 49 THEN - + 70 END + MAX( DISTINCT + 41 ) THEN + + 85 END, - 5 AS col1
----
NULL
-5

skipif mysql # not compatible
query II rowsort label-6519
SELECT 79 / 95 * - + CASE - ( COUNT ( * ) ) WHEN - CAST ( NULL AS INTEGER ) * + - COUNT ( * ) THEN - 76 * - 41 + + 33 WHEN - SUM ( + + 89 ) THEN NULL WHEN 51 * + 6 * + + CASE + 95 WHEN 35 THEN NULL WHEN - 49 THEN - + 70 END + MAX ( DISTINCT + 41 ) THEN + + 85 END, - 5 AS col1
----
NULL
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT COUNT( DISTINCT - 80 ) + + 87 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-6520
SELECT COUNT ( DISTINCT - 80 ) + + 87 AS col1
----
88

query I rowsort
SELECT 60 + 59 + + 22
----
141

onlyif mysql # DIV for integer division: 
query I rowsort label-6522
SELECT ALL 97 DIV - 70 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6522
SELECT ALL 97 / - 70 AS col2
----
-1

query II rowsort
SELECT ALL 42 * - 12 + + 6 + + + 54 + + + 45 col2, 79
----
-399
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6524
SELECT ALL + 93 * + - COUNT( * ) + - + 27 * - 33 + + + 74
----
872

skipif mysql # not compatible
query I rowsort label-6524
SELECT ALL + 93 * + - COUNT ( * ) + - + 27 * - 33 + + + 74
----
872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6525
SELECT ALL 49 * - 16 / NULLIF ( + + CASE + 58 WHEN + 83 + + 27 + COUNT( * ) THEN 45 * - ( - - 39 ) / 9 + ( - 79 ) - - 63 * + + 12 WHEN 14 - + 75 / - 24 + + + CAST( NULL AS SIGNED ) THEN 36 END, - - 20 ) * + + 40 * - ( - + MIN( - 93 ) ) / - 49 AS col0, 45
----
NULL
45

skipif mysql # not compatible
query II rowsort label-6525
SELECT ALL 49 * - 16 / NULLIF ( + + CASE + 58 WHEN + 83 + + 27 + COUNT ( * ) THEN 45 * - ( - - 39 ) / 9 + ( - 79 ) - - 63 * + + 12 WHEN 14 - + 75 / - 24 + + + CAST ( NULL AS INTEGER ) THEN 36 END, - - 20 ) * + + 40 * - ( - + MIN ( - 93 ) ) / - 49 AS col0, 45
----
NULL
45

query II rowsort
SELECT 88 * - - 45 AS col0, 33 AS col2
----
3960
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6527
SELECT ALL - 85 DIV - - 17 AS col0, COUNT( * )
----
-5
1

skipif mysql # not compatible
query II rowsort label-6527
SELECT ALL - 85 / - - 17 AS col0, COUNT ( * )
----
-5
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT + COUNT( - 44 ) * + SUM( + 29 ) + ( + - MIN( ALL + 24 ) ) * - + 95 * + 32
----
72989

skipif mysql # not compatible
query I rowsort label-6529
SELECT + COUNT ( - 44 ) * + SUM ( + 29 ) + ( + - MIN ( ALL + 24 ) ) * - + 95 * + 32
----
72989

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6530
SELECT ALL 98 * 72 - + 94 - + - 25 + + COUNT( * ) DIV + 59 * + + 32
----
6987

skipif mysql # not compatible
query I rowsort label-6530
SELECT ALL 98 * 72 - + 94 - + - 25 + + COUNT ( * ) / + 59 * + + 32
----
6987

query I rowsort
SELECT - 35 * + 77 - 31 + + 25 * 8 + + 31 AS col2
----
-2495

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT MIN( + 30 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-6532
SELECT MIN ( + 30 ) AS col0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6533
SELECT - CAST( NULL AS SIGNED ) * + 79 + + 10 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6533
SELECT - CAST ( NULL AS INTEGER ) * + 79 + + 10 col1
----
NULL

query I rowsort
SELECT ALL + - COALESCE ( + 2, + ( + 50 ) ) AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6535
SELECT DISTINCT 19 * + + 29 * - MIN( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6535
SELECT DISTINCT 19 * + + 29 * - MIN ( + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT + + ( 41 ) * + COUNT( * ) * - - COUNT( * ) - + 24 + + COUNT( * ) + + 53 + + 59 + COUNT( * ) * 53 + + 19 + - 74 * + + 48 * - 54 + 69
----
192079

skipif mysql # not compatible
query I rowsort label-6536
SELECT + + ( 41 ) * + COUNT ( * ) * - - COUNT ( * ) - + 24 + + COUNT ( * ) + + 53 + + 59 + COUNT ( * ) * 53 + + 19 + - 74 * + + 48 * - 54 + 69
----
192079

query II rowsort
SELECT + + 26 * + 69 * - 66, 31 AS col2
----
-118404
31

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6539
SELECT + ( + COUNT( * ) ) DIV - CASE CAST( NULL AS SIGNED ) WHEN + 91 THEN NULL WHEN + + 78 * - 52 + COUNT( * ) + - + 19 - - 97 * - 30 * 35 THEN NULL ELSE + 28 END
----
0

skipif mysql # not compatible
query I rowsort label-6539
SELECT + ( + COUNT ( * ) ) / - CASE CAST ( NULL AS INTEGER ) WHEN + 91 THEN NULL WHEN + + 78 * - 52 + COUNT ( * ) + - + 19 - - 97 * - 30 * 35 THEN NULL ELSE + 28 END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT - 70 * ( + - COUNT( * ) ) * COUNT( * ) * + 71 + + COUNT( * )
----
4971

skipif mysql # not compatible
query I rowsort label-6540
SELECT - 70 * ( + - COUNT ( * ) ) * COUNT ( * ) * + 71 + + COUNT ( * )
----
4971

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6541
SELECT DISTINCT - CAST( - 84 AS SIGNED ) * + SUM( DISTINCT + ( - 1 ) ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-6541
SELECT DISTINCT - CAST ( - 84 AS INTEGER ) * + SUM ( DISTINCT + ( - 1 ) ) AS col0
----
-84

query I rowsort
SELECT - - 11 col2
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6543
SELECT ALL - 88 * + - CASE 3 WHEN 74 * 32 + - 32 + + 66 THEN - MIN( - 67 ) WHEN + 14 THEN + 52 WHEN + 65 + + + CAST( NULL AS SIGNED ) THEN NULL WHEN + CASE 20 WHEN + 86 + ( + 76 ) + + COUNT( ALL - 71 ) THEN NULL WHEN + + 53 / + + 53 * COUNT( * ) / + COUNT( ALL - + 74 ) + + CASE + 63 WHEN - 10 THEN - 31 / + 49 WHEN - 56 + - 24 THEN NULL ELSE NULL END - 89 THEN + CAST( NULL AS DECIMAL ) + 7 WHEN - 35 THEN NULL ELSE + - CAST( 39 AS SIGNED ) END * + 88 * 9 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6543
SELECT ALL - 88 * + - CASE 3 WHEN 74 * 32 + - 32 + + 66 THEN - MIN ( - 67 ) WHEN + 14 THEN + 52 WHEN + 65 + + + CAST ( NULL AS INTEGER ) THEN NULL WHEN + CASE 20 WHEN + 86 + ( + 76 ) + + COUNT ( ALL - 71 ) THEN NULL WHEN + + 53 / + + 53 * COUNT ( * ) / + COUNT ( ALL - + 74 ) + + CASE + 63 WHEN - 10 THEN - 31 / + 49 WHEN - 56 + - 24 THEN NULL ELSE NULL END - 89 THEN + CAST ( NULL AS REAL ) + 7 WHEN - 35 THEN NULL ELSE + - CAST ( 39 AS INTEGER ) END * + 88 * 9 THEN NULL END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6544
SELECT ALL - COUNT( * ) + CAST( + COALESCE ( 98, - 25 / + 30 + - + 70 * + COUNT( * ) * + 76 * CAST( + MAX( DISTINCT + 68 ) AS SIGNED ), 48 * 47 * - 59 + + 78 - - - ( + MIN( 23 ) ) / + COALESCE ( - NULLIF ( 26, - 19 ), + 56 ) + + 41 + CAST( COUNT( * ) AS DECIMAL ) * - 43 / SUM( 34 ) + + COUNT( * ) + + COUNT( * ) + + 90 * - - SUM( - 31 ) + 88 * - - 46 ) AS SIGNED )
----
97

skipif mysql # not compatible
query I rowsort label-6544
SELECT ALL - COUNT ( * ) + CAST ( + COALESCE ( 98, - 25 / + 30 + - + 70 * + COUNT ( * ) * + 76 * CAST ( + MAX ( DISTINCT + 68 ) AS INTEGER ), 48 * 47 * - 59 + + 78 - - - ( + MIN ( 23 ) ) / + COALESCE ( - NULLIF ( 26, - 19 ), + 56 ) + + 41 + CAST ( COUNT ( * ) AS REAL ) * - 43 / SUM ( 34 ) + + COUNT ( * ) + + COUNT ( * ) + + 90 * - - SUM ( - 31 ) + 88 * - - 46 ) AS INTEGER )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT DISTINCT SUM( + 93 ) + 82
----
175

skipif mysql # not compatible
query I rowsort label-6545
SELECT DISTINCT SUM ( + 93 ) + 82
----
175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6546
SELECT - 97 * + CAST( + 53 AS SIGNED )
----
-5141

skipif mysql # not compatible
query I rowsort label-6546
SELECT - 97 * + CAST ( + 53 AS INTEGER )
----
-5141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6547
SELECT DISTINCT CASE - CAST( NULL AS SIGNED ) WHEN ( 70 ) - + 60 THEN NULL WHEN + 9 THEN - - 27 + + 30 * + 65 WHEN - - NULLIF ( - + 69, + 94 * 39 - - 16 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6547
SELECT DISTINCT CASE - CAST ( NULL AS INTEGER ) WHEN ( 70 ) - + 60 THEN NULL WHEN + 9 THEN - - 27 + + 30 * + 65 WHEN - - NULLIF ( - + 69, + 94 * 39 - - 16 ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6548
SELECT - MAX( + - 76 ) - - 77 AS col0
----
153

skipif mysql # not compatible
query I rowsort label-6548
SELECT - MAX ( + - 76 ) - - 77 AS col0
----
153

query II rowsort
SELECT 17, + 71 AS col1
----
17
71

query I rowsort
SELECT ALL + 26 - 50 * + 18 AS col1
----
-874

query II rowsort
SELECT - 71 AS col2, + 88 - - 15 + 66 + 90 * 30
----
-71
2869

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6552
SELECT DISTINCT - 99 * - + CAST( - 97 AS SIGNED ) AS col0
----
-9603

skipif mysql # not compatible
query I rowsort label-6552
SELECT DISTINCT - 99 * - + CAST ( - 97 AS INTEGER ) AS col0
----
-9603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6553
SELECT DISTINCT COUNT( * ) DIV + 73 * 81 - 96 * COUNT( * ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-6553
SELECT DISTINCT COUNT ( * ) / + 73 * 81 - 96 * COUNT ( * ) AS col2
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-6554
SELECT 17 DIV - 32 + + ( - + 15 ) + + 46 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-6554
SELECT 17 / - 32 + + ( - + 15 ) + + 46 AS col2
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6555
SELECT ALL COALESCE ( + + 87, MIN( DISTINCT - - 6 ) ) DIV - + 50 - - - 20 + + SUM( ALL - 11 )
----
-32

skipif mysql # not compatible
query I rowsort label-6555
SELECT ALL COALESCE ( + + 87, MIN ( DISTINCT - - 6 ) ) / - + 50 - - - 20 + + SUM ( ALL - 11 )
----
-32

query II rowsort
SELECT + 82 AS col0, - 31
----
82
-31

query I rowsort
SELECT - 25 + - 26
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT + 1 * - 78 * - - 75 * + COALESCE ( - 73, - COUNT( * ) + - COUNT( ALL + + 27 ) )
----
427050

skipif mysql # not compatible
query I rowsort label-6558
SELECT + 1 * - 78 * - - 75 * + COALESCE ( - 73, - COUNT ( * ) + - COUNT ( ALL + + 27 ) )
----
427050

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6559
SELECT DISTINCT COUNT( * ) DIV - 82 * 81 AS col1, + 33 * - - COUNT( * ) AS col1
----
0
33

skipif mysql # not compatible
query II rowsort label-6559
SELECT DISTINCT COUNT ( * ) / - 82 * 81 AS col1, + 33 * - - COUNT ( * ) AS col1
----
0
33

onlyif mysql # aggregate syntax: 
query II rowsort label-6560
SELECT ALL + 75, COUNT( 81 ) + - 92 + + - 42 * ( + + 55 ) AS col0
----
75
-2401

skipif mysql # not compatible
query II rowsort label-6560
SELECT ALL + 75, COUNT ( 81 ) + - 92 + + - 42 * ( + + 55 ) AS col0
----
75
-2401

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6562
SELECT - - NULLIF ( - CAST( NULL AS SIGNED ), CASE - 79 WHEN - 58 THEN NULL WHEN - 99 THEN - + 88 * - 58 ELSE - 43 END * + - 70 ) * - 62 * + - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-6562
SELECT - - NULLIF ( - CAST ( NULL AS INTEGER ), CASE - 79 WHEN - 58 THEN NULL WHEN - 99 THEN - + 88 * - 58 ELSE - 43 END * + - 70 ) * - 62 * + - 24
----
NULL

query I rowsort
SELECT - - 55 * - 56 AS col0
----
-3080

query I rowsort
SELECT + 92 * - 29 + - NULLIF ( - 17, NULLIF ( 88, 77 ) * + 33 * - ( 12 ) )
----
-2651

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6566
SELECT - NULLIF ( + + 62, + 85 + + ( - 15 ) + - CAST( NULL AS SIGNED ) ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-6566
SELECT - NULLIF ( + + 62, + 85 + + ( - 15 ) + - CAST ( NULL AS INTEGER ) ) AS col0
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-6567
SELECT - COUNT( * ) * + 82 - 56 AS col0, - 28
----
-138
-28

skipif mysql # not compatible
query II rowsort label-6567
SELECT - COUNT ( * ) * + 82 - 56 AS col0, - 28
----
-138
-28

query I rowsort
SELECT ALL - + 55 * + - 80
----
4400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6569
SELECT + + NULLIF ( - CAST( NULL AS SIGNED ), + 96 * + 1 * + - COUNT( * ) - 39 ) * 24
----
NULL

skipif mysql # not compatible
query I rowsort label-6569
SELECT + + NULLIF ( - CAST ( NULL AS INTEGER ), + 96 * + 1 * + - COUNT ( * ) - 39 ) * 24
----
NULL

query II rowsort
SELECT DISTINCT + 38, 77 col0
----
38
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT ALL + 73 * COUNT( * ) + - 79 + + - 67 * - 25
----
1669

skipif mysql # not compatible
query I rowsort label-6571
SELECT ALL + 73 * COUNT ( * ) + - 79 + + - 67 * - 25
----
1669

query I rowsort
SELECT + + 78 + 83
----
161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6573
SELECT + COUNT( 65 ) * - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) + - AVG ( 54 ) - - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-6573
SELECT + COUNT ( 65 ) * - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) + - AVG ( 54 ) - - 14
----
NULL

query I rowsort
SELECT ALL 21 * + 23 AS col0
----
483

query I rowsort
SELECT ALL 80 + + 15
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6576
SELECT DISTINCT 50 DIV 11 * + MAX( + 86 ) AS col2
----
344

skipif mysql # not compatible
query I rowsort label-6576
SELECT DISTINCT 50 / 11 * + MAX ( + 86 ) AS col2
----
344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6577
SELECT ALL CASE ( - MAX( DISTINCT 26 ) ) WHEN + 60 THEN + COALESCE ( CAST( 86 AS SIGNED ), - + 69 + - - CAST( 31 AS SIGNED ) + + 25 ) + + COUNT( * ) / ( - COALESCE ( - 24, + + 6 ) ) * - 87 * + 9 ELSE + 18 END AS col0
----
18

skipif mysql # not compatible
query I rowsort label-6577
SELECT ALL CASE ( - MAX ( DISTINCT 26 ) ) WHEN + 60 THEN + COALESCE ( CAST ( 86 AS INTEGER ), - + 69 + - - CAST ( 31 AS INTEGER ) + + 25 ) + + COUNT ( * ) / ( - COALESCE ( - 24, + + 6 ) ) * - 87 * + 9 ELSE + 18 END AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT ALL 85 * - COUNT( ALL + 33 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-6578
SELECT ALL 85 * - COUNT ( ALL + 33 ) AS col0
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-6579
SELECT DISTINCT ( - 72 ) col1, 80 + - 94 * - + MIN( - 0 ) - + 33
----
-72
47

skipif mysql # not compatible
query II rowsort label-6579
SELECT DISTINCT ( - 72 ) col1, 80 + - 94 * - + MIN ( - 0 ) - + 33
----
-72
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6580
SELECT DISTINCT - 50 * + CAST( 54 AS SIGNED ) AS col1
----
-2700

skipif mysql # not compatible
query I rowsort label-6580
SELECT DISTINCT - 50 * + CAST ( 54 AS INTEGER ) AS col1
----
-2700

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT ALL - ( + + NULLIF ( 1, - 68 * SUM( DISTINCT + 65 ) + - 17 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6581
SELECT ALL - ( + + NULLIF ( 1, - 68 * SUM ( DISTINCT + 65 ) + - 17 ) ) AS col2
----
-1

query I rowsort
SELECT 23 * + 9 * 19 AS col1
----
3933

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6583
SELECT ALL - NULLIF ( + + 32, + - ( + 64 ) * MIN( DISTINCT + - ( + - 62 ) ) + + 96 ) * + CAST( NULL AS SIGNED ) * - 12 + + + 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6583
SELECT ALL - NULLIF ( + + 32, + - ( + 64 ) * MIN ( DISTINCT + - ( + - 62 ) ) + + 96 ) * + CAST ( NULL AS INTEGER ) * - 12 + + + 23 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6584
SELECT - 50 - + + CAST( - 91 AS SIGNED ) * 27 * - 34 * 68
----
-5680634

skipif mysql # not compatible
query I rowsort label-6584
SELECT - 50 - + + CAST ( - 91 AS INTEGER ) * 27 * - 34 * 68
----
-5680634

query I rowsort
SELECT DISTINCT + 48 * + 25 AS col2
----
1200

onlyif mysql # aggregate syntax: 
query I rowsort label-6586
SELECT - CASE + - 81 WHEN + - COALESCE ( + 67, + + 49 + 92, + 99 * 25 * + 50 ) - - - 61 THEN - NULLIF ( + 50, + - 42 ) + 78 END * - ( - COUNT( * ) ) + + 29 + - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-6586
SELECT - CASE + - 81 WHEN + - COALESCE ( + 67, + + 49 + 92, + 99 * 25 * + 50 ) - - - 61 THEN - NULLIF ( + 50, + - 42 ) + 78 END * - ( - COUNT ( * ) ) + + 29 + - 35
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6587
SELECT ALL + COUNT( * ) * COALESCE ( CAST( NULL AS SIGNED ), + ( 40 ), 75 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-6587
SELECT ALL + COUNT ( * ) * COALESCE ( CAST ( NULL AS INTEGER ), + ( 40 ), 75 ) AS col2
----
40

query I rowsort
SELECT - 77 * 57 * - 13 AS col1
----
57057

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6589
SELECT ALL + 98 + + 79 + - CAST( NULL AS DECIMAL ) * - 72 * 32
----
NULL

skipif mysql # not compatible
query I rowsort label-6589
SELECT ALL + 98 + + 79 + - CAST ( NULL AS REAL ) * - 72 * 32
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6590
SELECT + 16 + 15 DIV - 94
----
16

skipif mysql # not compatible
query I rowsort label-6590
SELECT + 16 + 15 / - 94
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6591
SELECT CAST( NULL AS SIGNED ) + - 70 / + 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6591
SELECT CAST ( NULL AS INTEGER ) + - 70 / + 21 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6592
SELECT COALESCE ( - + 49, - COUNT( * ) ) DIV - + NULLIF ( + - 89, - 26 ) - - - 5 + - ( - 30 )
----
25

skipif mysql # not compatible
query I rowsort label-6592
SELECT COALESCE ( - + 49, - COUNT ( * ) ) / - + NULLIF ( + - 89, - 26 ) - - - 5 + - ( - 30 )
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-6593
SELECT ALL + 54 * 29 * 78 DIV 53 * - - NULLIF ( + - 41, - 27 * 93 * - 62 * + + 75 ) * + 66 - - - ( 99 ) AS col2
----
-6234723

skipif mysql # not compatible
query I rowsort label-6593
SELECT ALL + 54 * 29 * 78 / 53 * - - NULLIF ( + - 41, - 27 * 93 * - 62 * + + 75 ) * + 66 - - - ( 99 ) AS col2
----
-6234723

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6594
SELECT DISTINCT - 96 + MAX( DISTINCT 38 ) * - 15 + + ( + SUM( ALL + 52 ) ) DIV 42 + - 18 * + 5
----
-755

skipif mysql # not compatible
query I rowsort label-6594
SELECT DISTINCT - 96 + MAX ( DISTINCT 38 ) * - 15 + + ( + SUM ( ALL + 52 ) ) / 42 + - 18 * + 5
----
-755

query I rowsort
SELECT ALL + - 82 + 42 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT ALL - 63 + + + ( SUM( + 6 ) ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-6596
SELECT ALL - 63 + + + ( SUM ( + 6 ) ) AS col2
----
-57

query I rowsort
SELECT DISTINCT + 4 + + 77 * + - ( + + 49 ) + 54
----
-3715

query I rowsort
SELECT ALL 9 + - ( - 67 ) col2
----
76

query I rowsort
SELECT 71 + + 12 * - 89 AS col1
----
-997

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6600
SELECT ALL + - MIN( 10 ) DIV 58 + + 56
----
56

skipif mysql # not compatible
query I rowsort label-6600
SELECT ALL + - MIN ( 10 ) / 58 + + 56
----
56

query I rowsort
SELECT - 93 + - 3
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6602
SELECT - MIN( + CASE - - 56 WHEN 25 THEN - 53 * - 39 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6602
SELECT - MIN ( + CASE - - 56 WHEN 25 THEN - 53 * - 39 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6603
SELECT ALL + - 15 + + ( COUNT( * ) ) col2
----
-14

skipif mysql # not compatible
query I rowsort label-6603
SELECT ALL + - 15 + + ( COUNT ( * ) ) col2
----
-14

query I rowsort
SELECT 10 + 34 AS col0
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6605
SELECT ALL - NULLIF ( - 27, - 59 + - COUNT( - 83 ) ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6605
SELECT ALL - NULLIF ( - 27, - 59 + - COUNT ( - 83 ) ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6606
SELECT ( NULLIF ( + CAST( 97 AS SIGNED ), + 20 + 88 + - 43 ) ) * + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-6606
SELECT ( NULLIF ( + CAST ( 97 AS INTEGER ), + 20 + 88 + - 43 ) ) * + COUNT ( * )
----
97

query I rowsort
SELECT DISTINCT + 16 * - 97
----
-1552

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

skipif mysql # not compatible
query I rowsort label-6608
SELECT ALL + 98 * + - COUNT ( * ) AS col0
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6609
SELECT - 66 AS col0, - CAST( NULL AS SIGNED ) AS col1
----
-66
NULL

skipif mysql # not compatible
query II rowsort label-6609
SELECT - 66 AS col0, - CAST ( NULL AS INTEGER ) AS col1
----
-66
NULL

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6612
SELECT 94 + 85 - + COUNT( * ), COALESCE ( COUNT( * ), + COUNT( * ) - - + ( 74 ) * + + 98 ) DIV 41 * + - ( + 16 ) AS col0
----
178
0

skipif mysql # not compatible
query II rowsort label-6612
SELECT 94 + 85 - + COUNT ( * ), COALESCE ( COUNT ( * ), + COUNT ( * ) - - + ( 74 ) * + + 98 ) / 41 * + - ( + 16 ) AS col0
----
178
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6613
SELECT ALL MIN( + 99 ) DIV - 80
----
-1

skipif mysql # not compatible
query I rowsort label-6613
SELECT ALL MIN ( + 99 ) / - 80
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6614
SELECT ALL + CASE 49 WHEN + + 81 + NULLIF ( - 39, - + COUNT( * ) ) THEN - + 2 END + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-6614
SELECT ALL + CASE 49 WHEN + + 81 + NULLIF ( - 39, - + COUNT ( * ) ) THEN - + 2 END + 37
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6615
SELECT MIN ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6618
SELECT 39 + - CAST( NULL AS SIGNED ) + 79 - + - MAX( ALL 17 ) AS col0, 15
----
NULL
15

skipif mysql # not compatible
query II rowsort label-6618
SELECT 39 + - CAST ( NULL AS INTEGER ) + 79 - + - MAX ( ALL 17 ) AS col0, 15
----
NULL
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6619
SELECT + COUNT( ALL ( + CAST( NULL AS SIGNED ) ) ), SUM( ALL - 81 ) AS col1
----
0
-81

skipif mysql # not compatible
query II rowsort label-6619
SELECT + COUNT ( ALL ( + CAST ( NULL AS INTEGER ) ) ), SUM ( ALL - 81 ) AS col1
----
0
-81

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6621
SELECT + COUNT( * ) * + - 13 + - SUM( + 57 ) DIV + - 33
----
-12

skipif mysql # not compatible
query I rowsort label-6621
SELECT + COUNT ( * ) * + - 13 + - SUM ( + 57 ) / + - 33
----
-12

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

query I rowsort
SELECT ALL 97 + - - 61 * + - 78
----
-4661

query I rowsort
SELECT ALL + 3 * + + 33
----
99

query I rowsort
SELECT ALL 10 + - - 25 * + ( 9 ) AS col0
----
235

query I rowsort
SELECT DISTINCT + 34 + 30 AS col1
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-6627
SELECT 52 AS col1, + 42 * - COUNT( * ) AS col0
----
52
-42

skipif mysql # not compatible
query II rowsort label-6627
SELECT 52 AS col1, + 42 * - COUNT ( * ) AS col0
----
52
-42

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6629
SELECT + NULLIF ( + 44, + + 7 * 39 * - CAST( NULL AS SIGNED ) * - - 41 ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-6629
SELECT + NULLIF ( + 44, + + 7 * 39 * - CAST ( NULL AS INTEGER ) * - - 41 ) AS col2
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-6630
SELECT - 67 * SUM( ALL - 71 ) * + ( + + COUNT( * ) ) - + 74 AS col2, - 76
----
4683
-76

skipif mysql # not compatible
query II rowsort label-6630
SELECT - 67 * SUM ( ALL - 71 ) * + ( + + COUNT ( * ) ) - + 74 AS col2, - 76
----
4683
-76

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

query I rowsort
SELECT ALL - - 83 col0
----
83

query II rowsort
SELECT ALL - + 83 - 3 + - - 0 + - 65 + - 65 * 97 + + 87 * 1, ( - 44 ) * + + 52 AS col1
----
-6369
-2288

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

skipif mysql # not compatible
query II rowsort label-6634
SELECT + 94, + COUNT ( * ) col2
----
94
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6635
SELECT DISTINCT CASE + - COUNT( * ) WHEN - 73 THEN 11 WHEN 74 - + + 34 THEN NULL END col0, - 79 * + 69
----
NULL
-5451

skipif mysql # not compatible
query II rowsort label-6635
SELECT DISTINCT CASE + - COUNT ( * ) WHEN - 73 THEN 11 WHEN 74 - + + 34 THEN NULL END col0, - 79 * + 69
----
NULL
-5451

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6636
SELECT ALL 56 AS col1, + ( COALESCE ( + 30, - + COUNT( * ) DIV + 44 + COUNT( * ) - 47 DIV + CASE - 24 WHEN + + 89 - - - 62 THEN NULLIF ( + 28, + 22 + 47 * - COUNT( * ) * + COUNT( - + 51 ) ) * 42 WHEN - + 23 THEN NULL ELSE 12 * + 31 END + 5 * - 50 * 20, - 38 DIV + - 42 + - 28 ) ) AS col2
----
56
30

skipif mysql # not compatible
query II rowsort label-6636
SELECT ALL 56 AS col1, + ( COALESCE ( + 30, - + COUNT ( * ) / + 44 + COUNT ( * ) - 47 / + CASE - 24 WHEN + + 89 - - - 62 THEN NULLIF ( + 28, + 22 + 47 * - COUNT ( * ) * + COUNT ( - + 51 ) ) * 42 WHEN - + 23 THEN NULL ELSE 12 * + 31 END + 5 * - 50 * 20, - 38 / + - 42 + - 28 ) ) AS col2
----
56
30

query I rowsort
SELECT - NULLIF ( - 44, - - 86 ) - + 17
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6638
SELECT DISTINCT - COUNT( * ) DIV 32 * - CAST( + 19 AS SIGNED ) * - ( + 61 ) * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6638
SELECT DISTINCT - COUNT ( * ) / 32 * - CAST ( + 19 AS INTEGER ) * - ( + 61 ) * COUNT ( * )
----
0

query I rowsort
SELECT - 3 + - ( - 26 ) AS col2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6640
SELECT - 8 - + 68 * - ( - COALESCE ( + - 98, 72 ) ) + ( - 95 ) + 19 AS col2, + CAST( NULL AS SIGNED )
----
6580
NULL

skipif mysql # not compatible
query II rowsort label-6640
SELECT - 8 - + 68 * - ( - COALESCE ( + - 98, 72 ) ) + ( - 95 ) + 19 AS col2, + CAST ( NULL AS INTEGER )
----
6580
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6641
SELECT - 20 DIV + + 58
----
0

skipif mysql # not compatible
query I rowsort label-6641
SELECT - 20 / + + 58
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6642
SELECT + 26 / - - CASE + 69 WHEN + SUM( DISTINCT + 98 ) * - COUNT( * ) THEN NULL WHEN + 38 / - COALESCE ( + 38, - + 60 ) THEN + COALESCE ( - - 43, + - CAST( NULL AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6642
SELECT + 26 / - - CASE + 69 WHEN + SUM ( DISTINCT + 98 ) * - COUNT ( * ) THEN NULL WHEN + 38 / - COALESCE ( + 38, - + 60 ) THEN + COALESCE ( - - 43, + - CAST ( NULL AS INTEGER ) ) END
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - 66, + 99 + + ( + + ( - 74 ) ) )
----
-66

query I rowsort
SELECT - ( + 77 ) + - 1
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-6645
SELECT - 25, 64 - 76 + - COUNT( * ) AS col1
----
-25
-13

skipif mysql # not compatible
query II rowsort label-6645
SELECT - 25, 64 - 76 + - COUNT ( * ) AS col1
----
-25
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6646
SELECT DISTINCT NULLIF ( + 34, - + COUNT( * ) ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-6646
SELECT DISTINCT NULLIF ( + 34, - + COUNT ( * ) ) AS col0
----
34

query I rowsort
SELECT ALL + 68 * 80
----
5440

query I rowsort
SELECT - 66 * - + 4 AS col0
----
264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6649
SELECT ALL CAST( NULL AS SIGNED ) + - NULLIF ( - - 68, - + 21 ) * - COALESCE ( + 7, - COUNT( ALL 1 ) + + 82 + - 30 / - 22 * - 77, ( + + COUNT( * ) ) * - - CAST( NULL AS SIGNED ) - CASE + MAX( DISTINCT - 86 ) WHEN + 72 THEN 86 END / + AVG ( - 62 ) * + - 51 ) + + 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6649
SELECT ALL CAST ( NULL AS INTEGER ) + - NULLIF ( - - 68, - + 21 ) * - COALESCE ( + 7, - COUNT ( ALL 1 ) + + 82 + - 30 / - 22 * - 77, ( + + COUNT ( * ) ) * - - CAST ( NULL AS INTEGER ) - CASE + MAX ( DISTINCT - 86 ) WHEN + 72 THEN 86 END / + AVG ( - 62 ) * + - 51 ) + + 88 AS col0
----
NULL

query II rowsort
SELECT ALL 89 AS col2, 1 * + 75
----
89
75

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

skipif mysql # not compatible
query I rowsort label-6651
SELECT - 30 / + 57
----
0

query I rowsort
SELECT - NULLIF ( 44, 46 )
----
-44

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

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

query II rowsort
SELECT + 86 col0, 95 AS col1
----
86
95

query I rowsort
SELECT + 98 + - + 42 + + 83 + - 36 AS col2
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6656
SELECT DISTINCT - MIN( 50 ) * ( - - 46 ) * + + 6 + 82 col2, ( - - ( - ( + 7 ) ) ) * - CAST( NULL AS SIGNED ) AS col0
----
-13718
NULL

skipif mysql # not compatible
query II rowsort label-6656
SELECT DISTINCT - MIN ( 50 ) * ( - - 46 ) * + + 6 + 82 col2, ( - - ( - ( + 7 ) ) ) * - CAST ( NULL AS INTEGER ) AS col0
----
-13718
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6657
SELECT ALL - - COUNT( * ) * + CAST( + 47 AS SIGNED ) + + + 77 * 70 col0
----
5437

skipif mysql # not compatible
query I rowsort label-6657
SELECT ALL - - COUNT ( * ) * + CAST ( + 47 AS INTEGER ) + + + 77 * 70 col0
----
5437

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT DISTINCT + 4 * - COUNT( - - 74 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-6658
SELECT DISTINCT + 4 * - COUNT ( - - 74 ) AS col2
----
-4

query I rowsort
SELECT ALL + 46 * 21 * + + 95 AS col1
----
91770

query II rowsort
SELECT ALL + + 22 AS col2, 72 * - 34 - + - 36 AS col1
----
22
-2412

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6661
SELECT + 1 DIV - MIN( 81 )
----
0

skipif mysql # not compatible
query I rowsort label-6661
SELECT + 1 / - MIN ( 81 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6662
SELECT DISTINCT + - SUM( 47 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-6662
SELECT DISTINCT + - SUM ( 47 ) AS col0
----
-47

query I rowsort
SELECT ALL + COALESCE ( + 67, + - 78 + + 45 + - 3 )
----
67

query II rowsort
SELECT DISTINCT + + 6 AS col0, 29
----
6
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT COUNT( * ) * 53 + + - 36 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-6665
SELECT COUNT ( * ) * 53 + + - 36 AS col0
----
17

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6667
SELECT ALL 21 * + + 43 AS col2, 48 + - - 80 + 10 + - - 21 DIV 60
----
903
138

skipif mysql # not compatible
query II rowsort label-6667
SELECT ALL 21 * + + 43 AS col2, 48 + - - 80 + 10 + - - 21 / 60
----
903
138

query I rowsort
SELECT + 44 * 7 col0
----
308

query I rowsort
SELECT + ( - NULLIF ( 53, 2 / + + 67 / - + 10 ) )
----
-53

query I rowsort
SELECT ALL - NULLIF ( - 62, 15 ) * - 62 AS col2
----
-3844

query I rowsort
SELECT DISTINCT 20 * + 53 AS col0
----
1060

query I rowsort
SELECT - 90 + + + 27 AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT DISTINCT MIN( - NULLIF ( + + 76, + 33 ) ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-6673
SELECT DISTINCT MIN ( - NULLIF ( + + 76, + 33 ) ) AS col0
----
-76

query I rowsort
SELECT DISTINCT - ( + 93 ) + - 60 AS col2
----
-153

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

skipif mysql # not compatible
query I rowsort label-6675
SELECT ALL + COUNT ( * ) + - 15 AS col1
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6676
SELECT ALL CASE + 57 WHEN - + 78 THEN + ( - CAST( + 54 AS SIGNED ) ) WHEN 45 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6676
SELECT ALL CASE + 57 WHEN - + 78 THEN + ( - CAST ( + 54 AS INTEGER ) ) WHEN 45 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT + COUNT( * ) - 3 - - 43 - + + 17 * 50 * - COUNT( * )
----
891

skipif mysql # not compatible
query I rowsort label-6677
SELECT + COUNT ( * ) - 3 - - 43 - + + 17 * 50 * - COUNT ( * )
----
891

query I rowsort
SELECT - 19 * + 1 AS col1
----
-19

query I rowsort
SELECT ALL + 37 + + + NULLIF ( - - 7, - 8 ) AS col2
----
44

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

skipif mysql # not compatible
query I rowsort label-6680
SELECT DISTINCT + COUNT ( * ) * - 61 AS col0
----
-61

query I rowsort
SELECT ALL + 36 * + 74 + 71
----
2735

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6682
SELECT CASE + - 41 WHEN - CAST( NULL AS SIGNED ) THEN - 99 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6682
SELECT CASE + - 41 WHEN - CAST ( NULL AS INTEGER ) THEN - 99 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6683
SELECT ALL - ( + COUNT( * ) ) + + - CASE - COUNT( * ) WHEN CAST( NULL AS SIGNED ) + + 95 * + + 85 THEN - 0 - + 12 * - 67 END + 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6683
SELECT ALL - ( + COUNT ( * ) ) + + - CASE - COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) + + 95 * + + 85 THEN - 0 - + 12 * - 67 END + 9 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 19 + + 45
----
26

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6686
SELECT ALL + COALESCE ( + 30, - 62 ) + + 28 + + COUNT( * ) AS col2, 15
----
59
15

skipif mysql # not compatible
query II rowsort label-6686
SELECT ALL + COALESCE ( + 30, - 62 ) + + 28 + + COUNT ( * ) AS col2, 15
----
59
15

onlyif mysql # aggregate syntax: 
query II rowsort label-6687
SELECT ALL - 86 - 86 col0, 3 * + COUNT( * ) * - + 65 * - + 58 - - + 2
----
-172
11312

skipif mysql # not compatible
query II rowsort label-6687
SELECT ALL - 86 - 86 col0, 3 * + COUNT ( * ) * - + 65 * - + 58 - - + 2
----
-172
11312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6688
SELECT ALL - CAST( + 45 AS SIGNED ) * - - 99 AS col1
----
-4455

skipif mysql # not compatible
query I rowsort label-6688
SELECT ALL - CAST ( + 45 AS INTEGER ) * - - 99 AS col1
----
-4455

query I rowsort
SELECT DISTINCT + + NULLIF ( + 20, + 16 ) AS col2
----
20

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

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

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

skipif mysql # not compatible
query I rowsort label-6691
SELECT DISTINCT 33 / ( + 53 ) - 53 AS col1
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-6692
SELECT DISTINCT + 93 DIV + 75
----
1

skipif mysql # not compatible
query I rowsort label-6692
SELECT DISTINCT + 93 / + 75
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6693
SELECT ALL - + NULLIF ( + - COUNT( * ), - + 39 + + 75 ) / - + CASE WHEN NOT + ( + - COALESCE ( - 19, + MIN( + 49 ) * NULLIF ( - + 61, - 58 ) ) ) NOT IN ( 15 / MIN( + 36 ), ( + 20 ) * + 42, + 83, 69, - - COUNT( * ), + 98 * + + 68 * - MAX( ALL + 21 ) / - + COUNT( * ) - - 50 + 74 + + 73 + + 90 * + 79 * + 84 * - MAX( - 10 ) + + - 92 - - 44 + + 29 * + 8 * - 86 * - 74, CAST( + - COUNT( * ) AS SIGNED ) ) THEN + 99 ELSE NULL END + + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-6693
SELECT ALL - + NULLIF ( + - COUNT ( * ), - + 39 + + 75 ) / - + CASE WHEN NOT + ( + - COALESCE ( - 19, + MIN ( + 49 ) * NULLIF ( - + 61, - 58 ) ) ) NOT IN ( 15 / MIN ( + 36 ), ( + 20 ) * + 42, + 83, 69, - - COUNT ( * ), + 98 * + + 68 * - MAX ( ALL + 21 ) / - + COUNT ( * ) - - 50 + 74 + + 73 + + 90 * + 79 * + 84 * - MAX ( - 10 ) + + - 92 - - 44 + + 29 * + 8 * - 86 * - 74, CAST ( + - COUNT ( * ) AS INTEGER ) ) THEN + 99 ELSE NULL END + + 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6694
SELECT DISTINCT - 32 * + ( - COUNT( * ) ) * + - ( + 71 ) AS col1
----
-2272

skipif mysql # not compatible
query I rowsort label-6694
SELECT DISTINCT - 32 * + ( - COUNT ( * ) ) * + - ( + 71 ) AS col1
----
-2272

onlyif mysql # aggregate syntax: 
query II rowsort label-6695
SELECT ALL - + SUM( + 3 ), - 74 AS col1
----
-3
-74

skipif mysql # not compatible
query II rowsort label-6695
SELECT ALL - + SUM ( + 3 ), - 74 AS col1
----
-3
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-6696
SELECT ALL + 99 * - 68 AS col0, + 76 + - COUNT( * ) AS col1
----
-6732
75

skipif mysql # not compatible
query II rowsort label-6696
SELECT ALL + 99 * - 68 AS col0, + 76 + - COUNT ( * ) AS col1
----
-6732
75

onlyif mysql # DIV for integer division: 
query I rowsort label-6697
SELECT - 1 DIV + + 84
----
0

skipif mysql # not compatible
query I rowsort label-6697
SELECT - 1 / + + 84
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6698
SELECT SUM( ALL - 27 ) DIV + - 65 col1
----
0

skipif mysql # not compatible
query I rowsort label-6698
SELECT SUM ( ALL - 27 ) / + - 65 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT COALESCE ( + 31, + + 42 ) * CASE COUNT( * ) WHEN + ( + - 90 ) THEN + 23 + COUNT( * ) - 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6699
SELECT COALESCE ( + 31, + + 42 ) * CASE COUNT ( * ) WHEN + ( + - 90 ) THEN + 23 + COUNT ( * ) - 58 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6700
SELECT ALL - 59, CAST( + + 45 AS SIGNED ) AS col2
----
-59
45

skipif mysql # not compatible
query II rowsort label-6700
SELECT ALL - 59, CAST ( + + 45 AS INTEGER ) AS col2
----
-59
45

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

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

query I rowsort
SELECT 4 * + 0 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6703
SELECT NULLIF ( - + 6, - COUNT( * ) + - 72 - - ( - + CAST( + - 0 AS SIGNED ) ) ) + 36 AS col1, 10, 34 * + + CAST( NULL AS SIGNED ) AS col1
----
30
10
NULL

skipif mysql # not compatible
query III rowsort label-6703
SELECT NULLIF ( - + 6, - COUNT ( * ) + - 72 - - ( - + CAST ( + - 0 AS INTEGER ) ) ) + 36 AS col1, 10, 34 * + + CAST ( NULL AS INTEGER ) AS col1
----
30
10
NULL

query I rowsort
SELECT ALL 55 + 25 AS col1
----
80

query II rowsort
SELECT 87 AS col0, + ( - 5 ) AS col0
----
87
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6706
SELECT ALL COUNT( 22 ) + + 29 + + CAST( NULL AS SIGNED ) + 28 + + 52 * - 0 * - 64 * 28 - - 1 + + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-6706
SELECT ALL COUNT ( 22 ) + + 29 + + CAST ( NULL AS INTEGER ) + 28 + + 52 * - 0 * - 64 * 28 - - 1 + + 80
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT ALL - COUNT( * ) + - + 45 + + 71 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-6707
SELECT ALL - COUNT ( * ) + - + 45 + + 71 AS col0
----
25

query I rowsort
SELECT 33 - NULLIF ( 80, 98 ) + - + 18 AS col1
----
-65

query II rowsort
SELECT DISTINCT ( + - 25 ) + + 56 col2, 34
----
31
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6710
SELECT CAST( NULL AS SIGNED ) + + + 88 + 93 * + - 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6710
SELECT CAST ( NULL AS INTEGER ) + + + 88 + 93 * + - 0 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6711
SELECT 25 col2, CASE 13 WHEN - + CAST( + COALESCE ( - CAST( NULL AS SIGNED ), + 64 * + - 12 ) AS SIGNED ) THEN NULL ELSE + - 83 * - 2 END * 1 AS col0
----
25
166

skipif mysql # not compatible
query II rowsort label-6711
SELECT 25 col2, CASE 13 WHEN - + CAST ( + COALESCE ( - CAST ( NULL AS INTEGER ), + 64 * + - 12 ) AS INTEGER ) THEN NULL ELSE + - 83 * - 2 END * 1 AS col0
----
25
166

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT ALL - CASE + 37 WHEN + ( 6 ) THEN + COUNT( * ) END + - NULLIF ( 25, - + COUNT( * ) ) + + 16 * + 16 * - - ( + 47 ) * - ( - 22 ) - + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-6712
SELECT ALL - CASE + 37 WHEN + ( 6 ) THEN + COUNT ( * ) END + - NULLIF ( 25, - + COUNT ( * ) ) + + 16 * + 16 * - - ( + 47 ) * - ( - 22 ) - + 50
----
NULL

query I rowsort
SELECT 42 + + 57
----
99

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

skipif mysql # not compatible
query I rowsort label-6714
SELECT MAX ( DISTINCT 38 )
----
38

query II rowsort
SELECT ALL - 12 AS col0, 38 - + ( + + 16 )
----
-12
22

query I rowsort
SELECT ALL + + 73 - - - 13
----
60

query I rowsort
SELECT 15 * 92
----
1380

onlyif mysql # aggregate syntax: 
query II rowsort label-6718
SELECT ALL 82 AS col1, COUNT( * ) + - - 17
----
82
18

skipif mysql # not compatible
query II rowsort label-6718
SELECT ALL 82 AS col1, COUNT ( * ) + - - 17
----
82
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6719
SELECT 2 + + MIN( ALL - 73 ) + + 47 + - CAST( NULL AS SIGNED ) * 18
----
NULL

skipif mysql # not compatible
query I rowsort label-6719
SELECT 2 + + MIN ( ALL - 73 ) + + 47 + - CAST ( NULL AS INTEGER ) * 18
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6720
SELECT DISTINCT + CAST( - SUM( DISTINCT + 80 ) AS SIGNED ) - 16
----
-96

skipif mysql # not compatible
query I rowsort label-6720
SELECT DISTINCT + CAST ( - SUM ( DISTINCT + 80 ) AS INTEGER ) - 16
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-6721
SELECT + 43 * + 24 DIV ( 94 ) DIV + 11 + - 63
----
-63

skipif mysql # not compatible
query I rowsort label-6721
SELECT + 43 * + 24 / ( 94 ) / + 11 + - 63
----
-63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6722
SELECT + 83 + - CAST( NULL AS DECIMAL ) + + + 26 * - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-6722
SELECT + 83 + - CAST ( NULL AS REAL ) + + + 26 * - 66
----
NULL

query I rowsort
SELECT 40 * + 55
----
2200

onlyif mysql # aggregate syntax: 
query II rowsort label-6724
SELECT MIN( DISTINCT + 8 ) * ( - 75 ) AS col0, 90 + - 0
----
-600
90

skipif mysql # not compatible
query II rowsort label-6724
SELECT MIN ( DISTINCT + 8 ) * ( - 75 ) AS col0, 90 + - 0
----
-600
90

query I rowsort
SELECT DISTINCT - + 2 * 92 col2
----
-184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6726
SELECT CAST( - - 83 AS SIGNED ) * + 67 AS col2
----
5561

skipif mysql # not compatible
query I rowsort label-6726
SELECT CAST ( - - 83 AS INTEGER ) * + 67 AS col2
----
5561

query I rowsort
SELECT ALL - - 77 * + + 52
----
4004

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6728
SELECT SUM( DISTINCT - 12 ) DIV + + 78 - 2 - + + 8 * + + COUNT( * ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-6728
SELECT SUM ( DISTINCT - 12 ) / + + 78 - 2 - + + 8 * + + COUNT ( * ) AS col0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6729
SELECT + + 8 * - 69 / - CAST( NULL AS SIGNED ) + + 11 + 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6729
SELECT + + 8 * - 69 / - CAST ( NULL AS INTEGER ) + + 11 + 13 AS col0
----
NULL

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

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

query I rowsort
SELECT 43 * - 17 col0
----
-731

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

skipif mysql # not compatible
query I rowsort label-6732
SELECT CAST ( NULL AS INTEGER ) / - 93 + 64
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6733
SELECT COUNT ( * ) / - 40 / ( + + 6 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6734
SELECT ALL + 36 + + 99 * ( CAST( NULL AS SIGNED ) ) + 25 + 31 * + - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-6734
SELECT ALL + 36 + + 99 * ( CAST ( NULL AS INTEGER ) ) + 25 + 31 * + - 82
----
NULL

query I rowsort
SELECT 8 * + 85 + + 65 - - - 1
----
744

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT ALL 61 + - 18 - - - 47 + - COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-6736
SELECT ALL 61 + - 18 - - - 47 + - COUNT ( * )
----
-5

query I rowsort
SELECT DISTINCT CASE WHEN NULL IS NOT NULL THEN 39 ELSE NULL END + + + ( - 23 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6738
SELECT ALL 25 * - 8 * + 79 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6738
SELECT ALL 25 * - 8 * + 79 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6739
SELECT COUNT( * ) * 97 * + - 40 AS col2
----
-3880

skipif mysql # not compatible
query I rowsort label-6739
SELECT COUNT ( * ) * 97 * + - 40 AS col2
----
-3880

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT COUNT( * ) * - 17 + - + ( 39 ) col0
----
-56

skipif mysql # not compatible
query I rowsort label-6740
SELECT COUNT ( * ) * - 17 + - + ( 39 ) col0
----
-56

query II rowsort
SELECT 23 * + - 0 AS col0, 3 + + - 77 AS col2
----
0
-74

query I rowsort
SELECT DISTINCT 13 - + 53 * - + 23
----
1232

onlyif mysql # aggregate syntax: 
query I rowsort label-6743
SELECT 86 - 39 + COUNT( * ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-6743
SELECT 86 - 39 + COUNT ( * ) AS col2
----
48

query II rowsort
SELECT 60 + 24 col1, 14
----
84
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6745
SELECT ALL - 84 - + + CAST( NULL AS SIGNED ) col0, - NULLIF ( 27, + CAST( NULL AS SIGNED ) ) AS col0
----
NULL
-27

skipif mysql # not compatible
query II rowsort label-6745
SELECT ALL - 84 - + + CAST ( NULL AS INTEGER ) col0, - NULLIF ( 27, + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT - + MIN( ALL 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-6746
SELECT - + MIN ( ALL 42 )
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6747
SELECT 9 / - 93 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6747
SELECT 9 / - 93 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 41 * - 89
----
-3649

query I rowsort
SELECT 40 * + 86
----
3440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6750
SELECT - 7 DIV - 27 * 25 * + + 8 + + SUM( DISTINCT 32 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-6750
SELECT - 7 / - 27 * 25 * + + 8 + + SUM ( DISTINCT 32 ) AS col1
----
32

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6752
SELECT DISTINCT + COUNT( DISTINCT - 39 ) + - ( + ( + - 44 ) ) + + 14 * - - 59 + 5 DIV - ( - - 3 ) + + + 43 + + 33
----
946

skipif mysql # not compatible
query I rowsort label-6752
SELECT DISTINCT + COUNT ( DISTINCT - 39 ) + - ( + ( + - 44 ) ) + + 14 * - - 59 + 5 / - ( - - 3 ) + + + 43 + + 33
----
946

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6754
SELECT + + 77 DIV - ( - CAST( - 7 AS SIGNED ) ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-6754
SELECT + + 77 / - ( - CAST ( - 7 AS INTEGER ) ) AS col0
----
-11

query I rowsort
SELECT - + 71 * - 13 - - 59 AS col1
----
982

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

skipif mysql # not compatible
query I rowsort label-6756
SELECT ALL + NULLIF ( + 1, + COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6757
SELECT DISTINCT + 49 * + 41 + + MAX( DISTINCT - ( - NULLIF ( - + 64, CAST( + 97 AS SIGNED ) + - CAST( NULL AS SIGNED ) ) ) ) * COUNT( * ) * + + ( 19 ) + 53 + + 55 + + + 54 - + ( MIN( DISTINCT - CASE - CAST( + CASE 65 WHEN + 39 - - 1 + + 9 / ( - 11 ) THEN + 59 END AS SIGNED ) WHEN + ( + 70 ) THEN 42 + - 51 + 72 END ) ) * CAST( - - 83 AS DECIMAL ) AS col0, + COUNT( * ) + 34 AS col1
----
NULL
35

skipif mysql # not compatible
query II rowsort label-6757
SELECT DISTINCT + 49 * + 41 + + MAX ( DISTINCT - ( - NULLIF ( - + 64, CAST ( + 97 AS INTEGER ) + - CAST ( NULL AS INTEGER ) ) ) ) * COUNT ( * ) * + + ( 19 ) + 53 + + 55 + + + 54 - + ( MIN ( DISTINCT - CASE - CAST ( + CASE 65 WHEN + 39 - - 1 + + 9 / ( - 11 ) THEN + 59 END AS INTEGER ) WHEN + ( + 70 ) THEN 42 + - 51 + 72 END ) ) * CAST ( - - 83 AS REAL ) AS col0, + COUNT ( * ) + 34 AS col1
----
NULL
35

onlyif mysql # DIV for integer division: 
query II rowsort label-6758
SELECT ALL + COALESCE ( + NULLIF ( + 52, + - NULLIF ( 16, - 81 ) ), 23, - 0 * 12 ) * 96 + + 30 * - - 37 + 7 + + + 47, 39 DIV - 65 col1
----
6156
0

skipif mysql # not compatible
query II rowsort label-6758
SELECT ALL + COALESCE ( + NULLIF ( + 52, + - NULLIF ( 16, - 81 ) ), 23, - 0 * 12 ) * 96 + + 30 * - - 37 + 7 + + + 47, 39 / - 65 col1
----
6156
0

query I rowsort
SELECT - 66 + 90 + - - 20 col2
----
44

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6760
SELECT ALL + 18 * + + COUNT( * ) + + CASE + COUNT( * ) WHEN MIN( ALL - CAST( NULL AS DECIMAL ) ) * + MAX( ALL - 78 ) THEN + 24 * + 7 * + COUNT( * ) + - - 15 * 87 + - 28 + 32 WHEN 86 THEN NULL ELSE - + 62 * + 60 END
----
-3702

skipif mysql # not compatible
query I rowsort label-6760
SELECT ALL + 18 * + + COUNT ( * ) + + CASE + COUNT ( * ) WHEN MIN ( ALL - CAST ( NULL AS REAL ) ) * + MAX ( ALL - 78 ) THEN + 24 * + 7 * + COUNT ( * ) + - - 15 * 87 + - 28 + 32 WHEN 86 THEN NULL ELSE - + 62 * + 60 END
----
-3702

query I rowsort
SELECT - 50 * - + 76
----
3800

query I rowsort
SELECT ALL + 64 * + - 76 + + + 67 AS col2
----
-4797

query I rowsort
SELECT ALL - 87 * 10 + + 85
----
-785

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT COALESCE ( + + 69, + 45 * COUNT( * ), + + 73 ) col2
----
69

skipif mysql # not compatible
query I rowsort label-6764
SELECT COALESCE ( + + 69, + 45 * COUNT ( * ), + + 73 ) col2
----
69

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

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

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

query I rowsort
SELECT ALL + ( - + 0 ) * - 1 * - 29 + - 83 - 15 - 98
----
-196

query II rowsort
SELECT ALL + 97 AS col1, 71 + - 34 AS col0
----
97
37

query I rowsort
SELECT - 60 + 52 AS col2
----
-8

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

query I rowsort
SELECT DISTINCT 65 * 77
----
5005

onlyif mysql # aggregate syntax: 
query II rowsort label-6772
SELECT DISTINCT + 77 * - - 80 - - 28 col1, - NULLIF ( - + ( CASE 84 WHEN + - 67 THEN NULL WHEN + 13 + - 81 + + + 44 + + 59 / + COUNT( DISTINCT 63 ) * - COUNT( * ) THEN NULL ELSE + - MAX( - 60 ) END ), + 63 * + 2 - - CASE - 80 WHEN - 2 - - 70 THEN NULL WHEN + 36 + - 25 + - 74 THEN - + 34 END ) AS col0
----
6188
60

skipif mysql # not compatible
query II rowsort label-6772
SELECT DISTINCT + 77 * - - 80 - - 28 col1, - NULLIF ( - + ( CASE 84 WHEN + - 67 THEN NULL WHEN + 13 + - 81 + + + 44 + + 59 / + COUNT ( DISTINCT 63 ) * - COUNT ( * ) THEN NULL ELSE + - MAX ( - 60 ) END ), + 63 * + 2 - - CASE - 80 WHEN - 2 - - 70 THEN NULL WHEN + 36 + - 25 + - 74 THEN - + 34 END ) AS col0
----
6188
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6773
SELECT ALL 12 * + CAST( - + COUNT( * ) AS SIGNED ) col0, - 5 - - 37 * - - 97 AS col0
----
-12
3584

skipif mysql # not compatible
query II rowsort label-6773
SELECT ALL 12 * + CAST ( - + COUNT ( * ) AS INTEGER ) col0, - 5 - - 37 * - - 97 AS col0
----
-12
3584

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

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

query I rowsort
SELECT - 94 * 31
----
-2914

query I rowsort
SELECT + 70 + + 6
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-6777
SELECT + 76 DIV 21
----
3

skipif mysql # not compatible
query I rowsort label-6777
SELECT + 76 / 21
----
3

query I rowsort
SELECT + 88 * - 65
----
-5720

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT + COUNT( * ) + 58
----
59

skipif mysql # not compatible
query I rowsort label-6779
SELECT + COUNT ( * ) + 58
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6780
SELECT DISTINCT MIN( ALL - CAST( - 41 AS SIGNED ) ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-6780
SELECT DISTINCT MIN ( ALL - CAST ( - 41 AS INTEGER ) ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6781
SELECT ALL 52 + NULLIF ( + ( - 77 ), SUM( ALL 36 ) / 34 + - 0 ) * + 59
----
-4491

skipif mysql # not compatible
query I rowsort label-6781
SELECT ALL 52 + NULLIF ( + ( - 77 ), SUM ( ALL 36 ) / 34 + - 0 ) * + 59
----
-4491

onlyif mysql # aggregate syntax: 
query I rowsort label-6782
SELECT + NULLIF ( 88, 95 * 19 - COUNT( DISTINCT 25 ) ) + + 34
----
122

skipif mysql # not compatible
query I rowsort label-6782
SELECT + NULLIF ( 88, 95 * 19 - COUNT ( DISTINCT 25 ) ) + + 34
----
122

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

skipif mysql # not compatible
query I rowsort label-6783
SELECT + CAST ( NULL AS REAL ) * + 93
----
NULL

query I rowsort
SELECT DISTINCT 40 + - ( - 29 )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6785
SELECT DISTINCT MAX( 85 ) + ( 14 + CAST( NULL AS SIGNED ) ) / 76
----
NULL

skipif mysql # not compatible
query I rowsort label-6785
SELECT DISTINCT MAX ( 85 ) + ( 14 + CAST ( NULL AS INTEGER ) ) / 76
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6787
SELECT + AVG ( 81 ) + COALESCE ( - 8, - CAST( 87 AS SIGNED ) - - CAST( NULL AS DECIMAL ) * 22, + 79, - 66 ) * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6787
SELECT + AVG ( 81 ) + COALESCE ( - 8, - CAST ( 87 AS INTEGER ) - - CAST ( NULL AS REAL ) * 22, + 79, - 66 ) * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT ALL + CASE 37 WHEN 54 * 98 THEN NULL WHEN - 49 - 62 THEN 73 WHEN + 85 THEN + 94 WHEN MIN( ALL - 10 ) * COUNT( DISTINCT - 24 ) THEN NULL ELSE - 36 END AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-6788
SELECT ALL + CASE 37 WHEN 54 * 98 THEN NULL WHEN - 49 - 62 THEN 73 WHEN + 85 THEN + 94 WHEN MIN ( ALL - 10 ) * COUNT ( DISTINCT - 24 ) THEN NULL ELSE - 36 END AS col2
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-6789
SELECT - 43 DIV - 26 + 74 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-6789
SELECT - 43 / - 26 + 74 AS col1
----
75

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6791
SELECT ALL - 70 DIV + 77 + + 5 * 61
----
305

skipif mysql # not compatible
query I rowsort label-6791
SELECT ALL - 70 / + 77 + + 5 * 61
----
305

query I rowsort
SELECT - 44 + 20 * - 31
----
-664

query I rowsort
SELECT - 3 * NULLIF ( 5, + 71 ) col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6794
SELECT - 20 + MAX( - 64 )
----
-84

skipif mysql # not compatible
query I rowsort label-6794
SELECT - 20 + MAX ( - 64 )
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-6795
SELECT ALL - 43 DIV 17 + 63 * + 27
----
1699

skipif mysql # not compatible
query I rowsort label-6795
SELECT ALL - 43 / 17 + 63 * + 27
----
1699

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6796
SELECT ALL + COUNT( - CAST( + 61 AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6796
SELECT ALL + COUNT ( - CAST ( + 61 AS INTEGER ) ) AS col2
----
1

query I rowsort
SELECT + 67 * 21
----
1407

query I rowsort
SELECT - 72 + COALESCE ( + 38, 10 )
----
-34

query I rowsort
SELECT ALL - ( 63 ) * - 22
----
1386

query I rowsort
SELECT + 84 + + 34 AS col1
----
118

onlyif mysql # DIV for integer division: 
query I rowsort label-6801
SELECT - 90 DIV - ( 38 ) col2
----
2

skipif mysql # not compatible
query I rowsort label-6801
SELECT - 90 / - ( 38 ) col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT - 36 * 63 + COUNT( * ) * 97
----
-2171

skipif mysql # not compatible
query I rowsort label-6802
SELECT - 36 * 63 + COUNT ( * ) * 97
----
-2171

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

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

query I rowsort
SELECT ALL + 83 * - 8 AS col1
----
-664

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

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

query I rowsort
SELECT + 42 * 8 AS col2
----
336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6807
SELECT - 6 + - COALESCE ( + CAST( 15 AS SIGNED ), + COUNT( * ) - - 31 ) * - COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-6807
SELECT - 6 + - COALESCE ( + CAST ( 15 AS INTEGER ), + COUNT ( * ) - - 31 ) * - COUNT ( * )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6808
SELECT NULLIF ( + 11, COUNT( * ) + + 85 * - COUNT( * ) ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-6808
SELECT NULLIF ( + 11, COUNT ( * ) + + 85 * - COUNT ( * ) ) AS col2
----
11

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

skipif mysql # not compatible
query I rowsort label-6809
SELECT - MAX ( ( 13 ) ) * CAST ( NULL AS REAL ) AS col2
----
NULL

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

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

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

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

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

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

query I rowsort
SELECT ALL - 65 + + 47 col1
----
-18

query I rowsort
SELECT DISTINCT 11 * 19 AS col2
----
209

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT ALL COUNT( * ) + - COUNT( ALL + 91 - - 17 * - 87 ) * - 78
----
79

skipif mysql # not compatible
query I rowsort label-6815
SELECT ALL COUNT ( * ) + - COUNT ( ALL + 91 - - 17 * - 87 ) * - 78
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6816
SELECT - 29 DIV SUM( - 36 * 7 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6816
SELECT - 29 / SUM ( - 36 * 7 ) AS col2
----
0

query I rowsort
SELECT 46 + + 55 AS col2
----
101

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

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

query I rowsort
SELECT - - 95 col0
----
95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT ALL + + SUM( 95 ) * - NULLIF ( - 10 + - 5 * 69, + COALESCE ( 86, 65 / + COUNT( * ), 38 * AVG ( - 1 ) ) ) AS col0
----
33725

skipif mysql # not compatible
query I rowsort label-6821
SELECT ALL + + SUM ( 95 ) * - NULLIF ( - 10 + - 5 * 69, + COALESCE ( 86, 65 / + COUNT ( * ), 38 * AVG ( - 1 ) ) ) AS col0
----
33725

query I rowsort
SELECT + 78 * + 80 AS col2
----
6240

query I rowsort
SELECT 87 - 81 AS col2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-6824
SELECT ALL - 0 DIV - 26
----
0

skipif mysql # not compatible
query I rowsort label-6824
SELECT ALL - 0 / - 26
----
0

query I rowsort
SELECT ALL 45 + 2 AS col2
----
47

query I rowsort
SELECT ( - - ( - 33 ) ) * + 63 AS col2
----
-2079

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

query I rowsort
SELECT ALL 2 * - + COALESCE ( + 58, + 20 ) AS col1
----
-116

query I rowsort
SELECT DISTINCT 37 - - 72 col0
----
109

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT DISTINCT 1 - COUNT( * ) - 90 col2
----
-90

skipif mysql # not compatible
query I rowsort label-6831
SELECT DISTINCT 1 - COUNT ( * ) - 90 col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6832
SELECT 51 * 47 * CASE COUNT( * ) WHEN 2 * COUNT( * ) THEN NULL WHEN + COUNT( * ) + 92 THEN - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6832
SELECT 51 * 47 * CASE COUNT ( * ) WHEN 2 * COUNT ( * ) THEN NULL WHEN + COUNT ( * ) + 92 THEN - COUNT ( * ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6833
SELECT ALL - 15 DIV CASE WHEN NOT + 26 >= 44 THEN 9 END
----
-1

skipif mysql # not compatible
query I rowsort label-6833
SELECT ALL - 15 / CASE WHEN NOT + 26 >= 44 THEN 9 END
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6834
SELECT ( COUNT( * ) ) * ( 84 + + 53 DIV 75 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-6834
SELECT ( COUNT ( * ) ) * ( 84 + + 53 / 75 ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT 77 * + 64 * + COUNT( * )
----
4928

skipif mysql # not compatible
query I rowsort label-6835
SELECT 77 * + 64 * + COUNT ( * )
----
4928

onlyif mysql # DIV for integer division: 
query I rowsort label-6836
SELECT ALL 89 DIV - 25 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-6836
SELECT ALL 89 / - 25 AS col0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6837
SELECT 83 DIV + 15 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-6837
SELECT 83 / + 15 AS col2
----
5

query I rowsort
SELECT ALL + 52 + + 45 + - 5
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-6839
SELECT + 56 * - 40 + - 55 DIV + 14
----
-2243

skipif mysql # not compatible
query I rowsort label-6839
SELECT + 56 * - 40 + - 55 / + 14
----
-2243

query I rowsort
SELECT + 51 + - 30 AS col2
----
21

query I rowsort
SELECT ALL + 36 + 15
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT DISTINCT - 14 + - COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-6842
SELECT DISTINCT - 14 + - COUNT ( * )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT ALL + 56 + COUNT( DISTINCT 32 )
----
57

skipif mysql # not compatible
query I rowsort label-6843
SELECT ALL + 56 + COUNT ( DISTINCT 32 )
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6844
SELECT 84 - - - CAST( - 21 AS SIGNED ) + + 50 * + 40
----
2105

skipif mysql # not compatible
query I rowsort label-6844
SELECT 84 - - - CAST ( - 21 AS INTEGER ) + + 50 * + 40
----
2105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6845
SELECT - CAST( NULL AS SIGNED ) + SUM( ALL COALESCE ( 76, - 0 / 93, 97 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6845
SELECT - CAST ( NULL AS INTEGER ) + SUM ( ALL COALESCE ( 76, - 0 / 93, 97 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6846
SELECT 75 * + + MIN( DISTINCT - NULLIF ( - ( 11 ), 66 / + 25 ) ) - - NULLIF ( 56, + 4 )
----
881

skipif mysql # not compatible
query I rowsort label-6846
SELECT 75 * + + MIN ( DISTINCT - NULLIF ( - ( 11 ), 66 / + 25 ) ) - - NULLIF ( 56, + 4 )
----
881

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT DISTINCT + SUM( - 50 ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-6847
SELECT DISTINCT + SUM ( - 50 ) AS col0
----
-50

query I rowsort
SELECT DISTINCT - 53 + + + 69 + - 14 * - 71 AS col2
----
1010

query I rowsort
SELECT ALL + - ( 10 ) + 53
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6850
SELECT ALL - COALESCE ( - + COUNT( * ), + NULLIF ( - ( + 17 ), COUNT( * ) ) ) + - 62 * 76 AS col1
----
-4711

skipif mysql # not compatible
query I rowsort label-6850
SELECT ALL - COALESCE ( - + COUNT ( * ), + NULLIF ( - ( + 17 ), COUNT ( * ) ) ) + - 62 * 76 AS col1
----
-4711

onlyif mysql # aggregate syntax: 
query I rowsort label-6851
SELECT + 54 + + + CASE 98 WHEN + 89 THEN - COALESCE ( 41, + 2 * - 33 ) * - COUNT( * ) ELSE NULL END + + 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6851
SELECT + 54 + + + CASE 98 WHEN + 89 THEN - COALESCE ( 41, + 2 * - 33 ) * - COUNT ( * ) ELSE NULL END + + 45 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT ALL - + COUNT( * ) + 33 + + 26
----
58

skipif mysql # not compatible
query I rowsort label-6852
SELECT ALL - + COUNT ( * ) + 33 + + 26
----
58

query I rowsort
SELECT DISTINCT - 71 * - - 37 - 49
----
-2676

query I rowsort
SELECT ALL + 12 - 93 col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT 32 * - + COUNT( * ) + + 62 * - 13
----
-838

skipif mysql # not compatible
query I rowsort label-6855
SELECT 32 * - + COUNT ( * ) + + 62 * - 13
----
-838

query I rowsort
SELECT ALL 29 * + 6
----
174

query I rowsort
SELECT - 43 + + CASE 37 WHEN 23 THEN + 22 END * + 59
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6858
SELECT 36 + + 25 DIV - - 33 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-6858
SELECT 36 + + 25 / - - 33 AS col2
----
36

query I rowsort
SELECT 7 * - + 8 AS col0
----
-56

query I rowsort
SELECT 13 + - + 72
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6861
SELECT 23 + + 8 + + - 20 * MIN( DISTINCT - 43 DIV 50 )
----
31

skipif mysql # not compatible
query I rowsort label-6861
SELECT 23 + + 8 + + - 20 * MIN ( DISTINCT - 43 / 50 )
----
31

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

skipif mysql # not compatible
query I rowsort label-6862
SELECT 26 / - COUNT ( * )
----
-26

query I rowsort
SELECT DISTINCT - 1 * + 48 * + + 76
----
-3648

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT ALL SUM( ALL - 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-6864
SELECT ALL SUM ( ALL - 40 )
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-6865
SELECT ALL - 6, COALESCE ( + 28, + COUNT( * ) * 76 ) AS col0
----
-6
28

skipif mysql # not compatible
query II rowsort label-6865
SELECT ALL - 6, COALESCE ( + 28, + COUNT ( * ) * 76 ) AS col0
----
-6
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6866
SELECT 19 DIV + 53 * + + COALESCE ( - COALESCE ( 83, CASE CAST( NULL AS SIGNED ) WHEN 21 THEN - 25 + + COUNT( * ) DIV - 68 WHEN 53 THEN NULL ELSE + ( 21 ) END ), - ( SUM( 18 ) ) ) * + 91 + + 2
----
2

skipif mysql # not compatible
query I rowsort label-6866
SELECT 19 / + 53 * + + COALESCE ( - COALESCE ( 83, CASE CAST ( NULL AS INTEGER ) WHEN 21 THEN - 25 + + COUNT ( * ) / - 68 WHEN 53 THEN NULL ELSE + ( 21 ) END ), - ( SUM ( 18 ) ) ) * + 91 + + 2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6867
SELECT DISTINCT - 84 AS col0, CAST( NULL AS SIGNED )
----
-84
NULL

skipif mysql # not compatible
query II rowsort label-6867
SELECT DISTINCT - 84 AS col0, CAST ( NULL AS INTEGER )
----
-84
NULL

query I rowsort
SELECT 61 * + - 29 AS col0
----
-1769

query I rowsort
SELECT 32 * - NULLIF ( - - 39, + 69 ) * 97 col1
----
-121056

query I rowsort
SELECT 83 * - 85 * + 94 + 54
----
-663116

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6872
SELECT + CASE + - 7 WHEN + 89 - 62 * CAST( NULL AS SIGNED ) THEN 27 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6872
SELECT + CASE + - 7 WHEN + 89 - 62 * CAST ( NULL AS INTEGER ) THEN 27 ELSE NULL END
----
NULL

query I rowsort
SELECT 57 + - - 44 * + 19 AS col1
----
893

query I rowsort
SELECT ALL 83 * 60 * + 66
----
328680

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT ALL 77 * + - CASE + - 78 WHEN - 66 + + 38 THEN NULL WHEN - 14 THEN + 7 * NULLIF ( - SUM( 33 ), + 33 - 98 * ( ( - 24 ) / - 27 ) ) ELSE ( 88 ) END + + 68 AS col1
----
-6708

skipif mysql # not compatible
query I rowsort label-6875
SELECT ALL 77 * + - CASE + - 78 WHEN - 66 + + 38 THEN NULL WHEN - 14 THEN + 7 * NULLIF ( - SUM ( 33 ), + 33 - 98 * ( ( - 24 ) / - 27 ) ) ELSE ( 88 ) END + + 68 AS col1
----
-6708

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

skipif mysql # not compatible
query I rowsort label-6876
SELECT + SUM ( + 77 )
----
77

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

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

query I rowsort
SELECT + - 71 * + 96 * 3
----
-20448

query I rowsort
SELECT ALL + ( 79 ) * - + 26 + - NULLIF ( 35 + + 88, + 58 ) AS col0
----
-2177

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6880
SELECT + 97, CASE + + COUNT( * ) WHEN ( 8 ) THEN NULL WHEN + 50 THEN AVG ( 5 ) + 4 WHEN - CAST( + 26 AS DECIMAL ) THEN NULL END AS col1
----
97
NULL

skipif mysql # not compatible
query II rowsort label-6880
SELECT + 97, CASE + + COUNT ( * ) WHEN ( 8 ) THEN NULL WHEN + 50 THEN AVG ( 5 ) + 4 WHEN - CAST ( + 26 AS REAL ) THEN NULL END AS col1
----
97
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6881
SELECT + 58 + - - 27 DIV - SUM( ALL NULLIF ( - 97, + 43 ) ) * 34 + 33 col0
----
91

skipif mysql # not compatible
query I rowsort label-6881
SELECT + 58 + - - 27 / - SUM ( ALL NULLIF ( - 97, + 43 ) ) * 34 + 33 col0
----
91

query II rowsort
SELECT - 31, - 73 AS col2
----
-31
-73

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

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

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

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

query II rowsort
SELECT 82 AS col2, 50
----
82
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT DISTINCT - SUM( + + 97 ) + 6 + 46 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-6886
SELECT DISTINCT - SUM ( + + 97 ) + 6 + 46 AS col2
----
-45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT + - COUNT( 30 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-6888
SELECT + - COUNT ( 30 ) col2
----
-1

query I rowsort
SELECT ALL + NULLIF ( 68, + 74 + 80 ) * 22 AS col0
----
1496

query I rowsort
SELECT + 47 + + 76 AS col2
----
123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6891
SELECT DISTINCT 17 DIV - 30 * + 59 - - COUNT( * ) * + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6891
SELECT DISTINCT 17 / - 30 * + 59 - - COUNT ( * ) * + COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6892
SELECT ALL COUNT( * ) - + CAST( + 42 AS SIGNED ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-6892
SELECT ALL COUNT ( * ) - + CAST ( + 42 AS INTEGER ) AS col2
----
-41

query I rowsort
SELECT DISTINCT - - 90 * - 25 + 29 AS col0
----
-2221

query I rowsort
SELECT ALL + 83 - + - 80 + + + 28 AS col0
----
191

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT + 18 - + - MAX( + 5 ) + 35 * COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-6895
SELECT + 18 - + - MAX ( + 5 ) + 35 * COUNT ( * )
----
58

query I rowsort
SELECT DISTINCT - 81 * + + 64
----
-5184

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT - + 12 + + ( + ( 62 ) ) + NULLIF ( + COALESCE ( - COUNT( * ), + 64 + - 57 * 57 ), + SUM( DISTINCT + 76 ) )
----
49

skipif mysql # not compatible
query I rowsort label-6897
SELECT - + 12 + + ( + ( 62 ) ) + NULLIF ( + COALESCE ( - COUNT ( * ), + 64 + - 57 * 57 ), + SUM ( DISTINCT + 76 ) )
----
49

query I rowsort
SELECT ALL - CASE - - CASE WHEN NULL IS NULL THEN + 99 ELSE + 7 / 28 END WHEN 98 THEN + ( 57 ) * - ( - 24 ) ELSE - 46 END - 64
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6899
SELECT - 68 * COUNT( - + 59 ) col2
----
-68

skipif mysql # not compatible
query I rowsort label-6899
SELECT - 68 * COUNT ( - + 59 ) col2
----
-68

query I rowsort
SELECT - 73 * + 58 AS col2
----
-4234

query I rowsort
SELECT ALL + 14 * 35 AS col2
----
490

query II rowsort
SELECT ALL ( + 85 ), + 49 * 35 * - 54 AS col0
----
85
-92610

query I rowsort
SELECT ALL COALESCE ( + NULLIF ( 75, - + 70 ), - 3 + - 5 )
----
75

query II rowsort
SELECT - 1 * + 43, + 65 AS col0
----
-43
65

query I rowsort
SELECT ALL + 15 * + + ( - + 32 ) AS col0
----
-480

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6906
SELECT CAST( 45 AS SIGNED ) AS col2, + 10 AS col0
----
45
10

skipif mysql # not compatible
query II rowsort label-6906
SELECT CAST ( 45 AS INTEGER ) AS col2, + 10 AS col0
----
45
10

query I rowsort
SELECT + ( + CASE WHEN ( NULL ) NOT IN ( 19 ) THEN - 23 + + 76 END ) / ( 71 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT - 48 * - + COUNT( DISTINCT + 5 )
----
48

skipif mysql # not compatible
query I rowsort label-6908
SELECT - 48 * - + COUNT ( DISTINCT + 5 )
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-6909
SELECT ALL 29 DIV 55 * - 67 * 80 + 65 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-6909
SELECT ALL 29 / 55 * - 67 * 80 + 65 AS col1
----
65

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6912
SELECT + COALESCE ( - 81, - - 82 DIV + + 16, - NULLIF ( + 77, ( - 26 ) + - 71 ) * + 49 )
----
-81

skipif mysql # not compatible
query I rowsort label-6912
SELECT + COALESCE ( - 81, - - 82 / + + 16, - NULLIF ( + 77, ( - 26 ) + - 71 ) * + 49 )
----
-81

query I rowsort
SELECT - + COALESCE ( - 65, + + 39 ) + + - 53 col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6914
SELECT + MAX( - 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-6914
SELECT + MAX ( - 63 )
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6915
SELECT - - 39 + + 41 + - CAST( NULL AS SIGNED ) + + 24 * + 0 * + COALESCE ( + 27, COUNT( * ) * + 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6915
SELECT - - 39 + + 41 + - CAST ( NULL AS INTEGER ) + + 24 * + 0 * + COALESCE ( + 27, COUNT ( * ) * + 33 )
----
NULL

query I rowsort
SELECT ALL 63 * - 5 + - 18
----
-333

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6917
SELECT + - ( - COUNT( * ) ) * - 97 + - + 10 * 41 + 2 DIV 98
----
-507

skipif mysql # not compatible
query I rowsort label-6917
SELECT + - ( - COUNT ( * ) ) * - 97 + - + 10 * 41 + 2 / 98
----
-507

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT ALL - COUNT( * ) * - ( + 16 ) + + 51 * 74 AS col1
----
3790

skipif mysql # not compatible
query I rowsort label-6918
SELECT ALL - COUNT ( * ) * - ( + 16 ) + + 51 * 74 AS col1
----
3790

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT + 67 * - MAX( + + 14 ) + + ( + 30 )
----
-908

skipif mysql # not compatible
query I rowsort label-6919
SELECT + 67 * - MAX ( + + 14 ) + + ( + 30 )
----
-908

query I rowsort
SELECT ALL 48 * 72 AS col1
----
3456

query I rowsort
SELECT DISTINCT + 40 * + 62 - 11
----
2469

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

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

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

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

query I rowsort
SELECT ALL 84 * - - 93 + + 45 - - 6 * 31
----
8043

query I rowsort
SELECT + - 82 * + 46 AS col2
----
-3772

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6926
SELECT + 49 + 39, - COUNT( DISTINCT + 0 ) DIV 3 - - 1 col1
----
88
1

skipif mysql # not compatible
query II rowsort label-6926
SELECT + 49 + 39, - COUNT ( DISTINCT + 0 ) / 3 - - 1 col1
----
88
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT ALL - - COUNT( * ) * + + 49 - + 57 + - - SUM( + 86 ) * - COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-6927
SELECT ALL - - COUNT ( * ) * + + 49 - + 57 + - - SUM ( + 86 ) * - COUNT ( * )
----
-94

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

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

query I rowsort
SELECT - - 37 + + 12 + - + 11 AS col1
----
38

query I rowsort
SELECT + - 21 * + + 26 + + 90 * - + 56
----
-5586

onlyif mysql # DIV for integer division: 
query I rowsort label-6931
SELECT + + 63 + + ( 79 ) + - - 29 DIV NULLIF ( + 94 * 73, + 97 * 81 + 73 * 18 ) AS col0
----
142

skipif mysql # not compatible
query I rowsort label-6931
SELECT + + 63 + + ( 79 ) + - - 29 / NULLIF ( + 94 * 73, + 97 * 81 + 73 * 18 ) AS col0
----
142

onlyif mysql # aggregate syntax: 
query II rowsort label-6932
SELECT + - 82 + - + 83, SUM( + 7 ) col2
----
-165
7

skipif mysql # not compatible
query II rowsort label-6932
SELECT + - 82 + - + 83, SUM ( + 7 ) col2
----
-165
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6933
SELECT + COALESCE ( + 73, - + 66 - - COUNT( * ) + COUNT( * ) / - 26 / 30, CAST( 12 AS DECIMAL ) ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6933
SELECT + COALESCE ( + 73, - + 66 - - COUNT ( * ) + COUNT ( * ) / - 26 / 30, CAST ( 12 AS REAL ) ) / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 8 * + 79 + - 46
----
-678

query I rowsort
SELECT + 47 * + 70
----
3290

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

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

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

skipif mysql # not compatible
query I rowsort label-6937
SELECT + COUNT ( * ) + + COUNT ( * ) + - 23 - + - 27 - 81 / COUNT ( * ) AS col1
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6938
SELECT ALL ( 59 ) DIV - CAST( - CAST( COUNT( * ) AS SIGNED ) AS SIGNED ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-6938
SELECT ALL ( 59 ) / - CAST ( - CAST ( COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-6939
SELECT + 38 DIV + 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6939
SELECT + 38 / + 79 AS col2
----
0

query I rowsort
SELECT ALL + 28 * 15
----
420

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

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

query I rowsort
SELECT + 26 + + 89 AS col0
----
115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6943
SELECT - COUNT( * ) - - 41 + + 32 DIV - ( - 13 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-6943
SELECT - COUNT ( * ) - - 41 + + 32 / - ( - 13 ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT ALL 13 + + COUNT( * ) - + 50 * - 12 AS col2
----
614

skipif mysql # not compatible
query I rowsort label-6944
SELECT ALL 13 + + COUNT ( * ) - + 50 * - 12 AS col2
----
614

onlyif mysql # aggregate syntax: 
query I rowsort label-6945
SELECT - CASE - - 31 WHEN 74 * 60 THEN - COUNT( 59 ) ELSE + 66 END * 43 AS col1
----
-2838

skipif mysql # not compatible
query I rowsort label-6945
SELECT - CASE - - 31 WHEN 74 * 60 THEN - COUNT ( 59 ) ELSE + 66 END * 43 AS col1
----
-2838

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6946
SELECT + COUNT( CAST( + - 47 AS SIGNED ) ) + + + 82
----
83

skipif mysql # not compatible
query I rowsort label-6946
SELECT + COUNT ( CAST ( + - 47 AS INTEGER ) ) + + + 82
----
83

query I rowsort
SELECT ALL - 56 + - + 35
----
-91

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6949
SELECT 67 + - 58 + - 94 AS col2, + 84 * 56 * - ( COUNT( * ) ) col0
----
-85
-4704

skipif mysql # not compatible
query II rowsort label-6949
SELECT 67 + - 58 + - 94 AS col2, + 84 * 56 * - ( COUNT ( * ) ) col0
----
-85
-4704

query I rowsort
SELECT ALL + 84 + - - 68 AS col2
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT ALL - 20 + COUNT( * ) * + - COUNT( * ) * 86 AS col0
----
-106

skipif mysql # not compatible
query I rowsort label-6951
SELECT ALL - 20 + COUNT ( * ) * + - COUNT ( * ) * 86 AS col0
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-6952
SELECT DISTINCT - MIN( - 47 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-6952
SELECT DISTINCT - MIN ( - 47 ) AS col0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6953
SELECT CAST( - - 40 AS SIGNED ) DIV + - 87, COUNT( ALL + 93 ) col0
----
0
1

skipif mysql # not compatible
query II rowsort label-6953
SELECT CAST ( - - 40 AS INTEGER ) / + - 87, COUNT ( ALL + 93 ) col0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6954
SELECT DISTINCT + + 61 * CAST( + 15 AS SIGNED ) AS col1, + 94
----
915
94

skipif mysql # not compatible
query II rowsort label-6954
SELECT DISTINCT + + 61 * CAST ( + 15 AS INTEGER ) AS col1, + 94
----
915
94

onlyif mysql # aggregate syntax: 
query II rowsort label-6955
SELECT + COUNT( * ), 97 - CASE + 83 WHEN + ( - 79 ) THEN NULL WHEN 39 - + 60 THEN 15 WHEN 6 THEN + 48 - 69 END col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6955
SELECT + COUNT ( * ), 97 - CASE + 83 WHEN + ( - 79 ) THEN NULL WHEN 39 - + 60 THEN 15 WHEN 6 THEN + 48 - 69 END col1
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6956
SELECT - + COUNT( * ) DIV + 54 + 51 - - 14 - - 49 * 42 AS col1
----
2123

skipif mysql # not compatible
query I rowsort label-6956
SELECT - + COUNT ( * ) / + 54 + 51 - - 14 - - 49 * 42 AS col1
----
2123

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

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

query I rowsort
SELECT ALL - - ( 18 )
----
18

query I rowsort
SELECT - 7 * 69 * + + 14
----
-6762

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6961
SELECT 48 AS col1, + 27 * - 16 * - CAST( - 56 AS SIGNED )
----
48
-24192

skipif mysql # not compatible
query II rowsort label-6961
SELECT 48 AS col1, + 27 * - 16 * - CAST ( - 56 AS INTEGER )
----
48
-24192

query I rowsort
SELECT ALL - ( + 85 ) - - + NULLIF ( 77, + 75 + + 35 ) + + 4 AS col2
----
-4

query I rowsort
SELECT 38 * 67
----
2546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6964
SELECT + + COALESCE ( - 48, - - MIN( DISTINCT + - 73 ) + - - 73 * - NULLIF ( + COUNT( * ), + CAST( - COUNT( * ) AS SIGNED ) ) ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-6964
SELECT + + COALESCE ( - 48, - - MIN ( DISTINCT + - 73 ) + - - 73 * - NULLIF ( + COUNT ( * ), + CAST ( - COUNT ( * ) AS INTEGER ) ) ) AS col2
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-6965
SELECT + - 87, 14 * + 25 * - MAX( ALL + 30 ) * 99 AS col1
----
-87
-1039500

skipif mysql # not compatible
query II rowsort label-6965
SELECT + - 87, 14 * + 25 * - MAX ( ALL + 30 ) * 99 AS col1
----
-87
-1039500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6966
SELECT 18 * - 36 + + CAST( - 82 AS SIGNED ) * - 55 * - CASE 84 WHEN + 85 THEN NULL ELSE COUNT( * ) DIV 96 + + 31 END + - COALESCE ( + 8, 38 DIV + 54 )
----
-140466

skipif mysql # not compatible
query I rowsort label-6966
SELECT 18 * - 36 + + CAST ( - 82 AS INTEGER ) * - 55 * - CASE 84 WHEN + 85 THEN NULL ELSE COUNT ( * ) / 96 + + 31 END + - COALESCE ( + 8, 38 / + 54 )
----
-140466

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT - SUM( - 38 ) * + NULLIF ( - 74, - 71 - - COUNT( * ) )
----
-2812

skipif mysql # not compatible
query I rowsort label-6967
SELECT - SUM ( - 38 ) * + NULLIF ( - 74, - 71 - - COUNT ( * ) )
----
-2812

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6968
SELECT ALL - + 62 AS col2, CAST( NULL AS SIGNED ) / + 68
----
-62
NULL

skipif mysql # not compatible
query II rowsort label-6968
SELECT ALL - + 62 AS col2, CAST ( NULL AS INTEGER ) / + 68
----
-62
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6970
SELECT COALESCE ( 12, - 16 * - 10 * - CAST( - COUNT( * ) AS SIGNED ), CAST( + COUNT( * ) AS SIGNED ) ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-6970
SELECT COALESCE ( 12, - 16 * - 10 * - CAST ( - COUNT ( * ) AS INTEGER ), CAST ( + COUNT ( * ) AS INTEGER ) ) AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6971
SELECT + COUNT( * ) + + COALESCE ( - ( - 46 ), + + COUNT( * ) * + SUM( ALL + 97 ) ) + 77 AS col0
----
124

skipif mysql # not compatible
query I rowsort label-6971
SELECT + COUNT ( * ) + + COALESCE ( - ( - 46 ), + + COUNT ( * ) * + SUM ( ALL + 97 ) ) + 77 AS col0
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT DISTINCT + ( - - NULLIF ( - ( + 33 ), + + CASE - 52 WHEN 86 * 37 - ( - 92 ) * NULLIF ( NULLIF ( 85, + 10 ) * - 60 + - ( - 82 - - 12 ), + 19 * 29 ) THEN + 69 * ( 75 ) + 40 ELSE NULL END / COUNT( * ) ) ) * 54
----
-1782

skipif mysql # not compatible
query I rowsort label-6972
SELECT DISTINCT + ( - - NULLIF ( - ( + 33 ), + + CASE - 52 WHEN 86 * 37 - ( - 92 ) * NULLIF ( NULLIF ( 85, + 10 ) * - 60 + - ( - 82 - - 12 ), + 19 * 29 ) THEN + 69 * ( 75 ) + 40 ELSE NULL END / COUNT ( * ) ) ) * 54
----
-1782

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6973
SELECT - 99 AS col2, 82 * 47 - - CAST( NULL AS SIGNED ) / 99 * + COUNT( * )
----
-99
NULL

skipif mysql # not compatible
query II rowsort label-6973
SELECT - 99 AS col2, 82 * 47 - - CAST ( NULL AS INTEGER ) / 99 * + COUNT ( * )
----
-99
NULL

query I rowsort
SELECT 22 * 77
----
1694

query I rowsort
SELECT 58 + 64 AS col2
----
122

query I rowsort
SELECT DISTINCT 38 + - 93 AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6977
SELECT CASE - - 70 WHEN - + AVG ( DISTINCT + 45 ) THEN NULL WHEN + - 83 + + 80 + - MIN( - 19 ) THEN NULL ELSE COUNT( * ) END + NULLIF ( 36, - CASE NULLIF ( AVG ( ALL - 45 ), 3 ) WHEN - ( + 6 ) + + 89 / 75 THEN NULL WHEN - 1 * - 28 THEN NULL ELSE - ( - 9 ) END * + ( + 1 ) ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-6977
SELECT CASE - - 70 WHEN - + AVG ( DISTINCT + 45 ) THEN NULL WHEN + - 83 + + 80 + - MIN ( - 19 ) THEN NULL ELSE COUNT ( * ) END + NULLIF ( 36, - CASE NULLIF ( AVG ( ALL - 45 ), 3 ) WHEN - ( + 6 ) + + 89 / 75 THEN NULL WHEN - 1 * - 28 THEN NULL ELSE - ( - 9 ) END * + ( + 1 ) ) AS col1
----
37

query I rowsort
SELECT 77 + - 26 AS col2
----
51

query I rowsort
SELECT 48 * + + 6 col1
----
288

query I rowsort
SELECT ALL 66 + - 51 col0
----
15

query I rowsort
SELECT ALL ( - 41 ) + - + 16 AS col0
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-6982
SELECT 67 DIV - ( + 51 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6982
SELECT 67 / - ( + 51 ) AS col2
----
-1

query I rowsort
SELECT ALL 60 + 44 * 96
----
4284

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

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

query II rowsort
SELECT ALL 30 AS col2, - 16
----
30
-16

query I rowsort
SELECT DISTINCT 65 + + CASE - 66 WHEN + - 0 * + 18 + 84 * + AVG ( DISTINCT + 8 * - 26 ) + + 90 THEN NULL ELSE + 76 END AS col1
----
141

query I rowsort
SELECT ALL 24 + - 94 + - 89
----
-159

query I rowsort
SELECT DISTINCT - NULLIF ( + + 58, + 32 )
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6989
SELECT - 88 * + CAST( NULL AS SIGNED ) - + ( 77 ) + - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-6989
SELECT - 88 * + CAST ( NULL AS INTEGER ) - + ( 77 ) + - 25
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6991
SELECT ALL + 26 - + NULLIF ( - 34, + 15 * COALESCE ( - 27, - 96 - AVG ( ALL 33 + 77 ) ) ) DIV 97
----
26

skipif mysql # not compatible
query I rowsort label-6991
SELECT ALL + 26 - + NULLIF ( - 34, + 15 * COALESCE ( - 27, - 96 - AVG ( ALL 33 + 77 ) ) ) / 97
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-6992
SELECT ALL - COUNT( * ) AS col1, 89
----
-1
89

skipif mysql # not compatible
query II rowsort label-6992
SELECT ALL - COUNT ( * ) AS col1, 89
----
-1
89

query I rowsort
SELECT ALL + 45 - - + 80 col0
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT ALL - 87 * - 45 * 27 - - 54 + + COUNT( * ) col0
----
105760

skipif mysql # not compatible
query I rowsort label-6994
SELECT ALL - 87 * - 45 * 27 - - 54 + + COUNT ( * ) col0
----
105760

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

query I rowsort
SELECT - - 60 * + 3 * - 80 - + 54 * 41 - 46 AS col1
----
-16660

query II rowsort
SELECT + 56, 47 AS col1
----
56
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6998
SELECT COALESCE ( COUNT( * ), + 19 * - - CAST( NULL AS SIGNED ) + + - 6 DIV - + MIN( DISTINCT CAST( 5 AS SIGNED ) ) * + 20, 52 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6998
SELECT COALESCE ( COUNT ( * ), + 19 * - - CAST ( NULL AS INTEGER ) + + - 6 / - + MIN ( DISTINCT CAST ( 5 AS INTEGER ) ) * + 20, 52 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6999
SELECT + 93 DIV 60 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6999
SELECT + 93 / 60 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT + 63 * - - SUM( + 1 ) * - 71
----
-4473

skipif mysql # not compatible
query I rowsort label-7000
SELECT + 63 * - - SUM ( + 1 ) * - 71
----
-4473

query I rowsort
SELECT - 20 * - 64 + - 70
----
1210

query I rowsort
SELECT ALL - 49 * - 18
----
882

onlyif mysql # aggregate syntax: 
query I rowsort label-7003
SELECT DISTINCT + SUM( - 83 ) * + 58
----
-4814

skipif mysql # not compatible
query I rowsort label-7003
SELECT DISTINCT + SUM ( - 83 ) * + 58
----
-4814

query I rowsort
SELECT DISTINCT - + 91 + - 64 + - 74 AS col1
----
-229

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7005
SELECT DISTINCT - - 66 DIV - 5 * - COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-7005
SELECT DISTINCT - - 66 / - 5 * - COUNT ( * )
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-7006
SELECT 22 DIV 75 * - 38 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7006
SELECT 22 / 75 * - 38 AS col1
----
0

query I rowsort
SELECT 67 * + 60
----
4020

query I rowsort
SELECT - 72 * + 88 AS col2
----
-6336

query I rowsort
SELECT DISTINCT 60 + 7 - + - 18
----
85

query I rowsort
SELECT DISTINCT + 39 - - 28 * 79
----
2251

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

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

query I rowsort
SELECT DISTINCT 24 - - 52 + 71 AS col0
----
147

query I rowsort
SELECT - NULLIF ( ( - 82 ), - COALESCE ( + 68, + 29 ) )
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7014
SELECT + CAST( 96 AS SIGNED ) + - 57 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-7014
SELECT + CAST ( 96 AS INTEGER ) + - 57 AS col2
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-7015
SELECT + COUNT( * ) * + 46, + 44 * + ( + 58 ) AS col1
----
46
2552

skipif mysql # not compatible
query II rowsort label-7015
SELECT + COUNT ( * ) * + 46, + 44 * + ( + 58 ) AS col1
----
46
2552

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT + - SUM( DISTINCT 60 ) + + - 55 - + 55 AS col0
----
-170

skipif mysql # not compatible
query I rowsort label-7016
SELECT + - SUM ( DISTINCT 60 ) + + - 55 - + 55 AS col0
----
-170

onlyif mysql # DIV for integer division: 
query I rowsort label-7017
SELECT DISTINCT 54 DIV 54 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7017
SELECT DISTINCT 54 / 54 AS col2
----
1

query II rowsort
SELECT + 98 * - - 21 * 32 AS col2, 10
----
65856
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7019
SELECT + 2 + + 77 + COUNT( * ) + 16 DIV - 21 * - + 6 + + + ( 70 ) + - 68 DIV ( + 10 + - 6 ) AS col0
----
133

skipif mysql # not compatible
query I rowsort label-7019
SELECT + 2 + + 77 + COUNT ( * ) + 16 / - 21 * - + 6 + + + ( 70 ) + - 68 / ( + 10 + - 6 ) AS col0
----
133

onlyif mysql # DIV for integer division: 
query I rowsort label-7020
SELECT ALL 72 DIV ( + ( + - 95 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7020
SELECT ALL 72 / ( + ( + - 95 ) )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7021
SELECT - - ( - 18 ) DIV + - 24 + - 14 + - 88 AS col2, - 65 * - ( + 61 ) * + 65
----
-102
257725

skipif mysql # not compatible
query II rowsort label-7021
SELECT - - ( - 18 ) / + - 24 + - 14 + - 88 AS col2, - 65 * - ( + 61 ) * + 65
----
-102
257725

onlyif mysql # aggregate syntax: 
query II rowsort label-7022
SELECT + NULLIF ( COUNT( * ), - 88 ) * + 70 + - 71 col0, 92
----
-1
92

skipif mysql # not compatible
query II rowsort label-7022
SELECT + NULLIF ( COUNT ( * ), - 88 ) * + 70 + - 71 col0, 92
----
-1
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT + - 8 * + 96 * - 24 + - 68 / CASE + - 72 WHEN + - 81 - + COUNT( * ) THEN NULL WHEN 13 + 70 * + 50 THEN + ( - 75 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7023
SELECT + - 8 * + 96 * - 24 + - 68 / CASE + - 72 WHEN + - 81 - + COUNT ( * ) THEN NULL WHEN 13 + 70 * + 50 THEN + ( - 75 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7024
SELECT - - SUM( DISTINCT - ( 81 ) ) * - 23 DIV + COUNT( * ) + - + 50 + - - 71 AS col2
----
1884

skipif mysql # not compatible
query I rowsort label-7024
SELECT - - SUM ( DISTINCT - ( 81 ) ) * - 23 / + COUNT ( * ) + - + 50 + - - 71 AS col2
----
1884

onlyif mysql # aggregate syntax: 
query II rowsort label-7025
SELECT ( + 0 ), - MAX( - - 43 ) AS col1
----
0
-43

skipif mysql # not compatible
query II rowsort label-7025
SELECT ( + 0 ), - MAX ( - - 43 ) AS col1
----
0
-43

query II rowsort
SELECT ALL - 53 * - 29 AS col0, + 28 + - 49 + 5 + - ( 56 ) col1
----
1537
-72

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7028
SELECT DISTINCT + + 2 * - + 23 + - - 83 * + 71 * ( 3 ) + + - 29 DIV 37
----
17633

skipif mysql # not compatible
query I rowsort label-7028
SELECT DISTINCT + + 2 * - + 23 + - - 83 * + 71 * ( 3 ) + + - 29 / 37
----
17633

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT DISTINCT + CASE - 87 WHEN - + MAX( 49 ) - + + MIN( DISTINCT - + 93 ) THEN - ( COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7030
SELECT DISTINCT + CASE - 87 WHEN - + MAX ( 49 ) - + + MIN ( DISTINCT - + 93 ) THEN - ( COUNT ( * ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7031
SELECT + 85 * SUM( ALL - 56 )
----
-4760

skipif mysql # not compatible
query I rowsort label-7031
SELECT + 85 * SUM ( ALL - 56 )
----
-4760

query II rowsort
SELECT - 54 * 91 AS col1, - 49 * - COALESCE ( + - 43, - 51 ) AS col1
----
-4914
-2107

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT + ( - + NULLIF ( COUNT( * ), - 24 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7033
SELECT + ( - + NULLIF ( COUNT ( * ), - 24 ) ) AS col0
----
-1

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7038
SELECT ALL MIN( DISTINCT - 73 ) * COUNT( * ) + + 54 * + 93 AS col0
----
4949

skipif mysql # not compatible
query I rowsort label-7038
SELECT ALL MIN ( DISTINCT - 73 ) * COUNT ( * ) + + 54 * + 93 AS col0
----
4949

query I rowsort
SELECT - 55 * - CASE - + 19 WHEN - 96 THEN NULL WHEN + ( - 63 ) * - 36 THEN - 89 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT DISTINCT NULLIF ( + COUNT( 70 ), + 54 ) * + - 23 + + SUM( DISTINCT COALESCE ( - 63, - 50 + 82 ) ) + - COALESCE ( 57, ( 35 ), 92 ) AS col1
----
-143

skipif mysql # not compatible
query I rowsort label-7040
SELECT DISTINCT NULLIF ( + COUNT ( 70 ), + 54 ) * + - 23 + + SUM ( DISTINCT COALESCE ( - 63, - 50 + 82 ) ) + - COALESCE ( 57, ( 35 ), 92 ) AS col1
----
-143

query I rowsort
SELECT ALL - 25 * - 67
----
1675

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7043
SELECT ALL + 25 DIV - 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7043
SELECT ALL + 25 / - 83 AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7044
SELECT - 19 + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7044
SELECT - 19 + + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7045
SELECT - ( + + CASE 86 WHEN - 83 THEN + + NULLIF ( 76, - 15 ) ELSE NULL END ) - - SUM( 41 ) + 96 * + 80 * 51
----
NULL

skipif mysql # not compatible
query I rowsort label-7045
SELECT - ( + + CASE 86 WHEN - 83 THEN + + NULLIF ( 76, - 15 ) ELSE NULL END ) - - SUM ( 41 ) + 96 * + 80 * 51
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7046
SELECT ALL + 34 DIV - + 68
----
0

skipif mysql # not compatible
query I rowsort label-7046
SELECT ALL + 34 / - + 68
----
0

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

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

query I rowsort
SELECT - 65 * - 21
----
1365

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7049
SELECT ALL CAST( NULL AS SIGNED ) AS col0, - 29
----
NULL
-29

skipif mysql # not compatible
query II rowsort label-7049
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, - 29
----
NULL
-29

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

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

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

skipif mysql # not compatible
query I rowsort label-7051
SELECT ALL 29 * COUNT ( * ) AS col1
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7052
SELECT - 62, 91 DIV COUNT( * ) col2
----
-62
91

skipif mysql # not compatible
query II rowsort label-7052
SELECT - 62, 91 / COUNT ( * ) col2
----
-62
91

query I rowsort
SELECT + 0 * + CASE + - 58 WHEN + + 22 * 12 THEN NULL ELSE - 68 END AS col0
----
0

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7056
SELECT - - 4 DIV + - 81 - + + 77 * 59
----
-4543

skipif mysql # not compatible
query I rowsort label-7056
SELECT - - 4 / + - 81 - + + 77 * 59
----
-4543

onlyif mysql # aggregate syntax: 
query I rowsort label-7057
SELECT + - MIN( - + 20 ) * + - 33 * + SUM( - + 13 ) AS col0
----
8580

skipif mysql # not compatible
query I rowsort label-7057
SELECT + - MIN ( - + 20 ) * + - 33 * + SUM ( - + 13 ) AS col0
----
8580

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT ALL + CASE + MIN( DISTINCT - 66 ) WHEN + 70 * 56 + + 33 - - + COUNT( * ) / 61 THEN - COUNT( * ) ELSE NULL END / ( + 70 * 97 + + 15 * + 93 ) + 32 / 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7058
SELECT ALL + CASE + MIN ( DISTINCT - 66 ) WHEN + 70 * 56 + + 33 - - + COUNT ( * ) / 61 THEN - COUNT ( * ) ELSE NULL END / ( + 70 * 97 + + 15 * + 93 ) + 32 / 20 AS col0
----
NULL

query I rowsort
SELECT + 89 - 1 + + 73 - - 82 AS col2
----
243

onlyif mysql # DIV for integer division: 
query I rowsort label-7060
SELECT + NULLIF ( 87, + 38 ) DIV + 19 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-7060
SELECT + NULLIF ( 87, + 38 ) / + 19 AS col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7061
SELECT ALL + CASE COUNT( * ) WHEN - 34 - - 50 * 38 + + 39 THEN NULL WHEN - CASE - COUNT( * ) WHEN MIN( + 41 ) THEN NULL WHEN 46 THEN ( CAST( + 71 AS SIGNED ) ) ELSE 59 + 7 END * 64 THEN - 41 WHEN 74 * + 7 THEN 96 ELSE COUNT( * ) END col1
----
1

skipif mysql # not compatible
query I rowsort label-7061
SELECT ALL + CASE COUNT ( * ) WHEN - 34 - - 50 * 38 + + 39 THEN NULL WHEN - CASE - COUNT ( * ) WHEN MIN ( + 41 ) THEN NULL WHEN 46 THEN ( CAST ( + 71 AS INTEGER ) ) ELSE 59 + 7 END * 64 THEN - 41 WHEN 74 * + 7 THEN 96 ELSE COUNT ( * ) END col1
----
1

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

skipif mysql # not compatible
query I rowsort label-7062
SELECT - + SUM ( ALL + 33 ) + + 5 AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT + - NULLIF ( + SUM( + 86 ), 47 ) * + 5 - - - 67 - - 16 AS col0
----
-481

skipif mysql # not compatible
query I rowsort label-7063
SELECT + - NULLIF ( + SUM ( + 86 ), 47 ) * + 5 - - - 67 - - 16 AS col0
----
-481

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7064
SELECT CAST( NULL AS DECIMAL ) * - 62 / 66 * COUNT( * ) + - COUNT( * ) + 67 + - ( + COUNT( * ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7064
SELECT CAST ( NULL AS REAL ) * - 62 / 66 * COUNT ( * ) + - COUNT ( * ) + 67 + - ( + COUNT ( * ) ) col0
----
NULL

query I rowsort
SELECT + + 97 * - - 3 AS col1
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT ALL 50 + - CASE - COUNT( + 10 ) WHEN - 54 + + 6 * - + 72 THEN - - 99 * + 92 + + 94 * 34 WHEN ( - 18 ) * CASE 60 * - CASE 27 WHEN COALESCE ( COUNT( * ), 11 ) + COUNT( * ) THEN - AVG ( DISTINCT 61 ) WHEN 3 THEN COALESCE ( 12, 75 ) END WHEN AVG ( DISTINCT 83 ) THEN NULL WHEN 98 + 79 * - COUNT( * ) THEN - 17 * 48 ELSE NULL END THEN NULL END * ( + 31 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7066
SELECT ALL 50 + - CASE - COUNT ( + 10 ) WHEN - 54 + + 6 * - + 72 THEN - - 99 * + 92 + + 94 * 34 WHEN ( - 18 ) * CASE 60 * - CASE 27 WHEN COALESCE ( COUNT ( * ), 11 ) + COUNT ( * ) THEN - AVG ( DISTINCT 61 ) WHEN 3 THEN COALESCE ( 12, 75 ) END WHEN AVG ( DISTINCT 83 ) THEN NULL WHEN 98 + 79 * - COUNT ( * ) THEN - 17 * 48 ELSE NULL END THEN NULL END * ( + 31 ) AS col2
----
NULL

query I rowsort
SELECT + 10 * - 58 + 64 AS col0
----
-516

query I rowsort
SELECT 70 + + 23 AS col2
----
93

query I rowsort
SELECT ALL 14 - 53 AS col0
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7070
SELECT DISTINCT + COUNT( * ) * ( 55 ) DIV - - 41
----
1

skipif mysql # not compatible
query I rowsort label-7070
SELECT DISTINCT + COUNT ( * ) * ( 55 ) / - - 41
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7071
SELECT ALL + COALESCE ( - 74, + 9 * + 84, 11, 92 + - - 93 + - 10 * + 54 * - CAST( 92 AS SIGNED ) + - CAST( NULL AS SIGNED ) * + 66 * - 74 ) - + NULLIF ( COUNT( * ) + - MAX( DISTINCT CASE + 27 WHEN CASE + 94 WHEN ( 81 ) THEN - 16 END + - 67 THEN NULL WHEN 30 * 0 + + 30 THEN 10 * 82 END ), - COUNT( * ) * - NULLIF ( 89 * 50, - 77 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7071
SELECT ALL + COALESCE ( - 74, + 9 * + 84, 11, 92 + - - 93 + - 10 * + 54 * - CAST ( 92 AS INTEGER ) + - CAST ( NULL AS INTEGER ) * + 66 * - 74 ) - + NULLIF ( COUNT ( * ) + - MAX ( DISTINCT CASE + 27 WHEN CASE + 94 WHEN ( 81 ) THEN - 16 END + - 67 THEN NULL WHEN 30 * 0 + + 30 THEN 10 * 82 END ), - COUNT ( * ) * - NULLIF ( 89 * 50, - 77 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7072
SELECT 86 * + CAST( - 3 AS SIGNED )
----
-258

skipif mysql # not compatible
query I rowsort label-7072
SELECT 86 * + CAST ( - 3 AS INTEGER )
----
-258

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

skipif mysql # not compatible
query I rowsort label-7073
SELECT CAST ( NULL AS INTEGER ) * + - 28 / 12 + - + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 42 * 13
----
546

query I rowsort
SELECT 5 + + 11 * + - 99 AS col1
----
-1084

query I rowsort
SELECT ( 25 ) - + 74 AS col0
----
-49

query I rowsort
SELECT DISTINCT 6 * - ( + + 44 )
----
-264

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

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

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

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

query I rowsort
SELECT DISTINCT + CASE - 3 WHEN - 99 * + + 15 THEN - 11 * + 79 + - 70 WHEN + + 85 THEN NULL END / 64 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7081
SELECT + 80 - + 7 + + - COUNT( ALL + + 80 ) * 12 * + + CAST( 3 AS SIGNED ) * 27 / + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7081
SELECT + 80 - + 7 + + - COUNT ( ALL + + 80 ) * 12 * + + CAST ( 3 AS INTEGER ) * 27 / + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 24 + - 50
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7083
SELECT MAX( - - 69 ) * - 90
----
-6210

skipif mysql # not compatible
query I rowsort label-7083
SELECT MAX ( - - 69 ) * - 90
----
-6210

onlyif mysql # DIV for integer division: 
query I rowsort label-7084
SELECT - ( + 45 ) + - 81 - - 30 DIV - - 52 * 11 AS col0
----
-126

skipif mysql # not compatible
query I rowsort label-7084
SELECT - ( + 45 ) + - 81 - - 30 / - - 52 * 11 AS col0
----
-126

query I rowsort
SELECT 38 + + ( ( + 6 ) ) + - 22
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT 31 + + 42 * MAX( - - 67 ) AS col1
----
2845

skipif mysql # not compatible
query I rowsort label-7086
SELECT 31 + + 42 * MAX ( - - 67 ) AS col1
----
2845

query I rowsort
SELECT DISTINCT + + 55 * - NULLIF ( - - 93, - 96 + + - 29 ) AS col2
----
-5115

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

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

query I rowsort
SELECT 7 + 73 + - + 63 + - CASE - ( 3 ) WHEN - - 21 THEN - 35 + - 67 + 11 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT + 38 * + - MAX( - 11 ) - + 9 + + + COUNT( ALL 88 )
----
410

skipif mysql # not compatible
query I rowsort label-7090
SELECT + 38 * + - MAX ( - 11 ) - + 9 + + + COUNT ( ALL 88 )
----
410

query I rowsort
SELECT 87 * - - 73
----
6351

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7092
SELECT DISTINCT - CAST( + - ( MIN( 35 ) ) AS SIGNED )
----
35

skipif mysql # not compatible
query I rowsort label-7092
SELECT DISTINCT - CAST ( + - ( MIN ( 35 ) ) AS INTEGER )
----
35

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7094
SELECT DISTINCT MAX( + 99 ) * - 71 AS col1, 24 * - 16
----
-7029
-384

skipif mysql # not compatible
query II rowsort label-7094
SELECT DISTINCT MAX ( + 99 ) * - 71 AS col1, 24 * - 16
----
-7029
-384

onlyif mysql # DIV for integer division: 
query I rowsort label-7095
SELECT DISTINCT - 52 DIV - ( + 82 )
----
0

skipif mysql # not compatible
query I rowsort label-7095
SELECT DISTINCT - 52 / - ( + 82 )
----
0

query I rowsort
SELECT ALL 8 * - 3
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7097
SELECT COALESCE ( + CASE - 21 WHEN - COUNT( * ) THEN - 0 / 5 ELSE - 17 END, + 41 ) + - ( - + CASE 80 WHEN - 6 * COUNT( ( 8 ) ) + - COUNT( * ) THEN NULL WHEN CAST( - 54 AS SIGNED ) * + COUNT( * ) THEN + COUNT( * ) ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7097
SELECT COALESCE ( + CASE - 21 WHEN - COUNT ( * ) THEN - 0 / 5 ELSE - 17 END, + 41 ) + - ( - + CASE 80 WHEN - 6 * COUNT ( ( 8 ) ) + - COUNT ( * ) THEN NULL WHEN CAST ( - 54 AS INTEGER ) * + COUNT ( * ) THEN + COUNT ( * ) ELSE NULL END ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 1 * - 9 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT DISTINCT 65 * + + 15 * - COUNT( * ) AS col2
----
-975

skipif mysql # not compatible
query I rowsort label-7099
SELECT DISTINCT 65 * + + 15 * - COUNT ( * ) AS col2
----
-975

query I rowsort
SELECT 85 + + 16 * - + 17 AS col2
----
-187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7101
SELECT CAST( NULL AS SIGNED ) - + CASE ( 42 ) WHEN - 44 THEN + + AVG ( ALL 38 ) + + + 80 ELSE + 75 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7101
SELECT CAST ( NULL AS INTEGER ) - + CASE ( 42 ) WHEN - 44 THEN + + AVG ( ALL 38 ) + + + 80 ELSE + 75 END AS col1
----
NULL

query I rowsort
SELECT ALL 61 + - - 76 + - 8 AS col1
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT ALL - 77 * + NULLIF ( - NULLIF ( + COUNT( * ), 8 ), + COUNT( * ) )
----
77

skipif mysql # not compatible
query I rowsort label-7103
SELECT ALL - 77 * + NULLIF ( - NULLIF ( + COUNT ( * ), 8 ), + COUNT ( * ) )
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7104
SELECT 53 DIV + + 83 col1
----
0

skipif mysql # not compatible
query I rowsort label-7104
SELECT 53 / + + 83 col1
----
0

query I rowsort
SELECT ALL - 66 + 73
----
7

query I rowsort
SELECT DISTINCT 50 * + - 4 + + 39
----
-161

query I rowsort
SELECT 32 - + + 35 - + + 62 + 27
----
-38

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

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

query II rowsort
SELECT - - 25 AS col1, - 95
----
25
-95

query I rowsort
SELECT ALL + + COALESCE ( - 14, + 93 )
----
-14

query I rowsort
SELECT ALL + NULLIF ( - 45, - + 8 )
----
-45

query I rowsort
SELECT ALL - + 55 * - NULLIF ( + - 86, + - 80 ) - + + 89 + - 98 col1
----
-4917

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7114
SELECT - CAST( NULL AS SIGNED ) * - + 6 / - + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-7114
SELECT - CAST ( NULL AS INTEGER ) * - + 6 / - + 43
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7115
SELECT ALL + 66 * 71 DIV + COUNT( * )
----
4686

skipif mysql # not compatible
query I rowsort label-7115
SELECT ALL + 66 * 71 / + COUNT ( * )
----
4686

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT 39 * COUNT( * ) - + COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-7116
SELECT 39 * COUNT ( * ) - + COUNT ( * )
----
38

onlyif mysql # DIV for integer division: 
query II rowsort label-7117
SELECT + 51 AS col1, 88 - 54 DIV - 78 * + - 79 AS col0
----
51
88

skipif mysql # not compatible
query II rowsort label-7117
SELECT + 51 AS col1, 88 - 54 / - 78 * + - 79 AS col0
----
51
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7118
SELECT CAST( + COUNT( * ) AS SIGNED ) DIV - + COUNT( * ) - + COUNT( * ), + 53 AS col1
----
-2
53

skipif mysql # not compatible
query II rowsort label-7118
SELECT CAST ( + COUNT ( * ) AS INTEGER ) / - + COUNT ( * ) - + COUNT ( * ), + 53 AS col1
----
-2
53

query I rowsort
SELECT - 90 * 14 AS col2
----
-1260

query II rowsort
SELECT + 96 * + - 54 AS col0, - ( + 46 ) - 97 AS col0
----
-5184
-143

query I rowsort
SELECT + 55 - - 28
----
83

query I rowsort
SELECT COALESCE ( + - 54, - 72 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT CASE + 78 WHEN 24 THEN COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7123
SELECT CASE + 78 WHEN 24 THEN COUNT ( * ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7124
SELECT SUM( DISTINCT + 84 ) * - CAST( NULL AS SIGNED ) + + 26 * - COALESCE ( + - 73, - + 52 ) AS col1, 56
----
NULL
56

skipif mysql # not compatible
query II rowsort label-7124
SELECT SUM ( DISTINCT + 84 ) * - CAST ( NULL AS INTEGER ) + + 26 * - COALESCE ( + - 73, - + 52 ) AS col1, 56
----
NULL
56

query I rowsort
SELECT - 60 * - ( - 35 ) AS col0
----
-2100

query II rowsort
SELECT DISTINCT + 27 AS col1, + 46 AS col2
----
27
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7127
SELECT ALL + NULLIF ( 98, + 50 * - - SUM( + 80 ) )
----
98

skipif mysql # not compatible
query I rowsort label-7127
SELECT ALL + NULLIF ( 98, + 50 * - - SUM ( + 80 ) )
----
98

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

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

query I rowsort
SELECT ALL 6 * - 2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT MAX( + ( - 99 ) ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-7130
SELECT MAX ( + ( - 99 ) ) AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7131
SELECT ALL 25 * COUNT( - 75 ) + - - 94 AS col1
----
119

skipif mysql # not compatible
query I rowsort label-7131
SELECT ALL 25 * COUNT ( - 75 ) + - - 94 AS col1
----
119

query I rowsort
SELECT - 24 + - - 89 AS col1
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-7133
SELECT + MAX( DISTINCT 75 ) AS col2, 47
----
75
47

skipif mysql # not compatible
query II rowsort label-7133
SELECT + MAX ( DISTINCT 75 ) AS col2, 47
----
75
47

query I rowsort
SELECT + 43 * 1 + + 58 AS col1
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7135
SELECT - MIN( - 47 ) * CAST( MIN( ALL + + 86 ) AS SIGNED )
----
4042

skipif mysql # not compatible
query I rowsort label-7135
SELECT - MIN ( - 47 ) * CAST ( MIN ( ALL + + 86 ) AS INTEGER )
----
4042

query I rowsort
SELECT + CASE + 60 WHEN 15 THEN NULL ELSE 8 END + - 14 + 72 AS col0
----
66

query I rowsort
SELECT ALL 49 + - 52 * - 55
----
2909

onlyif mysql # aggregate syntax: 
query II rowsort label-7138
SELECT 68, ( - 46 ) * - 14 + + 13 + + - COUNT( * ) AS col0
----
68
656

skipif mysql # not compatible
query II rowsort label-7138
SELECT 68, ( - 46 ) * - 14 + + 13 + + - COUNT ( * ) AS col0
----
68
656

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7140
SELECT ALL + + 26 + + - NULLIF ( - - 36, - ( - - 1 ) * + + 53 * + COUNT( * ) ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-7140
SELECT ALL + + 26 + + - NULLIF ( - - 36, - ( - - 1 ) * + + 53 * + COUNT ( * ) ) AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7141
SELECT ALL - 37 * + + COUNT( * ) + + 23
----
-14

skipif mysql # not compatible
query I rowsort label-7141
SELECT ALL - 37 * + + COUNT ( * ) + + 23
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7142
SELECT ALL - CAST( + - 67 AS SIGNED )
----
67

skipif mysql # not compatible
query I rowsort label-7142
SELECT ALL - CAST ( + - 67 AS INTEGER )
----
67

query I rowsort
SELECT - 8 + 64 AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT + 78 - - - SUM( + + 97 )
----
-19

skipif mysql # not compatible
query I rowsort label-7144
SELECT + 78 - - - SUM ( + + 97 )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7145
SELECT + 82 * + + SUM( + 69 )
----
5658

skipif mysql # not compatible
query I rowsort label-7145
SELECT + 82 * + + SUM ( + 69 )
----
5658

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT + COUNT( * ) + + 49 * 24
----
1177

skipif mysql # not compatible
query I rowsort label-7146
SELECT + COUNT ( * ) + + 49 * 24
----
1177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7147
SELECT + + CAST( + + COUNT( * ) AS SIGNED ) + - 48 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-7147
SELECT + + CAST ( + + COUNT ( * ) AS INTEGER ) + - 48 AS col0
----
-47

query I rowsort
SELECT ALL + 54 - - 51 AS col0
----
105

query II rowsort
SELECT NULLIF ( + 44, - 38 + - 26 ) AS col1, + 7
----
44
7

query I rowsort
SELECT + - 74 + + 14 AS col2
----
-60

query I rowsort
SELECT + + 15 * - - 6 AS col1
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7152
SELECT ALL 27 / - 46 + - 87 * + CAST( NULL AS SIGNED ) * + - 34 / - 72 + - 14 - + + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-7152
SELECT ALL 27 / - 46 + - 87 * + CAST ( NULL AS INTEGER ) * + - 34 / - 72 + - 14 - + + 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT ALL ( + SUM( - NULLIF ( - 69, + - 48 ) ) )
----
69

skipif mysql # not compatible
query I rowsort label-7153
SELECT ALL ( + SUM ( - NULLIF ( - 69, + - 48 ) ) )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT + - 24 + + COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-7154
SELECT + - 24 + + COUNT ( * )
----
-23

query II rowsort
SELECT ALL 55 AS col1, 42 AS col1
----
55
42

query I rowsort
SELECT + ( + - 36 ) + 30 col1
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7157
SELECT CAST( + - 92 AS SIGNED ) AS col0, 92 * + ( + 99 )
----
-92
9108

skipif mysql # not compatible
query II rowsort label-7157
SELECT CAST ( + - 92 AS INTEGER ) AS col0, 92 * + ( + 99 )
----
-92
9108

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7158
SELECT - CAST( NULL AS SIGNED ) + 19 + 74 col0, 30 + CAST( + + 25 AS SIGNED ) + - - 35 + - - 1
----
NULL
91

skipif mysql # not compatible
query II rowsort label-7158
SELECT - CAST ( NULL AS INTEGER ) + 19 + 74 col0, 30 + CAST ( + + 25 AS INTEGER ) + - - 35 + - - 1
----
NULL
91

query I rowsort
SELECT + 73 * - - 67 * + 47
----
229877

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7161
SELECT 80 * + 40 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7161
SELECT 80 * + 40 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7162
SELECT DISTINCT + 89 DIV 68 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7162
SELECT DISTINCT + 89 / 68 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7163
SELECT ALL 65 DIV 25 + - - 69 * - COUNT( * ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-7163
SELECT ALL 65 / 25 + - - 69 * - COUNT ( * ) AS col0
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-7164
SELECT ALL - 91 DIV - - 7 + - 32 * + 34 AS col0
----
-1101

skipif mysql # not compatible
query I rowsort label-7164
SELECT ALL - 91 / - - 7 + - 32 * + 34 AS col0
----
-1101

query I rowsort
SELECT - 36 * - - 61
----
-2196

onlyif mysql # DIV for integer division: 
query I rowsort label-7166
SELECT ALL - 74 * ( + 2 ) DIV + ( - 42 ) + - 0 + + 75 DIV - ( 93 ) * - 66 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-7166
SELECT ALL - 74 * ( + 2 ) / + ( - 42 ) + - 0 + + 75 / - ( 93 ) * - 66 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7167
SELECT ALL + 13 * 43 + ( - 85 ) * - MAX( ALL + 52 ) - COUNT( * )
----
4978

skipif mysql # not compatible
query I rowsort label-7167
SELECT ALL + 13 * 43 + ( - 85 ) * - MAX ( ALL + 52 ) - COUNT ( * )
----
4978

onlyif mysql # aggregate syntax: 
query II rowsort label-7168
SELECT + 83 - - 0 + MIN( DISTINCT - 47 ) - - 88 col1, SUM( ALL 46 )
----
124
46

skipif mysql # not compatible
query II rowsort label-7168
SELECT + 83 - - 0 + MIN ( DISTINCT - 47 ) - - 88 col1, SUM ( ALL 46 )
----
124
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT - SUM( ALL + 12 ) + - CASE + NULLIF ( + - 83, + 7 ) WHEN 87 THEN - - 29 END + + MIN( ALL + 25 ) + - - 94 * 76
----
NULL

skipif mysql # not compatible
query I rowsort label-7169
SELECT - SUM ( ALL + 12 ) + - CASE + NULLIF ( + - 83, + 7 ) WHEN 87 THEN - - 29 END + + MIN ( ALL + 25 ) + - - 94 * 76
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7170
SELECT DISTINCT + CAST( 6 AS SIGNED ), + 97 AS col0
----
6
97

skipif mysql # not compatible
query II rowsort label-7170
SELECT DISTINCT + CAST ( 6 AS INTEGER ), + 97 AS col0
----
6
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7171
SELECT ALL + SUM( ALL + 90 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-7171
SELECT ALL + SUM ( ALL + 90 ) AS col1
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7172
SELECT DISTINCT + + COUNT( * ) * + - ( + 48 ) DIV - 23 + CAST( - NULLIF ( 27, 78 ) AS SIGNED ) * + - COALESCE ( + COALESCE ( + COUNT( * ), 41 ), - 56 ) + - 72 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-7172
SELECT DISTINCT + + COUNT ( * ) * + - ( + 48 ) / - 23 + CAST ( - NULLIF ( 27, 78 ) AS INTEGER ) * + - COALESCE ( + COALESCE ( + COUNT ( * ), 41 ), - 56 ) + - 72 AS col1
----
-43

query I rowsort
SELECT - + 71 - - - ( - + ( + 4 ) ) AS col2
----
-67

query II rowsort
SELECT DISTINCT - ( 98 ) AS col1, 95
----
-98
95

query II rowsort
SELECT - ( - 50 ) + + 53 + - 10 * + 77, 39 AS col2
----
-667
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7176
SELECT ALL + 83 - - CAST( NULL AS SIGNED ) * ( + - 76 ) + + 27 / - 78 + 4 + - 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7176
SELECT ALL + 83 - - CAST ( NULL AS INTEGER ) * ( + - 76 ) + + 27 / - 78 + 4 + - 8 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT - - CASE + 66 WHEN ( + 14 ) THEN NULLIF ( + 62, + 2 ) * - - 19 WHEN - + 8 THEN ( - COUNT( * ) ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7177
SELECT - - CASE + 66 WHEN ( + 14 ) THEN NULLIF ( + 62, + 2 ) * - - 19 WHEN - + 8 THEN ( - COUNT ( * ) ) ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT + 33 * 75 AS col2, + 6 AS col1
----
2475
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7179
SELECT DISTINCT ( + - 77 ), + COUNT( * ) * - SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS col2
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-7179
SELECT DISTINCT ( + - 77 ), + COUNT ( * ) * - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2
----
-77
NULL

query I rowsort
SELECT ALL + + 6 - - 82
----
88

query I rowsort
SELECT ALL - + 44 * - + 48
----
2112

query II rowsort
SELECT DISTINCT - 31 * - 81, - 45 + 84 AS col0
----
2511
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT - NULLIF ( + CASE + NULLIF ( - 92, 62 ) WHEN + 99 THEN NULL WHEN COUNT( * ) - + 67 + - NULLIF ( 16, 91 ) THEN - COUNT( * ) ELSE NULL END, 22 * 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7183
SELECT - NULLIF ( + CASE + NULLIF ( - 92, 62 ) WHEN + 99 THEN NULL WHEN COUNT ( * ) - + 67 + - NULLIF ( 16, 91 ) THEN - COUNT ( * ) ELSE NULL END, 22 * 73 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7184
SELECT - 90 AS col2, + MIN( - 64 ) * + + 80
----
-90
-5120

skipif mysql # not compatible
query II rowsort label-7184
SELECT - 90 AS col2, + MIN ( - 64 ) * + + 80
----
-90
-5120

onlyif mysql # aggregate syntax: 
query II rowsort label-7185
SELECT ALL 91, ( COUNT( * ) ) - - 46 * 60 + 54 AS col2
----
91
2815

skipif mysql # not compatible
query II rowsort label-7185
SELECT ALL 91, ( COUNT ( * ) ) - - 46 * 60 + 54 AS col2
----
91
2815

query I rowsort
SELECT 70 * 25 AS col1
----
1750

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT SUM( ALL + + 72 ) - 51 + - - 26 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-7187
SELECT SUM ( ALL + + 72 ) - 51 + - - 26 AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7188
SELECT ALL 37 + + - COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-7188
SELECT ALL 37 + + - COUNT ( * )
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-7189
SELECT DISTINCT 8 DIV + 39 * - ( 66 )
----
0

skipif mysql # not compatible
query I rowsort label-7189
SELECT DISTINCT 8 / + 39 * - ( 66 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7190
SELECT ALL - MAX( ALL - 70 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-7190
SELECT ALL - MAX ( ALL - 70 ) AS col1
----
70

query II rowsort
SELECT 86 AS col1, 20 col1
----
86
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT DISTINCT 42 + + COUNT( 93 ) + - 59 * - 97
----
5766

skipif mysql # not compatible
query I rowsort label-7192
SELECT DISTINCT 42 + + COUNT ( 93 ) + - 59 * - 97
----
5766

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7194
SELECT ALL COUNT( + 50 ) + - 13
----
-12

skipif mysql # not compatible
query I rowsort label-7194
SELECT ALL COUNT ( + 50 ) + - 13
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT DISTINCT - MAX( DISTINCT + + 67 ) col2
----
-67

skipif mysql # not compatible
query I rowsort label-7195
SELECT DISTINCT - MAX ( DISTINCT + + 67 ) col2
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7196
SELECT ALL - 86 + - NULLIF ( 7, - AVG ( DISTINCT + 83 ) * - + 71 / 92 * + CASE 97 WHEN + + 92 / + 81 * + 80 * + + 21 + + COUNT( * ) + CAST( NULL AS SIGNED ) THEN NULL WHEN AVG ( - 64 ) THEN - 86 - - COALESCE ( + ( 18 ), 57, CASE - 90 WHEN - ( 42 ) THEN NULL WHEN 19 THEN NULL WHEN - 90 THEN 33 END + + ( 51 ) * ( + 30 ) ) WHEN COUNT( - 99 ) / + 37 THEN NULL ELSE NULL END / 98 ) - - 35 * NULLIF ( - 5, 14 * 79 ) AS col2
----
-268

skipif mysql # not compatible
query I rowsort label-7196
SELECT ALL - 86 + - NULLIF ( 7, - AVG ( DISTINCT + 83 ) * - + 71 / 92 * + CASE 97 WHEN + + 92 / + 81 * + 80 * + + 21 + + COUNT ( * ) + CAST ( NULL AS INTEGER ) THEN NULL WHEN AVG ( - 64 ) THEN - 86 - - COALESCE ( + ( 18 ), 57, CASE - 90 WHEN - ( 42 ) THEN NULL WHEN 19 THEN NULL WHEN - 90 THEN 33 END + + ( 51 ) * ( + 30 ) ) WHEN COUNT ( - 99 ) / + 37 THEN NULL ELSE NULL END / 98 ) - - 35 * NULLIF ( - 5, 14 * 79 ) AS col2
----
-268

query I rowsort
SELECT 30 + - 23 col0
----
7

query I rowsort
SELECT ALL - COALESCE ( 19, 22 ) AS col0
----
-19

query I rowsort
SELECT ( + CASE + 5 WHEN + 53 * + 1 + + - 15 THEN - 52 ELSE NULL END ) * - 44
----
NULL

query I rowsort
SELECT DISTINCT - 87 - 99
----
-186

query I rowsort
SELECT + 75 * 28 + - NULLIF ( + - 90, + + 4 ) - - - 63 AS col2
----
2127

query II rowsort
SELECT + - 28 AS col1, 13 * - - 97 AS col2
----
-28
1261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7203
SELECT + COUNT( * ) * 98 - - COALESCE ( - + 11, - 22, + CAST( CASE + - 32 WHEN - CAST( - ( 48 ) AS SIGNED ) * 52 + 47 THEN - 36 * - ( 90 ) ELSE 41 - 34 END AS SIGNED ) ) * - 13 + 6 col2
----
247

skipif mysql # not compatible
query I rowsort label-7203
SELECT + COUNT ( * ) * 98 - - COALESCE ( - + 11, - 22, + CAST ( CASE + - 32 WHEN - CAST ( - ( 48 ) AS INTEGER ) * 52 + 47 THEN - 36 * - ( 90 ) ELSE 41 - 34 END AS INTEGER ) ) * - 13 + 6 col2
----
247

onlyif mysql # aggregate syntax: 
query II rowsort label-7204
SELECT 31 * 42 + - 71 + 26, COALESCE ( + COUNT( * ), 29 ) AS col1
----
1257
1

skipif mysql # not compatible
query II rowsort label-7204
SELECT 31 * 42 + - 71 + 26, COALESCE ( + COUNT ( * ), 29 ) AS col1
----
1257
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7205
SELECT - + 74 AS col1, + ( - - 33 ) * - CAST( NULL AS SIGNED ) * + 95 * 4 - - 88
----
-74
NULL

skipif mysql # not compatible
query II rowsort label-7205
SELECT - + 74 AS col1, + ( - - 33 ) * - CAST ( NULL AS INTEGER ) * + 95 * 4 - - 88
----
-74
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7207
SELECT 7 + - - ( COUNT( * ) ), - 67 AS col1
----
8
-67

skipif mysql # not compatible
query II rowsort label-7207
SELECT 7 + - - ( COUNT ( * ) ), - 67 AS col1
----
8
-67

query I rowsort
SELECT ALL + 93 * 25 AS col2
----
2325

query I rowsort
SELECT DISTINCT + CASE - 96 WHEN + + 95 THEN NULL WHEN + 40 THEN NULL ELSE - + 16 END
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7210
SELECT DISTINCT + - ( - 28 ) / + 39 / 33 - COALESCE ( + + 99, - 70, COUNT( * ) * - 28 ) / + + 11 * + 8 + + NULLIF ( CASE WHEN ( 56 ) IS NULL THEN 54 WHEN + CAST( NULL AS SIGNED ) * 49 = 10 + 22 * 84 THEN NULL END, - 60 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7210
SELECT DISTINCT + - ( - 28 ) / + 39 / 33 - COALESCE ( + + 99, - 70, COUNT ( * ) * - 28 ) / + + 11 * + 8 + + NULLIF ( CASE WHEN ( 56 ) IS NULL THEN 54 WHEN + CAST ( NULL AS INTEGER ) * 49 = 10 + 22 * 84 THEN NULL END, - 60 ) AS col1
----
NULL

query I rowsort
SELECT 0 + - 37 AS col0
----
-37

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

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

query I rowsort
SELECT + 6 + - NULLIF ( - 41, + 94 / 12 + 38 )
----
47

query I rowsort
SELECT 77 - - + 34 AS col1
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-7215
SELECT ALL + 11 DIV + 33
----
0

skipif mysql # not compatible
query I rowsort label-7215
SELECT ALL + 11 / + 33
----
0

query I rowsort
SELECT - 89 + - COALESCE ( - 35, - 22 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT ALL + + NULLIF ( MAX( + 77 ), - + SUM( ALL + - ( - + 70 ) ) ) * - 14 AS col1
----
-1078

skipif mysql # not compatible
query I rowsort label-7217
SELECT ALL + + NULLIF ( MAX ( + 77 ), - + SUM ( ALL + - ( - + 70 ) ) ) * - 14 AS col1
----
-1078

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7218
SELECT SUM( + - 70 ) + + CASE - 56 WHEN + 24 THEN NULL WHEN - + CAST( - - SUM( + + 30 ) AS SIGNED ) THEN + MAX( + 16 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7218
SELECT SUM ( + - 70 ) + + CASE - 56 WHEN + 24 THEN NULL WHEN - + CAST ( - - SUM ( + + 30 ) AS INTEGER ) THEN + MAX ( + 16 ) END AS col0
----
NULL

query I rowsort
SELECT 86 + + 65 + + 49 * 56
----
2895

onlyif mysql # DIV for integer division: 
query I rowsort label-7220
SELECT ALL - 44 + + + 33 * 29 DIV 48 + + ( 74 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-7220
SELECT ALL - 44 + + + 33 * 29 / 48 + + ( 74 ) AS col2
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-7221
SELECT DISTINCT - 35 + - + COUNT( * ) + - 48 * - 47 AS col0, - COALESCE ( - COUNT( * ), - + 0 )
----
2220
1

skipif mysql # not compatible
query II rowsort label-7221
SELECT DISTINCT - 35 + - + COUNT ( * ) + - 48 * - 47 AS col0, - COALESCE ( - COUNT ( * ), - + 0 )
----
2220
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7222
SELECT ALL + 17 + + 48 * - 38 + + CAST( NULL AS DECIMAL ) * - SUM( 51 ) + - + 23 AS col0, 1 col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7222
SELECT ALL + 17 + + 48 * - 38 + + CAST ( NULL AS REAL ) * - SUM ( 51 ) + - + 23 AS col0, 1 col0
----
NULL
1

query I rowsort
SELECT DISTINCT - 62 + + 76 * - + 98 AS col0
----
-7510

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

skipif mysql # not compatible
query I rowsort label-7224
SELECT - 7 * - - 7 + COUNT ( * ) AS col0
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-7225
SELECT SUM( 90 ) AS col2, - COUNT( * ) AS col0
----
90
-1

skipif mysql # not compatible
query II rowsort label-7225
SELECT SUM ( 90 ) AS col2, - COUNT ( * ) AS col0
----
90
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7226
SELECT ALL COALESCE ( SUM( DISTINCT 78 ), - 97 ) DIV + 16 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-7226
SELECT ALL COALESCE ( SUM ( DISTINCT 78 ), - 97 ) / + 16 AS col0
----
4

query I rowsort
SELECT ( 10 ) + 42
----
52

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

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

query I rowsort
SELECT ALL ( - 13 ) * + 4 AS col0
----
-52

query I rowsort
SELECT + 22 * - 71 AS col0
----
-1562

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7233
SELECT ALL - 67 DIV - ( - + 16 ) * COUNT( * ) AS col2, - 12 * - 71 AS col0
----
-4
852

skipif mysql # not compatible
query II rowsort label-7233
SELECT ALL - 67 / - ( - + 16 ) * COUNT ( * ) AS col2, - 12 * - 71 AS col0
----
-4
852

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7235
SELECT ALL CASE + 37 WHEN - - 53 - + COUNT( * ) THEN + 72 WHEN + 59 * + 47 THEN - 45 + + 55 END col0, 74 AS col2
----
NULL
74

skipif mysql # not compatible
query II rowsort label-7235
SELECT ALL CASE + 37 WHEN - - 53 - + COUNT ( * ) THEN + 72 WHEN + 59 * + 47 THEN - 45 + + 55 END col0, 74 AS col2
----
NULL
74

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7237
SELECT DISTINCT COUNT( - + 51 ) AS col1, CAST( + 58 AS SIGNED ) AS col1
----
1
58

skipif mysql # not compatible
query II rowsort label-7237
SELECT DISTINCT COUNT ( - + 51 ) AS col1, CAST ( + 58 AS INTEGER ) AS col1
----
1
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT ALL + - 76 * - 83 + + COUNT( * ) * ( + + 71 ) + + + COALESCE ( 98, + 14 ) AS col2
----
6477

skipif mysql # not compatible
query I rowsort label-7238
SELECT ALL + - 76 * - 83 + + COUNT ( * ) * ( + + 71 ) + + + COALESCE ( 98, + 14 ) AS col2
----
6477

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT + COUNT( * ) * + + COUNT( DISTINCT 50 ) * + 37 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-7239
SELECT + COUNT ( * ) * + + COUNT ( DISTINCT 50 ) * + 37 AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7240
SELECT ALL - + CASE + - NULLIF ( + + ( 98 ), + 55 + - - 80 * 78 * + CASE - 47 WHEN - + 88 / + ( MAX( DISTINCT - - 1 ) ) THEN + - 34 + COALESCE ( - COALESCE ( - 74, 82 * - 48 ), 29 + 37 ) * - 12 END / 46 ) WHEN - 41 * 45 THEN 86 * 67 ELSE NULL END + 42 / 12
----
NULL

skipif mysql # not compatible
query I rowsort label-7240
SELECT ALL - + CASE + - NULLIF ( + + ( 98 ), + 55 + - - 80 * 78 * + CASE - 47 WHEN - + 88 / + ( MAX ( DISTINCT - - 1 ) ) THEN + - 34 + COALESCE ( - COALESCE ( - 74, 82 * - 48 ), 29 + 37 ) * - 12 END / 46 ) WHEN - 41 * 45 THEN 86 * 67 ELSE NULL END + 42 / 12
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-7242
SELECT DISTINCT + 3 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7243
SELECT ALL + ( - + 27 ) DIV - 11 + + + 87
----
89

skipif mysql # not compatible
query I rowsort label-7243
SELECT ALL + ( - + 27 ) / - 11 + + + 87
----
89

query I rowsort
SELECT DISTINCT + 31 + + ( + + 36 ) + + 77
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT DISTINCT NULLIF ( - 62, + 88 * - 65 - - - 65 + + 20 + - 45 * + ( + 50 ) * + + 92 * + - 87 * + COUNT( * ) + 54 + + + COUNT( * ) / + 63 * 82 + 42 ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-7245
SELECT DISTINCT NULLIF ( - 62, + 88 * - 65 - - - 65 + + 20 + - 45 * + ( + 50 ) * + + 92 * + - 87 * + COUNT ( * ) + 54 + + + COUNT ( * ) / + 63 * 82 + 42 ) AS col0
----
-62

query I rowsort
SELECT - 60 + + 5
----
-55

query I rowsort
SELECT - 78 * + 26
----
-2028

onlyif mysql # aggregate syntax: 
query II rowsort label-7248
SELECT ALL + MIN( + - 57 ) - 79 AS col1, 53
----
-136
53

skipif mysql # not compatible
query II rowsort label-7248
SELECT ALL + MIN ( + - 57 ) - 79 AS col1, 53
----
-136
53

query I rowsort
SELECT - 54 - 33 AS col0
----
-87

query I rowsort
SELECT ALL - 59 * 99 AS col2
----
-5841

onlyif mysql # DIV for integer division: 
query I rowsort label-7251
SELECT 86 DIV + 18 - - 0 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-7251
SELECT 86 / + 18 - - 0 AS col1
----
4

query I rowsort
SELECT - 6 + 3 AS col1
----
-3

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

skipif mysql # not compatible
query I rowsort label-7253
SELECT DISTINCT + CAST ( - COUNT ( - 89 ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT - 70 + + ( COUNT( * ) ) + - 80 AS col2
----
-149

skipif mysql # not compatible
query I rowsort label-7254
SELECT - 70 + + ( COUNT ( * ) ) + - 80 AS col2
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT + ( - ( + COALESCE ( - 62, - + 87 * 28 ) ) ) * + COUNT( * ) - ( + - 52 ) AS col1
----
114

skipif mysql # not compatible
query I rowsort label-7255
SELECT + ( - ( + COALESCE ( - 62, - + 87 * 28 ) ) ) * + COUNT ( * ) - ( + - 52 ) AS col1
----
114

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

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

query I rowsort
SELECT - + 82 * - - 81 AS col2
----
-6642

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

query I rowsort
SELECT + 33 - 33 AS col0
----
0

query I rowsort
SELECT + 46 + + 77 AS col1
----
123

query I rowsort
SELECT ALL + 37 * + 42 AS col2
----
1554

onlyif mysql # DIV for integer division: 
query I rowsort label-7262
SELECT + 95 * 58 DIV 70
----
78

skipif mysql # not compatible
query I rowsort label-7262
SELECT + 95 * 58 / 70
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT + + 78 * - 42 - - + 62 + - 32 + + + 35 + - - 33 + - 80 - + 18 + + + 27 * 35 * - 99 * - COUNT( * ) + - 74 AS col0
----
90205

skipif mysql # not compatible
query I rowsort label-7263
SELECT + + 78 * - 42 - - + 62 + - 32 + + + 35 + - - 33 + - 80 - + 18 + + + 27 * 35 * - 99 * - COUNT ( * ) + - 74 AS col0
----
90205

onlyif mysql # aggregate syntax: 
query I rowsort label-7264
SELECT ALL - - 68 * - + 9 + 28 * + COUNT( * )
----
-584

skipif mysql # not compatible
query I rowsort label-7264
SELECT ALL - - 68 * - + 9 + 28 * + COUNT ( * )
----
-584

query I rowsort
SELECT ALL 24 * 34 + COALESCE ( - 14, 14 + + 4 ) + 43 AS col2
----
845

query II rowsort
SELECT + + 77 * - 91 + 55 AS col2, + 71 - + - 54 AS col1
----
-6952
125

query I rowsort
SELECT - NULLIF ( 48, + 17 ) AS col0
----
-48

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7269
SELECT + CASE - + 81 WHEN - - 38 * + COUNT( * ) THEN + - COUNT( * ) WHEN - + COUNT( * ) THEN MAX( DISTINCT + + 56 ) WHEN - CAST( - CASE - ( - - 65 ) WHEN - 95 + - COALESCE ( + CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ) ) THEN ( + 57 ) ELSE NULL END AS SIGNED ) THEN - ( 54 ) * COALESCE ( - COUNT( * ), 64 + - 37 / COUNT( * ), - 73 * + ( 88 ) ) WHEN ( 18 ) + COUNT( * ) THEN 60 END + - CAST( 16 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7269
SELECT + CASE - + 81 WHEN - - 38 * + COUNT ( * ) THEN + - COUNT ( * ) WHEN - + COUNT ( * ) THEN MAX ( DISTINCT + + 56 ) WHEN - CAST ( - CASE - ( - - 65 ) WHEN - 95 + - COALESCE ( + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) ) THEN ( + 57 ) ELSE NULL END AS INTEGER ) THEN - ( 54 ) * COALESCE ( - COUNT ( * ), 64 + - 37 / COUNT ( * ), - 73 * + ( 88 ) ) WHEN ( 18 ) + COUNT ( * ) THEN 60 END + - CAST ( 16 AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT - - 25 * NULLIF ( 3, - + MIN( + 13 ) )
----
75

skipif mysql # not compatible
query I rowsort label-7270
SELECT - - 25 * NULLIF ( 3, - + MIN ( + 13 ) )
----
75

query I rowsort
SELECT ALL - 48 * 55 + 65
----
-2575

query I rowsort
SELECT + - 14 + 40 AS col1
----
26

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7274
SELECT DISTINCT + CAST( + 32 AS SIGNED ) * - - 79 + + - 4 + COUNT( * ) AS col0
----
2525

skipif mysql # not compatible
query I rowsort label-7274
SELECT DISTINCT + CAST ( + 32 AS INTEGER ) * - - 79 + + - 4 + COUNT ( * ) AS col0
----
2525

query I rowsort
SELECT ALL 18 * 62 + + 80 * - ( + + 42 )
----
-2244

query II rowsort
SELECT ALL 39, + 0 AS col2
----
39
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7277
SELECT + 96 + - 22 + - + ( + + 15 ) * 79 DIV - ( CAST( - 19 AS SIGNED ) ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-7277
SELECT + 96 + - 22 + - + ( + + 15 ) * 79 / - ( CAST ( - 19 AS INTEGER ) ) AS col2
----
12

query I rowsort
SELECT ALL - 17 + - 28 * - 52 AS col0
----
1439

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7279
SELECT - 14 + + 96 * + CAST( COUNT( * ) AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-7279
SELECT - 14 + + 96 * + CAST ( COUNT ( * ) AS INTEGER )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7280
SELECT ALL MIN( DISTINCT - 57 ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-7280
SELECT ALL MIN ( DISTINCT - 57 ) AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7281
SELECT - 90 + - + COUNT( * ) - - 37
----
-54

skipif mysql # not compatible
query I rowsort label-7281
SELECT - 90 + - + COUNT ( * ) - - 37
----
-54

query II rowsort
SELECT - 50, - ( - 2 ) AS col0
----
-50
2

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

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

query I rowsort
SELECT - 42 + + 75 * + - ( + 22 ) - - + 1
----
-1691

query I rowsort
SELECT + 54 + + - 31
----
23

query I rowsort
SELECT ALL 60 * - 76 col1
----
-4560

query I rowsort
SELECT - 30 + + 84 * 41 AS col0
----
3414

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7288
SELECT ALL COALESCE ( - 68, - COUNT( * ) + - 68 DIV COUNT( * ) + + - 8 ) col2
----
-68

skipif mysql # not compatible
query I rowsort label-7288
SELECT ALL COALESCE ( - 68, - COUNT ( * ) + - 68 / COUNT ( * ) + + - 8 ) col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT DISTINCT CASE 55 WHEN - MAX( ALL 22 ) THEN 70 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7289
SELECT DISTINCT CASE 55 WHEN - MAX ( ALL 22 ) THEN 70 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7290
SELECT DISTINCT - 9 DIV - - 69 col1, - 26
----
0
-26

skipif mysql # not compatible
query II rowsort label-7290
SELECT DISTINCT - 9 / - - 69 col1, - 26
----
0
-26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7292
SELECT 55 + - COUNT( * ) * 75 * + + 2
----
-95

skipif mysql # not compatible
query I rowsort label-7292
SELECT 55 + - COUNT ( * ) * 75 * + + 2
----
-95

query II rowsort
SELECT 26 * + 15 * - ( + - 84 ), + 45 + - + 50 AS col1
----
32760
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-7294
SELECT DISTINCT - 10 * 96 AS col1, 71 - + 99 * - COUNT( * ) AS col0
----
-960
170

skipif mysql # not compatible
query II rowsort label-7294
SELECT DISTINCT - 10 * 96 AS col1, 71 - + 99 * - COUNT ( * ) AS col0
----
-960
170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7295
SELECT CAST( NULL AS SIGNED ) * - 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7295
SELECT CAST ( NULL AS INTEGER ) * - 82 AS col1
----
NULL

query II rowsort
SELECT 91, 82 * COALESCE ( + 17, + 41 ) * + 17 * - - 92 col1
----
91
2180216

onlyif mysql # DIV for integer division: 
query II rowsort label-7297
SELECT ALL - - 73 DIV - + COALESCE ( + 76, - 52, 70 ) * - 17 * 15 AS col0, - 4 AS col2
----
0
-4

skipif mysql # not compatible
query II rowsort label-7297
SELECT ALL - - 73 / - + COALESCE ( + 76, - 52, 70 ) * - 17 * 15 AS col0, - 4 AS col2
----
0
-4

query I rowsort
SELECT DISTINCT - + 47 * + 87 + - 36
----
-4125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7299
SELECT - 93 + + 66 * + + ( - NULLIF ( + - 5, + NULLIF ( - 76, 95 ) * - 48 ) ) * - 10 + NULLIF ( - COUNT( * ), + + 23 + - - ( + 40 ) * 52 + - 58 * 3 ) * - MIN( CAST( NULL AS SIGNED ) + ( + ( 80 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7299
SELECT - 93 + + 66 * + + ( - NULLIF ( + - 5, + NULLIF ( - 76, 95 ) * - 48 ) ) * - 10 + NULLIF ( - COUNT ( * ), + + 23 + - - ( + 40 ) * 52 + - 58 * 3 ) * - MIN ( CAST ( NULL AS INTEGER ) + ( + ( 80 ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7300
SELECT DISTINCT - 64 + - COUNT( * ) * + + 53 * 42 AS col1, 10 * + 47 * - 18 * 92 * + + 51 AS col2
----
-2290
-39694320

skipif mysql # not compatible
query II rowsort label-7300
SELECT DISTINCT - 64 + - COUNT ( * ) * + + 53 * 42 AS col1, 10 * + 47 * - 18 * 92 * + + 51 AS col2
----
-2290
-39694320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7301
SELECT ALL - - 67, COUNT( * ) - - COUNT( * ) / + + CAST( NULL AS SIGNED ) AS col2
----
67
NULL

skipif mysql # not compatible
query II rowsort label-7301
SELECT ALL - - 67, COUNT ( * ) - - COUNT ( * ) / + + CAST ( NULL AS INTEGER ) AS col2
----
67
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7303
SELECT DISTINCT + SUM( - 0 ) + 58
----
58

skipif mysql # not compatible
query I rowsort label-7303
SELECT DISTINCT + SUM ( - 0 ) + 58
----
58

query I rowsort
SELECT - 50 - - 0 AS col1
----
-50

query I rowsort
SELECT + 59 * - 56
----
-3304

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT + CASE + 44 WHEN - 56 THEN + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7306
SELECT + CASE + 44 WHEN - 56 THEN + COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT ALL + 90 + + + 9 AS col2
----
99

query II rowsort
SELECT ALL - - 69 AS col2, 80
----
69
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT DISTINCT + COUNT( ALL - 65 ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7309
SELECT DISTINCT + COUNT ( ALL - 65 ) + - COUNT ( * )
----
0

query I rowsort
SELECT ALL 52 * - - 65 + 53 + 12 AS col0
----
3445

query I rowsort
SELECT DISTINCT + 41 + + 1 col2
----
42

query II rowsort
SELECT ALL + 30 + - + 0 col2, 98
----
30
98

query I rowsort
SELECT DISTINCT - 71 * + 74 AS col1
----
-5254

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7314
SELECT ALL ( - - 59 ) - CAST( NULL AS SIGNED ) + - 97 * - 56 / - 62 * - - 62 * - + 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7314
SELECT ALL ( - - 59 ) - CAST ( NULL AS INTEGER ) + - 97 * - 56 / - 62 * - - 62 * - + 68 AS col2
----
NULL

query I rowsort
SELECT 79 * - 67 AS col2
----
-5293

onlyif mysql # aggregate syntax: 
query II rowsort label-7316
SELECT COUNT( * ) * + 56, 4 AS col0
----
56
4

skipif mysql # not compatible
query II rowsort label-7316
SELECT COUNT ( * ) * + 56, 4 AS col0
----
56
4

query I rowsort
SELECT ALL 79 * + 10
----
790

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

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

query I rowsort
SELECT ALL ( 59 ) - - - 51 + - 86 * + 67 + - COALESCE ( - 16, - - 81 ) * - 61 * + + 55 + - 76 AS col2
----
-59510

onlyif mysql # aggregate syntax: 
query I rowsort label-7320
SELECT COUNT( * ) * MAX( ALL NULLIF ( 92, - 41 ) )
----
92

skipif mysql # not compatible
query I rowsort label-7320
SELECT COUNT ( * ) * MAX ( ALL NULLIF ( 92, - 41 ) )
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7321
SELECT COUNT( * ) DIV + - 87, MAX( DISTINCT + + 88 ) AS col2
----
0
88

skipif mysql # not compatible
query II rowsort label-7321
SELECT COUNT ( * ) / + - 87, MAX ( DISTINCT + + 88 ) AS col2
----
0
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7322
SELECT DISTINCT CASE + CAST( 18 AS SIGNED ) WHEN - - SUM( 27 ) THEN 86 + - - ( - + 92 ) ELSE - 41 END DIV - 50 + + 86 DIV - 35 * + + COUNT( * ) + - 36 DIV + - 56 * + + 94
----
-2

skipif mysql # not compatible
query I rowsort label-7322
SELECT DISTINCT CASE + CAST ( 18 AS INTEGER ) WHEN - - SUM ( 27 ) THEN 86 + - - ( - + 92 ) ELSE - 41 END / - 50 + + 86 / - 35 * + + COUNT ( * ) + - 36 / + - 56 * + + 94
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT ALL 36 - - 66 * - 19 + - 55 - COUNT( * ) * - - 20
----
-1293

skipif mysql # not compatible
query I rowsort label-7323
SELECT ALL 36 - - 66 * - 19 + - 55 - COUNT ( * ) * - - 20
----
-1293

onlyif mysql # aggregate syntax: 
query II rowsort label-7324
SELECT ALL ( - + ( + NULLIF ( 63, - + 84 + + ( 24 ) ) ) ) * - + 37 + + + MIN( - - ( - ( + 42 ) ) ), - 75 * + - NULLIF ( + NULLIF ( - + 61, - 90 * + COUNT( * ) ), - 84 / + 42 ) AS col2
----
2289
-4575

skipif mysql # not compatible
query II rowsort label-7324
SELECT ALL ( - + ( + NULLIF ( 63, - + 84 + + ( 24 ) ) ) ) * - + 37 + + + MIN ( - - ( - ( + 42 ) ) ), - 75 * + - NULLIF ( + NULLIF ( - + 61, - 90 * + COUNT ( * ) ), - 84 / + 42 ) AS col2
----
2289
-4575

query I rowsort
SELECT NULLIF ( + 26, 43 * - NULLIF ( 4, 57 / - 31 * - + 34 + + - 36 ) ) * + 83 AS col2
----
2158

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

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

query I rowsort
SELECT 10 + - + 23
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT COALESCE ( - - 6, + 91, - 82 * + COUNT( * ) * COUNT( * ) * 94 ) + - - 60 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-7328
SELECT COALESCE ( - - 6, + 91, - 82 * + COUNT ( * ) * COUNT ( * ) * 94 ) + - - 60 AS col2
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7329
SELECT 29 + - 10 + + 2 DIV MIN( DISTINCT - 6 ) * 11 - 22 - + 70 DIV COUNT( * ) * 15
----
-1053

skipif mysql # not compatible
query I rowsort label-7329
SELECT 29 + - 10 + + 2 / MIN ( DISTINCT - 6 ) * 11 - 22 - + 70 / COUNT ( * ) * 15
----
-1053

onlyif mysql # aggregate syntax: 
query I rowsort label-7330
SELECT ALL 59 * CASE + + 32 WHEN COUNT( ALL 5 ) THEN + 56 END * - 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7330
SELECT ALL 59 * CASE + + 32 WHEN COUNT ( ALL 5 ) THEN + 56 END * - 0 AS col0
----
NULL

query I rowsort
SELECT 71 * + - 11
----
-781

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

skipif mysql # not compatible
query I rowsort label-7332
SELECT CAST ( NULL AS INTEGER ) - + - AVG ( DISTINCT 5 ) + - + COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7333
SELECT ALL - 26 + 83 + + COALESCE ( - 48, + + COUNT( * ) * + CAST( 25 AS DECIMAL ) * - - 34 / - 72 / 54 * + + 45 ) * - 64 + COUNT( * ) + 98 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7333
SELECT ALL - 26 + 83 + + COALESCE ( - 48, + + COUNT ( * ) * + CAST ( 25 AS REAL ) * - - 34 / - 72 / 54 * + + 45 ) * - 64 + COUNT ( * ) + 98 * + CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT + 77 * - 85
----
-6545

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7336
SELECT - MIN( DISTINCT - + 84 ) + - 91 DIV 38 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-7336
SELECT - MIN ( DISTINCT - + 84 ) + - 91 / 38 AS col1
----
82

query I rowsort
SELECT ALL - 19 + + 97 AS col0
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7338
SELECT - - COUNT( * ) DIV - NULLIF ( + COUNT( * ), + 43 * + 97 + + - 86 + 63 ) - + 88 + - + 72 col1
----
-161

skipif mysql # not compatible
query I rowsort label-7338
SELECT - - COUNT ( * ) / - NULLIF ( + COUNT ( * ), + 43 * + 97 + + - 86 + 63 ) - + 88 + - + 72 col1
----
-161

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7340
SELECT + 43 DIV - CASE - - COALESCE ( + + 63, - 27 DIV - 98 - - + 88 ) WHEN + COALESCE ( - 78, - 14, + - MIN( - 35 ) ) + - COALESCE ( + COUNT( * ), + 26 ) + - 66 THEN + + NULLIF ( + 45, 8 ) + 57 ELSE - ( 27 ) * - 15 + - 4 * + 53 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7340
SELECT + 43 / - CASE - - COALESCE ( + + 63, - 27 / - 98 - - + 88 ) WHEN + COALESCE ( - 78, - 14, + - MIN ( - 35 ) ) + - COALESCE ( + COUNT ( * ), + 26 ) + - 66 THEN + + NULLIF ( + 45, 8 ) + 57 ELSE - ( 27 ) * - 15 + - 4 * + 53 END AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7341
SELECT + 48 + + - 15 + - 3 * + 31 * + CAST( NULL AS SIGNED ) + - - 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7341
SELECT + 48 + + - 15 + - 3 * + 31 * + CAST ( NULL AS INTEGER ) + - - 6 AS col1
----
NULL

query I rowsort
SELECT 74 * + 63 - + 78 AS col0
----
4584

query I rowsort
SELECT - ( + + 56 ) * - - 83 AS col1
----
-4648

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT DISTINCT - - NULLIF ( - 49, + 71 ) + COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-7344
SELECT DISTINCT - - NULLIF ( - 49, + 71 ) + COUNT ( * )
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7345
SELECT ALL - 25 + + 50 - CAST( NULL AS SIGNED ) * - - CASE 83 WHEN + - 38 * + CAST( - + 74 AS SIGNED ) + + 20 + - + 23 * + - 97 * - 21 * - SUM( ALL + - 54 ) + + 34 + - 36 / + + 35 THEN NULL WHEN - 15 THEN 4 + 48 * + 64 END * 4 * - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-7345
SELECT ALL - 25 + + 50 - CAST ( NULL AS INTEGER ) * - - CASE 83 WHEN + - 38 * + CAST ( - + 74 AS INTEGER ) + + 20 + - + 23 * + - 97 * - 21 * - SUM ( ALL + - 54 ) + + 34 + - 36 / + + 35 THEN NULL WHEN - 15 THEN 4 + 48 * + 64 END * 4 * - 50
----
NULL

query II rowsort
SELECT DISTINCT + - 20 * + 80 col1, 6
----
-1600
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT + SUM( DISTINCT + CASE - + 13 WHEN + + 12 THEN - 5 WHEN + + 22 + - - 15 * - - 20 THEN + 68 + - 30 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7347
SELECT + SUM ( DISTINCT + CASE - + 13 WHEN + + 12 THEN - 5 WHEN + + 22 + - - 15 * - - 20 THEN + 68 + - 30 END )
----
NULL

query I rowsort
SELECT DISTINCT - - ( - COALESCE ( 85, - - 69 ) ) + 67
----
-18

query I rowsort
SELECT ALL + 33 * + 43 - NULLIF ( - 14, - ( + 3 ) * + 31 - - 29 ) - - - 41 * - - 17 col0
----
736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7350
SELECT + NULLIF ( + CASE + + COUNT( * ) WHEN - 44 * - 55 * + 87 THEN COUNT( * ) - CAST( - ( + COALESCE ( + - 67, ( - 65 ) ) ) AS SIGNED ) END, + 55 * + + 75 ) AS col0, - 25
----
NULL
-25

skipif mysql # not compatible
query II rowsort label-7350
SELECT + NULLIF ( + CASE + + COUNT ( * ) WHEN - 44 * - 55 * + 87 THEN COUNT ( * ) - CAST ( - ( + COALESCE ( + - 67, ( - 65 ) ) ) AS INTEGER ) END, + 55 * + + 75 ) AS col0, - 25
----
NULL
-25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT ALL - + CASE COUNT( * ) WHEN 27 THEN + NULLIF ( + COUNT( * ), 35 ) ELSE - 45 END - 75 + + - 57 * 17
----
-999

skipif mysql # not compatible
query I rowsort label-7352
SELECT ALL - + CASE COUNT ( * ) WHEN 27 THEN + NULLIF ( + COUNT ( * ), 35 ) ELSE - 45 END - 75 + + - 57 * 17
----
-999

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT CASE 69 WHEN - 34 * COALESCE ( - 33, - CASE 23 WHEN - + MAX( ALL - 15 ) * + NULLIF ( 74, + + 93 ) THEN ( + 73 ) + + 1 * 29 WHEN + COUNT( * ) THEN NULL ELSE NULL END ) THEN + 47 * ( 51 ) ELSE 43 END AS col2
----
43

skipif mysql # not compatible
query I rowsort label-7354
SELECT CASE 69 WHEN - 34 * COALESCE ( - 33, - CASE 23 WHEN - + MAX ( ALL - 15 ) * + NULLIF ( 74, + + 93 ) THEN ( + 73 ) + + 1 * 29 WHEN + COUNT ( * ) THEN NULL ELSE NULL END ) THEN + 47 * ( 51 ) ELSE 43 END AS col2
----
43

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7356
SELECT DISTINCT COALESCE ( + 29, - - 13 + + - 50 + + - CAST( - + 44 AS SIGNED ) * - ( - 63 ) * + 43 * + - 48 )
----
29

skipif mysql # not compatible
query I rowsort label-7356
SELECT DISTINCT COALESCE ( + 29, - - 13 + + - 50 + + - CAST ( - + 44 AS INTEGER ) * - ( - 63 ) * + 43 * + - 48 )
----
29

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

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

query I rowsort
SELECT 14 * 17 col0
----
238

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7359
SELECT ALL NULLIF ( - + COUNT( * ), + 39 * + 39 * - + COUNT( * ) ) * 81 + + - CAST( NULL AS SIGNED ) * - - 26 * - 10 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7359
SELECT ALL NULLIF ( - + COUNT ( * ), + 39 * + 39 * - + COUNT ( * ) ) * 81 + + - CAST ( NULL AS INTEGER ) * - - 26 * - 10 col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT ALL MIN( 24 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-7361
SELECT ALL MIN ( 24 ) AS col0
----
24

query I rowsort
SELECT 30 + + 75 AS col1
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-7363
SELECT DISTINCT + NULLIF ( + 9, - - 33 + ( 48 ) - + 1 ) * COUNT( * ) * - 56, 44 col0
----
-504
44

skipif mysql # not compatible
query II rowsort label-7363
SELECT DISTINCT + NULLIF ( + 9, - - 33 + ( 48 ) - + 1 ) * COUNT ( * ) * - 56, 44 col0
----
-504
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7364
SELECT DISTINCT COALESCE ( CAST( - COUNT( * ) AS SIGNED ), 82 + 61 + - COUNT( * ), 31 * + 19 * - 65 + - - 31 + + 33 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7364
SELECT DISTINCT COALESCE ( CAST ( - COUNT ( * ) AS INTEGER ), 82 + 61 + - COUNT ( * ), 31 * + 19 * - 65 + - - 31 + + 33 ) AS col1
----
-1

query I rowsort
SELECT ALL + ( + 58 ) * + - 16 AS col0
----
-928

onlyif mysql # aggregate syntax: 
query II rowsort label-7366
SELECT 29 AS col2, 76 + COUNT( * )
----
29
77

skipif mysql # not compatible
query II rowsort label-7366
SELECT 29 AS col2, 76 + COUNT ( * )
----
29
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT + COUNT( * ) + + + 65 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-7367
SELECT + COUNT ( * ) + + + 65 AS col1
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-7368
SELECT ALL 19 AS col0, + 25 * - - 97 - + 20 + - - COUNT( 1 ) AS col1
----
19
2406

skipif mysql # not compatible
query II rowsort label-7368
SELECT ALL 19 AS col0, + 25 * - - 97 - + 20 + - - COUNT ( 1 ) AS col1
----
19
2406

query I rowsort
SELECT - 47 * - 19 AS col2
----
893

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7370
SELECT + CASE 7 WHEN + 10 THEN - 99 WHEN 60 - - - 39 THEN + + 14 + - + ( - 62 ) WHEN 6 / + + 97 + + 32 / - 2 + NULLIF ( 10, 44 + CAST( NULL AS DECIMAL ) ) * - 91 THEN NULL END + ( ( + CASE - 34 WHEN - 2 THEN + 60 / + COUNT( * ) + 92 * - 36 END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7370
SELECT + CASE 7 WHEN + 10 THEN - 99 WHEN 60 - - - 39 THEN + + 14 + - + ( - 62 ) WHEN 6 / + + 97 + + 32 / - 2 + NULLIF ( 10, 44 + CAST ( NULL AS REAL ) ) * - 91 THEN NULL END + ( ( + CASE - 34 WHEN - 2 THEN + 60 / + COUNT ( * ) + 92 * - 36 END ) )
----
NULL

query II rowsort
SELECT ALL 73, + 32 AS col1
----
73
32

query I rowsort
SELECT + 23 * 12
----
276

query I rowsort
SELECT + 29 + 6 col1
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7374
SELECT ALL 11 + - 57 + + CAST( NULL AS SIGNED ) * COALESCE ( + - NULLIF ( - 34, 97 / 92 + 55 - - 57 + + 70 + - + CAST( NULL AS SIGNED ) + + - 36 ), 39 * 49 * + - 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7374
SELECT ALL 11 + - 57 + + CAST ( NULL AS INTEGER ) * COALESCE ( + - NULLIF ( - 34, 97 / 92 + 55 - - 57 + + 70 + - + CAST ( NULL AS INTEGER ) + + - 36 ), 39 * 49 * + - 8 )
----
NULL

query I rowsort
SELECT + NULLIF ( ( + - 88 ), - - 88 + + 42 ) * + 0 AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-7376
SELECT ALL CAST ( NULL AS REAL ) + + 5 AS col1
----
NULL

query I rowsort
SELECT + + 70 * + 6
----
420

query I rowsort
SELECT ALL - 89 + - 66 AS col1
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-7379
SELECT ALL + COUNT( * ) + - + 76 + + 52 + - 74 - - - 68 * - - NULLIF ( + - 91, - - 18 * + 93 + 92 * 14 ) * 97 * + - MIN( + 87 ) + + COUNT( * )
----
-52220628

skipif mysql # not compatible
query I rowsort label-7379
SELECT ALL + COUNT ( * ) + - + 76 + + 52 + - 74 - - - 68 * - - NULLIF ( + - 91, - - 18 * + 93 + 92 * 14 ) * 97 * + - MIN ( + 87 ) + + COUNT ( * )
----
-52220628

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT + + COUNT( * ) * 53 + 81
----
134

skipif mysql # not compatible
query I rowsort label-7380
SELECT + + COUNT ( * ) * 53 + 81
----
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7381
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) * - 96 * - 10 AS col2
----
-960

skipif mysql # not compatible
query I rowsort label-7381
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) * - 96 * - 10 AS col2
----
-960

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7382
SELECT 29 * - 93 * + 99 + - 37 AS col0, - 85 * + CAST( NULL AS SIGNED ) / 45 AS col0
----
-267040
NULL

skipif mysql # not compatible
query II rowsort label-7382
SELECT 29 * - 93 * + 99 + - 37 AS col0, - 85 * + CAST ( NULL AS INTEGER ) / 45 AS col0
----
-267040
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7383
SELECT ALL 30 * - COUNT( * ) + ( + CAST( NULL AS SIGNED ) ) * + - ( 7 ) + - 24 + + + 94 / + - ( + 13 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7383
SELECT ALL 30 * - COUNT ( * ) + ( + CAST ( NULL AS INTEGER ) ) * + - ( 7 ) + - 24 + + + 94 / + - ( + 13 ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT DISTINCT - 64 * + 41 - - - ( + COUNT( * ) ) - + MAX( DISTINCT + CASE - - 27 WHEN - 70 THEN - 81 WHEN - 44 THEN NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7385
SELECT DISTINCT - 64 * + 41 - - - ( + COUNT ( * ) ) - + MAX ( DISTINCT + CASE - - 27 WHEN - 70 THEN - 81 WHEN - 44 THEN NULL END ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7386
SELECT DISTINCT 56 * + CAST( - 37 AS SIGNED ) - - ( 36 )
----
-2036

skipif mysql # not compatible
query I rowsort label-7386
SELECT DISTINCT 56 * + CAST ( - 37 AS INTEGER ) - - ( 36 )
----
-2036

query II rowsort
SELECT ALL + 94, + 40 AS col0
----
94
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7388
SELECT - - 77 * + 97 DIV - COUNT( * ) AS col0
----
-7469

skipif mysql # not compatible
query I rowsort label-7388
SELECT - - 77 * + 97 / - COUNT ( * ) AS col0
----
-7469

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7389
SELECT + + 7 - MIN( 24 ), + CAST( + 53 AS SIGNED ) - - 29 AS col2
----
-17
82

skipif mysql # not compatible
query II rowsort label-7389
SELECT + + 7 - MIN ( 24 ), + CAST ( + 53 AS INTEGER ) - - 29 AS col2
----
-17
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7390
SELECT + 16 col0, CASE 40 WHEN - 65 / - 69 * + 25 THEN NULL WHEN + CAST( + 33 AS SIGNED ) / COALESCE ( - 81, + + 28 ) THEN ( + 1 ) END + + CAST( - - CASE + + CAST( NULL AS SIGNED ) WHEN - + ( - 93 ) THEN + AVG ( DISTINCT 47 ) WHEN 89 + 26 THEN + 46 ELSE CAST( 80 AS SIGNED ) * - 60 END AS SIGNED ) + 65 * 33
----
16
NULL

skipif mysql # not compatible
query II rowsort label-7390
SELECT + 16 col0, CASE 40 WHEN - 65 / - 69 * + 25 THEN NULL WHEN + CAST ( + 33 AS INTEGER ) / COALESCE ( - 81, + + 28 ) THEN ( + 1 ) END + + CAST ( - - CASE + + CAST ( NULL AS INTEGER ) WHEN - + ( - 93 ) THEN + AVG ( DISTINCT 47 ) WHEN 89 + 26 THEN + 46 ELSE CAST ( 80 AS INTEGER ) * - 60 END AS INTEGER ) + 65 * 33
----
16
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7391
SELECT 85 * + 89 + + - 58, + COUNT( * ) * 43 AS col1
----
7507
43

skipif mysql # not compatible
query II rowsort label-7391
SELECT 85 * + 89 + + - 58, + COUNT ( * ) * 43 AS col1
----
7507
43

query I rowsort
SELECT DISTINCT + + 58 * + 89 - + 55 * - + CASE + 9 WHEN + 67 THEN + + 71 ELSE NULL END - + 85 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7393
SELECT ALL + + 50 DIV - MIN( - 77 ) + 10 * - + ( - COALESCE ( + 28, + 68 * - COUNT( * ) ) ) AS col0
----
280

skipif mysql # not compatible
query I rowsort label-7393
SELECT ALL + + 50 / - MIN ( - 77 ) + 10 * - + ( - COALESCE ( + 28, + 68 * - COUNT ( * ) ) ) AS col0
----
280

query I rowsort
SELECT + 71 * 64 AS col0
----
4544

query I rowsort
SELECT DISTINCT + ( - ( 20 ) ) * 22 AS col2
----
-440

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT ALL + NULLIF ( - + 27, + 4 * - 9 * + COUNT( * ) * MAX( - - NULLIF ( 3, - 0 ) ) * - 52 + - + ( - 87 ) ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-7397
SELECT ALL + NULLIF ( - + 27, + 4 * - 9 * + COUNT ( * ) * MAX ( - - NULLIF ( 3, - 0 ) ) * - 52 + - + ( - 87 ) ) AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT DISTINCT + 50 * 78 * + 54 * - - COUNT( * )
----
210600

skipif mysql # not compatible
query I rowsort label-7398
SELECT DISTINCT + 50 * 78 * + 54 * - - COUNT ( * )
----
210600

onlyif mysql # aggregate syntax: 
query I rowsort label-7399
SELECT ALL COALESCE ( 7, COUNT( * ) - + 59 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-7399
SELECT ALL COALESCE ( 7, COUNT ( * ) - + 59 ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7400
SELECT - SUM( DISTINCT + - 19 ) * 77 AS col0
----
1463

skipif mysql # not compatible
query I rowsort label-7400
SELECT - SUM ( DISTINCT + - 19 ) * 77 AS col0
----
1463

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT - MIN( DISTINCT + 17 ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-7402
SELECT - MIN ( DISTINCT + 17 ) AS col0
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7403
SELECT DISTINCT - 51 + 68 DIV - - MAX( DISTINCT - 66 )
----
-52

skipif mysql # not compatible
query I rowsort label-7403
SELECT DISTINCT - 51 + 68 / - - MAX ( DISTINCT - 66 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT ALL 12 + 87 + + MIN( ALL + + 35 )
----
134

skipif mysql # not compatible
query I rowsort label-7404
SELECT ALL 12 + 87 + + MIN ( ALL + + 35 )
----
134

query I rowsort
SELECT DISTINCT 70 + - 91 AS col2
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-7406
SELECT ALL ( + CASE - COUNT( * ) WHEN 31 * + 11 * + + 38 * 84 THEN NULL ELSE - - 55 * + + 0 END ), - 65 AS col2
----
0
-65

skipif mysql # not compatible
query II rowsort label-7406
SELECT ALL ( + CASE - COUNT ( * ) WHEN 31 * + 11 * + + 38 * 84 THEN NULL ELSE - - 55 * + + 0 END ), - 65 AS col2
----
0
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7407
SELECT DISTINCT - MAX( + - 54 ) + - CAST( NULL AS SIGNED ) + - 40 + + + 56 * + - 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7407
SELECT DISTINCT - MAX ( + - 54 ) + - CAST ( NULL AS INTEGER ) + - 40 + + + 56 * + - 19 AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7409
SELECT DISTINCT + + 53 * + 86 * - CAST( + COALESCE ( COUNT( * ), - 37 ) AS SIGNED ) + + 53
----
-4505

skipif mysql # not compatible
query I rowsort label-7409
SELECT DISTINCT + + 53 * + 86 * - CAST ( + COALESCE ( COUNT ( * ), - 37 ) AS INTEGER ) + + 53
----
-4505

query II rowsort
SELECT - 3 + - 11 + - 10 + - - 55 AS col0, + 38
----
31
38

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7411
SELECT - 16 + + + CASE + 92 WHEN + - 14 THEN NULL ELSE - 14 * ( - CAST( NULL AS DECIMAL ) ) + + - 26 + + 40 * - 8 - 55 + + + 61 END - COUNT( * ) * - - 47 / + - 7 + + NULLIF ( - - 68, COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7411
SELECT - 16 + + + CASE + 92 WHEN + - 14 THEN NULL ELSE - 14 * ( - CAST ( NULL AS REAL ) ) + + - 26 + + 40 * - 8 - 55 + + + 61 END - COUNT ( * ) * - - 47 / + - 7 + + NULLIF ( - - 68, COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL 56 * 75 * + + 34 * 27
----
3855600

query I rowsort
SELECT ALL - 83 * 38 + + + 27 AS col0
----
-3127

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT + + CASE + - 64 WHEN + + 37 * + 74 * 13 * + - 90 + COUNT( * ) * 97 THEN 67 * + + 76 WHEN + 63 THEN NULL ELSE + CASE - 64 WHEN + 84 THEN + 29 END END + - 7 + 15 - + 0 * + 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7414
SELECT + + CASE + - 64 WHEN + + 37 * + 74 * 13 * + - 90 + COUNT ( * ) * 97 THEN 67 * + + 76 WHEN + 63 THEN NULL ELSE + CASE - 64 WHEN + 84 THEN + 29 END END + - 7 + 15 - + 0 * + 66 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7415
SELECT + - 97 + + - CASE + 50 WHEN + 60 THEN NULL WHEN + 88 / + 83 THEN + CASE - 70 WHEN + 8 THEN ( - - ( + + CAST( + - COUNT( * ) AS SIGNED ) ) ) - 58 + - + 29 WHEN - 84 + 87 + 39 * - 30 + 16 THEN NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-7415
SELECT + - 97 + + - CASE + 50 WHEN + 60 THEN NULL WHEN + 88 / + 83 THEN + CASE - 70 WHEN + 8 THEN ( - - ( + + CAST ( + - COUNT ( * ) AS INTEGER ) ) ) - 58 + - + 29 WHEN - 84 + 87 + 39 * - 30 + 16 THEN NULL END END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7416
SELECT + COALESCE ( COALESCE ( + CASE - ( - COALESCE ( 65, + + 3 + + 35 ) ) WHEN - 43 THEN - 50 + - COUNT( * ) - 18 + - 99 * - COUNT( * ) WHEN - COUNT( * ) * + 98 THEN + COUNT( * ) * - - 28 - + + ( 25 ) + - MIN( ALL - 60 + + 9 ) WHEN 49 THEN 42 * 30 + + 87 * CAST( NULL AS SIGNED ) ELSE + 42 + ( + 79 ) END, 33, 90 + 60 * - ( + COUNT( * ) ) ), 42, 70 * 99, 23 + + CAST( NULL AS SIGNED ) * - COUNT( * ) ) + - 9
----
112

skipif mysql # not compatible
query I rowsort label-7416
SELECT + COALESCE ( COALESCE ( + CASE - ( - COALESCE ( 65, + + 3 + + 35 ) ) WHEN - 43 THEN - 50 + - COUNT ( * ) - 18 + - 99 * - COUNT ( * ) WHEN - COUNT ( * ) * + 98 THEN + COUNT ( * ) * - - 28 - + + ( 25 ) + - MIN ( ALL - 60 + + 9 ) WHEN 49 THEN 42 * 30 + + 87 * CAST ( NULL AS INTEGER ) ELSE + 42 + ( + 79 ) END, 33, 90 + 60 * - ( + COUNT ( * ) ) ), 42, 70 * 99, 23 + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) ) + - 9
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7417
SELECT 56 / + ( + CAST( NULL AS SIGNED ) ) * NULLIF ( + ( + AVG ( - 13 ) ), - + 94 ) + - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-7417
SELECT 56 / + ( + CAST ( NULL AS INTEGER ) ) * NULLIF ( + ( + AVG ( - 13 ) ), - + 94 ) + - 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7418
SELECT + 29 + - MIN( DISTINCT + 98 )
----
-69

skipif mysql # not compatible
query I rowsort label-7418
SELECT + 29 + - MIN ( DISTINCT + 98 )
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7419
SELECT + + 70 * - CAST( NULL AS SIGNED ) AS col2, - NULLIF ( - + 10, 14 ) AS col2
----
NULL
10

skipif mysql # not compatible
query II rowsort label-7419
SELECT + + 70 * - CAST ( NULL AS INTEGER ) AS col2, - NULLIF ( - + 10, 14 ) AS col2
----
NULL
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT ALL + 59 * - 79 + + + 15 + + + 72 + + COALESCE ( 70, + NULLIF ( + COUNT( * ), - 39 ) ) + 26
----
-4478

skipif mysql # not compatible
query I rowsort label-7420
SELECT ALL + 59 * - 79 + + + 15 + + + 72 + + COALESCE ( 70, + NULLIF ( + COUNT ( * ), - 39 ) ) + 26
----
-4478

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT DISTINCT MIN( + + 93 ) * 16 AS col2
----
1488

skipif mysql # not compatible
query I rowsort label-7421
SELECT DISTINCT MIN ( + + 93 ) * 16 AS col2
----
1488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7422
SELECT DISTINCT + CASE + COUNT( * ) WHEN + + CAST( NULL AS SIGNED ) + - + 31 THEN - + 58 * 5 * - + 51 * - - COUNT( DISTINCT - - ( CASE 7 WHEN - 61 * 41 THEN + 32 + 28 END ) ) + + 3 - - + 35 * - COUNT( * ) * + + ( - - 71 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7422
SELECT DISTINCT + CASE + COUNT ( * ) WHEN + + CAST ( NULL AS INTEGER ) + - + 31 THEN - + 58 * 5 * - + 51 * - - COUNT ( DISTINCT - - ( CASE 7 WHEN - 61 * 41 THEN + 32 + 28 END ) ) + + 3 - - + 35 * - COUNT ( * ) * + + ( - - 71 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7423
SELECT + 90 + - + 64 * - - 44 + - 21 DIV - 97 + + COUNT( * )
----
-2725

skipif mysql # not compatible
query I rowsort label-7423
SELECT + 90 + - + 64 * - - 44 + - 21 / - 97 + + COUNT ( * )
----
-2725

onlyif mysql # DIV for integer division: 
query II rowsort label-7424
SELECT DISTINCT + 62 AS col0, 24 DIV - 57
----
62
0

skipif mysql # not compatible
query II rowsort label-7424
SELECT DISTINCT + 62 AS col0, 24 / - 57
----
62
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT ALL SUM( + - 12 ) + + + 71 + - COUNT( * ) - - 57 + + 85 + - 71 * - 97 AS col0
----
7087

skipif mysql # not compatible
query I rowsort label-7425
SELECT ALL SUM ( + - 12 ) + + + 71 + - COUNT ( * ) - - 57 + + 85 + - 71 * - 97 AS col0
----
7087

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT 64 * - COUNT( + - 92 ) + - 20
----
-84

skipif mysql # not compatible
query I rowsort label-7426
SELECT 64 * - COUNT ( + - 92 ) + - 20
----
-84

query I rowsort
SELECT 55 * - 44
----
-2420

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT DISTINCT - 82 + - COUNT( * ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-7428
SELECT DISTINCT - 82 + - COUNT ( * ) AS col0
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-7429
SELECT ALL - 64 + - + 99 * + COALESCE ( 31, - 79, + + COALESCE ( - 62, + - 8, - 45, - 31 + + 97 - - - COUNT( * ) ) ) * - 41, - 57 AS col0
----
125765
-57

skipif mysql # not compatible
query II rowsort label-7429
SELECT ALL - 64 + - + 99 * + COALESCE ( 31, - 79, + + COALESCE ( - 62, + - 8, - 45, - 31 + + 97 - - - COUNT ( * ) ) ) * - 41, - 57 AS col0
----
125765
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT 45 + MAX( - - 60 ) + - 28 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-7430
SELECT 45 + MAX ( - - 60 ) + - 28 AS col0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7431
SELECT ALL 47 + - + ( - - CAST( 54 AS SIGNED ) ) + + + 32 AS col1, - 11 + - 16 AS col1
----
25
-27

skipif mysql # not compatible
query II rowsort label-7431
SELECT ALL 47 + - + ( - - CAST ( 54 AS INTEGER ) ) + + + 32 AS col1, - 11 + - 16 AS col1
----
25
-27

query I rowsort
SELECT 55 + 86
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7433
SELECT ( CAST( - + 86 AS SIGNED ) ) * 58 + - 24 * ( + 96 ) * - 45 - - - ( + CAST( NULL AS SIGNED ) ) AS col1, - 63
----
NULL
-63

skipif mysql # not compatible
query II rowsort label-7433
SELECT ( CAST ( - + 86 AS INTEGER ) ) * 58 + - 24 * ( + 96 ) * - 45 - - - ( + CAST ( NULL AS INTEGER ) ) AS col1, - 63
----
NULL
-63

query I rowsort
SELECT ALL 0 + + 97
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7435
SELECT 71 * 92 DIV - 61 AS col2
----
-107

skipif mysql # not compatible
query I rowsort label-7435
SELECT 71 * 92 / - 61 AS col2
----
-107

query I rowsort
SELECT ALL + 2 * - 33
----
-66

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7437
SELECT CAST( NULL AS DECIMAL ) * 50 * + 62 * 39 * + + 52 col0, 29 AS col1
----
NULL
29

skipif mysql # not compatible
query II rowsort label-7437
SELECT CAST ( NULL AS REAL ) * 50 * + 62 * 39 * + + 52 col0, 29 AS col1
----
NULL
29

query I rowsort
SELECT ALL + 93 * + + 51
----
4743

query I rowsort
SELECT - - NULLIF ( 25, - 12 + 99 * 52 ) AS col0
----
25

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

skipif mysql # not compatible
query I rowsort label-7440
SELECT + CAST ( - 89 AS REAL ) + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - COUNT ( ALL - + 10 ) AS col1
----
NULL

query I rowsort
SELECT ALL - 56 - + ( - 71 ) AS col2
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7442
SELECT COUNT( * ) + - + 29 + + + 53 * 76 DIV + 69 AS col2, 24 AS col2
----
30
24

skipif mysql # not compatible
query II rowsort label-7442
SELECT COUNT ( * ) + - + 29 + + + 53 * 76 / + 69 AS col2, 24 AS col2
----
30
24

onlyif mysql # DIV for integer division: 
query I rowsort label-7443
SELECT - CASE + 24 WHEN 15 THEN - 22 ELSE + 80 DIV - 19 END
----
4

skipif mysql # not compatible
query I rowsort label-7443
SELECT - CASE + 24 WHEN 15 THEN - 22 ELSE + 80 / - 19 END
----
4

query I rowsort
SELECT DISTINCT + 54 - - 4 AS col1
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-7445
SELECT - 72 AS col2, - COUNT( 34 ) + - 56 + MIN( - + 6 ) * SUM( DISTINCT + 4 )
----
-72
-81

skipif mysql # not compatible
query II rowsort label-7445
SELECT - 72 AS col2, - COUNT ( 34 ) + - 56 + MIN ( - + 6 ) * SUM ( DISTINCT + 4 )
----
-72
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7446
SELECT ALL CAST( + - 92 AS SIGNED ) * 5 + + 93 col1
----
-367

skipif mysql # not compatible
query I rowsort label-7446
SELECT ALL CAST ( + - 92 AS INTEGER ) * 5 + + 93 col1
----
-367

query I rowsort
SELECT - 59 * + 64
----
-3776

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

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

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

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

query I rowsort
SELECT ALL - ( + COALESCE ( + - 34, + - 53 ) ) AS col2
----
34

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

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

query I rowsort
SELECT - 75 + + + 76
----
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7455
SELECT 30 DIV - ( + 72 )
----
0

skipif mysql # not compatible
query I rowsort label-7455
SELECT 30 / - ( + 72 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7456
SELECT 37 AS col2, ( - COUNT( * ) ) * - 81 + 49 + - COUNT( * )
----
37
129

skipif mysql # not compatible
query II rowsort label-7456
SELECT 37 AS col2, ( - COUNT ( * ) ) * - 81 + 49 + - COUNT ( * )
----
37
129

query II rowsort
SELECT 75, + 16 AS col0
----
75
16

query II rowsort
SELECT ALL - 84 AS col2, - 52 * - 41 * + 46 AS col2
----
-84
98072

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT 65 + - COUNT( * ) + + - COUNT( * ) * - + 19 * 11 + - ( 26 ) AS col2
----
247

skipif mysql # not compatible
query I rowsort label-7459
SELECT 65 + - COUNT ( * ) + + - COUNT ( * ) * - + 19 * 11 + - ( 26 ) AS col2
----
247

query I rowsort
SELECT ALL 60 + - + 66
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT ALL 6 * + 45 * - 52 * COUNT( * ) AS col1
----
-14040

skipif mysql # not compatible
query I rowsort label-7461
SELECT ALL 6 * + 45 * - 52 * COUNT ( * ) AS col1
----
-14040

onlyif mysql # aggregate syntax: 
query I rowsort label-7462
SELECT 55 * + COUNT( * ) * 58 AS col1
----
3190

skipif mysql # not compatible
query I rowsort label-7462
SELECT 55 * + COUNT ( * ) * 58 AS col1
----
3190

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7464
SELECT DISTINCT 59 + 3 - 12 + + COALESCE ( - 86, + ( - - AVG ( DISTINCT 3 ) ) * 33 DIV + 72, - 15 * - 6 + - ( + - 2 ) * CASE + COUNT( * ) WHEN - 43 THEN NULL WHEN - - 86 THEN NULL ELSE + 10 END ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-7464
SELECT DISTINCT 59 + 3 - 12 + + COALESCE ( - 86, + ( - - AVG ( DISTINCT 3 ) ) * 33 / + 72, - 15 * - 6 + - ( + - 2 ) * CASE + COUNT ( * ) WHEN - 43 THEN NULL WHEN - - 86 THEN NULL ELSE + 10 END ) AS col2
----
-36

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7466
SELECT + COUNT( * ) AS col1, 61 * - 24 * + + 45
----
1
-65880

skipif mysql # not compatible
query II rowsort label-7466
SELECT + COUNT ( * ) AS col1, 61 * - 24 * + + 45
----
1
-65880

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT 80 * + - ( + - 2 ) * - ( MIN( - - 5 ) ) * - COUNT( * ) col0
----
800

skipif mysql # not compatible
query I rowsort label-7467
SELECT 80 * + - ( + - 2 ) * - ( MIN ( - - 5 ) ) * - COUNT ( * ) col0
----
800

query II rowsort
SELECT 69 AS col2, 21 AS col1
----
69
21

onlyif mysql # DIV for integer division: 
query II rowsort label-7469
SELECT ALL 29 DIV 42, + 96 * - + 59 AS col0
----
0
-5664

skipif mysql # not compatible
query II rowsort label-7469
SELECT ALL 29 / 42, + 96 * - + 59 AS col0
----
0
-5664

onlyif mysql # aggregate syntax: 
query II rowsort label-7470
SELECT DISTINCT + COUNT( * ), 92 + - 58 - 83 AS col1
----
1
-49

skipif mysql # not compatible
query II rowsort label-7470
SELECT DISTINCT + COUNT ( * ), 92 + - 58 - 83 AS col1
----
1
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT 20 - MIN( ALL + + 28 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-7471
SELECT 20 - MIN ( ALL + + 28 ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT ALL SUM( ALL + 8 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-7472
SELECT ALL SUM ( ALL + 8 ) AS col1
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-7473
SELECT ALL 95 DIV - - 70 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7473
SELECT ALL 95 / - - 70 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT ALL - + COUNT( * ) * 83 * - 37 + - 60 - + 73 * + 86
----
-3267

skipif mysql # not compatible
query I rowsort label-7474
SELECT ALL - + COUNT ( * ) * 83 * - 37 + - 60 - + 73 * + 86
----
-3267

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

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

query I rowsort
SELECT DISTINCT 22 * + 68
----
1496

onlyif mysql # aggregate syntax: 
query II rowsort label-7477
SELECT + 1 + - - 76 - - - ( - + ( + 39 ) ) * - - 24, ( - COUNT( * ) ) + + 78 AS col1
----
1013
77

skipif mysql # not compatible
query II rowsort label-7477
SELECT + 1 + - - 76 - - - ( - + ( + 39 ) ) * - - 24, ( - COUNT ( * ) ) + + 78 AS col1
----
1013
77

query I rowsort
SELECT ALL - - 56 * 98 AS col2
----
5488

query I rowsort
SELECT 92 + - 56 - 43 + + 39 * + - 89
----
-3478

query II rowsort
SELECT - + 35 AS col0, - 59
----
-35
-59

query I rowsort
SELECT - 23 * - 34 * - 31 AS col2
----
-24242

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT + MAX( - 4 ) * - 49 + - 59
----
137

skipif mysql # not compatible
query I rowsort label-7482
SELECT + MAX ( - 4 ) * - 49 + - 59
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT DISTINCT - + 14 + + - COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-7483
SELECT DISTINCT - + 14 + + - COUNT ( * )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT DISTINCT + 43 * - + 98 * + 0 + + COUNT( - - 82 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7484
SELECT DISTINCT + 43 * - + 98 * + 0 + + COUNT ( - - 82 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT 4 * + + 10 * - COUNT( * ) + + + 68 + + COUNT( DISTINCT - ( 71 ) ) * + - 84 AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-7485
SELECT 4 * + + 10 * - COUNT ( * ) + + + 68 + + COUNT ( DISTINCT - ( 71 ) ) * + - 84 AS col1
----
-56

query II rowsort
SELECT DISTINCT + ( + + 88 ) AS col1, 41 AS col0
----
88
41

query I rowsort
SELECT DISTINCT - 14 * + 81 + + 10 AS col1
----
-1124

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

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

query II rowsort
SELECT - 31 * - 41 * + 24 AS col0, - 73 AS col1
----
30504
-73

query I rowsort
SELECT NULLIF ( 43, - 36 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT ALL COUNT( * ) * + 44 + - 18 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-7491
SELECT ALL COUNT ( * ) * + 44 + - 18 AS col1
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-7492
SELECT - 1 * + 41, 29 * SUM( - - ( + - 6 ) ) * - 58 col1
----
-41
10092

skipif mysql # not compatible
query II rowsort label-7492
SELECT - 1 * + 41, 29 * SUM ( - - ( + - 6 ) ) * - 58 col1
----
-41
10092

onlyif mysql # DIV for integer division: 
query II rowsort label-7493
SELECT ALL + 74 * - 18 * - 26 AS col0, 42 DIV + 31 col2
----
34632
1

skipif mysql # not compatible
query II rowsort label-7493
SELECT ALL + 74 * - 18 * - 26 AS col0, 42 / + 31 col2
----
34632
1

onlyif mysql # DIV for integer division: 
query II rowsort label-7494
SELECT DISTINCT 47 DIV 17 AS col1, ( - - 37 ) * 78 AS col1
----
2
2886

skipif mysql # not compatible
query II rowsort label-7494
SELECT DISTINCT 47 / 17 AS col1, ( - - 37 ) * 78 AS col1
----
2
2886

query I rowsort
SELECT ALL 92 * + - 4 * 27 - - 78 AS col0
----
-9858

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT + CASE - 96 WHEN 37 * + + 85 * COUNT( * ) - + 0 THEN + 5 ELSE - 36 END - + 87
----
-123

skipif mysql # not compatible
query I rowsort label-7496
SELECT + CASE - 96 WHEN 37 * + + 85 * COUNT ( * ) - + 0 THEN + 5 ELSE - 36 END - + 87
----
-123

onlyif mysql # DIV for integer division: 
query I rowsort label-7497
SELECT DISTINCT 94 DIV - 21
----
-4

skipif mysql # not compatible
query I rowsort label-7497
SELECT DISTINCT 94 / - 21
----
-4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT + CASE - - 44 WHEN + 5 * + MIN( DISTINCT - - 76 ) + + 92 THEN NULL ELSE - - 59 * 99 + + 2 END + - CASE 99 WHEN - 68 * + 39 THEN - 45 WHEN - 72 THEN NULL ELSE NULL END + + SUM( - 94 ) + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7499
SELECT + CASE - - 44 WHEN + 5 * + MIN ( DISTINCT - - 76 ) + + 92 THEN NULL ELSE - - 59 * 99 + + 2 END + - CASE 99 WHEN - 68 * + 39 THEN - 45 WHEN - 72 THEN NULL ELSE NULL END + + SUM ( - 94 ) + - COUNT ( * ) AS col1
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7502
SELECT ALL + MIN( DISTINCT 25 ) AS col1, 1
----
25
1

skipif mysql # not compatible
query II rowsort label-7502
SELECT ALL + MIN ( DISTINCT 25 ) AS col1, 1
----
25
1

query I rowsort
SELECT + + 85 + + - 76 - + 6 * + 14
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-7504
SELECT + 41 DIV + 34 - - 89 + - - 77 AS col2
----
167

skipif mysql # not compatible
query I rowsort label-7504
SELECT + 41 / + 34 - - 89 + - - 77 AS col2
----
167

query I rowsort
SELECT + 55 + + + 41 AS col1
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-7506
SELECT + 68 + + MIN( + + 11 ), 14 AS col0
----
79
14

skipif mysql # not compatible
query II rowsort label-7506
SELECT + 68 + + MIN ( + + 11 ), 14 AS col0
----
79
14

onlyif mysql # aggregate syntax: 
query II rowsort label-7507
SELECT DISTINCT - COUNT( * ) + + 75 col1, CASE 71 WHEN + 35 * - 23 THEN + COUNT( * ) ELSE NULL END * - 25
----
74
NULL

skipif mysql # not compatible
query II rowsort label-7507
SELECT DISTINCT - COUNT ( * ) + + 75 col1, CASE 71 WHEN + 35 * - 23 THEN + COUNT ( * ) ELSE NULL END * - 25
----
74
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7508
SELECT ALL ( 60 ) + + 65 + - + 78 + - - 85 * 59 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7508
SELECT ALL ( 60 ) + + 65 + - + 78 + - - 85 * 59 * CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL - ( 18 ) + - 10 AS col2, 82 AS col1
----
-28
82

query II rowsort
SELECT - ( - 72 ) AS col2, 51 AS col2
----
72
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7511
SELECT - + NULLIF ( - COUNT( - 56 ), - 63 ) DIV 18 AS col0, COUNT( * ) + + NULLIF ( + 3, + 52 ) AS col2
----
0
4

skipif mysql # not compatible
query II rowsort label-7511
SELECT - + NULLIF ( - COUNT ( - 56 ), - 63 ) / 18 AS col0, COUNT ( * ) + + NULLIF ( + 3, + 52 ) AS col2
----
0
4

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

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

query I rowsort
SELECT + - 22 - - + 29
----
7

query I rowsort
SELECT ALL 41 * 32
----
1312

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7517
SELECT + 31 DIV - 9 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-7517
SELECT + 31 / - 9 AS col0
----
-3

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

skipif mysql # not compatible
query I rowsort label-7518
SELECT DISTINCT + COUNT ( ALL - 86 ) col1
----
1

query II rowsort
SELECT - 19 + + 70 * 23 AS col1, 65 AS col2
----
1591
65

query II rowsort
SELECT DISTINCT + 32, + 7 * + 46 * + - 8 * 1 AS col1
----
32
-2576

query I rowsort
SELECT - 94 * - 25 * 72 + + 56 * - - 78
----
173568

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT - COALESCE ( - COUNT( * ), + 24 ) * + + COUNT( DISTINCT - - 72 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7522
SELECT - COALESCE ( - COUNT ( * ), + 24 ) * + + COUNT ( DISTINCT - - 72 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7523
SELECT ALL + 43 * - 88 * + - NULLIF ( + + ( + 1 ), - - COALESCE ( + - 5, + 55, + - 56 * 85 * + 98 - - 15 + MIN( + 79 ) + - 1 * + COUNT( * ) - + 85, 26 ) - + 9 ) * + + ( + 86 ) + - 31 + + 52 DIV - COUNT( * )
----
325341

skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL + 43 * - 88 * + - NULLIF ( + + ( + 1 ), - - COALESCE ( + - 5, + 55, + - 56 * 85 * + 98 - - 15 + MIN ( + 79 ) + - 1 * + COUNT ( * ) - + 85, 26 ) - + 9 ) * + + ( + 86 ) + - 31 + + 52 / - COUNT ( * )
----
325341

query II rowsort
SELECT DISTINCT + 22, 61 AS col1
----
22
61

query I rowsort
SELECT DISTINCT + 34 * + + 12 AS col1
----
408

query I rowsort
SELECT + 41 + 34 col0
----
75

query I rowsort
SELECT ALL 31 * + 15 - - CASE - 71 WHEN - + 65 THEN + + 86 END + + 52 * + 8
----
NULL

query I rowsort
SELECT - COALESCE ( + - 94, - 50 ) * 63 * - 85
----
-503370

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

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

query II rowsort
SELECT DISTINCT + 12 AS col2, + 65
----
12
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7531
SELECT NULLIF ( + + CASE - 91 WHEN + 52 THEN COUNT( * ) WHEN - - COUNT( * ) THEN NULL WHEN - + 24 - + 60 * - 26 * + + 62 THEN NULL END, - 36 - - - 22 * + + 1 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7531
SELECT NULLIF ( + + CASE - 91 WHEN + 52 THEN COUNT ( * ) WHEN - - COUNT ( * ) THEN NULL WHEN - + 24 - + 60 * - 26 * + + 62 THEN NULL END, - 36 - - - 22 * + + 1 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7532
SELECT ALL + CASE CASE - 93 WHEN + + CASE + 3 WHEN + 2 * - + 72 * 46 THEN NULL ELSE + + 33 + - 44 * 66 * - ( + 82 ) END + 9 + MIN( 30 ) - 2 * 56 * COUNT( * ) THEN + CASE - 53 WHEN + CAST( NULL AS SIGNED ) THEN - 43 WHEN + 36 THEN 6 * + CAST( - 76 AS SIGNED ) ELSE 78 * - 49 END * - 85 ELSE 62 * + 81 END WHEN ( - 3 ) THEN + 17 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7532
SELECT ALL + CASE CASE - 93 WHEN + + CASE + 3 WHEN + 2 * - + 72 * 46 THEN NULL ELSE + + 33 + - 44 * 66 * - ( + 82 ) END + 9 + MIN ( 30 ) - 2 * 56 * COUNT ( * ) THEN + CASE - 53 WHEN + CAST ( NULL AS INTEGER ) THEN - 43 WHEN + 36 THEN 6 * + CAST ( - 76 AS INTEGER ) ELSE 78 * - 49 END * - 85 ELSE 62 * + 81 END WHEN ( - 3 ) THEN + 17 END
----
NULL

query I rowsort
SELECT - + 39 * - + 76 + - 26 + 53 AS col2
----
2991

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT + 44 * - - COUNT( * ) - 61 - - 74 * + - 25
----
-1867

skipif mysql # not compatible
query I rowsort label-7534
SELECT + 44 * - - COUNT ( * ) - 61 - - 74 * + - 25
----
-1867

query II rowsort
SELECT + 29 AS col2, 55
----
29
55

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

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

query I rowsort
SELECT - 83 * + 85
----
-7055

query I rowsort
SELECT ALL - 67 * + 68
----
-4556

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT ALL - ( + + 32 ) * + 35 + - + COUNT( * )
----
-1121

skipif mysql # not compatible
query I rowsort label-7539
SELECT ALL - ( + + 32 ) * + 35 + - + COUNT ( * )
----
-1121

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT DISTINCT + SUM( ALL - 13 ) * 92 * + 23 + - 62
----
-27570

skipif mysql # not compatible
query I rowsort label-7540
SELECT DISTINCT + SUM ( ALL - 13 ) * 92 * + 23 + - 62
----
-27570

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT ALL + COUNT( * ) + + + 13 * + COUNT( * ) * - COUNT( * ) + - 19
----
-31

skipif mysql # not compatible
query I rowsort label-7541
SELECT ALL + COUNT ( * ) + + + 13 * + COUNT ( * ) * - COUNT ( * ) + - 19
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT 32 + + 35 * + + 33 * + COUNT( * ) * + COUNT( * )
----
1187

skipif mysql # not compatible
query I rowsort label-7542
SELECT 32 + + 35 * + + 33 * + COUNT ( * ) * + COUNT ( * )
----
1187

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7544
SELECT ALL 29 + - 34 DIV - 96 * 18 col0
----
29

skipif mysql # not compatible
query I rowsort label-7544
SELECT ALL 29 + - 34 / - 96 * 18 col0
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-7545
SELECT 78 + + - 63 + ( - - 74 ) + + + 40 + - COALESCE ( - 75, - + 18 + 84 * + ( - 86 ) ) DIV + 46
----
130

skipif mysql # not compatible
query I rowsort label-7545
SELECT 78 + + - 63 + ( - - 74 ) + + + 40 + - COALESCE ( - 75, - + 18 + 84 * + ( - 86 ) ) / + 46
----
130

query I rowsort
SELECT 21 - + + 76 - + 53 - + 74 * - 8
----
484

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT - 12 + - COUNT( * ) - - 94
----
81

skipif mysql # not compatible
query I rowsort label-7547
SELECT - 12 + - COUNT ( * ) - - 94
----
81

query II rowsort
SELECT ALL 92, - 41 AS col1
----
92
-41

query I rowsort
SELECT ALL 19 - 49 + - 78 * - 0 AS col0
----
-30

query I rowsort
SELECT ( 1 ) * 14
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7551
SELECT CAST( + - 74 AS SIGNED ) + - ( 42 )
----
-116

skipif mysql # not compatible
query I rowsort label-7551
SELECT CAST ( + - 74 AS INTEGER ) + - ( 42 )
----
-116

query I rowsort
SELECT + 91 * 74 + + NULLIF ( 95, 21 )
----
6829

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7553
SELECT ALL 77 * - CAST( - 28 AS SIGNED ) * - 90
----
-194040

skipif mysql # not compatible
query I rowsort label-7553
SELECT ALL 77 * - CAST ( - 28 AS INTEGER ) * - 90
----
-194040

onlyif mysql # DIV for integer division: 
query I rowsort label-7554
SELECT 84 DIV + 20
----
4

skipif mysql # not compatible
query I rowsort label-7554
SELECT 84 / + 20
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7555
SELECT 54 * + + NULLIF ( - - CAST( NULL AS SIGNED ), + + ( + 9 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7555
SELECT 54 * + + NULLIF ( - - CAST ( NULL AS INTEGER ), + + ( + 9 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7556
SELECT + 40 DIV - 65 + - + MIN( 80 ) * - 4 AS col0
----
320

skipif mysql # not compatible
query I rowsort label-7556
SELECT + 40 / - 65 + - + MIN ( 80 ) * - 4 AS col0
----
320

query I rowsort
SELECT CASE + 54 WHEN + - 49 THEN - - 31 END * - 55 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 76 * + - 5 AS col1
----
-380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7559
SELECT ALL - CASE + 73 WHEN - - SUM( ALL - - 89 ) THEN + 78 * + ( - - 58 ) + - COUNT( * ) / 70 + - COUNT( * ) / 62 * - - 43 END AS col2, CASE - ( + CAST( + 45 AS SIGNED ) ) WHEN - 37 * - ( - 30 ) + + + ( - ( - NULLIF ( - - 78, + COUNT( * ) ) ) ) - 30 THEN + 35 * - 42 END AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7559
SELECT ALL - CASE + 73 WHEN - - SUM ( ALL - - 89 ) THEN + 78 * + ( - - 58 ) + - COUNT ( * ) / 70 + - COUNT ( * ) / 62 * - - 43 END AS col2, CASE - ( + CAST ( + 45 AS INTEGER ) ) WHEN - 37 * - ( - 30 ) + + + ( - ( - NULLIF ( - - 78, + COUNT ( * ) ) ) ) - 30 THEN + 35 * - 42 END AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT + 14 * + + COUNT( * ) + 46 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-7560
SELECT + 14 * + + COUNT ( * ) + 46 AS col0
----
60

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7561
SELECT DISTINCT - + CAST( - + 16 AS SIGNED ), CAST( NULL AS DECIMAL ) / 50 AS col2
----
16
NULL

skipif mysql # not compatible
query II rowsort label-7561
SELECT DISTINCT - + CAST ( - + 16 AS INTEGER ), CAST ( NULL AS REAL ) / 50 AS col2
----
16
NULL

query I rowsort
SELECT 95 - + 50 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT + COUNT( * ) + - - 16
----
17

skipif mysql # not compatible
query I rowsort label-7563
SELECT + COUNT ( * ) + - - 16
----
17

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

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

query I rowsort
SELECT 87 * - + 17
----
-1479

onlyif mysql # aggregate syntax: 
query I rowsort label-7566
SELECT 75 + - MAX( - 86 ) AS col0
----
161

skipif mysql # not compatible
query I rowsort label-7566
SELECT 75 + - MAX ( - 86 ) AS col0
----
161

query I rowsort
SELECT ALL + + 37 + 86 AS col1
----
123

query II rowsort
SELECT - 3 + - 5, + 26 AS col2
----
-8
26

query I rowsort
SELECT DISTINCT + - 87 + 45 * + ( 31 )
----
1308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7570
SELECT DISTINCT CASE 11 WHEN - 88 THEN NULL WHEN - - 28 * + 90 + 72 + CAST( NULL AS SIGNED ) / + + 96 THEN + COUNT( * ) / - COUNT( * ) WHEN - - 49 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7570
SELECT DISTINCT CASE 11 WHEN - 88 THEN NULL WHEN - - 28 * + 90 + 72 + CAST ( NULL AS INTEGER ) / + + 96 THEN + COUNT ( * ) / - COUNT ( * ) WHEN - - 49 THEN NULL END
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-7572
SELECT COUNT ( * ) / - MAX ( + 4 ) AS col2
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7574
SELECT DISTINCT - 87 * - NULLIF ( - CAST( NULL AS SIGNED ), + 29 ) * + 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7574
SELECT DISTINCT - 87 * - NULLIF ( - CAST ( NULL AS INTEGER ), + 29 ) * + 91 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT ALL 96 * + - COUNT( 75 ) * + 47 + - MAX( - 17 )
----
-4495

skipif mysql # not compatible
query I rowsort label-7575
SELECT ALL 96 * + - COUNT ( 75 ) * + 47 + - MAX ( - 17 )
----
-4495

query I rowsort
SELECT ALL 78 * + 54 AS col0
----
4212

query I rowsort
SELECT 48 - + 10
----
38

query II rowsort
SELECT 46 AS col1, 76
----
46
76

query I rowsort
SELECT 64 * 93
----
5952

query I rowsort
SELECT 99 * 36
----
3564

query I rowsort
SELECT ALL - NULLIF ( + 89, - 73 + + + 27 ) AS col2
----
-89

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7583
SELECT CAST( + 6 AS SIGNED ) * + CASE COUNT( * ) WHEN + 62 + + + AVG ( ALL - 3 ) * + + COUNT( * ) * CASE + + 93 WHEN + 40 * 77 * COUNT( * ) + + 57 THEN + - COUNT( * ) + - - 77 WHEN + COUNT( * ) * - 28 THEN - COUNT( ALL - 72 ) END + 52 THEN NULL WHEN 38 THEN + 78 * 82 + - ( - 66 ) * - 20 ELSE NULL END + ( + COUNT( ALL 51 ) + COALESCE ( 67 + 25, - 0 ) ) - 62 * 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7583
SELECT CAST ( + 6 AS INTEGER ) * + CASE COUNT ( * ) WHEN + 62 + + + AVG ( ALL - 3 ) * + + COUNT ( * ) * CASE + + 93 WHEN + 40 * 77 * COUNT ( * ) + + 57 THEN + - COUNT ( * ) + - - 77 WHEN + COUNT ( * ) * - 28 THEN - COUNT ( ALL - 72 ) END + 52 THEN NULL WHEN 38 THEN + 78 * 82 + - ( - 66 ) * - 20 ELSE NULL END + ( + COUNT ( ALL 51 ) + COALESCE ( 67 + 25, - 0 ) ) - 62 * 29 AS col0
----
NULL

query I rowsort
SELECT 89 * + 91
----
8099

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT ALL CASE NULLIF ( + ( 91 ), - 79 ) WHEN - + 82 THEN NULL WHEN - 35 * 60 - 35 + 65 THEN + 63 / 40 * - 65 ELSE NULL END * - COUNT( * ) + - NULLIF ( + - 83, COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7585
SELECT ALL CASE NULLIF ( + ( 91 ), - 79 ) WHEN - + 82 THEN NULL WHEN - 35 * 60 - 35 + 65 THEN + 63 / 40 * - 65 ELSE NULL END * - COUNT ( * ) + - NULLIF ( + - 83, COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7586
SELECT + 68 * NULLIF ( COUNT( * ), + COUNT( * ) ) + + CASE + - 92 WHEN + - COUNT( * ) THEN 87 END, 58 AS col0
----
NULL
58

skipif mysql # not compatible
query II rowsort label-7586
SELECT + 68 * NULLIF ( COUNT ( * ), + COUNT ( * ) ) + + CASE + - 92 WHEN + - COUNT ( * ) THEN 87 END, 58 AS col0
----
NULL
58

query I rowsort
SELECT DISTINCT 77 * + 7 + - ( - 66 ) AS col0
----
605

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT COUNT( * ) + - - 5 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-7588
SELECT COUNT ( * ) + - - 5 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT ALL + - MAX( - - 63 ) * 71 + - 98 AS col2
----
-4571

skipif mysql # not compatible
query I rowsort label-7589
SELECT ALL + - MAX ( - - 63 ) * 71 + - 98 AS col2
----
-4571

query I rowsort
SELECT DISTINCT - - ( 78 ) AS col1
----
78

query I rowsort
SELECT DISTINCT - 98 + + + 77 AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7592
SELECT ALL 57 + + - 14 * - + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-7592
SELECT ALL 57 + + - 14 * - + COUNT ( * )
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-7593
SELECT ALL + 85 + + 61 + + 94 + + 73 * 72 DIV 1
----
5496

skipif mysql # not compatible
query I rowsort label-7593
SELECT ALL + 85 + + 61 + + 94 + + 73 * 72 / 1
----
5496

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

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

query I rowsort
SELECT ALL + 15 + 91
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT + 97 * - + NULLIF ( - 23, + 94 + - 11 * + + 78 ) - NULLIF ( 20, - - 20 ) * + COUNT( * ) + - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-7596
SELECT + 97 * - + NULLIF ( - 23, + 94 + - 11 * + + 78 ) - NULLIF ( 20, - - 20 ) * + COUNT ( * ) + - 96
----
NULL

query I rowsort
SELECT + - 35 + 58
----
23

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7599
SELECT - + 55 DIV - 50
----
1

skipif mysql # not compatible
query I rowsort label-7599
SELECT - + 55 / - 50
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT ALL - 49 - - COUNT( * ) - + 39 + + + 81 + + - 77
----
-83

skipif mysql # not compatible
query I rowsort label-7600
SELECT ALL - 49 - - COUNT ( * ) - + 39 + + + 81 + + - 77
----
-83

query I rowsort
SELECT - 90 * + 96 - + 24 AS col2
----
-8664

onlyif mysql # DIV for integer division: 
query I rowsort label-7602
SELECT - 17 - + + 63 + 16 * 22 * 9 DIV + 90
----
-45

skipif mysql # not compatible
query I rowsort label-7602
SELECT - 17 - + + 63 + 16 * 22 * 9 / + 90
----
-45

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

query I rowsort
SELECT ALL CASE 78 WHEN - 5 THEN 42 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7605
SELECT DISTINCT - 92 DIV 64 * - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7605
SELECT DISTINCT - 92 / 64 * - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7606
SELECT - 55 * - MIN( DISTINCT + - 95 )
----
-5225

skipif mysql # not compatible
query I rowsort label-7606
SELECT - 55 * - MIN ( DISTINCT + - 95 )
----
-5225

query I rowsort
SELECT - 66 + - COALESCE ( - - 85, - 37 ) * - 81 AS col1
----
6819

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7609
SELECT ALL CASE - MAX( + - 24 ) WHEN + CAST( NULL AS SIGNED ) * COUNT( * ) * 92 THEN + 11 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7609
SELECT ALL CASE - MAX ( + - 24 ) WHEN + CAST ( NULL AS INTEGER ) * COUNT ( * ) * 92 THEN + 11 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7610
SELECT - COUNT( * ) + - 49 + 36 * 95 + + - 86 DIV COUNT( 10 ) AS col2
----
3284

skipif mysql # not compatible
query I rowsort label-7610
SELECT - COUNT ( * ) + - 49 + 36 * 95 + + - 86 / COUNT ( 10 ) AS col2
----
3284

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT + NULLIF ( + MIN( DISTINCT + 9 ), + + COUNT( * ) ) - - - 67 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-7611
SELECT + NULLIF ( + MIN ( DISTINCT + 9 ), + + COUNT ( * ) ) - - - 67 AS col0
----
-58

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

query I rowsort
SELECT ALL 24 * - 46
----
-1104

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

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

query I rowsort
SELECT DISTINCT NULLIF ( + 62, + - 67 )
----
62

query I rowsort
SELECT - 65 + 31
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7617
SELECT ALL 88 DIV + COALESCE ( - 85, COUNT( * ) * + ( - 83 ) * - + CAST( - + 16 AS SIGNED ) DIV - + COUNT( * ), - 85, + AVG ( 40 ) ) + - 31
----
-32

skipif mysql # not compatible
query I rowsort label-7617
SELECT ALL 88 / + COALESCE ( - 85, COUNT ( * ) * + ( - 83 ) * - + CAST ( - + 16 AS INTEGER ) / - + COUNT ( * ), - 85, + AVG ( 40 ) ) + - 31
----
-32

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

query I rowsort
SELECT + 6 * ( 65 ) + + 50 * + 95 AS col0
----
5140

query I rowsort
SELECT - 29 * + + 62
----
-1798

query I rowsort
SELECT + NULLIF ( + - 41, - + 56 ) AS col0
----
-41

query I rowsort
SELECT + - 2 + - 20
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7623
SELECT COUNT( * ) * 98 + CAST( - + 9 AS SIGNED ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-7623
SELECT COUNT ( * ) * 98 + CAST ( - + 9 AS INTEGER ) AS col2
----
89

query II rowsort
SELECT + + 73 AS col2, 46
----
73
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT DISTINCT - 9 * - 32 + + 64 + + 7 + + 73 - 90 * + MAX( 88 )
----
-7488

skipif mysql # not compatible
query I rowsort label-7625
SELECT DISTINCT - 9 * - 32 + + 64 + + 7 + + 73 - 90 * + MAX ( 88 )
----
-7488

query I rowsort
SELECT ALL - 55 * + 64 AS col2
----
-3520

query II rowsort
SELECT ( - + ( + ( + - 37 ) ) ) AS col1, + 87
----
37
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7628
SELECT ALL - ( 27 ) * + CAST( + 70 AS SIGNED ) + + - 86 AS col2
----
-1976

skipif mysql # not compatible
query I rowsort label-7628
SELECT ALL - ( 27 ) * + CAST ( + 70 AS INTEGER ) + + - 86 AS col2
----
-1976

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT - - 39 + NULLIF ( - - 41, - 71 * - - 49 / + + COUNT( * ) + + 88 )
----
80

skipif mysql # not compatible
query I rowsort label-7629
SELECT - - 39 + NULLIF ( - - 41, - 71 * - - 49 / + + COUNT ( * ) + + 88 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT - - 44 * + SUM( - + 99 ) + - - COUNT( * ) * 35 - 48 - COUNT( * )
----
-4370

skipif mysql # not compatible
query I rowsort label-7630
SELECT - - 44 * + SUM ( - + 99 ) + - - COUNT ( * ) * 35 - 48 - COUNT ( * )
----
-4370

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

skipif mysql # not compatible
query I rowsort label-7631
SELECT ALL - CAST ( + - 96 AS INTEGER ) * COUNT ( * )
----
96

query II rowsort
SELECT + 38, 12 AS col2
----
38
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT + CASE 15 WHEN COUNT( * ) + + - ( - + ( + - 7 ) ) - 74 * - - 31 THEN - 60 WHEN + 14 THEN NULL ELSE NULL END / + SUM( ALL - 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7633
SELECT + CASE 15 WHEN COUNT ( * ) + + - ( - + ( + - 7 ) ) - 74 * - - 31 THEN - 60 WHEN + 14 THEN NULL ELSE NULL END / + SUM ( ALL - 66 )
----
NULL

query I rowsort
SELECT + - 98 + - 28
----
-126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7635
SELECT ALL - SUM( ALL CAST( NULL AS SIGNED ) ) * 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7635
SELECT ALL - SUM ( ALL CAST ( NULL AS INTEGER ) ) * 52 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7636
SELECT ALL + COUNT( ALL CAST( NULL AS SIGNED ) ) * + 34 * - 8 - - 18
----
18

skipif mysql # not compatible
query I rowsort label-7636
SELECT ALL + COUNT ( ALL CAST ( NULL AS INTEGER ) ) * + 34 * - 8 - - 18
----
18

query I rowsort
SELECT + 24 * 28 * 99 col2
----
66528

query I rowsort
SELECT - 31 * + 20 * - + 80 col0
----
49600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7639
SELECT - COUNT( * ) + - 80 + + + 26 DIV ( + - MIN( ALL + 87 ) ) + + CAST( - 14 AS SIGNED )
----
-95

skipif mysql # not compatible
query I rowsort label-7639
SELECT - COUNT ( * ) + - 80 + + + 26 / ( + - MIN ( ALL + 87 ) ) + + CAST ( - 14 AS INTEGER )
----
-95

query I rowsort
SELECT ALL - 15 * + 51
----
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT + 60 * - + 4 * COUNT( * )
----
-240

skipif mysql # not compatible
query I rowsort label-7641
SELECT + 60 * - + 4 * COUNT ( * )
----
-240

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7643
SELECT - CAST( - + ( - COALESCE ( + + ( + 24 ), - 16 ) ) AS SIGNED )
----
-24

skipif mysql # not compatible
query I rowsort label-7643
SELECT - CAST ( - + ( - COALESCE ( + + ( + 24 ), - 16 ) ) AS INTEGER )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT + SUM( + 80 ) * + - 49
----
-3920

skipif mysql # not compatible
query I rowsort label-7644
SELECT + SUM ( + 80 ) * + - 49
----
-3920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7645
SELECT ALL 18 * MAX( + - COALESCE ( - - 48, - + 56 ) ) * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7645
SELECT ALL 18 * MAX ( + - COALESCE ( - - 48, - + 56 ) ) * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7646
SELECT ALL - COUNT( * ) + - 66 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-7646
SELECT ALL - COUNT ( * ) + - 66 AS col0
----
-67

query I rowsort
SELECT DISTINCT ( - 30 ) col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT DISTINCT - 43 + SUM( + 69 )
----
26

skipif mysql # not compatible
query I rowsort label-7648
SELECT DISTINCT - 43 + SUM ( + 69 )
----
26

query I rowsort
SELECT - 70 * - + 57 AS col0
----
3990

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT - ( 73 ) - - + COUNT( + + 61 ) + + 8 + + - 50
----
-114

skipif mysql # not compatible
query I rowsort label-7650
SELECT - ( 73 ) - - + COUNT ( + + 61 ) + + 8 + + - 50
----
-114

onlyif mysql # DIV for integer division: 
query II rowsort label-7651
SELECT ALL + 53 DIV 74, - 64 col1
----
0
-64

skipif mysql # not compatible
query II rowsort label-7651
SELECT ALL + 53 / 74, - 64 col1
----
0
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7652
SELECT - 52 + + - 27 * ( + - 33 ) DIV 87 + + - 82 DIV - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-7652
SELECT - 52 + + - 27 * ( + - 33 ) / 87 + + - 82 / - COUNT ( * )
----
40

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7654
SELECT ALL + + 31 DIV + 38 + - COUNT( * ) AS col1
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT - - NULLIF ( - 50, 66 ) * - COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-7655
SELECT - - NULLIF ( - 50, 66 ) * - COUNT ( * )
----
50

query II rowsort
SELECT + 56 + + 11, ( + 44 ) + 20 + + 63 AS col1
----
67
127

query I rowsort
SELECT ALL - 59 * ( - 58 ) * + 2 * 13
----
88972

query I rowsort
SELECT ALL - 48 * 29
----
-1392

onlyif mysql # aggregate syntax: 
query II rowsort label-7659
SELECT ALL - + COALESCE ( + 12, 34 + - 28, - - 73, - + 45 + - 52 + - + 24 * + 65 + + 68 ) AS col2, MIN( 10 ) col1
----
-12
10

skipif mysql # not compatible
query II rowsort label-7659
SELECT ALL - + COALESCE ( + 12, 34 + - 28, - - 73, - + 45 + - 52 + - + 24 * + 65 + + 68 ) AS col2, MIN ( 10 ) col1
----
-12
10

query I rowsort
SELECT DISTINCT - + 63 - 51
----
-114

query I rowsort
SELECT 21 * - 59 AS col0
----
-1239

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7664
SELECT 42 + 96 + 24 + - 38 DIV - ( + ( + 70 ) ) AS col1
----
162

skipif mysql # not compatible
query I rowsort label-7664
SELECT 42 + 96 + 24 + - 38 / - ( + ( + 70 ) ) AS col1
----
162

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT DISTINCT COUNT( * ) - COUNT( * ) * COUNT( * ) + 28 * - + COALESCE ( - - 22, 65 * - 58, CASE - 42 WHEN COUNT( * ) THEN NULL ELSE ( 51 ) * + + 91 END )
----
-616

skipif mysql # not compatible
query I rowsort label-7666
SELECT DISTINCT COUNT ( * ) - COUNT ( * ) * COUNT ( * ) + 28 * - + COALESCE ( - - 22, 65 * - 58, CASE - 42 WHEN COUNT ( * ) THEN NULL ELSE ( 51 ) * + + 91 END )
----
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT DISTINCT COUNT( * ) * - 74 + - COUNT( * ) + + + 42 * - 24 + - 32 AS col1
----
-1115

skipif mysql # not compatible
query I rowsort label-7667
SELECT DISTINCT COUNT ( * ) * - 74 + - COUNT ( * ) + + + 42 * - 24 + - 32 AS col1
----
-1115

query I rowsort
SELECT ALL + 83 * + - 29
----
-2407

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7669
SELECT ALL + - COALESCE ( - + COUNT( * ), + SUM( + 19 ) ) DIV 58 * - 16 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7669
SELECT ALL + - COALESCE ( - + COUNT ( * ), + SUM ( + 19 ) ) / 58 * - 16 AS col2
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-7670
SELECT DISTINCT - COUNT( ALL 76 ) AS col2, 28 AS col0, - 23 col0
----
-1
28
-23

skipif mysql # not compatible
query III rowsort label-7670
SELECT DISTINCT - COUNT ( ALL 76 ) AS col2, 28 AS col0, - 23 col0
----
-1
28
-23

query I rowsort
SELECT ALL 55 * + 93
----
5115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7672
SELECT 58 + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) + + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-7672
SELECT 58 + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) + + 40
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7673
SELECT ( COUNT( * ) ) DIV COUNT( * ), 27 AS col0
----
1
27

skipif mysql # not compatible
query II rowsort label-7673
SELECT ( COUNT ( * ) ) / COUNT ( * ), 27 AS col0
----
1
27

query II rowsort
SELECT ( - - 7 ) - + 86 AS col2, - 52 - - - 80
----
-79
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT ALL 77 + - + 64 - + 48 - 60 + + CASE + 82 WHEN ( - ( - 60 ) ) * - 20 + + 60 + + COUNT( * ) + - + 59 * - + 85 * + - 77 THEN - 41 WHEN + 50 THEN NULL WHEN + 34 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7675
SELECT ALL 77 + - + 64 - + 48 - 60 + + CASE + 82 WHEN ( - ( - 60 ) ) * - 20 + + 60 + + COUNT ( * ) + - + 59 * - + 85 * + - 77 THEN - 41 WHEN + 50 THEN NULL WHEN + 34 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7676
SELECT COUNT( DISTINCT + 52 ) - CAST( NULL AS SIGNED ) / + 86 + + - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-7676
SELECT COUNT ( DISTINCT + 52 ) - CAST ( NULL AS INTEGER ) / + 86 + + - 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT DISTINCT 12 + COUNT( * ) - - NULLIF ( 54, + 87 ) * - - 73 col0
----
3955

skipif mysql # not compatible
query I rowsort label-7677
SELECT DISTINCT 12 + COUNT ( * ) - - NULLIF ( 54, + 87 ) * - - 73 col0
----
3955

query I rowsort
SELECT ALL 71 + + 36
----
107

onlyif mysql # aggregate syntax: 
query II rowsort label-7679
SELECT 92, + 49 + 26 + + 9 + ( - 58 ) * - + ( - + COUNT( * ) ) AS col1
----
92
26

skipif mysql # not compatible
query II rowsort label-7679
SELECT 92, + 49 + 26 + + 9 + ( - 58 ) * - + ( - + COUNT ( * ) ) AS col1
----
92
26

onlyif mysql # aggregate syntax: 
query II rowsort label-7680
SELECT MIN( ALL + 88 ) + + - 76, - ( - COALESCE ( - + 97, - 84, + COUNT( DISTINCT + 0 ) ) ) AS col0
----
12
-97

skipif mysql # not compatible
query II rowsort label-7680
SELECT MIN ( ALL + 88 ) + + - 76, - ( - COALESCE ( - + 97, - 84, + COUNT ( DISTINCT + 0 ) ) ) AS col0
----
12
-97

query II rowsort
SELECT ALL 61, + 90 AS col1
----
61
90

query I rowsort
SELECT 83 + + 43
----
126

onlyif mysql # aggregate syntax: 
query II rowsort label-7683
SELECT 78, 43 - MAX( - + 76 ) col2
----
78
119

skipif mysql # not compatible
query II rowsort label-7683
SELECT 78, 43 - MAX ( - + 76 ) col2
----
78
119

query I rowsort
SELECT 28 - - ( - - ( 90 ) )
----
118

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7686
SELECT - 25, 68 DIV - + 22 col2
----
-25
-3

skipif mysql # not compatible
query II rowsort label-7686
SELECT - 25, 68 / - + 22 col2
----
-25
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT DISTINCT SUM( ALL + + 43 ) * 30 + - 1 * + + 59 col1
----
1231

skipif mysql # not compatible
query I rowsort label-7687
SELECT DISTINCT SUM ( ALL + + 43 ) * 30 + - 1 * + + 59 col1
----
1231

query I rowsort
SELECT + 45 + - 73
----
-28

query I rowsort
SELECT ALL 28 - - 41 AS col2
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-7690
SELECT 97 * + - 88 - - 40 - - 69 + + ( - + 92 ) * - 3 + + - 52 AS col0, - COUNT( * ) * COALESCE ( - - 50, + + 68 ) AS col2
----
-8203
-50

skipif mysql # not compatible
query II rowsort label-7690
SELECT 97 * + - 88 - - 40 - - 69 + + ( - + 92 ) * - 3 + + - 52 AS col0, - COUNT ( * ) * COALESCE ( - - 50, + + 68 ) AS col2
----
-8203
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7691
SELECT - ( - 50 ) DIV + COUNT( * ) AS col0, 25 * + - 88 AS col0
----
50
-2200

skipif mysql # not compatible
query II rowsort label-7691
SELECT - ( - 50 ) / + COUNT ( * ) AS col0, 25 * + - 88 AS col0
----
50
-2200

query I rowsort
SELECT - 81 * 41
----
-3321

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT ALL - MIN( + 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-7693
SELECT ALL - MIN ( + 79 )
----
-79

onlyif mysql # DIV for integer division: 
query II rowsort label-7694
SELECT - 90 DIV + - 13 + + ( 81 ) AS col1, 37 AS col1
----
87
37

skipif mysql # not compatible
query II rowsort label-7694
SELECT - 90 / + - 13 + + ( 81 ) AS col1, 37 AS col1
----
87
37

query I rowsort
SELECT - 94 * - - 37 AS col2
----
-3478

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

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

query I rowsort
SELECT ALL - 62 * + + 99
----
-6138

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7699
SELECT ALL - + 31 AS col2, + COUNT( * ) DIV - 95
----
-31
0

skipif mysql # not compatible
query II rowsort label-7699
SELECT ALL - + 31 AS col2, + COUNT ( * ) / - 95
----
-31
0

query I rowsort
SELECT DISTINCT - NULLIF ( - 75, - 68 ) AS col0
----
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT COUNT( * ) * 49 + + 84 + + + 41
----
174

skipif mysql # not compatible
query I rowsort label-7702
SELECT COUNT ( * ) * 49 + + 84 + + + 41
----
174

onlyif mysql # aggregate syntax: 
query II rowsort label-7703
SELECT - COUNT( * ) * + SUM( + 86 ) col2, - 67 AS col0
----
-86
-67

skipif mysql # not compatible
query II rowsort label-7703
SELECT - COUNT ( * ) * + SUM ( + 86 ) col2, - 67 AS col0
----
-86
-67

query I rowsort
SELECT - ( - 34 ) * - 2 AS col0
----
-68

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

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

query I rowsort
SELECT + 6 - 91 col2
----
-85

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7708
SELECT + COUNT( * ) + - - CASE + COUNT( * ) WHEN + - 41 THEN NULL WHEN COALESCE ( - 92, - MAX( - - 65 ) ) - - - COUNT( * ) THEN - + 67 + - 87 WHEN + - 2 * 56 * 50 * + 27 THEN + 69 ELSE NULL END, + 55 AS col2
----
NULL
55

skipif mysql # not compatible
query II rowsort label-7708
SELECT + COUNT ( * ) + - - CASE + COUNT ( * ) WHEN + - 41 THEN NULL WHEN COALESCE ( - 92, - MAX ( - - 65 ) ) - - - COUNT ( * ) THEN - + 67 + - 87 WHEN + - 2 * 56 * 50 * + 27 THEN + 69 ELSE NULL END, + 55 AS col2
----
NULL
55

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7709
SELECT + 85 AS col1, 25 * + CASE - COUNT( * ) WHEN 15 + + - 99 * + CAST( + - 78 AS DECIMAL ) - 86 - NULLIF ( 66, - 89 + + - 20 ) THEN - 1 ELSE NULL END * + NULLIF ( - + 4, + COUNT( * ) / - 60 * 15 * NULLIF ( + 91, + 50 ) * + + 28 * - 46 )
----
85
NULL

skipif mysql # not compatible
query II rowsort label-7709
SELECT + 85 AS col1, 25 * + CASE - COUNT ( * ) WHEN 15 + + - 99 * + CAST ( + - 78 AS REAL ) - 86 - NULLIF ( 66, - 89 + + - 20 ) THEN - 1 ELSE NULL END * + NULLIF ( - + 4, + COUNT ( * ) / - 60 * 15 * NULLIF ( + 91, + 50 ) * + + 28 * - 46 )
----
85
NULL

query I rowsort
SELECT + 77 * - 80 + - - ( - 45 ) * - - 54 * 83 + - - 73 AS col0
----
-207777

query II rowsort
SELECT DISTINCT + 15 * 10 col0, + 87 * + 79 + + 66
----
150
6939

query I rowsort
SELECT ALL 7 + + 33
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7713
SELECT 74 + 33 + + 53 * COUNT( * ) col1
----
160

skipif mysql # not compatible
query I rowsort label-7713
SELECT 74 + 33 + + 53 * COUNT ( * ) col1
----
160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7714
SELECT ALL - ( + COALESCE ( 25, + 94 + + - 33 + + 30 * + 88 + + 70 * CASE - + 53 WHEN + ( - COALESCE ( + 25, - 33, - COUNT( ALL - 69 ) - + 93, - 74 + - 23 ) ) / + - 77 + 36 * 9 * 35 * CASE - - 43 WHEN + 24 * + - 1 THEN CAST( + 44 AS SIGNED ) END * 15 + - 58 + + 74 * NULLIF ( + 58, - 87 * 39 ) THEN NULL ELSE - 8 END ) )
----
-25

skipif mysql # not compatible
query I rowsort label-7714
SELECT ALL - ( + COALESCE ( 25, + 94 + + - 33 + + 30 * + 88 + + 70 * CASE - + 53 WHEN + ( - COALESCE ( + 25, - 33, - COUNT ( ALL - 69 ) - + 93, - 74 + - 23 ) ) / + - 77 + 36 * 9 * 35 * CASE - - 43 WHEN + 24 * + - 1 THEN CAST ( + 44 AS INTEGER ) END * 15 + - 58 + + 74 * NULLIF ( + 58, - 87 * 39 ) THEN NULL ELSE - 8 END ) )
----
-25

query I rowsort
SELECT DISTINCT - 43 + - 23 + + 18
----
-48

query I rowsort
SELECT ALL - 25 + + 90
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-7717
SELECT DISTINCT + 71 DIV 90 * + + 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7717
SELECT DISTINCT + 71 / 90 * + + 75 AS col1
----
0

query I rowsort
SELECT 9 * + 84 col2
----
756

query I rowsort
SELECT 83 * + 96 AS col0
----
7968

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7721
SELECT ALL 17 - - - CAST( 43 AS SIGNED )
----
-26

skipif mysql # not compatible
query I rowsort label-7721
SELECT ALL 17 - - - CAST ( 43 AS INTEGER )
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7722
SELECT 99 * COUNT( * ) DIV 89 * - COUNT( * ) * COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7722
SELECT 99 * COUNT ( * ) / 89 * - COUNT ( * ) * COUNT ( * ) AS col1
----
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7724
SELECT ALL CASE WHEN 84 IS NOT NULL THEN - 34 ELSE NULL END - + CAST( NULL AS SIGNED ) + + + 8 * + 49 + 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7724
SELECT ALL CASE WHEN 84 IS NOT NULL THEN - 34 ELSE NULL END - + CAST ( NULL AS INTEGER ) + + + 8 * + 49 + 66 AS col0
----
NULL

query I rowsort
SELECT + 93 + - 5 col2
----
88

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

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

query I rowsort
SELECT + 82 * 15
----
1230

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT MIN( ALL NULLIF ( + - 37, - 82 ) )
----
-37

skipif mysql # not compatible
query I rowsort label-7728
SELECT MIN ( ALL NULLIF ( + - 37, - 82 ) )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT - + SUM( - 35 ) * + + 60
----
2100

skipif mysql # not compatible
query I rowsort label-7729
SELECT - + SUM ( - 35 ) * + + 60
----
2100

query I rowsort
SELECT - 88 + - 96 * - 71 AS col0
----
6728

query I rowsort
SELECT DISTINCT 57 * - + 68 * 20 col2
----
-77520

query I rowsort
SELECT ALL + + 96 * - 62
----
-5952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7733
SELECT NULLIF ( 47, + CAST( - COALESCE ( 32, - + ( + ( + 46 ) ), + 33 + 52 + 46 - + 85 + 81 * + 75 * COUNT( 96 ) + COALESCE ( - CASE + 30 WHEN 53 + - + ( MAX( ALL + 83 ) ) THEN NULL WHEN + - 93 THEN - 41 + - 12 + - 50 + + 51 * 75 * 45 / + 76 ELSE NULL END, COALESCE ( + 64, 96 * + 99, 51 ) * + 78 + - 21 ) / - ( + CASE 62 WHEN 50 THEN 74 END ) * 30 ) AS SIGNED ) ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-7733
SELECT NULLIF ( 47, + CAST ( - COALESCE ( 32, - + ( + ( + 46 ) ), + 33 + 52 + 46 - + 85 + 81 * + 75 * COUNT ( 96 ) + COALESCE ( - CASE + 30 WHEN 53 + - + ( MAX ( ALL + 83 ) ) THEN NULL WHEN + - 93 THEN - 41 + - 12 + - 50 + + 51 * 75 * 45 / + 76 ELSE NULL END, COALESCE ( + 64, 96 * + 99, 51 ) * + 78 + - 21 ) / - ( + CASE 62 WHEN 50 THEN 74 END ) * 30 ) AS INTEGER ) ) AS col2
----
47

query I rowsort
SELECT ALL - 16 * + NULLIF ( - 75, + 57 ) AS col1
----
1200

query II rowsort
SELECT + 54 * - 2 * 25 * + 61 AS col1, 89
----
-164700
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7736
SELECT DISTINCT + 5 * + + CAST( + + 67 AS SIGNED ) * + - 99 AS col2
----
-33165

skipif mysql # not compatible
query I rowsort label-7736
SELECT DISTINCT + 5 * + + CAST ( + + 67 AS INTEGER ) * + - 99 AS col2
----
-33165

query I rowsort
SELECT ALL 42 * - + 37 AS col1
----
-1554

onlyif mysql # aggregate syntax: 
query II rowsort label-7738
SELECT DISTINCT + MIN( 39 ) AS col0, + ( + NULLIF ( - 86, 92 * - ( + - 47 ) + + 86 + 32 / - - COUNT( * ) ) )
----
39
-86

skipif mysql # not compatible
query II rowsort label-7738
SELECT DISTINCT + MIN ( 39 ) AS col0, + ( + NULLIF ( - 86, 92 * - ( + - 47 ) + + 86 + 32 / - - COUNT ( * ) ) )
----
39
-86

query I rowsort
SELECT + + 50 * - + 77 * 61
----
-234850

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT ALL CASE + 56 WHEN - + 77 THEN + - COUNT( * ) END * - COUNT( - - 82 ) * + - COUNT( * ) + + 16 - ( + + 41 ) + - 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7740
SELECT ALL CASE + 56 WHEN - + 77 THEN + - COUNT ( * ) END * - COUNT ( - - 82 ) * + - COUNT ( * ) + + 16 - ( + + 41 ) + - 18 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7741
SELECT + + 0 DIV + 77 * - - 5 * - SUM( + 30 )
----
0

skipif mysql # not compatible
query I rowsort label-7741
SELECT + + 0 / + 77 * - - 5 * - SUM ( + 30 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT ALL + MAX( + 10 ) * 81
----
810

skipif mysql # not compatible
query I rowsort label-7742
SELECT ALL + MAX ( + 10 ) * 81
----
810

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

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

query I rowsort
SELECT ALL - 66 * + 93
----
-6138

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT - 30 + + COUNT( * ) + COUNT( 83 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-7745
SELECT - 30 + + COUNT ( * ) + COUNT ( 83 ) AS col1
----
-28

query I rowsort
SELECT - 36 * + 42 AS col1
----
-1512

onlyif mysql # DIV for integer division: 
query I rowsort label-7747
SELECT - COALESCE ( 29, 76 * - + 47 DIV 43 ) + - 66 - - 7 + - - ( 23 ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-7747
SELECT - COALESCE ( 29, 76 * - + 47 / 43 ) + - 66 - - 7 + - - ( 23 ) AS col1
----
-65

query I rowsort
SELECT ALL + 94 - - 60
----
154

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7751
SELECT DISTINCT COALESCE ( - 1, + NULLIF ( + CAST( NULL AS SIGNED ), + + 4 ) DIV - 59, ( + 57 ) + - 83 )
----
-1

skipif mysql # not compatible
query I rowsort label-7751
SELECT DISTINCT COALESCE ( - 1, + NULLIF ( + CAST ( NULL AS INTEGER ), + + 4 ) / - 59, ( + 57 ) + - 83 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT - MAX( ALL 4 ) col1
----
-4

skipif mysql # not compatible
query I rowsort label-7752
SELECT - MAX ( ALL 4 ) col1
----
-4

query I rowsort
SELECT + 70 * + ( + - 40 ) AS col1
----
-2800

query I rowsort
SELECT - 40 + - 32 - - 28
----
-44

query I rowsort
SELECT ALL - 28 * + + ( + 43 ) * 51 - - 69 + - 40 * + - 80 + + 36 + - 86 * - ( + 63 )
----
-52681

query I rowsort
SELECT - - ( + - ( - - 6 ) ) + - 67 - + - 44 + + 99
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-7757
SELECT - 2 DIV + ( - ( + 40 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7757
SELECT - 2 / + ( - ( + 40 ) ) AS col1
----
0

query I rowsort
SELECT - 16 * - 70 col0
----
1120

query II rowsort
SELECT ALL - 67 * + 87 * + 24, + 73 * + 29 col2
----
-139896
2117

query I rowsort
SELECT + + 40 * - 26
----
-1040

query I rowsort
SELECT + 43 + 7 * - 62 + 15 AS col1
----
-376

query I rowsort
SELECT ALL - 76 * + + 50 AS col0
----
-3800

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT + - MAX( ALL - 11 ) * - 26 AS col2
----
-286

skipif mysql # not compatible
query I rowsort label-7763
SELECT + - MAX ( ALL - 11 ) * - 26 AS col2
----
-286

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7765
SELECT - 31 * + CAST( NULL AS SIGNED ) + - - 26 * + + 78 + 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7765
SELECT - 31 * + CAST ( NULL AS INTEGER ) + - - 26 * + + 78 + 25 AS col2
----
NULL

query I rowsort
SELECT + NULLIF ( + 66, - + 60 )
----
66

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7767
SELECT DISTINCT NULLIF ( 7, 57 ) DIV - - CAST( - 47 AS SIGNED ) + 45
----
45

skipif mysql # not compatible
query I rowsort label-7767
SELECT DISTINCT NULLIF ( 7, 57 ) / - - CAST ( - 47 AS INTEGER ) + 45
----
45

query I rowsort
SELECT + 32 + - 77 - - 94 AS col2
----
49

query I rowsort
SELECT ALL 76 * + COALESCE ( 24, 75 )
----
1824

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7770
SELECT DISTINCT 97 DIV 10 * + 55 + 54 + - CAST( - COUNT( * ) AS SIGNED ) AS col2
----
550

skipif mysql # not compatible
query I rowsort label-7770
SELECT DISTINCT 97 / 10 * + 55 + 54 + - CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
550

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

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

query I rowsort
SELECT ALL 55 * + + ( + 49 )
----
2695

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7773
SELECT ( + 76 ) DIV CAST( + - NULLIF ( + CAST( - COUNT( * ) AS SIGNED ), - - ( COUNT( * ) ) ) AS SIGNED ) + 17, COUNT( * ) * + 86 AS col0
----
93
86

skipif mysql # not compatible
query II rowsort label-7773
SELECT ( + 76 ) / CAST ( + - NULLIF ( + CAST ( - COUNT ( * ) AS INTEGER ), - - ( COUNT ( * ) ) ) AS INTEGER ) + 17, COUNT ( * ) * + 86 AS col0
----
93
86

query I rowsort
SELECT + 78 * + 46
----
3588

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

query I rowsort
SELECT - 42 + - - ( 81 ) AS col0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7777
SELECT ALL + COUNT( * ), + CAST( + + 88 AS SIGNED ) * + 45 AS col2
----
1
3960

skipif mysql # not compatible
query II rowsort label-7777
SELECT ALL + COUNT ( * ), + CAST ( + + 88 AS INTEGER ) * + 45 AS col2
----
1
3960

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT + COUNT( * ) * - 98 + + 33
----
-65

skipif mysql # not compatible
query I rowsort label-7778
SELECT + COUNT ( * ) * - 98 + + 33
----
-65

query I rowsort
SELECT - 60 + - 98
----
-158

query I rowsort
SELECT - 19 * + - 54
----
1026

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT COALESCE ( - + COUNT( * ), + + ( CASE + - 54 WHEN - 10 * + + 57 - - ( - 62 ) * - COALESCE ( - - COUNT( * ), - COUNT( * ), - + AVG ( - 26 ) ) + + 72 THEN - 40 WHEN + ( - 34 ) THEN NULL ELSE NULL END ) - - - 32 * + 62 * + - 21, 35 ) * 88 * - - 53 + - 95 + - ( 41 ) AS col1
----
-4800

skipif mysql # not compatible
query I rowsort label-7781
SELECT COALESCE ( - + COUNT ( * ), + + ( CASE + - 54 WHEN - 10 * + + 57 - - ( - 62 ) * - COALESCE ( - - COUNT ( * ), - COUNT ( * ), - + AVG ( - 26 ) ) + + 72 THEN - 40 WHEN + ( - 34 ) THEN NULL ELSE NULL END ) - - - 32 * + 62 * + - 21, 35 ) * 88 * - - 53 + - 95 + - ( 41 ) AS col1
----
-4800

query II rowsort
SELECT ALL - 37 AS col1, - 44
----
-37
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7783
SELECT 8 + + + COUNT( 26 ) + + MAX( DISTINCT - + CAST( - 61 AS SIGNED ) ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-7783
SELECT 8 + + + COUNT ( 26 ) + + MAX ( DISTINCT - + CAST ( - 61 AS INTEGER ) ) AS col0
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7784
SELECT DISTINCT COUNT( * ) DIV 85 * + 5 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7784
SELECT DISTINCT COUNT ( * ) / 85 * + 5 AS col2
----
0

query II rowsort
SELECT 89 col1, 31
----
89
31

query I rowsort
SELECT ALL - 36 * - - 15
----
-540

onlyif mysql # DIV for integer division: 
query I rowsort label-7787
SELECT DISTINCT - ( + 73 ) * 11 DIV 42 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-7787
SELECT DISTINCT - ( + 73 ) * 11 / 42 AS col1
----
-19

query I rowsort
SELECT ALL - - 79 + 24 * + 66 * + 67 + 57 AS col0
----
106264

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT ALL - MIN( DISTINCT 43 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-7789
SELECT ALL - MIN ( DISTINCT 43 ) AS col1
----
-43

query I rowsort
SELECT NULLIF ( 2, 92 + + ( + 98 ) ) * 39 AS col0
----
78

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7793
SELECT 90 - 92 + + 41 + 17 * COUNT( * ) * 78, - MAX( ALL - 24 ) * + - 0 * + + 70 * 3 AS col0
----
1365
0

skipif mysql # not compatible
query II rowsort label-7793
SELECT 90 - 92 + + 41 + 17 * COUNT ( * ) * 78, - MAX ( ALL - 24 ) * + - 0 * + + 70 * 3 AS col0
----
1365
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7794
SELECT - 2, CAST( + 68 AS SIGNED ) AS col0
----
-2
68

skipif mysql # not compatible
query II rowsort label-7794
SELECT - 2, CAST ( + 68 AS INTEGER ) AS col0
----
-2
68

onlyif mysql # DIV for integer division: 
query I rowsort label-7795
SELECT 21 DIV - 45
----
0

skipif mysql # not compatible
query I rowsort label-7795
SELECT 21 / - 45
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7797
SELECT ALL 64, + CAST( + 42 AS SIGNED ) DIV COUNT( * ) * + 80 AS col0
----
64
3360

skipif mysql # not compatible
query II rowsort label-7797
SELECT ALL 64, + CAST ( + 42 AS INTEGER ) / COUNT ( * ) * + 80 AS col0
----
64
3360

onlyif mysql # DIV for integer division: 
query I rowsort label-7798
SELECT + 39 DIV - 42 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7798
SELECT + 39 / - 42 AS col0
----
0

query I rowsort
SELECT DISTINCT + + 95 + + 14 * 56
----
879

query II rowsort
SELECT ALL - + CASE + - 75 WHEN - - 87 THEN - 43 * - - 19 * 75 END AS col1, 43 - 29 AS col0
----
NULL
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7801
SELECT DISTINCT COUNT( * ) - - CASE 88 WHEN + - COUNT( * ) THEN NULL WHEN - NULLIF ( - 4, 66 ) THEN 2 WHEN + 15 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7801
SELECT DISTINCT COUNT ( * ) - - CASE 88 WHEN + - COUNT ( * ) THEN NULL WHEN - NULLIF ( - 4, 66 ) THEN 2 WHEN + 15 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7802
SELECT ALL COALESCE ( - COUNT( * ), 98 DIV + 71 + + + 92 + SUM( DISTINCT - + 84 ) + + - 99, - 34 ) - ( - - 4 )
----
-5

skipif mysql # not compatible
query I rowsort label-7802
SELECT ALL COALESCE ( - COUNT ( * ), 98 / + 71 + + + 92 + SUM ( DISTINCT - + 84 ) + + - 99, - 34 ) - ( - - 4 )
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-7803
SELECT 94 * + - COUNT( * ) - 46, 39 AS col1
----
-140
39

skipif mysql # not compatible
query II rowsort label-7803
SELECT 94 * + - COUNT ( * ) - 46, 39 AS col1
----
-140
39

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

skipif mysql # not compatible
query I rowsort label-7804
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) / - 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT ALL - COUNT( DISTINCT + 46 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7805
SELECT ALL - COUNT ( DISTINCT + 46 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7806
SELECT ( + CAST( NULL AS SIGNED ) ) * + + 39 + - + 62 * + 49 * - 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7806
SELECT ( + CAST ( NULL AS INTEGER ) ) * + + 39 + - + 62 * + 49 * - 91 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7807
SELECT NULLIF ( + COUNT( * ), + - 30 / + 94 + - 95 + ( - + CAST( + 9 AS SIGNED ) ) + + + ( - 56 ) * 73 / + ( + MIN( - + 65 ) ) * + - COALESCE ( - 75, + 95 * - + 14 * + 97 * - 66 * - + MAX( + 22 ) * - + 47 - - 12 ) * + 82 + 89 ) + - 58, + NULLIF ( + + 93, + MAX( DISTINCT + 50 ) ) AS col2
----
-57
93

skipif mysql # not compatible
query II rowsort label-7807
SELECT NULLIF ( + COUNT ( * ), + - 30 / + 94 + - 95 + ( - + CAST ( + 9 AS INTEGER ) ) + + + ( - 56 ) * 73 / + ( + MIN ( - + 65 ) ) * + - COALESCE ( - 75, + 95 * - + 14 * + 97 * - 66 * - + MAX ( + 22 ) * - + 47 - - 12 ) * + 82 + 89 ) + - 58, + NULLIF ( + + 93, + MAX ( DISTINCT + 50 ) ) AS col2
----
-57
93

query I rowsort
SELECT 17 + - 66 AS col2
----
-49

query II rowsort
SELECT 24 * + 84 AS col0, 46 + - 68
----
2016
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT ( + + 67 ) + - ( + 25 ) * + 50 + COUNT( * )
----
-1182

skipif mysql # not compatible
query I rowsort label-7810
SELECT ( + + 67 ) + - ( + 25 ) * + 50 + COUNT ( * )
----
-1182

onlyif mysql # aggregate syntax: 
query II rowsort label-7811
SELECT - MAX( + 32 ), 93 col0
----
-32
93

skipif mysql # not compatible
query II rowsort label-7811
SELECT - MAX ( + 32 ), 93 col0
----
-32
93

onlyif mysql # aggregate syntax: 
query II rowsort label-7812
SELECT ALL - + 77 + - 92 - + - COALESCE ( - 66, + COUNT( DISTINCT - 41 ) ) + + COUNT( * ) * + + 58 * ( + - 73 ) col0, + ( + 34 ) + + + 24 AS col0
----
-4469
58

skipif mysql # not compatible
query II rowsort label-7812
SELECT ALL - + 77 + - 92 - + - COALESCE ( - 66, + COUNT ( DISTINCT - 41 ) ) + + COUNT ( * ) * + + 58 * ( + - 73 ) col0, + ( + 34 ) + + + 24 AS col0
----
-4469
58

query I rowsort
SELECT - 68 * - 52 + + 98
----
3634

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7815
SELECT - 64 + + 42 + + NULLIF ( - COUNT( * ), - 2 ) DIV - 33 * 60 + - - 77 * - 80 AS col0
----
-6182

skipif mysql # not compatible
query I rowsort label-7815
SELECT - 64 + + 42 + + NULLIF ( - COUNT ( * ), - 2 ) / - 33 * 60 + - - 77 * - 80 AS col0
----
-6182

onlyif mysql # DIV for integer division: 
query I rowsort label-7816
SELECT ALL + 85 + + 23 DIV + - 22 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-7816
SELECT ALL + 85 + + 23 / + - 22 AS col0
----
84

query I rowsort
SELECT 59 + - - 18 * 28 - + 85 col0
----
478

query II rowsort
SELECT - ( 8 ), + 36 AS col2
----
-8
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT ALL + COUNT( ALL + 24 ) * - - NULLIF ( + - 83, + 32 + + COALESCE ( 10, + 83 / - MIN( ALL 19 ) + CASE + - 46 WHEN + 91 THEN 70 * + 74 END + + CASE 59 WHEN - + 45 + - ( COALESCE ( - 53, - 72 * - 81 + - - AVG ( + + 33 ) * - - 15 + - + 51 * + COUNT( * ) * - COUNT( * ) ) ) / 59 + COALESCE ( 30, 39 - + 76 ) * + 48 THEN + 76 END ) + - NULLIF ( - ( + 60 ) + - 2 * 94, - 59 ) * + 49 ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-7819
SELECT ALL + COUNT ( ALL + 24 ) * - - NULLIF ( + - 83, + 32 + + COALESCE ( 10, + 83 / - MIN ( ALL 19 ) + CASE + - 46 WHEN + 91 THEN 70 * + 74 END + + CASE 59 WHEN - + 45 + - ( COALESCE ( - 53, - 72 * - 81 + - - AVG ( + + 33 ) * - - 15 + - + 51 * + COUNT ( * ) * - COUNT ( * ) ) ) / 59 + COALESCE ( 30, 39 - + 76 ) * + 48 THEN + 76 END ) + - NULLIF ( - ( + 60 ) + - 2 * 94, - 59 ) * + 49 ) AS col1
----
-83

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7822
SELECT ALL + NULLIF ( + + ( + - 63 ), + 30 ) + - - COUNT( * ) * + MAX( 92 ) - - 16 - + - COALESCE ( + ( - 85 ), - 93 DIV - 7 + 88 + - 46 + - - SUM( DISTINCT 67 ) * - 33 + 46 ) * 40
----
-3355

skipif mysql # not compatible
query I rowsort label-7822
SELECT ALL + NULLIF ( + + ( + - 63 ), + 30 ) + - - COUNT ( * ) * + MAX ( 92 ) - - 16 - + - COALESCE ( + ( - 85 ), - 93 / - 7 + 88 + - 46 + - - SUM ( DISTINCT 67 ) * - 33 + 46 ) * 40
----
-3355

query I rowsort
SELECT 28 + - 49 AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT ALL + COUNT( + - 33 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7824
SELECT ALL + COUNT ( + - 33 ) AS col2
----
1

query I rowsort
SELECT 8 * + 51
----
408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7826
SELECT NULLIF ( - 72, - - 4 * - - CAST( - ( 7 ) AS SIGNED ) + + 6 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-7826
SELECT NULLIF ( - 72, - - 4 * - - CAST ( - ( 7 ) AS INTEGER ) + + 6 ) AS col0
----
-72

onlyif mysql # DIV for integer division: 
query II rowsort label-7827
SELECT + 32, - 8 DIV + + 22 AS col0
----
32
0

skipif mysql # not compatible
query II rowsort label-7827
SELECT + 32, - 8 / + + 22 AS col0
----
32
0

query I rowsort
SELECT ALL + 7 * + + 8 AS col2
----
56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7829
SELECT - CAST( NULL AS DECIMAL ) * - - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-7829
SELECT - CAST ( NULL AS REAL ) * - - 30
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7830
SELECT ALL + 35 DIV - ( 97 ) AS col2, 19 + + 27
----
0
46

skipif mysql # not compatible
query II rowsort label-7830
SELECT ALL + 35 / - ( 97 ) AS col2, 19 + + 27
----
0
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT - 1 + - - SUM( DISTINCT - + COALESCE ( + - 62, - + 9 * - 7 * - + 72 ) ) col1
----
61

skipif mysql # not compatible
query I rowsort label-7831
SELECT - 1 + - - SUM ( DISTINCT - + COALESCE ( + - 62, - + 9 * - 7 * - + 72 ) ) col1
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7832
SELECT - 59 / - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7832
SELECT - 59 / - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7833
SELECT ALL 89 DIV - - 1
----
89

skipif mysql # not compatible
query I rowsort label-7833
SELECT ALL 89 / - - 1
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-7834
SELECT COUNT( * ) col2, + 3 * 10 AS col1
----
1
30

skipif mysql # not compatible
query II rowsort label-7834
SELECT COUNT ( * ) col2, + 3 * 10 AS col1
----
1
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7835
SELECT + 47 + 94 / + CASE - 80 WHEN + 1 THEN + - 9 + + MIN( DISTINCT - 96 ) * 75 * - - COUNT( DISTINCT 69 ) * CAST( NULL AS SIGNED ) - - - AVG ( + + 35 ) WHEN - 43 THEN NULL END * 9 + - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-7835
SELECT + 47 + 94 / + CASE - 80 WHEN + 1 THEN + - 9 + + MIN ( DISTINCT - 96 ) * 75 * - - COUNT ( DISTINCT 69 ) * CAST ( NULL AS INTEGER ) - - - AVG ( + + 35 ) WHEN - 43 THEN NULL END * 9 + - 71
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7837
SELECT ALL + ( 74 ) * - NULLIF ( - 93, 14 ) + - ( - CAST( + 23 AS SIGNED ) ) + - ( 76 )
----
6829

skipif mysql # not compatible
query I rowsort label-7837
SELECT ALL + ( 74 ) * - NULLIF ( - 93, 14 ) + - ( - CAST ( + 23 AS INTEGER ) ) + - ( 76 )
----
6829

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT DISTINCT + 74 * - - 67 * - - 10 + - MIN( ALL - 85 ) + 25 col0
----
49690

skipif mysql # not compatible
query I rowsort label-7838
SELECT DISTINCT + 74 * - - 67 * - - 10 + - MIN ( ALL - 85 ) + 25 col0
----
49690

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7840
SELECT ALL ( + 83 ) * - 38 * - - 46 + - - 41 DIV + 58 AS col1
----
-145084

skipif mysql # not compatible
query I rowsort label-7840
SELECT ALL ( + 83 ) * - 38 * - - 46 + - - 41 / + 58 AS col1
----
-145084

query I rowsort
SELECT DISTINCT - 47 + + 38 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT + + MAX( DISTINCT - 24 ) * - 62 AS col0
----
1488

skipif mysql # not compatible
query I rowsort label-7842
SELECT + + MAX ( DISTINCT - 24 ) * - 62 AS col0
----
1488

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7844
SELECT ALL - SUM( DISTINCT - 23 ) + + COUNT( * ) * - 3 AS col2, 20
----
20
20

skipif mysql # not compatible
query II rowsort label-7844
SELECT ALL - SUM ( DISTINCT - 23 ) + + COUNT ( * ) * - 3 AS col2, 20
----
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT ALL - + MAX( DISTINCT + 47 ) - + 96 * - 36 * + 14 * 43 AS col1
----
2080465

skipif mysql # not compatible
query I rowsort label-7845
SELECT ALL - + MAX ( DISTINCT + 47 ) - + 96 * - 36 * + 14 * 43 AS col1
----
2080465

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

skipif mysql # not compatible
query I rowsort label-7846
SELECT + CAST ( NULL AS INTEGER ) / + 30 / 45
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7847
SELECT DISTINCT CAST( NULL AS SIGNED ), + 1 AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7847
SELECT DISTINCT CAST ( NULL AS INTEGER ), + 1 AS col2
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7848
SELECT + 25 * + COUNT( * ) * - CAST( - + 82 AS SIGNED ) + 97 AS col1
----
2147

skipif mysql # not compatible
query I rowsort label-7848
SELECT + 25 * + COUNT ( * ) * - CAST ( - + 82 AS INTEGER ) + 97 AS col1
----
2147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7849
SELECT ALL + - CASE + + COUNT( * ) WHEN + + 47 THEN NULL WHEN NULLIF ( + 26, - CAST( NULL AS SIGNED ) * - + 11 + - + ( + 56 ) * + COUNT( * ) ) + - 11 + - 82 * + - 96 THEN NULL ELSE 20 END * + 66
----
-1320

skipif mysql # not compatible
query I rowsort label-7849
SELECT ALL + - CASE + + COUNT ( * ) WHEN + + 47 THEN NULL WHEN NULLIF ( + 26, - CAST ( NULL AS INTEGER ) * - + 11 + - + ( + 56 ) * + COUNT ( * ) ) + - 11 + - 82 * + - 96 THEN NULL ELSE 20 END * + 66
----
-1320

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7852
SELECT + - ( - 28 ) / - 32 / + - COUNT ( * )
----
0

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

skipif mysql # not compatible
query I rowsort label-7853
SELECT + ( - + NULLIF ( + - COUNT ( * ), + 4 * - 73 ) )
----
1

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

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

query I rowsort
SELECT ALL + - 65 * - CASE - 66 WHEN - - 86 * - 2 THEN - 84 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT - 70 + + + MIN( ALL - 78 ) AS col2
----
-148

skipif mysql # not compatible
query I rowsort label-7856
SELECT - 70 + + + MIN ( ALL - 78 ) AS col2
----
-148

query I rowsort
SELECT ALL COALESCE ( - 50, - 72 ) AS col2
----
-50

query I rowsort
SELECT - 53 * + 71 * 87
----
-327381

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7859
SELECT + CASE + 21 WHEN + COUNT( * ) / + COUNT( * ) * + - 53 + - - COALESCE ( 25, - 44 ) THEN - 29 ELSE NULL END / - - 54 * + - 10 + 74 + 9 - + ( + + MIN( ALL + 29 ) ) * - 68 * + - 55 + COUNT( 20 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7859
SELECT + CASE + 21 WHEN + COUNT ( * ) / + COUNT ( * ) * + - 53 + - - COALESCE ( 25, - 44 ) THEN - 29 ELSE NULL END / - - 54 * + - 10 + 74 + 9 - + ( + + MIN ( ALL + 29 ) ) * - 68 * + - 55 + COUNT ( 20 ) + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ( - 62 ), + 9 AS col1
----
-62
9

onlyif mysql # aggregate syntax: 
query II rowsort label-7861
SELECT DISTINCT + MIN( - 33 ) AS col0, + COUNT( * ) AS col0
----
-33
1

skipif mysql # not compatible
query II rowsort label-7861
SELECT DISTINCT + MIN ( - 33 ) AS col0, + COUNT ( * ) AS col0
----
-33
1

query II rowsort
SELECT - 17 * 62, - 13 col1
----
-1054
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-7863
SELECT ALL - 24 * + + 32 + + - ( + 13 ) DIV + 50 AS col2
----
-768

skipif mysql # not compatible
query I rowsort label-7863
SELECT ALL - 24 * + + 32 + + - ( + 13 ) / + 50 AS col2
----
-768

onlyif mysql # aggregate syntax: 
query II rowsort label-7864
SELECT - 36 * - 56 * - 77 - COUNT( * ) AS col0, 33 * + - 29 AS col2
----
-155233
-957

skipif mysql # not compatible
query II rowsort label-7864
SELECT - 36 * - 56 * - 77 - COUNT ( * ) AS col0, 33 * + - 29 AS col2
----
-155233
-957

query I rowsort
SELECT - 87 * 8 * - 76 AS col0
----
52896

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT ALL + NULLIF ( - 35, 74 + - 64 ) * + + 14 * + COUNT( * ) AS col1
----
-490

skipif mysql # not compatible
query I rowsort label-7866
SELECT ALL + NULLIF ( - 35, 74 + - 64 ) * + + 14 * + COUNT ( * ) AS col1
----
-490

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7867
SELECT + - 7 * + + 92 * 3 DIV + MAX( ALL 88 )
----
-21

skipif mysql # not compatible
query I rowsort label-7867
SELECT + - 7 * + + 92 * 3 / + MAX ( ALL 88 )
----
-21

query I rowsort
SELECT + 1 * NULLIF ( 37, + - 74 ) - 61
----
-24

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7869
SELECT ALL + - ( + 88 ) AS col1, - 85 * - CAST( NULL AS DECIMAL ) * + + ( - 5 )
----
-88
NULL

skipif mysql # not compatible
query II rowsort label-7869
SELECT ALL + - ( + 88 ) AS col1, - 85 * - CAST ( NULL AS REAL ) * + + ( - 5 )
----
-88
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT - - 63 + COUNT( * ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-7870
SELECT - - 63 + COUNT ( * ) AS col0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7871
SELECT ALL - 74 * - - CAST( - 15 AS SIGNED ) - 85
----
1025

skipif mysql # not compatible
query I rowsort label-7871
SELECT ALL - 74 * - - CAST ( - 15 AS INTEGER ) - 85
----
1025

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT + 82 * - MIN( DISTINCT + 29 ) AS col1
----
-2378

skipif mysql # not compatible
query I rowsort label-7872
SELECT + 82 * - MIN ( DISTINCT + 29 ) AS col1
----
-2378

query I rowsort
SELECT + 10 + 13
----
23

query II rowsort
SELECT + - 5 * - 0 AS col2, 6 * 51 * - 77
----
0
-23562

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7875
SELECT ALL CASE - - COUNT( * ) WHEN + + 72 / - CAST( 38 AS SIGNED ) THEN - 46 ELSE - - COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-7875
SELECT ALL CASE - - COUNT ( * ) WHEN + + 72 / - CAST ( 38 AS INTEGER ) THEN - 46 ELSE - - COUNT ( * ) END
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7876
SELECT + 85 * + CAST( NULL AS SIGNED ) AS col0, - 22
----
NULL
-22

skipif mysql # not compatible
query II rowsort label-7876
SELECT + 85 * + CAST ( NULL AS INTEGER ) AS col0, - 22
----
NULL
-22

query I rowsort
SELECT - ( 58 ) + + 19 AS col1
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-7878
SELECT ALL 78 DIV - - 16 col1
----
4

skipif mysql # not compatible
query I rowsort label-7878
SELECT ALL 78 / - - 16 col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT 8 * 77 * - COUNT( * ) col2
----
-616

skipif mysql # not compatible
query I rowsort label-7879
SELECT 8 * 77 * - COUNT ( * ) col2
----
-616

onlyif mysql # DIV for integer division: 
query I rowsort label-7880
SELECT DISTINCT 25 DIV - + 56 col2
----
0

skipif mysql # not compatible
query I rowsort label-7880
SELECT DISTINCT 25 / - + 56 col2
----
0

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

skipif mysql # not compatible
query I rowsort label-7881
SELECT COUNT ( * ) / - 4 AS col1
----
0

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

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

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

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

query I rowsort
SELECT 43 - 91 AS col1
----
-48

query I rowsort
SELECT 56 + + 62
----
118

query I rowsort
SELECT 33 + + 92 + + 95 + 4
----
224

query I rowsort
SELECT DISTINCT 17 * - 1
----
-17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7888
SELECT - ( + 95 ) * + - SUM( 93 ) + - + CASE + - 22 WHEN + COUNT( * ) THEN + ( COUNT( * ) ) * MIN( + - 0 ) * - + 51 * NULLIF ( + COUNT( * ), - COUNT( * ) * - + COALESCE ( - + 42, + 57 - - AVG ( 40 ) * + 52, - 89 ) * - 64 * + - 68 + ( + - ( - ( + 61 ) ) ) ) * + NULLIF ( - 88, - CAST( 87 AS DECIMAL ) ) / - 10 * 91 - 52 + 64 * - 51 + 9 + 85 WHEN 7 THEN NULL ELSE CASE 17 WHEN 76 THEN COUNT( * ) * 28 WHEN + COUNT( * ) THEN + 34 * COUNT( * ) END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7888
SELECT - ( + 95 ) * + - SUM ( 93 ) + - + CASE + - 22 WHEN + COUNT ( * ) THEN + ( COUNT ( * ) ) * MIN ( + - 0 ) * - + 51 * NULLIF ( + COUNT ( * ), - COUNT ( * ) * - + COALESCE ( - + 42, + 57 - - AVG ( 40 ) * + 52, - 89 ) * - 64 * + - 68 + ( + - ( - ( + 61 ) ) ) ) * + NULLIF ( - 88, - CAST ( 87 AS REAL ) ) / - 10 * 91 - 52 + 64 * - 51 + 9 + 85 WHEN 7 THEN NULL ELSE CASE 17 WHEN 76 THEN COUNT ( * ) * 28 WHEN + COUNT ( * ) THEN + 34 * COUNT ( * ) END END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( - + 53, ( 42 ) ) AS col2
----
53

query I rowsort
SELECT ALL 70 + 2 * - 43
----
-16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7891
SELECT 36 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7891
SELECT 36 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7892
SELECT - CAST( - - 81 AS SIGNED ) col2
----
-81

skipif mysql # not compatible
query I rowsort label-7892
SELECT - CAST ( - - 81 AS INTEGER ) col2
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7893
SELECT 65 DIV 91 + + COUNT( ( - + 61 ) ) DIV 29 + + COALESCE ( - + 70, - SUM( - 73 ), + 78 )
----
-70

skipif mysql # not compatible
query I rowsort label-7893
SELECT 65 / 91 + + COUNT ( ( - + 61 ) ) / 29 + + COALESCE ( - + 70, - SUM ( - 73 ), + 78 )
----
-70

query I rowsort
SELECT - 0 + - - 28 + + 56 * 74 * ( + - 50 ) AS col0
----
-207172

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7898
SELECT ALL - COALESCE ( + - ( + 88 ), + MIN( + + 89 ) * 61 + + 64, + 89 DIV + - ( + 13 ) - - - NULLIF ( + - COUNT( * ), + + 95 - + + 0 ) + - COUNT( ALL - - 92 ) ) - 30 col1
----
58

skipif mysql # not compatible
query I rowsort label-7898
SELECT ALL - COALESCE ( + - ( + 88 ), + MIN ( + + 89 ) * 61 + + 64, + 89 / + - ( + 13 ) - - - NULLIF ( + - COUNT ( * ), + + 95 - + + 0 ) + - COUNT ( ALL - - 92 ) ) - 30 col1
----
58

query I rowsort
SELECT + CASE + 47 WHEN + + 13 * + 21 THEN 93 + 98 * - 79 ELSE NULL END / + 25 + + - 21 - + - 51 + + + 83 * + + 43 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT DISTINCT + 3 * + 24 * + 89 * - + COUNT( * )
----
-6408

skipif mysql # not compatible
query I rowsort label-7900
SELECT DISTINCT + 3 * + 24 * + 89 * - + COUNT ( * )
----
-6408

query I rowsort
SELECT 11 * + 91 * 47
----
47047

query I rowsort
SELECT 13 - - - 73 + - 1
----
-61

query I rowsort
SELECT - 16 * + 99 + 11 * 49 + - 43 * 12 col2
----
-1561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7904
SELECT DISTINCT COALESCE ( - - 24, + 6 DIV + - CAST( - COUNT( * ) AS SIGNED ) )
----
24

skipif mysql # not compatible
query I rowsort label-7904
SELECT DISTINCT COALESCE ( - - 24, + 6 / + - CAST ( - COUNT ( * ) AS INTEGER ) )
----
24

query I rowsort
SELECT ALL - NULLIF ( 51, - - 70 + + 17 ) AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT DISTINCT - MAX( - 22 ) + + 20
----
42

skipif mysql # not compatible
query I rowsort label-7906
SELECT DISTINCT - MAX ( - 22 ) + + 20
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT ALL 72 * + - MAX( DISTINCT 86 ) AS col1
----
-6192

skipif mysql # not compatible
query I rowsort label-7907
SELECT ALL 72 * + - MAX ( DISTINCT 86 ) AS col1
----
-6192

query I rowsort
SELECT 18 + 24 + 62
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT ALL MIN( - - 61 ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-7909
SELECT ALL MIN ( - - 61 ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-7910
SELECT 30 AS col0, + COALESCE ( - 36, ( + + 69 ) + + COALESCE ( - 83, - - 99 ) + COUNT( * ) + COALESCE ( 12, - + ( - + 45 ) * + 43 - COUNT( * ) + - ( - 21 ) + - ( + 73 ) * 38 ) * + + ( + 69 ) * - + 56 + + + ( 93 ) * + + 73, - 10 ) AS col0
----
30
-36

skipif mysql # not compatible
query II rowsort label-7910
SELECT 30 AS col0, + COALESCE ( - 36, ( + + 69 ) + + COALESCE ( - 83, - - 99 ) + COUNT ( * ) + COALESCE ( 12, - + ( - + 45 ) * + 43 - COUNT ( * ) + - ( - 21 ) + - ( + 73 ) * 38 ) * + + ( + 69 ) * - + 56 + + + ( 93 ) * + + 73, - 10 ) AS col0
----
30
-36

query II rowsort
SELECT - 83, 97 AS col0
----
-83
97

query I rowsort
SELECT ALL 36 + - 29 AS col0
----
7

query I rowsort
SELECT 8 * + 7
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT DISTINCT MIN( 3 ) + 51 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-7914
SELECT DISTINCT MIN ( 3 ) + 51 AS col0
----
54

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

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

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

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

query I rowsort
SELECT DISTINCT - 92 * 39 + - 10 AS col0
----
-3598

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7918
SELECT ALL 58 * - CAST( - 51 AS SIGNED )
----
2958

skipif mysql # not compatible
query I rowsort label-7918
SELECT ALL 58 * - CAST ( - 51 AS INTEGER )
----
2958

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT ALL + 59 * - 39 * + COUNT( * ) + - + 83
----
-2384

skipif mysql # not compatible
query I rowsort label-7920
SELECT ALL + 59 * - 39 * + COUNT ( * ) + - + 83
----
-2384

query I rowsort
SELECT - 27 * - + 27 - 96
----
633

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7922
SELECT 42 DIV 58 - SUM( NULLIF ( - 91, + 17 + 84 ) ), NULLIF ( - - CASE ( 71 ) WHEN + COUNT( * ) * - 9 * + 18 - - - COUNT( * ) - + 19 + + - 81 * - ( - COUNT( * ) ) * 83 * COUNT( ALL - - 69 ) THEN 46 WHEN - - SUM( DISTINCT - 1 ) * - + 60 THEN COUNT( * ) END, COALESCE ( 85, + 57 ) + + 73 ) AS col1
----
91
NULL

skipif mysql # not compatible
query II rowsort label-7922
SELECT 42 / 58 - SUM ( NULLIF ( - 91, + 17 + 84 ) ), NULLIF ( - - CASE ( 71 ) WHEN + COUNT ( * ) * - 9 * + 18 - - - COUNT ( * ) - + 19 + + - 81 * - ( - COUNT ( * ) ) * 83 * COUNT ( ALL - - 69 ) THEN 46 WHEN - - SUM ( DISTINCT - 1 ) * - + 60 THEN COUNT ( * ) END, COALESCE ( 85, + 57 ) + + 73 ) AS col1
----
91
NULL

query I rowsort
SELECT ( - 54 ) * 69
----
-3726

onlyif mysql # DIV for integer division: 
query II rowsort label-7924
SELECT 78 DIV 30 * - 19 * - - 90 AS col0, 71
----
-3420
71

skipif mysql # not compatible
query II rowsort label-7924
SELECT 78 / 30 * - 19 * - - 90 AS col0, 71
----
-3420
71

query III rowsort
SELECT - 21 AS col1, + 23 AS col1, + + 13 + - + NULLIF ( + 84, + ( + 58 ) ) AS col1
----
-21
23
-71

query I rowsort
SELECT ALL + 73 * - 60 - 15 + + 94 * - + 20 + 62 * - 59 + 4 col0
----
-9929

query I rowsort
SELECT DISTINCT + 99 * 78 AS col1
----
7722

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT + 56 * + 59 + - - COUNT( * ) * + - 75 + MIN( DISTINCT - 29 ) * - COUNT( * ) * + + CASE 50 WHEN + 5 - + MAX( - - 91 ) THEN - + 95 WHEN + - 0 THEN NULL END / + COUNT( * ) + + 13 * + + CASE - - NULLIF ( - ( - 87 ), - 13 / 9 + - 77 + + 38 ) WHEN + + COALESCE ( + + COUNT( * ), - 3 * - - 55 ) THEN + 67 * + + 38 * + 84 * 79 WHEN 71 * - 86 + - 87 + - 10 THEN - 13 - 96 END * 28 - - 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7928
SELECT + 56 * + 59 + - - COUNT ( * ) * + - 75 + MIN ( DISTINCT - 29 ) * - COUNT ( * ) * + + CASE 50 WHEN + 5 - + MAX ( - - 91 ) THEN - + 95 WHEN + - 0 THEN NULL END / + COUNT ( * ) + + 13 * + + CASE - - NULLIF ( - ( - 87 ), - 13 / 9 + - 77 + + 38 ) WHEN + + COALESCE ( + + COUNT ( * ), - 3 * - - 55 ) THEN + 67 * + + 38 * + 84 * 79 WHEN 71 * - 86 + - 87 + - 10 THEN - 13 - 96 END * 28 - - 36 AS col2
----
NULL

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

query II rowsort
SELECT + - 36, + 73 * - 84 * - + ( + ( 2 ) ) AS col2
----
-36
12264

onlyif mysql # aggregate syntax: 
query II rowsort label-7931
SELECT + 22 * - 71, - 56 * CASE - - 31 WHEN - ( 5 ) THEN 25 / - 27 * + NULLIF ( + + 45, - 69 - + 40 + + + 40 + 38 ) * - 0 + + 28 * + 26 * + + 32 * - - COUNT( * ) * + + COUNT( DISTINCT - + 20 ) WHEN + 8 THEN - 54 + 7 END + + 86 AS col2
----
-1562
NULL

skipif mysql # not compatible
query II rowsort label-7931
SELECT + 22 * - 71, - 56 * CASE - - 31 WHEN - ( 5 ) THEN 25 / - 27 * + NULLIF ( + + 45, - 69 - + 40 + + + 40 + 38 ) * - 0 + + 28 * + 26 * + + 32 * - - COUNT ( * ) * + + COUNT ( DISTINCT - + 20 ) WHEN + 8 THEN - 54 + 7 END + + 86 AS col2
----
-1562
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT + SUM( 32 ) * - 77 + - 42 + - - 20
----
-2486

skipif mysql # not compatible
query I rowsort label-7932
SELECT + SUM ( 32 ) * - 77 + - 42 + - - 20
----
-2486

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

skipif mysql # not compatible
query I rowsort label-7933
SELECT COUNT ( * ) / 44 + + COUNT ( * ) AS col0
----
1

query II rowsort
SELECT ALL - 69 AS col1, 99 * - - 87
----
-69
8613

onlyif mysql # aggregate syntax: 
query II rowsort label-7935
SELECT 28 + + 14, COUNT( * ) col0
----
42
1

skipif mysql # not compatible
query II rowsort label-7935
SELECT 28 + + 14, COUNT ( * ) col0
----
42
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7936
SELECT 14 * - 20 * + COUNT( * ) - + 0 + + 7 - COUNT( * ) - - 9 * COUNT( 64 ) AS col2, - MIN( ALL + 99 ) + + 81 AS col1
----
-265
-18

skipif mysql # not compatible
query II rowsort label-7936
SELECT 14 * - 20 * + COUNT ( * ) - + 0 + + 7 - COUNT ( * ) - - 9 * COUNT ( 64 ) AS col2, - MIN ( ALL + 99 ) + + 81 AS col1
----
-265
-18

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

skipif mysql # not compatible
query II rowsort label-7937
SELECT - 62 AS col1, COUNT ( * ) AS col1
----
-62
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7938
SELECT - + CASE + 94 WHEN + - 28 + 81 / + 6 THEN + + CAST( NULL AS SIGNED ) * - ( 38 ) - + MIN( DISTINCT - + 88 ) WHEN + - 90 THEN 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7938
SELECT - + CASE + 94 WHEN + - 28 + 81 / + 6 THEN + + CAST ( NULL AS INTEGER ) * - ( 38 ) - + MIN ( DISTINCT - + 88 ) WHEN + - 90 THEN 90 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT ALL - - 46 + + - COUNT( * ) + - 63 * + 45 * + 16
----
-45315

skipif mysql # not compatible
query I rowsort label-7939
SELECT ALL - - 46 + + - COUNT ( * ) + - 63 * + 45 * + 16
----
-45315

query I rowsort
SELECT DISTINCT - 31 + 92 AS col1
----
61

query I rowsort
SELECT ALL + 73 * - - 20
----
1460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7942
SELECT - 3 / + + 24 + CAST( NULL AS SIGNED ) * ( + 6 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7942
SELECT - 3 / + + 24 + CAST ( NULL AS INTEGER ) * ( + 6 ) AS col1
----
NULL

query I rowsort
SELECT - 8 + + 59 + - + 0 AS col1
----
51

query II rowsort
SELECT ALL - 17 + + + 52 - - 31 AS col1, 30 AS col2
----
66
30

query II rowsort
SELECT - COALESCE ( + 3, + 4 + + 93, ( - 17 ) * - 55 ) AS col1, 29 * 11
----
-3
319

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT - 13 + + COUNT( * ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-7946
SELECT - 13 + + COUNT ( * ) AS col0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7947
SELECT ALL CASE 12 WHEN - - 59 * 82 * + + 97 + CAST( NULL AS SIGNED ) + - + COALESCE ( 60, - - CASE 75 WHEN - + COUNT( * ) THEN NULL WHEN 0 + - COUNT( * ) + + - 45 + - + 10 + ( + 67 ) + - 21 * + 74 * - COUNT( * ) THEN + 87 * 16 END, - 43 ) * - ( 74 ) * + 48 - - - COUNT( * ) - + 66 + - COUNT( * ) THEN ( AVG ( DISTINCT 38 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7947
SELECT ALL CASE 12 WHEN - - 59 * 82 * + + 97 + CAST ( NULL AS INTEGER ) + - + COALESCE ( 60, - - CASE 75 WHEN - + COUNT ( * ) THEN NULL WHEN 0 + - COUNT ( * ) + + - 45 + - + 10 + ( + 67 ) + - 21 * + 74 * - COUNT ( * ) THEN + 87 * 16 END, - 43 ) * - ( 74 ) * + 48 - - - COUNT ( * ) - + 66 + - COUNT ( * ) THEN ( AVG ( DISTINCT 38 ) ) END
----
NULL

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

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

query II rowsort
SELECT + 24 * 48 * - 64 * 4 * + 94 * - CASE + 61 WHEN 40 THEN NULL ELSE - ( - + 75 ) END AS col0, - 55 + 46 * 62 AS col1
----
2079129600
2797

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7950
SELECT DISTINCT - SUM( DISTINCT - 32 ) + - 62 + - + COUNT( * ) + - 59 + - 13 + MAX( ALL - 47 ) * CAST( - 54 AS SIGNED ) AS col1
----
2435

skipif mysql # not compatible
query I rowsort label-7950
SELECT DISTINCT - SUM ( DISTINCT - 32 ) + - 62 + - + COUNT ( * ) + - 59 + - 13 + MAX ( ALL - 47 ) * CAST ( - 54 AS INTEGER ) AS col1
----
2435

onlyif mysql # aggregate syntax: 
query II rowsort label-7951
SELECT ALL 82 * + 27, COUNT( 80 ) * + 32 AS col2
----
2214
32

skipif mysql # not compatible
query II rowsort label-7951
SELECT ALL 82 * + 27, COUNT ( 80 ) * + 32 AS col2
----
2214
32

query II rowsort
SELECT ALL COALESCE ( + 0, 79 ), - 80 AS col0
----
0
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7953
SELECT DISTINCT 17 * - 95 * - CAST( - 27 AS SIGNED )
----
-43605

skipif mysql # not compatible
query I rowsort label-7953
SELECT DISTINCT 17 * - 95 * - CAST ( - 27 AS INTEGER )
----
-43605

query I rowsort
SELECT ALL + 55 - - + 60 AS col1
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7955
SELECT - 52 + + - 65 col1, - 15 + COUNT( * ) + + NULLIF ( - 25, - + CAST( NULL AS SIGNED ) * - ( - COUNT( * ) ) + COALESCE ( + MIN( DISTINCT + 86 ), - 59, + - COUNT( * ) + - 9 * - CAST( NULL AS SIGNED ) ) ) AS col1
----
-117
-39

skipif mysql # not compatible
query II rowsort label-7955
SELECT - 52 + + - 65 col1, - 15 + COUNT ( * ) + + NULLIF ( - 25, - + CAST ( NULL AS INTEGER ) * - ( - COUNT ( * ) ) + COALESCE ( + MIN ( DISTINCT + 86 ), - 59, + - COUNT ( * ) + - 9 * - CAST ( NULL AS INTEGER ) ) ) AS col1
----
-117
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7956
SELECT 46 DIV - MIN( + 8 ) + + - 44 + - 19 + - + 42
----
-110

skipif mysql # not compatible
query I rowsort label-7956
SELECT 46 / - MIN ( + 8 ) + + - 44 + - 19 + - + 42
----
-110

query I rowsort
SELECT 10 * - + 51 - - 54
----
-456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7958
SELECT + CASE - 59 WHEN - 98 THEN - MIN( DISTINCT + 51 ) WHEN - CAST( + 70 AS SIGNED ) THEN NULL ELSE NULL END * + 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7958
SELECT + CASE - 59 WHEN - 98 THEN - MIN ( DISTINCT + 51 ) WHEN - CAST ( + 70 AS INTEGER ) THEN NULL ELSE NULL END * + 18 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7959
SELECT - COUNT( * ) + 14 * - + 47 AS col1
----
-659

skipif mysql # not compatible
query I rowsort label-7959
SELECT - COUNT ( * ) + 14 * - + 47 AS col1
----
-659

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7960
SELECT + CASE 2 WHEN + CAST( 45 AS DECIMAL ) * + AVG ( DISTINCT + + 47 ) * - 26 THEN COUNT( * ) * - 37 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7960
SELECT + CASE 2 WHEN + CAST ( 45 AS REAL ) * + AVG ( DISTINCT + + 47 ) * - 26 THEN COUNT ( * ) * - 37 END AS col2
----
NULL

query II rowsort
SELECT DISTINCT + 38 * - 0, 67 AS col1
----
0
67

query I rowsort
SELECT + + 0 * ( + - 4 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7963
SELECT ALL 79 DIV - COUNT( * ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-7963
SELECT ALL 79 / - COUNT ( * ) AS col0
----
-79

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

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

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

skipif mysql # not compatible
query I rowsort label-7965
SELECT - 15 / 86 + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7966
SELECT - 6 DIV 38 * COUNT( * ) * - COUNT( * ) * + + 60 * - - COUNT( * ) DIV - 79 * + 45 * - 60
----
0

skipif mysql # not compatible
query I rowsort label-7966
SELECT - 6 / 38 * COUNT ( * ) * - COUNT ( * ) * + + 60 * - - COUNT ( * ) / - 79 * + 45 * - 60
----
0

query I rowsort
SELECT + 76 + 77 + 59
----
212

onlyif mysql # aggregate syntax: 
query I rowsort label-7968
SELECT + 89 * - - CASE WHEN NOT NULL >= ( NULL ) THEN - 71 ELSE - 12 END * - 10 + 54 * - 21 + + MAX( DISTINCT - 86 ) AS col0
----
9460

skipif mysql # not compatible
query I rowsort label-7968
SELECT + 89 * - - CASE WHEN NOT NULL >= ( NULL ) THEN - 71 ELSE - 12 END * - 10 + 54 * - 21 + + MAX ( DISTINCT - 86 ) AS col0
----
9460

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT ALL + MIN( ALL 16 )
----
16

skipif mysql # not compatible
query I rowsort label-7969
SELECT ALL + MIN ( ALL 16 )
----
16

query I rowsort
SELECT + CASE + + 29 WHEN - 22 THEN NULL ELSE 8 END
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT + + COUNT( * ) + COUNT( * ) + - 78 AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-7971
SELECT + + COUNT ( * ) + COUNT ( * ) + - 78 AS col0
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7972
SELECT DISTINCT + COUNT( * ) * + - 79 DIV - 27
----
2

skipif mysql # not compatible
query I rowsort label-7972
SELECT DISTINCT + COUNT ( * ) * + - 79 / - 27
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT ALL 39 * 67 * + 99 + + 42 + NULLIF ( COUNT( * ), AVG ( + - 59 ) ) + - 24 AS col0
----
258706

skipif mysql # not compatible
query I rowsort label-7973
SELECT ALL 39 * 67 * + 99 + + 42 + NULLIF ( COUNT ( * ), AVG ( + - 59 ) ) + - 24 AS col0
----
258706

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7974
SELECT DISTINCT 53 * COUNT( DISTINCT + 89 ), COUNT( * ) DIV - + 58 col1
----
53
0

skipif mysql # not compatible
query II rowsort label-7974
SELECT DISTINCT 53 * COUNT ( DISTINCT + 89 ), COUNT ( * ) / - + 58 col1
----
53
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7975
SELECT + 92 * + 24, 3 * + - 95 + 37 + + - 53 DIV 3 * - - 90 AS col2
----
2208
-1778

skipif mysql # not compatible
query II rowsort label-7975
SELECT + 92 * + 24, 3 * + - 95 + 37 + + - 53 / 3 * - - 90 AS col2
----
2208
-1778

query I rowsort
SELECT + 1 * + 87 * ( 71 )
----
6177

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7978
SELECT - COALESCE ( + CAST( COUNT( * ) AS SIGNED ), 39 - 34 ) + CASE WHEN NOT 93 = + 89 THEN + + 47 END
----
46

skipif mysql # not compatible
query I rowsort label-7978
SELECT - COALESCE ( + CAST ( COUNT ( * ) AS INTEGER ), 39 - 34 ) + CASE WHEN NOT 93 = + 89 THEN + + 47 END
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7979
SELECT ALL - CAST( + MIN( + - 66 ) AS SIGNED ) + - + ( ( - AVG ( ALL + - 93 ) ) ) + CAST( NULL AS SIGNED ), - 14 AS col0, - 69 AS col1
----
NULL
-14
-69

skipif mysql # not compatible
query III rowsort label-7979
SELECT ALL - CAST ( + MIN ( + - 66 ) AS INTEGER ) + - + ( ( - AVG ( ALL + - 93 ) ) ) + CAST ( NULL AS INTEGER ), - 14 AS col0, - 69 AS col1
----
NULL
-14
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT ALL ( - NULLIF ( - - 11, 5 ) ) + + 83 + - COUNT( * ) * + - 21 * + + 49 + 90 * + - 98 col2
----
-7719

skipif mysql # not compatible
query I rowsort label-7980
SELECT ALL ( - NULLIF ( - - 11, 5 ) ) + + 83 + - COUNT ( * ) * + - 21 * + + 49 + 90 * + - 98 col2
----
-7719

query I rowsort
SELECT ALL + 14 * 5
----
70

query I rowsort
SELECT + 35 * + + 10 AS col1
----
350

query I rowsort
SELECT - 41 * + - 40
----
1640

query I rowsort
SELECT - 11 + - 52
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7985
SELECT 36 AS col2, + 11 + - 28 + + CAST( NULL AS SIGNED ) AS col2
----
36
NULL

skipif mysql # not compatible
query II rowsort label-7985
SELECT 36 AS col2, + 11 + - 28 + + CAST ( NULL AS INTEGER ) AS col2
----
36
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7986
SELECT 6 AS col0, COALESCE ( 87, + + CAST( - COUNT( * ) AS SIGNED ) )
----
6
87

skipif mysql # not compatible
query II rowsort label-7986
SELECT 6 AS col0, COALESCE ( 87, + + CAST ( - COUNT ( * ) AS INTEGER ) )
----
6
87

query I rowsort
SELECT DISTINCT + 42 - - - 24
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-7988
SELECT - 5 * - 6 DIV - + ( + 50 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7988
SELECT - 5 * - 6 / - + ( + 50 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT - COUNT( - - 21 ) * + + 31 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-7989
SELECT - COUNT ( - - 21 ) * + + 31 AS col1
----
-31

query II rowsort
SELECT DISTINCT 68 * - + 77 * 59 AS col2, 92 AS col2
----
-308924
92

query I rowsort
SELECT DISTINCT + + 42 * - - 33 AS col0
----
1386

onlyif mysql # DIV for integer division: 
query I rowsort label-7992
SELECT ALL - COALESCE ( + 65, + + 79 ) DIV - - 79 + + + 83 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-7992
SELECT ALL - COALESCE ( + 65, + + 79 ) / - - 79 + + + 83 AS col0
----
83

query I rowsort
SELECT + 13 * + + 32 * - 24 * - - 33 col1
----
-329472

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT ALL SUM( ALL + 96 ) * + 57 + + + 52 + + + 93 * 86
----
13522

skipif mysql # not compatible
query I rowsort label-7994
SELECT ALL SUM ( ALL + 96 ) * + 57 + + + 52 + + + 93 * 86
----
13522

onlyif mysql # DIV for integer division: 
query I rowsort label-7995
SELECT 58 DIV - 77
----
0

skipif mysql # not compatible
query I rowsort label-7995
SELECT 58 / - 77
----
0

query I rowsort
SELECT ALL - - 0 + + 40 * 52
----
2080

onlyif mysql # aggregate syntax: 
query I rowsort label-7997
SELECT - 63 - + 25 * + MAX( 78 )
----
-2013

skipif mysql # not compatible
query I rowsort label-7997
SELECT - 63 - + 25 * + MAX ( 78 )
----
-2013

query I rowsort
SELECT DISTINCT - - COALESCE ( - 53, + 58 )
----
-53

query I rowsort
SELECT DISTINCT + 15 + + 50 AS col0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8000
SELECT CAST( + 29 AS SIGNED ) * + 61, 92 col1
----
1769
92

skipif mysql # not compatible
query II rowsort label-8000
SELECT CAST ( + 29 AS INTEGER ) * + 61, 92 col1
----
1769
92

query II rowsort
SELECT + 59 col2, 72 + + 48
----
59
120

onlyif mysql # DIV for integer division: 
query I rowsort label-8002
SELECT DISTINCT - 45 DIV + 29 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8002
SELECT DISTINCT - 45 / + 29 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8003
SELECT DISTINCT ( 8 ) - - + COALESCE ( + - CAST( - 64 AS SIGNED ), + - 54 ) * + 92 + + ( + COUNT( + 61 ) )
----
5897

skipif mysql # not compatible
query I rowsort label-8003
SELECT DISTINCT ( 8 ) - - + COALESCE ( + - CAST ( - 64 AS INTEGER ), + - 54 ) * + 92 + + ( + COUNT ( + 61 ) )
----
5897

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8004
SELECT DISTINCT CAST( + COALESCE ( - 89, + 42 + - - 15 ) AS SIGNED ) * COALESCE ( - SUM( DISTINCT 13 ), + COUNT( DISTINCT - 63 ) DIV - 80 + - ( - 14 ) + + 22 + + + 15 - + - 54 - - + 99 + 3 ) DIV - + COUNT( * ) + + 45 AS col0
----
-1112

skipif mysql # not compatible
query I rowsort label-8004
SELECT DISTINCT CAST ( + COALESCE ( - 89, + 42 + - - 15 ) AS INTEGER ) * COALESCE ( - SUM ( DISTINCT 13 ), + COUNT ( DISTINCT - 63 ) / - 80 + - ( - 14 ) + + 22 + + + 15 - + - 54 - - + 99 + 3 ) / - + COUNT ( * ) + + 45 AS col0
----
-1112

query I rowsort
SELECT 72 * 46
----
3312

query I rowsort
SELECT 42 + 98 AS col1
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8007
SELECT 81 + - - 44 DIV + + MIN( ALL CAST( - - 86 AS SIGNED ) ) * + COALESCE ( + 47, + COUNT( * ) )
----
81

skipif mysql # not compatible
query I rowsort label-8007
SELECT 81 + - - 44 / + + MIN ( ALL CAST ( - - 86 AS INTEGER ) ) * + COALESCE ( + 47, + COUNT ( * ) )
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-8008
SELECT DISTINCT 5 DIV 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8008
SELECT DISTINCT 5 / 86 AS col1
----
0

query I rowsort
SELECT 77 + - 73 * - 48
----
3581

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8011
SELECT 42 + + + CAST( - NULLIF ( 98, 50 DIV 82 ) AS SIGNED ) + - - NULLIF ( - + 42, - ( COUNT( * ) ) ) + - 86 * - 61 - + + COUNT( DISTINCT - 75 ) * - 26 * + COALESCE ( + - 94, - - 86 DIV - 65 DIV - 57, NULLIF ( NULLIF ( - COUNT( * ), + + 26 ), 18 ) ) DIV - COUNT( * ) + + + COALESCE ( 22, - + CASE + AVG ( ALL 75 ) WHEN + 63 + + - 44 THEN NULL ELSE COUNT( * ) DIV COALESCE ( + - 74, + + 45 * - - COUNT( * ) ) + - ( + COUNT( * ) ) * 24 END ) * - COUNT( - 33 ) AS col1
----
7570

skipif mysql # not compatible
query I rowsort label-8011
SELECT 42 + + + CAST ( - NULLIF ( 98, 50 / 82 ) AS INTEGER ) + - - NULLIF ( - + 42, - ( COUNT ( * ) ) ) + - 86 * - 61 - + + COUNT ( DISTINCT - 75 ) * - 26 * + COALESCE ( + - 94, - - 86 / - 65 / - 57, NULLIF ( NULLIF ( - COUNT ( * ), + + 26 ), 18 ) ) / - COUNT ( * ) + + + COALESCE ( 22, - + CASE + AVG ( ALL 75 ) WHEN + 63 + + - 44 THEN NULL ELSE COUNT ( * ) / COALESCE ( + - 74, + + 45 * - - COUNT ( * ) ) + - ( + COUNT ( * ) ) * 24 END ) * - COUNT ( - 33 ) AS col1
----
7570

query I rowsort
SELECT + 44 * - 82 AS col1
----
-3608

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8013
SELECT - 43 DIV SUM( 98 ) + 13 + + - 9, COALESCE ( 29, 74 * - 76 + 28 ) AS col2
----
4
29

skipif mysql # not compatible
query II rowsort label-8013
SELECT - 43 / SUM ( 98 ) + 13 + + - 9, COALESCE ( 29, 74 * - 76 + 28 ) AS col2
----
4
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8014
SELECT NULLIF ( - - 9, + - COUNT( * ) + + + 37 * + 94 + - - 41 ) * + + ( - 45 ) * - - COUNT( + NULLIF ( + - 29, - 9 ) ) / + 15 - 75 + + 23 + + 15 * - COUNT( * ) - - - CAST( NULL AS SIGNED ) - - MIN( + + 36 ) col2, NULLIF ( - + 45, - 55 * + COUNT( * ) ) * ( + COUNT( * ) ) + 9
----
NULL
-36

skipif mysql # not compatible
query II rowsort label-8014
SELECT NULLIF ( - - 9, + - COUNT ( * ) + + + 37 * + 94 + - - 41 ) * + + ( - 45 ) * - - COUNT ( + NULLIF ( + - 29, - 9 ) ) / + 15 - 75 + + 23 + + 15 * - COUNT ( * ) - - - CAST ( NULL AS INTEGER ) - - MIN ( + + 36 ) col2, NULLIF ( - + 45, - 55 * + COUNT ( * ) ) * ( + COUNT ( * ) ) + 9
----
NULL
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8015
SELECT ALL - 96 + + ( - - 92 ) - - + CASE 75 WHEN 81 / + 67 - + 36 THEN + + 65 WHEN - + 94 THEN + 18 + + 29 ELSE CAST( NULL AS SIGNED ) - - + ( - 43 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8015
SELECT ALL - 96 + + ( - - 92 ) - - + CASE 75 WHEN 81 / + 67 - + 36 THEN + + 65 WHEN - + 94 THEN + 18 + + 29 ELSE CAST ( NULL AS INTEGER ) - - + ( - 43 ) END
----
NULL

query I rowsort
SELECT ALL - 46 + + - 89 - - 77 * 83 col0
----
6256

query I rowsort
SELECT + 33 + 50 + + - 54 AS col2
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8018
SELECT - AVG ( DISTINCT 84 ) * 58 + + 10 + + 16 + - 68 * 38 + + COALESCE ( + + AVG ( 12 ), - 18, - 44 * - COUNT( * ) * - COALESCE ( + + 20, + 34, - 34 + - 56 * 21 + + COALESCE ( - + 79, 34 / 42 ) - + 91 * - - 69 ) * - 82 - + NULLIF ( + - 81, 85 + + NULLIF ( + 85, - 33 + 28 + + ( + 15 ) * 30 * - 25 ) ) + + 95, CAST( 17 AS SIGNED ) * + 84 ) * - CASE - COUNT( * ) WHEN - COALESCE ( + COALESCE ( CASE CASE + 43 WHEN - 61 THEN 52 * 55 - + ( + 99 ) END WHEN - 57 THEN 94 * + 91 + + 85 * + 16 END, + NULLIF ( 95, - MAX( - 20 ) ) * - 74 + - 40 ), - COUNT( - 69 ) * 85 ) THEN NULL WHEN 57 THEN + 14 * MAX( 97 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8018
SELECT - AVG ( DISTINCT 84 ) * 58 + + 10 + + 16 + - 68 * 38 + + COALESCE ( + + AVG ( 12 ), - 18, - 44 * - COUNT ( * ) * - COALESCE ( + + 20, + 34, - 34 + - 56 * 21 + + COALESCE ( - + 79, 34 / 42 ) - + 91 * - - 69 ) * - 82 - + NULLIF ( + - 81, 85 + + NULLIF ( + 85, - 33 + 28 + + ( + 15 ) * 30 * - 25 ) ) + + 95, CAST ( 17 AS INTEGER ) * + 84 ) * - CASE - COUNT ( * ) WHEN - COALESCE ( + COALESCE ( CASE CASE + 43 WHEN - 61 THEN 52 * 55 - + ( + 99 ) END WHEN - 57 THEN 94 * + 91 + + 85 * + 16 END, + NULLIF ( 95, - MAX ( - 20 ) ) * - 74 + - 40 ), - COUNT ( - 69 ) * 85 ) THEN NULL WHEN 57 THEN + 14 * MAX ( 97 ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8019
SELECT ALL + SUM( - 96 ) + + CAST( + 36 AS SIGNED ) DIV 59 + COUNT( * ) + + COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-8019
SELECT ALL + SUM ( - 96 ) + + CAST ( + 36 AS INTEGER ) / 59 + COUNT ( * ) + + COUNT ( * )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT ALL - - 72 + - COUNT( * ) + 49 + - 15 + - - 40 - COUNT( + 76 ) * 84
----
61

skipif mysql # not compatible
query I rowsort label-8020
SELECT ALL - - 72 + - COUNT ( * ) + 49 + - 15 + - - 40 - COUNT ( + 76 ) * 84
----
61

query I rowsort
SELECT 83 * 96
----
7968

onlyif mysql # aggregate syntax: 
query II rowsort label-8022
SELECT ALL - MIN( ALL + 0 ) * - 96 * - 95 - + 73 AS col1, ( 18 )
----
-73
18

skipif mysql # not compatible
query II rowsort label-8022
SELECT ALL - MIN ( ALL + 0 ) * - 96 * - 95 - + 73 AS col1, ( 18 )
----
-73
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8023
SELECT ALL - - CASE + COUNT( * ) WHEN + 93 DIV 77 THEN NULL ELSE - - 1 END * - 87 + + 12 AS col1, + 33 AS col0
----
NULL
33

skipif mysql # not compatible
query II rowsort label-8023
SELECT ALL - - CASE + COUNT ( * ) WHEN + 93 / 77 THEN NULL ELSE - - 1 END * - 87 + + 12 AS col1, + 33 AS col0
----
NULL
33

query I rowsort
SELECT ALL - 50 * - ( - 97 )
----
-4850

query I rowsort
SELECT DISTINCT + 92 - + 88 col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT DISTINCT - 41 - - + COUNT( * ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-8026
SELECT DISTINCT - 41 - - + COUNT ( * ) AS col2
----
-40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT DISTINCT 1 - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8028
SELECT DISTINCT 1 - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT 53 + COUNT( * ) + - 63 * + 77
----
-4797

skipif mysql # not compatible
query I rowsort label-8029
SELECT 53 + COUNT ( * ) + - 63 * + 77
----
-4797

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8030
SELECT ALL - CAST( - - 90 AS SIGNED )
----
-90

skipif mysql # not compatible
query I rowsort label-8030
SELECT ALL - CAST ( - - 90 AS INTEGER )
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-8031
SELECT ALL 6 DIV + 6
----
1

skipif mysql # not compatible
query I rowsort label-8031
SELECT ALL 6 / + 6
----
1

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

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

query I rowsort
SELECT ALL 24 * - - 36 AS col0
----
864

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT 52 * - ( - - MIN( DISTINCT 80 ) ) AS col0
----
-4160

skipif mysql # not compatible
query I rowsort label-8034
SELECT 52 * - ( - - MIN ( DISTINCT 80 ) ) AS col0
----
-4160

onlyif mysql # aggregate syntax: 
query II rowsort label-8035
SELECT ALL COUNT( * ) AS col2, - COALESCE ( + + 97, 69 )
----
1
-97

skipif mysql # not compatible
query II rowsort label-8035
SELECT ALL COUNT ( * ) AS col2, - COALESCE ( + + 97, 69 )
----
1
-97

query I rowsort
SELECT ALL 52 * + 20 AS col1
----
1040

onlyif mysql # aggregate syntax: 
query I rowsort label-8037
SELECT ALL 64 * - COUNT( * ) * + ( - - 8 ) AS col1
----
-512

skipif mysql # not compatible
query I rowsort label-8037
SELECT ALL 64 * - COUNT ( * ) * + ( - - 8 ) AS col1
----
-512

query I rowsort
SELECT DISTINCT 23 + - 82 * 96 * - + 87 AS col0
----
684887

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8039
SELECT CASE - 73 WHEN 12 THEN NULL WHEN COALESCE ( - 50, 77 * 84 * + + ( COUNT( * ) ) + + - COUNT( * ) ) + - COUNT( ALL - 34 ) THEN - 16 / ( - 34 ) END - + + 73 - + + CAST( 96 AS SIGNED ) - + CASE + 91 WHEN - 53 THEN - 35 + - 69 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8039
SELECT CASE - 73 WHEN 12 THEN NULL WHEN COALESCE ( - 50, 77 * 84 * + + ( COUNT ( * ) ) + + - COUNT ( * ) ) + - COUNT ( ALL - 34 ) THEN - 16 / ( - 34 ) END - + + 73 - + + CAST ( 96 AS INTEGER ) - + CASE + 91 WHEN - 53 THEN - 35 + - 69 ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8041
SELECT - + 30 + + MIN( - 64 ) + + 41 DIV - - 72 AS col2, 96
----
-94
96

skipif mysql # not compatible
query II rowsort label-8041
SELECT - + 30 + + MIN ( - 64 ) + + 41 / - - 72 AS col2, 96
----
-94
96

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

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

query I rowsort
SELECT DISTINCT 69 + + ( + + 81 ) * - 72
----
-5763

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT DISTINCT - + 49 + + - COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-8044
SELECT DISTINCT - + 49 + + - COUNT ( * )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT CASE - 53 WHEN - ( - + 74 ) THEN NULL WHEN + - ( + - COUNT( * ) ) THEN - + 71 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8045
SELECT CASE - 53 WHEN - ( - + 74 ) THEN NULL WHEN + - ( + - COUNT ( * ) ) THEN - + 71 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8046
SELECT ALL - CAST( NULL AS SIGNED ) / - COALESCE ( + 60, + COUNT( * ) * - 83 - 53 * + 38, + ( - NULLIF ( - + 93, + 23 + 91 ) ) ) * 56
----
NULL

skipif mysql # not compatible
query I rowsort label-8046
SELECT ALL - CAST ( NULL AS INTEGER ) / - COALESCE ( + 60, + COUNT ( * ) * - 83 - 53 * + 38, + ( - NULLIF ( - + 93, + 23 + 91 ) ) ) * 56
----
NULL

query I rowsort
SELECT DISTINCT 96 + 12 * - 92 AS col0
----
-1008

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8049
SELECT + 89 * - MIN( - - CAST( + CASE + - 37 WHEN + 18 + + 5 THEN - ( - - 2 ) / + 72 - - 95 WHEN + 65 / + 76 THEN + 52 * - - 21 END AS SIGNED ) ) - - AVG ( ALL + 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8049
SELECT + 89 * - MIN ( - - CAST ( + CASE + - 37 WHEN + 18 + + 5 THEN - ( - - 2 ) / + 72 - - 95 WHEN + 65 / + 76 THEN + 52 * - - 21 END AS INTEGER ) ) - - AVG ( ALL + 62 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8050
SELECT + MAX( + - 91 ) - + 6 DIV + + 65 * + 75 * + COUNT( * ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-8050
SELECT + MAX ( + - 91 ) - + 6 / + + 65 * + 75 * + COUNT ( * ) AS col0
----
-91

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

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

query I rowsort
SELECT DISTINCT + NULLIF ( - - 56, - NULLIF ( - + 29, - 60 ) * - - 96 - 78 ) AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT + 11 + 24 + NULLIF ( - - COUNT( * ), - COUNT( * ) ) * - 49 + 6
----
-8

skipif mysql # not compatible
query I rowsort label-8053
SELECT + 11 + 24 + NULLIF ( - - COUNT ( * ), - COUNT ( * ) ) * - 49 + 6
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8054
SELECT - - MAX( ALL - 0 ) * - ( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8054
SELECT - - MAX ( ALL - 0 ) * - ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - - 78 * - 75 + 42 - + 62
----
-5870

onlyif mysql # aggregate syntax: 
query II rowsort label-8056
SELECT ALL + - COUNT( * ) AS col0, CASE - + 88 WHEN ( - 64 ) - + 89 THEN - 61 WHEN SUM( 78 ) THEN NULL WHEN AVG ( 86 ) * + + 17 - - 56 THEN + 52 ELSE NULL END * + 57 + 22 + + COALESCE ( 79, - 99, + 8 ) / + ( + - 1 ) + 0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8056
SELECT ALL + - COUNT ( * ) AS col0, CASE - + 88 WHEN ( - 64 ) - + 89 THEN - 61 WHEN SUM ( 78 ) THEN NULL WHEN AVG ( 86 ) * + + 17 - - 56 THEN + 52 ELSE NULL END * + 57 + 22 + + COALESCE ( 79, - 99, + 8 ) / + ( + - 1 ) + 0
----
-1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8057
SELECT DISTINCT + 79 AS col2, 54 * + 35 DIV + COUNT( * ) AS col1
----
79
1890

skipif mysql # not compatible
query II rowsort label-8057
SELECT DISTINCT + 79 AS col2, 54 * + 35 / + COUNT ( * ) AS col1
----
79
1890

onlyif mysql # aggregate syntax: 
query II rowsort label-8058
SELECT + ( - COUNT( * ) ) AS col2, 6 * + 39 * + - COALESCE ( - COUNT( * ), + - 77 - 91 ) AS col0
----
-1
234

skipif mysql # not compatible
query II rowsort label-8058
SELECT + ( - COUNT ( * ) ) AS col2, 6 * + 39 * + - COALESCE ( - COUNT ( * ), + - 77 - 91 ) AS col0
----
-1
234

query I rowsort
SELECT NULLIF ( 7, 85 )
----
7

query I rowsort
SELECT 91 * 48 + 76 AS col1
----
4444

query I rowsort
SELECT - 42 * - NULLIF ( ( 14 ), 1 )
----
588

onlyif mysql # aggregate syntax: 
query II rowsort label-8062
SELECT + 84 AS col0, COALESCE ( - 72, 39 * - - COUNT( * ) + COUNT( * ) + - 18 * 21 ) col0
----
84
-72

skipif mysql # not compatible
query II rowsort label-8062
SELECT + 84 AS col0, COALESCE ( - 72, 39 * - - COUNT ( * ) + COUNT ( * ) + - 18 * 21 ) col0
----
84
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT - COUNT( * ) + - AVG ( ALL - CASE 90 WHEN + 58 THEN + 10 * 99 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8063
SELECT - COUNT ( * ) + - AVG ( ALL - CASE 90 WHEN + 58 THEN + 10 * 99 END )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8064
SELECT + SUM ( - + 84 )
----
-84

query I rowsort
SELECT ALL - 1 * 13 * - 33 col0
----
429

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

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

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

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

query I rowsort
SELECT - 6 * + + 69 * 67 col0
----
-27738

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8069
SELECT - CASE - + 53 WHEN + - 82 + - SUM( + - CAST( + 41 AS SIGNED ) ) * 24 THEN - 73 + 80 WHEN - + 18 THEN - 9 END + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-8069
SELECT - CASE - + 53 WHEN + - 82 + - SUM ( + - CAST ( + 41 AS INTEGER ) ) * 24 THEN - 73 + 80 WHEN - + 18 THEN - 9 END + 9
----
NULL

query I rowsort
SELECT ALL + ( - NULLIF ( + - 6, - 71 + + 53 ) ) AS col2
----
6

query I rowsort
SELECT DISTINCT - 10 * 28 AS col0
----
-280

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT ALL COUNT( ALL - + 27 ) * SUM( 40 ) + + 90 AS col1
----
130

skipif mysql # not compatible
query I rowsort label-8072
SELECT ALL COUNT ( ALL - + 27 ) * SUM ( 40 ) + + 90 AS col1
----
130

query I rowsort
SELECT ALL + 92 * - 42
----
-3864

query I rowsort
SELECT DISTINCT - 38 + + + 7 + - 40
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8075
SELECT DISTINCT + 83 + + 97 + + - 85 - + COALESCE ( - + 39, - + CASE 98 WHEN + AVG ( + - 89 ) - - AVG ( ALL 86 ) * + 93 - + 67 THEN + COUNT( * ) DIV 50 * ( + - 27 ) ELSE - + ( 10 ) + - + 56 - 5 * 74 END ) * + 51 - - 49
----
2133

skipif mysql # not compatible
query I rowsort label-8075
SELECT DISTINCT + 83 + + 97 + + - 85 - + COALESCE ( - + 39, - + CASE 98 WHEN + AVG ( + - 89 ) - - AVG ( ALL 86 ) * + 93 - + 67 THEN + COUNT ( * ) / 50 * ( + - 27 ) ELSE - + ( 10 ) + - + 56 - 5 * 74 END ) * + 51 - - 49
----
2133

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT ALL + 65 + + 7 + + - 2 * - ( + 41 ) + - COUNT( * ) AS col0
----
153

skipif mysql # not compatible
query I rowsort label-8077
SELECT ALL + 65 + + 7 + + - 2 * - ( + 41 ) + - COUNT ( * ) AS col0
----
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8078
SELECT - NULLIF ( - + CAST( NULL AS SIGNED ), - COUNT( * ) ) + - 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8078
SELECT - NULLIF ( - + CAST ( NULL AS INTEGER ), - COUNT ( * ) ) + - 24 AS col1
----
NULL

query I rowsort
SELECT - NULLIF ( + 81, - + 71 ) AS col1
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-8080
SELECT - 70 * 17 AS col2, COUNT( * )
----
-1190
1

skipif mysql # not compatible
query II rowsort label-8080
SELECT - 70 * 17 AS col2, COUNT ( * )
----
-1190
1

query I rowsort
SELECT + - 1 + - 61 + 64 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT ALL 19 + + COUNT( * ) * 49
----
68

skipif mysql # not compatible
query I rowsort label-8082
SELECT ALL 19 + + COUNT ( * ) * 49
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT + COUNT( * ) + 84 - - - 39 * + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-8083
SELECT + COUNT ( * ) + 84 - - - 39 * + COUNT ( * )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT DISTINCT - MIN( ALL 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-8084
SELECT DISTINCT - MIN ( ALL 47 )
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8085
SELECT DISTINCT + CASE + CAST( NULL AS SIGNED ) WHEN COUNT( * ) THEN - 33 + + COUNT( + 82 ) + - CASE - 23 WHEN - 2 + - 33 + 79 THEN NULL WHEN + COUNT( * ) * + 63 THEN 74 ELSE NULL END + - 49 + - AVG ( ALL + + 68 ) END * - + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-8085
SELECT DISTINCT + CASE + CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) THEN - 33 + + COUNT ( + 82 ) + - CASE - 23 WHEN - 2 + - 33 + 79 THEN NULL WHEN + COUNT ( * ) * + 63 THEN 74 ELSE NULL END + - 49 + - AVG ( ALL + + 68 ) END * - + 35
----
NULL

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

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

query II rowsort
SELECT - 32, - 8 AS col0
----
-32
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT + COUNT( * ) + - 35 + - 75 * COUNT( * )
----
-109

skipif mysql # not compatible
query I rowsort label-8088
SELECT + COUNT ( * ) + - 35 + - 75 * COUNT ( * )
----
-109

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8090
SELECT + - 63 + - CASE - 63 WHEN + SUM( ALL - CAST( - 83 AS SIGNED ) ) THEN - + 51 WHEN - - 2 THEN NULL END * + 67 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8090
SELECT + - 63 + - CASE - 63 WHEN + SUM ( ALL - CAST ( - 83 AS INTEGER ) ) THEN - + 51 WHEN - - 2 THEN NULL END * + 67 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT + - SUM( + - 59 ) - 60 col0
----
-1

skipif mysql # not compatible
query I rowsort label-8091
SELECT + - SUM ( + - 59 ) - 60 col0
----
-1

query I rowsort
SELECT + + ( + COALESCE ( 43, - 63 ) ) + + 27 AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT - CASE - - 70 WHEN ( 94 ) / + - COUNT( * ) * COUNT( * ) + - - 1 - - ( + CASE + 97 WHEN 69 / - COUNT( * ) THEN + - 54 ELSE NULL END ) / + 73 * + COALESCE ( + 22, + - 95, - 64 ) + + ( - 50 ) + + + 14 THEN - ( + + CASE + 57 WHEN - - 17 * - 44 + + CASE 14 WHEN + COUNT( * ) * - COUNT( * ) + - 84 + + 31 THEN - + 98 + + COUNT( * ) * 10 * 66 END THEN NULL WHEN - + 45 THEN - 61 WHEN + 50 THEN NULL ELSE NULL END ) * - + 51 + - 8 + + 90 * - 43 WHEN + 85 THEN COUNT( * ) + + 86 * COUNT( * ) WHEN - 71 THEN NULL END * - CASE + 13 WHEN + 44 THEN 51 + 81 ELSE 34 END + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-8093
SELECT - CASE - - 70 WHEN ( 94 ) / + - COUNT ( * ) * COUNT ( * ) + - - 1 - - ( + CASE + 97 WHEN 69 / - COUNT ( * ) THEN + - 54 ELSE NULL END ) / + 73 * + COALESCE ( + 22, + - 95, - 64 ) + + ( - 50 ) + + + 14 THEN - ( + + CASE + 57 WHEN - - 17 * - 44 + + CASE 14 WHEN + COUNT ( * ) * - COUNT ( * ) + - 84 + + 31 THEN - + 98 + + COUNT ( * ) * 10 * 66 END THEN NULL WHEN - + 45 THEN - 61 WHEN + 50 THEN NULL ELSE NULL END ) * - + 51 + - 8 + + 90 * - 43 WHEN + 85 THEN COUNT ( * ) + + 86 * COUNT ( * ) WHEN - 71 THEN NULL END * - CASE + 13 WHEN + 44 THEN 51 + 81 ELSE 34 END + 39
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8094
SELECT DISTINCT 44 DIV + 40
----
1

skipif mysql # not compatible
query I rowsort label-8094
SELECT DISTINCT 44 / + 40
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8096
SELECT ALL + CAST( NULL AS SIGNED ), + 41 AS col0
----
NULL
41

skipif mysql # not compatible
query II rowsort label-8096
SELECT ALL + CAST ( NULL AS INTEGER ), + 41 AS col0
----
NULL
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT + 31 + - 80 + NULLIF ( + 37, - COUNT( * ) ) col1
----
-12

skipif mysql # not compatible
query I rowsort label-8097
SELECT + 31 + - 80 + NULLIF ( + 37, - COUNT ( * ) ) col1
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-8098
SELECT DISTINCT - 0 DIV - - 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8098
SELECT DISTINCT - 0 / - - 89 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8099
SELECT + 35 DIV - 10 + - COUNT( * ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-8099
SELECT + 35 / - 10 + - COUNT ( * ) AS col2
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8100
SELECT CAST( 71 AS SIGNED ) AS col2, - 32
----
71
-32

skipif mysql # not compatible
query II rowsort label-8100
SELECT CAST ( 71 AS INTEGER ) AS col2, - 32
----
71
-32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8101
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - 22 * 48 / + - ( + ( + + 1 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8101
SELECT DISTINCT CAST ( NULL AS REAL ) * - 22 * 48 / + - ( + ( + + 1 ) ) AS col2
----
NULL

query I rowsort
SELECT - 18 + + + 71 * + 31
----
2183

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT + MAX( ALL - 81 ) * - 58 + 43 * + + COUNT( * ) - 63
----
4678

skipif mysql # not compatible
query I rowsort label-8103
SELECT + MAX ( ALL - 81 ) * - 58 + 43 * + + COUNT ( * ) - 63
----
4678

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8104
SELECT DISTINCT MIN( DISTINCT - + NULLIF ( 95, 16 ) ) * - 56 DIV COUNT( * )
----
5320

skipif mysql # not compatible
query I rowsort label-8104
SELECT DISTINCT MIN ( DISTINCT - + NULLIF ( 95, 16 ) ) * - 56 / COUNT ( * )
----
5320

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT ALL MAX( ALL 27 ) * - + COUNT( * ) * - ( 54 ) + + 12
----
1470

skipif mysql # not compatible
query I rowsort label-8105
SELECT ALL MAX ( ALL 27 ) * - + COUNT ( * ) * - ( 54 ) + + 12
----
1470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8106
SELECT ( NULLIF ( + + 44, + CAST( NULL AS SIGNED ) * + - 63 ) ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-8106
SELECT ( NULLIF ( + + 44, + CAST ( NULL AS INTEGER ) * + - 63 ) ) AS col0
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8107
SELECT DISTINCT AVG ( ALL - CAST( NULL AS SIGNED ) ) * + - COALESCE ( COUNT( - 16 ), + 29 * 69 ) + + COALESCE ( - + 72, - 94 * - COALESCE ( - COUNT( * ), - 92 ) + - 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8107
SELECT DISTINCT AVG ( ALL - CAST ( NULL AS INTEGER ) ) * + - COALESCE ( COUNT ( - 16 ), + 29 * 69 ) + + COALESCE ( - + 72, - 94 * - COALESCE ( - COUNT ( * ), - 92 ) + - 91 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8108
SELECT ALL COUNT ( * ) * + 76 + + + COUNT ( * ) AS col1
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8109
SELECT ALL 46 * - 30 * + COUNT( * ) + - COUNT( * ) - 21 + - + 48 DIV - 29
----
-1401

skipif mysql # not compatible
query I rowsort label-8109
SELECT ALL 46 * - 30 * + COUNT ( * ) + - COUNT ( * ) - 21 + - + 48 / - 29
----
-1401

onlyif mysql # DIV for integer division: 
query I rowsort label-8110
SELECT 71 - + 27 * 30 DIV - - 50
----
55

skipif mysql # not compatible
query I rowsort label-8110
SELECT 71 - + 27 * 30 / - - 50
----
55

query II rowsort
SELECT ALL + 61 * + + 83, + 37 AS col2
----
5063
37

onlyif mysql # aggregate syntax: 
query II rowsort label-8112
SELECT DISTINCT - COUNT( * ) + 26 + + 45 * + 40 * - 23, - 93 col1
----
-41375
-93

skipif mysql # not compatible
query II rowsort label-8112
SELECT DISTINCT - COUNT ( * ) + 26 + + 45 * + 40 * - 23, - 93 col1
----
-41375
-93

query II rowsort
SELECT DISTINCT 40 * + - 29 AS col2, 70
----
-1160
70

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8116
SELECT ALL + 23 DIV + 61 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8116
SELECT ALL + 23 / + 61 AS col2
----
0

query I rowsort
SELECT 78 + + 49 + - 87 AS col2
----
40

query I rowsort
SELECT ALL 19 - + 34
----
-15

query II rowsort
SELECT ALL ( - 12 ) * - 80 AS col0, + NULLIF ( 76, - + 52 * - AVG ( ALL - + 22 ) )
----
960
76

query I rowsort
SELECT - 2 * 58 * + 35 * + + 23
----
-93380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8121
SELECT CASE AVG ( + 1 ) WHEN - COUNT( * ) THEN NULL ELSE + 66 DIV - 1 END AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-8121
SELECT CASE AVG ( + 1 ) WHEN - COUNT ( * ) THEN NULL ELSE + 66 / - 1 END AS col0
----
-66

query I rowsort
SELECT ALL 7 + 17 col1
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8123
SELECT COUNT( * ) + - COUNT( * ) - + COALESCE ( + 85, 7 ) DIV ( + 53 ) - + + COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-8123
SELECT COUNT ( * ) + - COUNT ( * ) - + COALESCE ( + 85, 7 ) / ( + 53 ) - + + COUNT ( * ) AS col0
----
-2

query II rowsort
SELECT ALL - 10 AS col2, 47 AS col1
----
-10
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT COUNT( * ) * + 32 + + ( - + ( - - 68 ) ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-8125
SELECT COUNT ( * ) * + 32 + + ( - + ( - - 68 ) ) AS col0
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-8126
SELECT 90, COALESCE ( + 73, + 70 ) + - ( - COUNT( * ) ) col0
----
90
74

skipif mysql # not compatible
query II rowsort label-8126
SELECT 90, COALESCE ( + 73, + 70 ) + - ( - COUNT ( * ) ) col0
----
90
74

query I rowsort
SELECT ALL 77 + + + 85 + 90 + + - 64 col1
----
188

onlyif mysql # DIV for integer division: 
query I rowsort label-8128
SELECT DISTINCT 6 + - 82 DIV - 55 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-8128
SELECT DISTINCT 6 + - 82 / - 55 AS col2
----
7

onlyif mysql # DIV for integer division: 
query II rowsort label-8129
SELECT ALL - 42 col1, - 13 - + 79 DIV + 6
----
-42
-26

skipif mysql # not compatible
query II rowsort label-8129
SELECT ALL - 42 col1, - 13 - + 79 / + 6
----
-42
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-8130
SELECT 55 AS col0, - 5 - + - MAX( ALL 14 ) + - - CASE - 81 WHEN - 6 THEN - - 40 WHEN - - 53 * + - 44 THEN NULL WHEN + - 20 THEN NULL END
----
55
NULL

skipif mysql # not compatible
query II rowsort label-8130
SELECT 55 AS col0, - 5 - + - MAX ( ALL 14 ) + - - CASE - 81 WHEN - 6 THEN - - 40 WHEN - - 53 * + - 44 THEN NULL WHEN + - 20 THEN NULL END
----
55
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8131
SELECT 90 AS col2, - 34 + + CASE + COUNT( * ) WHEN - 70 THEN - - 68 * ( + ( - 37 ) ) + + 14 WHEN - + 92 THEN - 17 - 82 ELSE + 18 END * + SUM( DISTINCT + 86 ) AS col0
----
90
1514

skipif mysql # not compatible
query II rowsort label-8131
SELECT 90 AS col2, - 34 + + CASE + COUNT ( * ) WHEN - 70 THEN - - 68 * ( + ( - 37 ) ) + + 14 WHEN - + 92 THEN - 17 - 82 ELSE + 18 END * + SUM ( DISTINCT + 86 ) AS col0
----
90
1514

query I rowsort
SELECT 38 * - - 31 + - + 3 * - + 64 * 53 * 80 * - 66 AS col0
----
-53728102

query I rowsort
SELECT + 86 * - 32 + + 88
----
-2664

query II rowsort
SELECT 98 AS col0, 77
----
98
77

query I rowsort
SELECT ALL 93 + - 84
----
9

query I rowsort
SELECT 71 + + - 84 col2
----
-13

query I rowsort
SELECT 6 * - 92
----
-552

query II rowsort
SELECT ALL - 45 col0, 33
----
-45
33

query I rowsort
SELECT ALL 81 + + 37
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT ALL - COUNT( ALL + 76 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8140
SELECT ALL - COUNT ( ALL + 76 ) AS col2
----
-1

query I rowsort
SELECT ALL 99 * - - 14
----
1386

onlyif mysql # aggregate syntax: 
query II rowsort label-8142
SELECT DISTINCT + SUM( + 9 ) - - - 31 AS col0, + 97 AS col2
----
-22
97

skipif mysql # not compatible
query II rowsort label-8142
SELECT DISTINCT + SUM ( + 9 ) - - - 31 AS col0, + 97 AS col2
----
-22
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT ALL - ( - NULLIF ( 30, - 27 * - 49 * - 66 / - - COUNT( * ) ) ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-8143
SELECT ALL - ( - NULLIF ( 30, - 27 * - 49 * - 66 / - - COUNT ( * ) ) ) AS col1
----
30

onlyif mysql # DIV for integer division: 
query II rowsort label-8144
SELECT - + 78 col2, - 97 DIV + 18 - - - 60 + - ( + + 5 ) + - 17 AS col2
----
-78
-87

skipif mysql # not compatible
query II rowsort label-8144
SELECT - + 78 col2, - 97 / + 18 - - - 60 + - ( + + 5 ) + - 17 AS col2
----
-78
-87

query I rowsort
SELECT 93 + + 29 + - + 46 + + 62 * - - 49 + 67
----
3181

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

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

query I rowsort
SELECT - 50 + - - 20
----
-30

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

skipif mysql # not compatible
query I rowsort label-8148
SELECT MIN ( DISTINCT - 19 )
----
-19

query I rowsort
SELECT 3 + 10 AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT ALL + 77 * - COALESCE ( 33, - - MIN( ALL - + 85 ) - + - 81 * + + 46 * - 2 * - 0 ) AS col0
----
-2541

skipif mysql # not compatible
query I rowsort label-8150
SELECT ALL + 77 * - COALESCE ( 33, - - MIN ( ALL - + 85 ) - + - 81 * + + 46 * - 2 * - 0 ) AS col0
----
-2541

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

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

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

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

query I rowsort
SELECT ALL + COALESCE ( - 14, 80 * ( - COALESCE ( + 63, - 76 ) ) )
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-8154
SELECT ALL + ( - MAX( DISTINCT - 39 ) ), - 24 * - 22 AS col1
----
39
528

skipif mysql # not compatible
query II rowsort label-8154
SELECT ALL + ( - MAX ( DISTINCT - 39 ) ), - 24 * - 22 AS col1
----
39
528

query I rowsort
SELECT + 27 + + + 25 + 46 AS col0
----
98

query I rowsort
SELECT - - COALESCE ( ( 53 ), - + 28 * + 69 + + 7 + 28 + 36 + + 94, + - 59 )
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8157
SELECT ALL - - 46 + - - ( + - 33 ) DIV NULLIF ( + 38, - 64 ) * - COUNT( * ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-8157
SELECT ALL - - 46 + - - ( + - 33 ) / NULLIF ( + 38, - 64 ) * - COUNT ( * ) AS col2
----
46

query I rowsort
SELECT 52 + + 44 * 63 * - ( + + ( 17 ) ) + + - 89
----
-47161

query II rowsort
SELECT - - 11 col1, + 78 + ( + 49 ) col2
----
11
127

query I rowsort
SELECT DISTINCT - 51 + 74 + - + 40 * + 49
----
-1937

query I rowsort
SELECT ALL 52 * + - 99 + + + 28
----
-5120

query I rowsort
SELECT ALL - 42 * + 78 AS col1
----
-3276

onlyif mysql # DIV for integer division: 
query II rowsort label-8163
SELECT 55 DIV - + 95, + 86 * - 34 AS col1
----
0
-2924

skipif mysql # not compatible
query II rowsort label-8163
SELECT 55 / - + 95, + 86 * - 34 AS col1
----
0
-2924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8164
SELECT ALL + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) * NULLIF ( ( + + 67 ), - - COALESCE ( + 92, 45 + - 67, 79 + + 50 ) ) DIV - 11 + 21
----
21

skipif mysql # not compatible
query I rowsort label-8164
SELECT ALL + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) * NULLIF ( ( + + 67 ), - - COALESCE ( + 92, 45 + - 67, 79 + + 50 ) ) / - 11 + 21
----
21

query I rowsort
SELECT DISTINCT 95 * 58 * + 65 AS col0
----
358150

query I rowsort
SELECT ALL 70 * + 80 + - ( + 87 ) AS col0
----
5513

onlyif mysql # aggregate syntax: 
query I rowsort label-8167
SELECT COUNT( + 40 ) * - 89 + 65 + + 27
----
3

skipif mysql # not compatible
query I rowsort label-8167
SELECT COUNT ( + 40 ) * - 89 + 65 + + 27
----
3

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

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

query I rowsort
SELECT DISTINCT 76 * ( - 14 ) + - ( ( - 82 ) )
----
-982

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8170
SELECT DISTINCT + NULLIF ( CAST( NULL AS SIGNED ), - COUNT( * ) * NULLIF ( - 0, 54 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8170
SELECT DISTINCT + NULLIF ( CAST ( NULL AS INTEGER ), - COUNT ( * ) * NULLIF ( - 0, 54 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8171
SELECT SUM( DISTINCT + 20 ), 55 + 58 col0
----
20
113

skipif mysql # not compatible
query II rowsort label-8171
SELECT SUM ( DISTINCT + 20 ), 55 + 58 col0
----
20
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8172
SELECT ALL 40 * - 46 * + MAX( ALL - 40 ) * ( - - 6 ) * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8172
SELECT ALL 40 * - 46 * + MAX ( ALL - 40 ) * ( - - 6 ) * - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 46 * + - ( + + 68 )
----
-3128

query I rowsort
SELECT + 63 + - + 44 AS col0
----
19

query I rowsort
SELECT ALL + 48 - + - 18 + 6 * 17 + + + 87 AS col2
----
255

query II rowsort
SELECT DISTINCT - 89 * + 89 AS col0, + 90 - - - 88 AS col1
----
-7921
2

query I rowsort
SELECT + 95 * + + 34 AS col2
----
3230

onlyif mysql # aggregate syntax: 
query II rowsort label-8178
SELECT ALL ( SUM( DISTINCT - 70 ) ) * + 14 AS col0, + 29
----
-980
29

skipif mysql # not compatible
query II rowsort label-8178
SELECT ALL ( SUM ( DISTINCT - 70 ) ) * + 14 AS col0, + 29
----
-980
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8179
SELECT + 39 - + CAST( - 83 AS SIGNED )
----
122

skipif mysql # not compatible
query I rowsort label-8179
SELECT + 39 - + CAST ( - 83 AS INTEGER )
----
122

query I rowsort
SELECT - - 70 + 69 + - 78
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-8181
SELECT ALL + COUNT( - 74 ), + 28 + + 21 AS col1
----
1
49

skipif mysql # not compatible
query II rowsort label-8181
SELECT ALL + COUNT ( - 74 ), + 28 + + 21 AS col1
----
1
49

onlyif mysql # DIV for integer division: 
query I rowsort label-8182
SELECT + + 1 DIV + - 17 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8182
SELECT + + 1 / + - 17 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT ALL + 96 * - 24 * + COUNT( * )
----
-2304

skipif mysql # not compatible
query I rowsort label-8183
SELECT ALL + 96 * - 24 * + COUNT ( * )
----
-2304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8184
SELECT + - NULLIF ( - 60, 67 + + + 15 ) * - 33 * 65 * - + CAST( NULL AS SIGNED ) * - 79 * - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8184
SELECT + - NULLIF ( - 60, 67 + + + 15 ) * - 33 * 65 * - + CAST ( NULL AS INTEGER ) * - 79 * - - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT + + 51 - + 80
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT - - 77 - ( COUNT( ALL + 21 ) )
----
76

skipif mysql # not compatible
query I rowsort label-8186
SELECT - - 77 - ( COUNT ( ALL + 21 ) )
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-8187
SELECT + 42 * - 8 AS col0, COALESCE ( + COUNT( * ), + 74 ) AS col2
----
-336
1

skipif mysql # not compatible
query II rowsort label-8187
SELECT + 42 * - 8 AS col0, COALESCE ( + COUNT ( * ), + 74 ) AS col2
----
-336
1

query I rowsort
SELECT - ( 58 ) * + 79 + + + 84 + 44 AS col2
----
-4454

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT + + NULLIF ( - 81, CASE + 37 WHEN - 58 THEN + 20 + + MAX( + 57 ) END / COUNT( * ) ) * 35
----
-2835

skipif mysql # not compatible
query I rowsort label-8189
SELECT + + NULLIF ( - 81, CASE + 37 WHEN - 58 THEN + 20 + + MAX ( + 57 ) END / COUNT ( * ) ) * 35
----
-2835

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8190
SELECT ALL - 88 + - MIN( NULLIF ( + 10, + 32 * - 72 + 33 ) ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8190
SELECT ALL - 88 + - MIN ( NULLIF ( + 10, + 32 * - 72 + 33 ) ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8191
SELECT DISTINCT 56 * + NULLIF ( + 4, 83 + + 25 + + 78 / + CAST( + 25 AS DECIMAL ) ) col1
----
224

skipif mysql # not compatible
query I rowsort label-8191
SELECT DISTINCT 56 * + NULLIF ( + 4, 83 + + 25 + + 78 / + CAST ( + 25 AS REAL ) ) col1
----
224

onlyif mysql # aggregate syntax: 
query II rowsort label-8192
SELECT DISTINCT - 55 + - COUNT( * ) + - 22 - + 13 * - 50, + 60 AS col2
----
572
60

skipif mysql # not compatible
query II rowsort label-8192
SELECT DISTINCT - 55 + - COUNT ( * ) + - 22 - + 13 * - 50, + 60 AS col2
----
572
60

query I rowsort
SELECT ALL - 37 + - 12
----
-49

query I rowsort
SELECT - 60 * 67 AS col2
----
-4020

query I rowsort
SELECT ALL - 65 + - 34 col1
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8196
SELECT DISTINCT + COALESCE ( + 3, - + 90 DIV + CAST( NULL AS SIGNED ), - 50 + COALESCE ( - 19, - 9 * + 9 + + 89, - 54, - 80 * + 10, 27 + + 51 + MIN( - 7 ) DIV + 3 * - 73 ) - + - 94 - + 57, + 12 + + - 52 * + + 75 )
----
3

skipif mysql # not compatible
query I rowsort label-8196
SELECT DISTINCT + COALESCE ( + 3, - + 90 / + CAST ( NULL AS INTEGER ), - 50 + COALESCE ( - 19, - 9 * + 9 + + 89, - 54, - 80 * + 10, 27 + + 51 + MIN ( - 7 ) / + 3 * - 73 ) - + - 94 - + 57, + 12 + + - 52 * + + 75 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8197
SELECT 2 DIV 38 * - 1 + + 73 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-8197
SELECT 2 / 38 * - 1 + + 73 AS col2
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8198
SELECT - ( + + 31 ) + + 24 + + + CAST( NULL AS SIGNED ) - 96 * 16 * - COUNT( - 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8198
SELECT - ( + + 31 ) + + 24 + + + CAST ( NULL AS INTEGER ) - 96 * 16 * - COUNT ( - 61 )
----
NULL

query I rowsort
SELECT ( - NULLIF ( + - 14, + 73 ) ) * 0 * - 97 + + 5 + - - 94
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8200
SELECT ALL + 71 DIV 44 - + - 6
----
7

skipif mysql # not compatible
query I rowsort label-8200
SELECT ALL + 71 / 44 - + - 6
----
7

query I rowsort
SELECT DISTINCT + 93 * + 98 * - + 73 AS col1
----
-665322

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8202
SELECT DISTINCT 40 * COUNT( * ) / 37 - CAST( NULL AS SIGNED ) * - - 39 / - 87 - - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-8202
SELECT DISTINCT 40 * COUNT ( * ) / 37 - CAST ( NULL AS INTEGER ) * - - 39 / - 87 - - 9
----
NULL

query I rowsort
SELECT DISTINCT 81 * 96 AS col2
----
7776

onlyif mysql # aggregate syntax: 
query II rowsort label-8204
SELECT ALL + 70, COUNT( * ) + + 31 AS col0
----
70
32

skipif mysql # not compatible
query II rowsort label-8204
SELECT ALL + 70, COUNT ( * ) + + 31 AS col0
----
70
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8205
SELECT - 3 DIV + 49 - - COUNT( * ) - + COALESCE ( + + 22, ( 84 ) ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-8205
SELECT - 3 / + 49 - - COUNT ( * ) - + COALESCE ( + + 22, ( 84 ) ) AS col2
----
-21

query I rowsort
SELECT ALL + 3 * 7 AS col1
----
21

query I rowsort
SELECT - 22 + 21
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8208
SELECT - 34 * - COUNT( - 37 ) AS col1, - 92
----
34
-92

skipif mysql # not compatible
query II rowsort label-8208
SELECT - 34 * - COUNT ( - 37 ) AS col1, - 92
----
34
-92

query I rowsort
SELECT DISTINCT - 30 * + 41
----
-1230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8210
SELECT + - COALESCE ( 12, 38 * 54, - - 99 ) * 84 * 11 * 61 * 49 + CAST( NULL AS SIGNED ) * - 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8210
SELECT + - COALESCE ( 12, 38 * 54, - - 99 ) * 84 * 11 * 61 * 49 + CAST ( NULL AS INTEGER ) * - 69 AS col1
----
NULL

query I rowsort
SELECT - 23 + + 14
----
-9

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

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

query I rowsort
SELECT ALL + CASE - ( 77 ) WHEN - 63 * - 23 THEN 25 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT ALL + NULLIF ( - + 4, - COUNT( * ) )
----
-4

skipif mysql # not compatible
query I rowsort label-8214
SELECT ALL + NULLIF ( - + 4, - COUNT ( * ) )
----
-4

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

skipif mysql # not compatible
query I rowsort label-8215
SELECT DISTINCT + - NULLIF ( + 23, COUNT ( * ) )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT ALL NULLIF ( + 29, ( - 6 ) ) * + + 72 + - COUNT( * ) - + 53
----
2034

skipif mysql # not compatible
query I rowsort label-8216
SELECT ALL NULLIF ( + 29, ( - 6 ) ) * + + 72 + - COUNT ( * ) - + 53
----
2034

query II rowsort
SELECT DISTINCT - 84 AS col0, 1 AS col0
----
-84
1

query I rowsort
SELECT + 53 * 5 - - 6 AS col0
----
271

query I rowsort
SELECT ALL + + 62 + - ( + 26 ) AS col1
----
36

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT ALL 45 + - COALESCE ( 80, 15, - - COUNT( * ) ) * - 37 * + + 43 AS col2
----
127325

skipif mysql # not compatible
query I rowsort label-8222
SELECT ALL 45 + - COALESCE ( 80, 15, - - COUNT ( * ) ) * - 37 * + + 43 AS col2
----
127325

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8223
SELECT ALL 15 + + 54 + + - 18 * + + 78 * + COALESCE ( 67, - - 61 * - 7 * - COUNT( * ) DIV - 37 * + 61 + + 86, + 36 DIV - 10 + - ( + 67 ) + + + 56 + 6 DIV + + COUNT( * ) ) AS col0
----
-93999

skipif mysql # not compatible
query I rowsort label-8223
SELECT ALL 15 + + 54 + + - 18 * + + 78 * + COALESCE ( 67, - - 61 * - 7 * - COUNT ( * ) / - 37 * + 61 + + 86, + 36 / - 10 + - ( + 67 ) + + + 56 + 6 / + + COUNT ( * ) ) AS col0
----
-93999

query I rowsort
SELECT + 85 + + 62 + - + 56 + + 62
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-8225
SELECT ALL 54 DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-8225
SELECT ALL 54 / + 91
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8226
SELECT DISTINCT + MIN( + CAST( NULL AS DECIMAL ) ) / - SUM( DISTINCT - 74 ) AS col0, 42 AS col1
----
NULL
42

skipif mysql # not compatible
query II rowsort label-8226
SELECT DISTINCT + MIN ( + CAST ( NULL AS REAL ) ) / - SUM ( DISTINCT - 74 ) AS col0, 42 AS col1
----
NULL
42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8227
SELECT 81 + - COALESCE ( + 81, - ( 40 ) DIV CAST( COALESCE ( 65, - 79 + - 92 ) AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8227
SELECT 81 + - COALESCE ( + 81, - ( 40 ) / CAST ( COALESCE ( 65, - 79 + - 92 ) AS INTEGER ) ) AS col1
----
0

query I rowsort
SELECT 52 * - ( + 6 ) * - 6 AS col1
----
1872

query II rowsort
SELECT DISTINCT 29, + 37 * + ( + + NULLIF ( 89, + 39 ) ) - 80 col0
----
29
3213

query I rowsort
SELECT DISTINCT 77 - 60 AS col2
----
17

query I rowsort
SELECT ALL 12 * ( + + 66 ) AS col2
----
792

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

skipif mysql # not compatible
query I rowsort label-8232
SELECT ALL - 16 * - COUNT ( * ) AS col0
----
16

query I rowsort
SELECT ALL 58 * - 80 col2
----
-4640

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

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

query I rowsort
SELECT ALL 76 * - ( - ( 68 ) ) * + 64 + + - 69 * + 61 AS col2
----
326543

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8236
SELECT ALL - 41 AS col1, CAST( NULL AS SIGNED ) * - 96 AS col2
----
-41
NULL

skipif mysql # not compatible
query II rowsort label-8236
SELECT ALL - 41 AS col1, CAST ( NULL AS INTEGER ) * - 96 AS col2
----
-41
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8237
SELECT ALL - 77 AS col1, 1 * NULLIF ( - 47, + COUNT( * ) ) AS col1
----
-77
-47

skipif mysql # not compatible
query II rowsort label-8237
SELECT ALL - 77 AS col1, 1 * NULLIF ( - 47, + COUNT ( * ) ) AS col1
----
-77
-47

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8238
SELECT CASE 28 WHEN 72 THEN NULL WHEN + ( - 4 ) * - + 1 * + 71 THEN - CAST( NULL AS SIGNED ) ELSE NULL END * + 32 * CAST( + 77 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8238
SELECT CASE 28 WHEN 72 THEN NULL WHEN + ( - 4 ) * - + 1 * + 71 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END * + 32 * CAST ( + 77 AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8239
SELECT - 36 DIV + 5 + 54 * + - 32 AS col1
----
-1735

skipif mysql # not compatible
query I rowsort label-8239
SELECT - 36 / + 5 + 54 * + - 32 AS col1
----
-1735

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT CASE + - 84 WHEN + 10 + 98 + - 75 THEN COUNT( * ) ELSE NULL END / + + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-8240
SELECT CASE + - 84 WHEN + 10 + 98 + - 75 THEN COUNT ( * ) ELSE NULL END / + + 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT 34 * - - 10 * COUNT( * ) AS col0
----
340

skipif mysql # not compatible
query I rowsort label-8241
SELECT 34 * - - 10 * COUNT ( * ) AS col0
----
340

query I rowsort
SELECT 41 + - 72
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-8243
SELECT 9 DIV 3 + + 52 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-8243
SELECT 9 / 3 + + 52 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT DISTINCT - - MAX( ALL 74 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-8244
SELECT DISTINCT - - MAX ( ALL 74 ) AS col0
----
74

query I rowsort
SELECT 70 * - 47
----
-3290

onlyif mysql # DIV for integer division: 
query I rowsort label-8246
SELECT ALL + - 14 DIV - 96 + 83
----
83

skipif mysql # not compatible
query I rowsort label-8246
SELECT ALL + - 14 / - 96 + 83
----
83

query I rowsort
SELECT ALL - - 43 + + 59 + - CASE + 21 WHEN + 75 THEN NULL WHEN + 64 THEN + - 8 + - CASE + - ( 67 ) WHEN - 42 + 71 THEN 46 END END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8248
SELECT 29 AS col0, + 40 * - 90 + + 68 DIV + - CAST( - + 29 AS SIGNED )
----
29
-3598

skipif mysql # not compatible
query II rowsort label-8248
SELECT 29 AS col0, + 40 * - 90 + + 68 / + - CAST ( - + 29 AS INTEGER )
----
29
-3598

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT 78 + + 69 + 35 * + COUNT( * ) AS col1
----
182

skipif mysql # not compatible
query I rowsort label-8249
SELECT 78 + + 69 + 35 * + COUNT ( * ) AS col1
----
182

query I rowsort
SELECT DISTINCT - 88 + - 77
----
-165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8251
SELECT + CASE - - MIN( ALL 85 ) WHEN CAST( - - 47 AS SIGNED ) THEN NULL WHEN - 82 * ( ( - COALESCE ( 83, - 55, - ( 93 ) ) ) ) - COUNT( * ) THEN NULL ELSE - 17 END AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-8251
SELECT + CASE - - MIN ( ALL 85 ) WHEN CAST ( - - 47 AS INTEGER ) THEN NULL WHEN - 82 * ( ( - COALESCE ( 83, - 55, - ( 93 ) ) ) ) - COUNT ( * ) THEN NULL ELSE - 17 END AS col1
----
-17

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

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

query I rowsort
SELECT 27 - - 16 AS col0
----
43

query II rowsort
SELECT + 30 AS col1, - 90 * - - 7 + 8
----
30
-622

query I rowsort
SELECT 57 * 94
----
5358

query I rowsort
SELECT ALL + 94 + 47 * 3 AS col1
----
235

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

query I rowsort
SELECT ALL 99 + + 78 col2
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT ALL NULLIF ( 79, COUNT( - + ( NULLIF ( 87, + 27 ) ) ) / + - 3 ) + - ( - 63 ) AS col1
----
142

skipif mysql # not compatible
query I rowsort label-8259
SELECT ALL NULLIF ( 79, COUNT ( - + ( NULLIF ( 87, + 27 ) ) ) / + - 3 ) + - ( - 63 ) AS col1
----
142

query I rowsort
SELECT - 87 - + 73 AS col2
----
-160

query II rowsort
SELECT ALL 65 AS col1, 85 + - 3 * + NULLIF ( - 42, 73 ) + + 40 AS col0
----
65
251

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT COUNT( DISTINCT - 9 ) * - + 74
----
-74

skipif mysql # not compatible
query I rowsort label-8263
SELECT COUNT ( DISTINCT - 9 ) * - + 74
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-8264
SELECT DISTINCT COUNT( * ) * 72, - 82 col0
----
72
-82

skipif mysql # not compatible
query II rowsort label-8264
SELECT DISTINCT COUNT ( * ) * 72, - 82 col0
----
72
-82

query I rowsort
SELECT ( + - 97 ) - + - 4
----
-93

query I rowsort
SELECT 80 + - + 7 col0
----
73

onlyif mysql # DIV for integer division: 
query II rowsort label-8267
SELECT ALL 29 DIV + + 88 * 96, - 94 + 6 AS col0
----
0
-88

skipif mysql # not compatible
query II rowsort label-8267
SELECT ALL 29 / + + 88 * 96, - 94 + 6 AS col0
----
0
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-8268
SELECT 5 + - 32, 70 - + COUNT( * ) + + ( - 30 ) AS col1
----
-27
39

skipif mysql # not compatible
query II rowsort label-8268
SELECT 5 + - 32, 70 - + COUNT ( * ) + + ( - 30 ) AS col1
----
-27
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT - COUNT( * ) * 17 + 74 * - 50 + - - 47 * 27 AS col2
----
-2448

skipif mysql # not compatible
query I rowsort label-8269
SELECT - COUNT ( * ) * 17 + 74 * - 50 + - - 47 * 27 AS col2
----
-2448

query I rowsort
SELECT ALL - - 91 + + - 74 AS col0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8271
SELECT 14 * - CAST( NULL AS SIGNED ) + 13 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8271
SELECT 14 * - CAST ( NULL AS INTEGER ) + 13 col1
----
NULL

query I rowsort
SELECT ALL 2 + + 17 AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT COUNT( * ) + - COUNT( ALL + 10 )
----
0

skipif mysql # not compatible
query I rowsort label-8273
SELECT COUNT ( * ) + - COUNT ( ALL + 10 )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT ALL + + COUNT( * ) + COALESCE ( - + 87, + 33 + - COALESCE ( 24, - 57 ), - 61 ) + 97
----
11

skipif mysql # not compatible
query I rowsort label-8275
SELECT ALL + + COUNT ( * ) + COALESCE ( - + 87, + 33 + - COALESCE ( 24, - 57 ), - 61 ) + 97
----
11

query I rowsort
SELECT + 22 + + + 16 AS col0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-8277
SELECT DISTINCT + - 37 DIV 66 * + 30
----
0

skipif mysql # not compatible
query I rowsort label-8277
SELECT DISTINCT + - 37 / 66 * + 30
----
0

query I rowsort
SELECT - ( ( 29 ) ) + - 76
----
-105

query I rowsort
SELECT - 44 * + 2 AS col2
----
-88

query I rowsort
SELECT ALL - 1 * + 14
----
-14

query I rowsort
SELECT ALL + 43 - - - 69
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8282
SELECT DISTINCT - - CAST( - 47 AS DECIMAL ) * + - MAX( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8282
SELECT DISTINCT - - CAST ( - 47 AS REAL ) * + - MAX ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8283
SELECT DISTINCT - - 45 DIV 93 - 0 - + - 85 * - ( - + 15 )
----
1275

skipif mysql # not compatible
query I rowsort label-8283
SELECT DISTINCT - - 45 / 93 - 0 - + - 85 * - ( - + 15 )
----
1275

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8284
SELECT ALL - + 95 * - 97 + - COALESCE ( 78, SUM( ALL + 24 ) * - + COUNT( ALL + 84 ), + 1 + + + 61 + 8 DIV 75 * - 18 + + - 23 + - + 10 - - 61 ) AS col2
----
9137

skipif mysql # not compatible
query I rowsort label-8284
SELECT ALL - + 95 * - 97 + - COALESCE ( 78, SUM ( ALL + 24 ) * - + COUNT ( ALL + 84 ), + 1 + + + 61 + 8 / 75 * - 18 + + - 23 + - + 10 - - 61 ) AS col2
----
9137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8285
SELECT - CAST( - SUM( - + 97 ) AS SIGNED ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-8285
SELECT - CAST ( - SUM ( - + 97 ) AS INTEGER ) AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT - NULLIF ( + 42, 10 - + COUNT( * ) ) + + 69 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-8286
SELECT - NULLIF ( + 42, 10 - + COUNT ( * ) ) + + 69 AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8287
SELECT DISTINCT + 33 * + 57 * + - COUNT( * )
----
-1881

skipif mysql # not compatible
query I rowsort label-8287
SELECT DISTINCT + 33 * + 57 * + - COUNT ( * )
----
-1881

query I rowsort
SELECT ALL NULLIF ( + NULLIF ( 7, - 13 ), + - 50 / 94 / + 33 )
----
7

query I rowsort
SELECT - 1 + - + 24 + 81 + + - 5
----
51

query II rowsort
SELECT 20 AS col2, + 48 AS col1
----
20
48

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8292
SELECT ALL CASE 97 WHEN 51 THEN 4 * - NULLIF ( - CASE WHEN NOT ( - COUNT( * ) ) IS NULL THEN + CAST( NULL AS DECIMAL ) + - 9 END, + - COUNT( - + 1 ) * + 56 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8292
SELECT ALL CASE 97 WHEN 51 THEN 4 * - NULLIF ( - CASE WHEN NOT ( - COUNT ( * ) ) IS NULL THEN + CAST ( NULL AS REAL ) + - 9 END, + - COUNT ( - + 1 ) * + 56 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT - ( - NULLIF ( - - 74, - + 65 + 1 ) ) + + + SUM( ALL + 82 )
----
156

skipif mysql # not compatible
query I rowsort label-8293
SELECT - ( - NULLIF ( - - 74, - + 65 + 1 ) ) + + + SUM ( ALL + 82 )
----
156

query I rowsort
SELECT - 29 * - 56 * 3 AS col1
----
4872

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT DISTINCT CASE COUNT( * ) WHEN - + 71 / + 87 THEN NULL ELSE 44 END AS col0
----
44

skipif mysql # not compatible
query I rowsort label-8296
SELECT DISTINCT CASE COUNT ( * ) WHEN - + 71 / + 87 THEN NULL ELSE 44 END AS col0
----
44

query I rowsort
SELECT + 99 + + + CASE + 13 WHEN - 67 THEN NULL ELSE + 76 END AS col1
----
175

query I rowsort
SELECT DISTINCT 23 * - 53 AS col0
----
-1219

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

query I rowsort
SELECT + 63 * 8 * - 92 col0
----
-46368

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT DISTINCT - CASE COUNT( * ) WHEN - 26 THEN - COALESCE ( - - ( 79 ), 24 + + 55, 30 - - 73 ) END * + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-8301
SELECT DISTINCT - CASE COUNT ( * ) WHEN - 26 THEN - COALESCE ( - - ( 79 ), 24 + + 55, 30 - - 73 ) END * + 36
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8302
SELECT ALL + COALESCE ( + + 10, + 52 + + - 75 ) * - 29 + ( CAST( NULL AS SIGNED ) ) + - - CAST( NULL AS SIGNED ) / - 28 * - 11 * - 87 * COUNT( * ) / + 82 + - COUNT( * ) + 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8302
SELECT ALL + COALESCE ( + + 10, + 52 + + - 75 ) * - 29 + ( CAST ( NULL AS INTEGER ) ) + - - CAST ( NULL AS INTEGER ) / - 28 * - 11 * - 87 * COUNT ( * ) / + 82 + - COUNT ( * ) + 6 AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT - - ( 6 ) * 38 - - COALESCE ( + 49, 32 + - MAX( - 54 ) )
----
277

skipif mysql # not compatible
query I rowsort label-8304
SELECT - - ( 6 ) * 38 - - COALESCE ( + 49, 32 + - MAX ( - 54 ) )
----
277

query I rowsort
SELECT + COALESCE ( - 1, + + 19, - - 61 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8306
SELECT ALL + 51, - 61 * + 83 * - + COUNT( * ) AS col0
----
51
5063

skipif mysql # not compatible
query II rowsort label-8306
SELECT ALL + 51, - 61 * + 83 * - + COUNT ( * ) AS col0
----
51
5063

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8307
SELECT ALL + - NULLIF ( + NULLIF ( + 3, + 66 ), + CAST( + 4 AS SIGNED ) )
----
-3

skipif mysql # not compatible
query I rowsort label-8307
SELECT ALL + - NULLIF ( + NULLIF ( + 3, + 66 ), + CAST ( + 4 AS INTEGER ) )
----
-3

query I rowsort
SELECT + 6 * - 96 AS col0
----
-576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8309
SELECT DISTINCT 34 * COUNT( * ) - + COALESCE ( CAST( - - 98 AS SIGNED ), + COUNT( * ), - ( + 65 ), 87 )
----
-64

skipif mysql # not compatible
query I rowsort label-8309
SELECT DISTINCT 34 * COUNT ( * ) - + COALESCE ( CAST ( - - 98 AS INTEGER ), + COUNT ( * ), - ( + 65 ), 87 )
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8310
SELECT ALL 72 * 18 - COUNT( * ) DIV 21 * 49 + - + ( 23 )
----
1273

skipif mysql # not compatible
query I rowsort label-8310
SELECT ALL 72 * 18 - COUNT ( * ) / 21 * 49 + - + ( 23 )
----
1273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8311
SELECT + - CASE + 31 WHEN + COUNT( * ) THEN NULLIF ( - - 1, + 86 / ( - + 54 ) ) WHEN + NULLIF ( 16, + 99 ) + + - 5 - + + 17 - + COUNT( * ) - - NULLIF ( 54, - COALESCE ( CASE - + ( + COUNT( * ) ) WHEN - + COUNT( * ) + 43 THEN - - 64 ELSE NULL END, + 69 + + 88 * + ( 60 ) * - SUM( ALL 31 ) - - 15 ) ) / + 82 + - + CAST( NULL AS SIGNED ) + COUNT( * ) * ( 45 ) * - 49 + COUNT( * ) * + 23 * - + COUNT( * ) + - COUNT( * ) * + - 96 * 8 * + - ( + 93 ) + 79 * - 94 * + 28 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8311
SELECT + - CASE + 31 WHEN + COUNT ( * ) THEN NULLIF ( - - 1, + 86 / ( - + 54 ) ) WHEN + NULLIF ( 16, + 99 ) + + - 5 - + + 17 - + COUNT ( * ) - - NULLIF ( 54, - COALESCE ( CASE - + ( + COUNT ( * ) ) WHEN - + COUNT ( * ) + 43 THEN - - 64 ELSE NULL END, + 69 + + 88 * + ( 60 ) * - SUM ( ALL 31 ) - - 15 ) ) / + 82 + - + CAST ( NULL AS INTEGER ) + COUNT ( * ) * ( 45 ) * - 49 + COUNT ( * ) * + 23 * - + COUNT ( * ) + - COUNT ( * ) * + - 96 * 8 * + - ( + 93 ) + 79 * - 94 * + 28 THEN NULL END
----
NULL

query I rowsort
SELECT ALL + ( + + COALESCE ( - 89, ( 78 ) ) ) AS col1
----
-89

query I rowsort
SELECT + - 66 * - 34 - + - 9 + 24 AS col0
----
2277

query II rowsort
SELECT DISTINCT + - 34 AS col1, + 25 + - 41 * - + 42 * - + 94 AS col0
----
-34
-161843

onlyif mysql # DIV for integer division: 
query I rowsort label-8315
SELECT ALL - 69 * + 63 * 13 - + 1 + - + 79 DIV - 88 AS col0
----
-56512

skipif mysql # not compatible
query I rowsort label-8315
SELECT ALL - 69 * + 63 * 13 - + 1 + - + 79 / - 88 AS col0
----
-56512

query I rowsort
SELECT + 8 * - 17
----
-136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8317
SELECT - 78 * - 81 + COUNT( * ) + + + 63 DIV 49 + + - CAST( 81 AS SIGNED ) + + 59 AS col2, - 43 col2
----
6298
-43

skipif mysql # not compatible
query II rowsort label-8317
SELECT - 78 * - 81 + COUNT ( * ) + + + 63 / 49 + + - CAST ( 81 AS INTEGER ) + + 59 AS col2, - 43 col2
----
6298
-43

query I rowsort
SELECT + NULLIF ( + 82, + 64 * + - 89 + - - 32 + - 2 ) - 45
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8319
SELECT ALL + 46 AS col2, CAST( NULL AS SIGNED ) AS col2
----
46
NULL

skipif mysql # not compatible
query II rowsort label-8319
SELECT ALL + 46 AS col2, CAST ( NULL AS INTEGER ) AS col2
----
46
NULL

query I rowsort
SELECT + 77 * 40
----
3080

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT ALL CASE - 1 WHEN - 27 THEN + + 87 WHEN 2 THEN - 1 * + 26 + 91 * + 23 / - COUNT( * ) ELSE + 16 END AS col0
----
16

skipif mysql # not compatible
query I rowsort label-8321
SELECT ALL CASE - 1 WHEN - 27 THEN + + 87 WHEN 2 THEN - 1 * + 26 + 91 * + 23 / - COUNT ( * ) ELSE + 16 END AS col0
----
16

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8323
SELECT ALL - 57 * + + ( - + CASE + + 26 WHEN + 34 * - CASE + 81 WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE 32 END THEN - 11 - - - 48 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8323
SELECT ALL - 57 * + + ( - + CASE + + 26 WHEN + 34 * - CASE + 81 WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE 32 END THEN - 11 - - - 48 END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8324
SELECT ALL - COUNT( * ) * + + 48 DIV 47 * - + 45 AS col0, 40 AS col2
----
45
40

skipif mysql # not compatible
query II rowsort label-8324
SELECT ALL - COUNT ( * ) * + + 48 / 47 * - + 45 AS col0, 40 AS col2
----
45
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8325
SELECT + CAST( NULL AS SIGNED ) - - + CASE - 65 WHEN 75 THEN + - 32 WHEN 70 * + 66 - - CASE - COUNT( * ) WHEN + + ( + 27 ) THEN NULL WHEN + 37 * 96 THEN + 8 END * + - COUNT( * ) THEN NULL END - + 1 + + COALESCE ( + ( - 67 ), - + 57 * 78 + + - 0 + - 80 ) / + + COUNT( * ) - 35 / + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-8325
SELECT + CAST ( NULL AS INTEGER ) - - + CASE - 65 WHEN 75 THEN + - 32 WHEN 70 * + 66 - - CASE - COUNT ( * ) WHEN + + ( + 27 ) THEN NULL WHEN + 37 * 96 THEN + 8 END * + - COUNT ( * ) THEN NULL END - + 1 + + COALESCE ( + ( - 67 ), - + 57 * 78 + + - 0 + - 80 ) / + + COUNT ( * ) - 35 / + 50
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8326
SELECT - NULLIF ( - - MIN( DISTINCT - 2 ), COUNT( * ) ) * + COUNT( * ) * 78 * - - 49 AS col2, ( - MIN( 53 ) ) col2
----
7644
-53

skipif mysql # not compatible
query II rowsort label-8326
SELECT - NULLIF ( - - MIN ( DISTINCT - 2 ), COUNT ( * ) ) * + COUNT ( * ) * 78 * - - 49 AS col2, ( - MIN ( 53 ) ) col2
----
7644
-53

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT ALL + ( - NULLIF ( 96, + + 97 ) ) + + COUNT( 87 ) * MIN( 17 )
----
-79

skipif mysql # not compatible
query I rowsort label-8328
SELECT ALL + ( - NULLIF ( 96, + + 97 ) ) + + COUNT ( 87 ) * MIN ( 17 )
----
-79

query I rowsort
SELECT - 87 * 13 * + 21
----
-23751

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8330
SELECT ALL 28 + 70 / 93 / - 2 * - CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8330
SELECT ALL 28 + 70 / 93 / - 2 * - CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

query I rowsort
SELECT - 24 * 13
----
-312

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

skipif mysql # not compatible
query I rowsort label-8332
SELECT - 24 / - + COUNT ( * ) + + 72 + 60
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT ALL 20 * - - COUNT( * ) * 45
----
900

skipif mysql # not compatible
query I rowsort label-8333
SELECT ALL 20 * - - COUNT ( * ) * 45
----
900

query I rowsort
SELECT DISTINCT + - 64 col1
----
-64

query I rowsort
SELECT ALL - 7 * - - 26 AS col1
----
-182

query I rowsort
SELECT - 36 * - - 69 + + - 42
----
-2526

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8337
SELECT ALL - - CAST( - + MIN( DISTINCT 82 ) AS SIGNED )
----
-82

skipif mysql # not compatible
query I rowsort label-8337
SELECT ALL - - CAST ( - + MIN ( DISTINCT 82 ) AS INTEGER )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT - 40 + - SUM( - 54 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-8338
SELECT - 40 + - SUM ( - 54 ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT + SUM( - 19 ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-8339
SELECT + SUM ( - 19 ) AS col2
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8340
SELECT - CAST( + 91 AS SIGNED ) DIV 10 DIV - + 3 + - SUM( 63 ) - - 34 * - + 65
----
-2270

skipif mysql # not compatible
query I rowsort label-8340
SELECT - CAST ( + 91 AS INTEGER ) / 10 / - + 3 + - SUM ( 63 ) - - 34 * - + 65
----
-2270

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8341
SELECT ALL - 24 DIV - CAST( + 75 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8341
SELECT ALL - 24 / - CAST ( + 75 AS INTEGER )
----
0

query I rowsort
SELECT ALL - NULLIF ( + 38, - 20 )
----
-38

query II rowsort
SELECT DISTINCT - 51 AS col1, - 93 * 64
----
-51
-5952

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8345
SELECT DISTINCT 83 * + COUNT( * ) * - - 76 * 46 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8345
SELECT DISTINCT 83 * + COUNT ( * ) * - - 76 * 46 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT ALL - MIN( - - 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-8346
SELECT ALL - MIN ( - - 87 )
----
-87

query I rowsort
SELECT DISTINCT - 62 + + ( - 15 ) * + 23
----
-407

query I rowsort
SELECT 9 + - 35 + 74 AS col0
----
48

query I rowsort
SELECT ALL 12 * - + 12
----
-144

query I rowsort
SELECT ALL NULLIF ( - + 22, - 89 ) + + 84
----
62

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT ALL MIN( ALL 5 ) + 14 * + 62 + + 82 + - 39 + 0
----
916

skipif mysql # not compatible
query I rowsort label-8352
SELECT ALL MIN ( ALL 5 ) + 14 * + 62 + + 82 + - 39 + 0
----
916

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8357
SELECT ALL 40 + - - CAST( 58 AS SIGNED ) - - + NULLIF ( + 96, - - 76 ) * + 38 * 18 * + 24 AS col1
----
1576034

skipif mysql # not compatible
query I rowsort label-8357
SELECT ALL 40 + - - CAST ( 58 AS INTEGER ) - - + NULLIF ( + 96, - - 76 ) * + 38 * 18 * + 24 AS col1
----
1576034

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT 50 + + 70 + + COUNT( * ) * + - 48 col0
----
72

skipif mysql # not compatible
query I rowsort label-8358
SELECT 50 + + 70 + + COUNT ( * ) * + - 48 col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8359
SELECT ( - MAX( ALL - ( 69 ) ) ) * 97 * - 33 + - - 90 col1
----
-220779

skipif mysql # not compatible
query I rowsort label-8359
SELECT ( - MAX ( ALL - ( 69 ) ) ) * 97 * - 33 + - - 90 col1
----
-220779

onlyif mysql # DIV for integer division: 
query I rowsort label-8360
SELECT 59 + 1 DIV 20 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-8360
SELECT 59 + 1 / 20 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT 30 * - COUNT( * ) col0
----
-30

skipif mysql # not compatible
query I rowsort label-8361
SELECT 30 * - COUNT ( * ) col0
----
-30

query I rowsort
SELECT 66 + + 60 AS col0
----
126

query I rowsort
SELECT DISTINCT - 37 - 11 * - ( 36 * 40 ) AS col1
----
15803

query I rowsort
SELECT ALL - 19 - - 97
----
78

query I rowsort
SELECT 56 * + 24 col1
----
1344

query I rowsort
SELECT ALL - 19 - 26 * 8
----
-227

query I rowsort
SELECT 46 * NULLIF ( + 41, 29 + 48 ) AS col1
----
1886

query I rowsort
SELECT ALL + 92 * + 95
----
8740

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

skipif mysql # not compatible
query I rowsort label-8369
SELECT COUNT ( * ) / - 39 AS col1
----
0

query I rowsort
SELECT DISTINCT + 74 * 39 AS col1
----
2886

onlyif mysql # DIV for integer division: 
query I rowsort label-8371
SELECT DISTINCT + 2 DIV + 51 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8371
SELECT DISTINCT + 2 / + 51 AS col2
----
0

query I rowsort
SELECT 84 * 1 AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT ALL MIN( + 14 ) + 34
----
48

skipif mysql # not compatible
query I rowsort label-8373
SELECT ALL MIN ( + 14 ) + 34
----
48

query I rowsort
SELECT DISTINCT + 75 * + 1 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT ALL 42 + - 66 * COUNT( * ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-8375
SELECT ALL 42 + - 66 * COUNT ( * ) AS col0
----
-24

query I rowsort
SELECT ALL - ( - 38 ) AS col0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-8377
SELECT ALL 6 + 59 DIV ( + 24 )
----
8

skipif mysql # not compatible
query I rowsort label-8377
SELECT ALL 6 + 59 / ( + 24 )
----
8

query I rowsort
SELECT 96 * 41 AS col0
----
3936

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT SUM( DISTINCT + 24 ) + 59 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-8379
SELECT SUM ( DISTINCT + 24 ) + 59 AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT 30 * - 38 + + 30 * COUNT( + ( + 81 ) / 22 )
----
-1110

skipif mysql # not compatible
query I rowsort label-8380
SELECT 30 * - 38 + + 30 * COUNT ( + ( + 81 ) / 22 )
----
-1110

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT DISTINCT MIN( DISTINCT + 32 ) * + 22
----
704

skipif mysql # not compatible
query I rowsort label-8381
SELECT DISTINCT MIN ( DISTINCT + 32 ) * + 22
----
704

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

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

query I rowsort
SELECT DISTINCT ( 51 ) + 2 * 2 AS col2
----
55

query I rowsort
SELECT 44 + 83 AS col1
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT DISTINCT CASE + 87 WHEN COALESCE ( - 18, 39 * + 18, 15 ) + + 84 THEN - COUNT( * ) END * 59 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8385
SELECT DISTINCT CASE + 87 WHEN COALESCE ( - 18, 39 * + 18, 15 ) + + 84 THEN - COUNT ( * ) END * 59 col1
----
NULL

query I rowsort
SELECT 21 - - 70
----
91

query I rowsort
SELECT ALL 98 - + 44
----
54

query I rowsort
SELECT ALL + 85 * - CASE + 66 + + 22 WHEN 15 * 19 THEN NULL ELSE 83 END
----
-7055

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8389
SELECT + + MIN( ALL 58 ) DIV + 96
----
0

skipif mysql # not compatible
query I rowsort label-8389
SELECT + + MIN ( ALL 58 ) / + 96
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8390
SELECT + + COALESCE ( NULLIF ( 10, + ( - 77 ) * 20 ), + 60, 78 * 43 - CAST( NULL AS SIGNED ) * + 75 ) + + 37 * + 17 AS col1
----
639

skipif mysql # not compatible
query I rowsort label-8390
SELECT + + COALESCE ( NULLIF ( 10, + ( - 77 ) * 20 ), + 60, 78 * 43 - CAST ( NULL AS INTEGER ) * + 75 ) + + 37 * + 17 AS col1
----
639

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT + MAX( + 73 ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-8391
SELECT + MAX ( + 73 ) AS col1
----
73

query I rowsort
SELECT - 31 * + 37 AS col2
----
-1147

query I rowsort
SELECT - - 29 * + 72
----
2088

query I rowsort
SELECT ALL + 24 * + 2
----
48

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8396
SELECT DISTINCT + 6 * - 0 + COALESCE ( COALESCE ( 56, COUNT( * ) ) + - CAST( NULL AS SIGNED ), + COUNT( * ) - - 75 ) * + 25 AS col1
----
1900

skipif mysql # not compatible
query I rowsort label-8396
SELECT DISTINCT + 6 * - 0 + COALESCE ( COALESCE ( 56, COUNT ( * ) ) + - CAST ( NULL AS INTEGER ), + COUNT ( * ) - - 75 ) * + 25 AS col1
----
1900

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT + + CASE 12 WHEN 82 * 94 THEN + SUM( + 78 ) + - 14 * ( - 80 ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8397
SELECT + + CASE 12 WHEN 82 * 94 THEN + SUM ( + 78 ) + - 14 * ( - 80 ) ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT DISTINCT + - 88 * 36 + CASE 92 WHEN NULLIF ( 13, COUNT( * ) ) THEN NULL ELSE - COUNT( * ) END AS col0
----
-3169

skipif mysql # not compatible
query I rowsort label-8398
SELECT DISTINCT + - 88 * 36 + CASE 92 WHEN NULLIF ( 13, COUNT ( * ) ) THEN NULL ELSE - COUNT ( * ) END AS col0
----
-3169

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT ALL - + 21 * COUNT( * ) + 34 * + 87 AS col1
----
2937

skipif mysql # not compatible
query I rowsort label-8399
SELECT ALL - + 21 * COUNT ( * ) + 34 * + 87 AS col1
----
2937

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8400
SELECT + CASE 7 WHEN 39 * + 52 THEN 31 + + MIN( + 80 + + 53 ) WHEN + 3 * - 0 + CAST( + AVG ( DISTINCT 92 ) AS SIGNED ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8400
SELECT + CASE 7 WHEN 39 * + 52 THEN 31 + + MIN ( + 80 + + 53 ) WHEN + 3 * - 0 + CAST ( + AVG ( DISTINCT 92 ) AS INTEGER ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8401
SELECT - 7 + + 32 * - COALESCE ( + 9 DIV + NULLIF ( SUM( COALESCE ( - 7, 20, 34 ) ), 26 ), + 83 )
----
25

skipif mysql # not compatible
query I rowsort label-8401
SELECT - 7 + + 32 * - COALESCE ( + 9 / + NULLIF ( SUM ( COALESCE ( - 7, 20, 34 ) ), 26 ), + 83 )
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8402
SELECT CASE + 81 WHEN + 18 / 74 + 49 * + 95 THEN - CAST( + 55 AS SIGNED ) + 32 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8402
SELECT CASE + 81 WHEN + 18 / 74 + 49 * + 95 THEN - CAST ( + 55 AS INTEGER ) + 32 END
----
NULL

query I rowsort
SELECT NULLIF ( + 45, - 18 ) col0
----
45

query I rowsort
SELECT DISTINCT - 36 * - + 29 + ( + 29 )
----
1073

onlyif mysql # DIV for integer division: 
query I rowsort label-8405
SELECT COALESCE ( + - 65, 99 DIV 8 )
----
-65

skipif mysql # not compatible
query I rowsort label-8405
SELECT COALESCE ( + - 65, 99 / 8 )
----
-65

query I rowsort
SELECT - 47 * - 37 AS col1
----
1739

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT ALL - 26 * - 62 * COUNT( * ) + 55 * + COUNT( * )
----
1667

skipif mysql # not compatible
query I rowsort label-8407
SELECT ALL - 26 * - 62 * COUNT ( * ) + 55 * + COUNT ( * )
----
1667

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

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

query I rowsort
SELECT ALL + 27 * - + 86
----
-2322

query I rowsort
SELECT - 93 * 23 / 63 + CASE 0 WHEN + 3 THEN 32 WHEN + 86 * - 8 THEN - 60 + + 86 WHEN 54 + 73 * + 38 THEN + 44 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT MIN( - 13 ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-8411
SELECT MIN ( - 13 ) AS col2
----
-13

query I rowsort
SELECT - 22 + 75
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT - 81 * + SUM( ALL - 11 )
----
891

skipif mysql # not compatible
query I rowsort label-8413
SELECT - 81 * + SUM ( ALL - 11 )
----
891

query I rowsort
SELECT + 87 * 0 * + 6
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8415
SELECT DISTINCT 10 DIV + - 21 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8415
SELECT DISTINCT 10 / + - 21 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT - 75 + - MAX( - 9 ) + - MAX( DISTINCT 91 ) AS col0
----
-157

skipif mysql # not compatible
query I rowsort label-8416
SELECT - 75 + - MAX ( - 9 ) + - MAX ( DISTINCT 91 ) AS col0
----
-157

query I rowsort
SELECT ALL 86 - 90 + 27 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT ALL + MAX( ALL - 18 ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-8418
SELECT ALL + MAX ( ALL - 18 ) AS col2
----
-18

query I rowsort
SELECT + 70 * - - ( - 21 )
----
-1470

query I rowsort
SELECT ALL - 88 * 17 - - 28
----
-1468

query I rowsort
SELECT + - 83 + - 72
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT + + NULLIF ( - + MAX( ALL + 2 ), + 34 ) + + 19
----
17

skipif mysql # not compatible
query I rowsort label-8422
SELECT + + NULLIF ( - + MAX ( ALL + 2 ), + 34 ) + + 19
----
17

query I rowsort
SELECT - - 39 * + - 31 * 65 + + CASE 29 WHEN 26 + - CASE 67 WHEN - 65 * + 51 THEN - 45 END THEN 45 * - AVG ( + 5 * - 95 ) END
----
NULL

query I rowsort
SELECT + - 33 + - + 43 + + 55 AS col1
----
-21

query I rowsort
SELECT ALL 76 * 83 * - 56 AS col1
----
-353248

query I rowsort
SELECT DISTINCT ( - 62 ) AS col0
----
-62

query I rowsort
SELECT DISTINCT - - 4 + - 19
----
-15

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

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

query I rowsort
SELECT DISTINCT - 45 + 14 + + 71 * 55 AS col2
----
3874

query I rowsort
SELECT + + 7 * + 95 * - 50
----
-33250

query I rowsort
SELECT - NULLIF ( + 51, 69 )
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8432
SELECT DISTINCT - 58 DIV - 61 * COUNT( * ) + NULLIF ( - COUNT( * ), + COUNT( * ) * + 10 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8432
SELECT DISTINCT - 58 / - 61 * COUNT ( * ) + NULLIF ( - COUNT ( * ), + COUNT ( * ) * + 10 ) AS col0
----
-1

query I rowsort
SELECT + 95 * - 77 * 70 AS col2
----
-512050

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8434
SELECT CAST( NULL AS SIGNED ) AS col2, COALESCE ( + 79, COALESCE ( 60, + 91, 16 ) * 72 ) AS col0
----
NULL
79

skipif mysql # not compatible
query II rowsort label-8434
SELECT CAST ( NULL AS INTEGER ) AS col2, COALESCE ( + 79, COALESCE ( 60, + 91, 16 ) * 72 ) AS col0
----
NULL
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT ALL + ( + 46 ) * - MAX( 75 ) * 1
----
-3450

skipif mysql # not compatible
query I rowsort label-8435
SELECT ALL + ( + 46 ) * - MAX ( 75 ) * 1
----
-3450

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8437
SELECT DISTINCT + CAST( + - 77 AS SIGNED ) DIV 38 + 38
----
36

skipif mysql # not compatible
query I rowsort label-8437
SELECT DISTINCT + CAST ( + - 77 AS INTEGER ) / 38 + 38
----
36

query I rowsort
SELECT - 17 - + - 4
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8439
SELECT - ( + + 26 ) * - COUNT( * ) DIV 51 - 18 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-8439
SELECT - ( + + 26 ) * - COUNT ( * ) / 51 - 18 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8440
SELECT + 5 * - + COUNT( * ) * 68 * COUNT( * )
----
-340

skipif mysql # not compatible
query I rowsort label-8440
SELECT + 5 * - + COUNT ( * ) * 68 * COUNT ( * )
----
-340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8441
SELECT ALL + 66 * 55 DIV - - 31 - - 83 * SUM( - 86 - + 22 )
----
-8847

skipif mysql # not compatible
query I rowsort label-8441
SELECT ALL + 66 * 55 / - - 31 - - 83 * SUM ( - 86 - + 22 )
----
-8847

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT - 57 + NULLIF ( - - COUNT( * ), 38 )
----
-56

skipif mysql # not compatible
query I rowsort label-8442
SELECT - 57 + NULLIF ( - - COUNT ( * ), 38 )
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8443
SELECT ALL - 95 * + 71 DIV - COUNT( * ) col2
----
6745

skipif mysql # not compatible
query I rowsort label-8443
SELECT ALL - 95 * + 71 / - COUNT ( * ) col2
----
6745

query I rowsort
SELECT NULLIF ( - - 13, + 28 ) AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT ALL COALESCE ( + - SUM( + 0 ), + 53, - 7, + 4 )
----
0

skipif mysql # not compatible
query I rowsort label-8445
SELECT ALL COALESCE ( + - SUM ( + 0 ), + 53, - 7, + 4 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8446
SELECT ALL CAST( + 45 AS SIGNED ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-8446
SELECT ALL CAST ( + 45 AS INTEGER ) AS col0
----
45

query II rowsort
SELECT - 59, - 73 + - + 1 AS col2
----
-59
-74

query I rowsort
SELECT DISTINCT - 5 * - + 53 col1
----
265

query II rowsort
SELECT DISTINCT 63 AS col0, + 39 * + + 34 * 24 col1
----
63
31824

onlyif mysql # aggregate syntax: 
query I rowsort label-8450
SELECT - COALESCE ( + + COUNT( * ), 39 * + 63 )
----
-1

skipif mysql # not compatible
query I rowsort label-8450
SELECT - COALESCE ( + + COUNT ( * ), 39 * + 63 )
----
-1

query I rowsort
SELECT DISTINCT - 90 * - 0 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8452
SELECT 25 DIV 52
----
0

skipif mysql # not compatible
query I rowsort label-8452
SELECT 25 / 52
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8453
SELECT - ( + 9 ) * - 62 DIV COUNT( * )
----
558

skipif mysql # not compatible
query I rowsort label-8453
SELECT - ( + 9 ) * - 62 / COUNT ( * )
----
558

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8454
SELECT ALL - 57 + + 87 + - - CAST( NULL AS SIGNED ) / 15 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8454
SELECT ALL - 57 + + 87 + - - CAST ( NULL AS INTEGER ) / 15 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8455
SELECT 56 - - COALESCE ( + 58, CAST( NULL AS SIGNED ) )
----
114

skipif mysql # not compatible
query I rowsort label-8455
SELECT 56 - - COALESCE ( + 58, CAST ( NULL AS INTEGER ) )
----
114

query I rowsort
SELECT 15 * + 86
----
1290

onlyif mysql # DIV for integer division: 
query I rowsort label-8457
SELECT + 43 - + 13 DIV - 91 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-8457
SELECT + 43 - + 13 / - 91 AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT - - NULLIF ( COUNT( * ), - MIN( - 39 ) * - 2 )
----
1

skipif mysql # not compatible
query I rowsort label-8458
SELECT - - NULLIF ( COUNT ( * ), - MIN ( - 39 ) * - 2 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8459
SELECT DISTINCT + CAST( + 29 AS SIGNED )
----
29

skipif mysql # not compatible
query I rowsort label-8459
SELECT DISTINCT + CAST ( + 29 AS INTEGER )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT ALL 87 + + CASE 24 WHEN + MIN( ALL 19 ) THEN + 53 - 72 WHEN 71 / - 5 THEN + 92 + MIN( - NULLIF ( + 5, - 25 ) ) * + 44 END + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-8460
SELECT ALL 87 + + CASE 24 WHEN + MIN ( ALL 19 ) THEN + 53 - 72 WHEN 71 / - 5 THEN + 92 + MIN ( - NULLIF ( + 5, - 25 ) ) * + 44 END + 0
----
NULL

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8463
SELECT ALL MIN( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8463
SELECT ALL MIN ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT ALL + 16 + + - ( + MIN( - 36 ) )
----
52

skipif mysql # not compatible
query I rowsort label-8464
SELECT ALL + 16 + + - ( + MIN ( - 36 ) )
----
52

query I rowsort
SELECT - NULLIF ( 58, - 12 / + ( 72 + NULLIF ( - 48, + 8 ) * - 29 ) - + 59 ) AS col0
----
-58

query I rowsort
SELECT ALL - 41 + + ( + + 44 ) AS col1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8467
SELECT - MAX( ( + 46 ) ) - - 1 DIV 9 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-8467
SELECT - MAX ( ( + 46 ) ) - - 1 / 9 AS col0
----
-46

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

skipif mysql # not compatible
query I rowsort label-8468
SELECT DISTINCT MIN ( - 49 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT 73 + 55 + - 12 + - COUNT( * ) * + 98
----
18

skipif mysql # not compatible
query I rowsort label-8469
SELECT 73 + 55 + - 12 + - COUNT ( * ) * + 98
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT - 6 - - COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-8470
SELECT - 6 - - COUNT ( * )
----
-5

query II rowsort
SELECT - + 19 AS col2, NULLIF ( 21, + 86 + 62 )
----
-19
21

query I rowsort
SELECT ALL 90 + - 8 col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT - SUM( + + 98 ) + + + 73 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-8473
SELECT - SUM ( + + 98 ) + + + 73 AS col2
----
-25

query I rowsort
SELECT + 73 + 62 + 72 AS col0
----
207

onlyif mysql # DIV for integer division: 
query I rowsort label-8475
SELECT 62 DIV - 5 - - 52 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-8475
SELECT 62 / - 5 - - 52 AS col1
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8476
SELECT ALL + 99 - + 41 * - COALESCE ( COUNT( * ), 46, - 96 + + 67, COUNT( 67 ) ) DIV 51 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-8476
SELECT ALL + 99 - + 41 * - COALESCE ( COUNT ( * ), 46, - 96 + + 67, COUNT ( 67 ) ) / 51 AS col0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8477
SELECT 71 * - - NULLIF ( 12, + ( 1 ) ) + + CAST( NULL AS SIGNED ) * ( 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8477
SELECT 71 * - - NULLIF ( 12, + ( 1 ) ) + + CAST ( NULL AS INTEGER ) * ( 38 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8478
SELECT ALL 35 - 32 DIV - 31 * + - COUNT( * ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-8478
SELECT ALL 35 - 32 / - 31 * + - COUNT ( * ) AS col2
----
34

query I rowsort
SELECT 25 * 18
----
450

onlyif mysql # DIV for integer division: 
query I rowsort label-8480
SELECT DISTINCT 82 DIV + 73
----
1

skipif mysql # not compatible
query I rowsort label-8480
SELECT DISTINCT 82 / + 73
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8481
SELECT COUNT( * ) + 44 * - CASE 11 WHEN - 75 * 53 + COUNT( * ) * + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) THEN 91 * ( - 84 ) + + 98 ELSE + 55 END
----
-2419

skipif mysql # not compatible
query I rowsort label-8481
SELECT COUNT ( * ) + 44 * - CASE 11 WHEN - 75 * 53 + COUNT ( * ) * + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) THEN 91 * ( - 84 ) + + 98 ELSE + 55 END
----
-2419

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8482
SELECT 15 * CAST( NULL AS SIGNED ) / + + 67 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8482
SELECT 15 * CAST ( NULL AS INTEGER ) / + + 67 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT + NULLIF ( - 65, 3 ) * - MIN( ALL 37 ) * 71 + 70 col2
----
170825

skipif mysql # not compatible
query I rowsort label-8483
SELECT + NULLIF ( - 65, 3 ) * - MIN ( ALL 37 ) * 71 + 70 col2
----
170825

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT ALL - SUM( - - 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-8484
SELECT ALL - SUM ( - - 29 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT ( - NULLIF ( COUNT( * ), 80 ) ) * - 74
----
74

skipif mysql # not compatible
query I rowsort label-8485
SELECT ( - NULLIF ( COUNT ( * ), 80 ) ) * - 74
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-8486
SELECT COUNT( * ) * - 57 AS col2, 4 + + COUNT( * ) AS col0
----
-57
5

skipif mysql # not compatible
query II rowsort label-8486
SELECT COUNT ( * ) * - 57 AS col2, 4 + + COUNT ( * ) AS col0
----
-57
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT ALL COUNT( + 37 ) * 94 + - + 97
----
-3

skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL COUNT ( + 37 ) * 94 + - + 97
----
-3

query I rowsort
SELECT DISTINCT 75 * 15
----
1125

query I rowsort
SELECT 65 + CASE - - 11 WHEN - 10 THEN ( 2 ) + 68 ELSE + ( 21 ) END * + 20
----
485

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT DISTINCT - COALESCE ( COUNT( * ), 46 + - 23, + 57 )
----
-1

skipif mysql # not compatible
query I rowsort label-8490
SELECT DISTINCT - COALESCE ( COUNT ( * ), 46 + - 23, + 57 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT 39 * + COUNT( * ) * + 46
----
1794

skipif mysql # not compatible
query I rowsort label-8491
SELECT 39 * + COUNT ( * ) * + 46
----
1794

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT CASE 19 WHEN - + CASE 96 WHEN - 11 THEN + 66 + + 99 * 50 WHEN - 53 THEN NULL END / 91 THEN 81 WHEN + 25 * - 89 THEN + 32 * 15 ELSE NULL END * COUNT( * ) + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-8492
SELECT CASE 19 WHEN - + CASE 96 WHEN - 11 THEN + 66 + + 99 * 50 WHEN - 53 THEN NULL END / 91 THEN 81 WHEN + 25 * - 89 THEN + 32 * 15 ELSE NULL END * COUNT ( * ) + 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8493
SELECT ALL NULLIF ( COUNT( * ), ( - 61 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8493
SELECT ALL NULLIF ( COUNT ( * ), ( - 61 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT + MAX( DISTINCT + - 95 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-8494
SELECT + MAX ( DISTINCT + - 95 ) AS col0
----
-95

query I rowsort
SELECT + 14 + 67 * + - 43
----
-2867

query I rowsort
SELECT 83 * - - 20 - + + 99
----
1561

query I rowsort
SELECT 70 + + + ( 5 ) AS col1
----
75

query I rowsort
SELECT + 97 - 30 - - ( - - 82 )
----
149

query I rowsort
SELECT ALL - CASE + 40 WHEN 14 / - - 17 - - 29 / 97 THEN NULL ELSE + 21 END
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT + 70 * - + 98 * - MIN( DISTINCT + + 0 ) + ( 84 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-8500
SELECT + 70 * - + 98 * - MIN ( DISTINCT + + 0 ) + ( 84 ) AS col0
----
84

query I rowsort
SELECT ALL COALESCE ( - + ( 96 ), - + 98 )
----
-96

query I rowsort
SELECT ALL - COALESCE ( 34, + 80 ) + 18 + 91 col0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8503
SELECT - CASE - 39 WHEN - CAST( - 82 AS SIGNED ) THEN - 30 + + 13 * 28 END + + 74 * ( COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8503
SELECT - CASE - 39 WHEN - CAST ( - 82 AS INTEGER ) THEN - 30 + + 13 * 28 END + + 74 * ( COUNT ( * ) )
----
NULL

query I rowsort
SELECT DISTINCT - - 49 * NULLIF ( 53, + - 92 ) + ( - 27 ) AS col0
----
2570

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT 39 + - + 3 + + MAX( DISTINCT + 11 ) * 71 AS col2
----
817

skipif mysql # not compatible
query I rowsort label-8505
SELECT 39 + - + 3 + + MAX ( DISTINCT + 11 ) * 71 AS col2
----
817

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT DISTINCT + - 37 + + SUM( ALL - - 96 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-8506
SELECT DISTINCT + - 37 + + SUM ( ALL - - 96 ) AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT 32 + + MIN( DISTINCT 30 ) col1
----
62

skipif mysql # not compatible
query I rowsort label-8507
SELECT 32 + + MIN ( DISTINCT 30 ) col1
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8508
SELECT + CASE - CAST( NULL AS SIGNED ) WHEN + 71 * - 70 THEN NULL WHEN - COUNT( + 39 ) + ( 29 + + 46 ) THEN + 64 ELSE NULL END / + 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8508
SELECT + CASE - CAST ( NULL AS INTEGER ) WHEN + 71 * - 70 THEN NULL WHEN - COUNT ( + 39 ) + ( 29 + + 46 ) THEN + 64 ELSE NULL END / + 1 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8509
SELECT DISTINCT + 2 DIV MIN( 29 )
----
0

skipif mysql # not compatible
query I rowsort label-8509
SELECT DISTINCT + 2 / MIN ( 29 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8510
SELECT 38 AS col1, - MAX( DISTINCT 1 ) AS col1
----
38
-1

skipif mysql # not compatible
query II rowsort label-8510
SELECT 38 AS col1, - MAX ( DISTINCT 1 ) AS col1
----
38
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT ALL ( MIN( ALL 27 ) ) - + 48 - + 9 * + 32 AS col2
----
-309

skipif mysql # not compatible
query I rowsort label-8511
SELECT ALL ( MIN ( ALL 27 ) ) - + 48 - + 9 * + 32 AS col2
----
-309

query II rowsort
SELECT 5 * ( + 54 ) AS col0, - 66
----
270
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8513
SELECT DISTINCT - COUNT( * ) * - - CAST( NULL AS SIGNED ) * - 10, - 53 AS col2
----
NULL
-53

skipif mysql # not compatible
query II rowsort label-8513
SELECT DISTINCT - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) * - 10, - 53 AS col2
----
NULL
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT ALL - COUNT( * ) * 47 - - - ( 64 ) + - 87
----
-198

skipif mysql # not compatible
query I rowsort label-8514
SELECT ALL - COUNT ( * ) * 47 - - - ( 64 ) + - 87
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT + MIN( + COALESCE ( + 69, - 5 * 77 * 55 + 28, + 51 ) )
----
69

skipif mysql # not compatible
query I rowsort label-8515
SELECT + MIN ( + COALESCE ( + 69, - 5 * 77 * 55 + 28, + 51 ) )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT ALL COUNT( ALL + 28 ) * - + 68 + - COALESCE ( 82, + 98, 85 )
----
-150

skipif mysql # not compatible
query I rowsort label-8516
SELECT ALL COUNT ( ALL + 28 ) * - + 68 + - COALESCE ( 82, + 98, 85 )
----
-150

query I rowsort
SELECT - 80 * 27 - + COALESCE ( + 6, 27 ) * 58
----
-2508

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8519
SELECT DISTINCT + 1 * 11 + + + CAST( NULL AS DECIMAL ) * + 87 * - - COUNT( * ) * 47
----
NULL

skipif mysql # not compatible
query I rowsort label-8519
SELECT DISTINCT + 1 * 11 + + + CAST ( NULL AS REAL ) * + 87 * - - COUNT ( * ) * 47
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8520
SELECT - 16 DIV 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8520
SELECT - 16 / 61 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT DISTINCT 86 * - 14 + - 17 + + 89 + + COUNT( * ) + ( + 32 + + 2 ) AS col0
----
-1097

skipif mysql # not compatible
query I rowsort label-8521
SELECT DISTINCT 86 * - 14 + - 17 + + 89 + + COUNT ( * ) + ( + 32 + + 2 ) AS col0
----
-1097

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8522
SELECT + COALESCE ( - 41, - - 82 + ( - CASE + 79 WHEN - 74 + COUNT( + COALESCE ( 74, + 8 + - 92 ) ) THEN + 8 DIV COUNT( * ) + 8 WHEN + 31 THEN NULL END ), 65 )
----
-41

skipif mysql # not compatible
query I rowsort label-8522
SELECT + COALESCE ( - 41, - - 82 + ( - CASE + 79 WHEN - 74 + COUNT ( + COALESCE ( 74, + 8 + - 92 ) ) THEN + 8 / COUNT ( * ) + 8 WHEN + 31 THEN NULL END ), 65 )
----
-41

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

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

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

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

query I rowsort
SELECT - + 68 * - 65 + - 79 * - + 37
----
7343

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8526
SELECT ALL MIN( 64 ) + + COUNT( * ) DIV + 2
----
64

skipif mysql # not compatible
query I rowsort label-8526
SELECT ALL MIN ( 64 ) + + COUNT ( * ) / + 2
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8527
SELECT DISTINCT + CASE + 89 WHEN 3 THEN COUNT( * ) * + CASE - COUNT( * ) WHEN - 80 THEN CAST( NULL AS SIGNED ) * + 49 ELSE NULL END * CASE + 3 + + 54 WHEN 4 / - COUNT( * ) THEN - MIN( + 87 ) WHEN - 60 * 73 THEN NULL END - + CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8527
SELECT DISTINCT + CASE + 89 WHEN 3 THEN COUNT ( * ) * + CASE - COUNT ( * ) WHEN - 80 THEN CAST ( NULL AS INTEGER ) * + 49 ELSE NULL END * CASE + 3 + + 54 WHEN 4 / - COUNT ( * ) THEN - MIN ( + 87 ) WHEN - 60 * 73 THEN NULL END - + CAST ( NULL AS INTEGER ) END AS col0
----
NULL

query I rowsort
SELECT ALL 22 * + 81
----
1782

query I rowsort
SELECT DISTINCT 26 + + 97 * 68 + + + 33 + 99 * 59 AS col2
----
12496

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT - + COALESCE ( + 65, 88 + - - COUNT( * ) ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-8530
SELECT - + COALESCE ( + 65, 88 + - - COUNT ( * ) ) AS col1
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8531
SELECT + CAST( NULL AS SIGNED ) - - 27 + + - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-8531
SELECT + CAST ( NULL AS INTEGER ) - - 27 + + - 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT - MAX( + - 9 ) * + 28 + - COUNT( * )
----
251

skipif mysql # not compatible
query I rowsort label-8532
SELECT - MAX ( + - 9 ) * + 28 + - COUNT ( * )
----
251

query II rowsort
SELECT DISTINCT 10 AS col0, - 32 AS col2
----
10
-32

query I rowsort
SELECT + 41 + + 46
----
87

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

query I rowsort
SELECT ALL + ( COALESCE ( 81, + 95 * + 72 ) ) - 73 AS col0
----
8

query I rowsort
SELECT - - 67 * - 62 AS col1
----
-4154

onlyif mysql # DIV for integer division: 
query II rowsort label-8538
SELECT ALL + 8 * - 41 AS col2, + 4 + - 91 DIV + 9
----
-328
-6

skipif mysql # not compatible
query II rowsort label-8538
SELECT ALL + 8 * - 41 AS col2, + 4 + - 91 / + 9
----
-328
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT - 18 - COUNT( * ) col0
----
-19

skipif mysql # not compatible
query I rowsort label-8539
SELECT - 18 - COUNT ( * ) col0
----
-19

query I rowsort
SELECT + 30 * + 96 AS col1
----
2880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8541
SELECT - 94 + + COUNT( * ) * - CASE - CASE - 47 WHEN - ( ( 21 ) ) * - CAST( NULL AS SIGNED ) THEN NULL ELSE AVG ( - 64 ) + + 12 END WHEN 22 THEN NULL WHEN + COUNT( * ) * - 35 THEN - 82 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8541
SELECT - 94 + + COUNT ( * ) * - CASE - CASE - 47 WHEN - ( ( 21 ) ) * - CAST ( NULL AS INTEGER ) THEN NULL ELSE AVG ( - 64 ) + + 12 END WHEN 22 THEN NULL WHEN + COUNT ( * ) * - 35 THEN - 82 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT ALL COALESCE ( - 69, MAX( - 67 ) ) col2
----
-69

skipif mysql # not compatible
query I rowsort label-8542
SELECT ALL COALESCE ( - 69, MAX ( - 67 ) ) col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT - 82 + 66 + - 38 + CASE - 74 WHEN - - 0 / + 10 + - 22 THEN - CASE 54 WHEN 41 - 31 * 79 THEN NULL ELSE CASE + COUNT( * ) WHEN COUNT( * ) + + NULLIF ( 14, + 81 + - 36 * + COUNT( * ) ) * + COUNT( * ) THEN + COUNT( * ) END * - 63 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-8543
SELECT - 82 + 66 + - 38 + CASE - 74 WHEN - - 0 / + 10 + - 22 THEN - CASE 54 WHEN 41 - 31 * 79 THEN NULL ELSE CASE + COUNT ( * ) WHEN COUNT ( * ) + + NULLIF ( 14, + 81 + - 36 * + COUNT ( * ) ) * + COUNT ( * ) THEN + COUNT ( * ) END * - 63 END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT - 58 + - 13 + + + 91 + - COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-8544
SELECT - 58 + - 13 + + + 91 + - COUNT ( * )
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8545
SELECT ALL - NULLIF ( 52, 38 * COUNT( * ) ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8545
SELECT ALL - NULLIF ( 52, 38 * COUNT ( * ) ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 76 * - 58 * 23
----
101384

query I rowsort
SELECT - 14 * - 8 + - 31
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-8548
SELECT ALL + 36 DIV - 63
----
0

skipif mysql # not compatible
query I rowsort label-8548
SELECT ALL + 36 / - 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT - CASE - 5 WHEN - - 41 - MIN( DISTINCT - + 8 ) + - AVG ( DISTINCT 38 ) / - 9 THEN NULL WHEN + 82 THEN 82 END / - 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8549
SELECT - CASE - 5 WHEN - - 41 - MIN ( DISTINCT - + 8 ) + - AVG ( DISTINCT 38 ) / - 9 THEN NULL WHEN + 82 THEN 82 END / - 24 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8550
SELECT 46 DIV 15 + + - COUNT( * ) * + - MAX( DISTINCT - ( - + 4 ) ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-8550
SELECT 46 / 15 + + - COUNT ( * ) * + - MAX ( DISTINCT - ( - + 4 ) ) AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT ALL 82 * - ( + 12 ) * COUNT( * ) * ( - - CASE + COUNT( * ) WHEN 29 * 41 THEN 91 * - 93 ELSE NULL END ) + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-8551
SELECT ALL 82 * - ( + 12 ) * COUNT ( * ) * ( - - CASE + COUNT ( * ) WHEN 29 * 41 THEN 91 * - 93 ELSE NULL END ) + 2
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( + + 23, - ( + 2 ), + 95 + + 71 ) * + 3 + ( 33 ) AS col1
----
102

query I rowsort
SELECT + COALESCE ( + 59, + 12 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT CASE + COUNT( * ) WHEN 96 THEN NULL ELSE - + 78 + - 33 END * - 42 * 56 + 53
----
261125

skipif mysql # not compatible
query I rowsort label-8554
SELECT CASE + COUNT ( * ) WHEN 96 THEN NULL ELSE - + 78 + - 33 END * - 42 * 56 + 53
----
261125

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT - 0 * + SUM( DISTINCT - 10 ) * 75 + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8555
SELECT - 0 * + SUM ( DISTINCT - 10 ) * 75 + - COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT - COALESCE ( + COALESCE ( 75, 38 * - 95 + - - 74 - - 86 * - 37, - 20 ), 18 ) + - 62
----
-137

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8557
SELECT DISTINCT + 67 * - CASE + 76 WHEN - 21 THEN - - 94 ELSE NULL END / + - COALESCE ( 34, + CAST( NULL AS DECIMAL ) * + 95 + 4, - COUNT( * ) + - 19 * 26 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8557
SELECT DISTINCT + 67 * - CASE + 76 WHEN - 21 THEN - - 94 ELSE NULL END / + - COALESCE ( 34, + CAST ( NULL AS REAL ) * + 95 + 4, - COUNT ( * ) + - 19 * 26 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8558
SELECT ALL - 29 DIV - 57 col2
----
0

skipif mysql # not compatible
query I rowsort label-8558
SELECT ALL - 29 / - 57 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8559
SELECT + - COUNT( * ) + + 74 DIV + 37
----
1

skipif mysql # not compatible
query I rowsort label-8559
SELECT + - COUNT ( * ) + + 74 / + 37
----
1

query I rowsort
SELECT - - 79 * + NULLIF ( 85, 47 * - 51 + 0 )
----
6715

onlyif mysql # aggregate syntax: 
query I rowsort label-8561
SELECT + 12 + + ( - - NULLIF ( COUNT( * ), - + 70 ) ) + - ( COUNT( * ) ) * + 89 * - 5
----
458

skipif mysql # not compatible
query I rowsort label-8561
SELECT + 12 + + ( - - NULLIF ( COUNT ( * ), - + 70 ) ) + - ( COUNT ( * ) ) * + 89 * - 5
----
458

query I rowsort
SELECT COALESCE ( 11, - - 27 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT + 26 + + SUM( ALL 4 )
----
30

skipif mysql # not compatible
query I rowsort label-8563
SELECT + 26 + + SUM ( ALL 4 )
----
30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8564
SELECT ALL CAST( NULL AS DECIMAL ) * + 63 - - 26 * 51 + - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-8564
SELECT ALL CAST ( NULL AS REAL ) * + 63 - - 26 * 51 + - 81
----
NULL

query I rowsort
SELECT ALL - 33 * 31 - + + 59 AS col2
----
-1082

query II rowsort
SELECT + - 22 + - - 53 AS col2, 58 col0
----
31
58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT ALL MAX( - + 64 ) col2
----
-64

skipif mysql # not compatible
query I rowsort label-8568
SELECT ALL MAX ( - + 64 ) col2
----
-64

query I rowsort
SELECT + + NULLIF ( - 69, + + 94 ) + - - 77
----
8

query II rowsort
SELECT - ( - + 46 ), 56 col1
----
46
56

query I rowsort
SELECT - 71 + + - 7 AS col1
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8572
SELECT ALL CAST( + 1 AS SIGNED ) + + NULLIF ( + 71, + 77 - + 92 )
----
72

skipif mysql # not compatible
query I rowsort label-8572
SELECT ALL CAST ( + 1 AS INTEGER ) + + NULLIF ( + 71, + 77 - + 92 )
----
72

query I rowsort
SELECT DISTINCT NULLIF ( + - 28, - 13 * + 98 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT + MAX( DISTINCT 57 ) * - + 56
----
-3192

skipif mysql # not compatible
query I rowsort label-8574
SELECT + MAX ( DISTINCT 57 ) * - + 56
----
-3192

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

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

query II rowsort
SELECT ALL + 32 + 67 AS col0, ( - 10 )
----
99
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT ALL - SUM( - 22 ) + - 70 * - 5 * + + 16 * - COUNT( * ) * + 93 AS col1
----
-520778

skipif mysql # not compatible
query I rowsort label-8577
SELECT ALL - SUM ( - 22 ) + - 70 * - 5 * + + 16 * - COUNT ( * ) * + 93 AS col1
----
-520778

query I rowsort
SELECT ALL - 33 + + + 81 AS col0
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8579
SELECT 65 * - MAX( DISTINCT CAST( NULL AS SIGNED ) ) * ( MIN( ALL + - 59 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8579
SELECT 65 * - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) * ( MIN ( ALL + - 59 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT MAX( - 12 ) * - 59 - - MIN( DISTINCT 44 ) AS col2
----
752

skipif mysql # not compatible
query I rowsort label-8580
SELECT MAX ( - 12 ) * - 59 - - MIN ( DISTINCT 44 ) AS col2
----
752

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT 38 + 6 * 1 + 44 * + 49 * - - COUNT( * ) AS col0
----
2200

skipif mysql # not compatible
query I rowsort label-8581
SELECT 38 + 6 * 1 + 44 * + 49 * - - COUNT ( * ) AS col0
----
2200

query I rowsort
SELECT ALL - NULLIF ( + 78, + 56 )
----
-78

query I rowsort
SELECT ALL - 80 - + 82 AS col2
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT COUNT( * ) * + 90 + - 46 * - + 79 * + ( + + 1 ) - + 73 * 5
----
3359

skipif mysql # not compatible
query I rowsort label-8584
SELECT COUNT ( * ) * + 90 + - 46 * - + 79 * + ( + + 1 ) - + 73 * 5
----
3359

query I rowsort
SELECT + ( 6 ) * - 6 + - 34 col0
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8586
SELECT - - CAST( + 97 AS SIGNED ) * + CASE 2 WHEN 47 * 69 THEN - 88 WHEN - 71 * - COALESCE ( 64, + 59 ) - - 30 * - COUNT( 21 ) THEN + 11 END - 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8586
SELECT - - CAST ( + 97 AS INTEGER ) * + CASE 2 WHEN 47 * 69 THEN - 88 WHEN - 71 * - COALESCE ( 64, + 59 ) - - 30 * - COUNT ( 21 ) THEN + 11 END - 34 AS col2
----
NULL

query I rowsort
SELECT 19 * + 8 + 56 - - 81
----
289

query I rowsort
SELECT DISTINCT + + 30 * - - 41 * + - 84 AS col0
----
-103320

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

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

query I rowsort
SELECT - 1 * 90 + - + 3
----
-93

query I rowsort
SELECT + 9 * + ( 3 ) + 39 AS col2
----
66

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

skipif mysql # not compatible
query I rowsort label-8592
SELECT DISTINCT + - CAST ( NULL AS REAL ) * + + 52
----
NULL

query I rowsort
SELECT ALL NULLIF ( 56, - + 24 ) AS col0
----
56

query I rowsort
SELECT DISTINCT + NULLIF ( + 91, - 39 )
----
91

query I rowsort
SELECT 42 * - 35
----
-1470

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8596
SELECT 86 * - 96 * - + 85 DIV + COUNT( * ) - 75 AS col2
----
701685

skipif mysql # not compatible
query I rowsort label-8596
SELECT 86 * - 96 * - + 85 / + COUNT ( * ) - 75 AS col2
----
701685

onlyif mysql # aggregate syntax: 
query I rowsort label-8597
SELECT 73 - + - 70 + 90 + 97 * 12 + COUNT( * )
----
1398

skipif mysql # not compatible
query I rowsort label-8597
SELECT 73 - + - 70 + 90 + 97 * 12 + COUNT ( * )
----
1398

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8598
SELECT DISTINCT 18 DIV + + COALESCE ( + + 19, - 87 * + COUNT( * ) ) * - 69 * 38
----
0

skipif mysql # not compatible
query I rowsort label-8598
SELECT DISTINCT 18 / + + COALESCE ( + + 19, - 87 * + COUNT ( * ) ) * - 69 * 38
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8599
SELECT ALL ( - - 49 ) + + CAST( + + 88 AS SIGNED ) DIV - 97 - 73 + - + 2 * + - 67
----
110

skipif mysql # not compatible
query I rowsort label-8599
SELECT ALL ( - - 49 ) + + CAST ( + + 88 AS INTEGER ) / - 97 - 73 + - + 2 * + - 67
----
110

query II rowsort
SELECT - 67 AS col2, 93 AS col2
----
-67
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8601
SELECT 63 DIV 29 DIV 28, 55 * - COUNT( * ) col0
----
0
-55

skipif mysql # not compatible
query II rowsort label-8601
SELECT 63 / 29 / 28, 55 * - COUNT ( * ) col0
----
0
-55

query I rowsort
SELECT ALL 71 * ( - 1 ) * 6 col1
----
-426

query I rowsort
SELECT DISTINCT - ( 26 ) + + - 89 - + 9 + + 66 AS col0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-8604
SELECT 53 DIV + 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8604
SELECT 53 / + 83 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT ALL 17 + ( - 88 ) * + ( + COUNT( * ) ) + 31 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-8605
SELECT ALL 17 + ( - 88 ) * + ( + COUNT ( * ) ) + 31 AS col1
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8606
SELECT DISTINCT CAST( - COUNT( + 45 ) AS SIGNED ) + - + ( + 95 ) * - + 23 AS col2, + 29 * SUM( DISTINCT 32 ) * - 11 - + COUNT( * )
----
2184
-10209

skipif mysql # not compatible
query II rowsort label-8606
SELECT DISTINCT CAST ( - COUNT ( + 45 ) AS INTEGER ) + - + ( + 95 ) * - + 23 AS col2, + 29 * SUM ( DISTINCT 32 ) * - 11 - + COUNT ( * )
----
2184
-10209

onlyif mysql # aggregate syntax: 
query I rowsort label-8607
SELECT COUNT( * ) + - 13 * - 16 AS col2
----
209

skipif mysql # not compatible
query I rowsort label-8607
SELECT COUNT ( * ) + - 13 * - 16 AS col2
----
209

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8608
SELECT CAST( + 81 AS SIGNED ) - 27 + + 4
----
58

skipif mysql # not compatible
query I rowsort label-8608
SELECT CAST ( + 81 AS INTEGER ) - 27 + + 4
----
58

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

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

query II rowsort
SELECT - 40, 99 AS col0
----
-40
99

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

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

query II rowsort
SELECT - 43, 89 col2
----
-43
89

query II rowsort
SELECT ( 27 ) + + 12 AS col2, 35 AS col2
----
39
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT MIN( - 34 ) + 9 + 68 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-8614
SELECT MIN ( - 34 ) + 9 + 68 AS col2
----
43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT ALL 27 - + - NULLIF ( - - COALESCE ( - 0, + CASE + + COUNT( * ) WHEN COUNT( * ) / + - 93 THEN NULL WHEN + SUM( DISTINCT - 9 ) * + 12 THEN + 97 WHEN 63 / + 60 THEN NULL END * MIN( ALL 34 * - 53 ), - 41 + COUNT( * ) ), ( 97 ) * - 99 ) * 31 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-8616
SELECT ALL 27 - + - NULLIF ( - - COALESCE ( - 0, + CASE + + COUNT ( * ) WHEN COUNT ( * ) / + - 93 THEN NULL WHEN + SUM ( DISTINCT - 9 ) * + 12 THEN + 97 WHEN 63 / + 60 THEN NULL END * MIN ( ALL 34 * - 53 ), - 41 + COUNT ( * ) ), ( 97 ) * - 99 ) * 31 AS col1
----
27

query I rowsort
SELECT 84 * + 1
----
84

query I rowsort
SELECT DISTINCT - 2 * 65 AS col2
----
-130

query I rowsort
SELECT DISTINCT + 51 - - 51 AS col2
----
102

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8621
SELECT ALL CASE + 88 WHEN + COUNT( ALL - + 58 ) THEN 65 * 8 + + - CAST( NULL AS SIGNED ) * MAX( + 45 ) END * - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-8621
SELECT ALL CASE + 88 WHEN + COUNT ( ALL - + 58 ) THEN 65 * 8 + + - CAST ( NULL AS INTEGER ) * MAX ( + 45 ) END * - 28
----
NULL

query I rowsort
SELECT - 58 * 20 * + COALESCE ( - 61, + - 97 * + 4 )
----
70760

query II rowsort
SELECT + 82 AS col0, 3 * - 2
----
82
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8624
SELECT COUNT( * ) DIV + - SUM( ALL ( + 99 ) ) DIV 20 * COALESCE ( - 60, - CAST( NULL AS SIGNED ) ) + + 30 * + 47 col0
----
1410

skipif mysql # not compatible
query I rowsort label-8624
SELECT COUNT ( * ) / + - SUM ( ALL ( + 99 ) ) / 20 * COALESCE ( - 60, - CAST ( NULL AS INTEGER ) ) + + 30 * + 47 col0
----
1410

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT CASE - COUNT( * ) WHEN + + 72 THEN - 69 ELSE + 28 * + 75 END * + - 95 * + 44
----
-8778000

skipif mysql # not compatible
query I rowsort label-8625
SELECT CASE - COUNT ( * ) WHEN + + 72 THEN - 69 ELSE + 28 * + 75 END * + - 95 * + 44
----
-8778000

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT COUNT( * ) * 95 + + COALESCE ( - 21, - 99 * - 95, + 75 ) * + 21 AS col1
----
-346

skipif mysql # not compatible
query I rowsort label-8626
SELECT COUNT ( * ) * 95 + + COALESCE ( - 21, - 99 * - 95, + 75 ) * + 21 AS col1
----
-346

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8627
SELECT 32 / 17 / - CASE + CAST( NULL AS DECIMAL ) WHEN - 56 THEN NULL WHEN 37 THEN + - 1 ELSE NULL END + - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-8627
SELECT 32 / 17 / - CASE + CAST ( NULL AS REAL ) WHEN - 56 THEN NULL WHEN 37 THEN + - 1 ELSE NULL END + - 95
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8628
SELECT ALL - 85 * + ( + + CAST( + + SUM( DISTINCT - 29 ) AS SIGNED ) ) col2
----
2465

skipif mysql # not compatible
query I rowsort label-8628
SELECT ALL - 85 * + ( + + CAST ( + + SUM ( DISTINCT - 29 ) AS INTEGER ) ) col2
----
2465

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8629
SELECT DISTINCT - - 23 DIV - NULLIF ( 31, - - 89 DIV + SUM( ALL + 29 ) - + ( - + ( - 52 ) ) ) * + 54 col1
----
0

skipif mysql # not compatible
query I rowsort label-8629
SELECT DISTINCT - - 23 / - NULLIF ( 31, - - 89 / + SUM ( ALL + 29 ) - + ( - + ( - 52 ) ) ) * + 54 col1
----
0

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

query I rowsort
SELECT DISTINCT - 83 + + - COALESCE ( + 58, - - 2 + + + 38 * - + 61 + + 40 * - - 8 * - 55 + CASE - 42 WHEN 84 + - 68 * 25 THEN - ( - 83 ) ELSE NULL END, + ( 73 ) ) AS col2
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT COALESCE ( - 14, + + 82 * 91 * 64, + + 49 * + SUM( DISTINCT 70 ) + 43 ) + + MAX( 85 ) * 95
----
8061

skipif mysql # not compatible
query I rowsort label-8632
SELECT COALESCE ( - 14, + + 82 * 91 * 64, + + 49 * + SUM ( DISTINCT 70 ) + 43 ) + + MAX ( 85 ) * 95
----
8061

query I rowsort
SELECT 88 + - - 90 col2
----
178

query I rowsort
SELECT DISTINCT - 95 + + 1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT ALL NULLIF ( - 22, + 34 + 33 - + 28 + CASE - + 52 WHEN - ( + COUNT( * ) ) THEN 91 * 90 + - 79 WHEN - 18 THEN NULL END + - MIN( 83 - 95 ) * + 22 / - 53 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-8635
SELECT ALL NULLIF ( - 22, + 34 + 33 - + 28 + CASE - + 52 WHEN - ( + COUNT ( * ) ) THEN 91 * 90 + - 79 WHEN - 18 THEN NULL END + - MIN ( 83 - 95 ) * + 22 / - 53 ) AS col1
----
-22

query II rowsort
SELECT - 36 * + 46 AS col1, + 72
----
-1656
72

query II rowsort
SELECT DISTINCT + 23 + 68 AS col0, + 3 col2
----
91
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT DISTINCT 65 + + 68 + - - 90 - 99 + + 17 * 62 + 40 + + - 19 * + MIN( DISTINCT 89 ) AS col1
----
-473

skipif mysql # not compatible
query I rowsort label-8638
SELECT DISTINCT 65 + + 68 + - - 90 - 99 + + 17 * 62 + 40 + + - 19 * + MIN ( DISTINCT 89 ) AS col1
----
-473

query II rowsort
SELECT ALL 23 + - + 2 AS col0, 63 AS col2
----
21
63

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8640
SELECT - NULLIF ( - + 93, - 77 * - + 33 + 88 ) + COUNT( * ) - + - CAST( NULL AS DECIMAL ), + 1 AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8640
SELECT - NULLIF ( - + 93, - 77 * - + 33 + 88 ) + COUNT ( * ) - + - CAST ( NULL AS REAL ), + 1 AS col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT ALL COUNT( + - 74 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8641
SELECT ALL COUNT ( + - 74 ) col1
----
1

query I rowsort
SELECT - 0 * ( 40 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT DISTINCT NULLIF ( - - MIN( - + 74 ), CASE + + SUM( - 22 ) WHEN 20 + COUNT( * ) THEN + 30 * 97 WHEN 37 * 64 - 63 THEN NULL ELSE NULL END + 89 )
----
-74

skipif mysql # not compatible
query I rowsort label-8643
SELECT DISTINCT NULLIF ( - - MIN ( - + 74 ), CASE + + SUM ( - 22 ) WHEN 20 + COUNT ( * ) THEN + 30 * 97 WHEN 37 * 64 - 63 THEN NULL ELSE NULL END + 89 )
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8644
SELECT - 69 * + + CASE 7 WHEN + 71 + + COUNT( * ) / - 95 + - + MIN( DISTINCT - 92 ) * ( - 63 ) THEN - 0 - + 10 * CAST( - 49 AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8644
SELECT - 69 * + + CASE 7 WHEN + 71 + + COUNT ( * ) / - 95 + - + MIN ( DISTINCT - 92 ) * ( - 63 ) THEN - 0 - + 10 * CAST ( - 49 AS INTEGER ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT + MIN( DISTINCT 96 ) * ( - 40 ) AS col0
----
-3840

skipif mysql # not compatible
query I rowsort label-8645
SELECT + MIN ( DISTINCT 96 ) * ( - 40 ) AS col0
----
-3840

onlyif mysql # DIV for integer division: 
query I rowsort label-8646
SELECT DISTINCT - 33 DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-8646
SELECT DISTINCT - 33 / + 85
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8648
SELECT DISTINCT CASE + - 41 WHEN 19 * + + NULLIF ( - 43, + - 49 ) - + - 69 * 57 THEN CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8648
SELECT DISTINCT CASE + - 41 WHEN 19 * + + NULLIF ( - 43, + - 49 ) - + - 69 * 57 THEN CAST ( NULL AS INTEGER ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT ALL + 15 - NULLIF ( - COUNT( * ), - 95 ) col2
----
16

skipif mysql # not compatible
query I rowsort label-8649
SELECT ALL + 15 - NULLIF ( - COUNT ( * ), - 95 ) col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT DISTINCT NULLIF ( + 38, SUM( 92 ) / - 44 * COUNT( * ) * + + ( + 62 ) ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-8650
SELECT DISTINCT NULLIF ( + 38, SUM ( 92 ) / - 44 * COUNT ( * ) * + + ( + 62 ) ) AS col2
----
38

query I rowsort
SELECT ALL 10 - 81 AS col2
----
-71

query I rowsort
SELECT + 16 * - + 11 AS col2
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT ALL 21 * 41 * + COUNT( * )
----
861

skipif mysql # not compatible
query I rowsort label-8653
SELECT ALL 21 * 41 * + COUNT ( * )
----
861

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8654
SELECT + 3 DIV - 69 col0, - 85 * NULLIF ( - + NULLIF ( CAST( + + 90 AS SIGNED ), - - 51 ), 47 ) - - 91 AS col0
----
0
7741

skipif mysql # not compatible
query II rowsort label-8654
SELECT + 3 / - 69 col0, - 85 * NULLIF ( - + NULLIF ( CAST ( + + 90 AS INTEGER ), - - 51 ), 47 ) - - 91 AS col0
----
0
7741

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT DISTINCT 77 * - - ( - - 93 ) * - CASE CASE + 76 WHEN + - 68 THEN 0 * - SUM( ALL 92 ) WHEN + 96 THEN - 79 END WHEN + COUNT( * ) THEN NULL WHEN 90 THEN NULL ELSE - 30 END + 8
----
214838

skipif mysql # not compatible
query I rowsort label-8655
SELECT DISTINCT 77 * - - ( - - 93 ) * - CASE CASE + 76 WHEN + - 68 THEN 0 * - SUM ( ALL 92 ) WHEN + 96 THEN - 79 END WHEN + COUNT ( * ) THEN NULL WHEN 90 THEN NULL ELSE - 30 END + 8
----
214838

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT DISTINCT + + MAX( DISTINCT - 91 ) col2
----
-91

skipif mysql # not compatible
query I rowsort label-8656
SELECT DISTINCT + + MAX ( DISTINCT - 91 ) col2
----
-91

query I rowsort
SELECT + + 66 * + 92
----
6072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8658
SELECT + + 51 * + 97 - - 93 - - 26 + CASE + 32 WHEN - 73 + COUNT( * ) THEN + - 57 + + 47 * + CAST( COUNT( * ) AS SIGNED ) WHEN + 96 THEN 86 ELSE + 23 - - COUNT( * ) * + 64 END * 99
----
13679

skipif mysql # not compatible
query I rowsort label-8658
SELECT + + 51 * + 97 - - 93 - - 26 + CASE + 32 WHEN - 73 + COUNT ( * ) THEN + - 57 + + 47 * + CAST ( COUNT ( * ) AS INTEGER ) WHEN + 96 THEN 86 ELSE + 23 - - COUNT ( * ) * + 64 END * 99
----
13679

query I rowsort
SELECT CASE - 17 WHEN - 56 THEN NULL WHEN 68 + - 80 THEN + 22 ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8660
SELECT + 92 * 40 * + + COUNT( * ) * 96 AS col2
----
353280

skipif mysql # not compatible
query I rowsort label-8660
SELECT + 92 * 40 * + + COUNT ( * ) * 96 AS col2
----
353280

query II rowsort
SELECT ALL - 56 * 55 AS col2, - 79 AS col0
----
-3080
-79

query I rowsort
SELECT ALL 89 * 66 AS col1
----
5874

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

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

query I rowsort
SELECT + - 34 * 90 + 88 col0
----
-2972

query I rowsort
SELECT + + ( - - 98 ) AS col0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8666
SELECT CASE - + 87 WHEN 35 * - COALESCE ( CAST( NULL AS SIGNED ), COUNT( * ) * + 84 * - 93 + + 90, - CAST( NULL AS SIGNED ) ) THEN 31 WHEN - CASE - COUNT( * ) WHEN 95 + CAST( + 29 AS SIGNED ) * 54 THEN + 54 * 97 WHEN + 83 * 36 THEN 73 END THEN NULL WHEN COUNT( * ) THEN NULL ELSE + NULLIF ( COALESCE ( 97, 92 * + 42 ), COUNT( * ) ) END AS col1
----
97

skipif mysql # not compatible
query I rowsort label-8666
SELECT CASE - + 87 WHEN 35 * - COALESCE ( CAST ( NULL AS INTEGER ), COUNT ( * ) * + 84 * - 93 + + 90, - CAST ( NULL AS INTEGER ) ) THEN 31 WHEN - CASE - COUNT ( * ) WHEN 95 + CAST ( + 29 AS INTEGER ) * 54 THEN + 54 * 97 WHEN + 83 * 36 THEN 73 END THEN NULL WHEN COUNT ( * ) THEN NULL ELSE + NULLIF ( COALESCE ( 97, 92 * + 42 ), COUNT ( * ) ) END AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT ALL - 21 * + 79 + + COUNT( * ) + + NULLIF ( + 19, - 97 * 79 + + 72 * - 25 ) * - ( - 51 + 46 )
----
-1563

skipif mysql # not compatible
query I rowsort label-8667
SELECT ALL - 21 * + 79 + + COUNT ( * ) + + NULLIF ( + 19, - 97 * 79 + + 72 * - 25 ) * - ( - 51 + 46 )
----
-1563

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8668
SELECT - - MAX( ALL - CAST( 64 AS SIGNED ) ) DIV - + 9 + - - 47, + 70 AS col1
----
54
70

skipif mysql # not compatible
query II rowsort label-8668
SELECT - - MAX ( ALL - CAST ( 64 AS INTEGER ) ) / - + 9 + - - 47, + 70 AS col1
----
54
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT + SUM( - 61 ) * COUNT( * ) + + 77 - + 62
----
-46

skipif mysql # not compatible
query I rowsort label-8669
SELECT + SUM ( - 61 ) * COUNT ( * ) + + 77 - + 62
----
-46

query I rowsort
SELECT ALL + + 15 * - 41 + + + 4 + + 88 * + 96 + 84 * 47
----
11785

onlyif mysql # DIV for integer division: 
query I rowsort label-8671
SELECT - 36 DIV - 25 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8671
SELECT - 36 / - 25 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8672
SELECT DISTINCT - 97 * + ( + - 97 ) + - + 37 DIV - - 91
----
9409

skipif mysql # not compatible
query I rowsort label-8672
SELECT DISTINCT - 97 * + ( + - 97 ) + - + 37 / - - 91
----
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT DISTINCT COUNT( ALL 67 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8673
SELECT DISTINCT COUNT ( ALL 67 ) AS col0
----
1

query I rowsort
SELECT ALL 54 * 9 + + 99 * + 53 AS col2
----
5733

query I rowsort
SELECT + 76 + 80 AS col2
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8676
SELECT ALL - 46 + - - 45 - MIN( DISTINCT - 61 ) + 47 - + + ( 94 ) * - COUNT( * ) * + 71 * + CAST( 51 AS SIGNED ) AS col1
----
340481

skipif mysql # not compatible
query I rowsort label-8676
SELECT ALL - 46 + - - 45 - MIN ( DISTINCT - 61 ) + 47 - + + ( 94 ) * - COUNT ( * ) * + 71 * + CAST ( 51 AS INTEGER ) AS col1
----
340481

query I rowsort
SELECT - 94 + - + CASE 12 WHEN - + ( ( - 70 ) ) THEN + + NULLIF ( + 72, 83 + CASE - 66 WHEN 72 THEN NULLIF ( 22, + ( - 84 ) + + 41 ) ELSE NULL END ) ELSE 62 END AS col0
----
-156

query II rowsort
SELECT 3 AS col1, + 92 AS col1
----
3
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT - COUNT( ALL - - ( + 17 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8679
SELECT - COUNT ( ALL - - ( + 17 ) ) AS col1
----
-1

query I rowsort
SELECT DISTINCT ( 15 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT ALL - 47 - - ( + SUM( DISTINCT - 82 ) ) AS col0
----
-129

skipif mysql # not compatible
query I rowsort label-8681
SELECT ALL - 47 - - ( + SUM ( DISTINCT - 82 ) ) AS col0
----
-129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8682
SELECT - CAST( NULL AS SIGNED ) + - 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8682
SELECT - CAST ( NULL AS INTEGER ) + - 85 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 29 * - 51 col0
----
1479

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT ALL CASE 83 WHEN COUNT( * ) + + + SUM( - 64 ) + + - 95 - 10 THEN + 95 ELSE - 9 END col2
----
-9

skipif mysql # not compatible
query I rowsort label-8684
SELECT ALL CASE 83 WHEN COUNT ( * ) + + + SUM ( - 64 ) + + - 95 - 10 THEN + 95 ELSE - 9 END col2
----
-9

query II rowsort
SELECT ALL 50 AS col1, - 50 * + + 96 + 74 + 24
----
50
-4702

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT - NULLIF ( - - 49, - COALESCE ( + COUNT( DISTINCT + 66 ), - 56 + - - COUNT( * ) * - SUM( + - 81 ), COALESCE ( 53, 99 ) ) ) - 9
----
-58

skipif mysql # not compatible
query I rowsort label-8686
SELECT - NULLIF ( - - 49, - COALESCE ( + COUNT ( DISTINCT + 66 ), - 56 + - - COUNT ( * ) * - SUM ( + - 81 ), COALESCE ( 53, 99 ) ) ) - 9
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT - COUNT( * ) * + 26 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-8687
SELECT - COUNT ( * ) * + 26 AS col2
----
-26

query I rowsort
SELECT - 86 + + 44 AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT - CASE + ( - 91 ) WHEN - 19 THEN NULL ELSE 83 + + 86 - + 22 END * + + 21 + - + COUNT( - 26 ) * - 30
----
-3057

skipif mysql # not compatible
query I rowsort label-8689
SELECT - CASE + ( - 91 ) WHEN - 19 THEN NULL ELSE 83 + + 86 - + 22 END * + + 21 + - + COUNT ( - 26 ) * - 30
----
-3057

onlyif mysql # DIV for integer division: 
query I rowsort label-8690
SELECT + 68 + CASE 77 WHEN 12 THEN - 60 ELSE 17 * + 12 - - - 36 + 64 DIV - 88 END AS col1
----
236

skipif mysql # not compatible
query I rowsort label-8690
SELECT + 68 + CASE 77 WHEN 12 THEN - 60 ELSE 17 * + 12 - - - 36 + 64 / - 88 END AS col1
----
236

onlyif mysql # DIV for integer division: 
query I rowsort label-8691
SELECT - 40 DIV + + 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8691
SELECT - 40 / + + 83 AS col1
----
0

query I rowsort
SELECT + 10 * + - 12 AS col1
----
-120

query I rowsort
SELECT + + 32 + - - 19
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-8694
SELECT - MAX( DISTINCT 5 ) + + 63 AS col0, COUNT( * )
----
58
1

skipif mysql # not compatible
query II rowsort label-8694
SELECT - MAX ( DISTINCT 5 ) + + 63 AS col0, COUNT ( * )
----
58
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8695
SELECT ALL + 40 DIV - - 34 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8695
SELECT ALL + 40 / - - 34 AS col1
----
1

query I rowsort
SELECT - ( + 87 ) * + - 11 + 96
----
1053

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT ALL + MIN( DISTINCT 0 )
----
0

skipif mysql # not compatible
query I rowsort label-8697
SELECT ALL + MIN ( DISTINCT 0 )
----
0

query I rowsort
SELECT DISTINCT + NULLIF ( 19, 68 * + 72 * - 61 ) * - 30
----
-570

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT ALL + + CASE + 52 WHEN + - 78 * - + 14 * + + 87 * - COUNT( * ) THEN + 26 * - COUNT( 72 ) * 81 + AVG ( + 99 ) * - 24 WHEN ( + 98 ) / - MAX( ALL 40 ) + - COALESCE ( 73 + ( COUNT( * ) ), + 84 ) * + 74 THEN - 53 + - 32 * ( - 62 ) ELSE NULL END * - 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8699
SELECT ALL + + CASE + 52 WHEN + - 78 * - + 14 * + + 87 * - COUNT ( * ) THEN + 26 * - COUNT ( 72 ) * 81 + AVG ( + 99 ) * - 24 WHEN ( + 98 ) / - MAX ( ALL 40 ) + - COALESCE ( 73 + ( COUNT ( * ) ), + 84 ) * + 74 THEN - 53 + - 32 * ( - 62 ) ELSE NULL END * - 14 AS col2
----
NULL

query I rowsort
SELECT + 12 * + 59 AS col1
----
708

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT + - 5 + + COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-8701
SELECT + - 5 + + COUNT ( * )
----
-4

query I rowsort
SELECT CASE - 25 WHEN + - 68 + - + 12 * - + 1 + + 54 THEN - 89 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8703
SELECT + COALESCE ( + - 9, - 71 + - 41 + + COUNT( * ) + + - 38, + 30 * + 79 ) * - + COUNT( * ) * - 49 * CAST( 68 AS SIGNED ) AS col2
----
-29988

skipif mysql # not compatible
query I rowsort label-8703
SELECT + COALESCE ( + - 9, - 71 + - 41 + + COUNT ( * ) + + - 38, + 30 * + 79 ) * - + COUNT ( * ) * - 49 * CAST ( 68 AS INTEGER ) AS col2
----
-29988

onlyif mysql # DIV for integer division: 
query I rowsort label-8704
SELECT ALL - + CASE + 64 WHEN - + 6 + - 21 THEN NULL WHEN - 88 THEN NULL ELSE - 2 END DIV + 53 + + + ( + 13 ) + + - 25 - 60 DIV 13 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-8704
SELECT ALL - + CASE + 64 WHEN - + 6 + - 21 THEN NULL WHEN - 88 THEN NULL ELSE - 2 END / + 53 + + + ( + 13 ) + + - 25 - 60 / 13 AS col1
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-8705
SELECT ALL + 31 DIV - + 3 + - 64 + - + 4 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-8705
SELECT ALL + 31 / - + 3 + - 64 + - + 4 AS col1
----
-78

query II rowsort
SELECT + + 94 AS col2, 95
----
94
95

onlyif mysql # aggregate syntax: 
query II rowsort label-8707
SELECT DISTINCT + COUNT( * ), + 34 AS col0
----
1
34

skipif mysql # not compatible
query II rowsort label-8707
SELECT DISTINCT + COUNT ( * ), + 34 AS col0
----
1
34

query I rowsort
SELECT ALL + - 77 + + 31
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-8709
SELECT + 6 + 32 * + 54 * - 80 - - 12 DIV - 45
----
-138234

skipif mysql # not compatible
query I rowsort label-8709
SELECT + 6 + 32 * + 54 * - 80 - - 12 / - 45
----
-138234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8710
SELECT ALL - 42 + COALESCE ( + + CAST( NULL AS SIGNED ), - CASE - 87 WHEN 21 THEN NULL WHEN 70 / - + 70 THEN CAST( NULL AS SIGNED ) END ) * - + 22 * 55
----
NULL

skipif mysql # not compatible
query I rowsort label-8710
SELECT ALL - 42 + COALESCE ( + + CAST ( NULL AS INTEGER ), - CASE - 87 WHEN 21 THEN NULL WHEN 70 / - + 70 THEN CAST ( NULL AS INTEGER ) END ) * - + 22 * 55
----
NULL

query I rowsort
SELECT + CASE 97 WHEN 70 THEN + - ( 81 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8712
SELECT ALL - 88, + COUNT( * ) + - 29 + - - 51 DIV 52 * + 99 AS col0
----
-88
-28

skipif mysql # not compatible
query II rowsort label-8712
SELECT ALL - 88, + COUNT ( * ) + - 29 + - - 51 / 52 * + 99 AS col0
----
-88
-28

query I rowsort
SELECT CASE - + 63 WHEN CASE + + 18 WHEN 98 THEN NULL WHEN + 81 THEN - - 70 * + 86 END THEN - - 12 * + - 13 + + 10 WHEN - 6 + - 50 THEN - 86 ELSE NULL END + + 80
----
NULL

query I rowsort
SELECT ( - 57 ) * 8 * + - 54 AS col2
----
24624

query II rowsort
SELECT 64 AS col2, + ( + + 36 )
----
64
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8716
SELECT CAST( - COUNT( * ) AS SIGNED ) + + - 26 + - 7 - + SUM( ALL - + 12 ) + - + 2 DIV - 90 * 24 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-8716
SELECT CAST ( - COUNT ( * ) AS INTEGER ) + + - 26 + - 7 - + SUM ( ALL - + 12 ) + - + 2 / - 90 * 24 AS col1
----
-22

query I rowsort
SELECT ALL 88 - 30 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT COALESCE ( + MIN( ALL + + 53 ), - 91 ) * - - 70
----
3710

skipif mysql # not compatible
query I rowsort label-8718
SELECT COALESCE ( + MIN ( ALL + + 53 ), - 91 ) * - - 70
----
3710

query II rowsort
SELECT - 25 AS col0, - 91
----
-25
-91

query I rowsort
SELECT 88 + 35 * 34 AS col1
----
1278

query II rowsort
SELECT DISTINCT 30, + 37 col2
----
30
37

query II rowsort
SELECT ALL 82, 1 AS col0
----
82
1

query I rowsort
SELECT DISTINCT 87 - - 92
----
179

query I rowsort
SELECT 87 * - 3 AS col1
----
-261

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT 94 + + + MIN( DISTINCT + 13 ) + - - 70 + - 73 * + + 53
----
-3692

skipif mysql # not compatible
query I rowsort label-8725
SELECT 94 + + + MIN ( DISTINCT + 13 ) + - - 70 + - 73 * + + 53
----
-3692

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT 3 + + COUNT( * ) * - 62 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-8726
SELECT 3 + + COUNT ( * ) * - 62 AS col2
----
-59

query I rowsort
SELECT 77 * - 83
----
-6391

onlyif mysql # aggregate syntax: 
query II rowsort label-8728
SELECT - 7, - COUNT( * ) AS col0
----
-7
-1

skipif mysql # not compatible
query II rowsort label-8728
SELECT - 7, - COUNT ( * ) AS col0
----
-7
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT 22 * + COUNT( 85 )
----
22

skipif mysql # not compatible
query I rowsort label-8729
SELECT 22 * + COUNT ( 85 )
----
22

query II rowsort
SELECT 48 AS col1, + 70
----
48
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT - SUM( DISTINCT + 17 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-8731
SELECT - SUM ( DISTINCT + 17 ) AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT ALL + + COUNT( * ) * - 69 - - + 43 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-8732
SELECT ALL + + COUNT ( * ) * - 69 - - + 43 AS col2
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8733
SELECT 91, COALESCE ( - 9, - NULLIF ( CAST( - MAX( ALL 61 ) AS SIGNED ), - 42 * + 82 ) + 96 + + 85 + 57 * + COUNT( * ) * - 60 * - MAX( + 58 ), NULLIF ( - 79, - 9 + - COUNT( - CAST( + CAST( 26 AS SIGNED ) AS SIGNED ) ) * 40 ) ) AS col1
----
91
-9

skipif mysql # not compatible
query II rowsort label-8733
SELECT 91, COALESCE ( - 9, - NULLIF ( CAST ( - MAX ( ALL 61 ) AS INTEGER ), - 42 * + 82 ) + 96 + + 85 + 57 * + COUNT ( * ) * - 60 * - MAX ( + 58 ), NULLIF ( - 79, - 9 + - COUNT ( - CAST ( + CAST ( 26 AS INTEGER ) AS INTEGER ) ) * 40 ) ) AS col1
----
91
-9

query II rowsort
SELECT DISTINCT + - 79 + + 18, + COALESCE ( 65, + - 23 ) col0
----
-61
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT - - 70 * - 59 * - MIN( DISTINCT - ( + 94 ) ) + 68 col1
----
-388152

skipif mysql # not compatible
query I rowsort label-8735
SELECT - - 70 * - 59 * - MIN ( DISTINCT - ( + 94 ) ) + 68 col1
----
-388152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8736
SELECT + - 76, + MAX( + + CAST( + 3 AS SIGNED ) ) AS col0
----
-76
3

skipif mysql # not compatible
query II rowsort label-8736
SELECT + - 76, + MAX ( + + CAST ( + 3 AS INTEGER ) ) AS col0
----
-76
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT ALL - 54 + - - 93 * COUNT( * ) * - 0 * - 80 * + 57
----
-54

skipif mysql # not compatible
query I rowsort label-8737
SELECT ALL - 54 + - - 93 * COUNT ( * ) * - 0 * - 80 * + 57
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-8738
SELECT COUNT( * ), 40 * - - 38 * 39 AS col2
----
1
59280

skipif mysql # not compatible
query II rowsort label-8738
SELECT COUNT ( * ), 40 * - - 38 * 39 AS col2
----
1
59280

query I rowsort
SELECT ALL + 62 * + - 93
----
-5766

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8740
SELECT CASE + + COUNT( - 48 ) WHEN - 30 + - - 0 + - 45 * - 25 THEN NULL WHEN - 77 / - 84 * + - CASE + + ( + 96 ) WHEN COUNT( * ) * + COUNT( * ) + COALESCE ( CASE + SUM( - 1 ) WHEN + 42 THEN NULL WHEN 19 THEN - 65 * - 49 - + 78 / + 56 ELSE NULL END + - 7, CASE WHEN + NULLIF ( + 80, 54 + - CAST( - 83 + 91 * + NULLIF ( 0, - 87 * - COUNT( * ) ) AS SIGNED ) / 46 ) IS NULL THEN 89 + - 25 / 20 WHEN NOT ( 11 ) IS NOT NULL THEN NULL ELSE 63 END + 15 ) THEN NULL WHEN + 67 THEN 92 END + 96 / + CAST( NULL AS SIGNED ) - - 59 THEN - 49 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8740
SELECT CASE + + COUNT ( - 48 ) WHEN - 30 + - - 0 + - 45 * - 25 THEN NULL WHEN - 77 / - 84 * + - CASE + + ( + 96 ) WHEN COUNT ( * ) * + COUNT ( * ) + COALESCE ( CASE + SUM ( - 1 ) WHEN + 42 THEN NULL WHEN 19 THEN - 65 * - 49 - + 78 / + 56 ELSE NULL END + - 7, CASE WHEN + NULLIF ( + 80, 54 + - CAST ( - 83 + 91 * + NULLIF ( 0, - 87 * - COUNT ( * ) ) AS INTEGER ) / 46 ) IS NULL THEN 89 + - 25 / 20 WHEN NOT ( 11 ) IS NOT NULL THEN NULL ELSE 63 END + 15 ) THEN NULL WHEN + 67 THEN 92 END + 96 / + CAST ( NULL AS INTEGER ) - - 59 THEN - 49 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT DISTINCT + MAX( DISTINCT + 78 ) + 73 * - CASE 51 WHEN + SUM( - 52 ) * COUNT( * ) THEN - - 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8741
SELECT DISTINCT + MAX ( DISTINCT + 78 ) + 73 * - CASE 51 WHEN + SUM ( - 52 ) * COUNT ( * ) THEN - - 98 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8742
SELECT DISTINCT + - 12 DIV 88 * - + 65
----
0

skipif mysql # not compatible
query I rowsort label-8742
SELECT DISTINCT + - 12 / 88 * - + 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT ALL 29 + ( + - SUM( DISTINCT - + 48 ) )
----
77

skipif mysql # not compatible
query I rowsort label-8743
SELECT ALL 29 + ( + - SUM ( DISTINCT - + 48 ) )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT ALL - COUNT( * ) * + 3 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-8744
SELECT ALL - COUNT ( * ) * + 3 AS col0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8745
SELECT ALL - COALESCE ( COUNT( * ), + 97 + - - 50 ) * + - 45 + - 25 DIV 12 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-8745
SELECT ALL - COALESCE ( COUNT ( * ), + 97 + - - 50 ) * + - 45 + - 25 / 12 AS col0
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8746
SELECT DISTINCT + + MAX( DISTINCT + + 52 ) + ( - 75 ) DIV + COUNT( * ) + - 28 + + - CAST( - + 96 AS SIGNED ) + - 15 + 51 + - COUNT( ALL 88 ) * - 59 * + 84 AS col0
----
5037

skipif mysql # not compatible
query I rowsort label-8746
SELECT DISTINCT + + MAX ( DISTINCT + + 52 ) + ( - 75 ) / + COUNT ( * ) + - 28 + + - CAST ( - + 96 AS INTEGER ) + - 15 + 51 + - COUNT ( ALL 88 ) * - 59 * + 84 AS col0
----
5037

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8747
SELECT + CAST( + 79 AS SIGNED ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-8747
SELECT + CAST ( + 79 AS INTEGER ) AS col2
----
79

query I rowsort
SELECT DISTINCT - 0 * - ( NULLIF ( - 41, - 70 + - + 67 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT ALL + 46 - + - COUNT( * ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-8749
SELECT ALL + 46 - + - COUNT ( * ) AS col0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8750
SELECT 43 * + CAST( NULLIF ( + COUNT( * ), + CASE - 57 WHEN - + ( + 77 ) - + + 88 / ( 28 ) / + 43 THEN 17 END ) AS SIGNED )
----
43

skipif mysql # not compatible
query I rowsort label-8750
SELECT 43 * + CAST ( NULLIF ( + COUNT ( * ), + CASE - 57 WHEN - + ( + 77 ) - + + 88 / ( 28 ) / + 43 THEN 17 END ) AS INTEGER )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT ALL COUNT( * ) * - COALESCE ( 79, 49, NULLIF ( - 43, - AVG ( DISTINCT 53 ) + + + 79 + + 20 - CASE + NULLIF ( 17, ( 7 ) + 78 * - 6 ) WHEN ( MAX( - 24 ) ) THEN NULL ELSE - 20 END ) * 37 ) * - COUNT( * ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-8751
SELECT ALL COUNT ( * ) * - COALESCE ( 79, 49, NULLIF ( - 43, - AVG ( DISTINCT 53 ) + + + 79 + + 20 - CASE + NULLIF ( 17, ( 7 ) + 78 * - 6 ) WHEN ( MAX ( - 24 ) ) THEN NULL ELSE - 20 END ) * 37 ) * - COUNT ( * ) AS col2
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8752
SELECT ( - COALESCE ( + 48, + CAST( NULL AS SIGNED ) ) ) * + 73, - 4 col1
----
-3504
-4

skipif mysql # not compatible
query II rowsort label-8752
SELECT ( - COALESCE ( + 48, + CAST ( NULL AS INTEGER ) ) ) * + 73, - 4 col1
----
-3504
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-8753
SELECT 87 DIV 60
----
1

skipif mysql # not compatible
query I rowsort label-8753
SELECT 87 / 60
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8754
SELECT 22 * 59 DIV + ( ( - - 97 ) ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-8754
SELECT 22 * 59 / + ( ( - - 97 ) ) AS col0
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-8755
SELECT ALL COUNT( * ) + - - ( + - 88 ) * - - ( + + 3 ) AS col2, + COUNT( * ) * 19 + + 69 + - 2 * + COUNT( * )
----
-263
86

skipif mysql # not compatible
query II rowsort label-8755
SELECT ALL COUNT ( * ) + - - ( + - 88 ) * - - ( + + 3 ) AS col2, + COUNT ( * ) * 19 + + 69 + - 2 * + COUNT ( * )
----
-263
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT DISTINCT + 40 * - NULLIF ( MIN( - 91 ), - + 26 + - - 98 * + 99 ) * 56 / + + 59 * CASE 81 WHEN - 59 THEN - 52 + 1 END * + 31 + 39 - + 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8756
SELECT DISTINCT + 40 * - NULLIF ( MIN ( - 91 ), - + 26 + - - 98 * + 99 ) * 56 / + + 59 * CASE 81 WHEN - 59 THEN - 52 + 1 END * + 31 + 39 - + 19 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT ALL - NULLIF ( 84, + - 19 ) + NULLIF ( + - 51, - + COUNT( * ) ) - + 50 + + ( 69 )
----
-116

skipif mysql # not compatible
query I rowsort label-8757
SELECT ALL - NULLIF ( 84, + - 19 ) + NULLIF ( + - 51, - + COUNT ( * ) ) - + 50 + + ( 69 )
----
-116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8758
SELECT COUNT( * ) + - CAST( NULL AS SIGNED ) * 1
----
NULL

skipif mysql # not compatible
query I rowsort label-8758
SELECT COUNT ( * ) + - CAST ( NULL AS INTEGER ) * 1
----
NULL

query I rowsort
SELECT ALL + 49 + + 77 AS col2
----
126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8760
SELECT DISTINCT + SUM( ALL - 83 ) + + - 35 + ( - 12 ) DIV 87 * + 54
----
-118

skipif mysql # not compatible
query I rowsort label-8760
SELECT DISTINCT + SUM ( ALL - 83 ) + + - 35 + ( - 12 ) / 87 * + 54
----
-118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8761
SELECT - 16 DIV - - 40 * - + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8761
SELECT - 16 / - - 40 * - + COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT - SUM( + 41 ) + - ( COALESCE ( + + 17, - - 36 ) ) + - 37 + + 17 * + 50 * - 99 * + 3
----
-252545

skipif mysql # not compatible
query I rowsort label-8762
SELECT - SUM ( + 41 ) + - ( COALESCE ( + + 17, - - 36 ) ) + - 37 + + 17 * + 50 * - 99 * + 3
----
-252545

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT + + COUNT( * ) + MAX( ALL - 27 ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-8763
SELECT + + COUNT ( * ) + MAX ( ALL - 27 ) AS col0
----
-26

query I rowsort
SELECT - 43 * - 41 + - + 81 col0
----
1682

query I rowsort
SELECT ALL - 94 * COALESCE ( - + 65, + 60 ) + 3 AS col1
----
6113

query I rowsort
SELECT ALL - 29 * + 42 - + + 30 / - - 0 / CASE + 46 WHEN - 96 + - + 73 THEN NULL WHEN 94 THEN - NULLIF ( 37, 90 ) END - - 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT ALL + - CASE + - 68 WHEN 65 THEN - 51 WHEN + 56 THEN 44 WHEN 54 / + COALESCE ( + SUM( ALL + 9 ), COUNT( * ) ) + - 56 * 57 + 73 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8767
SELECT ALL + - CASE + - 68 WHEN 65 THEN - 51 WHEN + 56 THEN 44 WHEN 54 / + COALESCE ( + SUM ( ALL + 9 ), COUNT ( * ) ) + - 56 * 57 + 73 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT + 41 + + NULLIF ( - 41, - 57 + - - COUNT( * ) + + - CASE - 24 WHEN CASE - - MIN( 54 ) WHEN + 17 * - 10 THEN - 50 WHEN 67 THEN NULL ELSE + NULLIF ( 13, 69 - ( - 62 ) ) * 34 END THEN - 12 END )
----
0

skipif mysql # not compatible
query I rowsort label-8768
SELECT + 41 + + NULLIF ( - 41, - 57 + - - COUNT ( * ) + + - CASE - 24 WHEN CASE - - MIN ( 54 ) WHEN + 17 * - 10 THEN - 50 WHEN 67 THEN NULL ELSE + NULLIF ( 13, 69 - ( - 62 ) ) * 34 END THEN - 12 END )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8769
SELECT DISTINCT + COALESCE ( 70, - + CAST( - - CASE 71 WHEN + 79 / - + 6 * + NULLIF ( - NULLIF ( + + AVG ( + - 11 ), ( + 17 ) * 92 ), 73 * 92 ) + 41 THEN NULL WHEN + 96 * - NULLIF ( - 90, - 68 * COUNT( 45 ) - - 83 ) THEN 52 * 78 END AS SIGNED ) - + 10 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-8769
SELECT DISTINCT + COALESCE ( 70, - + CAST ( - - CASE 71 WHEN + 79 / - + 6 * + NULLIF ( - NULLIF ( + + AVG ( + - 11 ), ( + 17 ) * 92 ), 73 * 92 ) + 41 THEN NULL WHEN + 96 * - NULLIF ( - 90, - 68 * COUNT ( 45 ) - - 83 ) THEN 52 * 78 END AS INTEGER ) - + 10 ) AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT ALL + - COUNT( - 97 )
----
-1

skipif mysql # not compatible
query I rowsort label-8770
SELECT ALL + - COUNT ( - 97 )
----
-1

query I rowsort
SELECT COALESCE ( + 55, - 62 + 22 ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT ALL + MAX( DISTINCT + + 4 )
----
4

skipif mysql # not compatible
query I rowsort label-8772
SELECT ALL + MAX ( DISTINCT + + 4 )
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8773
SELECT + MIN( + 39 ) DIV 17 - + COUNT( DISTINCT 57 ) + 30 AS col2, 6 + 64
----
31
70

skipif mysql # not compatible
query II rowsort label-8773
SELECT + MIN ( + 39 ) / 17 - + COUNT ( DISTINCT 57 ) + 30 AS col2, 6 + 64
----
31
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8774
SELECT DISTINCT + COALESCE ( - + ( - 29 ), 73 * - 45 - 88 + 53 + + 2 + 45 * + 88 DIV COUNT( * ) )
----
29

skipif mysql # not compatible
query I rowsort label-8774
SELECT DISTINCT + COALESCE ( - + ( - 29 ), 73 * - 45 - 88 + 53 + + 2 + 45 * + 88 / COUNT ( * ) )
----
29

query II rowsort
SELECT + 79 col0, + 55 AS col0
----
79
55

query I rowsort
SELECT DISTINCT + ( + - 16 )
----
-16

query I rowsort
SELECT - 87 * + 63
----
-5481

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT 88 * - COUNT( * ) * + NULLIF ( - 43, - + SUM( DISTINCT 89 ) ) + + COALESCE ( 84, + 4 + 63 * - 33 )
----
3868

skipif mysql # not compatible
query I rowsort label-8778
SELECT 88 * - COUNT ( * ) * + NULLIF ( - 43, - + SUM ( DISTINCT 89 ) ) + + COALESCE ( 84, + 4 + 63 * - 33 )
----
3868

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT ALL - SUM( - 65 ) * + SUM( - ( + 30 ) ) AS col1
----
-1950

skipif mysql # not compatible
query I rowsort label-8779
SELECT ALL - SUM ( - 65 ) * + SUM ( - ( + 30 ) ) AS col1
----
-1950

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT + 45 + - + NULLIF ( - NULLIF ( - 65, - COUNT( * ) * + 81 ), 3 - - + 48 + ( - 0 ) * 20 / + 74 ) + - 94 + 98 * 55
----
5276

skipif mysql # not compatible
query I rowsort label-8780
SELECT + 45 + - + NULLIF ( - NULLIF ( - 65, - COUNT ( * ) * + 81 ), 3 - - + 48 + ( - 0 ) * 20 / + 74 ) + - 94 + 98 * 55
----
5276

query I rowsort
SELECT ALL 51 + - 59 col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT ALL NULLIF ( - NULLIF ( + COUNT( * ), + 99 * + 42 * - 83 ), - 89 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8782
SELECT ALL NULLIF ( - NULLIF ( + COUNT ( * ), + 99 * + 42 * - 83 ), - 89 ) AS col1
----
-1

query I rowsort
SELECT ALL - 98 * + 68 * - NULLIF ( 24, 3 * - - 47 ) col1
----
159936

query I rowsort
SELECT - 33 * 99 AS col2
----
-3267

query I rowsort
SELECT ALL 45 + 12 + - 86 AS col1
----
-29

query I rowsort
SELECT DISTINCT - 80 + + 34 AS col2
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-8787
SELECT - + 90, - COUNT( * ) + 35 col1
----
-90
34

skipif mysql # not compatible
query II rowsort label-8787
SELECT - + 90, - COUNT ( * ) + 35 col1
----
-90
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT DISTINCT - 20 + 46 + + 13 - COUNT( 2 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-8788
SELECT DISTINCT - 20 + 46 + + 13 - COUNT ( 2 ) AS col1
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-8789
SELECT ALL COUNT( * ) AS col1, + 84 AS col2
----
1
84

skipif mysql # not compatible
query II rowsort label-8789
SELECT ALL COUNT ( * ) AS col1, + 84 AS col2
----
1
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8790
SELECT ALL + 87 + + - 66 + + NULLIF ( - + CASE 42 WHEN - 44 * ( 41 ) THEN NULL ELSE - + 14 / ( - + CASE - 11 WHEN - + AVG ( ALL 18 ) THEN NULL WHEN 65 THEN NULL ELSE 95 * CAST( NULL AS SIGNED ) + + 66 END ) + 90 END, + ( 82 ) ) + + COUNT( * ) * + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-8790
SELECT ALL + 87 + + - 66 + + NULLIF ( - + CASE 42 WHEN - 44 * ( 41 ) THEN NULL ELSE - + 14 / ( - + CASE - 11 WHEN - + AVG ( ALL 18 ) THEN NULL WHEN 65 THEN NULL ELSE 95 * CAST ( NULL AS INTEGER ) + + 66 END ) + 90 END, + ( 82 ) ) + + COUNT ( * ) * + 96
----
NULL

query II rowsort
SELECT - - 98 AS col1, 31
----
98
31

query II rowsort
SELECT DISTINCT 31, 63 AS col0
----
31
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8793
SELECT + + 7 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8793
SELECT + + 7 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + ( - 9 ) col1
----
9

query I rowsort
SELECT DISTINCT - 68 * 26 AS col1
----
-1768

onlyif mysql # aggregate syntax: 
query II rowsort label-8796
SELECT + + CASE + 71 WHEN - + 58 * COUNT( * ) - + 33 + - 21 THEN + - 59 ELSE NULL END / - 86, 75 AS col1
----
NULL
75

skipif mysql # not compatible
query II rowsort label-8796
SELECT + + CASE + 71 WHEN - + 58 * COUNT ( * ) - + 33 + - 21 THEN + - 59 ELSE NULL END / - 86, 75 AS col1
----
NULL
75

query I rowsort
SELECT DISTINCT + ( - ( - NULLIF ( - 9, - 5 + + - 23 ) ) ) AS col1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8798
SELECT ALL 28 * + 16 + + 18 DIV + 42 * - + 10 AS col0
----
448

skipif mysql # not compatible
query I rowsort label-8798
SELECT ALL 28 * + 16 + + 18 / + 42 * - + 10 AS col0
----
448

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT ALL 33 - - COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-8799
SELECT ALL 33 - - COUNT ( * )
----
34

query I rowsort
SELECT DISTINCT + 44 - - 87 + + - 79 * + 45 * + ( + 48 ) * + ( + 98 ) col2
----
-16722589

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT + - 80 * + COUNT( - + ( + 74 ) ) - + + 13 + + 43 * - 77 AS col0
----
-3404

skipif mysql # not compatible
query I rowsort label-8801
SELECT + - 80 * + COUNT ( - + ( + 74 ) ) - + + 13 + + 43 * - 77 AS col0
----
-3404

query I rowsort
SELECT ( + + 49 ) col0
----
49

query I rowsort
SELECT + + ( + 25 ) AS col1
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8804
SELECT + - NULLIF ( + COUNT( * ), 67 ) DIV MIN( + 99 )
----
0

skipif mysql # not compatible
query I rowsort label-8804
SELECT + - NULLIF ( + COUNT ( * ), 67 ) / MIN ( + 99 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8805
SELECT - - 25 DIV 2
----
12

skipif mysql # not compatible
query I rowsort label-8805
SELECT - - 25 / 2
----
12

query I rowsort
SELECT 64 * + - 95 + + 34 col2
----
-6046

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8807
SELECT CAST( ( + - 4 ) AS SIGNED )
----
-4

skipif mysql # not compatible
query I rowsort label-8807
SELECT CAST ( ( + - 4 ) AS INTEGER )
----
-4

query I rowsort
SELECT ALL + NULLIF ( - 86, + 95 ) AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT ALL 88 * ( + - COUNT( * ) ) * - 11
----
968

skipif mysql # not compatible
query I rowsort label-8809
SELECT ALL 88 * ( + - COUNT ( * ) ) * - 11
----
968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8810
SELECT - 0 * - ( - - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8810
SELECT - 0 * - ( - - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ( ( - 43 ) )
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8812
SELECT + CAST( + 47 AS SIGNED ) col1, - 23
----
47
-23

skipif mysql # not compatible
query II rowsort label-8812
SELECT + CAST ( + 47 AS INTEGER ) col1, - 23
----
47
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-8813
SELECT + 64 DIV 52
----
1

skipif mysql # not compatible
query I rowsort label-8813
SELECT + 64 / 52
----
1

query I rowsort
SELECT - 69 * + 12
----
-828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8815
SELECT ALL CASE + 46 WHEN + + CAST( - 81 AS SIGNED ) * + 95 THEN - COUNT( * ) ELSE - 72 * - 63 + - CAST( NULL AS SIGNED ) + + 29 * 98 END * - + 15 + + + 21 + - 76 + - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-8815
SELECT ALL CASE + 46 WHEN + + CAST ( - 81 AS INTEGER ) * + 95 THEN - COUNT ( * ) ELSE - 72 * - 63 + - CAST ( NULL AS INTEGER ) + + 29 * 98 END * - + 15 + + + 21 + - 76 + - 20
----
NULL

query I rowsort
SELECT ALL + 96 * - - 53 + + 43
----
5131

query I rowsort
SELECT ALL 30 * 9 + 53
----
323

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT DISTINCT 68 * + + 98 * - 20 + COUNT( * ) + - + 41
----
-133320

skipif mysql # not compatible
query I rowsort label-8818
SELECT DISTINCT 68 * + + 98 * - 20 + COUNT ( * ) + - + 41
----
-133320

query I rowsort
SELECT ALL - 80 * - - 87 + + + 75 AS col0
----
-6885

query I rowsort
SELECT 21 * - + 69 - + 76 col0
----
-1525

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT COALESCE ( - - 58, + - 94 * - ( - - ( + COUNT( ALL - 3 ) ) ) * + COUNT( * ) )
----
58

skipif mysql # not compatible
query I rowsort label-8821
SELECT COALESCE ( - - 58, + - 94 * - ( - - ( + COUNT ( ALL - 3 ) ) ) * + COUNT ( * ) )
----
58

query I rowsort
SELECT - 73 * + + 86 - - 57 AS col2
----
-6221

query I rowsort
SELECT ALL + 21 * - 55
----
-1155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8824
SELECT - - CAST( NULL AS SIGNED ) + + 40 + 42 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8824
SELECT - - CAST ( NULL AS INTEGER ) + + 40 + 42 col1
----
NULL

query I rowsort
SELECT - - 21 * ( - 68 ) * 32 + + + 9 + - 42 - - ( + 33 ) - 53 * 64
----
-49088

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT DISTINCT + + 72 * - COUNT( * ) col0
----
-72

skipif mysql # not compatible
query I rowsort label-8826
SELECT DISTINCT + + 72 * - COUNT ( * ) col0
----
-72

query I rowsort
SELECT - + ( ( 82 ) )
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8828
SELECT 12 * - 6 * + CAST( ( + + 6 ) AS SIGNED ) AS col2
----
-432

skipif mysql # not compatible
query I rowsort label-8828
SELECT 12 * - 6 * + CAST ( ( + + 6 ) AS INTEGER ) AS col2
----
-432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8829
SELECT - ( + CAST( - 24 AS SIGNED ) ) col1
----
24

skipif mysql # not compatible
query I rowsort label-8829
SELECT - ( + CAST ( - 24 AS INTEGER ) ) col1
----
24

query I rowsort
SELECT - 20 + + - 92
----
-112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8831
SELECT ALL - + COALESCE ( - - 33, - COALESCE ( - 76, - ( + 51 ) ) * - + COUNT( DISTINCT 47 ), COUNT( * ) + - NULLIF ( + 45, + + 96 * + 37 ) ) - 16 + 92 DIV 95
----
-49

skipif mysql # not compatible
query I rowsort label-8831
SELECT ALL - + COALESCE ( - - 33, - COALESCE ( - 76, - ( + 51 ) ) * - + COUNT ( DISTINCT 47 ), COUNT ( * ) + - NULLIF ( + 45, + + 96 * + 37 ) ) - 16 + 92 / 95
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT DISTINCT ( - MAX( 29 ) )
----
-29

skipif mysql # not compatible
query I rowsort label-8832
SELECT DISTINCT ( - MAX ( 29 ) )
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8833
SELECT DISTINCT - 84 * COALESCE ( + 23, + 71 + + 77, + 65 + + - 43 * + 60 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8833
SELECT DISTINCT - 84 * COALESCE ( + 23, + 71 + + 77, + 65 + + - 43 * + 60 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT ALL + NULLIF ( 98, + - COUNT( * ) ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-8834
SELECT ALL + NULLIF ( 98, + - COUNT ( * ) ) AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT - 23 * COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-8835
SELECT - 23 * COUNT ( * )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT 61 * - + COUNT( * ) * - 28 + + COUNT( - 16 ) + + - 72
----
1637

skipif mysql # not compatible
query I rowsort label-8836
SELECT 61 * - + COUNT ( * ) * - 28 + + COUNT ( - 16 ) + + - 72
----
1637

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT DISTINCT 62 * + COUNT( ALL + 11 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-8837
SELECT DISTINCT 62 * + COUNT ( ALL + 11 ) AS col1
----
62

query I rowsort
SELECT ALL 80 * + - 57 AS col1
----
-4560

query I rowsort
SELECT DISTINCT + 87 * + + 0
----
0

query I rowsort
SELECT ALL 88 * - 46
----
-4048

onlyif mysql # aggregate syntax: 
query I rowsort label-8841
SELECT ALL COUNT( * ) + - - 37 col1
----
38

skipif mysql # not compatible
query I rowsort label-8841
SELECT ALL COUNT ( * ) + - - 37 col1
----
38

query I rowsort
SELECT + 2 * + - 72 * 67 - 37
----
-9685

query I rowsort
SELECT 68 * + 73
----
4964

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8844
SELECT CAST( NULL AS SIGNED ) + - COUNT( + - 44 ) * 29 / 87 * + 39 - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-8844
SELECT CAST ( NULL AS INTEGER ) + - COUNT ( + - 44 ) * 29 / 87 * + 39 - 7
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8845
SELECT 13 DIV + + MAX( + + 87 )
----
0

skipif mysql # not compatible
query I rowsort label-8845
SELECT 13 / + + MAX ( + + 87 )
----
0

query I rowsort
SELECT DISTINCT 69 * + - 29 col2
----
-2001

query I rowsort
SELECT DISTINCT - 35 col0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8848
SELECT ALL COUNT( * ) + 79 + - 34 AS col2, + CAST( NULL AS SIGNED )
----
46
NULL

skipif mysql # not compatible
query II rowsort label-8848
SELECT ALL COUNT ( * ) + 79 + - 34 AS col2, + CAST ( NULL AS INTEGER )
----
46
NULL

query I rowsort
SELECT DISTINCT - ( - - 18 )
----
-18

query I rowsort
SELECT 28 + - 15
----
13

query I rowsort
SELECT ALL 10 + - 25
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8852
SELECT ALL MAX( DISTINCT 58 ) * - + CAST( NULL AS SIGNED ), - 72 DIV - 21 + 71 + + 53 AS col0
----
NULL
127

skipif mysql # not compatible
query II rowsort label-8852
SELECT ALL MAX ( DISTINCT 58 ) * - + CAST ( NULL AS INTEGER ), - 72 / - 21 + 71 + + 53 AS col0
----
NULL
127

query II rowsort
SELECT 81 AS col2, + NULLIF ( - 37, - - 76 + - 99 * - - AVG ( DISTINCT ( + - 68 ) ) * - + 28 )
----
81
-37

query I rowsort
SELECT - COALESCE ( 28, + 46 ) * - ( + ( + - 56 ) ) + - 97
----
-1665

query I rowsort
SELECT - 52 + - 11
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8856
SELECT ALL - + 7 - MAX( ALL 30 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-8856
SELECT ALL - + 7 - MAX ( ALL 30 ) AS col0
----
-37

query I rowsort
SELECT DISTINCT + - 45 - - 98 col0
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8858
SELECT ALL + COUNT( DISTINCT - 95 ) DIV - - 28 * ( - + 75 ) + - COUNT( * ) - - 36
----
35

skipif mysql # not compatible
query I rowsort label-8858
SELECT ALL + COUNT ( DISTINCT - 95 ) / - - 28 * ( - + 75 ) + - COUNT ( * ) - - 36
----
35

query I rowsort
SELECT DISTINCT - ( + 55 ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT ALL SUM( ALL 94 ) col2
----
94

skipif mysql # not compatible
query I rowsort label-8860
SELECT ALL SUM ( ALL 94 ) col2
----
94

query I rowsort
SELECT ALL + 46 * + 81
----
3726

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT MAX( ALL 4 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-8862
SELECT MAX ( ALL 4 ) AS col2
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-8863
SELECT ALL + 35 DIV - 39
----
0

skipif mysql # not compatible
query I rowsort label-8863
SELECT ALL + 35 / - 39
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8864
SELECT DISTINCT - 77 - COUNT( * ) + COUNT( * ) + + 82 * + 30 * + 86, 30 AS col1
----
211483
30

skipif mysql # not compatible
query II rowsort label-8864
SELECT DISTINCT - 77 - COUNT ( * ) + COUNT ( * ) + + 82 * + 30 * + 86, 30 AS col1
----
211483
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8865
SELECT ALL + 85 * - - CAST( NULL AS SIGNED ) * 28 + - CAST( NULL AS SIGNED ) * 32 / - 94, 2 - + 60 AS col0
----
NULL
-58

skipif mysql # not compatible
query II rowsort label-8865
SELECT ALL + 85 * - - CAST ( NULL AS INTEGER ) * 28 + - CAST ( NULL AS INTEGER ) * 32 / - 94, 2 - + 60 AS col0
----
NULL
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT COUNT( ALL + COALESCE ( 90, - - 94 + - - 74 ) ) * + 75 * + 61 + + 30 col2
----
4605

skipif mysql # not compatible
query I rowsort label-8866
SELECT COUNT ( ALL + COALESCE ( 90, - - 94 + - - 74 ) ) * + 75 * + 61 + + 30 col2
----
4605

onlyif mysql # DIV for integer division: 
query I rowsort label-8867
SELECT - 77 DIV - + 45
----
1

skipif mysql # not compatible
query I rowsort label-8867
SELECT - 77 / - + 45
----
1

query I rowsort
SELECT - 20 - - NULLIF ( + 51, + + 1 )
----
31

query I rowsort
SELECT 76 * + 63 AS col0
----
4788

query I rowsort
SELECT DISTINCT - 92 + - 78
----
-170

query I rowsort
SELECT ALL + 33 * + 86 AS col1
----
2838

query I rowsort
SELECT CASE - 0 WHEN - - 33 THEN - 72 * 85 + + + 95 - + 37 * + 57 * + 10 + 63 END * + ( 82 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT DISTINCT MAX( + 39 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-8873
SELECT DISTINCT MAX ( + 39 ) AS col1
----
39

query I rowsort
SELECT 62 + + 9 AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT SUM( + + 87 ) - - ( + 61 ) AS col1
----
148

skipif mysql # not compatible
query I rowsort label-8875
SELECT SUM ( + + 87 ) - - ( + 61 ) AS col1
----
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8876
SELECT COUNT( * ) + + - 25 DIV + - 39
----
1

skipif mysql # not compatible
query I rowsort label-8876
SELECT COUNT ( * ) + + - 25 / + - 39
----
1

query I rowsort
SELECT ALL - 74 * + 63 + - 4 AS col1
----
-4666

onlyif mysql # aggregate syntax: 
query III rowsort label-8878
SELECT COUNT( * ) AS col0, - 25 * ( - - 32 ) AS col0, + - 4
----
1
-800
-4

skipif mysql # not compatible
query III rowsort label-8878
SELECT COUNT ( * ) AS col0, - 25 * ( - - 32 ) AS col0, + - 4
----
1
-800
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8879
SELECT SUM( + ( + + 95 ) ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-8879
SELECT SUM ( + ( + + 95 ) ) AS col0
----
95

query I rowsort
SELECT DISTINCT 16 * + 31 * - - 86 + 66
----
42722

query I rowsort
SELECT 39 * - 55 + - 16
----
-2161

query I rowsort
SELECT DISTINCT + 75 * - 12 + - - 96
----
-804

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT MIN( 30 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-8883
SELECT MIN ( 30 ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-8884
SELECT ALL - 58 AS col2, + 14 + + ( - COUNT( * ) )
----
-58
13

skipif mysql # not compatible
query II rowsort label-8884
SELECT ALL - 58 AS col2, + 14 + + ( - COUNT ( * ) )
----
-58
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT MIN( 13 )
----
13

skipif mysql # not compatible
query I rowsort label-8885
SELECT MIN ( 13 )
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8886
SELECT CAST( NULL AS SIGNED ) * - 5 / 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8886
SELECT CAST ( NULL AS INTEGER ) * - 5 / 55 AS col1
----
NULL

query II rowsort
SELECT + 98, + 82 * + 46 * + 46 col0
----
98
173512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8888
SELECT COUNT( CAST( + - 40 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-8888
SELECT COUNT ( CAST ( + - 40 AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT MIN( - 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-8889
SELECT MIN ( - 42 )
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-8890
SELECT + CASE - AVG ( - - 85 ) WHEN - - 88 THEN NULL ELSE + 24 + + 18 DIV + + 49 END AS col2
----
24

skipif mysql # not compatible
query I rowsort label-8890
SELECT + CASE - AVG ( - - 85 ) WHEN - - 88 THEN NULL ELSE + 24 + + 18 / + + 49 END AS col2
----
24

query I rowsort
SELECT + 27 * 50 AS col2
----
1350

query II rowsort
SELECT DISTINCT + 80 AS col0, ( 12 ) * - 18 + 7
----
80
-209

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT DISTINCT + + COUNT( - 8 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8893
SELECT DISTINCT + + COUNT ( - 8 ) col0
----
1

query I rowsort
SELECT + - ( - 74 )
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-8895
SELECT DISTINCT - 6 * 84, + COUNT( * ) AS col1
----
-504
1

skipif mysql # not compatible
query II rowsort label-8895
SELECT DISTINCT - 6 * 84, + COUNT ( * ) AS col1
----
-504
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8896
SELECT DISTINCT 22, 70 * - + 68 + + MAX( + + 92 ) * - + MIN( + - 71 ) * - - 75 + + 2 AS col1
----
22
485142

skipif mysql # not compatible
query II rowsort label-8896
SELECT DISTINCT 22, 70 * - + 68 + + MAX ( + + 92 ) * - + MIN ( + - 71 ) * - - 75 + + 2 AS col1
----
22
485142

query I rowsort
SELECT - 38 - + - 42 * - 89 * + 0 AS col2
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-8898
SELECT + + 67 * - + 72 AS col0, 60 * + + COUNT( * ) - - + MIN( 55 ) col0
----
-4824
115

skipif mysql # not compatible
query II rowsort label-8898
SELECT + + 67 * - + 72 AS col0, 60 * + + COUNT ( * ) - - + MIN ( 55 ) col0
----
-4824
115

query I rowsort
SELECT + 82 + - - 0
----
82

query I rowsort
SELECT - + 55 col0
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-8901
SELECT + COUNT( * ) col2, 54 AS col1
----
1
54

skipif mysql # not compatible
query II rowsort label-8901
SELECT + COUNT ( * ) col2, 54 AS col1
----
1
54

onlyif mysql # DIV for integer division: 
query I rowsort label-8902
SELECT - 65 * 30 DIV + + 15
----
-130

skipif mysql # not compatible
query I rowsort label-8902
SELECT - 65 * 30 / + + 15
----
-130

query II rowsort
SELECT DISTINCT 83 + - 86 + 46 * - 35 AS col2, - 82
----
-1613
-82

query I rowsort
SELECT ALL + 62 + + - 61 + - 37
----
-36

query I rowsort
SELECT - - 93 + - 97 AS col1
----
-4

query I rowsort
SELECT ALL + - ( - 30 ) + - 31
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8907
SELECT + 98 * + COUNT( * ) * + 69 DIV + ( + COUNT( * ) )
----
6762

skipif mysql # not compatible
query I rowsort label-8907
SELECT + 98 * + COUNT ( * ) * + 69 / + ( + COUNT ( * ) )
----
6762

query I rowsort
SELECT - 77 + 29 AS col1
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8909
SELECT DISTINCT - 24 + + 63 - - 44 * + + CASE - + ( + 15 ) WHEN - 6 THEN + COUNT( - 9 ) - + - 42 + + - 82 * 66 * + + 20 - - ( + 44 ) ELSE - 25 + - - 90 + 71 DIV + COALESCE ( + 49, - 16 ) END
----
2943

skipif mysql # not compatible
query I rowsort label-8909
SELECT DISTINCT - 24 + + 63 - - 44 * + + CASE - + ( + 15 ) WHEN - 6 THEN + COUNT ( - 9 ) - + - 42 + + - 82 * 66 * + + 20 - - ( + 44 ) ELSE - 25 + - - 90 + 71 / + COALESCE ( + 49, - 16 ) END
----
2943

query II rowsort
SELECT - 29 + 0 AS col0, - 60
----
-29
-60

query I rowsort
SELECT - 41 * + 84 col2
----
-3444

query I rowsort
SELECT ALL COALESCE ( - 27, - 66 * + 94, + 97 ) AS col1
----
-27

query I rowsort
SELECT ALL ( - 23 ) col1
----
-23

query I rowsort
SELECT DISTINCT ( 0 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT DISTINCT + COALESCE ( - 73, - 60 * + 3 + + CASE - ( + 47 ) WHEN - COUNT( * ) THEN + 46 WHEN - 60 * + NULLIF ( 80, + 21 * + 64 ) THEN NULL END * + 40 ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-8915
SELECT DISTINCT + COALESCE ( - 73, - 60 * + 3 + + CASE - ( + 47 ) WHEN - COUNT ( * ) THEN + 46 WHEN - 60 * + NULLIF ( 80, + 21 * + 64 ) THEN NULL END * + 40 ) AS col2
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8916
SELECT ALL - 98 DIV - ( - COUNT( * ) ) + 34 * + 84 + - + 20
----
2738

skipif mysql # not compatible
query I rowsort label-8916
SELECT ALL - 98 / - ( - COUNT ( * ) ) + 34 * + 84 + - + 20
----
2738

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8917
SELECT ( CAST( NULL AS DECIMAL ) ) AS col0, 7 col1
----
NULL
7

skipif mysql # not compatible
query II rowsort label-8917
SELECT ( CAST ( NULL AS REAL ) ) AS col0, 7 col1
----
NULL
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT ( COALESCE ( 4, - 57 - NULLIF ( + 78, - COUNT( * ) + 39 ), - + 13 ) )
----
4

skipif mysql # not compatible
query I rowsort label-8918
SELECT ( COALESCE ( 4, - 57 - NULLIF ( + 78, - COUNT ( * ) + 39 ), - + 13 ) )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT ALL + COUNT( * ) * + 4 * - 86 * + + 93 AS col0
----
-31992

skipif mysql # not compatible
query I rowsort label-8919
SELECT ALL + COUNT ( * ) * + 4 * - 86 * + + 93 AS col0
----
-31992

query I rowsort
SELECT DISTINCT 80 * - 78 AS col0
----
-6240

onlyif mysql # DIV for integer division: 
query II rowsort label-8921
SELECT DISTINCT - NULLIF ( + + ( + 20 ), + 85 ) DIV - 20 AS col0, 15 AS col0
----
1
15

skipif mysql # not compatible
query II rowsort label-8921
SELECT DISTINCT - NULLIF ( + + ( + 20 ), + 85 ) / - 20 AS col0, 15 AS col0
----
1
15

onlyif mysql # aggregate syntax: 
query II rowsort label-8922
SELECT ALL + MIN( ALL + 19 ) AS col2, 11 * - 60
----
19
-660

skipif mysql # not compatible
query II rowsort label-8922
SELECT ALL + MIN ( ALL + 19 ) AS col2, 11 * - 60
----
19
-660

onlyif mysql # aggregate syntax: 
query II rowsort label-8923
SELECT ALL - - COUNT( * ) * - 2 col1, - 55
----
-2
-55

skipif mysql # not compatible
query II rowsort label-8923
SELECT ALL - - COUNT ( * ) * - 2 col1, - 55
----
-2
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-8924
SELECT DISTINCT + - ( COUNT( * ) ) * 13 * + 46 - 29 AS col2, + 14 + + 64 AS col0
----
-627
78

skipif mysql # not compatible
query II rowsort label-8924
SELECT DISTINCT + - ( COUNT ( * ) ) * 13 * + 46 - 29 AS col2, + 14 + + 64 AS col0
----
-627
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT DISTINCT - 51 * + 30 + - - MAX( 25 )
----
-1505

skipif mysql # not compatible
query I rowsort label-8925
SELECT DISTINCT - 51 * + 30 + - - MAX ( 25 )
----
-1505

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT + COUNT( * ) + - 54 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-8926
SELECT + COUNT ( * ) + - 54 AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT - 53 * COUNT( 0 )
----
-53

skipif mysql # not compatible
query I rowsort label-8927
SELECT - 53 * COUNT ( 0 )
----
-53

query I rowsort
SELECT 7 * - 85 * + + 72 + - 75 AS col1
----
-42915

query I rowsort
SELECT ALL + ( - 49 ) AS col1
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-8930
SELECT CASE - + 25 WHEN 55 THEN - 4 ELSE - 79 DIV + + ( - 18 ) END AS col0
----
4

skipif mysql # not compatible
query I rowsort label-8930
SELECT CASE - + 25 WHEN 55 THEN - 4 ELSE - 79 / + + ( - 18 ) END AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT + - SUM( ALL - - 14 ) + 28 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-8931
SELECT + - SUM ( ALL - - 14 ) + 28 AS col2
----
14

query I rowsort
SELECT DISTINCT + - 24 col1
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8933
SELECT DISTINCT COUNT( * ) DIV 3
----
0

skipif mysql # not compatible
query I rowsort label-8933
SELECT DISTINCT COUNT ( * ) / 3
----
0

query I rowsort
SELECT ALL 85 * - 52 + - ( + + 98 ) AS col1
----
-4518

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8935
SELECT + 30 * 21 + + CAST( NULL AS DECIMAL ) - + CASE - 20 WHEN 1 THEN + 55 * + ( COUNT( * ) ) / + 74 - - COUNT( * ) WHEN + 35 * + + 13 THEN + 6 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8935
SELECT + 30 * 21 + + CAST ( NULL AS REAL ) - + CASE - 20 WHEN 1 THEN + 55 * + ( COUNT ( * ) ) / + 74 - - COUNT ( * ) WHEN + 35 * + + 13 THEN + 6 END AS col0
----
NULL

query I rowsort
SELECT ALL + - 73 * - 16 * 28 + - 95 AS col2
----
32609

query I rowsort
SELECT ALL - 0 * - 59 + + 22 + 90
----
112

query I rowsort
SELECT ALL NULLIF ( + - 98, - 1 ) + 94 AS col2
----
-4

query I rowsort
SELECT DISTINCT + 84 + 78 + 42 col0
----
204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8940
SELECT - + CAST( + 48 AS SIGNED )
----
-48

skipif mysql # not compatible
query I rowsort label-8940
SELECT - + CAST ( + 48 AS INTEGER )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT - - 56 * + - NULLIF ( + ( 20 ), + COUNT( * ) ) AS col1
----
-1120

skipif mysql # not compatible
query I rowsort label-8941
SELECT - - 56 * + - NULLIF ( + ( 20 ), + COUNT ( * ) ) AS col1
----
-1120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8942
SELECT ALL 59 + NULLIF ( - + 73, + 90 + - CAST( NULL AS SIGNED ) ) col2
----
-14

skipif mysql # not compatible
query I rowsort label-8942
SELECT ALL 59 + NULLIF ( - + 73, + 90 + - CAST ( NULL AS INTEGER ) ) col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT ALL CASE + + 65 WHEN - 91 THEN MAX( + + 6 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8943
SELECT ALL CASE + + 65 WHEN - 91 THEN MAX ( + + 6 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 11 + + - 71 col2
----
-82

query I rowsort
SELECT ALL 23 + + 25 AS col0
----
48

query I rowsort
SELECT DISTINCT ( - - ( + 98 ) ) AS col0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8947
SELECT DISTINCT - MIN( - - 50 ) - - NULLIF ( - CAST( NULL AS SIGNED ), - - 60 ) - - COUNT( - 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8947
SELECT DISTINCT - MIN ( - - 50 ) - - NULLIF ( - CAST ( NULL AS INTEGER ), - - 60 ) - - COUNT ( - 95 )
----
NULL

query I rowsort
SELECT ALL ( 81 ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT ALL MIN( + - 84 ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-8949
SELECT ALL MIN ( + - 84 ) AS col0
----
-84

query I rowsort
SELECT ALL - ( - ( - 1 ) ) - 43 AS col1
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8951
SELECT ALL 93 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8951
SELECT ALL 93 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8952
SELECT + CAST( - + 87 AS DECIMAL ) + 46 * + + ( - - CAST( NULL AS SIGNED ) ) + - COUNT( * ) / + 2 * CASE + 51 WHEN - 17 * - + 27 THEN + 45 WHEN - COUNT( ALL + - 12 ) / + + 93 - - CASE WHEN NOT NULLIF ( 51, + 28 - 73 ) BETWEEN - 86 - ( - 66 ) AND NULL THEN + 94 * + 99 ELSE NULL END + - COALESCE ( 12 - - ( COUNT( * ) ), 71 / + COUNT( * ) + CAST( NULL AS DECIMAL ) * + 39 ) / + 31 THEN - MIN( + 71 ) ELSE + 93 + + 86 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8952
SELECT + CAST ( - + 87 AS REAL ) + 46 * + + ( - - CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) / + 2 * CASE + 51 WHEN - 17 * - + 27 THEN + 45 WHEN - COUNT ( ALL + - 12 ) / + + 93 - - CASE WHEN NOT NULLIF ( 51, + 28 - 73 ) BETWEEN - 86 - ( - 66 ) AND NULL THEN + 94 * + 99 ELSE NULL END + - COALESCE ( 12 - - ( COUNT ( * ) ), 71 / + COUNT ( * ) + CAST ( NULL AS REAL ) * + 39 ) / + 31 THEN - MIN ( + 71 ) ELSE + 93 + + 86 END
----
NULL

query I rowsort
SELECT - 63 - + + 78 * - 44 * - 25 * + - 56
----
4804737

query I rowsort
SELECT 38 + + 33 + 82 * 34
----
2859

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT COUNT( * ) * - - 19
----
19

skipif mysql # not compatible
query I rowsort label-8955
SELECT COUNT ( * ) * - - 19
----
19

query I rowsort
SELECT 22 * 5 AS col2
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-8957
SELECT DISTINCT - COUNT( 44 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8957
SELECT DISTINCT - COUNT ( 44 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8958
SELECT ALL COUNT( * ) * - MAX( 78 ) AS col2, - 87 AS col1
----
-78
-87

skipif mysql # not compatible
query II rowsort label-8958
SELECT ALL COUNT ( * ) * - MAX ( 78 ) AS col2, - 87 AS col1
----
-78
-87

query I rowsort
SELECT 38 * - 64
----
-2432

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT DISTINCT - MIN( DISTINCT - 92 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-8960
SELECT DISTINCT - MIN ( DISTINCT - 92 ) AS col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8961
SELECT + COUNT( * ), ( CASE + - ( + CAST( NULL AS SIGNED ) ) WHEN + 89 THEN NULL WHEN - 8 + - 72 THEN ( ( + + COALESCE ( ( - 39 ), 90, - 51 ) ) ) ELSE NULL END ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8961
SELECT + COUNT ( * ), ( CASE + - ( + CAST ( NULL AS INTEGER ) ) WHEN + 89 THEN NULL WHEN - 8 + - 72 THEN ( ( + + COALESCE ( ( - 39 ), 90, - 51 ) ) ) ELSE NULL END ) AS col1
----
1
NULL

query II rowsort
SELECT 61 * + 3 * + 86 AS col2, 84 * + - 18 AS col1
----
15738
-1512

query I rowsort
SELECT 5 * 67
----
335

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT SUM( + + COALESCE ( - 24, 77 * + 61 * - + ( - 47 ) - 85 * - + 19, + 72 ) ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-8964
SELECT SUM ( + + COALESCE ( - 24, 77 * + 61 * - + ( - 47 ) - 85 * - + 19, + 72 ) ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT + MIN( 69 )
----
69

skipif mysql # not compatible
query I rowsort label-8965
SELECT + MIN ( 69 )
----
69

onlyif mysql # aggregate syntax: 
query III rowsort label-8966
SELECT - SUM( - - 20 ) - - 44 AS col0, 68 AS col0, + 70
----
24
68
70

skipif mysql # not compatible
query III rowsort label-8966
SELECT - SUM ( - - 20 ) - - 44 AS col0, 68 AS col0, + 70
----
24
68
70

query II rowsort
SELECT - 13 AS col1, - 28 * - - 14
----
-13
-392

query I rowsort
SELECT ALL - 6 + 5 col1
----
-1

query I rowsort
SELECT 84 + 21 AS col2
----
105

query I rowsort
SELECT DISTINCT - 73 + - 38
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT ALL - 15 + - SUM( - - 73 ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-8971
SELECT ALL - 15 + - SUM ( - - 73 ) AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT ALL - - COUNT( * ) + + 55
----
56

skipif mysql # not compatible
query I rowsort label-8972
SELECT ALL - - COUNT ( * ) + + 55
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8973
SELECT - 25 * 91 * - 48 - CAST( - - 87 AS SIGNED ) + + + 95 + + 78 - + 4
----
109282

skipif mysql # not compatible
query I rowsort label-8973
SELECT - 25 * 91 * - 48 - CAST ( - - 87 AS INTEGER ) + + + 95 + + 78 - + 4
----
109282

query I rowsort
SELECT 53 - - 79 AS col1
----
132

onlyif mysql # aggregate syntax: 
query II rowsort label-8975
SELECT + 53, - MAX( ALL + + 44 ) * + 0 * + CASE + + 31 WHEN + - 33 THEN - 32 ELSE 79 END AS col0
----
53
0

skipif mysql # not compatible
query II rowsort label-8975
SELECT + 53, - MAX ( ALL + + 44 ) * + 0 * + CASE + + 31 WHEN + - 33 THEN - 32 ELSE 79 END AS col0
----
53
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8976
SELECT + CAST( + 48 AS SIGNED ) * 24 - + 39 + 1 / + - 65 * + 20 / + + CAST( NULL AS DECIMAL ) + + ( + + 20 ) * + 44 * - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-8976
SELECT + CAST ( + 48 AS INTEGER ) * 24 - + 39 + 1 / + - 65 * + 20 / + + CAST ( NULL AS REAL ) + + ( + + 20 ) * + 44 * - 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT ALL + 80 + + COALESCE ( - - COUNT( * ), + 95 * + - 78 )
----
81

skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL + 80 + + COALESCE ( - - COUNT ( * ), + 95 * + - 78 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT ALL COUNT( * ) * - - ( - - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-8978
SELECT ALL COUNT ( * ) * - - ( - - COUNT ( * ) )
----
1

query I rowsort
SELECT ALL + 7 - - 51 AS col2
----
58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8980
SELECT 6 + - 64 DIV 78 + + 51 AS col2, - 4 DIV CAST( NULL AS SIGNED ) * - 32 + + 35
----
57
NULL

skipif mysql # not compatible
query II rowsort label-8980
SELECT 6 + - 64 / 78 + + 51 AS col2, - 4 / CAST ( NULL AS INTEGER ) * - 32 + + 35
----
57
NULL

query I rowsort
SELECT ALL 5 - - ( + 5 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT 32 + + - COUNT( + 3 )
----
31

skipif mysql # not compatible
query I rowsort label-8982
SELECT 32 + + - COUNT ( + 3 )
----
31

query I rowsort
SELECT 3 * + + 94
----
282

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8984
SELECT CAST( NULL AS SIGNED ) + + + 66 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8984
SELECT CAST ( NULL AS INTEGER ) + + + 66 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8985
SELECT ALL ( COUNT( * ) ) - NULLIF ( + - 67, + CAST( - 19 AS SIGNED ) )
----
68

skipif mysql # not compatible
query I rowsort label-8985
SELECT ALL ( COUNT ( * ) ) - NULLIF ( + - 67, + CAST ( - 19 AS INTEGER ) )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT COUNT( * ) + - + 95 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-8986
SELECT COUNT ( * ) + - + 95 AS col0
----
-94

query I rowsort
SELECT DISTINCT 51 * + 71
----
3621

onlyif mysql # aggregate syntax: 
query I rowsort label-8988
SELECT DISTINCT - NULLIF ( 57, 9 * MAX( + 29 ) )
----
-57

skipif mysql # not compatible
query I rowsort label-8988
SELECT DISTINCT - NULLIF ( 57, 9 * MAX ( + 29 ) )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT ALL - 45 * - COUNT( * ) * 65
----
2925

skipif mysql # not compatible
query I rowsort label-8989
SELECT ALL - 45 * - COUNT ( * ) * 65
----
2925

query I rowsort
SELECT ( - + 22 ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT 66 * + - COUNT( * ) + + - SUM( 12 ) + - 36
----
-114

skipif mysql # not compatible
query I rowsort label-8991
SELECT 66 * + - COUNT ( * ) + + - SUM ( 12 ) + - 36
----
-114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8992
SELECT ALL - COALESCE ( - NULLIF ( + + 40, - 21 - - COALESCE ( - 80, - COUNT( * ) ) + - 4 ), + - ( ( 12 ) ) DIV + + 98 ) + + 5 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-8992
SELECT ALL - COALESCE ( - NULLIF ( + + 40, - 21 - - COALESCE ( - 80, - COUNT ( * ) ) + - 4 ), + - ( ( 12 ) ) / + + 98 ) + + 5 AS col0
----
45

query I rowsort
SELECT - 73 * - - ( 79 ) * + + 61 * 63 + + ( - - 95 ) + - - ( + 78 ) + + 64
----
-22162344

query I rowsort
SELECT DISTINCT + 99 + + 38
----
137

query I rowsort
SELECT ALL + - 94 + - 91
----
-185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8996
SELECT ALL 45 * - - COALESCE ( + COUNT( * ), + + 22, - ( 2 ) * 74 * 11 DIV 84 * - - COUNT( * ) ) * - 10 + + + COUNT( * ) + - 24
----
-473

skipif mysql # not compatible
query I rowsort label-8996
SELECT ALL 45 * - - COALESCE ( + COUNT ( * ), + + 22, - ( 2 ) * 74 * 11 / 84 * - - COUNT ( * ) ) * - 10 + + + COUNT ( * ) + - 24
----
-473

query II rowsort
SELECT DISTINCT 50 * - 25 AS col0, + 13
----
-1250
13

query I rowsort
SELECT ALL - + 81 + + 2 AS col2
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8999
SELECT ALL + - 18 / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8999
SELECT ALL + - 18 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9000
SELECT DISTINCT - 17 + - COUNT( * ) + 82
----
64

skipif mysql # not compatible
query I rowsort label-9000
SELECT DISTINCT - 17 + - COUNT ( * ) + 82
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9001
SELECT ALL - + CAST( - + 76 AS SIGNED ) + - + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-9001
SELECT ALL - + CAST ( - + 76 AS INTEGER ) + - + COUNT ( * )
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9002
SELECT - - 49 * - ( + ( - 76 ) ) - - 72 * - + 59 + + 9 - COUNT( * ) DIV - - 35 * + 18 * + 79
----
-515

skipif mysql # not compatible
query I rowsort label-9002
SELECT - - 49 * - ( + ( - 76 ) ) - - 72 * - + 59 + + 9 - COUNT ( * ) / - - 35 * + 18 * + 79
----
-515

query I rowsort
SELECT ALL - + 14 * - 78
----
1092

query I rowsort
SELECT - 87 * ( - - 56 ) AS col2
----
-4872

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT DISTINCT + - 64 - + - COUNT( DISTINCT - + 60 ) - + 43 * + 71 - MIN( - + CASE - ( + 79 ) WHEN + 54 * - 42 - 34 + 13 THEN NULL WHEN - - 85 THEN NULL ELSE - 62 END ) AS col1
----
-3178

skipif mysql # not compatible
query I rowsort label-9005
SELECT DISTINCT + - 64 - + - COUNT ( DISTINCT - + 60 ) - + 43 * + 71 - MIN ( - + CASE - ( + 79 ) WHEN + 54 * - 42 - 34 + 13 THEN NULL WHEN - - 85 THEN NULL ELSE - 62 END ) AS col1
----
-3178

query I rowsort
SELECT ALL COALESCE ( + 60, 29 * + 15, + + 57 ) AS col2
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9007
SELECT ALL COALESCE ( + 9, - + COUNT( * ) * COUNT( * ) DIV - - 41 - + - 89 * + + 92 DIV + 63 + - + 31 * + + CAST( NULL AS SIGNED ) * 52 * - - 98 + - 80 * - 96 ) - + 24 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-9007
SELECT ALL COALESCE ( + 9, - + COUNT ( * ) * COUNT ( * ) / - - 41 - + - 89 * + + 92 / + 63 + - + 31 * + + CAST ( NULL AS INTEGER ) * 52 * - - 98 + - 80 * - 96 ) - + 24 AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT ALL + 3 * 85 * + + COUNT( * )
----
255

skipif mysql # not compatible
query I rowsort label-9008
SELECT ALL + 3 * 85 * + + COUNT ( * )
----
255

query I rowsort
SELECT - 76 * 39 AS col2
----
-2964

query I rowsort
SELECT + 81 + - + 95 + + 77 AS col2
----
63

query I rowsort
SELECT - 52 * - 76
----
3952

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT + COUNT( * ) * - - COUNT( * ) * - + ( + 31 ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-9012
SELECT + COUNT ( * ) * - - COUNT ( * ) * - + ( + 31 ) AS col2
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-9013
SELECT ALL ( ( - - 4 ) ) DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-9013
SELECT ALL ( ( - - 4 ) ) / 88
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9014
SELECT - 28 - + CAST( 42 AS SIGNED )
----
-70

skipif mysql # not compatible
query I rowsort label-9014
SELECT - 28 - + CAST ( 42 AS INTEGER )
----
-70

query I rowsort
SELECT - 45 * 9 col0
----
-405

query I rowsort
SELECT + 4 - - ( - - 13 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT DISTINCT + CASE + - 95 WHEN 83 * - - 82 THEN 86 * - + COALESCE ( + + 74, + - 11 / 75 + - - COUNT( * ) + MAX( 34 ) ) END / NULLIF ( - 96, 90 ) + + MAX( DISTINCT - 99 ) / 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9017
SELECT DISTINCT + CASE + - 95 WHEN 83 * - - 82 THEN 86 * - + COALESCE ( + + 74, + - 11 / 75 + - - COUNT ( * ) + MAX ( 34 ) ) END / NULLIF ( - 96, 90 ) + + MAX ( DISTINCT - 99 ) / 25 AS col0
----
NULL

query I rowsort
SELECT ALL - 4 + - + 62 + - 73 * - - 35 * + 22 * - 29 * + 16 + - 27 - - + 62 AS col1
----
26081409

query I rowsort
SELECT ALL 92 * - 2 * - 56 AS col2
----
10304

query I rowsort
SELECT ALL 10 + + 4 col0
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-9021
SELECT - 68 + - + 2 + 58 * COUNT( * ) * - - 1, 75 AS col1
----
-12
75

skipif mysql # not compatible
query II rowsort label-9021
SELECT - 68 + - + 2 + 58 * COUNT ( * ) * - - 1, 75 AS col1
----
-12
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT - 86 * MAX( DISTINCT + 78 ) AS col2
----
-6708

skipif mysql # not compatible
query I rowsort label-9022
SELECT - 86 * MAX ( DISTINCT + 78 ) AS col2
----
-6708

query I rowsort
SELECT DISTINCT CASE + - 45 WHEN - - 69 THEN - + 67 END + - 31 * - 22 - - + 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT + + CASE COUNT( ALL - 13 ) WHEN ( ( - + ( 77 ) ) ) THEN + + 44 END / - COUNT( * ) * + + COUNT( * ) / + 80 + - 87 - + - SUM( + ( 45 ) ) + + COUNT( * ) / + 27 - - 72 + + 69 * + 79 / - 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9024
SELECT + + CASE COUNT ( ALL - 13 ) WHEN ( ( - + ( 77 ) ) ) THEN + + 44 END / - COUNT ( * ) * + + COUNT ( * ) / + 80 + - 87 - + - SUM ( + ( 45 ) ) + + COUNT ( * ) / + 27 - - 72 + + 69 * + 79 / - 94 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT + COUNT( + 13 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9025
SELECT + COUNT ( + 13 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT ALL COUNT( * ) * + 93 + + 30 col1
----
123

skipif mysql # not compatible
query I rowsort label-9026
SELECT ALL COUNT ( * ) * + 93 + + 30 col1
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT + - COUNT( * ) * + 53 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-9027
SELECT + - COUNT ( * ) * + 53 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT - MAX( DISTINCT - 35 ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-9028
SELECT - MAX ( DISTINCT - 35 ) AS col1
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9029
SELECT - COUNT( * ) DIV + SUM( ALL + 24 )
----
0

skipif mysql # not compatible
query I rowsort label-9029
SELECT - COUNT ( * ) / + SUM ( ALL + 24 )
----
0

query I rowsort
SELECT 32 * + - 16 - - - 3 + + 10 col0
----
-505

query I rowsort
SELECT + 62 * + + 94
----
5828

query I rowsort
SELECT ALL 57 * 95 * - 4 - - 29 AS col2
----
-21631

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT DISTINCT CASE + ( + - 46 ) WHEN + ( - 23 ) THEN NULL WHEN 25 * 60 THEN NULL WHEN + 65 / + 97 THEN + 43 * + COUNT( * ) * + COUNT( 87 ) * + COUNT( * ) ELSE - 57 END * + 98
----
-5586

skipif mysql # not compatible
query I rowsort label-9033
SELECT DISTINCT CASE + ( + - 46 ) WHEN + ( - 23 ) THEN NULL WHEN 25 * 60 THEN NULL WHEN + 65 / + 97 THEN + 43 * + COUNT ( * ) * + COUNT ( 87 ) * + COUNT ( * ) ELSE - 57 END * + 98
----
-5586

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9034
SELECT - 12 / + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9034
SELECT - 12 / + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT + CASE - ( - 35 ) WHEN + 2 THEN + 71 * - 4 + - 64 + + 45 WHEN - + 73 THEN - 87 ELSE NULL END + + - COALESCE ( + 52, 0, - - 40 * + 33 * - 73 * + 1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT ALL + COUNT( - 39 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9036
SELECT ALL + COUNT ( - 39 ) col2
----
1

query II rowsort
SELECT + 58 + - - 63 AS col2, + 34
----
121
34

query I rowsort
SELECT - 64 - + 92
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT + 35 * - + 37 * - MAX( DISTINCT 76 ) * - COUNT( * )
----
-98420

skipif mysql # not compatible
query I rowsort label-9039
SELECT + 35 * - + 37 * - MAX ( DISTINCT 76 ) * - COUNT ( * )
----
-98420

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT - COUNT( * ) + - - 98 AS col2
----
97

skipif mysql # not compatible
query I rowsort label-9040
SELECT - COUNT ( * ) + - - 98 AS col2
----
97

query I rowsort
SELECT ALL ( ( - 50 ) )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT - 28 + + ( - 68 ) - + CASE - 38 WHEN - ( + 56 ) THEN + NULLIF ( - + 43, - COUNT( 21 ) * - COUNT( * ) ) * + COUNT( * ) END * + - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-9042
SELECT - 28 + + ( - 68 ) - + CASE - 38 WHEN - ( + 56 ) THEN + NULLIF ( - + 43, - COUNT ( 21 ) * - COUNT ( * ) ) * + COUNT ( * ) END * + - 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT DISTINCT SUM( DISTINCT - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-9043
SELECT DISTINCT SUM ( DISTINCT - 32 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT - 4 + - + MIN( DISTINCT 30 )
----
-34

skipif mysql # not compatible
query I rowsort label-9044
SELECT - 4 + - + MIN ( DISTINCT 30 )
----
-34

query II rowsort
SELECT ALL + 45 * 52 * + + 12 * - + 4 AS col0, - 82 AS col1
----
-112320
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT - COUNT( * ) * + 64 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-9046
SELECT - COUNT ( * ) * + 64 AS col0
----
-64

query I rowsort
SELECT DISTINCT 10 + + 6
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9048
SELECT - 69 * 99 DIV - - COUNT( * )
----
-6831

skipif mysql # not compatible
query I rowsort label-9048
SELECT - 69 * 99 / - - COUNT ( * )
----
-6831

query II rowsort
SELECT - 86 + 89 AS col0, + 65
----
3
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9050
SELECT DISTINCT CAST( - 28 AS SIGNED )
----
-28

skipif mysql # not compatible
query I rowsort label-9050
SELECT DISTINCT CAST ( - 28 AS INTEGER )
----
-28

query II rowsort
SELECT - 2, 60 AS col2
----
-2
60

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-9052
SELECT 64, CAST( - 55 AS SIGNED ) * - - 69 AS col2, + 97 DIV + + 34 AS col0
----
64
-3795
2

skipif mysql # not compatible
query III rowsort label-9052
SELECT 64, CAST ( - 55 AS INTEGER ) * - - 69 AS col2, + 97 / + + 34 AS col0
----
64
-3795
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9053
SELECT ALL - 9 + - + 15 * + COALESCE ( - CASE - + 68 WHEN + COUNT( * ) THEN NULL WHEN - - CASE 4 WHEN - ( + - COUNT( * ) ) THEN COUNT( * ) + 0 ELSE + 94 * - 87 END THEN + - 64 ELSE NULL END, + - COUNT( * ) - + 47, - 83 * - 77 ) + + + NULLIF ( ( 83 ), 41 - 26 * + NULLIF ( 76 - + CASE + ( - 3 ) + COUNT( * ) WHEN + 62 + 91 THEN + 45 WHEN COALESCE ( CAST( 97 AS SIGNED ), 60 ) THEN NULL END * 51, 59 ) ) AS col1
----
794

skipif mysql # not compatible
query I rowsort label-9053
SELECT ALL - 9 + - + 15 * + COALESCE ( - CASE - + 68 WHEN + COUNT ( * ) THEN NULL WHEN - - CASE 4 WHEN - ( + - COUNT ( * ) ) THEN COUNT ( * ) + 0 ELSE + 94 * - 87 END THEN + - 64 ELSE NULL END, + - COUNT ( * ) - + 47, - 83 * - 77 ) + + + NULLIF ( ( 83 ), 41 - 26 * + NULLIF ( 76 - + CASE + ( - 3 ) + COUNT ( * ) WHEN + 62 + 91 THEN + 45 WHEN COALESCE ( CAST ( 97 AS INTEGER ), 60 ) THEN NULL END * 51, 59 ) ) AS col1
----
794

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9054
SELECT - 26 + COUNT( * ) + + + 64 - - CASE + + 89 WHEN + 48 * 98 - + - 54 + 97 / + CAST( - 92 AS DECIMAL ) THEN NULL WHEN COUNT( * ) + + 78 * + 47 THEN + - 98 * - 34 * 86 - + COUNT( * ) END + - + 94 * - COUNT( * ) * 1 / 11 * - 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9054
SELECT - 26 + COUNT ( * ) + + + 64 - - CASE + + 89 WHEN + 48 * 98 - + - 54 + 97 / + CAST ( - 92 AS REAL ) THEN NULL WHEN COUNT ( * ) + + 78 * + 47 THEN + - 98 * - 34 * 86 - + COUNT ( * ) END + - + 94 * - COUNT ( * ) * 1 / 11 * - 19 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9055
SELECT DISTINCT 65 DIV + + 2 col0
----
32

skipif mysql # not compatible
query I rowsort label-9055
SELECT DISTINCT 65 / + + 2 col0
----
32

query I rowsort
SELECT - - 30 * - 18
----
-540

query I rowsort
SELECT + 53 + 5 AS col1
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9058
SELECT ALL - + 10 DIV + 47 + - 43 - - SUM( ALL + 96 ) * + 71 AS col0
----
6773

skipif mysql # not compatible
query I rowsort label-9058
SELECT ALL - + 10 / + 47 + - 43 - - SUM ( ALL + 96 ) * + 71 AS col0
----
6773

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9059
SELECT ALL - 41 DIV NULLIF ( + 7, + 20 * + COUNT( * ) * - 91 ) + - + 53 + - 49 + 91 + - + 30
----
-46

skipif mysql # not compatible
query I rowsort label-9059
SELECT ALL - 41 / NULLIF ( + 7, + 20 * + COUNT ( * ) * - 91 ) + - + 53 + - 49 + 91 + - + 30
----
-46

query I rowsort
SELECT DISTINCT - 86 * - + 80 * 40
----
275200

query I rowsort
SELECT ALL 6 * 44 * + 63 col2
----
16632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9062
SELECT + 5 * + 16 + 1 + + - ( + - 53 ) * CAST( 80 AS SIGNED ) col2
----
4321

skipif mysql # not compatible
query I rowsort label-9062
SELECT + 5 * + 16 + 1 + + - ( + - 53 ) * CAST ( 80 AS INTEGER ) col2
----
4321

query I rowsort
SELECT + 94 * + 43
----
4042

query I rowsort
SELECT 87 * - 72 + + 95 + 11 AS col1
----
-6158

onlyif mysql # DIV for integer division: 
query I rowsort label-9065
SELECT + + 12 DIV - 38 - + 21 + - 32 col2
----
-53

skipif mysql # not compatible
query I rowsort label-9065
SELECT + + 12 / - 38 - + 21 + - 32 col2
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-9066
SELECT ALL - 97 DIV - 93 - 42 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-9066
SELECT ALL - 97 / - 93 - 42 AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT - MIN( ALL - 5 ) * 10 + + + COUNT( * ) col1
----
51

skipif mysql # not compatible
query I rowsort label-9067
SELECT - MIN ( ALL - 5 ) * 10 + + + COUNT ( * ) col1
----
51

query II rowsort
SELECT ALL 29 * - - 68, + 43 * + 69 AS col2
----
1972
2967

query I rowsort
SELECT 6 * + 98 * 76 AS col1
----
44688

query I rowsort
SELECT 41 + 48 * - - 81 * + 17 + + 31 + 98
----
66266

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT ALL 47 * + CASE + 0 WHEN 30 THEN + + 21 + - 42 + + + COUNT( * ) * 35 * - + 6 / 7 * + + 4 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9071
SELECT ALL 47 * + CASE + 0 WHEN 30 THEN + + 21 + - 42 + + + COUNT ( * ) * 35 * - + 6 / 7 * + + 4 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9072
SELECT 48 DIV + - COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-9072
SELECT 48 / + - COUNT ( * )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9073
SELECT DISTINCT - 4 + 30 * - + 84 + 22 + + 10 * ( - COUNT( * ) )
----
-2512

skipif mysql # not compatible
query I rowsort label-9073
SELECT DISTINCT - 4 + 30 * - + 84 + 22 + + 10 * ( - COUNT ( * ) )
----
-2512

onlyif mysql # DIV for integer division: 
query I rowsort label-9074
SELECT 50 DIV + + ( - 9 ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-9074
SELECT 50 / + + ( - 9 ) AS col1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9075
SELECT CAST( NULL AS SIGNED ) + + 78, + 82 AS col2
----
NULL
82

skipif mysql # not compatible
query II rowsort label-9075
SELECT CAST ( NULL AS INTEGER ) + + 78, + 82 AS col2
----
NULL
82

query I rowsort
SELECT DISTINCT + 41 + 16 AS col0
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9077
SELECT ALL + 23 + - 71 + - + SUM( DISTINCT + + CASE + - 62 WHEN 57 THEN + + 34 * + - 0 - - CASE + 48 WHEN - - 99 THEN 20 ELSE NULL END + + 9 + - 54 ELSE NULL END ) + + 24 * CAST( - - 94 AS SIGNED ) * + COUNT( * ) + + ( + COUNT( * ) ) + - + ( - + 5 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9077
SELECT ALL + 23 + - 71 + - + SUM ( DISTINCT + + CASE + - 62 WHEN 57 THEN + + 34 * + - 0 - - CASE + 48 WHEN - - 99 THEN 20 ELSE NULL END + + 9 + - 54 ELSE NULL END ) + + 24 * CAST ( - - 94 AS INTEGER ) * + COUNT ( * ) + + ( + COUNT ( * ) ) + - + ( - + 5 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9078
SELECT ALL - 14 * - 95, + COUNT( + - 5 ) AS col0
----
1330
1

skipif mysql # not compatible
query II rowsort label-9078
SELECT ALL - 14 * - 95, + COUNT ( + - 5 ) AS col0
----
1330
1

query I rowsort
SELECT DISTINCT 94 + - 86 + + 63 AS col2
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9080
SELECT DISTINCT + ( + - ( + - CAST( NULL AS SIGNED ) ) ) - - + CAST( NULL AS SIGNED ) + COUNT( * ) - - - 20 + - ( + + 55 ) * ( - 43 ) - + - 15 * COUNT( * ) / + - NULLIF ( - + 4, - 40 ) + - + 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9080
SELECT DISTINCT + ( + - ( + - CAST ( NULL AS INTEGER ) ) ) - - + CAST ( NULL AS INTEGER ) + COUNT ( * ) - - - 20 + - ( + + 55 ) * ( - 43 ) - + - 15 * COUNT ( * ) / + - NULLIF ( - + 4, - 40 ) + - + 18 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9081
SELECT DISTINCT ( + - 24 ) AS col1, + 38 * - - 45 * - 35 * COUNT( * ) AS col1
----
-24
-59850

skipif mysql # not compatible
query II rowsort label-9081
SELECT DISTINCT ( + - 24 ) AS col1, + 38 * - - 45 * - 35 * COUNT ( * ) AS col1
----
-24
-59850

onlyif mysql # DIV for integer division: 
query I rowsort label-9082
SELECT 53 + + 52 DIV - 70 * - 7 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-9082
SELECT 53 + + 52 / - 70 * - 7 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT COUNT( * ) - MAX( ALL + 63 ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-9083
SELECT COUNT ( * ) - MAX ( ALL + 63 ) AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT + COUNT( * ) * 96 + - 41 + 97
----
152

skipif mysql # not compatible
query I rowsort label-9084
SELECT + COUNT ( * ) * 96 + - 41 + 97
----
152

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9085
SELECT 53 * - 13 * - CAST( NULL AS DECIMAL ) + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-9085
SELECT 53 * - 13 * - CAST ( NULL AS REAL ) + 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT ALL - - SUM( - 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-9086
SELECT ALL - - SUM ( - 7 )
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9087
SELECT DISTINCT - 3 / + 12 + + CASE - - COALESCE ( - 45, - 15 ) WHEN - + ( + ( - + CAST( + 66 AS SIGNED ) ) ) THEN + + 59 * + 5 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9087
SELECT DISTINCT - 3 / + 12 + + CASE - - COALESCE ( - 45, - 15 ) WHEN - + ( + ( - + CAST ( + 66 AS INTEGER ) ) ) THEN + + 59 * + 5 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9088
SELECT COUNT( * ) + 32 AS col0, 17 + + 75
----
33
92

skipif mysql # not compatible
query II rowsort label-9088
SELECT COUNT ( * ) + 32 AS col0, 17 + + 75
----
33
92

query I rowsort
SELECT 6 * + 44 + 65
----
329

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9090
SELECT DISTINCT 88 + + - COUNT( * ) + 86 DIV 71 - + 55 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-9090
SELECT DISTINCT 88 + + - COUNT ( * ) + 86 / 71 - + 55 AS col2
----
33

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9091
SELECT ALL NULLIF ( + 82, - 5 DIV 67 ) + - CAST( - 8 AS SIGNED ) * - - 3 DIV 35 * - 85
----
82

skipif mysql # not compatible
query I rowsort label-9091
SELECT ALL NULLIF ( + 82, - 5 / 67 ) + - CAST ( - 8 AS INTEGER ) * - - 3 / 35 * - 85
----
82

query I rowsort
SELECT 22 + 15 AS col0
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9093
SELECT ALL ( - 41 ) + - - COALESCE ( - MIN( ALL - 54 ), + COUNT( * ) + + 1, + 13 * + 24 * + CASE - 45 WHEN + + COUNT( * ) THEN NULL WHEN + 88 - - 68 THEN + 92 * - - 45 END - + CAST( 82 AS DECIMAL ) + COUNT( ALL + + 56 ) - - MAX( - 96 ) + NULLIF ( 7, COUNT( * ) ) / + 38 * + MIN( - 47 * 99 + 94 * CAST( 68 AS SIGNED ) ) ) * - CASE + 10 + - 29 / 88 WHEN COUNT( * ) THEN CAST( NULL AS SIGNED ) WHEN 54 THEN 34 * 10 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9093
SELECT ALL ( - 41 ) + - - COALESCE ( - MIN ( ALL - 54 ), + COUNT ( * ) + + 1, + 13 * + 24 * + CASE - 45 WHEN + + COUNT ( * ) THEN NULL WHEN + 88 - - 68 THEN + 92 * - - 45 END - + CAST ( 82 AS REAL ) + COUNT ( ALL + + 56 ) - - MAX ( - 96 ) + NULLIF ( 7, COUNT ( * ) ) / + 38 * + MIN ( - 47 * 99 + 94 * CAST ( 68 AS INTEGER ) ) ) * - CASE + 10 + - 29 / 88 WHEN COUNT ( * ) THEN CAST ( NULL AS INTEGER ) WHEN 54 THEN 34 * 10 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9094
SELECT COUNT( * ) + 57 + - - 77 * + - 87 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9094
SELECT COUNT ( * ) + 57 + - - 77 * + - 87 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT ALL + 17 + - + COUNT( * ) * + COALESCE ( - 40, COUNT( * ) * - + 63 * + COUNT( * ), - 20 )
----
57

skipif mysql # not compatible
query I rowsort label-9095
SELECT ALL + 17 + - + COUNT ( * ) * + COALESCE ( - 40, COUNT ( * ) * - + 63 * + COUNT ( * ), - 20 )
----
57

query I rowsort
SELECT ALL 93 + + + 93 AS col0
----
186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9097
SELECT COUNT( * ) + + CASE CAST( NULL AS DECIMAL ) WHEN - + AVG ( + CAST( NULL AS SIGNED ) ) * + 53 + COUNT( * ) THEN + 64 WHEN ( + + CAST( NULL AS SIGNED ) ) * + AVG ( DISTINCT + 51 ) THEN NULL ELSE NULL END * - 5 * 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9097
SELECT COUNT ( * ) + + CASE CAST ( NULL AS REAL ) WHEN - + AVG ( + CAST ( NULL AS INTEGER ) ) * + 53 + COUNT ( * ) THEN + 64 WHEN ( + + CAST ( NULL AS INTEGER ) ) * + AVG ( DISTINCT + 51 ) THEN NULL ELSE NULL END * - 5 * 52 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT 31 + + + 94 * - ( - - 88 ) + COUNT( * ) * - 11 * 80
----
-9121

skipif mysql # not compatible
query I rowsort label-9098
SELECT 31 + + + 94 * - ( - - 88 ) + COUNT ( * ) * - 11 * 80
----
-9121

onlyif mysql # aggregate syntax: 
query II rowsort label-9099
SELECT MIN( DISTINCT 1 ) + + - 59 col1, - MIN( 72 ) AS col2
----
-58
-72

skipif mysql # not compatible
query II rowsort label-9099
SELECT MIN ( DISTINCT 1 ) + + - 59 col1, - MIN ( 72 ) AS col2
----
-58
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-9100
SELECT 95, COUNT( * ) AS col2
----
95
1

skipif mysql # not compatible
query II rowsort label-9100
SELECT 95, COUNT ( * ) AS col2
----
95
1

query I rowsort
SELECT DISTINCT 74 * 38
----
2812

query I rowsort
SELECT ALL 33 + + 69
----
102

query I rowsort
SELECT DISTINCT 92 * + 5
----
460

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9104
SELECT ALL COUNT( * ) DIV + 40 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9104
SELECT ALL COUNT ( * ) / + 40 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9105
SELECT ALL 27 * - COUNT( * ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-9105
SELECT ALL 27 * - COUNT ( * ) AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT DISTINCT NULLIF ( 94, + - COUNT( * ) + + 35 ) * - - COUNT( DISTINCT 93 )
----
94

skipif mysql # not compatible
query I rowsort label-9106
SELECT DISTINCT NULLIF ( 94, + - COUNT ( * ) + + 35 ) * - - COUNT ( DISTINCT 93 )
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-9107
SELECT ALL 97 - + 71 - - - 57 + + 77 * 22 DIV + - 51
----
-64

skipif mysql # not compatible
query I rowsort label-9107
SELECT ALL 97 - + 71 - - - 57 + + 77 * 22 / + - 51
----
-64

query I rowsort
SELECT CASE + 81 WHEN - 73 THEN NULL ELSE - 24 END + - 85 * 46
----
-3934

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9109
SELECT ALL + COALESCE ( + 2, - MAX( + 71 ) DIV COUNT( * ) + 65 ) - + + 32 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-9109
SELECT ALL + COALESCE ( + 2, - MAX ( + 71 ) / COUNT ( * ) + 65 ) - + + 32 AS col2
----
-30

query I rowsort
SELECT COALESCE ( 95, 6 * + - 93 * ( - + 7 ) ) + - 10 col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT + 79 * 87 * + NULLIF ( - + 47, - COUNT( * ) * 59 + 65 + 62 - + - 15 * 0 * + 25 ) + - 84 col1
----
-323115

skipif mysql # not compatible
query I rowsort label-9111
SELECT + 79 * 87 * + NULLIF ( - + 47, - COUNT ( * ) * 59 + 65 + 62 - + - 15 * 0 * + 25 ) + - 84 col1
----
-323115

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT + NULLIF ( + SUM( + 77 ), + SUM( DISTINCT - - 87 ) ) * 40
----
3080

skipif mysql # not compatible
query I rowsort label-9112
SELECT + NULLIF ( + SUM ( + 77 ), + SUM ( DISTINCT - - 87 ) ) * 40
----
3080

query I rowsort
SELECT - 15 * + + 68
----
-1020

query I rowsort
SELECT 89 * + 33
----
2937

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT 76 + - ( NULLIF ( + 50, - 16 * 57 * - MAX( ALL - 33 ) * - - 45 ) ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-9115
SELECT 76 + - ( NULLIF ( + 50, - 16 * 57 * - MAX ( ALL - 33 ) * - - 45 ) ) AS col1
----
26

query II rowsort
SELECT ALL 72 col2, 59
----
72
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT ALL SUM( + 2 )
----
2

skipif mysql # not compatible
query I rowsort label-9117
SELECT ALL SUM ( + 2 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT 68 + - + COUNT( ALL + + ( - ( ( + + 49 ) ) ) ) + + - 13 + - 63 * - 32 + - 91 + 80 AS col0
----
2059

skipif mysql # not compatible
query I rowsort label-9118
SELECT 68 + - + COUNT ( ALL + + ( - ( ( + + 49 ) ) ) ) + + - 13 + - 63 * - 32 + - 91 + 80 AS col0
----
2059

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9119
SELECT ALL - + CAST( + NULLIF ( + 14, + 35 ) AS SIGNED ) * + 1
----
-14

skipif mysql # not compatible
query I rowsort label-9119
SELECT ALL - + CAST ( + NULLIF ( + 14, + 35 ) AS INTEGER ) * + 1
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9120
SELECT ALL - CAST( 18 AS SIGNED )
----
-18

skipif mysql # not compatible
query I rowsort label-9120
SELECT ALL - CAST ( 18 AS INTEGER )
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9121
SELECT + CAST( NULL AS SIGNED ), 1 + 49 AS col2
----
NULL
50

skipif mysql # not compatible
query II rowsort label-9121
SELECT + CAST ( NULL AS INTEGER ), 1 + 49 AS col2
----
NULL
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT + 18 * + 5 + + AVG ( + - 42 ) * + 25 * + CASE + 51 WHEN 8 / - 65 + COALESCE ( + 63, - + MAX( ALL + 77 ) ) + + + 85 / + 21 * + 31 * 3 + SUM( 14 ) * + 11 * - 48 * + 13 - + 19 THEN + COUNT( * ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9122
SELECT + 18 * + 5 + + AVG ( + - 42 ) * + 25 * + CASE + 51 WHEN 8 / - 65 + COALESCE ( + 63, - + MAX ( ALL + 77 ) ) + + + 85 / + 21 * + 31 * 3 + SUM ( 14 ) * + 11 * - 48 * + 13 - + 19 THEN + COUNT ( * ) ELSE NULL END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9123
SELECT ALL - - 63 * - CAST( ( + 35 ) AS SIGNED ), 35 AS col2
----
-2205
35

skipif mysql # not compatible
query II rowsort label-9123
SELECT ALL - - 63 * - CAST ( ( + 35 ) AS INTEGER ), 35 AS col2
----
-2205
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9124
SELECT + 7 AS col2, CAST( NULL AS SIGNED ) AS col1
----
7
NULL

skipif mysql # not compatible
query II rowsort label-9124
SELECT + 7 AS col2, CAST ( NULL AS INTEGER ) AS col1
----
7
NULL

query I rowsort
SELECT - 1 + - 57 + + 4 * 32
----
70

query I rowsort
SELECT ALL - 30 * + 99 + + 92 AS col0
----
-2878

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT NULLIF ( SUM( + + 83 ), - + ( + 1 ) / + - ( - 91 ) + - 30 / + 73 )
----
83

skipif mysql # not compatible
query I rowsort label-9127
SELECT NULLIF ( SUM ( + + 83 ), - + ( + 1 ) / + - ( - 91 ) + - 30 / + 73 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT ALL - ( COUNT( + + 67 ) ) * - 83 + + 15 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-9128
SELECT ALL - ( COUNT ( + + 67 ) ) * - 83 + + 15 AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT DISTINCT + SUM( 93 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-9129
SELECT DISTINCT + SUM ( 93 ) AS col0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-9130
SELECT - 82 DIV + 1
----
-82

skipif mysql # not compatible
query I rowsort label-9130
SELECT - 82 / + 1
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9131
SELECT ALL CAST( - 60 AS SIGNED ) * + MAX( - - 43 ) * + - 59 + + + 7 * - 85 col2
----
151625

skipif mysql # not compatible
query I rowsort label-9131
SELECT ALL CAST ( - 60 AS INTEGER ) * + MAX ( - - 43 ) * + - 59 + + + 7 * - 85 col2
----
151625

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT - MIN( - + 48 ) * 93 - - + COUNT( * ) AS col2
----
4465

skipif mysql # not compatible
query I rowsort label-9132
SELECT - MIN ( - + 48 ) * 93 - - + COUNT ( * ) AS col2
----
4465

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9133
SELECT - 69 * 14, NULLIF ( + - COUNT( * ), - + 57 ) + - COALESCE ( 12, - COUNT( * ) * - + 30, - - COALESCE ( + - 12, - 90 ) + + COUNT( * ) ) * + MAX( DISTINCT - NULLIF ( - COALESCE ( - 43, - + 47 - NULLIF ( + 40, + CAST( - + 24 AS SIGNED ) + + 95 ), + + 69 ), + 11 - ( 21 ) ) ) col2
----
-966
515

skipif mysql # not compatible
query II rowsort label-9133
SELECT - 69 * 14, NULLIF ( + - COUNT ( * ), - + 57 ) + - COALESCE ( 12, - COUNT ( * ) * - + 30, - - COALESCE ( + - 12, - 90 ) + + COUNT ( * ) ) * + MAX ( DISTINCT - NULLIF ( - COALESCE ( - 43, - + 47 - NULLIF ( + 40, + CAST ( - + 24 AS INTEGER ) + + 95 ), + + 69 ), + 11 - ( 21 ) ) ) col2
----
-966
515

query I rowsort
SELECT + 75 + - 67 AS col0
----
8

query I rowsort
SELECT DISTINCT + 20 * 14 * 6 * + 60 + - - 49
----
100849

query I rowsort
SELECT ALL NULLIF ( + - 24, + + 24 ) * + 92 + 96 + - 39 + - + 47 + + - 88 * + 73 + - - 17 AS col2
----
-8605

query I rowsort
SELECT + 28 + - 72
----
-44

query I rowsort
SELECT ALL 33 * + + 2 + - 76
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9139
SELECT - 39 * - + 63 * + + CAST( 13 AS SIGNED ), + 37 DIV + - COUNT( * ) * 1 AS col0
----
31941
-37

skipif mysql # not compatible
query II rowsort label-9139
SELECT - 39 * - + 63 * + + CAST ( 13 AS INTEGER ), + 37 / + - COUNT ( * ) * 1 AS col0
----
31941
-37

query I rowsort
SELECT DISTINCT 51 * + 85 col1
----
4335

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT DISTINCT COUNT( * ) - - ( + 32 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-9141
SELECT DISTINCT COUNT ( * ) - - ( + 32 ) AS col0
----
33

query II rowsort
SELECT DISTINCT ( - 29 ) AS col0, 59 AS col0
----
-29
59

onlyif mysql # DIV for integer division: 
query I rowsort label-9143
SELECT + 33 DIV - + 78 * + + 66 * - + 93
----
0

skipif mysql # not compatible
query I rowsort label-9143
SELECT + 33 / - + 78 * + + 66 * - + 93
----
0

query I rowsort
SELECT - 72 * COALESCE ( - 13, 71, 92 ) AS col2
----
936

query I rowsort
SELECT - 77 + COALESCE ( - ( - 92 ), 10 ) * - - 69 AS col0
----
6271

query II rowsort
SELECT + - 60 + 87 AS col1, 43 + + + 10 AS col2
----
27
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9147
SELECT ALL COUNT( * ) * - CASE - 0 WHEN ( + ( - 71 ) ) + + CAST( NULL AS SIGNED ) THEN NULL ELSE - + 83 END * - 37 + + 62 DIV 14 * + + 73 * + + ( 57 ) + + COUNT( * ) + - 56 col0
----
13518

skipif mysql # not compatible
query I rowsort label-9147
SELECT ALL COUNT ( * ) * - CASE - 0 WHEN ( + ( - 71 ) ) + + CAST ( NULL AS INTEGER ) THEN NULL ELSE - + 83 END * - 37 + + 62 / 14 * + + 73 * + + ( 57 ) + + COUNT ( * ) + - 56 col0
----
13518

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9148
SELECT + 99 DIV - - COUNT( - 32 )
----
99

skipif mysql # not compatible
query I rowsort label-9148
SELECT + 99 / - - COUNT ( - 32 )
----
99

query I rowsort
SELECT ALL + 80 * - 17 AS col2
----
-1360

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9150
SELECT DISTINCT - ( - 75 ) DIV 34 DIV COUNT( * ) AS col1, + 40 AS col2
----
2
40

skipif mysql # not compatible
query II rowsort label-9150
SELECT DISTINCT - ( - 75 ) / 34 / COUNT ( * ) AS col1, + 40 AS col2
----
2
40

query I rowsort
SELECT + + 41 - - 18 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9152
SELECT ALL + NULLIF ( + 6, - + 65 / - 18 * + - 68 ) * - - 38 * - COUNT( * ) AS col0
----
-228

skipif mysql # not compatible
query I rowsort label-9152
SELECT ALL + NULLIF ( + 6, - + 65 / - 18 * + - 68 ) * - - 38 * - COUNT ( * ) AS col0
----
-228

onlyif mysql # DIV for integer division: 
query I rowsort label-9153
SELECT + + 25 DIV - NULLIF ( 78, - 48 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9153
SELECT + + 25 / - NULLIF ( 78, - 48 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9154
SELECT ALL 19 * - 72 DIV + 36
----
-38

skipif mysql # not compatible
query I rowsort label-9154
SELECT ALL 19 * - 72 / + 36
----
-38

query I rowsort
SELECT DISTINCT + 86 + 38 + - - 88
----
212

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9156
SELECT + + CAST( - 36 AS SIGNED ) + 61
----
25

skipif mysql # not compatible
query I rowsort label-9156
SELECT + + CAST ( - 36 AS INTEGER ) + 61
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9157
SELECT - 72 DIV - + 72 + + 74 + - MIN( 97 ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-9157
SELECT - 72 / - + 72 + + 74 + - MIN ( 97 ) AS col0
----
-22

query I rowsort
SELECT ALL - 53 + + 29 AS col1
----
-24

query I rowsort
SELECT - 85 * - 7 + + - NULLIF ( + 54, 34 + + 86 ) * - + ( 64 )
----
4051

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9160
SELECT - - CAST( + + CAST( COUNT( * ) AS SIGNED ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9160
SELECT - - CAST ( + + CAST ( COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9161
SELECT ALL - MIN( ( - - 39 ) ) DIV - ( COUNT( * ) ) + - 91 * + 3 + 97 AS col2
----
-137

skipif mysql # not compatible
query I rowsort label-9161
SELECT ALL - MIN ( ( - - 39 ) ) / - ( COUNT ( * ) ) + - 91 * + 3 + 97 AS col2
----
-137

query I rowsort
SELECT ALL + 26 * + + 62 AS col0
----
1612

onlyif mysql # aggregate syntax: 
query II rowsort label-9163
SELECT + 6 * + - COALESCE ( - 53, - - 65 + COUNT( * ) ), - 87 AS col2
----
318
-87

skipif mysql # not compatible
query II rowsort label-9163
SELECT + 6 * + - COALESCE ( - 53, - - 65 + COUNT ( * ) ), - 87 AS col2
----
318
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9164
SELECT ALL CASE 45 WHEN + 78 THEN NULL WHEN + 79 - - CAST( NULL AS SIGNED ) THEN NULL ELSE + + 12 + - 40 END * + ( - 94 ) AS col1
----
2632

skipif mysql # not compatible
query I rowsort label-9164
SELECT ALL CASE 45 WHEN + 78 THEN NULL WHEN + 79 - - CAST ( NULL AS INTEGER ) THEN NULL ELSE + + 12 + - 40 END * + ( - 94 ) AS col1
----
2632

onlyif mysql # aggregate syntax: 
query II rowsort label-9165
SELECT - ( + + ( + + 89 ) ) * COUNT( * ) + 57 * 61 AS col0, - ( 52 )
----
3388
-52

skipif mysql # not compatible
query II rowsort label-9165
SELECT - ( + + ( + + 89 ) ) * COUNT ( * ) + 57 * 61 AS col0, - ( 52 )
----
3388
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT - MIN( + 63 ) * + - ( 6 ) AS col2
----
378

skipif mysql # not compatible
query I rowsort label-9166
SELECT - MIN ( + 63 ) * + - ( 6 ) AS col2
----
378

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT ( + CASE - 43 WHEN + 8 THEN + + COUNT( * ) WHEN - MIN( - 74 ) THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9167
SELECT ( + CASE - 43 WHEN + 8 THEN + + COUNT ( * ) WHEN - MIN ( - 74 ) THEN NULL END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9168
SELECT 27 * + 46 + + 30 + + + 98 + + CAST( NULL AS SIGNED ) AS col1, 98 * 39 + 5 + + CAST( NULL AS SIGNED ) * + 86
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9168
SELECT 27 * + 46 + + 30 + + + 98 + + CAST ( NULL AS INTEGER ) AS col1, 98 * 39 + 5 + + CAST ( NULL AS INTEGER ) * + 86
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT - COUNT( * ) + - 74
----
-75

skipif mysql # not compatible
query I rowsort label-9169
SELECT - COUNT ( * ) + - 74
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT + SUM( + 63 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-9170
SELECT + SUM ( + 63 ) AS col0
----
63

query I rowsort
SELECT - 72 * + 76 + ( - 17 )
----
-5489

onlyif mysql # aggregate syntax: 
query II rowsort label-9172
SELECT DISTINCT + ( + + MAX( DISTINCT - + 71 ) ) col2, - 42
----
-71
-42

skipif mysql # not compatible
query II rowsort label-9172
SELECT DISTINCT + ( + + MAX ( DISTINCT - + 71 ) ) col2, - 42
----
-71
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9173
SELECT DISTINCT CAST( - + COUNT( * ) AS SIGNED ) * + - COALESCE ( - 1, - 9 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9173
SELECT DISTINCT CAST ( - + COUNT ( * ) AS INTEGER ) * + - COALESCE ( - 1, - 9 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9174
SELECT ALL - COALESCE ( 79, + 89 DIV - - 6 + + 43, - 95 ) * + - 17 - - 36 + - 91 * - 14 * + + 87 AS col0
----
112217

skipif mysql # not compatible
query I rowsort label-9174
SELECT ALL - COALESCE ( 79, + 89 / - - 6 + + 43, - 95 ) * + - 17 - - 36 + - 91 * - 14 * + + 87 AS col0
----
112217

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9175
SELECT ALL + 64 DIV - + 38 * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9175
SELECT ALL + 64 / - + 38 * COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT + 84 * + + CASE WHEN ( NULL ) IS NOT NULL THEN NULL ELSE - 84 END / COUNT( * ) * + - 85 + - - CASE + 89 WHEN - 73 THEN + 86 ELSE NULL END + - - 68 + 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9176
SELECT + 84 * + + CASE WHEN ( NULL ) IS NOT NULL THEN NULL ELSE - 84 END / COUNT ( * ) * + - 85 + - - CASE + 89 WHEN - 73 THEN + 86 ELSE NULL END + - - 68 + 21 AS col2
----
NULL

query I rowsort
SELECT - ( - + 20 ) * - + 57
----
-1140

query I rowsort
SELECT DISTINCT + NULLIF ( 60, - - 3 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT - MIN( 51 ) * 0 * ( 17 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9179
SELECT - MIN ( 51 ) * 0 * ( 17 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9180
SELECT ALL + 65 DIV 86 DIV - 76 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9180
SELECT ALL + 65 / 86 / - 76 AS col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9181
SELECT - 74 / + 88 * 66 * + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9181
SELECT - 74 / + 88 * 66 * + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT + 31 + + 67
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT ALL + + 88 * COUNT( * ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-9183
SELECT ALL + + 88 * COUNT ( * ) AS col2
----
88

query I rowsort
SELECT ( + 43 ) * + + 53 + - 26 + - 67 * - 31
----
4330

query I rowsort
SELECT - + 45 + + - 96
----
-141

query I rowsort
SELECT ALL + + 96 * + 4 * - + 22 AS col2
----
-8448

query I rowsort
SELECT - - 70 + + + ( + ( + 23 ) ) + - 12 + 42 + + 84
----
207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9188
SELECT ALL - - CASE 81 WHEN - - 49 * + 20 * + + ( + ( CAST( NULL AS SIGNED ) ) ) + 53 - + 91 * 76 * + 62 * + COUNT( * ) THEN - CASE - NULLIF ( + 62, + + 48 ) WHEN + COUNT( * ) * + + 32 / NULLIF ( - 96, MIN( ALL NULLIF ( 39, - 58 ) ) + - 19 ) + 47 THEN 80 WHEN + SUM( ALL 50 ) THEN 41 ELSE + 65 * 79 + 4 END ELSE NULL END + MIN( DISTINCT 23 + 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9188
SELECT ALL - - CASE 81 WHEN - - 49 * + 20 * + + ( + ( CAST ( NULL AS INTEGER ) ) ) + 53 - + 91 * 76 * + 62 * + COUNT ( * ) THEN - CASE - NULLIF ( + 62, + + 48 ) WHEN + COUNT ( * ) * + + 32 / NULLIF ( - 96, MIN ( ALL NULLIF ( 39, - 58 ) ) + - 19 ) + 47 THEN 80 WHEN + SUM ( ALL 50 ) THEN 41 ELSE + 65 * 79 + 4 END ELSE NULL END + MIN ( DISTINCT 23 + 14 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9189
SELECT - - COALESCE ( 6, - - CAST( NULL AS SIGNED ) - + COALESCE ( - 43, 93 * + 94 + - 59 ) )
----
6

skipif mysql # not compatible
query I rowsort label-9189
SELECT - - COALESCE ( 6, - - CAST ( NULL AS INTEGER ) - + COALESCE ( - 43, 93 * + 94 + - 59 ) )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9190
SELECT - MAX( 91 ) + - + 0 + - CASE + 27 WHEN ( + - CAST( 90 AS SIGNED ) ) THEN NULL WHEN - 70 * COALESCE ( - - 66, 45 ) THEN + - ( MAX( DISTINCT - + 50 ) ) - - - 46 ELSE NULL END * - 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9190
SELECT - MAX ( 91 ) + - + 0 + - CASE + 27 WHEN ( + - CAST ( 90 AS INTEGER ) ) THEN NULL WHEN - 70 * COALESCE ( - - 66, 45 ) THEN + - ( MAX ( DISTINCT - + 50 ) ) - - - 46 ELSE NULL END * - 57 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9191
SELECT ALL - 24 DIV + 69 col0
----
0

skipif mysql # not compatible
query I rowsort label-9191
SELECT ALL - 24 / + 69 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9192
SELECT + 69 DIV + 8
----
8

skipif mysql # not compatible
query I rowsort label-9192
SELECT + 69 / + 8
----
8

query I rowsort
SELECT 8 + - ( + + 73 ) + + + 52 + - 41 * + 63 AS col2
----
-2596

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT - COUNT( * ) + + 78
----
77

skipif mysql # not compatible
query I rowsort label-9194
SELECT - COUNT ( * ) + + 78
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT DISTINCT MIN( DISTINCT - 78 ) + - MIN( DISTINCT ( + 34 ) ) + 9 AS col1
----
-103

skipif mysql # not compatible
query I rowsort label-9195
SELECT DISTINCT MIN ( DISTINCT - 78 ) + - MIN ( DISTINCT ( + 34 ) ) + 9 AS col1
----
-103

onlyif mysql # DIV for integer division: 
query II rowsort label-9196
SELECT ALL - 56 AS col0, + 20 DIV + 83
----
-56
0

skipif mysql # not compatible
query II rowsort label-9196
SELECT ALL - 56 AS col0, + 20 / + 83
----
-56
0

query I rowsort
SELECT 15 * + 92 AS col2
----
1380

query I rowsort
SELECT 51 * - 81 col1
----
-4131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9199
SELECT + MAX( + + 90 ) / - - 23 + + CASE - 69 WHEN + 50 THEN + 33 WHEN - - 26 THEN - - 93 END + + + 37 + 28 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9199
SELECT + MAX ( + + 90 ) / - - 23 + + CASE - 69 WHEN + 50 THEN + 33 WHEN - - 26 THEN - - 93 END + + + 37 + 28 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9200
SELECT ALL 17 DIV + + 91 AS col1, - 40 col1
----
0
-40

skipif mysql # not compatible
query II rowsort label-9200
SELECT ALL 17 / + + 91 AS col1, - 40 col1
----
0
-40

onlyif mysql # DIV for integer division: 
query II rowsort label-9201
SELECT DISTINCT - 8 AS col2, + 58 * 27 DIV 27 AS col2
----
-8
58

skipif mysql # not compatible
query II rowsort label-9201
SELECT DISTINCT - 8 AS col2, + 58 * 27 / 27 AS col2
----
-8
58

onlyif mysql # aggregate syntax: 
query II rowsort label-9202
SELECT ALL - COUNT( * ), - 95 + - NULLIF ( 78, 4 * - - 34 + + + 76 + + 64 ) col2
----
-1
-173

skipif mysql # not compatible
query II rowsort label-9202
SELECT ALL - COUNT ( * ), - 95 + - NULLIF ( 78, 4 * - - 34 + + + 76 + + 64 ) col2
----
-1
-173

onlyif mysql # aggregate syntax: 
query II rowsort label-9203
SELECT ALL - 23 - 85 AS col0, + 67 - COUNT( * ) - + 67 AS col2
----
-108
-1

skipif mysql # not compatible
query II rowsort label-9203
SELECT ALL - 23 - 85 AS col0, + 67 - COUNT ( * ) - + 67 AS col2
----
-108
-1

query II rowsort
SELECT + 32 AS col1, + 50 AS col2
----
32
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT DISTINCT 9 * - + COUNT( * ) * - - 2 * - 83
----
1494

skipif mysql # not compatible
query I rowsort label-9205
SELECT DISTINCT 9 * - + COUNT ( * ) * - - 2 * - 83
----
1494

onlyif mysql # aggregate syntax: 
query II rowsort label-9206
SELECT + 43 col2, + SUM( DISTINCT - - 56 ) * + 65
----
43
3640

skipif mysql # not compatible
query II rowsort label-9206
SELECT + 43 col2, + SUM ( DISTINCT - - 56 ) * + 65
----
43
3640

query I rowsort
SELECT 7 * + 69
----
483

onlyif mysql # aggregate syntax: 
query II rowsort label-9208
SELECT DISTINCT - 43 AS col1, + 81 * + - COUNT( * )
----
-43
-81

skipif mysql # not compatible
query II rowsort label-9208
SELECT DISTINCT - 43 AS col1, + 81 * + - COUNT ( * )
----
-43
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT ALL - 80 + + 51 * - COUNT( * )
----
-131

skipif mysql # not compatible
query I rowsort label-9209
SELECT ALL - 80 + + 51 * - COUNT ( * )
----
-131

query II rowsort
SELECT ALL - - 51 AS col2, 25
----
51
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9211
SELECT - 90 DIV - 92 * - - 45 * - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9211
SELECT - 90 / - 92 * - - 45 * - + COUNT ( * )
----
0

query I rowsort
SELECT ALL + 77 + - 38 + - + 17 * - ( + + 54 ) AS col0
----
957

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT - COUNT( * ) + + 72
----
71

skipif mysql # not compatible
query I rowsort label-9213
SELECT - COUNT ( * ) + + 72
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9214
SELECT + SUM( DISTINCT + ( - CAST( NULL AS SIGNED ) ) ) + CAST( + 5 AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9214
SELECT + SUM ( DISTINCT + ( - CAST ( NULL AS INTEGER ) ) ) + CAST ( + 5 AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9215
SELECT 91 col1, CAST( - 51 AS SIGNED ) AS col1
----
91
-51

skipif mysql # not compatible
query II rowsort label-9215
SELECT 91 col1, CAST ( - 51 AS INTEGER ) AS col1
----
91
-51

query I rowsort
SELECT ALL - + 56 + - 27
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT 92 - + - CASE + + ( + + 68 ) WHEN COUNT( * ) * - 27 + + 38 + - COUNT( * ) * - 21 + 22 THEN - - 11 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9217
SELECT 92 - + - CASE + + ( + + 68 ) WHEN COUNT ( * ) * - 27 + + 38 + - COUNT ( * ) * - 21 + 22 THEN - - 11 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT DISTINCT + NULLIF ( + COUNT( * ), 40 ) * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9218
SELECT DISTINCT + NULLIF ( + COUNT ( * ), 40 ) * COUNT ( * )
----
1

query I rowsort
SELECT - 25 + - + 9 AS col2
----
-34

query I rowsort
SELECT ALL - - 14 - - 67
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9221
SELECT + NULLIF ( CAST( + 1 AS SIGNED ), + SUM( 35 ) - - SUM( + 36 ) ) col1, 3 AS col0
----
1
3

skipif mysql # not compatible
query II rowsort label-9221
SELECT + NULLIF ( CAST ( + 1 AS INTEGER ), + SUM ( 35 ) - - SUM ( + 36 ) ) col1, 3 AS col0
----
1
3

query I rowsort
SELECT 25 + 77
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-9223
SELECT DISTINCT 76 DIV - + 77
----
0

skipif mysql # not compatible
query I rowsort label-9223
SELECT DISTINCT 76 / - + 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT DISTINCT COUNT( 83 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9224
SELECT DISTINCT COUNT ( 83 ) AS col1
----
1

query I rowsort
SELECT DISTINCT 28 * + 35 * + 14 AS col0
----
13720

query I rowsort
SELECT ALL 75 * + 64 AS col1
----
4800

query I rowsort
SELECT DISTINCT 33 * - ( + 95 ) AS col1
----
-3135

query I rowsort
SELECT 1 * - 88 + + 90 AS col0
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9229
SELECT ( - CAST( NULL AS DECIMAL ) ) * 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9229
SELECT ( - CAST ( NULL AS REAL ) ) * 12 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT ALL 13 * 34 + COALESCE ( + ( - 49 ), + 42 ) * + - NULLIF ( 51, + COUNT( * ) * - - 13 - + 92 )
----
2941

skipif mysql # not compatible
query I rowsort label-9230
SELECT ALL 13 * 34 + COALESCE ( + ( - 49 ), + 42 ) * + - NULLIF ( 51, + COUNT ( * ) * - - 13 - + 92 )
----
2941

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT DISTINCT - 81 + - COUNT( * ) + 84 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9231
SELECT DISTINCT - 81 + - COUNT ( * ) + 84 AS col1
----
2

query I rowsort
SELECT ALL - 17 + + 34 AS col1
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9233
SELECT - + 44 * CAST( NULL AS SIGNED ) + + - ( + + 18 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9233
SELECT - + 44 * CAST ( NULL AS INTEGER ) + + - ( + + 18 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT - + 62 + + COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-9234
SELECT - + 62 + + COUNT ( * )
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9235
SELECT DISTINCT + + CAST( + 25 AS SIGNED ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-9235
SELECT DISTINCT + + CAST ( + 25 AS INTEGER ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT + MAX( DISTINCT - - 90 ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-9236
SELECT + MAX ( DISTINCT - - 90 ) AS col2
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-9237
SELECT - - 88 + + - 62 + - - 70 + 26 DIV + 94 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-9237
SELECT - - 88 + + - 62 + - - 70 + 26 / + 94 AS col2
----
96

query I rowsort
SELECT - + 13 + + - 8 AS col1
----
-21

query I rowsort
SELECT - 95 + 42 AS col0
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9240
SELECT ALL - COALESCE ( - NULLIF ( - NULLIF ( - ( - 6 ), - 32 * - 3 * - 77 + + 57 - - 95 ), + 49 ), - 97 + + CASE - ( + 66 ) WHEN + 80 DIV 92 * + 25 * - NULLIF ( - 0, 53 ) THEN - 98 DIV + - 59 * - 73 * + - ( - COUNT( * ) ) + COALESCE ( MIN( ALL + 20 ), 42 * - 72 ) * - CAST( NULL AS SIGNED ) END ) DIV + ( 75 * - 22 )
----
0

skipif mysql # not compatible
query I rowsort label-9240
SELECT ALL - COALESCE ( - NULLIF ( - NULLIF ( - ( - 6 ), - 32 * - 3 * - 77 + + 57 - - 95 ), + 49 ), - 97 + + CASE - ( + 66 ) WHEN + 80 / 92 * + 25 * - NULLIF ( - 0, 53 ) THEN - 98 / + - 59 * - 73 * + - ( - COUNT ( * ) ) + COALESCE ( MIN ( ALL + 20 ), 42 * - 72 ) * - CAST ( NULL AS INTEGER ) END ) / + ( 75 * - 22 )
----
0

query I rowsort
SELECT - - 36 * 54
----
1944

query I rowsort
SELECT ALL - 25 * 90 AS col1
----
-2250

onlyif mysql # DIV for integer division: 
query II rowsort label-9243
SELECT DISTINCT - - 12 DIV 43 - 85, - 78 AS col0
----
-85
-78

skipif mysql # not compatible
query II rowsort label-9243
SELECT DISTINCT - - 12 / 43 - 85, - 78 AS col0
----
-85
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT + ( - COUNT( * ) ) + - + SUM( + 66 )
----
-67

skipif mysql # not compatible
query I rowsort label-9244
SELECT + ( - COUNT ( * ) ) + - + SUM ( + 66 )
----
-67

query II rowsort
SELECT - - 86 + 96, - ( - + 71 ) * + 68 - + 23 AS col1
----
182
4805

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9246
SELECT - 84 * + CASE COALESCE ( + 18, + CAST( COUNT( * ) AS SIGNED ) ) WHEN 16 THEN + 33 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9246
SELECT - 84 * + CASE COALESCE ( + 18, + CAST ( COUNT ( * ) AS INTEGER ) ) WHEN 16 THEN + 33 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 46 - + 85 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT ALL COUNT( 27 )
----
1

skipif mysql # not compatible
query I rowsort label-9248
SELECT ALL COUNT ( 27 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT - COUNT( * ) + + SUM( DISTINCT + + 60 ) * + - 13 * - + COUNT( * ) AS col0
----
779

skipif mysql # not compatible
query I rowsort label-9249
SELECT - COUNT ( * ) + + SUM ( DISTINCT + + 60 ) * + - 13 * - + COUNT ( * ) AS col0
----
779

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT DISTINCT COUNT( - 48 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9250
SELECT DISTINCT COUNT ( - 48 ) AS col1
----
1

query II rowsort
SELECT 38 col2, - 38 * - - 5 + + 28 AS col2
----
38
-162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9252
SELECT - 57 * + COALESCE ( 56, + + CAST( - 61 AS SIGNED ) + - 17 ) AS col0
----
-3192

skipif mysql # not compatible
query I rowsort label-9252
SELECT - 57 * + COALESCE ( 56, + + CAST ( - 61 AS INTEGER ) + - 17 ) AS col0
----
-3192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9253
SELECT ( + + 5 ) * - + CASE COUNT( * ) WHEN + 42 THEN NULL WHEN - CAST( + 10 AS SIGNED ) THEN - 50 / - 75 + + 45 * + - 23 WHEN + 8 * 25 THEN NULL END + + ( - - 43 ) + - + 87 * 51
----
NULL

skipif mysql # not compatible
query I rowsort label-9253
SELECT ( + + 5 ) * - + CASE COUNT ( * ) WHEN + 42 THEN NULL WHEN - CAST ( + 10 AS INTEGER ) THEN - 50 / - 75 + + 45 * + - 23 WHEN + 8 * 25 THEN NULL END + + ( - - 43 ) + - + 87 * 51
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9254
SELECT - 9 DIV CAST( + NULLIF ( - - 87, - 84 + 31 ) AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9254
SELECT - 9 / CAST ( + NULLIF ( - - 87, - 84 + 31 ) AS INTEGER ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9255
SELECT + 15 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9255
SELECT + 15 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 41 * - 73 * + 20 * - 40 + + 28 AS col1
----
2394428

query II rowsort
SELECT + 39 AS col1, - ( - 33 )
----
39
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT + COUNT( 57 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9258
SELECT + COUNT ( 57 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT ALL + 69 * ( 55 ) + COUNT( * ) AS col1
----
3796

skipif mysql # not compatible
query I rowsort label-9259
SELECT ALL + 69 * ( 55 ) + COUNT ( * ) AS col1
----
3796

onlyif mysql # aggregate syntax: 
query II rowsort label-9260
SELECT DISTINCT - 11 * + 40 + - COUNT( * ) AS col0, + 24 * - 6 - - 46 col1
----
-441
-98

skipif mysql # not compatible
query II rowsort label-9260
SELECT DISTINCT - 11 * + 40 + - COUNT ( * ) AS col0, + 24 * - 6 - - 46 col1
----
-441
-98

query I rowsort
SELECT DISTINCT + 97 * - + 29 * + - 82 * 90 + - - 77
----
20760017

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT ALL 56 * + + 89 + NULLIF ( 65, - + COUNT( + 20 ) / + 25 - 37 + + COUNT( * ) - + - 20 + + 55 * + - 48 + ( - ( - 65 ) ) + 14 * - 96 )
----
5049

skipif mysql # not compatible
query I rowsort label-9262
SELECT ALL 56 * + + 89 + NULLIF ( 65, - + COUNT ( + 20 ) / + 25 - 37 + + COUNT ( * ) - + - 20 + + 55 * + - 48 + ( - ( - 65 ) ) + 14 * - 96 )
----
5049

onlyif mysql # DIV for integer division: 
query I rowsort label-9263
SELECT - 30 DIV - - 82 * + + 33 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9263
SELECT - 30 / - - 82 * + + 33 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9264
SELECT + 0 * + 10 * + 48 DIV + + 13 * + + 31
----
0

skipif mysql # not compatible
query I rowsort label-9264
SELECT + 0 * + 10 * + 48 / + + 13 * + + 31
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT + COUNT( + 21 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9265
SELECT + COUNT ( + 21 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT + - NULLIF ( + 7, - + NULLIF ( + 96, + SUM( + 26 ) ) ) - + 45
----
-52

skipif mysql # not compatible
query I rowsort label-9266
SELECT + - NULLIF ( + 7, - + NULLIF ( + 96, + SUM ( + 26 ) ) ) - + 45
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-9267
SELECT + + 56 * 38 DIV + - 62 + + 56
----
22

skipif mysql # not compatible
query I rowsort label-9267
SELECT + + 56 * 38 / + - 62 + + 56
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT ALL + + 70 * - COUNT( * ) - - 73
----
3

skipif mysql # not compatible
query I rowsort label-9268
SELECT ALL + + 70 * - COUNT ( * ) - - 73
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT DISTINCT - + 51 * - ( + COALESCE ( - 89, + + ( - 73 ) - - + 97 + 4 + - 71 + MAX( 39 ) + + - 71 + - 50, - 97 + + + CASE + 76 WHEN + + COUNT( * ) THEN NULL WHEN - 54 THEN 26 * - 93 END ) ) AS col2
----
-4539

skipif mysql # not compatible
query I rowsort label-9269
SELECT DISTINCT - + 51 * - ( + COALESCE ( - 89, + + ( - 73 ) - - + 97 + 4 + - 71 + MAX ( 39 ) + + - 71 + - 50, - 97 + + + CASE + 76 WHEN + + COUNT ( * ) THEN NULL WHEN - 54 THEN 26 * - 93 END ) ) AS col2
----
-4539

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT + - 95 + - MAX( ALL - 19 ) col1
----
-76

skipif mysql # not compatible
query I rowsort label-9270
SELECT + - 95 + - MAX ( ALL - 19 ) col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT ALL COUNT( + 68 ) * - SUM( ALL + 22 ) * + 18 AS col2
----
-396

skipif mysql # not compatible
query I rowsort label-9271
SELECT ALL COUNT ( + 68 ) * - SUM ( ALL + 22 ) * + 18 AS col2
----
-396

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9272
SELECT + MAX( 80 ) + - + 71 DIV + 67 - - - 49 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-9272
SELECT + MAX ( 80 ) + - + 71 / + 67 - - - 49 AS col0
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-9273
SELECT - 71 AS col0, - 61 * - COUNT( * )
----
-71
61

skipif mysql # not compatible
query II rowsort label-9273
SELECT - 71 AS col0, - 61 * - COUNT ( * )
----
-71
61

query I rowsort
SELECT DISTINCT + 51 * + + 94 + + - 88
----
4706

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT - + COUNT( * ) * + 29 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-9275
SELECT - + COUNT ( * ) * + 29 AS col1
----
-29

query II rowsort
SELECT ALL NULLIF ( - 36, - ( - - 81 ) + - 66 ), 34 AS col2
----
-36
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT DISTINCT CASE + + 81 WHEN - 38 THEN NULL ELSE 41 * + - COUNT( * ) END * 70 - - 27 AS col2
----
-2843

skipif mysql # not compatible
query I rowsort label-9277
SELECT DISTINCT CASE + + 81 WHEN - 38 THEN NULL ELSE 41 * + - COUNT ( * ) END * 70 - - 27 AS col2
----
-2843

query I rowsort
SELECT ALL ( - 92 ) AS col0
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-9279
SELECT DISTINCT + 19 DIV - - 95
----
0

skipif mysql # not compatible
query I rowsort label-9279
SELECT DISTINCT + 19 / - - 95
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9280
SELECT ALL + 37 DIV 25 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9280
SELECT ALL + 37 / 25 AS col1
----
1

query I rowsort
SELECT - ( + ( + 77 ) ) * 39 * + 41
----
-123123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9282
SELECT ALL - 65 + CASE - + 4 WHEN - 22 * - + 16 THEN + - 82 + + 17 + + COUNT( * ) - - 37 WHEN CAST( NULL AS SIGNED ) THEN + 10 + - ( - 26 ) ELSE NULL END * - 25 * + - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-9282
SELECT ALL - 65 + CASE - + 4 WHEN - 22 * - + 16 THEN + - 82 + + 17 + + COUNT ( * ) - - 37 WHEN CAST ( NULL AS INTEGER ) THEN + 10 + - ( - 26 ) ELSE NULL END * - 25 * + - 93
----
NULL

query II rowsort
SELECT - ( 34 ) - + 45 + 93, - 27 col1
----
14
-27

query I rowsort
SELECT DISTINCT + ( 6 ) AS col2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9285
SELECT DISTINCT 30 DIV - COALESCE ( 21, 79 + + 60 ) + 74
----
73

skipif mysql # not compatible
query I rowsort label-9285
SELECT DISTINCT 30 / - COALESCE ( 21, 79 + + 60 ) + 74
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9286
SELECT ALL + CAST( + - 56 AS SIGNED )
----
-56

skipif mysql # not compatible
query I rowsort label-9286
SELECT ALL + CAST ( + - 56 AS INTEGER )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT DISTINCT - 20 + - NULLIF ( + 95, 50 + + COUNT( * ) ) AS col1
----
-115

skipif mysql # not compatible
query I rowsort label-9287
SELECT DISTINCT - 20 + - NULLIF ( + 95, 50 + + COUNT ( * ) ) AS col1
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT DISTINCT - 47 + 99 + + + 17 + + 31 + 95 * - COUNT( * ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-9288
SELECT DISTINCT - 47 + 99 + + + 17 + + 31 + 95 * - COUNT ( * ) AS col0
----
5

query I rowsort
SELECT 81 + - 61 col2
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-9290
SELECT 66 DIV 64 DIV - 4 - + 37 * - 28 AS col2
----
1036

skipif mysql # not compatible
query I rowsort label-9290
SELECT 66 / 64 / - 4 - + 37 * - 28 AS col2
----
1036

query II rowsort
SELECT + 37 * 77, 65 + - 36 col2
----
2849
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9292
SELECT CAST( - 77 AS SIGNED ) + + 7 + + 21 * - COUNT( * ) / + CASE 61 WHEN 48 + + - 73 - + 5 * - ( - - 5 ) THEN + 73 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9292
SELECT CAST ( - 77 AS INTEGER ) + + 7 + + 21 * - COUNT ( * ) / + CASE 61 WHEN 48 + + - 73 - + 5 * - ( - - 5 ) THEN + 73 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT 28 * + 12 * ( - - SUM( ALL - 43 ) ) AS col1
----
-14448

skipif mysql # not compatible
query I rowsort label-9293
SELECT 28 * + 12 * ( - - SUM ( ALL - 43 ) ) AS col1
----
-14448

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT - 91 * COUNT( * ) + + 27
----
-64

skipif mysql # not compatible
query I rowsort label-9294
SELECT - 91 * COUNT ( * ) + + 27
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-9295
SELECT DISTINCT + 47 * + 28 AS col1, - MIN( + 5 ) - 63 + COUNT( ALL - 17 ) * ( + - 30 ) AS col0
----
1316
-98

skipif mysql # not compatible
query II rowsort label-9295
SELECT DISTINCT + 47 * + 28 AS col1, - MIN ( + 5 ) - 63 + COUNT ( ALL - 17 ) * ( + - 30 ) AS col0
----
1316
-98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9296
SELECT 20 DIV + CAST( - ( - 22 ) AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9296
SELECT 20 / + CAST ( - ( - 22 ) AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9297
SELECT ALL + + 70 * + COUNT( + 82 ) + + 82 AS col0, + 21 * - 84 AS col2
----
152
-1764

skipif mysql # not compatible
query II rowsort label-9297
SELECT ALL + + 70 * + COUNT ( + 82 ) + + 82 AS col0, + 21 * - 84 AS col2
----
152
-1764

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9298
SELECT 67 + - + ( + COUNT( * ) ) + CASE - + MAX( - 14 ) WHEN + 77 * + 5 DIV 80 * 96 THEN - + 71 * + 3 WHEN + - 32 THEN NULL ELSE + - ( - 88 ) END DIV - COUNT( * ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-9298
SELECT 67 + - + ( + COUNT ( * ) ) + CASE - + MAX ( - 14 ) WHEN + 77 * + 5 / 80 * 96 THEN - + 71 * + 3 WHEN + - 32 THEN NULL ELSE + - ( - 88 ) END / - COUNT ( * ) AS col0
----
-22

query I rowsort
SELECT 69 * + + ( 5 )
----
345

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9300
SELECT 0 DIV + + COUNT( 75 )
----
0

skipif mysql # not compatible
query I rowsort label-9300
SELECT 0 / + + COUNT ( 75 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-9301
SELECT + 36 DIV + - 21, CAST( - NULLIF ( + 21, + 67 ) AS SIGNED ) * CAST( NULL AS DECIMAL ) * - ( - 11 ) * + 37 + - - COUNT( * ) AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-9301
SELECT + 36 / + - 21, CAST ( - NULLIF ( + 21, + 67 ) AS INTEGER ) * CAST ( NULL AS REAL ) * - ( - 11 ) * + 37 + - - COUNT ( * ) AS col0
----
-1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9302
SELECT DISTINCT + COALESCE ( + 50, - ( 24 ) * 10 + 25 + - + 28 DIV - SUM( - 46 ) + COUNT( * ) )
----
50

skipif mysql # not compatible
query I rowsort label-9302
SELECT DISTINCT + COALESCE ( + 50, - ( 24 ) * 10 + 25 + - + 28 / - SUM ( - 46 ) + COUNT ( * ) )
----
50

query II rowsort
SELECT 69, - 44 AS col0
----
69
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT 92 + + COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-9304
SELECT 92 + + COUNT ( * )
----
93

query I rowsort
SELECT ALL 45 + + 55 AS col2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT ALL 4 + 53 * 76 + + + MAX( + 12 ) AS col1
----
4044

skipif mysql # not compatible
query I rowsort label-9306
SELECT ALL 4 + 53 * 76 + + + MAX ( + 12 ) AS col1
----
4044

query II rowsort
SELECT - 24 AS col2, 40 AS col1
----
-24
40

query I rowsort
SELECT 81 + - ( - 39 ) AS col2
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9309
SELECT DISTINCT 51 + - 23 + + 96 * - 7 * 78 / - CAST( NULL AS SIGNED ) + + - 75 + + + 84 + - + 7 + + - 49 * + 86 / + + 48 * - - 93 * - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-9309
SELECT DISTINCT 51 + - 23 + + 96 * - 7 * 78 / - CAST ( NULL AS INTEGER ) + + - 75 + + + 84 + - + 7 + + - 49 * + 86 / + + 48 * - - 93 * - 36
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9310
SELECT ALL - ( - NULLIF ( 75, - + 60 * - + 44 * + 81 * + 54 + 70 + + CAST( + 19 AS SIGNED ) ) ) + + 83
----
158

skipif mysql # not compatible
query I rowsort label-9310
SELECT ALL - ( - NULLIF ( 75, - + 60 * - + 44 * + 81 * + 54 + 70 + + CAST ( + 19 AS INTEGER ) ) ) + + 83
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-9311
SELECT 16 + + + 66 + - - COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-9311
SELECT 16 + + + 66 + - - COUNT ( * )
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9312
SELECT ( - ( 57 ) ) + 15 + + - MIN( - + 87 ) DIV 55 col1
----
-41

skipif mysql # not compatible
query I rowsort label-9312
SELECT ( - ( 57 ) ) + 15 + + - MIN ( - + 87 ) / 55 col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT ALL - - COUNT( * ) - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9313
SELECT ALL - - COUNT ( * ) - + COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9314
SELECT 74 DIV 75
----
0

skipif mysql # not compatible
query I rowsort label-9314
SELECT 74 / 75
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9315
SELECT DISTINCT - 42 DIV + 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9315
SELECT DISTINCT - 42 / + 71 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT DISTINCT + - ( - 26 ) * + + NULLIF ( 11, - 99 ) * ( + + 93 ) + + - 54 + - COUNT( * )
----
26543

skipif mysql # not compatible
query I rowsort label-9316
SELECT DISTINCT + - ( - 26 ) * + + NULLIF ( 11, - 99 ) * ( + + 93 ) + + - 54 + - COUNT ( * )
----
26543

query I rowsort
SELECT DISTINCT - CASE + 51 WHEN 82 + - ( - 33 ) THEN NULL ELSE 64 + 46 END
----
-110

query I rowsort
SELECT ALL 18 - + 84 AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT DISTINCT - COUNT( DISTINCT 20 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-9319
SELECT DISTINCT - COUNT ( DISTINCT 20 ) col0
----
-1

query I rowsort
SELECT ALL + + 34 - - + ( + 38 )
----
72

query I rowsort
SELECT DISTINCT + + 18 * 12
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT + COALESCE ( - - 32, - + COUNT( * ) * - - COUNT( * ) + - 11 * - + 63 + + - 18, - 9 * + COUNT( * ) ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-9322
SELECT + COALESCE ( - - 32, - + COUNT ( * ) * - - COUNT ( * ) + - 11 * - + 63 + + - 18, - 9 * + COUNT ( * ) ) AS col0
----
32

onlyif mysql # DIV for integer division: 
query II rowsort label-9323
SELECT + 83, 30 + ( + 97 ) DIV + + 87 col1
----
83
31

skipif mysql # not compatible
query II rowsort label-9323
SELECT + 83, 30 + ( + 97 ) / + + 87 col1
----
83
31

onlyif mysql # aggregate syntax: 
query II rowsort label-9324
SELECT - COUNT( * ) AS col1, COUNT( * ) * + 35 * 45
----
-1
1575

skipif mysql # not compatible
query II rowsort label-9324
SELECT - COUNT ( * ) AS col1, COUNT ( * ) * + 35 * 45
----
-1
1575

query II rowsort
SELECT DISTINCT - + 85, - 52 * + 74 AS col2
----
-85
-3848

query I rowsort
SELECT ALL + 2 * 49
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-9327
SELECT ALL - 43 + 45 DIV - 35 AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-9327
SELECT ALL - 43 + 45 / - 35 AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT MIN( ALL + 2 ) * - 14
----
-28

skipif mysql # not compatible
query I rowsort label-9328
SELECT MIN ( ALL + 2 ) * - 14
----
-28

query I rowsort
SELECT ALL 64 * + 43 AS col1
----
2752

query II rowsort
SELECT 46, + 19 AS col0
----
46
19

query I rowsort
SELECT + 48 * - - 46 + + - 31 + 26 AS col0
----
2203

query I rowsort
SELECT DISTINCT + 64 + + - 26 AS col2
----
38

query II rowsort
SELECT 70 AS col2, 56
----
70
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT ALL 5 + - 73 * + COUNT( - 70 ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-9334
SELECT ALL 5 + - 73 * + COUNT ( - 70 ) AS col1
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9335
SELECT DISTINCT 18, ( - + CASE WHEN ( CAST( - 52 AS SIGNED ) ) = - 65 * AVG ( DISTINCT - 95 ) * 31 + - 45 * - + 73 * + + 4 THEN + + 83 END ) AS col0
----
18
NULL

skipif mysql # not compatible
query II rowsort label-9335
SELECT DISTINCT 18, ( - + CASE WHEN ( CAST ( - 52 AS INTEGER ) ) = - 65 * AVG ( DISTINCT - 95 ) * 31 + - 45 * - + 73 * + + 4 THEN + + 83 END ) AS col0
----
18
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT DISTINCT - 19 + - COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-9336
SELECT DISTINCT - 19 + - COUNT ( * )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9337
SELECT DISTINCT + 65 + - 90 + - 55 + - + COUNT( * ) + ( - + 23 ) + - 21 * 82
----
-1826

skipif mysql # not compatible
query I rowsort label-9337
SELECT DISTINCT + 65 + - 90 + - 55 + - + COUNT ( * ) + ( - + 23 ) + - 21 * 82
----
-1826

onlyif mysql # DIV for integer division: 
query I rowsort label-9338
SELECT ALL 98 DIV - + 81 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9338
SELECT ALL 98 / - + 81 AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9339
SELECT 91 DIV - ( - + 88 ) * + COUNT( * ) AS col0, - COUNT( * ) AS col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-9339
SELECT 91 / - ( - + 88 ) * + COUNT ( * ) AS col0, - COUNT ( * ) AS col0
----
1
-1

query I rowsort
SELECT ALL - 2 + + 97 AS col2
----
95

query I rowsort
SELECT ALL ( - - 73 ) + + 29
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9342
SELECT ALL 33 AS col1, 7 * + 20 - + + 53 * + COALESCE ( + 9, + 54 ) + - 46 + COUNT( * ) / - ( - MAX( ALL + CAST( NULL AS SIGNED ) ) ) AS col1
----
33
NULL

skipif mysql # not compatible
query II rowsort label-9342
SELECT ALL 33 AS col1, 7 * + 20 - + + 53 * + COALESCE ( + 9, + 54 ) + - 46 + COUNT ( * ) / - ( - MAX ( ALL + CAST ( NULL AS INTEGER ) ) ) AS col1
----
33
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9343
SELECT - CAST( NULL AS SIGNED ) * - 20 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9343
SELECT - CAST ( NULL AS INTEGER ) * - 20 col2
----
NULL

query II rowsort
SELECT - 90 AS col2, 59
----
-90
59

query II rowsort
SELECT 84 AS col1, + 42 * + 66 + - + 20 col1
----
84
2752

query I rowsort
SELECT ALL ( 3 ) - - 49 AS col2
----
52

query II rowsort
SELECT + 38 - - 76, 21 AS col0
----
114
21

query I rowsort
SELECT ALL 79 * - 81 * - - 50 AS col1
----
-319950

query II rowsort
SELECT ALL + 91 AS col2, 73
----
91
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9350
SELECT ALL CAST( NULL AS SIGNED ) * - MIN( DISTINCT 65 ) + + ( + - MIN( ALL + 57 ) ) / + 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9350
SELECT ALL CAST ( NULL AS INTEGER ) * - MIN ( DISTINCT 65 ) + + ( + - MIN ( ALL + 57 ) ) / + 8 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9351
SELECT ALL - ( CAST( NULL AS SIGNED ) ) / + CAST( + 27 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9351
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) / + CAST ( + 27 AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9352
SELECT + - 52 DIV - SUM( ALL + 94 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9352
SELECT + - 52 / - SUM ( ALL + 94 ) AS col2
----
0

query II rowsort
SELECT DISTINCT + + 25, - 37 AS col0
----
25
-37

query II rowsort
SELECT + + 83 + - 1, - 41 AS col2
----
82
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9355
SELECT + + CAST( NULL AS SIGNED ) / + 68 - ( - - COUNT( * ) ) * 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9355
SELECT + + CAST ( NULL AS INTEGER ) / + 68 - ( - - COUNT ( * ) ) * 32 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9356
SELECT - - NULLIF ( + 83, 76 * - 43 + - + CAST( NULL AS SIGNED ) + - + 2 * MIN( - ( - 35 ) ) ) DIV 87 * 52 AS col1, - 80 AS col0
----
0
-80

skipif mysql # not compatible
query II rowsort label-9356
SELECT - - NULLIF ( + 83, 76 * - 43 + - + CAST ( NULL AS INTEGER ) + - + 2 * MIN ( - ( - 35 ) ) ) / 87 * 52 AS col1, - 80 AS col0
----
0
-80

query I rowsort
SELECT 8 * 52 * ( 47 ) + - 8
----
19544

query I rowsort
SELECT - - 3 - - 65
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9359
SELECT ALL 52 / - CASE + - 18 WHEN - 75 / + 67 THEN + 54 WHEN 49 THEN NULL END, - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9359
SELECT ALL 52 / - CASE + - 18 WHEN - 75 / + 67 THEN + 54 WHEN 49 THEN NULL END, - CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9360
SELECT - 32 DIV - - 3 + - 55 + 36 + + 80
----
51

skipif mysql # not compatible
query I rowsort label-9360
SELECT - 32 / - - 3 + - 55 + 36 + + 80
----
51

query I rowsort
SELECT DISTINCT - 64 * - 39
----
2496

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT ALL + 4 * - ( 28 ) + + - SUM( + 7 ) * - - ( ( ( - 19 ) ) ) + + + 3
----
24

skipif mysql # not compatible
query I rowsort label-9362
SELECT ALL + 4 * - ( 28 ) + + - SUM ( + 7 ) * - - ( ( ( - 19 ) ) ) + + + 3
----
24

query II rowsort
SELECT DISTINCT + + 14 col1, 82
----
14
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9364
SELECT ALL 18 DIV MIN( - 6 ) * + + 18, + CASE - 27 WHEN + COUNT( * ) THEN + 83 + - + 99 DIV + 94 + + NULLIF ( - ( + 71 ), 87 * 46 ) + + 84 * 5 * SUM( - 37 ) END AS col0
----
-54
NULL

skipif mysql # not compatible
query II rowsort label-9364
SELECT ALL 18 / MIN ( - 6 ) * + + 18, + CASE - 27 WHEN + COUNT ( * ) THEN + 83 + - + 99 / + 94 + + NULLIF ( - ( + 71 ), 87 * 46 ) + + 84 * 5 * SUM ( - 37 ) END AS col0
----
-54
NULL

query II rowsort
SELECT - 62 + - - 98 AS col0, 69 AS col1
----
36
69

onlyif mysql # aggregate syntax: 
query II rowsort label-9366
SELECT ALL + + 32 AS col2, + NULLIF ( 85, - + 46 - 41 * + COUNT( * ) ) AS col0
----
32
85

skipif mysql # not compatible
query II rowsort label-9366
SELECT ALL + + 32 AS col2, + NULLIF ( 85, - + 46 - 41 * + COUNT ( * ) ) AS col0
----
32
85

query II rowsort
SELECT ALL + 50 AS col1, - 51
----
50
-51

query I rowsort
SELECT ALL + 10 * + 68 + + 34 AS col1
----
714

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT COUNT( ALL - 27 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9369
SELECT COUNT ( ALL - 27 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT + ( + - MAX( 2 ) ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-9370
SELECT + ( + - MAX ( 2 ) ) AS col0
----
-2

query I rowsort
SELECT - 99 + + 11
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9372
SELECT ALL ( - ( - + CAST( - 88 AS SIGNED ) ) )
----
-88

skipif mysql # not compatible
query I rowsort label-9372
SELECT ALL ( - ( - + CAST ( - 88 AS INTEGER ) ) )
----
-88

query I rowsort
SELECT DISTINCT - 33 + 14 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT ALL MAX( DISTINCT + 12 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-9374
SELECT ALL MAX ( DISTINCT + 12 ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT DISTINCT CASE MIN( DISTINCT + 14 ) WHEN + 46 + 81 THEN NULL WHEN 78 THEN - 71 + - COUNT( * ) + + 64 + - + 77 - + 78 * 50 ELSE + 49 END
----
49

skipif mysql # not compatible
query I rowsort label-9375
SELECT DISTINCT CASE MIN ( DISTINCT + 14 ) WHEN + 46 + 81 THEN NULL WHEN 78 THEN - 71 + - COUNT ( * ) + + 64 + - + 77 - + 78 * 50 ELSE + 49 END
----
49

query I rowsort
SELECT - 27 - - 44 * + 47 AS col1
----
2041

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT - 33 * COUNT( * ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-9377
SELECT - 33 * COUNT ( * ) AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT DISTINCT - MAX( - 33 ) - - 41 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-9378
SELECT DISTINCT - MAX ( - 33 ) - - 41 AS col2
----
74

query I rowsort
SELECT - 97 * + 95 AS col1
----
-9215

query I rowsort
SELECT DISTINCT - 71 - 34 * - 0 + 42 + + 59 col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT ALL + - ( - - 80 ) * - - 78 * + ( - MAX( + 59 ) ) AS col1
----
368160

skipif mysql # not compatible
query I rowsort label-9381
SELECT ALL + - ( - - 80 ) * - - 78 * + ( - MAX ( + 59 ) ) AS col1
----
368160

onlyif mysql # aggregate syntax: 
query II rowsort label-9382
SELECT - - COUNT( * ) * - 65 + + 55 AS col2, 22 AS col0
----
-10
22

skipif mysql # not compatible
query II rowsort label-9382
SELECT - - COUNT ( * ) * - 65 + + 55 AS col2, 22 AS col0
----
-10
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT + - COUNT( * ) * - MAX( COALESCE ( - 44, 30 ) )
----
-44

skipif mysql # not compatible
query I rowsort label-9383
SELECT + - COUNT ( * ) * - MAX ( COALESCE ( - 44, 30 ) )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT + 53 + - + MIN( 31 )
----
22

skipif mysql # not compatible
query I rowsort label-9384
SELECT + 53 + - + MIN ( 31 )
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-9385
SELECT + + 64 DIV 72 + - - 29
----
29

skipif mysql # not compatible
query I rowsort label-9385
SELECT + + 64 / 72 + - - 29
----
29

query I rowsort
SELECT ALL 7 * - 20 AS col2
----
-140

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9387
SELECT + + CASE + 20 WHEN 99 THEN - 60 * 15 - - + 90 WHEN + ( + + 43 ) + MIN( ALL 27 ) THEN - 10 END * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9387
SELECT + + CASE + 20 WHEN 99 THEN - 60 * 15 - - + 90 WHEN + ( + + 43 ) + MIN ( ALL 27 ) THEN - 10 END * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9388
SELECT ALL + CAST( + + 26 AS SIGNED ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-9388
SELECT ALL + CAST ( + + 26 AS INTEGER ) AS col2
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-9389
SELECT ALL 8 DIV - - 2 + - NULLIF ( 75, + 73 ) * + 89
----
-6671

skipif mysql # not compatible
query I rowsort label-9389
SELECT ALL 8 / - - 2 + - NULLIF ( 75, + 73 ) * + 89
----
-6671

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9390
SELECT + 98 AS col0, 55 DIV - + 86 * SUM( + + 73 ) AS col1
----
98
0

skipif mysql # not compatible
query II rowsort label-9390
SELECT + 98 AS col0, 55 / - + 86 * SUM ( + + 73 ) AS col1
----
98
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9391
SELECT ALL 34 * - COALESCE ( + 23, 27 * COUNT( * ) * 36 ) DIV NULLIF ( - COUNT( * ), 24 ) + + 84 AS col1
----
866

skipif mysql # not compatible
query I rowsort label-9391
SELECT ALL 34 * - COALESCE ( + 23, 27 * COUNT ( * ) * 36 ) / NULLIF ( - COUNT ( * ), 24 ) + + 84 AS col1
----
866

onlyif mysql # DIV for integer division: 
query I rowsort label-9392
SELECT - 99 DIV - 79 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9392
SELECT - 99 / - 79 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT DISTINCT MAX( + 41 ) * - + 31 + + 22 + ( + ( + - 80 ) ) + - - 44
----
-1285

skipif mysql # not compatible
query I rowsort label-9393
SELECT DISTINCT MAX ( + 41 ) * - + 31 + + 22 + ( + ( + - 80 ) ) + - - 44
----
-1285

onlyif mysql # aggregate syntax: 
query II rowsort label-9394
SELECT ALL 23 * + - 28 * - 19 AS col2, - MIN( ALL - 97 ) AS col0
----
12236
97

skipif mysql # not compatible
query II rowsort label-9394
SELECT ALL 23 * + - 28 * - 19 AS col2, - MIN ( ALL - 97 ) AS col0
----
12236
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT ALL 46 * - + NULLIF ( 67, + + 68 * - 6 + - COUNT( * ) + + CASE + + 44 WHEN COUNT( * ) * + 72 + - 55 THEN + 60 * 81 ELSE - 86 * + COUNT( DISTINCT 15 ) * + 62 * 67 END ) + - - 93 AS col1
----
-2989

skipif mysql # not compatible
query I rowsort label-9395
SELECT ALL 46 * - + NULLIF ( 67, + + 68 * - 6 + - COUNT ( * ) + + CASE + + 44 WHEN COUNT ( * ) * + 72 + - 55 THEN + 60 * 81 ELSE - 86 * + COUNT ( DISTINCT 15 ) * + 62 * 67 END ) + - - 93 AS col1
----
-2989

onlyif mysql # DIV for integer division: 
query I rowsort label-9396
SELECT DISTINCT 52 DIV - 86
----
0

skipif mysql # not compatible
query I rowsort label-9396
SELECT DISTINCT 52 / - 86
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9397
SELECT ( + 55 ) DIV + COUNT( * ), + 50 * - COUNT( * ) col2
----
55
-50

skipif mysql # not compatible
query II rowsort label-9397
SELECT ( + 55 ) / + COUNT ( * ), + 50 * - COUNT ( * ) col2
----
55
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9398
SELECT ALL - CASE ( + - COUNT( * ) ) WHEN 92 THEN - 1 * 36 * 60 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9398
SELECT ALL - CASE ( + - COUNT ( * ) ) WHEN 92 THEN - 1 * 36 * 60 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9399
SELECT ALL - 36 AS col2, COUNT( * ) AS col0
----
-36
1

skipif mysql # not compatible
query II rowsort label-9399
SELECT ALL - 36 AS col2, COUNT ( * ) AS col0
----
-36
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT 75 + + 51 * COUNT( * ) + 7
----
133

skipif mysql # not compatible
query I rowsort label-9400
SELECT 75 + + 51 * COUNT ( * ) + 7
----
133

query II rowsort
SELECT 79, - 22 AS col0
----
79
-22

query I rowsort
SELECT + 2 * + 26 + 18 + - ( - 30 )
----
100

query I rowsort
SELECT 26 + 28 * + + 33 AS col2
----
950

query I rowsort
SELECT 29 - 35
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT COUNT( * ) * + 24 col2
----
24

skipif mysql # not compatible
query I rowsort label-9405
SELECT COUNT ( * ) * + 24 col2
----
24

query I rowsort
SELECT 19 + - + 54 + + 18
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9407
SELECT ALL 42 col2, + CAST( + 44 AS SIGNED )
----
42
44

skipif mysql # not compatible
query II rowsort label-9407
SELECT ALL 42 col2, + CAST ( + 44 AS INTEGER )
----
42
44

query I rowsort
SELECT 26 * - 93 AS col0
----
-2418

query I rowsort
SELECT DISTINCT - 39 * - 37 * - 9 * - 50
----
649350

onlyif mysql # aggregate syntax: 
query II rowsort label-9410
SELECT ALL - 62 AS col1, - ( + COUNT( * ) )
----
-62
-1

skipif mysql # not compatible
query II rowsort label-9410
SELECT ALL - 62 AS col1, - ( + COUNT ( * ) )
----
-62
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-9411
SELECT - 56, 99 DIV + 10 AS col2
----
-56
9

skipif mysql # not compatible
query II rowsort label-9411
SELECT - 56, 99 / + 10 AS col2
----
-56
9

query I rowsort
SELECT DISTINCT + 30 * - 67
----
-2010

query II rowsort
SELECT - 40 col1, - 32 * + 5
----
-40
-160

query I rowsort
SELECT DISTINCT + 69 * 41 AS col2
----
2829

query I rowsort
SELECT ALL - + 48 + - 37
----
-85

query II rowsort
SELECT ( 43 ) - + 40 AS col0, - 98 AS col0
----
3
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9417
SELECT ALL - + CAST( NULL AS SIGNED ) + + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-9417
SELECT ALL - + CAST ( NULL AS INTEGER ) + + 72
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9418
SELECT ALL 70 DIV - COALESCE ( - + 62, - - SUM( ALL - - 69 ) * 31 * CAST( NULL AS SIGNED ), - COUNT( * ) + + MIN( - 41 ) * + CAST( 40 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-9418
SELECT ALL 70 / - COALESCE ( - + 62, - - SUM ( ALL - - 69 ) * 31 * CAST ( NULL AS INTEGER ), - COUNT ( * ) + + MIN ( - 41 ) * + CAST ( 40 AS INTEGER ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9419
SELECT ALL - CASE + 60 WHEN - ( + CAST( - - 11 AS SIGNED ) ) + + 80 * + 8 THEN - 98 * COUNT( * ) * + + 93 + + 26 * - 8 WHEN 18 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9419
SELECT ALL - CASE + 60 WHEN - ( + CAST ( - - 11 AS INTEGER ) ) + + 80 * + 8 THEN - 98 * COUNT ( * ) * + + 93 + + 26 * - 8 WHEN 18 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - + 56 + - 28
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT 0 + + COUNT( * ) + 17 * 58 * COUNT( * )
----
987

skipif mysql # not compatible
query I rowsort label-9421
SELECT 0 + + COUNT ( * ) + 17 * 58 * COUNT ( * )
----
987

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9422
SELECT + ( + 54 ) * ( 57 ) - - CAST( NULL AS SIGNED ) + - + 2 + - 64 * - + 74 * + 30 + + 78 + + + 14 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9422
SELECT + ( + 54 ) * ( 57 ) - - CAST ( NULL AS INTEGER ) + - + 2 + - 64 * - + 74 * + 30 + + 78 + + + 14 col0
----
NULL

query I rowsort
SELECT 90 - - 81 + + 58 - + + 21 * COALESCE ( + 99, 48 * - 93 + 19 * - 59, 37 ) * + + 66 AS col0
----
-136985

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT - 80 - + - 88 + - + ( COUNT( * ) ) * + 3 * + - 61 AS col1
----
191

skipif mysql # not compatible
query I rowsort label-9424
SELECT - 80 - + - 88 + - + ( COUNT ( * ) ) * + 3 * + - 61 AS col1
----
191

query I rowsort
SELECT DISTINCT - 33 - + - 8
----
-25

query I rowsort
SELECT ALL 82 * + - 62 AS col2
----
-5084

onlyif mysql # aggregate syntax: 
query II rowsort label-9427
SELECT COUNT( DISTINCT + ( 69 ) ) + + + 62 AS col1, - COUNT( - 83 )
----
63
-1

skipif mysql # not compatible
query II rowsort label-9427
SELECT COUNT ( DISTINCT + ( 69 ) ) + + + 62 AS col1, - COUNT ( - 83 )
----
63
-1

query I rowsort
SELECT ALL + 15 * - + 71
----
-1065

onlyif mysql # DIV for integer division: 
query I rowsort label-9429
SELECT 75 DIV + + 39
----
1

skipif mysql # not compatible
query I rowsort label-9429
SELECT 75 / + + 39
----
1

query I rowsort
SELECT COALESCE ( + + 14, + 82 ) * + 89 + - - 20 AS col2
----
1266

query I rowsort
SELECT ( - 25 ) + + - 18 * - 56
----
983

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT 36 * ( - COUNT( * ) )
----
-36

skipif mysql # not compatible
query I rowsort label-9432
SELECT 36 * ( - COUNT ( * ) )
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9433
SELECT ALL NULLIF ( - - CASE + 37 WHEN + - 17 * + CAST( NULL AS SIGNED ) THEN - 95 END, - + 93 ) / - 98 + ( - - 50 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9433
SELECT ALL NULLIF ( - - CASE + 37 WHEN + - 17 * + CAST ( NULL AS INTEGER ) THEN - 95 END, - + 93 ) / - 98 + ( - - 50 ) AS col1
----
NULL

query I rowsort
SELECT 10 * + 68 * 34
----
23120

query I rowsort
SELECT 44 * + 58 + 53 col0
----
2605

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9436
SELECT DISTINCT COUNT( * ) * - - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9436
SELECT DISTINCT COUNT ( * ) * - - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9437
SELECT CAST( NULL AS DECIMAL ) + 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9437
SELECT CAST ( NULL AS REAL ) + 90 AS col2
----
NULL

query I rowsort
SELECT ALL - 53 * 95 AS col0
----
-5035

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9439
SELECT COUNT( * ) * - 29 DIV ( CAST( 93 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9439
SELECT COUNT ( * ) * - 29 / ( CAST ( 93 AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT ALL COUNT( - - 41 ) + + + 11
----
12

skipif mysql # not compatible
query I rowsort label-9440
SELECT ALL COUNT ( - - 41 ) + + + 11
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT DISTINCT SUM( ALL - + 16 ) * + 23
----
-368

skipif mysql # not compatible
query I rowsort label-9441
SELECT DISTINCT SUM ( ALL - + 16 ) * + 23
----
-368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9442
SELECT + 52 + - CAST( NULL AS SIGNED ) - - 19 * - 5 * + COALESCE ( 95, - + CASE + NULLIF ( + - 85, - + 23 ) WHEN 38 + 43 THEN + 26 WHEN - ( - + 9 ) THEN NULL END / 13 ) * + MIN( + 57 ) - 76 * + 89 + - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-9442
SELECT + 52 + - CAST ( NULL AS INTEGER ) - - 19 * - 5 * + COALESCE ( 95, - + CASE + NULLIF ( + - 85, - + 23 ) WHEN 38 + 43 THEN + 26 WHEN - ( - + 9 ) THEN NULL END / 13 ) * + MIN ( + 57 ) - 76 * + 89 + - 7
----
NULL

query II rowsort
SELECT DISTINCT - ( - + 3 ) AS col2, - 7 AS col1
----
3
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9444
SELECT ( - COALESCE ( + - 62, 39 ) ) * - - CAST( - 59 AS SIGNED ) * + - 20 * - + 95 + + 95 AS col2
----
-6950105

skipif mysql # not compatible
query I rowsort label-9444
SELECT ( - COALESCE ( + - 62, 39 ) ) * - - CAST ( - 59 AS INTEGER ) * + - 20 * - + 95 + + 95 AS col2
----
-6950105

query I rowsort
SELECT DISTINCT + + 58 + 96
----
154

onlyif mysql # DIV for integer division: 
query I rowsort label-9446
SELECT ALL - + 96 + 95 DIV + + 6 AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-9446
SELECT ALL - + 96 + 95 / + + 6 AS col2
----
-81

query I rowsort
SELECT 43 + - - 95 col2
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9448
SELECT - + CAST( - 47 AS SIGNED ) col0
----
47

skipif mysql # not compatible
query I rowsort label-9448
SELECT - + CAST ( - 47 AS INTEGER ) col0
----
47

query I rowsort
SELECT - 1 + - 78 AS col1
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-9450
SELECT DISTINCT + + 83 DIV + 88 * - 39
----
0

skipif mysql # not compatible
query I rowsort label-9450
SELECT DISTINCT + + 83 / + 88 * - 39
----
0

query I rowsort
SELECT DISTINCT + COALESCE ( 95, - - ( 79 ) + - + 77 ) + - 6 - 44 AS col0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9452
SELECT ALL CAST( 67 AS SIGNED ) + + - 60 col2
----
7

skipif mysql # not compatible
query I rowsort label-9452
SELECT ALL CAST ( 67 AS INTEGER ) + + - 60 col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT DISTINCT - COUNT( * ) + - CASE - 13 WHEN 32 THEN 33 ELSE + + COUNT( * ) + + - 1 END
----
-1

skipif mysql # not compatible
query I rowsort label-9453
SELECT DISTINCT - COUNT ( * ) + - CASE - 13 WHEN 32 THEN 33 ELSE + + COUNT ( * ) + + - 1 END
----
-1

query I rowsort
SELECT + 51 + + 81 AS col1
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT 73 * - + 20 * COUNT( * ) * 40 * 15 * - 50 + - + 44
----
43799956

skipif mysql # not compatible
query I rowsort label-9455
SELECT 73 * - + 20 * COUNT ( * ) * 40 * 15 * - 50 + - + 44
----
43799956

query I rowsort
SELECT + 78 + 19
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-9457
SELECT MAX( DISTINCT 9 ) * 52 + + 71 AS col0, - 42
----
539
-42

skipif mysql # not compatible
query II rowsort label-9457
SELECT MAX ( DISTINCT 9 ) * 52 + + 71 AS col0, - 42
----
539
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT ALL + + ( + 22 ) * - NULLIF ( - - COUNT( * ), - 45 ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-9458
SELECT ALL + + ( + 22 ) * - NULLIF ( - - COUNT ( * ), - 45 ) AS col0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9459
SELECT - CAST( NULL AS SIGNED ) / - + 92 + + 11 * - - 3 + - 66 - - 37 * + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-9459
SELECT - CAST ( NULL AS INTEGER ) / - + 92 + + 11 * - - 3 + - 66 - - 37 * + 17
----
NULL

query I rowsort
SELECT ALL 32 * 97 - - - 12 + 4 + - + 63
----
3033

onlyif mysql # DIV for integer division: 
query I rowsort label-9461
SELECT ALL 34 DIV 32
----
1

skipif mysql # not compatible
query I rowsort label-9461
SELECT ALL 34 / 32
----
1

query I rowsort
SELECT - 40 * - + 53 AS col2
----
2120

onlyif mysql # DIV for integer division: 
query I rowsort label-9463
SELECT ALL - 56 DIV 50 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9463
SELECT ALL - 56 / 50 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT COUNT( * ) * - 79 * - 78 - - + 89
----
6251

skipif mysql # not compatible
query I rowsort label-9464
SELECT COUNT ( * ) * - 79 * - 78 - - + 89
----
6251

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT + MAX( 41 )
----
41

skipif mysql # not compatible
query I rowsort label-9465
SELECT + MAX ( 41 )
----
41

query I rowsort
SELECT 48 * 95 + + 35 + - 49
----
4546

onlyif mysql # aggregate syntax: 
query II rowsort label-9467
SELECT 57 * - SUM( - 77 ) * - 16 - - 4 AS col2, - 75 + - 7
----
-70220
-82

skipif mysql # not compatible
query II rowsort label-9467
SELECT 57 * - SUM ( - 77 ) * - 16 - - 4 AS col2, - 75 + - 7
----
-70220
-82

query I rowsort
SELECT DISTINCT + 66 * + + 42
----
2772

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9469
SELECT ALL + MAX( - CAST( NULL AS DECIMAL ) ) * - 68 * + 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9469
SELECT ALL + MAX ( - CAST ( NULL AS REAL ) ) * - 68 * + 54 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT + COUNT( ALL 57 ) * 2 * + 71 * + - 43
----
-6106

skipif mysql # not compatible
query I rowsort label-9470
SELECT + COUNT ( ALL 57 ) * 2 * + 71 * + - 43
----
-6106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9471
SELECT - 38 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9471
SELECT - 38 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9472
SELECT - CASE + 11 WHEN + AVG ( DISTINCT - 13 ) THEN NULL ELSE MIN( ALL 38 ) DIV - 54 + 36 - - 15 END AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-9472
SELECT - CASE + 11 WHEN + AVG ( DISTINCT - 13 ) THEN NULL ELSE MIN ( ALL 38 ) / - 54 + 36 - - 15 END AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT + NULLIF ( - 93, 60 * 58 + 20 + + - COUNT( * ) ) * COUNT( * ) * + CASE 72 WHEN + SUM( DISTINCT - 32 ) + 40 * - 73 THEN 51 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9473
SELECT + NULLIF ( - 93, 60 * 58 + 20 + + - COUNT ( * ) ) * COUNT ( * ) * + CASE 72 WHEN + SUM ( DISTINCT - 32 ) + 40 * - 73 THEN 51 END
----
NULL

query II rowsort
SELECT 98, 30 AS col2
----
98
30

query I rowsort
SELECT + 33 * 82 + - + 78 + + NULLIF ( - 13, - + 88 * + - 3 )
----
2615

query I rowsort
SELECT ALL 2 + + 45 AS col1
----
47

query I rowsort
SELECT ALL - 80 + + 1 AS col2
----
-79

query II rowsort
SELECT COALESCE ( - 58, 68 * + 95, 49 + - 58 ), - 36 + + - 21 col0
----
-58
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT DISTINCT + NULLIF ( - 75, + NULLIF ( 12, - 6 ) * 8 + + - 60 ) + - + 75 + - - COUNT( * ) AS col1
----
-149

skipif mysql # not compatible
query I rowsort label-9479
SELECT DISTINCT + NULLIF ( - 75, + NULLIF ( 12, - 6 ) * 8 + + - 60 ) + - + 75 + - - COUNT ( * ) AS col1
----
-149

query I rowsort
SELECT + 90 + NULLIF ( - + 68, + + 32 ) AS col0
----
22

query I rowsort
SELECT ALL 29 * + 31 AS col2
----
899

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9482
SELECT + 99 * + 96 + + + ( + 87 ) + COUNT( * ) + - - 55 * + 54 + + COUNT( * ) + + CAST( + 74 AS SIGNED ) + 53 DIV - 20 AS col2
----
12635

skipif mysql # not compatible
query I rowsort label-9482
SELECT + 99 * + 96 + + + ( + 87 ) + COUNT ( * ) + - - 55 * + 54 + + COUNT ( * ) + + CAST ( + 74 AS INTEGER ) + 53 / - 20 AS col2
----
12635

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9483
SELECT - - CASE + 44 WHEN + 94 THEN + 86 * + 74 + 88 - - AVG ( - 12 ) + - COUNT( * ) - + 10 / + MAX( - 86 ) * COUNT( * ) * + 76 * + - 57 + - 65 + + CAST( COUNT( - + ( - 87 ) ) AS SIGNED ) + - 7 WHEN - 84 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9483
SELECT - - CASE + 44 WHEN + 94 THEN + 86 * + 74 + 88 - - AVG ( - 12 ) + - COUNT ( * ) - + 10 / + MAX ( - 86 ) * COUNT ( * ) * + 76 * + - 57 + - 65 + + CAST ( COUNT ( - + ( - 87 ) ) AS INTEGER ) + - 7 WHEN - 84 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT + - 98 + - - 89 AS col0
----
-9

query I rowsort
SELECT - COALESCE ( - ( 12 ), 64 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT ALL - COUNT( * ) * + COUNT( * ) + - 26 * 37 AS col0
----
-963

skipif mysql # not compatible
query I rowsort label-9486
SELECT ALL - COUNT ( * ) * + COUNT ( * ) + - 26 * 37 AS col0
----
-963

onlyif mysql # DIV for integer division: 
query II rowsort label-9487
SELECT + + COALESCE ( + + 51, + + COALESCE ( - 9, + 27 ) ) + 55 AS col2, + 2 + + 60 DIV + 65 * + 8
----
106
2

skipif mysql # not compatible
query II rowsort label-9487
SELECT + + COALESCE ( + + 51, + + COALESCE ( - 9, + 27 ) ) + 55 AS col2, + 2 + + 60 / + 65 * + 8
----
106
2

query I rowsort
SELECT - + 17 * + 49
----
-833

onlyif mysql # aggregate syntax: 
query II rowsort label-9489
SELECT ALL CASE + 33 WHEN + 92 THEN + 79 WHEN - 90 + 99 * + COUNT( * ) + 55 THEN NULL WHEN + 38 THEN - 75 END, + COUNT( DISTINCT + - 18 ) * - 6 * - 35 * + - 93 AS col1
----
NULL
-19530

skipif mysql # not compatible
query II rowsort label-9489
SELECT ALL CASE + 33 WHEN + 92 THEN + 79 WHEN - 90 + 99 * + COUNT ( * ) + 55 THEN NULL WHEN + 38 THEN - 75 END, + COUNT ( DISTINCT + - 18 ) * - 6 * - 35 * + - 93 AS col1
----
NULL
-19530

query I rowsort
SELECT + - 48 + - 68 AS col2
----
-116

query I rowsort
SELECT + ( 81 ) AS col2
----
81

query I rowsort
SELECT + 1 - + 74 * + 86 * - + 76
----
483665

query I rowsort
SELECT ALL 71 * + 89 AS col2
----
6319

query I rowsort
SELECT ALL + + 13 * + - 1
----
-13

query II rowsort
SELECT ALL + + 98, + 57 AS col1
----
98
57

query I rowsort
SELECT - 82 * + 59
----
-4838

query II rowsort
SELECT + 49, 43 AS col0
----
49
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9498
SELECT + 52, - 39 + - COUNT( * ) - 88 DIV 95 AS col1
----
52
-40

skipif mysql # not compatible
query II rowsort label-9498
SELECT + 52, - 39 + - COUNT ( * ) - 88 / 95 AS col1
----
52
-40

query I rowsort
SELECT - 17 * + 64
----
-1088

query I rowsort
SELECT ALL - 61 * - - 34 AS col0
----
-2074

query I rowsort
SELECT 25 * - 88 + - 45 AS col2
----
-2245

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT + 90 * - 87 + + COUNT( * ) col0
----
-7829

skipif mysql # not compatible
query I rowsort label-9502
SELECT + 90 * - 87 + + COUNT ( * ) col0
----
-7829

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9503
SELECT ( + ( CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9503
SELECT ( + ( CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9504
SELECT ALL + 74 AS col1, COUNT( * ) AS col0
----
74
1

skipif mysql # not compatible
query II rowsort label-9504
SELECT ALL + 74 AS col1, COUNT ( * ) AS col0
----
74
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9505
SELECT 89 DIV 9 + ( - 30 ) + - + 15 + + 35
----
-1

skipif mysql # not compatible
query I rowsort label-9505
SELECT 89 / 9 + ( - 30 ) + - + 15 + + 35
----
-1

query I rowsort
SELECT - 92 * 24 * - 72
----
158976

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT - 51 * + 99 + + SUM( - - 45 ) - - 90 * - 78 * + COUNT( * ) AS col1
----
-12024

skipif mysql # not compatible
query I rowsort label-9507
SELECT - 51 * + 99 + + SUM ( - - 45 ) - - 90 * - 78 * + COUNT ( * ) AS col1
----
-12024

query I rowsort
SELECT COALESCE ( + 94, + 25, 10 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT + MIN( - 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-9509
SELECT + MIN ( - 59 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT - 56 + + COUNT( * ) col2
----
-55

skipif mysql # not compatible
query I rowsort label-9510
SELECT - 56 + + COUNT ( * ) col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT NULLIF ( - + MAX( DISTINCT - 43 ), + 96 ) col2
----
43

skipif mysql # not compatible
query I rowsort label-9511
SELECT NULLIF ( - + MAX ( DISTINCT - 43 ), + 96 ) col2
----
43

query I rowsort
SELECT - 20 + - + 42 + - - 65
----
3

query I rowsort
SELECT - 32 + 40 AS col2
----
8

query II rowsort
SELECT - - 95 AS col2, + 79 col1
----
95
79

query I rowsort
SELECT DISTINCT - 62 * 33 + ( + 41 ) AS col0
----
-2005

query I rowsort
SELECT ALL + NULLIF ( - 95, 21 )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT ALL - - 37 * 62 + - + 87 * 28 * + ( COUNT( * ) ) * 3
----
-5014

skipif mysql # not compatible
query I rowsort label-9517
SELECT ALL - - 37 * 62 + - + 87 * 28 * + ( COUNT ( * ) ) * 3
----
-5014

query I rowsort
SELECT - 36 + + + 90
----
54

query I rowsort
SELECT - + 69 * + 24
----
-1656

query I rowsort
SELECT + + 63 * + 53 col0
----
3339

query II rowsort
SELECT - 15 AS col1, - 2 * - 87 AS col1
----
-15
174

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT + 19 + 53 - + COUNT( * ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-9522
SELECT + 19 + 53 - + COUNT ( * ) AS col0
----
71

query I rowsort
SELECT - ( - - 89 ) AS col0
----
-89

query II rowsort
SELECT - 65 AS col1, - 61 AS col1
----
-65
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT + COUNT( * ) + - 97 - + 53 * COUNT( * ) + + 3 * + 67
----
52

skipif mysql # not compatible
query I rowsort label-9525
SELECT + COUNT ( * ) + - 97 - + 53 * COUNT ( * ) + + 3 * + 67
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9526
SELECT ALL CAST( NULL AS SIGNED ) - - 93 * + CASE + 99 WHEN + + 10 - + 37 THEN NULL WHEN 48 THEN NULL ELSE 66 END + 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9526
SELECT ALL CAST ( NULL AS INTEGER ) - - 93 * + CASE + 99 WHEN + + 10 - + 37 THEN NULL WHEN 48 THEN NULL ELSE 66 END + 2 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT + 77 * + COUNT( * ) + 90 AS col0
----
167

skipif mysql # not compatible
query I rowsort label-9527
SELECT + 77 * + COUNT ( * ) + 90 AS col0
----
167

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9528
SELECT COUNT( ALL - 4 ) + + COALESCE ( + + 6, + + 51, - COALESCE ( - 45, - + 73, - 54 + ( 22 ) ) DIV 96 + + 31, - - 22 * - COUNT( - 2 ) + + 94 )
----
7

skipif mysql # not compatible
query I rowsort label-9528
SELECT COUNT ( ALL - 4 ) + + COALESCE ( + + 6, + + 51, - COALESCE ( - 45, - + 73, - 54 + ( 22 ) ) / 96 + + 31, - - 22 * - COUNT ( - 2 ) + + 94 )
----
7

query II rowsort
SELECT - + 90 AS col1, 89 AS col1
----
-90
89

onlyif mysql # aggregate syntax: 
query II rowsort label-9530
SELECT ALL - COUNT( * ) AS col0, + 97 * - 89 AS col0
----
-1
-8633

skipif mysql # not compatible
query II rowsort label-9530
SELECT ALL - COUNT ( * ) AS col0, + 97 * - 89 AS col0
----
-1
-8633

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9531
SELECT ALL - 42 * - ( - 30 ) + CAST( NULL AS SIGNED ) AS col2, 70
----
NULL
70

skipif mysql # not compatible
query II rowsort label-9531
SELECT ALL - 42 * - ( - 30 ) + CAST ( NULL AS INTEGER ) AS col2, 70
----
NULL
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9532
SELECT ALL + 31 DIV - + COUNT( * ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-9532
SELECT ALL + 31 / - + COUNT ( * ) AS col2
----
-31

query II rowsort
SELECT DISTINCT 77, 85 * 9 AS col2
----
77
765

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9534
SELECT CAST( NULL AS SIGNED ) + 86 AS col2, 55 + - 14
----
NULL
41

skipif mysql # not compatible
query II rowsort label-9534
SELECT CAST ( NULL AS INTEGER ) + 86 AS col2, 55 + - 14
----
NULL
41

query I rowsort
SELECT ALL 23 * + 10
----
230

onlyif mysql # aggregate syntax: 
query II rowsort label-9536
SELECT 94 * - COUNT( * ) col1, - 43 AS col2
----
-94
-43

skipif mysql # not compatible
query II rowsort label-9536
SELECT 94 * - COUNT ( * ) col1, - 43 AS col2
----
-94
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9537
SELECT 93 / CASE + COUNT( * ) WHEN - ( + 70 ) * - COUNT( * ) - + 64 + + 65 * + + MAX( + + 53 ) + - COUNT( * ) + + 16 + COUNT( ALL - - ( - 54 ) ) / + + 55 THEN + 66 * + 86 / - 65 + COUNT( * ) - - 70 WHEN COUNT( ALL 95 ) THEN NULL END * - + CAST( NULL AS SIGNED ) * CASE - - 40 WHEN 83 * - 81 / 38 + + - ( + 57 ) + + 62 - + - 37 THEN - COUNT( * ) END + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-9537
SELECT 93 / CASE + COUNT ( * ) WHEN - ( + 70 ) * - COUNT ( * ) - + 64 + + 65 * + + MAX ( + + 53 ) + - COUNT ( * ) + + 16 + COUNT ( ALL - - ( - 54 ) ) / + + 55 THEN + 66 * + 86 / - 65 + COUNT ( * ) - - 70 WHEN COUNT ( ALL 95 ) THEN NULL END * - + CAST ( NULL AS INTEGER ) * CASE - - 40 WHEN 83 * - 81 / 38 + + - ( + 57 ) + + 62 - + - 37 THEN - COUNT ( * ) END + 89
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9538
SELECT ALL 87 + + COUNT( * ) AS col0, - ( - - 30 ) AS col2
----
88
-30

skipif mysql # not compatible
query II rowsort label-9538
SELECT ALL 87 + + COUNT ( * ) AS col0, - ( - - 30 ) AS col2
----
88
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT DISTINCT COUNT( * ) + - - 61 - 32 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-9539
SELECT DISTINCT COUNT ( * ) + - - 61 - 32 AS col1
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-9540
SELECT ALL + SUM( ALL 59 ) + - ( + 15 ) + 30 AS col1, + 82 * + 3 col2
----
74
246

skipif mysql # not compatible
query II rowsort label-9540
SELECT ALL + SUM ( ALL 59 ) + - ( + 15 ) + 30 AS col1, + 82 * + 3 col2
----
74
246

query I rowsort
SELECT DISTINCT - 12 + - 92
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT DISTINCT CASE 65 WHEN - 73 * - ( + ( - COUNT( * ) ) ) * - 34 THEN 36 END + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-9542
SELECT DISTINCT CASE 65 WHEN - 73 * - ( + ( - COUNT ( * ) ) ) * - 34 THEN 36 END + 14
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9543
SELECT 94 * - 58 DIV + COUNT( ALL + + 0 ) - + 0 * 21
----
-5452

skipif mysql # not compatible
query I rowsort label-9543
SELECT 94 * - 58 / + COUNT ( ALL + + 0 ) - + 0 * 21
----
-5452

onlyif mysql # DIV for integer division: 
query I rowsort label-9544
SELECT ALL 50 DIV + 69
----
0

skipif mysql # not compatible
query I rowsort label-9544
SELECT ALL 50 / + 69
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9545
SELECT ALL ( - MAX( + + 89 ) ) + - 70 + 95 DIV + 14
----
-153

skipif mysql # not compatible
query I rowsort label-9545
SELECT ALL ( - MAX ( + + 89 ) ) + - 70 + 95 / + 14
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT COUNT( * ) + - 7 * - 20 + 19
----
160

skipif mysql # not compatible
query I rowsort label-9546
SELECT COUNT ( * ) + - 7 * - 20 + 19
----
160

query I rowsort
SELECT ALL - 95 + + + 22 AS col1
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9548
SELECT ALL 14 * CAST( 18 AS SIGNED ) AS col2
----
252

skipif mysql # not compatible
query I rowsort label-9548
SELECT ALL 14 * CAST ( 18 AS INTEGER ) AS col2
----
252

query I rowsort
SELECT ALL - ( + + CASE 45 WHEN 53 THEN 44 * + + 44 END ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 24 + 32 AS col1
----
56

query I rowsort
SELECT ALL - 53 * + 90 + - 5
----
-4775

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9552
SELECT + COUNT( 78 ) - COALESCE ( - CASE 79 WHEN 50 * 48 THEN + COUNT( * ) ELSE + - CAST( NULL AS SIGNED ) END, 29, - + 67 + 87 + 9 + - 90 + + - COUNT( * ) ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-9552
SELECT + COUNT ( 78 ) - COALESCE ( - CASE 79 WHEN 50 * 48 THEN + COUNT ( * ) ELSE + - CAST ( NULL AS INTEGER ) END, 29, - + 67 + 87 + 9 + - 90 + + - COUNT ( * ) ) AS col2
----
-28

query II rowsort
SELECT 90 + 58, 57 AS col0
----
148
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT - 95 * - MIN( - - 31 )
----
2945

skipif mysql # not compatible
query I rowsort label-9554
SELECT - 95 * - MIN ( - - 31 )
----
2945

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9555
SELECT - CASE CAST( NULL AS SIGNED ) WHEN - + 34 + + - 28 + + 16 THEN 91 + + 2 WHEN + - COUNT( * ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9555
SELECT - CASE CAST ( NULL AS INTEGER ) WHEN - + 34 + + - 28 + + 16 THEN 91 + + 2 WHEN + - COUNT ( * ) THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT + 43 * COUNT( * ) - + - 76 + - 79 + - 36 * - MAX( - 96 ) * - 84 * - 10 - + 1 + + CASE 16 WHEN + ( - ( 22 ) ) THEN NULL ELSE - ( - 76 ) END AS col1
----
-2902925

skipif mysql # not compatible
query I rowsort label-9556
SELECT + 43 * COUNT ( * ) - + - 76 + - 79 + - 36 * - MAX ( - 96 ) * - 84 * - 10 - + 1 + + CASE 16 WHEN + ( - ( 22 ) ) THEN NULL ELSE - ( - 76 ) END AS col1
----
-2902925

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT ALL MIN( + 53 )
----
53

skipif mysql # not compatible
query I rowsort label-9557
SELECT ALL MIN ( + 53 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT DISTINCT - MAX( DISTINCT - - 54 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-9558
SELECT DISTINCT - MAX ( DISTINCT - - 54 ) AS col2
----
-54

query I rowsort
SELECT 59 * + + 60
----
3540

query II rowsort
SELECT ALL - - 5 * + + 92 + ( - 75 ) - + - 94 AS col2, + 91
----
479
91

onlyif mysql # DIV for integer division: 
query III rowsort label-9561
SELECT ALL - ( + 13 ) AS col2, - 34 DIV + 84 * - - 89 col1, - + 13 col2
----
-13
0
-13

skipif mysql # not compatible
query III rowsort label-9561
SELECT ALL - ( + 13 ) AS col2, - 34 / + 84 * - - 89 col1, - + 13 col2
----
-13
0
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT ALL - ( + - MIN( ALL + + 25 ) ) * 97 AS col0
----
2425

skipif mysql # not compatible
query I rowsort label-9562
SELECT ALL - ( + - MIN ( ALL + + 25 ) ) * 97 AS col0
----
2425

query I rowsort
SELECT ALL - - ( - + 6 ) * + 42 + - 65 + - 42 * - + 93
----
3589

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9564
SELECT - 64 + + 91 + - 22 / - CAST( NULL AS SIGNED ) - - 39 / - 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9564
SELECT - 64 + + 91 + - 22 / - CAST ( NULL AS INTEGER ) - - 39 / - 99 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9565
SELECT ALL CASE + 59 WHEN + 56 * + 29 * + 63 * 6 THEN 98 * + 36 * CASE 40 WHEN 66 * COUNT( * ) + - 90 / - 14 THEN NULL WHEN - 90 * 46 * - CAST( NULL AS DECIMAL ) * - - 41 THEN 8 ELSE - 18 + 27 END * + - 51 WHEN - COUNT( * ) THEN NULL WHEN - CAST( NULL AS SIGNED ) - + 49 - - - 22 THEN NULL WHEN SUM( 99 ) * - + 70 + - 37 + - 3 * - 90 * + 92 THEN NULL ELSE + 58 * 97 + 38 - + 57 END AS col2
----
5607

skipif mysql # not compatible
query I rowsort label-9565
SELECT ALL CASE + 59 WHEN + 56 * + 29 * + 63 * 6 THEN 98 * + 36 * CASE 40 WHEN 66 * COUNT ( * ) + - 90 / - 14 THEN NULL WHEN - 90 * 46 * - CAST ( NULL AS REAL ) * - - 41 THEN 8 ELSE - 18 + 27 END * + - 51 WHEN - COUNT ( * ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) - + 49 - - - 22 THEN NULL WHEN SUM ( 99 ) * - + 70 + - 37 + - 3 * - 90 * + 92 THEN NULL ELSE + 58 * 97 + 38 - + 57 END AS col2
----
5607

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9566
SELECT 94 + + COALESCE ( 58, + + 96 - + - CASE + + CAST( + 76 AS SIGNED ) WHEN + 20 THEN + - 10 * - 26 + + - 69 END - - 45, 94 ) + - + 50
----
102

skipif mysql # not compatible
query I rowsort label-9566
SELECT 94 + + COALESCE ( 58, + + 96 - + - CASE + + CAST ( + 76 AS INTEGER ) WHEN + 20 THEN + - 10 * - 26 + + - 69 END - - 45, 94 ) + - + 50
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT DISTINCT COUNT( * ) + 5 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-9567
SELECT DISTINCT COUNT ( * ) + 5 AS col2
----
6

query I rowsort
SELECT DISTINCT + 43 + + - 14 - ( - + 98 ) + - 36 * - 95 AS col1
----
3547

onlyif mysql # aggregate syntax: 
query II rowsort label-9569
SELECT 52 AS col2, + SUM( DISTINCT - + 50 ) + COUNT( * ) + - 93
----
52
-142

skipif mysql # not compatible
query II rowsort label-9569
SELECT 52 AS col2, + SUM ( DISTINCT - + 50 ) + COUNT ( * ) + - 93
----
52
-142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9570
SELECT COUNT( * ) + - - 43 * CAST( NULL AS SIGNED ) * + + 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9570
SELECT COUNT ( * ) + - - 43 * CAST ( NULL AS INTEGER ) * + + 65 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT ALL + NULLIF ( 88, - COUNT( * ) ) + 23 AS col2
----
111

skipif mysql # not compatible
query I rowsort label-9571
SELECT ALL + NULLIF ( 88, - COUNT ( * ) ) + 23 AS col2
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT 98 * + COUNT( * ) + - 20 + + ( + SUM( DISTINCT ( 50 ) ) ) - 19 AS col0
----
109

skipif mysql # not compatible
query I rowsort label-9572
SELECT 98 * + COUNT ( * ) + - 20 + + ( + SUM ( DISTINCT ( 50 ) ) ) - 19 AS col0
----
109

query II rowsort
SELECT + 16, 91 AS col1
----
16
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT ALL - 24 * 5 + - + 27 + + + COUNT( * ) * + 45 - - 70 * + MIN( DISTINCT - - 48 ) + + 65
----
3323

skipif mysql # not compatible
query I rowsort label-9574
SELECT ALL - 24 * 5 + - + 27 + + + COUNT ( * ) * + 45 - - 70 * + MIN ( DISTINCT - - 48 ) + + 65
----
3323

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT MAX( - + 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-9575
SELECT MAX ( - + 48 )
----
-48

query I rowsort
SELECT ALL 9 * 32
----
288

query I rowsort
SELECT ALL 27 * 99 col0
----
2673

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT MAX( 79 )
----
79

skipif mysql # not compatible
query I rowsort label-9578
SELECT MAX ( 79 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT DISTINCT COUNT( * ) - - 67 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-9579
SELECT DISTINCT COUNT ( * ) - - 67 AS col0
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-9580
SELECT ALL - - ( ( COUNT( * ) ) ) AS col0, - 33 AS col0
----
1
-33

skipif mysql # not compatible
query II rowsort label-9580
SELECT ALL - - ( ( COUNT ( * ) ) ) AS col0, - 33 AS col0
----
1
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9581
SELECT 30 AS col0, + COUNT( * ) DIV - 87
----
30
0

skipif mysql # not compatible
query II rowsort label-9581
SELECT 30 AS col0, + COUNT ( * ) / - 87
----
30
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9582
SELECT + 18 + - - COUNT( DISTINCT + 70 ) - - ( - 31 ) + - 1 AS col2, + 97 AS col2
----
-13
97

skipif mysql # not compatible
query II rowsort label-9582
SELECT + 18 + - - COUNT ( DISTINCT + 70 ) - - ( - 31 ) + - 1 AS col2, + 97 AS col2
----
-13
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9583
SELECT ALL + ( + 42 ) * 3 + + CAST( NULL AS DECIMAL ) + - COALESCE ( 95, - 31 * - 8 + + 48 / + 8 ) + - - MAX( 28 ) * - - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-9583
SELECT ALL + ( + 42 ) * 3 + + CAST ( NULL AS REAL ) + - COALESCE ( 95, - 31 * - 8 + + 48 / + 8 ) + - - MAX ( 28 ) * - - 41
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9584
SELECT - CAST( - 28 AS SIGNED ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-9584
SELECT - CAST ( - 28 AS INTEGER ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT ALL - COUNT( + CASE + 9 WHEN + 48 THEN NULL WHEN - 56 + 88 * + 97 THEN NULL ELSE + 75 END ) - - ( - 47 ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-9585
SELECT ALL - COUNT ( + CASE + 9 WHEN + 48 THEN NULL WHEN - 56 + 88 * + 97 THEN NULL ELSE + 75 END ) - - ( - 47 ) AS col0
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-9586
SELECT ALL + COUNT( * ), + 89 + + 65 AS col0
----
1
154

skipif mysql # not compatible
query II rowsort label-9586
SELECT ALL + COUNT ( * ), + 89 + + 65 AS col0
----
1
154

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT ALL + - MIN( ALL 3 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-9587
SELECT ALL + - MIN ( ALL 3 ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT DISTINCT 37 * + COUNT( * ) * + 71 AS col1
----
2627

skipif mysql # not compatible
query I rowsort label-9588
SELECT DISTINCT 37 * + COUNT ( * ) * + 71 AS col1
----
2627

query I rowsort
SELECT ALL 42 * - 92
----
-3864

query I rowsort
SELECT DISTINCT + 47 * 79 + - 7 * + - 49
----
4056

query I rowsort
SELECT DISTINCT + CASE + AVG ( - ( - 11 ) ) WHEN + 28 + - 23 THEN NULL ELSE - 91 END
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-9592
SELECT DISTINCT + 79 AS col1, + 83 * - COUNT( * ) + 38
----
79
-45

skipif mysql # not compatible
query II rowsort label-9592
SELECT DISTINCT + 79 AS col1, + 83 * - COUNT ( * ) + 38
----
79
-45

query I rowsort
SELECT + 39 - NULLIF ( - 52, + + 89 ) AS col0
----
91

query II rowsort
SELECT - 84 AS col2, NULLIF ( 18, + - 11 ) AS col0
----
-84
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT - + 28 + - 40 + + 47 + - CASE + 84 WHEN ( + 51 ) * NULLIF ( + 47, + - 45 * - - 47 + + + 13 + + - 15 ) * + 80 + + 97 + + 60 * - 72 THEN NULL WHEN + + 62 + - COUNT( * ) * 0 THEN 51 END / + - 95 * + NULLIF ( COUNT( * ), + - COUNT( * ) / + 67 + + 25 + - + 5 * 28 * 15 / + 19 - + - COUNT( * ) * - - 9 ) / - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9595
SELECT - + 28 + - 40 + + 47 + - CASE + 84 WHEN ( + 51 ) * NULLIF ( + 47, + - 45 * - - 47 + + + 13 + + - 15 ) * + 80 + + 97 + + 60 * - 72 THEN NULL WHEN + + 62 + - COUNT ( * ) * 0 THEN 51 END / + - 95 * + NULLIF ( COUNT ( * ), + - COUNT ( * ) / + 67 + + 25 + - + 5 * 28 * 15 / + 19 - + - COUNT ( * ) * - - 9 ) / - COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9596
SELECT - NULLIF ( 95, - CAST( NULL AS SIGNED ) ), - 72 - 83 * 18 DIV + - 95 col1
----
-95
-57

skipif mysql # not compatible
query II rowsort label-9596
SELECT - NULLIF ( 95, - CAST ( NULL AS INTEGER ) ), - 72 - 83 * 18 / + - 95 col1
----
-95
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9597
SELECT - - 54 + + 67 DIV - - 11, - CASE - MAX( ALL CAST( 87 AS SIGNED ) ) WHEN + 26 - + - CAST( NULL AS SIGNED ) * - 55 THEN + - 1 WHEN + COALESCE ( + 42, - + 0 + + 21 + 68 * - 94 ) - 62 THEN - 2 * + 94 WHEN - - 58 THEN + 81 * - COALESCE ( CAST( - COUNT( * ) AS SIGNED ), - + 40 * + NULLIF ( CASE - + 33 WHEN - - COALESCE ( 22, + + MAX( + + 16 ) + + 14 ) THEN + + ( - - 9 ) END, - + ( + 95 ) ) ) * 53 + + COUNT( * ) * + 77 + - MAX( DISTINCT 72 ) * 15 ELSE NULL END - + 11 AS col1
----
60
NULL

skipif mysql # not compatible
query II rowsort label-9597
SELECT - - 54 + + 67 / - - 11, - CASE - MAX ( ALL CAST ( 87 AS INTEGER ) ) WHEN + 26 - + - CAST ( NULL AS INTEGER ) * - 55 THEN + - 1 WHEN + COALESCE ( + 42, - + 0 + + 21 + 68 * - 94 ) - 62 THEN - 2 * + 94 WHEN - - 58 THEN + 81 * - COALESCE ( CAST ( - COUNT ( * ) AS INTEGER ), - + 40 * + NULLIF ( CASE - + 33 WHEN - - COALESCE ( 22, + + MAX ( + + 16 ) + + 14 ) THEN + + ( - - 9 ) END, - + ( + 95 ) ) ) * 53 + + COUNT ( * ) * + 77 + - MAX ( DISTINCT 72 ) * 15 ELSE NULL END - + 11 AS col1
----
60
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9598
SELECT ALL - NULLIF ( - COUNT( * ), + 83 ) AS col2, 46
----
1
46

skipif mysql # not compatible
query II rowsort label-9598
SELECT ALL - NULLIF ( - COUNT ( * ), + 83 ) AS col2, 46
----
1
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9599
SELECT DISTINCT + 84 + CAST( - 25 AS SIGNED )
----
59

skipif mysql # not compatible
query I rowsort label-9599
SELECT DISTINCT + 84 + CAST ( - 25 AS INTEGER )
----
59

query I rowsort
SELECT ALL - ( - 31 ) + - 14 * - + 67
----
969

query I rowsort
SELECT - 75 + + 1 - + 17 AS col1
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9602
SELECT ALL - CASE - + 12 WHEN + CAST( - COUNT( DISTINCT 49 ) AS SIGNED ) + 72 THEN NULL ELSE 21 + + + 23 END + 42
----
-2

skipif mysql # not compatible
query I rowsort label-9602
SELECT ALL - CASE - + 12 WHEN + CAST ( - COUNT ( DISTINCT 49 ) AS INTEGER ) + 72 THEN NULL ELSE 21 + + + 23 END + 42
----
-2

query I rowsort
SELECT - 52 * - 52 AS col1
----
2704

query I rowsort
SELECT ALL 63 + - + 51 * - - 88 AS col0
----
-4425

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT ALL - 67 + 45 * - 50 * - 44 * + - 18 * COUNT( * ) AS col1
----
-1782067

skipif mysql # not compatible
query I rowsort label-9605
SELECT ALL - 67 + 45 * - 50 * - 44 * + - 18 * COUNT ( * ) AS col1
----
-1782067

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9606
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 38 + + 13 * + COUNT( * ) + - 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9606
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 38 + + 13 * + COUNT ( * ) + - 45 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9607
SELECT - MIN( - - ( + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9607
SELECT - MIN ( - - ( + CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9608
SELECT - 16 DIV + 61 * - + 63 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9608
SELECT - 16 / + 61 * - + 63 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT + COUNT( * ) + - MAX( ALL - - 3 )
----
-2

skipif mysql # not compatible
query I rowsort label-9609
SELECT + COUNT ( * ) + - MAX ( ALL - - 3 )
----
-2

query II rowsort
SELECT ALL ( + - 73 ) AS col2, - 53 * 91 AS col1
----
-73
-4823

query I rowsort
SELECT ALL + ( 67 ) col1
----
67

query II rowsort
SELECT ALL + ( 69 ) AS col0, ( 82 )
----
69
82

query I rowsort
SELECT + 62 * - 9 AS col2
----
-558

query I rowsort
SELECT ALL + 37 * + + 7 - + - 82 AS col2
----
341

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9615
SELECT DISTINCT + 77 / - SUM( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9615
SELECT DISTINCT + 77 / - SUM ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9616
SELECT + ( - 15 ) * - CASE COUNT( * ) WHEN ( CASE - 75 WHEN + 81 * + CASE - + 52 WHEN + + COUNT( * ) * + 51 * + ( 13 ) * - 91 / - 36 * + 37 THEN + + CASE 39 WHEN + + 10 * 6 + - + 88 THEN + - ( 46 ) END * 62 * + 15 + - + 17 + - - 42 WHEN - AVG ( - 37 ) / 45 THEN ( 72 ) + - 3 ELSE NULL END + + - CASE 59 WHEN + - ( - CAST( NULL AS SIGNED ) ) THEN NULL ELSE + 7 * ( - 21 * - 46 ) + - ( - 8 + - 87 * 69 ) END + 99 * + 33 * + 41 THEN - 17 END ) * + COUNT( * ) THEN - COUNT( * ) END * COALESCE ( - 20 + SUM( - 32 ) * 83, 85 / 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9616
SELECT + ( - 15 ) * - CASE COUNT ( * ) WHEN ( CASE - 75 WHEN + 81 * + CASE - + 52 WHEN + + COUNT ( * ) * + 51 * + ( 13 ) * - 91 / - 36 * + 37 THEN + + CASE 39 WHEN + + 10 * 6 + - + 88 THEN + - ( 46 ) END * 62 * + 15 + - + 17 + - - 42 WHEN - AVG ( - 37 ) / 45 THEN ( 72 ) + - 3 ELSE NULL END + + - CASE 59 WHEN + - ( - CAST ( NULL AS INTEGER ) ) THEN NULL ELSE + 7 * ( - 21 * - 46 ) + - ( - 8 + - 87 * 69 ) END + 99 * + 33 * + 41 THEN - 17 END ) * + COUNT ( * ) THEN - COUNT ( * ) END * COALESCE ( - 20 + SUM ( - 32 ) * 83, 85 / 19 )
----
NULL

query I rowsort
SELECT ALL 61 * + ( + - 59 )
----
-3599

query I rowsort
SELECT 56 * - 28 - + 69 - - 61 AS col0
----
-1576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9619
SELECT - + 81 + + - AVG ( ALL ( - 84 ) ) * + MAX( + 55 ) * - + CASE + COUNT( ALL + ( + - 73 ) ) WHEN - COUNT( * ) THEN NULL WHEN + 78 * 64 / - + 22 THEN - 48 / 70 END * 4 + + - COUNT( * ) + - CAST( NULL AS SIGNED ) * - 42 * - + 13 / - 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9619
SELECT - + 81 + + - AVG ( ALL ( - 84 ) ) * + MAX ( + 55 ) * - + CASE + COUNT ( ALL + ( + - 73 ) ) WHEN - COUNT ( * ) THEN NULL WHEN + 78 * 64 / - + 22 THEN - 48 / 70 END * 4 + + - COUNT ( * ) + - CAST ( NULL AS INTEGER ) * - 42 * - + 13 / - 11 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT + NULLIF ( 92, - COUNT( * ) / + + 96 + 96 ) col1
----
92

skipif mysql # not compatible
query I rowsort label-9620
SELECT + NULLIF ( 92, - COUNT ( * ) / + + 96 + 96 ) col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT + COUNT( * ) * - 37 * - 99
----
3663

skipif mysql # not compatible
query I rowsort label-9621
SELECT + COUNT ( * ) * - 37 * - 99
----
3663

query I rowsort
SELECT DISTINCT + 68 * 13 AS col2
----
884

query I rowsort
SELECT + 71 * + - 25 - + - 52
----
-1723

query I rowsort
SELECT ALL 38 * - + 53 + 67
----
-1947

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT - SUM( + - 76 )
----
76

skipif mysql # not compatible
query I rowsort label-9625
SELECT - SUM ( + - 76 )
----
76

query I rowsort
SELECT + - 63 * + - 92
----
5796

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9627
SELECT - COALESCE ( + 82, + SUM( + 22 ) + - ( 69 ) * + 18 ) * CAST( - + COUNT( * ) AS SIGNED ) * + 94 + - + SUM( + + 32 ) AS col2
----
7676

skipif mysql # not compatible
query I rowsort label-9627
SELECT - COALESCE ( + 82, + SUM ( + 22 ) + - ( 69 ) * + 18 ) * CAST ( - + COUNT ( * ) AS INTEGER ) * + 94 + - + SUM ( + + 32 ) AS col2
----
7676

query I rowsort
SELECT ALL ( - 90 ) AS col0
----
-90

query II rowsort
SELECT DISTINCT + - 60 * - 33 + - + 25 + - 22, + 41 AS col0
----
1933
41

query II rowsort
SELECT ( + 74 ) AS col2, + 7 AS col2
----
74
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT ALL + - 62 + - - 6 + + 47 * 72 * - COUNT( * ) AS col0
----
-3440

skipif mysql # not compatible
query I rowsort label-9631
SELECT ALL + - 62 + - - 6 + + 47 * 72 * - COUNT ( * ) AS col0
----
-3440

query I rowsort
SELECT DISTINCT + 91 + + + ( 70 )
----
161

query I rowsort
SELECT DISTINCT + 80 + - + 21 AS col2
----
59

query I rowsort
SELECT ALL ( + 70 ) * - 47 AS col0
----
-3290

onlyif mysql # aggregate syntax: 
query II rowsort label-9635
SELECT DISTINCT MIN( DISTINCT - 41 ) * + + 75 col1, 6 AS col2
----
-3075
6

skipif mysql # not compatible
query II rowsort label-9635
SELECT DISTINCT MIN ( DISTINCT - 41 ) * + + 75 col1, 6 AS col2
----
-3075
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9636
SELECT ALL 58 + - 43 DIV + + 48 * 19 + + 42
----
100

skipif mysql # not compatible
query I rowsort label-9636
SELECT ALL 58 + - 43 / + + 48 * 19 + + 42
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT ALL SUM( + 46 )
----
46

skipif mysql # not compatible
query I rowsort label-9637
SELECT ALL SUM ( + 46 )
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9638
SELECT + 40 + 64 + - 54 DIV + + COUNT( + 35 ) - - + 79 * + 4
----
366

skipif mysql # not compatible
query I rowsort label-9638
SELECT + 40 + 64 + - 54 / + + COUNT ( + 35 ) - - + 79 * + 4
----
366

query II rowsort
SELECT + 16 + - 87 + 7 AS col2, - 10 AS col2
----
-64
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-9640
SELECT - 22 DIV - - 42 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9640
SELECT - 22 / - - 42 AS col1
----
0

query I rowsort
SELECT ALL - 62 - 65
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT + 92 + - - 96 + - 55 * CASE + 66 WHEN + 50 * - 43 + - 98 THEN + - 64 - + 81 WHEN - + 28 + + 33 THEN + - 55 * - 27 * + ( + - 26 ) + - + 4 ELSE NULL END + + - 4 - - ( - ( + MAX( DISTINCT - 98 ) ) ) * - + 37 * SUM( DISTINCT - 90 ) / 27
----
NULL

skipif mysql # not compatible
query I rowsort label-9642
SELECT + 92 + - - 96 + - 55 * CASE + 66 WHEN + 50 * - 43 + - 98 THEN + - 64 - + 81 WHEN - + 28 + + 33 THEN + - 55 * - 27 * + ( + - 26 ) + - + 4 ELSE NULL END + + - 4 - - ( - ( + MAX ( DISTINCT - 98 ) ) ) * - + 37 * SUM ( DISTINCT - 90 ) / 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT - SUM( ALL + + 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-9643
SELECT - SUM ( ALL + + 81 )
----
-81

query I rowsort
SELECT DISTINCT 57 - 51 * + 99
----
-4992

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT DISTINCT SUM( - 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-9645
SELECT DISTINCT SUM ( - 57 )
----
-57

query I rowsort
SELECT ALL + 63 * - - 24 col0
----
1512

onlyif mysql # DIV for integer division: 
query I rowsort label-9647
SELECT 0 DIV + 26 * - 91 * + - 75 + 72 - + 49 + 60
----
83

skipif mysql # not compatible
query I rowsort label-9647
SELECT 0 / + 26 * - 91 * + - 75 + 72 - + 49 + 60
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT ALL + 73 * + - COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-9648
SELECT ALL + 73 * + - COUNT ( * )
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9649
SELECT - CAST( NULL AS SIGNED ) * - 33 / - 30 * + - MAX( DISTINCT 61 ) / - - 34, 0 - - 77 AS col2
----
NULL
77

skipif mysql # not compatible
query II rowsort label-9649
SELECT - CAST ( NULL AS INTEGER ) * - 33 / - 30 * + - MAX ( DISTINCT 61 ) / - - 34, 0 - - 77 AS col2
----
NULL
77

onlyif mysql # aggregate syntax: 
query II rowsort label-9650
SELECT ALL + 64 * - ( 88 ) AS col1, COUNT( * )
----
-5632
1

skipif mysql # not compatible
query II rowsort label-9650
SELECT ALL + 64 * - ( 88 ) AS col1, COUNT ( * )
----
-5632
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT 73 * + 74 + - COUNT( * ) + CASE CASE + COUNT( * ) WHEN + + SUM( 22 ) * + - ( - 16 ) THEN NULLIF ( + - 21, - 26 ) * + + 84 + 38 / - 67 + - 57 END WHEN - CASE + 70 WHEN - + 90 + - 99 THEN 71 * - - ( 94 ) WHEN + 31 THEN NULL END * 11 + + NULLIF ( 0, 57 - + - COALESCE ( 20, - - 42 + + 69 ) + - + 97 * - 0 * + - 90 + - COUNT( * ) ) - + SUM( 47 ) THEN - + 46 ELSE - ( + 71 ) * 22 END + + 4 * + 64 * + 27 col2
----
10751

skipif mysql # not compatible
query I rowsort label-9651
SELECT 73 * + 74 + - COUNT ( * ) + CASE CASE + COUNT ( * ) WHEN + + SUM ( 22 ) * + - ( - 16 ) THEN NULLIF ( + - 21, - 26 ) * + + 84 + 38 / - 67 + - 57 END WHEN - CASE + 70 WHEN - + 90 + - 99 THEN 71 * - - ( 94 ) WHEN + 31 THEN NULL END * 11 + + NULLIF ( 0, 57 - + - COALESCE ( 20, - - 42 + + 69 ) + - + 97 * - 0 * + - 90 + - COUNT ( * ) ) - + SUM ( 47 ) THEN - + 46 ELSE - ( + 71 ) * 22 END + + 4 * + 64 * + 27 col2
----
10751

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9652
SELECT + ( + 78 ) + - CASE + 22 WHEN - 13 THEN NULL WHEN + 59 + + - 28 + 3 - - COALESCE ( + + MIN( DISTINCT - + 34 ), + NULLIF ( 73, + 51 ) ) * + 28 * + 41 + + COUNT( * ) THEN 20 * + 17 - - 84 WHEN + - AVG ( DISTINCT + CAST( 60 AS SIGNED ) ) * 97 THEN - 98 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9652
SELECT + ( + 78 ) + - CASE + 22 WHEN - 13 THEN NULL WHEN + 59 + + - 28 + 3 - - COALESCE ( + + MIN ( DISTINCT - + 34 ), + NULLIF ( 73, + 51 ) ) * + 28 * + 41 + + COUNT ( * ) THEN 20 * + 17 - - 84 WHEN + - AVG ( DISTINCT + CAST ( 60 AS INTEGER ) ) * 97 THEN - 98 ELSE NULL END col2
----
NULL

query II rowsort
SELECT - 89 AS col2, 82 * - - 66 + + 21 AS col0
----
-89
5433

query I rowsort
SELECT 88 * 50
----
4400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9655
SELECT DISTINCT - + CAST( - 37 AS SIGNED )
----
37

skipif mysql # not compatible
query I rowsort label-9655
SELECT DISTINCT - + CAST ( - 37 AS INTEGER )
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9656
SELECT - 41 + MIN( DISTINCT + 1 ) + ( 96 ) DIV - - 82 - - - COUNT( * ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-9656
SELECT - 41 + MIN ( DISTINCT + 1 ) + ( 96 ) / - - 82 - - - COUNT ( * ) AS col2
----
-40

query I rowsort
SELECT ALL - + 98 + 87 AS col0
----
-11

query I rowsort
SELECT ALL + 89 + - 52 + 40
----
77

query I rowsort
SELECT + - 43 * 84 + - 11 + 16 - - - ( 51 ) AS col2
----
-3658

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT + MAX( ALL - 30 ) col0
----
-30

skipif mysql # not compatible
query I rowsort label-9660
SELECT + MAX ( ALL - 30 ) col0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9661
SELECT ALL ( + 62 ) * - + ( - 26 ) * + + CAST( NULL AS SIGNED ), 94 AS col1
----
NULL
94

skipif mysql # not compatible
query II rowsort label-9661
SELECT ALL ( + 62 ) * - + ( - 26 ) * + + CAST ( NULL AS INTEGER ), 94 AS col1
----
NULL
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9662
SELECT 64 / + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9662
SELECT 64 / + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT - 90 + 49 + - - COUNT( * ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-9663
SELECT - 90 + 49 + - - COUNT ( * ) AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT ALL + COUNT( * ) + - SUM( 50 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-9664
SELECT ALL + COUNT ( * ) + - SUM ( 50 ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT DISTINCT + - 94 * 91 + - + 68 + + CASE + + 38 WHEN - COUNT( * ) * + 48 THEN NULL WHEN 2 THEN 65 ELSE - + 72 END
----
-8694

skipif mysql # not compatible
query I rowsort label-9665
SELECT DISTINCT + - 94 * 91 + - + 68 + + CASE + + 38 WHEN - COUNT ( * ) * + 48 THEN NULL WHEN 2 THEN 65 ELSE - + 72 END
----
-8694

query I rowsort
SELECT ALL - 32 + 63 col2
----
31

query I rowsort
SELECT 44 + + 53
----
97

query I rowsort
SELECT DISTINCT - 21 + + 98 AS col0
----
77

query I rowsort
SELECT DISTINCT 5 + 61 + + + 23 AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT ALL SUM( ALL + - 51 ) + + 85 col2
----
34

skipif mysql # not compatible
query I rowsort label-9670
SELECT ALL SUM ( ALL + - 51 ) + + 85 col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT 9 * COUNT( * ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-9671
SELECT 9 * COUNT ( * ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-9672
SELECT 45 + NULLIF ( - SUM( + + 92 ), - AVG ( DISTINCT + + 18 ) ), 90 * + 56 AS col0
----
-47
5040

skipif mysql # not compatible
query II rowsort label-9672
SELECT 45 + NULLIF ( - SUM ( + + 92 ), - AVG ( DISTINCT + + 18 ) ), 90 * + 56 AS col0
----
-47
5040

onlyif mysql # aggregate syntax: 
query II rowsort label-9673
SELECT ALL 54 AS col0, - 25 * 9 + + 74 * + COUNT( ALL 50 ) * + 83
----
54
5917

skipif mysql # not compatible
query II rowsort label-9673
SELECT ALL 54 AS col0, - 25 * 9 + + 74 * + COUNT ( ALL 50 ) * + 83
----
54
5917

query I rowsort
SELECT 58 * - + 21
----
-1218

query I rowsort
SELECT ALL 87 * - NULLIF ( - 51, - 57 * - - 54 ) * 85 AS col1
----
377145

query I rowsort
SELECT 64 + - 17
----
47

query I rowsort
SELECT ALL 4 * + ( + 28 ) AS col2
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT 35 * 58 * - + MAX( DISTINCT - 32 ) AS col1
----
64960

skipif mysql # not compatible
query I rowsort label-9678
SELECT 35 * 58 * - + MAX ( DISTINCT - 32 ) AS col1
----
64960

query II rowsort
SELECT - 64, + 65 * + ( 22 ) col0
----
-64
1430

query II rowsort
SELECT ALL 68 AS col2, + NULLIF ( - + 3, 9 ) AS col0
----
68
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-9681
SELECT ALL 75, - 13 * - 18 + - + COALESCE ( + 99, - 81 * - 46 DIV + + 54, - 30 ) AS col0
----
75
135

skipif mysql # not compatible
query II rowsort label-9681
SELECT ALL 75, - 13 * - 18 + - + COALESCE ( + 99, - 81 * - 46 / + + 54, - 30 ) AS col0
----
75
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9682
SELECT 98 AS col1, - CASE - + 60 WHEN 66 * - 19 - SUM( + 41 ) THEN - 61 * 57 DIV + 61 + - 21 - - - 55 ELSE 95 END
----
98
-95

skipif mysql # not compatible
query II rowsort label-9682
SELECT 98 AS col1, - CASE - + 60 WHEN 66 * - 19 - SUM ( + 41 ) THEN - 61 * 57 / + 61 + - 21 - - - 55 ELSE 95 END
----
98
-95

query I rowsort
SELECT 70 * - - 72
----
5040

query I rowsort
SELECT 73 * 98 AS col0
----
7154

query I rowsort
SELECT 83 * - + ( - 22 ) AS col1
----
1826

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9686
SELECT CAST( - + 19 AS SIGNED ) * - ( COUNT( * ) ) * - - COALESCE ( + 26, - 91 * 12 ) + - + 93
----
401

skipif mysql # not compatible
query I rowsort label-9686
SELECT CAST ( - + 19 AS INTEGER ) * - ( COUNT ( * ) ) * - - COALESCE ( + 26, - 91 * 12 ) + - + 93
----
401

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT SUM( ALL - - 10 ) * - COUNT( * ) * + 61 * + 46 AS col2
----
-28060

skipif mysql # not compatible
query I rowsort label-9687
SELECT SUM ( ALL - - 10 ) * - COUNT ( * ) * + 61 * + 46 AS col2
----
-28060

query I rowsort
SELECT 98 * - + 83 AS col0
----
-8134

onlyif mysql # DIV for integer division: 
query I rowsort label-9689
SELECT ALL - - 75 DIV - 22
----
-3

skipif mysql # not compatible
query I rowsort label-9689
SELECT ALL - - 75 / - 22
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT + COUNT( ALL 5 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9690
SELECT + COUNT ( ALL 5 ) AS col1
----
1

query II rowsort
SELECT ALL - 31 AS col1, + 24 * + 7 + + 61 AS col2
----
-31
229

query I rowsort
SELECT DISTINCT 90 + + 28 + 12
----
130

query II rowsort
SELECT ALL - + 64 col2, 91
----
-64
91

query I rowsort
SELECT DISTINCT + 76 + + 21
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT ALL - + 96 + - + COUNT( * ) - - 26 + - 44
----
-115

skipif mysql # not compatible
query I rowsort label-9695
SELECT ALL - + 96 + - + COUNT ( * ) - - 26 + - 44
----
-115

query I rowsort
SELECT + + 54 * + - 72 + - 28 AS col2
----
-3916

query II rowsort
SELECT ALL - - 31, - 29 * + 64 AS col0
----
31
-1856

query II rowsort
SELECT + 52 AS col2, 92 * - 20 + 45
----
52
-1795

query I rowsort
SELECT - 5 + + 59 - - 8
----
62

query I rowsort
SELECT DISTINCT - 36 + - 67 * 98 + - - 15 + - + 7 AS col0
----
-6594

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT ALL + 77 + - MIN( ALL - - ( - 18 ) ) + - + 80 + + 20
----
35

skipif mysql # not compatible
query I rowsort label-9701
SELECT ALL + 77 + - MIN ( ALL - - ( - 18 ) ) + - + 80 + + 20
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-9702
SELECT ALL - 86 DIV - 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9702
SELECT ALL - 86 / - 95 AS col2
----
0

query II rowsort
SELECT 3, - 81 * + 86 AS col2
----
3
-6966

query II rowsort
SELECT DISTINCT - 75 + - 38 AS col2, - 27
----
-113
-27

query II rowsort
SELECT + + 5 AS col2, ( + 65 )
----
5
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT ALL - 42 - + - NULLIF ( ( - MAX( ALL + ( - NULLIF ( + 99, - ( + 11 ) ) ) ) ), 22 ) col1
----
57

skipif mysql # not compatible
query I rowsort label-9706
SELECT ALL - 42 - + - NULLIF ( ( - MAX ( ALL + ( - NULLIF ( + 99, - ( + 11 ) ) ) ) ), 22 ) col1
----
57

query I rowsort
SELECT 7 * 94 AS col1
----
658

query I rowsort
SELECT 51 * - 94 AS col2
----
-4794

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9709
SELECT ALL COUNT( - + ( CAST( NULL AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-9709
SELECT ALL COUNT ( - + ( CAST ( NULL AS INTEGER ) ) )
----
0

query I rowsort
SELECT 29 * - - 34 AS col1
----
986

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9711
SELECT - SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9711
SELECT - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT ALL - COALESCE ( - 34, 20 ) * - 10 + + MAX( ALL 21 )
----
-319

skipif mysql # not compatible
query I rowsort label-9712
SELECT ALL - COALESCE ( - 34, 20 ) * - 10 + + MAX ( ALL 21 )
----
-319

onlyif mysql # aggregate syntax: 
query I rowsort label-9713
SELECT ALL COUNT( ALL 74 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9713
SELECT ALL COUNT ( ALL 74 ) AS col0
----
1

query II rowsort
SELECT DISTINCT - 90 * - 73 AS col0, + 79 AS col2
----
6570
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT COUNT( * ) + 87 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-9715
SELECT COUNT ( * ) + 87 AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT ( - + COUNT( * ) ) - 54 + COUNT( * ) + - ( 41 ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-9716
SELECT ( - + COUNT ( * ) ) - 54 + COUNT ( * ) + - ( 41 ) AS col1
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9717
SELECT ALL SUM( ALL - CASE - - 78 WHEN + 5 * + 22 THEN NULL ELSE 67 * 80 END ) + - MIN( - + ( 35 ) ) - - - SUM( 64 ) * - - MIN( + 46 ) DIV COUNT( * ) AS col2
----
-8269

skipif mysql # not compatible
query I rowsort label-9717
SELECT ALL SUM ( ALL - CASE - - 78 WHEN + 5 * + 22 THEN NULL ELSE 67 * 80 END ) + - MIN ( - + ( 35 ) ) - - - SUM ( 64 ) * - - MIN ( + 46 ) / COUNT ( * ) AS col2
----
-8269

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT ALL 61 + - + NULLIF ( 55, 96 * 91 + - MIN( ALL + 94 ) ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-9718
SELECT ALL 61 + - + NULLIF ( 55, 96 * 91 + - MIN ( ALL + 94 ) ) AS col1
----
6

query I rowsort
SELECT + - 2 + - 21
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-9720
SELECT ALL ( + 37 ), + ( - + COUNT( * ) ) AS col1
----
37
-1

skipif mysql # not compatible
query II rowsort label-9720
SELECT ALL ( + 37 ), + ( - + COUNT ( * ) ) AS col1
----
37
-1

query I rowsort
SELECT ALL - 33 + - 77 * 0 AS col1
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9722
SELECT ALL CAST( + 77 AS SIGNED ) AS col1, 33
----
77
33

skipif mysql # not compatible
query II rowsort label-9722
SELECT ALL CAST ( + 77 AS INTEGER ) AS col1, 33
----
77
33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9723
SELECT + 23 + + MAX( - 22 ) * - ( + CASE 86 WHEN - - 15 * + 82 + - 36 THEN - 65 WHEN - 87 * - COUNT( * ) * - 2 THEN + 7 END ) * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9723
SELECT + 23 + + MAX ( - 22 ) * - ( + CASE 86 WHEN - - 15 * + 82 + - 36 THEN - 65 WHEN - 87 * - COUNT ( * ) * - 2 THEN + 7 END ) * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 62 * 46
----
2852

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9725
SELECT + 36 + - CAST( - 74 AS SIGNED ) + - - 53 - - + 14 * 21 + + 88 * + - 98 * - 89
----
767993

skipif mysql # not compatible
query I rowsort label-9725
SELECT + 36 + - CAST ( - 74 AS INTEGER ) + - - 53 - - + 14 * 21 + + 88 * + - 98 * - 89
----
767993

onlyif mysql # DIV for integer division: 
query I rowsort label-9726
SELECT + 52 DIV 12 * + ( + 8 ) * + + 98 + + 78
----
3214

skipif mysql # not compatible
query I rowsort label-9726
SELECT + 52 / 12 * + ( + 8 ) * + + 98 + + 78
----
3214

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9727
SELECT + 89 DIV + COUNT( - + 34 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-9727
SELECT + 89 / + COUNT ( - + 34 ) AS col0
----
89

query I rowsort
SELECT - - 87 + + 18 AS col0
----
105

query I rowsort
SELECT DISTINCT + 48 * - 17 * + - 41 * - - 97
----
3245232

query I rowsort
SELECT + + 26 + + 45 AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT ALL - + MIN( DISTINCT - 48 ) * - 50 * + 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9731
SELECT ALL - + MIN ( DISTINCT - 48 ) * - 50 * + 0 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9732
SELECT 51 * + - 71 + CAST( - 0 AS SIGNED ) + - ( 22 )
----
-3643

skipif mysql # not compatible
query I rowsort label-9732
SELECT 51 * + - 71 + CAST ( - 0 AS INTEGER ) + - ( 22 )
----
-3643

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT ALL - COUNT( * ) * - 2 + + 23 - 71
----
-46

skipif mysql # not compatible
query I rowsort label-9733
SELECT ALL - COUNT ( * ) * - 2 + + 23 - 71
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9734
SELECT ALL - ( - + 89 ) * + 18 * + 71 - - CAST( + COUNT( 67 ) AS SIGNED )
----
113743

skipif mysql # not compatible
query I rowsort label-9734
SELECT ALL - ( - + 89 ) * + 18 * + 71 - - CAST ( + COUNT ( 67 ) AS INTEGER )
----
113743

query I rowsort
SELECT DISTINCT - - 26 * - 29 * - + 91
----
68614

query I rowsort
SELECT - 55 * 35 + - - 88
----
-1837

query I rowsort
SELECT + 5 * + + 78 + - 2 AS col2
----
388

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9738
SELECT - COUNT( ALL - 71 ) * + - 98 + - + 36 + + ( 7 ) + 88 * + MIN( ( - CAST( NULL AS SIGNED ) ) ) - + CASE 77 WHEN - + 92 * - - 56 THEN 79 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9738
SELECT - COUNT ( ALL - 71 ) * + - 98 + - + 36 + + ( 7 ) + 88 * + MIN ( ( - CAST ( NULL AS INTEGER ) ) ) - + CASE 77 WHEN - + 92 * - - 56 THEN 79 END col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9739
SELECT ALL - - MIN( 99 ) * 61 + - NULLIF ( + 93, + 28 ) * + MAX( DISTINCT + - 68 ) + - + 27 DIV 81 AS col2
----
12363

skipif mysql # not compatible
query I rowsort label-9739
SELECT ALL - - MIN ( 99 ) * 61 + - NULLIF ( + 93, + 28 ) * + MAX ( DISTINCT + - 68 ) + - + 27 / 81 AS col2
----
12363

query I rowsort
SELECT + 17 + + 73
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9741
SELECT ALL + CAST( NULL AS SIGNED ), SUM( DISTINCT + 94 ) + + COUNT( * ) AS col2
----
NULL
95

skipif mysql # not compatible
query II rowsort label-9741
SELECT ALL + CAST ( NULL AS INTEGER ), SUM ( DISTINCT + 94 ) + + COUNT ( * ) AS col2
----
NULL
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9742
SELECT - 69 * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9742
SELECT - 69 * CAST ( NULL AS INTEGER ) col0
----
NULL

query II rowsort
SELECT ALL ( - COALESCE ( + + 88, + 34 ) ) AS col1, ( + - 17 ) * - 56 - + - 15 * - - 63
----
-88
1897

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9744
SELECT DISTINCT + 22 DIV + COUNT( DISTINCT - 61 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-9744
SELECT DISTINCT + 22 / + COUNT ( DISTINCT - 61 ) AS col0
----
22

query I rowsort
SELECT ALL CASE - + 67 WHEN + 26 * + 26 THEN 50 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT - COUNT( * ) + 96 + - 66 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-9746
SELECT - COUNT ( * ) + 96 + - 66 AS col0
----
29

query I rowsort
SELECT DISTINCT NULLIF ( + 84, - 8 )
----
84

query I rowsort
SELECT ALL ( + + 31 ) AS col2
----
31

query I rowsort
SELECT ALL + 14 * - 15 AS col0
----
-210

query I rowsort
SELECT + ( ( 95 ) ) + 21 AS col0
----
116

onlyif mysql # aggregate syntax: 
query II rowsort label-9751
SELECT - 79 * + 43 * - 41, COUNT( - 26 ) * - 84 col0
----
139277
-84

skipif mysql # not compatible
query II rowsort label-9751
SELECT - 79 * + 43 * - 41, COUNT ( - 26 ) * - 84 col0
----
139277
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT - SUM( DISTINCT - NULLIF ( - 10, - 81 ) )
----
-10

skipif mysql # not compatible
query I rowsort label-9752
SELECT - SUM ( DISTINCT - NULLIF ( - 10, - 81 ) )
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9753
SELECT ALL + 14 + CAST( + COUNT( * ) AS SIGNED ) * + 50 * + 90 + - + 2 AS col1
----
4512

skipif mysql # not compatible
query I rowsort label-9753
SELECT ALL + 14 + CAST ( + COUNT ( * ) AS INTEGER ) * + 50 * + 90 + - + 2 AS col1
----
4512

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9754
SELECT DISTINCT - 60 + + NULLIF ( 84, + 9 + + - CAST( + - CAST( + 42 AS SIGNED ) AS DECIMAL ) ) * - NULLIF ( + ( - 76 ), - 55 ) AS col0, - 69
----
6324
-69

skipif mysql # not compatible
query II rowsort label-9754
SELECT DISTINCT - 60 + + NULLIF ( 84, + 9 + + - CAST ( + - CAST ( + 42 AS INTEGER ) AS REAL ) ) * - NULLIF ( + ( - 76 ), - 55 ) AS col0, - 69
----
6324
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT ALL 43 + + - COUNT( * ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-9755
SELECT ALL 43 + + - COUNT ( * ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT + COUNT( * ) * - + CASE - 98 WHEN + + ( 4 ) + + + 48 + - CASE + 82 WHEN 20 THEN - - 91 END + - 8 / + 43 THEN 79 + + COUNT( * ) * MIN( ALL - 57 ) + - 11 ELSE NULL END * - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-9756
SELECT + COUNT ( * ) * - + CASE - 98 WHEN + + ( 4 ) + + + 48 + - CASE + 82 WHEN 20 THEN - - 91 END + - 8 / + 43 THEN 79 + + COUNT ( * ) * MIN ( ALL - 57 ) + - 11 ELSE NULL END * - 80
----
NULL

query I rowsort
SELECT ALL - 42 + + - 19
----
-61

query II rowsort
SELECT DISTINCT 35 col1, + 85 AS col2
----
35
85

query II rowsort
SELECT - 58 AS col0, - 68 AS col0
----
-58
-68

query I rowsort
SELECT - + 71 - 95 AS col0
----
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT DISTINCT ( + ( - + COALESCE ( - - 72, - + ( - 41 ) + + MAX( + 54 ) * - 8 ) ) ) col0
----
-72

skipif mysql # not compatible
query I rowsort label-9761
SELECT DISTINCT ( + ( - + COALESCE ( - - 72, - + ( - 41 ) + + MAX ( + 54 ) * - 8 ) ) ) col0
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-9762
SELECT - - ( + 16 ) * + 68 + - 52 DIV + 92
----
1088

skipif mysql # not compatible
query I rowsort label-9762
SELECT - - ( + 16 ) * + 68 + - 52 / + 92
----
1088

query I rowsort
SELECT + - 91 * - 46 * 48
----
200928

query I rowsort
SELECT DISTINCT 8 + + 66 * - - 44 AS col2
----
2912

query I rowsort
SELECT ALL - 10 + 29 + + 11 * + - 12 * + 12
----
-1565

onlyif mysql # DIV for integer division: 
query I rowsort label-9766
SELECT ALL + 16 DIV 16 + + - 97 - - 7 - - 31
----
-58

skipif mysql # not compatible
query I rowsort label-9766
SELECT ALL + 16 / 16 + + - 97 - - 7 - - 31
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT + 96 * + NULLIF ( - - 54, - SUM( DISTINCT - + 15 ) ) col0
----
5184

skipif mysql # not compatible
query I rowsort label-9767
SELECT + 96 * + NULLIF ( - - 54, - SUM ( DISTINCT - + 15 ) ) col0
----
5184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9768
SELECT DISTINCT 35 * - CAST( - + MAX( DISTINCT 55 ) AS SIGNED ) * + 19 * - 22
----
-804650

skipif mysql # not compatible
query I rowsort label-9768
SELECT DISTINCT 35 * - CAST ( - + MAX ( DISTINCT 55 ) AS INTEGER ) * + 19 * - 22
----
-804650

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT ALL + - COUNT( ALL + - 63 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9769
SELECT ALL + - COUNT ( ALL + - 63 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT + + 64 * ( + - COUNT( * ) ) + + 51 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-9770
SELECT + + 64 * ( + - COUNT ( * ) ) + + 51 AS col0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9771
SELECT ALL + NULLIF ( - - 45, - COALESCE ( - - 26, CAST( - - 96 AS DECIMAL ), 8 * ( + COUNT( ALL 86 ) ) ) )
----
45

skipif mysql # not compatible
query I rowsort label-9771
SELECT ALL + NULLIF ( - - 45, - COALESCE ( - - 26, CAST ( - - 96 AS REAL ), 8 * ( + COUNT ( ALL 86 ) ) ) )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT SUM( DISTINCT - + 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-9772
SELECT SUM ( DISTINCT - + 58 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT + + 14 / ( - CASE ( 43 ) WHEN 81 THEN + 54 END ) * 74 + - + 76 + - + 55 * 29 + ( + - 93 ) + 66 - + 23 + - COUNT( * ) * - 74 + + - MIN( 42 ) * + 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9773
SELECT + + 14 / ( - CASE ( 43 ) WHEN 81 THEN + 54 END ) * 74 + - + 76 + - + 55 * 29 + ( + - 93 ) + 66 - + 23 + - COUNT ( * ) * - 74 + + - MIN ( 42 ) * + 6 AS col1
----
NULL

query I rowsort
SELECT + 99 * - 54 * - + 29 * + 12 AS col0
----
1860408

query I rowsort
SELECT + - 45 + + - 75
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT + - SUM( + 46 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-9776
SELECT + - SUM ( + 46 ) AS col2
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-9777
SELECT ALL 64 DIV + 80 * - + 92
----
0

skipif mysql # not compatible
query I rowsort label-9777
SELECT ALL 64 / + 80 * - + 92
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9778
SELECT + COUNT( 68 ) DIV - NULLIF ( + + CAST( + 45 AS SIGNED ), + ( 84 ) - 55 ) - + 89 AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-9778
SELECT + COUNT ( 68 ) / - NULLIF ( + + CAST ( + 45 AS INTEGER ), + ( 84 ) - 55 ) - + 89 AS col1
----
-89

query II rowsort
SELECT ALL + 8 * 30, 76 AS col2
----
240
76

query I rowsort
SELECT 17 * - ( - 26 ) + COALESCE ( + 74, + - 68 * + ( - + 48 ) + 71, + - 67 )
----
516

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT ALL + 45 * COUNT( * ) * 9 AS col0
----
405

skipif mysql # not compatible
query I rowsort label-9781
SELECT ALL + 45 * COUNT ( * ) * 9 AS col0
----
405

query I rowsort
SELECT - 22 + 14 AS col0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9783
SELECT + CAST( 39 AS SIGNED )
----
39

skipif mysql # not compatible
query I rowsort label-9783
SELECT + CAST ( 39 AS INTEGER )
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-9784
SELECT - COALESCE ( - MAX( DISTINCT + - 72 ), + 88 ) * + COUNT( * ) AS col0, - 0 AS col1
----
-72
0

skipif mysql # not compatible
query II rowsort label-9784
SELECT - COALESCE ( - MAX ( DISTINCT + - 72 ), + 88 ) * + COUNT ( * ) AS col0, - 0 AS col1
----
-72
0

query I rowsort
SELECT ALL 81 * - 40 + - 49 col1
----
-3289

query I rowsort
SELECT + 27 * 9
----
243

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9787
SELECT COALESCE ( - COUNT( * ), + 42 * COUNT( - 74 ) + + + 39 * + CAST( NULL AS SIGNED ) * + ( - - 33 ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-9787
SELECT COALESCE ( - COUNT ( * ), + 42 * COUNT ( - 74 ) + + + 39 * + CAST ( NULL AS INTEGER ) * + ( - - 33 ) ) col1
----
-1

query I rowsort
SELECT NULLIF ( 92, + 58 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT DISTINCT + 27 + - COUNT( + 27 ) * + 42 + - 92 * 60 + - COUNT( DISTINCT + 61 ) AS col1
----
-5536

skipif mysql # not compatible
query I rowsort label-9789
SELECT DISTINCT + 27 + - COUNT ( + 27 ) * + 42 + - 92 * 60 + - COUNT ( DISTINCT + 61 ) AS col1
----
-5536

onlyif mysql # aggregate syntax: 
query I rowsort label-9790
SELECT ALL - COUNT( * ) + + 58 + + 20 + COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-9790
SELECT ALL - COUNT ( * ) + + 58 + + 20 + COUNT ( * )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT ALL + COUNT( DISTINCT - 78 ) + - 80 + - 90 AS col2
----
-169

skipif mysql # not compatible
query I rowsort label-9791
SELECT ALL + COUNT ( DISTINCT - 78 ) + - 80 + - 90 AS col2
----
-169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9792
SELECT CAST( + 52 AS SIGNED ) + + ( + 13 )
----
65

skipif mysql # not compatible
query I rowsort label-9792
SELECT CAST ( + 52 AS INTEGER ) + + ( + 13 )
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9793
SELECT 8 - - - CAST( - 51 AS SIGNED ) + + + CASE + 42 WHEN + 8 * + - 69 THEN NULL ELSE 18 END AS col0
----
77

skipif mysql # not compatible
query I rowsort label-9793
SELECT 8 - - - CAST ( - 51 AS INTEGER ) + + + CASE + 42 WHEN + 8 * + - 69 THEN NULL ELSE 18 END AS col0
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-9794
SELECT + 58 + ( - 29 ) * - - MIN( DISTINCT - 98 ) + - 80 - + 80 AS col2, - 96 * + + 1 AS col0
----
2740
-96

skipif mysql # not compatible
query II rowsort label-9794
SELECT + 58 + ( - 29 ) * - - MIN ( DISTINCT - 98 ) + - 80 - + 80 AS col2, - 96 * + + 1 AS col0
----
2740
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT ALL + + SUM( - 26 ) - - CASE 18 WHEN ( + 14 ) * + 22 / - 28 + - 98 + - + 64 * + + AVG ( DISTINCT + - ( 23 ) ) THEN 5 + - 90 * - + 47 + 26 WHEN + + MAX( ALL - + 8 ) / + 98 + 72 THEN + 2 - 59 + + ( + + 81 ) + - + 31 ELSE + 66 * + 55 END * - 33 col2
----
-119816

skipif mysql # not compatible
query I rowsort label-9795
SELECT ALL + + SUM ( - 26 ) - - CASE 18 WHEN ( + 14 ) * + 22 / - 28 + - 98 + - + 64 * + + AVG ( DISTINCT + - ( 23 ) ) THEN 5 + - 90 * - + 47 + 26 WHEN + + MAX ( ALL - + 8 ) / + 98 + 72 THEN + 2 - 59 + + ( + + 81 ) + - + 31 ELSE + 66 * + 55 END * - 33 col2
----
-119816

query I rowsort
SELECT ALL - - 14 * 79 * 68 AS col1
----
75208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9797
SELECT 57 + - - 74 + - + CASE + 95 WHEN - 1 + - - ( + + CAST( - - 69 AS SIGNED ) ) THEN NULL WHEN + 53 * - - ( - - NULLIF ( + + COUNT( * ), + + 40 * - 24 ) ) * - 36 + - 31 + + + 54 THEN + + 28 ELSE NULL END * - - COUNT( * ) AS col0, 30 * - + CAST( - COUNT( * ) AS SIGNED )
----
NULL
30

skipif mysql # not compatible
query II rowsort label-9797
SELECT 57 + - - 74 + - + CASE + 95 WHEN - 1 + - - ( + + CAST ( - - 69 AS INTEGER ) ) THEN NULL WHEN + 53 * - - ( - - NULLIF ( + + COUNT ( * ), + + 40 * - 24 ) ) * - 36 + - 31 + + + 54 THEN + + 28 ELSE NULL END * - - COUNT ( * ) AS col0, 30 * - + CAST ( - COUNT ( * ) AS INTEGER )
----
NULL
30

query I rowsort
SELECT 88 + 34 * - 44 col0
----
-1408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9799
SELECT DISTINCT - + 47 * + 83 - + + CAST( + + COUNT( * ) AS SIGNED )
----
-3902

skipif mysql # not compatible
query I rowsort label-9799
SELECT DISTINCT - + 47 * + 83 - + + CAST ( + + COUNT ( * ) AS INTEGER )
----
-3902

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9800
SELECT ALL + + CASE - - 4 WHEN + ( 41 ) THEN NULL WHEN - - 76 THEN + 46 + - ( + 65 ) ELSE CAST( NULL AS DECIMAL ) END * - 90 - - 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9800
SELECT ALL + + CASE - - 4 WHEN + ( 41 ) THEN NULL WHEN - - 76 THEN + 46 + - ( + 65 ) ELSE CAST ( NULL AS REAL ) END * - 90 - - 81 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT + 7 + - MAX( + + 87 ) col1
----
-80

skipif mysql # not compatible
query I rowsort label-9801
SELECT + 7 + - MAX ( + + 87 ) col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT DISTINCT + COUNT( * ) * 11 + + 21 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-9802
SELECT DISTINCT + COUNT ( * ) * 11 + + 21 AS col2
----
32

query II rowsort
SELECT 57 * 46 AS col1, 96 AS col0
----
2622
96

query I rowsort
SELECT 3 + - 40
----
-37

query I rowsort
SELECT - 57 + - - 10
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT ALL 27 * - SUM( + + 0 ) + + 0
----
0

skipif mysql # not compatible
query I rowsort label-9806
SELECT ALL 27 * - SUM ( + + 0 ) + + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT 36 * + SUM( - 0 ) * - ( - 66 ) * 26 - 51 col1
----
-51

skipif mysql # not compatible
query I rowsort label-9807
SELECT 36 * + SUM ( - 0 ) * - ( - 66 ) * 26 - 51 col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT ALL - - MIN( ALL - 63 ) col2
----
-63

skipif mysql # not compatible
query I rowsort label-9808
SELECT ALL - - MIN ( ALL - 63 ) col2
----
-63

query I rowsort
SELECT ALL 40 * 89 * + ( 56 ) AS col2
----
199360

query I rowsort
SELECT ( - - 29 ) * 70
----
2030

onlyif mysql # DIV for integer division: 
query II rowsort label-9811
SELECT + 47 AS col1, 20 DIV - 78
----
47
0

skipif mysql # not compatible
query II rowsort label-9811
SELECT + 47 AS col1, 20 / - 78
----
47
0

query I rowsort
SELECT DISTINCT 87 * + 50
----
4350

query I rowsort
SELECT ALL 22 + + 43 col0
----
65

query II rowsort
SELECT 77 * 22 + 45 AS col2, 50
----
1739
50

query I rowsort
SELECT DISTINCT 39 + - 45
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT DISTINCT 15 + + CASE - 54 WHEN - - 18 THEN + 55 + - - SUM( 45 ) WHEN - COUNT( * ) * ( + + 55 ) THEN - - COALESCE ( - + COALESCE ( - - ( - 50 ), + ( + 85 ) ), 13, + 46 ) + - + AVG ( DISTINCT - 32 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9816
SELECT DISTINCT 15 + + CASE - 54 WHEN - - 18 THEN + 55 + - - SUM ( 45 ) WHEN - COUNT ( * ) * ( + + 55 ) THEN - - COALESCE ( - + COALESCE ( - - ( - 50 ), + ( + 85 ) ), 13, + 46 ) + - + AVG ( DISTINCT - 32 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9817
SELECT ALL 74 / - NULLIF ( + CASE - + 73 WHEN + COUNT( DISTINCT ( + 41 ) ) THEN NULL WHEN - 30 * + 47 THEN 29 ELSE NULL END, ( + + CAST( NULL AS SIGNED ) ) + + - 2 ) * - 84 * - + CASE WHEN NOT + 28 = NULL THEN NULL ELSE + 51 * - 87 + - 70 END - 10 - - 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9817
SELECT ALL 74 / - NULLIF ( + CASE - + 73 WHEN + COUNT ( DISTINCT ( + 41 ) ) THEN NULL WHEN - 30 * + 47 THEN 29 ELSE NULL END, ( + + CAST ( NULL AS INTEGER ) ) + + - 2 ) * - 84 * - + CASE WHEN NOT + 28 = NULL THEN NULL ELSE + 51 * - 87 + - 70 END - 10 - - 25 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9818
SELECT ALL 86 + + 41 - - CAST( + ( + - 34 ) AS SIGNED ) + 48 AS col2
----
141

skipif mysql # not compatible
query I rowsort label-9818
SELECT ALL 86 + + 41 - - CAST ( + ( + - 34 ) AS INTEGER ) + 48 AS col2
----
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9819
SELECT DISTINCT 9 / + + MAX( DISTINCT + 65 ) * + 76 / - 1 * + + 18 + - COUNT( * ) + + 57 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9819
SELECT DISTINCT 9 / + + MAX ( DISTINCT + 65 ) * + 76 / - 1 * + + 18 + - COUNT ( * ) + + 57 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + ( 7 ) * - 93 + + 3 AS col0
----
-648

query I rowsort
SELECT DISTINCT 79 + 87 * - 67 col0
----
-5750

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT DISTINCT - COUNT( * ) + + 23 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-9822
SELECT DISTINCT - COUNT ( * ) + + 23 AS col2
----
22

query II rowsort
SELECT DISTINCT 32, 92 AS col1
----
32
92

query I rowsort
SELECT ALL 32 + - - 36 col2
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9825
SELECT ( - - 19 ) * - 2 + - MAX( - + 19 ), + ( + COUNT( * ) ) DIV - 52 + - 32 AS col0
----
-19
-32

skipif mysql # not compatible
query II rowsort label-9825
SELECT ( - - 19 ) * - 2 + - MAX ( - + 19 ), + ( + COUNT ( * ) ) / - 52 + - 32 AS col0
----
-19
-32

query II rowsort
SELECT 72, - 12 AS col1
----
72
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT DISTINCT COUNT( ALL 91 ) - + - 3 - - + 66 + + 18 + 13
----
101

skipif mysql # not compatible
query I rowsort label-9827
SELECT DISTINCT COUNT ( ALL 91 ) - + - 3 - - + 66 + + 18 + 13
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT 92 * 37 + + 75 * CASE + 3 WHEN + 40 * MIN( ALL - + 32 ) THEN - 25 ELSE - - 56 END * - 82 + + ( - + 80 ) + - + MIN( DISTINCT + - 26 ) + 87 * + 71
----
-334873

skipif mysql # not compatible
query I rowsort label-9828
SELECT 92 * 37 + + 75 * CASE + 3 WHEN + 40 * MIN ( ALL - + 32 ) THEN - 25 ELSE - - 56 END * - 82 + + ( - + 80 ) + - + MIN ( DISTINCT + - 26 ) + 87 * + 71
----
-334873

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT 10 * + 42 * - + COUNT( * ) AS col0
----
-420

skipif mysql # not compatible
query I rowsort label-9829
SELECT 10 * + 42 * - + COUNT ( * ) AS col0
----
-420

onlyif mysql # aggregate syntax: 
query II rowsort label-9830
SELECT - + 25 AS col0, COUNT( * ) AS col2
----
-25
1

skipif mysql # not compatible
query II rowsort label-9830
SELECT - + 25 AS col0, COUNT ( * ) AS col2
----
-25
1

query II rowsort
SELECT DISTINCT ( + - 95 ) - - COALESCE ( 48, + 64 ) col0, - 92 AS col2
----
-47
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-9832
SELECT - - 2 AS col1, - MAX( + 44 ) AS col2
----
2
-44

skipif mysql # not compatible
query II rowsort label-9832
SELECT - - 2 AS col1, - MAX ( + 44 ) AS col2
----
2
-44

query II rowsort
SELECT ALL - 8 - - 47 * - 64, + 59 AS col1
----
-3016
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9834
SELECT DISTINCT - - 11 DIV - + COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-9834
SELECT DISTINCT - - 11 / - + COUNT ( * )
----
-11

query I rowsort
SELECT + 5 * + 58 AS col1
----
290

query I rowsort
SELECT 82 - - 22 AS col1
----
104

onlyif mysql # DIV for integer division: 
query I rowsort label-9837
SELECT - 14 DIV 25
----
0

skipif mysql # not compatible
query I rowsort label-9837
SELECT - 14 / 25
----
0

query I rowsort
SELECT DISTINCT - 25 * 86 AS col2
----
-2150

query I rowsort
SELECT ALL - + 69 * - + 1
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9840
SELECT + 81 / + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9840
SELECT + 81 / + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 76 * 77 / + - CASE + + 34 WHEN + 64 * - 80 THEN 82 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-9842
SELECT DISTINCT - CASE + ( 40 ) WHEN COALESCE ( 82, CASE + + COUNT( 74 ) WHEN 64 THEN + 69 DIV - CAST( NULL AS DECIMAL ) * + COUNT( * ) - 46 WHEN 49 THEN - 31 WHEN - - ( - - COUNT( * ) ) THEN - 90 END ) THEN NULL WHEN + ( + 33 ) + - 9 - + - AVG ( DISTINCT 33 ) THEN - COUNT( * ) ELSE + 62 END * - 26 DIV - - COUNT( * ) col2
----
1612

skipif mysql # not compatible
query I rowsort label-9842
SELECT DISTINCT - CASE + ( 40 ) WHEN COALESCE ( 82, CASE + + COUNT ( 74 ) WHEN 64 THEN + 69 / - CAST ( NULL AS REAL ) * + COUNT ( * ) - 46 WHEN 49 THEN - 31 WHEN - - ( - - COUNT ( * ) ) THEN - 90 END ) THEN NULL WHEN + ( + 33 ) + - 9 - + - AVG ( DISTINCT 33 ) THEN - COUNT ( * ) ELSE + 62 END * - 26 / - - COUNT ( * ) col2
----
1612

onlyif mysql # aggregate syntax: 
query II rowsort label-9843
SELECT ALL - NULLIF ( + + 24, - COUNT( * ) ) AS col2, SUM( DISTINCT - - 53 ) * + - COUNT( + + 31 ) * 54 AS col0
----
-24
-2862

skipif mysql # not compatible
query II rowsort label-9843
SELECT ALL - NULLIF ( + + 24, - COUNT ( * ) ) AS col2, SUM ( DISTINCT - - 53 ) * + - COUNT ( + + 31 ) * 54 AS col0
----
-24
-2862

onlyif mysql # DIV for integer division: 
query I rowsort label-9844
SELECT + 86 DIV 31 - + 52 * - - 15
----
-778

skipif mysql # not compatible
query I rowsort label-9844
SELECT + 86 / 31 - + 52 * - - 15
----
-778

query I rowsort
SELECT ALL - - 77 * + + 88 * + + 86 * - 2
----
-1165472

query II rowsort
SELECT COALESCE ( ( + + 7 ), 40 ) AS col2, - 96 AS col0
----
7
-96

query II rowsort
SELECT + 94 AS col0, - 10 * 54 AS col0
----
94
-540

onlyif mysql # DIV for integer division: 
query II rowsort label-9848
SELECT ALL 98 * - - 39 + 13 * 23 AS col1, + 19 DIV + - 71
----
4121
0

skipif mysql # not compatible
query II rowsort label-9848
SELECT ALL 98 * - - 39 + 13 * 23 AS col1, + 19 / + - 71
----
4121
0

query II rowsort
SELECT 54 * + 0 * + 35 + + 32 AS col0, 57 AS col1
----
32
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT MIN( ALL + 99 ) col0
----
99

skipif mysql # not compatible
query I rowsort label-9850
SELECT MIN ( ALL + 99 ) col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT ALL 5 * COUNT( + + 33 ) + + 96
----
101

skipif mysql # not compatible
query I rowsort label-9851
SELECT ALL 5 * COUNT ( + + 33 ) + + 96
----
101

query II rowsort
SELECT + 5 AS col1, ( + ( + 90 ) ) col0
----
5
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT 45 * - - 39 * 73 + + - ( - COUNT( * ) ) AS col2
----
128116

skipif mysql # not compatible
query I rowsort label-9853
SELECT 45 * - - 39 * 73 + + - ( - COUNT ( * ) ) AS col2
----
128116

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT + COUNT( DISTINCT - 40 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9854
SELECT + COUNT ( DISTINCT - 40 ) col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9855
SELECT COUNT( * ) col0, - 98 * 52 AS col0
----
1
-5096

skipif mysql # not compatible
query II rowsort label-9855
SELECT COUNT ( * ) col0, - 98 * 52 AS col0
----
1
-5096

query I rowsort
SELECT ALL 68 * + + 47
----
3196

query I rowsort
SELECT + 74 * 25
----
1850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9858
SELECT DISTINCT - 1 * + + 6 * + COALESCE ( - COUNT( * ), + 91 * + COALESCE ( - 84, 72 + + 28 + 2 + - - ( + 55 ) DIV + + 35 + 42 * + 18 * ( 29 ), + 81 ) ) * + + 13 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-9858
SELECT DISTINCT - 1 * + + 6 * + COALESCE ( - COUNT ( * ), + 91 * + COALESCE ( - 84, 72 + + 28 + 2 + - - ( + 55 ) / + + 35 + 42 * + 18 * ( 29 ), + 81 ) ) * + + 13 AS col1
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9859
SELECT DISTINCT + 98 * COALESCE ( 21, + 61 DIV + + 78 * + 82 * 87, + 46 * - - 94 + - ( - 18 ) + + 32 + - 24 * COUNT( * ) ) DIV - 9 + - + 88 col0
----
-316

skipif mysql # not compatible
query I rowsort label-9859
SELECT DISTINCT + 98 * COALESCE ( 21, + 61 / + + 78 * + 82 * 87, + 46 * - - 94 + - ( - 18 ) + + 32 + - 24 * COUNT ( * ) ) / - 9 + - + 88 col0
----
-316

query I rowsort
SELECT ALL 32 * - - 77
----
2464

onlyif mysql # aggregate syntax: 
query II rowsort label-9861
SELECT - 38 - - 77 + - 19 + - 50 * - 10 * - COUNT( * ), - 3 AS col1
----
-480
-3

skipif mysql # not compatible
query II rowsort label-9861
SELECT - 38 - - 77 + - 19 + - 50 * - 10 * - COUNT ( * ), - 3 AS col1
----
-480
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9862
SELECT + 79 col0, SUM( ALL - 6 ) AS col0
----
79
-6

skipif mysql # not compatible
query II rowsort label-9862
SELECT + 79 col0, SUM ( ALL - 6 ) AS col0
----
79
-6

query II rowsort
SELECT DISTINCT + 46 AS col0, - 70 * - 39
----
46
2730

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT MAX( - 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-9864
SELECT MAX ( - 21 )
----
-21

query I rowsort
SELECT + - 17 - + 27 + 91 AS col2
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-9866
SELECT + - 59 DIV 31 * - 48
----
48

skipif mysql # not compatible
query I rowsort label-9866
SELECT + - 59 / 31 * - 48
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9867
SELECT ALL + 48 * - 25 + - MAX( DISTINCT + + 42 ) DIV - 32 + - 79 col1, - CAST( NULL AS SIGNED ) col2
----
-1278
NULL

skipif mysql # not compatible
query II rowsort label-9867
SELECT ALL + 48 * - 25 + - MAX ( DISTINCT + + 42 ) / - 32 + - 79 col1, - CAST ( NULL AS INTEGER ) col2
----
-1278
NULL

query I rowsort
SELECT + 15 + + - 2 AS col1
----
13

query II rowsort
SELECT - 83 col1, + ( 83 ) AS col1
----
-83
83

query II rowsort
SELECT + 29 + + - 9 AS col0, + 67 AS col2
----
20
67

query I rowsort
SELECT - + 2 - ( + + 95 ) - + - 93 AS col0
----
-4

query II rowsort
SELECT ALL + ( + 49 ) * + + 55 + + 15, - 44 AS col0
----
2710
-44

query I rowsort
SELECT - - 27 - - + 3 * + + 22 AS col2
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9874
SELECT - - SUM( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9874
SELECT - - SUM ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + + 41 + 25 AS col2
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9876
SELECT ALL 48 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9876
SELECT ALL 48 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 92 + - - 5 AS col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT DISTINCT + COUNT( * ) + - - 86
----
87

skipif mysql # not compatible
query I rowsort label-9878
SELECT DISTINCT + COUNT ( * ) + - - 86
----
87

query I rowsort
SELECT - 19 + ( - + ( - NULLIF ( 72, 19 + - NULLIF ( + 53, 53 ) ) ) ) AS col2
----
53

query I rowsort
SELECT ALL + 59 + 47
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-9881
SELECT DISTINCT - 4 DIV + + 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9881
SELECT DISTINCT - 4 / + + 98 AS col0
----
0

query II rowsort
SELECT ALL - 86 * - 76, - 41 + + + 54 + - 96 AS col0
----
6536
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-9883
SELECT ( - + 2 ), + SUM( DISTINCT - 4 ) * 73 col2
----
-2
-292

skipif mysql # not compatible
query II rowsort label-9883
SELECT ( - + 2 ), + SUM ( DISTINCT - 4 ) * 73 col2
----
-2
-292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9884
SELECT - NULLIF ( CAST( - + ( - + CAST( NULL AS SIGNED ) ) AS SIGNED ), - 90 - + COUNT( * ) ) / + ( + + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9884
SELECT - NULLIF ( CAST ( - + ( - + CAST ( NULL AS INTEGER ) ) AS INTEGER ), - 90 - + COUNT ( * ) ) / + ( + + COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9885
SELECT ( + + CAST( NULL AS SIGNED ) ) * 7 + - + NULLIF ( + 11, 97 ) * + 35 - - ( - - 43 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9885
SELECT ( + + CAST ( NULL AS INTEGER ) ) * 7 + - + NULLIF ( + 11, 97 ) * + 35 - - ( - - 43 )
----
NULL

query I rowsort
SELECT DISTINCT + 68 * 20 AS col2
----
1360

query I rowsort
SELECT ALL + 87 * + 32 * 64 AS col2
----
178176

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9888
SELECT + 31 DIV - ( 36 ) + 30 - 50 + 68 + - COUNT( * ) * - + COUNT( 35 ) DIV 27, 53 col0
----
48
53

skipif mysql # not compatible
query II rowsort label-9888
SELECT + 31 / - ( 36 ) + 30 - 50 + 68 + - COUNT ( * ) * - + COUNT ( 35 ) / 27, 53 col0
----
48
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9889
SELECT - 33 * - - CAST( + 53 AS SIGNED )
----
-1749

skipif mysql # not compatible
query I rowsort label-9889
SELECT - 33 * - - CAST ( + 53 AS INTEGER )
----
-1749

onlyif mysql # aggregate syntax: 
query II rowsort label-9890
SELECT ALL - 14 * - 82 AS col2, + 71 + COUNT( * )
----
1148
72

skipif mysql # not compatible
query II rowsort label-9890
SELECT ALL - 14 * - 82 AS col2, + 71 + COUNT ( * )
----
1148
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9891
SELECT + 68 * 25 * ( - 25 ) + 43 DIV + + CASE 58 WHEN + COUNT( ALL - 29 ) - - 62 * + AVG ( ALL + - 48 ) THEN 58 + + 37 ELSE - - 8 * + 9 END * + 76 + + COUNT( * ) AS col1
----
-42499

skipif mysql # not compatible
query I rowsort label-9891
SELECT + 68 * 25 * ( - 25 ) + 43 / + + CASE 58 WHEN + COUNT ( ALL - 29 ) - - 62 * + AVG ( ALL + - 48 ) THEN 58 + + 37 ELSE - - 8 * + 9 END * + 76 + + COUNT ( * ) AS col1
----
-42499

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9892
SELECT - 97 - ( - ( + 89 ) ) + SUM( 85 ) * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9892
SELECT - 97 - ( - ( + 89 ) ) + SUM ( 85 ) * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9893
SELECT - 3 * 23 * + + ( + + CAST( NULL AS SIGNED ) ) * - COUNT( * ) * + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9893
SELECT - 3 * 23 * + + ( + + CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) * + COUNT ( * ) col0
----
NULL

query I rowsort
SELECT 15 * + - 68 + + 43 AS col1
----
-977

query I rowsort
SELECT ALL + ( - - 30 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT COALESCE ( COUNT( * ), NULLIF ( - COUNT( * ), - 59 * + 92 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9896
SELECT COALESCE ( COUNT ( * ), NULLIF ( - COUNT ( * ), - 59 * + 92 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9897
SELECT - CASE + CAST( NULL AS SIGNED ) WHEN + 86 / - COALESCE ( 86, - 26 ) * + 19 * + 60 * ( 14 ) THEN NULL WHEN ( - 34 ) THEN CAST( NULL AS DECIMAL ) END * - COUNT( * ) + - COALESCE ( - 15, - + 85 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9897
SELECT - CASE + CAST ( NULL AS INTEGER ) WHEN + 86 / - COALESCE ( 86, - 26 ) * + 19 * + 60 * ( 14 ) THEN NULL WHEN ( - 34 ) THEN CAST ( NULL AS REAL ) END * - COUNT ( * ) + - COALESCE ( - 15, - + 85 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT - MAX( DISTINCT 84 ) * 30 AS col0
----
-2520

skipif mysql # not compatible
query I rowsort label-9898
SELECT - MAX ( DISTINCT 84 ) * 30 AS col0
----
-2520

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT ALL 79 * - 74 * + COUNT( * ) AS col1
----
-5846

skipif mysql # not compatible
query I rowsort label-9899
SELECT ALL 79 * - 74 * + COUNT ( * ) AS col1
----
-5846

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT - 84 + + - COUNT( * ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-9900
SELECT - 84 + + - COUNT ( * ) AS col1
----
-85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9901
SELECT ALL - 91 * + + CAST( NULL AS DECIMAL ) * + + 98 / 40
----
NULL

skipif mysql # not compatible
query I rowsort label-9901
SELECT ALL - 91 * + + CAST ( NULL AS REAL ) * + + 98 / 40
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9902
SELECT DISTINCT CAST( - + 23 AS SIGNED ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-9902
SELECT DISTINCT CAST ( - + 23 AS INTEGER ) AS col0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9903
SELECT - - 36 * + NULLIF ( - CAST( NULL AS SIGNED ), + AVG ( 67 ) ) * 66 * - COALESCE ( - 7, 77 ) + - 17 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9903
SELECT - - 36 * + NULLIF ( - CAST ( NULL AS INTEGER ), + AVG ( 67 ) ) * 66 * - COALESCE ( - 7, 77 ) + - 17 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + NULLIF ( + 64, + + 68 )
----
64

query I rowsort
SELECT DISTINCT + + 36 * - - 45 + 64
----
1684

query I rowsort
SELECT ALL 93 + + 75 AS col1
----
168

query I rowsort
SELECT ALL - - 23 + - + 84
----
-61

query I rowsort
SELECT ALL 20 + + - 89 AS col2
----
-69

query I rowsort
SELECT ALL 60 + 3 + - 69 + 67 + 1 * 16 AS col1
----
77

query I rowsort
SELECT + 43 - - - 66 col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT ALL - 24 * + + SUM( DISTINCT + 96 ) * 6 + COUNT( * )
----
-13823

skipif mysql # not compatible
query I rowsort label-9911
SELECT ALL - 24 * + + SUM ( DISTINCT + 96 ) * 6 + COUNT ( * )
----
-13823

query I rowsort
SELECT ( + - 57 ) - + 14 AS col2
----
-71

query I rowsort
SELECT DISTINCT 58 * - 95 AS col2
----
-5510

onlyif mysql # aggregate syntax: 
query II rowsort label-9914
SELECT 72, ( COALESCE ( - + 73, 90 + COUNT( * ) + NULLIF ( + 10, - - COALESCE ( - + SUM( DISTINCT + + 35 ), COUNT( * ) * + 46 * 93 - 22 * + 12 + + + 73 / + MAX( ALL + 99 ) ) ) * + CASE + 89 WHEN COUNT( * ) THEN NULL WHEN + - 12 THEN NULL ELSE 72 + + ( + 48 ) END ) ) * NULLIF ( + + 46, 68 + AVG ( DISTINCT 94 ) + AVG ( - 79 ) * + + 97 * + + 46 / - COUNT( * ) ) AS col0
----
72
-3358

skipif mysql # not compatible
query II rowsort label-9914
SELECT 72, ( COALESCE ( - + 73, 90 + COUNT ( * ) + NULLIF ( + 10, - - COALESCE ( - + SUM ( DISTINCT + + 35 ), COUNT ( * ) * + 46 * 93 - 22 * + 12 + + + 73 / + MAX ( ALL + 99 ) ) ) * + CASE + 89 WHEN COUNT ( * ) THEN NULL WHEN + - 12 THEN NULL ELSE 72 + + ( + 48 ) END ) ) * NULLIF ( + + 46, 68 + AVG ( DISTINCT 94 ) + AVG ( - 79 ) * + + 97 * + + 46 / - COUNT ( * ) ) AS col0
----
72
-3358

query I rowsort
SELECT ALL - 28 - 10 AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT DISTINCT 22 * NULLIF ( + - 12, + COUNT( * ) * - - COUNT( * ) )
----
-264

skipif mysql # not compatible
query I rowsort label-9916
SELECT DISTINCT 22 * NULLIF ( + - 12, + COUNT ( * ) * - - COUNT ( * ) )
----
-264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9917
SELECT + 27 / - AVG ( - 84 ) - - COUNT( * ) + + + 88 + - CAST( NULL AS SIGNED ) * - - 94 * 18 * 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9917
SELECT + 27 / - AVG ( - 84 ) - - COUNT ( * ) + + + 88 + - CAST ( NULL AS INTEGER ) * - - 94 * 18 * 86 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT ALL - MIN( DISTINCT + + 77 ) col0
----
-77

skipif mysql # not compatible
query I rowsort label-9918
SELECT ALL - MIN ( DISTINCT + + 77 ) col0
----
-77

query III rowsort
SELECT + 58 AS col1, + 19 * 23 * - 24 col0, + - 70 AS col0
----
58
-10488
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT 8 * ( COUNT( * ) ) * + 62
----
496

skipif mysql # not compatible
query I rowsort label-9920
SELECT 8 * ( COUNT ( * ) ) * + 62
----
496

query I rowsort
SELECT 29 * - + 63 * - 32 - 13 + + - 18
----
58433

query II rowsort
SELECT + 24 col0, - 66
----
24
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT 98 * + - COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-9923
SELECT 98 * + - COUNT ( * )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT ALL - 65 * - MAX( - 9 )
----
-585

skipif mysql # not compatible
query I rowsort label-9924
SELECT ALL - 65 * - MAX ( - 9 )
----
-585

query I rowsort
SELECT 7 * + 29 * 87 AS col1
----
17661

onlyif mysql # aggregate syntax: 
query I rowsort label-9926
SELECT ALL - - 76 * - - COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-9926
SELECT ALL - - 76 * - - COUNT ( * )
----
76

query I rowsort
SELECT + 58 * + 22 * - + 96
----
-122496

query I rowsort
SELECT 88 + + 74 + - - 84 * - 19
----
-1434

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT ALL - + COALESCE ( + 93, - 59, + 45 + - COUNT( ( 86 ) ) * - + COALESCE ( COUNT( * ), - 56 * - ( - 75 ) + 57 ) ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-9929
SELECT ALL - + COALESCE ( + 93, - 59, + 45 + - COUNT ( ( 86 ) ) * - + COALESCE ( COUNT ( * ), - 56 * - ( - 75 ) + 57 ) ) AS col2
----
-93

query I rowsort
SELECT - 11 + - + 38 * 52 * - - 35 - - 6
----
-69165

onlyif mysql # aggregate syntax: 
query II rowsort label-9931
SELECT 13 col1, - 18 + - MAX( 31 ) AS col0
----
13
-49

skipif mysql # not compatible
query II rowsort label-9931
SELECT 13 col1, - 18 + - MAX ( 31 ) AS col0
----
13
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9932
SELECT - 24 * + CAST( + - ( - - 64 ) AS SIGNED ) AS col0
----
1536

skipif mysql # not compatible
query I rowsort label-9932
SELECT - 24 * + CAST ( + - ( - - 64 ) AS INTEGER ) AS col0
----
1536

query I rowsort
SELECT ALL - - 63 + 49 + + 43
----
155

query I rowsort
SELECT 57 - + + 56 - - 66 * + COALESCE ( 37, + - 38 * + 6, - 3 ) + - - 20 AS col0
----
2463

query I rowsort
SELECT DISTINCT - 77 + 35 AS col0
----
-42

query I rowsort
SELECT ALL + 13 * - 63
----
-819

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9937
SELECT ALL - COUNT( * ) + - NULLIF ( COUNT( * ), + - 82 ) + 1 * + 23 * - - 71 * + 63 * - ( + CAST( NULL AS DECIMAL ) ) + - 77 + + 70 + + 60 * + + 53 * - + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-9937
SELECT ALL - COUNT ( * ) + - NULLIF ( COUNT ( * ), + - 82 ) + 1 * + 23 * - - 71 * + 63 * - ( + CAST ( NULL AS REAL ) ) + - 77 + + 70 + + 60 * + + 53 * - + 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT 26 - + CASE 19 WHEN 1 THEN + 33 WHEN + 80 + - 38 / + - 49 THEN 80 / - 50 * - - 47 END * COUNT( * ) / CASE + NULLIF ( - ( - 41 ), - + 70 ) WHEN - NULLIF ( + CASE - SUM( DISTINCT 26 ) WHEN - 19 + - NULLIF ( + 13, - - ( MAX( + 1 ) ) * - 2 + + + COALESCE ( - ( - 76 ), 71 + - 53, 5 * - 65 / 61 + + 18 ) ) THEN NULL WHEN + ( + - 28 ) + - 74 THEN + 42 END, ( + + 30 ) ) * 84 + + - 30 THEN - 92 END * - 46 - 28 + 73 / - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-9938
SELECT 26 - + CASE 19 WHEN 1 THEN + 33 WHEN + 80 + - 38 / + - 49 THEN 80 / - 50 * - - 47 END * COUNT ( * ) / CASE + NULLIF ( - ( - 41 ), - + 70 ) WHEN - NULLIF ( + CASE - SUM ( DISTINCT 26 ) WHEN - 19 + - NULLIF ( + 13, - - ( MAX ( + 1 ) ) * - 2 + + + COALESCE ( - ( - 76 ), 71 + - 53, 5 * - 65 / 61 + + 18 ) ) THEN NULL WHEN + ( + - 28 ) + - 74 THEN + 42 END, ( + + 30 ) ) * 84 + + - 30 THEN - 92 END * - 46 - 28 + 73 / - 13
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9939
SELECT + 41 + - 83 DIV - - COUNT( * ) * COUNT( * ) + - 27 AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-9939
SELECT + 41 + - 83 / - - COUNT ( * ) * COUNT ( * ) + - 27 AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT 74 + - SUM( - + 21 )
----
95

skipif mysql # not compatible
query I rowsort label-9940
SELECT 74 + - SUM ( - + 21 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT ALL 75 - + SUM( 15 )
----
60

skipif mysql # not compatible
query I rowsort label-9941
SELECT ALL 75 - + SUM ( 15 )
----
60

query I rowsort
SELECT ALL 45 * 5 AS col2
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9943
SELECT 63 * ( + + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9943
SELECT 63 * ( + + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9944
SELECT 1 + - - 88 * + 16 + - 4 * + - CAST( NULL AS SIGNED ) / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9944
SELECT 1 + - - 88 * + 16 + - 4 * + - CAST ( NULL AS INTEGER ) / + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9945
SELECT 79 + - CAST( + 32 AS SIGNED ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-9945
SELECT 79 + - CAST ( + 32 AS INTEGER ) AS col2
----
47

query I rowsort
SELECT ( - + 21 ) + - + 51 * + 8 AS col0
----
-429

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT SUM( + 94 )
----
94

skipif mysql # not compatible
query I rowsort label-9947
SELECT SUM ( + 94 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT DISTINCT COUNT( * ) * + + 9
----
9

skipif mysql # not compatible
query I rowsort label-9948
SELECT DISTINCT COUNT ( * ) * + + 9
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9949
SELECT DISTINCT 15 * + NULLIF ( + 84, + CAST( NULL AS SIGNED ) ) * - COALESCE ( + + 18, - + 18, ( 68 ) * - 32 + - 44 - - 83 + + 4 * - + 56 * NULLIF ( + 28, - 80 ) )
----
-22680

skipif mysql # not compatible
query I rowsort label-9949
SELECT DISTINCT 15 * + NULLIF ( + 84, + CAST ( NULL AS INTEGER ) ) * - COALESCE ( + + 18, - + 18, ( 68 ) * - 32 + - 44 - - 83 + + 4 * - + 56 * NULLIF ( + 28, - 80 ) )
----
-22680

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT ALL - MAX( ( 88 ) )
----
-88

skipif mysql # not compatible
query I rowsort label-9950
SELECT ALL - MAX ( ( 88 ) )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT SUM( 50 ) col1
----
50

skipif mysql # not compatible
query I rowsort label-9951
SELECT SUM ( 50 ) col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9952
SELECT ALL - MIN( 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-9952
SELECT ALL - MIN ( 99 )
----
-99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9953
SELECT COUNT( * ) + - 95 AS col2, CAST( NULL AS DECIMAL ) * + - NULLIF ( + 79, MIN( DISTINCT - 82 ) ) + - 14 + - + AVG ( DISTINCT - - 89 )
----
-94
NULL

skipif mysql # not compatible
query II rowsort label-9953
SELECT COUNT ( * ) + - 95 AS col2, CAST ( NULL AS REAL ) * + - NULLIF ( + 79, MIN ( DISTINCT - 82 ) ) + - 14 + - + AVG ( DISTINCT - - 89 )
----
-94
NULL

query I rowsort
SELECT - + 98 * 27 + + 26 AS col0
----
-2620

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT DISTINCT - 42 + + + 97 + - COUNT( * ) + 32
----
86

skipif mysql # not compatible
query I rowsort label-9955
SELECT DISTINCT - 42 + + + 97 + - COUNT ( * ) + 32
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9956
SELECT - COUNT( * ) DIV 51 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9956
SELECT - COUNT ( * ) / 51 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9957
SELECT DISTINCT - 98 DIV + - COUNT( * ) AS col2, + 82 AS col2
----
98
82

skipif mysql # not compatible
query II rowsort label-9957
SELECT DISTINCT - 98 / + - COUNT ( * ) AS col2, + 82 AS col2
----
98
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT ALL - COUNT( * ) + CASE + + COUNT( DISTINCT ( - - 67 ) ) WHEN + - 11 THEN NULL WHEN + - 99 THEN - SUM( - 90 ) * 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9958
SELECT ALL - COUNT ( * ) + CASE + + COUNT ( DISTINCT ( - - 67 ) ) WHEN + - 11 THEN NULL WHEN + - 99 THEN - SUM ( - 90 ) * 54 END
----
NULL

query I rowsort
SELECT ALL - 48 + - 65
----
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9960
SELECT ALL - + COUNT( + 50 ) AS col0, - 21 * ( + COUNT( * ) ) + + + CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-9960
SELECT ALL - + COUNT ( + 50 ) AS col0, - 21 * ( + COUNT ( * ) ) + + + CAST ( NULL AS INTEGER )
----
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9961
SELECT + 58 + + + 4 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9961
SELECT + 58 + + + 4 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9962
SELECT DISTINCT + ( COUNT( * ) ), 61 + - 21 AS col0
----
1
40

skipif mysql # not compatible
query II rowsort label-9962
SELECT DISTINCT + ( COUNT ( * ) ), 61 + - 21 AS col0
----
1
40

query I rowsort
SELECT + + 10 * - - 93 col2
----
930

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT - COUNT( - 60 ) + + COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-9964
SELECT - COUNT ( - 60 ) + + COUNT ( * ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT COALESCE ( - + 9, COUNT( * ) * + ( - 58 ) * + 16 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-9965
SELECT COALESCE ( - + 9, COUNT ( * ) * + ( - 58 ) * + 16 ) AS col1
----
-9

query I rowsort
SELECT ALL - - 43 - - COALESCE ( 15, + 38, 0 )
----
58

query I rowsort
SELECT - ( + 66 ) * 61 AS col2
----
-4026

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9968
SELECT ALL NULLIF ( - COALESCE ( - + 67, 46 + COUNT( * ) - + 50 + + 0 + - COUNT( * ) - + - CAST( 10 AS SIGNED ) * - 8 * + 72 + 76 * - + COUNT( * ) * - - 87 * - 93 * - COUNT( * ) * - 81 ), - 32 * + + CASE - - 57 WHEN - 53 * - + 35 THEN - + 18 WHEN + COUNT( * ) THEN NULL ELSE NULL END )
----
67

skipif mysql # not compatible
query I rowsort label-9968
SELECT ALL NULLIF ( - COALESCE ( - + 67, 46 + COUNT ( * ) - + 50 + + 0 + - COUNT ( * ) - + - CAST ( 10 AS INTEGER ) * - 8 * + 72 + 76 * - + COUNT ( * ) * - - 87 * - 93 * - COUNT ( * ) * - 81 ), - 32 * + + CASE - - 57 WHEN - 53 * - + 35 THEN - + 18 WHEN + COUNT ( * ) THEN NULL ELSE NULL END )
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-9969
SELECT ALL - 28 - + + 53 DIV 88 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-9969
SELECT ALL - 28 - + + 53 / 88 AS col1
----
-28

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9970
SELECT ALL - COUNT( * ) * 27 * + COUNT( * ) * 54 * - 11 AS col0, COUNT( * ) / CAST( NULL AS DECIMAL )
----
16038
NULL

skipif mysql # not compatible
query II rowsort label-9970
SELECT ALL - COUNT ( * ) * 27 * + COUNT ( * ) * 54 * - 11 AS col0, COUNT ( * ) / CAST ( NULL AS REAL )
----
16038
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9971
SELECT - 74 + - 54 + + COUNT( * ) + + 50 col1
----
-77

skipif mysql # not compatible
query I rowsort label-9971
SELECT - 74 + - 54 + + COUNT ( * ) + + 50 col1
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9972
SELECT - 92 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9972
SELECT - 92 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9973
SELECT ALL 56 DIV + - 70
----
0

skipif mysql # not compatible
query I rowsort label-9973
SELECT ALL 56 / + - 70
----
0

query I rowsort
SELECT + 61 * - + ( - - 4 ) AS col1
----
-244

query I rowsort
SELECT + 96 - + 67 * - 24 * - 90
----
-144624

query II rowsort
SELECT DISTINCT + 65 AS col0, - 56 AS col2
----
65
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT ALL - COUNT( * ) * + - 65 + + - 80 + 34
----
19

skipif mysql # not compatible
query I rowsort label-9977
SELECT ALL - COUNT ( * ) * + - 65 + + - 80 + 34
----
19

query I rowsort
SELECT + COALESCE ( + 46, + 56 + 25 ) + - 82 AS col2
----
-36

query I rowsort
SELECT DISTINCT - 2 * - 22 + + ( - 81 ) AS col0
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9980
SELECT CASE 22 WHEN - COUNT( * ) - 32 THEN NULL WHEN - ( - SUM( - 72 ) ) DIV - 24 THEN + 40 ELSE + COUNT( 21 ) DIV + 76 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9980
SELECT CASE 22 WHEN - COUNT ( * ) - 32 THEN NULL WHEN - ( - SUM ( - 72 ) ) / - 24 THEN + 40 ELSE + COUNT ( 21 ) / + 76 END AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT ALL + COUNT( * ) * + 69 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-9981
SELECT ALL + COUNT ( * ) * + 69 AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT DISTINCT - COUNT( * ) * 29 + 43 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-9982
SELECT DISTINCT - COUNT ( * ) * 29 + 43 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT ALL + 75 * + ( - SUM( ALL - 21 ) * 0 ) + - 70
----
-70

skipif mysql # not compatible
query I rowsort label-9983
SELECT ALL + 75 * + ( - SUM ( ALL - 21 ) * 0 ) + - 70
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9984
SELECT ALL 12 * CAST( 1 AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-9984
SELECT ALL 12 * CAST ( 1 AS INTEGER )
----
12

query I rowsort
SELECT + 36 - ( 11 ) AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT CASE - 33 WHEN 17 + 10 THEN NULL WHEN MIN( - 86 ) THEN 20 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9986
SELECT CASE - 33 WHEN 17 + 10 THEN NULL WHEN MIN ( - 86 ) THEN 20 ELSE NULL END
----
NULL

query I rowsort
SELECT CASE - 22 WHEN 0 * + 32 THEN - 40 * 35 + 6 * + 71 END AS col2
----
NULL

query I rowsort
SELECT + 12 + - 0 * + 70
----
12

query I rowsort
SELECT - 76 * 78 AS col0
----
-5928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9990
SELECT COUNT( * ) * - 47 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9990
SELECT COUNT ( * ) * - 47 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9991
SELECT - 94 DIV + 79
----
-1

skipif mysql # not compatible
query I rowsort label-9991
SELECT - 94 / + 79
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9992
SELECT ALL 79 * + 91 - 54 DIV MAX( - 15 ) AS col0
----
7192

skipif mysql # not compatible
query I rowsort label-9992
SELECT ALL 79 * + 91 - 54 / MAX ( - 15 ) AS col0
----
7192

query I rowsort
SELECT + 40 * 58
----
2320

onlyif mysql # DIV for integer division: 
query I rowsort label-9994
SELECT ALL 46 DIV + 6 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-9994
SELECT ALL 46 / + 6 AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT + 58 - + COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-9995
SELECT + 58 - + COUNT ( * )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9996
SELECT DISTINCT - COUNT( * ) * CAST( - COUNT( DISTINCT 20 ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9996
SELECT DISTINCT - COUNT ( * ) * CAST ( - COUNT ( DISTINCT 20 ) AS INTEGER ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9997
SELECT ALL + 69 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9997
SELECT ALL + 69 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT DISTINCT COALESCE ( + 17, COUNT( * ), + 79 * + COUNT( * ) )
----
17

skipif mysql # not compatible
query I rowsort label-9998
SELECT DISTINCT COALESCE ( + 17, COUNT ( * ), + 79 * + COUNT ( * ) )
----
17

query I rowsort
SELECT + 5 * 37
----
185

