sqllogictest
Artifact Content
Not logged in

Artifact 00b4814aa32f3481749dcbbc8240920ecaa628ca:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1
SELECT + 98 DIV + 45
----
2

skipif mysql # not compatible
query I rowsort label-1
SELECT + 98 / + 45
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2
SELECT MIN( 84 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-2
SELECT MIN ( 84 ) AS col2
----
84

query I rowsort
SELECT + 74 * ( - 41 )
----
-3034

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT ALL + 50 * 0 - + MIN( + 40 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-4
SELECT ALL + 50 * 0 - + MIN ( + 40 ) AS col0
----
-40

query I rowsort
SELECT + NULLIF ( - 32, - 58 ) col1
----
-32

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

skipif mysql # not compatible
query I rowsort label-6
SELECT DISTINCT - - ( - COUNT ( ALL - 20 ) ) * + 17 AS col1
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7
SELECT ALL 79 * - - NULLIF ( + - 80, + 36 * + - 22 ) * 34 * 84 + - 34 - - CASE 23 WHEN - 17 + - + CASE + 52 WHEN - 57 / - + 41 + 84 THEN + 34 WHEN ( + + COALESCE ( + + NULLIF ( + 76, - COALESCE ( 54, 15 * - - 54 ) + + + 24 ), + 11, 32, ( 62 ) - - + 81 + - + COUNT( * ) ) ) THEN - 3 * CASE WHEN - 45 IS NULL THEN NULL ELSE - COALESCE ( + 41, - + NULLIF ( + 94, + COUNT( * ) / + 36 ), - COUNT( * ) * - 34 - 7 * 72, + 15 ) / CASE + 37 / + 39 + - CAST( NULL AS SIGNED ) WHEN - ( CAST( 29 AS SIGNED ) ) THEN NULL WHEN 66 + - 42 * 20 THEN - 45 / 52 - 8 * + 24 ELSE + 29 * MIN( ALL - 31 ) END END + 24 END THEN - COUNT( * ) WHEN + 23 + + ( - COUNT( * ) ) THEN NULL WHEN 0 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7
SELECT ALL 79 * - - NULLIF ( + - 80, + 36 * + - 22 ) * 34 * 84 + - 34 - - CASE 23 WHEN - 17 + - + CASE + 52 WHEN - 57 / - + 41 + 84 THEN + 34 WHEN ( + + COALESCE ( + + NULLIF ( + 76, - COALESCE ( 54, 15 * - - 54 ) + + + 24 ), + 11, 32, ( 62 ) - - + 81 + - + COUNT ( * ) ) ) THEN - 3 * CASE WHEN - 45 IS NULL THEN NULL ELSE - COALESCE ( + 41, - + NULLIF ( + 94, + COUNT ( * ) / + 36 ), - COUNT ( * ) * - 34 - 7 * 72, + 15 ) / CASE + 37 / + 39 + - CAST ( NULL AS INTEGER ) WHEN - ( CAST ( 29 AS INTEGER ) ) THEN NULL WHEN 66 + - 42 * 20 THEN - 45 / 52 - 8 * + 24 ELSE + 29 * MIN ( ALL - 31 ) END END + 24 END THEN - COUNT ( * ) WHEN + 23 + + ( - COUNT ( * ) ) THEN NULL WHEN 0 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT - + 44 * + 69
----
-3036

query I rowsort
SELECT DISTINCT 50 * - 26 col1
----
-1300

query I rowsort
SELECT - 8 * + 72
----
-576

query II rowsort
SELECT + 47 + 42 * - 62, 90 col0
----
-2557
90

query I rowsort
SELECT ALL - - 74 * - - ( + + 29 )
----
2146

onlyif mysql # aggregate syntax: 
query II rowsort label-13
SELECT ALL + ( + COUNT( * ) ) AS col1, + 39 * - 88 * - 87 * + 42 AS col2
----
1
12540528

skipif mysql # not compatible
query II rowsort label-13
SELECT ALL + ( + COUNT ( * ) ) AS col1, + 39 * - 88 * - 87 * + 42 AS col2
----
1
12540528

onlyif mysql # aggregate syntax: 
query I rowsort label-14
SELECT ALL + + MAX( 83 ) * - - 84 - + 29
----
6943

skipif mysql # not compatible
query I rowsort label-14
SELECT ALL + + MAX ( 83 ) * - - 84 - + 29
----
6943

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

skipif mysql # not compatible
query I rowsort label-15
SELECT ALL COUNT ( DISTINCT + 22 ) AS col0
----
1

query II rowsort
SELECT - 24 + - + 45 AS col1, - 7 + 45 AS col2
----
-69
38

query I rowsort
SELECT ALL + 67 + - - 51 col0
----
118

query I rowsort
SELECT ALL - NULLIF ( 55, + + 24 ) + - 54
----
-109

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

query I rowsort
SELECT DISTINCT + 49 + 41 col2
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-21
SELECT 23, + COUNT( * ) * - COUNT( * ) * - + 72 - - + 23 + + MAX( DISTINCT + ( 63 ) ) col2
----
23
158

skipif mysql # not compatible
query II rowsort label-21
SELECT 23, + COUNT ( * ) * - COUNT ( * ) * - + 72 - - + 23 + + MAX ( DISTINCT + ( 63 ) ) col2
----
23
158

onlyif mysql # aggregate syntax: 
query I rowsort label-22
SELECT DISTINCT - CASE COUNT( * ) WHEN - ( - + 33 ) THEN NULL WHEN - 41 + COUNT( * ) * - - 84 / + 9 THEN - 16 ELSE NULL END + COUNT( * ) * - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-22
SELECT DISTINCT - CASE COUNT ( * ) WHEN - ( - + 33 ) THEN NULL WHEN - 41 + COUNT ( * ) * - - 84 / + 9 THEN - 16 ELSE NULL END + COUNT ( * ) * - 23
----
NULL

query I rowsort
SELECT ALL + 31 + - 55
----
-24

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-26
SELECT CAST( - ( - - 11 ) AS SIGNED ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-26
SELECT CAST ( - ( - - 11 ) AS INTEGER ) AS col2
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-27
SELECT ALL - 56 DIV + + 81 - - COUNT( * ) + - 69 * - 33
----
2278

skipif mysql # not compatible
query I rowsort label-27
SELECT ALL - 56 / + + 81 - - COUNT ( * ) + - 69 * - 33
----
2278

onlyif mysql # aggregate syntax: 
query I rowsort label-28
SELECT + CASE - - 19 WHEN - 70 * 71 + + 19 THEN + MAX( DISTINCT + 98 ) WHEN + - 5 * - 44 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-28
SELECT + CASE - - 19 WHEN - 70 * 71 + + 19 THEN + MAX ( DISTINCT + 98 ) WHEN + - 5 * - 44 THEN NULL END
----
NULL

query I rowsort
SELECT ALL 86 * 34 AS col1
----
2924

query I rowsort
SELECT + 92 * + 30 AS col2
----
2760

onlyif mysql # aggregate syntax: 
query I rowsort label-31
SELECT ALL + ( 14 ) * SUM( ALL + 94 ) AS col2
----
1316

skipif mysql # not compatible
query I rowsort label-31
SELECT ALL + ( 14 ) * SUM ( ALL + 94 ) AS col2
----
1316

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

skipif mysql # not compatible
query I rowsort label-32
SELECT - - MIN ( ALL - ( - 80 ) ) + COUNT ( * ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-33
SELECT - SUM( + 23 ) * - - 52 AS col2
----
-1196

skipif mysql # not compatible
query I rowsort label-33
SELECT - SUM ( + 23 ) * - - 52 AS col2
----
-1196

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT + COUNT( * ) * + - 49 + - 45 col0
----
-94

skipif mysql # not compatible
query I rowsort label-34
SELECT + COUNT ( * ) * + - 49 + - 45 col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-35
SELECT DISTINCT + MAX( ALL 88 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-35
SELECT DISTINCT + MAX ( ALL 88 ) AS col0
----
88

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-38
SELECT + 92 DIV 9 * + 89 * 43
----
38270

skipif mysql # not compatible
query I rowsort label-38
SELECT + 92 / 9 * + 89 * 43
----
38270

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-39
SELECT ALL + COUNT( * ) DIV 86 - + 58 AS col1, 39 AS col2
----
-58
39

skipif mysql # not compatible
query II rowsort label-39
SELECT ALL + COUNT ( * ) / 86 - + 58 AS col1, 39 AS col2
----
-58
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-40
SELECT + + MAX( - 9 ) * + 91 / CAST( NULL AS SIGNED ) + - - 63 * + 1 * + - COUNT( * ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-40
SELECT + + MAX ( - 9 ) * + 91 / CAST ( NULL AS INTEGER ) + - - 63 * + 1 * + - COUNT ( * ) + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 80 * + 32
----
2560

query I rowsort
SELECT + 49 + + 94 * + ( + 54 )
----
5125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-43
SELECT ALL + 40 DIV - 46 + 66 + + + NULLIF ( COUNT( * ), 27 - - MIN( DISTINCT + COALESCE ( + + 17, - - 66 ) ) ) + ( - COUNT( * ) ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-43
SELECT ALL + 40 / - 46 + 66 + + + NULLIF ( COUNT ( * ), 27 - - MIN ( DISTINCT + COALESCE ( + + 17, - - 66 ) ) ) + ( - COUNT ( * ) ) AS col2
----
66

query II rowsort
SELECT ALL - 77 * + - NULLIF ( + - 41, 38 + - 72 / 58 - - - ( - + 59 ) * + 36 ) AS col2, 81
----
-3157
81

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

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

query II rowsort
SELECT - 9 AS col1, 9 col2
----
-9
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-47
SELECT DISTINCT + CASE - 27 WHEN - 80 THEN + - 85 * 16 * COUNT( * ) * + 12 + MIN( DISTINCT + 59 ) + + ( - 79 ) WHEN - 6 THEN - CAST( NULL AS SIGNED ) * + 3 * - ( - - 49 ) * + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-47
SELECT DISTINCT + CASE - 27 WHEN - 80 THEN + - 85 * 16 * COUNT ( * ) * + 12 + MIN ( DISTINCT + 59 ) + + ( - 79 ) WHEN - 6 THEN - CAST ( NULL AS INTEGER ) * + 3 * - ( - - 49 ) * + COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT + + 94 - - 93
----
187

query I rowsort
SELECT DISTINCT + + 70 * - + 39 * 68 + - 70 + - ( + 44 ) * 41 AS col2
----
-187514

query I rowsort
SELECT ALL 77 * + 11 AS col1
----
847

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-51
SELECT ALL 70 + + - ( - 3 ) * - - 89 + - 88 + 34 * 95 AS col1, CASE + CAST( NULL AS DECIMAL ) WHEN - 93 THEN NULL WHEN + + 5 THEN - 4 / + 1 * - COUNT( DISTINCT 65 ) * + NULLIF ( + - 77, - 76 ) + - CASE - 91 WHEN - 41 * + + ( - 95 ) THEN NULL WHEN + - COUNT( * ) * - COUNT( * ) * 22 / - COUNT( * ) - 93 + 23 THEN + - 12 + 85 END + + 65 * CAST( NULL AS DECIMAL ) ELSE NULL END AS col1
----
3479
NULL

skipif mysql # not compatible
query II rowsort label-51
SELECT ALL 70 + + - ( - 3 ) * - - 89 + - 88 + 34 * 95 AS col1, CASE + CAST ( NULL AS REAL ) WHEN - 93 THEN NULL WHEN + + 5 THEN - 4 / + 1 * - COUNT ( DISTINCT 65 ) * + NULLIF ( + - 77, - 76 ) + - CASE - 91 WHEN - 41 * + + ( - 95 ) THEN NULL WHEN + - COUNT ( * ) * - COUNT ( * ) * 22 / - COUNT ( * ) - 93 + 23 THEN + - 12 + 85 END + + 65 * CAST ( NULL AS REAL ) ELSE NULL END AS col1
----
3479
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT 11 - 26 + - COUNT( * ) * + ( 19 )
----
-34

skipif mysql # not compatible
query I rowsort label-52
SELECT 11 - 26 + - COUNT ( * ) * + ( 19 )
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-53
SELECT 21 - - + 24 + SUM( ALL - 32 ) + + NULLIF ( + + 85, - CAST( + 70 AS SIGNED ) ) DIV 28 * + - COALESCE ( - 41, - - 85 ) + + - 94 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-53
SELECT 21 - - + 24 + SUM ( ALL - 32 ) + + NULLIF ( + + 85, - CAST ( + 70 AS INTEGER ) ) / 28 * + - COALESCE ( - 41, - - 85 ) + + - 94 AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-54
SELECT 95 + COALESCE ( - + MAX( + 84 ), - 42 ) + + 7 * + 81
----
578

skipif mysql # not compatible
query I rowsort label-54
SELECT 95 + COALESCE ( - + MAX ( + 84 ), - 42 ) + + 7 * + 81
----
578

query I rowsort
SELECT DISTINCT + ( 57 ) * - - 4 - + + 0 + - - 30 AS col2
----
258

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

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

skipif mysql # not compatible
query I rowsort label-57
SELECT DISTINCT + 27 * + + COUNT ( * ) AS col0
----
27

query I rowsort
SELECT ALL - 0 - + 89
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT DISTINCT + COUNT( * ) * 5 * - CASE ( + + 40 ) WHEN - COUNT( * ) / + COUNT( * ) THEN COUNT( * ) * + 17 * 64 WHEN - + 47 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-59
SELECT DISTINCT + COUNT ( * ) * 5 * - CASE ( + + 40 ) WHEN - COUNT ( * ) / + COUNT ( * ) THEN COUNT ( * ) * + 17 * 64 WHEN - + 47 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT 30 + - 3 * + + 48
----
-114

onlyif mysql # DIV for integer division: 
query I rowsort label-61
SELECT ALL + 0 - + 31 DIV + + ( - - 74 ) * + 52 * + + 8 * - + 99
----
0

skipif mysql # not compatible
query I rowsort label-61
SELECT ALL + 0 - + 31 / + + ( - - 74 ) * + 52 * + + 8 * - + 99
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-62
SELECT DISTINCT - ( + - 72 ) AS col1, 43 DIV - 67 AS col2
----
72
0

skipif mysql # not compatible
query II rowsort label-62
SELECT DISTINCT - ( + - 72 ) AS col1, 43 / - 67 AS col2
----
72
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-65
SELECT COUNT( - 5 ) * - + 72
----
-72

skipif mysql # not compatible
query I rowsort label-65
SELECT COUNT ( - 5 ) * - + 72
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-66
SELECT + 63 * - 53 - + 61 * COALESCE ( - + CAST( + + 3 AS SIGNED ), + 63 * - 34 - - - AVG ( + 61 ) + - 58 ) * - CAST( NULL AS SIGNED ) * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-66
SELECT + 63 * - 53 - + 61 * COALESCE ( - + CAST ( + + 3 AS INTEGER ), + 63 * - 34 - - - AVG ( + 61 ) + - 58 ) * - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-67
SELECT - COUNT ( * ) / + + 25 + 67 AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT + + MAX( ALL + 42 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-68
SELECT + + MAX ( ALL + 42 ) AS col0
----
42

query I rowsort
SELECT ALL - COALESCE ( - 47, ( + 31 ) ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-70
SELECT - 29 * + 58 * - 59 - + - COALESCE ( 89, + - 42 * - + 68, - COUNT( * ) ) + - SUM( DISTINCT 98 )
----
99229

skipif mysql # not compatible
query I rowsort label-70
SELECT - 29 * + 58 * - 59 - + - COALESCE ( 89, + - 42 * - + 68, - COUNT ( * ) ) + - SUM ( DISTINCT 98 )
----
99229

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

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

query I rowsort
SELECT ALL 96 + 58
----
154

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-73
SELECT + CASE WHEN ( - AVG ( DISTINCT + + 81 ) ) IS NOT NULL THEN NULL WHEN NOT 87 IN ( 7 / + + COUNT( * ) + - COUNT( * ), + 56 ) THEN NULL ELSE - 34 + - 84 - + 40 + + 98 * + 19 END * - 52 * - CAST( 45 AS DECIMAL ) + + MAX( + + 46 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-73
SELECT + CASE WHEN ( - AVG ( DISTINCT + + 81 ) ) IS NOT NULL THEN NULL WHEN NOT 87 IN ( 7 / + + COUNT ( * ) + - COUNT ( * ), + 56 ) THEN NULL ELSE - 34 + - 84 - + 40 + + 98 * + 19 END * - 52 * - CAST ( 45 AS REAL ) + + MAX ( + + 46 ) AS col0
----
NULL

query I rowsort
SELECT 89 * + COALESCE ( + - 79, - 80 * + 13 ) AS col1
----
-7031

query I rowsort
SELECT ALL 53 + + 4 AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-76
SELECT + 7 * - 47 * ( - 42 ) + - - COUNT( * ) AS col2
----
13819

skipif mysql # not compatible
query I rowsort label-76
SELECT + 7 * - 47 * ( - 42 ) + - - COUNT ( * ) AS col2
----
13819

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

skipif mysql # not compatible
query I rowsort label-77
SELECT + SUM ( - - 75 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-78
SELECT + NULLIF ( 9, - 29 + - 61 ) + COUNT( * ) + + - 60 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-78
SELECT + NULLIF ( 9, - 29 + - 61 ) + COUNT ( * ) + + - 60 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-79
SELECT 68 * + COUNT( DISTINCT - - 18 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-79
SELECT 68 * + COUNT ( DISTINCT - - 18 ) AS col0
----
68

query I rowsort
SELECT ALL ( + COALESCE ( - 12, + 74 ) ) + - + 18 + - + 85
----
-115

query II rowsort
SELECT 14 * - 95 * + + 16, 9 + - NULLIF ( + 5, + 61 ) AS col2
----
-21280
4

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT 21 + MIN( - + 81 ) * + 77 AS col1
----
-6216

skipif mysql # not compatible
query I rowsort label-82
SELECT 21 + MIN ( - + 81 ) * + 77 AS col1
----
-6216

query I rowsort
SELECT ALL 64 - + 98
----
-34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT ( - COUNT( * ) ) + - 6
----
-7

skipif mysql # not compatible
query I rowsort label-85
SELECT ( - COUNT ( * ) ) + - 6
----
-7

query II rowsort
SELECT ALL 24 AS col2, + 80 + - - NULLIF ( 29, + 75 * - 53 + + 47 * + 35 ) col0
----
24
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-87
SELECT ( 54 ) * 66 * + 37 * + 80 * - - 74 - COALESCE ( + - 20, ( - + 4 ) ) + - 58 DIV - SUM( - + 50 )
----
780658579

skipif mysql # not compatible
query I rowsort label-87
SELECT ( 54 ) * 66 * + 37 * + 80 * - - 74 - COALESCE ( + - 20, ( - + 4 ) ) + - 58 / - SUM ( - + 50 )
----
780658579

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-88
SELECT ALL - 68 - - CAST( - + 37 AS SIGNED ) + - 11
----
-116

skipif mysql # not compatible
query I rowsort label-88
SELECT ALL - 68 - - CAST ( - + 37 AS INTEGER ) + - 11
----
-116

query I rowsort
SELECT 39 * + 3 AS col1
----
117

query II rowsort
SELECT ALL 90 AS col0, 5 * - 1
----
90
-5

query II rowsort
SELECT DISTINCT 41 AS col2, - 54 AS col1
----
41
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-92
SELECT DISTINCT + 96 * - 46 * COUNT( * ), - 53 AS col2
----
-4416
-53

skipif mysql # not compatible
query II rowsort label-92
SELECT DISTINCT + 96 * - 46 * COUNT ( * ), - 53 AS col2
----
-4416
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-93
SELECT DISTINCT + 14 DIV + CASE 88 WHEN + 94 DIV - + COUNT( * ) * 42 * 99 * 39 + - + 89 THEN NULL ELSE 55 END DIV + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-93
SELECT DISTINCT + 14 / + CASE 88 WHEN + 94 / - + COUNT ( * ) * 42 * 99 * 39 + - + 89 THEN NULL ELSE 55 END / + COUNT ( * ) AS col1
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-95
SELECT 71 DIV 45
----
1

skipif mysql # not compatible
query I rowsort label-95
SELECT 71 / 45
----
1

query I rowsort
SELECT DISTINCT - 97 * 68 AS col2
----
-6596

onlyif mysql # aggregate syntax: 
query I rowsort label-97
SELECT ALL - MAX( DISTINCT 34 ) col0
----
-34

skipif mysql # not compatible
query I rowsort label-97
SELECT ALL - MAX ( DISTINCT 34 ) col0
----
-34

query II rowsort
SELECT ALL - 44 * + 23 + - 62 AS col0, 12 * - 8
----
-1074
-96

query I rowsort
SELECT 42 * - 43 - + 65 * + - 18
----
-636

query I rowsort
SELECT ALL - - 44 col0
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-101
SELECT 73 DIV - 30 + + 74 + + 61 AS col2
----
133

skipif mysql # not compatible
query I rowsort label-101
SELECT 73 / - 30 + + 74 + + 61 AS col2
----
133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-102
SELECT DISTINCT - + COUNT( * ) * 59 + + - 37 * 29 - - - COUNT( * ) - - COUNT( * ) + - + MAX( DISTINCT - 26 ) + + 33 DIV + 64 * - 23 col1
----
-1106

skipif mysql # not compatible
query I rowsort label-102
SELECT DISTINCT - + COUNT ( * ) * 59 + + - 37 * 29 - - - COUNT ( * ) - - COUNT ( * ) + - + MAX ( DISTINCT - 26 ) + + 33 / + 64 * - 23 col1
----
-1106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-103
SELECT DISTINCT ( + 23 ) * - 3 - + + 56 + + + 37 + COUNT( * ) DIV - - 44 col2
----
-88

skipif mysql # not compatible
query I rowsort label-103
SELECT DISTINCT ( + 23 ) * - 3 - + + 56 + + + 37 + COUNT ( * ) / - - 44 col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-104
SELECT - COALESCE ( + MIN( 23 ), - COUNT( * ) )
----
-23

skipif mysql # not compatible
query I rowsort label-104
SELECT - COALESCE ( + MIN ( 23 ), - COUNT ( * ) )
----
-23

query I rowsort
SELECT 42 * - ( - 70 ) * - 72 AS col0
----
-211680

onlyif mysql # aggregate syntax: 
query I rowsort label-106
SELECT - COALESCE ( + + 22, + COUNT( * ), - 87 )
----
-22

skipif mysql # not compatible
query I rowsort label-106
SELECT - COALESCE ( + + 22, + COUNT ( * ), - 87 )
----
-22

query II rowsort
SELECT ALL - - 76 + + - 47 + - 64 * + 30 * - - 67 AS col2, 10 AS col0
----
-128611
10

query I rowsort
SELECT ALL + 99 + - 40
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-109
SELECT + - 65 * - MIN( + 13 ) + 59 * CAST( NULL AS SIGNED ) / + + COALESCE ( NULLIF ( ( + - COUNT( * ) ), 93 + + 9 ), ( + 38 ), + 84 / + + 84 / + MAX( DISTINCT - 48 ) * + - 84 - + 24 ) + - 49 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-109
SELECT + - 65 * - MIN ( + 13 ) + 59 * CAST ( NULL AS INTEGER ) / + + COALESCE ( NULLIF ( ( + - COUNT ( * ) ), 93 + + 9 ), ( + 38 ), + 84 / + + 84 / + MAX ( DISTINCT - 48 ) * + - 84 - + 24 ) + - 49 + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-110
SELECT 21 * 88 + 2 - + + COALESCE ( - + ( - CAST( - AVG ( + ( 5 ) ) AS SIGNED ) ), + 94 + - COUNT( * ), - COUNT( * ) ) * - 47 AS col0
----
1615

skipif mysql # not compatible
query I rowsort label-110
SELECT 21 * 88 + 2 - + + COALESCE ( - + ( - CAST ( - AVG ( + ( 5 ) ) AS INTEGER ) ), + 94 + - COUNT ( * ), - COUNT ( * ) ) * - 47 AS col0
----
1615

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

query I rowsort
SELECT ALL - 97 + + 1 + 37
----
-59

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

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

query II rowsort
SELECT 60 AS col1, 90 + - + 84 AS col2
----
60
6

query II rowsort
SELECT 77 AS col0, 55 * - COALESCE ( + 86, 91 * 94, + 56 ) AS col1
----
77
-4730

query I rowsort
SELECT - 23 - + 70 + + ( 53 ) AS col1
----
-40

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

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

query I rowsort
SELECT + 87 * 45
----
3915

onlyif mysql # DIV for integer division: 
query I rowsort label-119
SELECT ALL 11 DIV + 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-119
SELECT ALL 11 / + 94 AS col2
----
0

query I rowsort
SELECT DISTINCT COALESCE ( 0, 32 ) AS col2
----
0

query I rowsort
SELECT + 51 * - 66 AS col1
----
-3366

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-122
SELECT DISTINCT 85 AS col0, + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) + + + COUNT( * ) * + - CAST( - - 96 AS SIGNED )
----
85
NULL

skipif mysql # not compatible
query II rowsort label-122
SELECT DISTINCT 85 AS col0, + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) + + + COUNT ( * ) * + - CAST ( - - 96 AS INTEGER )
----
85
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-123
SELECT ALL AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) / - - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-123
SELECT ALL AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) / - - 43
----
NULL

query I rowsort
SELECT - 39 + - 18
----
-57

query I rowsort
SELECT + 15 + + + 40 * + 71
----
2855

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-126
SELECT - CAST( 3 AS SIGNED ) * + 99 - - COUNT( DISTINCT 24 ) AS col0
----
-296

skipif mysql # not compatible
query I rowsort label-126
SELECT - CAST ( 3 AS INTEGER ) * + 99 - - COUNT ( DISTINCT 24 ) AS col0
----
-296

query I rowsort
SELECT ALL 3 + + 24 AS col0
----
27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-128
SELECT + 9 + 33 + CASE + COUNT( * ) WHEN + - 97 THEN NULL WHEN + + MIN( ALL + 60 ) + COALESCE ( - + 99, + 4 ) THEN NULL ELSE + + 54 - + - AVG ( + 99 ) END + - + ( CAST( NULL AS DECIMAL ) ) * 44 * - MIN( ALL 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-128
SELECT + 9 + 33 + CASE + COUNT ( * ) WHEN + - 97 THEN NULL WHEN + + MIN ( ALL + 60 ) + COALESCE ( - + 99, + 4 ) THEN NULL ELSE + + 54 - + - AVG ( + 99 ) END + - + ( CAST ( NULL AS REAL ) ) * 44 * - MIN ( ALL 29 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-129
SELECT ALL - 55 + - MAX( + - 41 ) * + MAX( ALL + 49 ) col0
----
1954

skipif mysql # not compatible
query I rowsort label-129
SELECT ALL - 55 + - MAX ( + - 41 ) * + MAX ( ALL + 49 ) col0
----
1954

query II rowsort
SELECT + 2 + + 87, 46 AS col0
----
89
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-131
SELECT ALL 72 + + CASE - 85 WHEN + COUNT( * ) THEN 20 + SUM( ALL - - 13 ) + + CASE - 20 WHEN + - 8 + - 73 THEN - 1 / - 67 END WHEN COALESCE ( 4, 83, - 40, + 58 + CAST( NULL AS SIGNED ) ) THEN NULL ELSE NULL END + - - 58 * - CAST( NULL AS DECIMAL ) + + 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-131
SELECT ALL 72 + + CASE - 85 WHEN + COUNT ( * ) THEN 20 + SUM ( ALL - - 13 ) + + CASE - 20 WHEN + - 8 + - 73 THEN - 1 / - 67 END WHEN COALESCE ( 4, 83, - 40, + 58 + CAST ( NULL AS INTEGER ) ) THEN NULL ELSE NULL END + - - 58 * - CAST ( NULL AS REAL ) + + 64 AS col2
----
NULL

query I rowsort
SELECT + 16 + ( + 8 ) * - 25 * + 18 AS col1
----
-3584

query I rowsort
SELECT - - 59 + ( - 98 ) AS col1
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-134
SELECT ALL + 77 AS col2, COALESCE ( + + 66, - + ( + NULLIF ( SUM( ALL + 39 ), + 10 ) ) + - 75 - - COUNT( * ) * + + COUNT( * ) * + 23 * - + 27 )
----
77
66

skipif mysql # not compatible
query II rowsort label-134
SELECT ALL + 77 AS col2, COALESCE ( + + 66, - + ( + NULLIF ( SUM ( ALL + 39 ), + 10 ) ) + - 75 - - COUNT ( * ) * + + COUNT ( * ) * + 23 * - + 27 )
----
77
66

query I rowsort
SELECT + - 89 * + 48 + - 77 col0
----
-4349

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT DISTINCT - 11 * - COUNT( * ) + - 91 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-136
SELECT DISTINCT - 11 * - COUNT ( * ) + - 91 AS col0
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-137
SELECT - + COALESCE ( + 53, 26 ) + ( + 0 ) DIV 83 + COALESCE ( + 12, - 55 ) - - 92 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-137
SELECT - + COALESCE ( + 53, 26 ) + ( + 0 ) / 83 + COALESCE ( + 12, - 55 ) - - 92 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-138
SELECT ALL 73 * - 57 + 8 * - COUNT( * ) AS col1
----
-4169

skipif mysql # not compatible
query I rowsort label-138
SELECT ALL 73 * - 57 + 8 * - COUNT ( * ) AS col1
----
-4169

query I rowsort
SELECT - 74 * - 82
----
6068

query I rowsort
SELECT - - 7 + + ( 28 )
----
35

query I rowsort
SELECT ALL + CASE - + 30 WHEN - - 92 THEN NULL ELSE + 76 END AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT ALL - NULLIF ( COUNT( * ), - 37 ) * - + 4 - + - COUNT( * ) + - + COALESCE ( - 73, + MAX( 21 ) )
----
78

skipif mysql # not compatible
query I rowsort label-142
SELECT ALL - NULLIF ( COUNT ( * ), - 37 ) * - + 4 - + - COUNT ( * ) + - + COALESCE ( - 73, + MAX ( 21 ) )
----
78

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-144
SELECT - - COALESCE ( - MAX( + 96 ), + 65, + CAST( - + 53 AS SIGNED ), 85 ) DIV - - 47
----
-2

skipif mysql # not compatible
query I rowsort label-144
SELECT - - COALESCE ( - MAX ( + 96 ), + 65, + CAST ( - + 53 AS INTEGER ), 85 ) / - - 47
----
-2

query I rowsort
SELECT - 35 + ( + 49 ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-146
SELECT ALL + MIN( + 7 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-146
SELECT ALL + MIN ( + 7 ) AS col0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-147
SELECT - 6 * CAST( - - 32 AS SIGNED ) AS col2
----
-192

skipif mysql # not compatible
query I rowsort label-147
SELECT - 6 * CAST ( - - 32 AS INTEGER ) AS col2
----
-192

query I rowsort
SELECT 4 * - 97 + + 95 AS col1
----
-293

onlyif mysql # aggregate syntax: 
query I rowsort label-149
SELECT COALESCE ( - NULLIF ( ( 29 ), + MIN( ALL 84 ) * + - 46 ), 79 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-149
SELECT COALESCE ( - NULLIF ( ( 29 ), + MIN ( ALL 84 ) * + - 46 ), 79 ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-150
SELECT - 99 + + MAX( ALL - 10 )
----
-109

skipif mysql # not compatible
query I rowsort label-150
SELECT - 99 + + MAX ( ALL - 10 )
----
-109

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

skipif mysql # not compatible
query I rowsort label-151
SELECT DISTINCT CAST ( + - 37 AS INTEGER ) AS col0
----
-37

query I rowsort
SELECT ALL - ( + 69 ) * 13 col0
----
-897

query II rowsort
SELECT - 75 * + - 67, 68 AS col2
----
5025
68

query I rowsort
SELECT - 40 * + + 98
----
-3920

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT DISTINCT - ( + 80 ) + - 99 + + COUNT( * ) AS col2
----
-178

skipif mysql # not compatible
query I rowsort label-155
SELECT DISTINCT - ( + 80 ) + - 99 + + COUNT ( * ) AS col2
----
-178

query II rowsort
SELECT ALL + 42 + 74 AS col1, + 92 * - 80 * - - 92 + - 29
----
116
-677149

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-158
SELECT - 92 DIV - 91 AS col1, - 59 DIV - SUM( - 54 ), - 42 - + 17 * CASE + - 63 WHEN + - 45 THEN NULL WHEN + 71 THEN + 3 END AS col0
----
1
-1
NULL

skipif mysql # not compatible
query III rowsort label-158
SELECT - 92 / - 91 AS col1, - 59 / - SUM ( - 54 ), - 42 - + 17 * CASE + - 63 WHEN + - 45 THEN NULL WHEN + 71 THEN + 3 END AS col0
----
1
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-159
SELECT - 9 * CAST( 90 AS SIGNED )
----
-810

skipif mysql # not compatible
query I rowsort label-159
SELECT - 9 * CAST ( 90 AS INTEGER )
----
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-160
SELECT + COUNT( * ) + + + 58
----
59

skipif mysql # not compatible
query I rowsort label-160
SELECT + COUNT ( * ) + + + 58
----
59

onlyif mysql # DIV for integer division: 
query II rowsort label-161
SELECT ALL 56 DIV - 33 AS col0, 70
----
-1
70

skipif mysql # not compatible
query II rowsort label-161
SELECT ALL 56 / - 33 AS col0, 70
----
-1
70

onlyif mysql # aggregate syntax: 
query I rowsort label-162
SELECT ALL + 79 + - 92 * CASE + 38 WHEN - 44 / + + COUNT( + 75 ) THEN - COALESCE ( - 1, 8 ) ELSE + 77 END AS col0
----
-7005

skipif mysql # not compatible
query I rowsort label-162
SELECT ALL + 79 + - 92 * CASE + 38 WHEN - 44 / + + COUNT ( + 75 ) THEN - COALESCE ( - 1, 8 ) ELSE + 77 END AS col0
----
-7005

query I rowsort
SELECT DISTINCT - NULLIF ( - - ( 54 ), - 99 * - + 60 * - + 65 + - 30 ) + 42 AS col2
----
-12

query I rowsort
SELECT DISTINCT 35 + + 40 * + - 77
----
-3045

query I rowsort
SELECT ALL - 93 + - + 13 + + 42
----
-64

query I rowsort
SELECT ALL + NULLIF ( + - 21, + + 89 ) * 36 col1
----
-756

onlyif mysql # DIV for integer division: 
query I rowsort label-167
SELECT - + 18 DIV + 82 + 50 * - + 17 AS col1
----
-850

skipif mysql # not compatible
query I rowsort label-167
SELECT - + 18 / + 82 + 50 * - + 17 AS col1
----
-850

onlyif mysql # DIV for integer division: 
query II rowsort label-168
SELECT + 23 DIV - 93 AS col2, + 71 + + 36 + 40 - - 56 * ( - + 81 )
----
0
-4389

skipif mysql # not compatible
query II rowsort label-168
SELECT + 23 / - 93 AS col2, + 71 + + 36 + 40 - - 56 * ( - + 81 )
----
0
-4389

query I rowsort
SELECT - 62 * - 30
----
1860

query I rowsort
SELECT + ( - 85 ) * - - 60
----
-5100

query I rowsort
SELECT ALL 6 + + 93 + - - 93 + + - ( 60 ) * + - 10 AS col2
----
792

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-172
SELECT + COALESCE ( + 84, - - 38 * COUNT( * ) + - 16 + - 52 * - - 78 * + 18 ) DIV + 52 * + - 42 DIV + NULLIF ( + + 25, + 49 * - 91 + - 78 ) * + 78 DIV + 76 - + 30
----
-31

skipif mysql # not compatible
query I rowsort label-172
SELECT + COALESCE ( + 84, - - 38 * COUNT ( * ) + - 16 + - 52 * - - 78 * + 18 ) / + 52 * + - 42 / + NULLIF ( + + 25, + 49 * - 91 + - 78 ) * + 78 / + 76 - + 30
----
-31

query I rowsort
SELECT + ( - + COALESCE ( 70, - 95 * - 59 * - + 17 ) ) - 38
----
-108

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-175
SELECT ALL - COUNT( * ) - ( 22 )
----
-23

skipif mysql # not compatible
query I rowsort label-175
SELECT ALL - COUNT ( * ) - ( 22 )
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-176
SELECT + 39 * - 97, COUNT( * ) AS col0
----
-3783
1

skipif mysql # not compatible
query II rowsort label-176
SELECT + 39 * - 97, COUNT ( * ) AS col0
----
-3783
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-177
SELECT - COALESCE ( + 29, COUNT( * ) ) * + COUNT( * ) + - 74 * - CAST( NULL AS SIGNED ) - - ( + - 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-177
SELECT - COALESCE ( + 29, COUNT ( * ) ) * + COUNT ( * ) + - 74 * - CAST ( NULL AS INTEGER ) - - ( + - 64 )
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-179
SELECT 85 AS col2, 53 * COUNT( * ) DIV ( + + 33 )
----
85
1

skipif mysql # not compatible
query II rowsort label-179
SELECT 85 AS col2, 53 * COUNT ( * ) / ( + + 33 )
----
85
1

query I rowsort
SELECT 18 * - 82 + + - ( - + 94 ) AS col1
----
-1382

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-181
SELECT DISTINCT COUNT( * ) DIV 7 DIV 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-181
SELECT DISTINCT COUNT ( * ) / 7 / 63 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT 30 * - 58 * COUNT( * )
----
-1740

skipif mysql # not compatible
query I rowsort label-182
SELECT 30 * - 58 * COUNT ( * )
----
-1740

onlyif mysql # aggregate syntax: 
query II rowsort label-183
SELECT ALL - COALESCE ( - CASE NULLIF ( NULLIF ( 31, - CASE 97 WHEN - 40 + - 35 * + + 71 THEN + ( - 68 ) * + 82 WHEN 11 / - + 59 + - 99 + + COUNT( * ) THEN NULL WHEN + + 93 THEN + COUNT( * ) ELSE NULL END / + + COUNT( * ) ), - - 16 ) WHEN + + COUNT( * ) * 80 + + 17 + + 54 THEN NULL WHEN - 43 - - 44 THEN + 96 * + 45 END, + 44 * - + 85 ), + 53 AS col2
----
3740
53

skipif mysql # not compatible
query II rowsort label-183
SELECT ALL - COALESCE ( - CASE NULLIF ( NULLIF ( 31, - CASE 97 WHEN - 40 + - 35 * + + 71 THEN + ( - 68 ) * + 82 WHEN 11 / - + 59 + - 99 + + COUNT ( * ) THEN NULL WHEN + + 93 THEN + COUNT ( * ) ELSE NULL END / + + COUNT ( * ) ), - - 16 ) WHEN + + COUNT ( * ) * 80 + + 17 + + 54 THEN NULL WHEN - 43 - - 44 THEN + 96 * + 45 END, + 44 * - + 85 ), + 53 AS col2
----
3740
53

onlyif mysql # DIV for integer division: 
query I rowsort label-184
SELECT ALL + 55 DIV + + ( - 59 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-184
SELECT ALL + 55 / + + ( - 59 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-185
SELECT - 20 * + + 29 + + - 97 + + 95 + - + ( 22 ) DIV - 44
----
-582

skipif mysql # not compatible
query I rowsort label-185
SELECT - 20 * + + 29 + + - 97 + + 95 + - + ( 22 ) / - 44
----
-582

query I rowsort
SELECT 55 * - 39
----
-2145

onlyif mysql # aggregate syntax: 
query I rowsort label-187
SELECT ALL - 10 + COUNT( * ) + + 91 * 30 - + + 63 AS col0
----
2658

skipif mysql # not compatible
query I rowsort label-187
SELECT ALL - 10 + COUNT ( * ) + + 91 * 30 - + + 63 AS col0
----
2658

query I rowsort
SELECT 36 - + 64 AS col1
----
-28

query I rowsort
SELECT 45 + - 49
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT 55 + COUNT( * ) + + + COUNT( * ) * + 62
----
118

skipif mysql # not compatible
query I rowsort label-190
SELECT 55 + COUNT ( * ) + + + COUNT ( * ) * + 62
----
118

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

skipif mysql # not compatible
query I rowsort label-191
SELECT ALL - CAST ( NULL AS REAL ) + + + 46 AS col2
----
NULL

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

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

query I rowsort
SELECT ALL + 11 + - 41 + 46
----
16

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-194
SELECT 34 AS col0, - CAST( NULL AS DECIMAL )
----
34
NULL

skipif mysql # not compatible
query II rowsort label-194
SELECT 34 AS col0, - CAST ( NULL AS REAL )
----
34
NULL

query I rowsort
SELECT ALL 50 + - 89
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-196
SELECT 71 - - ( + + ( + 56 ) ) - 79 * 12 + 5 - 57 * + COUNT( * ) col1
----
-873

skipif mysql # not compatible
query I rowsort label-196
SELECT 71 - - ( + + ( + 56 ) ) - 79 * 12 + 5 - 57 * + COUNT ( * ) col1
----
-873

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-197
SELECT - CASE COUNT( * ) WHEN - 12 * + 80 THEN NULL ELSE 47 * + 33 + - COALESCE ( + 44, 88 - 96 * + 58 DIV + 17 * + - COUNT( * ) * + COALESCE ( - 65, + ( + 70 ), - COUNT( * ) ) DIV - 62 ) - + 37 - + 96 * - 83 END
----
-9438

skipif mysql # not compatible
query I rowsort label-197
SELECT - CASE COUNT ( * ) WHEN - 12 * + 80 THEN NULL ELSE 47 * + 33 + - COALESCE ( + 44, 88 - 96 * + 58 / + 17 * + - COUNT ( * ) * + COALESCE ( - 65, + ( + 70 ), - COUNT ( * ) ) / - 62 ) - + 37 - + 96 * - 83 END
----
-9438

query II rowsort
SELECT - 5, + 3 * - 91 AS col0
----
-5
-273

query II rowsort
SELECT - 20 + + NULLIF ( 9, + - 84 + 34 ) * 21, 73 * 61 * + - ( - - 12 ) col0
----
169
-53436

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-200
SELECT ALL + 62 - + 43 + + COUNT( * ) * 67 / + - COUNT( * ) * - + 44 - + 14 + + 35 - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + - - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-200
SELECT ALL + 62 - + 43 + + COUNT ( * ) * 67 / + - COUNT ( * ) * - + 44 - + 14 + + 35 - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - - 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT 50 + - 93 * - MAX( DISTINCT 55 )
----
5165

skipif mysql # not compatible
query I rowsort label-201
SELECT 50 + - 93 * - MAX ( DISTINCT 55 )
----
5165

query II rowsort
SELECT ( - 0 ) + 54, + 86 * 28 AS col0
----
54
2408

query I rowsort
SELECT + 87 + + 2 + + 16 + - + 23 AS col0
----
82

query I rowsort
SELECT ALL + + 90 - ( - - COALESCE ( + - 39, 49 * - 34 + + 72 ) ) AS col0
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-205
SELECT CAST( - 89 AS SIGNED ) + CAST( NULL AS SIGNED ) * - 62 / - 66 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-205
SELECT CAST ( - 89 AS INTEGER ) + CAST ( NULL AS INTEGER ) * - 62 / - 66 col1
----
NULL

query I rowsort
SELECT ALL 40 - + 48
----
-8

query II rowsort
SELECT ALL - - 79, - 21 col2
----
79
-21

query I rowsort
SELECT ALL 53 * + 31 * + 35
----
57505

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

onlyif mysql # aggregate syntax: 
query I rowsort label-210
SELECT + + 94 * + NULLIF ( 83, + - COUNT( * ) * + + 94 - + 90 ) + + 37
----
7839

skipif mysql # not compatible
query I rowsort label-210
SELECT + + 94 * + NULLIF ( 83, + - COUNT ( * ) * + + 94 - + 90 ) + + 37
----
7839

query I rowsort
SELECT DISTINCT - 18 * + + 56
----
-1008

query I rowsort
SELECT DISTINCT 24 * + 38 col1
----
912

query I rowsort
SELECT DISTINCT ( - 94 ) + + 87
----
-7

onlyif mysql # DIV for integer division: 
query II rowsort label-214
SELECT 65 + - 94 AS col1, 95 DIV 50
----
-29
1

skipif mysql # not compatible
query II rowsort label-214
SELECT 65 + - 94 AS col1, 95 / 50
----
-29
1

query I rowsort
SELECT ALL 87 + - 27 + + - 49 col0
----
11

query I rowsort
SELECT DISTINCT 45 * - + 14 AS col0
----
-630

onlyif mysql # aggregate syntax: 
query II rowsort label-217
SELECT 78 * + - 33 + - - SUM( ( - 60 ) ) AS col1, - 22 * + + 89
----
-2634
-1958

skipif mysql # not compatible
query II rowsort label-217
SELECT 78 * + - 33 + - - SUM ( ( - 60 ) ) AS col1, - 22 * + + 89
----
-2634
-1958

query I rowsort
SELECT ( - - 12 ) - - 31 AS col0
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-219
SELECT CAST( - CAST( - 60 AS SIGNED ) AS SIGNED ) + - COUNT( ALL - - 15 )
----
59

skipif mysql # not compatible
query I rowsort label-219
SELECT CAST ( - CAST ( - 60 AS INTEGER ) AS INTEGER ) + - COUNT ( ALL - - 15 )
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-220
SELECT ALL CAST( + 71 AS SIGNED ) + - COUNT( * ) + - 41 * 74 / + + CAST( NULL AS SIGNED ) * 10 + + 31 * + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-220
SELECT ALL CAST ( + 71 AS INTEGER ) + - COUNT ( * ) + - 41 * 74 / + + CAST ( NULL AS INTEGER ) * 10 + + 31 * + 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT ALL - 79 + + + SUM( 4 ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-221
SELECT ALL - 79 + + + SUM ( 4 ) AS col0
----
-75

query I rowsort
SELECT 71 + + - 18 * + 16 + + 23 AS col1
----
-194

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

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

query I rowsort
SELECT 80 + + 73 + 81 * + 52 * + 78 AS col0
----
328689

query I rowsort
SELECT 90 + - + 38 - + 46
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT ALL + 79 - SUM( DISTINCT + - 11 ) + + 64 - + 19 + + 94 AS col2
----
229

skipif mysql # not compatible
query I rowsort label-226
SELECT ALL + 79 - SUM ( DISTINCT + - 11 ) + + 64 - + 19 + + 94 AS col2
----
229

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-227
SELECT + 44 / - CASE - - 55 WHEN 31 + CAST( - MIN( ALL - + ( - + 22 ) ) AS SIGNED ) THEN - 57 + COUNT( * ) WHEN + - 40 THEN + + NULLIF ( 82, + 77 ) END + + 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-227
SELECT + 44 / - CASE - - 55 WHEN 31 + CAST ( - MIN ( ALL - + ( - + 22 ) ) AS INTEGER ) THEN - 57 + COUNT ( * ) WHEN + - 40 THEN + + NULLIF ( 82, + 77 ) END + + 4 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-228
SELECT 62 * + ( COUNT( * ) ) DIV 97 + - + 15
----
-15

skipif mysql # not compatible
query I rowsort label-228
SELECT 62 * + ( COUNT ( * ) ) / 97 + - + 15
----
-15

query I rowsort
SELECT CASE + 91 WHEN 40 THEN 3 * - + ( + 21 ) END * 62
----
NULL

query II rowsort
SELECT ALL 41 - + + 98, 42 col1
----
-57
42

query I rowsort
SELECT - ( - 40 ) * - 59 + - - 11 * 45
----
-1865

onlyif mysql # aggregate syntax: 
query I rowsort label-232
SELECT ALL - COALESCE ( + + 55, CASE - 34 WHEN 19 + + - MAX( ALL - 97 ) THEN + 23 - - + 58 + + 3 END, COUNT( * ) ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-232
SELECT ALL - COALESCE ( + + 55, CASE - 34 WHEN 19 + + - MAX ( ALL - 97 ) THEN + 23 - - + 58 + + 3 END, COUNT ( * ) ) AS col1
----
-55

query I rowsort
SELECT - 51 + 74 + - 20
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT - 1 - - + ( + + COUNT( * ) ) * + 81 * - - 50 + + + 89
----
4138

skipif mysql # not compatible
query I rowsort label-234
SELECT - 1 - - + ( + + COUNT ( * ) ) * + 81 * - - 50 + + + 89
----
4138

onlyif mysql # aggregate syntax: 
query I rowsort label-235
SELECT ALL + - MIN( DISTINCT - 14 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-235
SELECT ALL + - MIN ( DISTINCT - 14 ) AS col1
----
14

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

query II rowsort
SELECT ALL 47 * - 75 * + + 68 AS col1, 7 * + ( + 91 ) + 79 AS col2
----
-239700
716

query I rowsort
SELECT ALL - 65 * 27 + ( + 25 )
----
-1730

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-239
SELECT - 23 + + - 87 - + COUNT( DISTINCT + 47 ) DIV + 22 * + - 79 * + 60 AS col2
----
-110

skipif mysql # not compatible
query I rowsort label-239
SELECT - 23 + + - 87 - + COUNT ( DISTINCT + 47 ) / + 22 * + - 79 * + 60 AS col2
----
-110

query I rowsort
SELECT - 40 * + - 56 * + 78 AS col2
----
174720

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

skipif mysql # not compatible
query I rowsort label-241
SELECT + MIN ( + 0 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-242
SELECT DISTINCT + 32 * 38 * + 4 + + COALESCE ( - + 86, + 21 * + - 18 * - COUNT( * ) * 18 * 0 DIV 95, + + COUNT( DISTINCT - 98 ) ) col1
----
4778

skipif mysql # not compatible
query I rowsort label-242
SELECT DISTINCT + 32 * 38 * + 4 + + COALESCE ( - + 86, + 21 * + - 18 * - COUNT ( * ) * 18 * 0 / 95, + + COUNT ( DISTINCT - 98 ) ) col1
----
4778

query I rowsort
SELECT ALL - 55 * - - 81 AS col0
----
-4455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-244
SELECT ALL 12 * + 35 + + - 94 - - - 10 - - 10 / - ( - COUNT( * ) ) * + 2 / CASE 0 WHEN CASE + - 51 WHEN + + 7 THEN 22 * + 79 WHEN - 33 / + 85 - + 41 / - CAST( - CASE + 11 WHEN - 80 THEN + 14 WHEN + + 53 THEN NULL END AS SIGNED ) + - - COALESCE ( + 24, + 57 - 54 ) THEN NULL WHEN 84 + + + 24 THEN NULL WHEN SUM( - + 0 ) THEN NULL END - COUNT( * ) + - + COUNT( * ) * + - 34 + COUNT( * ) * COUNT( * ) - 29 * + 18 THEN CASE 84 WHEN + 59 * 24 THEN - 62 * - CASE + 64 WHEN 21 * + + 35 THEN - 17 END WHEN 54 THEN NULL END WHEN 25 * - 16 - 3 * + MIN( DISTINCT 30 ) THEN - 0 * - ( 3 ) WHEN - ( + 23 ) * + 92 THEN NULL END / - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-244
SELECT ALL 12 * + 35 + + - 94 - - - 10 - - 10 / - ( - COUNT ( * ) ) * + 2 / CASE 0 WHEN CASE + - 51 WHEN + + 7 THEN 22 * + 79 WHEN - 33 / + 85 - + 41 / - CAST ( - CASE + 11 WHEN - 80 THEN + 14 WHEN + + 53 THEN NULL END AS INTEGER ) + - - COALESCE ( + 24, + 57 - 54 ) THEN NULL WHEN 84 + + + 24 THEN NULL WHEN SUM ( - + 0 ) THEN NULL END - COUNT ( * ) + - + COUNT ( * ) * + - 34 + COUNT ( * ) * COUNT ( * ) - 29 * + 18 THEN CASE 84 WHEN + 59 * 24 THEN - 62 * - CASE + 64 WHEN 21 * + + 35 THEN - 17 END WHEN 54 THEN NULL END WHEN 25 * - 16 - 3 * + MIN ( DISTINCT 30 ) THEN - 0 * - ( 3 ) WHEN - ( + 23 ) * + 92 THEN NULL END / - COUNT ( * ) col0
----
NULL

query I rowsort
SELECT DISTINCT - 55 * + 20 * + 14 + + 40
----
-15360

onlyif mysql # aggregate syntax: 
query I rowsort label-246
SELECT DISTINCT 24 * 11 - + + COUNT( * )
----
263

skipif mysql # not compatible
query I rowsort label-246
SELECT DISTINCT 24 * 11 - + + COUNT ( * )
----
263

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

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

query I rowsort
SELECT + 74 * - 47 + + + 91 + - 34
----
-3421

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

onlyif mysql # aggregate syntax: 
query I rowsort label-250
SELECT MIN( ALL 31 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-250
SELECT MIN ( ALL 31 ) AS col2
----
31

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

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

query I rowsort
SELECT + 79 * + 33 AS col1
----
2607

query I rowsort
SELECT ALL 91 * 90 AS col1
----
8190

query I rowsort
SELECT + 97 + 40
----
137

query I rowsort
SELECT ALL 2 - 34 AS col1
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-256
SELECT + CASE - CAST( NULL AS SIGNED ) WHEN - 40 + 60 THEN 17 * COUNT( * ) WHEN 75 THEN NULL END + 50 * - 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-256
SELECT + CASE - CAST ( NULL AS INTEGER ) WHEN - 40 + 60 THEN 17 * COUNT ( * ) WHEN 75 THEN NULL END + 50 * - 93 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-257
SELECT ALL + COALESCE ( + 7, ( 18 ) * 5 ) - + COALESCE ( - 25 + + 32, - 32 * CAST( 10 AS SIGNED ) ) * + COALESCE ( 35 * 93, 38 DIV 67 - 90 )
----
-22778

skipif mysql # not compatible
query I rowsort label-257
SELECT ALL + COALESCE ( + 7, ( 18 ) * 5 ) - + COALESCE ( - 25 + + 32, - 32 * CAST ( 10 AS INTEGER ) ) * + COALESCE ( 35 * 93, 38 / 67 - 90 )
----
-22778

query I rowsort
SELECT + 49 + 90
----
139

onlyif mysql # DIV for integer division: 
query I rowsort label-259
SELECT + 67 DIV 57 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-259
SELECT + 67 / 57 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT + ( 58 ) + + COUNT( * ) * 72 AS col2
----
130

skipif mysql # not compatible
query I rowsort label-260
SELECT + ( 58 ) + + COUNT ( * ) * 72 AS col2
----
130

onlyif mysql # DIV for integer division: 
query I rowsort label-261
SELECT - 43 - + 88 DIV 46
----
-44

skipif mysql # not compatible
query I rowsort label-261
SELECT - 43 - + 88 / 46
----
-44

query I rowsort
SELECT - 19 + 24
----
5

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

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

query I rowsort
SELECT - 95 + 86 * - 95
----
-8265

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-265
SELECT + 7 + NULLIF ( CAST( + 92 AS SIGNED ), - 24 * CASE 7 WHEN 77 * ( CASE WHEN NULL BETWEEN + 88 AND ( NULL ) THEN + 49 * + CASE 9 / - 39 WHEN + 45 THEN NULL WHEN 17 THEN 22 + 11 END + 5 ELSE + 73 END ) THEN + NULLIF ( 15, 86 ) END ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-265
SELECT + 7 + NULLIF ( CAST ( + 92 AS INTEGER ), - 24 * CASE 7 WHEN 77 * ( CASE WHEN NULL BETWEEN + 88 AND ( NULL ) THEN + 49 * + CASE 9 / - 39 WHEN + 45 THEN NULL WHEN 17 THEN 22 + 11 END + 5 ELSE + 73 END ) THEN + NULLIF ( 15, 86 ) END ) AS col2
----
99

query I rowsort
SELECT ALL - ( - 81 ) + 46
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-267
SELECT + 83 + - COALESCE ( COALESCE ( + 29, COUNT( * ) * MIN( + 95 ), 79 ), - 57 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-267
SELECT + 83 + - COALESCE ( COALESCE ( + 29, COUNT ( * ) * MIN ( + 95 ), 79 ), - 57 ) AS col2
----
54

query I rowsort
SELECT - 59 + ( 5 ) AS col2
----
-54

query I rowsort
SELECT ALL ( + 27 ) + 29 AS col1
----
56

query I rowsort
SELECT DISTINCT - 68 * 42
----
-2856

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-271
SELECT ALL 96 DIV 86 + ( COALESCE ( - 2, COUNT( * ) * 38 ) + 8 )
----
7

skipif mysql # not compatible
query I rowsort label-271
SELECT ALL 96 / 86 + ( COALESCE ( - 2, COUNT ( * ) * 38 ) + 8 )
----
7

query I rowsort
SELECT + 23 * + 51
----
1173

query I rowsort
SELECT - 29 + 22 AS col1
----
-7

query I rowsort
SELECT - 47 * 28
----
-1316

query I rowsort
SELECT + 84 * - 63 + + ( 38 + 31 ) AS col1
----
-5223

query I rowsort
SELECT DISTINCT - ( + NULLIF ( ( + 75 ), + 41 ) ) * 63
----
-4725

query I rowsort
SELECT + COALESCE ( + COALESCE ( - 61, + 38 ), + 47 * 32, 38 ) AS col1
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-278
SELECT 15 DIV + 45 + - 52
----
-52

skipif mysql # not compatible
query I rowsort label-278
SELECT 15 / + 45 + - 52
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-279
SELECT DISTINCT - COALESCE ( + 65, + 12 ) DIV - 10 + COUNT( * ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-279
SELECT DISTINCT - COALESCE ( + 65, + 12 ) / - 10 + COUNT ( * ) AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT - MIN( DISTINCT - 27 ) + + 8
----
35

skipif mysql # not compatible
query I rowsort label-280
SELECT - MIN ( DISTINCT - 27 ) + + 8
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-281
SELECT - 46 DIV - NULLIF ( 42, 29 DIV 25 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-281
SELECT - 46 / - NULLIF ( 42, 29 / 25 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-282
SELECT DISTINCT + CASE 81 WHEN + 30 - + 57 / 30 THEN NULL ELSE + COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-282
SELECT DISTINCT + CASE 81 WHEN + 30 - + 57 / 30 THEN NULL ELSE + COUNT ( * ) END
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-283
SELECT DISTINCT - 34 DIV + 57
----
0

skipif mysql # not compatible
query I rowsort label-283
SELECT DISTINCT - 34 / + 57
----
0

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

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

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

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

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

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

query I rowsort
SELECT + 45 * 44 + ( 22 )
----
2002

query I rowsort
SELECT + 85 * 15 col1
----
1275

query I rowsort
SELECT ALL 91 * - 56 col1
----
-5096

query I rowsort
SELECT + CASE + 22 WHEN 6 * + 82 THEN NULL ELSE - 9 END * ( - 80 * 50 ) + 58
----
36058

onlyif mysql # aggregate syntax: 
query I rowsort label-291
SELECT 83 - 4 * CASE + 90 WHEN + 81 THEN 0 * - COUNT( * ) + 14 * + 33 WHEN 59 + 76 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-291
SELECT 83 - 4 * CASE + 90 WHEN + 81 THEN 0 * - COUNT ( * ) + 14 * + 33 WHEN 59 + 76 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT ALL - - NULLIF ( 64, MIN( ALL - NULLIF ( 70, - 75 ) ) * + 92 ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-292
SELECT ALL - - NULLIF ( 64, MIN ( ALL - NULLIF ( 70, - 75 ) ) * + 92 ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT + NULLIF ( + 82, - MIN( DISTINCT + 13 ) )
----
82

skipif mysql # not compatible
query I rowsort label-293
SELECT + NULLIF ( + 82, - MIN ( DISTINCT + 13 ) )
----
82

query I rowsort
SELECT 25 + + 43 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-295
SELECT - MAX( ALL - 93 ) + COUNT( * ) * 95
----
188

skipif mysql # not compatible
query I rowsort label-295
SELECT - MAX ( ALL - 93 ) + COUNT ( * ) * 95
----
188

query I rowsort
SELECT - 89 + - ( - 35 ) * + 73 col2
----
2466

query I rowsort
SELECT - 33 * - 21 AS col2
----
693

query I rowsort
SELECT 64 * 32
----
2048

query I rowsort
SELECT ALL 86 + - 74 col1
----
12

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-301
SELECT ALL + 7 * + CASE 46 * + 89 WHEN - 82 + CAST( 60 + 91 * - ( - 85 ) AS SIGNED ) THEN COUNT( * ) WHEN - CAST( + 59 AS SIGNED ) * ( - 99 * ( - 17 ) ) THEN - 33 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-301
SELECT ALL + 7 * + CASE 46 * + 89 WHEN - 82 + CAST ( 60 + 91 * - ( - 85 ) AS INTEGER ) THEN COUNT ( * ) WHEN - CAST ( + 59 AS INTEGER ) * ( - 99 * ( - 17 ) ) THEN - 33 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT MIN( 88 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-302
SELECT MIN ( 88 ) AS col1
----
88

query I rowsort
SELECT DISTINCT + - 82 + + 45 AS col0
----
-37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-305
SELECT - ( MIN( - 34 ) ) * 39 col1
----
1326

skipif mysql # not compatible
query I rowsort label-305
SELECT - ( MIN ( - 34 ) ) * 39 col1
----
1326

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT + 49 + + SUM( DISTINCT 90 )
----
139

skipif mysql # not compatible
query I rowsort label-306
SELECT + 49 + + SUM ( DISTINCT 90 )
----
139

onlyif mysql # DIV for integer division: 
query I rowsort label-307
SELECT 68 DIV + 65
----
1

skipif mysql # not compatible
query I rowsort label-307
SELECT 68 / + 65
----
1

query I rowsort
SELECT COALESCE ( - 8, 65, - 73 ) - 87 AS col1
----
-95

query I rowsort
SELECT 75 * + 50 * NULLIF ( 73, + 80 + + 19 / + 19 )
----
273750

onlyif mysql # aggregate syntax: 
query I rowsort label-310
SELECT ALL - 65 + - ( - COUNT( * ) )
----
-64

skipif mysql # not compatible
query I rowsort label-310
SELECT ALL - 65 + - ( - COUNT ( * ) )
----
-64

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

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

query I rowsort
SELECT ALL - COALESCE ( - 10, 2 ) AS col0
----
10

query I rowsort
SELECT DISTINCT - 38 * - 46 col1
----
1748

query I rowsort
SELECT ALL 28 - + 29 * + 2 col0
----
-30

query I rowsort
SELECT ( 51 ) + + ( 10 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-316
SELECT + 4 * + + 93 * 5 - + NULLIF ( - 68, CASE + 8 WHEN - 65 THEN NULL ELSE - 99 END * COUNT( ALL - ( + 71 ) * - 24 + + 68 ) ) col1
----
1928

skipif mysql # not compatible
query I rowsort label-316
SELECT + 4 * + + 93 * 5 - + NULLIF ( - 68, CASE + 8 WHEN - 65 THEN NULL ELSE - 99 END * COUNT ( ALL - ( + 71 ) * - 24 + + 68 ) ) col1
----
1928

query I rowsort
SELECT ALL - NULLIF ( - + 53, - 39 )
----
53

query I rowsort
SELECT 93 - 4 * + 46
----
-91

query I rowsort
SELECT ALL - 20 * + + NULLIF ( NULLIF ( + 53, ( 52 ) ), 85 ) AS col2
----
-1060

onlyif mysql # aggregate syntax: 
query I rowsort label-320
SELECT CASE - - ( COUNT( * ) ) WHEN MIN( 78 ) THEN - 52 WHEN 25 THEN NULL END * 55 + 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-320
SELECT CASE - - ( COUNT ( * ) ) WHEN MIN ( 78 ) THEN - 52 WHEN 25 THEN NULL END * 55 + 81 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( + - 46, + ( - 8 ) + - 44 * - 71 )
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-322
SELECT DISTINCT + 96 DIV + 55 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-322
SELECT DISTINCT + 96 / + 55 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-323
SELECT ( + + 81 ) DIV 67 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-323
SELECT ( + + 81 ) / 67 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-324
SELECT + + COUNT( * ) * CASE - 90 WHEN COUNT( * ) + - 47 * 94 THEN 55 ELSE NULL END - - 77 * - 29 + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-324
SELECT + + COUNT ( * ) * CASE - 90 WHEN COUNT ( * ) + - 47 * 94 THEN 55 ELSE NULL END - - 77 * - 29 + 93
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-325
SELECT ALL + 51 DIV 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-325
SELECT ALL + 51 / 70 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-326
SELECT - CASE + 36 WHEN - 45 - + CAST( 27 AS SIGNED ) THEN + 97 WHEN ( - 21 ) THEN NULL ELSE 96 + + 81 END
----
-177

skipif mysql # not compatible
query I rowsort label-326
SELECT - CASE + 36 WHEN - 45 - + CAST ( 27 AS INTEGER ) THEN + 97 WHEN ( - 21 ) THEN NULL ELSE 96 + + 81 END
----
-177

query I rowsort
SELECT 19 + 53 col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-328
SELECT ALL - 33 + + MAX( ALL - 32 ) * 42
----
-1377

skipif mysql # not compatible
query I rowsort label-328
SELECT ALL - 33 + + MAX ( ALL - 32 ) * 42
----
-1377

onlyif mysql # aggregate syntax: 
query I rowsort label-329
SELECT + NULLIF ( - + COUNT( * ), 85 + 52 * 65 ) + - 3
----
-4

skipif mysql # not compatible
query I rowsort label-329
SELECT + NULLIF ( - + COUNT ( * ), 85 + 52 * 65 ) + - 3
----
-4

query I rowsort
SELECT DISTINCT - 99 + + 31 + - 75 AS col1
----
-143

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-331
SELECT ( - 73 ) + CAST( NULL AS DECIMAL ) * 29
----
NULL

skipif mysql # not compatible
query I rowsort label-331
SELECT ( - 73 ) + CAST ( NULL AS REAL ) * 29
----
NULL

query I rowsort
SELECT ALL - - 76 + - 65 col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-333
SELECT DISTINCT + - 13 + - COUNT( * ) col0
----
-14

skipif mysql # not compatible
query I rowsort label-333
SELECT DISTINCT + - 13 + - COUNT ( * ) col0
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-334
SELECT - COUNT( * ) + + + ( + ( 19 ) ) DIV - 48
----
-1

skipif mysql # not compatible
query I rowsort label-334
SELECT - COUNT ( * ) + + + ( + ( 19 ) ) / - 48
----
-1

query I rowsort
SELECT - 90 + ( 95 ) * 3 AS col1
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-336
SELECT - CASE AVG ( DISTINCT - 73 ) WHEN - ( + 66 ) THEN + COUNT( * ) ELSE 41 - 99 END
----
58

skipif mysql # not compatible
query I rowsort label-336
SELECT - CASE AVG ( DISTINCT - 73 ) WHEN - ( + 66 ) THEN + COUNT ( * ) ELSE 41 - 99 END
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT - 3 + + - MIN( ALL + 61 )
----
-64

skipif mysql # not compatible
query I rowsort label-337
SELECT - 3 + + - MIN ( ALL + 61 )
----
-64

query I rowsort
SELECT NULLIF ( + - 34, - 23 + - 24 ) AS col2
----
-34

query I rowsort
SELECT 27 + - - 42 AS col2
----
69

query I rowsort
SELECT ALL 88 + - 77 - - 32 + 30 * + 69
----
2113

query I rowsort
SELECT 39 + + 97 * - 0 * 74
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-342
SELECT - COUNT( * ) AS col2, - 98 + - 89
----
-1
-187

skipif mysql # not compatible
query II rowsort label-342
SELECT - COUNT ( * ) AS col2, - 98 + - 89
----
-1
-187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-343
SELECT ALL 52 - + 96 + - 36 / AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-343
SELECT ALL 52 - + 96 + - 36 / AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 17 * 80
----
1360

query II rowsort
SELECT DISTINCT 17, 32 AS col2
----
17
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-346
SELECT DISTINCT 87 - - + COALESCE ( - - COALESCE ( + CAST( NULL AS SIGNED ), COUNT( * ) DIV + 62 ), - 67 ) * + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-346
SELECT DISTINCT 87 - - + COALESCE ( - - COALESCE ( + CAST ( NULL AS INTEGER ), COUNT ( * ) / + 62 ), - 67 ) * + COUNT ( * )
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-347
SELECT COUNT( * ) + - 78 + - - 45 + - 25 DIV - 61 * 80
----
-32

skipif mysql # not compatible
query I rowsort label-347
SELECT COUNT ( * ) + - 78 + - - 45 + - 25 / - 61 * 80
----
-32

query I rowsort
SELECT 84 + 80
----
164

query II rowsort
SELECT DISTINCT - 22 AS col1, 69
----
-22
69

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT + COUNT( * ) * + 7 + + 67 - 45 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-350
SELECT + COUNT ( * ) * + 7 + + 67 - 45 AS col1
----
29

query I rowsort
SELECT 0 * 53
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-352
SELECT ALL - COUNT( * ), 53 DIV - + 50 AS col2
----
-1
-1

skipif mysql # not compatible
query II rowsort label-352
SELECT ALL - COUNT ( * ), 53 / - + 50 AS col2
----
-1
-1

query I rowsort
SELECT + 80 * + 61 * 97
----
473360

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-355
SELECT ALL + COUNT( + ( 65 ) ) DIV - NULLIF ( COUNT( DISTINCT 3 ) + 78, 16 )
----
0

skipif mysql # not compatible
query I rowsort label-355
SELECT ALL + COUNT ( + ( 65 ) ) / - NULLIF ( COUNT ( DISTINCT 3 ) + 78, 16 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-356
SELECT + CAST( + 62 AS SIGNED ) + 78
----
140

skipif mysql # not compatible
query I rowsort label-356
SELECT + CAST ( + 62 AS INTEGER ) + 78
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-357
SELECT + CASE + COUNT( + - 71 ) WHEN - CAST( + 46 AS SIGNED ) + - SUM( 41 - 38 ) / 3 THEN NULL WHEN 35 THEN - COUNT( * ) END * 74
----
NULL

skipif mysql # not compatible
query I rowsort label-357
SELECT + CASE + COUNT ( + - 71 ) WHEN - CAST ( + 46 AS INTEGER ) + - SUM ( 41 - 38 ) / 3 THEN NULL WHEN 35 THEN - COUNT ( * ) END * 74
----
NULL

query II rowsort
SELECT - 42 col0, 29 * + ( 36 ) * 0 AS col0
----
-42
0

onlyif mysql # aggregate syntax: 
query I rowsort label-359
SELECT - MAX( ALL + COALESCE ( 36, + 88 * 45, - 16 + 40, + 12 ) ) * - 84 + 32
----
3056

skipif mysql # not compatible
query I rowsort label-359
SELECT - MAX ( ALL + COALESCE ( 36, + 88 * 45, - 16 + 40, + 12 ) ) * - 84 + 32
----
3056

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT + + 17 * 11 * + COUNT( * ) + 55 * COUNT( * ) AS col0
----
242

skipif mysql # not compatible
query I rowsort label-360
SELECT + + 17 * 11 * + COUNT ( * ) + 55 * COUNT ( * ) AS col0
----
242

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

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

query I rowsort
SELECT - + 36 + - 74
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT ALL - 66 * 42 + - 77 + CASE + 48 - - 36 WHEN COUNT( - 75 ) THEN NULL WHEN 92 THEN - 90 * 43 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-363
SELECT ALL - 66 * 42 + - 77 + CASE + 48 - - 36 WHEN COUNT ( - 75 ) THEN NULL WHEN 92 THEN - 90 * 43 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT DISTINCT + COUNT( * ) * - - CASE - 42 WHEN 34 THEN - 15 * 66 WHEN 79 THEN - 8 ELSE NULL END + ( 44 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-364
SELECT DISTINCT + COUNT ( * ) * - - CASE - 42 WHEN 34 THEN - 15 * 66 WHEN 79 THEN - 8 ELSE NULL END + ( 44 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-365
SELECT ALL - MAX( - 69 ) * + 57
----
3933

skipif mysql # not compatible
query I rowsort label-365
SELECT ALL - MAX ( - 69 ) * + 57
----
3933

onlyif mysql # aggregate syntax: 
query I rowsort label-366
SELECT DISTINCT + 80 * + + 55 + - + COUNT( * ) + + 84 AS col1
----
4483

skipif mysql # not compatible
query I rowsort label-366
SELECT DISTINCT + 80 * + + 55 + - + COUNT ( * ) + + 84 AS col1
----
4483

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

query I rowsort
SELECT ALL 7 + 59 AS col1
----
66

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

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

query I rowsort
SELECT DISTINCT + NULLIF ( 16, - AVG ( DISTINCT 63 ) )
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-371
SELECT DISTINCT + 78 col2, COUNT( * ) * - 90 AS col2
----
78
-90

skipif mysql # not compatible
query II rowsort label-371
SELECT DISTINCT + 78 col2, COUNT ( * ) * - 90 AS col2
----
78
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-372
SELECT - + 24 * 99 DIV 89 * - 2 - - 45 AS col2
----
97

skipif mysql # not compatible
query I rowsort label-372
SELECT - + 24 * 99 / 89 * - 2 - - 45 AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-373
SELECT - - COUNT( * ) * ( 52 ) - - COALESCE ( - 79, 3 ) * - 40 AS col1
----
3212

skipif mysql # not compatible
query I rowsort label-373
SELECT - - COUNT ( * ) * ( 52 ) - - COALESCE ( - 79, 3 ) * - 40 AS col1
----
3212

onlyif mysql # DIV for integer division: 
query I rowsort label-374
SELECT ALL + - 69 DIV - - 4 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-374
SELECT ALL + - 69 / - - 4 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT ALL ( + MIN( + 90 ) )
----
90

skipif mysql # not compatible
query I rowsort label-375
SELECT ALL ( + MIN ( + 90 ) )
----
90

query I rowsort
SELECT ALL 41 * 2 AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT DISTINCT COALESCE ( 62, - 35, - ( + COUNT( * ) ) + 80 * + ( + COALESCE ( 57, 38, 6, - 74 * 17 ) ) ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-377
SELECT DISTINCT COALESCE ( 62, - 35, - ( + COUNT ( * ) ) + 80 * + ( + COALESCE ( 57, 38, 6, - 74 * 17 ) ) ) AS col0
----
62

query I rowsort
SELECT DISTINCT + 47 - + NULLIF ( 71, + - ( 52 ) * + 0 + 96 / - 53 )
----
-24

query I rowsort
SELECT ALL ( 77 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-380
SELECT - COUNT( * ) + + + 80
----
79

skipif mysql # not compatible
query I rowsort label-380
SELECT - COUNT ( * ) + + + 80
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-381
SELECT DISTINCT CAST( + MIN( - + 14 ) AS SIGNED )
----
-14

skipif mysql # not compatible
query I rowsort label-381
SELECT DISTINCT CAST ( + MIN ( - + 14 ) AS INTEGER )
----
-14

query I rowsort
SELECT - ( + + 56 ) - + 13 AS col1
----
-69

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

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT + COALESCE ( + 55, - MAX( - - 79 ) * + 71 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-384
SELECT + COALESCE ( + 55, - MAX ( - - 79 ) * + 71 ) AS col0
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-385
SELECT ALL + 3 DIV + 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-385
SELECT ALL + 3 / + 64 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-386
SELECT ALL + COUNT( * ) DIV - + 31 * - + COUNT( * ) * + CAST( ( 91 ) AS SIGNED ) + COALESCE ( 78, 57 )
----
78

skipif mysql # not compatible
query I rowsort label-386
SELECT ALL + COUNT ( * ) / - + 31 * - + COUNT ( * ) * + CAST ( ( 91 ) AS INTEGER ) + COALESCE ( 78, 57 )
----
78

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

skipif mysql # not compatible
query I rowsort label-387
SELECT DISTINCT COUNT ( DISTINCT + 47 ) * + + 64 AS col1
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-388
SELECT - 57 DIV CAST( COUNT( * ) AS SIGNED ) * - NULLIF ( + 1, 68 * ( - 83 ) ) * + 8 - 5 AS col2
----
451

skipif mysql # not compatible
query I rowsort label-388
SELECT - 57 / CAST ( COUNT ( * ) AS INTEGER ) * - NULLIF ( + 1, 68 * ( - 83 ) ) * + 8 - 5 AS col2
----
451

onlyif mysql # DIV for integer division: 
query I rowsort label-389
SELECT + + 40 DIV + - 46 * ( - 92 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-389
SELECT + + 40 / + - 46 * ( - 92 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-390
SELECT ALL - 19 * + CASE + + 92 WHEN + 54 THEN + 58 ELSE NULL END + + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-390
SELECT ALL - 19 * + CASE + + 92 WHEN + 54 THEN + 58 ELSE NULL END + + COUNT ( * ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-391
SELECT + - CAST( + - CASE - 7 WHEN - 55 THEN NULL ELSE 22 END AS SIGNED ) * COUNT( * ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-391
SELECT + - CAST ( + - CASE - 7 WHEN - 55 THEN NULL ELSE 22 END AS INTEGER ) * COUNT ( * ) AS col1
----
22

query I rowsort
SELECT DISTINCT 34 * 76 + - + 91 col2
----
2493

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-393
SELECT DISTINCT - + 6 * + COUNT( * ) DIV + + 9 + + 48 + 97 + - ( - CAST( - 9 AS SIGNED ) ) * - 35
----
460

skipif mysql # not compatible
query I rowsort label-393
SELECT DISTINCT - + 6 * + COUNT ( * ) / + + 9 + + 48 + 97 + - ( - CAST ( - 9 AS INTEGER ) ) * - 35
----
460

onlyif mysql # aggregate syntax: 
query I rowsort label-394
SELECT ALL - - 84 * 79 * + NULLIF ( MIN( 22 ), + ( 99 ) ) * + 94 + + ( 11 ) col0
----
13723259

skipif mysql # not compatible
query I rowsort label-394
SELECT ALL - - 84 * 79 * + NULLIF ( MIN ( 22 ), + ( 99 ) ) * + 94 + + ( 11 ) col0
----
13723259

query I rowsort
SELECT ALL + 19 * ( + 61 ) + 37 AS col2
----
1196

onlyif mysql # aggregate syntax: 
query I rowsort label-396
SELECT + - 14 - + 23 + + 74 * - COUNT( * ) + - 89
----
-200

skipif mysql # not compatible
query I rowsort label-396
SELECT + - 14 - + 23 + + 74 * - COUNT ( * ) + - 89
----
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-397
SELECT - COUNT( * ) * - SUM( 90 ) + - COALESCE ( + 51, 99 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-397
SELECT - COUNT ( * ) * - SUM ( 90 ) + - COALESCE ( + 51, 99 ) AS col2
----
39

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

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

query I rowsort
SELECT ALL + 60 * - NULLIF ( 98, + - 53 ) - - 82
----
-5798

onlyif mysql # aggregate syntax: 
query I rowsort label-400
SELECT + 25 * - MIN( DISTINCT 92 ) * 78 + + 71
----
-179329

skipif mysql # not compatible
query I rowsort label-400
SELECT + 25 * - MIN ( DISTINCT 92 ) * 78 + + 71
----
-179329

query I rowsort
SELECT ALL 21 * + 84 AS col2
----
1764

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

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

query I rowsort
SELECT DISTINCT NULLIF ( + 16, 6 + - 56 * 66 )
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-404
SELECT - COUNT( * ) + - 51 DIV + 70 * - 23 * + 24
----
-1

skipif mysql # not compatible
query I rowsort label-404
SELECT - COUNT ( * ) + - 51 / + 70 * - 23 * + 24
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-405
SELECT + 28 DIV - 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-405
SELECT + 28 / - 72 AS col1
----
0

query II rowsort
SELECT 0 col0, 66 * + - ( + 79 ) + + 10 * ( 92 * 95 ) AS col2
----
0
82186

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

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT 3 + - SUM( ALL - + 54 ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-408
SELECT 3 + - SUM ( ALL - + 54 ) AS col1
----
57

query I rowsort
SELECT 74 + ( - + 81 ) AS col2
----
-7

query I rowsort
SELECT 90 * + 32 AS col1
----
2880

query I rowsort
SELECT 93 + + ( + ( + 8 ) ) AS col0
----
101

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

onlyif mysql # aggregate syntax: 
query I rowsort label-413
SELECT DISTINCT + COUNT( * ) * + 77 * 19 * 93
----
136059

skipif mysql # not compatible
query I rowsort label-413
SELECT DISTINCT + COUNT ( * ) * + 77 * 19 * 93
----
136059

query I rowsort
SELECT ALL ( 21 ) + + 2 AS col2
----
23

query I rowsort
SELECT ALL + 98 * - 29
----
-2842

query I rowsort
SELECT 80 + 28 AS col2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-417
SELECT DISTINCT - 26 + 90 + + SUM( - + 16 ) - + 4 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-417
SELECT DISTINCT - 26 + 90 + + SUM ( - + 16 ) - + 4 AS col2
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-418
SELECT ALL + CASE + 29 WHEN MAX( ALL 82 ) THEN + 80 + 28 * 65 WHEN 62 THEN NULL ELSE NULL END + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-418
SELECT ALL + CASE + 29 WHEN MAX ( ALL 82 ) THEN + 80 + 28 * 65 WHEN 62 THEN NULL ELSE NULL END + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 99 AS col0, - ( + + 96 ) + + 9 AS col0
----
99
-87

query I rowsort
SELECT NULLIF ( + 92, - + 1 - - 73 - + 35 ) AS col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-421
SELECT DISTINCT - - SUM( DISTINCT - - ( - CAST( - 29 AS SIGNED ) ) )
----
29

skipif mysql # not compatible
query I rowsort label-421
SELECT DISTINCT - - SUM ( DISTINCT - - ( - CAST ( - 29 AS INTEGER ) ) )
----
29

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

skipif mysql # not compatible
query I rowsort label-422
SELECT DISTINCT + 3 + - COUNT ( * ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT - 53 * + NULLIF ( - - COUNT( * ), - + 79 - COUNT( * ) ) + NULLIF ( + 65 + COUNT( * ) * 79, + SUM( 44 ) ) + - 39 / CASE + 38 + - 67 WHEN COUNT( ALL + 18 ) - - 93 THEN + NULLIF ( CASE 46 WHEN 55 THEN + MIN( + 8 ) + + 13 * - 77 ELSE NULL END, + 83 * AVG ( ALL 89 ) + - 68 ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-423
SELECT - 53 * + NULLIF ( - - COUNT ( * ), - + 79 - COUNT ( * ) ) + NULLIF ( + 65 + COUNT ( * ) * 79, + SUM ( 44 ) ) + - 39 / CASE + 38 + - 67 WHEN COUNT ( ALL + 18 ) - - 93 THEN + NULLIF ( CASE 46 WHEN 55 THEN + MIN ( + 8 ) + + 13 * - 77 ELSE NULL END, + 83 * AVG ( ALL 89 ) + - 68 ) END col2
----
NULL

query I rowsort
SELECT DISTINCT - 23 + + 84 AS col1
----
61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-426
SELECT 68 * - 61 + - 68 + + - 22 * 24 * CASE - COUNT( * ) WHEN 70 THEN NULL WHEN ( CASE ( 34 ) WHEN + COUNT( * ) THEN 73 / 26 WHEN 47 THEN - MIN( + 40 ) + 64 END ) THEN - 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-426
SELECT 68 * - 61 + - 68 + + - 22 * 24 * CASE - COUNT ( * ) WHEN 70 THEN NULL WHEN ( CASE ( 34 ) WHEN + COUNT ( * ) THEN 73 / 26 WHEN 47 THEN - MIN ( + 40 ) + 64 END ) THEN - 54 END
----
NULL

query II rowsort
SELECT + 39 AS col2, - 15 * + 54
----
39
-810

query II rowsort
SELECT + 62, - 27 + + 12 col1
----
62
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-429
SELECT - 0 * + 14 * - - CAST( NULL AS SIGNED ) * 85 + - 91 * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-429
SELECT - 0 * + 14 * - - CAST ( NULL AS INTEGER ) * 85 + - 91 * COUNT ( * ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT - 94 AS col1, - 2
----
-94
-2

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-432
SELECT 43 DIV 20
----
2

skipif mysql # not compatible
query I rowsort label-432
SELECT 43 / 20
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-433
SELECT - 0 AS col0, - 21 + + ( - CAST( + 58 AS SIGNED ) ) + 67
----
0
-12

skipif mysql # not compatible
query II rowsort label-433
SELECT - 0 AS col0, - 21 + + ( - CAST ( + 58 AS INTEGER ) ) + 67
----
0
-12

query II rowsort
SELECT 91 col0, 86 AS col1
----
91
86

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-435
SELECT - 55 AS col0, + 4 + - COALESCE ( - - 71, - COALESCE ( 94, 9 ) ) + CAST( NULL AS DECIMAL ) AS col2
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-435
SELECT - 55 AS col0, + 4 + - COALESCE ( - - 71, - COALESCE ( 94, 9 ) ) + CAST ( NULL AS REAL ) AS col2
----
-55
NULL

query I rowsort
SELECT 58 * + 18 AS col2
----
1044

query I rowsort
SELECT ALL 99 * 96 AS col0
----
9504

query III rowsort
SELECT DISTINCT 62, - 67 AS col2, + 73 * + - ( - 39 ) AS col1
----
62
-67
2847

onlyif mysql # aggregate syntax: 
query I rowsort label-439
SELECT ALL - 75 + - MIN( + - 8 ) + + 41 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-439
SELECT ALL - 75 + - MIN ( + - 8 ) + + 41 AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-440
SELECT 83 * - - MAX( - 74 ) AS col2
----
-6142

skipif mysql # not compatible
query I rowsort label-440
SELECT 83 * - - MAX ( - 74 ) AS col2
----
-6142

query I rowsort
SELECT ALL 63 * + ( 24 ) AS col2
----
1512

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

skipif mysql # not compatible
query I rowsort label-442
SELECT DISTINCT - CASE COUNT ( * ) WHEN + - 45 + + 46 * ( - - 39 ) THEN CAST ( 46 AS INTEGER ) * + 75 END + + 34
----
NULL

query I rowsort
SELECT ALL 57 + 33 + - - 82
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT ALL 15 + 24 * + 63 * CASE - COUNT( * ) WHEN - 67 THEN NULLIF ( 75, - 26 * 2 ) END * + 46 + - 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-444
SELECT ALL 15 + 24 * + 63 * CASE - COUNT ( * ) WHEN - 67 THEN NULLIF ( 75, - 26 * 2 ) END * + 46 + - 20 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-445
SELECT 73 + + 60, 40 * - COUNT( ALL 26 ) AS col1
----
133
-40

skipif mysql # not compatible
query II rowsort label-445
SELECT 73 + + 60, 40 * - COUNT ( ALL 26 ) AS col1
----
133
-40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-446
SELECT CAST( MAX( DISTINCT - + 70 ) AS DECIMAL ) + + CASE - 30 WHEN + 28 THEN - 1 * MAX( ALL + 10 ) + 17 END
----
NULL

skipif mysql # not compatible
query I rowsort label-446
SELECT CAST ( MAX ( DISTINCT - + 70 ) AS REAL ) + + CASE - 30 WHEN + 28 THEN - 1 * MAX ( ALL + 10 ) + 17 END
----
NULL

query I rowsort
SELECT 28 * + 59 AS col2
----
1652

query I rowsort
SELECT ALL - NULLIF ( - 92, + - 62 + - + 40 ) + - + 22 AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-449
SELECT CASE 21 WHEN + COUNT( * ) + + - 36 THEN NULL WHEN + - 80 THEN NULL WHEN + COUNT( * ) THEN 22 END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-449
SELECT CASE 21 WHEN + COUNT ( * ) + + - 36 THEN NULL WHEN + - 80 THEN NULL WHEN + COUNT ( * ) THEN 22 END * - COUNT ( * )
----
NULL

query II rowsort
SELECT 34, 81 AS col2
----
34
81

onlyif mysql # aggregate syntax: 
query II rowsort label-451
SELECT COUNT( * ) * - - 82, - 39 - ( + 36 ) + - 13 * MAX( DISTINCT - 90 ) AS col1
----
82
1095

skipif mysql # not compatible
query II rowsort label-451
SELECT COUNT ( * ) * - - 82, - 39 - ( + 36 ) + - 13 * MAX ( DISTINCT - 90 ) AS col1
----
82
1095

query I rowsort
SELECT DISTINCT 14 + - 57 * + 28
----
-1582

query II rowsort
SELECT ALL 99 col2, + 41 AS col2
----
99
41

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT ALL - MIN( DISTINCT + - 60 ) * 49 + - 81
----
2859

skipif mysql # not compatible
query I rowsort label-454
SELECT ALL - MIN ( DISTINCT + - 60 ) * 49 + - 81
----
2859

query I rowsort
SELECT + 81 + + 42
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT + + COUNT( ALL COALESCE ( + 78, + 58 + + 2 * + 76 * 55 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-456
SELECT + + COUNT ( ALL COALESCE ( + 78, + 58 + + 2 * + 76 * 55 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-457
SELECT DISTINCT + COALESCE ( + - 93, MAX( DISTINCT 46 ), + NULLIF ( + COUNT( * ), COUNT( * ) ) ) * + 9 - 58 AS col0
----
-895

skipif mysql # not compatible
query I rowsort label-457
SELECT DISTINCT + COALESCE ( + - 93, MAX ( DISTINCT 46 ), + NULLIF ( + COUNT ( * ), COUNT ( * ) ) ) * + 9 - 58 AS col0
----
-895

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-458
SELECT ALL - CASE - 28 WHEN 42 THEN NULL ELSE - 46 END * MIN( ALL + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-458
SELECT ALL - CASE - 28 WHEN 42 THEN NULL ELSE - 46 END * MIN ( ALL + - CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT DISTINCT - 91 AS col0, - 37 AS col2
----
-91
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-460
SELECT - 46 / - SUM( - - CASE + - 95 WHEN - 76 THEN - 78 * - 0 + ( + 52 ) END ) + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-460
SELECT - 46 / - SUM ( - - CASE + - 95 WHEN - 76 THEN - 78 * - 0 + ( + 52 ) END ) + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-461
SELECT DISTINCT - - CASE + - 44 WHEN CASE 73 WHEN - - 79 / + + COUNT( * ) THEN CAST( NULL AS SIGNED ) * + CASE - 8 WHEN 30 THEN ( + 69 ) + - CAST( NULL AS SIGNED ) * 24 END + + ( - 98 - + 68 / NULLIF ( 21 + + 92 * 33, 57 + + 82 ) ) END THEN 76 / - ( 2 ) ELSE NULL END * + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-461
SELECT DISTINCT - - CASE + - 44 WHEN CASE 73 WHEN - - 79 / + + COUNT ( * ) THEN CAST ( NULL AS INTEGER ) * + CASE - 8 WHEN 30 THEN ( + 69 ) + - CAST ( NULL AS INTEGER ) * 24 END + + ( - 98 - + 68 / NULLIF ( 21 + + 92 * 33, 57 + + 82 ) ) END THEN 76 / - ( 2 ) ELSE NULL END * + 17
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-463
SELECT COUNT( * ) AS col1, - 0 + - + 32 col1
----
1
-32

skipif mysql # not compatible
query II rowsort label-463
SELECT COUNT ( * ) AS col1, - 0 + - + 32 col1
----
1
-32

query II rowsort
SELECT + 79, 13 AS col0
----
79
13

query I rowsort
SELECT DISTINCT + 31 - 38 col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-466
SELECT ALL - MAX( ALL - CASE + 85 WHEN - 71 THEN 93 * - + 8 + 55 ELSE + 59 END )
----
59

skipif mysql # not compatible
query I rowsort label-466
SELECT ALL - MAX ( ALL - CASE + 85 WHEN - 71 THEN 93 * - + 8 + 55 ELSE + 59 END )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-467
SELECT + + NULLIF ( - 49, ( + 27 ) * + + COUNT( + 32 ) ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-467
SELECT + + NULLIF ( - 49, ( + 27 ) * + + COUNT ( + 32 ) ) AS col1
----
-49

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-469
SELECT ALL - + CAST( + 29 AS SIGNED )
----
-29

skipif mysql # not compatible
query I rowsort label-469
SELECT ALL - + CAST ( + 29 AS INTEGER )
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-470
SELECT ALL - COALESCE ( - CAST( NULL AS SIGNED ), + 3 + + - 7 * + 26, - - 45 ) * 46
----
8234

skipif mysql # not compatible
query I rowsort label-470
SELECT ALL - COALESCE ( - CAST ( NULL AS INTEGER ), + 3 + + - 7 * + 26, - - 45 ) * 46
----
8234

query I rowsort
SELECT NULLIF ( 26, + 14 / + 57 ) * - 46 + + 7 AS col1
----
-1189

onlyif mysql # DIV for integer division: 
query I rowsort label-472
SELECT ALL - + 49 DIV 42 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-472
SELECT ALL - + 49 / 42 AS col2
----
-1

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

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

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

query I rowsort
SELECT - 64 * - + 44 AS col2
----
2816

query I rowsort
SELECT DISTINCT + 88 + - 73
----
15

query I rowsort
SELECT ALL - 34 * + 64 AS col2
----
-2176

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-480
SELECT DISTINCT 81 + - - 22 AS col2, - COUNT( * ) + COUNT( * )
----
103
0

skipif mysql # not compatible
query II rowsort label-480
SELECT DISTINCT 81 + - - 22 AS col2, - COUNT ( * ) + COUNT ( * )
----
103
0

onlyif mysql # DIV for integer division: 
query I rowsort label-481
SELECT DISTINCT 74 + 79 DIV - - 81
----
74

skipif mysql # not compatible
query I rowsort label-481
SELECT DISTINCT 74 + 79 / - - 81
----
74

query I rowsort
SELECT + 4 + + + 33 + + 74
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT + 80 + + 68 + SUM( ALL + 74 ) + + ( 84 ) * - + 53
----
-4230

skipif mysql # not compatible
query I rowsort label-483
SELECT + 80 + + 68 + SUM ( ALL + 74 ) + + ( 84 ) * - + 53
----
-4230

query I rowsort
SELECT DISTINCT 44 * - 26 AS col2
----
-1144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-485
SELECT - 56 + - COUNT( * ) * + + 44 * + CAST( - 34 AS SIGNED ) AS col2, CAST( 49 AS SIGNED ) * + ( 53 * 18 + ( - 4 ) ) AS col2
----
1440
46550

skipif mysql # not compatible
query II rowsort label-485
SELECT - 56 + - COUNT ( * ) * + + 44 * + CAST ( - 34 AS INTEGER ) AS col2, CAST ( 49 AS INTEGER ) * + ( 53 * 18 + ( - 4 ) ) AS col2
----
1440
46550

onlyif mysql # aggregate syntax: 
query I rowsort label-486
SELECT DISTINCT COUNT( * ) + 31
----
32

skipif mysql # not compatible
query I rowsort label-486
SELECT DISTINCT COUNT ( * ) + 31
----
32

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-488
SELECT ALL COUNT( - 99 ) AS col2, 71 * - 62 col2
----
1
-4402

skipif mysql # not compatible
query II rowsort label-488
SELECT ALL COUNT ( - 99 ) AS col2, 71 * - 62 col2
----
1
-4402

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT - CASE - 17 WHEN - COUNT( * ) THEN + 12 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-489
SELECT - CASE - 17 WHEN - COUNT ( * ) THEN + 12 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-490
SELECT ALL CASE + - 24 WHEN + - 12 THEN + - 44 WHEN CASE - 13 WHEN - ( CASE WHEN COUNT( * ) IS NULL THEN NULL ELSE 67 + 82 END ) * 59 THEN + 70 WHEN + 0 THEN COUNT( * ) ELSE NULL END THEN - 53 END - + 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-490
SELECT ALL CASE + - 24 WHEN + - 12 THEN + - 44 WHEN CASE - 13 WHEN - ( CASE WHEN COUNT ( * ) IS NULL THEN NULL ELSE 67 + 82 END ) * 59 THEN + 70 WHEN + 0 THEN COUNT ( * ) ELSE NULL END THEN - 53 END - + 83 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 8 * + CASE - 15 WHEN + + 66 THEN + 28 WHEN 86 * - - 86 THEN NULL ELSE - ( - 98 ) END
----
784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-492
SELECT - COALESCE ( + ( + + NULLIF ( - CASE + 34 WHEN + 99 THEN - 61 ELSE CAST( NULL AS SIGNED ) END, COALESCE ( 22, + 90, 17 * + 27 ) + 90 ) ), + 43 + SUM( 13 ), 32 ) DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-492
SELECT - COALESCE ( + ( + + NULLIF ( - CASE + 34 WHEN + 99 THEN - 61 ELSE CAST ( NULL AS INTEGER ) END, COALESCE ( 22, + 90, 17 * + 27 ) + 90 ) ), + 43 + SUM ( 13 ), 32 ) / 91
----
0

query I rowsort
SELECT + + CASE + 48 WHEN + - ( - 99 ) THEN 14 * + 97 + 86 END * 12 AS col0
----
NULL

query I rowsort
SELECT - + 51 * + NULLIF ( + + 58, - 0 ) col1
----
-2958

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-495
SELECT 93 / - 17 + + + 36 * 56 + - 30 * - + 43 + - - COUNT( * ) + - CAST( NULL AS SIGNED ) * + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-495
SELECT 93 / - 17 + + + 36 * 56 + - 30 * - + 43 + - - COUNT ( * ) + - CAST ( NULL AS INTEGER ) * + 27
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-496
SELECT DISTINCT + 29 DIV + + 92 * + - CASE 18 WHEN + + 22 THEN NULL ELSE + 6 END + + - 52 + 50
----
-2

skipif mysql # not compatible
query I rowsort label-496
SELECT DISTINCT + 29 / + + 92 * + - CASE 18 WHEN + + 22 THEN NULL ELSE + 6 END + + - 52 + 50
----
-2

query I rowsort
SELECT ALL + NULLIF ( 83, 52 )
----
83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-498
SELECT - + ( - NULLIF ( + + 83, 35 ) ) - - ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-498
SELECT - + ( - NULLIF ( + + 83, 35 ) ) - - ( + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-499
SELECT DISTINCT + 80 * - 69 + + COUNT( ALL 56 ) * - 72 * - COUNT( * ) col1
----
-5448

skipif mysql # not compatible
query I rowsort label-499
SELECT DISTINCT + 80 * - 69 + + COUNT ( ALL 56 ) * - 72 * - COUNT ( * ) col1
----
-5448

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-500
SELECT - 18 DIV 4 * COUNT( * ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-500
SELECT - 18 / 4 * COUNT ( * ) AS col2
----
-4

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

skipif mysql # not compatible
query I rowsort label-501
SELECT ALL + COUNT ( * ) * + 25 + - ( - 99 ) col2
----
124

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

onlyif mysql # aggregate syntax: 
query II rowsort label-503
SELECT - + 55 * - COUNT( * ) AS col1, - 21 * + 13 * + 92 col2
----
55
-25116

skipif mysql # not compatible
query II rowsort label-503
SELECT - + 55 * - COUNT ( * ) AS col1, - 21 * + 13 * + 92 col2
----
55
-25116

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

skipif mysql # not compatible
query I rowsort label-504
SELECT COALESCE ( - 84, - COUNT ( * ), + 53 ) AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-505
SELECT ALL ( - 61 ) * - 68 + - - MAX( ALL + - 23 ) + - 36
----
4089

skipif mysql # not compatible
query I rowsort label-505
SELECT ALL ( - 61 ) * - 68 + - - MAX ( ALL + - 23 ) + - 36
----
4089

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-506
SELECT - MAX( + CAST( NULL AS SIGNED ) ) * - + 13 AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT ALL 17 * - CASE - + 16 WHEN + COUNT( * ) THEN + + 74 * - - COUNT( * ) * + + 38 WHEN - 75 THEN NULL END + 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-507
SELECT ALL 17 * - CASE - + 16 WHEN + COUNT ( * ) THEN + + 74 * - - COUNT ( * ) * + + 38 WHEN - 75 THEN NULL END + 80 AS col1
----
NULL

query II rowsort
SELECT ALL + 12, + 20 AS col0
----
12
20

onlyif mysql # aggregate syntax: 
query II rowsort label-509
SELECT DISTINCT + 25 AS col0, COUNT( * ) - - ( + COUNT( * ) ) + 72 AS col2
----
25
74

skipif mysql # not compatible
query II rowsort label-509
SELECT DISTINCT + 25 AS col0, COUNT ( * ) - - ( + COUNT ( * ) ) + 72 AS col2
----
25
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-510
SELECT ALL COUNT( * ) * - 81 + - COALESCE ( - + 74, - + 29, + - 12 ) / + ( ( CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-510
SELECT ALL COUNT ( * ) * - 81 + - COALESCE ( - + 74, - + 29, + - 12 ) / + ( ( CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT CASE AVG ( DISTINCT - 0 ) WHEN + 80 THEN ( + 91 ) END * 49 * - + 2 * - 26 + - 19 AS col1
----
NULL

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

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

query II rowsort
SELECT - ( - ( - 51 ) ) * 38 AS col1, 17
----
-1938
17

query II rowsort
SELECT - 27 AS col1, - 92 + - 18
----
-27
-110

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

skipif mysql # not compatible
query I rowsort label-515
SELECT MAX ( + 26 )
----
26

query II rowsort
SELECT DISTINCT 32 AS col0, - 20 AS col1
----
32
-20

query I rowsort
SELECT DISTINCT - 94 - - 89 AS col2
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-518
SELECT DISTINCT - 86 * - 71 * - 71 * - 69 * + 32 / + + CASE - COUNT( * ) WHEN COUNT( * ) THEN + CAST( 43 AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-518
SELECT DISTINCT - 86 * - 71 * - 71 * - 69 * + 32 / + + CASE - COUNT ( * ) WHEN COUNT ( * ) THEN + CAST ( 43 AS INTEGER ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-519
SELECT DISTINCT CAST( - - MIN( DISTINCT + - ( - + 88 ) ) AS SIGNED ) - - 48 AS col1
----
136

skipif mysql # not compatible
query I rowsort label-519
SELECT DISTINCT CAST ( - - MIN ( DISTINCT + - ( - + 88 ) ) AS INTEGER ) - - 48 AS col1
----
136

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-521
SELECT + + 72 * - - COUNT( * ) + + 65
----
137

skipif mysql # not compatible
query I rowsort label-521
SELECT + + 72 * - - COUNT ( * ) + + 65
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-522
SELECT ALL MIN( DISTINCT + 46 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-522
SELECT ALL MIN ( DISTINCT + 46 ) AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-523
SELECT - + 3 + - COUNT( * ) * - + 78 * 50
----
3897

skipif mysql # not compatible
query I rowsort label-523
SELECT - + 3 + - COUNT ( * ) * - + 78 * 50
----
3897

query II rowsort
SELECT - - 62, 16 AS col2
----
62
16

query II rowsort
SELECT DISTINCT - 21 AS col0, - 3 * + 19
----
-21
-57

query II rowsort
SELECT DISTINCT 52, 44 AS col0
----
52
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-527
SELECT + + COALESCE ( + + 15, - - 36, - - 85 * + - 63 + COUNT( * ) - 67 - + + 55 DIV + NULLIF ( 64 * - 62, - 32 ) + 20 ) * 39 AS col1
----
585

skipif mysql # not compatible
query I rowsort label-527
SELECT + + COALESCE ( + + 15, - - 36, - - 85 * + - 63 + COUNT ( * ) - 67 - + + 55 / + NULLIF ( 64 * - 62, - 32 ) + 20 ) * 39 AS col1
----
585

query I rowsort
SELECT ALL 92 * 5
----
460

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-529
SELECT ALL COALESCE ( - MIN( + + 15 ), - 99, + 76 DIV + 15 ), + COUNT( - 25 ) + - 52 AS col2
----
-15
-51

skipif mysql # not compatible
query II rowsort label-529
SELECT ALL COALESCE ( - MIN ( + + 15 ), - 99, + 76 / + 15 ), + COUNT ( - 25 ) + - 52 AS col2
----
-15
-51

query I rowsort
SELECT + 66 + - 51
----
15

query I rowsort
SELECT DISTINCT + 73 * ( 51 ) + + ( 35 )
----
3758

query I rowsort
SELECT + ( 25 ) + + + 60 + + ( + + ( + + 6 ) ) AS col0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-533
SELECT ALL + - 19 AS col0, CAST( NULL AS SIGNED ) col2
----
-19
NULL

skipif mysql # not compatible
query II rowsort label-533
SELECT ALL + - 19 AS col0, CAST ( NULL AS INTEGER ) col2
----
-19
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-534
SELECT ALL + - 94 DIV + 35 + + MAX( DISTINCT + 46 ) + 7 + 13 * - 86 + + - COUNT( * ) + 68 AS col2
----
-1000

skipif mysql # not compatible
query I rowsort label-534
SELECT ALL + - 94 / + 35 + + MAX ( DISTINCT + 46 ) + 7 + 13 * - 86 + + - COUNT ( * ) + 68 AS col2
----
-1000

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

skipif mysql # not compatible
query I rowsort label-535
SELECT ALL + - COUNT ( ALL - + 83 ) AS col0
----
-1

query II rowsort
SELECT + 86 AS col1, - 32
----
86
-32

query I rowsort
SELECT NULLIF ( 69, + 79 )
----
69

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

query I rowsort
SELECT DISTINCT 3 + - ( + + 36 ) AS col1
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-540
SELECT ALL 8 + COALESCE ( + - 67, - ( + 61 ) ) DIV - + 54 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-540
SELECT ALL 8 + COALESCE ( + - 67, - ( + 61 ) ) / - + 54 AS col2
----
9

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

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

query I rowsort
SELECT NULLIF ( + - ( 22 ), + 91 ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-543
SELECT ALL + + 82 + + 98 + + 59 * - + MAX( DISTINCT + 21 ) * + 1 * + + 94
----
-116286

skipif mysql # not compatible
query I rowsort label-543
SELECT ALL + + 82 + + 98 + + 59 * - + MAX ( DISTINCT + 21 ) * + 1 * + + 94
----
-116286

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-544
SELECT 20 - + COUNT( * ) + - - COUNT( * ) DIV + + 62 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-544
SELECT 20 - + COUNT ( * ) + - - COUNT ( * ) / + + 62 AS col0
----
19

query I rowsort
SELECT DISTINCT 5 + + ( 28 ) * - 31
----
-863

onlyif mysql # aggregate syntax: 
query I rowsort label-546
SELECT ALL + SUM( 97 ) + + 4 - + 69
----
32

skipif mysql # not compatible
query I rowsort label-546
SELECT ALL + SUM ( 97 ) + + 4 - + 69
----
32

query I rowsort
SELECT DISTINCT 99 + + + 32
----
131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-548
SELECT + 75 * 76 DIV + 27 + + 62 * + SUM( DISTINCT 7 )
----
645

skipif mysql # not compatible
query I rowsort label-548
SELECT + 75 * 76 / + 27 + + 62 * + SUM ( DISTINCT 7 )
----
645

onlyif mysql # aggregate syntax: 
query I rowsort label-549
SELECT 9 - + 37 + - MAX( ALL 0 ) + + + 26 + + + 97 col1
----
95

skipif mysql # not compatible
query I rowsort label-549
SELECT 9 - + 37 + - MAX ( ALL 0 ) + + + 26 + + + 97 col1
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-550
SELECT CAST( + CAST( 87 AS SIGNED ) AS SIGNED ) * + 5 + NULLIF ( - 98, - 95 ) + + 8 * COUNT( * ) * + 23
----
521

skipif mysql # not compatible
query I rowsort label-550
SELECT CAST ( + CAST ( 87 AS INTEGER ) AS INTEGER ) * + 5 + NULLIF ( - 98, - 95 ) + + 8 * COUNT ( * ) * + 23
----
521

query I rowsort
SELECT 18 - - - 90
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-552
SELECT 99 + NULLIF ( + ( + COALESCE ( 58, - 76 * 6 ) ), + + 96 ) + - + CAST( - AVG ( 44 ) AS SIGNED ) AS col2
----
201

skipif mysql # not compatible
query I rowsort label-552
SELECT 99 + NULLIF ( + ( + COALESCE ( 58, - 76 * 6 ) ), + + 96 ) + - + CAST ( - AVG ( 44 ) AS INTEGER ) AS col2
----
201

query I rowsort
SELECT 8 + 53 col2
----
61

query I rowsort
SELECT 18 + - + 52 * + - 83
----
4334

onlyif mysql # aggregate syntax: 
query I rowsort label-555
SELECT 24 * + + MIN( - 12 ) * + - 71 AS col0
----
20448

skipif mysql # not compatible
query I rowsort label-555
SELECT 24 * + + MIN ( - 12 ) * + - 71 AS col0
----
20448

query I rowsort
SELECT 27 + 60
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-557
SELECT ALL + 9 * - + 56 AS col2, COALESCE ( + + ( - 61 ), - - MAX( ALL - - CAST( + + 75 AS SIGNED ) ) ) AS col1
----
-504
-61

skipif mysql # not compatible
query II rowsort label-557
SELECT ALL + 9 * - + 56 AS col2, COALESCE ( + + ( - 61 ), - - MAX ( ALL - - CAST ( + + 75 AS INTEGER ) ) ) AS col1
----
-504
-61

query I rowsort
SELECT 14 * 41 AS col1
----
574

query I rowsort
SELECT + 84 + - 16 + + 28 * + - 82
----
-2228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-560
SELECT + 28 * + - CAST( NULL AS SIGNED ) * - - ( - - ( + + ( + + 13 ) ) ) - + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-560
SELECT + 28 * + - CAST ( NULL AS INTEGER ) * - - ( - - ( + + ( + + 13 ) ) ) - + 76
----
NULL

query I rowsort
SELECT 76 + + 34 + 96 + + 56 * 13 * 95 + + - 73
----
69293

onlyif mysql # aggregate syntax: 
query II rowsort label-562
SELECT ALL - 46 * 11 * + 97 + - 79, - 78 * + CASE + CASE - 84 WHEN + 62 THEN 95 * 66 WHEN - AVG ( 50 ) + + 78 THEN NULL END WHEN COUNT( * ) THEN 85 + MAX( + 39 ) END AS col1
----
-49161
NULL

skipif mysql # not compatible
query II rowsort label-562
SELECT ALL - 46 * 11 * + 97 + - 79, - 78 * + CASE + CASE - 84 WHEN + 62 THEN 95 * 66 WHEN - AVG ( 50 ) + + 78 THEN NULL END WHEN COUNT ( * ) THEN 85 + MAX ( + 39 ) END AS col1
----
-49161
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-563
SELECT COALESCE ( - - COALESCE ( + - 97, + CAST( NULL AS SIGNED ), - COUNT( * ) ), + - 63 * NULLIF ( + CAST( - COUNT( * ) AS SIGNED ), 24 ) + CAST( NULL AS SIGNED ) ) col0
----
-97

skipif mysql # not compatible
query I rowsort label-563
SELECT COALESCE ( - - COALESCE ( + - 97, + CAST ( NULL AS INTEGER ), - COUNT ( * ) ), + - 63 * NULLIF ( + CAST ( - COUNT ( * ) AS INTEGER ), 24 ) + CAST ( NULL AS INTEGER ) ) col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT DISTINCT + 44 + - COUNT( * ) + + - 21 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-564
SELECT DISTINCT + 44 + - COUNT ( * ) + + - 21 AS col2
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-565
SELECT ALL - - COUNT( * ) + - - 8 + + CAST( + 55 AS SIGNED )
----
64

skipif mysql # not compatible
query I rowsort label-565
SELECT ALL - - COUNT ( * ) + - - 8 + + CAST ( + 55 AS INTEGER )
----
64

query I rowsort
SELECT ALL + - 55 + - 88
----
-143

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-567
SELECT - 26 + - 77 AS col2, + CAST( NULL AS SIGNED )
----
-103
NULL

skipif mysql # not compatible
query II rowsort label-567
SELECT - 26 + - 77 AS col2, + CAST ( NULL AS INTEGER )
----
-103
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-568
SELECT NULLIF ( + CAST( + + 31 AS SIGNED ), 60 * + 60 ) * + - CAST( - + 74 AS SIGNED ) + + 14 + - 63 AS col1
----
2245

skipif mysql # not compatible
query I rowsort label-568
SELECT NULLIF ( + CAST ( + + 31 AS INTEGER ), 60 * + 60 ) * + - CAST ( - + 74 AS INTEGER ) + + 14 + - 63 AS col1
----
2245

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

onlyif mysql # DIV for integer division: 
query I rowsort label-570
SELECT ALL + 19 DIV - 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-570
SELECT ALL + 19 / - 96 AS col1
----
0

query I rowsort
SELECT DISTINCT + 61 + + 36 AS col2
----
97

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

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

query I rowsort
SELECT ALL ( 77 ) + 79 - 9 AS col2
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-574
SELECT ( + 35 ) / - 48 + - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-574
SELECT ( + 35 ) / - 48 + - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-575
SELECT + CAST( + - 76 AS SIGNED ) * + 67 - + + COUNT( * ) * - 86 - - - 33 AS col2
----
-5039

skipif mysql # not compatible
query I rowsort label-575
SELECT + CAST ( + - 76 AS INTEGER ) * + 67 - + + COUNT ( * ) * - 86 - - - 33 AS col2
----
-5039

query I rowsort
SELECT ALL 40 + + 86
----
126

query I rowsort
SELECT DISTINCT 99 + - 37 col1
----
62

query I rowsort
SELECT 76 * 85 + 4
----
6464

query II rowsort
SELECT ALL - 37 AS col1, - 43
----
-37
-43

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-581
SELECT DISTINCT - ( - - 27 ) * CAST( NULL AS SIGNED ) + - CAST( - 23 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-581
SELECT DISTINCT - ( - - 27 ) * CAST ( NULL AS INTEGER ) + - CAST ( - 23 AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-582
SELECT DISTINCT 86 * + COALESCE ( + - 63, + COUNT( * ) * COUNT( * ) DIV + 21 )
----
-5418

skipif mysql # not compatible
query I rowsort label-582
SELECT DISTINCT 86 * + COALESCE ( + - 63, + COUNT ( * ) * COUNT ( * ) / + 21 )
----
-5418

query I rowsort
SELECT 37 * - 33
----
-1221

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-585
SELECT ALL COUNT( * ) * - - 43 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-585
SELECT ALL COUNT ( * ) * - - 43 AS col1
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-586
SELECT ALL + ( - 75 ) * - 31 AS col0, - MIN( + 99 ) AS col1
----
2325
-99

skipif mysql # not compatible
query II rowsort label-586
SELECT ALL + ( - 75 ) * - 31 AS col0, - MIN ( + 99 ) AS col1
----
2325
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT ALL + MIN( DISTINCT - 30 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-587
SELECT ALL + MIN ( DISTINCT - 30 ) AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-588
SELECT NULLIF ( COUNT( * ), + - 93 / - + CASE - 6 WHEN + 72 THEN + 52 END ) - 52 - - 27 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-588
SELECT NULLIF ( COUNT ( * ), + - 93 / - + CASE - 6 WHEN + 72 THEN + 52 END ) - 52 - - 27 AS col2
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-589
SELECT ALL 95 + - + 34 + - - CAST( - 7 AS SIGNED ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-589
SELECT ALL 95 + - + 34 + - - CAST ( - 7 AS INTEGER ) AS col1
----
54

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

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

query I rowsort
SELECT DISTINCT - 51 + - + 98 AS col1
----
-149

query I rowsort
SELECT ALL - - 16 + + 25 / AVG ( ALL - CASE - 68 WHEN 50 + - + 2 THEN - 80 + - ( 82 ) * 49 ELSE NULL END ) col0
----
NULL

query I rowsort
SELECT - 15 + ( + 23 ) col1
----
8

query I rowsort
SELECT - 84 - + - 77
----
-7

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

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

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

skipif mysql # not compatible
query I rowsort label-596
SELECT - CAST ( - 48 AS INTEGER ) - + - 99 AS col1
----
147

query II rowsort
SELECT - + 24, 62 AS col0
----
-24
62

query I rowsort
SELECT DISTINCT - + 49 + - ( - 27 ) col2
----
-22

query I rowsort
SELECT DISTINCT + 55 * - 80 AS col1
----
-4400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-600
SELECT DISTINCT + 74 DIV + 66 + - 86 * - - ( - + 61 ) + COUNT( * )
----
5248

skipif mysql # not compatible
query I rowsort label-600
SELECT DISTINCT + 74 / + 66 + - 86 * - - ( - + 61 ) + COUNT ( * )
----
5248

query I rowsort
SELECT ALL - 41 * + + 24 - + + ( 33 )
----
-1017

query I rowsort
SELECT + 11 * - 61 AS col0
----
-671

query I rowsort
SELECT 80 * 96 + 77
----
7757

onlyif mysql # DIV for integer division: 
query II rowsort label-604
SELECT + 29 DIV 71 AS col1, 40 * - - 97 * + 24 AS col0
----
0
93120

skipif mysql # not compatible
query II rowsort label-604
SELECT + 29 / 71 AS col1, 40 * - - 97 * + 24 AS col0
----
0
93120

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-605
SELECT ALL + 48 AS col2, - 58 - CAST( ( ( 11 ) ) AS SIGNED ) AS col2
----
48
-69

skipif mysql # not compatible
query II rowsort label-605
SELECT ALL + 48 AS col2, - 58 - CAST ( ( ( 11 ) ) AS INTEGER ) AS col2
----
48
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-606
SELECT DISTINCT + 98 DIV - 62
----
-1

skipif mysql # not compatible
query I rowsort label-606
SELECT DISTINCT + 98 / - 62
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-607
SELECT ALL - 28 * - COALESCE ( + 37, 95 * + - COUNT( * ) + + + 20 ) - + - 79 * 77
----
7119

skipif mysql # not compatible
query I rowsort label-607
SELECT ALL - 28 * - COALESCE ( + 37, 95 * + - COUNT ( * ) + + + 20 ) - + - 79 * 77
----
7119

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT COALESCE ( + SUM( + - 5 ), + + ( COALESCE ( 25, - + 71 + ( + - 92 ), + 14 ) ) * - + 92 + 19, - 57, - 76 * + 8, 81 + - 63 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-608
SELECT COALESCE ( + SUM ( + - 5 ), + + ( COALESCE ( 25, - + 71 + ( + - 92 ), + 14 ) ) * - + 92 + 19, - 57, - 76 * + 8, 81 + - 63 ) AS col0
----
-5

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

query I rowsort
SELECT - 51 * - - 67
----
-3417

onlyif mysql # aggregate syntax: 
query II rowsort label-611
SELECT ALL + 37 AS col0, - 84 + - - COUNT( * ) AS col0
----
37
-83

skipif mysql # not compatible
query II rowsort label-611
SELECT ALL + 37 AS col0, - 84 + - - COUNT ( * ) AS col0
----
37
-83

query I rowsort
SELECT DISTINCT + NULLIF ( + + 28, + 30 )
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-613
SELECT ALL + 82, 43 * NULLIF ( + 26, - 46 * + - ( + 59 ) * + 49 * + CASE + 3 WHEN - - 30 THEN - MAX( 75 ) END ) * - COALESCE ( 77, + 51 * COALESCE ( - 77, 61, 58 ) ) AS col2
----
82
-86086

skipif mysql # not compatible
query II rowsort label-613
SELECT ALL + 82, 43 * NULLIF ( + 26, - 46 * + - ( + 59 ) * + 49 * + CASE + 3 WHEN - - 30 THEN - MAX ( 75 ) END ) * - COALESCE ( 77, + 51 * COALESCE ( - 77, 61, 58 ) ) AS col2
----
82
-86086

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-615
SELECT ALL - 27 * - + 78 * + + NULLIF ( - + MAX( + 87 ), + - MIN( CAST( 25 AS DECIMAL ) ) * - - COALESCE ( - 44, + 85 ) / - CAST( - COUNT( * ) AS SIGNED ) )
----
-183222

skipif mysql # not compatible
query I rowsort label-615
SELECT ALL - 27 * - + 78 * + + NULLIF ( - + MAX ( + 87 ), + - MIN ( CAST ( 25 AS REAL ) ) * - - COALESCE ( - 44, + 85 ) / - CAST ( - COUNT ( * ) AS INTEGER ) )
----
-183222

query I rowsort
SELECT + 21 * + - 28
----
-588

query I rowsort
SELECT + NULLIF ( 42, CASE - COALESCE ( 85, - 42, 63, 28 * + + 75 ) WHEN + - ( + - 4 ) + 53 THEN - 10 WHEN - 48 THEN 92 END * ( + 2 ) )
----
42

query I rowsort
SELECT DISTINCT 45 * 11 AS col0
----
495

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-619
SELECT 54 * COUNT( * ) DIV COUNT( * ) + - 51 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-619
SELECT 54 * COUNT ( * ) / COUNT ( * ) + - 51 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT NULLIF ( - 21, - 73 ) * - 57 * COUNT( * ) * - 94 - + - 29 AS col2
----
-112489

skipif mysql # not compatible
query I rowsort label-620
SELECT NULLIF ( - 21, - 73 ) * - 57 * COUNT ( * ) * - 94 - + - 29 AS col2
----
-112489

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-622
SELECT ALL + 36 * - - 5 + + 85 + 20 + NULLIF ( + + 75, - 89 + - 90 + - + CASE 4 WHEN + AVG ( ALL COALESCE ( - 37, - 49 + 41 ) ) * 28 THEN - 43 WHEN + 48 THEN + 60 / - CAST( + 57 AS SIGNED ) END * ( 97 ) )
----
360

skipif mysql # not compatible
query I rowsort label-622
SELECT ALL + 36 * - - 5 + + 85 + 20 + NULLIF ( + + 75, - 89 + - 90 + - + CASE 4 WHEN + AVG ( ALL COALESCE ( - 37, - 49 + 41 ) ) * 28 THEN - 43 WHEN + 48 THEN + 60 / - CAST ( + 57 AS INTEGER ) END * ( 97 ) )
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-623
SELECT + COUNT( ALL 74 ) + - COUNT( + - 47 )
----
0

skipif mysql # not compatible
query I rowsort label-623
SELECT + COUNT ( ALL 74 ) + - COUNT ( + - 47 )
----
0

query II rowsort
SELECT ALL + 69 AS col1, + ( - 59 ) * - 92 + + 77 + 90 + 68 AS col0
----
69
5663

onlyif mysql # aggregate syntax: 
query I rowsort label-625
SELECT ALL - COUNT( ALL 62 ) + - 20
----
-21

skipif mysql # not compatible
query I rowsort label-625
SELECT ALL - COUNT ( ALL 62 ) + - 20
----
-21

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

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

query I rowsort
SELECT ALL 2 + 85 + - 12
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-628
SELECT DISTINCT + 85 / CASE - + 49 WHEN - 43 THEN + 9 WHEN + 69 * CAST( NULL AS SIGNED ) * + 13 * 21 * + 58 THEN + + COUNT( * ) + - ( - 15 ) ELSE - 88 * - CASE + 27 * 52 WHEN 70 THEN 95 END + + 24 / + 62 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-628
SELECT DISTINCT + 85 / CASE - + 49 WHEN - 43 THEN + 9 WHEN + 69 * CAST ( NULL AS INTEGER ) * + 13 * 21 * + 58 THEN + + COUNT ( * ) + - ( - 15 ) ELSE - 88 * - CASE + 27 * 52 WHEN 70 THEN 95 END + + 24 / + 62 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-629
SELECT + + 74 + - 81 DIV - 72 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-629
SELECT + + 74 + - 81 / - 72 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-630
SELECT ALL + 63 + - - COUNT( * ) * + 8
----
71

skipif mysql # not compatible
query I rowsort label-630
SELECT ALL + 63 + - - COUNT ( * ) * + 8
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-631
SELECT ALL 25 * + CAST( + COUNT( * ) AS SIGNED ) + + MIN( 52 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-631
SELECT ALL 25 * + CAST ( + COUNT ( * ) AS INTEGER ) + + MIN ( 52 ) AS col1
----
77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-632
SELECT ALL 29 + CAST( - 95 AS SIGNED ) DIV - 96 AS col0, 67 AS col1
----
29
67

skipif mysql # not compatible
query II rowsort label-632
SELECT ALL 29 + CAST ( - 95 AS INTEGER ) / - 96 AS col0, 67 AS col1
----
29
67

query I rowsort
SELECT - + 72 col2
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-634
SELECT + 12 DIV + 57 + - - 3 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-634
SELECT + 12 / + 57 + - - 3 AS col2
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT ALL + 3 + - SUM( + - 73 ) * MIN( ALL 10 ) col1
----
733

skipif mysql # not compatible
query I rowsort label-636
SELECT ALL + 3 + - SUM ( + - 73 ) * MIN ( ALL 10 ) col1
----
733

query I rowsort
SELECT - + 33 + + 25
----
-8

query I rowsort
SELECT ALL - + 88 + + - 93 - - - 36 AS col2
----
-217

query II rowsort
SELECT + 5 AS col2, 33 * - - 30 + 19 AS col0
----
5
1009

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-640
SELECT ALL - 17 * - + CAST( NULL AS SIGNED ) + + MAX( - + 52 ) + + 63 * 1 AS col0, CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-640
SELECT ALL - 17 * - + CAST ( NULL AS INTEGER ) + + MAX ( - + 52 ) + + 63 * 1 AS col0, CAST ( NULL AS INTEGER )
----
NULL
NULL

query II rowsort
SELECT DISTINCT 33 AS col0, 62 + 18 AS col1
----
33
80

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT DISTINCT COUNT( * ) + - 35 col2
----
-34

skipif mysql # not compatible
query I rowsort label-642
SELECT DISTINCT COUNT ( * ) + - 35 col2
----
-34

query I rowsort
SELECT - - CASE 28 WHEN + - 49 * + 37 - + 14 THEN - 51 WHEN 33 * 36 THEN NULL END * + 50 / - 96 col2
----
NULL

query I rowsort
SELECT + 15 - - 13 AS col0
----
28

query II rowsort
SELECT - 89 col2, + 98
----
-89
98

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-647
SELECT + - 70 + + 82 * - + 70 + + NULLIF ( - COALESCE ( - 82, + + 81, + COUNT( * ) DIV - 36 + - 22 * + 3 ), 35 * - 56 ) - COUNT( * ) * 67 col0
----
-5795

skipif mysql # not compatible
query I rowsort label-647
SELECT + - 70 + + 82 * - + 70 + + NULLIF ( - COALESCE ( - 82, + + 81, + COUNT ( * ) / - 36 + - 22 * + 3 ), 35 * - 56 ) - COUNT ( * ) * 67 col0
----
-5795

query I rowsort
SELECT + 28 - + 95 col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-649
SELECT ALL + SUM( ALL 5 ) * + CASE - ( + 59 ) WHEN 95 + - - ( + 70 ) - 97 / + - 3 THEN + 18 / + 69 WHEN 47 THEN NULL END / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-649
SELECT ALL + SUM ( ALL 5 ) * + CASE - ( + 59 ) WHEN 95 + - - ( + 70 ) - 97 / + - 3 THEN + 18 / + 69 WHEN 47 THEN NULL END / COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-650
SELECT - 52 * + 86 AS col2, - 11 - CAST( NULL AS SIGNED ) * + 39 AS col2
----
-4472
NULL

skipif mysql # not compatible
query II rowsort label-650
SELECT - 52 * + 86 AS col2, - 11 - CAST ( NULL AS INTEGER ) * + 39 AS col2
----
-4472
NULL

query I rowsort
SELECT - 69 + - + 74 col2
----
-143

query I rowsort
SELECT - 45 + - 25 + 7 * + + 61
----
357

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT ALL - 49 * - MIN( - 69 ) AS col2
----
-3381

skipif mysql # not compatible
query I rowsort label-653
SELECT ALL - 49 * - MIN ( - 69 ) AS col2
----
-3381

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-655
SELECT ALL ( 45 ) DIV 18
----
2

skipif mysql # not compatible
query I rowsort label-655
SELECT ALL ( 45 ) / 18
----
2

query I rowsort
SELECT - 62 * - 58 * - 56 + + 67 AS col2
----
-201309

query II rowsort
SELECT ( + + 63 ), - NULLIF ( - 99, - 15 * - 12 ) AS col0
----
63
99

query I rowsort
SELECT ( COALESCE ( 79, 28 ) )
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-659
SELECT - 86 DIV 49 * + 70 * + 60 * + 31 * - 26 AS col1
----
3385200

skipif mysql # not compatible
query I rowsort label-659
SELECT - 86 / 49 * + 70 * + 60 * + 31 * - 26 AS col1
----
3385200

onlyif mysql # aggregate syntax: 
query II rowsort label-660
SELECT ALL + MIN( DISTINCT + - 22 ) AS col1, COUNT( * ) * 20
----
-22
20

skipif mysql # not compatible
query II rowsort label-660
SELECT ALL + MIN ( DISTINCT + - 22 ) AS col1, COUNT ( * ) * 20
----
-22
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-661
SELECT - 62 * + - 68 * - COALESCE ( - CAST( COUNT( * ) AS SIGNED ), - - 87 ) * - 53 AS col1
----
-223448

skipif mysql # not compatible
query I rowsort label-661
SELECT - 62 * + - 68 * - COALESCE ( - CAST ( COUNT ( * ) AS INTEGER ), - - 87 ) * - 53 AS col1
----
-223448

query I rowsort
SELECT + 68 + + 69
----
137

query II rowsort
SELECT + 32 * - 52 AS col0, - 55 + + - 45 + + 86 col0
----
-1664
-14

query I rowsort
SELECT ALL - + 17 * - 81 + - 84 + + 83 AS col2
----
1376

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT DISTINCT - COUNT( 81 ) * 53 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-665
SELECT DISTINCT - COUNT ( 81 ) * 53 AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-666
SELECT ALL + 27 * 76 + - + 75 + 66 - + - ( - 92 ) - - COUNT( * ) + + - 14
----
1938

skipif mysql # not compatible
query I rowsort label-666
SELECT ALL + 27 * 76 + - + 75 + 66 - + - ( - 92 ) - - COUNT ( * ) + + - 14
----
1938

query I rowsort
SELECT ALL 13 + - - 32 AS col2
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-668
SELECT + COALESCE ( - COUNT( * ), + + COUNT( * ) DIV ( COALESCE ( + 20, 59 * COALESCE ( + - 66, - - 73 DIV + - 16 + 10 * + 25 ) - 87 + + 62 * 61, COUNT( * ) DIV - 52 ) ) + 16 )
----
-1

skipif mysql # not compatible
query I rowsort label-668
SELECT + COALESCE ( - COUNT ( * ), + + COUNT ( * ) / ( COALESCE ( + 20, 59 * COALESCE ( + - 66, - - 73 / + - 16 + 10 * + 25 ) - 87 + + 62 * 61, COUNT ( * ) / - 52 ) ) + 16 )
----
-1

query I rowsort
SELECT ALL CASE + 34 WHEN - 97 THEN - - 3 WHEN 58 THEN + 15 END / + 96 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-670
SELECT DISTINCT - COUNT( * ) - + COALESCE ( 65, + - 94 - - ( - COUNT( * ) ) DIV 81, - 1 )
----
-66

skipif mysql # not compatible
query I rowsort label-670
SELECT DISTINCT - COUNT ( * ) - + COALESCE ( 65, + - 94 - - ( - COUNT ( * ) ) / 81, - 1 )
----
-66

query I rowsort
SELECT ALL 77 * + 10 + 79
----
849

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT - COUNT( * ) - + 95 AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-672
SELECT - COUNT ( * ) - + 95 AS col0
----
-96

query I rowsort
SELECT ALL 16 - + + 87 * 50
----
-4334

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-674
SELECT + CAST( SUM( DISTINCT + 80 ) AS SIGNED ) * 4 * + 3 + - 6 AS col0
----
954

skipif mysql # not compatible
query I rowsort label-674
SELECT + CAST ( SUM ( DISTINCT + 80 ) AS INTEGER ) * 4 * + 3 + - 6 AS col0
----
954

onlyif mysql # aggregate syntax: 
query I rowsort label-675
SELECT 90 + + ( - SUM( ALL 40 ) ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-675
SELECT 90 + + ( - SUM ( ALL 40 ) ) AS col0
----
50

query I rowsort
SELECT - NULLIF ( + 47, + - 85 ) AS col0
----
-47

query I rowsort
SELECT ALL ( + 17 ) * + 85
----
1445

onlyif mysql # aggregate syntax: 
query I rowsort label-678
SELECT + COUNT( * ) + + 26 + 49 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-678
SELECT + COUNT ( * ) + + 26 + 49 AS col0
----
76

query II rowsort
SELECT + 22 * - 0, + 45 AS col1
----
0
45

query II rowsort
SELECT 10 * - 54, - 95 AS col1
----
-540
-95

query I rowsort
SELECT + 35 * + + 90 * - 60 AS col1
----
-189000

query I rowsort
SELECT DISTINCT 17 * 53
----
901

query II rowsort
SELECT DISTINCT 53 AS col2, + 49 + + - ( + 45 )
----
53
4

onlyif mysql # aggregate syntax: 
query I rowsort label-684
SELECT NULLIF ( 10, + - NULLIF ( + 16, - + COUNT( DISTINCT - 44 ) ) ) + + 40 - 54
----
-4

skipif mysql # not compatible
query I rowsort label-684
SELECT NULLIF ( 10, + - NULLIF ( + 16, - + COUNT ( DISTINCT - 44 ) ) ) + + 40 - 54
----
-4

query I rowsort
SELECT ALL 34 * + 36 col1
----
1224

query I rowsort
SELECT 18 * + 99 AS col0
----
1782

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT DISTINCT - MIN( DISTINCT 14 ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-687
SELECT DISTINCT - MIN ( DISTINCT 14 ) AS col0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-688
SELECT ALL 28 + - 65 + - CASE + + COALESCE ( MIN( ALL 56 ), + 22 * + NULLIF ( AVG ( - 0 ), 6 ), 77 ) WHEN - - 28 * COALESCE ( - 4 * 96 + - 33, - CAST( NULL AS SIGNED ), - 60 * 2 ) THEN 91 END * + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-688
SELECT ALL 28 + - 65 + - CASE + + COALESCE ( MIN ( ALL 56 ), + 22 * + NULLIF ( AVG ( - 0 ), 6 ), 77 ) WHEN - - 28 * COALESCE ( - 4 * 96 + - 33, - CAST ( NULL AS INTEGER ), - 60 * 2 ) THEN 91 END * + 19
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-689
SELECT - 83 DIV + 66 + + 13 * 70 DIV - - 22
----
40

skipif mysql # not compatible
query I rowsort label-689
SELECT - 83 / + 66 + + 13 * 70 / - - 22
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-690
SELECT 21 AS col0, + MAX( - - 23 ) AS col0
----
21
23

skipif mysql # not compatible
query II rowsort label-690
SELECT 21 AS col0, + MAX ( - - 23 ) AS col0
----
21
23

onlyif mysql # DIV for integer division: 
query I rowsort label-691
SELECT DISTINCT + 82 DIV + 14 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-691
SELECT DISTINCT + 82 / + 14 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT ALL + CASE + - 92 WHEN - 28 THEN - - 36 - - 42 ELSE NULL END * - COALESCE ( + + COUNT( * ), COUNT( * ) + + + COUNT( * ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-692
SELECT ALL + CASE + - 92 WHEN - 28 THEN - - 36 - - 42 ELSE NULL END * - COALESCE ( + + COUNT ( * ), COUNT ( * ) + + + COUNT ( * ) ) col2
----
NULL

query I rowsort
SELECT DISTINCT - 9 + - + 33 AS col2
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-694
SELECT DISTINCT 27 + + COALESCE ( + - 31, + CAST( COALESCE ( - + 34, - COUNT( * ), + 38 ) AS SIGNED ) - + 14 * + + 93, + + 54 - - - 90 * CAST( NULL AS SIGNED ) )
----
-4

skipif mysql # not compatible
query I rowsort label-694
SELECT DISTINCT 27 + + COALESCE ( + - 31, + CAST ( COALESCE ( - + 34, - COUNT ( * ), + 38 ) AS INTEGER ) - + 14 * + + 93, + + 54 - - - 90 * CAST ( NULL AS INTEGER ) )
----
-4

query I rowsort
SELECT ALL - 91 + + 29 col1
----
-62

query I rowsort
SELECT ALL - COALESCE ( - 12, - 15 ) + - 1
----
11

query I rowsort
SELECT ALL + 64 * 96
----
6144

query II rowsort
SELECT ALL + 19 + + + 42 * - 90, - ( - - ( - ( + 20 ) ) ) AS col0
----
-3761
20

query I rowsort
SELECT ALL - 92 + 31 AS col2
----
-61

query I rowsort
SELECT + 54 + - - 17
----
71

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT - COUNT( * ) * - 45 + - 89 col2
----
-44

skipif mysql # not compatible
query I rowsort label-702
SELECT - COUNT ( * ) * - 45 + - 89 col2
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-703
SELECT ALL - 36 DIV + 37 * 46 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-703
SELECT ALL - 36 / + 37 * 46 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-704
SELECT + + 1 * 13 + 41 / - CAST( - - COUNT( * ) AS SIGNED ) + - COUNT( * ) + - + NULLIF ( 98, + 70 - - + 40 + - - 50 * 63 ) - - + ( + CAST( NULL AS SIGNED ) ) * + 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-704
SELECT + + 1 * 13 + 41 / - CAST ( - - COUNT ( * ) AS INTEGER ) + - COUNT ( * ) + - + NULLIF ( 98, + 70 - - + 40 + - - 50 * 63 ) - - + ( + CAST ( NULL AS INTEGER ) ) * + 77 AS col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-706
SELECT DISTINCT - + 34 DIV 79 * - 47
----
0

skipif mysql # not compatible
query I rowsort label-706
SELECT DISTINCT - + 34 / 79 * - 47
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-709
SELECT ALL 47 * SUM( - COALESCE ( 49, + - 40 ) ) AS col0
----
-2303

skipif mysql # not compatible
query I rowsort label-709
SELECT ALL 47 * SUM ( - COALESCE ( 49, + - 40 ) ) AS col0
----
-2303

query I rowsort
SELECT ALL + - 4 - + - ( - + 17 ) AS col2
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-711
SELECT 31 * 30 * + COUNT( * ) + + 37 + + CAST( NULL AS SIGNED ) - AVG ( + + 45 ) + + 30, 6 AS col0
----
NULL
6

skipif mysql # not compatible
query II rowsort label-711
SELECT 31 * 30 * + COUNT ( * ) + + 37 + + CAST ( NULL AS INTEGER ) - AVG ( + + 45 ) + + 30, 6 AS col0
----
NULL
6

query I rowsort
SELECT DISTINCT 74 * - 39 AS col1
----
-2886

query I rowsort
SELECT - 92 + + 38
----
-54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-714
SELECT DISTINCT COUNT( * ) * ( + 18 ) + + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-715
SELECT ALL + 38 AS col0, + 56 DIV 97
----
38
0

skipif mysql # not compatible
query II rowsort label-715
SELECT ALL + 38 AS col0, + 56 / 97
----
38
0

query I rowsort
SELECT - 19 * - - 99
----
-1881

query I rowsort
SELECT 25 * + + 32
----
800

query I rowsort
SELECT - 94 + + + 16
----
-78

query I rowsort
SELECT 18 + + - 63 AS col1
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-720
SELECT DISTINCT 69 DIV - - 34 AS col0, + SUM( DISTINCT - + 98 )
----
2
-98

skipif mysql # not compatible
query II rowsort label-720
SELECT DISTINCT 69 / - - 34 AS col0, + SUM ( DISTINCT - + 98 )
----
2
-98

query II rowsort
SELECT 98 + 88 AS col1, 14
----
186
14

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT 2 - - SUM( ALL + 32 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-722
SELECT 2 - - SUM ( ALL + 32 ) AS col2
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-723
SELECT 8 DIV 92 DIV + 96
----
0

skipif mysql # not compatible
query I rowsort label-723
SELECT 8 / 92 / + 96
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-724
SELECT 43 + CAST( - + 83 AS SIGNED ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-724
SELECT 43 + CAST ( - + 83 AS INTEGER ) AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-725
SELECT DISTINCT 22 + 69 + 39 + + COALESCE ( 47, + 67 + - COUNT( * ), + 12 - 43 * 88 ) * 55 + - MIN( DISTINCT + 11 )
----
2704

skipif mysql # not compatible
query I rowsort label-725
SELECT DISTINCT 22 + 69 + 39 + + COALESCE ( 47, + 67 + - COUNT ( * ), + 12 - 43 * 88 ) * 55 + - MIN ( DISTINCT + 11 )
----
2704

onlyif mysql # aggregate syntax: 
query I rowsort label-726
SELECT ( - + 94 ) + - NULLIF ( - SUM( ALL 71 ), 23 ) + 73 * + + 55 * 13 AS col2
----
52172

skipif mysql # not compatible
query I rowsort label-726
SELECT ( - + 94 ) + - NULLIF ( - SUM ( ALL 71 ), 23 ) + 73 * + + 55 * 13 AS col2
----
52172

onlyif mysql # aggregate syntax: 
query II rowsort label-727
SELECT 56 * + COUNT( * ) AS col2, - 3
----
56
-3

skipif mysql # not compatible
query II rowsort label-727
SELECT 56 * + COUNT ( * ) AS col2, - 3
----
56
-3

query I rowsort
SELECT ALL + 4 * + ( - + 23 ) + + + 82
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-729
SELECT 86 DIV - + 76 + - + 75
----
-76

skipif mysql # not compatible
query I rowsort label-729
SELECT 86 / - + 76 + - + 75
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-730
SELECT 69 * 79 * + 54 DIV - COUNT( * ) - + 44 AS col2
----
-294398

skipif mysql # not compatible
query I rowsort label-730
SELECT 69 * 79 * + 54 / - COUNT ( * ) - + 44 AS col2
----
-294398

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT ALL MAX( ALL 42 ) * 34 + + + 80 + + MAX( + + 23 )
----
1531

skipif mysql # not compatible
query I rowsort label-731
SELECT ALL MAX ( ALL 42 ) * 34 + + + 80 + + MAX ( + + 23 )
----
1531

onlyif mysql # aggregate syntax: 
query I rowsort label-732
SELECT MIN( 16 )
----
16

skipif mysql # not compatible
query I rowsort label-732
SELECT MIN ( 16 )
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-733
SELECT 24 DIV + 36 + - COUNT( 97 ) * - - 40
----
-40

skipif mysql # not compatible
query I rowsort label-733
SELECT 24 / + 36 + - COUNT ( 97 ) * - - 40
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-734
SELECT ALL + MAX( DISTINCT + - ( + ( - 54 ) ) ) * + 63 + - - COUNT( * ) + - CAST( NULL AS SIGNED ) - + + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-734
SELECT ALL + MAX ( DISTINCT + - ( + ( - 54 ) ) ) * + 63 + - - COUNT ( * ) + - CAST ( NULL AS INTEGER ) - + + 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT ALL + + 82 * + 94 + + COUNT( * ) AS col0
----
7709

skipif mysql # not compatible
query I rowsort label-735
SELECT ALL + + 82 * + 94 + + COUNT ( * ) AS col0
----
7709

query I rowsort
SELECT - 35 + 21 * 0
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-737
SELECT + - MIN( 74 ) * - ( - 88 ) AS col0, 26
----
-6512
26

skipif mysql # not compatible
query II rowsort label-737
SELECT + - MIN ( 74 ) * - ( - 88 ) AS col0, 26
----
-6512
26

onlyif mysql # aggregate syntax: 
query I rowsort label-738
SELECT DISTINCT - 73 * + 49 * + 70 * + COUNT( * )
----
-250390

skipif mysql # not compatible
query I rowsort label-738
SELECT DISTINCT - 73 * + 49 * + 70 * + COUNT ( * )
----
-250390

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-739
SELECT DISTINCT COUNT( * ) * 78 - - CAST( - 93 AS SIGNED ) * + 21
----
-1875

skipif mysql # not compatible
query I rowsort label-739
SELECT DISTINCT COUNT ( * ) * 78 - - CAST ( - 93 AS INTEGER ) * + 21
----
-1875

onlyif mysql # aggregate syntax: 
query I rowsort label-740
SELECT DISTINCT 80 * - 34 * + - 71 * + 81 + - COUNT( * ) - + COUNT( * )
----
15642718

skipif mysql # not compatible
query I rowsort label-740
SELECT DISTINCT 80 * - 34 * + - 71 * + 81 + - COUNT ( * ) - + COUNT ( * )
----
15642718

query I rowsort
SELECT ALL + + 69 - 68
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-743
SELECT - ( 81 ) + COUNT( * ) * + 15 col2
----
-66

skipif mysql # not compatible
query I rowsort label-743
SELECT - ( 81 ) + COUNT ( * ) * + 15 col2
----
-66

query I rowsort
SELECT - 90 * + 62
----
-5580

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-745
SELECT - 95 * + 90, - 1 * - 78 - + + 87 * - 96 + + + COUNT( * ) + + - 57 DIV 47 col1
----
-8550
8430

skipif mysql # not compatible
query II rowsort label-745
SELECT - 95 * + 90, - 1 * - 78 - + + 87 * - 96 + + + COUNT ( * ) + + - 57 / 47 col1
----
-8550
8430

onlyif mysql # DIV for integer division: 
query II rowsort label-746
SELECT - + 8 DIV - 90, - 55 AS col2
----
0
-55

skipif mysql # not compatible
query II rowsort label-746
SELECT - + 8 / - 90, - 55 AS col2
----
0
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-747
SELECT + + ( + 10 ) / - NULLIF ( + + CAST( NULL AS SIGNED ), - 30 ) * COUNT( * ) + 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-747
SELECT + + ( + 10 ) / - NULLIF ( + + CAST ( NULL AS INTEGER ), - 30 ) * COUNT ( * ) + 36 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-748
SELECT ALL COALESCE ( + 69, - 93, - - CAST( 99 AS SIGNED ) + + 31 DIV + 29, - 6 )
----
69

skipif mysql # not compatible
query I rowsort label-748
SELECT ALL COALESCE ( + 69, - 93, - - CAST ( 99 AS INTEGER ) + + 31 / + 29, - 6 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT ALL - + COUNT( * ) + + COUNT( * ) * - 7
----
-8

skipif mysql # not compatible
query I rowsort label-749
SELECT ALL - + COUNT ( * ) + + COUNT ( * ) * - 7
----
-8

query II rowsort
SELECT - + 58 - - 71 AS col2, 12
----
13
12

onlyif mysql # aggregate syntax: 
query II rowsort label-751
SELECT DISTINCT 50 AS col1, 83 * - COUNT( * ) AS col0
----
50
-83

skipif mysql # not compatible
query II rowsort label-751
SELECT DISTINCT 50 AS col1, 83 * - COUNT ( * ) AS col0
----
50
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT - 93 + + MAX( ALL - 12 )
----
-105

skipif mysql # not compatible
query I rowsort label-752
SELECT - 93 + + MAX ( ALL - 12 )
----
-105

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

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

query I rowsort
SELECT - 69 + + + 2 AS col0
----
-67

query I rowsort
SELECT + 75 - - 23 AS col2
----
98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-757
SELECT DISTINCT NULLIF ( - NULLIF ( 64, COUNT( * ) ), + 40 ) + - COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-757
SELECT DISTINCT NULLIF ( - NULLIF ( 64, COUNT ( * ) ), + 40 ) + - COUNT ( * )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT + MAX( - ( + + 72 ) ) - + 37
----
-109

skipif mysql # not compatible
query I rowsort label-758
SELECT + MAX ( - ( + + 72 ) ) - + 37
----
-109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-759
SELECT ALL 33 + - - 95 + - 84 * 10 - - + 80 AS col1, ( - + 18 ) + - CAST( NULL AS SIGNED ) + + CAST( - 51 AS SIGNED ) / - SUM( ALL 40 ) * - 13 * COUNT( * ) - + 90 AS col2
----
-632
NULL

skipif mysql # not compatible
query II rowsort label-759
SELECT ALL 33 + - - 95 + - 84 * 10 - - + 80 AS col1, ( - + 18 ) + - CAST ( NULL AS INTEGER ) + + CAST ( - 51 AS INTEGER ) / - SUM ( ALL 40 ) * - 13 * COUNT ( * ) - + 90 AS col2
----
-632
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-760
SELECT - 39 * - CAST( NULL AS SIGNED ) * - 41 * 49
----
NULL

skipif mysql # not compatible
query I rowsort label-760
SELECT - 39 * - CAST ( NULL AS INTEGER ) * - 41 * 49
----
NULL

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

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

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

query I rowsort
SELECT ALL 3 * - 24
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-764
SELECT CAST( + COALESCE ( - COALESCE ( - - NULLIF ( + + 56, + 11 ), 80, + + 25 * 83 + + COUNT( * ) - - 50, ( COALESCE ( + + 37, - 69 + 56 * + NULLIF ( - COUNT( * ), - CASE - 10 WHEN - ( 36 ) + 97 THEN SUM( 97 ) + + 64 END * + 76 ) ) ) ), - 20 + 37, 31 ) AS SIGNED ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-764
SELECT CAST ( + COALESCE ( - COALESCE ( - - NULLIF ( + + 56, + 11 ), 80, + + 25 * 83 + + COUNT ( * ) - - 50, ( COALESCE ( + + 37, - 69 + 56 * + NULLIF ( - COUNT ( * ), - CASE - 10 WHEN - ( 36 ) + 97 THEN SUM ( 97 ) + + 64 END * + 76 ) ) ) ), - 20 + 37, 31 ) AS INTEGER ) AS col1
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-765
SELECT ALL COUNT( * ) DIV - 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-765
SELECT ALL COUNT ( * ) / - 59 AS col1
----
0

query I rowsort
SELECT 92 * NULLIF ( - 88, ( + 67 ) ) + - - 50 col2
----
-8046

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT DISTINCT 32 * + NULLIF ( + COUNT( * ), COUNT( * ) ) * 98 - 7 * - 12 + 24 + + 24 / + 37 + 62 * + 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-767
SELECT DISTINCT 32 * + NULLIF ( + COUNT ( * ), COUNT ( * ) ) * 98 - 7 * - 12 + 24 + + 24 / + 37 + 62 * + 86 AS col1
----
NULL

query I rowsort
SELECT + ( - 73 ) * - 87 AS col2
----
6351

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-769
SELECT ALL 61 DIV COUNT( DISTINCT - - 16 ) - - + ( + COUNT( * ) )
----
62

skipif mysql # not compatible
query I rowsort label-769
SELECT ALL 61 / COUNT ( DISTINCT - - 16 ) - - + ( + COUNT ( * ) )
----
62

query I rowsort
SELECT ALL 67 * ( - 77 ) * 31 AS col1
----
-159929

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

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

query II rowsort
SELECT DISTINCT + - 98, 83 AS col0
----
-98
83

onlyif mysql # aggregate syntax: 
query II rowsort label-773
SELECT + - NULLIF ( - COALESCE ( 58, COALESCE ( - COUNT( * ), + - 24 ) ), - + COUNT( * ) + - MAX( + - 95 ) ) + 75, + 13 + + 81 AS col1
----
133
94

skipif mysql # not compatible
query II rowsort label-773
SELECT + - NULLIF ( - COALESCE ( 58, COALESCE ( - COUNT ( * ), + - 24 ) ), - + COUNT ( * ) + - MAX ( + - 95 ) ) + 75, + 13 + + 81 AS col1
----
133
94

query I rowsort
SELECT ALL - 33 * + ( - 48 ) AS col1
----
1584

query I rowsort
SELECT - 22 - - + 66
----
44

query I rowsort
SELECT DISTINCT - 1 * 30 AS col1
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-777
SELECT + + COUNT( * ) AS col1, 9 / - CAST( NULL AS DECIMAL ) * - + COUNT( * ) * - + CAST( NULL AS SIGNED ) + - 71
----
1
NULL

skipif mysql # not compatible
query II rowsort label-777
SELECT + + COUNT ( * ) AS col1, 9 / - CAST ( NULL AS REAL ) * - + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) + - 71
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-778
SELECT + + CASE - - 21 WHEN CASE + COUNT( + 53 ) WHEN + + 87 * 36 * + 46 - 11 THEN NULL WHEN - + 30 THEN 7 * COUNT( * ) ELSE NULL END * 74 * - - 53 THEN - CAST( 81 AS SIGNED ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-778
SELECT + + CASE - - 21 WHEN CASE + COUNT ( + 53 ) WHEN + + 87 * 36 * + 46 - 11 THEN NULL WHEN - + 30 THEN 7 * COUNT ( * ) ELSE NULL END * 74 * - - 53 THEN - CAST ( 81 AS INTEGER ) ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-779
SELECT ALL + 57 DIV ( - 52 ) - + 38 DIV - 77 * 53 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-779
SELECT ALL + 57 / ( - 52 ) - + 38 / - 77 * 53 AS col0
----
-1

query I rowsort
SELECT - - 88 + - 5 AS col2
----
83

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

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

query I rowsort
SELECT + 69 * + 26 * - + 50 AS col2
----
-89700

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

skipif mysql # not compatible
query II rowsort label-783
SELECT COUNT ( * ) AS col1, 10
----
1
10

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-784
SELECT ALL CAST( NULL AS DECIMAL ) AS col0, + 96 * - ( - - 23 )
----
NULL
-2208

skipif mysql # not compatible
query II rowsort label-784
SELECT ALL CAST ( NULL AS REAL ) AS col0, + 96 * - ( - - 23 )
----
NULL
-2208

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT ALL + 5 + - COUNT( * ) + + 53 * - 90 - - - NULLIF ( - COUNT( * ), + ( - 42 ) ) AS col2
----
-4765

skipif mysql # not compatible
query I rowsort label-785
SELECT ALL + 5 + - COUNT ( * ) + + 53 * - 90 - - - NULLIF ( - COUNT ( * ), + ( - 42 ) ) AS col2
----
-4765

onlyif mysql # aggregate syntax: 
query I rowsort label-786
SELECT - 39 * + - MAX( ALL + 68 )
----
2652

skipif mysql # not compatible
query I rowsort label-786
SELECT - 39 * + - MAX ( ALL + 68 )
----
2652

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

skipif mysql # not compatible
query I rowsort label-787
SELECT ALL + COUNT ( * ) / + 59 * + 5 * 56 AS col2
----
0

query I rowsort
SELECT - 15 * 52 col2
----
-780

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

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

query I rowsort
SELECT - 33 + 57 AS col2
----
24

query II rowsort
SELECT - 74 AS col1, 97 AS col0
----
-74
97

query I rowsort
SELECT DISTINCT - 42 - 90 AS col1
----
-132

query I rowsort
SELECT 36 - 6 AS col1
----
30

query I rowsort
SELECT 72 * + 21 AS col0
----
1512

query II rowsort
SELECT 18, - 87 AS col2
----
18
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-796
SELECT 78 + + - CAST( NULL AS SIGNED ) + - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-796
SELECT 78 + + - CAST ( NULL AS INTEGER ) + - 52
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-797
SELECT 56 col0, - COUNT( * )
----
56
-1

skipif mysql # not compatible
query II rowsort label-797
SELECT 56 col0, - COUNT ( * )
----
56
-1

query I rowsort
SELECT 62 * 89
----
5518

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-799
SELECT ALL - 32 AS col2, + COUNT( * ) DIV + 59 + 18 AS col0
----
-32
18

skipif mysql # not compatible
query II rowsort label-799
SELECT ALL - 32 AS col2, + COUNT ( * ) / + 59 + 18 AS col0
----
-32
18

query II rowsort
SELECT DISTINCT - 72, - 60 + - 63 AS col0
----
-72
-123

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-801
SELECT ALL ( + + 47 ) DIV - + CAST( 81 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-801
SELECT ALL ( + + 47 ) / - + CAST ( 81 AS INTEGER )
----
0

query I rowsort
SELECT 31 * - 19 AS col0
----
-589

query II rowsort
SELECT DISTINCT - 90 AS col0, 19
----
-90
19

onlyif mysql # aggregate syntax: 
query I rowsort label-804
SELECT DISTINCT - ( - CASE - + 8 WHEN + 93 * + 70 * + 16 * 79 THEN COUNT( * ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-804
SELECT DISTINCT - ( - CASE - + 8 WHEN + 93 * + 70 * + 16 * 79 THEN COUNT ( * ) END )
----
NULL

query I rowsort
SELECT ALL + CASE + + 47 WHEN + - ( + 38 ) THEN - + 22 + - 90 ELSE NULL END * + - 18 - + + COALESCE ( + - 47, - - 40 + - 66, + + 64 )
----
NULL

query I rowsort
SELECT 10 * + + 71 * - 77
----
-54670

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

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

query I rowsort
SELECT NULLIF ( + 6, + 9 ) + - 20
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-809
SELECT 2 DIV - 66 * - 57
----
0

skipif mysql # not compatible
query I rowsort label-809
SELECT 2 / - 66 * - 57
----
0

query I rowsort
SELECT - 86 * - 89 AS col0
----
7654

onlyif mysql # aggregate syntax: 
query I rowsort label-811
SELECT DISTINCT + 69 + - COUNT( * ) * 95 * - + 71
----
6814

skipif mysql # not compatible
query I rowsort label-811
SELECT DISTINCT + 69 + - COUNT ( * ) * 95 * - + 71
----
6814

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT ALL MAX( 86 ) + 93 AS col1
----
179

skipif mysql # not compatible
query I rowsort label-812
SELECT ALL MAX ( 86 ) + 93 AS col1
----
179

query I rowsort
SELECT DISTINCT - - ( - 74 ) AS col1
----
-74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-815
SELECT 59 + COUNT( * ) * - + COUNT( * ) * - 92 AS col1
----
151

skipif mysql # not compatible
query I rowsort label-815
SELECT 59 + COUNT ( * ) * - + COUNT ( * ) * - 92 AS col1
----
151

query II rowsort
SELECT + 49 AS col0, 32
----
49
32

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT ( 28 ) + - + MAX( ALL - 50 ) - 71
----
7

skipif mysql # not compatible
query I rowsort label-817
SELECT ( 28 ) + - + MAX ( ALL - 50 ) - 71
----
7

query I rowsort
SELECT + 11 * ( - 73 ) + 95 AS col1
----
-708

onlyif mysql # DIV for integer division: 
query I rowsort label-819
SELECT ALL - 73 + 38 DIV + + ( 42 )
----
-73

skipif mysql # not compatible
query I rowsort label-819
SELECT ALL - 73 + 38 / + + ( 42 )
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-820
SELECT 37 - COUNT( * ) AS col1, 50 - + + 88
----
36
-38

skipif mysql # not compatible
query II rowsort label-820
SELECT 37 - COUNT ( * ) AS col1, 50 - + + 88
----
36
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-821
SELECT DISTINCT NULLIF ( + 4, - COUNT( DISTINCT 54 ) DIV + 17 ) DIV - 88
----
0

skipif mysql # not compatible
query I rowsort label-821
SELECT DISTINCT NULLIF ( + 4, - COUNT ( DISTINCT 54 ) / + 17 ) / - 88
----
0

query I rowsort
SELECT DISTINCT 63 - + - 48 * + 12 AS col2
----
639

query I rowsort
SELECT ALL 98 - + 41 AS col2
----
57

query I rowsort
SELECT DISTINCT ( ( - + 24 ) ) * - + 7 AS col2
----
168

query I rowsort
SELECT ( + + 91 ) + + 37 + + 52 * - 98 * - 21
----
107144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-826
SELECT 72 * - - 94 * - + MAX( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-826
SELECT 72 * - - 94 * - + MAX ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query II rowsort
SELECT 91 - + + 35 - + 87 + - 9 * 5, + 28 AS col0
----
-76
28

onlyif mysql # DIV for integer division: 
query I rowsort label-828
SELECT DISTINCT 90 DIV + 67 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-828
SELECT DISTINCT 90 / + 67 AS col1
----
1

query I rowsort
SELECT 81 + - 19
----
62

query I rowsort
SELECT DISTINCT - 95 * - 42
----
3990

query I rowsort
SELECT DISTINCT - - ( - - 43 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-832
SELECT + 62 * 78 * - - COUNT( * ) + - + COUNT( + + 27 ) + + - 29
----
4806

skipif mysql # not compatible
query I rowsort label-832
SELECT + 62 * 78 * - - COUNT ( * ) + - + COUNT ( + + 27 ) + + - 29
----
4806

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-834
SELECT ALL + 1 + + - 77 DIV + 15
----
-4

skipif mysql # not compatible
query I rowsort label-834
SELECT ALL + 1 + + - 77 / + 15
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT 56 + - SUM( - + 86 ) * + 10
----
916

skipif mysql # not compatible
query I rowsort label-835
SELECT 56 + - SUM ( - + 86 ) * + 10
----
916

query II rowsort
SELECT DISTINCT + + 53 * - - 18 * - 11 AS col1, - 0 AS col2
----
-10494
0

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT ALL - - 91 + + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-837
SELECT ALL - - 91 + + COUNT ( * )
----
92

query II rowsort
SELECT - 70 + - 27 col1, - 46 AS col0
----
-97
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-839
SELECT - MAX( - ( - 32 ) ) * 69 + ( + - 69 ) * + 99 * + COUNT( + - 82 )
----
-9039

skipif mysql # not compatible
query I rowsort label-839
SELECT - MAX ( - ( - 32 ) ) * 69 + ( + - 69 ) * + 99 * + COUNT ( + - 82 )
----
-9039

query I rowsort
SELECT ALL + + 78 + COALESCE ( - 4, + - 14 )
----
74

query I rowsort
SELECT ALL - - COALESCE ( 25, 51 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT ALL - COUNT( 14 ) + - COUNT( * ) * - COALESCE ( + + 94, - 1 * + - 2 + 76 * + - 15 ) + MAX( DISTINCT 93 )
----
186

skipif mysql # not compatible
query I rowsort label-842
SELECT ALL - COUNT ( 14 ) + - COUNT ( * ) * - COALESCE ( + + 94, - 1 * + - 2 + 76 * + - 15 ) + MAX ( DISTINCT 93 )
----
186

query I rowsort
SELECT NULLIF ( - 65, 22 ) * 98 + - - 28 + 69
----
-6273

onlyif mysql # aggregate syntax: 
query II rowsort label-844
SELECT 17 + - + 12 AS col0, 51 * - COUNT( * ) col2
----
5
-51

skipif mysql # not compatible
query II rowsort label-844
SELECT 17 + - + 12 AS col0, 51 * - COUNT ( * ) col2
----
5
-51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT ALL - MAX( ALL COALESCE ( + 39, + - 75, - 75 ) ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-846
SELECT ALL - MAX ( ALL COALESCE ( + 39, + - 75, - 75 ) ) AS col0
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-847
SELECT COUNT( * ) + - 25 + - + 40 AS col1, COALESCE ( + 84, - + 67 + 39 - + + 99 + + + 22 * - 77 DIV + CAST( NULL AS SIGNED ), 24 ) + - ( - 90 ) * + 89 * COUNT( * )
----
-64
8094

skipif mysql # not compatible
query II rowsort label-847
SELECT COUNT ( * ) + - 25 + - + 40 AS col1, COALESCE ( + 84, - + 67 + 39 - + + 99 + + + 22 * - 77 / + CAST ( NULL AS INTEGER ), 24 ) + - ( - 90 ) * + 89 * COUNT ( * )
----
-64
8094

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT DISTINCT + CASE + + 52 WHEN + + 97 + + 90 THEN - - 70 WHEN - ( - + 74 ) THEN CASE + 20 WHEN + 58 THEN - - 64 ELSE - - 88 - + + 34 END + + 69 + NULLIF ( + 12, - COUNT( * ) * 90 ) * + 81 WHEN CASE + 43 WHEN - 17 THEN + 24 + - 83 * 61 WHEN 80 THEN NULL WHEN 9 THEN - ( COUNT( * ) ) END + - ( - 56 ) THEN NULL WHEN NULLIF ( - 19, + 46 * 32 ) THEN NULL ELSE NULL END * - 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-848
SELECT DISTINCT + CASE + + 52 WHEN + + 97 + + 90 THEN - - 70 WHEN - ( - + 74 ) THEN CASE + 20 WHEN + 58 THEN - - 64 ELSE - - 88 - + + 34 END + + 69 + NULLIF ( + 12, - COUNT ( * ) * 90 ) * + 81 WHEN CASE + 43 WHEN - 17 THEN + 24 + - 83 * 61 WHEN 80 THEN NULL WHEN 9 THEN - ( COUNT ( * ) ) END + - ( - 56 ) THEN NULL WHEN NULLIF ( - 19, + 46 * 32 ) THEN NULL ELSE NULL END * - 76 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-849
SELECT + SUM( DISTINCT - - 93 ) + COUNT( ALL 80 ) * CAST( + 69 AS SIGNED ) * + ( 68 ) + CAST( COUNT( * ) AS SIGNED ) * 5 AS col2
----
4790

skipif mysql # not compatible
query I rowsort label-849
SELECT + SUM ( DISTINCT - - 93 ) + COUNT ( ALL 80 ) * CAST ( + 69 AS INTEGER ) * + ( 68 ) + CAST ( COUNT ( * ) AS INTEGER ) * 5 AS col2
----
4790

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

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

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

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

query I rowsort
SELECT + ( - + 90 ) + + - 24
----
-114

onlyif mysql # aggregate syntax: 
query II rowsort label-853
SELECT + SUM( - - 1 ) * 33 AS col2, + 79 + + - 74
----
33
5

skipif mysql # not compatible
query II rowsort label-853
SELECT + SUM ( - - 1 ) * 33 AS col2, + 79 + + - 74
----
33
5

query I rowsort
SELECT - ( - + 45 ) * + - 21 AS col0
----
-945

query I rowsort
SELECT DISTINCT 85 * - + 13 AS col1
----
-1105

query I rowsort
SELECT DISTINCT 3 * + - 33 * 5 AS col1
----
-495

query I rowsort
SELECT ALL + 70 * - - 57 AS col1
----
3990

query I rowsort
SELECT DISTINCT 50 * + 47
----
2350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-859
SELECT + COUNT( * ) + + - 29 * - 50 * 3 * - 73 - - 66 DIV + 90
----
-317549

skipif mysql # not compatible
query I rowsort label-859
SELECT + COUNT ( * ) + + - 29 * - 50 * 3 * - 73 - - 66 / + 90
----
-317549

query I rowsort
SELECT ALL + 96 + 74 col0
----
170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-861
SELECT - COUNT( + 92 ) + 94 - + - 66 DIV - 15 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-861
SELECT - COUNT ( + 92 ) + 94 - + - 66 / - 15 AS col0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-862
SELECT DISTINCT - 63 + + + 88 / - ( - - CAST( NULL AS SIGNED ) ) + - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-862
SELECT DISTINCT - 63 + + + 88 / - ( - - CAST ( NULL AS INTEGER ) ) + - 90
----
NULL

query I rowsort
SELECT ALL + 5 + + - 0
----
5

query I rowsort
SELECT ALL - + 30 + - ( 6 ) * + + 71 AS col0
----
-456

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT ALL - MIN( ALL - ( 51 ) ) * + - AVG ( ALL - - 24 ) + CASE - + COUNT( * ) WHEN 73 THEN 73 - ( - 40 ) WHEN + 85 THEN 33 * + 61 - 94 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-867
SELECT ALL - MIN ( ALL - ( 51 ) ) * + - AVG ( ALL - - 24 ) + CASE - + COUNT ( * ) WHEN 73 THEN 73 - ( - 40 ) WHEN + 85 THEN 33 * + 61 - 94 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT DISTINCT + - SUM( 95 ) col2
----
-95

skipif mysql # not compatible
query I rowsort label-868
SELECT DISTINCT + - SUM ( 95 ) col2
----
-95

query II rowsort
SELECT ALL + - 28 * + 63 - - 96 AS col2, - 98
----
-1668
-98

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

skipif mysql # not compatible
query I rowsort label-870
SELECT - - COUNT ( * ) * + 13 / - 25
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-871
SELECT ALL + + SUM( - COALESCE ( 46, COALESCE ( 57, + 96 + + 22, - 60 + - 30 ) * + 11 + - + 61, + 38 * 60 - - 85 + - + 54 * - 85 * - 53 ) ) * + + 70 AS col1
----
-3220

skipif mysql # not compatible
query I rowsort label-871
SELECT ALL + + SUM ( - COALESCE ( 46, COALESCE ( 57, + 96 + + 22, - 60 + - 30 ) * + 11 + - + 61, + 38 * 60 - - 85 + - + 54 * - 85 * - 53 ) ) * + + 70 AS col1
----
-3220

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-872
SELECT - COUNT( * ) * + COALESCE ( 86, - 43 DIV + COUNT( * ) * 97 + - 30 + + 31, 86 * + - 86 ) * + - 60 * - - 78
----
402480

skipif mysql # not compatible
query I rowsort label-872
SELECT - COUNT ( * ) * + COALESCE ( 86, - 43 / + COUNT ( * ) * 97 + - 30 + + 31, 86 * + - 86 ) * + - 60 * - - 78
----
402480

onlyif mysql # aggregate syntax: 
query I rowsort label-873
SELECT ALL + NULLIF ( 13, + MAX( 19 ) ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-873
SELECT ALL + NULLIF ( 13, + MAX ( 19 ) ) AS col2
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-874
SELECT ALL - ( - - MIN( + + 19 ) ) * - COUNT( ALL 84 ) - - - ( + - CAST( - 13 AS SIGNED ) )
----
6

skipif mysql # not compatible
query I rowsort label-874
SELECT ALL - ( - - MIN ( + + 19 ) ) * - COUNT ( ALL 84 ) - - - ( + - CAST ( - 13 AS INTEGER ) )
----
6

query I rowsort
SELECT ALL - 74 * + ( 52 ) AS col2
----
-3848

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-876
SELECT - 74 DIV COUNT( * ) * + 22 AS col1
----
-1628

skipif mysql # not compatible
query I rowsort label-876
SELECT - 74 / COUNT ( * ) * + 22 AS col1
----
-1628

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-877
SELECT ( + SUM( + 29 ) ) * + 45 + + 16 * CAST( NULL AS SIGNED ) AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-878
SELECT SUM( ALL - 4 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-878
SELECT SUM ( ALL - 4 ) AS col0
----
-4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT - SUM( DISTINCT - + 21 )
----
21

skipif mysql # not compatible
query I rowsort label-880
SELECT - SUM ( DISTINCT - + 21 )
----
21

query II rowsort
SELECT ALL 62 * + 87 AS col1, 56
----
5394
56

query I rowsort
SELECT + 44 * + 58
----
2552

query I rowsort
SELECT ALL + 11 * - + 12 AS col0
----
-132

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

skipif mysql # not compatible
query I rowsort label-884
SELECT DISTINCT COALESCE ( - COUNT ( * ), 30 ) + - + 41
----
-42

query II rowsort
SELECT ALL 2 + - 66, 48 AS col1
----
-64
48

onlyif mysql # aggregate syntax: 
query I rowsort label-886
SELECT DISTINCT COUNT( ALL - + 78 ) + - 7
----
-6

skipif mysql # not compatible
query I rowsort label-886
SELECT DISTINCT COUNT ( ALL - + 78 ) + - 7
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-887
SELECT - ( + 88 ) + - 17 - 84 + + - COUNT( * ) AS col2, + 2
----
-190
2

skipif mysql # not compatible
query II rowsort label-887
SELECT - ( + 88 ) + - 17 - 84 + + - COUNT ( * ) AS col2, + 2
----
-190
2

query I rowsort
SELECT + 2 * 61 col1
----
122

onlyif mysql # DIV for integer division: 
query I rowsort label-889
SELECT DISTINCT + 34 + - 43 DIV - + 14 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-889
SELECT DISTINCT + 34 + - 43 / - + 14 AS col0
----
37

query I rowsort
SELECT ALL + ( - 70 ) + - 73
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT + - 79 * - COALESCE ( + - COUNT( - 36 ), - - SUM( - + 91 ) )
----
-79

skipif mysql # not compatible
query I rowsort label-891
SELECT + - 79 * - COALESCE ( + - COUNT ( - 36 ), - - SUM ( - + 91 ) )
----
-79

query I rowsort
SELECT DISTINCT 8 + - + 54 * 97 * 64 + 54 * - 24
----
-336520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-893
SELECT ALL ( - - CAST( - + 64 AS SIGNED ) )
----
-64

skipif mysql # not compatible
query I rowsort label-893
SELECT ALL ( - - CAST ( - + 64 AS INTEGER ) )
----
-64

query I rowsort
SELECT - + 38 - - + 95
----
57

query I rowsort
SELECT - 93 * - 57 * 56 * 58 * 21 - - 10
----
361570618

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT 69 / 98 + CASE - AVG ( DISTINCT - + 2 ) WHEN + 85 / - - 33 + 10 + + + 36 + 80 THEN + - COUNT( * ) + + + CASE + 45 WHEN + 41 THEN NULL WHEN + 68 THEN CASE - MAX( 92 ) WHEN + 77 + - 50 * - 25 THEN - ( + 6 ) WHEN ( 83 ) * + 81 - - NULLIF ( + ( - 16 ), - 49 * COALESCE ( - 14 * 70, + 60 / 75 ) ) THEN 17 END + - 92 ELSE NULL END + MAX( DISTINCT 23 + - NULLIF ( 34, 2 ) ) END * + 75 + - 39 * NULLIF ( 90 + + 95 * 9, 92 + 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-896
SELECT 69 / 98 + CASE - AVG ( DISTINCT - + 2 ) WHEN + 85 / - - 33 + 10 + + + 36 + 80 THEN + - COUNT ( * ) + + + CASE + 45 WHEN + 41 THEN NULL WHEN + 68 THEN CASE - MAX ( 92 ) WHEN + 77 + - 50 * - 25 THEN - ( + 6 ) WHEN ( 83 ) * + 81 - - NULLIF ( + ( - 16 ), - 49 * COALESCE ( - 14 * 70, + 60 / 75 ) ) THEN 17 END + - 92 ELSE NULL END + MAX ( DISTINCT 23 + - NULLIF ( 34, 2 ) ) END * + 75 + - 39 * NULLIF ( 90 + + 95 * 9, 92 + 82 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-897
SELECT ALL + + 50 / - + CAST( NULL AS DECIMAL ) / + COUNT( * ) - 97 + + 46 + - ( 26 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-897
SELECT ALL + + 50 / - + CAST ( NULL AS REAL ) / + COUNT ( * ) - 97 + + 46 + - ( 26 ) AS col2
----
NULL

query I rowsort
SELECT + - 19 * + + 82 * + - 89 + + 29 AS col1
----
138691

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-899
SELECT ALL - + 35 DIV + 64 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-899
SELECT ALL - + 35 / + 64 * COUNT ( * )
----
0

query I rowsort
SELECT - + 88 * + 66 + + + 77 * - 14 AS col2
----
-6886

onlyif mysql # aggregate syntax: 
query I rowsort label-901
SELECT DISTINCT - MIN( + 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-901
SELECT DISTINCT - MIN ( + 52 )
----
-52

query II rowsort
SELECT + 2, - 2 AS col1
----
2
-2

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

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

query I rowsort
SELECT DISTINCT - 87 * - 99
----
8613

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-905
SELECT COUNT( * ) * + - NULLIF ( + 25, CAST( NULL AS SIGNED ) ) + + - ( - COALESCE ( + COALESCE ( + + COUNT( * ), + + 39 * 15, 78 ), - 73, - COUNT( * ) + + + COUNT( * ) ) ) + - + 33 AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-905
SELECT COUNT ( * ) * + - NULLIF ( + 25, CAST ( NULL AS INTEGER ) ) + + - ( - COALESCE ( + COALESCE ( + + COUNT ( * ), + + 39 * 15, 78 ), - 73, - COUNT ( * ) + + + COUNT ( * ) ) ) + - + 33 AS col2
----
-57

query I rowsort
SELECT DISTINCT - NULLIF ( + 80, + + 86 * - - 34 + + 0 / + + 91 ) AS col0
----
-80

query I rowsort
SELECT ALL + 15 + - + 92
----
-77

query I rowsort
SELECT 71 + - + 62
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-909
SELECT 15 * + 79 * - CAST( 88 AS SIGNED ) + + 20 * + + 6 * 26 AS col2
----
-101160

skipif mysql # not compatible
query I rowsort label-909
SELECT 15 * + 79 * - CAST ( 88 AS INTEGER ) + + 20 * + + 6 * 26 AS col2
----
-101160

query II rowsort
SELECT ALL 25 AS col0, 22 * - 52
----
25
-1144

onlyif mysql # DIV for integer division: 
query I rowsort label-911
SELECT 87 DIV 86 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-911
SELECT 87 / 86 AS col0
----
1

query I rowsort
SELECT ALL - 70 + - 23 AS col1
----
-93

query I rowsort
SELECT 68 + + - 70 AS col2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-914
SELECT 13 DIV + - 50
----
0

skipif mysql # not compatible
query I rowsort label-914
SELECT 13 / + - 50
----
0

query II rowsort
SELECT ALL 90 AS col1, + 57
----
90
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-916
SELECT - - ( + CASE - COUNT( * ) WHEN + CASE + ( + 96 ) WHEN COUNT( * ) THEN NULLIF ( 90, - + COUNT( * ) ) DIV + - 6 DIV MAX( - 55 ) * + 52 ELSE + + 94 * 43 * + SUM( + 52 ) + - + ( - + COUNT( * ) ) + + AVG ( DISTINCT 31 ) * 0 END THEN - COUNT( 36 ) DIV COALESCE ( - 55, - CASE - COUNT( * ) WHEN MIN( DISTINCT 9 ) THEN NULL ELSE 4 END ) ELSE - 20 END ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-916
SELECT - - ( + CASE - COUNT ( * ) WHEN + CASE + ( + 96 ) WHEN COUNT ( * ) THEN NULLIF ( 90, - + COUNT ( * ) ) / + - 6 / MAX ( - 55 ) * + 52 ELSE + + 94 * 43 * + SUM ( + 52 ) + - + ( - + COUNT ( * ) ) + + AVG ( DISTINCT 31 ) * 0 END THEN - COUNT ( 36 ) / COALESCE ( - 55, - CASE - COUNT ( * ) WHEN MIN ( DISTINCT 9 ) THEN NULL ELSE 4 END ) ELSE - 20 END ) AS col2
----
-20

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

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

query I rowsort
SELECT + 14 * - 77 + - 88
----
-1166

query I rowsort
SELECT - 23 + - 35 - + 95 - - 38 AS col1
----
-115

query I rowsort
SELECT DISTINCT + + 46 + - 44 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT 54 + + ( - SUM( DISTINCT ( 59 ) ) )
----
-5

skipif mysql # not compatible
query I rowsort label-921
SELECT 54 + + ( - SUM ( DISTINCT ( 59 ) ) )
----
-5

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

skipif mysql # not compatible
query I rowsort label-922
SELECT - COUNT ( ALL + 41 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-923
SELECT + 6, COUNT( * ) / + + 6 * + CASE + 51 WHEN 77 THEN + ( + CAST( NULL AS SIGNED ) ) + + ( + 97 ) + 30 - 16 * - + 45 * - 49 WHEN + 5 * - - MIN( - 26 ) / - - 82 - + 25 - ( - CAST( NULL AS SIGNED ) ) THEN NULL END AS col0
----
6
NULL

skipif mysql # not compatible
query II rowsort label-923
SELECT + 6, COUNT ( * ) / + + 6 * + CASE + 51 WHEN 77 THEN + ( + CAST ( NULL AS INTEGER ) ) + + ( + 97 ) + 30 - 16 * - + 45 * - 49 WHEN + 5 * - - MIN ( - 26 ) / - - 82 - + 25 - ( - CAST ( NULL AS INTEGER ) ) THEN NULL END AS col0
----
6
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-924
SELECT + SUM( DISTINCT - - 99 ) + + 54 * + 39 * + 16
----
33795

skipif mysql # not compatible
query I rowsort label-924
SELECT + SUM ( DISTINCT - - 99 ) + + 54 * + 39 * + 16
----
33795

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

skipif mysql # not compatible
query I rowsort label-925
SELECT DISTINCT MAX ( - 56 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-926
SELECT COUNT( ALL - 36 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-926
SELECT COUNT ( ALL - 36 ) AS col2
----
1

query I rowsort
SELECT + 91 * + 24
----
2184

onlyif mysql # aggregate syntax: 
query I rowsort label-928
SELECT - ( + NULLIF ( - 87, ( + - 99 ) / - 82 + 60 + 74 * MAX( + - 63 ) + + 84 ) )
----
87

skipif mysql # not compatible
query I rowsort label-928
SELECT - ( + NULLIF ( - 87, ( + - 99 ) / - 82 + 60 + 74 * MAX ( + - 63 ) + + 84 ) )
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-929
SELECT DISTINCT COUNT( ALL + + 15 ) * - 64 col2, 16 DIV 78
----
-64
0

skipif mysql # not compatible
query II rowsort label-929
SELECT DISTINCT COUNT ( ALL + + 15 ) * - 64 col2, 16 / 78
----
-64
0

query I rowsort
SELECT + 57 * - - 40 AS col0
----
2280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-931
SELECT DISTINCT - ( CAST( 44 AS SIGNED ) ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-931
SELECT DISTINCT - ( CAST ( 44 AS INTEGER ) ) AS col0
----
-44

query I rowsort
SELECT DISTINCT - 35 * - 43 AS col2
----
1505

onlyif mysql # aggregate syntax: 
query II rowsort label-933
SELECT 86 AS col2, - ( + MIN( DISTINCT 21 ) ) * + - 17 + - 35
----
86
322

skipif mysql # not compatible
query II rowsort label-933
SELECT 86 AS col2, - ( + MIN ( DISTINCT 21 ) ) * + - 17 + - 35
----
86
322

query I rowsort
SELECT ALL 93 * + 6 * + + 80
----
44640

query II rowsort
SELECT 2, 70 col0
----
2
70

query II rowsort
SELECT 73, - 24 AS col0
----
73
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-937
SELECT MAX( 47 ) / ( - CASE + - ( - + 93 ) WHEN - 83 THEN - COUNT( * ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-937
SELECT MAX ( 47 ) / ( - CASE + - ( - + 93 ) WHEN - 83 THEN - COUNT ( * ) END ) AS col0
----
NULL

query I rowsort
SELECT 91 * 33
----
3003

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

skipif mysql # not compatible
query I rowsort label-939
SELECT ALL - 83 + - COUNT ( * ) AS col2
----
-84

query II rowsort
SELECT DISTINCT - 10 AS col0, 30 AS col0
----
-10
30

query I rowsort
SELECT ( 17 ) * 63 AS col1
----
1071

query I rowsort
SELECT ALL + 11 * + + 18 AS col0
----
198

query II rowsort
SELECT 2 AS col2, 26
----
2
26

query I rowsort
SELECT DISTINCT 27 + - 32 + + 25
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-945
SELECT ALL 85 + - + 68 * - - CASE - - 82 WHEN + 46 + - 1 / - 46 * 24 THEN NULL WHEN ( - CASE - - 85 WHEN + + CAST( 2 AS SIGNED ) THEN + 59 ELSE NULL END ) THEN + + 8 - 11 + - + 99 * + - 37 ELSE NULL END + + SUM( + - 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-945
SELECT ALL 85 + - + 68 * - - CASE - - 82 WHEN + 46 + - 1 / - 46 * 24 THEN NULL WHEN ( - CASE - - 85 WHEN + + CAST ( 2 AS INTEGER ) THEN + 59 ELSE NULL END ) THEN + + 8 - 11 + - + 99 * + - 37 ELSE NULL END + + SUM ( + - 25 )
----
NULL

query II rowsort
SELECT 10, 22 AS col2
----
10
22

query I rowsort
SELECT ( + 14 ) + + 78
----
92

query I rowsort
SELECT ALL - COALESCE ( - 5, + 94 ) AS col2
----
5

query II rowsort
SELECT 89 col2, - 76
----
89
-76

query I rowsort
SELECT 16 * 10 AS col2
----
160

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

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT DISTINCT 84 + - 58 + COUNT( * ) * - 7 * + 86 + - 52 - - + ( + - 22 ) * - COUNT( ALL 84 ) AS col2
----
-606

skipif mysql # not compatible
query I rowsort label-952
SELECT DISTINCT 84 + - 58 + COUNT ( * ) * - 7 * + 86 + - 52 - - + ( + - 22 ) * - COUNT ( ALL 84 ) AS col2
----
-606

query I rowsort
SELECT ALL - 84 + - + 16
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT 79 * + - COUNT( * ) + + + 25 - + + 41 * - - 32 + 91 + + MIN( ALL 8 )
----
-1267

skipif mysql # not compatible
query I rowsort label-954
SELECT 79 * + - COUNT ( * ) + + + 25 - + + 41 * - - 32 + 91 + + MIN ( ALL 8 )
----
-1267

query I rowsort
SELECT ALL 81 * - + 97 * CASE + 94 WHEN - 29 THEN - 79 WHEN + 29 THEN - 28 + - 31 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-956
SELECT 38 + + + COUNT( * ) + + ( + 94 ) * - 69 + - 90 - 60 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-956
SELECT 38 + + + COUNT ( * ) + + ( + 94 ) * - 69 + - 90 - 60 + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL 11, ( - - 15 ) AS col2
----
11
15

onlyif mysql # aggregate syntax: 
query II rowsort label-958
SELECT NULLIF ( - 25, - 71 ) * SUM( + 91 ) * ( + 25 ), + 44 AS col0
----
-56875
44

skipif mysql # not compatible
query II rowsort label-958
SELECT NULLIF ( - 25, - 71 ) * SUM ( + 91 ) * ( + 25 ), + 44 AS col0
----
-56875
44

query I rowsort
SELECT 17 + - - 1 * - + 89 AS col1
----
-72

query II rowsort
SELECT - + 61 AS col2, - 15 AS col0
----
-61
-15

query I rowsort
SELECT ( + 37 ) + - + 59 * 37 * + 96
----
-209531

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

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

query I rowsort
SELECT 25 - - 22 - 65 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT - SUM( 25 ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-964
SELECT - SUM ( 25 ) AS col0
----
-25

query I rowsort
SELECT 86 + + - 16 col0
----
70

query I rowsort
SELECT - - 86 * + - 71
----
-6106

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

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

query I rowsort
SELECT ALL - - 64 * + 39 AS col0
----
2496

query I rowsort
SELECT - - 0 + + 55
----
55

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

onlyif mysql # DIV for integer division: 
query I rowsort label-971
SELECT - - 50 DIV + 61 + - 25
----
-25

skipif mysql # not compatible
query I rowsort label-971
SELECT - - 50 / + 61 + - 25
----
-25

query I rowsort
SELECT + ( - - 32 ) - - ( + 27 ) * 59 * + 43 AS col0
----
68531

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-973
SELECT COALESCE ( - - 99, MIN( + - 55 ) + + + 35 DIV MIN( - + 53 ) ) AS col0, 70 + - 20 AS col1
----
99
50

skipif mysql # not compatible
query II rowsort label-973
SELECT COALESCE ( - - 99, MIN ( + - 55 ) + + + 35 / MIN ( - + 53 ) ) AS col0, 70 + - 20 AS col1
----
99
50

query I rowsort
SELECT + 51 + - 15 AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT DISTINCT COUNT( - - 84 ) * 24 + 69 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-975
SELECT DISTINCT COUNT ( - - 84 ) * 24 + 69 AS col0
----
93

query I rowsort
SELECT + COALESCE ( + - ( + + 93 ), - 0 )
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-977
SELECT CASE 56 WHEN 58 + - 51 / 83 THEN + 91 + - + 13 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN + - CAST( + - ( - 62 ) AS SIGNED ) * - - 72 THEN + ( + 77 ) * + 80 / ( - MIN( + 5 ) ) END, + 31 AS col0
----
NULL
31

skipif mysql # not compatible
query II rowsort label-977
SELECT CASE 56 WHEN 58 + - 51 / 83 THEN + 91 + - + 13 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN + - CAST ( + - ( - 62 ) AS INTEGER ) * - - 72 THEN + ( + 77 ) * + 80 / ( - MIN ( + 5 ) ) END, + 31 AS col0
----
NULL
31

query I rowsort
SELECT + 74 + - 27
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-979
SELECT + ( + + 82 ) DIV ( + + 84 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-979
SELECT + ( + + 82 ) / ( + + 84 ) AS col2
----
0

query I rowsort
SELECT - 8 * + 79 + - ( + - NULLIF ( + + 85, 4 ) ) - + 39
----
-586

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-981
SELECT + ( + + COUNT( * ) ) * + CASE COALESCE ( - 73, - + 86 + + + 29 * CAST( + - 25 AS SIGNED ) ) WHEN - + 2 THEN - COUNT( * ) - - ( - 32 ) + - 38 / - + 74 + 40 + - 78 / - - CAST( NULL AS SIGNED ) END + 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-981
SELECT + ( + + COUNT ( * ) ) * + CASE COALESCE ( - 73, - + 86 + + + 29 * CAST ( + - 25 AS INTEGER ) ) WHEN - + 2 THEN - COUNT ( * ) - - ( - 32 ) + - 38 / - + 74 + 40 + - 78 / - - CAST ( NULL AS INTEGER ) END + 35 AS col0
----
NULL

query I rowsort
SELECT ALL - 33 * - - 29 - - + 56 AS col2
----
-901

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-983
SELECT ALL + 80 / - - 63 / CAST( NULL AS SIGNED ) * + 12 * - - 52, + 36 * - 20 + - COUNT( * ) AS col0
----
NULL
-721

skipif mysql # not compatible
query II rowsort label-983
SELECT ALL + 80 / - - 63 / CAST ( NULL AS INTEGER ) * + 12 * - - 52, + 36 * - 20 + - COUNT ( * ) AS col0
----
NULL
-721

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-984
SELECT + - 47 - + - COUNT( * ) - + - COALESCE ( + COUNT( 41 ), NULLIF ( + SUM( + + 71 ), + 93 ) ) + - 4 DIV + 81 * + - ( - 74 )
----
-45

skipif mysql # not compatible
query I rowsort label-984
SELECT + - 47 - + - COUNT ( * ) - + - COALESCE ( + COUNT ( 41 ), NULLIF ( + SUM ( + + 71 ), + 93 ) ) + - 4 / + 81 * + - ( - 74 )
----
-45

onlyif mysql # DIV for integer division: 
query II rowsort label-985
SELECT - - 42 DIV - 43 AS col1, 96 + + 76
----
0
172

skipif mysql # not compatible
query II rowsort label-985
SELECT - - 42 / - 43 AS col1, 96 + + 76
----
0
172

query I rowsort
SELECT ALL ( 22 ) * - 37 AS col0
----
-814

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-987
SELECT DISTINCT COALESCE ( - 7, 71, - 36, 23 + - 18 + - 40 - + 58 * - CAST( - 29 AS SIGNED ) ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-987
SELECT DISTINCT COALESCE ( - 7, 71, - 36, 23 + - 18 + - 40 - + 58 * - CAST ( - 29 AS INTEGER ) ) AS col0
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-988
SELECT ALL + + 41 * + COUNT( * ) + + 78 + + 63 + + COALESCE ( 60, - + COUNT( * ), - 14 + + 91 * 2 ) DIV + ( 64 )
----
182

skipif mysql # not compatible
query I rowsort label-988
SELECT ALL + + 41 * + COUNT ( * ) + + 78 + + 63 + + COALESCE ( 60, - + COUNT ( * ), - 14 + + 91 * 2 ) / + ( 64 )
----
182

onlyif mysql # aggregate syntax: 
query II rowsort label-989
SELECT + 12 * COUNT( * ), + 40 * + 79 AS col1
----
12
3160

skipif mysql # not compatible
query II rowsort label-989
SELECT + 12 * COUNT ( * ), + 40 * + 79 AS col1
----
12
3160

query I rowsort
SELECT - - 90 + 24 AS col2
----
114

query I rowsort
SELECT DISTINCT 0 * + + 46 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-992
SELECT - - 40 * + 91 AS col1, + CAST( NULL AS SIGNED )
----
3640
NULL

skipif mysql # not compatible
query II rowsort label-992
SELECT - - 40 * + 91 AS col1, + CAST ( NULL AS INTEGER )
----
3640
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-994
SELECT + CASE - + 46 WHEN - + 14 + - COALESCE ( 26, + COUNT( * ) ) THEN NULL WHEN MIN( ALL - 51 ) THEN 32 + + + 82 + - 71 ELSE - - CASE - 71 WHEN - 85 * - 84 THEN ( + MIN( 31 ) ) ELSE - 86 * 64 * MAX( - - 50 ) + SUM( ALL 56 + 30 ) END END
----
-275114

skipif mysql # not compatible
query I rowsort label-994
SELECT + CASE - + 46 WHEN - + 14 + - COALESCE ( 26, + COUNT ( * ) ) THEN NULL WHEN MIN ( ALL - 51 ) THEN 32 + + + 82 + - 71 ELSE - - CASE - 71 WHEN - 85 * - 84 THEN ( + MIN ( 31 ) ) ELSE - 86 * 64 * MAX ( - - 50 ) + SUM ( ALL 56 + 30 ) END END
----
-275114

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT - 71 + + COUNT( * ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-995
SELECT - 71 + + COUNT ( * ) AS col2
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-996
SELECT ALL + MIN( - - 13 ) DIV - 16 * - - 64 - 7 * + COUNT( + 40 ) + COUNT( * ) DIV - + 62
----
-7

skipif mysql # not compatible
query I rowsort label-996
SELECT ALL + MIN ( - - 13 ) / - 16 * - - 64 - 7 * + COUNT ( + 40 ) + COUNT ( * ) / - + 62
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT - SUM( - 76 ) + - 37
----
39

skipif mysql # not compatible
query I rowsort label-997
SELECT - SUM ( - 76 ) + - 37
----
39

query I rowsort
SELECT ALL - 83 + - 46 + - 0 * - 51 AS col2
----
-129

query II rowsort
SELECT - 45 AS col2, 77 * + 15 AS col2
----
-45
1155

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT DISTINCT COALESCE ( 82, ( - COUNT( * ) ) ) col0
----
82

skipif mysql # not compatible
query I rowsort label-1000
SELECT DISTINCT COALESCE ( 82, ( - COUNT ( * ) ) ) col0
----
82

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

skipif mysql # not compatible
query I rowsort label-1001
SELECT ALL + 56 / - COUNT ( * ) AS col0
----
-56

query I rowsort
SELECT - 28 * + 69 col2
----
-1932

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1003
SELECT - NULLIF ( + + 27, + - CASE 82 WHEN - + 42 + 6 THEN NULL WHEN - - NULLIF ( - - 1, NULLIF ( - 29, 76 ) + 39 ) * - 17 THEN + 78 * + 8 - + 29 + + 99 * - + 21 + - CASE COALESCE ( CASE 86 WHEN - 16 * AVG ( DISTINCT 79 ) THEN NULL WHEN - 67 THEN 53 END, 86, CAST( NULL AS DECIMAL ), 2 ) WHEN 35 THEN NULL WHEN + 85 + ( 0 + 33 ) THEN 98 * ( 46 ) ELSE CASE COUNT( * ) WHEN 84 - + 54 THEN - 81 ELSE + 53 END END END ) * - ( - 7 ) AS col2
----
-189

skipif mysql # not compatible
query I rowsort label-1003
SELECT - NULLIF ( + + 27, + - CASE 82 WHEN - + 42 + 6 THEN NULL WHEN - - NULLIF ( - - 1, NULLIF ( - 29, 76 ) + 39 ) * - 17 THEN + 78 * + 8 - + 29 + + 99 * - + 21 + - CASE COALESCE ( CASE 86 WHEN - 16 * AVG ( DISTINCT 79 ) THEN NULL WHEN - 67 THEN 53 END, 86, CAST ( NULL AS REAL ), 2 ) WHEN 35 THEN NULL WHEN + 85 + ( 0 + 33 ) THEN 98 * ( 46 ) ELSE CASE COUNT ( * ) WHEN 84 - + 54 THEN - 81 ELSE + 53 END END END ) * - ( - 7 ) AS col2
----
-189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1004
SELECT CASE - ( - + 9 ) WHEN + - 34 THEN NULL ELSE - + 85 END DIV + - COUNT( * ) - COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-1004
SELECT CASE - ( - + 9 ) WHEN + - 34 THEN NULL ELSE - + 85 END / + - COUNT ( * ) - COUNT ( * )
----
84

query II rowsort
SELECT - 98 * 36 * - - 97, - 45 AS col0
----
-342216
-45

query I rowsort
SELECT + 74 * - - 22
----
1628

query I rowsort
SELECT ALL - 89 * 35 - 66 - + + 33 + 87 AS col1
----
-3127

onlyif mysql # DIV for integer division: 
query II rowsort label-1008
SELECT ALL + 35, + 96 DIV - 48 AS col2
----
35
-2

skipif mysql # not compatible
query II rowsort label-1008
SELECT ALL + 35, + 96 / - 48 AS col2
----
35
-2

query I rowsort
SELECT + 14 - - 88
----
102

query I rowsort
SELECT + NULLIF ( - 45, - - 38 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1011
SELECT ALL + 12 * 41 - - COUNT( * ) + - 77 * - 94 * - 2 + - ( - 70 ) - - + 1 * + 67 + - 74
----
-13920

skipif mysql # not compatible
query I rowsort label-1011
SELECT ALL + 12 * 41 - - COUNT ( * ) + - 77 * - 94 * - 2 + - ( - 70 ) - - + 1 * + 67 + - 74
----
-13920

query I rowsort
SELECT + 8 * ( - ( + - 85 ) ) AS col0
----
680

onlyif mysql # DIV for integer division: 
query II rowsort label-1013
SELECT + - 39 AS col2, + 53 DIV + - 89 AS col1
----
-39
0

skipif mysql # not compatible
query II rowsort label-1013
SELECT + - 39 AS col2, + 53 / + - 89 AS col1
----
-39
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1014
SELECT - 60 + CAST( NULL AS SIGNED ) - + - 23 * - 11 * - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-1014
SELECT - 60 + CAST ( NULL AS INTEGER ) - + - 23 * - 11 * - 83
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1015
SELECT - - CAST( + COUNT( * ) AS SIGNED ) * + - 53 - + 90 + - 5
----
-148

skipif mysql # not compatible
query I rowsort label-1015
SELECT - - CAST ( + COUNT ( * ) AS INTEGER ) * + - 53 - + 90 + - 5
----
-148

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1018
SELECT + 10 + 32 + - - 51 col0, 23 DIV - 8
----
93
-2

skipif mysql # not compatible
query II rowsort label-1018
SELECT + 10 + 32 + - - 51 col0, 23 / - 8
----
93
-2

query I rowsort
SELECT DISTINCT - 91 + - + ( + 38 ) AS col2
----
-129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1020
SELECT 87 + MAX( DISTINCT - CAST( - - 99 AS SIGNED ) ) * + - 53
----
5334

skipif mysql # not compatible
query I rowsort label-1020
SELECT 87 + MAX ( DISTINCT - CAST ( - - 99 AS INTEGER ) ) * + - 53
----
5334

onlyif mysql # aggregate syntax: 
query I rowsort label-1021
SELECT ALL COALESCE ( + 44, + SUM( - 59 ) ) + + + 53
----
97

skipif mysql # not compatible
query I rowsort label-1021
SELECT ALL COALESCE ( + 44, + SUM ( - 59 ) ) + + + 53
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1022
SELECT - 85 * + CASE - 60 WHEN 46 THEN - CAST( - 29 AS SIGNED ) ELSE - 61 END AS col2
----
5185

skipif mysql # not compatible
query I rowsort label-1022
SELECT - 85 * + CASE - 60 WHEN 46 THEN - CAST ( - 29 AS INTEGER ) ELSE - 61 END AS col2
----
5185

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT ALL - 98 + + MAX( ALL - + 61 ) + SUM( ALL - 94 ) AS col0
----
-253

skipif mysql # not compatible
query I rowsort label-1023
SELECT ALL - 98 + + MAX ( ALL - + 61 ) + SUM ( ALL - 94 ) AS col0
----
-253

query I rowsort
SELECT DISTINCT 75 + 1
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1025
SELECT 81 * MIN( CAST( NULL AS SIGNED ) ) * + 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1025
SELECT 81 * MIN ( CAST ( NULL AS INTEGER ) ) * + 76 AS col1
----
NULL

query II rowsort
SELECT ALL 10 + + 26 AS col1, - 34
----
36
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1027
SELECT CASE - 68 WHEN + COUNT( * ) THEN - 12 END + + 33 * - 66 + - 69 / + 51 * 57
----
NULL

skipif mysql # not compatible
query I rowsort label-1027
SELECT CASE - 68 WHEN + COUNT ( * ) THEN - 12 END + + 33 * - 66 + - 69 / + 51 * 57
----
NULL

query I rowsort
SELECT 97 - + + 80 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT 52 * - + 32 - + + COUNT( * ) AS col2
----
-1665

skipif mysql # not compatible
query I rowsort label-1029
SELECT 52 * - + 32 - + + COUNT ( * ) AS col2
----
-1665

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

skipif mysql # not compatible
query I rowsort label-1030
SELECT ( - + ( 9 ) ) + - COUNT ( DISTINCT 72 ) AS col1
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1031
SELECT 90 * 98 AS col1, + CAST( 88 AS SIGNED ) + CAST( COUNT( * ) AS SIGNED ) * - 73
----
8820
15

skipif mysql # not compatible
query II rowsort label-1031
SELECT 90 * 98 AS col1, + CAST ( 88 AS INTEGER ) + CAST ( COUNT ( * ) AS INTEGER ) * - 73
----
8820
15

query I rowsort
SELECT 96 + + 43
----
139

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1033
SELECT DISTINCT - 7 DIV + ( - ( + SUM( - COALESCE ( - - 31, - 48 ) ) ) ), - 81 * + 61 AS col2
----
0
-4941

skipif mysql # not compatible
query II rowsort label-1033
SELECT DISTINCT - 7 / + ( - ( + SUM ( - COALESCE ( - - 31, - 48 ) ) ) ), - 81 * + 61 AS col2
----
0
-4941

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT DISTINCT + COUNT( * ) * + COALESCE ( + 69, CASE - + ( + - COUNT( 7 ) ) WHEN + MIN( - - 30 ) THEN NULL WHEN - 14 * - 69 THEN - + ( COUNT( * ) ) * - 96 END )
----
69

skipif mysql # not compatible
query I rowsort label-1034
SELECT DISTINCT + COUNT ( * ) * + COALESCE ( + 69, CASE - + ( + - COUNT ( 7 ) ) WHEN + MIN ( - - 30 ) THEN NULL WHEN - 14 * - 69 THEN - + ( COUNT ( * ) ) * - 96 END )
----
69

query I rowsort
SELECT ALL + ( - - 54 ) * 94 AS col2
----
5076

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT ALL - - CASE - - COUNT( * ) WHEN - 79 THEN NULL WHEN - + 90 THEN - - 93 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1036
SELECT ALL - - CASE - - COUNT ( * ) WHEN - 79 THEN NULL WHEN - + 90 THEN - - 93 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1037
SELECT + ( - 89 ) + + MAX( ALL + 19 ) + 21 DIV - + 85 * - 69 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-1037
SELECT + ( - 89 ) + + MAX ( ALL + 19 ) + 21 / - + 85 * - 69 AS col1
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1038
SELECT + 58 * - MIN( DISTINCT 72 ) + - 4 + 97 DIV 22 * - - 40
----
-4020

skipif mysql # not compatible
query I rowsort label-1038
SELECT + 58 * - MIN ( DISTINCT 72 ) + - 4 + 97 / 22 * - - 40
----
-4020

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1040
SELECT + 67 * CAST( NULL AS SIGNED ) * - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-1040
SELECT + 67 * CAST ( NULL AS INTEGER ) * - 13
----
NULL

query I rowsort
SELECT DISTINCT - 1 + - 53 AS col1
----
-54

query I rowsort
SELECT DISTINCT - 62 + 47 AS col0
----
-15

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

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

query I rowsort
SELECT 2 + 6
----
8

query I rowsort
SELECT - + COALESCE ( + + 99, - + 5 ) AS col0
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1046
SELECT CAST( - 76 AS SIGNED ) + + ( + - ( + COUNT( * ) ) ) - - 54 + + - 29
----
-52

skipif mysql # not compatible
query I rowsort label-1046
SELECT CAST ( - 76 AS INTEGER ) + + ( + - ( + COUNT ( * ) ) ) - - 54 + + - 29
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1047
SELECT DISTINCT COUNT( * ) + - - COUNT( - 5 ) col1
----
2

skipif mysql # not compatible
query I rowsort label-1047
SELECT DISTINCT COUNT ( * ) + - - COUNT ( - 5 ) col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1048
SELECT DISTINCT 28 DIV - COUNT( * ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-1048
SELECT DISTINCT 28 / - COUNT ( * ) AS col1
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1049
SELECT CASE + + 50 WHEN 80 * 3 - + + 71 THEN NULL WHEN - 31 * 71 * + MIN( + 51 ) - - + COUNT( * ) + - CASE + 63 WHEN - CAST( NULL AS SIGNED ) + - + CASE - COUNT( + 35 ) WHEN - 12 * 79 + + + 90 + COALESCE ( - - 40, 94 + 55 * 86 / + 19, 45 ) + 86 THEN NULL WHEN + COUNT( * ) + - 56 THEN - 17 WHEN - 22 THEN NULL END THEN - 79 / 13 END * - NULLIF ( CAST( NULL AS SIGNED ), 75 + 15 * + 87 ) THEN - 18 END * 36
----
NULL

skipif mysql # not compatible
query I rowsort label-1049
SELECT CASE + + 50 WHEN 80 * 3 - + + 71 THEN NULL WHEN - 31 * 71 * + MIN ( + 51 ) - - + COUNT ( * ) + - CASE + 63 WHEN - CAST ( NULL AS INTEGER ) + - + CASE - COUNT ( + 35 ) WHEN - 12 * 79 + + + 90 + COALESCE ( - - 40, 94 + 55 * 86 / + 19, 45 ) + 86 THEN NULL WHEN + COUNT ( * ) + - 56 THEN - 17 WHEN - 22 THEN NULL END THEN - 79 / 13 END * - NULLIF ( CAST ( NULL AS INTEGER ), 75 + 15 * + 87 ) THEN - 18 END * 36
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1050
SELECT COALESCE ( 85, - 27, + 89 - - - ( - 93 ) + + - 79 * CAST( - 7 AS SIGNED ) + - 3 + - 92 * - MAX( DISTINCT - 30 ) + 47 ) * + + 23 AS col2
----
1955

skipif mysql # not compatible
query I rowsort label-1050
SELECT COALESCE ( 85, - 27, + 89 - - - ( - 93 ) + + - 79 * CAST ( - 7 AS INTEGER ) + - 3 + - 92 * - MAX ( DISTINCT - 30 ) + 47 ) * + + 23 AS col2
----
1955

onlyif mysql # DIV for integer division: 
query I rowsort label-1051
SELECT ALL 63 DIV + - 42
----
-1

skipif mysql # not compatible
query I rowsort label-1051
SELECT ALL 63 / + - 42
----
-1

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

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

query I rowsort
SELECT ALL 56 - - - 65
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1054
SELECT 87 * + CASE + - 54 WHEN + 90 * + + NULLIF ( + COUNT( DISTINCT + 94 ), - MIN( 27 ) * + + COUNT( - CAST( NULL AS SIGNED ) ) + 80 ) THEN - + 65 * + + COUNT( + 0 ) - - + 47 + + - COUNT( + CASE - + 30 WHEN - + ( 42 ) THEN + 95 ELSE NULL END ) ELSE - + ( + 21 ) END col2
----
-1827

skipif mysql # not compatible
query I rowsort label-1054
SELECT 87 * + CASE + - 54 WHEN + 90 * + + NULLIF ( + COUNT ( DISTINCT + 94 ), - MIN ( 27 ) * + + COUNT ( - CAST ( NULL AS INTEGER ) ) + 80 ) THEN - + 65 * + + COUNT ( + 0 ) - - + 47 + + - COUNT ( + CASE - + 30 WHEN - + ( 42 ) THEN + 95 ELSE NULL END ) ELSE - + ( + 21 ) END col2
----
-1827

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT - COUNT( - 57 )
----
-1

skipif mysql # not compatible
query I rowsort label-1055
SELECT - COUNT ( - 57 )
----
-1

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

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

query I rowsort
SELECT 0 * + 92 AS col2
----
0

query I rowsort
SELECT ALL 20 * + 54
----
1080

query I rowsort
SELECT ALL - CASE - + 88 WHEN 28 THEN - 21 * + 11 / + + 25 * + 47 WHEN + 44 * + + 46 * 78 THEN 51 END
----
NULL

query I rowsort
SELECT 89 * + - 26 col2
----
-2314

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1061
SELECT 25 * - + CAST( - 94 AS SIGNED ) * - 97
----
-227950

skipif mysql # not compatible
query I rowsort label-1061
SELECT 25 * - + CAST ( - 94 AS INTEGER ) * - 97
----
-227950

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

skipif mysql # not compatible
query I rowsort label-1062
SELECT 96 - 0 * + COUNT ( * ) + + 82 AS col1
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-1063
SELECT COUNT( 4 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1063
SELECT COUNT ( 4 ) AS col0
----
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1065
SELECT ALL - 74 DIV 6 * - ( + + 95 )
----
1140

skipif mysql # not compatible
query I rowsort label-1065
SELECT ALL - 74 / 6 * - ( + + 95 )
----
1140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1066
SELECT + COALESCE ( 24, + CAST( 57 AS SIGNED ), + - 26 + - - 64 )
----
24

skipif mysql # not compatible
query I rowsort label-1066
SELECT + COALESCE ( 24, + CAST ( 57 AS INTEGER ), + - 26 + - - 64 )
----
24

query I rowsort
SELECT - ( + - NULLIF ( - 43, - 32 * 99 * - + 27 ) ) * 40 + + - 7 - + - 51 AS col2
----
-1676

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1068
SELECT - 78 - CASE - - COUNT( * ) WHEN + 95 + 59 * CAST( - 3 AS SIGNED ) THEN + 69 - + - 99 WHEN - 42 THEN NULL ELSE + + 36 END AS col2
----
-114

skipif mysql # not compatible
query I rowsort label-1068
SELECT - 78 - CASE - - COUNT ( * ) WHEN + 95 + 59 * CAST ( - 3 AS INTEGER ) THEN + 69 - + - 99 WHEN - 42 THEN NULL ELSE + + 36 END AS col2
----
-114

query I rowsort
SELECT ALL 48 * 93 AS col1
----
4464

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1071
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 38 * - 52 + + ( - - COUNT( * ) ) / + 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1071
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 38 * - 52 + + ( - - COUNT ( * ) ) / + 91 AS col1
----
NULL

query I rowsort
SELECT ALL - ( + - 59 ) + 52
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-1073
SELECT - 34 * - 90 * + 34 * + 46 - + MAX( + 61 ) + - 53 + - + 75 - + - SUM( + 19 )
----
4785670

skipif mysql # not compatible
query I rowsort label-1073
SELECT - 34 * - 90 * + 34 * + 46 - + MAX ( + 61 ) + - 53 + - + 75 - + - SUM ( + 19 )
----
4785670

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1074
SELECT 78 * 60 + - 25 / 28 - + - 42 - + ( - - CAST( NULL AS SIGNED ) ) * 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1074
SELECT 78 * 60 + - 25 / 28 - + - 42 - + ( - - CAST ( NULL AS INTEGER ) ) * 8 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1075
SELECT - 37 * - - 62 + - + ( + 4 ) + - + 77 col2, COALESCE ( - - 75, + - 56, 64 + + - 88 ) * + CAST( - 69 AS SIGNED )
----
-2375
-5175

skipif mysql # not compatible
query II rowsort label-1075
SELECT - 37 * - - 62 + - + ( + 4 ) + - + 77 col2, COALESCE ( - - 75, + - 56, 64 + + - 88 ) * + CAST ( - 69 AS INTEGER )
----
-2375
-5175

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT ALL + - 42 + COUNT( * ) * 62
----
20

skipif mysql # not compatible
query I rowsort label-1076
SELECT ALL + - 42 + COUNT ( * ) * 62
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-1077
SELECT DISTINCT + 70 + + 89 + - 24 DIV + 99 col1
----
159

skipif mysql # not compatible
query I rowsort label-1077
SELECT DISTINCT + 70 + + 89 + - 24 / + 99 col1
----
159

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1080
SELECT - 75 * + SUM( DISTINCT 60 ) * 95 col1
----
-427500

skipif mysql # not compatible
query I rowsort label-1080
SELECT - 75 * + SUM ( DISTINCT 60 ) * 95 col1
----
-427500

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1082
SELECT - COUNT( * ) * - 90 DIV ( 62 )
----
1

skipif mysql # not compatible
query I rowsort label-1082
SELECT - COUNT ( * ) * - 90 / ( 62 )
----
1

query I rowsort
SELECT ALL NULLIF ( - - 6, + - 31 ) AS col0
----
6

query I rowsort
SELECT + 15 + COALESCE ( - 12, + 94, - 8 )
----
3

query I rowsort
SELECT - NULLIF ( + 5, + + 45 )
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1086
SELECT - ( + 40 ) DIV + COUNT( * ) + 45 AS col2, + 83 * - + 9
----
5
-747

skipif mysql # not compatible
query II rowsort label-1086
SELECT - ( + 40 ) / + COUNT ( * ) + 45 AS col2, + 83 * - + 9
----
5
-747

onlyif mysql # aggregate syntax: 
query I rowsort label-1087
SELECT + 67 * + + 88 * + NULLIF ( ( + - MAX( + + 69 ) ), 61 )
----
-406824

skipif mysql # not compatible
query I rowsort label-1087
SELECT + 67 * + + 88 * + NULLIF ( ( + - MAX ( + + 69 ) ), 61 )
----
-406824

onlyif mysql # aggregate syntax: 
query II rowsort label-1088
SELECT ALL CASE 50 WHEN 92 * - 99 - - + AVG ( + 28 ) * - 6 * + 91 + - 31 + - 85 THEN - + COUNT( * ) END / 44 * - 74 * - 77 AS col1, - 93 AS col2
----
NULL
-93

skipif mysql # not compatible
query II rowsort label-1088
SELECT ALL CASE 50 WHEN 92 * - 99 - - + AVG ( + 28 ) * - 6 * + 91 + - 31 + - 85 THEN - + COUNT ( * ) END / 44 * - 74 * - 77 AS col1, - 93 AS col2
----
NULL
-93

query I rowsort
SELECT - ( + 13 ) + + 23
----
10

query I rowsort
SELECT + 85 - + - 45 + + - 36
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1091
SELECT ALL + 76 AS col0, 59 * + - MAX( DISTINCT 91 ) col1, CASE - - COALESCE ( 18, + COUNT( * ) ) WHEN CASE + 26 WHEN - COUNT( + + 32 ) + 23 + + CAST( - - 75 AS SIGNED ) * + + 50 THEN - COUNT( * ) * + CAST( NULL AS SIGNED ) - - 47 END / + + COUNT( * ) THEN - 26 END AS col1
----
76
-5369
NULL

skipif mysql # not compatible
query III rowsort label-1091
SELECT ALL + 76 AS col0, 59 * + - MAX ( DISTINCT 91 ) col1, CASE - - COALESCE ( 18, + COUNT ( * ) ) WHEN CASE + 26 WHEN - COUNT ( + + 32 ) + 23 + + CAST ( - - 75 AS INTEGER ) * + + 50 THEN - COUNT ( * ) * + CAST ( NULL AS INTEGER ) - - 47 END / + + COUNT ( * ) THEN - 26 END AS col1
----
76
-5369
NULL

query I rowsort
SELECT + 31 + + 8 AS col1
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-1093
SELECT DISTINCT COUNT( * ) * + 51 AS col2, 15 AS col2
----
51
15

skipif mysql # not compatible
query II rowsort label-1093
SELECT DISTINCT COUNT ( * ) * + 51 AS col2, 15 AS col2
----
51
15

onlyif mysql # DIV for integer division: 
query I rowsort label-1094
SELECT ALL - 3 DIV - - ( 95 ) + + 3 * 34
----
102

skipif mysql # not compatible
query I rowsort label-1094
SELECT ALL - 3 / - - ( 95 ) + + 3 * 34
----
102

query I rowsort
SELECT ALL - 17 * - + 94 AS col2
----
1598

query I rowsort
SELECT ALL + NULLIF ( + 20, 96 - - 41 - + 64 ) * 22 + 88 + - 60 * + 99 * - 50
----
297528

onlyif mysql # aggregate syntax: 
query I rowsort label-1097
SELECT ALL - COUNT( * ) * - 92 + + 76
----
168

skipif mysql # not compatible
query I rowsort label-1097
SELECT ALL - COUNT ( * ) * - 92 + + 76
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-1098
SELECT DISTINCT 37 * - 4 + COUNT( * ) AS col0
----
-147

skipif mysql # not compatible
query I rowsort label-1098
SELECT DISTINCT 37 * - 4 + COUNT ( * ) AS col0
----
-147

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1100
SELECT ALL + - MIN( ALL + - 43 ) col0
----
43

skipif mysql # not compatible
query I rowsort label-1100
SELECT ALL + - MIN ( ALL + - 43 ) col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT ALL + + 26 * + 1 + - COUNT( * ) * 55 * COUNT( * ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-1101
SELECT ALL + + 26 * + 1 + - COUNT ( * ) * 55 * COUNT ( * ) AS col2
----
-29

query I rowsort
SELECT + - 13 * + 68 * - + 84 col0
----
74256

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT - ( 25 ) + ( + - 91 ) + 90 + + CASE 75 WHEN 28 * + 80 + 39 + - - 84 + 32 + 54 THEN 5 WHEN - + AVG ( ALL - 47 ) + 2 + COUNT( * ) THEN - 60 / + - 1 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1103
SELECT - ( 25 ) + ( + - 91 ) + 90 + + CASE 75 WHEN 28 * + 80 + 39 + - - 84 + 32 + 54 THEN 5 WHEN - + AVG ( ALL - 47 ) + 2 + COUNT ( * ) THEN - 60 / + - 1 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1104
SELECT + + 86 col2, ( + COUNT( * ) ) * - 46 + + - 87
----
86
-133

skipif mysql # not compatible
query II rowsort label-1104
SELECT + + 86 col2, ( + COUNT ( * ) ) * - 46 + + - 87
----
86
-133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1105
SELECT 32 * 96 + - - MAX( + - 77 ) + + 36 + + 62 * - 28 * + + 94 + - 81 DIV - 44 AS col2
----
-160152

skipif mysql # not compatible
query I rowsort label-1105
SELECT 32 * 96 + - - MAX ( + - 77 ) + + 36 + + 62 * - 28 * + + 94 + - 81 / - 44 AS col2
----
-160152

query I rowsort
SELECT DISTINCT + 69 * - 20 AS col1
----
-1380

query II rowsort
SELECT DISTINCT + ( - 67 ) * 2 - + 9 + + + 8 * - 51, 11 col2
----
-551
11

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

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

query I rowsort
SELECT + - 86 * - 55 col0
----
4730

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT + + 11 - - - COUNT( ALL - 80 )
----
10

skipif mysql # not compatible
query I rowsort label-1110
SELECT + + 11 - - - COUNT ( ALL - 80 )
----
10

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1112
SELECT - CAST( NULL AS SIGNED ) * 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1112
SELECT - CAST ( NULL AS INTEGER ) * 38 AS col1
----
NULL

query II rowsort
SELECT - 51 + - + 55 * - 80, + 9 AS col0
----
4349
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT ALL 10 * - COUNT( * ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-1114
SELECT ALL 10 * - COUNT ( * ) AS col0
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1115
SELECT - COALESCE ( COUNT( * ), + 99 - - 82 ) * + 55 DIV 98 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1115
SELECT - COALESCE ( COUNT ( * ), + 99 - - 82 ) * + 55 / 98 + + COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1116
SELECT ALL NULLIF ( + CAST( + COUNT( + + 85 ) AS SIGNED ), - ( + 2 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1116
SELECT ALL NULLIF ( + CAST ( + COUNT ( + + 85 ) AS INTEGER ), - ( + 2 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1117
SELECT - 15 + 3 DIV - 27
----
-15

skipif mysql # not compatible
query I rowsort label-1117
SELECT - 15 + 3 / - 27
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT - 74 - - COUNT( DISTINCT 62 ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-1118
SELECT - 74 - - COUNT ( DISTINCT 62 ) AS col1
----
-73

query I rowsort
SELECT - 91 * - 47 AS col1
----
4277

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT - NULLIF ( + 22, + - 57 * + + 47 + - + 47 * - - 38 + + 42 - - + SUM( ALL 66 ) ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-1120
SELECT - NULLIF ( + 22, + - 57 * + + 47 + - + 47 * - - 38 + + 42 - - + SUM ( ALL 66 ) ) AS col2
----
-22

query II rowsort
SELECT DISTINCT + 76 * - 95 AS col2, 12 * - 12 AS col2
----
-7220
-144

query I rowsort
SELECT - 56 * 87 AS col1
----
-4872

query II rowsort
SELECT + 38 + + 12 AS col1, + 13 - - 30 AS col0
----
50
43

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

skipif mysql # not compatible
query I rowsort label-1124
SELECT ALL CAST ( NULL AS INTEGER ) + + 70 + - + 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT COUNT( * ) * 0 * + - 95 * - 27
----
0

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

query II rowsort
SELECT ALL + 59 * + - 66, 80 AS col2
----
-3894
80

onlyif mysql # aggregate syntax: 
query II rowsort label-1127
SELECT ALL - COUNT( - 21 ) AS col2, COUNT( * ) * - COALESCE ( - 8, + 28 * + 5 + + 42 + 29 + + 77 ) + + - 88 + + 59 AS col0
----
-1
-21

skipif mysql # not compatible
query II rowsort label-1127
SELECT ALL - COUNT ( - 21 ) AS col2, COUNT ( * ) * - COALESCE ( - 8, + 28 * + 5 + + 42 + 29 + + 77 ) + + - 88 + + 59 AS col0
----
-1
-21

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

skipif mysql # not compatible
query I rowsort label-1128
SELECT DISTINCT - + 13 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1129
SELECT - 43 DIV + 80 - 59 * + MAX( 63 )
----
-3717

skipif mysql # not compatible
query I rowsort label-1129
SELECT - 43 / + 80 - 59 * + MAX ( 63 )
----
-3717

onlyif mysql # aggregate syntax: 
query II rowsort label-1130
SELECT + - SUM( + 37 ) col0, + 37
----
-37
37

skipif mysql # not compatible
query II rowsort label-1130
SELECT + - SUM ( + 37 ) col0, + 37
----
-37
37

query I rowsort
SELECT ALL 44 + - + 99 + - 44 AS col0
----
-99

query I rowsort
SELECT 77 - + 99 AS col2
----
-22

query I rowsort
SELECT ALL + - 71 + 66
----
-5

query II rowsort
SELECT ALL - + COALESCE ( + 81, + 28 ) AS col0, 67 * 13
----
-81
871

query I rowsort
SELECT DISTINCT 55 * - - 21 + + 0 + - + 61 * - 30
----
2985

onlyif mysql # aggregate syntax: 
query I rowsort label-1136
SELECT - 43 + 20 * - 13 + COUNT( * ) + + 0
----
-302

skipif mysql # not compatible
query I rowsort label-1136
SELECT - 43 + 20 * - 13 + COUNT ( * ) + + 0
----
-302

onlyif mysql # aggregate syntax: 
query II rowsort label-1137
SELECT 16 * + 58, COUNT( * ) * + MAX( 82 ) AS col2
----
928
82

skipif mysql # not compatible
query II rowsort label-1137
SELECT 16 * + 58, COUNT ( * ) * + MAX ( 82 ) AS col2
----
928
82

onlyif mysql # aggregate syntax: 
query II rowsort label-1138
SELECT + 52 * - 38 + 29 AS col0, - COUNT( * ) col1
----
-1947
-1

skipif mysql # not compatible
query II rowsort label-1138
SELECT + 52 * - 38 + 29 AS col0, - COUNT ( * ) col1
----
-1947
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1139
SELECT 76, SUM( ALL + 60 ) DIV + - 52 - 82 + + + 31 * ( + ( + + ( - 80 ) ) ) + + 31 AS col1
----
76
-2532

skipif mysql # not compatible
query II rowsort label-1139
SELECT 76, SUM ( ALL + 60 ) / + - 52 - 82 + + + 31 * ( + ( + + ( - 80 ) ) ) + + 31 AS col1
----
76
-2532

query I rowsort
SELECT ALL + 62 * + + 76 * - 22 AS col1
----
-103664

query II rowsort
SELECT ALL 45 AS col1, 26 * + 6
----
45
156

query I rowsort
SELECT 9 + - + 54 AS col1
----
-45

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

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

query I rowsort
SELECT ALL 98 + + 56
----
154

query I rowsort
SELECT 86 + + 35 AS col0
----
121

query II rowsort
SELECT 19 AS col0, 98 AS col1
----
19
98

query I rowsort
SELECT 44 + 37
----
81

query I rowsort
SELECT 15 * + 10 AS col2
----
150

query I rowsort
SELECT DISTINCT 97 + - 65
----
32

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

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

query I rowsort
SELECT ALL - 99 + - 83 AS col2
----
-182

query I rowsort
SELECT 31 - + ( + 7 ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1153
SELECT ALL 32 + ( + - 48 ) + + ( - - 93 ) + + COUNT( * ) * - 22 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-1153
SELECT ALL 32 + ( + - 48 ) + + ( - - 93 ) + + COUNT ( * ) * - 22 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1154
SELECT 50 + CASE - ( 33 ) WHEN - COUNT( * ) * 2 THEN + + 28 * + - 8 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1154
SELECT 50 + CASE - ( 33 ) WHEN - COUNT ( * ) * 2 THEN + + 28 * + - 8 END AS col0
----
NULL

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

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

query I rowsort
SELECT - 84 + + + 24 col1
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-1157
SELECT - - COUNT( * ) AS col2, + 72 + 92
----
1
164

skipif mysql # not compatible
query II rowsort label-1157
SELECT - - COUNT ( * ) AS col2, + 72 + 92
----
1
164

query II rowsort
SELECT + 88 AS col0, 46
----
88
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT 46 + - + MAX( 5 ) * - SUM( DISTINCT + + 83 ) + - 41 - 96 * + 65 + + - 38 * + 43
----
-7454

skipif mysql # not compatible
query I rowsort label-1159
SELECT 46 + - + MAX ( 5 ) * - SUM ( DISTINCT + + 83 ) + - 41 - 96 * + 65 + + - 38 * + 43
----
-7454

query I rowsort
SELECT + 67 - - 83 AS col1
----
150

query I rowsort
SELECT ALL + 35 * - 48 AS col0
----
-1680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1162
SELECT - COALESCE ( + - 98, - 38, 0 / + COUNT( * ), + + 78 / + AVG ( DISTINCT - 91 ) ) * - 33 / + MIN( DISTINCT + 16 ) * + 96 - ( 64 ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1162
SELECT - COALESCE ( + - 98, - 38, 0 / + COUNT ( * ), + + 78 / + AVG ( DISTINCT - 91 ) ) * - 33 / + MIN ( DISTINCT + 16 ) * + 96 - ( 64 ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1163
SELECT ALL - NULLIF ( - COUNT( - 53 ), - 81 - ( - + CAST( + 71 AS SIGNED ) ) + 16 ) * 28
----
28

skipif mysql # not compatible
query I rowsort label-1163
SELECT ALL - NULLIF ( - COUNT ( - 53 ), - 81 - ( - + CAST ( + 71 AS INTEGER ) ) + 16 ) * 28
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-1164
SELECT DISTINCT - - 59, 50 * - - COUNT( * ) * - + 45 AS col0
----
59
-2250

skipif mysql # not compatible
query II rowsort label-1164
SELECT DISTINCT - - 59, 50 * - - COUNT ( * ) * - + 45 AS col0
----
59
-2250

query I rowsort
SELECT ALL - - 7 * - 3 AS col0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1166
SELECT ALL - CAST( + - 2 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-1166
SELECT ALL - CAST ( + - 2 AS INTEGER )
----
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT SUM( ( 36 ) ) * - 27 + - 26
----
-998

skipif mysql # not compatible
query I rowsort label-1168
SELECT SUM ( ( 36 ) ) * - 27 + - 26
----
-998

onlyif mysql # aggregate syntax: 
query II rowsort label-1169
SELECT - 74 + SUM( - + 87 ) AS col2, CASE + 86 WHEN - + 31 / - ( + + 47 ) THEN 36 END AS col0
----
-161
NULL

skipif mysql # not compatible
query II rowsort label-1169
SELECT - 74 + SUM ( - + 87 ) AS col2, CASE + 86 WHEN - + 31 / - ( + + 47 ) THEN 36 END AS col0
----
-161
NULL

query I rowsort
SELECT 53 * + - 24 AS col0
----
-1272

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1171
SELECT ALL + 58 DIV CAST( 4 AS SIGNED ) - CAST( + - 60 AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-1171
SELECT ALL + 58 / CAST ( 4 AS INTEGER ) - CAST ( + - 60 AS INTEGER )
----
74

query I rowsort
SELECT 53 * - 25 + - - 22 + - 30 col1
----
-1333

onlyif mysql # aggregate syntax: 
query I rowsort label-1173
SELECT - 52 * - 20 * 98 + - + COUNT( * ) AS col0
----
101919

skipif mysql # not compatible
query I rowsort label-1173
SELECT - 52 * - 20 * 98 + - + COUNT ( * ) AS col0
----
101919

query I rowsort
SELECT + 50 * - + 86 AS col0
----
-4300

onlyif mysql # DIV for integer division: 
query I rowsort label-1175
SELECT ALL - + 64 DIV - 69
----
0

skipif mysql # not compatible
query I rowsort label-1175
SELECT ALL - + 64 / - 69
----
0

query I rowsort
SELECT ALL ( 86 ) * 79 AS col2
----
6794

query I rowsort
SELECT ( - 30 ) + - 68 AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT DISTINCT COUNT( * ) + - 42 * - CASE + 22 WHEN + 93 THEN + 38 ELSE NULL END + 63 + 58 * - + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-1178
SELECT DISTINCT COUNT ( * ) + - 42 * - CASE + 22 WHEN + 93 THEN + 38 ELSE NULL END + 63 + 58 * - + 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT COUNT( * ) + + COUNT( * ) * - + MIN( DISTINCT + + 60 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-1179
SELECT COUNT ( * ) + + COUNT ( * ) * - + MIN ( DISTINCT + + 60 ) AS col0
----
-59

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1181
SELECT ALL 57 + - - NULLIF ( - - 49, + 49 * - COUNT( * ) + + + 43 * + ( ( - - CAST( - 88 AS SIGNED ) ) ) * + + 42 + - + 93 ) + - 72 * 7 * + + CASE + 70 WHEN - - 20 THEN NULL WHEN - 26 + - 6 + 29 THEN - + 1 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1181
SELECT ALL 57 + - - NULLIF ( - - 49, + 49 * - COUNT ( * ) + + + 43 * + ( ( - - CAST ( - 88 AS INTEGER ) ) ) * + + 42 + - + 93 ) + - 72 * 7 * + + CASE + 70 WHEN - - 20 THEN NULL WHEN - 26 + - 6 + 29 THEN - + 1 END AS col2
----
NULL

query I rowsort
SELECT 96 * - - 43
----
4128

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT MAX( ALL + - 77 ) - + 21
----
-98

skipif mysql # not compatible
query I rowsort label-1183
SELECT MAX ( ALL + - 77 ) - + 21
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1184
SELECT ( 65 ) + + COUNT( + 5 ) + - - COUNT( * ) - - 83 + + 30 * + CAST( NULL AS SIGNED ) * + 52 * + + 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1184
SELECT ( 65 ) + + COUNT ( + 5 ) + - - COUNT ( * ) - - 83 + + 30 * + CAST ( NULL AS INTEGER ) * + 52 * + + 27 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1185
SELECT DISTINCT CASE + CAST( NULL AS SIGNED ) WHEN - - 53 + - 65 + + CAST( - NULLIF ( + + 46, + CASE - NULLIF ( + + 68, - 96 - + - MAX( ALL 98 ) ) WHEN + - 85 / + 98 THEN - + 36 - + CAST( NULL AS SIGNED ) WHEN - 55 / + COUNT( * ) + + COUNT( * ) * CAST( NULL AS SIGNED ) + - - 66 * - ( + 59 ) + ( - 64 ) THEN NULL WHEN - + 35 * 75 + COUNT( * ) THEN NULL ELSE COUNT( * ) END + + 72 ) AS SIGNED ) THEN - 93 * 98 END + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1185
SELECT DISTINCT CASE + CAST ( NULL AS INTEGER ) WHEN - - 53 + - 65 + + CAST ( - NULLIF ( + + 46, + CASE - NULLIF ( + + 68, - 96 - + - MAX ( ALL 98 ) ) WHEN + - 85 / + 98 THEN - + 36 - + CAST ( NULL AS INTEGER ) WHEN - 55 / + COUNT ( * ) + + COUNT ( * ) * CAST ( NULL AS INTEGER ) + - - 66 * - ( + 59 ) + ( - 64 ) THEN NULL WHEN - + 35 * 75 + COUNT ( * ) THEN NULL ELSE COUNT ( * ) END + + 72 ) AS INTEGER ) THEN - 93 * 98 END + CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1186
SELECT ALL 44 + - COUNT ( * ) AS col2
----
43

query I rowsort
SELECT + 85 * + + 52
----
4420

query I rowsort
SELECT ALL 8 + + - 43
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT - CASE + + COALESCE ( 69, + 63 ) WHEN + + COUNT( * ) + + + 19 THEN ( - 90 ) + - 44 ELSE 29 * + + 70 * - 74 - + ( - 17 ) END
----
150203

skipif mysql # not compatible
query I rowsort label-1189
SELECT - CASE + + COALESCE ( 69, + 63 ) WHEN + + COUNT ( * ) + + + 19 THEN ( - 90 ) + - 44 ELSE 29 * + + 70 * - 74 - + ( - 17 ) END
----
150203

onlyif mysql # aggregate syntax: 
query I rowsort label-1190
SELECT ALL ( + + 5 ) + + 41 * + 1 + - - MIN( - ( - 43 ) ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-1190
SELECT ALL ( + + 5 ) + + 41 * + 1 + - - MIN ( - ( - 43 ) ) AS col2
----
89

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

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

query II rowsort
SELECT DISTINCT + 64 * + - 3 AS col1, - 68 AS col0
----
-192
-68

query I rowsort
SELECT ALL + 6 * - - 67 + - + 8 AS col1
----
394

query I rowsort
SELECT - - 95 + + 19 - - 22
----
136

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

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

query I rowsort
SELECT + 89 * - 16 * + 53 col0
----
-75472

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1197
SELECT - + 68 * - COUNT( * ) DIV - 94 col1
----
0

skipif mysql # not compatible
query I rowsort label-1197
SELECT - + 68 * - COUNT ( * ) / - 94 col1
----
0

query I rowsort
SELECT ALL + + COALESCE ( + + 67, + ( + - 79 ) + - + 49 + - - ( - ( ( + + 63 ) ) ), - 72 * - 86 )
----
67

query I rowsort
SELECT - - 99 - + 88 AS col2
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1200
SELECT ALL + CASE 88 WHEN + CAST( + ( + 76 ) AS SIGNED ) + - 33 THEN - + 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1200
SELECT ALL + CASE 88 WHEN + CAST ( + ( + 76 ) AS INTEGER ) + - 33 THEN - + 95 END
----
NULL

query I rowsort
SELECT + 21 * - ( - 38 ) + - 63 + + 69 * 46 + + 71 * - + 58 + - 58 * - ( + 49 )
----
2633

onlyif mysql # aggregate syntax: 
query I rowsort label-1202
SELECT DISTINCT - + 62 * + - COUNT( + 98 )
----
62

skipif mysql # not compatible
query I rowsort label-1202
SELECT DISTINCT - + 62 * + - COUNT ( + 98 )
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-1203
SELECT ALL - 80 * + ( - 67 ) + - 3 + + + 35 AS col0, COUNT( * )
----
5392
1

skipif mysql # not compatible
query II rowsort label-1203
SELECT ALL - 80 * + ( - 67 ) + - 3 + + + 35 AS col0, COUNT ( * )
----
5392
1

query II rowsort
SELECT DISTINCT 7 * 64 * + 92 * - 18 + - ( 57 ) col2, + 77 AS col1
----
-741945
77

query I rowsort
SELECT ALL + ( - ( ( + - 91 ) ) ) col2
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-1206
SELECT 80 * 84 + - - 59 + - 14 - + COUNT( * ) * + 96 - - 72 * COUNT( * ), + 54 AS col1
----
6741
54

skipif mysql # not compatible
query II rowsort label-1206
SELECT 80 * 84 + - - 59 + - 14 - + COUNT ( * ) * + 96 - - 72 * COUNT ( * ), + 54 AS col1
----
6741
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1207
SELECT ALL + 20 * - 77 * + 54 + - - 11 DIV + COUNT( * ) + + 31
----
-83118

skipif mysql # not compatible
query I rowsort label-1207
SELECT ALL + 20 * - 77 * + 54 + - - 11 / + COUNT ( * ) + + 31
----
-83118

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

skipif mysql # not compatible
query I rowsort label-1208
SELECT DISTINCT + CAST ( - + 4 AS INTEGER ) col2
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1209
SELECT - CASE + 47 WHEN - 2 THEN - CAST( + COALESCE ( SUM( ALL + 63 ), - 51 + - 56 ) AS SIGNED ) * - - 41 END / + 87 AS col0, ( 70 ) - + 21 * + + COUNT( * ) * + - 46 * - NULLIF ( - ( + 89 ), - MIN( DISTINCT - 30 ) ) AS col2
----
NULL
86044

skipif mysql # not compatible
query II rowsort label-1209
SELECT - CASE + 47 WHEN - 2 THEN - CAST ( + COALESCE ( SUM ( ALL + 63 ), - 51 + - 56 ) AS INTEGER ) * - - 41 END / + 87 AS col0, ( 70 ) - + 21 * + + COUNT ( * ) * + - 46 * - NULLIF ( - ( + 89 ), - MIN ( DISTINCT - 30 ) ) AS col2
----
NULL
86044

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT + NULLIF ( - 55, COUNT( * ) + 49 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-1210
SELECT + NULLIF ( - 55, COUNT ( * ) + 49 ) AS col0
----
-55

query II rowsort
SELECT ALL + 70 col0, + 96
----
70
96

query I rowsort
SELECT + 21 - - 15 * - 30 AS col0
----
-429

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1213
SELECT ALL - SUM( + 69 ) * - 10 + + + COALESCE ( + 38, + + 53 DIV 98 - 45 - - + 3 * - + 32, - COUNT( * ) ) + + - 9 col0
----
719

skipif mysql # not compatible
query I rowsort label-1213
SELECT ALL - SUM ( + 69 ) * - 10 + + + COALESCE ( + 38, + + 53 / 98 - 45 - - + 3 * - + 32, - COUNT ( * ) ) + + - 9 col0
----
719

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT ALL - 5 * - - 0 + - 69 + - - 16 * - COUNT( * ) + - + ( - 43 ) + - 35 + - - 82 col1
----
5

skipif mysql # not compatible
query I rowsort label-1214
SELECT ALL - 5 * - - 0 + - 69 + - - 16 * - COUNT ( * ) + - + ( - 43 ) + - 35 + - - 82 col1
----
5

query I rowsort
SELECT DISTINCT + 44 * + 43 * 26 + + 35
----
49227

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1216
SELECT - COUNT( * ) * + - 63 + - 12 DIV + 84
----
63

skipif mysql # not compatible
query I rowsort label-1216
SELECT - COUNT ( * ) * + - 63 + - 12 / + 84
----
63

query I rowsort
SELECT - CASE - 35 WHEN ( - 4 ) * + ( 50 ) THEN - - 62 WHEN - CASE + 29 WHEN - - 13 THEN + 95 END + 53 * - 20 + 51 + 86 + - 30 THEN - - 67 ELSE NULL END AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1218
SELECT MAX ( DISTINCT - - 34 )
----
34

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

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

query I rowsort
SELECT - 67 + - - 36 * + + 96 AS col2
----
3389

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

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

query I rowsort
SELECT + 31 * 29 col2
----
899

onlyif mysql # aggregate syntax: 
query I rowsort label-1223
SELECT + 43 + - COUNT( ALL + - 56 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-1223
SELECT + 43 + - COUNT ( ALL + - 56 ) AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT DISTINCT MIN( ALL - 82 ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-1224
SELECT DISTINCT MIN ( ALL - 82 ) AS col0
----
-82

query II rowsort
SELECT ALL 84 col1, 84 AS col1
----
84
84

query I rowsort
SELECT + - 63 + + 89
----
26

query I rowsort
SELECT DISTINCT - 52 * - 59
----
3068

query I rowsort
SELECT ALL - COALESCE ( 96, - - CASE + 4 WHEN + 96 * 83 THEN NULL ELSE + ( + 67 ) * 54 END * - 92 + + 19, 69 )
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1229
SELECT + - 2 + - 77 + - CAST( - COUNT( * ) AS SIGNED ) + + ( - - 57 ) + + + 5 * 29 * - COALESCE ( + + 92, - + ( - 76 ) + + - 98 + ( - 40 ) ) + 22 DIV + - 68 + + 72 AS col1, COALESCE ( - 47, 54 * + - MIN( DISTINCT + 42 ) + - - NULLIF ( + 27, - 55 + 6 * 70 + + + 77 DIV + 63 + - CAST( COUNT( * ) + + 73 AS SIGNED ) ) ) + 16 AS col1
----
-13289
-31

skipif mysql # not compatible
query II rowsort label-1229
SELECT + - 2 + - 77 + - CAST ( - COUNT ( * ) AS INTEGER ) + + ( - - 57 ) + + + 5 * 29 * - COALESCE ( + + 92, - + ( - 76 ) + + - 98 + ( - 40 ) ) + 22 / + - 68 + + 72 AS col1, COALESCE ( - 47, 54 * + - MIN ( DISTINCT + 42 ) + - - NULLIF ( + 27, - 55 + 6 * 70 + + + 77 / + 63 + - CAST ( COUNT ( * ) + + 73 AS INTEGER ) ) ) + 16 AS col1
----
-13289
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT DISTINCT 21 * - + ( - 98 ) + + + 86 + + - 21 * + COUNT( * )
----
2123

skipif mysql # not compatible
query I rowsort label-1230
SELECT DISTINCT 21 * - + ( - 98 ) + + + 86 + + - 21 * + COUNT ( * )
----
2123

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

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

query I rowsort
SELECT - 65 - 30 col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT ALL - COUNT( DISTINCT + + 92 ) * - 58 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-1233
SELECT ALL - COUNT ( DISTINCT + + 92 ) * - 58 AS col0
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1234
SELECT ALL - + ( - + CASE + 54 WHEN ( 73 ) THEN - COUNT( DISTINCT NULLIF ( + 97, + - ( 96 ) * - 19 ) ) END ) / - MIN( - COALESCE ( 4, - 10 * + 62 ) ) + 10 + - 52 - - + CAST( NULL AS SIGNED ) * - CAST( + - COUNT( * ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1234
SELECT ALL - + ( - + CASE + 54 WHEN ( 73 ) THEN - COUNT ( DISTINCT NULLIF ( + 97, + - ( 96 ) * - 19 ) ) END ) / - MIN ( - COALESCE ( 4, - 10 * + 62 ) ) + 10 + - 52 - - + CAST ( NULL AS INTEGER ) * - CAST ( + - COUNT ( * ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1235
SELECT DISTINCT + NULLIF ( - COUNT( * ), + AVG ( ALL 8 ) ) DIV + 81 + - - 76 + ( ( + 79 ) ) * - 57 col1, 53 - 32 AS col0
----
-4427
21

skipif mysql # not compatible
query II rowsort label-1235
SELECT DISTINCT + NULLIF ( - COUNT ( * ), + AVG ( ALL 8 ) ) / + 81 + - - 76 + ( ( + 79 ) ) * - 57 col1, 53 - 32 AS col0
----
-4427
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1236
SELECT DISTINCT - 90 DIV - 11 * + COUNT( * ) + 44 col2
----
52

skipif mysql # not compatible
query I rowsort label-1236
SELECT DISTINCT - 90 / - 11 * + COUNT ( * ) + 44 col2
----
52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1237
SELECT ALL + - 41 / - + 73 / 18 + + CASE - + 19 WHEN - + 30 + - 88 + 38 * + MAX( + - 90 ) THEN - MIN( 25 ) / + COUNT( * ) WHEN - 12 * - COALESCE ( + 34, - + COUNT( * ) ) / COUNT( ALL 90 ) + + 73 THEN NULL ELSE ( - 14 ) * + NULLIF ( - + 86, - 37 * + 34 ) END + + ( + CASE 52 WHEN + 83 THEN NULL WHEN AVG ( CASE + 67 WHEN - 45 THEN 28 WHEN + ( CAST( NULL AS DECIMAL ) ) THEN NULL ELSE NULL END ) THEN ( 42 ) * - COUNT( * ) WHEN 91 THEN NULL WHEN + 5 / 62 THEN 94 - - 25 END ) * 96 + 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1237
SELECT ALL + - 41 / - + 73 / 18 + + CASE - + 19 WHEN - + 30 + - 88 + 38 * + MAX ( + - 90 ) THEN - MIN ( 25 ) / + COUNT ( * ) WHEN - 12 * - COALESCE ( + 34, - + COUNT ( * ) ) / COUNT ( ALL 90 ) + + 73 THEN NULL ELSE ( - 14 ) * + NULLIF ( - + 86, - 37 * + 34 ) END + + ( + CASE 52 WHEN + 83 THEN NULL WHEN AVG ( CASE + 67 WHEN - 45 THEN 28 WHEN + ( CAST ( NULL AS REAL ) ) THEN NULL ELSE NULL END ) THEN ( 42 ) * - COUNT ( * ) WHEN 91 THEN NULL WHEN + 5 / 62 THEN 94 - - 25 END ) * 96 + 27 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1238
SELECT COALESCE ( MAX( ( + - 74 ) ), ( 80 ), - 27 ) DIV + NULLIF ( 39, + 27 ) + 74
----
73

skipif mysql # not compatible
query I rowsort label-1238
SELECT COALESCE ( MAX ( ( + - 74 ) ), ( 80 ), - 27 ) / + NULLIF ( 39, + 27 ) + 74
----
73

query I rowsort
SELECT + - COALESCE ( - ( + - 0 ), 95 + - 74 ) col1
----
0

query II rowsort
SELECT DISTINCT + 57, + ( + 44 ) + - 80 AS col2
----
57
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-1241
SELECT - 45 + ( + ( - - 57 ) ) AS col1, MIN( 60 )
----
12
60

skipif mysql # not compatible
query II rowsort label-1241
SELECT - 45 + ( + ( - - 57 ) ) AS col1, MIN ( 60 )
----
12
60

query I rowsort
SELECT 3 * - 77 + + + 99
----
-132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1243
SELECT DISTINCT - COALESCE ( + 35, - - 10 + + + 61 ) + 8 / + + CAST( - 74 AS SIGNED ) + 82 + - - 58 * CASE - - 6 WHEN 47 + - + MAX( - ( 66 ) ) / + - MIN( 85 ) THEN + + 99 ELSE NULL END + + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-1243
SELECT DISTINCT - COALESCE ( + 35, - - 10 + + + 61 ) + 8 / + + CAST ( - 74 AS INTEGER ) + 82 + - - 58 * CASE - - 6 WHEN 47 + - + MAX ( - ( 66 ) ) / + - MIN ( 85 ) THEN + + 99 ELSE NULL END + + - 6
----
NULL

query I rowsort
SELECT ALL + 13 + + 91 AS col1
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1245
SELECT 25 * CAST( NULL AS SIGNED ) / + ( - ( COALESCE ( - - 2, + NULLIF ( + + 47, + 82 ), - + 13 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1245
SELECT 25 * CAST ( NULL AS INTEGER ) / + ( - ( COALESCE ( - - 2, + NULLIF ( + + 47, + 82 ), - + 13 ) ) )
----
NULL

query I rowsort
SELECT 41 + + 10 + + 49
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT DISTINCT - 68 - - 84 + - MIN( - 1 ) + 3 * - 1 * - + 99 + + - 75 AS col1
----
239

skipif mysql # not compatible
query I rowsort label-1247
SELECT DISTINCT - 68 - - 84 + - MIN ( - 1 ) + 3 * - 1 * - + 99 + + - 75 AS col1
----
239

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT ALL + COALESCE ( - 80, 81 - + - 8 ) - - 80 + + + 0 + NULLIF ( + 67, 44 ) * - MIN( DISTINCT 55 ) * + 86 * 5 - + COUNT( * )
----
-1584551

skipif mysql # not compatible
query I rowsort label-1248
SELECT ALL + COALESCE ( - 80, 81 - + - 8 ) - - 80 + + + 0 + NULLIF ( + 67, 44 ) * - MIN ( DISTINCT 55 ) * + 86 * 5 - + COUNT ( * )
----
-1584551

query I rowsort
SELECT 15 * + 60 col0
----
900

query I rowsort
SELECT 40 * + 30 AS col1
----
1200

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1251
SELECT DISTINCT 81 col2, 68 * + - 89 + 36 + 83 * CAST( + + 22 AS SIGNED )
----
81
-4190

skipif mysql # not compatible
query II rowsort label-1251
SELECT DISTINCT 81 col2, 68 * + - 89 + 36 + 83 * CAST ( + + 22 AS INTEGER )
----
81
-4190

query II rowsort
SELECT ALL 33 AS col1, - 50 AS col0
----
33
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1253
SELECT ALL 21 - SUM( DISTINCT + 50 ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-1253
SELECT ALL 21 - SUM ( DISTINCT + 50 ) AS col1
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-1254
SELECT 90 DIV - 63
----
-1

skipif mysql # not compatible
query I rowsort label-1254
SELECT 90 / - 63
----
-1

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

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

query I rowsort
SELECT ALL - 23 * 34
----
-782

query I rowsort
SELECT 90 + + 14 + + 86 AS col2
----
190

query II rowsort
SELECT - 86 col1, - ( 87 ) AS col0
----
-86
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1259
SELECT COALESCE ( 99, - 94 + + - 74 ) + - 8 * + COUNT( DISTINCT 1 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-1259
SELECT COALESCE ( 99, - 94 + + - 74 ) + - 8 * + COUNT ( DISTINCT 1 ) AS col2
----
91

query I rowsort
SELECT - NULLIF ( + 16, + 24 / - 24 + 35 * - - 80 ) AS col2
----
-16

query II rowsort
SELECT DISTINCT - 67 AS col0, 8
----
-67
8

query I rowsort
SELECT ALL + ( + 96 ) + - 16 AS col2
----
80

query II rowsort
SELECT - 70 AS col0, 57 + - 34 AS col1
----
-70
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1264
SELECT DISTINCT CASE - COALESCE ( - 93, + 38 ) WHEN 99 * + CASE - + 60 WHEN 66 THEN + + 99 * + 87 END + + 24 + - CAST( - - 44 AS SIGNED ) - - 78 * - - 13 THEN - COUNT( * ) * + ( + - 28 ) + - - 69 WHEN + 27 + 21 * 25 THEN 7 ELSE NULL END + + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-1264
SELECT DISTINCT CASE - COALESCE ( - 93, + 38 ) WHEN 99 * + CASE - + 60 WHEN 66 THEN + + 99 * + 87 END + + 24 + - CAST ( - - 44 AS INTEGER ) - - 78 * - - 13 THEN - COUNT ( * ) * + ( + - 28 ) + - - 69 WHEN + 27 + 21 * 25 THEN 7 ELSE NULL END + + 53
----
NULL

query I rowsort
SELECT ALL + 47 + + 96 AS col0
----
143

query II rowsort
SELECT + NULLIF ( - + 12, - 76 ) * 57, 6 AS col2
----
-684
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1267
SELECT ALL + 36 + + - CAST( + + 1 AS SIGNED ) * - + ( + 52 )
----
88

skipif mysql # not compatible
query I rowsort label-1267
SELECT ALL + 36 + + - CAST ( + + 1 AS INTEGER ) * - + ( + 52 )
----
88

query I rowsort
SELECT ( + CASE + 48 WHEN + 34 / - + 92 * + ( 74 ) + - 43 + - 80 * - ( - 73 ) THEN NULL WHEN 37 THEN NULL WHEN + 82 + - - 0 THEN 21 ELSE NULL END ) AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1270
SELECT ALL CASE + 95 WHEN - 53 * + - 61 * COUNT( * ) THEN CASE - - COUNT( * ) WHEN - - CAST( NULL AS SIGNED ) * + 89 THEN + + 91 ELSE - - 97 + + + SUM( + - 98 ) / - 90 * - ( NULLIF ( - COUNT( * ), - - 38 ) ) END / + + 69 END + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-1270
SELECT ALL CASE + 95 WHEN - 53 * + - 61 * COUNT ( * ) THEN CASE - - COUNT ( * ) WHEN - - CAST ( NULL AS INTEGER ) * + 89 THEN + + 91 ELSE - - 97 + + + SUM ( + - 98 ) / - 90 * - ( NULLIF ( - COUNT ( * ), - - 38 ) ) END / + + 69 END + 25
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1271
SELECT CAST( NULL AS SIGNED ) * - 37 AS col1, 3 AS col0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-1271
SELECT CAST ( NULL AS INTEGER ) * - 37 AS col1, 3 AS col0
----
NULL
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1272
SELECT ALL - 72 DIV + 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1272
SELECT ALL - 72 / + 98 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1273
SELECT 34 + + COUNT( * ) AS col0, 81 AS col2
----
35
81

skipif mysql # not compatible
query II rowsort label-1273
SELECT 34 + + COUNT ( * ) AS col0, 81 AS col2
----
35
81

query I rowsort
SELECT 79 - - 54
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT ALL + 82 * - + ( MIN( 65 ) )
----
-5330

skipif mysql # not compatible
query I rowsort label-1275
SELECT ALL + 82 * - + ( MIN ( 65 ) )
----
-5330

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

query II rowsort
SELECT DISTINCT + 64 * 83 AS col2, 29 + + 87 + + 5 * - 66 + - 46 AS col2
----
5312
-260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1278
SELECT DISTINCT CAST( - 91 AS SIGNED ) * + + 55 + + 61 + COUNT( * ) + 37 + + + 51 * - 66 AS col1, - 2 AS col0
----
-8272
-2

skipif mysql # not compatible
query II rowsort label-1278
SELECT DISTINCT CAST ( - 91 AS INTEGER ) * + + 55 + + 61 + COUNT ( * ) + 37 + + + 51 * - 66 AS col1, - 2 AS col0
----
-8272
-2

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

skipif mysql # not compatible
query I rowsort label-1279
SELECT ALL + COUNT ( 64 ) * + + 4 AS col0
----
4

query I rowsort
SELECT 36 * - + 83 AS col1
----
-2988

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT ALL - 66 + - - 23 * + 50 + + COUNT( 10 ) * + 56 + 99 * MIN( ALL - 35 )
----
-2325

skipif mysql # not compatible
query I rowsort label-1281
SELECT ALL - 66 + - - 23 * + 50 + + COUNT ( 10 ) * + 56 + 99 * MIN ( ALL - 35 )
----
-2325

onlyif mysql # aggregate syntax: 
query I rowsort label-1282
SELECT - SUM( ALL - 2 ) + + + 37 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-1282
SELECT - SUM ( ALL - 2 ) + + + 37 AS col2
----
39

query I rowsort
SELECT 61 + ( - 79 ) AS col0
----
-18

query I rowsort
SELECT ALL + - 85 + 60 * + + 43
----
2495

onlyif mysql # DIV for integer division: 
query II rowsort label-1285
SELECT ALL - + 22 DIV - 39, 23 AS col1
----
0
23

skipif mysql # not compatible
query II rowsort label-1285
SELECT ALL - + 22 / - 39, 23 AS col1
----
0
23

onlyif mysql # DIV for integer division: 
query I rowsort label-1286
SELECT + 91 DIV + 49
----
1

skipif mysql # not compatible
query I rowsort label-1286
SELECT + 91 / + 49
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1287
SELECT ALL - COUNT( * ) + + + 13
----
12

skipif mysql # not compatible
query I rowsort label-1287
SELECT ALL - COUNT ( * ) + + + 13
----
12

query II rowsort
SELECT ALL + 50 + - + 8 AS col1, 40
----
42
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1289
SELECT 84 + 86, + ( - MIN( 80 ) ) DIV - 41 col2
----
170
1

skipif mysql # not compatible
query II rowsort label-1289
SELECT 84 + 86, + ( - MIN ( 80 ) ) / - 41 col2
----
170
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1290
SELECT ALL + - MIN( DISTINCT 48 ) + - + 98
----
-146

skipif mysql # not compatible
query I rowsort label-1290
SELECT ALL + - MIN ( DISTINCT 48 ) + - + 98
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-1291
SELECT ALL - MAX( - - 31 ) * - - COUNT( * ) col2
----
-31

skipif mysql # not compatible
query I rowsort label-1291
SELECT ALL - MAX ( - - 31 ) * - - COUNT ( * ) col2
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1292
SELECT 30 + ( + NULLIF ( CAST( - 16 AS SIGNED ), CASE + + 62 WHEN - - ( 14 ) THEN - MAX( DISTINCT + 78 ) * 67 END ) ) - - - 38 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-1292
SELECT 30 + ( + NULLIF ( CAST ( - 16 AS INTEGER ), CASE + + 62 WHEN - - ( 14 ) THEN - MAX ( DISTINCT + 78 ) * 67 END ) ) - - - 38 AS col2
----
-24

query I rowsort
SELECT DISTINCT + + 43 * 80 - - - COALESCE ( - - 8, - + 67 ) - + ( + 12 ) AS col1
----
3420

query I rowsort
SELECT ALL + - 18 + + 98 AS col2
----
80

query I rowsort
SELECT 10 + 80 + + 42 col2
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT SUM( - - 5 ) + - 0 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-1296
SELECT SUM ( - - 5 ) + - 0 AS col0
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-1297
SELECT COALESCE ( - + 64, - + COALESCE ( 39, 9 + + 88 ) ) AS col1, COUNT( * ) + + COUNT( * ) AS col1
----
-64
2

skipif mysql # not compatible
query II rowsort label-1297
SELECT COALESCE ( - + 64, - + COALESCE ( 39, 9 + + 88 ) ) AS col1, COUNT ( * ) + + COUNT ( * ) AS col1
----
-64
2

query I rowsort
SELECT ALL - 22 * 28 - + + 58
----
-674

query I rowsort
SELECT - 34 * + 64
----
-2176

query I rowsort
SELECT ALL + 40 * 32 AS col1
----
1280

onlyif mysql # aggregate syntax: 
query I rowsort label-1301
SELECT ALL + COUNT( DISTINCT - 30 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1301
SELECT ALL + COUNT ( DISTINCT - 30 ) col0
----
1

query I rowsort
SELECT DISTINCT + 78 * + 81 * + - 32 - + 63
----
-202239

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1303
SELECT - NULLIF ( + COUNT( * ), - 49 DIV + - CAST( NULL AS SIGNED ) + ( CAST( NULL AS SIGNED ) ) + + COALESCE ( - - 10, 30, 36 * + + 70 ) ) * NULLIF ( + 48, + 55 ) + + + 96 * + COALESCE ( + 14, - 27 + + - 88 DIV + - 16 + 20 ) + 30 + - NULLIF ( 67, + + 24 * - 71 ) DIV + ( - 8 ) DIV - 1 + NULLIF ( COUNT( * ), + 5 ) + - 0
----
1319

skipif mysql # not compatible
query I rowsort label-1303
SELECT - NULLIF ( + COUNT ( * ), - 49 / + - CAST ( NULL AS INTEGER ) + ( CAST ( NULL AS INTEGER ) ) + + COALESCE ( - - 10, 30, 36 * + + 70 ) ) * NULLIF ( + 48, + 55 ) + + + 96 * + COALESCE ( + 14, - 27 + + - 88 / + - 16 + 20 ) + 30 + - NULLIF ( 67, + + 24 * - 71 ) / + ( - 8 ) / - 1 + NULLIF ( COUNT ( * ), + 5 ) + - 0
----
1319

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1304
SELECT COALESCE ( 87, + CAST( + 50 AS SIGNED ) )
----
87

skipif mysql # not compatible
query I rowsort label-1304
SELECT COALESCE ( 87, + CAST ( + 50 AS INTEGER ) )
----
87

query II rowsort
SELECT ALL + 86 AS col0, + 37
----
86
37

query I rowsort
SELECT ALL 44 * - - 14
----
616

onlyif mysql # DIV for integer division: 
query I rowsort label-1307
SELECT + 50 DIV - 14
----
-3

skipif mysql # not compatible
query I rowsort label-1307
SELECT + 50 / - 14
----
-3

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1309
SELECT + MIN( CAST( - - ( + - 34 ) AS SIGNED ) ), 59 AS col1
----
-34
59

skipif mysql # not compatible
query II rowsort label-1309
SELECT + MIN ( CAST ( - - ( + - 34 ) AS INTEGER ) ), 59 AS col1
----
-34
59

onlyif mysql # DIV for integer division: 
query I rowsort label-1310
SELECT + 20 DIV + 46 * - - 26
----
0

skipif mysql # not compatible
query I rowsort label-1310
SELECT + 20 / + 46 * - - 26
----
0

query I rowsort
SELECT ALL 26 * - 92
----
-2392

query I rowsort
SELECT ALL ( - 30 ) * 96 col1
----
-2880

query I rowsort
SELECT DISTINCT 43 * - 94
----
-4042

query I rowsort
SELECT DISTINCT 19 * 34 AS col2
----
646

query II rowsort
SELECT DISTINCT + 7, 50 * 48 AS col0
----
7
2400

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1317
SELECT ALL + NULLIF ( - 88, - 79 * + 56 ) * 99 + - - 86 + - 18 + - - CAST( NULL AS SIGNED ) / - + 66 + - 85 - - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-1317
SELECT ALL + NULLIF ( - 88, - 79 * + 56 ) * 99 + - - 86 + - 18 + - - CAST ( NULL AS INTEGER ) / - + 66 + - 85 - - 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT ALL 83 * + - MAX( ALL + - 80 ) + - 16 * 75
----
5440

skipif mysql # not compatible
query I rowsort label-1318
SELECT ALL 83 * + - MAX ( ALL + - 80 ) + - 16 * 75
----
5440

query II rowsort
SELECT 61 AS col1, + 28
----
61
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1320
SELECT ALL + + CASE - 84 WHEN + 76 * + - 49 THEN - 67 END * 10 + - 91 * - 3 - CAST( NULL AS SIGNED ) * - 97 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1320
SELECT ALL + + CASE - 84 WHEN + 76 * + - 49 THEN - 67 END * 10 + - 91 * - 3 - CAST ( NULL AS INTEGER ) * - 97 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1321
SELECT + + 40 * - SUM( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

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

query I rowsort
SELECT - - 35 + + NULLIF ( + - 61, + - 99 ) * - 26
----
1621

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

query II rowsort
SELECT - COALESCE ( + 31, - 77 ), 91 + - 18 AS col1
----
-31
73

query I rowsort
SELECT ALL 45 + + - 75 + 30 * + - 65 col2
----
-1980

query I rowsort
SELECT ALL + + 57 + 52
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1327
SELECT DISTINCT 93 AS col1, + 26 + - 34 + + - COUNT( * ) DIV - + 20
----
93
-8

skipif mysql # not compatible
query II rowsort label-1327
SELECT DISTINCT 93 AS col1, + 26 + - 34 + + - COUNT ( * ) / - + 20
----
93
-8

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

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

query I rowsort
SELECT - 98 * + 97 + - 28
----
-9534

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1330
SELECT ALL SUM( DISTINCT - 58 ) + + CAST( 8 AS SIGNED ) * - - 74 AS col1
----
534

skipif mysql # not compatible
query I rowsort label-1330
SELECT ALL SUM ( DISTINCT - 58 ) + + CAST ( 8 AS INTEGER ) * - - 74 AS col1
----
534

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1331
SELECT + - CASE AVG ( DISTINCT 57 ) WHEN - + 37 * ( + COALESCE ( + MAX( - - 59 ), - - 81 * - COALESCE ( - COUNT( * ), + + 42 / + 82, 9 ) + CAST( NULL AS SIGNED ) + - COUNT( * ), + 30 + 51 ) ) + 59 + ( + 13 ) - SUM( ALL + + 87 ) THEN 9 / 27 END - - CAST( - 75 AS SIGNED ) + - - 30 * COUNT( ALL + 75 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1331
SELECT + - CASE AVG ( DISTINCT 57 ) WHEN - + 37 * ( + COALESCE ( + MAX ( - - 59 ), - - 81 * - COALESCE ( - COUNT ( * ), + + 42 / + 82, 9 ) + CAST ( NULL AS INTEGER ) + - COUNT ( * ), + 30 + 51 ) ) + 59 + ( + 13 ) - SUM ( ALL + + 87 ) THEN 9 / 27 END - - CAST ( - 75 AS INTEGER ) + - - 30 * COUNT ( ALL + 75 ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1332
SELECT DISTINCT + 73 AS col0, - 68 - - CAST( NULL AS SIGNED ) + - - 93 * 16 * + 48 * + + 94
----
73
NULL

skipif mysql # not compatible
query II rowsort label-1332
SELECT DISTINCT + 73 AS col0, - 68 - - CAST ( NULL AS INTEGER ) + - - 93 * 16 * + 48 * + + 94
----
73
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1333
SELECT ALL - CAST( NULL AS DECIMAL ) + + 53 * + AVG ( CAST( + + 80 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1333
SELECT ALL - CAST ( NULL AS REAL ) + + 53 * + AVG ( CAST ( + + 80 AS INTEGER ) )
----
NULL

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

query I rowsort
SELECT - + 8 * + - 18 AS col1
----
144

query I rowsort
SELECT DISTINCT - 86 - 58
----
-144

query II rowsort
SELECT ALL 67 AS col2, 15
----
67
15

query I rowsort
SELECT DISTINCT - 36 * - - 23
----
-828

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

query I rowsort
SELECT - 10 * - - 18 AS col0
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT ALL CASE + - MAX( ALL 47 ) WHEN + - 41 THEN + 11 * - 48 * - MIN( ALL 62 ) + - + 49 ELSE + 10 * 57 * - 67 * + 8 END AS col1
----
-305520

skipif mysql # not compatible
query I rowsort label-1341
SELECT ALL CASE + - MAX ( ALL 47 ) WHEN + - 41 THEN + 11 * - 48 * - MIN ( ALL 62 ) + - + 49 ELSE + 10 * 57 * - 67 * + 8 END AS col1
----
-305520

onlyif mysql # aggregate syntax: 
query I rowsort label-1342
SELECT DISTINCT - 72 * - 62 * 83 * + 10 * - COUNT( * )
----
-3705120

skipif mysql # not compatible
query I rowsort label-1342
SELECT DISTINCT - 72 * - 62 * 83 * + 10 * - COUNT ( * )
----
-3705120

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1343
SELECT - 74 * + + 49 AS col0, CAST( 47 AS SIGNED ) AS col2
----
-3626
47

skipif mysql # not compatible
query II rowsort label-1343
SELECT - 74 * + + 49 AS col0, CAST ( 47 AS INTEGER ) AS col2
----
-3626
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1344
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1344
SELECT DISTINCT + CAST ( NULL AS REAL ) * - 36 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT + COALESCE ( + 68, + 79, 73 * + 0 + 20 - + SUM( ALL + - 22 ) * + 56 * COALESCE ( + 56, - 59 + + 98 ) ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-1345
SELECT + COALESCE ( + 68, + 79, 73 * + 0 + 20 - + SUM ( ALL + - 22 ) * + 56 * COALESCE ( + 56, - 59 + + 98 ) ) AS col1
----
68

query I rowsort
SELECT - 44 * 98 AS col1
----
-4312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1347
SELECT - 83 * - 47 + - CASE - 50 WHEN CAST( - + 65 AS SIGNED ) * + 8 THEN + 64 + + 92 WHEN 39 THEN NULL WHEN 93 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1347
SELECT - 83 * - 47 + - CASE - 50 WHEN CAST ( - + 65 AS INTEGER ) * + 8 THEN + 64 + + 92 WHEN 39 THEN NULL WHEN 93 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + CASE 88 WHEN + 46 - - 65 THEN 16 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT DISTINCT + CASE + + 14 WHEN - + 70 * + 93 * - + 56 * - 1 * COUNT( * ) + - 46 * 30 THEN - - 97 * - COUNT( * ) * + 4 * 46 * + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1349
SELECT DISTINCT + CASE + + 14 WHEN - + 70 * + 93 * - + 56 * - 1 * COUNT ( * ) + - 46 * 30 THEN - - 97 * - COUNT ( * ) * + 4 * 46 * + - COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1350
SELECT ALL ( - COALESCE ( + + COUNT( * ), - 93 + 90 * 34 ) ) * 93 * - 96 + + 70 - 77 + CASE + - MAX( DISTINCT ( + ( - 72 ) ) ) WHEN + NULLIF ( AVG ( ALL - 58 ), CAST( NULL AS SIGNED ) ) * + + 19 THEN + 56 WHEN - MIN( - 29 ) THEN NULL WHEN - 64 THEN + COUNT( DISTINCT - 11 ) * + ( - + 45 ) + - COUNT( * ) * - + 76 END + 84 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1350
SELECT ALL ( - COALESCE ( + + COUNT ( * ), - 93 + 90 * 34 ) ) * 93 * - 96 + + 70 - 77 + CASE + - MAX ( DISTINCT ( + ( - 72 ) ) ) WHEN + NULLIF ( AVG ( ALL - 58 ), CAST ( NULL AS INTEGER ) ) * + + 19 THEN + 56 WHEN - MIN ( - 29 ) THEN NULL WHEN - 64 THEN + COUNT ( DISTINCT - 11 ) * + ( - + 45 ) + - COUNT ( * ) * - + 76 END + 84 * COUNT ( * ) AS col1
----
NULL

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

query I rowsort
SELECT DISTINCT 83 * - + 63 * + - 36 + + 31 * + 5 AS col2
----
188399

onlyif mysql # DIV for integer division: 
query I rowsort label-1353
SELECT + 66 DIV + 17
----
3

skipif mysql # not compatible
query I rowsort label-1353
SELECT + 66 / + 17
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT + 70 * - + ( + 78 ) + - COUNT( * ) + - 73
----
-5534

skipif mysql # not compatible
query I rowsort label-1354
SELECT + 70 * - + ( + 78 ) + - COUNT ( * ) + - 73
----
-5534

onlyif mysql # aggregate syntax: 
query I rowsort label-1355
SELECT + - 86 + + + COALESCE ( SUM( - + 88 ), MAX( DISTINCT 42 ) + - 96 - + 95, - 20 ) AS col0
----
-174

skipif mysql # not compatible
query I rowsort label-1355
SELECT + - 86 + + + COALESCE ( SUM ( - + 88 ), MAX ( DISTINCT 42 ) + - 96 - + 95, - 20 ) AS col0
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT + NULLIF ( + 54, - COUNT( * ) + - - COALESCE ( - 6, + 48 ) ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-1356
SELECT + NULLIF ( + 54, - COUNT ( * ) + - - COALESCE ( - 6, + 48 ) ) AS col1
----
54

query I rowsort
SELECT ALL 76 * - - 9 * + - 2 AS col1
----
-1368

query I rowsort
SELECT DISTINCT + 3 * + 45 + - 50 AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT ALL - + 29 * - - 3 * + 41 * CASE 10 WHEN + 52 THEN NULL WHEN + - 50 THEN + 6 * + 5 END + - 5 + - 62 + + 69 * - - 83 * 12 * 86 - - 89 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1359
SELECT ALL - + 29 * - - 3 * + 41 * CASE 10 WHEN + 52 THEN NULL WHEN + - 50 THEN + 6 * + 5 END + - 5 + - 62 + + 69 * - - 83 * 12 * 86 - - 89 * + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 43 * - 12
----
-516

onlyif mysql # DIV for integer division: 
query II rowsort label-1361
SELECT + + 3 DIV 48 AS col2, 75 * - 9 AS col1
----
0
-675

skipif mysql # not compatible
query II rowsort label-1361
SELECT + + 3 / 48 AS col2, 75 * - 9 AS col1
----
0
-675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1362
SELECT + + 17 + - + CAST( - + 95 AS SIGNED ) + + 42 * + 65 AS col1
----
2842

skipif mysql # not compatible
query I rowsort label-1362
SELECT + + 17 + - + CAST ( - + 95 AS INTEGER ) + + 42 * + 65 AS col1
----
2842

onlyif mysql # aggregate syntax: 
query I rowsort label-1363
SELECT - SUM( - 87 ) col1
----
87

skipif mysql # not compatible
query I rowsort label-1363
SELECT - SUM ( - 87 ) col1
----
87

query I rowsort
SELECT + 49 + - + 77 AS col0
----
-28

query I rowsort
SELECT + 18 - - 68 - - COALESCE ( - 5, 75 + - 33 + - + 51, - 67 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT - COALESCE ( + NULLIF ( - + 37, - 25 + COUNT( * ) ), - 78 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-1366
SELECT - COALESCE ( + NULLIF ( - + 37, - 25 + COUNT ( * ) ), - 78 ) AS col0
----
37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT ALL COUNT( * ) - + 63 + + 14 col1
----
-48

skipif mysql # not compatible
query I rowsort label-1368
SELECT ALL COUNT ( * ) - + 63 + + 14 col1
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-1369
SELECT 93 + - 90 DIV 25
----
90

skipif mysql # not compatible
query I rowsort label-1369
SELECT 93 + - 90 / 25
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT DISTINCT - 29 - + 70 * + - COUNT( * ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-1370
SELECT DISTINCT - 29 - + 70 * + - COUNT ( * ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT COALESCE ( COALESCE ( + - ( - + 24 ), - + 88, - 56 * COUNT( * ) + - NULLIF ( 2, - 21 ) * - - MIN( 67 ) ), - 40 )
----
24

skipif mysql # not compatible
query I rowsort label-1371
SELECT COALESCE ( COALESCE ( + - ( - + 24 ), - + 88, - 56 * COUNT ( * ) + - NULLIF ( 2, - 21 ) * - - MIN ( 67 ) ), - 40 )
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1372
SELECT CASE - - 5 WHEN - 10 * + 11 THEN + - 74 - - 68 DIV - 38 WHEN - + COUNT( * ) * + 33 * - 41 + 64 THEN NULL ELSE 94 * - + 7 - + 33 END + - 75
----
-766

skipif mysql # not compatible
query I rowsort label-1372
SELECT CASE - - 5 WHEN - 10 * + 11 THEN + - 74 - - 68 / - 38 WHEN - + COUNT ( * ) * + 33 * - 41 + 64 THEN NULL ELSE 94 * - + 7 - + 33 END + - 75
----
-766

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT ALL - 96 * CASE - 89 WHEN 91 THEN NULL WHEN + - 12 + - CASE 49 WHEN 61 THEN 98 END THEN SUM( - 96 ) END * + 62 * - CASE - 91 WHEN COUNT( * ) * 54 + - MIN( ALL - 43 ) THEN NULL ELSE - 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1373
SELECT ALL - 96 * CASE - 89 WHEN 91 THEN NULL WHEN + - 12 + - CASE 49 WHEN 61 THEN 98 END THEN SUM ( - 96 ) END * + 62 * - CASE - 91 WHEN COUNT ( * ) * 54 + - MIN ( ALL - 43 ) THEN NULL ELSE - 0 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1374
SELECT 34 + - SUM( + - 73 ) DIV + NULLIF ( - 75, - + NULLIF ( - 39, + 29 + - COUNT( * ) + + + 39 ) )
----
34

skipif mysql # not compatible
query I rowsort label-1374
SELECT 34 + - SUM ( + - 73 ) / + NULLIF ( - 75, - + NULLIF ( - 39, + 29 + - COUNT ( * ) + + + 39 ) )
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-1375
SELECT ALL 51 * - + 34 * + - COUNT( * ), 79 AS col1
----
1734
79

skipif mysql # not compatible
query II rowsort label-1375
SELECT ALL 51 * - + 34 * + - COUNT ( * ), 79 AS col1
----
1734
79

query II rowsort
SELECT DISTINCT 87 AS col0, 70
----
87
70

query I rowsort
SELECT 53 + - + 44
----
9

query II rowsort
SELECT DISTINCT 45 AS col1, + 45
----
45
45

query II rowsort
SELECT ALL 96 AS col0, - ( - 73 ) AS col1
----
96
73

query I rowsort
SELECT 69 + + 40 AS col1
----
109

onlyif mysql # DIV for integer division: 
query I rowsort label-1381
SELECT DISTINCT + 41 DIV + 60
----
0

skipif mysql # not compatible
query I rowsort label-1381
SELECT DISTINCT + 41 / + 60
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1382
SELECT 53 DIV + 55 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1382
SELECT 53 / + 55 AS col2
----
0

query I rowsort
SELECT ALL + 23 + 4 AS col1
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-1384
SELECT ALL + 51 DIV + - 5
----
-10

skipif mysql # not compatible
query I rowsort label-1384
SELECT ALL + 51 / + - 5
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT ALL - ( - - 93 ) + + 8 + - + COUNT( * ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-1385
SELECT ALL - ( - - 93 ) + + 8 + - + COUNT ( * ) AS col1
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1386
SELECT COALESCE ( 51, - 51 ) * - 23 + + 80 - ( + ( + ( - 29 ) ) ) - + + 66 + CAST( - 22 AS SIGNED ) AS col1
----
-1152

skipif mysql # not compatible
query I rowsort label-1386
SELECT COALESCE ( 51, - 51 ) * - 23 + + 80 - ( + ( + ( - 29 ) ) ) - + + 66 + CAST ( - 22 AS INTEGER ) AS col1
----
-1152

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT ALL - COUNT( 44 ) * COUNT( - 59 )
----
-1

skipif mysql # not compatible
query I rowsort label-1387
SELECT ALL - COUNT ( 44 ) * COUNT ( - 59 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1388
SELECT ALL + 24 + + 21 * - COUNT( DISTINCT + 94 ) + + - 78 AS col0, - CAST( NULL AS SIGNED )
----
-75
NULL

skipif mysql # not compatible
query II rowsort label-1388
SELECT ALL + 24 + + 21 * - COUNT ( DISTINCT + 94 ) + + - 78 AS col0, - CAST ( NULL AS INTEGER )
----
-75
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1389
SELECT 4 AS col2, 40 + + COALESCE ( - 34, - 52 ) - + COUNT( * ) + + MAX( + 87 ) + + 78 - + + 51 * - + COUNT( * )
----
4
221

skipif mysql # not compatible
query II rowsort label-1389
SELECT 4 AS col2, 40 + + COALESCE ( - 34, - 52 ) - + COUNT ( * ) + + MAX ( + 87 ) + + 78 - + + 51 * - + COUNT ( * )
----
4
221

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT ALL - 60 + + NULLIF ( - 24, + - 12 ) + NULLIF ( 53, - - 90 ) - + - COUNT( * ) * COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-1390
SELECT ALL - 60 + + NULLIF ( - 24, + - 12 ) + NULLIF ( 53, - - 90 ) - + - COUNT ( * ) * COUNT ( * )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT ALL - 51 * + COUNT( * ) * + 23
----
-1173

skipif mysql # not compatible
query I rowsort label-1391
SELECT ALL - 51 * + COUNT ( * ) * + 23
----
-1173

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1393
SELECT ALL + 93 + - 77 * 1, - 56 + + + 57 * - COUNT( * ) + CAST( NULL AS SIGNED ) AS col1
----
16
NULL

skipif mysql # not compatible
query II rowsort label-1393
SELECT ALL + 93 + - 77 * 1, - 56 + + + 57 * - COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col1
----
16
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1394
SELECT DISTINCT + SUM( 65 ) + - 4 col0, 8 AS col1
----
61
8

skipif mysql # not compatible
query II rowsort label-1394
SELECT DISTINCT + SUM ( 65 ) + - 4 col0, 8 AS col1
----
61
8

query I rowsort
SELECT ALL + 13 + + + 0
----
13

query I rowsort
SELECT ALL 88 + + - 56 AS col2
----
32

query II rowsort
SELECT ALL - + 27, 70 AS col1
----
-27
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1398
SELECT SUM( + CAST( 54 AS SIGNED ) ) + + 97
----
151

skipif mysql # not compatible
query I rowsort label-1398
SELECT SUM ( + CAST ( 54 AS INTEGER ) ) + + 97
----
151

query I rowsort
SELECT + 71 * - + 79 AS col2
----
-5609

query I rowsort
SELECT ALL + 63 * - 34 + + 1 * 59
----
-2083

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT + MIN( ALL + 38 ) + + 46
----
84

skipif mysql # not compatible
query I rowsort label-1401
SELECT + MIN ( ALL + 38 ) + + 46
----
84

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

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

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

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

query I rowsort
SELECT ALL 77 * ( + - 34 )
----
-2618

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

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

query II rowsort
SELECT DISTINCT + + 94 * + - ( - 30 ) AS col1, - 81
----
2820
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT DISTINCT 61 * MIN( + 75 ) + ( - 38 )
----
4537

skipif mysql # not compatible
query I rowsort label-1407
SELECT DISTINCT 61 * MIN ( + 75 ) + ( - 38 )
----
4537

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1408
SELECT ALL - MAX( ALL 5 ) DIV + ( + MAX( + + 86 ) ) * + COUNT( * ) + + 16 DIV - + NULLIF ( 40, 12 * + 57 ) + + + 50 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-1408
SELECT ALL - MAX ( ALL 5 ) / + ( + MAX ( + + 86 ) ) * + COUNT ( * ) + + 16 / - + NULLIF ( 40, 12 * + 57 ) + + + 50 AS col1
----
50

onlyif mysql # DIV for integer division: 
query II rowsort label-1409
SELECT ALL 83 AS col0, - 56 DIV + - 37 AS col1
----
83
1

skipif mysql # not compatible
query II rowsort label-1409
SELECT ALL 83 AS col0, - 56 / + - 37 AS col1
----
83
1

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

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

query I rowsort
SELECT 18 * - 7
----
-126

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1412
SELECT ALL 92 AS col0, 85 / - CAST( NULL AS SIGNED )
----
92
NULL

skipif mysql # not compatible
query II rowsort label-1412
SELECT ALL 92 AS col0, 85 / - CAST ( NULL AS INTEGER )
----
92
NULL

query II rowsort
SELECT - 93 AS col1, 83 AS col2
----
-93
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT COUNT( * ) * - MIN( DISTINCT + 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-1414
SELECT COUNT ( * ) * - MIN ( DISTINCT + 18 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT ALL COUNT( * ) + - 43 * - 33 AS col0
----
1420

skipif mysql # not compatible
query I rowsort label-1415
SELECT ALL COUNT ( * ) + - 43 * - 33 AS col0
----
1420

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT ALL 15 * + MIN( DISTINCT + 90 ) AS col2
----
1350

skipif mysql # not compatible
query I rowsort label-1416
SELECT ALL 15 * + MIN ( DISTINCT + 90 ) AS col2
----
1350

onlyif mysql # DIV for integer division: 
query I rowsort label-1417
SELECT ALL - 91 + - 51 DIV + 39 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-1417
SELECT ALL - 91 + - 51 / + 39 AS col2
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1418
SELECT 59 - COUNT( * ) * 75 + + 61, - 1 DIV - 44 AS col1
----
45
0

skipif mysql # not compatible
query II rowsort label-1418
SELECT 59 - COUNT ( * ) * 75 + + 61, - 1 / - 44 AS col1
----
45
0

query I rowsort
SELECT DISTINCT 20 + - 10 AS col2
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-1420
SELECT + COUNT( * ), 94 * 87 col0
----
1
8178

skipif mysql # not compatible
query II rowsort label-1420
SELECT + COUNT ( * ), 94 * 87 col0
----
1
8178

query I rowsort
SELECT ( + CASE + + ( + + 68 ) WHEN 69 + + 22 THEN + - 54 END ) + 81
----
NULL

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

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

query I rowsort
SELECT 68 + - 62
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1424
SELECT DISTINCT - COALESCE ( + + CAST( 85 AS SIGNED ), - 7 + - 92, - + CAST( + + 41 AS SIGNED ) )
----
-85

skipif mysql # not compatible
query I rowsort label-1424
SELECT DISTINCT - COALESCE ( + + CAST ( 85 AS INTEGER ), - 7 + - 92, - + CAST ( + + 41 AS INTEGER ) )
----
-85

query I rowsort
SELECT + ( - 23 ) * 24 + + + ( + COALESCE ( - 28, + - 16, + 57 + 96 ) ) + + ( + 72 ) AS col0
----
-508

onlyif mysql # aggregate syntax: 
query I rowsort label-1426
SELECT ALL 62 * - COUNT( * ) * + 51 + - - 27 + NULLIF ( - 98, 30 ) AS col1
----
-3233

skipif mysql # not compatible
query I rowsort label-1426
SELECT ALL 62 * - COUNT ( * ) * + 51 + - - 27 + NULLIF ( - 98, 30 ) AS col1
----
-3233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1427
SELECT ALL + + 8 * + + CAST( - - 94 AS SIGNED ) - + 0 + + COALESCE ( - + 97, - 24 + - 17 )
----
655

skipif mysql # not compatible
query I rowsort label-1427
SELECT ALL + + 8 * + + CAST ( - - 94 AS INTEGER ) - + 0 + + COALESCE ( - + 97, - 24 + - 17 )
----
655

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1428
SELECT + + NULLIF ( - NULLIF ( - CASE - - 44 WHEN - 59 * + 64 + - AVG ( - 49 ) + CASE 42 WHEN - + 45 THEN NULL WHEN + SUM( ALL 59 ) * - - ( + 56 ) - - + 65 - - CAST( NULL AS SIGNED ) + COUNT( * ) * - - SUM( + + 6 ) + - 27 THEN NULL WHEN - 9 THEN NULL ELSE - 98 END * - 97 / + + 36 / - 33 THEN - - COUNT( * ) WHEN - 77 + + CASE 48 WHEN COUNT( * ) * + COUNT( * ) THEN + 96 WHEN - 45 THEN NULL ELSE NULL END THEN NULL END, 28 + + COUNT( * ) ), + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1428
SELECT + + NULLIF ( - NULLIF ( - CASE - - 44 WHEN - 59 * + 64 + - AVG ( - 49 ) + CASE 42 WHEN - + 45 THEN NULL WHEN + SUM ( ALL 59 ) * - - ( + 56 ) - - + 65 - - CAST ( NULL AS INTEGER ) + COUNT ( * ) * - - SUM ( + + 6 ) + - 27 THEN NULL WHEN - 9 THEN NULL ELSE - 98 END * - 97 / + + 36 / - 33 THEN - - COUNT ( * ) WHEN - 77 + + CASE 48 WHEN COUNT ( * ) * + COUNT ( * ) THEN + 96 WHEN - 45 THEN NULL ELSE NULL END THEN NULL END, 28 + + COUNT ( * ) ), + COUNT ( * ) )
----
NULL

query II rowsort
SELECT ALL - 15 AS col1, 8 - - - ( 94 )
----
-15
-86

query II rowsort
SELECT + 0 AS col1, - 24
----
0
-24

query I rowsort
SELECT ALL + ( + 95 ) * + - 43
----
-4085

query I rowsort
SELECT ALL - 87 * + - COALESCE ( - + NULLIF ( + 15, + - 46 ), ( COALESCE ( - 94, + 53 ) ), - - 14 ) * 18 - 96 + 42 col2
----
-23544

query I rowsort
SELECT DISTINCT + + 21 * - - 55 * + 41
----
47355

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1435
SELECT - 22 + - + ( + 21 ) * - - 45 * + COUNT( * ) + 3 col1
----
-964

skipif mysql # not compatible
query I rowsort label-1435
SELECT - 22 + - + ( + 21 ) * - - 45 * + COUNT ( * ) + 3 col1
----
-964

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

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

query I rowsort
SELECT DISTINCT + + COALESCE ( - - 1, - 37 + + - 28 * 0, + ( 61 ) ) * 10 * + + 29
----
290

onlyif mysql # aggregate syntax: 
query I rowsort label-1438
SELECT - 92 * + COUNT( * ) - + 2 + + + 13 AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-1438
SELECT - 92 * + COUNT ( * ) - + 2 + + + 13 AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT DISTINCT + - 42 * CASE - 53 WHEN 45 THEN NULL WHEN + + 40 - + 69 + - 20 / - 71 THEN - 7 * - 55 + - 18 WHEN - - COUNT( ( - - 26 ) ) + - 95 / + 80 THEN + 21 WHEN 71 THEN 36 - - + 85 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1439
SELECT DISTINCT + - 42 * CASE - 53 WHEN 45 THEN NULL WHEN + + 40 - + 69 + - 20 / - 71 THEN - 7 * - 55 + - 18 WHEN - - COUNT ( ( - - 26 ) ) + - 95 / + 80 THEN + 21 WHEN 71 THEN 36 - - + 85 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1440
SELECT - - 2 * 69 DIV + 71 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1440
SELECT - - 2 * 69 / + 71 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1441
SELECT ALL + MIN( DISTINCT - + 92 ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-1441
SELECT ALL + MIN ( DISTINCT - + 92 ) AS col2
----
-92

query I rowsort
SELECT - - 53 col1
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-1443
SELECT - + ( + + 62 ) + + 53 DIV + - 77
----
-62

skipif mysql # not compatible
query I rowsort label-1443
SELECT - + ( + + 62 ) + + 53 / + - 77
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT COALESCE ( COUNT( * ), + 77 * + 59 + - 48 )
----
1

skipif mysql # not compatible
query I rowsort label-1444
SELECT COALESCE ( COUNT ( * ), + 77 * + 59 + - 48 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1445
SELECT COUNT( * ), ( 21 ) * - MIN( - 11 ) AS col2
----
1
231

skipif mysql # not compatible
query II rowsort label-1445
SELECT COUNT ( * ), ( 21 ) * - MIN ( - 11 ) AS col2
----
1
231

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

skipif mysql # not compatible
query I rowsort label-1446
SELECT - 33 + COUNT ( + 99 ) / ( + + 72 )
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1447
SELECT - + 24 + - - SUM( DISTINCT - CAST( + - 51 AS SIGNED ) ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-1447
SELECT - + 24 + - - SUM ( DISTINCT - CAST ( + - 51 AS INTEGER ) ) AS col0
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1448
SELECT DISTINCT + ( + 34 ) * - - CASE + + COUNT( 70 ) WHEN - - 6 + - 48 THEN + - COUNT( * ) + - ( + COUNT( * ) ) WHEN 8 - 48 + + MIN( + 42 ) THEN CASE 37 WHEN + ( - + 41 ) + - + SUM( DISTINCT - - 89 ) + CAST( + - 2 AS SIGNED ) * - AVG ( + 85 ) * + + 90 + - 12 THEN NULL ELSE COALESCE ( - + 32, - - 74, + 27 ) * - 2 + + COUNT( * ) END * + - 24 ELSE - 89 END - + - 48 + + CAST( NULLIF ( - 53, 18 - + 35 ) AS SIGNED ) * - 13
----
-2289

skipif mysql # not compatible
query I rowsort label-1448
SELECT DISTINCT + ( + 34 ) * - - CASE + + COUNT ( 70 ) WHEN - - 6 + - 48 THEN + - COUNT ( * ) + - ( + COUNT ( * ) ) WHEN 8 - 48 + + MIN ( + 42 ) THEN CASE 37 WHEN + ( - + 41 ) + - + SUM ( DISTINCT - - 89 ) + CAST ( + - 2 AS INTEGER ) * - AVG ( + 85 ) * + + 90 + - 12 THEN NULL ELSE COALESCE ( - + 32, - - 74, + 27 ) * - 2 + + COUNT ( * ) END * + - 24 ELSE - 89 END - + - 48 + + CAST ( NULLIF ( - 53, 18 - + 35 ) AS INTEGER ) * - 13
----
-2289

query I rowsort
SELECT - 27 + + - 80 * NULLIF ( 40, - 42 / - + 58 ) AS col1
----
-3227

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT - COUNT( * ) + + + 62 * - + 17 + 12 - - 76 * - COUNT( * ) AS col0
----
-1119

skipif mysql # not compatible
query I rowsort label-1450
SELECT - COUNT ( * ) + + + 62 * - + 17 + 12 - - 76 * - COUNT ( * ) AS col0
----
-1119

onlyif mysql # aggregate syntax: 
query II rowsort label-1451
SELECT ALL 15 + + 57 AS col1, COUNT( * ) * + 7 * + 4 AS col1
----
72
28

skipif mysql # not compatible
query II rowsort label-1451
SELECT ALL 15 + + 57 AS col1, COUNT ( * ) * + 7 * + 4 AS col1
----
72
28

query I rowsort
SELECT DISTINCT + 50 * + 96 col1
----
4800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1453
SELECT ALL - CAST( COUNT( ALL + - CAST( NULL AS SIGNED ) ) AS SIGNED ) + + COALESCE ( - 82, + 70 + - COALESCE ( 69, 74 ) ) * + - 9 + - 67
----
671

skipif mysql # not compatible
query I rowsort label-1453
SELECT ALL - CAST ( COUNT ( ALL + - CAST ( NULL AS INTEGER ) ) AS INTEGER ) + + COALESCE ( - 82, + 70 + - COALESCE ( 69, 74 ) ) * + - 9 + - 67
----
671

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT + MAX( - 62 ) + - - 96 + - 15 * + - ( - - 31 ) * - 73 AS col2
----
-33911

skipif mysql # not compatible
query I rowsort label-1454
SELECT + MAX ( - 62 ) + - - 96 + - 15 * + - ( - - 31 ) * - 73 AS col2
----
-33911

query I rowsort
SELECT ALL - ( + 46 ) * + + 15 col1
----
-690

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

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

query I rowsort
SELECT ALL 56 + - - 96 AS col0
----
152

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1459
SELECT + COALESCE ( 66, - - 56, - 60 + + NULLIF ( + + 28, + - COUNT( 91 ) * 13 ) + - CAST( NULL AS SIGNED ) - COUNT( * ) + + 30 * - 26 DIV - 21 ) * 56 AS col0
----
3696

skipif mysql # not compatible
query I rowsort label-1459
SELECT + COALESCE ( 66, - - 56, - 60 + + NULLIF ( + + 28, + - COUNT ( 91 ) * 13 ) + - CAST ( NULL AS INTEGER ) - COUNT ( * ) + + 30 * - 26 / - 21 ) * 56 AS col0
----
3696

onlyif mysql # aggregate syntax: 
query I rowsort label-1460
SELECT - CASE - ( + COUNT( * ) ) WHEN - - 0 THEN 22 ELSE - 77 END col2
----
77

skipif mysql # not compatible
query I rowsort label-1460
SELECT - CASE - ( + COUNT ( * ) ) WHEN - - 0 THEN 22 ELSE - 77 END col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1461
SELECT ALL 44 * 72 - COUNT( * ) AS col2
----
3167

skipif mysql # not compatible
query I rowsort label-1461
SELECT ALL 44 * 72 - COUNT ( * ) AS col2
----
3167

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT + MIN( 28 ) * - - 64 AS col1
----
1792

skipif mysql # not compatible
query I rowsort label-1462
SELECT + MIN ( 28 ) * - - 64 AS col1
----
1792

query I rowsort
SELECT - + 41 * ( - 40 )
----
1640

query I rowsort
SELECT ALL + 36 * 88 + + 55
----
3223

query I rowsort
SELECT + CASE - 59 WHEN - 12 THEN - AVG ( DISTINCT + 43 ) WHEN + + 54 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1466
SELECT 55 * + 35 * - 79 - + 94 + - COUNT( * ) * 61 - + 29 + + 4 * 25 * - 50 * + 50 * - 96 * + MAX( DISTINCT - + CAST( NULL AS SIGNED ) ) * 57 + + 90 * + MIN( + - NULLIF ( + - 13, + 51 * - ( + NULLIF ( + 71, COALESCE ( - + 4, 28 * + + 11 ) + - 99 + + 50 * - 30 * + + 64 + - - 1 ) ) + - 36 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1466
SELECT 55 * + 35 * - 79 - + 94 + - COUNT ( * ) * 61 - + 29 + + 4 * 25 * - 50 * + 50 * - 96 * + MAX ( DISTINCT - + CAST ( NULL AS INTEGER ) ) * 57 + + 90 * + MIN ( + - NULLIF ( + - 13, + 51 * - ( + NULLIF ( + 71, COALESCE ( - + 4, 28 * + + 11 ) + - 99 + + 50 * - 30 * + + 64 + - - 1 ) ) + - 36 ) )
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1469
SELECT - 65 + - 59 AS col0, 24 * - + 69 * - COUNT( * ) AS col0
----
-124
1656

skipif mysql # not compatible
query II rowsort label-1469
SELECT - 65 + - 59 AS col0, 24 * - + 69 * - COUNT ( * ) AS col0
----
-124
1656

onlyif mysql # DIV for integer division: 
query I rowsort label-1470
SELECT ALL - 9 DIV 45
----
0

skipif mysql # not compatible
query I rowsort label-1470
SELECT ALL - 9 / 45
----
0

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1471
SELECT - - 65 DIV + ( NULLIF ( + - 66, + 74 DIV - + 72 * - 83 DIV + CAST( - 35 AS DECIMAL ) ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1471
SELECT - - 65 / + ( NULLIF ( + - 66, + 74 / - + 72 * - 83 / + CAST ( - 35 AS REAL ) ) ) AS col0
----
0

query II rowsort
SELECT + - 54 * - 16 AS col0, - 75
----
864
-75

query I rowsort
SELECT 48 * - 45 + + ( 77 ) * 10 + + - ( + 73 ) AS col1
----
-1463

query I rowsort
SELECT - + 79 * + 96 AS col2
----
-7584

onlyif mysql # aggregate syntax: 
query II rowsort label-1475
SELECT - + 73 + - 66 AS col0, + 91 * - CASE - + 48 WHEN + COUNT( * ) THEN + + 35 + - 28 ELSE NULL END
----
-139
NULL

skipif mysql # not compatible
query II rowsort label-1475
SELECT - + 73 + - 66 AS col0, + 91 * - CASE - + 48 WHEN + COUNT ( * ) THEN + + 35 + - 28 ELSE NULL END
----
-139
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1476
SELECT ALL 12 * - 8 + - 54, 77 + - 75 DIV 43 + - 45 AS col2
----
-150
31

skipif mysql # not compatible
query II rowsort label-1476
SELECT ALL 12 * - 8 + - 54, 77 + - 75 / 43 + - 45 AS col2
----
-150
31

onlyif mysql # aggregate syntax: 
query II rowsort label-1477
SELECT DISTINCT ( - 72 ) * - + 17 col0, 30 * - - COUNT( * )
----
1224
30

skipif mysql # not compatible
query II rowsort label-1477
SELECT DISTINCT ( - 72 ) * - + 17 col0, 30 * - - COUNT ( * )
----
1224
30

query I rowsort
SELECT ALL 18 * + 60 + 4
----
1084

onlyif mysql # aggregate syntax: 
query II rowsort label-1479
SELECT COUNT( * ) AS col0, 67 AS col1
----
1
67

skipif mysql # not compatible
query II rowsort label-1479
SELECT COUNT ( * ) AS col0, 67 AS col1
----
1
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT DISTINCT - 15 * - + 5 + - ( COUNT( * ) ) col2
----
74

skipif mysql # not compatible
query I rowsort label-1480
SELECT DISTINCT - 15 * - + 5 + - ( COUNT ( * ) ) col2
----
74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1481
SELECT COUNT( * ), 64 * SUM( CAST( NULL AS DECIMAL ) ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1481
SELECT COUNT ( * ), 64 * SUM ( CAST ( NULL AS REAL ) ) AS col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1482
SELECT COUNT( * ), - 25 * - 83 AS col0
----
1
2075

skipif mysql # not compatible
query II rowsort label-1482
SELECT COUNT ( * ), - 25 * - 83 AS col0
----
1
2075

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1483
SELECT ALL - 92 + + COALESCE ( ( 6 ), - 73 * ( + - 61 ) * 63 + - + MIN( 78 ) ) * - COALESCE ( + 99, + + CAST( NULL AS SIGNED ) )
----
-686

skipif mysql # not compatible
query I rowsort label-1483
SELECT ALL - 92 + + COALESCE ( ( 6 ), - 73 * ( + - 61 ) * 63 + - + MIN ( 78 ) ) * - COALESCE ( + 99, + + CAST ( NULL AS INTEGER ) )
----
-686

onlyif mysql # DIV for integer division: 
query I rowsort label-1484
SELECT - 50 DIV - + 12
----
4

skipif mysql # not compatible
query I rowsort label-1484
SELECT - 50 / - + 12
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-1485
SELECT - 62 - 32 + 2 - - 41 DIV - 6
----
-98

skipif mysql # not compatible
query I rowsort label-1485
SELECT - 62 - 32 + 2 - - 41 / - 6
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1486
SELECT DISTINCT CAST( NULL AS SIGNED ), - 85 AS col1
----
NULL
-85

skipif mysql # not compatible
query II rowsort label-1486
SELECT DISTINCT CAST ( NULL AS INTEGER ), - 85 AS col1
----
NULL
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1487
SELECT ALL CAST( + - 72 AS SIGNED )
----
-72

skipif mysql # not compatible
query I rowsort label-1487
SELECT ALL CAST ( + - 72 AS INTEGER )
----
-72

query I rowsort
SELECT - CASE + + 73 WHEN 87 + 49 THEN + 20 END
----
NULL

query I rowsort
SELECT ALL - 1 * - + 24
----
24

query I rowsort
SELECT DISTINCT + 47 - 75
----
-28

query I rowsort
SELECT ALL - 92 * - 3
----
276

onlyif mysql # DIV for integer division: 
query I rowsort label-1492
SELECT DISTINCT - 20 DIV 27 * + ( + - 45 )
----
0

skipif mysql # not compatible
query I rowsort label-1492
SELECT DISTINCT - 20 / 27 * + ( + - 45 )
----
0

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

skipif mysql # not compatible
query I rowsort label-1493
SELECT ALL COUNT ( * ) - 88 AS col0
----
-87

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

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

query I rowsort
SELECT - 67 * - 78
----
5226

query I rowsort
SELECT ALL - 2 * - 80 * 56 AS col0
----
8960

query I rowsort
SELECT DISTINCT + 47 - - + 8 * - 59 * - + 75 AS col0
----
35447

query I rowsort
SELECT DISTINCT - 84 * - 24
----
2016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-1499
SELECT 28 col2, + 11 + + + NULLIF ( - 19, + 64 + + 58 + - + CAST( NULL AS DECIMAL ) + COALESCE ( + 30, + - 16, 20 DIV + - 0 * COUNT( * ) + + CAST( NULL AS SIGNED ), - CAST( + 77 AS SIGNED ) * 71 + + 99 + + - 60 + + 1 ) ) + - ( 79 ) * - 50 + - + 70 DIV SUM( + - 35 ) * 94 + + 85 AS col0
----
28
4215

skipif mysql # not compatible
query II rowsort label-1499
SELECT 28 col2, + 11 + + + NULLIF ( - 19, + 64 + + 58 + - + CAST ( NULL AS REAL ) + COALESCE ( + 30, + - 16, 20 / + - 0 * COUNT ( * ) + + CAST ( NULL AS INTEGER ), - CAST ( + 77 AS INTEGER ) * 71 + + 99 + + - 60 + + 1 ) ) + - ( 79 ) * - 50 + - + 70 / SUM ( + - 35 ) * 94 + + 85 AS col0
----
28
4215

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1500
SELECT 63 AS col1, + 94 DIV + + ( + - 36 ) * + COUNT( * ) + + + COUNT( DISTINCT + COALESCE ( + 25, - NULLIF ( 79, - 25 ) ) ) + - + COUNT( * ) + MAX( - 90 ) DIV - - MIN( + 7 ) + - 75 * - 57
----
63
4261

skipif mysql # not compatible
query II rowsort label-1500
SELECT 63 AS col1, + 94 / + + ( + - 36 ) * + COUNT ( * ) + + + COUNT ( DISTINCT + COALESCE ( + 25, - NULLIF ( 79, - 25 ) ) ) + - + COUNT ( * ) + MAX ( - 90 ) / - - MIN ( + 7 ) + - 75 * - 57
----
63
4261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1501
SELECT - - COUNT( 41 ) DIV + ( + + CAST( - 66 AS SIGNED ) ) + - - 61
----
61

skipif mysql # not compatible
query I rowsort label-1501
SELECT - - COUNT ( 41 ) / + ( + + CAST ( - 66 AS INTEGER ) ) + - - 61
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1502
SELECT + CASE - ( COUNT( * ) ) WHEN - 77 THEN NULLIF ( 90, - 39 ) + - 7 ELSE NULL END + - 89 / + ( + - 37 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1502
SELECT + CASE - ( COUNT ( * ) ) WHEN - 77 THEN NULLIF ( 90, - 39 ) + - 7 ELSE NULL END + - 89 / + ( + - 37 ) AS col0
----
NULL

query I rowsort
SELECT ( 21 ) * 36 AS col2
----
756

query II rowsort
SELECT 26 * 83 + - - 17, 23 AS col0
----
2175
23

query I rowsort
SELECT + 73 - + 4
----
69

query II rowsort
SELECT DISTINCT - 96 AS col0, - 81 + + 91
----
-96
10

query II rowsort
SELECT ALL - - 82, + NULLIF ( 28, - 91 ) AS col2
----
82
28

query I rowsort
SELECT ALL - 24 * - + 42 + + 18 * + 19
----
1350

query II rowsort
SELECT DISTINCT - + 5, - ( - 70 ) AS col1
----
-5
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1510
SELECT DISTINCT - + CAST( 54 AS SIGNED )
----
-54

skipif mysql # not compatible
query I rowsort label-1510
SELECT DISTINCT - + CAST ( 54 AS INTEGER )
----
-54

query II rowsort
SELECT 64, 92 - 22 col1
----
64
70

query I rowsort
SELECT + 62 * - 40 AS col0
----
-2480

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1513
SELECT + CASE + + 15 WHEN + - 17 - - 97 * + 45 + 13 + 64 THEN + 54 ELSE NULL END AS col1, 12 - - - COUNT( * ) DIV - 39 + - 99 DIV - + 59 AS col2
----
NULL
13

skipif mysql # not compatible
query II rowsort label-1513
SELECT + CASE + + 15 WHEN + - 17 - - 97 * + 45 + 13 + 64 THEN + 54 ELSE NULL END AS col1, 12 - - - COUNT ( * ) / - 39 + - 99 / - + 59 AS col2
----
NULL
13

query I rowsort
SELECT DISTINCT + 86 * + 4 AS col2
----
344

query I rowsort
SELECT ALL 12 + 97 AS col2
----
109

onlyif mysql # DIV for integer division: 
query I rowsort label-1516
SELECT ALL - 5 DIV - 70 * - 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1516
SELECT ALL - 5 / - 70 * - 87 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT DISTINCT - NULLIF ( COUNT( * ), 56 )
----
-1

skipif mysql # not compatible
query I rowsort label-1517
SELECT DISTINCT - NULLIF ( COUNT ( * ), 56 )
----
-1

query I rowsort
SELECT ALL - 96 + 1 * 71 AS col0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1519
SELECT + CAST( + 15 AS SIGNED ) * - - 70 * + + 86 + 25 AS col0
----
90325

skipif mysql # not compatible
query I rowsort label-1519
SELECT + CAST ( + 15 AS INTEGER ) * - - 70 * + + 86 + 25 AS col0
----
90325

onlyif mysql # aggregate syntax: 
query I rowsort label-1520
SELECT ALL 80 + - COUNT( * ) * - 14 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-1520
SELECT ALL 80 + - COUNT ( * ) * - 14 AS col1
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1521
SELECT COUNT( * ) + - 85 * + - 27 + + + CAST( NULL AS SIGNED ), COUNT( * ) + - 43 + 76 * 94 AS col0
----
NULL
7102

skipif mysql # not compatible
query II rowsort label-1521
SELECT COUNT ( * ) + - 85 * + - 27 + + + CAST ( NULL AS INTEGER ), COUNT ( * ) + - 43 + 76 * 94 AS col0
----
NULL
7102

query I rowsort
SELECT DISTINCT - 87 * + 7 * 27 AS col1
----
-16443

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1524
SELECT 94 - 13 AS col2, AVG ( 43 ) - AVG ( DISTINCT + + 47 ) + CAST( NULL AS SIGNED ) * + 46 + - 99 + + + 69 + ( + - 54 ) + - 27 / + + COUNT( * ) AS col1
----
81
NULL

skipif mysql # not compatible
query II rowsort label-1524
SELECT 94 - 13 AS col2, AVG ( 43 ) - AVG ( DISTINCT + + 47 ) + CAST ( NULL AS INTEGER ) * + 46 + - 99 + + + 69 + ( + - 54 ) + - 27 / + + COUNT ( * ) AS col1
----
81
NULL

query I rowsort
SELECT 98 * 97
----
9506

query I rowsort
SELECT + 13 * + 27 + - 13 AS col1
----
338

query I rowsort
SELECT 4 - 17 AS col1
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1528
SELECT ALL + 61 - + + 62 AS col2, 70 * + CAST( NULL AS SIGNED ) * - CAST( + - 21 AS SIGNED ) AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1528
SELECT ALL + 61 - + + 62 AS col2, 70 * + CAST ( NULL AS INTEGER ) * - CAST ( + - 21 AS INTEGER ) AS col1
----
-1
NULL

query I rowsort
SELECT 78 + + - 96 + - - 62 + - 62 * - 36 AS col2
----
2276

query I rowsort
SELECT DISTINCT - 16 * 25
----
-400

query I rowsort
SELECT 10 * - - 65 AS col1
----
650

query I rowsort
SELECT 13 + - + NULLIF ( + - 33, - 31 * 26 ) AS col0
----
46

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

query I rowsort
SELECT DISTINCT - + 27 * + - 69 AS col0
----
1863

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT ALL COUNT( - 79 )
----
1

skipif mysql # not compatible
query I rowsort label-1535
SELECT ALL COUNT ( - 79 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1536
SELECT ALL - ( - 50 ) DIV - 34 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1536
SELECT ALL - ( - 50 ) / - 34 AS col1
----
-1

query I rowsort
SELECT ALL ( - + 6 ) + + + 32
----
26

query I rowsort
SELECT 59 + + CASE 43 WHEN - + 41 THEN + - 21 WHEN + + ( - 0 ) * 74 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + - 85 * + 42
----
-3570

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

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

query I rowsort
SELECT ALL + - 60 + + + 29 AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT ALL COUNT( * ) + + 46 - + + 15 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-1542
SELECT ALL COUNT ( * ) + + 46 - + + 15 AS col1
----
32

query I rowsort
SELECT 28 + - 8
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-1544
SELECT DISTINCT - COUNT( * ) + 17 AS col0, 45 AS col0
----
16
45

skipif mysql # not compatible
query II rowsort label-1544
SELECT DISTINCT - COUNT ( * ) + 17 AS col0, 45 AS col0
----
16
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1545
SELECT ALL + + 18 + + 0 + 61 * - COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-1545
SELECT ALL + + 18 + + 0 + 61 * - COUNT ( * )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT COUNT( * ) + + 62 * 12
----
745

skipif mysql # not compatible
query I rowsort label-1546
SELECT COUNT ( * ) + + 62 * 12
----
745

query I rowsort
SELECT DISTINCT + 65 + 52
----
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1548
SELECT 69 + + + COUNT( * ) - ( + - 35 ) * - - 84 * + COUNT( * ) * - - 94 DIV + COUNT( * ) col0, 35 AS col2
----
276430
35

skipif mysql # not compatible
query II rowsort label-1548
SELECT 69 + + + COUNT ( * ) - ( + - 35 ) * - - 84 * + COUNT ( * ) * - - 94 / + COUNT ( * ) col0, 35 AS col2
----
276430
35

query II rowsort
SELECT ALL - 8, + 5 AS col1
----
-8
5

query I rowsort
SELECT 53 * 7 AS col2
----
371

query I rowsort
SELECT ALL 33 * - 77 * + 44
----
-111804

query II rowsort
SELECT DISTINCT 91 - + 74 * + ( + ( - - 9 ) ) col2, 69 * + 26 AS col1
----
-575
1794

query I rowsort
SELECT 4 + + - COALESCE ( - 20, - + NULLIF ( - - 36, - 57 ) * - - 64 * - 76, - 23 )
----
24

query II rowsort
SELECT ALL 26 - + - 95 + - 28 AS col0, 11 AS col0
----
93
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1555
SELECT COUNT( + 88 ) * - + ( 16 ) + + COUNT( * ) DIV - 33
----
-16

skipif mysql # not compatible
query I rowsort label-1555
SELECT COUNT ( + 88 ) * - + ( 16 ) + + COUNT ( * ) / - 33
----
-16

query I rowsort
SELECT ALL 97 * - 99
----
-9603

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1557
SELECT 88, - COUNT( * ) DIV + - 81 AS col1
----
88
0

skipif mysql # not compatible
query II rowsort label-1557
SELECT 88, - COUNT ( * ) / + - 81 AS col1
----
88
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1558
SELECT CASE - CAST( 97 AS SIGNED ) WHEN - 14 + 88 / - - 34 + + - 56 THEN + - 75 WHEN 34 THEN + + 63 END / + - NULLIF ( COUNT( * ), + 16 * 65 * 14 + 5 / NULLIF ( 88, 90 ) + + 39 ) AS col0, - 96 AS col2
----
NULL
-96

skipif mysql # not compatible
query II rowsort label-1558
SELECT CASE - CAST ( 97 AS INTEGER ) WHEN - 14 + 88 / - - 34 + + - 56 THEN + - 75 WHEN 34 THEN + + 63 END / + - NULLIF ( COUNT ( * ), + 16 * 65 * 14 + 5 / NULLIF ( 88, 90 ) + + 39 ) AS col0, - 96 AS col2
----
NULL
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1559
SELECT DISTINCT MIN( 52 ) DIV COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-1559
SELECT DISTINCT MIN ( 52 ) / COUNT ( * )
----
52

query I rowsort
SELECT - 13 * - 49
----
637

query I rowsort
SELECT ALL + 30 * + - 97 AS col0
----
-2910

query II rowsort
SELECT - 14 col1, 67
----
-14
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1563
SELECT ALL + COUNT( * ) + + 88 col1
----
89

skipif mysql # not compatible
query I rowsort label-1563
SELECT ALL + COUNT ( * ) + + 88 col1
----
89

query I rowsort
SELECT DISTINCT + 82 + 97
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT ALL - 24 + - COUNT( * ) * - 17
----
-7

skipif mysql # not compatible
query I rowsort label-1565
SELECT ALL - 24 + - COUNT ( * ) * - 17
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1566
SELECT DISTINCT + + CASE ( - COUNT( * ) ) WHEN - 44 + MIN( - 1 ) THEN - - 17 END + - - 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1566
SELECT DISTINCT + + CASE ( - COUNT ( * ) ) WHEN - 44 + MIN ( - 1 ) THEN - - 17 END + - - 65 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 21 + + 43 AS col2
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1568
SELECT ALL + - 57 + - - COUNT( * ) + 44, 81 DIV 19 * + + 43 * 15 * - 82 AS col0
----
-12
-211560

skipif mysql # not compatible
query II rowsort label-1568
SELECT ALL + - 57 + - - COUNT ( * ) + 44, 81 / 19 * + + 43 * 15 * - 82 AS col0
----
-12
-211560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1569
SELECT - + MAX( + 41 ) DIV - ( 86 ) + - MAX( DISTINCT - 12 ) AS col1, CAST( + ( 50 ) AS SIGNED )
----
12
50

skipif mysql # not compatible
query II rowsort label-1569
SELECT - + MAX ( + 41 ) / - ( 86 ) + - MAX ( DISTINCT - 12 ) AS col1, CAST ( + ( 50 ) AS INTEGER )
----
12
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT - 88 + 41 * - 13 * MIN( DISTINCT 84 )
----
-44860

skipif mysql # not compatible
query I rowsort label-1570
SELECT - 88 + 41 * - 13 * MIN ( DISTINCT 84 )
----
-44860

onlyif mysql # aggregate syntax: 
query II rowsort label-1571
SELECT ALL + + MIN( - 56 ) * - + 72 * - ( + 62 ), + 94 AS col0
----
-249984
94

skipif mysql # not compatible
query II rowsort label-1571
SELECT ALL + + MIN ( - 56 ) * - + 72 * - ( + 62 ), + 94 AS col0
----
-249984
94

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

skipif mysql # not compatible
query I rowsort label-1572
SELECT DISTINCT + ( + COUNT ( * ) ) / - + 89 * + 23 AS col1
----
0

query II rowsort
SELECT ALL + 33 AS col2, 95
----
33
95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT - 63 + - 9 * + COUNT( * ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-1575
SELECT - 63 + - 9 * + COUNT ( * ) AS col1
----
-72

query I rowsort
SELECT NULLIF ( 33, 90 ) AS col0
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-1577
SELECT ALL + COUNT( * ), 53 - + + COUNT( ALL - 25 ) AS col2
----
1
52

skipif mysql # not compatible
query II rowsort label-1577
SELECT ALL + COUNT ( * ), 53 - + + COUNT ( ALL - 25 ) AS col2
----
1
52

query II rowsort
SELECT ALL + 49, + 9 * - 8 AS col0
----
49
-72

query I rowsort
SELECT - 9 - - + 27 + - 20 AS col2
----
-2

query I rowsort
SELECT + COALESCE ( + + 37, 2 ) AS col2
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1581
SELECT ALL + 33, COUNT( * ) DIV + - 67 AS col0
----
33
0

skipif mysql # not compatible
query II rowsort label-1581
SELECT ALL + 33, COUNT ( * ) / + - 67 AS col0
----
33
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1582
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) AS col1, - ( 93 ) * + 2 AS col2
----
1
-186

skipif mysql # not compatible
query II rowsort label-1582
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) AS col1, - ( 93 ) * + 2 AS col2
----
1
-186

query I rowsort
SELECT + 37 * - 45 * 46
----
-76590

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1584
SELECT - COUNT( * ) AS col0, CASE ( + 59 ) WHEN + - 7 THEN NULL ELSE 74 DIV + COUNT( * ) END
----
-1
74

skipif mysql # not compatible
query II rowsort label-1584
SELECT - COUNT ( * ) AS col0, CASE ( + 59 ) WHEN + - 7 THEN NULL ELSE 74 / + COUNT ( * ) END
----
-1
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT + 25 + - NULLIF ( 53, + 85 ) - - + 52 * - COUNT( * ) * - 42
----
2156

skipif mysql # not compatible
query I rowsort label-1585
SELECT + 25 + - NULLIF ( 53, + 85 ) - - + 52 * - COUNT ( * ) * - 42
----
2156

query I rowsort
SELECT + 31 - + 99
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1587
SELECT ALL 22 AS col2, + 12 DIV - 49 * - 40 DIV + + COUNT( * ) AS col1
----
22
0

skipif mysql # not compatible
query II rowsort label-1587
SELECT ALL 22 AS col2, + 12 / - 49 * - 40 / + + COUNT ( * ) AS col1
----
22
0

query II rowsort
SELECT ALL 73 AS col1, 86 AS col0
----
73
86

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

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

query I rowsort
SELECT ALL + 71 + - NULLIF ( - 19, - 13 ) - + 4 * - - 7 + + 28
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1591
SELECT DISTINCT ( 18 ) + - + COUNT( * ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-1591
SELECT DISTINCT ( 18 ) + - + COUNT ( * ) AS col0
----
17

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1593
SELECT + 79 + + + 6 + + 64 DIV - 66
----
85

skipif mysql # not compatible
query I rowsort label-1593
SELECT + 79 + + + 6 + + 64 / - 66
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT ALL 23 + + COUNT( DISTINCT 47 )
----
24

skipif mysql # not compatible
query I rowsort label-1594
SELECT ALL 23 + + COUNT ( DISTINCT 47 )
----
24

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

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

query I rowsort
SELECT ALL + 36 * - 57 * - 18
----
36936

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

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

query II rowsort
SELECT 46 AS col1, 63 AS col0
----
46
63

query I rowsort
SELECT - + NULLIF ( 4, - - NULLIF ( 79, - 6 ) * + - 62 + 46 ) AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT + 20 + - 66 + COUNT( * ) + 23 + + - 31 * + 69 AS col2
----
-2161

skipif mysql # not compatible
query I rowsort label-1600
SELECT + 20 + - 66 + COUNT ( * ) + 23 + + - 31 * + 69 AS col2
----
-2161

query I rowsort
SELECT + - 87 * - ( + 68 )
----
5916

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT DISTINCT COALESCE ( - - 4, - 68 * + - 25 * COUNT( * ) + COALESCE ( - 25, - 64 + + - 84 + - 97 + 89 * 49 ) ) + 94 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-1602
SELECT DISTINCT COALESCE ( - - 4, - 68 * + - 25 * COUNT ( * ) + COALESCE ( - 25, - 64 + + - 84 + - 97 + 89 * 49 ) ) + 94 AS col2
----
98

query I rowsort
SELECT ALL + 1 * 16
----
16

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

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

query I rowsort
SELECT DISTINCT + - 55 * + 35 + + 68
----
-1857

onlyif mysql # aggregate syntax: 
query II rowsort label-1606
SELECT DISTINCT 83 AS col2, + SUM( + 19 ) + + 77 col1
----
83
96

skipif mysql # not compatible
query II rowsort label-1606
SELECT DISTINCT 83 AS col2, + SUM ( + 19 ) + + 77 col1
----
83
96

query I rowsort
SELECT ALL 78 * 50
----
3900

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT + 9 * + - SUM( ALL NULLIF ( 4, 3 ) ) + + 30 + 26
----
20

skipif mysql # not compatible
query I rowsort label-1609
SELECT + 9 * + - SUM ( ALL NULLIF ( 4, 3 ) ) + + 30 + 26
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1610
SELECT - 36 * - COALESCE ( - - 12, - 3 ) * ( - 28 ) + - CAST( + - 27 AS SIGNED )
----
-12069

skipif mysql # not compatible
query I rowsort label-1610
SELECT - 36 * - COALESCE ( - - 12, - 3 ) * ( - 28 ) + - CAST ( + - 27 AS INTEGER )
----
-12069

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT + COUNT( + + 46 ) * - + COUNT( DISTINCT + 5 ) * 11 + COALESCE ( + ( - 46 ), - + 92 )
----
-57

skipif mysql # not compatible
query I rowsort label-1611
SELECT + COUNT ( + + 46 ) * - + COUNT ( DISTINCT + 5 ) * 11 + COALESCE ( + ( - 46 ), - + 92 )
----
-57

query I rowsort
SELECT DISTINCT + COALESCE ( + 92, - 66, - 9 )
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1613
SELECT + 39 + - NULLIF ( + 67, - COALESCE ( + CAST( NULL AS SIGNED ), - - 1 * 57 + 88 ) ) - - COUNT( * ) * COUNT( * ) - 57
----
-84

skipif mysql # not compatible
query I rowsort label-1613
SELECT + 39 + - NULLIF ( + 67, - COALESCE ( + CAST ( NULL AS INTEGER ), - - 1 * 57 + 88 ) ) - - COUNT ( * ) * COUNT ( * ) - 57
----
-84

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1615
SELECT ALL + 74 DIV + + 35 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1615
SELECT ALL + 74 / + + 35 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT - ( - 87 ) * AVG ( - 61 ) * 13 / + 25 * - CASE - + COUNT( DISTINCT + + 30 ) WHEN - ( + 9 ) + - - 59 * - - 57 THEN - 77 + - - COUNT( * ) ELSE NULL END + - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1616
SELECT - ( - 87 ) * AVG ( - 61 ) * 13 / + 25 * - CASE - + COUNT ( DISTINCT + + 30 ) WHEN - ( + 9 ) + - - 59 * - - 57 THEN - 77 + - - COUNT ( * ) ELSE NULL END + - COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1617
SELECT ALL + COUNT( * ) * + 13 * + + 74
----
962

skipif mysql # not compatible
query I rowsort label-1617
SELECT ALL + COUNT ( * ) * + 13 * + + 74
----
962

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1618
SELECT - CAST( + 85 AS SIGNED ) / - - CASE - MAX( 45 ) WHEN - 13 - - 9 + + 12 + - 24 * - 13 * COUNT( + 39 ) / 40 / - NULLIF ( - 37, + 4 ) - - 73 + - ( + 38 ) THEN NULL WHEN CASE - 49 WHEN CASE - - 95 WHEN 6 + - - COUNT( * ) + - 62 * - COUNT( * ) THEN NULL WHEN - 41 THEN NULL WHEN + 36 + + + MIN( + 15 ) + + 8 THEN - 11 END * 21 THEN - 36 / 10 / + 81 * 2 / 56 * - + 73 WHEN 96 THEN NULL END / + 32 * - COUNT( * ) - 95 THEN 66 / MAX( DISTINCT 31 ) + + 21 END - + 65 * + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-1618
SELECT - CAST ( + 85 AS INTEGER ) / - - CASE - MAX ( 45 ) WHEN - 13 - - 9 + + 12 + - 24 * - 13 * COUNT ( + 39 ) / 40 / - NULLIF ( - 37, + 4 ) - - 73 + - ( + 38 ) THEN NULL WHEN CASE - 49 WHEN CASE - - 95 WHEN 6 + - - COUNT ( * ) + - 62 * - COUNT ( * ) THEN NULL WHEN - 41 THEN NULL WHEN + 36 + + + MIN ( + 15 ) + + 8 THEN - 11 END * 21 THEN - 36 / 10 / + 81 * 2 / 56 * - + 73 WHEN 96 THEN NULL END / + 32 * - COUNT ( * ) - 95 THEN 66 / MAX ( DISTINCT 31 ) + + 21 END - + 65 * + 24
----
NULL

query I rowsort
SELECT ALL + 74 * 60
----
4440

query I rowsort
SELECT DISTINCT - 57 * - ( + 81 )
----
4617

query I rowsort
SELECT 13 * - 36
----
-468

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1623
SELECT ALL - ( 44 ) DIV + + 5 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-1623
SELECT ALL - ( 44 ) / + + 5 AS col2
----
-8

onlyif mysql # DIV for integer division: 
query II rowsort label-1624
SELECT 3 DIV 90, - 57 AS col1
----
0
-57

skipif mysql # not compatible
query II rowsort label-1624
SELECT 3 / 90, - 57 AS col1
----
0
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-1625
SELECT 13 * - + 48 AS col0, COUNT( * ) AS col2
----
-624
1

skipif mysql # not compatible
query II rowsort label-1625
SELECT 13 * - + 48 AS col0, COUNT ( * ) AS col2
----
-624
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT ALL ( + 77 ) + MAX( ALL COALESCE ( + - 67, ( 8 ) ) ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-1626
SELECT ALL ( + 77 ) + MAX ( ALL COALESCE ( + - 67, ( 8 ) ) ) AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1627
SELECT DISTINCT + 24 + 72 - COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-1627
SELECT DISTINCT + 24 + 72 - COUNT ( * )
----
95

query I rowsort
SELECT DISTINCT - 54 + - 5 col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1629
SELECT ( + 4 ) - + MAX( 18 )
----
-14

skipif mysql # not compatible
query I rowsort label-1629
SELECT ( + 4 ) - + MAX ( 18 )
----
-14

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

skipif mysql # not compatible
query I rowsort label-1630
SELECT + 57 - ( COUNT ( * ) ) * + 22 * 46 AS col0
----
-955

onlyif mysql # aggregate syntax: 
query II rowsort label-1631
SELECT NULLIF ( - + 27, + + 35 + COUNT( * ) * + + ( + 68 ) ) * COUNT( * ) * - 15 * 97 * 92 AS col0, COUNT( * ) * 76
----
3614220
76

skipif mysql # not compatible
query II rowsort label-1631
SELECT NULLIF ( - + 27, + + 35 + COUNT ( * ) * + + ( + 68 ) ) * COUNT ( * ) * - 15 * 97 * 92 AS col0, COUNT ( * ) * 76
----
3614220
76

query I rowsort
SELECT ALL 96 * - 68 + - 98 AS col1
----
-6626

query I rowsort
SELECT ALL + ( - - ( - NULLIF ( - - ( + 86 ), - + 64 ) ) )
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1634
SELECT CAST( NULL AS SIGNED ) + 83 * + 95 * AVG ( + 50 ), ( - + 61 ) + 39 - - 68 + CASE - MAX( - CAST( + - 30 AS DECIMAL ) ) WHEN - 59 + - 5 THEN AVG ( ( 5 ) ) ELSE NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1634
SELECT CAST ( NULL AS INTEGER ) + 83 * + 95 * AVG ( + 50 ), ( - + 61 ) + 39 - - 68 + CASE - MAX ( - CAST ( + - 30 AS REAL ) ) WHEN - 59 + - 5 THEN AVG ( ( 5 ) ) ELSE NULL END
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1635
SELECT ALL + - 86 - + + COUNT( * ) + + ( - 77 ) - 29 AS col0, 25 * + 88 + - - 73
----
-193
2273

skipif mysql # not compatible
query II rowsort label-1635
SELECT ALL + - 86 - + + COUNT ( * ) + + ( - 77 ) - 29 AS col0, 25 * + 88 + - - 73
----
-193
2273

onlyif mysql # aggregate syntax: 
query I rowsort label-1636
SELECT DISTINCT - COUNT( * ) * - ( + 68 ) + - CASE 41 WHEN 35 THEN 84 * - - ( - + 61 ) + - 62 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1636
SELECT DISTINCT - COUNT ( * ) * - ( + 68 ) + - CASE 41 WHEN 35 THEN 84 * - - ( - + 61 ) + - 62 ELSE NULL END
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1638
SELECT ALL 23 - 37 DIV + 80 + + - 16 + - 47 * 39 AS col0
----
-1826

skipif mysql # not compatible
query I rowsort label-1638
SELECT ALL 23 - 37 / + 80 + + - 16 + - 47 * 39 AS col0
----
-1826

query II rowsort
SELECT DISTINCT - ( + - 14 ), - COALESCE ( + + 79, + 55, + 44 ) * - - 4 * + CASE - 35 WHEN + 77 THEN + - 8 WHEN - + 90 THEN NULL END AS col0
----
14
NULL

query II rowsort
SELECT 6 * 18 AS col1, - 16
----
108
-16

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

skipif mysql # not compatible
query I rowsort label-1641
SELECT + COUNT ( * ) / 14 + + 12
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT + MIN( 80 ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-1642
SELECT + MIN ( 80 ) AS col1
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-1643
SELECT + 56 DIV - ( - 64 )
----
0

skipif mysql # not compatible
query I rowsort label-1643
SELECT + 56 / - ( - 64 )
----
0

query I rowsort
SELECT ALL 10 * + 96 AS col0
----
960

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

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

query I rowsort
SELECT DISTINCT 39 * + - 15
----
-585

onlyif mysql # aggregate syntax: 
query I rowsort label-1647
SELECT ALL + 70 * + MIN( ALL + 57 ) * 45 AS col1
----
179550

skipif mysql # not compatible
query I rowsort label-1647
SELECT ALL + 70 * + MIN ( ALL + 57 ) * 45 AS col1
----
179550

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT DISTINCT - CASE + - 81 WHEN 32 + + 15 THEN + - 11 + + - NULLIF ( 82, 11 ) - 5 WHEN - 82 * - 50 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1648
SELECT DISTINCT - CASE + - 81 WHEN 32 + + 15 THEN + - 11 + + - NULLIF ( 82, 11 ) - 5 WHEN - 82 * - 50 THEN + COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1649
SELECT ( - 34 ) * - - 59 * - + 89 * - 83 * CAST( NULL AS SIGNED ) - + ( - - 39 ), 78 + ( - + 16 ) col1
----
NULL
62

skipif mysql # not compatible
query II rowsort label-1649
SELECT ( - 34 ) * - - 59 * - + 89 * - 83 * CAST ( NULL AS INTEGER ) - + ( - - 39 ), 78 + ( - + 16 ) col1
----
NULL
62

query I rowsort
SELECT 4 * - 58 AS col2
----
-232

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT ALL SUM( ALL 62 ) + - 53 * - 45 AS col1
----
2447

skipif mysql # not compatible
query I rowsort label-1651
SELECT ALL SUM ( ALL 62 ) + - 53 * - 45 AS col1
----
2447

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1652
SELECT 12 AS col1, + 90 * - CAST( + AVG ( - 66 ) AS SIGNED )
----
12
5940

skipif mysql # not compatible
query II rowsort label-1652
SELECT 12 AS col1, + 90 * - CAST ( + AVG ( - 66 ) AS INTEGER )
----
12
5940

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT + COUNT( * ) * + + 73 * ( 92 ) + - - 31
----
6747

skipif mysql # not compatible
query I rowsort label-1653
SELECT + COUNT ( * ) * + + 73 * ( 92 ) + - - 31
----
6747

onlyif mysql # aggregate syntax: 
query I rowsort label-1654
SELECT DISTINCT - SUM( ALL 6 ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-1654
SELECT DISTINCT - SUM ( ALL 6 ) AS col2
----
-6

query I rowsort
SELECT ALL - 43 + - - 42
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1656
SELECT 7 * 19 + + + CAST( + 2 AS SIGNED )
----
135

skipif mysql # not compatible
query I rowsort label-1656
SELECT 7 * 19 + + + CAST ( + 2 AS INTEGER )
----
135

query I rowsort
SELECT 29 * - 27 AS col0
----
-783

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1661
SELECT 19 - - 98 DIV + - 16 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-1661
SELECT 19 - - 98 / + - 16 AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1662
SELECT DISTINCT - 99 * + + 8 * + COUNT( * ) AS col1
----
-792

skipif mysql # not compatible
query I rowsort label-1662
SELECT DISTINCT - 99 * + + 8 * + COUNT ( * ) AS col1
----
-792

query I rowsort
SELECT DISTINCT - 26 + + 42 AS col2
----
16

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

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

skipif mysql # not compatible
query I rowsort label-1665
SELECT - COUNT ( * ) + + 48 + 56 / - + 72
----
47

query II rowsort
SELECT 82, 80 * 0 AS col2
----
82
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1667
SELECT - 50, - COUNT( * ) + + 42 col0
----
-50
41

skipif mysql # not compatible
query II rowsort label-1667
SELECT - 50, - COUNT ( * ) + + 42 col0
----
-50
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1668
SELECT 72 - + 1 + + MAX( - + 90 ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-1668
SELECT 72 - + 1 + + MAX ( - + 90 ) AS col0
----
-19

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1669
SELECT ALL + + CAST( NULL AS DECIMAL ) - - + ( - COUNT( * ) ) + + - 95 / + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1669
SELECT ALL + + CAST ( NULL AS REAL ) - - + ( - COUNT ( * ) ) + + - 95 / + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT 21 * - + 98 - - + ( - ( + ( - - 28 ) ) ) * - 35
----
-1078

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1671
SELECT ALL - 10 DIV + - SUM( - 71 )
----
0

skipif mysql # not compatible
query I rowsort label-1671
SELECT ALL - 10 / + - SUM ( - 71 )
----
0

query I rowsort
SELECT 51 + 61
----
112

query II rowsort
SELECT DISTINCT 67, - 93 AS col0
----
67
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1674
SELECT DISTINCT - - CAST( + - 42 AS SIGNED ) * + 57 * - 90 AS col0
----
215460

skipif mysql # not compatible
query I rowsort label-1674
SELECT DISTINCT - - CAST ( + - 42 AS INTEGER ) * + 57 * - 90 AS col0
----
215460

query I rowsort
SELECT ALL 97 * - COALESCE ( 58, + 69, + 6, - 95 ) * + 46 AS col2
----
-258796

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

skipif mysql # not compatible
query I rowsort label-1676
SELECT - MIN ( DISTINCT 34 )
----
-34

query I rowsort
SELECT 0 * - + 65 AS col2
----
0

query I rowsort
SELECT ALL - 74 * - 88 * + - 49 AS col2
----
-319088

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT DISTINCT 43 * 81 + + ( + 17 ) * + - COALESCE ( + 89, - - 29 + 38 + + - 46 * + 97 + + COUNT( * ) )
----
1970

skipif mysql # not compatible
query I rowsort label-1679
SELECT DISTINCT 43 * 81 + + ( + 17 ) * + - COALESCE ( + 89, - - 29 + 38 + + - 46 * + 97 + + COUNT ( * ) )
----
1970

query I rowsort
SELECT 75 * - NULLIF ( 94, 17 ) + + 91
----
-6959

query I rowsort
SELECT + 38 * + 59
----
2242

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT ALL - 76 * - ( - COUNT( * ) ) * - - ( + + ( - + NULLIF ( - COUNT( * ), + 3 ) ) ) + + ( + + 31 ) + - - 80 * + 41 + - 47 col0
----
3188

skipif mysql # not compatible
query I rowsort label-1682
SELECT ALL - 76 * - ( - COUNT ( * ) ) * - - ( + + ( - + NULLIF ( - COUNT ( * ), + 3 ) ) ) + + ( + + 31 ) + - - 80 * + 41 + - 47 col0
----
3188

onlyif mysql # DIV for integer division: 
query I rowsort label-1683
SELECT - 54 DIV - + 91 + - 61
----
-61

skipif mysql # not compatible
query I rowsort label-1683
SELECT - 54 / - + 91 + - 61
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1684
SELECT CASE - + COUNT( * ) WHEN + + 9 + + 90 THEN + 79 + + 94 WHEN - - NULLIF ( - 95, 36 ) / - 25 THEN CASE + - COUNT( * ) WHEN 70 * 45 + + COUNT( * ) THEN NULL ELSE + ( 43 ) + COUNT( * ) + 80 + 14 - + COUNT( * ) + + ( + + COUNT( * ) ) * MIN( ALL 55 ) + + CASE + + 40 WHEN + + 54 / + - 63 / 24 * + 74 THEN NULL ELSE + CAST( NULL AS SIGNED ) END END WHEN + - 15 THEN MAX( - - 68 ) * 54 * + 21 + - - 33 + - CAST( NULL AS DECIMAL ) + 88 + + + 55 * + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1684
SELECT CASE - + COUNT ( * ) WHEN + + 9 + + 90 THEN + 79 + + 94 WHEN - - NULLIF ( - 95, 36 ) / - 25 THEN CASE + - COUNT ( * ) WHEN 70 * 45 + + COUNT ( * ) THEN NULL ELSE + ( 43 ) + COUNT ( * ) + 80 + 14 - + COUNT ( * ) + + ( + + COUNT ( * ) ) * MIN ( ALL 55 ) + + CASE + + 40 WHEN + + 54 / + - 63 / 24 * + 74 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END END WHEN + - 15 THEN MAX ( - - 68 ) * 54 * + 21 + - - 33 + - CAST ( NULL AS REAL ) + 88 + + + 55 * + COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1685
SELECT ALL - MAX( - ( - 61 ) ) * 68 + - + 22 DIV 59 * 64 + + 22 AS col2
----
-4126

skipif mysql # not compatible
query I rowsort label-1685
SELECT ALL - MAX ( - ( - 61 ) ) * 68 + - + 22 / 59 * 64 + + 22 AS col2
----
-4126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1686
SELECT ALL + 83 * COUNT( - CAST( NULL AS SIGNED ) ) + - MIN( + 36 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-1686
SELECT ALL + 83 * COUNT ( - CAST ( NULL AS INTEGER ) ) + - MIN ( + 36 ) AS col2
----
-36

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

skipif mysql # not compatible
query I rowsort label-1687
SELECT SUM ( + - 71 )
----
-71

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1689
SELECT DISTINCT + + MIN( - CASE - 29 WHEN 4 + + + 11 + - 68 THEN CAST( NULL AS SIGNED ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1689
SELECT DISTINCT + + MIN ( - CASE - 29 WHEN 4 + + + 11 + - 68 THEN CAST ( NULL AS INTEGER ) END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1690
SELECT - COUNT( * ) * 16, - ( + 40 ) * 44 col1
----
-16
-1760

skipif mysql # not compatible
query II rowsort label-1690
SELECT - COUNT ( * ) * 16, - ( + 40 ) * 44 col1
----
-16
-1760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1691
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * 52 + - 96 * ( + + 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1691
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * 52 + - 96 * ( + + 9 )
----
NULL

query I rowsort
SELECT - + 75 * - 98 * - 6 AS col1
----
-44100

query I rowsort
SELECT ALL - 64 * - 48 AS col0
----
3072

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

skipif mysql # not compatible
query I rowsort label-1694
SELECT ALL 45 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1695
SELECT - 2 * COUNT( * ) DIV - 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1695
SELECT - 2 * COUNT ( * ) / - 74 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1696
SELECT - 41 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1696
SELECT - 41 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT - COUNT( NULLIF ( - 52, - + 12 * + + 4 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1697
SELECT - COUNT ( NULLIF ( - 52, - + 12 * + + 4 ) )
----
-1

query II rowsort
SELECT - 68 + 57 AS col1, 61
----
-11
61

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1700
SELECT ALL - 68 + + ( + 59 ) + - CASE + 52 WHEN - CASE + COALESCE ( - - 7, - CAST( NULL AS SIGNED ) ) WHEN - CAST( + 95 AS SIGNED ) * - - 5 THEN + 49 WHEN 81 THEN NULL ELSE NULL END + - 26 THEN ( - + COUNT( - COALESCE ( + 84, + 97 ) ) ) * + COUNT( * ) - NULLIF ( + MIN( DISTINCT - ( - - NULLIF ( + - 11, + 98 * 74 ) ) ), + 35 ) + - 95 ELSE 68 END
----
-77

skipif mysql # not compatible
query I rowsort label-1700
SELECT ALL - 68 + + ( + 59 ) + - CASE + 52 WHEN - CASE + COALESCE ( - - 7, - CAST ( NULL AS INTEGER ) ) WHEN - CAST ( + 95 AS INTEGER ) * - - 5 THEN + 49 WHEN 81 THEN NULL ELSE NULL END + - 26 THEN ( - + COUNT ( - COALESCE ( + 84, + 97 ) ) ) * + COUNT ( * ) - NULLIF ( + MIN ( DISTINCT - ( - - NULLIF ( + - 11, + 98 * 74 ) ) ), + 35 ) + - 95 ELSE 68 END
----
-77

query I rowsort
SELECT ALL 80 + - 51 AS col2
----
29

query I rowsort
SELECT - 21 + 17 AS col1
----
-4

query II rowsort
SELECT - 37 AS col0, + 80
----
-37
80

query I rowsort
SELECT ALL - 43 + - + 2 * - 29
----
15

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1706
SELECT DISTINCT + 49 / 44 * + CAST( NULL AS SIGNED ) * + COALESCE ( + 93, COUNT( * ) + + 43 * + 64 ) * 19 + 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1706
SELECT DISTINCT + 49 / 44 * + CAST ( NULL AS INTEGER ) * + COALESCE ( + 93, COUNT ( * ) + + 43 * + 64 ) * 19 + 16 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1707
SELECT MIN( ALL - CAST( + + 44 AS SIGNED ) ) DIV + 57 - - 59
----
59

skipif mysql # not compatible
query I rowsort label-1707
SELECT MIN ( ALL - CAST ( + + 44 AS INTEGER ) ) / + 57 - - 59
----
59

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

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

query II rowsort
SELECT ALL + 93 AS col0, 0 + 6 AS col1
----
93
6

onlyif mysql # DIV for integer division: 
query I rowsort label-1710
SELECT + 72 DIV - 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1710
SELECT + 72 / - 90 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1711
SELECT DISTINCT + 38 DIV + + 69 * - - 81 - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1711
SELECT DISTINCT + 38 / + + 69 * - - 81 - + COUNT ( * )
----
-1

query I rowsort
SELECT - 19 * - + 38 AS col1
----
722

onlyif mysql # aggregate syntax: 
query I rowsort label-1713
SELECT ( - CASE - - 28 WHEN - COUNT( * ) + + COUNT( DISTINCT + + 0 ) + + - ( 62 ) THEN + - ( - MIN( ALL 71 ) ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1713
SELECT ( - CASE - - 28 WHEN - COUNT ( * ) + + COUNT ( DISTINCT + + 0 ) + + - ( 62 ) THEN + - ( - MIN ( ALL 71 ) ) END )
----
NULL

query I rowsort
SELECT - 62 * - 75 + 41 AS col2
----
4691

query I rowsort
SELECT 81 * - 14 + - + 31
----
-1165

onlyif mysql # DIV for integer division: 
query II rowsort label-1716
SELECT DISTINCT - 91 * + 73 + 14 DIV + 31 - + 71 * - 52 AS col2, 21
----
-2951
21

skipif mysql # not compatible
query II rowsort label-1716
SELECT DISTINCT - 91 * + 73 + 14 / + 31 - + 71 * - 52 AS col2, 21
----
-2951
21

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

skipif mysql # not compatible
query I rowsort label-1717
SELECT + + 54 + + - COUNT ( * ) / + 29 - - 49
----
103

query II rowsort
SELECT ALL + 1, 53 AS col2
----
1
53

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

skipif mysql # not compatible
query I rowsort label-1719
SELECT + COUNT ( * ) + 97 * + - ( 65 ) AS col2
----
-6304

query I rowsort
SELECT ALL 33 * - 51 AS col0
----
-1683

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1721
SELECT + + 2 + 64 * CAST( NULL AS SIGNED ) col1, + 39
----
NULL
39

skipif mysql # not compatible
query II rowsort label-1721
SELECT + + 2 + 64 * CAST ( NULL AS INTEGER ) col1, + 39
----
NULL
39

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1723
SELECT + - 27 + + 67 DIV 75 * - 56
----
-27

skipif mysql # not compatible
query I rowsort label-1723
SELECT + - 27 + + 67 / 75 * - 56
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1724
SELECT - 0 * - CAST( 26 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1724
SELECT - 0 * - CAST ( 26 AS INTEGER ) AS col1
----
0

query I rowsort
SELECT - + 47 - + 93
----
-140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1726
SELECT + CAST( NULL AS SIGNED ) * COALESCE ( 78, - + 4, - 76 ) + + - 86 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1726
SELECT + CAST ( NULL AS INTEGER ) * COALESCE ( 78, - + 4, - 76 ) + + - 86 col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT + + COUNT( * ) * + 49 + + ( + - 66 )
----
-17

skipif mysql # not compatible
query I rowsort label-1728
SELECT + + COUNT ( * ) * + 49 + + ( + - 66 )
----
-17

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1730
SELECT DISTINCT ( - 94 ) * - 96 - + COUNT( * ) + - 36 DIV - - 15
----
9021

skipif mysql # not compatible
query I rowsort label-1730
SELECT DISTINCT ( - 94 ) * - 96 - + COUNT ( * ) + - 36 / - - 15
----
9021

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT 7 + - 78 - MIN( DISTINCT + - ( + COALESCE ( + + 50, - + 14 * 83 ) ) ) * + - COUNT( * ) * 12 col2
----
-671

skipif mysql # not compatible
query I rowsort label-1731
SELECT 7 + - 78 - MIN ( DISTINCT + - ( + COALESCE ( + + 50, - + 14 * 83 ) ) ) * + - COUNT ( * ) * 12 col2
----
-671

query I rowsort
SELECT ALL + 11 * - 27 AS col1
----
-297

query I rowsort
SELECT ALL - 57 + + - 42 col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1734
SELECT MAX( + - 17 ) + + - 28
----
-45

skipif mysql # not compatible
query I rowsort label-1734
SELECT MAX ( + - 17 ) + + - 28
----
-45

query I rowsort
SELECT DISTINCT 50 * - + 63
----
-3150

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

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

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

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

query I rowsort
SELECT ALL + 94 + + 59 col2
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-1739
SELECT DISTINCT + 39 - 57 + - 96 DIV + 90 DIV - 1
----
-17

skipif mysql # not compatible
query I rowsort label-1739
SELECT DISTINCT + 39 - 57 + - 96 / + 90 / - 1
----
-17

query I rowsort
SELECT ALL - ( - - 2 ) * 31 AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1741
SELECT ALL - MAX( 96 ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-1741
SELECT ALL - MAX ( 96 ) AS col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT - 58 * + NULLIF ( 35, + 47 / - - 43 + - 45 - COUNT( ALL - 37 ) + - + 70 * - 91 / + 62 * - 51 ) + 19
----
-2011

skipif mysql # not compatible
query I rowsort label-1742
SELECT - 58 * + NULLIF ( 35, + 47 / - - 43 + - 45 - COUNT ( ALL - 37 ) + - + 70 * - 91 / + 62 * - 51 ) + 19
----
-2011

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1743
SELECT ALL + CAST( + - 98 AS SIGNED ) * - 81 * + ( - 24 ) - CASE + 14 WHEN 71 THEN + + 50 + - + 56 * 86 * + - 43 - 2 + - - 15 END, 73 AS col1
----
NULL
73

skipif mysql # not compatible
query II rowsort label-1743
SELECT ALL + CAST ( + - 98 AS INTEGER ) * - 81 * + ( - 24 ) - CASE + 14 WHEN 71 THEN + + 50 + - + 56 * 86 * + - 43 - 2 + - - 15 END, 73 AS col1
----
NULL
73

query II rowsort
SELECT 23 AS col1, 9
----
23
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT DISTINCT + 77 - COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-1745
SELECT DISTINCT + 77 - COUNT ( * )
----
76

query I rowsort
SELECT DISTINCT + 4 * - 25
----
-100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1747
SELECT DISTINCT - CAST( - 46 AS SIGNED ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-1747
SELECT DISTINCT - CAST ( - 46 AS INTEGER ) AS col2
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-1748
SELECT DISTINCT + 86 * 44 DIV - + 27
----
-140

skipif mysql # not compatible
query I rowsort label-1748
SELECT DISTINCT + 86 * 44 / - + 27
----
-140

onlyif mysql # aggregate syntax: 
query II rowsort label-1749
SELECT DISTINCT - 75 col2, - MAX( DISTINCT + 72 ) AS col2
----
-75
-72

skipif mysql # not compatible
query II rowsort label-1749
SELECT DISTINCT - 75 col2, - MAX ( DISTINCT + 72 ) AS col2
----
-75
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT ALL + 61 + + - 90 * - COALESCE ( - 93, - 21 ) + + - CASE - 0 WHEN - 43 * - 23 THEN COALESCE ( ( + - COUNT( * ) ), + COALESCE ( + CASE COUNT( - 11 ) WHEN 84 + - 79 * + COUNT( * ) THEN NULL WHEN + 83 THEN 30 + - 75 * + - ( 39 ) + 4 * + - SUM( DISTINCT + - 22 ) - NULLIF ( + 70, - - 22 * 73 ) ELSE NULL END, COUNT( * ), + NULLIF ( + 1, - - 94 + + - COUNT( * ) ) ) ) END * - + COUNT( ALL + 89 ) * COUNT( + 83 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1750
SELECT ALL + 61 + + - 90 * - COALESCE ( - 93, - 21 ) + + - CASE - 0 WHEN - 43 * - 23 THEN COALESCE ( ( + - COUNT ( * ) ), + COALESCE ( + CASE COUNT ( - 11 ) WHEN 84 + - 79 * + COUNT ( * ) THEN NULL WHEN + 83 THEN 30 + - 75 * + - ( 39 ) + 4 * + - SUM ( DISTINCT + - 22 ) - NULLIF ( + 70, - - 22 * 73 ) ELSE NULL END, COUNT ( * ), + NULLIF ( + 1, - - 94 + + - COUNT ( * ) ) ) ) END * - + COUNT ( ALL + 89 ) * COUNT ( + 83 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT - CASE + + 2 WHEN - 6 THEN + - 79 - + + 87 / + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1751
SELECT - CASE + + 2 WHEN - 6 THEN + - 79 - + + 87 / + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1752
SELECT + COUNT( ALL + - 91 ) DIV + ( NULLIF ( - - 96, + COALESCE ( - + 94, - SUM( - 38 ), NULLIF ( - - 60, - 83 ) ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-1752
SELECT + COUNT ( ALL + - 91 ) / + ( NULLIF ( - - 96, + COALESCE ( - + 94, - SUM ( - 38 ), NULLIF ( - - 60, - 83 ) ) ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1753
SELECT ALL 63 * - + COUNT( * ), 76 DIV - - CAST( 94 AS SIGNED ) + - 32 AS col1
----
-63
-32

skipif mysql # not compatible
query II rowsort label-1753
SELECT ALL 63 * - + COUNT ( * ), 76 / - - CAST ( 94 AS INTEGER ) + - 32 AS col1
----
-63
-32

query I rowsort
SELECT ALL + - 60 + 34 AS col1
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1755
SELECT DISTINCT - CAST( + CAST( - 77 AS SIGNED ) AS SIGNED ) + - 18 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-1755
SELECT DISTINCT - CAST ( + CAST ( - 77 AS INTEGER ) AS INTEGER ) + - 18 AS col0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1756
SELECT ALL 90 + + - CAST( - 12 AS SIGNED ) AS col2
----
102

skipif mysql # not compatible
query I rowsort label-1756
SELECT ALL 90 + + - CAST ( - 12 AS INTEGER ) AS col2
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1757
SELECT ALL NULLIF ( - 53, + 12 ) + + CAST( - 36 AS SIGNED )
----
-89

skipif mysql # not compatible
query I rowsort label-1757
SELECT ALL NULLIF ( - 53, + 12 ) + + CAST ( - 36 AS INTEGER )
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-1758
SELECT 93 col1, + ( + 71 ) * - - 19 + - COUNT( + + 49 ) AS col2
----
93
1348

skipif mysql # not compatible
query II rowsort label-1758
SELECT 93 col1, + ( + 71 ) * - - 19 + - COUNT ( + + 49 ) AS col2
----
93
1348

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

skipif mysql # not compatible
query I rowsort label-1759
SELECT ALL COUNT ( * ) + + 13 AS col2
----
14

query I rowsort
SELECT 97 + + + 66
----
163

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT ALL - NULLIF ( - - 21, + 50 ) - COUNT( * ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-1763
SELECT ALL - NULLIF ( - - 21, + 50 ) - COUNT ( * ) AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT COUNT( * ) - + COUNT( * ) + - 81 * + 59
----
-4779

skipif mysql # not compatible
query I rowsort label-1764
SELECT COUNT ( * ) - + COUNT ( * ) + - 81 * + 59
----
-4779

query I rowsort
SELECT ALL + 62 * 81
----
5022

onlyif mysql # aggregate syntax: 
query II rowsort label-1766
SELECT 32 - COUNT( * ) + + 73, - COUNT( * ) * 52 AS col0
----
104
-52

skipif mysql # not compatible
query II rowsort label-1766
SELECT 32 - COUNT ( * ) + + 73, - COUNT ( * ) * 52 AS col0
----
104
-52

query I rowsort
SELECT 3 * + 34 * NULLIF ( - 68, - AVG ( DISTINCT + 79 ) ) * 99 AS col0
----
-686664

query I rowsort
SELECT DISTINCT 55 * + - 63 * 74 AS col0
----
-256410

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT 22 + + - COUNT( * ) + + ( 94 )
----
115

skipif mysql # not compatible
query I rowsort label-1769
SELECT 22 + + - COUNT ( * ) + + ( 94 )
----
115

onlyif mysql # DIV for integer division: 
query I rowsort label-1770
SELECT 57 DIV 11
----
5

skipif mysql # not compatible
query I rowsort label-1770
SELECT 57 / 11
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1771
SELECT 28 * + CAST( - 44 AS SIGNED )
----
-1232

skipif mysql # not compatible
query I rowsort label-1771
SELECT 28 * + CAST ( - 44 AS INTEGER )
----
-1232

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT ALL CASE COUNT( * ) WHEN 99 THEN NULL WHEN 13 * - - COUNT( * ) THEN NULL ELSE - - 68 END * ( 64 )
----
4352

skipif mysql # not compatible
query I rowsort label-1772
SELECT ALL CASE COUNT ( * ) WHEN 99 THEN NULL WHEN 13 * - - COUNT ( * ) THEN NULL ELSE - - 68 END * ( 64 )
----
4352

onlyif mysql # DIV for integer division: 
query II rowsort label-1773
SELECT 47 DIV + 83, + 24 * - - 11 AS col2
----
0
264

skipif mysql # not compatible
query II rowsort label-1773
SELECT 47 / + 83, + 24 * - - 11 AS col2
----
0
264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1774
SELECT ALL - 18 DIV - + 40, - SUM( DISTINCT CAST( - 19 AS SIGNED ) ) * - + 52 AS col0
----
0
-988

skipif mysql # not compatible
query II rowsort label-1774
SELECT ALL - 18 / - + 40, - SUM ( DISTINCT CAST ( - 19 AS INTEGER ) ) * - + 52 AS col0
----
0
-988

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1775
SELECT ALL - + ( + - NULLIF ( 26, + 64 * 88 + - 97 + - - 50 * + - 19 / - - ( - CAST( + 43 AS SIGNED ) ) ) )
----
26

skipif mysql # not compatible
query I rowsort label-1775
SELECT ALL - + ( + - NULLIF ( 26, + 64 * 88 + - 97 + - - 50 * + - 19 / - - ( - CAST ( + 43 AS INTEGER ) ) ) )
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1776
SELECT + - CAST( + NULLIF ( - 44, + 95 * - 71 ) AS SIGNED )
----
44

skipif mysql # not compatible
query I rowsort label-1776
SELECT + - CAST ( + NULLIF ( - 44, + 95 * - 71 ) AS INTEGER )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT - 32 + + COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-1777
SELECT - 32 + + COUNT ( * )
----
-31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1778
SELECT - 81 + 75 + - - CAST( NULL AS DECIMAL ) * - 73 / - - 10 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1778
SELECT - 81 + 75 + - - CAST ( NULL AS REAL ) * - 73 / - - 10 col0
----
NULL

query I rowsort
SELECT + ( 85 ) * + 55
----
4675

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT - COUNT( ALL 89 ) - 57 + - 14
----
-72

skipif mysql # not compatible
query I rowsort label-1780
SELECT - COUNT ( ALL 89 ) - 57 + - 14
----
-72

query I rowsort
SELECT DISTINCT + 74 * + - 82
----
-6068

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1782
SELECT ALL - CAST( NULL AS SIGNED ) + - + NULLIF ( - - 85, 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1782
SELECT ALL - CAST ( NULL AS INTEGER ) + - + NULLIF ( - - 85, 71 )
----
NULL

query I rowsort
SELECT ALL + ( + 14 ) + - 51 + 43 col0
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-1784
SELECT - - 44 + + 89 AS col2, + 34 + - ( - ( - + COUNT( * ) ) ) AS col2
----
133
33

skipif mysql # not compatible
query II rowsort label-1784
SELECT - - 44 + + 89 AS col2, + 34 + - ( - ( - + COUNT ( * ) ) ) AS col2
----
133
33

query I rowsort
SELECT ALL - 80 * 17
----
-1360

query I rowsort
SELECT + - 95 + + 33 + 11
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-1787
SELECT + + COALESCE ( - + 56, + MAX( - 95 ) ) + - 84 + 61 * + 4 + - 40 * 59 * - - 41, 22 * + 91 AS col1
----
-96656
2002

skipif mysql # not compatible
query II rowsort label-1787
SELECT + + COALESCE ( - + 56, + MAX ( - 95 ) ) + - 84 + 61 * + 4 + - 40 * 59 * - - 41, 22 * + 91 AS col1
----
-96656
2002

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT - COUNT( * ) + CASE + 19 WHEN + - COUNT( * ) * - 99 + - 61 THEN + 89 * + 94 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1788
SELECT - COUNT ( * ) + CASE + 19 WHEN + - COUNT ( * ) * - 99 + - 61 THEN + 89 * + 94 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1789
SELECT ALL 63 DIV - NULLIF ( + 71, + 70 ) * - 95 * + - COUNT( * ) - + - 8 - - + COUNT( ALL 35 ) * COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-1789
SELECT ALL 63 / - NULLIF ( + 71, + 70 ) * - 95 * + - COUNT ( * ) - + - 8 - - + COUNT ( ALL 35 ) * COUNT ( * )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT ALL + MAX( + - 62 ) - + 25
----
-87

skipif mysql # not compatible
query I rowsort label-1790
SELECT ALL + MAX ( + - 62 ) - + 25
----
-87

query I rowsort
SELECT DISTINCT + 39 - - - 82 - - ( - 48 )
----
-91

query I rowsort
SELECT + 56 + + + 57 * + 85 col1
----
4901

query I rowsort
SELECT DISTINCT - 67 * + + 27 AS col1
----
-1809

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1794
SELECT + 32 + + - CAST( NULL AS SIGNED ) / + MAX( ALL ( 68 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1794
SELECT + 32 + + - CAST ( NULL AS INTEGER ) / + MAX ( ALL ( 68 ) )
----
NULL

query I rowsort
SELECT - 20 * - - 10 AS col1
----
-200

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

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

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

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

query I rowsort
SELECT + 14 + - - 96 * + 19 * + ( 53 )
----
96686

query I rowsort
SELECT + 90 * 5 col0
----
450

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1800
SELECT ALL 64 AS col1, 15 * 88 DIV + 18 + - + COUNT( * ) * + 49 AS col1
----
64
24

skipif mysql # not compatible
query II rowsort label-1800
SELECT ALL 64 AS col1, 15 * 88 / + 18 + - + COUNT ( * ) * + 49 AS col1
----
64
24

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1802
SELECT DISTINCT - 47 DIV + + 27 + + 13 DIV 79 + + - 44 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-1802
SELECT DISTINCT - 47 / + + 27 + + 13 / 79 + + - 44 AS col2
----
-45

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

query I rowsort
SELECT + - 42 * + - 27 + + + 88 AS col2
----
1222

query I rowsort
SELECT + 78 * - 99 AS col0
----
-7722

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

skipif mysql # not compatible
query I rowsort label-1806
SELECT + COALESCE ( + 1, - COUNT ( * ), - - 92 ) * + ( + 75 ) - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT ALL - - COUNT( * ) * + - 31 + COUNT( * ) col2
----
-30

skipif mysql # not compatible
query I rowsort label-1807
SELECT ALL - - COUNT ( * ) * + - 31 + COUNT ( * ) col2
----
-30

query I rowsort
SELECT ALL 66 * - 28 AS col2
----
-1848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1809
SELECT ALL - MAX( DISTINCT + + CAST( NULL AS SIGNED ) ) * - 45 / COUNT( * ) / - 70 + - 86 + + - 75 + + + COUNT( 81 ) + + - 84 + + ( - CASE + - 15 WHEN 72 THEN 19 END ) * - - AVG ( DISTINCT - - ( + 21 ) ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1809
SELECT ALL - MAX ( DISTINCT + + CAST ( NULL AS INTEGER ) ) * - 45 / COUNT ( * ) / - 70 + - 86 + + - 75 + + + COUNT ( 81 ) + + - 84 + + ( - CASE + - 15 WHEN 72 THEN 19 END ) * - - AVG ( DISTINCT - - ( + 21 ) ) + - COUNT ( * )
----
NULL

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

query I rowsort
SELECT - + 15 * - ( + 89 ) + - 38
----
1297

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT DISTINCT - 98 * - - NULLIF ( - COALESCE ( - 22, - 20 + + COUNT( - - 2 ) ), 17 + - 73 ) + + + 48 * - 1
----
-2204

skipif mysql # not compatible
query I rowsort label-1812
SELECT DISTINCT - 98 * - - NULLIF ( - COALESCE ( - 22, - 20 + + COUNT ( - - 2 ) ), 17 + - 73 ) + + + 48 * - 1
----
-2204

query I rowsort
SELECT ALL 93 * - + 93 + 18 * - 29 - + 57
----
-9228

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT + COALESCE ( + 1, SUM( DISTINCT - ( + 84 ) ) * - COALESCE ( - 90, 78 * 48 ) * + - 12 - + 1 )
----
1

skipif mysql # not compatible
query I rowsort label-1814
SELECT + COALESCE ( + 1, SUM ( DISTINCT - ( + 84 ) ) * - COALESCE ( - 90, 78 * 48 ) * + - 12 - + 1 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-1815
SELECT ALL + + 47, 0 DIV + MIN( - 27 ) col1, - - COUNT( - 14 ) AS col1
----
47
0
1

skipif mysql # not compatible
query III rowsort label-1815
SELECT ALL + + 47, 0 / + MIN ( - 27 ) col1, - - COUNT ( - 14 ) AS col1
----
47
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT + SUM( + CASE - + 2 WHEN + 71 THEN 67 ELSE - + 0 * - 52 END )
----
0

skipif mysql # not compatible
query I rowsort label-1816
SELECT + SUM ( + CASE - + 2 WHEN + 71 THEN 67 ELSE - + 0 * - 52 END )
----
0

query I rowsort
SELECT DISTINCT - 80 * + 59 AS col1
----
-4720

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT ALL + 56 * + 87 * NULLIF ( ( 52 ), + 2 ) - - ( 95 ) * + 74 * - COUNT( * ) AS col1
----
246314

skipif mysql # not compatible
query I rowsort label-1818
SELECT ALL + 56 * + 87 * NULLIF ( ( 52 ), + 2 ) - - ( 95 ) * + 74 * - COUNT ( * ) AS col1
----
246314

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1820
SELECT - CAST( NULL AS DECIMAL ) + COUNT( DISTINCT - ( 78 ) ) + - - CASE 58 WHEN - 29 * COUNT( * ) * + 53 * - - 49 THEN - CAST( + 73 AS SIGNED ) END - - COUNT( * ) * + + 40 * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1820
SELECT - CAST ( NULL AS REAL ) + COUNT ( DISTINCT - ( 78 ) ) + - - CASE 58 WHEN - 29 * COUNT ( * ) * + 53 * - - 49 THEN - CAST ( + 73 AS INTEGER ) END - - COUNT ( * ) * + + 40 * - - COUNT ( * )
----
NULL

query I rowsort
SELECT + 26 * - 11
----
-286

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1824
SELECT ALL + ( + - 69 ) DIV - 22
----
3

skipif mysql # not compatible
query I rowsort label-1824
SELECT ALL + ( + - 69 ) / - 22
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1825
SELECT - 73 + + + CAST( COUNT( * ) AS SIGNED ) * - COUNT( * ) * - ( - - 62 ) + - 92 + + 59 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-1825
SELECT - 73 + + + CAST ( COUNT ( * ) AS INTEGER ) * - COUNT ( * ) * - ( - - 62 ) + - 92 + + 59 AS col0
----
-44

query I rowsort
SELECT - 49 + - + 66
----
-115

onlyif mysql # DIV for integer division: 
query I rowsort label-1827
SELECT DISTINCT + 45 DIV + 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1827
SELECT DISTINCT + 45 / + 81 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1828
SELECT + COUNT( * ) - - 74 * - 66 + COUNT( * ) + - 20
----
-4902

skipif mysql # not compatible
query I rowsort label-1828
SELECT + COUNT ( * ) - - 74 * - 66 + COUNT ( * ) + - 20
----
-4902

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT - 13 + MIN( - 68 )
----
-81

skipif mysql # not compatible
query I rowsort label-1829
SELECT - 13 + MIN ( - 68 )
----
-81

query II rowsort
SELECT + 19 + - 49 AS col0, 22 + - 78 + - 29
----
-30
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1831
SELECT + CASE - - 82 WHEN - + 30 + + 10 + COUNT( * ) / + 10 THEN - ( - 42 ) + NULLIF ( + - 73, - ( - - 38 ) / - + 27 ) WHEN 72 THEN NULL ELSE NULL END + + CAST( NULL AS SIGNED ) * - 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1831
SELECT + CASE - - 82 WHEN - + 30 + + 10 + COUNT ( * ) / + 10 THEN - ( - 42 ) + NULLIF ( + - 73, - ( - - 38 ) / - + 27 ) WHEN 72 THEN NULL ELSE NULL END + + CAST ( NULL AS INTEGER ) * - 9 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 7 * + 30 col0
----
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT - 67 + - 19 * + + COUNT( * ) * 18 * 34 AS col1
----
-11695

skipif mysql # not compatible
query I rowsort label-1833
SELECT - 67 + - 19 * + + COUNT ( * ) * 18 * 34 AS col1
----
-11695

query I rowsort
SELECT + + 69 * - 74 + - 62
----
-5168

query II rowsort
SELECT ALL + CASE - 16 WHEN + - NULLIF ( - + 51, + 60 ) THEN NULL WHEN + 13 + + 90 THEN 96 WHEN - + 58 THEN 80 END AS col1, - 45 AS col1
----
NULL
-45

query I rowsort
SELECT - 12 * + ( + 13 ) AS col0
----
-156

query I rowsort
SELECT DISTINCT - 91 * - 39 AS col1
----
3549

query II rowsort
SELECT + 79 + - 20 AS col0, 25 * - - 66 AS col1
----
59
1650

query I rowsort
SELECT + 62 - - 88
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT DISTINCT 85 * - - MAX( + NULLIF ( 53, 40 ) )
----
4505

skipif mysql # not compatible
query I rowsort label-1840
SELECT DISTINCT 85 * - - MAX ( + NULLIF ( 53, 40 ) )
----
4505

query I rowsort
SELECT - 28 + - 18 + - 82 + - 5 + + 63 * + 76 AS col1
----
4655

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1842
SELECT COUNT( * ) * + 10 * - - COUNT( * ) * + - MIN( - + 54 ) * + + COUNT( * ) + + CAST( NULL AS SIGNED ) / + + 86 + + 28 + + 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1842
SELECT COUNT ( * ) * + 10 * - - COUNT ( * ) * + - MIN ( - + 54 ) * + + COUNT ( * ) + + CAST ( NULL AS INTEGER ) / + + 86 + + 28 + + 14 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1843
SELECT 3 * - 5 * - 50 AS col2, COUNT( * ) AS col0
----
750
1

skipif mysql # not compatible
query II rowsort label-1843
SELECT 3 * - 5 * - 50 AS col2, COUNT ( * ) AS col0
----
750
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT 41 + 87 + + + 28 + + - COUNT( * ) * COUNT( * ) AS col2
----
155

skipif mysql # not compatible
query I rowsort label-1844
SELECT 41 + 87 + + + 28 + + - COUNT ( * ) * COUNT ( * ) AS col2
----
155

onlyif mysql # aggregate syntax: 
query II rowsort label-1845
SELECT 86 AS col2, - 29 + - + CASE - 98 WHEN 7 * 34 * - 24 + - 32 * + 84 THEN - + COUNT( ( 35 ) ) ELSE NULL END
----
86
NULL

skipif mysql # not compatible
query II rowsort label-1845
SELECT 86 AS col2, - 29 + - + CASE - 98 WHEN 7 * 34 * - 24 + - 32 * + 84 THEN - + COUNT ( ( 35 ) ) ELSE NULL END
----
86
NULL

query I rowsort
SELECT 51 + 91
----
142

query I rowsort
SELECT 57 + + ( - 45 )
----
12

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1849
SELECT - 98, NULLIF ( 97, + MAX( DISTINCT - - 45 ) ) DIV + - 93 AS col1
----
-98
-1

skipif mysql # not compatible
query II rowsort label-1849
SELECT - 98, NULLIF ( 97, + MAX ( DISTINCT - - 45 ) ) / + - 93 AS col1
----
-98
-1

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

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

query I rowsort
SELECT ALL - 4 + - ( + + 29 )
----
-33

query I rowsort
SELECT ( - + 67 ) * + 1
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1853
SELECT 66 * 44 DIV 26 DIV + 56 * - + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1853
SELECT 66 * 44 / 26 / + 56 * - + COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1854
SELECT ALL + 32 + - - 47 * + 1 AS col1, + COUNT( * )
----
79
1

skipif mysql # not compatible
query II rowsort label-1854
SELECT ALL + 32 + - - 47 * + 1 AS col1, + COUNT ( * )
----
79
1

query II rowsort
SELECT 40, COALESCE ( - 63, - + 8 ) AS col2
----
40
-63

query I rowsort
SELECT 63 + 61 AS col0
----
124

query I rowsort
SELECT DISTINCT + 87 + - ( ( 38 ) ) AS col1
----
49

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1859
SELECT ALL + 97 DIV 57
----
1

skipif mysql # not compatible
query I rowsort label-1859
SELECT ALL + 97 / 57
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT SUM( - ( - ( 98 ) ) ) + 43 AS col1
----
141

skipif mysql # not compatible
query I rowsort label-1860
SELECT SUM ( - ( - ( 98 ) ) ) + 43 AS col1
----
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1861
SELECT CASE - 22 WHEN AVG ( - 89 ) * + SUM( ALL + 10 ) THEN 44 + COALESCE ( 83, - COUNT( * ) ) * + 41 ELSE NULL END * 99 + + ( + 24 + 38 ) * + CAST( + 82 - 9 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1861
SELECT CASE - 22 WHEN AVG ( - 89 ) * + SUM ( ALL + 10 ) THEN 44 + COALESCE ( 83, - COUNT ( * ) ) * + 41 ELSE NULL END * 99 + + ( + 24 + 38 ) * + CAST ( + 82 - 9 AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT ALL - 24 - COUNT( * ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-1862
SELECT ALL - 24 - COUNT ( * ) AS col0
----
-25

query I rowsort
SELECT ALL + 70 * 84 AS col2
----
5880

query I rowsort
SELECT 72 * 61 AS col0
----
4392

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT - 65 * - 21 + CASE - CASE + COUNT( * ) WHEN + 48 THEN NULL ELSE 55 END WHEN 5 * ( - COUNT( DISTINCT 17 ) / - 96 ) THEN + 14 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1865
SELECT - 65 * - 21 + CASE - CASE + COUNT ( * ) WHEN + 48 THEN NULL ELSE 55 END WHEN 5 * ( - COUNT ( DISTINCT 17 ) / - 96 ) THEN + 14 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1866
SELECT MAX( NULLIF ( - 90, 45 ) ) DIV 58 col1
----
-1

skipif mysql # not compatible
query I rowsort label-1866
SELECT MAX ( NULLIF ( - 90, 45 ) ) / 58 col1
----
-1

query I rowsort
SELECT 81 * + 21 AS col1
----
1701

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1868
SELECT - 8 DIV + COUNT( * ) + 54 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-1868
SELECT - 8 / + COUNT ( * ) + 54 AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT ALL + 7 - + SUM( - 32 )
----
39

skipif mysql # not compatible
query I rowsort label-1869
SELECT ALL + 7 - + SUM ( - 32 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT DISTINCT CASE - 33 WHEN - 14 THEN + 33 * - 53 + 23 WHEN + ( - COUNT( ALL + 64 ) ) THEN - 26 + 27 / - 26 WHEN - 1 + SUM( ALL + 29 ) THEN 73 - 84 END * + 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1870
SELECT DISTINCT CASE - 33 WHEN - 14 THEN + 33 * - 53 + 23 WHEN + ( - COUNT ( ALL + 64 ) ) THEN - 26 + 27 / - 26 WHEN - 1 + SUM ( ALL + 29 ) THEN 73 - 84 END * + 26 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1871
SELECT ALL COALESCE ( 30, 50 + - CASE - 52 WHEN COUNT( * ) * - SUM( 19 ) + 7 * COUNT( * ) THEN ( 27 ) * - 60 + 25 WHEN 97 + 68 DIV - COUNT( * ) THEN NULLIF ( - 64, + 79 DIV - COUNT( * ) ) DIV - ( + ( - 78 ) * 91 + - 80 ) ELSE NULL END ) DIV + 80
----
0

skipif mysql # not compatible
query I rowsort label-1871
SELECT ALL COALESCE ( 30, 50 + - CASE - 52 WHEN COUNT ( * ) * - SUM ( 19 ) + 7 * COUNT ( * ) THEN ( 27 ) * - 60 + 25 WHEN 97 + 68 / - COUNT ( * ) THEN NULLIF ( - 64, + 79 / - COUNT ( * ) ) / - ( + ( - 78 ) * 91 + - 80 ) ELSE NULL END ) / + 80
----
0

query I rowsort
SELECT 62 * + 95 - 91 AS col0
----
5799

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1873
SELECT COALESCE ( 37, + 46 + - 54 * + 41, + ( ( + COUNT( DISTINCT + 49 ) ) ) ) DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-1873
SELECT COALESCE ( 37, + 46 + - 54 * + 41, + ( ( + COUNT ( DISTINCT + 49 ) ) ) ) / + 92
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1874
SELECT CAST( - COALESCE ( MIN( + 32 ), CAST( + 40 AS SIGNED ), + COALESCE ( + NULLIF ( 70, 41 ), 40 ), 36 + - 12 ) AS SIGNED ) * - 80 AS col1
----
2560

skipif mysql # not compatible
query I rowsort label-1874
SELECT CAST ( - COALESCE ( MIN ( + 32 ), CAST ( + 40 AS INTEGER ), + COALESCE ( + NULLIF ( 70, 41 ), 40 ), 36 + - 12 ) AS INTEGER ) * - 80 AS col1
----
2560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1875
SELECT ALL CAST( 16 AS SIGNED ) + + 38 * 51 AS col0
----
1954

skipif mysql # not compatible
query I rowsort label-1875
SELECT ALL CAST ( 16 AS INTEGER ) + + 38 * 51 AS col0
----
1954

onlyif mysql # DIV for integer division: 
query I rowsort label-1876
SELECT COALESCE ( 5, - 48 ) * ( + 42 DIV + 64 )
----
0

skipif mysql # not compatible
query I rowsort label-1876
SELECT COALESCE ( 5, - 48 ) * ( + 42 / + 64 )
----
0

query I rowsort
SELECT DISTINCT ( + COALESCE ( 66, - 93 ) ) * - 64 AS col0
----
-4224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1878
SELECT CAST( NULL AS SIGNED ) / 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1878
SELECT CAST ( NULL AS INTEGER ) / 33 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1879
SELECT ALL CAST( + CAST( - 49 AS SIGNED ) AS SIGNED ) + ( - ( 24 ) + + 36 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-1879
SELECT ALL CAST ( + CAST ( - 49 AS INTEGER ) AS INTEGER ) + ( - ( 24 ) + + 36 ) AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT - MIN( DISTINCT NULLIF ( - 99, 12 + + 37 ) ) col0
----
99

skipif mysql # not compatible
query I rowsort label-1880
SELECT - MIN ( DISTINCT NULLIF ( - 99, 12 + + 37 ) ) col0
----
99

query I rowsort
SELECT DISTINCT + 91 + 53 * + CASE - 41 WHEN 56 THEN 89 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 90 + - 16
----
74

query I rowsort
SELECT 31 + 0
----
31

query I rowsort
SELECT 66 * 37 AS col2
----
2442

query I rowsort
SELECT ALL 25 + 98 col2
----
123

query I rowsort
SELECT 56 + + 43 AS col1
----
99

query I rowsort
SELECT ALL + 1 * 89 AS col1
----
89

query I rowsort
SELECT ALL COALESCE ( - 19, 76 - 45 ) - 23 AS col2
----
-42

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

skipif mysql # not compatible
query I rowsort label-1889
SELECT - - SUM ( DISTINCT 77 )
----
77

query I rowsort
SELECT DISTINCT 46 * 49
----
2254

query I rowsort
SELECT DISTINCT - 55 - - 73
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT - CASE 20 WHEN - 43 + COUNT( * ) * + 39 THEN NULL ELSE + 54 END AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-1892
SELECT - CASE 20 WHEN - 43 + COUNT ( * ) * + 39 THEN NULL ELSE + 54 END AS col0
----
-54

query I rowsort
SELECT - + NULLIF ( - 65, 71 ) + 56
----
121

query I rowsort
SELECT - + NULLIF ( - 18, - 88 / 39 ) * + 33 AS col1
----
594

query I rowsort
SELECT - - 67 + 79
----
146

query I rowsort
SELECT DISTINCT + + NULLIF ( 52, + ( 22 ) )
----
52

query I rowsort
SELECT ALL - + 11 * + 33
----
-363

query I rowsort
SELECT - 88 * - 31 AS col0
----
2728

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

query I rowsort
SELECT DISTINCT + 48 * - 15
----
-720

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

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

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

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

query I rowsort
SELECT - - NULLIF ( - 74, 20 ) + 51 * + 64
----
3190

query I rowsort
SELECT - - 9 * 41
----
369

query I rowsort
SELECT ALL + + NULLIF ( 71, 82 ) * - 6
----
-426

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

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

query I rowsort
SELECT - 16 * 71 + 12 AS col2
----
-1124

onlyif mysql # DIV for integer division: 
query I rowsort label-1908
SELECT + 86 DIV - 48 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1908
SELECT + 86 / - 48 AS col1
----
-1

query I rowsort
SELECT ALL + 47 * - 48 + - 74
----
-2330

query I rowsort
SELECT + 3 - + COALESCE ( 97, ( - 4 ) ) AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT DISTINCT - 3 * + NULLIF ( 73, + 68 - NULLIF ( - COUNT( * ), - 24 * + SUM( + 14 ) ) ) * 47 + + MAX( - 29 ) * - 42
----
-9075

skipif mysql # not compatible
query I rowsort label-1911
SELECT DISTINCT - 3 * + NULLIF ( 73, + 68 - NULLIF ( - COUNT ( * ), - 24 * + SUM ( + 14 ) ) ) * 47 + + MAX ( - 29 ) * - 42
----
-9075

query I rowsort
SELECT ALL 53 * - 0 + - 38
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT + MAX( DISTINCT - - 32 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-1913
SELECT + MAX ( DISTINCT - - 32 ) AS col0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1914
SELECT DISTINCT + CAST( + 88 AS SIGNED ) * + 9 AS col2
----
792

skipif mysql # not compatible
query I rowsort label-1914
SELECT DISTINCT + CAST ( + 88 AS INTEGER ) * + 9 AS col2
----
792

query I rowsort
SELECT DISTINCT - 87 * + 75 * + ( 98 * + 44 ) + - 69 AS col0
----
-28135869

query I rowsort
SELECT ALL 65 * - 5 + 16
----
-309

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT + MIN( ALL ( 26 ) ) * 53 + + 84
----
1462

skipif mysql # not compatible
query I rowsort label-1917
SELECT + MIN ( ALL ( 26 ) ) * 53 + + 84
----
1462

query I rowsort
SELECT 5 * + + 58 + 79
----
369

onlyif mysql # DIV for integer division: 
query I rowsort label-1919
SELECT DISTINCT 84 DIV + 69
----
1

skipif mysql # not compatible
query I rowsort label-1919
SELECT DISTINCT 84 / + 69
----
1

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

skipif mysql # not compatible
query I rowsort label-1920
SELECT - 7 * - ( - COUNT ( * ) )
----
-7

query I rowsort
SELECT + 13 * 68
----
884

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT DISTINCT - NULLIF ( - + 98, 82 + + ( COALESCE ( 29, + 8 * - COUNT( * ) ) ) * CASE + 33 / + 99 WHEN AVG ( + 12 ) THEN + 1 / + 74 END ) * + 18 col1
----
1764

skipif mysql # not compatible
query I rowsort label-1922
SELECT DISTINCT - NULLIF ( - + 98, 82 + + ( COALESCE ( 29, + 8 * - COUNT ( * ) ) ) * CASE + 33 / + 99 WHEN AVG ( + 12 ) THEN + 1 / + 74 END ) * + 18 col1
----
1764

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1924
SELECT + 77 * - NULLIF ( 12, - 40 * + CAST( NULL AS SIGNED ) - 55 ) * - 53
----
48972

skipif mysql # not compatible
query I rowsort label-1924
SELECT + 77 * - NULLIF ( 12, - 40 * + CAST ( NULL AS INTEGER ) - 55 ) * - 53
----
48972

query I rowsort
SELECT ALL 83 * + 17
----
1411

query I rowsort
SELECT DISTINCT 1 - - 21 AS col0
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1927
SELECT ALL - - 63 DIV 39 + - COUNT( * ) * + 45
----
-44

skipif mysql # not compatible
query I rowsort label-1927
SELECT ALL - - 63 / 39 + - COUNT ( * ) * + 45
----
-44

query I rowsort
SELECT + 9 * 77 AS col0
----
693

query I rowsort
SELECT - COALESCE ( - 62, - ( 65 ) )
----
62

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

skipif mysql # not compatible
query I rowsort label-1930
SELECT - MAX ( DISTINCT - 99 )
----
99

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

skipif mysql # not compatible
query I rowsort label-1931
SELECT ALL COUNT ( ALL + 49 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1932
SELECT - 6 DIV + 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1932
SELECT - 6 / + 73 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT + + MAX( DISTINCT - 56 ) + - 75
----
-131

skipif mysql # not compatible
query I rowsort label-1933
SELECT + + MAX ( DISTINCT - 56 ) + - 75
----
-131

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

skipif mysql # not compatible
query I rowsort label-1934
SELECT - + SUM ( - ( + 68 ) )
----
68

query I rowsort
SELECT - - 30 * + + 59 * + ( - 45 ) AS col0
----
-79650

query I rowsort
SELECT - 95 + + 11 AS col0
----
-84

query I rowsort
SELECT DISTINCT 64 * - 96 * 38 AS col2
----
-233472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1938
SELECT - 22 * + CAST( CASE 9 WHEN 81 THEN AVG ( 35 ) / - 35 END AS SIGNED ) / 5 + + ( ( 13 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1938
SELECT - 22 * + CAST ( CASE 9 WHEN 81 THEN AVG ( 35 ) / - 35 END AS INTEGER ) / 5 + + ( ( 13 ) )
----
NULL

query I rowsort
SELECT + 61 * + - 10 * - 86 AS col0
----
52460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1940
SELECT DISTINCT + CASE - - 99 WHEN COUNT( * ) THEN 64 / COUNT( * ) ELSE CASE - SUM( + 53 ) WHEN - 11 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN COUNT( ALL - 40 ) END * 21 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1940
SELECT DISTINCT + CASE - - 99 WHEN COUNT ( * ) THEN 64 / COUNT ( * ) ELSE CASE - SUM ( + 53 ) WHEN - 11 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN COUNT ( ALL - 40 ) END * 21 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1941
SELECT ALL + 76 DIV + 8 + + - 99 + + 12 * + 54 AS col0
----
558

skipif mysql # not compatible
query I rowsort label-1941
SELECT ALL + 76 / + 8 + + - 99 + + 12 * + 54 AS col0
----
558

query I rowsort
SELECT ALL + ( - CASE + 56 WHEN - 94 THEN ( ( - ( + 7 ) ) ) / - 91 ELSE NULL END ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1943
SELECT DISTINCT 18 / + 4 + - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1943
SELECT DISTINCT 18 / + 4 + - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1944
SELECT DISTINCT - 43 DIV - 74 + - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1944
SELECT DISTINCT - 43 / - 74 + - - COUNT ( * )
----
1

query I rowsort
SELECT ALL 92 / - 8 + + CASE 17 WHEN 33 THEN - 34 + - ( - 48 ) WHEN 49 / - 25 THEN NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1946
SELECT ALL + 10 DIV + 40 + 83
----
83

skipif mysql # not compatible
query I rowsort label-1946
SELECT ALL + 10 / + 40 + 83
----
83

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT DISTINCT + 27 * + SUM( DISTINCT - CASE ( + 23 ) WHEN + 43 THEN - 62 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1948
SELECT DISTINCT + 27 * + SUM ( DISTINCT - CASE ( + 23 ) WHEN + 43 THEN - 62 END )
----
NULL

query I rowsort
SELECT - 8 - 23
----
-31

query I rowsort
SELECT - 84 * - 22
----
1848

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

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

query I rowsort
SELECT ALL + 73 - + - 18 AS col0
----
91

query II rowsort
SELECT 40 col0, 82 AS col2
----
40
82

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

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

query I rowsort
SELECT DISTINCT + 56 - 23
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1956
SELECT MAX( ALL CAST( NULL AS SIGNED ) ) - + 5 + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-1956
SELECT MAX ( ALL CAST ( NULL AS INTEGER ) ) - + 5 + 48
----
NULL

query I rowsort
SELECT 81 * - 79 * - 11
----
70389

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT DISTINCT + COUNT( ALL 5 ) * - + COUNT( * ) * 15
----
-15

skipif mysql # not compatible
query I rowsort label-1958
SELECT DISTINCT + COUNT ( ALL 5 ) * - + COUNT ( * ) * 15
----
-15

query I rowsort
SELECT + 23 * + - 73 * + 34 - 41 + - ( 90 ) AS col0
----
-57217

query I rowsort
SELECT 73 + 71 + 14 * + 21 col1
----
438

query I rowsort
SELECT NULLIF ( + 60, + - 29 ) * - NULLIF ( 15 * + 96, ( 82 ) - 53 ) AS col2
----
-86400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1962
SELECT DISTINCT - - 2 * - - 52 + + - CASE - 61 WHEN - SUM( ALL + 23 ) * - 4 THEN - 87 WHEN 11 THEN - 61 - 15 * - 16 ELSE 47 END * - SUM( 98 * + 33 - CAST( - 72 + - 97 / + 66 AS SIGNED ) )
----
155533

skipif mysql # not compatible
query I rowsort label-1962
SELECT DISTINCT - - 2 * - - 52 + + - CASE - 61 WHEN - SUM ( ALL + 23 ) * - 4 THEN - 87 WHEN 11 THEN - 61 - 15 * - 16 ELSE 47 END * - SUM ( 98 * + 33 - CAST ( - 72 + - 97 / + 66 AS INTEGER ) )
----
155533

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1964
SELECT ALL - 70 * - - 69 * CAST( NULL AS SIGNED ) / 54
----
NULL

skipif mysql # not compatible
query I rowsort label-1964
SELECT ALL - 70 * - - 69 * CAST ( NULL AS INTEGER ) / 54
----
NULL

query I rowsort
SELECT DISTINCT 35 * - 49 - + 67 AS col0
----
-1782

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT ALL COUNT( * ) * - 77 * + 59
----
-4543

skipif mysql # not compatible
query I rowsort label-1966
SELECT ALL COUNT ( * ) * - 77 * + 59
----
-4543

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1968
SELECT DISTINCT - 20 + 61 + + - COUNT( DISTINCT - 28 ) DIV 20
----
41

skipif mysql # not compatible
query I rowsort label-1968
SELECT DISTINCT - 20 + 61 + + - COUNT ( DISTINCT - 28 ) / 20
----
41

query I rowsort
SELECT ALL + 62 + + 81
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT ALL - CASE + 0 WHEN - 51 THEN NULL ELSE - CASE 0 WHEN MIN( + 18 ) + 27 THEN NULL WHEN ( + CASE - ( COUNT( * ) ) WHEN 68 THEN + 84 ELSE NULL END ) THEN + 15 ELSE NULL END END + 44 * - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-1970
SELECT ALL - CASE + 0 WHEN - 51 THEN NULL ELSE - CASE 0 WHEN MIN ( + 18 ) + 27 THEN NULL WHEN ( + CASE - ( COUNT ( * ) ) WHEN 68 THEN + 84 ELSE NULL END ) THEN + 15 ELSE NULL END END + 44 * - 20
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1972
SELECT CASE - + 96 WHEN + 12 - 95 THEN 5 ELSE NULL END + MAX( CAST( NULL AS DECIMAL ) ) * + 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1972
SELECT CASE - + 96 WHEN + 12 - 95 THEN 5 ELSE NULL END + MAX ( CAST ( NULL AS REAL ) ) * + 1 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT SUM( + 24 ) * 5 AS col1
----
120

skipif mysql # not compatible
query I rowsort label-1973
SELECT SUM ( + 24 ) * 5 AS col1
----
120

query I rowsort
SELECT ALL - 27 + - 14 col1
----
-41

query I rowsort
SELECT ALL 39 + + 56 AS col2
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1976
SELECT ALL - 4 + + COUNT( * ) AS col0, CAST( NULL AS SIGNED ) col1
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-1976
SELECT ALL - 4 + + COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) col1
----
-3
NULL

query I rowsort
SELECT DISTINCT 74 * 32
----
2368

query I rowsort
SELECT 60 * 60 AS col1
----
3600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1979
SELECT ALL COUNT( * ) * 8 DIV + COUNT( * ) col1
----
8

skipif mysql # not compatible
query I rowsort label-1979
SELECT ALL COUNT ( * ) * 8 / + COUNT ( * ) col1
----
8

query I rowsort
SELECT ALL 26 - 99 AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT COUNT( * ) + - - 71 + - 92 + - 61
----
-81

skipif mysql # not compatible
query I rowsort label-1981
SELECT COUNT ( * ) + - - 71 + - 92 + - 61
----
-81

query I rowsort
SELECT ALL - NULLIF ( - 12, COALESCE ( 44, + 9 * 73 ) ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT - 69 * - 31 * - COUNT( * ) * 64 + + 79 AS col0
----
-136817

skipif mysql # not compatible
query I rowsort label-1983
SELECT - 69 * - 31 * - COUNT ( * ) * 64 + + 79 AS col0
----
-136817

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT SUM( ALL 16 ) * 89 AS col2
----
1424

skipif mysql # not compatible
query I rowsort label-1984
SELECT SUM ( ALL 16 ) * 89 AS col2
----
1424

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT 66 + - COUNT( DISTINCT - 10 ) + 30 + COUNT( * ) * + 57 * 57 AS col2
----
3344

skipif mysql # not compatible
query I rowsort label-1985
SELECT 66 + - COUNT ( DISTINCT - 10 ) + 30 + COUNT ( * ) * + 57 * 57 AS col2
----
3344

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1986
SELECT 76 * CAST( NULL AS SIGNED ) AS col0, + 66 AS col2
----
NULL
66

skipif mysql # not compatible
query II rowsort label-1986
SELECT 76 * CAST ( NULL AS INTEGER ) AS col0, + 66 AS col2
----
NULL
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT ALL + 42 * 76 * + MIN( ALL - 9 ) AS col2
----
-28728

skipif mysql # not compatible
query I rowsort label-1987
SELECT ALL + 42 * 76 * + MIN ( ALL - 9 ) AS col2
----
-28728

onlyif mysql # aggregate syntax: 
query I rowsort label-1988
SELECT 82 + - COALESCE ( + 13, - 64 * COUNT( * ), 52 ) + 10
----
79

skipif mysql # not compatible
query I rowsort label-1988
SELECT 82 + - COALESCE ( + 13, - 64 * COUNT ( * ), 52 ) + 10
----
79

query I rowsort
SELECT 42 * - 94 * 98 * - 22 + 50
----
8511938

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1990
SELECT ( 81 ) * 7 + - + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) + - 16 * 43 / 73
----
NULL

skipif mysql # not compatible
query I rowsort label-1990
SELECT ( 81 ) * 7 + - + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - 16 * 43 / 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT - 37 * + COALESCE ( - + 85, + 80 + 96 * + 6 ) * - 2 + + COALESCE ( 67 + - ( - 80 + - 98 ), 34 + - COALESCE ( - 29 + 93 * 44, + MAX( DISTINCT - ( + 79 ) ) + MAX( - 65 - COALESCE ( ( - 4 ), - 64 ) ), + COUNT( * ) + - ( + 67 ) ), - ( 61 ) ) AS col0
----
-6045

skipif mysql # not compatible
query I rowsort label-1991
SELECT - 37 * + COALESCE ( - + 85, + 80 + 96 * + 6 ) * - 2 + + COALESCE ( 67 + - ( - 80 + - 98 ), 34 + - COALESCE ( - 29 + 93 * 44, + MAX ( DISTINCT - ( + 79 ) ) + MAX ( - 65 - COALESCE ( ( - 4 ), - 64 ) ), + COUNT ( * ) + - ( + 67 ) ), - ( 61 ) ) AS col0
----
-6045

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT COUNT( * ) * - 79 + - 40
----
-119

skipif mysql # not compatible
query I rowsort label-1993
SELECT COUNT ( * ) * - 79 + - 40
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT + COUNT( * ) * + + 98 * - 6
----
-588

skipif mysql # not compatible
query I rowsort label-1994
SELECT + COUNT ( * ) * + + 98 * - 6
----
-588

query I rowsort
SELECT 67 * - - 82
----
5494

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT ALL + MAX( ALL + COALESCE ( - 60, + 60 * - 19 ) ) + + 84
----
24

skipif mysql # not compatible
query I rowsort label-1996
SELECT ALL + MAX ( ALL + COALESCE ( - 60, + 60 * - 19 ) ) + + 84
----
24

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

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

query I rowsort
SELECT - 43 + + 14 * + - 58 * - 72 - 73 * + 69 AS col0
----
53384

query II rowsort
SELECT ALL - ( 97 ), 28 AS col1
----
-97
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT DISTINCT + COUNT( * ) * - 70 * - COALESCE ( 68, 49 * COUNT( * ), - 7 * 27 ) AS col1
----
4760

skipif mysql # not compatible
query I rowsort label-2000
SELECT DISTINCT + COUNT ( * ) * - 70 * - COALESCE ( 68, 49 * COUNT ( * ), - 7 * 27 ) AS col1
----
4760

onlyif mysql # DIV for integer division: 
query I rowsort label-2001
SELECT ALL 10 + + 29 + + 17 DIV + + 31
----
39

skipif mysql # not compatible
query I rowsort label-2001
SELECT ALL 10 + + 29 + + 17 / + + 31
----
39

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

skipif mysql # not compatible
query I rowsort label-2002
SELECT ALL 21 + - COUNT ( * ) AS col2
----
20

query I rowsort
SELECT CASE + 88 WHEN 38 / - - 42 + + + 78 + - ( - 10 ) / NULLIF ( 66 * - 28, 25 * 10 ) THEN + 24 WHEN 61 THEN NULL END - + 13 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2004
SELECT ALL 78 * + - ( 33 ) - + 52 DIV + ( - 60 ) + 67
----
-2507

skipif mysql # not compatible
query I rowsort label-2004
SELECT ALL 78 * + - ( 33 ) - + 52 / + ( - 60 ) + 67
----
-2507

query I rowsort
SELECT 47 * - 47 AS col2
----
-2209

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2006
SELECT CASE + ( - 50 ) WHEN 23 + 95 THEN NULL WHEN + NULLIF ( 90, 29 ) * CAST( NULL AS SIGNED ) THEN 7 + - 76 END / 33
----
NULL

skipif mysql # not compatible
query I rowsort label-2006
SELECT CASE + ( - 50 ) WHEN 23 + 95 THEN NULL WHEN + NULLIF ( 90, 29 ) * CAST ( NULL AS INTEGER ) THEN 7 + - 76 END / 33
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2007
SELECT CAST( 30 AS SIGNED ) * 2 * + + ( + - 1 ) + - 51 * 66 AS col2
----
-3426

skipif mysql # not compatible
query I rowsort label-2007
SELECT CAST ( 30 AS INTEGER ) * 2 * + + ( + - 1 ) + - 51 * 66 AS col2
----
-3426

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2008
SELECT ALL 79 DIV - COUNT( * ) col0
----
-79

skipif mysql # not compatible
query I rowsort label-2008
SELECT ALL 79 / - COUNT ( * ) col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT DISTINCT 90 * - + 79 - - ( - SUM( ALL + + 95 ) ) AS col0
----
-7205

skipif mysql # not compatible
query I rowsort label-2009
SELECT DISTINCT 90 * - + 79 - - ( - SUM ( ALL + + 95 ) ) AS col0
----
-7205

query II rowsort
SELECT ALL + 17 AS col0, + 49 * - 42 AS col0
----
17
-2058

query I rowsort
SELECT ALL 19 * - - 75
----
1425

onlyif mysql # aggregate syntax: 
query I rowsort label-2012
SELECT MIN( ALL 2 )
----
2

skipif mysql # not compatible
query I rowsort label-2012
SELECT MIN ( ALL 2 )
----
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT DISTINCT 54 * - ( + COALESCE ( - - 77, - - NULLIF ( COUNT( DISTINCT + 10 ), - 56 ) ) )
----
-4158

skipif mysql # not compatible
query I rowsort label-2014
SELECT DISTINCT 54 * - ( + COALESCE ( - - 77, - - NULLIF ( COUNT ( DISTINCT + 10 ), - 56 ) ) )
----
-4158

query I rowsort
SELECT 74 * - + 86 - + + 79
----
-6443

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT + CASE - + 55 WHEN - + COUNT( * ) THEN + + 4 ELSE NULL END * 47
----
NULL

skipif mysql # not compatible
query I rowsort label-2016
SELECT + CASE - + 55 WHEN - + COUNT ( * ) THEN + + 4 ELSE NULL END * 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT + CASE + - 25 WHEN - 98 THEN + + COUNT( * ) ELSE - COUNT( * ) + - COUNT( * ) END - 50 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-2017
SELECT + CASE + - 25 WHEN - 98 THEN + + COUNT ( * ) ELSE - COUNT ( * ) + - COUNT ( * ) END - 50 AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT + 2 - 57 + + - ( - + 81 ) * + COUNT( * ) + 80
----
106

skipif mysql # not compatible
query I rowsort label-2018
SELECT + 2 - 57 + + - ( - + 81 ) * + COUNT ( * ) + 80
----
106

query I rowsort
SELECT ALL 86 + 32
----
118

onlyif mysql # aggregate syntax: 
query II rowsort label-2020
SELECT DISTINCT + + 90, COUNT( * ) + - + MIN( ALL - + 69 ) - 93 AS col1
----
90
-23

skipif mysql # not compatible
query II rowsort label-2020
SELECT DISTINCT + + 90, COUNT ( * ) + - + MIN ( ALL - + 69 ) - 93 AS col1
----
90
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-2021
SELECT - 56 * + + 60 * 63 - + 87 DIV - 31
----
-211678

skipif mysql # not compatible
query I rowsort label-2021
SELECT - 56 * + + 60 * 63 - + 87 / - 31
----
-211678

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2022
SELECT ALL CASE - MIN( + - 5 ) WHEN CAST( NULL AS SIGNED ) * + + 93 + - 38 * + 46 THEN CASE + 53 WHEN 57 THEN 7 END + CAST( - COALESCE ( 97, 73 ) AS SIGNED ) * + 54 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL CASE - MIN ( + - 5 ) WHEN CAST ( NULL AS INTEGER ) * + + 93 + - 38 * + 46 THEN CASE + 53 WHEN 57 THEN 7 END + CAST ( - COALESCE ( 97, 73 ) AS INTEGER ) * + 54 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2023
SELECT ALL 13 + + 9 * + 31 * 57 * - - COUNT( * ) * COUNT( * ) AS col0
----
15916

skipif mysql # not compatible
query I rowsort label-2023
SELECT ALL 13 + + 9 * + 31 * 57 * - - COUNT ( * ) * COUNT ( * ) AS col0
----
15916

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT + 82 + + COUNT( * ) * + CASE - 91 WHEN + + 52 THEN NULL WHEN 45 THEN + 99 + 44 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2024
SELECT + 82 + + COUNT ( * ) * + CASE - 91 WHEN + + 52 THEN NULL WHEN 45 THEN + 99 + 44 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2025
SELECT - + 26 / + 93 * + CASE - 86 WHEN - 18 THEN - CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2025
SELECT - + 26 / + 93 * + CASE - 86 WHEN - 18 THEN - CAST ( NULL AS INTEGER ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2026
SELECT DISTINCT + + 35 + ( + 70 ) AS col0, 70 + 62 - - CAST( CASE AVG ( 56 ) WHEN 32 THEN - 84 + - 45 WHEN COUNT( * ) * - 43 + 25 THEN 23 * - 86 + - 71 END + CASE + 64 WHEN 56 + 27 * + 54 THEN - AVG ( + 54 ) + 23 ELSE 33 + - 12 * - 64 END AS SIGNED )
----
105
NULL

skipif mysql # not compatible
query II rowsort label-2026
SELECT DISTINCT + + 35 + ( + 70 ) AS col0, 70 + 62 - - CAST ( CASE AVG ( 56 ) WHEN 32 THEN - 84 + - 45 WHEN COUNT ( * ) * - 43 + 25 THEN 23 * - 86 + - 71 END + CASE + 64 WHEN 56 + 27 * + 54 THEN - AVG ( + 54 ) + 23 ELSE 33 + - 12 * - 64 END AS INTEGER )
----
105
NULL

query I rowsort
SELECT ALL - + 72 + 85
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT DISTINCT + COUNT( * ) * + 21 - + ( + NULLIF ( + 9, 76 + + 24 ) ) * - 6 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-2028
SELECT DISTINCT + COUNT ( * ) * + 21 - + ( + NULLIF ( + 9, 76 + + 24 ) ) * - 6 AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT - - 82 + 39 + + + CASE + 80 WHEN - + 78 THEN NULL WHEN 6 * 91 THEN - 86 WHEN 10 * + 44 THEN NULL WHEN + COUNT( * ) THEN NULL ELSE + 58 * 7 END * 94 AS col0
----
38285

skipif mysql # not compatible
query I rowsort label-2029
SELECT - - 82 + 39 + + + CASE + 80 WHEN - + 78 THEN NULL WHEN 6 * 91 THEN - 86 WHEN 10 * + 44 THEN NULL WHEN + COUNT ( * ) THEN NULL ELSE + 58 * 7 END * 94 AS col0
----
38285

query I rowsort
SELECT - 88 * + + ( - + 1 ) + + 47
----
135

query I rowsort
SELECT ALL 2 + - 47
----
-45

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

query I rowsort
SELECT - 46 + ( + + 24 ) AS col2
----
-22

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT - MIN( ALL 77 ) col1
----
-77

skipif mysql # not compatible
query I rowsort label-2036
SELECT - MIN ( ALL 77 ) col1
----
-77

query I rowsort
SELECT DISTINCT + - 55 - + 34 AS col0
----
-89

query I rowsort
SELECT ALL ( ( - 68 ) )
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2039
SELECT ALL + 86 - - COALESCE ( CAST( NULL AS SIGNED ), - + 7 ) * - 2
----
100

skipif mysql # not compatible
query I rowsort label-2039
SELECT ALL + 86 - - COALESCE ( CAST ( NULL AS INTEGER ), - + 7 ) * - 2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT - MIN( DISTINCT - 66 ) * - + 8
----
-528

skipif mysql # not compatible
query I rowsort label-2040
SELECT - MIN ( DISTINCT - 66 ) * - + 8
----
-528

query II rowsort
SELECT 56 col0, 55 + 61
----
56
116

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT - COUNT( * ) + - + 41
----
-42

skipif mysql # not compatible
query I rowsort label-2042
SELECT - COUNT ( * ) + - + 41
----
-42

query II rowsort
SELECT 29, 55 AS col1
----
29
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT - COALESCE ( 94, + MAX( 54 ) * - 50 * + 97 - 44 ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-2044
SELECT - COALESCE ( 94, + MAX ( 54 ) * - 50 * + 97 - 44 ) AS col1
----
-94

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

skipif mysql # not compatible
query I rowsort label-2045
SELECT DISTINCT 38 * + COUNT ( * ) * CAST ( NULL AS INTEGER ) * + MIN ( + ( - 22 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT DISTINCT + 69 * - 34 * - + SUM( + 62 )
----
145452

skipif mysql # not compatible
query I rowsort label-2046
SELECT DISTINCT + 69 * - 34 * - + SUM ( + 62 )
----
145452

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

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

query I rowsort
SELECT ALL + 51 * - + 34
----
-1734

query I rowsort
SELECT - 25 + 96
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT COUNT( + 33 ) * - SUM( DISTINCT + 88 ) + - + 14 + + NULLIF ( - MAX( ALL + COALESCE ( 34, ( - 6 ), 9 + + 50 ) ), - 54 + - 78 ) * 74
----
-2618

skipif mysql # not compatible
query I rowsort label-2050
SELECT COUNT ( + 33 ) * - SUM ( DISTINCT + 88 ) + - + 14 + + NULLIF ( - MAX ( ALL + COALESCE ( 34, ( - 6 ), 9 + + 50 ) ), - 54 + - 78 ) * 74
----
-2618

query II rowsort
SELECT ALL + 27, 35 col1
----
27
35

query I rowsort
SELECT + 7 + + 87 AS col2
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-2053
SELECT - 78 DIV + 11 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-2053
SELECT - 78 / + 11 AS col1
----
-7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2054
SELECT + 83 / + CAST( NULL AS DECIMAL ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2054
SELECT + 83 / + CAST ( NULL AS REAL ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2055
SELECT CAST( 78 AS SIGNED ) * + + 4 * - 27 + + + COALESCE ( - - COUNT( * ), + 21 * - COUNT( * ), 23 ) AS col1
----
-8423

skipif mysql # not compatible
query I rowsort label-2055
SELECT CAST ( 78 AS INTEGER ) * + + 4 * - 27 + + + COALESCE ( - - COUNT ( * ), + 21 * - COUNT ( * ), 23 ) AS col1
----
-8423

onlyif mysql # aggregate syntax: 
query II rowsort label-2056
SELECT + 1 - + - SUM( ALL + 88 ) + - - 75 AS col0, 44
----
164
44

skipif mysql # not compatible
query II rowsort label-2056
SELECT + 1 - + - SUM ( ALL + 88 ) + - - 75 AS col0, 44
----
164
44

onlyif mysql # DIV for integer division: 
query I rowsort label-2057
SELECT DISTINCT 7 DIV + 48
----
0

skipif mysql # not compatible
query I rowsort label-2057
SELECT DISTINCT 7 / + 48
----
0

query II rowsort
SELECT ALL + 86 * 93 + 61 - - - 64, 18 AS col1
----
7995
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT + 29 / + 94 + + - CASE + + 79 WHEN + 81 THEN - 87 - 53 END + ( + 95 - COUNT( 92 + 19 * 1 ) * 33 ) * COALESCE ( 97, - 22 + - 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2059
SELECT + 29 / + 94 + + - CASE + + 79 WHEN + 81 THEN - 87 - 53 END + ( + 95 - COUNT ( 92 + 19 * 1 ) * 33 ) * COALESCE ( 97, - 22 + - 64 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2060
SELECT DISTINCT - 25 DIV 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2060
SELECT DISTINCT - 25 / 86 AS col2
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT + ( MIN( - 10 ) ) * SUM( ( + 49 ) ) col2
----
-490

skipif mysql # not compatible
query I rowsort label-2062
SELECT + ( MIN ( - 10 ) ) * SUM ( ( + 49 ) ) col2
----
-490

onlyif mysql # DIV for integer division: 
query I rowsort label-2063
SELECT ALL COALESCE ( 57, - 13 * - 94 DIV + 34 + ( 20 ) * 68 + + 67, COALESCE ( + 30, - 21 ) ) * ( - 18 DIV + 21 ) + ( - NULLIF ( 47, + 56 + 6 ) ) * + 66
----
-3102

skipif mysql # not compatible
query I rowsort label-2063
SELECT ALL COALESCE ( 57, - 13 * - 94 / + 34 + ( 20 ) * 68 + + 67, COALESCE ( + 30, - 21 ) ) * ( - 18 / + 21 ) + ( - NULLIF ( 47, + 56 + 6 ) ) * + 66
----
-3102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2064
SELECT + - 46 + - + CASE - 87 WHEN 80 + MAX( - 95 ) + + 26 THEN NULL WHEN + COUNT( * ) - 29 * - 55 THEN COALESCE ( CAST( - 60 AS SIGNED ), - COUNT( * ) * CASE 89 * 21 WHEN CASE - 61 WHEN 20 * + 52 - 67 THEN - 10 END THEN 39 ELSE NULL END ) ELSE 27 + + 26 END AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-2064
SELECT + - 46 + - + CASE - 87 WHEN 80 + MAX ( - 95 ) + + 26 THEN NULL WHEN + COUNT ( * ) - 29 * - 55 THEN COALESCE ( CAST ( - 60 AS INTEGER ), - COUNT ( * ) * CASE 89 * 21 WHEN CASE - 61 WHEN 20 * + 52 - 67 THEN - 10 END THEN 39 ELSE NULL END ) ELSE 27 + + 26 END AS col0
----
-99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT + - CASE 76 WHEN - 83 * - 64 THEN - MAX( + 98 ) WHEN - COUNT( * ) THEN 70 ELSE NULL END + + 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2066
SELECT + - CASE 76 WHEN - 83 * - 64 THEN - MAX ( + 98 ) WHEN - COUNT ( * ) THEN 70 ELSE NULL END + + 25 AS col1
----
NULL

query II rowsort
SELECT + 16 AS col0, - 63
----
16
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT DISTINCT - + 30 * COALESCE ( + 32, - COUNT( * ) + COUNT( * ), - ( + 2 ), + 11 * ( - COALESCE ( 27, 61 * MAX( DISTINCT 29 * + 45 ) ) * 67 ) ) + MIN( DISTINCT 41 )
----
-919

skipif mysql # not compatible
query I rowsort label-2068
SELECT DISTINCT - + 30 * COALESCE ( + 32, - COUNT ( * ) + COUNT ( * ), - ( + 2 ), + 11 * ( - COALESCE ( 27, 61 * MAX ( DISTINCT 29 * + 45 ) ) * 67 ) ) + MIN ( DISTINCT 41 )
----
-919

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

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

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

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

query I rowsort
SELECT - 61 + 77 AS col0
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-2072
SELECT DISTINCT 31 DIV - ( 11 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2072
SELECT DISTINCT 31 / - ( 11 ) AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2073
SELECT ALL - 15 - + 57 + 44 + + CAST( - AVG ( DISTINCT + - 86 ) AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-2073
SELECT ALL - 15 - + 57 + 44 + + CAST ( - AVG ( DISTINCT + - 86 ) AS INTEGER )
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2074
SELECT + 92 DIV NULLIF ( - ( 44 ), - + 22 )
----
-2

skipif mysql # not compatible
query I rowsort label-2074
SELECT + 92 / NULLIF ( - ( 44 ), - + 22 )
----
-2

query I rowsort
SELECT - 97 * - 97
----
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT ALL - 45 * COUNT( * ) * 95 AS col2
----
-4275

skipif mysql # not compatible
query I rowsort label-2076
SELECT ALL - 45 * COUNT ( * ) * 95 AS col2
----
-4275

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT + 9 + MAX( + 71 )
----
80

skipif mysql # not compatible
query I rowsort label-2077
SELECT + 9 + MAX ( + 71 )
----
80

query I rowsort
SELECT - ( 57 ) * 74
----
-4218

query I rowsort
SELECT ALL + 82 * + 40 AS col2
----
3280

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT 60 - - COUNT( * ) + NULLIF ( 18, 88 ) - - COUNT( * ) + SUM( 81 ) + + 73 * - 96
----
-6847

skipif mysql # not compatible
query I rowsort label-2080
SELECT 60 - - COUNT ( * ) + NULLIF ( 18, 88 ) - - COUNT ( * ) + SUM ( 81 ) + + 73 * - 96
----
-6847

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT 76 * + COUNT( * ) * - - 93
----
7068

skipif mysql # not compatible
query I rowsort label-2081
SELECT 76 * + COUNT ( * ) * - - 93
----
7068

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

skipif mysql # not compatible
query I rowsort label-2082
SELECT ALL + 83 * - ( + COUNT ( * ) ) * + 83 * - COUNT ( * ) AS col1
----
6889

query I rowsort
SELECT 82 + 46
----
128

query II rowsort
SELECT 66 * 54 col2, 11
----
3564
11

onlyif mysql # aggregate syntax: 
query II rowsort label-2085
SELECT COUNT( * ) * 97 AS col2, + 57 + + + 18 + COUNT( * ) + - COALESCE ( ( 88 ), - CASE WHEN ( - 15 ) < 81 + 90 THEN - NULLIF ( - 5, - 74 * + 81 ) + 67 END * + COUNT( * ), 64 + 61 ) AS col0
----
97
-12

skipif mysql # not compatible
query II rowsort label-2085
SELECT COUNT ( * ) * 97 AS col2, + 57 + + + 18 + COUNT ( * ) + - COALESCE ( ( 88 ), - CASE WHEN ( - 15 ) < 81 + 90 THEN - NULLIF ( - 5, - 74 * + 81 ) + 67 END * + COUNT ( * ), 64 + 61 ) AS col0
----
97
-12

onlyif mysql # DIV for integer division: 
query II rowsort label-2086
SELECT - 62 DIV 77 + 21 col1, - ( 70 )
----
21
-70

skipif mysql # not compatible
query II rowsort label-2086
SELECT - 62 / 77 + 21 col1, - ( 70 )
----
21
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT ALL - COALESCE ( - - NULLIF ( - - 79, NULLIF ( 22, + - COUNT( * ) + COUNT( * ) ) * - 60 ), 42 ) + + 45
----
-34

skipif mysql # not compatible
query I rowsort label-2087
SELECT ALL - COALESCE ( - - NULLIF ( - - 79, NULLIF ( 22, + - COUNT ( * ) + COUNT ( * ) ) * - 60 ), 42 ) + + 45
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-2088
SELECT DISTINCT - COUNT( * ) + SUM( - 81 ) AS col1, - 53 + 74
----
-82
21

skipif mysql # not compatible
query II rowsort label-2088
SELECT DISTINCT - COUNT ( * ) + SUM ( - 81 ) AS col1, - 53 + 74
----
-82
21

query I rowsort
SELECT ALL 18 * + 36 AS col1
----
648

query I rowsort
SELECT + + 31 * 70 * - 3 + - ( + + 83 )
----
-6593

onlyif mysql # DIV for integer division: 
query II rowsort label-2091
SELECT 63 DIV 12 AS col2, 4 * 19 + - 38
----
5
38

skipif mysql # not compatible
query II rowsort label-2091
SELECT 63 / 12 AS col2, 4 * 19 + - 38
----
5
38

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2093
SELECT ALL 17 + COUNT( * ) AS col0, 61 * - - 79 * + + CAST( ( - + 57 ) AS SIGNED ) AS col1
----
18
-274683

skipif mysql # not compatible
query II rowsort label-2093
SELECT ALL 17 + COUNT ( * ) AS col0, 61 * - - 79 * + + CAST ( ( - + 57 ) AS INTEGER ) AS col1
----
18
-274683

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2094
SELECT - ( - + 7 ) - COUNT( * ) + SUM( + - 96 ) + - 49 + + + 42 DIV CASE COUNT( * ) + 23 DIV - 92 WHEN + COUNT( ALL 91 ) THEN + 90 END
----
-139

skipif mysql # not compatible
query I rowsort label-2094
SELECT - ( - + 7 ) - COUNT ( * ) + SUM ( + - 96 ) + - 49 + + + 42 / CASE COUNT ( * ) + 23 / - 92 WHEN + COUNT ( ALL 91 ) THEN + 90 END
----
-139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2095
SELECT + - COALESCE ( - ( 51 ), 32, 91, - 31 * COUNT( * ) DIV - ( - 77 ) + + NULLIF ( 20 + - CASE 44 WHEN 66 THEN - 54 * 52 + - 35 ELSE - 56 END * - 91, + COUNT( * ) ) DIV COUNT( * ) ) col2
----
51

skipif mysql # not compatible
query I rowsort label-2095
SELECT + - COALESCE ( - ( 51 ), 32, 91, - 31 * COUNT ( * ) / - ( - 77 ) + + NULLIF ( 20 + - CASE 44 WHEN 66 THEN - 54 * 52 + - 35 ELSE - 56 END * - 91, + COUNT ( * ) ) / COUNT ( * ) ) col2
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2096
SELECT ALL 31 DIV - 48 * - - 99 AS col2, - COUNT( * ) * - + ( 58 ) DIV - SUM( 28 )
----
0
-2

skipif mysql # not compatible
query II rowsort label-2096
SELECT ALL 31 / - 48 * - - 99 AS col2, - COUNT ( * ) * - + ( 58 ) / - SUM ( 28 )
----
0
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT 42 + 33 + + - 34 + + 67 + - COUNT( * )
----
107

skipif mysql # not compatible
query I rowsort label-2097
SELECT 42 + 33 + + - 34 + + 67 + - COUNT ( * )
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT DISTINCT COUNT( * ) - 78 + + 92 * - 71 AS col2
----
-6609

skipif mysql # not compatible
query I rowsort label-2098
SELECT DISTINCT COUNT ( * ) - 78 + + 92 * - 71 AS col2
----
-6609

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2100
SELECT 11 - + ( + - CAST( NULL AS DECIMAL ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2100
SELECT 11 - + ( + - CAST ( NULL AS REAL ) ) col1
----
NULL

query II rowsort
SELECT ALL 20 * + 98 AS col1, 36
----
1960
36

query I rowsort
SELECT - 89 * 29
----
-2581

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT - 64 + - 28 + COUNT( * ) + - - 78
----
-13

skipif mysql # not compatible
query I rowsort label-2103
SELECT - 64 + - 28 + COUNT ( * ) + - - 78
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT 91 + + SUM( + 62 )
----
153

skipif mysql # not compatible
query I rowsort label-2104
SELECT 91 + + SUM ( + 62 )
----
153

query I rowsort
SELECT 57 * - 16
----
-912

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT CASE 63 WHEN - + 60 * + 20 THEN - - COUNT( * ) END + + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-2106
SELECT CASE 63 WHEN - + 60 * + 20 THEN - - COUNT ( * ) END + + 42
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2107
SELECT ALL 74 AS col1, - COUNT( + + 56 ) AS col0
----
74
-1

skipif mysql # not compatible
query II rowsort label-2107
SELECT ALL 74 AS col1, - COUNT ( + + 56 ) AS col0
----
74
-1

query II rowsort
SELECT ALL 75, - 33 AS col0
----
75
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT ( + MIN( - ( + 24 ) ) ) + - - 89 * - 45 + + - 30 AS col2
----
-4059

skipif mysql # not compatible
query I rowsort label-2109
SELECT ( + MIN ( - ( + 24 ) ) ) + - - 89 * - 45 + + - 30 AS col2
----
-4059

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT DISTINCT 37 + - 99 * - ( + + COUNT( * ) ) * 86
----
8551

skipif mysql # not compatible
query I rowsort label-2110
SELECT DISTINCT 37 + - 99 * - ( + + COUNT ( * ) ) * 86
----
8551

onlyif mysql # DIV for integer division: 
query I rowsort label-2111
SELECT ALL 96 DIV 10 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL 96 / 10 AS col0
----
9

query I rowsort
SELECT 1 * - 88
----
-88

query I rowsort
SELECT DISTINCT - 6 * - 12 AS col2
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-2114
SELECT 91 AS col1, - 9 + + CASE - 0 WHEN + + COUNT( * ) THEN - 79 * - - 36 + + SUM( 39 ) + + 68 END * - 41 AS col0
----
91
NULL

skipif mysql # not compatible
query II rowsort label-2114
SELECT 91 AS col1, - 9 + + CASE - 0 WHEN + + COUNT ( * ) THEN - 79 * - - 36 + + SUM ( 39 ) + + 68 END * - 41 AS col0
----
91
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2115
SELECT ALL 60 DIV + 39 col1
----
1

skipif mysql # not compatible
query I rowsort label-2115
SELECT ALL 60 / + 39 col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-2116
SELECT CASE + 96 WHEN - CAST( - 57 AS DECIMAL ) DIV 81 + - 39 + 16 + + + CAST( NULL AS SIGNED ) THEN NULL ELSE - NULLIF ( - 62, - NULLIF ( + 93, + 65 + COALESCE ( + COUNT( * ), + 26 - - 58 ) * COUNT( * ) ) DIV AVG ( + ( + 47 ) ) - 6 ) END + + 82 DIV CAST( 35 AS SIGNED )
----
64

skipif mysql # not compatible
query I rowsort label-2116
SELECT CASE + 96 WHEN - CAST ( - 57 AS REAL ) / 81 + - 39 + 16 + + + CAST ( NULL AS INTEGER ) THEN NULL ELSE - NULLIF ( - 62, - NULLIF ( + 93, + 65 + COALESCE ( + COUNT ( * ), + 26 - - 58 ) * COUNT ( * ) ) / AVG ( + ( + 47 ) ) - 6 ) END + + 82 / CAST ( 35 AS INTEGER )
----
64

query I rowsort
SELECT DISTINCT 95 * 25
----
2375

onlyif mysql # DIV for integer division: 
query I rowsort label-2118
SELECT ALL + 61 DIV + + 4 col0
----
15

skipif mysql # not compatible
query I rowsort label-2118
SELECT ALL + 61 / + + 4 col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT DISTINCT MAX( DISTINCT - 72 ) * + + 46 + 65 + - 34
----
-3281

skipif mysql # not compatible
query I rowsort label-2119
SELECT DISTINCT MAX ( DISTINCT - 72 ) * + + 46 + 65 + - 34
----
-3281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2120
SELECT + 49 / 25 + + + 61 + 1 + + CASE + ( + + 6 ) WHEN + 86 / 8 - - CAST( + 29 AS SIGNED ) THEN NULL WHEN 82 * - 32 THEN ( ( 25 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2120
SELECT + 49 / 25 + + + 61 + 1 + + CASE + ( + + 6 ) WHEN + 86 / 8 - - CAST ( + 29 AS INTEGER ) THEN NULL WHEN 82 * - 32 THEN ( ( 25 ) ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2121
SELECT ALL - - 28 * + - 66 + + - 51 * NULLIF ( 25, + + CASE - - 23 WHEN - 87 + - CASE + 44 WHEN + 47 * + 53 + - 33 THEN - COUNT( * ) + 8 END THEN - 55 WHEN + ( 73 ) + NULLIF ( + 7, + 16 ) THEN - 63 * + CAST( NULL AS SIGNED ) ELSE NULL END + + 30 / 21 ) + + ( + ( 89 ) ) AS col2
----
-3034

skipif mysql # not compatible
query I rowsort label-2121
SELECT ALL - - 28 * + - 66 + + - 51 * NULLIF ( 25, + + CASE - - 23 WHEN - 87 + - CASE + 44 WHEN + 47 * + 53 + - 33 THEN - COUNT ( * ) + 8 END THEN - 55 WHEN + ( 73 ) + NULLIF ( + 7, + 16 ) THEN - 63 * + CAST ( NULL AS INTEGER ) ELSE NULL END + + 30 / 21 ) + + ( + ( 89 ) ) AS col2
----
-3034

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2122
SELECT - COALESCE ( + 21, - 87, 86 DIV NULLIF ( 3, - COUNT( * ) ) - - 41, - 19 + SUM( 69 ) * 76 ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-2122
SELECT - COALESCE ( + 21, - 87, 86 / NULLIF ( 3, - COUNT ( * ) ) - - 41, - 19 + SUM ( 69 ) * 76 ) AS col0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2123
SELECT - 18 + + 92 * - 16 + CAST( - 74 AS SIGNED ) + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2123
SELECT - 18 + + 92 * - 16 + CAST ( - 74 AS INTEGER ) + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2124
SELECT COALESCE ( - 79, + MAX( ALL - + 14 ) + + 40 - + 86 DIV - + 51 - CAST( NULL AS SIGNED ) + 4 * MIN( ALL + 63 ) ) + ( 8 )
----
-71

skipif mysql # not compatible
query I rowsort label-2124
SELECT COALESCE ( - 79, + MAX ( ALL - + 14 ) + + 40 - + 86 / - + 51 - CAST ( NULL AS INTEGER ) + 4 * MIN ( ALL + 63 ) ) + ( 8 )
----
-71

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

query II rowsort
SELECT ALL - + 2 AS col0, + NULLIF ( + 3, - 87 )
----
-2
3

query I rowsort
SELECT 8 - - 73 AS col1
----
81

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

skipif mysql # not compatible
query II rowsort label-2128
SELECT ALL - 98, COUNT ( * ) col2
----
-98
1

query I rowsort
SELECT ALL - 25 * - - CASE + 19 WHEN - 65 THEN + 22 * - 9 ELSE - 98 END
----
2450

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2131
SELECT ALL - 14 DIV - + 36
----
0

skipif mysql # not compatible
query I rowsort label-2131
SELECT ALL - 14 / - + 36
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT 88 * NULLIF ( + 33, - 56 * - 9 / CASE + - COUNT( DISTINCT + + 89 ) WHEN - 76 - 3 THEN NULL ELSE - COUNT( * ) END ) AS col0
----
2904

skipif mysql # not compatible
query I rowsort label-2132
SELECT 88 * NULLIF ( + 33, - 56 * - 9 / CASE + - COUNT ( DISTINCT + + 89 ) WHEN - 76 - 3 THEN NULL ELSE - COUNT ( * ) END ) AS col0
----
2904

query II rowsort
SELECT + ( - ( 18 ) ) AS col2, 54
----
-18
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2134
SELECT ALL - - CAST( 72 AS SIGNED ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-2134
SELECT ALL - - CAST ( 72 AS INTEGER ) AS col2
----
72

query I rowsort
SELECT - 21 + + - ( + 24 )
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2136
SELECT + - CASE + + 86 WHEN - 96 / + 72 THEN NULL WHEN - 14 THEN NULL WHEN - CAST( + 99 AS SIGNED ) * - 19 * 28 THEN 96 / 87 END * AVG ( ALL - 2 ) + 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2136
SELECT + - CASE + + 86 WHEN - 96 / + 72 THEN NULL WHEN - 14 THEN NULL WHEN - CAST ( + 99 AS INTEGER ) * - 19 * 28 THEN 96 / 87 END * AVG ( ALL - 2 ) + 51 AS col1
----
NULL

query I rowsort
SELECT ALL + - 73 - - CASE + 6 WHEN + 54 THEN 89 ELSE NULL END + 84
----
NULL

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

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

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

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

query I rowsort
SELECT + 87 * + 24 + - 24 * - - NULLIF ( + 66, - 28 * - 80 / 17 ) AS col0
----
504

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2142
SELECT + + CASE - + CAST( - 76 AS SIGNED ) WHEN + - 15 + + - 98 * 70 THEN COUNT( * ) * 15 - 6 + 99 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2142
SELECT + + CASE - + CAST ( - 76 AS INTEGER ) WHEN + - 15 + + - 98 * 70 THEN COUNT ( * ) * 15 - 6 + 99 ELSE NULL END
----
NULL

query II rowsort
SELECT ALL + + 70 AS col1, COALESCE ( 36, 73 ) AS col0
----
70
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT - 10 + + + MAX( + 49 ) * - ( 57 ) AS col2
----
-2803

skipif mysql # not compatible
query I rowsort label-2144
SELECT - 10 + + + MAX ( + 49 ) * - ( 57 ) AS col2
----
-2803

onlyif mysql # DIV for integer division: 
query I rowsort label-2145
SELECT DISTINCT 49 DIV - - 17
----
2

skipif mysql # not compatible
query I rowsort label-2145
SELECT DISTINCT 49 / - - 17
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT DISTINCT CASE - + AVG ( ALL - 90 ) WHEN + 70 THEN - 26 / - 52 * - 91 / - MAX( DISTINCT + 12 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2146
SELECT DISTINCT CASE - + AVG ( ALL - 90 ) WHEN + 70 THEN - 26 / - 52 * - 91 / - MAX ( DISTINCT + 12 ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 15 * 85
----
1275

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2148
SELECT ALL + 28 DIV + + MAX( DISTINCT + 49 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2148
SELECT ALL + 28 / + + MAX ( DISTINCT + 49 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT ALL 9 + MAX( DISTINCT - 82 ) - - 11 * - - 39 AS col0
----
356

skipif mysql # not compatible
query I rowsort label-2149
SELECT ALL 9 + MAX ( DISTINCT - 82 ) - - 11 * - - 39 AS col0
----
356

onlyif mysql # aggregate syntax: 
query III rowsort label-2150
SELECT + COUNT( * ) + - 88 - - - 76 * 72 AS col0, 61 AS col0, - 39 col0
----
-5559
61
-39

skipif mysql # not compatible
query III rowsort label-2150
SELECT + COUNT ( * ) + - 88 - - - 76 * 72 AS col0, 61 AS col0, - 39 col0
----
-5559
61
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2151
SELECT - COUNT( ALL - 81 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2151
SELECT - COUNT ( ALL - 81 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT DISTINCT 55 * SUM( 79 ) AS col1
----
4345

skipif mysql # not compatible
query I rowsort label-2152
SELECT DISTINCT 55 * SUM ( 79 ) AS col1
----
4345

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

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

query I rowsort
SELECT ALL 90 + + 77 + - 84 * - 47
----
4115

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT + COUNT( + 0 ) * + SUM( 84 )
----
84

skipif mysql # not compatible
query I rowsort label-2155
SELECT + COUNT ( + 0 ) * + SUM ( 84 )
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2156
SELECT + CAST( 88 AS SIGNED ) - 84 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-2156
SELECT + CAST ( 88 AS INTEGER ) - 84 AS col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2157
SELECT ALL CASE - 16 WHEN + 97 THEN - CASE + 58 WHEN COUNT( * ) - - + CAST( NULL AS DECIMAL ) + - - COALESCE ( - MIN( ALL - 42 ), 59 ) / - 37 THEN 76 END * + 13 WHEN 26 * - COUNT( * ) THEN ( 4 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2157
SELECT ALL CASE - 16 WHEN + 97 THEN - CASE + 58 WHEN COUNT ( * ) - - + CAST ( NULL AS REAL ) + - - COALESCE ( - MIN ( ALL - 42 ), 59 ) / - 37 THEN 76 END * + 13 WHEN 26 * - COUNT ( * ) THEN ( 4 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 38 * + 48 AS col1
----
-1824

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT ALL - COUNT( * ) + 30 * - - CASE + - 68 WHEN - - 91 * + COUNT( * ) THEN + ( 80 ) WHEN + 53 THEN 79 - 83 ELSE 16 END
----
479

skipif mysql # not compatible
query I rowsort label-2159
SELECT ALL - COUNT ( * ) + 30 * - - CASE + - 68 WHEN - - 91 * + COUNT ( * ) THEN + ( 80 ) WHEN + 53 THEN 79 - 83 ELSE 16 END
----
479

query I rowsort
SELECT + 42 + - + 3 - - 45 - - 22 * 62 AS col2
----
1448

onlyif mysql # DIV for integer division: 
query I rowsort label-2161
SELECT DISTINCT 48 + 52 * + - 83 + + 50 DIV 42 + + - 83 + - - 29 * - - 69 AS col1
----
-2349

skipif mysql # not compatible
query I rowsort label-2161
SELECT DISTINCT 48 + 52 * + - 83 + + 50 / 42 + + - 83 + - - 29 * - - 69 AS col1
----
-2349

onlyif mysql # aggregate syntax: 
query I rowsort label-2162
SELECT + 18 + + COUNT( * ) + + COUNT( * ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-2162
SELECT + 18 + + COUNT ( * ) + + COUNT ( * ) AS col0
----
20

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2163
SELECT DISTINCT COALESCE ( - 32, - + CASE - COUNT( ALL 49 ) WHEN - - 28 * 5 THEN 18 * - COUNT( * ) END + 70, + 91, 63 ) / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2163
SELECT DISTINCT COALESCE ( - 32, - + CASE - COUNT ( ALL 49 ) WHEN - - 28 * 5 THEN 18 * - COUNT ( * ) END + 70, + 91, 63 ) / CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + - 15 * + 48 AS col0
----
-720

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2166
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * 59 / - + 57 * - + 21 * - 65 + - ( - 24 ) + + COUNT( * ) + + 79 + CAST( NULL AS SIGNED ) * 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2166
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * 59 / - + 57 * - + 21 * - 65 + - ( - 24 ) + + COUNT ( * ) + + 79 + CAST ( NULL AS INTEGER ) * 8 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2167
SELECT DISTINCT - 76 * - - 32 * + 78 * + 61 * + CASE + 71 WHEN + - 67 THEN - CAST( NULL AS SIGNED ) + + 22 ELSE NULL END - 10 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2167
SELECT DISTINCT - 76 * - - 32 * + 78 * + 61 * + CASE + 71 WHEN + - 67 THEN - CAST ( NULL AS INTEGER ) + + 22 ELSE NULL END - 10 col0
----
NULL

query I rowsort
SELECT ALL + 15 * + NULLIF ( 94, + - 82 * - 62 / - + 25 ) - - 42
----
1452

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT DISTINCT + MIN( 10 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-2169
SELECT DISTINCT + MIN ( 10 ) AS col2
----
10

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2171
SELECT DISTINCT + 21 DIV + 41
----
0

skipif mysql # not compatible
query I rowsort label-2171
SELECT DISTINCT + 21 / + 41
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2172
SELECT ALL + MAX( ALL + 64 ) * + ( + + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2172
SELECT ALL + MAX ( ALL + 64 ) * + ( + + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT - CASE 75 WHEN - 5 THEN ( + 37 ) + 20 ELSE - 19 END * + - 47 + 21 + 88 AS col1
----
-784

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

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

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

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

query I rowsort
SELECT - 41 * - 44 + 56
----
1860

query I rowsort
SELECT - 85 - 9 + + - 94
----
-188

onlyif mysql # DIV for integer division: 
query I rowsort label-2178
SELECT DISTINCT + - 51 * - 34 + + 16 + + 44 DIV - 46 AS col1
----
1750

skipif mysql # not compatible
query I rowsort label-2178
SELECT DISTINCT + - 51 * - 34 + + 16 + + 44 / - 46 AS col1
----
1750

onlyif mysql # aggregate syntax: 
query II rowsort label-2179
SELECT ALL + 36 * 88 * + + 6 + 54 AS col2, - 3 + - - COUNT( * ) + - 45 AS col1
----
19062
-47

skipif mysql # not compatible
query II rowsort label-2179
SELECT ALL + 36 * 88 * + + 6 + 54 AS col2, - 3 + - - COUNT ( * ) + - 45 AS col1
----
19062
-47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2180
SELECT - 8 * CAST( NULL AS DECIMAL ) * + + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-2180
SELECT - 8 * CAST ( NULL AS REAL ) * + + 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT DISTINCT 29 * + ( - + 99 ) + - 22 - + NULLIF ( - 40, + - AVG ( ALL + 13 ) + + - COUNT( * ) / COUNT( * ) ) AS col1
----
-2853

skipif mysql # not compatible
query I rowsort label-2181
SELECT DISTINCT 29 * + ( - + 99 ) + - 22 - + NULLIF ( - 40, + - AVG ( ALL + 13 ) + + - COUNT ( * ) / COUNT ( * ) ) AS col1
----
-2853

query I rowsort
SELECT DISTINCT - 14 * 49 + + 95
----
-591

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

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

query I rowsort
SELECT DISTINCT 76 * - 93 + + - 49
----
-7117

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT ALL - COALESCE ( COUNT( * ), + COALESCE ( 58, - - 19, + 23, + 0 ), - - 37 ) * - 8 + - + CASE - 70 WHEN 10 * - COUNT( DISTINCT 52 ) - + COUNT( DISTINCT + 74 - - 63 ) THEN - 22 * - 80 WHEN 91 * + COUNT( * ) THEN NULL ELSE ( + MAX( - 68 ) ) * + 70 END
----
4768

skipif mysql # not compatible
query I rowsort label-2185
SELECT ALL - COALESCE ( COUNT ( * ), + COALESCE ( 58, - - 19, + 23, + 0 ), - - 37 ) * - 8 + - + CASE - 70 WHEN 10 * - COUNT ( DISTINCT 52 ) - + COUNT ( DISTINCT + 74 - - 63 ) THEN - 22 * - 80 WHEN 91 * + COUNT ( * ) THEN NULL ELSE ( + MAX ( - 68 ) ) * + 70 END
----
4768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2186
SELECT ALL + 24 * - - 42 * - - MIN( - 12 ) * SUM( DISTINCT + CAST( NULL AS SIGNED ) ), + CAST( 50 AS SIGNED ) AS col1
----
NULL
50

skipif mysql # not compatible
query II rowsort label-2186
SELECT ALL + 24 * - - 42 * - - MIN ( - 12 ) * SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ), + CAST ( 50 AS INTEGER ) AS col1
----
NULL
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2187
SELECT DISTINCT NULLIF ( + - COALESCE ( - 15, - 42 * 84 * 37 * - 59 + + - 53 + - 76 * - 55, MIN( DISTINCT + 65 ), 10 DIV + COUNT( * ) ), CAST( NULL AS SIGNED ) * ( - 35 DIV 33 ) + AVG ( ALL 89 ) ) * + 42 + 48 AS col0
----
678

skipif mysql # not compatible
query I rowsort label-2187
SELECT DISTINCT NULLIF ( + - COALESCE ( - 15, - 42 * 84 * 37 * - 59 + + - 53 + - 76 * - 55, MIN ( DISTINCT + 65 ), 10 / + COUNT ( * ) ), CAST ( NULL AS INTEGER ) * ( - 35 / 33 ) + AVG ( ALL 89 ) ) * + 42 + 48 AS col0
----
678

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2188
SELECT COALESCE ( + - 49, - - 17 ) * - 70 * - + 19 + + COUNT( * ) + - + 39 * - COUNT( + 84 ) + + CAST( + 71 AS SIGNED ) AS col1
----
-65059

skipif mysql # not compatible
query I rowsort label-2188
SELECT COALESCE ( + - 49, - - 17 ) * - 70 * - + 19 + + COUNT ( * ) + - + 39 * - COUNT ( + 84 ) + + CAST ( + 71 AS INTEGER ) AS col1
----
-65059

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT - 91 - + ( + COUNT( * ) ) * 41 - + 40 AS col2
----
-172

skipif mysql # not compatible
query I rowsort label-2189
SELECT - 91 - + ( + COUNT ( * ) ) * 41 - + 40 AS col2
----
-172

query I rowsort
SELECT DISTINCT ( - + 21 ) col1
----
-21

query I rowsort
SELECT ALL 13 * - 75 * NULLIF ( + 35, - 62 + - 13 ) + - 26 col1
----
-34151

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2192
SELECT ALL ( + + 48 ) / + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2192
SELECT ALL ( + + 48 ) / + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2193
SELECT DISTINCT 46 AS col0, COUNT( * ) * - 61 DIV - 85
----
46
0

skipif mysql # not compatible
query II rowsort label-2193
SELECT DISTINCT 46 AS col0, COUNT ( * ) * - 61 / - 85
----
46
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT ALL ( - 28 ) + - SUM( + 4 ) + 12 * + CASE - - 63 WHEN + 61 * + 46 THEN + + 65 - - 67 * + 67 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2194
SELECT ALL ( - 28 ) + - SUM ( + 4 ) + 12 * + CASE - - 63 WHEN + 61 * + 46 THEN + + 65 - - 67 * + 67 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT ALL COUNT( * ) * + + 93 * + 96 AS col1
----
8928

skipif mysql # not compatible
query I rowsort label-2195
SELECT ALL COUNT ( * ) * + + 93 * + 96 AS col1
----
8928

query I rowsort
SELECT + 42 * + - 54 * + 81 * 18 AS col0
----
-3306744

query I rowsort
SELECT DISTINCT + 16 - - 15
----
31

query I rowsort
SELECT - 13 + + + 68
----
55

query I rowsort
SELECT + 77 + - 15
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-2200
SELECT ALL COALESCE ( - + 88, - 95 ) * 13 DIV + NULLIF ( - - 38, 72 ) - + 75
----
-105

skipif mysql # not compatible
query I rowsort label-2200
SELECT ALL COALESCE ( - + 88, - 95 ) * 13 / + NULLIF ( - - 38, 72 ) - + 75
----
-105

query I rowsort
SELECT - 6 + + + 25 AS col2
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2202
SELECT - COUNT( * ), + CAST( - 92 AS SIGNED ) AS col0
----
-1
-92

skipif mysql # not compatible
query II rowsort label-2202
SELECT - COUNT ( * ), + CAST ( - 92 AS INTEGER ) AS col0
----
-1
-92

query II rowsort
SELECT + 83 + + ( - - 49 ) col0, - 35
----
132
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-2204
SELECT + - 69 * 83 + - ( - + ( + COUNT( * ) ) ), - ( NULLIF ( - + 76, - 39 / + ( + NULLIF ( 56, 84 * - 70 ) ) + CASE 27 WHEN + 35 * 80 - - 86 THEN + ( + CASE 47 WHEN 83 + + 32 * + 24 THEN CASE + 73 WHEN + 26 * + 87 THEN - 88 + - 86 * + 32 ELSE NULL END ELSE - 31 + + 97 END ) ELSE NULL END ) ) * - 86 AS col0
----
-5726
-6536

skipif mysql # not compatible
query II rowsort label-2204
SELECT + - 69 * 83 + - ( - + ( + COUNT ( * ) ) ), - ( NULLIF ( - + 76, - 39 / + ( + NULLIF ( 56, 84 * - 70 ) ) + CASE 27 WHEN + 35 * 80 - - 86 THEN + ( + CASE 47 WHEN 83 + + 32 * + 24 THEN CASE + 73 WHEN + 26 * + 87 THEN - 88 + - 86 * + 32 ELSE NULL END ELSE - 31 + + 97 END ) ELSE NULL END ) ) * - 86 AS col0
----
-5726
-6536

query I rowsort
SELECT ALL + + 82 * 36
----
2952

query I rowsort
SELECT + 67 + + - 42 + - ( 10 ) col0
----
15

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2208
SELECT ALL - 92 DIV - COALESCE ( + + ( - - 9 ), - - 80 )
----
10

skipif mysql # not compatible
query I rowsort label-2208
SELECT ALL - 92 / - COALESCE ( + + ( - - 9 ), - - 80 )
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2209
SELECT + + CAST( + + 16 AS SIGNED ) * - + COUNT( * ) + + - 53 + - - COUNT( * ) * - 98 - - 70 + 34 + 39 + - - ( 45 ) + - 27
----
-6

skipif mysql # not compatible
query I rowsort label-2209
SELECT + + CAST ( + + 16 AS INTEGER ) * - + COUNT ( * ) + + - 53 + - - COUNT ( * ) * - 98 - - 70 + 34 + 39 + - - ( 45 ) + - 27
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2210
SELECT DISTINCT + 45 AS col1, COUNT( * ) * + + 58 * NULLIF ( 97, - - 43 * + + 16 + + CAST( - 22 AS SIGNED ) + + + 27 ) * 60 + 57 col0
----
45
337617

skipif mysql # not compatible
query II rowsort label-2210
SELECT DISTINCT + 45 AS col1, COUNT ( * ) * + + 58 * NULLIF ( 97, - - 43 * + + 16 + + CAST ( - 22 AS INTEGER ) + + + 27 ) * 60 + 57 col0
----
45
337617

query II rowsort
SELECT 17 AS col0, 29 + 0 + 40 AS col1
----
17
69

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

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

query I rowsort
SELECT + - 37 + 24
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-2214
SELECT ALL 86 DIV 38 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2214
SELECT ALL 86 / 38 AS col2
----
2

query I rowsort
SELECT - + 60 * + ( + 59 ) + + ( 28 ) AS col2
----
-3512

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT + - CASE + + 5 WHEN 69 + - 16 THEN + 72 WHEN - - COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2216
SELECT + - CASE + + 5 WHEN 69 + - 16 THEN + 72 WHEN - - COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2217
SELECT - 27 * - - 30 + + 2 DIV + COALESCE ( + 7, 29 ) AS col1
----
-810

skipif mysql # not compatible
query I rowsort label-2217
SELECT - 27 * - - 30 + + 2 / + COALESCE ( + 7, 29 ) AS col1
----
-810

query I rowsort
SELECT ALL 13 + + 74 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT COUNT( - + ( 57 ) ) * 9 col0
----
9

skipif mysql # not compatible
query I rowsort label-2219
SELECT COUNT ( - + ( 57 ) ) * 9 col0
----
9

query I rowsort
SELECT ALL + 96 + + 13 col2
----
109

query I rowsort
SELECT ALL + 91 + + 68 - + - 75 - + 89 * + + 45
----
-3771

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2222
SELECT + 22 * + 76 * + NULLIF ( SUM( 24 ), - 50 * - COALESCE ( + ( - CAST( NULL AS SIGNED ) ), + 36 ) + 42 + COUNT( * ) ) * - 37 + MIN( ALL 30 ) * ( 65 ) + - 58
----
-1482844

skipif mysql # not compatible
query I rowsort label-2222
SELECT + 22 * + 76 * + NULLIF ( SUM ( 24 ), - 50 * - COALESCE ( + ( - CAST ( NULL AS INTEGER ) ), + 36 ) + 42 + COUNT ( * ) ) * - 37 + MIN ( ALL 30 ) * ( 65 ) + - 58
----
-1482844

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2224
SELECT 4 + + ( + COALESCE ( + - CASE 33 WHEN + 37 + 97 * CAST( + 6 AS SIGNED ) THEN + - ( 47 ) WHEN COUNT( DISTINCT 55 ) THEN + 92 END, 91 * 16 ) )
----
1460

skipif mysql # not compatible
query I rowsort label-2224
SELECT 4 + + ( + COALESCE ( + - CASE 33 WHEN + 37 + 97 * CAST ( + 6 AS INTEGER ) THEN + - ( 47 ) WHEN COUNT ( DISTINCT 55 ) THEN + 92 END, 91 * 16 ) )
----
1460

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2225
SELECT 91, - 29 + + - CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) * 54 / + 2 AS col1
----
91
NULL

skipif mysql # not compatible
query II rowsort label-2225
SELECT 91, - 29 + + - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) * 54 / + 2 AS col1
----
91
NULL

query I rowsort
SELECT 91 + 8 * + + 30 AS col0
----
331

query I rowsort
SELECT DISTINCT 79 + + 1 + + 36 * 33 * - 17 * + 2 AS col0
----
-40312

query II rowsort
SELECT - 39, 79 AS col2
----
-39
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2229
SELECT DISTINCT 41 AS col2, CASE 23 WHEN - - 19 * - 16 + CAST( - 59 AS SIGNED ) THEN - - 31 / COUNT( * ) + - 89 - + + 73 - + ( 41 ) WHEN 79 * 42 + 24 THEN NULL ELSE - 12 END AS col2
----
41
-12

skipif mysql # not compatible
query II rowsort label-2229
SELECT DISTINCT 41 AS col2, CASE 23 WHEN - - 19 * - 16 + CAST ( - 59 AS INTEGER ) THEN - - 31 / COUNT ( * ) + - 89 - + + 73 - + ( 41 ) WHEN 79 * 42 + 24 THEN NULL ELSE - 12 END AS col2
----
41
-12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2230
SELECT ALL + 66 - + 33 + + 53 * + 74 + - 78 * - - 75 * + SUM( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2230
SELECT ALL + 66 - + 33 + + 53 * + 74 + - 78 * - - 75 * + SUM ( - CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT 10 * 36
----
360

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2232
SELECT ALL + 93 * + - CAST( NULL AS SIGNED ) AS col0, 83 AS col1
----
NULL
83

skipif mysql # not compatible
query II rowsort label-2232
SELECT ALL + 93 * + - CAST ( NULL AS INTEGER ) AS col0, 83 AS col1
----
NULL
83

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2234
SELECT 36 + 20 DIV + - 58 - - + 69
----
105

skipif mysql # not compatible
query I rowsort label-2234
SELECT 36 + 20 / + - 58 - - + 69
----
105

query I rowsort
SELECT ALL + NULLIF ( - 51, - 88 / + - 35 + 73 * - 19 ) - 96
----
-147

query I rowsort
SELECT 19 - + 65
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2237
SELECT ALL - COALESCE ( - ( + 64 ), + 81 ) DIV MIN( + 16 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-2237
SELECT ALL - COALESCE ( - ( + 64 ), + 81 ) / MIN ( + 16 ) AS col2
----
4

query I rowsort
SELECT 26 * + + 70 AS col1
----
1820

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2239
SELECT ALL 17 AS col2, - CAST( NULL AS SIGNED )
----
17
NULL

skipif mysql # not compatible
query II rowsort label-2239
SELECT ALL 17 AS col2, - CAST ( NULL AS INTEGER )
----
17
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2240
SELECT DISTINCT MIN( 73 ) DIV + + NULLIF ( - 8, - 64 + 20 ) AS col2, 18 * - 72 AS col1
----
-9
-1296

skipif mysql # not compatible
query II rowsort label-2240
SELECT DISTINCT MIN ( 73 ) / + + NULLIF ( - 8, - 64 + 20 ) AS col2, 18 * - 72 AS col1
----
-9
-1296

query I rowsort
SELECT ALL COALESCE ( 81, - 11 )
----
81

query I rowsort
SELECT ALL - ( - - 10 ) * + ( - ( + 95 ) )
----
950

onlyif mysql # DIV for integer division: 
query I rowsort label-2243
SELECT ALL - 27 DIV - + 43 + - - COALESCE ( 0, ( + - 1 ) - + 74 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2243
SELECT ALL - 27 / - + 43 + - - COALESCE ( 0, ( + - 1 ) - + 74 ) AS col2
----
0

query I rowsort
SELECT COALESCE ( - + 26, - + 79 + ( + 4 ) )
----
-26

query II rowsort
SELECT ALL ( - 42 ) + - 67 - + - 64 AS col0, + ( + 73 ) AS col2
----
-45
73

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2247
SELECT + 81 * + 77 - CASE - COUNT( * ) WHEN 54 THEN NULL ELSE 34 END - MIN( + - 45 ) * - COUNT( * ) AS col0, + COUNT( * ) AS col1
----
6158
1

skipif mysql # not compatible
query II rowsort label-2247
SELECT + 81 * + 77 - CASE - COUNT ( * ) WHEN 54 THEN NULL ELSE 34 END - MIN ( + - 45 ) * - COUNT ( * ) AS col0, + COUNT ( * ) AS col1
----
6158
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2248
SELECT ALL + 20 + + 65 + COUNT( * ) * - 24 DIV ( 18 ) * + 63
----
22

skipif mysql # not compatible
query I rowsort label-2248
SELECT ALL + 20 + + 65 + COUNT ( * ) * - 24 / ( 18 ) * + 63
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2249
SELECT DISTINCT - CASE - CAST( NULL AS SIGNED ) WHEN - NULLIF ( + + COUNT( + 80 ), + COUNT( * ) + - 72 ) * + AVG ( DISTINCT 91 ) THEN NULL WHEN - - 77 THEN + + ( 85 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2249
SELECT DISTINCT - CASE - CAST ( NULL AS INTEGER ) WHEN - NULLIF ( + + COUNT ( + 80 ), + COUNT ( * ) + - 72 ) * + AVG ( DISTINCT 91 ) THEN NULL WHEN - - 77 THEN + + ( 85 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2250
SELECT + 93, + ( + 64 ) * COUNT( * ) + + 11 * - 31 - + 97 AS col0
----
93
-374

skipif mysql # not compatible
query II rowsort label-2250
SELECT + 93, + ( + 64 ) * COUNT ( * ) + + 11 * - 31 - + 97 AS col0
----
93
-374

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT - COUNT( * ) * - + 17 + - 30
----
-13

skipif mysql # not compatible
query I rowsort label-2251
SELECT - COUNT ( * ) * - + 17 + - 30
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT - ( - ( - MIN( 1 ) ) ) * - + 60
----
60

skipif mysql # not compatible
query I rowsort label-2252
SELECT - ( - ( - MIN ( 1 ) ) ) * - + 60
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2253
SELECT SUM( - 7 ) + + 92 + + - ( + COUNT( * ) ) + - 13 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-2253
SELECT SUM ( - 7 ) + + 92 + + - ( + COUNT ( * ) ) + - 13 AS col2
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2254
SELECT ALL 74 + 79 AS col2, - CAST( + CASE + - 75 WHEN - 1 - COUNT( * ) + 89 * 85 / + ( + + 10 ) THEN - 81 ELSE 43 * + COALESCE ( + 65, - COUNT( * ) * 67 - 93 ) END AS SIGNED ) - - 42
----
153
-2753

skipif mysql # not compatible
query II rowsort label-2254
SELECT ALL 74 + 79 AS col2, - CAST ( + CASE + - 75 WHEN - 1 - COUNT ( * ) + 89 * 85 / + ( + + 10 ) THEN - 81 ELSE 43 * + COALESCE ( + 65, - COUNT ( * ) * 67 - 93 ) END AS INTEGER ) - - 42
----
153
-2753

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2255
SELECT + CAST( NULL AS SIGNED ) / + - 50 / - - AVG ( 59 ) - - + 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2255
SELECT + CAST ( NULL AS INTEGER ) / + - 50 / - - AVG ( 59 ) - - + 81 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 3 + - 99 * - + 3 AS col1
----
300

query I rowsort
SELECT ALL 67 * + + 54
----
3618

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2258
SELECT ALL NULLIF ( + NULLIF ( - 50, + + NULLIF ( 10, + COUNT( * ) + - + CAST( - 74 AS DECIMAL ) ) + + 36 - + 59 ), + 7 ) * 18 col1
----
-900

skipif mysql # not compatible
query I rowsort label-2258
SELECT ALL NULLIF ( + NULLIF ( - 50, + + NULLIF ( 10, + COUNT ( * ) + - + CAST ( - 74 AS REAL ) ) + + 36 - + 59 ), + 7 ) * 18 col1
----
-900

query I rowsort
SELECT + 61 * - + NULLIF ( - - 26, 43 ) + 40
----
-1546

query II rowsort
SELECT ALL 38 - - + 2, + 54 - + + 28 AS col1
----
40
26

query I rowsort
SELECT DISTINCT 96 * - 13 * - + 82
----
102336

query I rowsort
SELECT 6 * - + ( - 59 ) + + + 91 AS col0
----
445

onlyif mysql # aggregate syntax: 
query II rowsort label-2263
SELECT COUNT( * ) * 82 col0, 69 + 11 + + SUM( ALL 56 ) + - 69 AS col0
----
82
67

skipif mysql # not compatible
query II rowsort label-2263
SELECT COUNT ( * ) * 82 col0, 69 + 11 + + SUM ( ALL 56 ) + - 69 AS col0
----
82
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT ALL CASE + + SUM( 85 ) WHEN - COUNT( * ) THEN + + 73 * - 61 WHEN MIN( ALL + 96 ) THEN NULL ELSE - ( + 74 ) END * + NULLIF ( - 81, 72 * SUM( DISTINCT 62 ) ) - - 71 AS col1
----
6065

skipif mysql # not compatible
query I rowsort label-2264
SELECT ALL CASE + + SUM ( 85 ) WHEN - COUNT ( * ) THEN + + 73 * - 61 WHEN MIN ( ALL + 96 ) THEN NULL ELSE - ( + 74 ) END * + NULLIF ( - 81, 72 * SUM ( DISTINCT 62 ) ) - - 71 AS col1
----
6065

onlyif mysql # DIV for integer division: 
query I rowsort label-2265
SELECT ( + 12 ) + 31 DIV 2 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-2265
SELECT ( + 12 ) + 31 / 2 AS col0
----
27

query II rowsort
SELECT 10 * - 43, - 55 AS col2
----
-430
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2267
SELECT NULLIF ( - 77, - 79 * NULLIF ( + 78, - CAST( + 86 AS DECIMAL ) * + COUNT( * ) * CAST( + + COUNT( * ) AS SIGNED ) ) ) + + - 84
----
-161

skipif mysql # not compatible
query I rowsort label-2267
SELECT NULLIF ( - 77, - 79 * NULLIF ( + 78, - CAST ( + 86 AS REAL ) * + COUNT ( * ) * CAST ( + + COUNT ( * ) AS INTEGER ) ) ) + + - 84
----
-161

query I rowsort
SELECT DISTINCT - 44 * + 32 * - 79 AS col0
----
111232

query II rowsort
SELECT 29 + - 41 AS col1, - 84
----
-12
-84

query I rowsort
SELECT 35 * 60
----
2100

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT ALL - 26 * COUNT( DISTINCT + - 94 )
----
-26

skipif mysql # not compatible
query I rowsort label-2271
SELECT ALL - 26 * COUNT ( DISTINCT + - 94 )
----
-26

query II rowsort
SELECT DISTINCT - - 81 * + 16 - + 41 AS col2, 82 AS col0
----
1255
82

query I rowsort
SELECT - 2 + 29 - - 57
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT - SUM( + 19 ) * 67 col1
----
-1273

skipif mysql # not compatible
query I rowsort label-2274
SELECT - SUM ( + 19 ) * 67 col1
----
-1273

query I rowsort
SELECT - - 84 + - + 77 col0
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2276
SELECT - - COALESCE ( + + 16, - 89 DIV COUNT( * ) - 24, + 92 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-2276
SELECT - - COALESCE ( + + 16, - 89 / COUNT ( * ) - 24, + 92 ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT ALL - + 39 + + 28 - MAX( DISTINCT - 67 ) - - NULLIF ( 43, - COUNT( * ) - - NULLIF ( - - 15, + - COALESCE ( - 68, + 17 + + COUNT( * ) ) * 3 - 52 ) * + COUNT( * ) ) + - 63
----
36

skipif mysql # not compatible
query I rowsort label-2277
SELECT ALL - + 39 + + 28 - MAX ( DISTINCT - 67 ) - - NULLIF ( 43, - COUNT ( * ) - - NULLIF ( - - 15, + - COALESCE ( - 68, + 17 + + COUNT ( * ) ) * 3 - 52 ) * + COUNT ( * ) ) + - 63
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2278
SELECT - + 9 + - 12 AS col1, - CAST( NULL AS SIGNED ) col1
----
-21
NULL

skipif mysql # not compatible
query II rowsort label-2278
SELECT - + 9 + - 12 AS col1, - CAST ( NULL AS INTEGER ) col1
----
-21
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT ALL - 4 + + COALESCE ( - 76, - 33 * - CASE - 63 WHEN + 44 THEN 0 WHEN 58 - - 67 * + 30 * 94 THEN NULL ELSE MIN( + 18 ) * - 44 END - - 96 + 13, 68 ) + 50
----
-30

skipif mysql # not compatible
query I rowsort label-2279
SELECT ALL - 4 + + COALESCE ( - 76, - 33 * - CASE - 63 WHEN + 44 THEN 0 WHEN 58 - - 67 * + 30 * 94 THEN NULL ELSE MIN ( + 18 ) * - 44 END - - 96 + 13, 68 ) + 50
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT - - COUNT( * ) + - 19 col0
----
-18

skipif mysql # not compatible
query I rowsort label-2280
SELECT - - COUNT ( * ) + - 19 col0
----
-18

query I rowsort
SELECT ALL + + 26 + + 67 AS col0
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2282
SELECT ALL 39 * - 82 + CAST( NULL AS SIGNED ) + - COUNT( * ) + MAX( - 14 ) - + + 47 * - 40 * + 64 * - CAST( NULL AS SIGNED ) * - 63 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2282
SELECT ALL 39 * - 82 + CAST ( NULL AS INTEGER ) + - COUNT ( * ) + MAX ( - 14 ) - + + 47 * - 40 * + 64 * - CAST ( NULL AS INTEGER ) * - 63 col2
----
NULL

query I rowsort
SELECT DISTINCT + 32 * 92
----
2944

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT ALL + MAX( DISTINCT - ( + ( + 28 ) ) ) * + + 72 + + ( - + 67 ) col0
----
-2083

skipif mysql # not compatible
query I rowsort label-2285
SELECT ALL + MAX ( DISTINCT - ( + ( + 28 ) ) ) * + + 72 + + ( - + 67 ) col0
----
-2083

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

skipif mysql # not compatible
query I rowsort label-2286
SELECT + + MIN ( + - 83 )
----
-83

query I rowsort
SELECT + + 19 + 15
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2288
SELECT DISTINCT 93 * - MIN( DISTINCT - 68 ) * + - 65 * - + 11 * CAST( NULL AS SIGNED ) / + 47 + - 45 * + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-2288
SELECT DISTINCT 93 * - MIN ( DISTINCT - 68 ) * + - 65 * - + 11 * CAST ( NULL AS INTEGER ) / + 47 + - 45 * + 40
----
NULL

query I rowsort
SELECT NULLIF ( + + 79, 33 )
----
79

query I rowsort
SELECT + 50 * 83 AS col2
----
4150

query I rowsort
SELECT ALL - 78 * 87 * + 52 - - 25 AS col0
----
-352847

query I rowsort
SELECT 2 * - ( + + 1 ) + + 95 AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT - COUNT( * ) * 90 * + 75 AS col0
----
-6750

skipif mysql # not compatible
query I rowsort label-2293
SELECT - COUNT ( * ) * 90 * + 75 AS col0
----
-6750

onlyif mysql # aggregate syntax: 
query II rowsort label-2294
SELECT DISTINCT + 62, + CASE NULLIF ( + + 74, + + 94 * + COUNT( - + 9 ) + - 8 + - COUNT( * ) ) WHEN 37 * + 69 THEN - 43 WHEN - 31 + COUNT( * ) THEN - 71 ELSE NULL END - COALESCE ( + 88 - 8, ( - 15 ) ) AS col1
----
62
NULL

skipif mysql # not compatible
query II rowsort label-2294
SELECT DISTINCT + 62, + CASE NULLIF ( + + 74, + + 94 * + COUNT ( - + 9 ) + - 8 + - COUNT ( * ) ) WHEN 37 * + 69 THEN - 43 WHEN - 31 + COUNT ( * ) THEN - 71 ELSE NULL END - COALESCE ( + 88 - 8, ( - 15 ) ) AS col1
----
62
NULL

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

skipif mysql # not compatible
query I rowsort label-2295
SELECT MIN ( - ( + - 23 ) )
----
23

query I rowsort
SELECT + 84 + - 79 AS col0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2297
SELECT + 18 * + NULLIF ( + 68, + CASE 44 WHEN + 27 THEN NULL WHEN 26 THEN - 80 ELSE NULL END + - - COUNT( * ) * 42 * CAST( NULL AS SIGNED ) )
----
1224

skipif mysql # not compatible
query I rowsort label-2297
SELECT + 18 * + NULLIF ( + 68, + CASE 44 WHEN + 27 THEN NULL WHEN 26 THEN - 80 ELSE NULL END + - - COUNT ( * ) * 42 * CAST ( NULL AS INTEGER ) )
----
1224

onlyif mysql # DIV for integer division: 
query I rowsort label-2298
SELECT + 36 DIV - - 22 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2298
SELECT + 36 / - - 22 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT ALL COUNT( * ) * 52 * - - 91 AS col2
----
4732

skipif mysql # not compatible
query I rowsort label-2299
SELECT ALL COUNT ( * ) * 52 * - - 91 AS col2
----
4732

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT DISTINCT CASE - NULLIF ( COUNT( * ), 70 ) WHEN + 71 THEN 46 * - 75 + + 17 + + 81 + 85 + - 50 * COUNT( * ) ELSE NULL END + - 62 - + SUM( - 85 + 1 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2300
SELECT DISTINCT CASE - NULLIF ( COUNT ( * ), 70 ) WHEN + 71 THEN 46 * - 75 + + 17 + + 81 + 85 + - 50 * COUNT ( * ) ELSE NULL END + - 62 - + SUM ( - 85 + 1 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT - ( - 94 ) * SUM( DISTINCT - 62 ) * - - 40 + + 18 + + 13 + 68 AS col2
----
-233021

skipif mysql # not compatible
query I rowsort label-2301
SELECT - ( - 94 ) * SUM ( DISTINCT - 62 ) * - - 40 + + 18 + + 13 + 68 AS col2
----
-233021

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

skipif mysql # not compatible
query I rowsort label-2302
SELECT - - MIN ( + ( 87 ) )
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2303
SELECT + - ( + + ( SUM( - 30 ) ) ) DIV 3
----
10

skipif mysql # not compatible
query I rowsort label-2303
SELECT + - ( + + ( SUM ( - 30 ) ) ) / 3
----
10

query I rowsort
SELECT + - 99 + 0 + + + 0 * + 77
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2305
SELECT ALL - 94 + 8 * 80 * + 44 DIV COUNT( * ) AS col1
----
28066

skipif mysql # not compatible
query I rowsort label-2305
SELECT ALL - 94 + 8 * 80 * + 44 / COUNT ( * ) AS col1
----
28066

onlyif mysql # aggregate syntax: 
query II rowsort label-2306
SELECT DISTINCT 75 AS col1, COUNT( * )
----
75
1

skipif mysql # not compatible
query II rowsort label-2306
SELECT DISTINCT 75 AS col1, COUNT ( * )
----
75
1

query I rowsort
SELECT + + 80 - + 82 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT ALL SUM( DISTINCT - 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-2308
SELECT ALL SUM ( DISTINCT - 58 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT ALL - 53 + + ( - + 88 ) * - COUNT( * ) + - 51
----
-16

skipif mysql # not compatible
query I rowsort label-2309
SELECT ALL - 53 + + ( - + 88 ) * - COUNT ( * ) + - 51
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2310
SELECT ALL 19 + 16 + - ( + - 52 ) + + COUNT( ALL 13 ) DIV 30 * - - COUNT( * ) * 11
----
87

skipif mysql # not compatible
query I rowsort label-2310
SELECT ALL 19 + 16 + - ( + - 52 ) + + COUNT ( ALL 13 ) / 30 * - - COUNT ( * ) * 11
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-2311
SELECT - ( + ( COUNT( * ) ) ) AS col2, CASE - 6 WHEN + 94 / - COUNT( * ) THEN NULL WHEN + 23 THEN 38 + - COUNT( - 33 ) - + + 34 + + 57 * - 98 ELSE 45 END AS col1
----
-1
45

skipif mysql # not compatible
query II rowsort label-2311
SELECT - ( + ( COUNT ( * ) ) ) AS col2, CASE - 6 WHEN + 94 / - COUNT ( * ) THEN NULL WHEN + 23 THEN 38 + - COUNT ( - 33 ) - + + 34 + + 57 * - 98 ELSE 45 END AS col1
----
-1
45

query I rowsort
SELECT DISTINCT 37 + - - 35 + - 41
----
31

query I rowsort
SELECT ALL - 92 + + + 46 * + + 27
----
1150

query I rowsort
SELECT ALL - + 7 - + + 87
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2315
SELECT + - 12 - - CASE - + 3 WHEN + - 26 + 34 + 87 + - - NULLIF ( - 58, + 79 + + - CAST( 40 AS SIGNED ) ) * 57 + - 61 THEN - 18 + + 57 END / 9
----
NULL

skipif mysql # not compatible
query I rowsort label-2315
SELECT + - 12 - - CASE - + 3 WHEN + - 26 + 34 + 87 + - - NULLIF ( - 58, + 79 + + - CAST ( 40 AS INTEGER ) ) * 57 + - 61 THEN - 18 + + 57 END / 9
----
NULL

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

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

query I rowsort
SELECT - ( - 74 ) * - 63 * - 52
----
242424

query II rowsort
SELECT ALL + 53 AS col0, 14
----
53
14

onlyif mysql # DIV for integer division: 
query I rowsort label-2319
SELECT DISTINCT - - ( 42 ) DIV + 85 - 60 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-2319
SELECT DISTINCT - - ( 42 ) / + 85 - 60 AS col2
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-2320
SELECT ALL - 84 DIV 69 - + - 46 DIV - NULLIF ( + - ( + 29 ), - + 73 * + 6 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2320
SELECT ALL - 84 / 69 - + - 46 / - NULLIF ( + - ( + 29 ), - + 73 * + 6 ) AS col2
----
0

query I rowsort
SELECT - 50 * + 69 * - - 79 AS col1
----
-272550

onlyif mysql # DIV for integer division: 
query I rowsort label-2322
SELECT 34 DIV - - 22 - - - 83
----
-82

skipif mysql # not compatible
query I rowsort label-2322
SELECT 34 / - - 22 - - - 83
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2323
SELECT + 53 * - CAST( 64 AS SIGNED ) + 67 + + - COUNT( * ) + + 50 * 42 DIV 42 + - - 88 + 98
----
-3090

skipif mysql # not compatible
query I rowsort label-2323
SELECT + 53 * - CAST ( 64 AS INTEGER ) + 67 + + - COUNT ( * ) + + 50 * 42 / 42 + - - 88 + 98
----
-3090

onlyif mysql # DIV for integer division: 
query I rowsort label-2324
SELECT ALL + 34 DIV - 51 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2324
SELECT ALL + 34 / - 51 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2325
SELECT ( + 19 ) * + 43 + + 80 + + 89 + 28 + - 56 + 1 DIV - + 48 - - 30 AS col1
----
988

skipif mysql # not compatible
query I rowsort label-2325
SELECT ( + 19 ) * + 43 + + 80 + + 89 + 28 + - 56 + 1 / - + 48 - - 30 AS col1
----
988

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2326
SELECT ( - - 27 ) AS col1, CASE 94 WHEN - CAST( NULL AS SIGNED ) + - 86 + - 25 * - 88 * + - 27 + - SUM( + 36 ) THEN NULL WHEN 24 / + 24 + 82 * + 33 THEN NULL ELSE 66 END + + 26 AS col2
----
27
92

skipif mysql # not compatible
query II rowsort label-2326
SELECT ( - - 27 ) AS col1, CASE 94 WHEN - CAST ( NULL AS INTEGER ) + - 86 + - 25 * - 88 * + - 27 + - SUM ( + 36 ) THEN NULL WHEN 24 / + 24 + 82 * + 33 THEN NULL ELSE 66 END + + 26 AS col2
----
27
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2327
SELECT - 90 * CAST( + 39 AS SIGNED ) * - 91 * + + ( - 76 ) * + ( - + 34 )
----
825355440

skipif mysql # not compatible
query I rowsort label-2327
SELECT - 90 * CAST ( + 39 AS INTEGER ) * - 91 * + + ( - 76 ) * + ( - + 34 )
----
825355440

query I rowsort
SELECT + 96 * - ( + 75 )
----
-7200

query I rowsort
SELECT DISTINCT - 62 * 30
----
-1860

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT + CASE - - 34 WHEN COUNT( - ( + + 19 ) ) + + + 96 * + 24 THEN - - 3 WHEN + - 26 * - - 92 * - COUNT( * ) + + 99 * + COUNT( - 65 ) + 54 THEN - 56 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2330
SELECT + CASE - - 34 WHEN COUNT ( - ( + + 19 ) ) + + + 96 * + 24 THEN - - 3 WHEN + - 26 * - - 92 * - COUNT ( * ) + + 99 * + COUNT ( - 65 ) + 54 THEN - 56 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT ALL - COUNT( * ) * + 85 * 89
----
-7565

skipif mysql # not compatible
query I rowsort label-2331
SELECT ALL - COUNT ( * ) * + 85 * 89
----
-7565

query I rowsort
SELECT ALL - 71 * + 7 * + 91 col1
----
-45227

query I rowsort
SELECT - 15 * 22 + 48 AS col1
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT + NULLIF ( 4, COALESCE ( 69, - + 44, - COUNT( * ) ) + + 70 - - - 69 + 19 * - + 44 * - + 14 )
----
4

skipif mysql # not compatible
query I rowsort label-2334
SELECT + NULLIF ( 4, COALESCE ( 69, - + 44, - COUNT ( * ) ) + + 70 - - - 69 + 19 * - + 44 * - + 14 )
----
4

query II rowsort
SELECT - 24 * + 48 AS col0, + 94 AS col1
----
-1152
94

query I rowsort
SELECT DISTINCT - 48 * + - 49 + - 23
----
2329

query I rowsort
SELECT NULLIF ( 93, + + 92 + + ( 87 ) )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT ALL COUNT( * ) + + 50
----
51

skipif mysql # not compatible
query I rowsort label-2338
SELECT ALL COUNT ( * ) + + 50
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-2339
SELECT ALL + 4 DIV - + 30 col1
----
0

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL + 4 / - + 30 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT DISTINCT + COALESCE ( 49, - COUNT( * ) )
----
49

skipif mysql # not compatible
query I rowsort label-2340
SELECT DISTINCT + COALESCE ( 49, - COUNT ( * ) )
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2341
SELECT DISTINCT + 82 + - COUNT( * ), + 29 + 7 + + - CAST( NULL AS SIGNED ) + ( - + AVG ( ALL + + 14 ) ) + + - COUNT( DISTINCT + 3 ) + - + MAX( DISTINCT - 47 ) + + 61 - 10 + 24 * + 47 * - COALESCE ( + 50, 75 + - 55, + 31 ) AS col1
----
81
NULL

skipif mysql # not compatible
query II rowsort label-2341
SELECT DISTINCT + 82 + - COUNT ( * ), + 29 + 7 + + - CAST ( NULL AS INTEGER ) + ( - + AVG ( ALL + + 14 ) ) + + - COUNT ( DISTINCT + 3 ) + - + MAX ( DISTINCT - 47 ) + + 61 - 10 + 24 * + 47 * - COALESCE ( + 50, 75 + - 55, + 31 ) AS col1
----
81
NULL

query I rowsort
SELECT ALL 64 * - 97 - - 68
----
-6140

query I rowsort
SELECT ( - - 94 ) + + 20
----
114

query I rowsort
SELECT DISTINCT 26 - + - 59 + 56
----
141

onlyif mysql # aggregate syntax: 
query II rowsort label-2345
SELECT ALL - COUNT( ALL 47 ) * - 90 * + - 95, 1 AS col0
----
-8550
1

skipif mysql # not compatible
query II rowsort label-2345
SELECT ALL - COUNT ( ALL 47 ) * - 90 * + - 95, 1 AS col0
----
-8550
1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2347
SELECT CAST( 27 AS SIGNED ) * + COALESCE ( + - 87, + + 67 * + 28 * - 80 + COUNT( * ), + + 6 ) AS col1, MAX( ALL 14 ) AS col1
----
-2349
14

skipif mysql # not compatible
query II rowsort label-2347
SELECT CAST ( 27 AS INTEGER ) * + COALESCE ( + - 87, + + 67 * + 28 * - 80 + COUNT ( * ), + + 6 ) AS col1, MAX ( ALL 14 ) AS col1
----
-2349
14

query I rowsort
SELECT 19 + - + 56 col1
----
-37

query I rowsort
SELECT 66 + - - 79 * - 28
----
-2146

query I rowsort
SELECT - 50 + + + 11 AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT MIN( 81 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-2351
SELECT MIN ( 81 ) AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT SUM( 69 ) * + 42 AS col2
----
2898

skipif mysql # not compatible
query I rowsort label-2352
SELECT SUM ( 69 ) * + 42 AS col2
----
2898

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2353
SELECT - 87 * 26 + - ( - - CAST( - COUNT( * ) AS SIGNED ) )
----
-2261

skipif mysql # not compatible
query I rowsort label-2353
SELECT - 87 * 26 + - ( - - CAST ( - COUNT ( * ) AS INTEGER ) )
----
-2261

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2354
SELECT 39 DIV + 65 * + + NULLIF ( - - 55, 10 ) * SUM( DISTINCT + 92 ) + - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2354
SELECT 39 / + 65 * + + NULLIF ( - - 55, 10 ) * SUM ( DISTINCT + 92 ) + - COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT 29 + + COUNT( * ) * - ( - COUNT( * ) ) * 14 + - 67 + 43 * - + 4 * + + 16 + - MIN( DISTINCT - 19 ) + + 23 * 2
----
-2711

skipif mysql # not compatible
query I rowsort label-2355
SELECT 29 + + COUNT ( * ) * - ( - COUNT ( * ) ) * 14 + - 67 + 43 * - + 4 * + + 16 + - MIN ( DISTINCT - 19 ) + + 23 * 2
----
-2711

query II rowsort
SELECT DISTINCT - 68, - 92 AS col1
----
-68
-92

query I rowsort
SELECT DISTINCT + 30 * - 83 * - 9
----
22410

query II rowsort
SELECT ALL - 74 AS col1, + 67 AS col0
----
-74
67

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

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

query I rowsort
SELECT 19 * - 12 AS col0
----
-228

onlyif mysql # DIV for integer division: 
query I rowsort label-2361
SELECT DISTINCT + 85 DIV - 67
----
-1

skipif mysql # not compatible
query I rowsort label-2361
SELECT DISTINCT + 85 / - 67
----
-1

query I rowsort
SELECT ALL + 12 + + - 60 AS col2
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2363
SELECT 95 AS col0, + 76 * + 38, 96 + + 31 * + COUNT( * ) / - + 48 * - 83 + 66 - 40 + + 19 + - MAX( 20 ) * - 68 * - CAST( NULL AS SIGNED ) AS col2
----
95
2888
NULL

skipif mysql # not compatible
query III rowsort label-2363
SELECT 95 AS col0, + 76 * + 38, 96 + + 31 * + COUNT ( * ) / - + 48 * - 83 + 66 - 40 + + 19 + - MAX ( 20 ) * - 68 * - CAST ( NULL AS INTEGER ) AS col2
----
95
2888
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-2365
SELECT 28 / - 95
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2366
SELECT 64 DIV - - ( + - CAST( + + 29 AS SIGNED ) ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2366
SELECT 64 / - - ( + - CAST ( + + 29 AS INTEGER ) ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT 35 * - + 49 * COUNT( * ) AS col2
----
-1715

skipif mysql # not compatible
query I rowsort label-2367
SELECT 35 * - + 49 * COUNT ( * ) AS col2
----
-1715

query I rowsort
SELECT ALL - 68 + - + 26
----
-94

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

query I rowsort
SELECT 44 - - 87 * + 64 * - + 74
----
-411988

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2371
SELECT + 91 + - 43 + 51 + - + 11 + - CAST( + COUNT( * ) AS SIGNED ) * + 2 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-2371
SELECT + 91 + - 43 + 51 + - + 11 + - CAST ( + COUNT ( * ) AS INTEGER ) * + 2 AS col0
----
86

query I rowsort
SELECT DISTINCT + - 95 + + - 21
----
-116

query I rowsort
SELECT DISTINCT + 75 * + 27 AS col0
----
2025

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT - MAX( - 64 )
----
64

skipif mysql # not compatible
query I rowsort label-2374
SELECT - MAX ( - 64 )
----
64

query I rowsort
SELECT - 40 + - - 5
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2376
SELECT ( + 41 ) * + CASE + ( - 10 ) WHEN NULLIF ( + 42, - - 55 ) * + ( 5 ) THEN + 88 END * ( + CASE 94 WHEN - - 41 THEN + 45 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN COUNT( * ) * - 75 + 7 THEN - ( - COUNT( * ) ) + + CAST( NULL AS SIGNED ) ELSE + 99 END ) + + 59 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2376
SELECT ( + 41 ) * + CASE + ( - 10 ) WHEN NULLIF ( + 42, - - 55 ) * + ( 5 ) THEN + 88 END * ( + CASE 94 WHEN - - 41 THEN + 45 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN COUNT ( * ) * - 75 + 7 THEN - ( - COUNT ( * ) ) + + CAST ( NULL AS INTEGER ) ELSE + 99 END ) + + 59 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2377
SELECT DISTINCT NULLIF ( - COUNT( * ), + CAST( + 30 AS SIGNED ) * CAST( - 45 AS SIGNED ) * - - COALESCE ( + 68, - 71 ) * + 34 )
----
-1

skipif mysql # not compatible
query I rowsort label-2377
SELECT DISTINCT NULLIF ( - COUNT ( * ), + CAST ( + 30 AS INTEGER ) * CAST ( - 45 AS INTEGER ) * - - COALESCE ( + 68, - 71 ) * + 34 )
----
-1

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

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

query I rowsort
SELECT 3 * + 19 AS col2
----
57

query I rowsort
SELECT DISTINCT - 9 - - + 22 AS col0
----
13

query I rowsort
SELECT ALL - ( - + 0 ) * + 48
----
0

query I rowsort
SELECT + 47 * + 79
----
3713

query II rowsort
SELECT ALL 46, + 9 col1
----
46
9

query I rowsort
SELECT DISTINCT 26 * 10 AS col2
----
260

onlyif mysql # aggregate syntax: 
query II rowsort label-2385
SELECT - - 60, ( - COUNT( - - 29 ) ) + 96 AS col2
----
60
95

skipif mysql # not compatible
query II rowsort label-2385
SELECT - - 60, ( - COUNT ( - - 29 ) ) + 96 AS col2
----
60
95

query I rowsort
SELECT 30 * - + 33 * 63
----
-62370

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

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

query I rowsort
SELECT ( + ( + 82 ) ) * - 15 + + - 86
----
-1316

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT DISTINCT COALESCE ( - + 97, - + 90 * + 27 ) * + 16 * - - ( + 50 ) * 28 + 51 * 67 + 41 + COALESCE ( - + 88, - CASE + - 70 WHEN - 64 THEN + 90 ELSE NULL END ) + 2 * + MAX( DISTINCT 83 )
----
-2169264

skipif mysql # not compatible
query I rowsort label-2389
SELECT DISTINCT COALESCE ( - + 97, - + 90 * + 27 ) * + 16 * - - ( + 50 ) * 28 + 51 * 67 + 41 + COALESCE ( - + 88, - CASE + - 70 WHEN - 64 THEN + 90 ELSE NULL END ) + 2 * + MAX ( DISTINCT 83 )
----
-2169264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2390
SELECT 8 DIV NULLIF ( - - 58, - 30 - + + 50 * - ( + + CASE + 84 WHEN ( 47 ) THEN + - 67 ELSE NULL END ) - + COALESCE ( + 46, + 69 + + - 44, - CASE - COALESCE ( COUNT( - ( - 80 ) ), 27 ) WHEN + 62 - + COUNT( * ) THEN - 80 WHEN + NULLIF ( 38, - 46 ) THEN + 65 - - 50 END - CAST( NULL AS SIGNED ) ) * 87 ) DIV - 42 - COALESCE ( + COUNT( * ), - 9 ) * 7 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-2390
SELECT 8 / NULLIF ( - - 58, - 30 - + + 50 * - ( + + CASE + 84 WHEN ( 47 ) THEN + - 67 ELSE NULL END ) - + COALESCE ( + 46, + 69 + + - 44, - CASE - COALESCE ( COUNT ( - ( - 80 ) ), 27 ) WHEN + 62 - + COUNT ( * ) THEN - 80 WHEN + NULLIF ( 38, - 46 ) THEN + 65 - - 50 END - CAST ( NULL AS INTEGER ) ) * 87 ) / - 42 - COALESCE ( + COUNT ( * ), - 9 ) * 7 AS col0
----
-7

query II rowsort
SELECT DISTINCT + 93 AS col2, 10 * + 64
----
93
640

onlyif mysql # aggregate syntax: 
query II rowsort label-2392
SELECT + MAX( ALL - - 50 ) AS col2, + 36 AS col0
----
50
36

skipif mysql # not compatible
query II rowsort label-2392
SELECT + MAX ( ALL - - 50 ) AS col2, + 36 AS col0
----
50
36

onlyif mysql # aggregate syntax: 
query II rowsort label-2393
SELECT COUNT( * ) col2, - 64 * - 83 AS col2
----
1
5312

skipif mysql # not compatible
query II rowsort label-2393
SELECT COUNT ( * ) col2, - 64 * - 83 AS col2
----
1
5312

query II rowsort
SELECT + 6 AS col0, 46 AS col1
----
6
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT ALL COUNT( * ) * - - 90 + + COUNT( * ) * - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-2395
SELECT ALL COUNT ( * ) * - - 90 + + COUNT ( * ) * - COUNT ( * )
----
89

query I rowsort
SELECT + 53 + + - 51 AS col0
----
2

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2398
SELECT ALL - + 77 * + 72 * + CAST( NULL AS SIGNED ) - - - 2, + 10 AS col1
----
NULL
10

skipif mysql # not compatible
query II rowsort label-2398
SELECT ALL - + 77 * + 72 * + CAST ( NULL AS INTEGER ) - - - 2, + 10 AS col1
----
NULL
10

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2400
SELECT DISTINCT + ( - + COALESCE ( + - COUNT( * ), - 9 * + 55 ) ) - + ( + MIN( ALL - 74 ) ) + CAST( 4 AS SIGNED ) + - + COALESCE ( 69, + COUNT( * ) * - 25 + + - NULLIF ( - - 58, - CASE 44 WHEN - 31 + 76 THEN 89 * + 47 WHEN 46 THEN NULL ELSE NULL END ) - ( 28 ) * MIN( ALL 90 ) ) + 25 * + 29 * - CAST( NULL AS SIGNED ) / - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-2400
SELECT DISTINCT + ( - + COALESCE ( + - COUNT ( * ), - 9 * + 55 ) ) - + ( + MIN ( ALL - 74 ) ) + CAST ( 4 AS INTEGER ) + - + COALESCE ( 69, + COUNT ( * ) * - 25 + + - NULLIF ( - - 58, - CASE 44 WHEN - 31 + 76 THEN 89 * + 47 WHEN 46 THEN NULL ELSE NULL END ) - ( 28 ) * MIN ( ALL 90 ) ) + 25 * + 29 * - CAST ( NULL AS INTEGER ) / - 29
----
NULL

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

query II rowsort
SELECT - 95, + 6 AS col2
----
-95
6

onlyif mysql # aggregate syntax: 
query II rowsort label-2403
SELECT + - 49 AS col1, COUNT( * ) + 41 * - 6
----
-49
-245

skipif mysql # not compatible
query II rowsort label-2403
SELECT + - 49 AS col1, COUNT ( * ) + 41 * - 6
----
-49
-245

query I rowsort
SELECT - 29 + + 18 AS col0
----
-11

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

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

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

skipif mysql # not compatible
query I rowsort label-2406
SELECT ALL - + 88 / - 58
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2407
SELECT - 82 * + 8 col0, + 44 * + NULLIF ( - COUNT( * ), - 2 * + - 36 + - 23 * AVG ( ALL - ( 61 ) ) - - ( - + 57 ) + CAST( NULL AS SIGNED ) ) * + ( - - MAX( + 14 ) ) - - 34
----
-656
-582

skipif mysql # not compatible
query II rowsort label-2407
SELECT - 82 * + 8 col0, + 44 * + NULLIF ( - COUNT ( * ), - 2 * + - 36 + - 23 * AVG ( ALL - ( 61 ) ) - - ( - + 57 ) + CAST ( NULL AS INTEGER ) ) * + ( - - MAX ( + 14 ) ) - - 34
----
-656
-582

query II rowsort
SELECT 61, + 92 AS col2
----
61
92

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2409
SELECT - - COALESCE ( - 98, - 2, - 94 + + 60 ) - - - CAST( NULL AS DECIMAL ) AS col2, - 97 AS col1
----
NULL
-97

skipif mysql # not compatible
query II rowsort label-2409
SELECT - - COALESCE ( - 98, - 2, - 94 + + 60 ) - - - CAST ( NULL AS REAL ) AS col2, - 97 AS col1
----
NULL
-97

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2411
SELECT DISTINCT MAX( ALL + + 32 ) AS col0, COALESCE ( - 4, - 42, + 34 )
----
32
-4

skipif mysql # not compatible
query II rowsort label-2411
SELECT DISTINCT MAX ( ALL + + 32 ) AS col0, COALESCE ( - 4, - 42, + 34 )
----
32
-4

query I rowsort
SELECT - + 91 + 36
----
-55

query I rowsort
SELECT ALL + 80 * + 82
----
6560

query I rowsort
SELECT - - 75 * + 11 AS col2
----
825

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2416
SELECT DISTINCT - CASE + + 67 WHEN CAST( - 61 AS SIGNED ) THEN - NULLIF ( - - 86, - MAX( - 8 ) ) * - + 71 WHEN + + 47 + + - CAST( NULL AS DECIMAL ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2416
SELECT DISTINCT - CASE + + 67 WHEN CAST ( - 61 AS INTEGER ) THEN - NULLIF ( - - 86, - MAX ( - 8 ) ) * - + 71 WHEN + + 47 + + - CAST ( NULL AS REAL ) THEN NULL ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT ALL 2 col0, - 26
----
2
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2418
SELECT - 41 - + 31 - - COUNT( * ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-2418
SELECT - 41 - + 31 - - COUNT ( * ) AS col2
----
-71

query II rowsort
SELECT DISTINCT 24 AS col2, 48 * + + 9 AS col1
----
24
432

query I rowsort
SELECT ALL - 20 * + 1
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2421
SELECT - CASE - CAST( + + 11 AS SIGNED ) WHEN + - 15 THEN - 62 + + CAST( 47 AS SIGNED ) ELSE + 65 END - + + 67 + + 90 - - COUNT( * ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-2421
SELECT - CASE - CAST ( + + 11 AS INTEGER ) WHEN + - 15 THEN - 62 + + CAST ( 47 AS INTEGER ) ELSE + 65 END - + + 67 + + 90 - - COUNT ( * ) AS col1
----
-41

query II rowsort
SELECT + 2 AS col1, 96 AS col1
----
2
96

query II rowsort
SELECT - 91 + + 37 AS col2, 81 * + 1 - 87
----
-54
-6

query I rowsort
SELECT - 67 + 63 * - + ( - 18 ) + 86
----
1153

onlyif mysql # DIV for integer division: 
query I rowsort label-2425
SELECT DISTINCT 79 DIV 35 col2
----
2

skipif mysql # not compatible
query I rowsort label-2425
SELECT DISTINCT 79 / 35 col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT DISTINCT - NULLIF ( 95, + AVG ( + 38 ) * 85 - - COALESCE ( + 96, + 11 * + ( - 3 ) + + COUNT( * ), + 20 * + 62 + + 18 + + COUNT( * ) * + - NULLIF ( - 3, NULLIF ( 18, ( + COUNT( * ) ) ) ) ) ) + 58
----
-37

skipif mysql # not compatible
query I rowsort label-2426
SELECT DISTINCT - NULLIF ( 95, + AVG ( + 38 ) * 85 - - COALESCE ( + 96, + 11 * + ( - 3 ) + + COUNT ( * ), + 20 * + 62 + + 18 + + COUNT ( * ) * + - NULLIF ( - 3, NULLIF ( 18, ( + COUNT ( * ) ) ) ) ) ) + 58
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT - 20 + - 40 + - 80 * - + COUNT( * ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-2427
SELECT - 20 + - 40 + - 80 * - + COUNT ( * ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-2428
SELECT - MAX( DISTINCT + + 95 ), - NULLIF ( + 19, 12 * - 68 - - 7 ) AS col0
----
-95
-19

skipif mysql # not compatible
query II rowsort label-2428
SELECT - MAX ( DISTINCT + + 95 ), - NULLIF ( + 19, 12 * - 68 - - 7 ) AS col0
----
-95
-19

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2430
SELECT - 84 DIV 39 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2430
SELECT - 84 / 39 AS col2
----
-2

query I rowsort
SELECT - 1 * 7 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT + ( + 44 ) + - COUNT( * ) + 75
----
118

skipif mysql # not compatible
query I rowsort label-2432
SELECT + ( + 44 ) + - COUNT ( * ) + 75
----
118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2433
SELECT ALL + 82 DIV + SUM( + 4 ) + 48 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-2433
SELECT ALL + 82 / + SUM ( + 4 ) + 48 AS col2
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-2434
SELECT + 54 DIV + 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2434
SELECT + 54 / + 94 AS col1
----
0

query I rowsort
SELECT DISTINCT - 22 * + - 58 col0
----
1276

query II rowsort
SELECT ( - 55 ), 47 AS col0
----
-55
47

query I rowsort
SELECT + 0 * 35 + - 81
----
-81

query I rowsort
SELECT + NULLIF ( + 60, + + 4 ) col2
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2439
SELECT + NULLIF ( COUNT( * ), 87 * + 72 * + 45 + - CAST( NULL AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2439
SELECT + NULLIF ( COUNT ( * ), 87 * + 72 * + 45 + - CAST ( NULL AS INTEGER ) ) AS col2
----
1

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

skipif mysql # not compatible
query I rowsort label-2440
SELECT + + ( + 11 ) * - + 0 * + 6 / COUNT ( * ) * - 90 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2441
SELECT + CAST( - 14 AS SIGNED ) * + CAST( NULL AS SIGNED ) * + 1 - 74 / - 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2441
SELECT + CAST ( - 14 AS INTEGER ) * + CAST ( NULL AS INTEGER ) * + 1 - 74 / - 56 AS col1
----
NULL

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

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

query I rowsort
SELECT + 2 * 67 AS col0
----
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2444
SELECT ALL - - 9 * + COUNT( * ) * - CAST( NULL AS SIGNED ) * MIN( DISTINCT + 20 ) / + 6 + + 30 * - COALESCE ( - 49, 26 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2444
SELECT ALL - - 9 * + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * MIN ( DISTINCT + 20 ) / + 6 + + 30 * - COALESCE ( - 49, 26 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT + COUNT( * ) * - - 69 + 73 AS col0
----
142

skipif mysql # not compatible
query I rowsort label-2445
SELECT + COUNT ( * ) * - - 69 + 73 AS col0
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2446
SELECT COALESCE ( - ( NULLIF ( - + CAST( + 60 AS SIGNED ), + 80 + 77 * CAST( NULL AS SIGNED ) ) ), + 26 * - 19 * + COUNT( * ) * - COUNT( * ) ) col1
----
60

skipif mysql # not compatible
query I rowsort label-2446
SELECT COALESCE ( - ( NULLIF ( - + CAST ( + 60 AS INTEGER ), + 80 + 77 * CAST ( NULL AS INTEGER ) ) ), + 26 * - 19 * + COUNT ( * ) * - COUNT ( * ) ) col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT ALL - CASE - - 76 WHEN - ( 37 ) THEN + 63 * + + 65 / + + ( - - COUNT( + 18 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2447
SELECT ALL - CASE - - 76 WHEN - ( 37 ) THEN + 63 * + + 65 / + + ( - - COUNT ( + 18 ) ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2448
SELECT - - 38 + + 43 + - 90 DIV ( 19 ) * + 56 * COUNT( * ) AS col0
----
-143

skipif mysql # not compatible
query I rowsort label-2448
SELECT - - 38 + + 43 + - 90 / ( 19 ) * + 56 * COUNT ( * ) AS col0
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT - + CASE 18 WHEN + 95 - + ( + 24 ) THEN NULL WHEN COUNT( * ) THEN - 36 ELSE NULL END + + 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2449
SELECT - + CASE 18 WHEN + 95 - + ( + 24 ) THEN NULL WHEN COUNT ( * ) THEN - 36 ELSE NULL END + + 44 AS col2
----
NULL

query I rowsort
SELECT ALL + - 18 * - - 61 + + 13
----
-1085

query I rowsort
SELECT - 68 * + 13
----
-884

query I rowsort
SELECT DISTINCT + ( + - 28 ) * - - ( + 8 ) AS col2
----
-224

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

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

query I rowsort
SELECT - 44 * - - 98
----
-4312

query I rowsort
SELECT ALL 50 + + 45 AS col2
----
95

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2457
SELECT DISTINCT - ( + 54 ) + - + AVG ( DISTINCT - ( + + 45 ) ) + + 71 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2457
SELECT DISTINCT - ( + 54 ) + - + AVG ( DISTINCT - ( + + 45 ) ) + + 71 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 35 - - + 51 * - + 52
----
-2617

query I rowsort
SELECT 70 * - + 37
----
-2590

query I rowsort
SELECT ALL - 54 * 9
----
-486

onlyif mysql # aggregate syntax: 
query II rowsort label-2461
SELECT ALL + MAX( ALL - 93 ) - + 46 AS col0, 92
----
-139
92

skipif mysql # not compatible
query II rowsort label-2461
SELECT ALL + MAX ( ALL - 93 ) - + 46 AS col0, 92
----
-139
92

onlyif mysql # DIV for integer division: 
query I rowsort label-2462
SELECT 60 * 79 DIV + 9
----
526

skipif mysql # not compatible
query I rowsort label-2462
SELECT 60 * 79 / + 9
----
526

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2463
SELECT DISTINCT 59 * + 65 DIV + COUNT( * ) col1
----
3835

skipif mysql # not compatible
query I rowsort label-2463
SELECT DISTINCT 59 * + 65 / + COUNT ( * ) col1
----
3835

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT COUNT( ALL - - 66 ) * + ( - SUM( 2 ) ) * + CASE - COUNT( * ) WHEN - + 14 THEN 99 * + 87 * + ( - + 45 ) * + 94 END + 51 + 67 * - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-2464
SELECT COUNT ( ALL - - 66 ) * + ( - SUM ( 2 ) ) * + CASE - COUNT ( * ) WHEN - + 14 THEN 99 * + 87 * + ( - + 45 ) * + 94 END + 51 + 67 * - 23
----
NULL

query I rowsort
SELECT 44 + + - 68
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2466
SELECT + 66 DIV + 69 - COUNT( * ) * - - 6 + + 38 * + 70 AS col0
----
2654

skipif mysql # not compatible
query I rowsort label-2466
SELECT + 66 / + 69 - COUNT ( * ) * - - 6 + + 38 * + 70 AS col0
----
2654

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT 90 * - + 3 + - 78 + COUNT( * ) * 82
----
-266

skipif mysql # not compatible
query I rowsort label-2467
SELECT 90 * - + 3 + - 78 + COUNT ( * ) * 82
----
-266

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2468
SELECT 30 - 88 DIV COALESCE ( ( + 79 ), ( + COUNT( * ) ) ) DIV 33 AS col0, 72 * + + 16 AS col1
----
30
1152

skipif mysql # not compatible
query II rowsort label-2468
SELECT 30 - 88 / COALESCE ( ( + 79 ), ( + COUNT ( * ) ) ) / 33 AS col0, 72 * + + 16 AS col1
----
30
1152

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

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

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

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

query II rowsort
SELECT 9 + + NULLIF ( - + 92, + 28 ) AS col1, 12 * CASE - + 58 WHEN 88 / + - 1 + - 86 THEN + - 69 ELSE NULL END AS col0
----
-83
NULL

query I rowsort
SELECT - 78 + + - 77
----
-155

query I rowsort
SELECT - ( + 32 ) * - 81 + 95 AS col2
----
2687

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT ALL - MAX( DISTINCT + 24 ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-2474
SELECT ALL - MAX ( DISTINCT + 24 ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-2475
SELECT + CASE - COUNT( * ) WHEN 56 THEN NULL ELSE + + 43 * - 62 + + - 30 - - + 26 * - 77 END AS col0, + 3 * + 27
----
-4698
81

skipif mysql # not compatible
query II rowsort label-2475
SELECT + CASE - COUNT ( * ) WHEN 56 THEN NULL ELSE + + 43 * - 62 + + - 30 - - + 26 * - 77 END AS col0, + 3 * + 27
----
-4698
81

onlyif mysql # aggregate syntax: 
query II rowsort label-2476
SELECT + COUNT( * ), 4 + + 72 AS col1
----
1
76

skipif mysql # not compatible
query II rowsort label-2476
SELECT + COUNT ( * ), 4 + + 72 AS col1
----
1
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2477
SELECT + CASE CAST( + + 47 AS SIGNED ) WHEN + - 32 THEN + 48 ELSE - + 49 * - 68 END
----
3332

skipif mysql # not compatible
query I rowsort label-2477
SELECT + CASE CAST ( + + 47 AS INTEGER ) WHEN + - 32 THEN + 48 ELSE - + 49 * - 68 END
----
3332

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2478
SELECT + ( - 25 ) * - COUNT( * ) * - 67 + - COALESCE ( + + 4, - 3 + - + 79 ) DIV - + 16
----
-1675

skipif mysql # not compatible
query I rowsort label-2478
SELECT + ( - 25 ) * - COUNT ( * ) * - 67 + - COALESCE ( + + 4, - 3 + - + 79 ) / - + 16
----
-1675

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT + 27 + + 33 + + 42 * - - 22 * 68 + - MIN( DISTINCT - + 61 ) AS col0
----
62953

skipif mysql # not compatible
query I rowsort label-2479
SELECT + 27 + + 33 + + 42 * - - 22 * 68 + - MIN ( DISTINCT - + 61 ) AS col0
----
62953

query I rowsort
SELECT + + 12 col1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2481
SELECT 55 * CAST( + 46 AS SIGNED ) + - 43
----
2487

skipif mysql # not compatible
query I rowsort label-2481
SELECT 55 * CAST ( + 46 AS INTEGER ) + - 43
----
2487

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT + COUNT( * ) + + - 73
----
-72

skipif mysql # not compatible
query I rowsort label-2482
SELECT + COUNT ( * ) + + - 73
----
-72

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

skipif mysql # not compatible
query I rowsort label-2483
SELECT 35 / + COUNT ( * ) AS col1
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2484
SELECT CAST( NULL AS SIGNED ) - + 20 + COUNT( * ) / - - 19 * COUNT( * ) + - + MAX( 46 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2484
SELECT CAST ( NULL AS INTEGER ) - + 20 + COUNT ( * ) / - - 19 * COUNT ( * ) + - + MAX ( 46 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2485
SELECT CAST( NULL AS SIGNED ) + - CASE - 42 WHEN AVG ( DISTINCT + 65 ) + + 28 THEN NULL WHEN CAST( 1 AS SIGNED ) THEN NULL WHEN - - 0 THEN NULL ELSE COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2485
SELECT CAST ( NULL AS INTEGER ) + - CASE - 42 WHEN AVG ( DISTINCT + 65 ) + + 28 THEN NULL WHEN CAST ( 1 AS INTEGER ) THEN NULL WHEN - - 0 THEN NULL ELSE COUNT ( * ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2486
SELECT DISTINCT ( + 6 ) DIV - + 54 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2486
SELECT DISTINCT ( + 6 ) / - + 54 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT ALL + 22 * + 56 * COUNT( * )
----
1232

skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL + 22 * + 56 * COUNT ( * )
----
1232

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT 54 + - SUM( 74 )
----
-20

skipif mysql # not compatible
query I rowsort label-2488
SELECT 54 + - SUM ( 74 )
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2489
SELECT 64 + + - 88 + - CASE + CAST( NULL AS SIGNED ) WHEN - - 18 THEN NULL WHEN COUNT( * ) THEN + 51 ELSE 68 END - + + 50 + + 53 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-2489
SELECT 64 + + - 88 + - CASE + CAST ( NULL AS INTEGER ) WHEN - - 18 THEN NULL WHEN COUNT ( * ) THEN + 51 ELSE 68 END - + + 50 + + 53 AS col2
----
-89

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

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

query I rowsort
SELECT DISTINCT + 77 * + 56
----
4312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2492
SELECT 79 + - - COUNT( * ) + CAST( 45 AS SIGNED ) AS col1
----
125

skipif mysql # not compatible
query I rowsort label-2492
SELECT 79 + - - COUNT ( * ) + CAST ( 45 AS INTEGER ) AS col1
----
125

query I rowsort
SELECT 60 * - 4
----
-240

query I rowsort
SELECT + NULLIF ( 28, - ( - 10 ) )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2495
SELECT ALL - + CAST( NULL AS SIGNED ) + - - 13 + - 13 * + 16 * + 71 + - + MAX( + 61 ) + + 5 + SUM( ALL 42 ) * - - ( - + 44 ) * 19 + - 93 * - 39 / + 58 * 80 * + + ( 48 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2495
SELECT ALL - + CAST ( NULL AS INTEGER ) + - - 13 + - 13 * + 16 * + 71 + - + MAX ( + 61 ) + + 5 + SUM ( ALL 42 ) * - - ( - + 44 ) * 19 + - 93 * - 39 / + 58 * 80 * + + ( 48 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT DISTINCT + + 69 * + CASE + + 5 WHEN - + ( 64 ) THEN + 82 WHEN - 14 - - 51 THEN NULL WHEN - 14 THEN + + 27 + - SUM( ALL + 18 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2496
SELECT DISTINCT + + 69 * + CASE + + 5 WHEN - + ( 64 ) THEN + 82 WHEN - 14 - - 51 THEN NULL WHEN - 14 THEN + + 27 + - SUM ( ALL + 18 ) END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT ALL - 93 * MAX( DISTINCT - 61 ) - - + 77 * - 21 + + 39 AS col1
----
4095

skipif mysql # not compatible
query I rowsort label-2498
SELECT ALL - 93 * MAX ( DISTINCT - 61 ) - - + 77 * - 21 + + 39 AS col1
----
4095

onlyif mysql # aggregate syntax: 
query I rowsort label-2499
SELECT - 31 * + MAX( DISTINCT - + 53 ) * 44 - - 94 AS col0
----
72386

skipif mysql # not compatible
query I rowsort label-2499
SELECT - 31 * + MAX ( DISTINCT - + 53 ) * 44 - - 94 AS col0
----
72386

query I rowsort
SELECT 34 * - 4 * ( + 57 ) * - 37
----
286824

onlyif mysql # DIV for integer division: 
query I rowsort label-2501
SELECT - 7 + ( + - 91 ) + ( - 36 ) DIV - 86
----
-98

skipif mysql # not compatible
query I rowsort label-2501
SELECT - 7 + ( + - 91 ) + ( - 36 ) / - 86
----
-98

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-2503
SELECT DISTINCT - SUM( DISTINCT 70 ) + + - 57 - - 94 col2, 9, + 60 * - 62 + + 4 col2
----
-33
9
-3716

skipif mysql # not compatible
query III rowsort label-2503
SELECT DISTINCT - SUM ( DISTINCT 70 ) + + - 57 - - 94 col2, 9, + 60 * - 62 + + 4 col2
----
-33
9
-3716

query I rowsort
SELECT DISTINCT + - 97 + + 95 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT DISTINCT 22 + + SUM( 97 )
----
119

skipif mysql # not compatible
query I rowsort label-2505
SELECT DISTINCT 22 + + SUM ( 97 )
----
119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2506
SELECT - COALESCE ( - 17, 33 DIV + 70 + - COUNT( * ) )
----
17

skipif mysql # not compatible
query I rowsort label-2506
SELECT - COALESCE ( - 17, 33 / + 70 + - COUNT ( * ) )
----
17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT ALL 49 * + MAX( - 58 ) AS col0
----
-2842

skipif mysql # not compatible
query I rowsort label-2508
SELECT ALL 49 * + MAX ( - 58 ) AS col0
----
-2842

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2509
SELECT ALL 42 - + 35 DIV + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-2509
SELECT ALL 42 - + 35 / + COUNT ( * )
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-2510
SELECT + ( 38 ) DIV 18
----
2

skipif mysql # not compatible
query I rowsort label-2510
SELECT + ( 38 ) / 18
----
2

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2512
SELECT - COALESCE ( - 88, + COUNT( * ) * - + 9 * + 38 * + - CAST( - MAX( ALL - ( - 18 ) ) AS SIGNED ) )
----
88

skipif mysql # not compatible
query I rowsort label-2512
SELECT - COALESCE ( - 88, + COUNT ( * ) * - + 9 * + 38 * + - CAST ( - MAX ( ALL - ( - 18 ) ) AS INTEGER ) )
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-2513
SELECT - 61, + MIN( DISTINCT - + 0 ) + - - 37 AS col2
----
-61
37

skipif mysql # not compatible
query II rowsort label-2513
SELECT - 61, + MIN ( DISTINCT - + 0 ) + - - 37 AS col2
----
-61
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT DISTINCT MIN( ALL - ( + 56 ) ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-2514
SELECT DISTINCT MIN ( ALL - ( + 56 ) ) AS col2
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2515
SELECT ALL - - CASE + - COUNT( * ) WHEN + 39 * COUNT( * ) + - 85 - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * ( + 76 ) THEN NULL ELSE 20 END + - 58
----
-38

skipif mysql # not compatible
query I rowsort label-2515
SELECT ALL - - CASE + - COUNT ( * ) WHEN + 39 * COUNT ( * ) + - 85 - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * ( + 76 ) THEN NULL ELSE 20 END + - 58
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT + + 83 - COUNT( * ) * + + 7 + + - 81
----
-5

skipif mysql # not compatible
query I rowsort label-2516
SELECT + + 83 - COUNT ( * ) * + + 7 + + - 81
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-2517
SELECT ALL + 77 DIV + 38 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2517
SELECT ALL + 77 / + 38 AS col2
----
2

query I rowsort
SELECT + - 46 * + ( + ( + 95 ) ) + + 16
----
-4354

query II rowsort
SELECT - 53, + 25 - + 88 + + 33 AS col1
----
-53
-30

query II rowsort
SELECT + 3 AS col2, 41 + + 56 AS col1
----
3
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2521
SELECT ALL 0 * - - 66 * + + 59 + - CAST( NULL AS SIGNED ) - + + 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2521
SELECT ALL 0 * - - 66 * + + 59 + - CAST ( NULL AS INTEGER ) - + + 13 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2522
SELECT - 82 - - CASE - + 85 WHEN + 5 * + 61 + + AVG ( - 84 ) + + + 59 * 79 * - 91 * - 14 * + 11 THEN NULL WHEN + 34 * - 26 - + 6 + + 54 / - CAST( - + 39 AS SIGNED ) * - + 35 + 96 * COUNT( * ) THEN 32 + COUNT( * ) END + 14 * - 16 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2522
SELECT - 82 - - CASE - + 85 WHEN + 5 * + 61 + + AVG ( - 84 ) + + + 59 * 79 * - 91 * - 14 * + 11 THEN NULL WHEN + 34 * - 26 - + 6 + + 54 / - CAST ( - + 39 AS INTEGER ) * - + 35 + 96 * COUNT ( * ) THEN 32 + COUNT ( * ) END + 14 * - 16 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2523
SELECT - 4 * + CAST( ( 69 ) AS SIGNED ) + - CAST( - 12 AS SIGNED ) * + 14 * 16
----
2412

skipif mysql # not compatible
query I rowsort label-2523
SELECT - 4 * + CAST ( ( 69 ) AS INTEGER ) + - CAST ( - 12 AS INTEGER ) * + 14 * 16
----
2412

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2524
SELECT ALL + + CAST( 88 AS SIGNED ) * + + 21 / 24 + + - COUNT( * ) * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL + + CAST ( 88 AS INTEGER ) * + + 21 / 24 + + - COUNT ( * ) * - - CAST ( NULL AS INTEGER )
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-2526
SELECT ALL + + CAST ( - 45 AS INTEGER ) AS col2
----
-45

query I rowsort
SELECT ALL - - 92 * - 79 * - + 80 + - 28
----
581412

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2528
SELECT - - 6 + + COALESCE ( - - 45, - - 31, - 99 * - 89 + + ( - 26 ) + 90 + + + 79 ) + 27 + - 62 DIV + + COALESCE ( - 11, - + 44 ) + + NULLIF ( + 56, + CAST( + + COUNT( * ) AS SIGNED ) + - 30 ) + + ( - 64 ) * - 77
----
5067

skipif mysql # not compatible
query I rowsort label-2528
SELECT - - 6 + + COALESCE ( - - 45, - - 31, - 99 * - 89 + + ( - 26 ) + 90 + + + 79 ) + 27 + - 62 / + + COALESCE ( - 11, - + 44 ) + + NULLIF ( + 56, + CAST ( + + COUNT ( * ) AS INTEGER ) + - 30 ) + + ( - 64 ) * - 77
----
5067

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2530
SELECT + 16 * + NULLIF ( + + 24, 63 + CASE + COALESCE ( 54, 9 * - 73 + 30, + + 17 ) WHEN + 62 * - - 46 * COUNT( - - 2 ) * - 72 - 42 + CAST( NULL AS SIGNED ) THEN - ( + + 31 ) WHEN - ( - 10 ) * CAST( NULL AS SIGNED ) - 51 * 25 THEN NULL ELSE + COUNT( * ) END / ( + COUNT( * ) + - 43 * + CAST( 35 + 53 AS SIGNED ) ) ) * 46 + 77 + - 41 AS col1
----
17700

skipif mysql # not compatible
query I rowsort label-2530
SELECT + 16 * + NULLIF ( + + 24, 63 + CASE + COALESCE ( 54, 9 * - 73 + 30, + + 17 ) WHEN + 62 * - - 46 * COUNT ( - - 2 ) * - 72 - 42 + CAST ( NULL AS INTEGER ) THEN - ( + + 31 ) WHEN - ( - 10 ) * CAST ( NULL AS INTEGER ) - 51 * 25 THEN NULL ELSE + COUNT ( * ) END / ( + COUNT ( * ) + - 43 * + CAST ( 35 + 53 AS INTEGER ) ) ) * 46 + 77 + - 41 AS col1
----
17700

onlyif mysql # aggregate syntax: 
query II rowsort label-2531
SELECT ALL + - 54, - MIN( DISTINCT + 3 ) AS col2
----
-54
-3

skipif mysql # not compatible
query II rowsort label-2531
SELECT ALL + - 54, - MIN ( DISTINCT + 3 ) AS col2
----
-54
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT - - 23 * 91 * + COUNT( * ) * - 72 + 20 AS col2
----
-150676

skipif mysql # not compatible
query I rowsort label-2532
SELECT - - 23 * 91 * + COUNT ( * ) * - 72 + 20 AS col2
----
-150676

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2533
SELECT - 42 DIV - COUNT( * ) + - - 80 + - ( - COUNT( * ) ) * + 10 - + + COUNT( * ) + - + 20 * - 62 AS col1
----
1371

skipif mysql # not compatible
query I rowsort label-2533
SELECT - 42 / - COUNT ( * ) + - - 80 + - ( - COUNT ( * ) ) * + 10 - + + COUNT ( * ) + - + 20 * - 62 AS col1
----
1371

query I rowsort
SELECT - 73 * - 63
----
4599

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT - COUNT( * ) + + + 90
----
89

skipif mysql # not compatible
query I rowsort label-2535
SELECT - COUNT ( * ) + + + 90
----
89

query II rowsort
SELECT + 69, 70 AS col0
----
69
70

onlyif mysql # DIV for integer division: 
query I rowsort label-2537
SELECT - 37 DIV + 6 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-2537
SELECT - 37 / + 6 AS col0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2538
SELECT ALL CAST( NULL AS SIGNED ), 9 AS col0
----
NULL
9

skipif mysql # not compatible
query II rowsort label-2538
SELECT ALL CAST ( NULL AS INTEGER ), 9 AS col0
----
NULL
9

query I rowsort
SELECT ALL + 95 * + 71 AS col0
----
6745

onlyif mysql # DIV for integer division: 
query I rowsort label-2540
SELECT ALL 1 DIV + 48 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2540
SELECT ALL 1 / + 48 AS col2
----
0

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2543
SELECT + CAST( NULL AS SIGNED ) - + 1 * - ( 46 ) * - 37 * - 63 * 58 / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2543
SELECT + CAST ( NULL AS INTEGER ) - + 1 * - ( 46 ) * - 37 * - 63 * 58 / + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2544
SELECT + MAX( ALL - CAST( NULL AS SIGNED ) ) + 92 AS col0
----
NULL

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

query I rowsort
SELECT - 47 * - ( + 27 ) AS col0
----
1269

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT + 53 * + - COALESCE ( + COUNT( * ), + 37 ) * 80 * 1 * + + 97 AS col2
----
-411280

skipif mysql # not compatible
query I rowsort label-2546
SELECT + 53 * + - COALESCE ( + COUNT ( * ), + 37 ) * 80 * 1 * + + 97 AS col2
----
-411280

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

skipif mysql # not compatible
query I rowsort label-2547
SELECT - 65 + - COUNT ( * ) / - 93 AS col1
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2548
SELECT - CASE 92 WHEN 22 THEN NULL WHEN - CAST( 69 AS SIGNED ) * - - 68 THEN + 36 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2548
SELECT - CASE 92 WHEN 22 THEN NULL WHEN - CAST ( 69 AS INTEGER ) * - - 68 THEN + 36 END AS col1
----
NULL

query I rowsort
SELECT ALL 35 + 61 * 95 AS col2
----
5830

query I rowsort
SELECT ALL - 33 * + 33 col2
----
-1089

query I rowsort
SELECT + + 37 + + 83 * 84 AS col1
----
7009

query I rowsort
SELECT DISTINCT 9 + - 52
----
-43

query I rowsort
SELECT ALL 14 + 90 AS col1
----
104

query II rowsort
SELECT - - 54 col2, 6 * + 83 AS col2
----
54
498

query I rowsort
SELECT + 66 + 29
----
95

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2557
SELECT - CAST( - 32 AS SIGNED ) DIV 34 * ( + + 29 ) + - - NULLIF ( - COUNT( * ), + 21 ) + 32 - - ( + - COALESCE ( - 76, + COALESCE ( - 21, + ( - - COALESCE ( 31, - 24 + + 44 * 99, + 76 ) ), - NULLIF ( COUNT( * ), COUNT( * ) ) * NULLIF ( - ( - 76 ) + 40, - 81 ) - + ( COUNT( * ) ), + 65 ) ) )
----
107

skipif mysql # not compatible
query I rowsort label-2557
SELECT - CAST ( - 32 AS INTEGER ) / 34 * ( + + 29 ) + - - NULLIF ( - COUNT ( * ), + 21 ) + 32 - - ( + - COALESCE ( - 76, + COALESCE ( - 21, + ( - - COALESCE ( 31, - 24 + + 44 * 99, + 76 ) ), - NULLIF ( COUNT ( * ), COUNT ( * ) ) * NULLIF ( - ( - 76 ) + 40, - 81 ) - + ( COUNT ( * ) ), + 65 ) ) )
----
107

onlyif mysql # aggregate syntax: 
query II rowsort label-2558
SELECT + - 10 * + + 68 AS col0, + COUNT( * )
----
-680
1

skipif mysql # not compatible
query II rowsort label-2558
SELECT + - 10 * + + 68 AS col0, + COUNT ( * )
----
-680
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT ALL - - 15 / - 94 + ( - + 53 ) - COUNT( * ) * + CASE - MIN( ALL - + 36 ) WHEN 18 / - 48 + - + 4 * 47 THEN + + 29 + - 51 * - 22 + 59 + + 69 WHEN - 73 THEN SUM( DISTINCT - 67 ) / - + 40 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL - - 15 / - 94 + ( - + 53 ) - COUNT ( * ) * + CASE - MIN ( ALL - + 36 ) WHEN 18 / - 48 + - + 4 * 47 THEN + + 29 + - 51 * - 22 + 59 + + 69 WHEN - 73 THEN SUM ( DISTINCT - 67 ) / - + 40 END
----
NULL

query I rowsort
SELECT + + 35 * + 97 * ( 19 )
----
64505

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT ALL - - CASE + + COALESCE ( ( - COUNT( * ) ), 76 - 67 + + 83, ( + - 73 ) * + - 55, + 71 ) WHEN NULLIF ( - 12, + 91 * + + 52 - NULLIF ( + - 28, 17 ) ) THEN + 35 * 4 * - - 61 + - ( 65 ) WHEN + 75 + COUNT( * ) THEN + 59 + + ( + 51 ) WHEN + 54 THEN NULL WHEN MIN( DISTINCT - 12 ) THEN 85 END * - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-2561
SELECT ALL - - CASE + + COALESCE ( ( - COUNT ( * ) ), 76 - 67 + + 83, ( + - 73 ) * + - 55, + 71 ) WHEN NULLIF ( - 12, + 91 * + + 52 - NULLIF ( + - 28, 17 ) ) THEN + 35 * 4 * - - 61 + - ( 65 ) WHEN + 75 + COUNT ( * ) THEN + 59 + + ( + 51 ) WHEN + 54 THEN NULL WHEN MIN ( DISTINCT - 12 ) THEN 85 END * - 65
----
NULL

query I rowsort
SELECT ALL 39 * - 86
----
-3354

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

query I rowsort
SELECT 45 + + 36
----
81

query I rowsort
SELECT 99 * - - 28 * 3 - + - 52 AS col1
----
8368

query I rowsort
SELECT ALL - ( 26 )
----
-26

query I rowsort
SELECT DISTINCT - 9 * - + 77
----
693

onlyif mysql # DIV for integer division: 
query I rowsort label-2568
SELECT 73 DIV + + 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2568
SELECT 73 / + + 98 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2569
SELECT COUNT( * ) * + + 33 col2, 52 * + 59 - + COUNT( * )
----
33
3067

skipif mysql # not compatible
query II rowsort label-2569
SELECT COUNT ( * ) * + + 33 col2, 52 * + 59 - + COUNT ( * )
----
33
3067

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2571
SELECT SUM( DISTINCT + + 81 ) + 82 * - 35 * CAST( NULL AS SIGNED ) + - 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2571
SELECT SUM ( DISTINCT + + 81 ) + 82 * - 35 * CAST ( NULL AS INTEGER ) + - 44 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2572
SELECT 63 DIV - 6
----
-10

skipif mysql # not compatible
query I rowsort label-2572
SELECT 63 / - 6
----
-10

onlyif mysql # DIV for integer division: 
query II rowsort label-2573
SELECT 99 DIV - ( - 73 ) col1, + 71 * 3 col2
----
1
213

skipif mysql # not compatible
query II rowsort label-2573
SELECT 99 / - ( - 73 ) col1, + 71 * 3 col2
----
1
213

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT ALL + 1 * - 38 * MAX( ALL + 99 ) AS col0
----
-3762

skipif mysql # not compatible
query I rowsort label-2575
SELECT ALL + 1 * - 38 * MAX ( ALL + 99 ) AS col0
----
-3762

query I rowsort
SELECT DISTINCT - 47 + + 29
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT DISTINCT + COUNT( * ) + 72 col2
----
73

skipif mysql # not compatible
query I rowsort label-2577
SELECT DISTINCT + COUNT ( * ) + 72 col2
----
73

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2580
SELECT CAST( - + 98 AS SIGNED ) AS col1, - 66 * + 22 AS col2
----
-98
-1452

skipif mysql # not compatible
query II rowsort label-2580
SELECT CAST ( - + 98 AS INTEGER ) AS col1, - 66 * + 22 AS col2
----
-98
-1452

onlyif mysql # aggregate syntax: 
query II rowsort label-2581
SELECT 99 * - COUNT( * ) AS col0, + 54
----
-99
54

skipif mysql # not compatible
query II rowsort label-2581
SELECT 99 * - COUNT ( * ) AS col0, + 54
----
-99
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2582
SELECT DISTINCT NULLIF ( - MIN( ALL + CAST( NULL AS SIGNED ) ), - + CAST( + 60 AS SIGNED ) * + 2 + - 8 + 38 / - 97 - + 49 + - 30 ) * 70, - 77 * - 21 + + - 48 * + + 78 + 87 AS col2
----
NULL
-2040

skipif mysql # not compatible
query II rowsort label-2582
SELECT DISTINCT NULLIF ( - MIN ( ALL + CAST ( NULL AS INTEGER ) ), - + CAST ( + 60 AS INTEGER ) * + 2 + - 8 + 38 / - 97 - + 49 + - 30 ) * 70, - 77 * - 21 + + - 48 * + + 78 + 87 AS col2
----
NULL
-2040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2583
SELECT ALL MIN( + CAST( NULL AS SIGNED ) ) * + + CASE + 87 WHEN + AVG ( + 97 ) THEN NULL WHEN + COALESCE ( + - SUM( - 27 ), + - 14 * + COUNT( * ) ) + MAX( ALL - 45 ) THEN + CASE - - 28 WHEN SUM( DISTINCT + 81 ) THEN + - ( 0 ) ELSE NULL END / + + 61 WHEN + 10 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2583
SELECT ALL MIN ( + CAST ( NULL AS INTEGER ) ) * + + CASE + 87 WHEN + AVG ( + 97 ) THEN NULL WHEN + COALESCE ( + - SUM ( - 27 ), + - 14 * + COUNT ( * ) ) + MAX ( ALL - 45 ) THEN + CASE - - 28 WHEN SUM ( DISTINCT + 81 ) THEN + - ( 0 ) ELSE NULL END / + + 61 WHEN + 10 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - + 90 * + 62 + + + 72
----
-5508

query I rowsort
SELECT ALL 27 * + 45
----
1215

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT DISTINCT 32 - + 73 * MAX( + - ( + 25 ) ) AS col0
----
1857

skipif mysql # not compatible
query I rowsort label-2586
SELECT DISTINCT 32 - + 73 * MAX ( + - ( + 25 ) ) AS col0
----
1857

query I rowsort
SELECT 48 - 64
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2588
SELECT - CAST( NULL AS SIGNED ) / + 18 + + COUNT( * ) + + 2 + - + 43 + - ( 36 ) * MIN( + - 81 ) * 55 + + 7 * + COUNT( ALL + CAST( NULL AS SIGNED ) ) + + + 11 / - AVG ( ALL + - 83 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2588
SELECT - CAST ( NULL AS INTEGER ) / + 18 + + COUNT ( * ) + + 2 + - + 43 + - ( 36 ) * MIN ( + - 81 ) * 55 + + 7 * + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) + + + 11 / - AVG ( ALL + - 83 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT ALL 26 * - COUNT( * ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-2589
SELECT ALL 26 * - COUNT ( * ) AS col1
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2590
SELECT ALL ( COUNT( * ) ) DIV - 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2590
SELECT ALL ( COUNT ( * ) ) / - 55 AS col1
----
0

query II rowsort
SELECT 64 * 73 * - 77 AS col2, 56 AS col0
----
-359744
56

query I rowsort
SELECT ALL - 23 + 30 AS col2
----
7

query I rowsort
SELECT 83 + + 95 * + 47 + + 67 * + ( + 97 ) AS col0
----
11047

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2594
SELECT ALL 66 * 98 / - CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2594
SELECT ALL 66 * 98 / - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT 89 * + 17 AS col2
----
1513

query I rowsort
SELECT ALL + 60 + - + 96
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT DISTINCT 71 + - COUNT( * ) * 98 col2
----
-27

skipif mysql # not compatible
query I rowsort label-2597
SELECT DISTINCT 71 + - COUNT ( * ) * 98 col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT DISTINCT 89 + - 19 / - - COALESCE ( COALESCE ( + 62, - 50 ), - 10 ) + - CASE + 10 WHEN + 90 THEN NULL WHEN 52 * - 31 THEN + COUNT( * ) - + MAX( - 96 ) - - + SUM( + + 50 ) END * COUNT( * ) + - 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2598
SELECT DISTINCT 89 + - 19 / - - COALESCE ( COALESCE ( + 62, - 50 ), - 10 ) + - CASE + 10 WHEN + 90 THEN NULL WHEN 52 * - 31 THEN + COUNT ( * ) - + MAX ( - 96 ) - - + SUM ( + + 50 ) END * COUNT ( * ) + - 12 AS col0
----
NULL

query II rowsort
SELECT ALL 99 AS col1, ( + + 8 )
----
99
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT 89 + + ( 82 ) - CASE WHEN ( NULL ) IS NULL THEN - CASE + 3 WHEN - 69 THEN NULL WHEN + CASE 45 WHEN 48 THEN NULL WHEN + - 74 + 50 THEN - 29 * 57 * + - SUM( ALL + - ( 39 ) ) + - - 48 END * 33 * + MIN( DISTINCT 71 ) / + 98 THEN 99 END ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2600
SELECT 89 + + ( 82 ) - CASE WHEN ( NULL ) IS NULL THEN - CASE + 3 WHEN - 69 THEN NULL WHEN + CASE 45 WHEN 48 THEN NULL WHEN + - 74 + 50 THEN - 29 * 57 * + - SUM ( ALL + - ( 39 ) ) + - - 48 END * 33 * + MIN ( DISTINCT 71 ) / + 98 THEN 99 END ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2601
SELECT ALL 24 + + CAST( CASE - 97 WHEN - ( - 83 ) * 23 THEN + 64 - - 16 ELSE NULL END AS SIGNED ) * COUNT( * ) * 38 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2601
SELECT ALL 24 + + CAST ( CASE - 97 WHEN - ( - 83 ) * 23 THEN + 64 - - 16 ELSE NULL END AS INTEGER ) * COUNT ( * ) * 38 col0
----
NULL

query I rowsort
SELECT 4 - + 49
----
-45

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

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

query I rowsort
SELECT - 35 + + 3
----
-32

query I rowsort
SELECT 37 * 47
----
1739

query I rowsort
SELECT ALL + 65 * - 34
----
-2210

query I rowsort
SELECT ALL - 74 * - + 53
----
3922

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2608
SELECT - 1 + + 68 * + + CAST( - CASE + 16 WHEN + 62 * - MIN( DISTINCT 8 ) + - - 35 + - 69 * + + 72 THEN NULL WHEN 53 THEN + 32 + - 77 END AS SIGNED ) * - + 74 + + - COUNT( * ) * - CASE - 86 WHEN - COUNT( * ) THEN - 40 WHEN - 35 THEN + + 65 / + 94 * - 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2608
SELECT - 1 + + 68 * + + CAST ( - CASE + 16 WHEN + 62 * - MIN ( DISTINCT 8 ) + - - 35 + - 69 * + + 72 THEN NULL WHEN 53 THEN + 32 + - 77 END AS INTEGER ) * - + 74 + + - COUNT ( * ) * - CASE - 86 WHEN - COUNT ( * ) THEN - 40 WHEN - 35 THEN + + 65 / + 94 * - 78 END
----
NULL

query I rowsort
SELECT 16 * + 89
----
1424

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

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

query II rowsort
SELECT ALL 17, 69 col0
----
17
69

query I rowsort
SELECT DISTINCT + 72 * - - ( 76 ) * - 17 col1
----
-93024

query I rowsort
SELECT ALL - - 88 * - COALESCE ( - + 54, + - ( + 86 ) ) * 31 + - 53 * + + 25 col1
----
145987

query II rowsort
SELECT 88 AS col0, - COALESCE ( 85, - 54 * - 75 + + 83 * 31 + 5 + - + 51 * + 64, 51 ) * + - 13
----
88
1105

query I rowsort
SELECT - 65 + + 41 * + 83 AS col1
----
3338

query I rowsort
SELECT - 4 * 98 + + 59 * - + 26 + - 6 + + 6 * 30 AS col1
----
-1752

onlyif mysql # DIV for integer division: 
query I rowsort label-2617
SELECT + + 60 DIV 28 * - - 16 + + 58 - - ( + 97 ) * + - 1
----
-7

skipif mysql # not compatible
query I rowsort label-2617
SELECT + + 60 / 28 * - - 16 + + 58 - - ( + 97 ) * + - 1
----
-7

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

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

query I rowsort
SELECT + 92 + - 89 AS col2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2620
SELECT ALL CASE 82 WHEN - 10 + 75 * + 8 * COUNT( * ) THEN 38 ELSE NULL END * - 18, - 31 + + CASE + 63 WHEN 86 / 83 THEN - 29 * 31 - - + AVG ( DISTINCT - 72 ) * - COUNT( * ) * + + 83 + 39 + - COUNT( * ) + COUNT( * ) * - 41 * - 24 + 62 / 83 ELSE NULL END * 45 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2620
SELECT ALL CASE 82 WHEN - 10 + 75 * + 8 * COUNT ( * ) THEN 38 ELSE NULL END * - 18, - 31 + + CASE + 63 WHEN 86 / 83 THEN - 29 * 31 - - + AVG ( DISTINCT - 72 ) * - COUNT ( * ) * + + 83 + 39 + - COUNT ( * ) + COUNT ( * ) * - 41 * - 24 + 62 / 83 ELSE NULL END * 45 AS col2
----
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT 27 * + + 80 + + COUNT( * )
----
2161

skipif mysql # not compatible
query I rowsort label-2622
SELECT 27 * + + 80 + + COUNT ( * )
----
2161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2623
SELECT DISTINCT - CAST( - + 51 AS SIGNED ) * 58 + + + 17 AS col2, - CAST( NULL AS SIGNED ) + - 87 * COUNT( * ) * + - 60 AS col1
----
2975
NULL

skipif mysql # not compatible
query II rowsort label-2623
SELECT DISTINCT - CAST ( - + 51 AS INTEGER ) * 58 + + + 17 AS col2, - CAST ( NULL AS INTEGER ) + - 87 * COUNT ( * ) * + - 60 AS col1
----
2975
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2624
SELECT COUNT( * ) * + CAST( NULL AS SIGNED ) - + CAST( COUNT( * ) AS SIGNED ), - COALESCE ( + COUNT( * ), + 80 DIV - COUNT( * ) ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-2624
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ) - + CAST ( COUNT ( * ) AS INTEGER ), - COALESCE ( + COUNT ( * ), + 80 / - COUNT ( * ) ) AS col1
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT - SUM( ALL + - 95 ) - - - MIN( + 85 )
----
10

skipif mysql # not compatible
query I rowsort label-2625
SELECT - SUM ( ALL + - 95 ) - - - MIN ( + 85 )
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2626
SELECT DISTINCT 80 * + - CAST( NULL AS SIGNED ) + 1 - - 73 * + 85 * - 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2626
SELECT DISTINCT 80 * + - CAST ( NULL AS INTEGER ) + 1 - - 73 * + 85 * - 5 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2627
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + - 54 + 53 / AVG ( DISTINCT 9 ) + - - 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2627
SELECT DISTINCT CAST ( NULL AS REAL ) * + - 54 + 53 / AVG ( DISTINCT 9 ) + - - 60 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT MAX( ALL - + 7 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-2628
SELECT MAX ( ALL - + 7 ) AS col2
----
-7

query I rowsort
SELECT CASE 82 WHEN 20 THEN NULL ELSE - 35 END * + 41 * 97 + + 9
----
-139186

onlyif mysql # aggregate syntax: 
query I rowsort label-2630
SELECT + ( - - 82 ) * + - ( + + COUNT( * ) ) * 74 + - 75 * - 51 AS col1
----
-2243

skipif mysql # not compatible
query I rowsort label-2630
SELECT + ( - - 82 ) * + - ( + + COUNT ( * ) ) * 74 + - 75 * - 51 AS col1
----
-2243

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2631
SELECT DISTINCT COUNT( * ) * - + 82 + 32 - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2631
SELECT DISTINCT COUNT ( * ) * - + 82 + 32 - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT DISTINCT CASE - 27 WHEN + 69 / + 92 THEN - 47 + MIN( ALL - 19 ) WHEN - - 12 THEN NULL ELSE + 24 END * - - 90 + + 98
----
2258

skipif mysql # not compatible
query I rowsort label-2632
SELECT DISTINCT CASE - 27 WHEN + 69 / + 92 THEN - 47 + MIN ( ALL - 19 ) WHEN - - 12 THEN NULL ELSE + 24 END * - - 90 + + 98
----
2258

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

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

query I rowsort
SELECT ALL 76 * - 82 AS col1
----
-6232

query I rowsort
SELECT + 88 + + - 19 AS col1
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-2636
SELECT - ( - 55 ), - MIN( - 97 ) * - 47 + - 25 AS col1
----
55
-4584

skipif mysql # not compatible
query II rowsort label-2636
SELECT - ( - 55 ), - MIN ( - 97 ) * - 47 + - 25 AS col1
----
55
-4584

query I rowsort
SELECT - COALESCE ( + + 4, + 79 * - - 50 + + - 71 + + 81 ) AS col2
----
-4

query I rowsort
SELECT + - ( - + 78 ) * - 50 AS col1
----
-3900

query I rowsort
SELECT DISTINCT 64 * + 14
----
896

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT ALL + COUNT( * ) - - CASE 39 WHEN + - 89 * + + 20 + - + COUNT( - 14 ) THEN - + 23 + - 88 ELSE - + 97 END + - COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-2640
SELECT ALL + COUNT ( * ) - - CASE 39 WHEN + - 89 * + + 20 + - + COUNT ( - 14 ) THEN - + 23 + - 88 ELSE - + 97 END + - COUNT ( * )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT - COUNT( * ) * 53 col2
----
-53

skipif mysql # not compatible
query I rowsort label-2641
SELECT - COUNT ( * ) * 53 col2
----
-53

query I rowsort
SELECT + ( 26 ) + - 79 * - 6
----
500

onlyif mysql # DIV for integer division: 
query I rowsort label-2643
SELECT ALL 9 DIV + 89 col1
----
0

skipif mysql # not compatible
query I rowsort label-2643
SELECT ALL 9 / + 89 col1
----
0

query II rowsort
SELECT + 79 + 33 * - 68 * - 27, 91 + - - 81 AS col2
----
60667
172

query I rowsort
SELECT NULLIF ( - 90, + 60 ) AS col0
----
-90

query I rowsort
SELECT + ( + 46 ) + + + 94
----
140

query I rowsort
SELECT + ( 99 ) col2
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2648
SELECT - 76 * CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) - - ( + ( + - 38 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2648
SELECT - 76 * CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) - - ( + ( + - 38 ) ) AS col1
----
NULL

query I rowsort
SELECT - + 21 - + 47 * - - 22
----
-1055

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2650
SELECT ALL + CAST( + 74 AS SIGNED ) AS col2, + 78 AS col2
----
74
78

skipif mysql # not compatible
query II rowsort label-2650
SELECT ALL + CAST ( + 74 AS INTEGER ) AS col2, + 78 AS col2
----
74
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2651
SELECT ALL COALESCE ( - + COUNT( * ), + - CAST( - CAST( - 2 AS SIGNED ) AS SIGNED ), + 87 * - 76 )
----
-1

skipif mysql # not compatible
query I rowsort label-2651
SELECT ALL COALESCE ( - + COUNT ( * ), + - CAST ( - CAST ( - 2 AS INTEGER ) AS INTEGER ), + 87 * - 76 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2652
SELECT - 38 * + CAST( - 73 AS SIGNED ) AS col2
----
2774

skipif mysql # not compatible
query I rowsort label-2652
SELECT - 38 * + CAST ( - 73 AS INTEGER ) AS col2
----
2774

query I rowsort
SELECT DISTINCT + - 19 * - 2 * - 40 AS col2
----
-1520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2654
SELECT + 79 + - CAST( 10 AS SIGNED ) - + 7
----
62

skipif mysql # not compatible
query I rowsort label-2654
SELECT + 79 + - CAST ( 10 AS INTEGER ) - + 7
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT + SUM( DISTINCT + 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-2655
SELECT + SUM ( DISTINCT + 79 ) AS col0
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2656
SELECT ALL + COALESCE ( + - 8, 15 DIV + ( - + 32 ) - - 65, COUNT( * ), + + 45 ) col2
----
-8

skipif mysql # not compatible
query I rowsort label-2656
SELECT ALL + COALESCE ( + - 8, 15 / + ( - + 32 ) - - 65, COUNT ( * ), + + 45 ) col2
----
-8

query I rowsort
SELECT 41 * - 18 + 90 AS col0
----
-648

query I rowsort
SELECT - 61 - + - 23 AS col2
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2659
SELECT + 20 DIV 4 + + COALESCE ( - - 98, + MIN( 66 ) DIV 1 + 60, - COUNT( 0 ) * MIN( DISTINCT + 12 ) + + 93 DIV - 38 - - - 51 ) + + 51 * - 33 * 3 AS col0
----
-4946

skipif mysql # not compatible
query I rowsort label-2659
SELECT + 20 / 4 + + COALESCE ( - - 98, + MIN ( 66 ) / 1 + 60, - COUNT ( 0 ) * MIN ( DISTINCT + 12 ) + + 93 / - 38 - - - 51 ) + + 51 * - 33 * 3 AS col0
----
-4946

query I rowsort
SELECT + 32 * + 93 + - 44 AS col2
----
2932

onlyif mysql # DIV for integer division: 
query I rowsort label-2661
SELECT ALL 45 DIV + - ( - + COALESCE ( ( - 98 ), - 15 ) ) + - 92
----
-92

skipif mysql # not compatible
query I rowsort label-2661
SELECT ALL 45 / + - ( - + COALESCE ( ( - 98 ), - 15 ) ) + - 92
----
-92

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2663
SELECT - 25 + + ( + 40 ) col2, + MIN( + 69 )
----
15
69

skipif mysql # not compatible
query II rowsort label-2663
SELECT - 25 + + ( + 40 ) col2, + MIN ( + 69 )
----
15
69

onlyif mysql # aggregate syntax: 
query II rowsort label-2664
SELECT DISTINCT + COALESCE ( - - 1, - COUNT( * ) ) col2, + 17 + + COALESCE ( + - 63, - 59 )
----
1
-46

skipif mysql # not compatible
query II rowsort label-2664
SELECT DISTINCT + COALESCE ( - - 1, - COUNT ( * ) ) col2, + 17 + + COALESCE ( + - 63, - 59 )
----
1
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT DISTINCT COUNT( * ) * - NULLIF ( + 68, + 62 / 30 * - COALESCE ( - + COUNT( * ), 61 ) ) + - 79 + 92 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-2665
SELECT DISTINCT COUNT ( * ) * - NULLIF ( + 68, + 62 / 30 * - COALESCE ( - + COUNT ( * ), 61 ) ) + - 79 + 92 AS col1
----
-55

query I rowsort
SELECT DISTINCT - 21 * 5 * - COALESCE ( + - 44, + + 23 ) + + - 77 AS col2
----
-4697

query I rowsort
SELECT DISTINCT + 88 * - 75
----
-6600

query I rowsort
SELECT 97 * + 0 + + + CASE WHEN NULL IS NULL THEN - 68 END AS col1
----
-68

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

skipif mysql # not compatible
query I rowsort label-2669
SELECT - ( 39 ) * + - COUNT ( * ) / - 45
----
0

query I rowsort
SELECT + 71 * 46 AS col0
----
3266

query I rowsort
SELECT + 47 + + 58 AS col2
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT - CASE + 71 WHEN - ( - 5 ) THEN 24 + + 32 ELSE COUNT( * ) + + 32 * - 9 - - COUNT( * ) + 97 + - 74 END + - - 81 + 0 * + - 54 AS col2
----
344

skipif mysql # not compatible
query I rowsort label-2672
SELECT - CASE + 71 WHEN - ( - 5 ) THEN 24 + + 32 ELSE COUNT ( * ) + + 32 * - 9 - - COUNT ( * ) + 97 + - 74 END + - - 81 + 0 * + - 54 AS col2
----
344

query I rowsort
SELECT - 35 * 26
----
-910

query I rowsort
SELECT + 41 * + 3 AS col2
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-2675
SELECT DISTINCT 9 DIV + 78 + + 36
----
36

skipif mysql # not compatible
query I rowsort label-2675
SELECT DISTINCT 9 / + 78 + + 36
----
36

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT - + 53 * - + COUNT( * ) + 91
----
144

skipif mysql # not compatible
query I rowsort label-2677
SELECT - + 53 * - + COUNT ( * ) + 91
----
144

query I rowsort
SELECT ALL 36 * - + 54 * - 16 AS col0
----
31104

onlyif mysql # DIV for integer division: 
query I rowsort label-2679
SELECT DISTINCT - 55 DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-2679
SELECT DISTINCT - 55 / - 90
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT 64 + + ( 91 ) + MIN( - 74 ) * - - COUNT( * ) * + 68
----
-4877

skipif mysql # not compatible
query I rowsort label-2680
SELECT 64 + + ( 91 ) + MIN ( - 74 ) * - - COUNT ( * ) * + 68
----
-4877

query I rowsort
SELECT - 19 + + 7 + - 35
----
-47

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

skipif mysql # not compatible
query I rowsort label-2682
SELECT 23 / + 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT ( - MIN( - - 3 ) ) col0
----
-3

skipif mysql # not compatible
query I rowsort label-2683
SELECT ( - MIN ( - - 3 ) ) col0
----
-3

query I rowsort
SELECT ALL + 81 + + 54 * - ( - 5 ) AS col2
----
351

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2685
SELECT + COALESCE ( + + 87, + - ( - + CAST( NULL AS SIGNED ) ) ) + 54 col2
----
141

skipif mysql # not compatible
query I rowsort label-2685
SELECT + COALESCE ( + + 87, + - ( - + CAST ( NULL AS INTEGER ) ) ) + 54 col2
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT DISTINCT - ( - 6 ) + + NULLIF ( + 64, 64 ) + + - 7 + + COUNT( * ) + 96 * + 47 * + ( + 37 ) * - 89 * - 2 * - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-2686
SELECT DISTINCT - ( - 6 ) + + NULLIF ( + 64, 64 ) + + - 7 + + COUNT ( * ) + 96 * + 47 * + ( + 37 ) * - 89 * - 2 * - 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT ALL + 90 + + SUM( ALL - - 19 )
----
109

skipif mysql # not compatible
query I rowsort label-2687
SELECT ALL + 90 + + SUM ( ALL - - 19 )
----
109

query II rowsort
SELECT ALL 10 + - 53 - 10 AS col0, + 57 * - 76 AS col0
----
-53
-4332

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT ALL 49 + MIN( DISTINCT 55 ) AS col0
----
104

skipif mysql # not compatible
query I rowsort label-2689
SELECT ALL 49 + MIN ( DISTINCT 55 ) AS col0
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2690
SELECT - 64 AS col2, COALESCE ( - 41, CASE + 97 WHEN - + 69 THEN - 73 END * + COUNT( * ), MAX( ALL - 69 ) ) * 2 DIV + 71 AS col0
----
-64
-1

skipif mysql # not compatible
query II rowsort label-2690
SELECT - 64 AS col2, COALESCE ( - 41, CASE + 97 WHEN - + 69 THEN - 73 END * + COUNT ( * ), MAX ( ALL - 69 ) ) * 2 / + 71 AS col0
----
-64
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2691
SELECT 92 + + 61 - + COUNT( * ) + 2 + - CAST( + + COALESCE ( + 20, + 38 / + 7 ) AS SIGNED )
----
134

skipif mysql # not compatible
query I rowsort label-2691
SELECT 92 + + 61 - + COUNT ( * ) + 2 + - CAST ( + + COALESCE ( + 20, + 38 / + 7 ) AS INTEGER )
----
134

query I rowsort
SELECT 63 * 7 AS col2
----
441

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT ALL 14 + 35 + + 15 + + COUNT( * ) * 79 AS col1
----
143

skipif mysql # not compatible
query I rowsort label-2693
SELECT ALL 14 + 35 + + 15 + + COUNT ( * ) * 79 AS col1
----
143

query I rowsort
SELECT DISTINCT 72 + + - 27
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT ALL - NULLIF ( - + 28, COALESCE ( COUNT( * ), - + 37 + + + 46 ) * - COUNT( * ) + 89 )
----
28

skipif mysql # not compatible
query I rowsort label-2695
SELECT ALL - NULLIF ( - + 28, COALESCE ( COUNT ( * ), - + 37 + + + 46 ) * - COUNT ( * ) + 89 )
----
28

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

query I rowsort
SELECT DISTINCT 66 * 22
----
1452

query I rowsort
SELECT DISTINCT - 28 - - 18 * + 33 + - 65 * + - 24 AS col2
----
2126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2699
SELECT ALL - CAST( - 49 AS SIGNED ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-2699
SELECT ALL - CAST ( - 49 AS INTEGER ) AS col1
----
49

query II rowsort
SELECT + 42 AS col2, + COALESCE ( - 45, ( - - 11 ) * + + 60, + 0 ) + - 72 AS col2
----
42
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT 14 + 10 * COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-2701
SELECT 14 + 10 * COUNT ( * )
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2702
SELECT DISTINCT - COALESCE ( - 93, - - COALESCE ( + 70, + - 28 ), NULLIF ( + - NULLIF ( - 11, - COALESCE ( - 99, - - 58, 72 ) ), - CAST( - 64 AS SIGNED ) + - 14 + + 26 * - - 7 * + CASE 84 WHEN + 58 / - SUM( + 45 ) + 25 THEN + 9 END + + ( + - 68 ) ) ) - 84 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-2702
SELECT DISTINCT - COALESCE ( - 93, - - COALESCE ( + 70, + - 28 ), NULLIF ( + - NULLIF ( - 11, - COALESCE ( - 99, - - 58, 72 ) ), - CAST ( - 64 AS INTEGER ) + - 14 + + 26 * - - 7 * + CASE 84 WHEN + 58 / - SUM ( + 45 ) + 25 THEN + 9 END + + ( + - 68 ) ) ) - 84 AS col1
----
9

query II rowsort
SELECT 14 AS col2, 48 + - 73
----
14
-25

query I rowsort
SELECT 7 * + ( - + 72 ) AS col2
----
-504

query I rowsort
SELECT ALL - 39 * CASE - 78 WHEN - 81 THEN - 19 END / + ( - 7 ) col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 59 * 66 + - 81 * - 97 * - 45
----
-357459

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2708
SELECT ALL - + COUNT( * ) AS col2, - CAST( NULL AS DECIMAL )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-2708
SELECT ALL - + COUNT ( * ) AS col2, - CAST ( NULL AS REAL )
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT ALL - + 81 * CASE - 89 WHEN 83 * + COUNT( * ) * - 17 THEN - 81 + 10 * + - 49 WHEN + 29 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2709
SELECT ALL - + 81 * CASE - 89 WHEN 83 * + COUNT ( * ) * - 17 THEN - 81 + 10 * + - 49 WHEN + 29 THEN NULL END
----
NULL

query II rowsort
SELECT 64 AS col0, + 44 + - 15 AS col1
----
64
29

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

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

query I rowsort
SELECT + 61 * + - 65
----
-3965

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT SUM( DISTINCT + 4 ) * - 21 - - SUM( ALL 63 ) col0
----
-21

skipif mysql # not compatible
query I rowsort label-2713
SELECT SUM ( DISTINCT + 4 ) * - 21 - - SUM ( ALL 63 ) col0
----
-21

query I rowsort
SELECT ALL + 90 + - + ( 15 )
----
75

query I rowsort
SELECT DISTINCT - - 39 + + 56
----
95

query I rowsort
SELECT ALL - ( 5 ) + - 0
----
-5

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

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

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

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

query I rowsort
SELECT - NULLIF ( + + 22, 94 )
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2720
SELECT ALL - CAST( + + 13 AS SIGNED ) + ( - - COUNT( * ) ) * - 96
----
-109

skipif mysql # not compatible
query I rowsort label-2720
SELECT ALL - CAST ( + + 13 AS INTEGER ) + ( - - COUNT ( * ) ) * - 96
----
-109

query I rowsort
SELECT 27 + - ( - 31 ) AS col2
----
58

query I rowsort
SELECT + ( - 75 ) + - CASE + ( + 21 ) WHEN - 4 THEN + + COALESCE ( + 20, + - 20 + - 36 + + 75, + + AVG ( ALL 81 ), + 16 ) END
----
NULL

query I rowsort
SELECT 17 * - 70 AS col2
----
-1190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2724
SELECT ALL - 58 + - COUNT( * ) + + + CAST( + 9 AS SIGNED ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-2724
SELECT ALL - 58 + - COUNT ( * ) + + + CAST ( + 9 AS INTEGER ) AS col0
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-2725
SELECT - COUNT( - - 22 ), 89 col0
----
-1
89

skipif mysql # not compatible
query II rowsort label-2725
SELECT - COUNT ( - - 22 ), 89 col0
----
-1
89

query I rowsort
SELECT ALL - 14 * - - 51 AS col0
----
-714

query I rowsort
SELECT ALL 31 * - 53 * + + 73 * + COALESCE ( + 68, + 10 )
----
-8155852

query II rowsort
SELECT ALL 8 - + 5 AS col2, - 69 col0
----
3
-69

query II rowsort
SELECT DISTINCT 66 * - - 70 AS col0, + 47 * + - 40
----
4620
-1880

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

skipif mysql # not compatible
query I rowsort label-2730
SELECT CAST ( NULL AS INTEGER ) / - 70 + - 32
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2731
SELECT ALL + 50 * + + COALESCE ( + 59, COUNT( * ) * 16 * + 35 * - - SUM( DISTINCT + + 80 ), - - 52 * + 28 + ( - 17 ) * + - CASE - - 77 WHEN 93 * ( + CAST( NULL AS SIGNED ) ) * - + 87 + 61 - CAST( NULL AS SIGNED ) + + + COALESCE ( - + 12, + + 70 ) + + 1 * + 44 * 34 + + 73 THEN ( + 19 ) END ) - - 33
----
2983

skipif mysql # not compatible
query I rowsort label-2731
SELECT ALL + 50 * + + COALESCE ( + 59, COUNT ( * ) * 16 * + 35 * - - SUM ( DISTINCT + + 80 ), - - 52 * + 28 + ( - 17 ) * + - CASE - - 77 WHEN 93 * ( + CAST ( NULL AS INTEGER ) ) * - + 87 + 61 - CAST ( NULL AS INTEGER ) + + + COALESCE ( - + 12, + + 70 ) + + 1 * + 44 * 34 + + 73 THEN ( + 19 ) END ) - - 33
----
2983

query I rowsort
SELECT 98 * - 90
----
-8820

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT COUNT( * ) * + + 27 * - 17 + 97 AS col0
----
-362

skipif mysql # not compatible
query I rowsort label-2734
SELECT COUNT ( * ) * + + 27 * - 17 + 97 AS col0
----
-362

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2735
SELECT - 86 * CASE 23 WHEN - - SUM( - + ( - CAST( NULL AS SIGNED ) ) ) * + + 59 + - 0 * + 40 * - 67 THEN + COUNT( * ) ELSE 28 END + - + 56 - + COUNT( * )
----
-2465

skipif mysql # not compatible
query I rowsort label-2735
SELECT - 86 * CASE 23 WHEN - - SUM ( - + ( - CAST ( NULL AS INTEGER ) ) ) * + + 59 + - 0 * + 40 * - 67 THEN + COUNT ( * ) ELSE 28 END + - + 56 - + COUNT ( * )
----
-2465

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT + COUNT( 60 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2736
SELECT + COUNT ( 60 ) AS col0
----
1

query I rowsort
SELECT ALL - CASE 15 WHEN - 46 THEN + 69 * - 79 WHEN - + 71 THEN NULL END
----
NULL

query II rowsort
SELECT ALL 18 * 62 AS col1, 65 + 88 col1
----
1116
153

query I rowsort
SELECT 16 * - 7 + - 93 + - - 0 AS col2
----
-205

query I rowsort
SELECT ALL 11 * + 70
----
770

query I rowsort
SELECT ALL + + 9 col1
----
9

query I rowsort
SELECT + + 75 + 79
----
154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2743
SELECT ALL + COUNT( * ) DIV + - ( - - 88 ) DIV 38
----
0

skipif mysql # not compatible
query I rowsort label-2743
SELECT ALL + COUNT ( * ) / + - ( - - 88 ) / 38
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2744
SELECT DISTINCT - NULLIF ( 49, - CAST( + 80 AS SIGNED ) ) + 29 - + 4 DIV - + 99 col1
----
-20

skipif mysql # not compatible
query I rowsort label-2744
SELECT DISTINCT - NULLIF ( 49, - CAST ( + 80 AS INTEGER ) ) + 29 - + 4 / - + 99 col1
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2745
SELECT ALL - 14 + - 10 + - + 36 * CAST( + 24 AS SIGNED ) AS col0
----
-888

skipif mysql # not compatible
query I rowsort label-2745
SELECT ALL - 14 + - 10 + - + 36 * CAST ( + 24 AS INTEGER ) AS col0
----
-888

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT - - ( - - 50 ) + + ( - COUNT( * ) ) * - 8 + + 73
----
131

skipif mysql # not compatible
query I rowsort label-2746
SELECT - - ( - - 50 ) + + ( - COUNT ( * ) ) * - 8 + + 73
----
131

query I rowsort
SELECT ALL - 53 + - + 63 + + 84
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT - COUNT( - 58 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-2748
SELECT - COUNT ( - 58 ) col0
----
-1

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

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

query I rowsort
SELECT ALL + + ( - - 4 ) + - + 68 - - 72 * - 20
----
-1504

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT - ( NULLIF ( 24, + ( + ( - MAX( - 95 ) ) ) * - - 75 + + 85 ) ) * 0
----
0

skipif mysql # not compatible
query I rowsort label-2751
SELECT - ( NULLIF ( 24, + ( + ( - MAX ( - 95 ) ) ) * - - 75 + + 85 ) ) * 0
----
0

query I rowsort
SELECT + 45 + - 96 + 77
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT ALL CASE + 24 WHEN - COUNT( * ) THEN + 85 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2753
SELECT ALL CASE + 24 WHEN - COUNT ( * ) THEN + 85 END AS col1
----
NULL

query I rowsort
SELECT ALL NULLIF ( + - 52, + - 76 * + 51 ) AS col0
----
-52

query I rowsort
SELECT DISTINCT ( + NULLIF ( + 47, 38 ) ) AS col0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2756
SELECT + CAST( + - 0 AS SIGNED ) * + - ( + 28 ) + + 27 + 30 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-2756
SELECT + CAST ( + - 0 AS INTEGER ) * + - ( + 28 ) + + 27 + 30 AS col1
----
57

query II rowsort
SELECT - 26 AS col2, 52 + + 79 AS col1
----
-26
131

query I rowsort
SELECT + 72 * + 29 AS col1
----
2088

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

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

query I rowsort
SELECT + 24 + - 19
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT ALL 48 * CASE 50 WHEN - + 81 - - NULLIF ( - COALESCE ( + + COUNT( + + 49 ), - 97 ), - - 92 ) - - 52 + - 94 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2761
SELECT ALL 48 * CASE 50 WHEN - + 81 - - NULLIF ( - COALESCE ( + + COUNT ( + + 49 ), - 97 ), - - 92 ) - - 52 + - 94 THEN COUNT ( * ) END
----
NULL

query I rowsort
SELECT DISTINCT - 66 * - 47
----
3102

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT DISTINCT - MAX( ALL 59 ) * 74 * + - 1 AS col2
----
4366

skipif mysql # not compatible
query I rowsort label-2763
SELECT DISTINCT - MAX ( ALL 59 ) * 74 * + - 1 AS col2
----
4366

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT DISTINCT + MIN( ALL - 66 ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-2764
SELECT DISTINCT + MIN ( ALL - 66 ) AS col0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2765
SELECT DISTINCT - 3 * + COUNT( * ) + NULLIF ( + CAST( NULL AS SIGNED ), 76 * - 41 ) * + - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-2765
SELECT DISTINCT - 3 * + COUNT ( * ) + NULLIF ( + CAST ( NULL AS INTEGER ), 76 * - 41 ) * + - 83
----
NULL

query I rowsort
SELECT + 16 * 79
----
1264

onlyif mysql # DIV for integer division: 
query II rowsort label-2767
SELECT + 75 AS col1, - 91 DIV - 93
----
75
0

skipif mysql # not compatible
query II rowsort label-2767
SELECT + 75 AS col1, - 91 / - 93
----
75
0

query II rowsort
SELECT ALL + 18 AS col0, 60
----
18
60

query I rowsort
SELECT ALL + - 24 * + + 25 + 53 + - - 17
----
-530

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT ALL + 25 * 50 + + CASE - - 11 WHEN - 51 - - 89 - + COUNT( * ) + + + 74 THEN 19 END * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2770
SELECT ALL + 25 * 50 + + CASE - - 11 WHEN - 51 - - 89 - + COUNT ( * ) + + + 74 THEN 19 END * - COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2771
SELECT DISTINCT - COUNT( * ) * + 11 + - CAST( - - MIN( ALL - 37 ) AS SIGNED ) * + COUNT( - 40 )
----
26

skipif mysql # not compatible
query I rowsort label-2771
SELECT DISTINCT - COUNT ( * ) * + 11 + - CAST ( - - MIN ( ALL - 37 ) AS INTEGER ) * + COUNT ( - 40 )
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2772
SELECT ALL + CASE 26 WHEN - + 99 THEN COUNT( * ) ELSE + + 20 * - 53 * + 63 + 46 * + 34 - - - MAX( ALL + 22 ) DIV - 74 END AS col0
----
-65216

skipif mysql # not compatible
query I rowsort label-2772
SELECT ALL + CASE 26 WHEN - + 99 THEN COUNT ( * ) ELSE + + 20 * - 53 * + 63 + 46 * + 34 - - - MAX ( ALL + 22 ) / - 74 END AS col0
----
-65216

query I rowsort
SELECT ALL + 96 * 85 + 9
----
8169

query I rowsort
SELECT + COALESCE ( + ( 8 ), 24 )
----
8

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2776
SELECT - 15 DIV + 20 * - NULLIF ( + + 42, + NULLIF ( + 24, - NULLIF ( - + COUNT( * ), 20 * + + ( 74 ) * + COUNT( * ) ) * + + 70 DIV - + 45 - 20 + + + COUNT( * ) ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2776
SELECT - 15 / + 20 * - NULLIF ( + + 42, + NULLIF ( + 24, - NULLIF ( - + COUNT ( * ), 20 * + + ( 74 ) * + COUNT ( * ) ) * + + 70 / - + 45 - 20 + + + COUNT ( * ) ) ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2777
SELECT DISTINCT + - 97 DIV 41 col2
----
-2

skipif mysql # not compatible
query I rowsort label-2777
SELECT DISTINCT + - 97 / 41 col2
----
-2

query II rowsort
SELECT ALL 28 AS col1, 12 + - - 47 AS col0
----
28
59

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

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

query I rowsort
SELECT DISTINCT CASE - 92 WHEN + - 57 THEN 22 + + 85 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT ALL NULLIF ( - MAX( - 32 ), 96 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-2781
SELECT ALL NULLIF ( - MAX ( - 32 ), 96 ) AS col0
----
32

query I rowsort
SELECT - 55 * + - 96
----
5280

query I rowsort
SELECT - 72 - 87
----
-159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2784
SELECT - CAST( NULL AS SIGNED ) + + 4 - - - COUNT( DISTINCT + 43 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2784
SELECT - CAST ( NULL AS INTEGER ) + + 4 - - - COUNT ( DISTINCT + 43 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2785
SELECT ALL CAST( CAST( NULL AS SIGNED ) AS SIGNED ), - 81 - + - 9 AS col1
----
NULL
-72

skipif mysql # not compatible
query II rowsort label-2785
SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ), - 81 - + - 9 AS col1
----
NULL
-72

query I rowsort
SELECT - 12 + - 76
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2787
SELECT ALL ( - 76 ) AS col0, ( + 78 ) * + 40 + - - 92 + - + 60 DIV - COUNT( * ) AS col1
----
-76
3272

skipif mysql # not compatible
query II rowsort label-2787
SELECT ALL ( - 76 ) AS col0, ( + 78 ) * + 40 + - - 92 + - + 60 / - COUNT ( * ) AS col1
----
-76
3272

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2788
SELECT DISTINCT - 70 + COUNT( * ) + 98 DIV 64 AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-2788
SELECT DISTINCT - 70 + COUNT ( * ) + 98 / 64 AS col0
----
-68

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

skipif mysql # not compatible
query I rowsort label-2789
SELECT ALL CAST ( NULL AS INTEGER ) / + COUNT ( * ) * 35 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2790
SELECT COUNT( * ) DIV COALESCE ( - COUNT( * ), COUNT( * ) ) AS col2
----
-1

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

query I rowsort
SELECT ALL + 7 + - 19 col2
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-2792
SELECT DISTINCT + 98 DIV - 98
----
-1

skipif mysql # not compatible
query I rowsort label-2792
SELECT DISTINCT + 98 / - 98
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2793
SELECT 53 * 34 * 86 DIV 81 + - - 53 AS col0, COUNT( * ) * + 57
----
1966
57

skipif mysql # not compatible
query II rowsort label-2793
SELECT 53 * 34 * 86 / 81 + - - 53 AS col0, COUNT ( * ) * + 57
----
1966
57

onlyif mysql # DIV for integer division: 
query I rowsort label-2794
SELECT 13 DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-2794
SELECT 13 / - 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT CASE + + 33 WHEN + - 62 - 10 THEN NULL ELSE + - COUNT( * ) * - 10 END * 89 AS col0
----
890

skipif mysql # not compatible
query I rowsort label-2795
SELECT CASE + + 33 WHEN + - 62 - 10 THEN NULL ELSE + - COUNT ( * ) * - 10 END * 89 AS col0
----
890

query I rowsort
SELECT ALL + 47 + + 72 * + 24 AS col1
----
1775

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT ALL - NULLIF ( + 18, - + COUNT( * ) ) + + 21 + - 7 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-2797
SELECT ALL - NULLIF ( + 18, - + COUNT ( * ) ) + + 21 + - 7 AS col2
----
-4

query II rowsort
SELECT DISTINCT - + ( + 22 ) AS col0, + 36 AS col1
----
-22
36

query I rowsort
SELECT ALL + + 70 + + + ( + 20 ) - 85
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2800
SELECT DISTINCT - + SUM( - 69 ) col1, COUNT( * ) * + MIN( CAST( 96 AS SIGNED ) ) + + 18
----
69
114

skipif mysql # not compatible
query II rowsort label-2800
SELECT DISTINCT - + SUM ( - 69 ) col1, COUNT ( * ) * + MIN ( CAST ( 96 AS INTEGER ) ) + + 18
----
69
114

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT ALL + 53 + + COUNT( * ) + ( - SUM( - 75 ) ) AS col0
----
129

skipif mysql # not compatible
query I rowsort label-2801
SELECT ALL + 53 + + COUNT ( * ) + ( - SUM ( - 75 ) ) AS col0
----
129

query I rowsort
SELECT - 7 * - 10
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2803
SELECT - 87 * - 3 * - - 30 * 29 * + - 50 + - 46 + CAST( - COALESCE ( + 21, - - CAST( NULL AS SIGNED ) + 6, + - COUNT( * ) * 15 * 56 * + 20 * 55 - - 77 + - 5 + SUM( 64 ) * - 37 ) AS SIGNED ) - 19 AS col2, 40 DIV 44
----
-11353586
0

skipif mysql # not compatible
query II rowsort label-2803
SELECT - 87 * - 3 * - - 30 * 29 * + - 50 + - 46 + CAST ( - COALESCE ( + 21, - - CAST ( NULL AS INTEGER ) + 6, + - COUNT ( * ) * 15 * 56 * + 20 * 55 - - 77 + - 5 + SUM ( 64 ) * - 37 ) AS INTEGER ) - 19 AS col2, 40 / 44
----
-11353586
0

query I rowsort
SELECT + + 20 * + 78 - + + CASE - + 40 WHEN + 25 THEN + + ( 57 ) END / ( - 50 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2805
SELECT DISTINCT - 20 - + MAX( + 54 ) * 55, - 14 AS col0
----
-2990
-14

skipif mysql # not compatible
query II rowsort label-2805
SELECT DISTINCT - 20 - + MAX ( + 54 ) * 55, - 14 AS col0
----
-2990
-14

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

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

query I rowsort
SELECT ALL - 71 * - - 23
----
-1633

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT MIN( DISTINCT 54 ) + - COUNT( * ) * + - 78
----
132

skipif mysql # not compatible
query I rowsort label-2808
SELECT MIN ( DISTINCT 54 ) + - COUNT ( * ) * + - 78
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2809
SELECT DISTINCT - - COALESCE ( + CAST( + 73 AS SIGNED ), 69, MIN( DISTINCT 31 ) + 77 )
----
73

skipif mysql # not compatible
query I rowsort label-2809
SELECT DISTINCT - - COALESCE ( + CAST ( + 73 AS INTEGER ), 69, MIN ( DISTINCT 31 ) + 77 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT - ( - COUNT( * ) ) * 80 + 56 AS col1
----
136

skipif mysql # not compatible
query I rowsort label-2810
SELECT - ( - COUNT ( * ) ) * 80 + 56 AS col1
----
136

query I rowsort
SELECT + 71 * 98 AS col1
----
6958

onlyif mysql # DIV for integer division: 
query I rowsort label-2812
SELECT ALL - 27 DIV 13 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-2812
SELECT ALL - 27 / 13 AS col0
----
-2

query I rowsort
SELECT - 80 + + + 18
----
-62

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2815
SELECT DISTINCT 43 * - 17 * CAST( CASE + 57 WHEN 36 + - + COUNT( * ) THEN - CAST( NULL AS SIGNED ) - + - NULLIF ( - - 66, - + 64 + + 84 ) * + 13 WHEN 46 * + 91 * + ( - 78 ) * + CASE - 89 WHEN + - 33 * + 41 THEN - 5 WHEN + 46 THEN - MAX( DISTINCT + - 42 ) / + 4 WHEN 13 THEN NULL ELSE NULL END * ( + ( 26 ) ) + - 66 THEN + 44 * + 91 END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2815
SELECT DISTINCT 43 * - 17 * CAST ( CASE + 57 WHEN 36 + - + COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) - + - NULLIF ( - - 66, - + 64 + + 84 ) * + 13 WHEN 46 * + 91 * + ( - 78 ) * + CASE - 89 WHEN + - 33 * + 41 THEN - 5 WHEN + 46 THEN - MAX ( DISTINCT + - 42 ) / + 4 WHEN 13 THEN NULL ELSE NULL END * ( + ( 26 ) ) + - 66 THEN + 44 * + 91 END AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2816
SELECT 66 DIV 16 * - CASE + 76 WHEN + + 50 THEN CAST( + 35 AS SIGNED ) ELSE 1 END * 98
----
-392

skipif mysql # not compatible
query I rowsort label-2816
SELECT 66 / 16 * - CASE + 76 WHEN + + 50 THEN CAST ( + 35 AS INTEGER ) ELSE 1 END * 98
----
-392

query I rowsort
SELECT 2 * + - ( + ( + + 49 ) )
----
-98

query I rowsort
SELECT 8 + - + 65 * + 44 AS col0
----
-2852

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2820
SELECT 92 DIV - 73
----
-1

skipif mysql # not compatible
query I rowsort label-2820
SELECT 92 / - 73
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2821
SELECT ALL - 84 DIV + MAX( - 73 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2821
SELECT ALL - 84 / + MAX ( - 73 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2822
SELECT ALL 82 AS col0, + MAX( ALL + 0 ) AS col2
----
82
0

skipif mysql # not compatible
query II rowsort label-2822
SELECT ALL 82 AS col0, + MAX ( ALL + 0 ) AS col2
----
82
0

query I rowsort
SELECT ALL 95 + 0 - - 57 + 19 * 96 col1
----
1976

query I rowsort
SELECT 26 * + + 40 AS col0
----
1040

query II rowsort
SELECT - 46, - 38 AS col2
----
-46
-38

query I rowsort
SELECT DISTINCT + 94 + 89
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-2827
SELECT 16 * - 94 * + + MIN( 33 )
----
-49632

skipif mysql # not compatible
query I rowsort label-2827
SELECT 16 * - 94 * + + MIN ( 33 )
----
-49632

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT ALL + 21 + + COUNT( DISTINCT - NULLIF ( - + 31, - - 32 / - 53 ) ) + + ( 48 ) - - COUNT( * ) * 24 * COUNT( * ) col1
----
94

skipif mysql # not compatible
query I rowsort label-2828
SELECT ALL + 21 + + COUNT ( DISTINCT - NULLIF ( - + 31, - - 32 / - 53 ) ) + + ( 48 ) - - COUNT ( * ) * 24 * COUNT ( * ) col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT DISTINCT - - MAX( + 51 ) * 95 + 26 + - 51 * COUNT( * ) AS col1
----
4820

skipif mysql # not compatible
query I rowsort label-2829
SELECT DISTINCT - - MAX ( + 51 ) * 95 + 26 + - 51 * COUNT ( * ) AS col1
----
4820

query I rowsort
SELECT 91 * + 75
----
6825

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2831
SELECT 21 * CAST( - + 64 AS SIGNED ) * 33 - CASE - 57 WHEN COUNT( * ) * + - 49 * 22 + 45 THEN NULL WHEN + 56 THEN 2 ELSE NULL END + - 19 + - - 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2831
SELECT 21 * CAST ( - + 64 AS INTEGER ) * 33 - CASE - 57 WHEN COUNT ( * ) * + - 49 * 22 + 45 THEN NULL WHEN + 56 THEN 2 ELSE NULL END + - 19 + - - 74 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2832
SELECT DISTINCT - + 30 + + - 26 * + CASE - 44 WHEN - - 16 THEN - 76 ELSE NULL END - COUNT( * ) + + CASE - 15 WHEN - - MAX( - + 13 ) + - 80 + + + MIN( ALL + - CAST( NULL AS SIGNED ) ) / 61 * COUNT( * ) THEN + + 57 WHEN + - CASE WHEN NULL < 26 THEN 46 * + ( 95 ) ELSE NULL END + - - 19 THEN - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2832
SELECT DISTINCT - + 30 + + - 26 * + CASE - 44 WHEN - - 16 THEN - 76 ELSE NULL END - COUNT ( * ) + + CASE - 15 WHEN - - MAX ( - + 13 ) + - 80 + + + MIN ( ALL + - CAST ( NULL AS INTEGER ) ) / 61 * COUNT ( * ) THEN + + 57 WHEN + - CASE WHEN NULL < 26 THEN 46 * + ( 95 ) ELSE NULL END + - - 19 THEN - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT ALL + + 68 + + 82 * - SUM( - 19 ) + 71
----
1697

skipif mysql # not compatible
query I rowsort label-2833
SELECT ALL + + 68 + + 82 * - SUM ( - 19 ) + 71
----
1697

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT DISTINCT - NULLIF ( + 85, + + COUNT( * ) * SUM( DISTINCT + 1 ) / - 70 + 73 + - 48 * - 69 * + ( - 42 ) ) - 74 + + 21
----
-138

skipif mysql # not compatible
query I rowsort label-2835
SELECT DISTINCT - NULLIF ( + 85, + + COUNT ( * ) * SUM ( DISTINCT + 1 ) / - 70 + 73 + - 48 * - 69 * + ( - 42 ) ) - 74 + + 21
----
-138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2836
SELECT - 61 * + MIN( ALL + 0 ) AS col0, + CAST( NULL AS SIGNED ) * - 86 / - 64
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2836
SELECT - 61 * + MIN ( ALL + 0 ) AS col0, + CAST ( NULL AS INTEGER ) * - 86 / - 64
----
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2837
SELECT ALL - + 55 DIV + + 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL - + 55 / + + 99 AS col2
----
0

query II rowsort
SELECT + + 47, + 62 AS col1
----
47
62

onlyif mysql # DIV for integer division: 
query I rowsort label-2839
SELECT 91 + 91 DIV 3 - 90 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-2839
SELECT 91 + 91 / 3 - 90 AS col2
----
31

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

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

query I rowsort
SELECT - 63 * - + ( + - 14 ) + - 73 + + 63
----
-892

query I rowsort
SELECT ALL - ( 46 ) - 86 AS col2
----
-132

query I rowsort
SELECT 40 * 93 AS col2
----
3720

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT - SUM( ALL + 93 ) * 87 AS col0
----
-8091

skipif mysql # not compatible
query I rowsort label-2844
SELECT - SUM ( ALL + 93 ) * 87 AS col0
----
-8091

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT + + MAX( - 53 ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-2845
SELECT + + MAX ( - 53 ) AS col0
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-2846
SELECT 74 AS col0, 29 * COUNT( * ) + + SUM( ALL + 92 ) AS col1
----
74
121

skipif mysql # not compatible
query II rowsort label-2846
SELECT 74 AS col0, 29 * COUNT ( * ) + + SUM ( ALL + 92 ) AS col1
----
74
121

query I rowsort
SELECT 11 * 0
----
0

query II rowsort
SELECT 82 * 86 AS col2, 44 AS col1
----
7052
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2849
SELECT ALL 13 AS col0, ( + 30 ) * CAST( - - COUNT( * ) AS SIGNED ) * - + MIN( DISTINCT + 88 ) + + COUNT( * ) DIV - 8 AS col2
----
13
-2640

skipif mysql # not compatible
query II rowsort label-2849
SELECT ALL 13 AS col0, ( + 30 ) * CAST ( - - COUNT ( * ) AS INTEGER ) * - + MIN ( DISTINCT + 88 ) + + COUNT ( * ) / - 8 AS col2
----
13
-2640

onlyif mysql # aggregate syntax: 
query II rowsort label-2850
SELECT - CASE 42 WHEN + - 30 THEN + 76 ELSE NULL END, - COUNT( * ) col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-2850
SELECT - CASE 42 WHEN + - 30 THEN + 76 ELSE NULL END, - COUNT ( * ) col0
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT + 20 * - - COUNT( - 26 ) - + COUNT( ALL 53 )
----
19

skipif mysql # not compatible
query I rowsort label-2851
SELECT + 20 * - - COUNT ( - 26 ) - + COUNT ( ALL 53 )
----
19

query I rowsort
SELECT ALL 25 * + + 43 AS col0
----
1075

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2853
SELECT ALL ( 42 ) + CAST( NULL AS SIGNED ) * - 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2853
SELECT ALL ( 42 ) + CAST ( NULL AS INTEGER ) * - 98 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT ALL MIN( - NULLIF ( 16, 30 + 47 / 66 ) ) + - 18 * - 35
----
614

skipif mysql # not compatible
query I rowsort label-2854
SELECT ALL MIN ( - NULLIF ( 16, 30 + 47 / 66 ) ) + - 18 * - 35
----
614

onlyif mysql # DIV for integer division: 
query I rowsort label-2855
SELECT + 65 DIV - COALESCE ( + 76, - ( 76 ), + 7 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2855
SELECT + 65 / - COALESCE ( + 76, - ( 76 ), + 7 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT + MIN( ALL ( 19 ) ) + - + 81
----
-62

skipif mysql # not compatible
query I rowsort label-2856
SELECT + MIN ( ALL ( 19 ) ) + - + 81
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT - NULLIF ( MIN( - ( - 11 ) ), + + 61 )
----
-11

skipif mysql # not compatible
query I rowsort label-2857
SELECT - NULLIF ( MIN ( - ( - 11 ) ), + + 61 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT ALL 89 * + ( - - COUNT( * ) ) * + 14
----
1246

skipif mysql # not compatible
query I rowsort label-2858
SELECT ALL 89 * + ( - - COUNT ( * ) ) * + 14
----
1246

query I rowsort
SELECT ALL ( - - 50 ) + 44 AS col2
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-2860
SELECT + 53 + - - ( COALESCE ( - ( - 98 ), 14 DIV - 8 ) ) * 69 AS col0
----
6815

skipif mysql # not compatible
query I rowsort label-2860
SELECT + 53 + - - ( COALESCE ( - ( - 98 ), 14 / - 8 ) ) * 69 AS col0
----
6815

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

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

query II rowsort
SELECT 11, - 5 AS col0
----
11
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT - ( + COUNT( * ) ) * - 10 col0
----
10

skipif mysql # not compatible
query I rowsort label-2863
SELECT - ( + COUNT ( * ) ) * - 10 col0
----
10

query I rowsort
SELECT - NULLIF ( - - 88, + 74 - + + 32 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT DISTINCT 46 - + - COUNT( * ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-2865
SELECT DISTINCT 46 - + - COUNT ( * ) AS col0
----
47

query II rowsort
SELECT 62 AS col1, 63
----
62
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2867
SELECT DISTINCT + COALESCE ( + COUNT( * ), - 79 * + 94 - - 9 DIV 9 * - MIN( ALL - - COALESCE ( - + 3, + 53 ) ) - + CAST( NULL AS SIGNED ) DIV 73 + 33 * + CASE WHEN + CAST( NULL AS SIGNED ) <= + 88 + MIN( + 6 ) * 67 THEN COUNT( DISTINCT - 9 ) + + 83 + - - 22 WHEN NOT COUNT( * ) + + 22 <= 46 THEN NULL ELSE NULL END + - COUNT( * ) * + 37, + - COUNT( * ) * - 2, 12 - 29 * - ( - 76 ) ) - 64 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-2867
SELECT DISTINCT + COALESCE ( + COUNT ( * ), - 79 * + 94 - - 9 / 9 * - MIN ( ALL - - COALESCE ( - + 3, + 53 ) ) - + CAST ( NULL AS INTEGER ) / 73 + 33 * + CASE WHEN + CAST ( NULL AS INTEGER ) <= + 88 + MIN ( + 6 ) * 67 THEN COUNT ( DISTINCT - 9 ) + + 83 + - - 22 WHEN NOT COUNT ( * ) + + 22 <= 46 THEN NULL ELSE NULL END + - COUNT ( * ) * + 37, + - COUNT ( * ) * - 2, 12 - 29 * - ( - 76 ) ) - 64 AS col2
----
-63

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2869
SELECT + - 55 DIV - 5 + + 4
----
15

skipif mysql # not compatible
query I rowsort label-2869
SELECT + - 55 / - 5 + + 4
----
15

query II rowsort
SELECT ( 27 ) col0, + 32 col2
----
27
32

onlyif mysql # aggregate syntax: 
query II rowsort label-2871
SELECT 68, - COUNT( + 66 ) AS col0
----
68
-1

skipif mysql # not compatible
query II rowsort label-2871
SELECT 68, - COUNT ( + 66 ) AS col0
----
68
-1

query I rowsort
SELECT DISTINCT + CASE + 37 WHEN - 79 THEN 27 ELSE NULL END
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2874
SELECT + 23 AS col0, 87 DIV 44 AS col0
----
23
1

skipif mysql # not compatible
query II rowsort label-2874
SELECT + 23 AS col0, 87 / 44 AS col0
----
23
1

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

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

query I rowsort
SELECT DISTINCT - 43 * - 37 * 99 AS col1
----
157509

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2877
SELECT DISTINCT - + 77 DIV + + COUNT( * ) + + 61 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-2877
SELECT DISTINCT - + 77 / + + COUNT ( * ) + + 61 AS col1
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2878
SELECT DISTINCT - - COUNT( * ) DIV SUM( - + 30 )
----
0

skipif mysql # not compatible
query I rowsort label-2878
SELECT DISTINCT - - COUNT ( * ) / SUM ( - + 30 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2879
SELECT ALL + + 45, + CASE - - MAX( + + CAST( + 6 AS SIGNED ) ) WHEN - - SUM( + 40 ) THEN + 99 + - + 26 END AS col2
----
45
NULL

skipif mysql # not compatible
query II rowsort label-2879
SELECT ALL + + 45, + CASE - - MAX ( + + CAST ( + 6 AS INTEGER ) ) WHEN - - SUM ( + 40 ) THEN + 99 + - + 26 END AS col2
----
45
NULL

query I rowsort
SELECT - + 13 + - 13 AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT - 31 * - - COUNT( 12 ) - + COUNT( 96 ) + - COUNT( DISTINCT - 34 ) + + 92
----
59

skipif mysql # not compatible
query I rowsort label-2881
SELECT - 31 * - - COUNT ( 12 ) - + COUNT ( 96 ) + - COUNT ( DISTINCT - 34 ) + + 92
----
59

query I rowsort
SELECT ALL + 53 * + ( + ( 0 ) ) + - + 22 AS col0
----
-22

query I rowsort
SELECT + 26 * - + 28
----
-728

onlyif mysql # DIV for integer division: 
query I rowsort label-2884
SELECT DISTINCT 49 * 48 DIV - 52 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-2884
SELECT DISTINCT 49 * 48 / - 52 AS col1
----
-45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT SUM( - 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-2886
SELECT SUM ( - 2 )
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2887
SELECT DISTINCT CAST( CASE - - 43 WHEN 18 THEN + 62 ELSE NULL END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2887
SELECT DISTINCT CAST ( CASE - - 43 WHEN 18 THEN + 62 ELSE NULL END AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 54 * + - 89
----
4806

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT DISTINCT SUM( DISTINCT + 21 ) + 20
----
41

skipif mysql # not compatible
query I rowsort label-2889
SELECT DISTINCT SUM ( DISTINCT + 21 ) + 20
----
41

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2891
SELECT + 23 * 50 DIV + 28 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-2891
SELECT + 23 * 50 / + 28 AS col2
----
41

query II rowsort
SELECT DISTINCT 35 * + 80, - 61 + 55 * - - 66 + - 25 AS col1
----
2800
3544

query I rowsort
SELECT ALL 70 * 51 AS col1
----
3570

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT ALL CASE - - ( + COUNT( * ) ) WHEN 54 * - 19 + - 16 THEN NULL ELSE - - 44 END - 61 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-2894
SELECT ALL CASE - - ( + COUNT ( * ) ) WHEN 54 * - 19 + - 16 THEN NULL ELSE - - 44 END - 61 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT ALL MAX( ALL + 13 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-2895
SELECT ALL MAX ( ALL + 13 ) AS col2
----
13

query I rowsort
SELECT + - 5 * - 42
----
210

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2897
SELECT ALL 86 * + - COUNT( ALL 92 ) * COUNT( * ) + 37 * + 83 - + 42 + 11 DIV + - 59 + + - 89 AS col2, 22 AS col0
----
2854
22

skipif mysql # not compatible
query II rowsort label-2897
SELECT ALL 86 * + - COUNT ( ALL 92 ) * COUNT ( * ) + 37 * + 83 - + 42 + 11 / + - 59 + + - 89 AS col2, 22 AS col0
----
2854
22

query I rowsort
SELECT ALL ( 67 ) * + 67
----
4489

query I rowsort
SELECT ALL + 66 * - ( + + 26 ) AS col2
----
-1716

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT + 52 + + + MAX( + 60 ) + + 53
----
165

skipif mysql # not compatible
query I rowsort label-2901
SELECT + 52 + + + MAX ( + 60 ) + + 53
----
165

query I rowsort
SELECT + 96 * + 23
----
2208

onlyif mysql # DIV for integer division: 
query I rowsort label-2903
SELECT + 10 DIV - 41 - 69
----
-69

skipif mysql # not compatible
query I rowsort label-2903
SELECT + 10 / - 41 - 69
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2904
SELECT + 79 * COALESCE ( + 78, + 19 ) + - MIN( ALL - - 13 ) - - CAST( NULL AS SIGNED ) - + 49 * + - 78 * + 34 - - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-2904
SELECT + 79 * COALESCE ( + 78, + 19 ) + - MIN ( ALL - - 13 ) - - CAST ( NULL AS INTEGER ) - + 49 * + - 78 * + 34 - - 48
----
NULL

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

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

query I rowsort
SELECT + 99 * 13
----
1287

onlyif mysql # DIV for integer division: 
query I rowsort label-2907
SELECT DISTINCT + - ( - + 32 ) DIV + 22 + ( + - 56 ) + 25 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-2907
SELECT DISTINCT + - ( - + 32 ) / + 22 + ( + - 56 ) + 25 AS col1
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-2908
SELECT ALL - 25 + + MIN( - + 66 ) AS col0, - 54 AS col2
----
-91
-54

skipif mysql # not compatible
query II rowsort label-2908
SELECT ALL - 25 + + MIN ( - + 66 ) AS col0, - 54 AS col2
----
-91
-54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT ALL COUNT( ALL + 30 ) * + 80 * 63 AS col1
----
5040

skipif mysql # not compatible
query I rowsort label-2910
SELECT ALL COUNT ( ALL + 30 ) * + 80 * 63 AS col1
----
5040

onlyif mysql # DIV for integer division: 
query I rowsort label-2911
SELECT 17 DIV - 11 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2911
SELECT 17 / - 11 AS col0
----
-1

query I rowsort
SELECT ALL + 52 + - 52 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2913
SELECT 31 AS col2, SUM( DISTINCT + 25 ) + 81 - + + 64 AS col0
----
31
42

skipif mysql # not compatible
query II rowsort label-2913
SELECT 31 AS col2, SUM ( DISTINCT + 25 ) + 81 - + + 64 AS col0
----
31
42

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2915
SELECT ALL - MIN( DISTINCT - + ( + ( + 58 ) ) ) - - 16 + 73 + + + 98 + - 44 * CAST( NULL AS SIGNED ) * + - 7 - 60 + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-2915
SELECT ALL - MIN ( DISTINCT - + ( + ( + 58 ) ) ) - - 16 + 73 + + + 98 + - 44 * CAST ( NULL AS INTEGER ) * + - 7 - 60 + 16
----
NULL

query I rowsort
SELECT DISTINCT + 35 * + 20 col2
----
700

query II rowsort
SELECT 17 AS col2, + 98 * 22
----
17
2156

onlyif mysql # DIV for integer division: 
query I rowsort label-2918
SELECT ALL + 62 DIV ( 30 )
----
2

skipif mysql # not compatible
query I rowsort label-2918
SELECT ALL + 62 / ( 30 )
----
2

query I rowsort
SELECT DISTINCT - NULLIF ( 20, + 67 ) - + 58 + - + 92
----
-170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2920
SELECT ALL - 62 * + CASE CAST( 31 AS SIGNED ) WHEN 47 * + NULLIF ( - + 88, AVG ( ALL + - 23 ) ) / + + 19 - + - ( + - COUNT( * ) ) + - - 33 - + MIN( DISTINCT + - NULLIF ( - 72, + 69 ) ) * + 39 THEN NULLIF ( - 4, - 69 ) WHEN COUNT( + + NULLIF ( + - 85, + 5 ) ) THEN NULL WHEN + ( + - COUNT( * ) ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2920
SELECT ALL - 62 * + CASE CAST ( 31 AS INTEGER ) WHEN 47 * + NULLIF ( - + 88, AVG ( ALL + - 23 ) ) / + + 19 - + - ( + - COUNT ( * ) ) + - - 33 - + MIN ( DISTINCT + - NULLIF ( - 72, + 69 ) ) * + 39 THEN NULLIF ( - 4, - 69 ) WHEN COUNT ( + + NULLIF ( + - 85, + 5 ) ) THEN NULL WHEN + ( + - COUNT ( * ) ) THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT 42 - + 7 - - + ( + - 78 ) + 19 col2
----
-24

query I rowsort
SELECT ALL - 90 - - CASE 74 WHEN - + 43 THEN + 56 + - 17 + - 23 ELSE NULL END / - + AVG ( ALL + 45 )
----
NULL

query II rowsort
SELECT ALL 99, 71 AS col1
----
99
71

onlyif mysql # aggregate syntax: 
query II rowsort label-2924
SELECT - 0 col0, SUM( - ( 83 ) )
----
0
-83

skipif mysql # not compatible
query II rowsort label-2924
SELECT - 0 col0, SUM ( - ( 83 ) )
----
0
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-2925
SELECT - 51 col2, - MAX( + 52 ) AS col0
----
-51
-52

skipif mysql # not compatible
query II rowsort label-2925
SELECT - 51 col2, - MAX ( + 52 ) AS col0
----
-51
-52

query I rowsort
SELECT - 58 + - - 60 + 14 + + - 73 * + 44 AS col2
----
-3196

query I rowsort
SELECT 66 - + 94
----
-28

query I rowsort
SELECT - 41 - - - 57
----
-98

query I rowsort
SELECT + 50 * - 72 AS col1
----
-3600

onlyif mysql # DIV for integer division: 
query I rowsort label-2930
SELECT DISTINCT + 87 DIV 90 col1
----
0

skipif mysql # not compatible
query I rowsort label-2930
SELECT DISTINCT + 87 / 90 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2931
SELECT DISTINCT - 74 AS col0, CAST( NULL AS SIGNED ) AS col2
----
-74
NULL

skipif mysql # not compatible
query II rowsort label-2931
SELECT DISTINCT - 74 AS col0, CAST ( NULL AS INTEGER ) AS col2
----
-74
NULL

query I rowsort
SELECT ALL - 54 * + - 74
----
3996

onlyif mysql # aggregate syntax: 
query II rowsort label-2933
SELECT + COUNT( * ) + + + 1 * - + 28 col0, 44
----
-27
44

skipif mysql # not compatible
query II rowsort label-2933
SELECT + COUNT ( * ) + + + 1 * - + 28 col0, 44
----
-27
44

onlyif mysql # DIV for integer division: 
query I rowsort label-2934
SELECT ALL + 43 DIV + 23
----
1

skipif mysql # not compatible
query I rowsort label-2934
SELECT ALL + 43 / + 23
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2936
SELECT CAST( NULL AS SIGNED ) + - 64 - - 2 - + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-2936
SELECT CAST ( NULL AS INTEGER ) + - 64 - - 2 - + 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT ALL 0 + + + 32 + + + COUNT( * ) * - 37 col2
----
-5

skipif mysql # not compatible
query I rowsort label-2937
SELECT ALL 0 + + + 32 + + + COUNT ( * ) * - 37 col2
----
-5

query II rowsort
SELECT 71 col2, - 30
----
71
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT ALL - COUNT( * ) + 85
----
84

skipif mysql # not compatible
query I rowsort label-2939
SELECT ALL - COUNT ( * ) + 85
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT DISTINCT 89 + - - COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-2940
SELECT DISTINCT 89 + - - COUNT ( * )
----
90

query II rowsort
SELECT ALL - + 63, + 13 AS col0
----
-63
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2942
SELECT - - 37 DIV 52 + + 74 + + - CAST( - COUNT( - + 82 ) AS SIGNED )
----
75

skipif mysql # not compatible
query I rowsort label-2942
SELECT - - 37 / 52 + + 74 + + - CAST ( - COUNT ( - + 82 ) AS INTEGER )
----
75

query I rowsort
SELECT DISTINCT 20 + - 91 AS col1
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-2944
SELECT ALL 79 DIV + 15 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-2944
SELECT ALL 79 / + 15 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT DISTINCT - 20 + 33 + - 1 * + COUNT( * ) * + - ( 79 )
----
92

skipif mysql # not compatible
query I rowsort label-2945
SELECT DISTINCT - 20 + 33 + - 1 * + COUNT ( * ) * + - ( 79 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT ALL + CASE 33 WHEN + 46 * - MAX( 46 ) THEN 65 + + 29 / - 0 END * ( + 6 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2946
SELECT ALL + CASE 33 WHEN + 46 * - MAX ( 46 ) THEN 65 + + 29 / - 0 END * ( + 6 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2947
SELECT 7 + - MAX( ALL + NULLIF ( + 3, CAST( NULL AS SIGNED ) + - 29 ) ) - - + ( 65 ) + + - 57 * MAX( 51 )
----
-2838

skipif mysql # not compatible
query I rowsort label-2947
SELECT 7 + - MAX ( ALL + NULLIF ( + 3, CAST ( NULL AS INTEGER ) + - 29 ) ) - - + ( 65 ) + + - 57 * MAX ( 51 )
----
-2838

onlyif mysql # aggregate syntax: 
query II rowsort label-2948
SELECT ALL 66 - + COALESCE ( - - 87, + - COUNT( * ), 70 + + - 18 ) + - 35 AS col0, 46 * 70
----
-56
3220

skipif mysql # not compatible
query II rowsort label-2948
SELECT ALL 66 - + COALESCE ( - - 87, + - COUNT ( * ), 70 + + - 18 ) + - 35 AS col0, 46 * 70
----
-56
3220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2949
SELECT ALL ( - 88 ) * + NULLIF ( 16, - 49 ) + + CAST( + 1 AS SIGNED ) AS col0
----
-1407

skipif mysql # not compatible
query I rowsort label-2949
SELECT ALL ( - 88 ) * + NULLIF ( 16, - 49 ) + + CAST ( + 1 AS INTEGER ) AS col0
----
-1407

query I rowsort
SELECT ( - - 86 ) * + 92 AS col1
----
7912

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2951
SELECT DISTINCT + NULLIF ( 54, - 0 * + 26 + + NULLIF ( + CASE + + 16 WHEN 15 THEN + 8 * + 44 + 92 + - 85 + - - COALESCE ( + CASE 26 WHEN 88 + 25 + ( + 37 ) * + 72 + - 57 THEN + + 40 ELSE MIN( ( ( - 0 ) ) ) * + 0 END, - 30 ) * 26 + + 41 * ( + 50 ) WHEN - 62 THEN NULL END, + + 94 + 91 DIV 15 ) + - 42 * 83 ) * ( + 19 DIV - 51 - + MAX( DISTINCT + 18 ) DIV - 71 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-2951
SELECT DISTINCT + NULLIF ( 54, - 0 * + 26 + + NULLIF ( + CASE + + 16 WHEN 15 THEN + 8 * + 44 + 92 + - 85 + - - COALESCE ( + CASE 26 WHEN 88 + 25 + ( + 37 ) * + 72 + - 57 THEN + + 40 ELSE MIN ( ( ( - 0 ) ) ) * + 0 END, - 30 ) * 26 + + 41 * ( + 50 ) WHEN - 62 THEN NULL END, + + 94 + 91 / 15 ) + - 42 * 83 ) * ( + 19 / - 51 - + MAX ( DISTINCT + 18 ) / - 71 ) col0
----
0

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

skipif mysql # not compatible
query I rowsort label-2952
SELECT CAST ( NULL AS INTEGER ) * - - 6 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2953
SELECT ALL - COALESCE ( - 45, + 84, + 19 * - + CASE + 95 WHEN - - 6 * 80 THEN 68 WHEN + 17 THEN ( - COUNT( * ) ) END ) AS col2, NULLIF ( 64, + - 80 )
----
45
64

skipif mysql # not compatible
query II rowsort label-2953
SELECT ALL - COALESCE ( - 45, + 84, + 19 * - + CASE + 95 WHEN - - 6 * 80 THEN 68 WHEN + 17 THEN ( - COUNT ( * ) ) END ) AS col2, NULLIF ( 64, + - 80 )
----
45
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2954
SELECT - 7 * 16 + + COALESCE ( COUNT( * ), + CAST( NULL AS SIGNED ), - 39 ) + 21 * + - 11 AS col1
----
-342

skipif mysql # not compatible
query I rowsort label-2954
SELECT - 7 * 16 + + COALESCE ( COUNT ( * ), + CAST ( NULL AS INTEGER ), - 39 ) + 21 * + - 11 AS col1
----
-342

onlyif mysql # DIV for integer division: 
query I rowsort label-2955
SELECT ALL ( - 30 ) - + COALESCE ( + 54, + 18 ) DIV + 79
----
-30

skipif mysql # not compatible
query I rowsort label-2955
SELECT ALL ( - 30 ) - + COALESCE ( + 54, + 18 ) / + 79
----
-30

query I rowsort
SELECT 52 + 10
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2957
SELECT CAST( NULL AS SIGNED ) * COALESCE ( + - NULLIF ( - + 64, 48 ), - SUM( DISTINCT 80 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2957
SELECT CAST ( NULL AS INTEGER ) * COALESCE ( + - NULLIF ( - + 64, 48 ), - SUM ( DISTINCT 80 ) ) AS col2
----
NULL

query I rowsort
SELECT 61 * + + 13 * 69
----
54717

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2959
SELECT 67 + + 3 * + + 93 * + - COUNT( * ) AS col1, + 65 DIV - 37 AS col0
----
-212
-1

skipif mysql # not compatible
query II rowsort label-2959
SELECT 67 + + 3 * + + 93 * + - COUNT ( * ) AS col1, + 65 / - 37 AS col0
----
-212
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2960
SELECT DISTINCT - 13 / CAST( NULL AS SIGNED ) * - + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-2960
SELECT DISTINCT - 13 / CAST ( NULL AS INTEGER ) * - + 24
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2961
SELECT ALL - CAST( NULL AS SIGNED ) / + 78, + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2961
SELECT ALL - CAST ( NULL AS INTEGER ) / + 78, + CAST ( NULL AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT + 56 * + 74 * 19
----
78736

onlyif mysql # aggregate syntax: 
query II rowsort label-2963
SELECT DISTINCT - 16 * + - 99, - ( - 13 ) + + COUNT( * ) * + - 63 AS col0
----
1584
-50

skipif mysql # not compatible
query II rowsort label-2963
SELECT DISTINCT - 16 * + - 99, - ( - 13 ) + + COUNT ( * ) * + - 63 AS col0
----
1584
-50

query I rowsort
SELECT ALL - - 46 + - - 45
----
91

query I rowsort
SELECT 60 * + - 50 AS col1
----
-3000

query I rowsort
SELECT DISTINCT + 14 * + + 7
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-2967
SELECT DISTINCT - 56 + - 46 AS col1, NULLIF ( + 3, + 51 ) + COUNT( * ) AS col2
----
-102
4

skipif mysql # not compatible
query II rowsort label-2967
SELECT DISTINCT - 56 + - 46 AS col1, NULLIF ( + 3, + 51 ) + COUNT ( * ) AS col2
----
-102
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT - - SUM( - 33 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-2968
SELECT - - SUM ( - 33 ) AS col2
----
-33

query I rowsort
SELECT - CASE - 23 WHEN + 84 + + ( 89 ) THEN NULL WHEN - - 36 THEN - - 38 END - + 95 + + 32 + - 53 + 79 * 76 * - ( + - 21 ) + - + ( - - 18 ) * + 25 / 71
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2970
SELECT ALL CAST( - - COALESCE ( - - 56, - 19 ) AS SIGNED )
----
56

skipif mysql # not compatible
query I rowsort label-2970
SELECT ALL CAST ( - - COALESCE ( - - 56, - 19 ) AS INTEGER )
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2971
SELECT - CASE + - CASE - - 29 WHEN + MAX( - 15 ) * ( - SUM( DISTINCT - - 51 ) ) + - 80 * + - NULLIF ( - 50, + 70 ) + 57 THEN 40 * - + CASE 11 WHEN 83 THEN + - 63 - + 88 - + 34 / + - CAST( NULL AS SIGNED ) / - 42 * 53 WHEN SUM( - 28 ) THEN NULL END * + - COUNT( * ) ELSE NULL END WHEN - 98 THEN - 25 + + COALESCE ( + 83, 40 + 53 + + + 10 + 21 * + SUM( DISTINCT 87 ) * + 86, - 27 ) WHEN COUNT( * ) + CAST( + 51 AS SIGNED ) THEN + COUNT( * ) ELSE 86 END
----
-86

skipif mysql # not compatible
query I rowsort label-2971
SELECT - CASE + - CASE - - 29 WHEN + MAX ( - 15 ) * ( - SUM ( DISTINCT - - 51 ) ) + - 80 * + - NULLIF ( - 50, + 70 ) + 57 THEN 40 * - + CASE 11 WHEN 83 THEN + - 63 - + 88 - + 34 / + - CAST ( NULL AS INTEGER ) / - 42 * 53 WHEN SUM ( - 28 ) THEN NULL END * + - COUNT ( * ) ELSE NULL END WHEN - 98 THEN - 25 + + COALESCE ( + 83, 40 + 53 + + + 10 + 21 * + SUM ( DISTINCT 87 ) * + 86, - 27 ) WHEN COUNT ( * ) + CAST ( + 51 AS INTEGER ) THEN + COUNT ( * ) ELSE 86 END
----
-86

query I rowsort
SELECT 60 + - 1 AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT ALL COUNT( * ) + 43 + - 93 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-2973
SELECT ALL COUNT ( * ) + 43 + - 93 AS col1
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2974
SELECT ALL + COALESCE ( AVG ( + 38 ), - COUNT( * ) ) * - CAST( NULL AS SIGNED ) * + CAST( - ( - 67 ) AS SIGNED ) + 91 - - ( 49 ) * - 58 AS col2, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2974
SELECT ALL + COALESCE ( AVG ( + 38 ), - COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) * + CAST ( - ( - 67 ) AS INTEGER ) + 91 - - ( 49 ) * - 58 AS col2, COUNT ( * )
----
NULL
1

query I rowsort
SELECT - + 76 * + - 23 * 58
----
101384

onlyif mysql # DIV for integer division: 
query I rowsort label-2976
SELECT 1 DIV - + 15 - + + 13 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-2976
SELECT 1 / - + 15 - + + 13 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-2977
SELECT ALL + COUNT( * ) * COUNT( * ) + - 62 + + 69 AS col2, + 18
----
8
18

skipif mysql # not compatible
query II rowsort label-2977
SELECT ALL + COUNT ( * ) * COUNT ( * ) + - 62 + + 69 AS col2, + 18
----
8
18

onlyif mysql # DIV for integer division: 
query I rowsort label-2978
SELECT - 78 DIV - 67 col1
----
1

skipif mysql # not compatible
query I rowsort label-2978
SELECT - 78 / - 67 col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2979
SELECT CASE - 62 WHEN 47 THEN NULL WHEN - 86 * ( + 63 ) + - 81 * - + COUNT( 78 ) THEN - 96 ELSE - - 30 END AS col2, - 8 + - 1
----
30
-9

skipif mysql # not compatible
query II rowsort label-2979
SELECT CASE - 62 WHEN 47 THEN NULL WHEN - 86 * ( + 63 ) + - 81 * - + COUNT ( 78 ) THEN - 96 ELSE - - 30 END AS col2, - 8 + - 1
----
30
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2980
SELECT + 60 + - COUNT( - 67 ) AS col1, + MIN( - + 10 ) DIV + - ( + 37 )
----
59
0

skipif mysql # not compatible
query II rowsort label-2980
SELECT + 60 + - COUNT ( - 67 ) AS col1, + MIN ( - + 10 ) / + - ( + 37 )
----
59
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2981
SELECT DISTINCT + 28 * - 50 - + CAST( NULL AS SIGNED ), 97 AS col1
----
NULL
97

skipif mysql # not compatible
query II rowsort label-2981
SELECT DISTINCT + 28 * - 50 - + CAST ( NULL AS INTEGER ), 97 AS col1
----
NULL
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT 62 * + - COUNT( * ) + - + ( COUNT( * ) ) * + 21
----
-83

skipif mysql # not compatible
query I rowsort label-2983
SELECT 62 * + - COUNT ( * ) + - + ( COUNT ( * ) ) * + 21
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT DISTINCT 84 * + 9 - - 13 + + COUNT( * ) * 38 + COUNT( * ) * + 29
----
836

skipif mysql # not compatible
query I rowsort label-2984
SELECT DISTINCT 84 * + 9 - - 13 + + COUNT ( * ) * 38 + COUNT ( * ) * + 29
----
836

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2986
SELECT DISTINCT 12 DIV + - 57 * - 17 * + 53 * - - NULLIF ( - 21, - - NULLIF ( + - ( + + 29 ), - 21 DIV - 47 * - 66 + - - 97 ) ) * - 7
----
0

skipif mysql # not compatible
query I rowsort label-2986
SELECT DISTINCT 12 / + - 57 * - 17 * + 53 * - - NULLIF ( - 21, - - NULLIF ( + - ( + + 29 ), - 21 / - 47 * - 66 + - - 97 ) ) * - 7
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT - SUM( ALL 87 ) * 95 + 49
----
-8216

skipif mysql # not compatible
query I rowsort label-2989
SELECT - SUM ( ALL 87 ) * 95 + 49
----
-8216

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

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

query I rowsort
SELECT ALL 53 * 67 col0
----
3551

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2992
SELECT - COALESCE ( 55, + - CAST( NULL AS SIGNED ) * + - MAX( 96 ) ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-2992
SELECT - COALESCE ( 55, + - CAST ( NULL AS INTEGER ) * + - MAX ( 96 ) ) AS col0
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2993
SELECT + + 98 * 92 * + - CASE COUNT( ALL + CAST( NULL AS SIGNED ) ) WHEN 50 THEN 11 - 24 + + + 24 - - - 97 * 37 + + 62 END / - + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-2993
SELECT + + 98 * 92 * + - CASE COUNT ( ALL + CAST ( NULL AS INTEGER ) ) WHEN 50 THEN 11 - 24 + + + 24 - - - 97 * 37 + + 62 END / - + 35
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2994
SELECT ALL - - CAST( + - COALESCE ( - - COALESCE ( + 12, + 68 ), - + 18 + + - 46, - ( - 45 ) + 21 ) AS SIGNED ) + 21, + CAST( NULL AS DECIMAL ) * + 40 AS col0
----
9
NULL

skipif mysql # not compatible
query II rowsort label-2994
SELECT ALL - - CAST ( + - COALESCE ( - - COALESCE ( + 12, + 68 ), - + 18 + + - 46, - ( - 45 ) + 21 ) AS INTEGER ) + 21, + CAST ( NULL AS REAL ) * + 40 AS col0
----
9
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-2997
SELECT ALL - COUNT( * ), - COUNT( DISTINCT - + 34 ) AS col0, - - 0 AS col2
----
-1
-1
0

skipif mysql # not compatible
query III rowsort label-2997
SELECT ALL - COUNT ( * ), - COUNT ( DISTINCT - + 34 ) AS col0, - - 0 AS col2
----
-1
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2998
SELECT ALL - - 19 + - 86 + - + 91 * - 17 * CAST( NULL AS SIGNED ) AS col2, + 4 - - 86 + - COUNT( * ) DIV SUM( ALL + - ( - 49 ) ) + + + 24 + + - 49
----
NULL
65

skipif mysql # not compatible
query II rowsort label-2998
SELECT ALL - - 19 + - 86 + - + 91 * - 17 * CAST ( NULL AS INTEGER ) AS col2, + 4 - - 86 + - COUNT ( * ) / SUM ( ALL + - ( - 49 ) ) + + + 24 + + - 49
----
NULL
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2999
SELECT - CAST( + COUNT( * ) AS SIGNED ) * 14 * + 59 AS col1
----
-826

skipif mysql # not compatible
query I rowsort label-2999
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) * 14 * + 59 AS col1
----
-826

query II rowsort
SELECT ALL - 27 + ( - + 89 ), - 26 + ( + 1 ) AS col2
----
-116
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT ALL + CASE + + COUNT( * ) WHEN + 4 * - 65 * - COUNT( * ) * 94 - - 43 THEN ( + 70 ) END + MIN( + 89 ) + + - 30 * + - MAX( 90 ) + - + COUNT( * ) + - - 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3001
SELECT ALL + CASE + + COUNT ( * ) WHEN + 4 * - 65 * - COUNT ( * ) * 94 - - 43 THEN ( + 70 ) END + MIN ( + 89 ) + + - 30 * + - MAX ( 90 ) + - + COUNT ( * ) + - - 14 AS col2
----
NULL

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

query I rowsort
SELECT - - 66 - + 43 AS col2
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3004
SELECT + + 97 + - COUNT( * ) + + - CASE - COUNT( * ) WHEN - 40 THEN + + CASE + 29 WHEN + 5 * - - 42 - - 97 * - COUNT( * ) THEN + 61 / 94 + - 2 + + 38 WHEN + 1 * - - 38 + - - 63 THEN NULL ELSE NULL END + + + 59 WHEN 45 THEN + 19 * + 69 * - - CAST( 82 AS SIGNED ) + + - 70 - - MIN( ALL + CAST( NULL AS SIGNED ) ) END / + 11 * - 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3004
SELECT + + 97 + - COUNT ( * ) + + - CASE - COUNT ( * ) WHEN - 40 THEN + + CASE + 29 WHEN + 5 * - - 42 - - 97 * - COUNT ( * ) THEN + 61 / 94 + - 2 + + 38 WHEN + 1 * - - 38 + - - 63 THEN NULL ELSE NULL END + + + 59 WHEN 45 THEN + 19 * + 69 * - - CAST ( 82 AS INTEGER ) + + - 70 - - MIN ( ALL + CAST ( NULL AS INTEGER ) ) END / + 11 * - 0 AS col2
----
NULL

query I rowsort
SELECT - + 91 - + 49
----
-140

query II rowsort
SELECT - 4, - 85 col0
----
-4
-85

query I rowsort
SELECT - 6 + - 50 AS col1
----
-56

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

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

query I rowsort
SELECT ALL - - NULLIF ( 51, - + 29 ) - ( - - 59 ) AS col1
----
-8

query II rowsort
SELECT - + ( - ( - - 31 ) ) AS col0, - 96 + + 82
----
31
-14

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

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

query I rowsort
SELECT - 37 * - ( - - 47 ) AS col2
----
1739

query I rowsort
SELECT - 43 * - 15 AS col0
----
645

query I rowsort
SELECT - 55 + - + ( 43 ) + 89 AS col1
----
-9

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

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

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

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

query I rowsort
SELECT DISTINCT 36 * + 94 AS col0
----
3384

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3019
SELECT ALL 71 * 42 AS col0, COUNT( * )
----
2982
1

skipif mysql # not compatible
query II rowsort label-3019
SELECT ALL 71 * 42 AS col0, COUNT ( * )
----
2982
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3020
SELECT ALL - CAST( NULL AS SIGNED ) / - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-3020
SELECT ALL - CAST ( NULL AS INTEGER ) / - 34
----
NULL

query II rowsort
SELECT ALL + ( - 26 ) AS col1, 24 AS col0
----
-26
24

query I rowsort
SELECT - 99 * + 20 + + 22 * - 59 - - + 80 + + - 77 * + 96
----
-10590

query I rowsort
SELECT + ( 45 ) * + + 8 * - 76 - 42 AS col1
----
-27402

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3024
SELECT DISTINCT + CAST( NULL AS SIGNED ), - 49 * - 89 AS col1
----
NULL
4361

skipif mysql # not compatible
query II rowsort label-3024
SELECT DISTINCT + CAST ( NULL AS INTEGER ), - 49 * - 89 AS col1
----
NULL
4361

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT ALL - 4 * - ( 84 ) * CASE - + COUNT( * ) WHEN - - COUNT( ALL 18 ) * + ( + ( 50 ) ) * - + 6 - - ( + SUM( - 30 ) ) THEN + 99 + - 39 * COUNT( DISTINCT - ( 10 ) ) * - 6 + + 58 * + 80 - + 62 END * - 60 - + - ( - 32 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3025
SELECT ALL - 4 * - ( 84 ) * CASE - + COUNT ( * ) WHEN - - COUNT ( ALL 18 ) * + ( + ( 50 ) ) * - + 6 - - ( + SUM ( - 30 ) ) THEN + 99 + - 39 * COUNT ( DISTINCT - ( 10 ) ) * - 6 + + 58 * + 80 - + 62 END * - 60 - + - ( - 32 ) AS col0
----
NULL

query I rowsort
SELECT - 41 + - 72
----
-113

onlyif mysql # aggregate syntax: 
query II rowsort label-3027
SELECT ( - - COUNT( * ) ) AS col1, + 47 * - + 28
----
1
-1316

skipif mysql # not compatible
query II rowsort label-3027
SELECT ( - - COUNT ( * ) ) AS col1, + 47 * - + 28
----
1
-1316

onlyif mysql # aggregate syntax: 
query II rowsort label-3028
SELECT ALL + 16, COUNT( * ) col2
----
16
1

skipif mysql # not compatible
query II rowsort label-3028
SELECT ALL + 16, COUNT ( * ) col2
----
16
1

query I rowsort
SELECT DISTINCT ( - 84 ) * + 54 * + - 6 + - - 74 AS col1
----
27290

query I rowsort
SELECT ALL 36 * + - 40 + - + 59 AS col0
----
-1499

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT DISTINCT + SUM( + - 34 ) * - + 35 AS col1
----
1190

skipif mysql # not compatible
query I rowsort label-3031
SELECT DISTINCT + SUM ( + - 34 ) * - + 35 AS col1
----
1190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3032
SELECT ALL 42 * COALESCE ( + 44, + + 4 + 15, - 83 + - 1 * - - ( + 68 ) - - + NULLIF ( - + ( + 8 ), - CAST( NULL AS SIGNED ) ) ) + 13 + 85 * SUM( + - 31 ) AS col2
----
-774

skipif mysql # not compatible
query I rowsort label-3032
SELECT ALL 42 * COALESCE ( + 44, + + 4 + 15, - 83 + - 1 * - - ( + 68 ) - - + NULLIF ( - + ( + 8 ), - CAST ( NULL AS INTEGER ) ) ) + 13 + 85 * SUM ( + - 31 ) AS col2
----
-774

onlyif mysql # aggregate syntax: 
query II rowsort label-3033
SELECT + 54 * + + COUNT( * ) * + 63 * + 82 + - 12 + - - 27, COUNT( * ) AS col1
----
278979
1

skipif mysql # not compatible
query II rowsort label-3033
SELECT + 54 * + + COUNT ( * ) * + 63 * + 82 + - 12 + - - 27, COUNT ( * ) AS col1
----
278979
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT DISTINCT 12 * 9 + COUNT( * ) + + 77
----
186

skipif mysql # not compatible
query I rowsort label-3034
SELECT DISTINCT 12 * 9 + COUNT ( * ) + + 77
----
186

query II rowsort
SELECT ALL - 67 * - - 78 + + NULLIF ( + 77, - 21 ) * - 93, 2 + + + 46 + 1 * 79 AS col1
----
-12387
127

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT + + SUM( DISTINCT - + 64 ) + - - 55 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-3036
SELECT + + SUM ( DISTINCT - + 64 ) + - - 55 AS col0
----
-9

query I rowsort
SELECT - + 50 * - 8 + + 26
----
426

query II rowsort
SELECT + 87 AS col1, 11
----
87
11

onlyif mysql # aggregate syntax: 
query II rowsort label-3039
SELECT - COUNT( * ) col2, 42 + + 7 * - ( 22 ) * - + 25 + 49
----
-1
3941

skipif mysql # not compatible
query II rowsort label-3039
SELECT - COUNT ( * ) col2, 42 + + 7 * - ( 22 ) * - + 25 + 49
----
-1
3941

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

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

query I rowsort
SELECT + 97 + 71 * - 39 AS col1
----
-2672

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT + ( ( + + 53 ) ) + 32 + - MIN( - - 51 )
----
34

skipif mysql # not compatible
query I rowsort label-3042
SELECT + ( ( + + 53 ) ) + 32 + - MIN ( - - 51 )
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3043
SELECT DISTINCT + + 9 * - 18 + + + SUM( DISTINCT - - ( 3 ) ) * 33 DIV + NULLIF ( COUNT( * ), - 3 * + 69 + + 69 ) + 61
----
-2

skipif mysql # not compatible
query I rowsort label-3043
SELECT DISTINCT + + 9 * - 18 + + + SUM ( DISTINCT - - ( 3 ) ) * 33 / + NULLIF ( COUNT ( * ), - 3 * + 69 + + 69 ) + 61
----
-2

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

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

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

query I rowsort
SELECT ALL + 4 * + + 97 * + 60
----
23280

query I rowsort
SELECT ALL 7 - + 67 * + 48 col0
----
-3209

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

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

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

query I rowsort
SELECT - 65 * + + 2 AS col1
----
-130

query I rowsort
SELECT 18 - 81 AS col1
----
-63

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

skipif mysql # not compatible
query I rowsort label-3052
SELECT DISTINCT + CAST ( NULL AS REAL ) / ( + 63 )
----
NULL

query I rowsort
SELECT ALL + 7 - - + 21
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-3054
SELECT NULLIF ( 46, - + 13 ) DIV - + 56
----
0

skipif mysql # not compatible
query I rowsort label-3054
SELECT NULLIF ( 46, - + 13 ) / - + 56
----
0

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

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

query I rowsort
SELECT DISTINCT + 89 * - 62 AS col0
----
-5518

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT - 58 / SUM( DISTINCT - CASE 62 WHEN + - COALESCE ( - - 69, - 73 ) THEN + 16 WHEN ( - + 18 ) THEN NULL END ) - + + 72 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3057
SELECT - 58 / SUM ( DISTINCT - CASE 62 WHEN + - COALESCE ( - - 69, - 73 ) THEN + 16 WHEN ( - + 18 ) THEN NULL END ) - + + 72 col0
----
NULL

query I rowsort
SELECT 52 * - + 45 AS col1
----
-2340

query I rowsort
SELECT DISTINCT + 90 * - 93 AS col0
----
-8370

onlyif mysql # DIV for integer division: 
query I rowsort label-3060
SELECT - 95 DIV + 74 + - + 7
----
-8

skipif mysql # not compatible
query I rowsort label-3060
SELECT - 95 / + 74 + - + 7
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3061
SELECT DISTINCT - 18 + + 49 / - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3061
SELECT DISTINCT - 18 + + 49 / - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 45 * 57 - - 99 + - 49 col0
----
2615

query I rowsort
SELECT 36 * - 19 + - ( - 30 )
----
-654

query I rowsort
SELECT ALL - 0 + 29
----
29

query I rowsort
SELECT ALL + 73 + - - 20 * + 87
----
1813

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT ALL - SUM( 15 ) + - - 72 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-3066
SELECT ALL - SUM ( 15 ) + - - 72 AS col0
----
57

query I rowsort
SELECT 77 * - - 2
----
154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3068
SELECT 99 - - - 96 - 52 DIV - 35 + 54 + COUNT( * ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-3068
SELECT 99 - - - 96 - 52 / - 35 + 54 + COUNT ( * ) AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT 46 + COUNT( * ) - + - 6 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-3069
SELECT 46 + COUNT ( * ) - + - 6 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT COUNT( ALL 65 ) * 67 * 79 * 52
----
275236

skipif mysql # not compatible
query I rowsort label-3070
SELECT COUNT ( ALL 65 ) * 67 * 79 * 52
----
275236

query I rowsort
SELECT ALL + 94 * + 62 + + + 20
----
5848

query I rowsort
SELECT 30 * - 20 * - CASE + 64 WHEN + 24 THEN + ( - 16 ) END - - + 8 + + 18 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT + CASE + - 47 WHEN + - 0 THEN + COUNT( ALL - + 68 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3073
SELECT + CASE + - 47 WHEN + - 0 THEN + COUNT ( ALL - + 68 ) END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT ALL - 44 - + ( + - COUNT( DISTINCT - - 98 ) )
----
-43

skipif mysql # not compatible
query I rowsort label-3075
SELECT ALL - 44 - + ( + - COUNT ( DISTINCT - - 98 ) )
----
-43

query I rowsort
SELECT 69 * - 22 AS col0
----
-1518

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT ALL + 33 * MIN( 16 ) AS col2
----
528

skipif mysql # not compatible
query I rowsort label-3077
SELECT ALL + 33 * MIN ( 16 ) AS col2
----
528

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT ALL - 75 * - COUNT( * ) * - 97 * 14
----
-101850

skipif mysql # not compatible
query I rowsort label-3078
SELECT ALL - 75 * - COUNT ( * ) * - 97 * 14
----
-101850

onlyif mysql # aggregate syntax: 
query II rowsort label-3079
SELECT ALL + 83 - - 2 AS col1, - COUNT( * ) * COUNT( * ) AS col0
----
85
-1

skipif mysql # not compatible
query II rowsort label-3079
SELECT ALL + 83 - - 2 AS col1, - COUNT ( * ) * COUNT ( * ) AS col0
----
85
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3080
SELECT ( + 51 ) + + - 1 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3080
SELECT ( + 51 ) + + - 1 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 38 * + - 66 AS col0
----
-2508

query II rowsort
SELECT - 41 + - 56 col1, + 77 AS col2
----
-97
77

query I rowsort
SELECT - COALESCE ( - 99, + - 24 * + 96, 30 ) col0
----
99

query I rowsort
SELECT DISTINCT - 26 * - 63 + + 73
----
1711

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3085
SELECT ALL MIN( ALL CAST( - + 51 AS SIGNED ) ) * + + 14 + 90
----
-624

skipif mysql # not compatible
query I rowsort label-3085
SELECT ALL MIN ( ALL CAST ( - + 51 AS INTEGER ) ) * + + 14 + 90
----
-624

query II rowsort
SELECT NULLIF ( - 87, + 54 * + 16 * 19 ) * + - 77, - 23 AS col2
----
6699
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT DISTINCT NULLIF ( COALESCE ( 5, - 76 ), + 89 ) * + MAX( DISTINCT - + 31 )
----
-155

skipif mysql # not compatible
query I rowsort label-3087
SELECT DISTINCT NULLIF ( COALESCE ( 5, - 76 ), + 89 ) * + MAX ( DISTINCT - + 31 )
----
-155

onlyif mysql # aggregate syntax: 
query II rowsort label-3088
SELECT ALL 13 col2, - 26 - + COUNT( * ) AS col2
----
13
-27

skipif mysql # not compatible
query II rowsort label-3088
SELECT ALL 13 col2, - 26 - + COUNT ( * ) AS col2
----
13
-27

query II rowsort
SELECT 85, + 63 AS col2
----
85
63

query I rowsort
SELECT DISTINCT 84 * + 79 + - 78
----
6558

query I rowsort
SELECT ALL 90 * 39 + + - 92 + + + 47 AS col0
----
3465

query II rowsort
SELECT ALL 59 * + 83 + + 47 * - 75 AS col2, - 79 AS col2
----
1372
-79

query I rowsort
SELECT DISTINCT + 59 * 8
----
472

query I rowsort
SELECT 77 + + 40
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3095
SELECT 86 + 90 + - 91 * CAST( 2 AS SIGNED )
----
-6

skipif mysql # not compatible
query I rowsort label-3095
SELECT 86 + 90 + - 91 * CAST ( 2 AS INTEGER )
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3096
SELECT CASE CAST( - + COALESCE ( + 41, + 20, + 37, + 10 ) AS DECIMAL ) WHEN + 48 * CASE - 53 WHEN - 75 * 54 + + + 39 THEN NULL ELSE COALESCE ( - 43, - - MIN( 13 ) ) END THEN + 31 ELSE + CASE + + 96 WHEN + + ( + 30 ) * + 65 THEN NULL WHEN - 87 * CAST( + - 52 AS DECIMAL ) * + 44 THEN + + 18 ELSE NULL END * + COUNT( * ) * + 93 * - SUM( DISTINCT 38 ) * - 20 END * 25 + NULLIF ( CAST( NULL AS SIGNED ), 44 * 29 * - 59 ) * + 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3096
SELECT CASE CAST ( - + COALESCE ( + 41, + 20, + 37, + 10 ) AS REAL ) WHEN + 48 * CASE - 53 WHEN - 75 * 54 + + + 39 THEN NULL ELSE COALESCE ( - 43, - - MIN ( 13 ) ) END THEN + 31 ELSE + CASE + + 96 WHEN + + ( + 30 ) * + 65 THEN NULL WHEN - 87 * CAST ( + - 52 AS REAL ) * + 44 THEN + + 18 ELSE NULL END * + COUNT ( * ) * + 93 * - SUM ( DISTINCT 38 ) * - 20 END * 25 + NULLIF ( CAST ( NULL AS INTEGER ), 44 * 29 * - 59 ) * + 10 AS col1
----
NULL

query I rowsort
SELECT 60 * + 40
----
2400

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT 34 / - ( - 23 ) + CASE 59 WHEN + 23 THEN + 2 * ( ( + COUNT( * ) ) ) + - + 52 END - + - 36 * + COALESCE ( - 38, + NULLIF ( 18, - + 36 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3098
SELECT 34 / - ( - 23 ) + CASE 59 WHEN + 23 THEN + 2 * ( ( + COUNT ( * ) ) ) + - + 52 END - + - 36 * + COALESCE ( - 38, + NULLIF ( 18, - + 36 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3099
SELECT COUNT( * ) * + + 51 - + 5 + COUNT( * ) * 67 + 66 DIV + + 8
----
121

skipif mysql # not compatible
query I rowsort label-3099
SELECT COUNT ( * ) * + + 51 - + 5 + COUNT ( * ) * 67 + 66 / + + 8
----
121

query I rowsort
SELECT ALL + 48 - + - 46
----
94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3101
SELECT + NULLIF ( 95, - 80 * - CAST( NULL AS DECIMAL ) + COUNT( * ) )
----
95

skipif mysql # not compatible
query I rowsort label-3101
SELECT + NULLIF ( 95, - 80 * - CAST ( NULL AS REAL ) + COUNT ( * ) )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3102
SELECT ALL - + CASE + - 19 WHEN - 24 + 70 - + 67 * + 98 * + 50 THEN + COUNT( * ) END - - 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3102
SELECT ALL - + CASE + - 19 WHEN - 24 + 70 - + 67 * + 98 * + 50 THEN + COUNT ( * ) END - - 13 AS col2
----
NULL

query II rowsort
SELECT DISTINCT + - 71 AS col1, - 55 * - 16
----
-71
880

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT DISTINCT + ( - COUNT( * ) ) * + 71 * CASE + 79 WHEN - COUNT( * ) THEN + 47 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3104
SELECT DISTINCT + ( - COUNT ( * ) ) * + 71 * CASE + 79 WHEN - COUNT ( * ) THEN + 47 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3105
SELECT - 59 + ( 19 ) AS col1, CAST( - - 15 AS SIGNED )
----
-40
15

skipif mysql # not compatible
query II rowsort label-3105
SELECT - 59 + ( 19 ) AS col1, CAST ( - - 15 AS INTEGER )
----
-40
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT ALL - + 3 - + 14 * SUM( DISTINCT - 30 ) AS col0
----
417

skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL - + 3 - + 14 * SUM ( DISTINCT - 30 ) AS col0
----
417

query I rowsort
SELECT - 72 + 85 + - 46
----
-33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-3108
SELECT - COUNT( * ) DIV 17 * - 10 * + COUNT( * ) * - + CASE - 92 WHEN - COUNT( * ) THEN + 93 - ( - 36 ) + MAX( - + 57 ) ELSE - NULLIF ( + + 74, CAST( NULL AS DECIMAL ) ) END
----
0

skipif mysql # not compatible
query I rowsort label-3108
SELECT - COUNT ( * ) / 17 * - 10 * + COUNT ( * ) * - + CASE - 92 WHEN - COUNT ( * ) THEN + 93 - ( - 36 ) + MAX ( - + 57 ) ELSE - NULLIF ( + + 74, CAST ( NULL AS REAL ) ) END
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3109
SELECT - + 27 * + - CASE + 13 WHEN 1 THEN - ( - + 98 ) * + - 83 + ( 99 ) WHEN + 9 THEN + ( + + COUNT( * ) ) * 61 - + 2 END AS col2, 98 AS col2
----
NULL
98

skipif mysql # not compatible
query II rowsort label-3109
SELECT - + 27 * + - CASE + 13 WHEN 1 THEN - ( - + 98 ) * + - 83 + ( 99 ) WHEN + 9 THEN + ( + + COUNT ( * ) ) * 61 - + 2 END AS col2, 98 AS col2
----
NULL
98

query I rowsort
SELECT DISTINCT + + 90 * - - ( + 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT + + 77 + + - COUNT( * ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-3111
SELECT + + 77 + + - COUNT ( * ) AS col2
----
76

query I rowsort
SELECT ALL + - COALESCE ( + - 5, - 80 * 14 ) * ( - 29 ) + - + 8 AS col0
----
-153

query I rowsort
SELECT + 17 * + 16 AS col0
----
272

query I rowsort
SELECT ALL + + 48 * + 24 AS col0
----
1152

query II rowsort
SELECT DISTINCT + - 86 * + + 4 * 24 AS col1, 57
----
-8256
57

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

skipif mysql # not compatible
query I rowsort label-3116
SELECT ALL 96 / - 31
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3117
SELECT DISTINCT 13 DIV + - 28
----
0

skipif mysql # not compatible
query I rowsort label-3117
SELECT DISTINCT 13 / + - 28
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT DISTINCT COALESCE ( + - MAX( DISTINCT - ( - 56 ) ), 14 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-3118
SELECT DISTINCT COALESCE ( + - MAX ( DISTINCT - ( - 56 ) ), 14 ) AS col1
----
-56

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

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

query I rowsort
SELECT - 48 - - 27 col1
----
-21

query I rowsort
SELECT - 25 - + + 12 + - - NULLIF ( - 62, - 32 ) * - 1 * - 96
----
-5989

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3123
SELECT + NULLIF ( + 42, 1 * + - COUNT( * ) ) + + 77 * - - 15
----
1197

skipif mysql # not compatible
query I rowsort label-3123
SELECT + NULLIF ( + 42, 1 * + - COUNT ( * ) ) + + 77 * - - 15
----
1197

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT DISTINCT 54 + + MIN( ALL - 19 )
----
35

skipif mysql # not compatible
query I rowsort label-3124
SELECT DISTINCT 54 + + MIN ( ALL - 19 )
----
35

query I rowsort
SELECT + 24 + 99
----
123

query I rowsort
SELECT ALL 6 + + 87
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-3127
SELECT + NULLIF ( + 61, - 77 - 51 ) * 29 * + ( + 72 ) * - - 25 + + 94 + + NULLIF ( - 76, - NULLIF ( + 13, - 53 * - 43 * MIN( + 25 ) ) ) AS col1, 58 AS col2
----
3184218
58

skipif mysql # not compatible
query II rowsort label-3127
SELECT + NULLIF ( + 61, - 77 - 51 ) * 29 * + ( + 72 ) * - - 25 + + 94 + + NULLIF ( - 76, - NULLIF ( + 13, - 53 * - 43 * MIN ( + 25 ) ) ) AS col1, 58 AS col2
----
3184218
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3128
SELECT DISTINCT 49 DIV - 88 + + ( 65 ) + 22 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-3128
SELECT DISTINCT 49 / - 88 + + ( 65 ) + 22 AS col2
----
87

query I rowsort
SELECT + COALESCE ( - 76, - - 68 * - 41 - + - 2, - ( - 61 ) ) AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT + ( - MAX( ( + - 44 ) ) ) - 30 + - MIN( ALL 96 )
----
-82

skipif mysql # not compatible
query I rowsort label-3130
SELECT + ( - MAX ( ( + - 44 ) ) ) - 30 + - MIN ( ALL 96 )
----
-82

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3133
SELECT + 48 DIV 56 + 28
----
28

skipif mysql # not compatible
query I rowsort label-3133
SELECT + 48 / 56 + 28
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT ALL 43 * - - ( - 88 ) - + ( + CASE + AVG ( + 63 ) WHEN - - 98 * 4 THEN - COALESCE ( + 2, + MAX( - + 43 ) ) * ( 22 ) ELSE - 29 END ) - + - ( 66 )
----
-3689

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL 43 * - - ( - 88 ) - + ( + CASE + AVG ( + 63 ) WHEN - - 98 * 4 THEN - COALESCE ( + 2, + MAX ( - + 43 ) ) * ( 22 ) ELSE - 29 END ) - + - ( 66 )
----
-3689

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3135
SELECT - CASE 43 WHEN + - 0 THEN + - 4 * MAX( 91 ) * + - 79 + - CAST( - - 94 AS SIGNED ) * 89 - - 24 * 74 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3135
SELECT - CASE 43 WHEN + - 0 THEN + - 4 * MAX ( 91 ) * + - 79 + - CAST ( - - 94 AS INTEGER ) * 89 - - 24 * 74 END AS col2
----
NULL

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

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

query I rowsort
SELECT + - 38 * + 2 AS col0
----
-76

query I rowsort
SELECT ALL - - 68 * + COALESCE ( - 89, 11, - ( + + 76 ) ) col1
----
-6052

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT + - SUM( DISTINCT ( - - 62 ) ) + + MAX( DISTINCT 5 )
----
-57

skipif mysql # not compatible
query I rowsort label-3139
SELECT + - SUM ( DISTINCT ( - - 62 ) ) + + MAX ( DISTINCT 5 )
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3140
SELECT + + 86 + 26 + COUNT( * ) * + 91 * - + CAST( - - 62 AS SIGNED ) * - 33 AS col2
----
186298

skipif mysql # not compatible
query I rowsort label-3140
SELECT + + 86 + 26 + COUNT ( * ) * + 91 * - + CAST ( - - 62 AS INTEGER ) * - 33 AS col2
----
186298

query I rowsort
SELECT ALL 6 * + ( 60 ) - + 17 AS col1
----
343

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT - 59 - + 17 * - MAX( 75 )
----
1216

skipif mysql # not compatible
query I rowsort label-3142
SELECT - 59 - + 17 * - MAX ( 75 )
----
1216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3143
SELECT ALL 12 * - COUNT( * ) + 88 DIV + + MAX( DISTINCT 13 ) + 55 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-3143
SELECT ALL 12 * - COUNT ( * ) + 88 / + + MAX ( DISTINCT 13 ) + 55 AS col2
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3144
SELECT - CAST( + 0 AS SIGNED ) + - 6
----
-6

skipif mysql # not compatible
query I rowsort label-3144
SELECT - CAST ( + 0 AS INTEGER ) + - 6
----
-6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT - SUM( DISTINCT + 66 ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-3146
SELECT - SUM ( DISTINCT + 66 ) AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT - 25 + ( + COUNT( * ) ) * - 43 col2
----
-68

skipif mysql # not compatible
query I rowsort label-3147
SELECT - 25 + ( + COUNT ( * ) ) * - 43 col2
----
-68

query I rowsort
SELECT - 31 - - 83 AS col1
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3149
SELECT - COUNT( * ) + - - ( + 51 ) DIV + 61
----
-1

skipif mysql # not compatible
query I rowsort label-3149
SELECT - COUNT ( * ) + - - ( + 51 ) / + 61
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3150
SELECT ALL CAST( 36 AS SIGNED ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-3150
SELECT ALL CAST ( 36 AS INTEGER ) AS col2
----
36

query I rowsort
SELECT DISTINCT - 59 * + - 87
----
5133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3152
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) + + 51 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-3152
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) + + 51 AS col2
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3153
SELECT - 95 * 45 DIV - SUM( 62 ) * - 1 + 42 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-3153
SELECT - 95 * 45 / - SUM ( 62 ) * - 1 + 42 AS col1
----
-26

query I rowsort
SELECT ALL + 86 + - - 36 AS col2
----
122

query I rowsort
SELECT ALL + 14 * - 83 * + - 80 AS col2
----
92960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3156
SELECT DISTINCT 41 DIV COUNT( * ) col1
----
41

skipif mysql # not compatible
query I rowsort label-3156
SELECT DISTINCT 41 / COUNT ( * ) col1
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-3157
SELECT ALL 59 DIV - 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3157
SELECT ALL 59 / - 73 AS col2
----
0

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3160
SELECT + 17 DIV + 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3160
SELECT + 17 / + 48 AS col0
----
0

query I rowsort
SELECT 76 + 83
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT + 7 * COALESCE ( - ( ( + + 16 ) ), 74 ) + + + SUM( ALL - 4 )
----
-116

skipif mysql # not compatible
query I rowsort label-3162
SELECT + 7 * COALESCE ( - ( ( + + 16 ) ), 74 ) + + + SUM ( ALL - 4 )
----
-116

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3164
SELECT DISTINCT 6 * + CAST( - 49 AS SIGNED ) - 29 col1
----
-323

skipif mysql # not compatible
query I rowsort label-3164
SELECT DISTINCT 6 * + CAST ( - 49 AS INTEGER ) - 29 col1
----
-323

query II rowsort
SELECT DISTINCT - + 28 AS col1, - 7
----
-28
-7

query II rowsort
SELECT - 44 * + 29 + + - 15, + 8 AS col1
----
-1291
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT - 21 * + COUNT( * ) * - - 94 col1
----
-1974

skipif mysql # not compatible
query I rowsort label-3167
SELECT - 21 * + COUNT ( * ) * - - 94 col1
----
-1974

query I rowsort
SELECT ALL 90 + 44 * 3 col0
----
222

query I rowsort
SELECT ALL ( - + 80 ) + - 35 AS col0
----
-115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3170
SELECT - AVG ( DISTINCT 69 ) * - CAST( NULL AS SIGNED ) + + - CAST( NULL AS SIGNED ) + + - 9 AS col0, MAX( ALL + 48 ) * + - 36 col1
----
NULL
-1728

skipif mysql # not compatible
query II rowsort label-3170
SELECT - AVG ( DISTINCT 69 ) * - CAST ( NULL AS INTEGER ) + + - CAST ( NULL AS INTEGER ) + + - 9 AS col0, MAX ( ALL + 48 ) * + - 36 col1
----
NULL
-1728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3171
SELECT ALL 17 DIV + MAX( DISTINCT 35 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3171
SELECT ALL 17 / + MAX ( DISTINCT 35 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3172
SELECT COUNT( * ) DIV MIN( DISTINCT + - 19 )
----
0

skipif mysql # not compatible
query I rowsort label-3172
SELECT COUNT ( * ) / MIN ( DISTINCT + - 19 )
----
0

query I rowsort
SELECT 71 + 86 + + ( 44 ) * + - 70
----
-2923

query I rowsort
SELECT 45 * CASE + 71 WHEN + 11 THEN - + 78 END AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3175
SELECT ALL ( + CAST( NULL AS DECIMAL ) ) + - 1 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3175
SELECT ALL ( + CAST ( NULL AS REAL ) ) + - 1 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT DISTINCT 42 + + + COUNT( + 22 )
----
43

skipif mysql # not compatible
query I rowsort label-3176
SELECT DISTINCT 42 + + + COUNT ( + 22 )
----
43

query I rowsort
SELECT 70 * - + 13
----
-910

query I rowsort
SELECT 77 + + 69 + - 45 + + 69 * + 78
----
5483

onlyif mysql # aggregate syntax: 
query II rowsort label-3179
SELECT DISTINCT - 36 - + MIN( - ( 76 ) ) AS col0, - COUNT( * ) * COUNT( * )
----
40
-1

skipif mysql # not compatible
query II rowsort label-3179
SELECT DISTINCT - 36 - + MIN ( - ( 76 ) ) AS col0, - COUNT ( * ) * COUNT ( * )
----
40
-1

query I rowsort
SELECT 96 * 84 AS col1
----
8064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3181
SELECT CAST( + 47 AS SIGNED ) - + 73 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-3181
SELECT CAST ( + 47 AS INTEGER ) - + 73 AS col0
----
-26

query III rowsort
SELECT - 88 AS col1, 24 + + 80 + + + 33 + - 74 * 72 * 93 AS col1, - 14 * - - 60 - - + 52 + + 89 * + 60 col0
----
-88
-495367
4552

query II rowsort
SELECT - 41, - 56 AS col1
----
-41
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT ALL - 10 * - COUNT( * ) * 3 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-3184
SELECT ALL - 10 * - COUNT ( * ) * 3 AS col2
----
30

query I rowsort
SELECT DISTINCT - 38 * + 32 AS col0
----
-1216

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3186
SELECT ALL 99 AS col2, - CAST( + - ( - - 39 ) AS SIGNED ) AS col1
----
99
39

skipif mysql # not compatible
query II rowsort label-3186
SELECT ALL 99 AS col2, - CAST ( + - ( - - 39 ) AS INTEGER ) AS col1
----
99
39

query II rowsort
SELECT 90 col2, + ( 66 ) AS col1
----
90
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3188
SELECT - 17 / 55 * 65 * + + 0 + + - COALESCE ( - 13, + 42, - 17 * + CASE - - COUNT( * ) WHEN + 94 THEN + 17 END * + - COUNT( * ) + - + COUNT( * ) + - 47 / + + CAST( NULL AS SIGNED ) * + - MIN( ALL + 80 ) * + + 96 + - 67, - 41 ) + + - 58 + 33 * + - 69 - 55 + + - 45 * + - CAST( NULL AS SIGNED ) + - COUNT( * ) + + + 43 * - + 65 * - COUNT( * ) - 80 + + 12 / + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-3188
SELECT - 17 / 55 * 65 * + + 0 + + - COALESCE ( - 13, + 42, - 17 * + CASE - - COUNT ( * ) WHEN + 94 THEN + 17 END * + - COUNT ( * ) + - + COUNT ( * ) + - 47 / + + CAST ( NULL AS INTEGER ) * + - MIN ( ALL + 80 ) * + + 96 + - 67, - 41 ) + + - 58 + 33 * + - 69 - 55 + + - 45 * + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) + + + 43 * - + 65 * - COUNT ( * ) - 80 + + 12 / + 88
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3189
SELECT ALL + COUNT( * ) * + NULLIF ( - + 58, - CAST( NULL AS SIGNED ) ) * ( - ( - 53 ) ) DIV - 86 - + + 29 + - - COUNT( * ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-3189
SELECT ALL + COUNT ( * ) * + NULLIF ( - + 58, - CAST ( NULL AS INTEGER ) ) * ( - ( - 53 ) ) / - 86 - + + 29 + - - COUNT ( * ) AS col0
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-3190
SELECT DISTINCT 51 DIV + - 10
----
-5

skipif mysql # not compatible
query I rowsort label-3190
SELECT DISTINCT 51 / + - 10
----
-5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT + COALESCE ( + 60, 2 * 41 * 36 * COUNT( * ) )
----
60

skipif mysql # not compatible
query I rowsort label-3192
SELECT + COALESCE ( + 60, 2 * 41 * 36 * COUNT ( * ) )
----
60

query I rowsort
SELECT 15 * - ( - + 91 ) AS col0
----
1365

query I rowsort
SELECT - 91 * - 36 AS col2
----
3276

query II rowsort
SELECT DISTINCT - + 84 col2, 11 * ( - - 20 ) + - 23
----
-84
197

query I rowsort
SELECT ALL - 9 + - 42 AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT MAX( ( + 22 ) ) * + 5 AS col0
----
110

skipif mysql # not compatible
query I rowsort label-3197
SELECT MAX ( ( + 22 ) ) * + 5 AS col0
----
110

query I rowsort
SELECT DISTINCT - + 79 + 27
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3199
SELECT ALL 80 + - 74 + 67 * 17 AS col2, + CAST( NULL AS SIGNED ) * - 7 AS col1
----
1145
NULL

skipif mysql # not compatible
query II rowsort label-3199
SELECT ALL 80 + - 74 + 67 * 17 AS col2, + CAST ( NULL AS INTEGER ) * - 7 AS col1
----
1145
NULL

query II rowsort
SELECT 88, - 55 * 65 AS col1
----
88
-3575

query I rowsort
SELECT 76 * + 14
----
1064

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT ALL 24 + + SUM( ALL + 98 ) AS col0
----
122

skipif mysql # not compatible
query I rowsort label-3202
SELECT ALL 24 + + SUM ( ALL + 98 ) AS col0
----
122

query I rowsort
SELECT 63 + + - 61 * 79 AS col0
----
-4756

onlyif mysql # aggregate syntax: 
query II rowsort label-3204
SELECT + - COUNT( * ) AS col1, - 33 * + 16 AS col0
----
-1
-528

skipif mysql # not compatible
query II rowsort label-3204
SELECT + - COUNT ( * ) AS col1, - 33 * + 16 AS col0
----
-1
-528

query II rowsort
SELECT - 32 AS col0, 56 AS col1
----
-32
56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3206
SELECT CASE 40 WHEN - + 1 * - 16 THEN - + CAST( NULL AS DECIMAL ) * - - 82 / + + MIN( - + 62 ) END * - + 81 * + - ( + 83 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3206
SELECT CASE 40 WHEN - + 1 * - 16 THEN - + CAST ( NULL AS REAL ) * - - 82 / + + MIN ( - + 62 ) END * - + 81 * + - ( + 83 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT 55 + + MIN( 7 ) * - 20 - 14 * - ( + + 45 )
----
545

skipif mysql # not compatible
query I rowsort label-3207
SELECT 55 + + MIN ( 7 ) * - 20 - 14 * - ( + + 45 )
----
545

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3208
SELECT 61 + + 75 * COALESCE ( + 69, + ( + CAST( + 17 AS SIGNED ) ) )
----
5236

skipif mysql # not compatible
query I rowsort label-3208
SELECT 61 + + 75 * COALESCE ( + 69, + ( + CAST ( + 17 AS INTEGER ) ) )
----
5236

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT ALL 66 * MAX( ALL - - 98 ) AS col2
----
6468

skipif mysql # not compatible
query I rowsort label-3209
SELECT ALL 66 * MAX ( ALL - - 98 ) AS col2
----
6468

onlyif mysql # DIV for integer division: 
query I rowsort label-3210
SELECT DISTINCT 95 DIV 7 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-3210
SELECT DISTINCT 95 / 7 AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT + 99 * + CASE - - COUNT( * ) WHEN - 95 * - - NULLIF ( 71, - 58 ) THEN - 76 + 6 END * + 35 + - ( + 43 ) + ( - - 54 ) / - 36 - + ( + 31 ) + + + 51 + - 15 / + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-3211
SELECT + 99 * + CASE - - COUNT ( * ) WHEN - 95 * - - NULLIF ( 71, - 58 ) THEN - 76 + 6 END * + 35 + - ( + 43 ) + ( - - 54 ) / - 36 - + ( + 31 ) + + + 51 + - 15 / + 6
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3212
SELECT ALL 30 * + 67, - COUNT( - + 36 ) AS col1
----
2010
-1

skipif mysql # not compatible
query II rowsort label-3212
SELECT ALL 30 * + 67, - COUNT ( - + 36 ) AS col1
----
2010
-1

query I rowsort
SELECT + 12 + - 4 + 53 AS col1
----
61

query I rowsort
SELECT ALL 24 * + ( + 90 ) * - ( - 18 ) + + - 87
----
38793

query I rowsort
SELECT - 94 + 42 AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT + COUNT( ALL - NULLIF ( - + 12, - 83 ) ) * + 68 + - - 28
----
96

skipif mysql # not compatible
query I rowsort label-3216
SELECT + COUNT ( ALL - NULLIF ( - + 12, - 83 ) ) * + 68 + - - 28
----
96

query I rowsort
SELECT ALL 88 * + - 18
----
-1584

query I rowsort
SELECT - NULLIF ( - - 0, + + ( + 34 ) ) AS col0
----
0

query I rowsort
SELECT + 58 + + + 28 + + 50 - + + 80 AS col2
----
56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT - COUNT( 95 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3221
SELECT - COUNT ( 95 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3222
SELECT - CAST( COUNT( * ) AS SIGNED ) * - 13 + 96
----
109

skipif mysql # not compatible
query I rowsort label-3222
SELECT - CAST ( COUNT ( * ) AS INTEGER ) * - 13 + 96
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3223
SELECT + 2 * + - COUNT( * ) * - - 28 * CAST( NULL AS SIGNED ) + + + 47 * CAST( - 99 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3223
SELECT + 2 * + - COUNT ( * ) * - - 28 * CAST ( NULL AS INTEGER ) + + + 47 * CAST ( - 99 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT DISTINCT - - 78 * + NULLIF ( + MIN( ALL + 15 ), + + 4 / ( - COUNT( * ) ) * + 14 ) + + 69 AS col0
----
1239

skipif mysql # not compatible
query I rowsort label-3224
SELECT DISTINCT - - 78 * + NULLIF ( + MIN ( ALL + 15 ), + + 4 / ( - COUNT ( * ) ) * + 14 ) + + 69 AS col0
----
1239

onlyif mysql # DIV for integer division: 
query I rowsort label-3225
SELECT ALL + + 12 * + + 85 - - 88 + - + 86 DIV - ( - 40 ) + + 79 * + + 93
----
8453

skipif mysql # not compatible
query I rowsort label-3225
SELECT ALL + + 12 * + + 85 - - 88 + - + 86 / - ( - 40 ) + + 79 * + + 93
----
8453

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3226
SELECT + SUM( + ( - 99 ) ) * + ( + 58 ) * + 83 + - + 97 * + - 10 / 16 * - 12 + 82 * + 93 + - - NULLIF ( + 54, 16 ) - 16 * - NULLIF ( CASE - - 74 WHEN ( + COALESCE ( COALESCE ( 74, - 91 / + 11 + + 72 * 60 ), 62 ) ) + - ( COUNT( * ) ) + 52 * + 8 THEN - 8 END, - 42 * + CAST( NULL AS SIGNED ) * - + CASE - 21 WHEN + - CASE - CASE COUNT( * ) WHEN COUNT( * ) THEN 59 WHEN - 90 - - 37 * CAST( NULL AS SIGNED ) THEN 63 + 95 END WHEN COUNT( * ) THEN NULL WHEN 80 * 47 + 74 THEN NULL WHEN + 33 THEN 97 ELSE 94 END + MIN( - 95 ) THEN 74 ELSE NULL END + + 17 + CAST( + COUNT( * ) AS SIGNED ) * CAST( + 30 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3226
SELECT + SUM ( + ( - 99 ) ) * + ( + 58 ) * + 83 + - + 97 * + - 10 / 16 * - 12 + 82 * + 93 + - - NULLIF ( + 54, 16 ) - 16 * - NULLIF ( CASE - - 74 WHEN ( + COALESCE ( COALESCE ( 74, - 91 / + 11 + + 72 * 60 ), 62 ) ) + - ( COUNT ( * ) ) + 52 * + 8 THEN - 8 END, - 42 * + CAST ( NULL AS INTEGER ) * - + CASE - 21 WHEN + - CASE - CASE COUNT ( * ) WHEN COUNT ( * ) THEN 59 WHEN - 90 - - 37 * CAST ( NULL AS INTEGER ) THEN 63 + 95 END WHEN COUNT ( * ) THEN NULL WHEN 80 * 47 + 74 THEN NULL WHEN + 33 THEN 97 ELSE 94 END + MIN ( - 95 ) THEN 74 ELSE NULL END + + 17 + CAST ( + COUNT ( * ) AS INTEGER ) * CAST ( + 30 AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3227
SELECT - - 72 DIV + 10 col1
----
7

skipif mysql # not compatible
query I rowsort label-3227
SELECT - - 72 / + 10 col1
----
7

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

skipif mysql # not compatible
query I rowsort label-3228
SELECT ALL + COUNT ( * ) / 35
----
0

query II rowsort
SELECT + 50 AS col2, NULLIF ( + + 38, 55 )
----
50
38

query I rowsort
SELECT ALL 42 * 57 * - 35 AS col1
----
-83790

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3232
SELECT - COALESCE ( - + COUNT( * ), - + 0 ), - 95 col0
----
1
-95

skipif mysql # not compatible
query II rowsort label-3232
SELECT - COALESCE ( - + COUNT ( * ), - + 0 ), - 95 col0
----
1
-95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3233
SELECT ALL CAST( NULL AS SIGNED ) AS col0, ( + 72 ) * ( - 1 ) AS col2
----
NULL
-72

skipif mysql # not compatible
query II rowsort label-3233
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, ( + 72 ) * ( - 1 ) AS col2
----
NULL
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-3234
SELECT - ( 42 ) * - 50 AS col1, - 49 - + 42 + + COUNT( * ) * 83 - - + 50 * - + NULLIF ( + - ( COUNT( * ) ), - COUNT( * ) + COALESCE ( + 60, + 19 + + 17 - + 41 * - 66 ) )
----
2100
42

skipif mysql # not compatible
query II rowsort label-3234
SELECT - ( 42 ) * - 50 AS col1, - 49 - + 42 + + COUNT ( * ) * 83 - - + 50 * - + NULLIF ( + - ( COUNT ( * ) ), - COUNT ( * ) + COALESCE ( + 60, + 19 + + 17 - + 41 * - 66 ) )
----
2100
42

onlyif mysql # DIV for integer division: 
query I rowsort label-3235
SELECT + 94 + - ( 4 ) DIV 15 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-3235
SELECT + 94 + - ( 4 ) / 15 AS col1
----
94

query I rowsort
SELECT DISTINCT ( ( + COALESCE ( - 81, 27 ) ) )
----
-81

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

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

query I rowsort
SELECT DISTINCT 82 + - - ( 68 ) col2
----
150

query II rowsort
SELECT 45 AS col1, - 24 AS col0
----
45
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-3240
SELECT + + COUNT( * ) + - - 87 * + - 45 AS col0, 50 * - 14
----
-3914
-700

skipif mysql # not compatible
query II rowsort label-3240
SELECT + + COUNT ( * ) + - - 87 * + - 45 AS col0, 50 * - 14
----
-3914
-700

query I rowsort
SELECT - ( + CASE - 30 WHEN 82 THEN - + 61 + - 50 - + 1 END ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3242
SELECT DISTINCT NULLIF ( - 75, - 5 * - MAX( + 75 ) * - - CAST( + 2 AS SIGNED ) * 27 + - 97 - + 2 ) * + 98
----
-7350

skipif mysql # not compatible
query I rowsort label-3242
SELECT DISTINCT NULLIF ( - 75, - 5 * - MAX ( + 75 ) * - - CAST ( + 2 AS INTEGER ) * 27 + - 97 - + 2 ) * + 98
----
-7350

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT ALL - 84 + - COUNT( * ) * + 74 + ( - 90 )
----
-248

skipif mysql # not compatible
query I rowsort label-3243
SELECT ALL - 84 + - COUNT ( * ) * + 74 + ( - 90 )
----
-248

query II rowsort
SELECT - + 90 AS col0, - 96 * + 73
----
-90
-7008

query II rowsort
SELECT ALL + 34 AS col1, 97 AS col2
----
34
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3246
SELECT - - 16 / 23 - CAST( + MIN( + 60 ) AS SIGNED ) + + CAST( NULL AS SIGNED ) + - 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3246
SELECT - - 16 / 23 - CAST ( + MIN ( + 60 ) AS INTEGER ) + + CAST ( NULL AS INTEGER ) + - 96 AS col2
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3248
SELECT ALL - 32 DIV + 53
----
0

skipif mysql # not compatible
query I rowsort label-3248
SELECT ALL - 32 / + 53
----
0

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

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

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

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

query I rowsort
SELECT DISTINCT 19 * + 3 * 71
----
4047

query I rowsort
SELECT DISTINCT + NULLIF ( - + 56, - 51 )
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3253
SELECT SUM( ALL - 89 ) * + - 58 + 8 + + + CAST( NULL AS SIGNED ) + + 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3253
SELECT SUM ( ALL - 89 ) * + - 58 + 8 + + + CAST ( NULL AS INTEGER ) + + 25 AS col1
----
NULL

query I rowsort
SELECT - 66 * + + 35 * + 84 AS col1
----
-194040

query I rowsort
SELECT 96 * - 66 AS col0
----
-6336

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3257
SELECT 60 * + - 20 * - 16 * - 59 + - 28 + + CAST( - + 85 AS SIGNED )
----
-1132913

skipif mysql # not compatible
query I rowsort label-3257
SELECT 60 * + - 20 * - 16 * - 59 + - 28 + + CAST ( - + 85 AS INTEGER )
----
-1132913

onlyif mysql # DIV for integer division: 
query I rowsort label-3258
SELECT DISTINCT - 5 DIV + - 16 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3258
SELECT DISTINCT - 5 / + - 16 AS col0
----
0

query I rowsort
SELECT 89 + + + 17 AS col2
----
106

query I rowsort
SELECT 95 + + 68
----
163

query I rowsort
SELECT ALL + 33 + + ( 15 ) AS col2
----
48

query I rowsort
SELECT DISTINCT - 79 + + 81 * + - ( - - 53 ) + + + 91
----
-4281

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

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

query I rowsort
SELECT 14 + + 4 * 37 col2
----
162

onlyif mysql # aggregate syntax: 
query II rowsort label-3265
SELECT DISTINCT + NULLIF ( + 7, - - COUNT( * ) ) * 68 * 86 AS col0, + 48 * + + COUNT( * ) * 99 AS col0
----
40936
4752

skipif mysql # not compatible
query II rowsort label-3265
SELECT DISTINCT + NULLIF ( + 7, - - COUNT ( * ) ) * 68 * 86 AS col0, + 48 * + + COUNT ( * ) * 99 AS col0
----
40936
4752

query I rowsort
SELECT ALL + 88 * - 44 AS col0
----
-3872

query I rowsort
SELECT 1 * 77 AS col2
----
77

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

skipif mysql # not compatible
query I rowsort label-3268
SELECT 4 + COUNT ( * ) / - 55
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-3269
SELECT + COALESCE ( 30, COUNT( * ) ) + 61 - - 56 - - - COALESCE ( + + 69, + - 12 * - 62 ), 24 AS col1
----
78
24

skipif mysql # not compatible
query II rowsort label-3269
SELECT + COALESCE ( 30, COUNT ( * ) ) + 61 - - 56 - - - COALESCE ( + + 69, + - 12 * - 62 ), 24 AS col1
----
78
24

query I rowsort
SELECT DISTINCT 83 + - + 98 * 46 AS col0
----
-4425

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT COALESCE ( + NULLIF ( + COUNT( ALL + + 96 ), NULLIF ( + + 48, - - 86 / + COALESCE ( + - 67, - 79, - MIN( + 19 ) + - - 12 + + 94 + - + 41 - + + ( - 79 ) / + 39 * 50 * + 78 + 44 * - NULLIF ( + 23, + - 44 / ( 11 ) + + 62 ) * - - SUM( + + COALESCE ( + 93, 74 * + 4, - 81 + ( - - 40 ) ) ) ) ) ), + 54 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3271
SELECT COALESCE ( + NULLIF ( + COUNT ( ALL + + 96 ), NULLIF ( + + 48, - - 86 / + COALESCE ( + - 67, - 79, - MIN ( + 19 ) + - - 12 + + 94 + - + 41 - + + ( - 79 ) / + 39 * 50 * + 78 + 44 * - NULLIF ( + 23, + - 44 / ( 11 ) + + 62 ) * - - SUM ( + + COALESCE ( + 93, 74 * + 4, - 81 + ( - - 40 ) ) ) ) ) ), + 54 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3272
SELECT DISTINCT + 86 + - - CASE + 43 WHEN + 15 - 19 + + - 10 - COUNT( * ) + + CAST( NULL AS SIGNED ) * + COUNT( * ) * 15 * + 10 THEN NULL WHEN - + COUNT( DISTINCT 99 ) - - - 5 THEN + - CAST( NULL AS SIGNED ) ELSE 44 END
----
130

skipif mysql # not compatible
query I rowsort label-3272
SELECT DISTINCT + 86 + - - CASE + 43 WHEN + 15 - 19 + + - 10 - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) * 15 * + 10 THEN NULL WHEN - + COUNT ( DISTINCT 99 ) - - - 5 THEN + - CAST ( NULL AS INTEGER ) ELSE 44 END
----
130

query I rowsort
SELECT CASE - + 80 WHEN 6 THEN 34 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3274
SELECT ALL + ( - 60 ) + 59 * - 97 + 8 - - COUNT( * ) DIV - 74 + + - 14 AS col2
----
-5789

skipif mysql # not compatible
query I rowsort label-3274
SELECT ALL + ( - 60 ) + 59 * - 97 + 8 - - COUNT ( * ) / - 74 + + - 14 AS col2
----
-5789

query I rowsort
SELECT - 47 + - NULLIF ( - 64, - - 62 )
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3276
SELECT + CASE - 52 WHEN - 12 THEN + CAST( + AVG ( + + 68 ) AS SIGNED ) WHEN - - 88 THEN - 53 + - 30 WHEN + - 59 THEN NULL END * + + 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3276
SELECT + CASE - 52 WHEN - 12 THEN + CAST ( + AVG ( + + 68 ) AS INTEGER ) WHEN - - 88 THEN - 53 + - 30 WHEN + - 59 THEN NULL END * + + 8 AS col1
----
NULL

query I rowsort
SELECT + 21 * - 53 + + 49
----
-1064

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT ALL CASE + 19 WHEN AVG ( - - 52 ) + - AVG ( DISTINCT - 22 ) - - COUNT( * ) * COUNT( * ) THEN NULL WHEN 44 + - + MIN( 9 ) + + - 98 + + 42 + - - 86 * - 96 THEN + + 7 * + - 1 + - 30 ELSE NULL END * + + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-3278
SELECT ALL CASE + 19 WHEN AVG ( - - 52 ) + - AVG ( DISTINCT - 22 ) - - COUNT ( * ) * COUNT ( * ) THEN NULL WHEN 44 + - + MIN ( 9 ) + + - 98 + + 42 + - - 86 * - 96 THEN + + 7 * + - 1 + - 30 ELSE NULL END * + + 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT - 60 + MAX( - NULLIF ( + 75, + - 89 ) ) AS col2
----
-135

skipif mysql # not compatible
query I rowsort label-3279
SELECT - 60 + MAX ( - NULLIF ( + 75, + - 89 ) ) AS col2
----
-135

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

skipif mysql # not compatible
query I rowsort label-3280
SELECT - 30 - - 35 + - COUNT ( * ) + + - 0 + + 21 * - COUNT ( * ) / + CAST ( NULL AS INTEGER ) * 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT ALL COUNT( * ) * - 76 * - 94 AS col2
----
7144

skipif mysql # not compatible
query I rowsort label-3281
SELECT ALL COUNT ( * ) * - 76 * - 94 AS col2
----
7144

query I rowsort
SELECT - 87 * 16 AS col1
----
-1392

query I rowsort
SELECT ALL 57 * 64 * - 9 AS col1
----
-32832

onlyif mysql # DIV for integer division: 
query I rowsort label-3284
SELECT + - 54 DIV 26 + + + 7 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-3284
SELECT + - 54 / 26 + + + 7 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT CASE 17 WHEN + 93 THEN - 74 WHEN COUNT( ALL 43 ) - + COALESCE ( COUNT( * ), 99, + - MAX( - 30 ), + 71 * + + COUNT( * ) + - 27 + - COUNT( * ) ) THEN + - 39 + - MIN( - + 85 ) / + COUNT( * ) * + COUNT( * ) ELSE NULL END + + - 77 + 83 / - AVG ( - ( + 98 ) ) * 31 + ( - 89 ) - + - 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3285
SELECT CASE 17 WHEN + 93 THEN - 74 WHEN COUNT ( ALL 43 ) - + COALESCE ( COUNT ( * ), 99, + - MAX ( - 30 ), + 71 * + + COUNT ( * ) + - 27 + - COUNT ( * ) ) THEN + - 39 + - MIN ( - + 85 ) / + COUNT ( * ) * + COUNT ( * ) ELSE NULL END + + - 77 + 83 / - AVG ( - ( + 98 ) ) * 31 + ( - 89 ) - + - 91 AS col2
----
NULL

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

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

query II rowsort
SELECT + 5 AS col0, 18
----
5
18

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

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

query I rowsort
SELECT 80 * + 2 col1
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT DISTINCT - MIN( + + 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-3290
SELECT DISTINCT - MIN ( + + 24 )
----
-24

query I rowsort
SELECT ALL 71 + - - 97
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT + COUNT( DISTINCT 38 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3292
SELECT + COUNT ( DISTINCT 38 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT DISTINCT - CASE 75 WHEN + COUNT( * ) THEN NULL ELSE 76 * - + 50 END
----
3800

skipif mysql # not compatible
query I rowsort label-3293
SELECT DISTINCT - CASE 75 WHEN + COUNT ( * ) THEN NULL ELSE 76 * - + 50 END
----
3800

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT ALL - MIN( - 91 ) + + 8 + 10
----
109

skipif mysql # not compatible
query I rowsort label-3294
SELECT ALL - MIN ( - 91 ) + + 8 + 10
----
109

query I rowsort
SELECT 5 * - 71 AS col2
----
-355

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT ALL 65 * + + SUM( DISTINCT + - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-3296
SELECT ALL 65 * + + SUM ( DISTINCT + - 0 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3297
SELECT 11 DIV - 39 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3297
SELECT 11 / - 39 AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3299
SELECT MAX( + + 82 ) * + 96 AS col0, ( COUNT( * ) ) AS col1
----
7872
1

skipif mysql # not compatible
query II rowsort label-3299
SELECT MAX ( + + 82 ) * + 96 AS col0, ( COUNT ( * ) ) AS col1
----
7872
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3300
SELECT DISTINCT - COUNT( * ) + + - ( 91 ) AS col0, - MIN( DISTINCT + + 52 ) + COUNT( * )
----
-92
-51

skipif mysql # not compatible
query II rowsort label-3300
SELECT DISTINCT - COUNT ( * ) + + - ( 91 ) AS col0, - MIN ( DISTINCT + + 52 ) + COUNT ( * )
----
-92
-51

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3301
SELECT 14 DIV - CAST( - 23 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3301
SELECT 14 / - CAST ( - 23 AS INTEGER ) AS col1
----
0

query I rowsort
SELECT ALL - - 74 + - - 22
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3303
SELECT ALL + 6 DIV + - 72 * 65 * - 11 col2
----
0

skipif mysql # not compatible
query I rowsort label-3303
SELECT ALL + 6 / + - 72 * 65 * - 11 col2
----
0

query I rowsort
SELECT ALL - 48 + 15 AS col2
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3305
SELECT DISTINCT - - 45 - CAST( NULL AS SIGNED ) * + - ( - 0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3305
SELECT DISTINCT - - 45 - CAST ( NULL AS INTEGER ) * + - ( - 0 )
----
NULL

query I rowsort
SELECT 20 * + - 89
----
-1780

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT ALL - + MIN( ALL + 30 ) * + + 31 AS col0
----
-930

skipif mysql # not compatible
query I rowsort label-3307
SELECT ALL - + MIN ( ALL + 30 ) * + + 31 AS col0
----
-930

query I rowsort
SELECT - 35 + - - 98
----
63

query III rowsort
SELECT - 45 AS col2, + 93 * + 95 AS col2, 21
----
-45
8835
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT COUNT( * ) + - + 61 + - 64 col1
----
-124

skipif mysql # not compatible
query I rowsort label-3310
SELECT COUNT ( * ) + - + 61 + - 64 col1
----
-124

query II rowsort
SELECT 47 AS col0, 76
----
47
76

query I rowsort
SELECT ALL - 5 * - + 48 + - - 87 + - + 22
----
305

query II rowsort
SELECT + 45 AS col2, 27 AS col1
----
45
27

query I rowsort
SELECT + 85 * - 6 + 63
----
-447

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3315
SELECT ALL - 49 DIV + SUM( 81 )
----
0

skipif mysql # not compatible
query I rowsort label-3315
SELECT ALL - 49 / + SUM ( 81 )
----
0

query II rowsort
SELECT ALL - + 68 AS col1, - ( + 68 )
----
-68
-68

query I rowsort
SELECT 86 - + 32
----
54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT + 21 * - - 22 * - + 74 * 28 * 48 + - CASE + - COUNT( * ) WHEN AVG ( ALL 90 ) * - 93 THEN + NULLIF ( - 56, - 11 ) END / 79 + + + 1 + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-3319
SELECT + 21 * - - 22 * - + 74 * 28 * 48 + - CASE + - COUNT ( * ) WHEN AVG ( ALL 90 ) * - 93 THEN + NULLIF ( - 56, - 11 ) END / 79 + + + 1 + 98
----
NULL

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

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

query I rowsort
SELECT DISTINCT 66 * + + ( - 37 )
----
-2442

query I rowsort
SELECT ALL 25 * + 87
----
2175

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT + COUNT( + 87 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3323
SELECT + COUNT ( + 87 ) AS col0
----
1

query I rowsort
SELECT + 65 * + 59 AS col1
----
3835

query I rowsort
SELECT ALL 89 * 79 * 51 * - 68
----
-24383508

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT ALL + 75 * 76 + - + 11 + - NULLIF ( + 44, 83 * + - MAX( ALL + - 80 ) + - 16 * 75 ) + + - 13 * + - 40 col0
----
6165

skipif mysql # not compatible
query I rowsort label-3326
SELECT ALL + 75 * 76 + - + 11 + - NULLIF ( + 44, 83 * + - MAX ( ALL + - 80 ) + - 16 * 75 ) + + - 13 * + - 40 col0
----
6165

query I rowsort
SELECT + 35 * + 29 * + 19 AS col0
----
19285

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT SUM( - 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-3329
SELECT SUM ( - 8 )
----
-8

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

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

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

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

query I rowsort
SELECT 34 * 12 + 44
----
452

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT - 5 - - - 54 * + CASE + 71 WHEN + 92 THEN NULL ELSE COUNT( * ) END + + 29 + - - 51
----
21

skipif mysql # not compatible
query I rowsort label-3333
SELECT - 5 - - - 54 * + CASE + 71 WHEN + 92 THEN NULL ELSE COUNT ( * ) END + + 29 + - - 51
----
21

query I rowsort
SELECT ALL 11 * + 47
----
517

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT + NULLIF ( 85, + 17 * COUNT( * ) * - 29 ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-3335
SELECT + NULLIF ( 85, + 17 * COUNT ( * ) * - 29 ) AS col1
----
85

query I rowsort
SELECT DISTINCT ( - 48 ) - - 45 AS col2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3337
SELECT ALL 9 * - CAST( NULL AS SIGNED ) * 46 * 78
----
NULL

skipif mysql # not compatible
query I rowsort label-3337
SELECT ALL 9 * - CAST ( NULL AS INTEGER ) * 46 * 78
----
NULL

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

query II rowsort
SELECT ALL + 86, + CASE WHEN NOT NULL IS NULL THEN 26 ELSE NULL END / - 75 AS col2
----
86
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT DISTINCT + 27 * - COUNT( 81 ) * 81 * - + 85 + ( + 10 ) AS col2
----
185905

skipif mysql # not compatible
query I rowsort label-3340
SELECT DISTINCT + 27 * - COUNT ( 81 ) * 81 * - + 85 + ( + 10 ) AS col2
----
185905

query I rowsort
SELECT + 6 * 78 AS col0
----
468

query I rowsort
SELECT - 76 * - 75
----
5700

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

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

query I rowsort
SELECT + 20 * 38
----
760

query I rowsort
SELECT - 3 + 79
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3346
SELECT ALL + COUNT( * ) / + - CASE - 20 WHEN + SUM( DISTINCT - + 42 ) * ( + 69 ) + - + 25 + 74 THEN + + 24 - + AVG ( 21 ) * - 56 * + + 2 + - 6 + 19 WHEN 1 THEN NULL END * 99 - - 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3346
SELECT ALL + COUNT ( * ) / + - CASE - 20 WHEN + SUM ( DISTINCT - + 42 ) * ( + 69 ) + - + 25 + 74 THEN + + 24 - + AVG ( 21 ) * - 56 * + + 2 + - 6 + 19 WHEN 1 THEN NULL END * 99 - - 89 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3347
SELECT + + COUNT( * ) * - COALESCE ( - 56, 53 ), - 36 AS col0
----
56
-36

skipif mysql # not compatible
query II rowsort label-3347
SELECT + + COUNT ( * ) * - COALESCE ( - 56, 53 ), - 36 AS col0
----
56
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT - - 64 * - - 54 - + + 87 * + COUNT( * )
----
3369

skipif mysql # not compatible
query I rowsort label-3348
SELECT - - 64 * - - 54 - + + 87 * + COUNT ( * )
----
3369

onlyif mysql # DIV for integer division: 
query I rowsort label-3349
SELECT DISTINCT - 1 DIV - - 71
----
0

skipif mysql # not compatible
query I rowsort label-3349
SELECT DISTINCT - 1 / - - 71
----
0

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

skipif mysql # not compatible
query I rowsort label-3350
SELECT - + ( + 55 ) / - COUNT ( * ) col0
----
55

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3352
SELECT - 78 + + + 62 + + - ( - 21 ) / + + CAST( NULL AS DECIMAL ) * 18 + 59 * 27 + NULLIF ( + CASE COUNT( * ) WHEN + 54 THEN 55 END, 56 ) + - 23 * + 69 * + + CAST( - 62 AS SIGNED ) * - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-3352
SELECT - 78 + + + 62 + + - ( - 21 ) / + + CAST ( NULL AS REAL ) * 18 + 59 * 27 + NULLIF ( + CASE COUNT ( * ) WHEN + 54 THEN 55 END, 56 ) + - 23 * + 69 * + + CAST ( - 62 AS INTEGER ) * - 32
----
NULL

query II rowsort
SELECT ALL 13 AS col2, 36
----
13
36

query I rowsort
SELECT + + 87 + - 14 AS col0
----
73

query II rowsort
SELECT - 74 AS col2, - 30 + - + 54 col1
----
-74
-84

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

query I rowsort
SELECT - - 7 - - 77 AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT - COUNT( * ) + - - 80 * - - 16 AS col1
----
1279

skipif mysql # not compatible
query I rowsort label-3358
SELECT - COUNT ( * ) + - - 80 * - - 16 AS col1
----
1279

query II rowsort
SELECT - 19 - + 21 AS col0, - 26 * - - 37
----
-40
-962

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3360
SELECT ALL ( - + CAST( - 43 AS SIGNED ) ) DIV + - 43 + - 5 + 47 * ( + ( 54 ) ) * + - 12 * 80 + + 28 * + 62
----
-2434750

skipif mysql # not compatible
query I rowsort label-3360
SELECT ALL ( - + CAST ( - 43 AS INTEGER ) ) / + - 43 + - 5 + 47 * ( + ( 54 ) ) * + - 12 * 80 + + 28 * + 62
----
-2434750

onlyif mysql # DIV for integer division: 
query I rowsort label-3361
SELECT DISTINCT 54 DIV 89 + - 27
----
-27

skipif mysql # not compatible
query I rowsort label-3361
SELECT DISTINCT 54 / 89 + - 27
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-3362
SELECT DISTINCT - 64 DIV + 94 + - 32 * + - 55
----
1760

skipif mysql # not compatible
query I rowsort label-3362
SELECT DISTINCT - 64 / + 94 + - 32 * + - 55
----
1760

query I rowsort
SELECT ALL + COALESCE ( + 18, + COALESCE ( - 2, + 25 ) * - 89, + NULLIF ( + 68, - 11 ) * - 78 ) AS col0
----
18

query I rowsort
SELECT - 59 + 25 AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3365
SELECT ALL + NULLIF ( - COUNT( * ), + + 17 * + 35 * + 4 / + 75 )
----
-1

skipif mysql # not compatible
query I rowsort label-3365
SELECT ALL + NULLIF ( - COUNT ( * ), + + 17 * + 35 * + 4 / + 75 )
----
-1

query I rowsort
SELECT + 36 + + 32 AS col2
----
68

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

skipif mysql # not compatible
query I rowsort label-3367
SELECT - ( - - 1 ) * + + COUNT ( ALL + 37 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3368
SELECT ( - NULLIF ( - COUNT( * ), - CAST( - + 76 AS DECIMAL ) ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3368
SELECT ( - NULLIF ( - COUNT ( * ), - CAST ( - + 76 AS REAL ) ) ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT + NULLIF ( + ( 34 ), - - 46 * - SUM( + + ( + 42 ) ) * - + 41 - 31 * + NULLIF ( + + 78, + COUNT( * ) + - + 25 ) )
----
34

skipif mysql # not compatible
query I rowsort label-3369
SELECT + NULLIF ( + ( 34 ), - - 46 * - SUM ( + + ( + 42 ) ) * - + 41 - 31 * + NULLIF ( + + 78, + COUNT ( * ) + - + 25 ) )
----
34

query I rowsort
SELECT ALL - 54 * - 30 + - + 61 + - 42 * + + 10 * + - 47 * 53 + + 44 * 16
----
1048483

onlyif mysql # DIV for integer division: 
query I rowsort label-3371
SELECT DISTINCT + 71 * - 22 + 75 + 20 DIV + 7 AS col0
----
-1485

skipif mysql # not compatible
query I rowsort label-3371
SELECT DISTINCT + 71 * - 22 + 75 + 20 / + 7 AS col0
----
-1485

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT + ( + NULLIF ( + 27, + NULLIF ( + 5, CASE - - 77 WHEN - CASE + 57 WHEN - COUNT( 94 ) THEN - 71 WHEN + 17 / - 81 THEN 99 - + 64 + - ( + ( + + COUNT( * ) ) ) WHEN + 65 THEN NULL END THEN - + 85 * 68 WHEN - 79 THEN NULL END ) ) )
----
27

skipif mysql # not compatible
query I rowsort label-3372
SELECT + ( + NULLIF ( + 27, + NULLIF ( + 5, CASE - - 77 WHEN - CASE + 57 WHEN - COUNT ( 94 ) THEN - 71 WHEN + 17 / - 81 THEN 99 - + 64 + - ( + ( + + COUNT ( * ) ) ) WHEN + 65 THEN NULL END THEN - + 85 * 68 WHEN - 79 THEN NULL END ) ) )
----
27

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

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

query I rowsort
SELECT ALL ( 88 ) * 95 col0
----
8360

query I rowsort
SELECT - 17 * - + 49 * 79
----
65807

query I rowsort
SELECT ALL + 77 * + COALESCE ( + ( + 61 ), + + 99 ) + + + 91
----
4788

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT DISTINCT - 94 * COUNT( * ) - 64 * 95 * - - 95 AS col0
----
-577694

skipif mysql # not compatible
query I rowsort label-3377
SELECT DISTINCT - 94 * COUNT ( * ) - 64 * 95 * - - 95 AS col0
----
-577694

query I rowsort
SELECT ALL + NULLIF ( + 40, - + 97 ) * + 14 AS col0
----
560

query I rowsort
SELECT ALL - 75 * + ( + 26 )
----
-1950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3380
SELECT CASE CAST( - 32 AS SIGNED ) WHEN + - COUNT( * ) * - 42 * - 52 THEN - MAX( DISTINCT + + 20 ) * - 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3380
SELECT CASE CAST ( - 32 AS INTEGER ) WHEN + - COUNT ( * ) * - 42 * - 52 THEN - MAX ( DISTINCT + + 20 ) * - 24 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT - + COUNT( * ) - ( - 91 ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-3381
SELECT - + COUNT ( * ) - ( - 91 ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT DISTINCT - 16 * + NULLIF ( - MIN( ALL - - 3 ), - - 80 ) + + - 1 * - 6 + + 20
----
74

skipif mysql # not compatible
query I rowsort label-3382
SELECT DISTINCT - 16 * + NULLIF ( - MIN ( ALL - - 3 ), - - 80 ) + + - 1 * - 6 + + 20
----
74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3383
SELECT DISTINCT CASE COUNT( * ) WHEN - - 54 THEN COUNT( * ) WHEN - + 91 + + + NULLIF ( + 10, COUNT( * ) * SUM( DISTINCT + 57 ) + + CAST( + SUM( DISTINCT + 96 ) AS DECIMAL ) + + - COUNT( * ) * - COUNT( * ) + + - 32 * + 33 + + - 96 + - COUNT( * ) ) THEN + - 90 * - - ( 93 ) + + 40 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3383
SELECT DISTINCT CASE COUNT ( * ) WHEN - - 54 THEN COUNT ( * ) WHEN - + 91 + + + NULLIF ( + 10, COUNT ( * ) * SUM ( DISTINCT + 57 ) + + CAST ( + SUM ( DISTINCT + 96 ) AS REAL ) + + - COUNT ( * ) * - COUNT ( * ) + + - 32 * + 33 + + - 96 + - COUNT ( * ) ) THEN + - 90 * - - ( 93 ) + + 40 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 55 * + 12 AS col2
----
-660

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

skipif mysql # not compatible
query I rowsort label-3385
SELECT + CAST ( NULL AS INTEGER ) / - 70 - 19 AS col0
----
NULL

query I rowsort
SELECT + + 27 * - 34 - - 22
----
-896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3387
SELECT - COALESCE ( - COUNT( - CAST( - + 44 AS SIGNED ) ), - 21 * - + 2 + + CAST( NULL AS SIGNED ), - - 41 )
----
1

skipif mysql # not compatible
query I rowsort label-3387
SELECT - COALESCE ( - COUNT ( - CAST ( - + 44 AS INTEGER ) ), - 21 * - + 2 + + CAST ( NULL AS INTEGER ), - - 41 )
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3389
SELECT - 12 + + 77 - - COALESCE ( - + ( 39 ), CAST( + CASE - + 17 WHEN - - COALESCE ( + + 21, + 89, + 20 / + 56 ) + - 51 THEN NULL ELSE + 35 * + 64 + - 93 END AS SIGNED ) * + 57 + NULLIF ( CAST( + - 4 AS SIGNED ), + 93 ) )
----
26

skipif mysql # not compatible
query I rowsort label-3389
SELECT - 12 + + 77 - - COALESCE ( - + ( 39 ), CAST ( + CASE - + 17 WHEN - - COALESCE ( + + 21, + 89, + 20 / + 56 ) + - 51 THEN NULL ELSE + 35 * + 64 + - 93 END AS INTEGER ) * + 57 + NULLIF ( CAST ( + - 4 AS INTEGER ), + 93 ) )
----
26

query I rowsort
SELECT ALL - COALESCE ( 48, CASE + + 47 WHEN + 0 THEN + + 78 + 50 END )
----
-48

query I rowsort
SELECT DISTINCT 54 + + 22 * 48 + + 49 AS col2
----
1159

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT ALL - NULLIF ( 95, + COUNT( * ) * - 72 / - 21 + + 74 ) + + - 46 AS col0
----
-141

skipif mysql # not compatible
query I rowsort label-3392
SELECT ALL - NULLIF ( 95, + COUNT ( * ) * - 72 / - 21 + + 74 ) + + - 46 AS col0
----
-141

query I rowsort
SELECT 96 * + 38
----
3648

query I rowsort
SELECT DISTINCT 89 + + 68 * 35
----
2469

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT DISTINCT 7 + + - 10 + 42 * 85 * + - 46 - - - 40 + - - ( + 85 ) * + COUNT( * ) + 39
----
-164139

skipif mysql # not compatible
query I rowsort label-3395
SELECT DISTINCT 7 + + - 10 + 42 * 85 * + - 46 - - - 40 + - - ( + 85 ) * + COUNT ( * ) + 39
----
-164139

onlyif mysql # aggregate syntax: 
query II rowsort label-3396
SELECT DISTINCT - COUNT( * ) col1, 92 * + + 84
----
-1
7728

skipif mysql # not compatible
query II rowsort label-3396
SELECT DISTINCT - COUNT ( * ) col1, 92 * + + 84
----
-1
7728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3397
SELECT ALL - 33 + 14 + + + 91 - + 11 * - + CAST( NULL AS SIGNED ) + 4 + + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-3397
SELECT ALL - 33 + 14 + + + 91 - + 11 * - + CAST ( NULL AS INTEGER ) + 4 + + 79
----
NULL

query II rowsort
SELECT 29 AS col0, - 65 + 22 AS col1
----
29
-43

query I rowsort
SELECT 31 * 75
----
2325

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT DISTINCT - 16 - - 25 * + 78 + + + 69 + + NULLIF ( - 66, + COUNT( * ) ) * - 48 * + 17
----
55859

skipif mysql # not compatible
query I rowsort label-3401
SELECT DISTINCT - 16 - - 25 * + 78 + + + 69 + + NULLIF ( - 66, + COUNT ( * ) ) * - 48 * + 17
----
55859

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT DISTINCT + 61 * - COUNT( * ) * + 4 col0
----
-244

skipif mysql # not compatible
query I rowsort label-3402
SELECT DISTINCT + 61 * - COUNT ( * ) * + 4 col0
----
-244

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT ALL - SUM( ALL - 6 )
----
6

skipif mysql # not compatible
query I rowsort label-3403
SELECT ALL - SUM ( ALL - 6 )
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-3404
SELECT ALL - 65 col0, - ( COUNT( * ) ) + - 48 AS col2
----
-65
-49

skipif mysql # not compatible
query II rowsort label-3404
SELECT ALL - 65 col0, - ( COUNT ( * ) ) + - 48 AS col2
----
-65
-49

query I rowsort
SELECT ALL 58 * + - 37
----
-2146

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

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

query I rowsort
SELECT 20 + - 22 AS col0
----
-2

query I rowsort
SELECT ALL - 78 * + 10 AS col1
----
-780

query I rowsort
SELECT - 97 * + 56
----
-5432

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT + MAX( + 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3410
SELECT + MAX ( + 0 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT ALL - + MAX( ALL + 31 ) * + 10 AS col0
----
-310

skipif mysql # not compatible
query I rowsort label-3411
SELECT ALL - + MAX ( ALL + 31 ) * + 10 AS col0
----
-310

query I rowsort
SELECT ALL - 17 * + 29
----
-493

query II rowsort
SELECT ALL - 84 AS col1, - 68 + 5
----
-84
-63

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

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

query I rowsort
SELECT DISTINCT + 26 + + - 18 * + 39 * + + 43
----
-30160

query II rowsort
SELECT + 47, - 49 AS col1
----
47
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT ALL + 51 + - 58 * - COUNT( * )
----
109

skipif mysql # not compatible
query I rowsort label-3417
SELECT ALL + 51 + - 58 * - COUNT ( * )
----
109

query I rowsort
SELECT ALL + 93 + + CASE + 15 WHEN + 66 THEN NULL ELSE - ( - 36 ) * + 80 END
----
2973

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT - MIN( DISTINCT - + 96 )
----
96

skipif mysql # not compatible
query I rowsort label-3419
SELECT - MIN ( DISTINCT - + 96 )
----
96

query I rowsort
SELECT + 75 * + 8 - + - 77 + - - 37 AS col0
----
714

query I rowsort
SELECT 43 + + 90 col1
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT ALL - 10 + 99 * - COUNT( * ) - + - CASE - 21 WHEN 14 / ( CASE 36 WHEN 9 THEN NULL ELSE + + 50 END ) THEN NULL WHEN - 56 - - - 87 THEN + 22 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3422
SELECT ALL - 10 + 99 * - COUNT ( * ) - + - CASE - 21 WHEN 14 / ( CASE 36 WHEN 9 THEN NULL ELSE + + 50 END ) THEN NULL WHEN - 56 - - - 87 THEN + 22 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3423
SELECT DISTINCT CAST( + 30 AS SIGNED )
----
30

skipif mysql # not compatible
query I rowsort label-3423
SELECT DISTINCT CAST ( + 30 AS INTEGER )
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3424
SELECT CAST( + CASE + NULLIF ( COALESCE ( + - 11, 41 ), - 52 ) WHEN COUNT( * ) * - + 75 THEN NULL ELSE + - 90 + + - 23 END AS SIGNED ) * - + 22 AS col0
----
2486

skipif mysql # not compatible
query I rowsort label-3424
SELECT CAST ( + CASE + NULLIF ( COALESCE ( + - 11, 41 ), - 52 ) WHEN COUNT ( * ) * - + 75 THEN NULL ELSE + - 90 + + - 23 END AS INTEGER ) * - + 22 AS col0
----
2486

query I rowsort
SELECT 5 + + 48 + + 40 - + - 39 + - 69 * - ( + 64 ) AS col0
----
4548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3426
SELECT ALL 66 + - COALESCE ( COUNT( * ), + - 94 + 90 * - 85 * - + CAST( + ( + 80 ) AS SIGNED ) * + + COALESCE ( + COALESCE ( + 33, - 32 ), 30 * - 70 - - NULLIF ( 24, - 56 * - 3 + + CASE + 51 WHEN 0 THEN - 27 END ) ) ) + - - ( - 62 ) * 95
----
-5825

skipif mysql # not compatible
query I rowsort label-3426
SELECT ALL 66 + - COALESCE ( COUNT ( * ), + - 94 + 90 * - 85 * - + CAST ( + ( + 80 ) AS INTEGER ) * + + COALESCE ( + COALESCE ( + 33, - 32 ), 30 * - 70 - - NULLIF ( 24, - 56 * - 3 + + CASE + 51 WHEN 0 THEN - 27 END ) ) ) + - - ( - 62 ) * 95
----
-5825

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3427
SELECT ALL COUNT( * ) + COUNT( * ), NULLIF ( MAX( + 91 ), + + 81 ) DIV 2 AS col1
----
2
45

skipif mysql # not compatible
query II rowsort label-3427
SELECT ALL COUNT ( * ) + COUNT ( * ), NULLIF ( MAX ( + 91 ), + + 81 ) / 2 AS col1
----
2
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT MIN( ALL - + 6 ) + - - CASE - - 80 WHEN + 26 - + - COALESCE ( - ( - - ( + - 35 ) ), + - 92, + - COUNT( * ) ) + 79 THEN - 76 * - 5 + - 13 WHEN + - 84 THEN NULL ELSE NULL END / 47 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3428
SELECT MIN ( ALL - + 6 ) + - - CASE - - 80 WHEN + 26 - + - COALESCE ( - ( - - ( + - 35 ) ), + - 92, + - COUNT ( * ) ) + 79 THEN - 76 * - 5 + - 13 WHEN + - 84 THEN NULL ELSE NULL END / 47 + COUNT ( * )
----
NULL

query I rowsort
SELECT 89 * 50 AS col2
----
4450

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT 31 - 92 - ( + + 27 ) + - MAX( DISTINCT 74 ) + COALESCE ( + 99, 91 ) * + + 23 * - - COUNT( * )
----
2115

skipif mysql # not compatible
query I rowsort label-3430
SELECT 31 - 92 - ( + + 27 ) + - MAX ( DISTINCT 74 ) + COALESCE ( + 99, 91 ) * + + 23 * - - COUNT ( * )
----
2115

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT NULLIF ( MAX( ALL 59 ), + CASE 65 WHEN + 32 THEN + 18 ELSE NULL END ) + 79 * ( + + 9 ) * ( - ( + 1 ) ) + 26
----
-626

skipif mysql # not compatible
query I rowsort label-3431
SELECT NULLIF ( MAX ( ALL 59 ), + CASE 65 WHEN + 32 THEN + 18 ELSE NULL END ) + 79 * ( + + 9 ) * ( - ( + 1 ) ) + 26
----
-626

query I rowsort
SELECT 40 + 15 AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT 43 * - - NULLIF ( COUNT( * ), 28 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-3433
SELECT 43 * - - NULLIF ( COUNT ( * ), 28 ) AS col2
----
43

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT + MAX( ALL 93 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-3436
SELECT + MAX ( ALL 93 ) AS col0
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3437
SELECT - 70 DIV - CASE + COUNT( DISTINCT 82 ) WHEN + 77 THEN + - SUM( + + 6 ) * COUNT( * ) WHEN + - 92 + + - ( + 79 ) THEN NULL WHEN AVG ( ALL - 19 ) THEN 54 ELSE + + COUNT( * ) END + COUNT( * ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-3437
SELECT - 70 / - CASE + COUNT ( DISTINCT 82 ) WHEN + 77 THEN + - SUM ( + + 6 ) * COUNT ( * ) WHEN + - 92 + + - ( + 79 ) THEN NULL WHEN AVG ( ALL - 19 ) THEN 54 ELSE + + COUNT ( * ) END + COUNT ( * ) AS col2
----
71

query I rowsort
SELECT DISTINCT - COALESCE ( 32, + 10, 15 - + 77 ) AS col1
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3439
SELECT ALL 52 DIV 97 DIV + COUNT( * ) col1
----
0

skipif mysql # not compatible
query I rowsort label-3439
SELECT ALL 52 / 97 / + COUNT ( * ) col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3440
SELECT MAX( - 92 ) col0, ( - 42 ) * + + 87 col0
----
-92
-3654

skipif mysql # not compatible
query II rowsort label-3440
SELECT MAX ( - 92 ) col0, ( - 42 ) * + + 87 col0
----
-92
-3654

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT + MAX( - + 62 ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-3441
SELECT + MAX ( - + 62 ) AS col0
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-3442
SELECT 55 * 99 AS col1, - 87 + 17 * - COUNT( * ) + - 93 col0
----
5445
-197

skipif mysql # not compatible
query II rowsort label-3442
SELECT 55 * 99 AS col1, - 87 + 17 * - COUNT ( * ) + - 93 col0
----
5445
-197

query I rowsort
SELECT ALL + - 61 * - - 68 * + - 18 * - + 95 * 34 AS col1
----
-241164720

query I rowsort
SELECT + 44 * + - 99 + + 55 AS col1
----
-4301

query I rowsort
SELECT + 95 * + 69
----
6555

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3446
SELECT ALL - - CAST( - 18 AS SIGNED ) + - MIN( - 10 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-3446
SELECT ALL - - CAST ( - 18 AS INTEGER ) + - MIN ( - 10 ) AS col2
----
-8

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3448
SELECT ALL - 22 + - ( - 59 ) + - 19 * - 70 + + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3448
SELECT ALL - 22 + - ( - 59 ) + - 19 * - 70 + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ( + + 92 ) * - 43 - + 41 AS col1
----
-3997

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3451
SELECT DISTINCT - - 2 + - 30 + + COUNT( * ) DIV 47, + SUM( CASE - 95 WHEN - 93 THEN + 60 END ) * + - NULLIF ( - + 30, - 69 * - COUNT( * ) + 45 + 14 ) AS col1
----
-28
NULL

skipif mysql # not compatible
query II rowsort label-3451
SELECT DISTINCT - - 2 + - 30 + + COUNT ( * ) / 47, + SUM ( CASE - 95 WHEN - 93 THEN + 60 END ) * + - NULLIF ( - + 30, - 69 * - COUNT ( * ) + 45 + 14 ) AS col1
----
-28
NULL

query I rowsort
SELECT - + COALESCE ( 55, + - 76 ) - 40 * - 5
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT DISTINCT - 33 + - + COUNT( * ) + 47
----
13

skipif mysql # not compatible
query I rowsort label-3453
SELECT DISTINCT - 33 + - + COUNT ( * ) + 47
----
13

query I rowsort
SELECT ALL + 78 * - - 40 AS col0
----
3120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3455
SELECT + 89 * - - CAST( - + 83 AS SIGNED ) AS col2
----
-7387

skipif mysql # not compatible
query I rowsort label-3455
SELECT + 89 * - - CAST ( - + 83 AS INTEGER ) AS col2
----
-7387

query I rowsort
SELECT + 6 + - 72 * - + 40 * - + 28 AS col2
----
-80634

onlyif mysql # aggregate syntax: 
query I rowsort label-3457
SELECT DISTINCT NULLIF ( - 45, COUNT( * ) )
----
-45

skipif mysql # not compatible
query I rowsort label-3457
SELECT DISTINCT NULLIF ( - 45, COUNT ( * ) )
----
-45

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

query I rowsort
SELECT DISTINCT 94 * - 6 AS col1
----
-564

query I rowsort
SELECT - 58 - - 7 AS col2
----
-51

query I rowsort
SELECT + 23 * 38
----
874

query I rowsort
SELECT + 35 - 3 AS col2
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3463
SELECT - 40 * + CAST( NULL AS SIGNED ) + + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-3463
SELECT - 40 * + CAST ( NULL AS INTEGER ) + + 64
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3464
SELECT - 75 DIV - 51
----
1

skipif mysql # not compatible
query I rowsort label-3464
SELECT - 75 / - 51
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3465
SELECT + NULLIF ( + + 0, - ( CAST( NULL AS SIGNED ) ) * + 79 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3465
SELECT + NULLIF ( + + 0, - ( CAST ( NULL AS INTEGER ) ) * + 79 ) AS col0
----
0

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

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

query I rowsort
SELECT ALL 77 * 86 + - 5
----
6617

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

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

query I rowsort
SELECT ALL - ( 74 ) * - 5 + 9
----
379

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT DISTINCT - 69 * + MIN( DISTINCT - 64 * 44 ) + - 10
----
194294

skipif mysql # not compatible
query I rowsort label-3470
SELECT DISTINCT - 69 * + MIN ( DISTINCT - 64 * 44 ) + - 10
----
194294

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

skipif mysql # not compatible
query I rowsort label-3471
SELECT ALL 89 * COUNT ( * ) + COUNT ( * ) AS col0
----
90

query I rowsort
SELECT 45 * 20 + + 24
----
924

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT ALL 14 * NULLIF ( - CASE 76 WHEN 85 - 67 THEN NULL ELSE 70 * 76 END, + COUNT( * ) ) + - 20 * 72 AS col0
----
-75920

skipif mysql # not compatible
query I rowsort label-3473
SELECT ALL 14 * NULLIF ( - CASE 76 WHEN 85 - 67 THEN NULL ELSE 70 * 76 END, + COUNT ( * ) ) + - 20 * 72 AS col0
----
-75920

query I rowsort
SELECT + NULLIF ( - 68, - 49 )
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3475
SELECT NULLIF ( SUM( ALL 7 ), CAST( 58 AS SIGNED ) * + MAX( ALL 16 * 99 ) )
----
7

skipif mysql # not compatible
query I rowsort label-3475
SELECT NULLIF ( SUM ( ALL 7 ), CAST ( 58 AS INTEGER ) * + MAX ( ALL 16 * 99 ) )
----
7

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3477
SELECT + 97 + CAST( - 93 + 87 AS SIGNED )
----
91

skipif mysql # not compatible
query I rowsort label-3477
SELECT + 97 + CAST ( - 93 + 87 AS INTEGER )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT + ( COUNT( * ) ) * NULLIF ( - 41, - 78 ) + 66 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-3478
SELECT + ( COUNT ( * ) ) * NULLIF ( - 41, - 78 ) + 66 AS col2
----
25

query I rowsort
SELECT DISTINCT 38 * - 74
----
-2812

query I rowsort
SELECT - 50 + 21 AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT ALL + SUM( ALL 50 ) * - 85 + 72 * - 27
----
-6194

skipif mysql # not compatible
query I rowsort label-3481
SELECT ALL + SUM ( ALL 50 ) * - 85 + 72 * - 27
----
-6194

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

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

query I rowsort
SELECT DISTINCT ( - 31 ) * 42 - 35
----
-1337

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT DISTINCT CASE 97 WHEN 8 THEN - COUNT( * ) * 25 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3485
SELECT DISTINCT CASE 97 WHEN 8 THEN - COUNT ( * ) * 25 END
----
NULL

query I rowsort
SELECT ALL 13 * + 49 - 28 AS col2
----
609

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3488
SELECT DISTINCT - NULLIF ( - COUNT( * ), + 59 ) DIV + 33 col2
----
0

skipif mysql # not compatible
query I rowsort label-3488
SELECT DISTINCT - NULLIF ( - COUNT ( * ), + 59 ) / + 33 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT - CASE 12 WHEN - 6 THEN SUM( ALL + 91 ) / - 62 + - 99 * 7 END / + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-3489
SELECT - CASE 12 WHEN - 6 THEN SUM ( ALL + 91 ) / - 62 + - 99 * 7 END / + 3
----
NULL

query I rowsort
SELECT - 89 * 29 col2
----
-2581

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT - 1 + COUNT( + 91 ) * + 86 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-3491
SELECT - 1 + COUNT ( + 91 ) * + 86 AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT - CASE - 72 WHEN 86 THEN ( COUNT( * ) ) * + 33 + COUNT( ALL + 0 - 34 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3492
SELECT - CASE - 72 WHEN 86 THEN ( COUNT ( * ) ) * + 33 + COUNT ( ALL + 0 - 34 ) END
----
NULL

query I rowsort
SELECT DISTINCT + 2 * 64 AS col2
----
128

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

skipif mysql # not compatible
query I rowsort label-3494
SELECT DISTINCT + 29 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3495
SELECT - 53 DIV COUNT( * ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-3495
SELECT - 53 / COUNT ( * ) AS col1
----
-53

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

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

query I rowsort
SELECT - 71 + - 40 AS col1
----
-111

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3499
SELECT - 17 DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-3499
SELECT - 17 / 88
----
0

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

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

query I rowsort
SELECT - 35 + - 48
----
-83

query I rowsort
SELECT + 99 * 78
----
7722

query I rowsort
SELECT - 11 + NULLIF ( - 87, 84 ) * 43
----
-3752

query I rowsort
SELECT + 17 - - 52 AS col0
----
69

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3506
SELECT - 63 * SUM( CASE 68 WHEN 92 + + 93 THEN NULL WHEN + 42 * 77 THEN + ( 14 ) + CAST( NULL AS DECIMAL ) WHEN - 27 + - 10 THEN - 48 ELSE NULL END * - 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3506
SELECT - 63 * SUM ( CASE 68 WHEN 92 + + 93 THEN NULL WHEN + 42 * 77 THEN + ( 14 ) + CAST ( NULL AS REAL ) WHEN - 27 + - 10 THEN - 48 ELSE NULL END * - 32 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3507
SELECT ALL + 58 DIV 77 + 8 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-3507
SELECT ALL + 58 / 77 + 8 AS col1
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-3508
SELECT DISTINCT - + 66 DIV 74 + + 39
----
39

skipif mysql # not compatible
query I rowsort label-3508
SELECT DISTINCT - + 66 / 74 + + 39
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-3509
SELECT ALL + 89 DIV 75 + 51 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-3509
SELECT ALL + 89 / 75 + 51 AS col1
----
52

query I rowsort
SELECT ALL 34 + 18 * 15
----
304

query I rowsort
SELECT 80 + - 10
----
70

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

skipif mysql # not compatible
query I rowsort label-3512
SELECT - MIN ( + 16 )
----
-16

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

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

query I rowsort
SELECT ALL + 5 + 33 col0
----
38

query I rowsort
SELECT DISTINCT 5 + 6 col2
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-3516
SELECT ALL + 14 + + 99 DIV + 57
----
15

skipif mysql # not compatible
query I rowsort label-3516
SELECT ALL + 14 + + 99 / + 57
----
15

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

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

query I rowsort
SELECT ALL - - 90 col1
----
90

query I rowsort
SELECT ALL 3 - + 45 AS col2
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3520
SELECT + SUM( + 91 ) DIV 8 col2
----
11

skipif mysql # not compatible
query I rowsort label-3520
SELECT + SUM ( + 91 ) / 8 col2
----
11

query I rowsort
SELECT + 56 * - 44
----
-2464

query I rowsort
SELECT ALL - 87 * + 77
----
-6699

query I rowsort
SELECT 40 + + 23 AS col1
----
63

query I rowsort
SELECT ALL + ( 99 ) * - 16 AS col0
----
-1584

query I rowsort
SELECT COALESCE ( - 3, + 82 ) * - 74
----
222

onlyif mysql # DIV for integer division: 
query I rowsort label-3526
SELECT ALL 83 * 8 DIV 21 col0
----
31

skipif mysql # not compatible
query I rowsort label-3526
SELECT ALL 83 * 8 / 21 col0
----
31

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

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

query I rowsort
SELECT 33 - 94
----
-61

query I rowsort
SELECT 40 * 97 * 16
----
62080

query I rowsort
SELECT ALL - 44 + + 24 + - 21
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-3531
SELECT 59 DIV 4 * 36 AS col0
----
504

skipif mysql # not compatible
query I rowsort label-3531
SELECT 59 / 4 * 36 AS col0
----
504

query I rowsort
SELECT 30 * 86 AS col0
----
2580

query I rowsort
SELECT 65 + 7 AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT ALL - 8 + + - MIN( ALL + 40 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-3534
SELECT ALL - 8 + + - MIN ( ALL + 40 ) AS col1
----
-48

query I rowsort
SELECT ALL + 53 * + - 80 * - 79
----
334960

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

query I rowsort
SELECT DISTINCT - 26 + - + 1 - - 21 AS col1
----
-6

query I rowsort
SELECT ALL - 81 + - + 13
----
-94

query I rowsort
SELECT ALL - 8 + - - 75 * 63
----
4717

query I rowsort
SELECT ALL + 54 * - 40
----
-2160

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

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

query I rowsort
SELECT ALL + - 50 + 99 AS col2
----
49

query I rowsort
SELECT 82 - - 65 col2
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT - 54 * - - SUM( 67 ) + + COUNT( - 24 )
----
-3617

skipif mysql # not compatible
query I rowsort label-3544
SELECT - 54 * - - SUM ( 67 ) + + COUNT ( - 24 )
----
-3617

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT DISTINCT + + 7 - - COUNT( * ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-3546
SELECT DISTINCT + + 7 - - COUNT ( * ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT - 78 * + + SUM( + ( 28 ) ) * COALESCE ( - 19 * MIN( DISTINCT + 43 ), - 70 ) + MIN( ALL 39 + + 89 )
----
1784456

skipif mysql # not compatible
query I rowsort label-3547
SELECT - 78 * + + SUM ( + ( 28 ) ) * COALESCE ( - 19 * MIN ( DISTINCT + 43 ), - 70 ) + MIN ( ALL 39 + + 89 )
----
1784456

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3548
SELECT DISTINCT 92 * + COALESCE ( CASE + 12 WHEN 30 THEN + 52 * + CASE + ( CAST( 14 AS DECIMAL ) ) WHEN 34 THEN 76 END WHEN - 90 / 63 THEN NULL ELSE NULL END, - 25 ) AS col0
----
-2300

skipif mysql # not compatible
query I rowsort label-3548
SELECT DISTINCT 92 * + COALESCE ( CASE + 12 WHEN 30 THEN + 52 * + CASE + ( CAST ( 14 AS REAL ) ) WHEN 34 THEN 76 END WHEN - 90 / 63 THEN NULL ELSE NULL END, - 25 ) AS col0
----
-2300

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT + COUNT( * ) + - 36 * 6
----
-215

skipif mysql # not compatible
query I rowsort label-3549
SELECT + COUNT ( * ) + - 36 * 6
----
-215

query I rowsort
SELECT ALL + 33 * + + 44 - - NULLIF ( 70, - 59 )
----
1522

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3552
SELECT 53 * - + CAST( NULL AS SIGNED ) + - 26 + - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-3552
SELECT 53 * - + CAST ( NULL AS INTEGER ) + - 26 + - 55
----
NULL

query I rowsort
SELECT - 54 - 42 * 8
----
-390

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3555
SELECT ( NULLIF ( - ( + 3 ), SUM( + CAST( + 49 AS SIGNED ) ) ) ) DIV 46
----
0

skipif mysql # not compatible
query I rowsort label-3555
SELECT ( NULLIF ( - ( + 3 ), SUM ( + CAST ( + 49 AS INTEGER ) ) ) ) / 46
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3556
SELECT ALL 24 DIV - NULLIF ( 66, CAST( ( 81 ) AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3556
SELECT ALL 24 / - NULLIF ( 66, CAST ( ( 81 ) AS INTEGER ) ) AS col0
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3558
SELECT 40 DIV ( + 53 )
----
0

skipif mysql # not compatible
query I rowsort label-3558
SELECT 40 / ( + 53 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3559
SELECT NULLIF ( COUNT( DISTINCT - + 76 ), - CASE + 47 WHEN - 39 + - 94 THEN 75 WHEN - 32 THEN NULL ELSE CASE 43 WHEN 91 * - COUNT( * ) THEN NULL ELSE - ( + CASE 45 WHEN 95 * + 53 THEN NULL WHEN 27 + CAST( NULL AS SIGNED ) * - 90 THEN NULL ELSE 48 * + 7 END ) END END * - 35 + 39 ) + - ( 46 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-3559
SELECT NULLIF ( COUNT ( DISTINCT - + 76 ), - CASE + 47 WHEN - 39 + - 94 THEN 75 WHEN - 32 THEN NULL ELSE CASE 43 WHEN 91 * - COUNT ( * ) THEN NULL ELSE - ( + CASE 45 WHEN 95 * + 53 THEN NULL WHEN 27 + CAST ( NULL AS INTEGER ) * - 90 THEN NULL ELSE 48 * + 7 END ) END END * - 35 + 39 ) + - ( 46 ) AS col2
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-3560
SELECT DISTINCT 71 DIV - 45
----
-1

skipif mysql # not compatible
query I rowsort label-3560
SELECT DISTINCT 71 / - 45
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT ALL NULLIF ( + + NULLIF ( 35, + 64 * ( - MAX( ALL 34 ) ) ), 98 ) + + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-3561
SELECT ALL NULLIF ( + + NULLIF ( 35, + 64 * ( - MAX ( ALL 34 ) ) ), 98 ) + + COUNT ( * )
----
36

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

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

query I rowsort
SELECT 30 + - 60
----
-30

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

skipif mysql # not compatible
query I rowsort label-3564
SELECT - MAX ( DISTINCT - 2 )
----
2

query I rowsort
SELECT ALL 82 * - + 39 * - 38
----
121524

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT COALESCE ( + - 89, + 43, 35 ) + + COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-3566
SELECT COALESCE ( + - 89, + 43, 35 ) + + COUNT ( * )
----
-88

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

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

query I rowsort
SELECT ALL 70 + - + 36 AS col1
----
34

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3569
SELECT ALL - 13 + + 57 * CASE + CAST( 44 AS DECIMAL ) WHEN 27 THEN - COUNT( * ) * + 72 + 11 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3569
SELECT ALL - 13 + + 57 * CASE + CAST ( 44 AS REAL ) WHEN 27 THEN - COUNT ( * ) * + 72 + 11 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT ALL + 49 + + NULLIF ( + 87, + 90 ) - + MIN( - 44 )
----
180

skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL + 49 + + NULLIF ( + 87, + 90 ) - + MIN ( - 44 )
----
180

onlyif mysql # DIV for integer division: 
query I rowsort label-3571
SELECT ALL 64 + + 66 - 36 DIV + 50 AS col2
----
130

skipif mysql # not compatible
query I rowsort label-3571
SELECT ALL 64 + + 66 - 36 / + 50 AS col2
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-3572
SELECT DISTINCT 88, 76 * - - ( - COALESCE ( + 31, COUNT( * ) + + 33 ) ) * - 36 col0
----
88
84816

skipif mysql # not compatible
query II rowsort label-3572
SELECT DISTINCT 88, 76 * - - ( - COALESCE ( + 31, COUNT ( * ) + + 33 ) ) * - 36 col0
----
88
84816

query I rowsort
SELECT + 46 + 51
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT + COUNT( * ) + MAX( ALL - 48 ) col2
----
-47

skipif mysql # not compatible
query I rowsort label-3574
SELECT + COUNT ( * ) + MAX ( ALL - 48 ) col2
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3575
SELECT - CAST( + 10 AS SIGNED ) - - ( - 30 )
----
-40

skipif mysql # not compatible
query I rowsort label-3575
SELECT - CAST ( + 10 AS INTEGER ) - - ( - 30 )
----
-40

query I rowsort
SELECT + 39 + - 5 AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT - 9 + COUNT( ALL - 6 )
----
-8

skipif mysql # not compatible
query I rowsort label-3577
SELECT - 9 + COUNT ( ALL - 6 )
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3578
SELECT ALL - + CAST( NULL AS SIGNED ) * MAX( + 81 ) - + 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3578
SELECT ALL - + CAST ( NULL AS INTEGER ) * MAX ( + 81 ) - + 37 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT - - CASE + ( - 78 ) WHEN 84 THEN NULL WHEN + COUNT( * ) THEN NULLIF ( - 57, - 5 ) + - 49 ELSE NULL END * - 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3580
SELECT - - CASE + ( - 78 ) WHEN 84 THEN NULL WHEN + COUNT ( * ) THEN NULLIF ( - 57, - 5 ) + - 49 ELSE NULL END * - 92 AS col2
----
NULL

query II rowsort
SELECT + - 89 AS col2, - 4 AS col2
----
-89
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT ALL + 97 * COALESCE ( - 79, + 60, 64 * + SUM( 32 ) ) AS col0
----
-7663

skipif mysql # not compatible
query I rowsort label-3582
SELECT ALL + 97 * COALESCE ( - 79, + 60, 64 * + SUM ( 32 ) ) AS col0
----
-7663

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3583
SELECT + ( 85 ) * - CAST( MAX( ( - 62 ) ) AS SIGNED ) * + MAX( 56 * + NULLIF ( 78 * 11, 97 ) ) + + 97
----
253213057

skipif mysql # not compatible
query I rowsort label-3583
SELECT + ( 85 ) * - CAST ( MAX ( ( - 62 ) ) AS INTEGER ) * + MAX ( 56 * + NULLIF ( 78 * 11, 97 ) ) + + 97
----
253213057

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT ALL 18 * + + COUNT( * ) + 95 - - 70
----
183

skipif mysql # not compatible
query I rowsort label-3584
SELECT ALL 18 * + + COUNT ( * ) + 95 - - 70
----
183

query I rowsort
SELECT ALL + 53 * - + 59 * - 22 * - ( 89 ) AS col1
----
-6122666

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT DISTINCT - 95 * + COUNT( * ) + + MIN( ALL 54 )
----
-41

skipif mysql # not compatible
query I rowsort label-3586
SELECT DISTINCT - 95 * + COUNT ( * ) + + MIN ( ALL 54 )
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3587
SELECT - CAST( NULL AS SIGNED ) * + 92 * + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-3587
SELECT - CAST ( NULL AS INTEGER ) * + 92 * + 82
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3588
SELECT - COUNT( * ) * 33 DIV 65 DIV + 52
----
0

skipif mysql # not compatible
query I rowsort label-3588
SELECT - COUNT ( * ) * 33 / 65 / + 52
----
0

query I rowsort
SELECT DISTINCT + + 5 * + 5 * + 29 + 55 AS col2
----
780

query II rowsort
SELECT ALL + - 85 AS col0, + 56 col0
----
-85
56

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3592
SELECT - + 93 * + COALESCE ( + - 98, - 12 DIV + CAST( NULL AS SIGNED ), - ( - COUNT( DISTINCT + 9 ) ) )
----
9114

skipif mysql # not compatible
query I rowsort label-3592
SELECT - + 93 * + COALESCE ( + - 98, - 12 / + CAST ( NULL AS INTEGER ), - ( - COUNT ( DISTINCT + 9 ) ) )
----
9114

query II rowsort
SELECT + 74 col1, - 23 AS col2
----
74
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3594
SELECT - COUNT( * ) * - COALESCE ( SUM( 43 ), - COUNT( * ) DIV ( 94 * 89 ), - 13 ) + - COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-3594
SELECT - COUNT ( * ) * - COALESCE ( SUM ( 43 ), - COUNT ( * ) / ( 94 * 89 ), - 13 ) + - COUNT ( * )
----
42

query I rowsort
SELECT - - 65 * - ( + 49 )
----
-3185

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT - ( - COUNT( * ) ) * - + 24 + - 87 AS col2
----
-111

skipif mysql # not compatible
query I rowsort label-3596
SELECT - ( - COUNT ( * ) ) * - + 24 + - 87 AS col2
----
-111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3597
SELECT ALL + 21 * - COALESCE ( + 92, - 45 DIV - 86, + 33, - SUM( ALL + ( + 73 ) ) ) + 41
----
-1891

skipif mysql # not compatible
query I rowsort label-3597
SELECT ALL + 21 * - COALESCE ( + 92, - 45 / - 86, + 33, - SUM ( ALL + ( + 73 ) ) ) + 41
----
-1891

query I rowsort
SELECT ALL - 47 * + 75 + - 88 AS col0
----
-3613

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT DISTINCT + 3 * 18 + - + 75 + - + MIN( + 72 ) * 52 col0
----
-3765

skipif mysql # not compatible
query I rowsort label-3599
SELECT DISTINCT + 3 * 18 + - + 75 + - + MIN ( + 72 ) * 52 col0
----
-3765

query I rowsort
SELECT ALL - 53 * - 54 + + 40 AS col2
----
2902

query I rowsort
SELECT ALL + 70 * - 46 + + 32
----
-3188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3602
SELECT - CAST( NULL AS SIGNED ) * + 12 * - + 36 - - 19 + 34 / - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-3602
SELECT - CAST ( NULL AS INTEGER ) * + 12 * - + 36 - - 19 + 34 / - 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT - 71 - - ( 21 ) - - 11 - 47 * - COUNT( * ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-3603
SELECT - 71 - - ( 21 ) - - 11 - 47 * - COUNT ( * ) AS col1
----
8

query I rowsort
SELECT - COALESCE ( - + 32, + 96 ) AS col1
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3605
SELECT DISTINCT ( - + 33 ) AS col1, CAST( + 46 AS SIGNED ) - - MIN( ALL 26 )
----
-33
72

skipif mysql # not compatible
query II rowsort label-3605
SELECT DISTINCT ( - + 33 ) AS col1, CAST ( + 46 AS INTEGER ) - - MIN ( ALL 26 )
----
-33
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT DISTINCT COUNT( * ) * + - 94 + 47 + 84 - - 78
----
115

skipif mysql # not compatible
query I rowsort label-3606
SELECT DISTINCT COUNT ( * ) * + - 94 + 47 + 84 - - 78
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT ALL + COUNT( * ) + 3 + COUNT( * ) * - + 84 * - NULLIF ( + 46, - 15 ) AS col0
----
3868

skipif mysql # not compatible
query I rowsort label-3607
SELECT ALL + COUNT ( * ) + 3 + COUNT ( * ) * - + 84 * - NULLIF ( + 46, - 15 ) AS col0
----
3868

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT ALL 35 + + MIN( ALL 62 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-3608
SELECT ALL 35 + + MIN ( ALL 62 ) AS col2
----
97

query I rowsort
SELECT + 41 * + + 6 AS col1
----
246

onlyif mysql # DIV for integer division: 
query I rowsort label-3610
SELECT + 58 DIV - + 96 col2
----
0

skipif mysql # not compatible
query I rowsort label-3610
SELECT + 58 / - + 96 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3611
SELECT + NULLIF ( - - 50, - - 71 ) - - + 67 + COUNT( * ) / CAST( NULL AS SIGNED ) * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3611
SELECT + NULLIF ( - - 50, - - 71 ) - - + 67 + COUNT ( * ) / CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3612
SELECT DISTINCT 81 DIV 36 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3612
SELECT DISTINCT 81 / 36 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3613
SELECT + 5 * - - COALESCE ( - CASE 48 WHEN - 42 THEN COALESCE ( 79, + 55 + 25 ) * - CASE WHEN ( COUNT( * ) - 29 ) NOT BETWEEN ( - 52 + + CAST( NULL AS SIGNED ) * 92 ) AND ( 8 * - 98 ) THEN + COUNT( * ) + 33 ELSE + 93 END + - COALESCE ( + 1, + COALESCE ( - 54, 69 * - 33 + CASE + 54 WHEN - 40 * MIN( ALL 85 ) THEN NULL ELSE 36 + - 30 END DIV 79, 94 DIV 56 ) * - COALESCE ( - 39, + 89, - 94 + + SUM( ALL ( 0 ) ) ), + 79 + + 79 DIV 2 ) WHEN - COALESCE ( ( CAST( - 16 AS SIGNED ) ), AVG ( ALL 61 ) * 52, - 95 ) THEN - 65 + - 75 END, - 70 )
----
-350

skipif mysql # not compatible
query I rowsort label-3613
SELECT + 5 * - - COALESCE ( - CASE 48 WHEN - 42 THEN COALESCE ( 79, + 55 + 25 ) * - CASE WHEN ( COUNT ( * ) - 29 ) NOT BETWEEN ( - 52 + + CAST ( NULL AS INTEGER ) * 92 ) AND ( 8 * - 98 ) THEN + COUNT ( * ) + 33 ELSE + 93 END + - COALESCE ( + 1, + COALESCE ( - 54, 69 * - 33 + CASE + 54 WHEN - 40 * MIN ( ALL 85 ) THEN NULL ELSE 36 + - 30 END / 79, 94 / 56 ) * - COALESCE ( - 39, + 89, - 94 + + SUM ( ALL ( 0 ) ) ), + 79 + + 79 / 2 ) WHEN - COALESCE ( ( CAST ( - 16 AS INTEGER ) ), AVG ( ALL 61 ) * 52, - 95 ) THEN - 65 + - 75 END, - 70 )
----
-350

onlyif mysql # DIV for integer division: 
query I rowsort label-3614
SELECT ALL 16 DIV + 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3614
SELECT ALL 16 / + 85 AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-3615
SELECT + 22 / - + COUNT ( * ) AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT - CASE 8 WHEN + COUNT( * ) THEN NULL WHEN 64 THEN 78 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3616
SELECT - CASE 8 WHEN + COUNT ( * ) THEN NULL WHEN 64 THEN 78 END AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3617
SELECT - - MAX ( DISTINCT 77 )
----
77

query I rowsort
SELECT + + 82 * + 57
----
4674

query I rowsort
SELECT DISTINCT + ( 82 ) - - 95 AS col2
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT ALL + CASE + 7 WHEN + 10 + + 91 + + COALESCE ( + 73, - 79 + + MIN( DISTINCT - 69 ), + 80 / - 53 ) THEN + COUNT( * ) END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3620
SELECT ALL + CASE + 7 WHEN + 10 + + 91 + + COALESCE ( + 73, - 79 + + MIN ( DISTINCT - 69 ), + 80 / - 53 ) THEN + COUNT ( * ) END * + COUNT ( * )
----
NULL

query I rowsort
SELECT + + 77 + - 70 AS col0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3622
SELECT ALL + - CASE + - 16 WHEN - + 77 * + CAST( NULL AS SIGNED ) + - 92 / 39 THEN + 64 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3622
SELECT ALL + - CASE + - 16 WHEN - + 77 * + CAST ( NULL AS INTEGER ) + - 92 / 39 THEN + 64 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT + MAX( + 29 ) * + 75 + 92 AS col2
----
2267

skipif mysql # not compatible
query I rowsort label-3623
SELECT + MAX ( + 29 ) * + 75 + 92 AS col2
----
2267

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT + CASE 13 WHEN + 67 + COALESCE ( + 10, + 51 / + 53, 73 ) + - CASE - 74 WHEN 38 THEN NULL ELSE - NULLIF ( + 83, 60 + - ( 30 + - 28 ) ) / + 97 END THEN 6 + + 61 ELSE + COUNT( * ) END AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3624
SELECT + CASE 13 WHEN + 67 + COALESCE ( + 10, + 51 / + 53, 73 ) + - CASE - 74 WHEN 38 THEN NULL ELSE - NULLIF ( + 83, 60 + - ( 30 + - 28 ) ) / + 97 END THEN 6 + + 61 ELSE + COUNT ( * ) END AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT COUNT( * ) * + SUM( DISTINCT - 95 ) + + 81
----
-14

skipif mysql # not compatible
query I rowsort label-3625
SELECT COUNT ( * ) * + SUM ( DISTINCT - 95 ) + + 81
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-3626
SELECT ALL - - 90 DIV - 8 + - + 70 - 3
----
-84

skipif mysql # not compatible
query I rowsort label-3626
SELECT ALL - - 90 / - 8 + - + 70 - 3
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3627
SELECT - 19 DIV - 44 + + 25 * - COUNT( * ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-3627
SELECT - 19 / - 44 + + 25 * - COUNT ( * ) AS col1
----
-25

query I rowsort
SELECT ALL + + NULLIF ( 15, + 67 * - 62 )
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3629
SELECT - - MAX( - + 72 ) DIV 10 + + COUNT( * ) + 93
----
87

skipif mysql # not compatible
query I rowsort label-3629
SELECT - - MAX ( - + 72 ) / 10 + + COUNT ( * ) + 93
----
87

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3630
SELECT ALL - 89 DIV + + CAST( - 10 AS SIGNED ) + 63 * 68 AS col1
----
4292

skipif mysql # not compatible
query I rowsort label-3630
SELECT ALL - 89 / + + CAST ( - 10 AS INTEGER ) + 63 * 68 AS col1
----
4292

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

skipif mysql # not compatible
query I rowsort label-3631
SELECT - + CAST ( NULL AS INTEGER ) - SUM ( + 52 ) col2
----
NULL

query I rowsort
SELECT ALL 59 * - ( - + 85 ) * 22 - - ( + 2 ) * - 62 AS col0
----
110206

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3633
SELECT ALL - + 5 DIV + MIN( ALL + - 82 ) + - 81
----
-81

skipif mysql # not compatible
query I rowsort label-3633
SELECT ALL - + 5 / + MIN ( ALL + - 82 ) + - 81
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT - 19 * - CASE - MAX( + - 77 ) WHEN + 92 THEN NULL WHEN MAX( 48 ) THEN - SUM( DISTINCT - ( 75 ) ) * - 69 - + 41 ELSE NULL END + 40 / + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-3634
SELECT - 19 * - CASE - MAX ( + - 77 ) WHEN + 92 THEN NULL WHEN MAX ( 48 ) THEN - SUM ( DISTINCT - ( 75 ) ) * - 69 - + 41 ELSE NULL END + 40 / + 35
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3636
SELECT + 1 DIV SUM( DISTINCT + + 3 ) AS col1, - 43 * COALESCE ( 66, - 15, - 15 + 54 ) AS col0
----
0
-2838

skipif mysql # not compatible
query II rowsort label-3636
SELECT + 1 / SUM ( DISTINCT + + 3 ) AS col1, - 43 * COALESCE ( 66, - 15, - 15 + 54 ) AS col0
----
0
-2838

query I rowsort
SELECT 93 * 33 + + + 57
----
3126

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3638
SELECT ALL - 75 DIV - 35 + - CAST( 33 AS SIGNED ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-3638
SELECT ALL - 75 / - 35 + - CAST ( 33 AS INTEGER ) AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT - 83 + MAX( + + 19 ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-3639
SELECT - 83 + MAX ( + + 19 ) AS col2
----
-64

query I rowsort
SELECT ALL + 26 * + 44 * - 54 + - 80 AS col1
----
-61856

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT - 95 + + COUNT( * ) col0
----
-94

skipif mysql # not compatible
query I rowsort label-3641
SELECT - 95 + + COUNT ( * ) col0
----
-94

query II rowsort
SELECT ALL + 94, 26 AS col1
----
94
26

query I rowsort
SELECT - 12 * - 75
----
900

query I rowsort
SELECT - ( - 84 ) * + 15 * - 38 + ( + 99 ) AS col0
----
-47781

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3645
SELECT - MIN( DISTINCT - - 63 ) - - - COUNT( * ) DIV 98
----
-63

skipif mysql # not compatible
query I rowsort label-3645
SELECT - MIN ( DISTINCT - - 63 ) - - - COUNT ( * ) / 98
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT ALL + NULLIF ( 5, - + 54 ) * + + COUNT( + 71 ) * + 37 + - 14 col0
----
171

skipif mysql # not compatible
query I rowsort label-3646
SELECT ALL + NULLIF ( 5, - + 54 ) * + + COUNT ( + 71 ) * + 37 + - 14 col0
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT DISTINCT 8 * 86 + 15 * COUNT( ALL - - 33 ) * - COUNT( * ) AS col2
----
673

skipif mysql # not compatible
query I rowsort label-3647
SELECT DISTINCT 8 * 86 + 15 * COUNT ( ALL - - 33 ) * - COUNT ( * ) AS col2
----
673

query I rowsort
SELECT DISTINCT 94 * 79
----
7426

query I rowsort
SELECT ALL - 49 * - + 39 AS col0
----
1911

query I rowsort
SELECT ALL + 95 - ( - + 26 ) AS col0
----
121

query I rowsort
SELECT ALL - 23 * - + NULLIF ( + 56, - 43 * + 9 / 10 + - 69 )
----
1288

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT ALL - SUM( ALL + 6 ) * - 35 * 66 AS col1
----
13860

skipif mysql # not compatible
query I rowsort label-3652
SELECT ALL - SUM ( ALL + 6 ) * - 35 * 66 AS col1
----
13860

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT + 35 * + + MAX( DISTINCT - - 78 ) - 44 AS col0
----
2686

skipif mysql # not compatible
query I rowsort label-3653
SELECT + 35 * + + MAX ( DISTINCT - - 78 ) - 44 AS col0
----
2686

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3654
SELECT - 1 * 99 + CASE 11 WHEN + 68 * CAST( NULL AS SIGNED ) + 49 THEN NULL ELSE NULLIF ( 77, MIN( 93 ) ) END
----
-22

skipif mysql # not compatible
query I rowsort label-3654
SELECT - 1 * 99 + CASE 11 WHEN + 68 * CAST ( NULL AS INTEGER ) + 49 THEN NULL ELSE NULLIF ( 77, MIN ( 93 ) ) END
----
-22

query I rowsort
SELECT 49 + + + 61 AS col0
----
110

query I rowsort
SELECT - 84 + + 44 AS col2
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-3657
SELECT - 98 DIV + + 74 + 25 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-3657
SELECT - 98 / + + 74 + 25 AS col1
----
24

query I rowsort
SELECT ALL + ( 10 ) * 87
----
870

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT ( CASE - 13 WHEN + ( 10 ) THEN NULL WHEN + 57 / 69 THEN + 99 END ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3659
SELECT ( CASE - 13 WHEN + ( 10 ) THEN NULL WHEN + 57 / 69 THEN + 99 END ) * + COUNT ( * )
----
NULL

query I rowsort
SELECT + ( + + 87 ) + + 50 * + 10 + - 33 col1
----
554

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT + 51 * + + 95 * ( + SUM( + 20 ) ) AS col1
----
96900

skipif mysql # not compatible
query I rowsort label-3661
SELECT + 51 * + + 95 * ( + SUM ( + 20 ) ) AS col1
----
96900

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT ALL MIN( ALL 40 ) * - + 71 + - - 22 + + + 61 * 83
----
2245

skipif mysql # not compatible
query I rowsort label-3662
SELECT ALL MIN ( ALL 40 ) * - + 71 + - - 22 + + + 61 * 83
----
2245

query I rowsort
SELECT ALL 47 + - 87 + - + 10 * 87 AS col2
----
-910

query I rowsort
SELECT DISTINCT + 52 + + - 50 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3665
SELECT DISTINCT - CASE + 84 WHEN CAST( - 22 AS SIGNED ) THEN NULLIF ( + CASE WHEN 11 IS NOT NULL THEN - 43 WHEN ( + 67 ) < NULL THEN NULL END, CASE 97 WHEN - 65 THEN NULL WHEN + 75 THEN 14 + 55 WHEN + MIN( ALL - 74 ) / 43 THEN NULL ELSE NULL END + + COUNT( - 53 + + 37 ) * 95 ) ELSE NULL END + + 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3665
SELECT DISTINCT - CASE + 84 WHEN CAST ( - 22 AS INTEGER ) THEN NULLIF ( + CASE WHEN 11 IS NOT NULL THEN - 43 WHEN ( + 67 ) < NULL THEN NULL END, CASE 97 WHEN - 65 THEN NULL WHEN + 75 THEN 14 + 55 WHEN + MIN ( ALL - 74 ) / 43 THEN NULL ELSE NULL END + + COUNT ( - 53 + + 37 ) * 95 ) ELSE NULL END + + 49 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3666
SELECT ALL 70 + + 99 - COUNT( * ), + 14 AS col1
----
168
14

skipif mysql # not compatible
query II rowsort label-3666
SELECT ALL 70 + + 99 - COUNT ( * ), + 14 AS col1
----
168
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3667
SELECT + NULLIF ( 99, + 2 ) AS col0, + 17 + + NULLIF ( ( - 19 ), COUNT( * ) + 81 ) * CASE 34 / + 84 WHEN CAST( 85 AS SIGNED ) THEN COALESCE ( + 43, + CAST( NULL AS SIGNED ) - + 92 / 94 ) - + 87 * ( CASE + 2 WHEN CASE + 17 WHEN - 33 THEN NULL WHEN 57 - - 72 THEN NULL WHEN 87 THEN NULL ELSE - 6 END + 97 THEN - 16 ELSE 56 + 97 END + + 77 ) ELSE NULL END AS col0
----
99
NULL

skipif mysql # not compatible
query II rowsort label-3667
SELECT + NULLIF ( 99, + 2 ) AS col0, + 17 + + NULLIF ( ( - 19 ), COUNT ( * ) + 81 ) * CASE 34 / + 84 WHEN CAST ( 85 AS INTEGER ) THEN COALESCE ( + 43, + CAST ( NULL AS INTEGER ) - + 92 / 94 ) - + 87 * ( CASE + 2 WHEN CASE + 17 WHEN - 33 THEN NULL WHEN 57 - - 72 THEN NULL WHEN 87 THEN NULL ELSE - 6 END + 97 THEN - 16 ELSE 56 + 97 END + + 77 ) ELSE NULL END AS col0
----
99
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3668
SELECT 0 AS col1, - 44 DIV 88 AS col0
----
0
0

skipif mysql # not compatible
query II rowsort label-3668
SELECT 0 AS col1, - 44 / 88 AS col0
----
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3669
SELECT 53 DIV + 8
----
6

skipif mysql # not compatible
query I rowsort label-3669
SELECT 53 / + 8
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT COUNT( * ) * - NULLIF ( + COUNT( * ), - - 86 ) * - - 18 * - MIN( ALL + 21 ) * + 73
----
27594

skipif mysql # not compatible
query I rowsort label-3670
SELECT COUNT ( * ) * - NULLIF ( + COUNT ( * ), - - 86 ) * - - 18 * - MIN ( ALL + 21 ) * + 73
----
27594

query II rowsort
SELECT ALL - 94, + 56 AS col0
----
-94
56

query II rowsort
SELECT 89 AS col2, - 62 AS col0
----
89
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT COALESCE ( + 13, MIN( ALL 10 ) - 28 + - 5 ) * 56
----
728

skipif mysql # not compatible
query I rowsort label-3673
SELECT COALESCE ( + 13, MIN ( ALL 10 ) - 28 + - 5 ) * 56
----
728

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT ALL CASE - - COUNT( * ) WHEN - COUNT( * ) * 31 + 1 + 2 * + 3 THEN NULL WHEN 14 THEN + COUNT( * ) END / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3674
SELECT ALL CASE - - COUNT ( * ) WHEN - COUNT ( * ) * 31 + 1 + 2 * + 3 THEN NULL WHEN 14 THEN + COUNT ( * ) END / COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT DISTINCT ( - COUNT( * ) ) * - COUNT( * ) * + 46 * - - 12
----
552

skipif mysql # not compatible
query I rowsort label-3675
SELECT DISTINCT ( - COUNT ( * ) ) * - COUNT ( * ) * + 46 * - - 12
----
552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3676
SELECT DISTINCT 64 - + CAST( + 76 AS SIGNED ) * + 7
----
-468

skipif mysql # not compatible
query I rowsort label-3676
SELECT DISTINCT 64 - + CAST ( + 76 AS INTEGER ) * + 7
----
-468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3677
SELECT NULLIF ( 4, + - 69 / - CASE - ( + + COALESCE ( - ( + 85 ), 8 ) ) WHEN AVG ( CAST( NULL AS SIGNED ) ) THEN NULL WHEN + 66 THEN - 93 * + 13 WHEN + 34 THEN NULL END * COUNT( * ) + + 81 ) * - COUNT( ALL 85 * 76 )
----
-4

skipif mysql # not compatible
query I rowsort label-3677
SELECT NULLIF ( 4, + - 69 / - CASE - ( + + COALESCE ( - ( + 85 ), 8 ) ) WHEN AVG ( CAST ( NULL AS INTEGER ) ) THEN NULL WHEN + 66 THEN - 93 * + 13 WHEN + 34 THEN NULL END * COUNT ( * ) + + 81 ) * - COUNT ( ALL 85 * 76 )
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-3678
SELECT + 66 * - - 33 * + + 34 + + 84 * + 27 DIV 1 * + 52 AS col0
----
191988

skipif mysql # not compatible
query I rowsort label-3678
SELECT + 66 * - - 33 * + + 34 + + 84 * + 27 / 1 * + 52 AS col0
----
191988

query I rowsort
SELECT DISTINCT + 18 * + 92
----
1656

query I rowsort
SELECT ALL - 63 - + 78 * 92 + - + 73
----
-7312

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT DISTINCT + 9 * - MIN( 42 ) AS col0
----
-378

skipif mysql # not compatible
query I rowsort label-3681
SELECT DISTINCT + 9 * - MIN ( 42 ) AS col0
----
-378

onlyif mysql # DIV for integer division: 
query I rowsort label-3682
SELECT 93 DIV - - 78
----
1

skipif mysql # not compatible
query I rowsort label-3682
SELECT 93 / - - 78
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3683
SELECT ALL - COALESCE ( - 16, + 85 - - - 56 + + - 83 + - 7 - ( 48 - - 71 DIV - 30 ) * - CASE 65 + - COALESCE ( - 76 + - MIN( 1 ), - 98 ) * 36 WHEN - 54 THEN - SUM( DISTINCT - 60 ) DIV COUNT( * ) + 19 * MIN( - 18 * 89 ) WHEN 94 THEN + NULLIF ( + 8, - CASE - COALESCE ( - 34, - 84 * NULLIF ( + 45, - 26 ) ) WHEN 58 DIV 77 THEN - 38 ELSE + 39 END ) WHEN - ( ( 46 ) ) THEN NULL WHEN - 39 - 43 * - 3 THEN NULL END )
----
16

skipif mysql # not compatible
query I rowsort label-3683
SELECT ALL - COALESCE ( - 16, + 85 - - - 56 + + - 83 + - 7 - ( 48 - - 71 / - 30 ) * - CASE 65 + - COALESCE ( - 76 + - MIN ( 1 ), - 98 ) * 36 WHEN - 54 THEN - SUM ( DISTINCT - 60 ) / COUNT ( * ) + 19 * MIN ( - 18 * 89 ) WHEN 94 THEN + NULLIF ( + 8, - CASE - COALESCE ( - 34, - 84 * NULLIF ( + 45, - 26 ) ) WHEN 58 / 77 THEN - 38 ELSE + 39 END ) WHEN - ( ( 46 ) ) THEN NULL WHEN - 39 - 43 * - 3 THEN NULL END )
----
16

query I rowsort
SELECT 67 + - 88 col1
----
-21

query I rowsort
SELECT ALL 63 - + 8 * - NULLIF ( ( - + 42 ), - 43 * - 1 ) * 30
----
-10017

query II rowsort
SELECT 10, 17 AS col1
----
10
17

query II rowsort
SELECT ALL 88, - 52 col1
----
88
-52

query I rowsort
SELECT - 32 * 77 AS col0
----
-2464

onlyif mysql # aggregate syntax: 
query II rowsort label-3689
SELECT ALL 46 AS col0, - MAX( 39 )
----
46
-39

skipif mysql # not compatible
query II rowsort label-3689
SELECT ALL 46 AS col0, - MAX ( 39 )
----
46
-39

query I rowsort
SELECT ALL - - 15 * 32 + + 76 * - 96 + - 82 AS col0
----
-6898

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT - SUM( 67 ) col0
----
-67

skipif mysql # not compatible
query I rowsort label-3691
SELECT - SUM ( 67 ) col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT COUNT( * ) - + SUM( + + 91 )
----
-90

skipif mysql # not compatible
query I rowsort label-3692
SELECT COUNT ( * ) - + SUM ( + + 91 )
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-3693
SELECT - + COUNT( * ) AS col2, CASE - 97 WHEN - 98 * + 83 THEN - 63 END * 76
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3693
SELECT - + COUNT ( * ) AS col2, CASE - 97 WHEN - 98 * + 83 THEN - 63 END * 76
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT CASE - MIN( ALL - 70 ) WHEN 83 + + + ( 76 ) THEN + MIN( DISTINCT - 87 ) / 3 + + 34 ELSE NULL END * 77
----
NULL

skipif mysql # not compatible
query I rowsort label-3694
SELECT CASE - MIN ( ALL - 70 ) WHEN 83 + + + ( 76 ) THEN + MIN ( DISTINCT - 87 ) / 3 + + 34 ELSE NULL END * 77
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3695
SELECT - CASE - 68 WHEN - 37 THEN - NULLIF ( + COUNT( * ), + 87 * 85 ) * COUNT( * ) + - CASE CAST( 17 AS SIGNED ) WHEN - 83 + 94 THEN + 14 END WHEN - 9 * 99 THEN 25 + 32 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3695
SELECT - CASE - 68 WHEN - 37 THEN - NULLIF ( + COUNT ( * ), + 87 * 85 ) * COUNT ( * ) + - CASE CAST ( 17 AS INTEGER ) WHEN - 83 + 94 THEN + 14 END WHEN - 9 * 99 THEN 25 + 32 END
----
NULL

query I rowsort
SELECT DISTINCT + 33 * - + 19
----
-627

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3698
SELECT ALL + + 56 * 11 * + 50 + - 52 * - 11 - - + 55 DIV 45 AS col1
----
31373

skipif mysql # not compatible
query I rowsort label-3698
SELECT ALL + + 56 * 11 * + 50 + - 52 * - 11 - - + 55 / 45 AS col1
----
31373

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

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

query I rowsort
SELECT ALL 74 + - - ( COALESCE ( - 68, - ( - 5 ) * - 14, + 25 ) ) AS col2
----
6

query I rowsort
SELECT DISTINCT + 72 * 76
----
5472

query I rowsort
SELECT ALL - - 44 + + 75 + - 87
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-3703
SELECT SUM( - + 35 ), 39 AS col2
----
-35
39

skipif mysql # not compatible
query II rowsort label-3703
SELECT SUM ( - + 35 ), 39 AS col2
----
-35
39

query II rowsort
SELECT ALL - + 43 + - - 26 + - 15 + - 74 AS col0, 31
----
-106
31

onlyif mysql # DIV for integer division: 
query I rowsort label-3705
SELECT DISTINCT 59 DIV + 51 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3705
SELECT DISTINCT 59 / + 51 AS col2
----
1

query II rowsort
SELECT - - 15, ( 13 ) AS col0
----
15
13

query I rowsort
SELECT - 47 * - 70 + 21 - - - 20
----
3291

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3708
SELECT 30 DIV 83 * + MIN( DISTINCT - - 80 ) + - MIN( ALL - 45 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-3708
SELECT 30 / 83 * + MIN ( DISTINCT - - 80 ) + - MIN ( ALL - 45 ) AS col2
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-3709
SELECT SUM( ALL 96 ) * ( 45 ) * + 66 AS col1, 43
----
285120
43

skipif mysql # not compatible
query II rowsort label-3709
SELECT SUM ( ALL 96 ) * ( 45 ) * + 66 AS col1, 43
----
285120
43

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT ALL COALESCE ( + 66, - COUNT( * ), - 64 + - SUM( + 38 ) * 84 ) * - 86 - + 47 col2
----
-5723

skipif mysql # not compatible
query I rowsort label-3711
SELECT ALL COALESCE ( + 66, - COUNT ( * ), - 64 + - SUM ( + 38 ) * 84 ) * - 86 - + 47 col2
----
-5723

query II rowsort
SELECT DISTINCT 18 * 23 col1, ( - ( 45 ) ) AS col1
----
414
-45

query II rowsort
SELECT + 24 + + + 71 + + 55 AS col1, 96
----
150
96

query II rowsort
SELECT DISTINCT 65 * - 92 * - 97 AS col1, - 28 + + 19
----
580060
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT ALL 68 * - - COUNT( * ) - 93 + 55
----
30

skipif mysql # not compatible
query I rowsort label-3715
SELECT ALL 68 * - - COUNT ( * ) - 93 + 55
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3716
SELECT + ( + + ( + 71 ) ) * + 42 DIV - COUNT( * ) + + 33 * - 80 AS col2
----
-5622

skipif mysql # not compatible
query I rowsort label-3716
SELECT + ( + + ( + 71 ) ) * + 42 / - COUNT ( * ) + + 33 * - 80 AS col2
----
-5622

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT + COUNT( * ) * + + 75 * + MAX( DISTINCT + 74 )
----
5550

skipif mysql # not compatible
query I rowsort label-3717
SELECT + COUNT ( * ) * + + 75 * + MAX ( DISTINCT + 74 )
----
5550

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3718
SELECT + ( - COUNT( * ) ) * - 96 * + + 52 * - 8 + + + 73 DIV - - 76 * + 1 AS col1
----
-39936

skipif mysql # not compatible
query I rowsort label-3718
SELECT + ( - COUNT ( * ) ) * - 96 * + + 52 * - 8 + + + 73 / - - 76 * + 1 AS col1
----
-39936

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT + MIN( DISTINCT - + 53 ) * - ( + - 38 ) + - 13 + - - 67
----
-1960

skipif mysql # not compatible
query I rowsort label-3719
SELECT + MIN ( DISTINCT - + 53 ) * - ( + - 38 ) + - 13 + - - 67
----
-1960

onlyif mysql # DIV for integer division: 
query I rowsort label-3720
SELECT + ( - - 47 ) * - + 32 + - 23 + 17 DIV - ( - 3 )
----
-1522

skipif mysql # not compatible
query I rowsort label-3720
SELECT + ( - - 47 ) * - + 32 + - 23 + 17 / - ( - 3 )
----
-1522

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3721
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + + 2 AS col2, - 92
----
NULL
-92

skipif mysql # not compatible
query II rowsort label-3721
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + + 2 AS col2, - 92
----
NULL
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT + + COUNT( + ( 65 ) ) * + + MAX( - + 42 ) * + 69 + 99 AS col2
----
-2799

skipif mysql # not compatible
query I rowsort label-3722
SELECT + + COUNT ( + ( 65 ) ) * + + MAX ( - + 42 ) * + 69 + 99 AS col2
----
-2799

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3723
SELECT + ( - SUM( - 36 ) ) + - 13 * 43 * 26 + - ( + 72 ) + 63 DIV - 90 AS col0
----
-14570

skipif mysql # not compatible
query I rowsort label-3723
SELECT + ( - SUM ( - 36 ) ) + - 13 * 43 * 26 + - ( + 72 ) + 63 / - 90 AS col0
----
-14570

query I rowsort
SELECT DISTINCT + 87 + + + 88 AS col1
----
175

query I rowsort
SELECT ALL - + 83 + + - ( - ( 35 ) )
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3726
SELECT DISTINCT 7 + - 16 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3726
SELECT DISTINCT 7 + - 16 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT - + 57 + + + MAX( + 59 )
----
2

skipif mysql # not compatible
query I rowsort label-3728
SELECT - + 57 + + + MAX ( + 59 )
----
2

query I rowsort
SELECT ALL - + 91 + + 65
----
-26

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3731
SELECT - 91 + + 55 DIV ( 7 ) + + 41 * - COUNT( * ) * - COUNT( * ) col0
----
-43

skipif mysql # not compatible
query I rowsort label-3731
SELECT - 91 + + 55 / ( 7 ) + + 41 * - COUNT ( * ) * - COUNT ( * ) col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT ALL + 27 * 26 * - COUNT( DISTINCT + 26 ) + + ( + 50 ) * + MIN( 86 ) AS col2
----
3598

skipif mysql # not compatible
query I rowsort label-3732
SELECT ALL + 27 * 26 * - COUNT ( DISTINCT + 26 ) + + ( + 50 ) * + MIN ( 86 ) AS col2
----
3598

query I rowsort
SELECT ALL - 62 - + + 27 AS col0
----
-89

query I rowsort
SELECT ALL + 35 * + - 92
----
-3220

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT DISTINCT + COUNT( ALL 42 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3735
SELECT DISTINCT + COUNT ( ALL 42 ) col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3736
SELECT ALL 95 DIV + + COUNT( * ) - - 4 * + 74 * - 76 AS col0
----
-22401

skipif mysql # not compatible
query I rowsort label-3736
SELECT ALL 95 / + + COUNT ( * ) - - 4 * + 74 * - 76 AS col0
----
-22401

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3737
SELECT DISTINCT + 7 AS col2, + 63 DIV + - MIN( + - 48 )
----
7
1

skipif mysql # not compatible
query II rowsort label-3737
SELECT DISTINCT + 7 AS col2, + 63 / + - MIN ( + - 48 )
----
7
1

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

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

query II rowsort
SELECT ALL + 23 AS col1, 41 + + + 26 AS col0
----
23
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT + MIN( ALL - 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-3740
SELECT + MIN ( ALL - 6 )
----
-6

query I rowsort
SELECT + ( 74 ) * + + 30
----
2220

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT + SUM( + 96 ) col1
----
96

skipif mysql # not compatible
query I rowsort label-3742
SELECT + SUM ( + 96 ) col1
----
96

query II rowsort
SELECT ( + ( - 29 ) ) col1, ( 8 ) col2
----
-29
8

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

skipif mysql # not compatible
query I rowsort label-3744
SELECT ALL - 91 / + - COUNT ( * )
----
91

query I rowsort
SELECT DISTINCT + 19 * 48 col0
----
912

query I rowsort
SELECT + 22 * - 88
----
-1936

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT CASE - 12 WHEN + + 82 THEN + 85 WHEN COUNT( * ) + + 81 THEN + ( COUNT( * ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3747
SELECT CASE - 12 WHEN + + 82 THEN + 85 WHEN COUNT ( * ) + + 81 THEN + ( COUNT ( * ) ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 66 * 34 + 83
----
-2161

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3750
SELECT + SUM( DISTINCT - - CAST( - ( 71 ) AS SIGNED ) ) + + - 57 * ( - 23 ) + - - 10 + 60 AS col0
----
1310

skipif mysql # not compatible
query I rowsort label-3750
SELECT + SUM ( DISTINCT - - CAST ( - ( 71 ) AS INTEGER ) ) + + - 57 * ( - 23 ) + - - 10 + 60 AS col0
----
1310

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT ALL MAX( ALL - 47 ) * + 66 + + 91 * + 14
----
-1828

skipif mysql # not compatible
query I rowsort label-3751
SELECT ALL MAX ( ALL - 47 ) * + 66 + + 91 * + 14
----
-1828

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3752
SELECT 68 AS col2, COALESCE ( + 6, - - 6, - 35 + + 16 - - - 68 + - + 78 + MAX( 62 ) DIV + COUNT( * ) )
----
68
6

skipif mysql # not compatible
query II rowsort label-3752
SELECT 68 AS col2, COALESCE ( + 6, - - 6, - 35 + + 16 - - - 68 + - + 78 + MAX ( 62 ) / + COUNT ( * ) )
----
68
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3753
SELECT ALL + + SUM( DISTINCT 47 ) * - + 78 + + CASE - 69 WHEN NULLIF ( - 75, + COUNT( DISTINCT 34 ) * 64 + 1 ) THEN + COALESCE ( 0, 34, - 29 - 10 ) * 84 ELSE NULL END + - 44 * + 90 / CAST( 99 + + 68 * - CAST( NULL AS SIGNED ) AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3753
SELECT ALL + + SUM ( DISTINCT 47 ) * - + 78 + + CASE - 69 WHEN NULLIF ( - 75, + COUNT ( DISTINCT 34 ) * 64 + 1 ) THEN + COALESCE ( 0, 34, - 29 - 10 ) * 84 ELSE NULL END + - 44 * + 90 / CAST ( 99 + + 68 * - CAST ( NULL AS INTEGER ) AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3754
SELECT DISTINCT + + 62 * 32 + + CASE - COUNT( * ) WHEN - COALESCE ( + - CASE + CAST( 27 AS DECIMAL ) WHEN + 38 THEN + NULLIF ( - 89, 17 * 24 - 17 ) WHEN - 19 THEN NULL WHEN 70 + COUNT( ALL 1 ) THEN - 92 ELSE NULL END, - 83 + - 10 * + 32, 52 / + 76 ) + + 77 * - 71 THEN + COUNT( * ) WHEN - 83 * 98 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3754
SELECT DISTINCT + + 62 * 32 + + CASE - COUNT ( * ) WHEN - COALESCE ( + - CASE + CAST ( 27 AS REAL ) WHEN + 38 THEN + NULLIF ( - 89, 17 * 24 - 17 ) WHEN - 19 THEN NULL WHEN 70 + COUNT ( ALL 1 ) THEN - 92 ELSE NULL END, - 83 + - 10 * + 32, 52 / + 76 ) + + 77 * - 71 THEN + COUNT ( * ) WHEN - 83 * 98 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3755
SELECT - 38, - COUNT( * ) col0
----
-38
-1

skipif mysql # not compatible
query II rowsort label-3755
SELECT - 38, - COUNT ( * ) col0
----
-38
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT ALL - SUM( + 86 ) * 77 + + 83 AS col1
----
-6539

skipif mysql # not compatible
query I rowsort label-3756
SELECT ALL - SUM ( + 86 ) * 77 + + 83 AS col1
----
-6539

query I rowsort
SELECT ALL + 23 * - 72
----
-1656

query II rowsort
SELECT - - 52 AS col1, - 29
----
52
-29

query I rowsort
SELECT ALL 36 * - ( + 10 ) AS col0
----
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT + NULLIF ( 82, + - COUNT( * ) ) * + 5 AS col2
----
410

skipif mysql # not compatible
query I rowsort label-3760
SELECT + NULLIF ( 82, + - COUNT ( * ) ) * + 5 AS col2
----
410

query I rowsort
SELECT - + 20 * - - 25 col2
----
-500

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT - SUM( DISTINCT ( ( 64 ) ) ) * - 53 - 2 + + 62 * - + 62
----
-454

skipif mysql # not compatible
query I rowsort label-3762
SELECT - SUM ( DISTINCT ( ( 64 ) ) ) * - 53 - 2 + + 62 * - + 62
----
-454

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT ALL - 40 - + - 48 * CASE + + 20 WHEN - - COUNT( * ) + 76 THEN + 75 END / - - 84 / ( ( 74 ) * 1 ) + COUNT( * ) / 58 + 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3763
SELECT ALL - 40 - + - 48 * CASE + + 20 WHEN - - COUNT ( * ) + 76 THEN + 75 END / - - 84 / ( ( 74 ) * 1 ) + COUNT ( * ) / 58 + 51 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT ALL + 71 * - COUNT( DISTINCT + + 66 )
----
-71

skipif mysql # not compatible
query I rowsort label-3764
SELECT ALL + 71 * - COUNT ( DISTINCT + + 66 )
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-3765
SELECT 59 - + 58 AS col2, + 53 + - AVG ( - 57 ) + - 95 * - ( - COUNT( ALL + 66 ) ) * CASE 10 * - 97 WHEN COUNT( * ) + ( 38 ) * - 69 THEN 33 + 71 WHEN + 38 THEN NULL ELSE NULL END + - 13 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3765
SELECT 59 - + 58 AS col2, + 53 + - AVG ( - 57 ) + - 95 * - ( - COUNT ( ALL + 66 ) ) * CASE 10 * - 97 WHEN COUNT ( * ) + ( 38 ) * - 69 THEN 33 + 71 WHEN + 38 THEN NULL ELSE NULL END + - 13 AS col2
----
1
NULL

query I rowsort
SELECT ALL + 4 * + 13
----
52

query I rowsort
SELECT 93 - - + 55
----
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3768
SELECT + 53 DIV - COUNT( * ) + + 29 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-3768
SELECT + 53 / - COUNT ( * ) + + 29 AS col1
----
-24

query I rowsort
SELECT 77 + - - 17 + - 90 AS col2
----
4

query I rowsort
SELECT ALL - 5 * - + 60 AS col2
----
300

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT DISTINCT - MAX( DISTINCT + 51 ) + 28 + - - 65 * - - 61 AS col1
----
3942

skipif mysql # not compatible
query I rowsort label-3772
SELECT DISTINCT - MAX ( DISTINCT + 51 ) + 28 + - - 65 * - - 61 AS col1
----
3942

query I rowsort
SELECT 67 * - 90 AS col2
----
-6030

query II rowsort
SELECT 5 * + 58 * 93 + - 56 AS col1, + 75 col0
----
26914
75

onlyif mysql # DIV for integer division: 
query II rowsort label-3775
SELECT 9 DIV 77, - 43 AS col1
----
0
-43

skipif mysql # not compatible
query II rowsort label-3775
SELECT 9 / 77, - 43 AS col1
----
0
-43

query I rowsort
SELECT DISTINCT - 60 + 8 * 96 AS col1
----
708

query I rowsort
SELECT ALL + 96 + 68 + + 9
----
173

onlyif mysql # aggregate syntax: 
query II rowsort label-3778
SELECT DISTINCT COUNT( * ) + 24 + COUNT( * ) * 10, 30 AS col1
----
35
30

skipif mysql # not compatible
query II rowsort label-3778
SELECT DISTINCT COUNT ( * ) + 24 + COUNT ( * ) * 10, 30 AS col1
----
35
30

onlyif mysql # aggregate syntax: 
query III rowsort label-3779
SELECT + - COALESCE ( - 4, + 50 + + 38 + - COUNT( * ) ) col0, ( - - 85 ), 88 AS col0
----
4
85
88

skipif mysql # not compatible
query III rowsort label-3779
SELECT + - COALESCE ( - 4, + 50 + + 38 + - COUNT ( * ) ) col0, ( - - 85 ), 88 AS col0
----
4
85
88

onlyif mysql # aggregate syntax: 
query II rowsort label-3780
SELECT ALL + - 50 + - 81 AS col2, MAX( + + 47 ) AS col2
----
-131
47

skipif mysql # not compatible
query II rowsort label-3780
SELECT ALL + - 50 + - 81 AS col2, MAX ( + + 47 ) AS col2
----
-131
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT + ( + ( MIN( - 97 ) ) ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-3781
SELECT + ( + ( MIN ( - 97 ) ) ) AS col0
----
-97

query II rowsort
SELECT ALL - COALESCE ( - - 25, - 87 ) + 6, - 80 + 93 AS col1
----
-19
13

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

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

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

skipif mysql # not compatible
query I rowsort label-3784
SELECT 87 + - COUNT ( * ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT DISTINCT - 93 * - + COUNT( * ) + - 42 - 77 * - 34 * 23
----
60265

skipif mysql # not compatible
query I rowsort label-3785
SELECT DISTINCT - 93 * - + COUNT ( * ) + - 42 - 77 * - 34 * 23
----
60265

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

skipif mysql # not compatible
query I rowsort label-3786
SELECT COUNT ( * ) * + 73 + - - 49 AS col2
----
122

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3787
SELECT + 60 - + - CASE NULLIF ( 70, - CAST( NULL AS DECIMAL ) ) WHEN + 56 THEN - - CAST( NULL AS SIGNED ) * - - 91 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3787
SELECT + 60 - + - CASE NULLIF ( 70, - CAST ( NULL AS REAL ) ) WHEN + 56 THEN - - CAST ( NULL AS INTEGER ) * - - 91 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3788
SELECT ALL CAST( NULL AS SIGNED ) - 65 + - 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3788
SELECT ALL CAST ( NULL AS INTEGER ) - 65 + - 73 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3789
SELECT + 17 * CAST( NULL AS SIGNED ) * - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-3789
SELECT + 17 * CAST ( NULL AS INTEGER ) * - 52
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( 48, + + 57 ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT - 40 + ( ( - COALESCE ( - 76, 95 + - 87 ) ) ) + + CASE - - 31 WHEN 55 + + NULLIF ( 29, 49 + - 90 ) * - 98 THEN 93 * SUM( - 39 * - 53 ) WHEN 70 + 88 THEN 17 * + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3791
SELECT - 40 + ( ( - COALESCE ( - 76, 95 + - 87 ) ) ) + + CASE - - 31 WHEN 55 + + NULLIF ( 29, 49 + - 90 ) * - 98 THEN 93 * SUM ( - 39 * - 53 ) WHEN 70 + 88 THEN 17 * + COUNT ( * ) END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3792
SELECT ALL 14 DIV + 91 * + 80 * + 22 * 7
----
0

skipif mysql # not compatible
query I rowsort label-3792
SELECT ALL 14 / + 91 * + 80 * + 22 * 7
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3793
SELECT 39 DIV 17 * + NULLIF ( - - 49, - 6 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-3793
SELECT 39 / 17 * + NULLIF ( - - 49, - 6 ) AS col1
----
98

query I rowsort
SELECT DISTINCT 42 * + 52 AS col2
----
2184

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT 87 * - COALESCE ( - - 48, - 24, COUNT( * ) + 11 ) * - 86
----
359136

skipif mysql # not compatible
query I rowsort label-3795
SELECT 87 * - COALESCE ( - - 48, - 24, COUNT ( * ) + 11 ) * - 86
----
359136

query I rowsort
SELECT ALL 77 * + 57 * - + 11
----
-48279

query I rowsort
SELECT 94 + + + 79 - - - ( - 96 ) + - - 87 AS col0
----
356

query II rowsort
SELECT ALL 54, - 58 AS col1
----
54
-58

query II rowsort
SELECT 87, - 98 * - - 1 AS col2
----
87
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT CASE + + SUM( + 21 ) WHEN - + 28 THEN + 93 ELSE NULL END / - 5 - - 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3800
SELECT CASE + + SUM ( + 21 ) WHEN - + 28 THEN + 93 ELSE NULL END / - 5 - - 49 AS col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3802
SELECT ALL - 47 * - + 83 + 62 DIV + 97
----
3901

skipif mysql # not compatible
query I rowsort label-3802
SELECT ALL - 47 * - + 83 + 62 / + 97
----
3901

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

skipif mysql # not compatible
query I rowsort label-3803
SELECT SUM ( ALL + - 56 ) AS col2
----
-56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3804
SELECT CAST( NULL AS DECIMAL ) * - 6 * - 56 - - + 37 * COUNT( * ) + - 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3804
SELECT CAST ( NULL AS REAL ) * - 6 * - 56 - - + 37 * COUNT ( * ) + - 99 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3805
SELECT ALL + 20 * + CAST( NULL AS SIGNED ) + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3805
SELECT ALL + 20 * + CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3806
SELECT COUNT( DISTINCT ( - 31 ) ) AS col1, COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-3806
SELECT COUNT ( DISTINCT ( - 31 ) ) AS col1, COUNT ( * ) AS col2
----
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3807
SELECT ALL - ( - ( + 12 ) ) col1, + ( 63 ) DIV + NULLIF ( 72, COUNT( 72 ) * 57 - 27 ) AS col1
----
12
0

skipif mysql # not compatible
query II rowsort label-3807
SELECT ALL - ( - ( + 12 ) ) col1, + ( 63 ) / + NULLIF ( 72, COUNT ( 72 ) * 57 - 27 ) AS col1
----
12
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT DISTINCT MAX( 33 ) + + 35
----
68

skipif mysql # not compatible
query I rowsort label-3808
SELECT DISTINCT MAX ( 33 ) + + 35
----
68

query I rowsort
SELECT ALL - 16 * - - 70
----
-1120

query I rowsort
SELECT ALL - - NULLIF ( - - 72, + 92 ) col0
----
72

query I rowsort
SELECT ALL - 67 - - - 3 AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT ALL + COUNT( CASE - 74 WHEN + 46 * 48 THEN NULL WHEN - + 20 THEN 25 * 2 ELSE NULL END ) * - - 68
----
0

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL + COUNT ( CASE - 74 WHEN + 46 * 48 THEN NULL WHEN - + 20 THEN 25 * 2 ELSE NULL END ) * - - 68
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3813
SELECT DISTINCT - - COUNT( - - CAST( 14 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-3813
SELECT DISTINCT - - COUNT ( - - CAST ( 14 AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3814
SELECT ALL - + 91 AS col0, COUNT( 60 ) AS col2
----
-91
1

skipif mysql # not compatible
query II rowsort label-3814
SELECT ALL - + 91 AS col0, COUNT ( 60 ) AS col2
----
-91
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3815
SELECT ALL + NULLIF ( CAST( - - 47 AS SIGNED ), + 58 ) - + - COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-3815
SELECT ALL + NULLIF ( CAST ( - - 47 AS INTEGER ), + 58 ) - + - COUNT ( * )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT COUNT( * ) * 31 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-3816
SELECT COUNT ( * ) * 31 AS col1
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3817
SELECT ( COUNT( * ) ) + + 1 + - 77 DIV + + 60 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3817
SELECT ( COUNT ( * ) ) + + 1 + - 77 / + + 60 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3818
SELECT ALL NULLIF ( - CAST( NULL AS SIGNED ), - 73 ) * 31 / + 24 * - 41 * + CAST( - + 49 AS SIGNED ) + + 4 / + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3818
SELECT ALL NULLIF ( - CAST ( NULL AS INTEGER ), - 73 ) * 31 / + 24 * - 41 * + CAST ( - + 49 AS INTEGER ) + + 4 / + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 2 * - 12
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3820
SELECT DISTINCT + ( + 49 ) DIV MAX( + - 53 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3820
SELECT DISTINCT + ( + 49 ) / MAX ( + - 53 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT - COUNT( - 20 )
----
-1

skipif mysql # not compatible
query I rowsort label-3821
SELECT - COUNT ( - 20 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT DISTINCT + ( COUNT( + 39 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3822
SELECT DISTINCT + ( COUNT ( + 39 ) ) AS col0
----
1

query I rowsort
SELECT DISTINCT - 21 * - 96 AS col2
----
2016

query I rowsort
SELECT ALL 1 * - 32
----
-32

query I rowsort
SELECT - 7 - + - 51 * - 40
----
-2047

query II rowsort
SELECT - 93 AS col1, + 79 AS col1
----
-93
79

onlyif mysql # aggregate syntax: 
query II rowsort label-3827
SELECT DISTINCT 46, 43 * - 67 * - CASE + + SUM( DISTINCT + COALESCE ( - 49, + 79 * - 94 ) ) WHEN + 19 THEN + 70 WHEN - 48 THEN NULL END * - 25 + 78 AS col1
----
46
NULL

skipif mysql # not compatible
query II rowsort label-3827
SELECT DISTINCT 46, 43 * - 67 * - CASE + + SUM ( DISTINCT + COALESCE ( - 49, + 79 * - 94 ) ) WHEN + 19 THEN + 70 WHEN - 48 THEN NULL END * - 25 + 78 AS col1
----
46
NULL

query II rowsort
SELECT DISTINCT 97, 14 AS col2
----
97
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT + MIN( + 14 ) * + 61 + + COUNT( DISTINCT - 77 )
----
855

skipif mysql # not compatible
query I rowsort label-3829
SELECT + MIN ( + 14 ) * + 61 + + COUNT ( DISTINCT - 77 )
----
855

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT ALL + 4 + NULLIF ( + + ( - - 49 ), 44 / 69 * + + 66 * ( - - COUNT( * ) ) ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-3830
SELECT ALL + 4 + NULLIF ( + + ( - - 49 ), 44 / 69 * + + 66 * ( - - COUNT ( * ) ) ) AS col2
----
53

query I rowsort
SELECT ALL 47 + + + ( - 9 ) + - + 97 AS col2
----
-59

query I rowsort
SELECT + 53 - 37 * - 56 * - 54
----
-111835

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT ALL COUNT( * ) + 50 + + 38 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-3833
SELECT ALL COUNT ( * ) + 50 + + 38 AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT + ( + 66 ) - MAX( + 8 ) - + COUNT( 19 )
----
57

skipif mysql # not compatible
query I rowsort label-3834
SELECT + ( + 66 ) - MAX ( + 8 ) - + COUNT ( 19 )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3835
SELECT DISTINCT COUNT( * ) * 60 DIV - CASE + ( + 51 ) WHEN - + 72 * + + ( COUNT( * ) ) * + + 57 * - 21 + + 14 + 37 + - 41 + COUNT( * ) THEN 49 ELSE - 58 * 41 END * - ( - CAST( 79 AS SIGNED ) + - SUM( + 44 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3835
SELECT DISTINCT COUNT ( * ) * 60 / - CASE + ( + 51 ) WHEN - + 72 * + + ( COUNT ( * ) ) * + + 57 * - 21 + + 14 + 37 + - 41 + COUNT ( * ) THEN 49 ELSE - 58 * 41 END * - ( - CAST ( 79 AS INTEGER ) + - SUM ( + 44 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT - 99 + + 60 + - NULLIF ( 57, - 91 / MIN( DISTINCT - 39 ) ) - - 67 - - 18 * + 20
----
331

skipif mysql # not compatible
query I rowsort label-3836
SELECT - 99 + + 60 + - NULLIF ( 57, - 91 / MIN ( DISTINCT - 39 ) ) - - 67 - - 18 * + 20
----
331

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3837
SELECT - NULLIF ( + + 18, + NULLIF ( - 8, - CAST( + COUNT( * ) AS SIGNED ) ) )
----
-18

skipif mysql # not compatible
query I rowsort label-3837
SELECT - NULLIF ( + + 18, + NULLIF ( - 8, - CAST ( + COUNT ( * ) AS INTEGER ) ) )
----
-18

query I rowsort
SELECT - NULLIF ( + + ( + 4 ), + 62 )
----
-4

onlyif mysql # DIV for integer division: 
query II rowsort label-3839
SELECT + 81 DIV + - 71, - 40 * 78 AS col0
----
-1
-3120

skipif mysql # not compatible
query II rowsort label-3839
SELECT + 81 / + - 71, - 40 * 78 AS col0
----
-1
-3120

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT + ( - 34 ) + - - NULLIF ( - - 68, - SUM( + 43 ) ) + - ( 53 )
----
-19

skipif mysql # not compatible
query I rowsort label-3840
SELECT + ( - 34 ) + - - NULLIF ( - - 68, - SUM ( + 43 ) ) + - ( 53 )
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3841
SELECT + 99 * - ( + - CASE 30 WHEN - 61 * + 97 * - ( - 36 ) - + - CAST( NULL AS SIGNED ) * - + 42 THEN - + 10 WHEN 60 + 4 * - 45 THEN NULL ELSE 51 * 43 END ) AS col2
----
217107

skipif mysql # not compatible
query I rowsort label-3841
SELECT + 99 * - ( + - CASE 30 WHEN - 61 * + 97 * - ( - 36 ) - + - CAST ( NULL AS INTEGER ) * - + 42 THEN - + 10 WHEN 60 + 4 * - 45 THEN NULL ELSE 51 * 43 END ) AS col2
----
217107

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT ( CASE + 18 WHEN - CASE ( + COALESCE ( + - 62, 36 ) ) WHEN 50 THEN NULL ELSE + 83 - + 78 * - 94 END THEN - 31 + 41 WHEN ( ( COUNT( * ) ) ) * 1 + COUNT( * ) * - 7 THEN 93 * - 36 END ) * + 38 + 1 / 2
----
NULL

skipif mysql # not compatible
query I rowsort label-3842
SELECT ( CASE + 18 WHEN - CASE ( + COALESCE ( + - 62, 36 ) ) WHEN 50 THEN NULL ELSE + 83 - + 78 * - 94 END THEN - 31 + 41 WHEN ( ( COUNT ( * ) ) ) * 1 + COUNT ( * ) * - 7 THEN 93 * - 36 END ) * + 38 + 1 / 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT - 75 - + - COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-3843
SELECT - 75 - + - COUNT ( * )
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-3844
SELECT ALL + 63 AS col0, - 20 * + MIN( ALL + 4 ) - 39 + - 64 * 35 * - 31 * ( COUNT( * ) ) AS col0
----
63
69321

skipif mysql # not compatible
query II rowsort label-3844
SELECT ALL + 63 AS col0, - 20 * + MIN ( ALL + 4 ) - 39 + - 64 * 35 * - 31 * ( COUNT ( * ) ) AS col0
----
63
69321

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT ALL 19 * COUNT( * ) + - - 61
----
80

skipif mysql # not compatible
query I rowsort label-3845
SELECT ALL 19 * COUNT ( * ) + - - 61
----
80

query I rowsort
SELECT + 63 * - 69 AS col0
----
-4347

query I rowsort
SELECT + 22 + - + 85 + 30
----
-33

query I rowsort
SELECT + + ( - - 48 ) + + - 80
----
-32

query I rowsort
SELECT + ( + NULLIF ( + - 56, 78 ) )
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-3850
SELECT DISTINCT + - 62 AS col0, + 87 + + + MAX( + - 45 ) - - - 18 AS col1
----
-62
24

skipif mysql # not compatible
query II rowsort label-3850
SELECT DISTINCT + - 62 AS col0, + 87 + + + MAX ( + - 45 ) - - - 18 AS col1
----
-62
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT + - 4 * + + COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-3851
SELECT + - 4 * + + COUNT ( * )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT COUNT( DISTINCT - - 86 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3852
SELECT COUNT ( DISTINCT - - 86 ) AS col0
----
1

query I rowsort
SELECT + 59 + ( - 9 ) AS col0
----
50

query I rowsort
SELECT + + COALESCE ( + - 42, 88 )
----
-42

query I rowsort
SELECT - 33 * - 58 * + 87
----
166518

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT ALL + + 70 * - COUNT( * ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-3856
SELECT ALL + + 70 * - COUNT ( * ) AS col2
----
-70

query II rowsort
SELECT ALL + - 46 AS col1, 11
----
-46
11

query I rowsort
SELECT DISTINCT + 11 * ( - 25 ) AS col0
----
-275

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT ALL + MAX( DISTINCT + 59 )
----
59

skipif mysql # not compatible
query I rowsort label-3859
SELECT ALL + MAX ( DISTINCT + 59 )
----
59

query I rowsort
SELECT ALL + - ( - - 89 ) col0
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-3861
SELECT - 99 * + 26 AS col0, - 69 * - + 6 * + COUNT( DISTINCT + 70 ) * + + 79 AS col0
----
-2574
32706

skipif mysql # not compatible
query II rowsort label-3861
SELECT - 99 * + 26 AS col0, - 69 * - + 6 * + COUNT ( DISTINCT + 70 ) * + + 79 AS col0
----
-2574
32706

query I rowsort
SELECT + - COALESCE ( + 47, - + 62 ) * 98 + 93 + COALESCE ( + ( + 98 ), - + ( + 53 ) )
----
-4415

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3863
SELECT - COALESCE ( NULLIF ( + MIN( ALL + 64 ), + CAST( NULL AS DECIMAL ) ), + 44 + + - 18 + - 10 ) col0
----
-64

skipif mysql # not compatible
query I rowsort label-3863
SELECT - COALESCE ( NULLIF ( + MIN ( ALL + 64 ), + CAST ( NULL AS REAL ) ), + 44 + + - 18 + - 10 ) col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT + - NULLIF ( 87, - - 1 * - 54 * - SUM( - + 61 ) + - - COUNT( * ) * - 10 ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-3864
SELECT + - NULLIF ( 87, - - 1 * - 54 * - SUM ( - + 61 ) + - - COUNT ( * ) * - 10 ) AS col2
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-3865
SELECT + - 28 DIV + 4
----
-7

skipif mysql # not compatible
query I rowsort label-3865
SELECT + - 28 / + 4
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT - - 23 * - 84 * - COUNT( * ) + COUNT( * )
----
1933

skipif mysql # not compatible
query I rowsort label-3866
SELECT - - 23 * - 84 * - COUNT ( * ) + COUNT ( * )
----
1933

query I rowsort
SELECT - ( 20 ) * - 94 * - 15
----
-28200

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT - 83 + + + SUM( DISTINCT 0 )
----
-83

skipif mysql # not compatible
query I rowsort label-3868
SELECT - 83 + + + SUM ( DISTINCT 0 )
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3869
SELECT - MAX( CAST( NULL AS SIGNED ) ) - 54 + - ( + CAST( NULL AS SIGNED ) ) / + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-3869
SELECT - MAX ( CAST ( NULL AS INTEGER ) ) - 54 + - ( + CAST ( NULL AS INTEGER ) ) / + 57
----
NULL

query I rowsort
SELECT DISTINCT ( + 64 ) AS col0
----
64

query I rowsort
SELECT - ( - 30 ) + - 24
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT ALL + 72 + + 65 + - COUNT( * ) - + + CASE - 89 WHEN - 32 THEN + 37 - + 43 + - 37 WHEN - 82 + + 56 THEN - 7 * + ( COALESCE ( 52, + 78 ) ) - - COUNT( * ) * - 62 WHEN 40 / CASE 75 WHEN - 80 * - SUM( DISTINCT - ( + ( 64 ) ) ) + + 86 THEN NULL ELSE + COUNT( * ) END + + 19 THEN NULL ELSE NULL END + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-3872
SELECT ALL + 72 + + 65 + - COUNT ( * ) - + + CASE - 89 WHEN - 32 THEN + 37 - + 43 + - 37 WHEN - 82 + + 56 THEN - 7 * + ( COALESCE ( 52, + 78 ) ) - - COUNT ( * ) * - 62 WHEN 40 / CASE 75 WHEN - 80 * - SUM ( DISTINCT - ( + ( 64 ) ) ) + + 86 THEN NULL ELSE + COUNT ( * ) END + + 19 THEN NULL ELSE NULL END + 47
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3873
SELECT DISTINCT + COUNT( * ) + 97 + COUNT( * ) / - 18 * CAST( NULL AS SIGNED ) AS col1, 38
----
NULL
38

skipif mysql # not compatible
query II rowsort label-3873
SELECT DISTINCT + COUNT ( * ) + 97 + COUNT ( * ) / - 18 * CAST ( NULL AS INTEGER ) AS col1, 38
----
NULL
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3874
SELECT ALL + 73 + + - 90 - CAST( + 77 AS SIGNED )
----
-94

skipif mysql # not compatible
query I rowsort label-3874
SELECT ALL + 73 + + - 90 - CAST ( + 77 AS INTEGER )
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3875
SELECT DISTINCT ( 36 ) col0, COUNT( * ) DIV + 25
----
36
0

skipif mysql # not compatible
query II rowsort label-3875
SELECT DISTINCT ( 36 ) col0, COUNT ( * ) / + 25
----
36
0

onlyif mysql # aggregate syntax: 
query III rowsort label-3876
SELECT ALL - 46 * - COUNT( * ), 0 AS col1, - 42 * + + 88 AS col2
----
46
0
-3696

skipif mysql # not compatible
query III rowsort label-3876
SELECT ALL - 46 * - COUNT ( * ), 0 AS col1, - 42 * + + 88 AS col2
----
46
0
-3696

query I rowsort
SELECT DISTINCT - 28 + 25
----
-3

query I rowsort
SELECT ALL + 73 + 75
----
148

query I rowsort
SELECT + 82 + - - 32 * - 9 AS col1
----
-206

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT - ( 20 ) * + - CASE NULLIF ( - 6, + MIN( + 74 ) ) WHEN + - ( + 9 ) THEN + 22 * - 45 END - + COALESCE ( 8, + 70 - + COALESCE ( - 68, + 62 ), - 60 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3880
SELECT - ( 20 ) * + - CASE NULLIF ( - 6, + MIN ( + 74 ) ) WHEN + - ( + 9 ) THEN + 22 * - 45 END - + COALESCE ( 8, + 70 - + COALESCE ( - 68, + 62 ), - 60 ) AS col1
----
NULL

query I rowsort
SELECT ALL - 10 - - 56
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3882
SELECT ALL ( - CAST( NULL AS SIGNED ) ) - + 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3882
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) - + 25 AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3883
SELECT + 40 * + + ( - 77 ) * ( CAST( NULL AS DECIMAL ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3883
SELECT + 40 * + + ( - 77 ) * ( CAST ( NULL AS REAL ) ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3884
SELECT ALL + - MAX( DISTINCT COALESCE ( + 50, 67 ) ) DIV 55 - + 75
----
-75

skipif mysql # not compatible
query I rowsort label-3884
SELECT ALL + - MAX ( DISTINCT COALESCE ( + 50, 67 ) ) / 55 - + 75
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-3885
SELECT - 20 * 67 DIV 60
----
-22

skipif mysql # not compatible
query I rowsort label-3885
SELECT - 20 * 67 / 60
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3886
SELECT - 34 DIV SUM( DISTINCT - + CAST( 54 AS SIGNED ) ) DIV + NULLIF ( - MIN( - 49 ), - + NULLIF ( - + 19, + + 61 - - - COUNT( * ) ) ) - - ( ( - 48 ) ) + - 68 - + 45
----
-161

skipif mysql # not compatible
query I rowsort label-3886
SELECT - 34 / SUM ( DISTINCT - + CAST ( 54 AS INTEGER ) ) / + NULLIF ( - MIN ( - 49 ), - + NULLIF ( - + 19, + + 61 - - - COUNT ( * ) ) ) - - ( ( - 48 ) ) + - 68 - + 45
----
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT + 48 - COUNT( * ) - ( - CASE - ( - + 4 ) WHEN + 62 THEN + 63 * - COUNT( * ) + + - 85 / + 78 + - + 82 WHEN + 12 THEN - 51 END ) * - 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3887
SELECT + 48 - COUNT ( * ) - ( - CASE - ( - + 4 ) WHEN + 62 THEN + 63 * - COUNT ( * ) + + - 85 / + 78 + - + 82 WHEN + 12 THEN - 51 END ) * - 36 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT DISTINCT ( + 99 ) * - + COUNT( * )
----
-99

skipif mysql # not compatible
query I rowsort label-3888
SELECT DISTINCT ( + 99 ) * - + COUNT ( * )
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3889
SELECT ALL - 23 DIV + 47
----
0

skipif mysql # not compatible
query I rowsort label-3889
SELECT ALL - 23 / + 47
----
0

query I rowsort
SELECT DISTINCT - - 18 col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT DISTINCT - MIN( DISTINCT - 68 )
----
68

skipif mysql # not compatible
query I rowsort label-3891
SELECT DISTINCT - MIN ( DISTINCT - 68 )
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3892
SELECT + MAX( ALL - 31 ) * + ( + 51 ) + - 85 - CASE - COUNT( * ) WHEN + 88 THEN - - 64 WHEN + 70 + 15 THEN + CASE - COUNT( ALL CAST( NULL AS SIGNED ) ) WHEN 95 + 53 THEN + 8 + 67 * - COUNT( * ) WHEN - 18 - 22 THEN NULL END * + 9 + - 31 WHEN 2 * 62 THEN 92 * - 71 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3892
SELECT + MAX ( ALL - 31 ) * + ( + 51 ) + - 85 - CASE - COUNT ( * ) WHEN + 88 THEN - - 64 WHEN + 70 + 15 THEN + CASE - COUNT ( ALL CAST ( NULL AS INTEGER ) ) WHEN 95 + 53 THEN + 8 + 67 * - COUNT ( * ) WHEN - 18 - 22 THEN NULL END * + 9 + - 31 WHEN 2 * 62 THEN 92 * - 71 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + - 62 * 52 * + - 86 + - - 52 AS col1
----
277316

query II rowsort
SELECT DISTINCT 76 + 72 col1, 57 * - 73
----
148
-4161

query I rowsort
SELECT 52 * + 62 * 60
----
193440

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT MIN( ALL + + 90 ) + 11 * - - NULLIF ( + 75, 59 ) AS col0
----
915

skipif mysql # not compatible
query I rowsort label-3896
SELECT MIN ( ALL + + 90 ) + 11 * - - NULLIF ( + 75, 59 ) AS col0
----
915

query I rowsort
SELECT ALL - 4 + - + 37
----
-41

query I rowsort
SELECT ALL + 41 + + 97 * - 41 * - 68 * + 26
----
7031377

query I rowsort
SELECT 84 * - 67 col1
----
-5628

query II rowsort
SELECT - 46 AS col2, - 43
----
-46
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3901
SELECT DISTINCT 77 + + 19 * - CAST( + - 35 AS SIGNED ) + - - 46 + + 46 + + COUNT( * ) + - 72 * 77 * + ( COUNT( * ) ) * - - 39 + + COUNT( * ) * + 16 * 71 * - SUM( 89 ) col2
----
-316485

skipif mysql # not compatible
query I rowsort label-3901
SELECT DISTINCT 77 + + 19 * - CAST ( + - 35 AS INTEGER ) + - - 46 + + 46 + + COUNT ( * ) + - 72 * 77 * + ( COUNT ( * ) ) * - - 39 + + COUNT ( * ) * + 16 * 71 * - SUM ( 89 ) col2
----
-316485

query I rowsort
SELECT 96 * + + 75 AS col2
----
7200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3903
SELECT ALL - 41 + - CAST( NULLIF ( - - 63, + + COUNT( * ) ) AS SIGNED )
----
-104

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL - 41 + - CAST ( NULLIF ( - - 63, + + COUNT ( * ) ) AS INTEGER )
----
-104

query I rowsort
SELECT 74 - 79 + + 75
----
70

query I rowsort
SELECT ( 31 ) - - 68 + 60
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3906
SELECT 86 * + CAST( 72 AS SIGNED ), 42 + 37 col1
----
6192
79

skipif mysql # not compatible
query II rowsort label-3906
SELECT 86 * + CAST ( 72 AS INTEGER ), 42 + 37 col1
----
6192
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3907
SELECT 93 + - CAST( + 68 AS SIGNED ) * + 64 col1
----
-4259

skipif mysql # not compatible
query I rowsort label-3907
SELECT 93 + - CAST ( + 68 AS INTEGER ) * + 64 col1
----
-4259

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3908
SELECT ALL + COALESCE ( - 76, - 39 ) - 25 AS col1, COALESCE ( + NULLIF ( 19, - + 60 ), - CAST( 57 AS SIGNED ) ) * + CAST( + COUNT( * ) AS SIGNED ) * - 47 + + 31 AS col1
----
-101
-862

skipif mysql # not compatible
query II rowsort label-3908
SELECT ALL + COALESCE ( - 76, - 39 ) - 25 AS col1, COALESCE ( + NULLIF ( 19, - + 60 ), - CAST ( 57 AS INTEGER ) ) * + CAST ( + COUNT ( * ) AS INTEGER ) * - 47 + + 31 AS col1
----
-101
-862

query II rowsort
SELECT DISTINCT 73, - 67 + + 11 AS col2
----
73
-56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3910
SELECT ALL - COUNT( + 19 ) * - 39 + + CAST( NULL AS DECIMAL ) + + 12 * 59 / + + 97 * - - ( + 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL - COUNT ( + 19 ) * - 39 + + CAST ( NULL AS REAL ) + + 12 * 59 / + + 97 * - - ( + 98 )
----
NULL

query I rowsort
SELECT 18 - - 58 AS col0
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-3912
SELECT - 78, 29 * - 30 + - 52 + 86 * + - COUNT( DISTINCT - 8 ) AS col2
----
-78
-1008

skipif mysql # not compatible
query II rowsort label-3912
SELECT - 78, 29 * - 30 + - 52 + 86 * + - COUNT ( DISTINCT - 8 ) AS col2
----
-78
-1008

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT DISTINCT - MIN( ALL + 36 ) * - - 53 AS col1
----
-1908

skipif mysql # not compatible
query I rowsort label-3913
SELECT DISTINCT - MIN ( ALL + 36 ) * - - 53 AS col1
----
-1908

query II rowsort
SELECT 98 * - ( 21 ) AS col1, 1 * + - NULLIF ( 71, + 81 )
----
-2058
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3915
SELECT 42 AS col1, - 1 - 12 DIV COUNT( * )
----
42
-13

skipif mysql # not compatible
query II rowsort label-3915
SELECT 42 AS col1, - 1 - 12 / COUNT ( * )
----
42
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT - NULLIF ( 11, - - 14 ) * - + 93 * + SUM( ALL + 74 )
----
75702

skipif mysql # not compatible
query I rowsort label-3916
SELECT - NULLIF ( 11, - - 14 ) * - + 93 * + SUM ( ALL + 74 )
----
75702

query I rowsort
SELECT ALL - + ( - 76 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT ALL - - MIN( - 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-3918
SELECT ALL - - MIN ( - 40 )
----
-40

query II rowsort
SELECT DISTINCT - - 20 AS col0, - 20 + - 59 AS col1
----
20
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-3920
SELECT DISTINCT - 83 + + COUNT( * ) * + 89, 16 AS col2
----
6
16

skipif mysql # not compatible
query II rowsort label-3920
SELECT DISTINCT - 83 + + COUNT ( * ) * + 89, 16 AS col2
----
6
16

query I rowsort
SELECT DISTINCT + 25 + - 21 * 75 * + 47 - - 20
----
-73980

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT COUNT( * ) * + 35 * 13 * + 27
----
12285

skipif mysql # not compatible
query I rowsort label-3922
SELECT COUNT ( * ) * + 35 * 13 * + 27
----
12285

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT ALL 65 + + 48 + + COUNT( * ) * - COUNT( * ) + - COUNT( * ) * + + 2 + + 70
----
180

skipif mysql # not compatible
query I rowsort label-3923
SELECT ALL 65 + + 48 + + COUNT ( * ) * - COUNT ( * ) + - COUNT ( * ) * + + 2 + + 70
----
180

query I rowsort
SELECT DISTINCT - 34 * + + 11 + + 90
----
-284

query I rowsort
SELECT + + NULLIF ( + + 71, - 70 / 63 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT ALL + ( + - 84 ) * SUM( + 69 ) + - 44 AS col1
----
-5840

skipif mysql # not compatible
query I rowsort label-3926
SELECT ALL + ( + - 84 ) * SUM ( + 69 ) + - 44 AS col1
----
-5840

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3927
SELECT CAST( NULL AS DECIMAL ) + - 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3927
SELECT CAST ( NULL AS REAL ) + - 3 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3928
SELECT DISTINCT 5 + + + 63 * - 30 + + 18 col1, + 48 * MAX( - + 54 ) * - NULLIF ( 64, + + COUNT( * ) ) + - + ( + 61 ) + + 95 * - 1
----
-1867
165732

skipif mysql # not compatible
query II rowsort label-3928
SELECT DISTINCT 5 + + + 63 * - 30 + + 18 col1, + 48 * MAX ( - + 54 ) * - NULLIF ( 64, + + COUNT ( * ) ) + - + ( + 61 ) + + 95 * - 1
----
-1867
165732

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT DISTINCT COUNT( * ) + - + 51 + + - 25
----
-75

skipif mysql # not compatible
query I rowsort label-3929
SELECT DISTINCT COUNT ( * ) + - + 51 + + - 25
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3930
SELECT ALL COALESCE ( 55, - - 82 ) + + COUNT( * ) * + + CASE - - 26 WHEN + CAST( + 37 AS SIGNED ) THEN NULL ELSE - 88 * - 76 END - + 54
----
6689

skipif mysql # not compatible
query I rowsort label-3930
SELECT ALL COALESCE ( 55, - - 82 ) + + COUNT ( * ) * + + CASE - - 26 WHEN + CAST ( + 37 AS INTEGER ) THEN NULL ELSE - 88 * - 76 END - + 54
----
6689

onlyif mysql # aggregate syntax: 
query II rowsort label-3931
SELECT ALL - MAX( 10 ) AS col1, - 30 AS col1
----
-10
-30

skipif mysql # not compatible
query II rowsort label-3931
SELECT ALL - MAX ( 10 ) AS col1, - 30 AS col1
----
-10
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3932
SELECT COUNT( * ) + CAST( - ( + - ( + 43 ) ) AS SIGNED ) AS col1, + 5
----
44
5

skipif mysql # not compatible
query II rowsort label-3932
SELECT COUNT ( * ) + CAST ( - ( + - ( + 43 ) ) AS INTEGER ) AS col1, + 5
----
44
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3933
SELECT CAST( NULL AS SIGNED ) * + 30 * - 41 * - 17 + + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-3933
SELECT CAST ( NULL AS INTEGER ) * + 30 * - 41 * - 17 + + 52
----
NULL

query II rowsort
SELECT ALL 76 - + + 9 AS col1, 47
----
67
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT ALL - NULLIF ( 21, + 63 / + + COUNT( * ) - 79 ) - - 63
----
42

skipif mysql # not compatible
query I rowsort label-3935
SELECT ALL - NULLIF ( 21, + 63 / + + COUNT ( * ) - 79 ) - - 63
----
42

query I rowsort
SELECT DISTINCT 70 * 30 AS col1
----
2100

query I rowsort
SELECT ( 93 ) + - 39 * + - 70 AS col1
----
2823

query I rowsort
SELECT 21 * + + 10
----
210

query I rowsort
SELECT 28 + 46 + 58 AS col1
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT ALL 22 * - SUM( - 57 ) AS col0
----
1254

skipif mysql # not compatible
query I rowsort label-3940
SELECT ALL 22 * - SUM ( - 57 ) AS col0
----
1254

onlyif mysql # DIV for integer division: 
query III rowsort label-3941
SELECT 37 + 99 DIV + 35 - + 37 AS col0, - 20 * + - 48 * 54 col1, 32 AS col2
----
2
51840
32

skipif mysql # not compatible
query III rowsort label-3941
SELECT 37 + 99 / + 35 - + 37 AS col0, - 20 * + - 48 * 54 col1, 32 AS col2
----
2
51840
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3942
SELECT 11 * + CAST( - 27 AS SIGNED ) AS col1
----
-297

skipif mysql # not compatible
query I rowsort label-3942
SELECT 11 * + CAST ( - 27 AS INTEGER ) AS col1
----
-297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3943
SELECT 47 + - 3 + - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3943
SELECT 47 + - 3 + - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - NULLIF ( + 89, - 95 ) AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT - MAX( DISTINCT 2 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-3945
SELECT - MAX ( DISTINCT 2 ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT CASE - COUNT( ALL - - 25 ) WHEN + 24 * + 31 THEN NULL ELSE - 35 END AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-3946
SELECT CASE - COUNT ( ALL - - 25 ) WHEN + 24 * + 31 THEN NULL ELSE - 35 END AS col1
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-3947
SELECT DISTINCT ( + 92 ), NULLIF ( - - 13, - CASE - 88 WHEN + - ( + 7 ) THEN COALESCE ( 42, 69, + - COUNT( - 9 ), - ( 97 ) - - 32 ) WHEN 42 * + 35 THEN 45 * 57 + COUNT( DISTINCT - 39 ) END ) * - 3 + - 30 AS col1
----
92
-69

skipif mysql # not compatible
query II rowsort label-3947
SELECT DISTINCT ( + 92 ), NULLIF ( - - 13, - CASE - 88 WHEN + - ( + 7 ) THEN COALESCE ( 42, 69, + - COUNT ( - 9 ), - ( 97 ) - - 32 ) WHEN 42 * + 35 THEN 45 * 57 + COUNT ( DISTINCT - 39 ) END ) * - 3 + - 30 AS col1
----
92
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3948
SELECT - + 67 * - - CAST( 40 AS SIGNED ) AS col0
----
-2680

skipif mysql # not compatible
query I rowsort label-3948
SELECT - + 67 * - - CAST ( 40 AS INTEGER ) AS col0
----
-2680

onlyif mysql # DIV for integer division: 
query I rowsort label-3949
SELECT ALL 8 DIV 7 + 93
----
94

skipif mysql # not compatible
query I rowsort label-3949
SELECT ALL 8 / 7 + 93
----
94

query I rowsort
SELECT ALL - 87 + - 5 * 38 + + 58
----
-219

query I rowsort
SELECT DISTINCT + - 13 * - 47 * + + 1 AS col2
----
611

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3952
SELECT ALL - - ( - 75 ) * 4 * + 86 AS col1, - CAST( NULL AS SIGNED ) col1
----
-25800
NULL

skipif mysql # not compatible
query II rowsort label-3952
SELECT ALL - - ( - 75 ) * 4 * + 86 AS col1, - CAST ( NULL AS INTEGER ) col1
----
-25800
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3953
SELECT - CAST( + - COUNT( * ) AS SIGNED ) * + 63
----
63

skipif mysql # not compatible
query I rowsort label-3953
SELECT - CAST ( + - COUNT ( * ) AS INTEGER ) * + 63
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3954
SELECT ALL + 96 * + CASE - CAST( COALESCE ( MAX( - 50 ), + 95 * - CASE - - 40 WHEN - CASE + - ( - ( + 54 ) ) WHEN - 80 THEN 28 WHEN NULLIF ( 15, 7 - + 32 * 99 ) THEN + 28 WHEN + 90 * NULLIF ( - 96 * - 96, MAX( ALL + 18 ) * 73 ) THEN NULL ELSE 33 + - SUM( - 42 ) * + 70 END THEN NULL ELSE 13 / - 30 END + + 65 ) AS SIGNED ) WHEN + 23 THEN CASE COUNT( * ) WHEN - COALESCE ( + MIN( DISTINCT - 26 ), 98 + ( - 4 ), - 12 + SUM( ALL - ( - 69 ) + 51 * + 12 ) / COUNT( * ) ) + - 57 THEN 36 ELSE NULL END WHEN 94 + CASE + 41 WHEN MIN( + 0 ) THEN NULL ELSE 8 + + 87 END THEN 48 / CAST( COUNT( 99 ) AS SIGNED ) WHEN + CASE 19 WHEN 38 * + 16 THEN - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) WHEN 15 - - 34 THEN NULL ELSE + COUNT( * ) END THEN + ( + 62 ) END + 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3954
SELECT ALL + 96 * + CASE - CAST ( COALESCE ( MAX ( - 50 ), + 95 * - CASE - - 40 WHEN - CASE + - ( - ( + 54 ) ) WHEN - 80 THEN 28 WHEN NULLIF ( 15, 7 - + 32 * 99 ) THEN + 28 WHEN + 90 * NULLIF ( - 96 * - 96, MAX ( ALL + 18 ) * 73 ) THEN NULL ELSE 33 + - SUM ( - 42 ) * + 70 END THEN NULL ELSE 13 / - 30 END + + 65 ) AS INTEGER ) WHEN + 23 THEN CASE COUNT ( * ) WHEN - COALESCE ( + MIN ( DISTINCT - 26 ), 98 + ( - 4 ), - 12 + SUM ( ALL - ( - 69 ) + 51 * + 12 ) / COUNT ( * ) ) + - 57 THEN 36 ELSE NULL END WHEN 94 + CASE + 41 WHEN MIN ( + 0 ) THEN NULL ELSE 8 + + 87 END THEN 48 / CAST ( COUNT ( 99 ) AS INTEGER ) WHEN + CASE 19 WHEN 38 * + 16 THEN - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) WHEN 15 - - 34 THEN NULL ELSE + COUNT ( * ) END THEN + ( + 62 ) END + 75 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3955
SELECT + ( + 44 ) DIV - + 18 + - + 3 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-3955
SELECT + ( + 44 ) / - + 18 + - + 3 AS col1
----
-5

query I rowsort
SELECT ALL + 89 * - - 0 + ( + + 74 ) AS col1
----
74

query I rowsort
SELECT ALL + 46 * + - 49 + 4
----
-2250

query I rowsort
SELECT - + 66 - - - 57
----
-123

query I rowsort
SELECT DISTINCT + ( 12 ) AS col0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3960
SELECT - COALESCE ( - ( + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ), + - MIN( - 47 ) * - 7 ), COUNT( + 22 ) AS col1
----
329
1

skipif mysql # not compatible
query II rowsort label-3960
SELECT - COALESCE ( - ( + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ), + - MIN ( - 47 ) * - 7 ), COUNT ( + 22 ) AS col1
----
329
1

query I rowsort
SELECT ALL + - 99 col1
----
-99

query I rowsort
SELECT - 82 * - 4 AS col1
----
328

onlyif mysql # aggregate syntax: 
query II rowsort label-3963
SELECT ALL - 89 * + COUNT( * ) col0, COUNT( * ) AS col0
----
-89
1

skipif mysql # not compatible
query II rowsort label-3963
SELECT ALL - 89 * + COUNT ( * ) col0, COUNT ( * ) AS col0
----
-89
1

query I rowsort
SELECT COALESCE ( - - ( + 15 ), - - ( + 87 ) + 95 * + 87 )
----
15

query I rowsort
SELECT + 65 - - 34
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3966
SELECT - COALESCE ( 71, + + 57, - MAX( ALL + 90 ) * - COUNT( * ) * ( - 57 ) ) + + - 32 + - 68 + - 20 * - 83 + - 98 DIV - SUM( DISTINCT - 68 ) + 28 AS col2
----
1516

skipif mysql # not compatible
query I rowsort label-3966
SELECT - COALESCE ( 71, + + 57, - MAX ( ALL + 90 ) * - COUNT ( * ) * ( - 57 ) ) + + - 32 + - 68 + - 20 * - 83 + - 98 / - SUM ( DISTINCT - 68 ) + 28 AS col2
----
1516

query I rowsort
SELECT ALL + 24 * - 3
----
-72

query I rowsort
SELECT + 47 * - + 86 * - 64
----
258688

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3969
SELECT AVG ( + ( + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3969
SELECT AVG ( + ( + CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3970
SELECT ALL - 51 * + CAST( NULL AS SIGNED ) * - - AVG ( DISTINCT - 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3970
SELECT ALL - 51 * + CAST ( NULL AS INTEGER ) * - - AVG ( DISTINCT - 81 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3971
SELECT + 99 DIV 99 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3971
SELECT + 99 / 99 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3972
SELECT ALL ( - - COUNT( * ) ) / - - 37 * + + CAST( NULL AS SIGNED ) * - 71 + 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3972
SELECT ALL ( - - COUNT ( * ) ) / - - 37 * + + CAST ( NULL AS INTEGER ) * - 71 + 23 AS col1
----
NULL

query I rowsort
SELECT - ( + 1 ) AS col2
----
-1

query II rowsort
SELECT 90 AS col2, + 63 * + + 97 AS col1
----
90
6111

query I rowsort
SELECT + 81 - - 55 AS col0
----
136

query I rowsort
SELECT + 45 * + 6 * - 63 AS col2
----
-17010

query I rowsort
SELECT + 57 + + 8 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT DISTINCT - COUNT( * ) + - - COALESCE ( - 12, - + 42, - + 44 * - + 97 ) * + - 34 * + - 76 AS col2
----
-31009

skipif mysql # not compatible
query I rowsort label-3978
SELECT DISTINCT - COUNT ( * ) + - - COALESCE ( - 12, - + 42, - + 44 * - + 97 ) * + - 34 * + - 76 AS col2
----
-31009

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT + NULLIF ( + CASE WHEN ( + 34 ) NOT IN ( 93 + + COALESCE ( - 72, 47 ) / - 87 ) THEN NULL ELSE + ( + - CASE - - 79 WHEN + COALESCE ( 26, CASE + 45 WHEN + 12 THEN + 91 + 34 WHEN 66 * + 65 + - 31 THEN AVG ( ALL + 51 ) * 46 ELSE NULL END + 49 * 98 ) * ( 30 ) THEN + 3 WHEN + 1 THEN 40 + COUNT( * ) WHEN + 56 THEN + 12 + 19 END ) END, - 99 * SUM( + CASE 41 WHEN 50 THEN NULL WHEN 6 THEN + 88 * + 10 END ) ) * 52
----
NULL

skipif mysql # not compatible
query I rowsort label-3979
SELECT + NULLIF ( + CASE WHEN ( + 34 ) NOT IN ( 93 + + COALESCE ( - 72, 47 ) / - 87 ) THEN NULL ELSE + ( + - CASE - - 79 WHEN + COALESCE ( 26, CASE + 45 WHEN + 12 THEN + 91 + 34 WHEN 66 * + 65 + - 31 THEN AVG ( ALL + 51 ) * 46 ELSE NULL END + 49 * 98 ) * ( 30 ) THEN + 3 WHEN + 1 THEN 40 + COUNT ( * ) WHEN + 56 THEN + 12 + 19 END ) END, - 99 * SUM ( + CASE 41 WHEN 50 THEN NULL WHEN 6 THEN + 88 * + 10 END ) ) * 52
----
NULL

query II rowsort
SELECT ALL 97 + - - ( 28 ) AS col2, - 91 AS col2
----
125
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3981
SELECT DISTINCT COUNT( * ) + CAST( - SUM( - + 49 ) AS SIGNED ) * MAX( ( ( + 45 ) ) ) DIV + - MIN( - 67 )
----
33

skipif mysql # not compatible
query I rowsort label-3981
SELECT DISTINCT COUNT ( * ) + CAST ( - SUM ( - + 49 ) AS INTEGER ) * MAX ( ( ( + 45 ) ) ) / + - MIN ( - 67 )
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-3982
SELECT DISTINCT COUNT( * ) col0, - 99 * ( + - 34 )
----
1
3366

skipif mysql # not compatible
query II rowsort label-3982
SELECT DISTINCT COUNT ( * ) col0, - 99 * ( + - 34 )
----
1
3366

onlyif mysql # DIV for integer division: 
query I rowsort label-3983
SELECT + - 36 + 98 + - 62 DIV 89
----
62

skipif mysql # not compatible
query I rowsort label-3983
SELECT + - 36 + 98 + - 62 / 89
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-3984
SELECT + + 30 - 6 + + 88 DIV + 91
----
24

skipif mysql # not compatible
query I rowsort label-3984
SELECT + + 30 - 6 + + 88 / + 91
----
24

query I rowsort
SELECT ALL + 25 + + 31
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3986
SELECT - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3986
SELECT - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3987
SELECT - + 25 AS col2, 34 DIV ( CAST( + MAX( 57 ) AS SIGNED ) ) * - 77 * + - 0 AS col2
----
-25
0

skipif mysql # not compatible
query II rowsort label-3987
SELECT - + 25 AS col2, 34 / ( CAST ( + MAX ( 57 ) AS INTEGER ) ) * - 77 * + - 0 AS col2
----
-25
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3988
SELECT ALL + MIN( ALL 73 ) + 38 AS col1, + 49 AS col2
----
111
49

skipif mysql # not compatible
query II rowsort label-3988
SELECT ALL + MIN ( ALL 73 ) + 38 AS col1, + 49 AS col2
----
111
49

query I rowsort
SELECT + 16 + - 96 * 47
----
-4496

query II rowsort
SELECT + 87 col1, - 92
----
87
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-3991
SELECT + 30 + - 83 * + - NULLIF ( + + 96, + COUNT( * ) ), 30 AS col0
----
7998
30

skipif mysql # not compatible
query II rowsort label-3991
SELECT + 30 + - 83 * + - NULLIF ( + + 96, + COUNT ( * ) ), 30 AS col0
----
7998
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3992
SELECT ALL + MIN( 69 ) DIV - - SUM( ALL + - NULLIF ( - 25, + 20 ) )
----
2

skipif mysql # not compatible
query I rowsort label-3992
SELECT ALL + MIN ( 69 ) / - - SUM ( ALL + - NULLIF ( - 25, + 20 ) )
----
2

query I rowsort
SELECT - 43 + - 18
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3994
SELECT DISTINCT + 51 * + CASE + ( 72 ) WHEN - + 89 - + - 14 / + - 96 + + + 21 THEN CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3994
SELECT DISTINCT + 51 * + CASE + ( 72 ) WHEN - + 89 - + - 14 / + - 96 + + + 21 THEN CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT ALL + + 43 * - 25
----
-1075

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3996
SELECT + - CASE + 81 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN + ( + SUM( + - COALESCE ( + 33, - 63 ) ) ) THEN + - CASE 41 WHEN 99 - 95 THEN + + CAST( - 48 AS SIGNED ) + 90 ELSE NULL END * 61 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3996
SELECT + - CASE + 81 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN + ( + SUM ( + - COALESCE ( + 33, - 63 ) ) ) THEN + - CASE 41 WHEN 99 - 95 THEN + + CAST ( - 48 AS INTEGER ) + 90 ELSE NULL END * 61 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3997
SELECT SUM( - CAST( - + 54 AS SIGNED ) ) * COUNT( * ) + 8 col2, - 21 + + 75 + COUNT( * ) * + 80 DIV - + 39
----
62
52

skipif mysql # not compatible
query II rowsort label-3997
SELECT SUM ( - CAST ( - + 54 AS INTEGER ) ) * COUNT ( * ) + 8 col2, - 21 + + 75 + COUNT ( * ) * + 80 / - + 39
----
62
52

query I rowsort
SELECT - 69 * + - 96 + + 11 AS col2
----
6635

query II rowsort
SELECT ALL + ( + + 98 ) AS col0, ( 9 ) * 22 col0
----
98
198

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT - COUNT( - 73 ) * - 45 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-4000
SELECT - COUNT ( - 73 ) * - 45 AS col0
----
45

query I rowsort
SELECT - 59 * - + 8 AS col1
----
472

query II rowsort
SELECT + 97 AS col0, - COALESCE ( - 94, 25 * - 65 )
----
97
94

query I rowsort
SELECT 19 * - 53 + + 5
----
-1002

query I rowsort
SELECT - 23 * + - 39 AS col1
----
897

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT DISTINCT + MIN( 12 )
----
12

skipif mysql # not compatible
query I rowsort label-4005
SELECT DISTINCT + MIN ( 12 )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4006
SELECT - 17 + - COALESCE ( - SUM( CAST( NULL AS SIGNED ) ), + 42 ) DIV + 46 AS col0, 14
----
-17
14

skipif mysql # not compatible
query II rowsort label-4006
SELECT - 17 + - COALESCE ( - SUM ( CAST ( NULL AS INTEGER ) ), + 42 ) / + 46 AS col0, 14
----
-17
14

query II rowsort
SELECT - 87 * + + 69, 93 col0
----
-6003
93

query I rowsort
SELECT - 5 + 59
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT NULLIF ( + MAX( + + ( - 14 ) ), 44 ) col0
----
-14

skipif mysql # not compatible
query I rowsort label-4009
SELECT NULLIF ( + MAX ( + + ( - 14 ) ), 44 ) col0
----
-14

query I rowsort
SELECT - ( - + COALESCE ( ( - COALESCE ( - + 99, + 56 ) ), + - 20 ) )
----
99

query I rowsort
SELECT 84 * - 52 * + 48 + - + 37
----
-209701

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT + 87 - - + NULLIF ( - - SUM( 17 ), COUNT( * ) ) AS col1
----
104

skipif mysql # not compatible
query I rowsort label-4012
SELECT + 87 - - + NULLIF ( - - SUM ( 17 ), COUNT ( * ) ) AS col1
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4013
SELECT + CAST( + 33 AS SIGNED ) * 16 AS col0
----
528

skipif mysql # not compatible
query I rowsort label-4013
SELECT + CAST ( + 33 AS INTEGER ) * 16 AS col0
----
528

query II rowsort
SELECT 16 + - 22 AS col0, 53
----
-6
53

onlyif mysql # aggregate syntax: 
query II rowsort label-4015
SELECT - + COUNT( * ) AS col2, + 22 AS col0
----
-1
22

skipif mysql # not compatible
query II rowsort label-4015
SELECT - + COUNT ( * ) AS col2, + 22 AS col0
----
-1
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT ALL 31 + COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-4016
SELECT ALL 31 + COUNT ( * )
----
32

query I rowsort
SELECT 96 * - 86 AS col1
----
-8256

query II rowsort
SELECT - 60 AS col1, - 16
----
-60
-16

query I rowsort
SELECT ALL 58 * - + 73 col2
----
-4234

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT ALL - COUNT( * ) - 38
----
-39

skipif mysql # not compatible
query I rowsort label-4020
SELECT ALL - COUNT ( * ) - 38
----
-39

query I rowsort
SELECT ALL - 64 - 6 AS col0
----
-70

query II rowsort
SELECT - 16 AS col0, + 3
----
-16
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4023
SELECT ALL CAST( NULL AS SIGNED ) AS col2, - 33 + 37 + + ( CASE - - 43 WHEN + ( + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) THEN - + 48 + - 4 WHEN - COUNT( * ) THEN SUM( DISTINCT + NULLIF ( - - 29, + 44 * 96 ) ) ELSE CASE 89 WHEN - 43 THEN + 86 WHEN - CAST( NULL AS SIGNED ) + + 72 THEN NULL END * 99 END ) / + CAST( + COUNT( * ) AS SIGNED ) col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4023
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, - 33 + 37 + + ( CASE - - 43 WHEN + ( + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) THEN - + 48 + - 4 WHEN - COUNT ( * ) THEN SUM ( DISTINCT + NULLIF ( - - 29, + 44 * 96 ) ) ELSE CASE 89 WHEN - 43 THEN + 86 WHEN - CAST ( NULL AS INTEGER ) + + 72 THEN NULL END * 99 END ) / + CAST ( + COUNT ( * ) AS INTEGER ) col0
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4024
SELECT - NULLIF ( - 13, + + NULLIF ( + 74, + 13 ) * - 60 * + ( - 6 ) ) DIV - - 10 + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-4024
SELECT - NULLIF ( - 13, + + NULLIF ( + 74, + 13 ) * - 60 * + ( - 6 ) ) / - - 10 + + COUNT ( * )
----
2

query I rowsort
SELECT DISTINCT 42 * + - 59 * 1
----
-2478

query II rowsort
SELECT + - 44, - COALESCE ( + 98, + - 70 * - 19 ) * + 77 col1
----
-44
-7546

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4027
SELECT CAST( NULL AS SIGNED ) AS col0, 6 AS col1
----
NULL
6

skipif mysql # not compatible
query II rowsort label-4027
SELECT CAST ( NULL AS INTEGER ) AS col0, 6 AS col1
----
NULL
6

onlyif mysql # aggregate syntax: 
query II rowsort label-4028
SELECT ALL - - MAX( - + 9 ) AS col0, + 27 AS col1
----
-9
27

skipif mysql # not compatible
query II rowsort label-4028
SELECT ALL - - MAX ( - + 9 ) AS col0, + 27 AS col1
----
-9
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4029
SELECT + COUNT( * ) DIV + - ( + 33 ) - - 42 * - - 64 * + CAST( - ( 24 ) AS SIGNED )
----
-64512

skipif mysql # not compatible
query I rowsort label-4029
SELECT + COUNT ( * ) / + - ( + 33 ) - - 42 * - - 64 * + CAST ( - ( 24 ) AS INTEGER )
----
-64512

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4030
SELECT 31 - 5 DIV COUNT( * ) DIV + 88 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-4030
SELECT 31 - 5 / COUNT ( * ) / + 88 AS col2
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4031
SELECT 37 DIV + - 52 AS col1, + ( 34 ) - - 12 + - 30 * - COUNT( * ) AS col2
----
0
76

skipif mysql # not compatible
query II rowsort label-4031
SELECT 37 / + - 52 AS col1, + ( 34 ) - - 12 + - 30 * - COUNT ( * ) AS col2
----
0
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4032
SELECT ALL - CAST( ( - - COUNT( * ) ) AS SIGNED ) + + - 45 * - 32
----
1439

skipif mysql # not compatible
query I rowsort label-4032
SELECT ALL - CAST ( ( - - COUNT ( * ) ) AS INTEGER ) + + - 45 * - 32
----
1439

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT 47 * - COUNT( * ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-4033
SELECT 47 * - COUNT ( * ) AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT DISTINCT - COUNT( * ) + 24 + - 92
----
-69

skipif mysql # not compatible
query I rowsort label-4034
SELECT DISTINCT - COUNT ( * ) + 24 + - 92
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT 98 * - 30 + 95 + + 84 * - 30 * + COUNT( 63 ) AS col2
----
-5365

skipif mysql # not compatible
query I rowsort label-4035
SELECT 98 * - 30 + 95 + + 84 * - 30 * + COUNT ( 63 ) AS col2
----
-5365

query II rowsort
SELECT ALL - ( 65 ), 5 col0
----
-65
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT 37 * + COUNT( + 71 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-4037
SELECT 37 * + COUNT ( + 71 ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT ALL + COUNT( + + 68 ) + + 49 + + + 24 * + 64 + - 31
----
1555

skipif mysql # not compatible
query I rowsort label-4038
SELECT ALL + COUNT ( + + 68 ) + + 49 + + + 24 * + 64 + - 31
----
1555

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4039
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4039
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 19 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4040
SELECT ALL - 89 + - CASE + 42 WHEN - CAST( - 38 AS SIGNED ) + - 27 THEN NULL ELSE 31 END + - 34 AS col1, - COUNT( * ) AS col0
----
-154
-1

skipif mysql # not compatible
query II rowsort label-4040
SELECT ALL - 89 + - CASE + 42 WHEN - CAST ( - 38 AS INTEGER ) + - 27 THEN NULL ELSE 31 END + - 34 AS col1, - COUNT ( * ) AS col0
----
-154
-1

query I rowsort
SELECT DISTINCT + 35 + 70 AS col2
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4042
SELECT NULLIF ( - + CAST( NULL AS SIGNED ), - 87 + - 5 * - 40 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4042
SELECT NULLIF ( - + CAST ( NULL AS INTEGER ), - 87 + - 5 * - 40 ) AS col1
----
NULL

query I rowsort
SELECT + 71 - + 40 AS col1
----
31

query I rowsort
SELECT + ( + 49 ) + + 25 + + + 23 + 45 AS col2
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT + 55 * 61 + + + COUNT( + 46 )
----
3356

skipif mysql # not compatible
query I rowsort label-4045
SELECT + 55 * 61 + + + COUNT ( + 46 )
----
3356

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4046
SELECT DISTINCT - 6 DIV - COUNT( * ) col1
----
6

skipif mysql # not compatible
query I rowsort label-4046
SELECT DISTINCT - 6 / - COUNT ( * ) col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4047
SELECT + COALESCE ( - - 60, - SUM( + + 45 ) - + 7, - - 38 ) + - - 96 AS col1, COUNT( * ) + + + COALESCE ( 92, - 96, + CAST( NULL AS SIGNED ) + COUNT( * ) )
----
156
93

skipif mysql # not compatible
query II rowsort label-4047
SELECT + COALESCE ( - - 60, - SUM ( + + 45 ) - + 7, - - 38 ) + - - 96 AS col1, COUNT ( * ) + + + COALESCE ( 92, - 96, + CAST ( NULL AS INTEGER ) + COUNT ( * ) )
----
156
93

query I rowsort
SELECT DISTINCT + 15 - - 74 AS col2
----
89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4049
SELECT - 35 - - - 39 / + 29 + - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4049
SELECT - 35 - - - 39 / + 29 + - CAST ( NULL AS REAL ) col1
----
NULL

query I rowsort
SELECT ALL + + 72 * - 11
----
-792

query I rowsort
SELECT - 78 + - 23
----
-101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4052
SELECT 80 + - NULLIF ( - + CAST( 53 AS SIGNED ), + 6 / - 42 * + - 57 ) AS col0
----
133

skipif mysql # not compatible
query I rowsort label-4052
SELECT 80 + - NULLIF ( - + CAST ( 53 AS INTEGER ), + 6 / - 42 * + - 57 ) AS col0
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT COUNT( * ) * + 28 + + 28
----
56

skipif mysql # not compatible
query I rowsort label-4053
SELECT COUNT ( * ) * + 28 + + 28
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4054
SELECT 72 * + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4054
SELECT 72 * + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 59 + - 60
----
-1

query I rowsort
SELECT + 28 + + + 99 AS col1
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4057
SELECT NULLIF ( + + 28, + - 53 * + 37 * - COUNT( - - 67 ) ) * - NULLIF ( 51, - - 55 * + ( - - 57 ) * - COUNT( * ) + - 70 / + ( - - 33 ) + + COUNT( * ) * + - 7 ) + - 46 + CAST( - COALESCE ( - 83, 27 * - 42, - 57 * CAST( 71 AS SIGNED ) ) + 47 AS SIGNED ) * 67 AS col2
----
7236

skipif mysql # not compatible
query I rowsort label-4057
SELECT NULLIF ( + + 28, + - 53 * + 37 * - COUNT ( - - 67 ) ) * - NULLIF ( 51, - - 55 * + ( - - 57 ) * - COUNT ( * ) + - 70 / + ( - - 33 ) + + COUNT ( * ) * + - 7 ) + - 46 + CAST ( - COALESCE ( - 83, 27 * - 42, - 57 * CAST ( 71 AS INTEGER ) ) + 47 AS INTEGER ) * 67 AS col2
----
7236

query I rowsort
SELECT 6 + - + 2 AS col0
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-4059
SELECT ALL - COUNT( * ), + 30 AS col2
----
-1
30

skipif mysql # not compatible
query II rowsort label-4059
SELECT ALL - COUNT ( * ), + 30 AS col2
----
-1
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4060
SELECT ALL CAST( + SUM( ALL - + 55 ) AS SIGNED ) * - - 87
----
-4785

skipif mysql # not compatible
query I rowsort label-4060
SELECT ALL CAST ( + SUM ( ALL - + 55 ) AS INTEGER ) * - - 87
----
-4785

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4061
SELECT CAST( NULL AS SIGNED ) + - 26 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4061
SELECT CAST ( NULL AS INTEGER ) + - 26 col1
----
NULL

query I rowsort
SELECT ALL COALESCE ( + 18, + 71 ) * + 29 * - 83
----
-43326

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4063
SELECT CAST( NULL AS SIGNED ) * 58 / - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-4063
SELECT CAST ( NULL AS INTEGER ) * 58 / - 9
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT MIN( - - 21 ) col0
----
21

skipif mysql # not compatible
query I rowsort label-4064
SELECT MIN ( - - 21 ) col0
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4065
SELECT ALL - 25 * 36 DIV 77 + ( - 20 ) + + 87 + + ( - 42 ) + + COUNT( * ) + 19 * ( - 83 )
----
-1562

skipif mysql # not compatible
query I rowsort label-4065
SELECT ALL - 25 * 36 / 77 + ( - 20 ) + + 87 + + ( - 42 ) + + COUNT ( * ) + 19 * ( - 83 )
----
-1562

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT + NULLIF ( SUM( + - 2 ), + - 11 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4066
SELECT + NULLIF ( SUM ( + - 2 ), + - 11 ) AS col1
----
-2

query I rowsort
SELECT + 82 + - 64 AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT SUM( - 6 ) col0
----
-6

skipif mysql # not compatible
query I rowsort label-4068
SELECT SUM ( - 6 ) col0
----
-6

query II rowsort
SELECT ALL + 92 col0, NULLIF ( - ( + - 41 ), 46 )
----
92
41

query II rowsort
SELECT + 58 + + 80 * 56 AS col2, 92 * + 54
----
4538
4968

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4071
SELECT ALL + 48 * 17 + CASE 86 WHEN - ( + CAST( NULL AS DECIMAL ) ) THEN NULL WHEN CAST( - + 81 AS SIGNED ) THEN + 38 ELSE ( - 38 ) END
----
778

skipif mysql # not compatible
query I rowsort label-4071
SELECT ALL + 48 * 17 + CASE 86 WHEN - ( + CAST ( NULL AS REAL ) ) THEN NULL WHEN CAST ( - + 81 AS INTEGER ) THEN + 38 ELSE ( - 38 ) END
----
778

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4072
SELECT 93 * + - CAST( + 69 AS SIGNED ) + + NULLIF ( - ( - - 86 ), 86 * + 26 ) * + 19 col2
----
-8051

skipif mysql # not compatible
query I rowsort label-4072
SELECT 93 * + - CAST ( + 69 AS INTEGER ) + + NULLIF ( - ( - - 86 ), 86 * + 26 ) * + 19 col2
----
-8051

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT ALL 22 * + 70 + - 44 * - COUNT( + 66 )
----
1584

skipif mysql # not compatible
query I rowsort label-4073
SELECT ALL 22 * + 70 + - 44 * - COUNT ( + 66 )
----
1584

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4074
SELECT + CASE - 87 WHEN - - 70 + + + 37 + + - 94 THEN + COUNT( * ) ELSE - + 13 DIV + 12 END
----
-1

skipif mysql # not compatible
query I rowsort label-4074
SELECT + CASE - 87 WHEN - - 70 + + + 37 + + - 94 THEN + COUNT ( * ) ELSE - + 13 / + 12 END
----
-1

query I rowsort
SELECT + 40 * - + 86 + - 84
----
-3524

query I rowsort
SELECT - 86 * - 84 col1
----
7224

onlyif mysql # DIV for integer division: 
query II rowsort label-4077
SELECT ALL 92 DIV 97 * - + 14 AS col2, - 73 + + - 97 col1
----
0
-170

skipif mysql # not compatible
query II rowsort label-4077
SELECT ALL 92 / 97 * - + 14 AS col2, - 73 + + - 97 col1
----
0
-170

query I rowsort
SELECT - + 43 + + 83 AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT ALL + COUNT( * ) + + 40 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-4079
SELECT ALL + COUNT ( * ) + + 40 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT - + 87 * - COUNT( 10 ) + 87
----
174

skipif mysql # not compatible
query I rowsort label-4080
SELECT - + 87 * - COUNT ( 10 ) + 87
----
174

query I rowsort
SELECT + 60 * + - 36
----
-2160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4082
SELECT 57 * 58 + 84 + + CAST( NULL AS SIGNED ) + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-4082
SELECT 57 * 58 + 84 + + CAST ( NULL AS INTEGER ) + 54
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4083
SELECT ALL + - 49 * + COUNT( + - 42 ) + - + COUNT( * ) DIV 91 * - ( + 86 ) + + 11
----
-38

skipif mysql # not compatible
query I rowsort label-4083
SELECT ALL + - 49 * + COUNT ( + - 42 ) + - + COUNT ( * ) / 91 * - ( + 86 ) + + 11
----
-38

query I rowsort
SELECT ALL 52 - + 26 AS col1
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4085
SELECT - 78 AS col0, 60 * 75 + + CAST( NULL AS SIGNED ) + ( - ( + 54 ) ) * - 49 AS col2
----
-78
NULL

skipif mysql # not compatible
query II rowsort label-4085
SELECT - 78 AS col0, 60 * 75 + + CAST ( NULL AS INTEGER ) + ( - ( + 54 ) ) * - 49 AS col2
----
-78
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT DISTINCT COUNT( DISTINCT - 50 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4086
SELECT DISTINCT COUNT ( DISTINCT - 50 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT - 19 + - - SUM( DISTINCT 98 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-4087
SELECT - 19 + - - SUM ( DISTINCT 98 ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-4088
SELECT DISTINCT 73 col0, COUNT( * ) + 61
----
73
62

skipif mysql # not compatible
query II rowsort label-4088
SELECT DISTINCT 73 col0, COUNT ( * ) + 61
----
73
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT - 76 * + + COUNT( * ) * MIN( ALL 43 ) AS col1
----
-3268

skipif mysql # not compatible
query I rowsort label-4089
SELECT - 76 * + + COUNT ( * ) * MIN ( ALL 43 ) AS col1
----
-3268

query I rowsort
SELECT - + 50 * 81 * + + 49
----
-198450

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT - MIN( DISTINCT + 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-4091
SELECT - MIN ( DISTINCT + 64 )
----
-64

query I rowsort
SELECT ALL - 12 * + - 76 AS col0
----
912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4093
SELECT DISTINCT - CASE + - CASE + 74 WHEN + 93 + + - 8 + - - 67 + + - ( COUNT( * ) ) THEN 14 - - - 51 WHEN 27 THEN - 26 ELSE NULL END WHEN - + COUNT( + - 72 ) / - 26 THEN - CASE COUNT( * ) WHEN - - 47 / - 63 THEN + 43 * - 80 WHEN 25 THEN NULL END / + COUNT( * ) ELSE NULL END + COUNT( * ) * CAST( + COUNT( DISTINCT + 43 ) AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4093
SELECT DISTINCT - CASE + - CASE + 74 WHEN + 93 + + - 8 + - - 67 + + - ( COUNT ( * ) ) THEN 14 - - - 51 WHEN 27 THEN - 26 ELSE NULL END WHEN - + COUNT ( + - 72 ) / - 26 THEN - CASE COUNT ( * ) WHEN - - 47 / - 63 THEN + 43 * - 80 WHEN 25 THEN NULL END / + COUNT ( * ) ELSE NULL END + COUNT ( * ) * CAST ( + COUNT ( DISTINCT + 43 ) AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4094
SELECT DISTINCT - SUM( 57 ) * - 55 + CAST( NULL AS SIGNED ) + + 17 / - CAST( - COUNT( + CAST( NULL AS SIGNED ) ) AS SIGNED ) * + CASE + 99 WHEN - 21 THEN + CASE + 64 WHEN - + 54 + - 12 THEN NULL WHEN - 69 THEN - 3 * + 64 + - + 66 WHEN + 64 THEN - 63 * NULLIF ( - MAX( DISTINCT 39 ), + COUNT( ALL - 35 ) * - 69 ) END * - ( + 80 - NULLIF ( - 69, + 56 - + 84 ) ) + 53 * - COUNT( * ) WHEN + 84 * 4 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4094
SELECT DISTINCT - SUM ( 57 ) * - 55 + CAST ( NULL AS INTEGER ) + + 17 / - CAST ( - COUNT ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) * + CASE + 99 WHEN - 21 THEN + CASE + 64 WHEN - + 54 + - 12 THEN NULL WHEN - 69 THEN - 3 * + 64 + - + 66 WHEN + 64 THEN - 63 * NULLIF ( - MAX ( DISTINCT 39 ), + COUNT ( ALL - 35 ) * - 69 ) END * - ( + 80 - NULLIF ( - 69, + 56 - + 84 ) ) + 53 * - COUNT ( * ) WHEN + 84 * 4 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4095
SELECT - COUNT( * ) DIV 55 DIV - 21
----
0

skipif mysql # not compatible
query I rowsort label-4095
SELECT - COUNT ( * ) / 55 / - 21
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4096
SELECT 34 DIV + COUNT( * ) - + + 9 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-4096
SELECT 34 / + COUNT ( * ) - + + 9 AS col1
----
25

query I rowsort
SELECT - 58 * + 51
----
-2958

onlyif mysql # DIV for integer division: 
query I rowsort label-4098
SELECT DISTINCT + 4 DIV - 79 + - 90 * + - 62 col2
----
5580

skipif mysql # not compatible
query I rowsort label-4098
SELECT DISTINCT + 4 / - 79 + - 90 * + - 62 col2
----
5580

query I rowsort
SELECT ( - 86 ) col1
----
-86

query I rowsort
SELECT + 28 * + + 62
----
1736

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT + CASE - - 8 WHEN + 97 + 13 + - + COUNT( ALL - 55 ) THEN + 7 - + + ( - 33 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4101
SELECT + CASE - - 8 WHEN + 97 + 13 + - + COUNT ( ALL - 55 ) THEN + 7 - + + ( - 33 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4102
SELECT ( + 17 ) AS col1, MIN( 72 ) AS col1
----
17
72

skipif mysql # not compatible
query II rowsort label-4102
SELECT ( + 17 ) AS col1, MIN ( 72 ) AS col1
----
17
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT + ( - MAX( DISTINCT 56 ) )
----
-56

skipif mysql # not compatible
query I rowsort label-4103
SELECT + ( - MAX ( DISTINCT 56 ) )
----
-56

query I rowsort
SELECT + 92 * - - 92
----
8464

query I rowsort
SELECT + CASE + 2 WHEN 96 + + NULLIF ( + + 40, 89 + + - 89 / 86 + - 53 ) THEN - 78 * 89 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT ALL NULLIF ( - 42, + COUNT( * ) * 78 * 78 ) * + 56 AS col1
----
-2352

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL NULLIF ( - 42, + COUNT ( * ) * 78 * 78 ) * + 56 AS col1
----
-2352

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT + - MAX( DISTINCT - 91 ) + + - 51
----
40

skipif mysql # not compatible
query I rowsort label-4107
SELECT + - MAX ( DISTINCT - 91 ) + + - 51
----
40

query I rowsort
SELECT + + 1 + + ( - 93 ) AS col2
----
-92

query I rowsort
SELECT - + 96 * 24
----
-2304

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT + 69 + + COUNT( * ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-4110
SELECT + 69 + + COUNT ( * ) AS col0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-4111
SELECT - 39 DIV - - 91
----
0

skipif mysql # not compatible
query I rowsort label-4111
SELECT - 39 / - - 91
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4112
SELECT DISTINCT 9 * + + COUNT( * ), 27 + + 1 DIV 21 AS col0, - 39 - + 13 AS col1
----
9
27
-52

skipif mysql # not compatible
query III rowsort label-4112
SELECT DISTINCT 9 * + + COUNT ( * ), 27 + + 1 / 21 AS col0, - 39 - + 13 AS col1
----
9
27
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-4113
SELECT + 97 + - 97 AS col0, - 65 * COUNT( * ) + 91 AS col1
----
0
26

skipif mysql # not compatible
query II rowsort label-4113
SELECT + 97 + - 97 AS col0, - 65 * COUNT ( * ) + 91 AS col1
----
0
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT DISTINCT - 71 * + - COUNT( * ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-4114
SELECT DISTINCT - 71 * + - COUNT ( * ) AS col1
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4115
SELECT - COALESCE ( + 87, ( 88 ) * + SUM( ALL - - 37 ) - + 48 + 61 + - CAST( NULL AS SIGNED ), 59 + + NULLIF ( - + 4, + 52 ) ) + 66 AS col2, + 22 AS col0
----
-21
22

skipif mysql # not compatible
query II rowsort label-4115
SELECT - COALESCE ( + 87, ( 88 ) * + SUM ( ALL - - 37 ) - + 48 + 61 + - CAST ( NULL AS INTEGER ), 59 + + NULLIF ( - + 4, + 52 ) ) + 66 AS col2, + 22 AS col0
----
-21
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT ALL - + 29 + MIN( ALL - 86 )
----
-115

skipif mysql # not compatible
query I rowsort label-4116
SELECT ALL - + 29 + MIN ( ALL - 86 )
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT ALL - NULLIF ( ( COUNT( * ) ), + 63 + - 76 ) * COALESCE ( - 91, - - ( - + 90 ) - + 79 )
----
91

skipif mysql # not compatible
query I rowsort label-4117
SELECT ALL - NULLIF ( ( COUNT ( * ) ), + 63 + - 76 ) * COALESCE ( - 91, - - ( - + 90 ) - + 79 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT ALL 93 + 37 * + 51 * 84 + + - COUNT( * )
----
158600

skipif mysql # not compatible
query I rowsort label-4118
SELECT ALL 93 + 37 * + 51 * 84 + + - COUNT ( * )
----
158600

onlyif mysql # DIV for integer division: 
query I rowsort label-4119
SELECT - - 69 - - 52 - + + 32 * + 92 - - 80 + ( + 20 ) DIV 18
----
-2742

skipif mysql # not compatible
query I rowsort label-4119
SELECT - - 69 - - 52 - + + 32 * + 92 - - 80 + ( + 20 ) / 18
----
-2742

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4120
SELECT - CAST( + MIN( ALL 24 ) AS SIGNED )
----
-24

skipif mysql # not compatible
query I rowsort label-4120
SELECT - CAST ( + MIN ( ALL 24 ) AS INTEGER )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT + MAX( DISTINCT 15 ) * SUM( + 15 ) AS col2
----
225

skipif mysql # not compatible
query I rowsort label-4121
SELECT + MAX ( DISTINCT 15 ) * SUM ( + 15 ) AS col2
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT - 77 + - - 27 + - COUNT( - 65 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-4122
SELECT - 77 + - - 27 + - COUNT ( - 65 ) AS col0
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-4123
SELECT - COUNT( * ), ( + 43 ) AS col1
----
-1
43

skipif mysql # not compatible
query II rowsort label-4123
SELECT - COUNT ( * ), ( + 43 ) AS col1
----
-1
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT 11 + - 25 * - - 30 + + + MAX( ALL - + ( 16 ) ) + - - 24 - 80 AS col1
----
-811

skipif mysql # not compatible
query I rowsort label-4124
SELECT 11 + - 25 * - - 30 + + + MAX ( ALL - + ( 16 ) ) + - - 24 - 80 AS col1
----
-811

query II rowsort
SELECT DISTINCT 2 AS col0, + 93
----
2
93

query I rowsort
SELECT ALL - 2 + + - 6
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4127
SELECT DISTINCT + ( + 57 ) DIV - 35 - - 45 * COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-4127
SELECT DISTINCT + ( + 57 ) / - 35 - - 45 * COUNT ( * )
----
44

query II rowsort
SELECT ALL - 72, - 17 col1
----
-72
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4129
SELECT ALL + 3 + + ( 61 ) + CAST( - + 64 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4129
SELECT ALL + 3 + + ( 61 ) + CAST ( - + 64 AS INTEGER )
----
0

query I rowsort
SELECT ALL + 30 * + 92
----
2760

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT 56 + + COUNT( * ) + - 19
----
38

skipif mysql # not compatible
query I rowsort label-4131
SELECT 56 + + COUNT ( * ) + - 19
----
38

query I rowsort
SELECT DISTINCT - 58 - 82
----
-140

query I rowsort
SELECT ALL - CASE + 28 WHEN 10 + 90 - - + 51 THEN 22 END
----
NULL

query I rowsort
SELECT 16 + + CASE 53 WHEN 18 - - - 0 THEN + AVG ( 71 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT DISTINCT - + NULLIF ( - 65, + COUNT( * ) ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-4135
SELECT DISTINCT - + NULLIF ( - 65, + COUNT ( * ) ) AS col1
----
65

query II rowsort
SELECT + 6, + 76 col0
----
6
76

query I rowsort
SELECT ALL - + 48 col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT + ( 47 ) * + - MAX( DISTINCT + 1 ) * 32 + 45 + + 44 AS col0
----
-1415

skipif mysql # not compatible
query I rowsort label-4138
SELECT + ( 47 ) * + - MAX ( DISTINCT + 1 ) * 32 + 45 + + 44 AS col0
----
-1415

query I rowsort
SELECT 85 + + 15
----
100

query I rowsort
SELECT ALL 71 * + 91
----
6461

onlyif mysql # DIV for integer division: 
query I rowsort label-4141
SELECT DISTINCT - COALESCE ( 21, + - AVG ( ALL NULLIF ( + 47, - 88 ) ) DIV + + 84 * - 78, - + 8 ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-4141
SELECT DISTINCT - COALESCE ( 21, + - AVG ( ALL NULLIF ( + 47, - 88 ) ) / + + 84 * - 78, - + 8 ) AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT ALL 98 + - 83 * - COUNT( * ) * 61 + - 77 AS col2
----
5084

skipif mysql # not compatible
query I rowsort label-4142
SELECT ALL 98 + - 83 * - COUNT ( * ) * 61 + - 77 AS col2
----
5084

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4143
SELECT 65 * - CAST( NULL AS SIGNED ) + + + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-4143
SELECT 65 * - CAST ( NULL AS INTEGER ) + + + 62
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4144
SELECT ALL + 34 * + - ( COUNT( * ) ) col0, 68
----
-34
68

skipif mysql # not compatible
query II rowsort label-4144
SELECT ALL + 34 * + - ( COUNT ( * ) ) col0, 68
----
-34
68

query I rowsort
SELECT DISTINCT ( 94 ) * - 59 * - + 70 AS col2
----
388220

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT SUM( + + 13 )
----
13

skipif mysql # not compatible
query I rowsort label-4146
SELECT SUM ( + + 13 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT ALL + COUNT( * ) + - 72 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL + COUNT ( * ) + - 72 AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT DISTINCT ( + 23 ) + COUNT( * ) * + - 34 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-4148
SELECT DISTINCT ( + 23 ) + COUNT ( * ) * + - 34 AS col2
----
-11

query II rowsort
SELECT DISTINCT 34 AS col2, + 4 AS col1
----
34
4

query I rowsort
SELECT 41 * - 37 AS col2
----
-1517

query II rowsort
SELECT 6, + 37 AS col2
----
6
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT ALL SUM( ALL - 26 ) * + 14 col0
----
-364

skipif mysql # not compatible
query I rowsort label-4152
SELECT ALL SUM ( ALL - 26 ) * + 14 col0
----
-364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4153
SELECT ALL CAST( NULL AS SIGNED ) + 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4153
SELECT ALL CAST ( NULL AS INTEGER ) + 2 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4154
SELECT CAST( NULL AS SIGNED ) / 23 * + + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-4154
SELECT CAST ( NULL AS INTEGER ) / 23 * + + 95
----
NULL

query I rowsort
SELECT ALL NULLIF ( 78, + 12 + - + 26 ) + + 35
----
113

query II rowsort
SELECT DISTINCT 99 AS col0, 51 AS col0
----
99
51

query I rowsort
SELECT DISTINCT 34 - - ( - 15 ) AS col2
----
19

query I rowsort
SELECT ALL - 71 - + 5
----
-76

query I rowsort
SELECT ( + ( - 11 ) ) * - + 31
----
341

onlyif mysql # aggregate syntax: 
query II rowsort label-4160
SELECT 81 * - 98 * - 92 * + - ( MAX( - ( + + 72 ) ) ) AS col0, - 89 AS col0
----
52581312
-89

skipif mysql # not compatible
query II rowsort label-4160
SELECT 81 * - 98 * - 92 * + - ( MAX ( - ( + + 72 ) ) ) AS col0, - 89 AS col0
----
52581312
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-4161
SELECT ALL + 99 DIV - - 90 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL + 99 / - - 90 AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4162
SELECT DISTINCT - 88 AS col0, + COUNT( * )
----
-88
1

skipif mysql # not compatible
query II rowsort label-4162
SELECT DISTINCT - 88 AS col0, + COUNT ( * )
----
-88
1

query II rowsort
SELECT ALL - 91, - ( + - 24 ) - + 95 AS col0
----
-91
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-4164
SELECT DISTINCT - COUNT( + + 4 ), 78 AS col1
----
-1
78

skipif mysql # not compatible
query II rowsort label-4164
SELECT DISTINCT - COUNT ( + + 4 ), 78 AS col1
----
-1
78

query I rowsort
SELECT ALL + 72 * - - 95
----
6840

onlyif mysql # DIV for integer division: 
query I rowsort label-4166
SELECT ALL + 99 DIV - 59 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4166
SELECT ALL + 99 / - 59 AS col0
----
-1

query I rowsort
SELECT 80 + - + 9 col1
----
71

query II rowsort
SELECT + - 23 AS col2, - 70 AS col2
----
-23
-70

query I rowsort
SELECT 10 * 43 col1
----
430

query I rowsort
SELECT 54 * - - 3
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT ( - 38 ) - COUNT( DISTINCT + + 20 ) + 25 + 21 - 77
----
-70

skipif mysql # not compatible
query I rowsort label-4171
SELECT ( - 38 ) - COUNT ( DISTINCT + + 20 ) + 25 + 21 - 77
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-4172
SELECT + COUNT( * ) AS col0, 31 col0
----
1
31

skipif mysql # not compatible
query II rowsort label-4172
SELECT + COUNT ( * ) AS col0, 31 col0
----
1
31

query II rowsort
SELECT + 36, + 29 col0
----
36
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4174
SELECT - 12 DIV + NULLIF ( - - 16, + COUNT( * ) ) * 10 * 73 * COUNT( DISTINCT - - 68 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-4174
SELECT - 12 / + NULLIF ( - - 16, + COUNT ( * ) ) * 10 * 73 * COUNT ( DISTINCT - - 68 ) col2
----
0

query I rowsort
SELECT ALL - + ( + 33 ) + 71
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4176
SELECT COALESCE ( 18, + + CAST( + 8 AS SIGNED ) ) * ( + - 51 ) AS col1
----
-918

skipif mysql # not compatible
query I rowsort label-4176
SELECT COALESCE ( 18, + + CAST ( + 8 AS INTEGER ) ) * ( + - 51 ) AS col1
----
-918

query I rowsort
SELECT ALL - + 34 + + + 50 AS col0
----
16

query I rowsort
SELECT ALL - 82 + + 5 + 68
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-4179
SELECT DISTINCT - - COUNT( * ) AS col1, - CASE 43 WHEN + 52 THEN + 34 / - ( - - 74 ) WHEN 87 THEN - - NULLIF ( - COUNT( * ), - - 51 ) * + 29 * - 41 + 26 WHEN + 35 THEN + - 79 * - + 6 END
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4179
SELECT DISTINCT - - COUNT ( * ) AS col1, - CASE 43 WHEN + 52 THEN + 34 / - ( - - 74 ) WHEN 87 THEN - - NULLIF ( - COUNT ( * ), - - 51 ) * + 29 * - 41 + 26 WHEN + 35 THEN + - 79 * - + 6 END
----
1
NULL

query I rowsort
SELECT ALL - + 58 + - 0 col0
----
-58

query I rowsort
SELECT ALL 31 + + + 63 AS col1
----
94

query I rowsort
SELECT 2 * + 54 * - 26 AS col1
----
-2808

query I rowsort
SELECT ALL + - 46 + + 66 + + 70
----
90

query II rowsort
SELECT - - 49, + 26 AS col2
----
49
26

query II rowsort
SELECT - + 36 AS col2, 72
----
-36
72

query II rowsort
SELECT 19, + 86 col1
----
19
86

onlyif mysql # aggregate syntax: 
query II rowsort label-4187
SELECT COUNT( * ) AS col2, - 77 AS col1
----
1
-77

skipif mysql # not compatible
query II rowsort label-4187
SELECT COUNT ( * ) AS col2, - 77 AS col1
----
1
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT + SUM( DISTINCT 8 ) * 66
----
528

skipif mysql # not compatible
query I rowsort label-4188
SELECT + SUM ( DISTINCT 8 ) * 66
----
528

query II rowsort
SELECT - 42 + - ( 46 ), - 54 AS col0
----
-88
-54

query I rowsort
SELECT ALL 29 - + 80
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT + COUNT( * ) * - + 58 col0
----
-58

skipif mysql # not compatible
query I rowsort label-4191
SELECT + COUNT ( * ) * - + 58 col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT - 99 * - - COUNT( ALL + 48 ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-4192
SELECT - 99 * - - COUNT ( ALL + 48 ) AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT - MAX( ALL - 21 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-4193
SELECT - MAX ( ALL - 21 ) AS col0
----
21

query II rowsort
SELECT ALL 22 * 2 AS col0, 89
----
44
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT + COUNT( * ) + 78 * 92 + - 86
----
7091

skipif mysql # not compatible
query I rowsort label-4195
SELECT + COUNT ( * ) + 78 * 92 + - 86
----
7091

query I rowsort
SELECT DISTINCT 92 * - 95 * - 98
----
856520

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT DISTINCT + 27 * - - COUNT( ALL + 47 )
----
27

skipif mysql # not compatible
query I rowsort label-4197
SELECT DISTINCT + 27 * - - COUNT ( ALL + 47 )
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4198
SELECT + - AVG ( ALL - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4198
SELECT + - AVG ( ALL - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4199
SELECT - 32 * + 16 + - 71 + - + 74 DIV 56 + - - 73 + - 85 * + 17 * - NULLIF ( 59, + 12 ) AS col2
----
84744

skipif mysql # not compatible
query I rowsort label-4199
SELECT - 32 * + 16 + - 71 + - + 74 / 56 + - - 73 + - 85 * + 17 * - NULLIF ( 59, + 12 ) AS col2
----
84744

query I rowsort
SELECT - + ( + - 50 ) * - 25 AS col0
----
-1250

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT - SUM( ( + COALESCE ( - COALESCE ( 21, 82 ), + 0 + 72 * - 67 * 18 ) ) ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-4201
SELECT - SUM ( ( + COALESCE ( - COALESCE ( 21, 82 ), + 0 + 72 * - 67 * 18 ) ) ) AS col0
----
21

query II rowsort
SELECT + - 97 + 20 AS col0, 33 + COALESCE ( ( + 35 ), + - 53 ) col2
----
-77
68

query I rowsort
SELECT DISTINCT - COALESCE ( + ( + - 88 ), + ( - + 26 ) + - - 81 * + 69 * 65 ) * 34 + - 18 + - 69 * 90 * - 50 * + 22 AS col2
----
6833974

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT ALL - 69 * 39 * MIN( 26 ) + 82 * - - ( + 91 )
----
-62504

skipif mysql # not compatible
query I rowsort label-4204
SELECT ALL - 69 * 39 * MIN ( 26 ) + 82 * - - ( + 91 )
----
-62504

query I rowsort
SELECT DISTINCT - ( 72 ) * 52 * + 92 AS col2
----
-344448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4206
SELECT DISTINCT - NULLIF ( CAST( NULL AS SIGNED ), CASE + ( - 36 ) WHEN - 18 THEN + + 23 WHEN 94 / + CAST( - 81 AS DECIMAL ) THEN - 82 ELSE NULL END ) * - 77 + - - NULLIF ( - 87, + CASE + 32 WHEN - - ( + - 94 ) THEN NULL WHEN + 58 THEN - - 96 * - 37 ELSE NULL END / 22 + - COALESCE ( - COUNT( * ) + - 43, + COUNT( * ) * - 66 + - CASE 64 WHEN 35 + - 63 THEN 16 WHEN 64 THEN NULL ELSE + 23 END * 32 ) ) * COUNT( + 27 * + 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4206
SELECT DISTINCT - NULLIF ( CAST ( NULL AS INTEGER ), CASE + ( - 36 ) WHEN - 18 THEN + + 23 WHEN 94 / + CAST ( - 81 AS REAL ) THEN - 82 ELSE NULL END ) * - 77 + - - NULLIF ( - 87, + CASE + 32 WHEN - - ( + - 94 ) THEN NULL WHEN + 58 THEN - - 96 * - 37 ELSE NULL END / 22 + - COALESCE ( - COUNT ( * ) + - 43, + COUNT ( * ) * - 66 + - CASE 64 WHEN 35 + - 63 THEN 16 WHEN 64 THEN NULL ELSE + 23 END * 32 ) ) * COUNT ( + 27 * + 32 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT DISTINCT - - 81 * SUM( 34 ) * - - COUNT( ALL - 95 ) + - + 69 AS col1
----
2685

skipif mysql # not compatible
query I rowsort label-4207
SELECT DISTINCT - - 81 * SUM ( 34 ) * - - COUNT ( ALL - 95 ) + - + 69 AS col1
----
2685

query I rowsort
SELECT + - ( + + NULLIF ( + ( + - 42 ), 27 ) )
----
42

query I rowsort
SELECT ALL + - 72 * + 64 + - 30 + - - 21 + 73 AS col1
----
-4544

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4210
SELECT - - 96 DIV 58 * - + 21 AS col0, + SUM( ALL - + 30 )
----
-21
-30

skipif mysql # not compatible
query II rowsort label-4210
SELECT - - 96 / 58 * - + 21 AS col0, + SUM ( ALL - + 30 )
----
-21
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4211
SELECT ALL COALESCE ( CAST( NULL AS SIGNED ), + 4, - + COUNT( 50 ), + 85 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-4211
SELECT ALL COALESCE ( CAST ( NULL AS INTEGER ), + 4, - + COUNT ( 50 ), + 85 ) AS col1
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4212
SELECT ALL COALESCE ( CAST( NULL AS SIGNED ), - 76 ), + CASE - 86 WHEN + 33 THEN - ( - 44 ) END + 38 * - 91 AS col2
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-4212
SELECT ALL COALESCE ( CAST ( NULL AS INTEGER ), - 76 ), + CASE - 86 WHEN + 33 THEN - ( - 44 ) END + 38 * - 91 AS col2
----
-76
NULL

query I rowsort
SELECT - 36 * 48 * - - 34 AS col2
----
-58752

query I rowsort
SELECT DISTINCT - CASE - 93 WHEN + 39 / + 83 - - - 72 THEN + 33 * 49 * - 6 ELSE NULL END - + 49 / 80 AS col2
----
NULL

query I rowsort
SELECT ALL ( - - 49 ) col1
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4216
SELECT - 99, COUNT( * ) + + MAX( ALL - + 36 ) + - SUM( DISTINCT 34 ) - MAX( DISTINCT ( 7 ) ) DIV 66 + + - 25 * - 81 DIV - COUNT( ALL - 20 ) AS col1
----
-99
-2094

skipif mysql # not compatible
query II rowsort label-4216
SELECT - 99, COUNT ( * ) + + MAX ( ALL - + 36 ) + - SUM ( DISTINCT 34 ) - MAX ( DISTINCT ( 7 ) ) / 66 + + - 25 * - 81 / - COUNT ( ALL - 20 ) AS col1
----
-99
-2094

query I rowsort
SELECT + 82 * - 82 AS col2
----
-6724

query I rowsort
SELECT - 52 - - 94 AS col2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4219
SELECT ALL CAST( + + 61 AS SIGNED )
----
61

skipif mysql # not compatible
query I rowsort label-4219
SELECT ALL CAST ( + + 61 AS INTEGER )
----
61

query II rowsort
SELECT DISTINCT 19, 75 AS col1
----
19
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT DISTINCT COUNT( * ) + - - 82 * + - 84 AS col0
----
-6887

skipif mysql # not compatible
query I rowsort label-4221
SELECT DISTINCT COUNT ( * ) + - - 82 * + - 84 AS col0
----
-6887

query I rowsort
SELECT DISTINCT 39 + - 57
----
-18

query I rowsort
SELECT DISTINCT + 82 + 4
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4224
SELECT + - CAST( - 59 AS SIGNED )
----
59

skipif mysql # not compatible
query I rowsort label-4224
SELECT + - CAST ( - 59 AS INTEGER )
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-4225
SELECT + - 12 DIV - 78 * + + 30
----
0

skipif mysql # not compatible
query I rowsort label-4225
SELECT + - 12 / - 78 * + + 30
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4226
SELECT ALL - 44 DIV + 74 * - 20 * 6 + + 40 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL - 44 / + 74 * - 20 * 6 + + 40 AS col2
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-4227
SELECT DISTINCT + 58 DIV - - 16 + - - 6
----
9

skipif mysql # not compatible
query I rowsort label-4227
SELECT DISTINCT + 58 / - - 16 + - - 6
----
9

query I rowsort
SELECT + + 68 + + - 36 + - 32 * - 55
----
1792

query I rowsort
SELECT ALL 64 * + - 59 AS col0
----
-3776

query II rowsort
SELECT 31 AS col2, 57 * - 18 AS col2
----
31
-1026

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4231
SELECT ALL - + COUNT( * ) DIV - 61 + - 28 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-4231
SELECT ALL - + COUNT ( * ) / - 61 + - 28 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-4232
SELECT 74 AS col2, + NULLIF ( + COALESCE ( + SUM( + 84 ), 6 ), - 63 ) + + + COUNT( * ) AS col0
----
74
85

skipif mysql # not compatible
query II rowsort label-4232
SELECT 74 AS col2, + NULLIF ( + COALESCE ( + SUM ( + 84 ), 6 ), - 63 ) + + + COUNT ( * ) AS col0
----
74
85

onlyif mysql # aggregate syntax: 
query II rowsort label-4233
SELECT DISTINCT - - 48 AS col1, + COUNT( * ) * 98 AS col0
----
48
98

skipif mysql # not compatible
query II rowsort label-4233
SELECT DISTINCT - - 48 AS col1, + COUNT ( * ) * 98 AS col0
----
48
98

query I rowsort
SELECT ALL - 5 - + - 51 col1
----
46

query II rowsort
SELECT 86 AS col1, 1
----
86
1

query I rowsort
SELECT ALL - + ( - 38 )
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-4237
SELECT - COALESCE ( 8, - + COUNT( * ) ) AS col2, 63 + + COALESCE ( + 3, 68 )
----
-8
66

skipif mysql # not compatible
query II rowsort label-4237
SELECT - COALESCE ( 8, - + COUNT ( * ) ) AS col2, 63 + + COALESCE ( + 3, 68 )
----
-8
66

query II rowsort
SELECT + 38 AS col2, 33 AS col0
----
38
33

query II rowsort
SELECT ALL - 68 AS col2, + 72 * + 50 + - 4 * + 54 + + + 73 col0
----
-68
3457

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT DISTINCT 37 - - MAX( ALL + - 25 )
----
12

skipif mysql # not compatible
query I rowsort label-4240
SELECT DISTINCT 37 - - MAX ( ALL + - 25 )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4241
SELECT 40 * - NULLIF ( - COUNT( * ), - + CASE - CASE + CAST( NULL AS SIGNED ) WHEN - 1 THEN - 92 END WHEN + 37 + - 82 THEN - 54 WHEN - + 98 * 2 THEN NULL END * - 8 + + 73 ) * 47 * 36 col1, COUNT( * ) + - 3
----
67680
-2

skipif mysql # not compatible
query II rowsort label-4241
SELECT 40 * - NULLIF ( - COUNT ( * ), - + CASE - CASE + CAST ( NULL AS INTEGER ) WHEN - 1 THEN - 92 END WHEN + 37 + - 82 THEN - 54 WHEN - + 98 * 2 THEN NULL END * - 8 + + 73 ) * 47 * 36 col1, COUNT ( * ) + - 3
----
67680
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT DISTINCT COUNT( * ) * + 19 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-4242
SELECT DISTINCT COUNT ( * ) * + 19 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT ALL - SUM( - 7 )
----
7

skipif mysql # not compatible
query I rowsort label-4243
SELECT ALL - SUM ( - 7 )
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-4244
SELECT - 61 * ( CASE - 40 WHEN - 61 THEN + 43 END ) + - - 46, - COUNT( * ) AS col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-4244
SELECT - 61 * ( CASE - 40 WHEN - 61 THEN + 43 END ) + - - 46, - COUNT ( * ) AS col0
----
NULL
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4245
SELECT ALL - CASE - CAST( NULL AS SIGNED ) WHEN - AVG ( + 48 ) * - + ( - + 79 ) - - 12 + 78 * 34 * 96 THEN + 65 WHEN 80 THEN 67 ELSE NULL END * - CASE 49 WHEN - 46 THEN NULL WHEN - 32 THEN 41 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4245
SELECT ALL - CASE - CAST ( NULL AS INTEGER ) WHEN - AVG ( + 48 ) * - + ( - + 79 ) - - 12 + 78 * 34 * 96 THEN + 65 WHEN 80 THEN 67 ELSE NULL END * - CASE 49 WHEN - 46 THEN NULL WHEN - 32 THEN 41 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT COUNT( * ) + + ( + MAX( + 31 ) ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-4246
SELECT COUNT ( * ) + + ( + MAX ( + 31 ) ) AS col0
----
32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4247
SELECT 72 / - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4247
SELECT 72 / - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT 46 + MAX( DISTINCT + - 95 ) * - 76
----
7266

skipif mysql # not compatible
query I rowsort label-4248
SELECT 46 + MAX ( DISTINCT + - 95 ) * - 76
----
7266

onlyif mysql # DIV for integer division: 
query I rowsort label-4249
SELECT ALL + 40 DIV 36 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4249
SELECT ALL + 40 / 36 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4250
SELECT 62 DIV + 4
----
15

skipif mysql # not compatible
query I rowsort label-4250
SELECT 62 / + 4
----
15

query I rowsort
SELECT 65 + 5
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT ALL + COUNT( * ) + 56 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-4252
SELECT ALL + COUNT ( * ) + 56 AS col2
----
57

query I rowsort
SELECT ALL - 86 + 38 + - 67
----
-115

query I rowsort
SELECT 55 * + - 8 * + + 46 AS col1
----
-20240

query I rowsort
SELECT 90 + + 71
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT DISTINCT - MAX( + 63 ) + + MIN( DISTINCT + 9 )
----
-54

skipif mysql # not compatible
query I rowsort label-4256
SELECT DISTINCT - MAX ( + 63 ) + + MIN ( DISTINCT + 9 )
----
-54

query I rowsort
SELECT 10 + + 41
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-4258
SELECT 39 * + 29 col0, 46 * - 24 * + COUNT( * ) + + COUNT( * ) * + 62 AS col1
----
1131
-1042

skipif mysql # not compatible
query II rowsort label-4258
SELECT 39 * + 29 col0, 46 * - 24 * + COUNT ( * ) + + COUNT ( * ) * + 62 AS col1
----
1131
-1042

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT DISTINCT - ( ( - COUNT( - + CASE + - 81 WHEN - + 27 THEN NULL ELSE - ( 2 ) END ) ) ) + + 52
----
53

skipif mysql # not compatible
query I rowsort label-4259
SELECT DISTINCT - ( ( - COUNT ( - + CASE + - 81 WHEN - + 27 THEN NULL ELSE - ( 2 ) END ) ) ) + + 52
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT ALL MIN( + ( + - 85 ) ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-4260
SELECT ALL MIN ( + ( + - 85 ) ) AS col2
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-4261
SELECT ALL - COUNT( * ) + - 32 AS col0, 10 col2
----
-33
10

skipif mysql # not compatible
query II rowsort label-4261
SELECT ALL - COUNT ( * ) + - 32 AS col0, 10 col2
----
-33
10

query II rowsort
SELECT ALL + 95 + + 59 AS col1, 61
----
154
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4263
SELECT 8 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4263
SELECT 8 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 58 * + - 58 + + 61
----
-3303

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4265
SELECT + + ( CASE + + 90 WHEN + CAST( - COUNT( * ) AS SIGNED ) THEN + NULLIF ( - 41, 79 ) * - MAX( 75 ) * - CAST( NULL AS SIGNED ) ELSE NULL END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4265
SELECT + + ( CASE + + 90 WHEN + CAST ( - COUNT ( * ) AS INTEGER ) THEN + NULLIF ( - 41, 79 ) * - MAX ( 75 ) * - CAST ( NULL AS INTEGER ) ELSE NULL END ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4266
SELECT ALL CAST( NULL AS SIGNED ) / - - 86 col1, 92 * - - 69 AS col0
----
NULL
6348

skipif mysql # not compatible
query II rowsort label-4266
SELECT ALL CAST ( NULL AS INTEGER ) / - - 86 col1, 92 * - - 69 AS col0
----
NULL
6348

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4267
SELECT - 25 DIV + 28, + CAST( NULL AS DECIMAL ) * 50 AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4267
SELECT - 25 / + 28, + CAST ( NULL AS REAL ) * 50 AS col1
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT ALL 78 * 79 + - 60 + - COUNT( * ) * - COUNT( * ) AS col1
----
6103

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL 78 * 79 + - 60 + - COUNT ( * ) * - COUNT ( * ) AS col1
----
6103

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT COUNT( * ) * + - ( + + 74 ) * - 3 + - 77 + - + COUNT( * ) col2
----
144

skipif mysql # not compatible
query I rowsort label-4269
SELECT COUNT ( * ) * + - ( + + 74 ) * - 3 + - 77 + - + COUNT ( * ) col2
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT DISTINCT COUNT( * ) - + 17 * + 57 * 7 + + 58
----
-6724

skipif mysql # not compatible
query I rowsort label-4270
SELECT DISTINCT COUNT ( * ) - + 17 * + 57 * 7 + + 58
----
-6724

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4271
SELECT COALESCE ( + 35, CAST( 61 AS SIGNED ) ) * + 63 col1
----
2205

skipif mysql # not compatible
query I rowsort label-4271
SELECT COALESCE ( + 35, CAST ( 61 AS INTEGER ) ) * + 63 col1
----
2205

query I rowsort
SELECT - + 9 * - 40 + + - 7 AS col0
----
353

query I rowsort
SELECT ALL 77 * 0 AS col0
----
0

query II rowsort
SELECT DISTINCT - 98, 96 AS col2
----
-98
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4275
SELECT ALL - 1 AS col1, SUM( ALL - + 85 )
----
-1
-85

skipif mysql # not compatible
query II rowsort label-4275
SELECT ALL - 1 AS col1, SUM ( ALL - + 85 )
----
-1
-85

query II rowsort
SELECT DISTINCT - 4, 98 AS col1
----
-4
98

onlyif mysql # aggregate syntax: 
query II rowsort label-4277
SELECT COUNT( * ) * + COUNT( DISTINCT + 60 ) + 97 + - - 42 col0, + 9 AS col1
----
140
9

skipif mysql # not compatible
query II rowsort label-4277
SELECT COUNT ( * ) * + COUNT ( DISTINCT + 60 ) + 97 + - - 42 col0, + 9 AS col1
----
140
9

query II rowsort
SELECT DISTINCT - 17 AS col0, 24
----
-17
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT ALL + MAX( ALL 29 ) * COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL + MAX ( ALL 29 ) * COUNT ( * )
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4280
SELECT CASE 52 WHEN + 55 THEN + COALESCE ( 71, 68 ) - + ( + - ( + + 73 ) ) ELSE NULL END * CAST( NULL AS SIGNED ) AS col2, COUNT( * ) * + 4 * 55 AS col2
----
NULL
220

skipif mysql # not compatible
query II rowsort label-4280
SELECT CASE 52 WHEN + 55 THEN + COALESCE ( 71, 68 ) - + ( + - ( + + 73 ) ) ELSE NULL END * CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) * + 4 * 55 AS col2
----
NULL
220

query I rowsort
SELECT DISTINCT + 27 * 23
----
621

query I rowsort
SELECT ALL 63 + + 96 * + 33 * 88 col2
----
278847

query I rowsort
SELECT 91 * + - 93 AS col1
----
-8463

query I rowsort
SELECT ALL - 82 + + + 29 AS col0
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-4285
SELECT 10 DIV 1 * 82
----
820

skipif mysql # not compatible
query I rowsort label-4285
SELECT 10 / 1 * 82
----
820

query I rowsort
SELECT 16 * 85
----
1360

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT ALL MIN( ALL - + 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-4287
SELECT ALL MIN ( ALL - + 40 )
----
-40

query I rowsort
SELECT DISTINCT 62 + 12
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT ALL - COUNT( * ) + + 59 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-4289
SELECT ALL - COUNT ( * ) + + 59 AS col0
----
58

query II rowsort
SELECT - 43 AS col2, - 66
----
-43
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4291
SELECT - COUNT( * ) DIV - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4291
SELECT - COUNT ( * ) / - COUNT ( * ) AS col2
----
1

query I rowsort
SELECT ALL + 46 + + 66 AS col2
----
112

query I rowsort
SELECT ALL - 66 - + - 76
----
10

query II rowsort
SELECT - - 33 AS col1, 77 AS col1
----
33
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT - + MAX( + 10 ) - 44
----
-54

skipif mysql # not compatible
query I rowsort label-4295
SELECT - + MAX ( + 10 ) - 44
----
-54

query I rowsort
SELECT - 52 + + 11 AS col1
----
-41

query I rowsort
SELECT ALL + + 37 - + + 72 * + 1 * - 7
----
541

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT - 96 * 51 * + COUNT( * ) AS col1
----
-4896

skipif mysql # not compatible
query I rowsort label-4298
SELECT - 96 * 51 * + COUNT ( * ) AS col1
----
-4896

query I rowsort
SELECT - 23 + 26 + 69 AS col2
----
72

query I rowsort
SELECT - - 34 * + 99
----
3366

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT + + ( - - COUNT( * ) ) + + 69 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-4301
SELECT + + ( - - COUNT ( * ) ) + + 69 AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT NULLIF ( - 1, + + 22 * + COUNT( * ) * + - ( + 73 ) - + + 95 - - 65 + ( SUM( + - 99 ) ) * - + 23 / + 99 )
----
-1

skipif mysql # not compatible
query I rowsort label-4302
SELECT NULLIF ( - 1, + + 22 * + COUNT ( * ) * + - ( + 73 ) - + + 95 - - 65 + ( SUM ( + - 99 ) ) * - + 23 / + 99 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4303
SELECT ALL + COUNT( * ) AS col2, 17 - + - 80 AS col0
----
1
97

skipif mysql # not compatible
query II rowsort label-4303
SELECT ALL + COUNT ( * ) AS col2, 17 - + - 80 AS col0
----
1
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4304
SELECT - 77 - - NULLIF ( - - COUNT( + CAST( NULL AS SIGNED ) ), + - COUNT( * ) ) * 19 AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-4304
SELECT - 77 - - NULLIF ( - - COUNT ( + CAST ( NULL AS INTEGER ) ), + - COUNT ( * ) ) * 19 AS col2
----
-77

query I rowsort
SELECT + ( - - 81 ) * 60
----
4860

query I rowsort
SELECT DISTINCT 65 * - 89 AS col1
----
-5785

onlyif mysql # DIV for integer division: 
query I rowsort label-4307
SELECT + ( + - 83 ) DIV 66
----
-1

skipif mysql # not compatible
query I rowsort label-4307
SELECT + ( + - 83 ) / 66
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT ALL 2 * - - 19 * - + MIN( - ( + 20 ) ) + + 19 * - + COUNT( * ) * - 18 * - + 35 * + - 77
----
922450

skipif mysql # not compatible
query I rowsort label-4308
SELECT ALL 2 * - - 19 * - + MIN ( - ( + 20 ) ) + + 19 * - + COUNT ( * ) * - 18 * - + 35 * + - 77
----
922450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4309
SELECT + SUM( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4309
SELECT + SUM ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT DISTINCT - 40 * COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-4310
SELECT DISTINCT - 40 * COUNT ( * )
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4311
SELECT ALL CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - 72 - + 7 * MAX( ALL 2 ) + - MAX( - 99 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - 72 - + 7 * MAX ( ALL 2 ) + - MAX ( - 99 ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4312
SELECT + CASE - 87 WHEN ( - + COALESCE ( - COUNT( * ), - 80 / 30 + - - COUNT( * ) * 0 + 88 ) ) THEN + 74 / 71 WHEN 10 / - 7 + + 86 * - CAST( COUNT( * ) AS SIGNED ) * - ( 71 ) + - CASE - 56 WHEN CAST( + 78 AS SIGNED ) + + 22 THEN 79 WHEN + + 77 THEN - 44 + ( COUNT( * ) ) END + - COUNT( 31 - 79 ) THEN NULL END - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-4312
SELECT + CASE - 87 WHEN ( - + COALESCE ( - COUNT ( * ), - 80 / 30 + - - COUNT ( * ) * 0 + 88 ) ) THEN + 74 / 71 WHEN 10 / - 7 + + 86 * - CAST ( COUNT ( * ) AS INTEGER ) * - ( 71 ) + - CASE - 56 WHEN CAST ( + 78 AS INTEGER ) + + 22 THEN 79 WHEN + + 77 THEN - 44 + ( COUNT ( * ) ) END + - COUNT ( 31 - 79 ) THEN NULL END - 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT + COALESCE ( - - 48, + COUNT( * ) * - NULLIF ( + 57, MAX( ALL 23 ) ) )
----
48

skipif mysql # not compatible
query I rowsort label-4313
SELECT + COALESCE ( - - 48, + COUNT ( * ) * - NULLIF ( + 57, MAX ( ALL 23 ) ) )
----
48

query II rowsort
SELECT ALL + 20 AS col2, + 90 * 10
----
20
900

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT ALL 81 + - COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL 81 + - COUNT ( * )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT + COUNT( * ) + + 67 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-4316
SELECT + COUNT ( * ) + + 67 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT + 51 * - - COUNT( * ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-4317
SELECT + 51 * - - COUNT ( * ) AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT ALL 57 + + SUM( ALL + - 48 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-4318
SELECT ALL 57 + + SUM ( ALL + - 48 ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT SUM( DISTINCT + 22 )
----
22

skipif mysql # not compatible
query I rowsort label-4319
SELECT SUM ( DISTINCT + 22 )
----
22

query I rowsort
SELECT + 39 + - 21
----
18

query II rowsort
SELECT ALL 73 AS col1, 46 + 22 AS col0
----
73
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT + 92 + 60 + + 75 - - + 50 * - + COUNT( * )
----
177

skipif mysql # not compatible
query I rowsort label-4322
SELECT + 92 + 60 + + 75 - - + 50 * - + COUNT ( * )
----
177

query I rowsort
SELECT ALL - 70 - 15 * + - 84 * + 94 + 8 AS col1
----
118378

query II rowsort
SELECT ALL 60, 71 - - 73 AS col1
----
60
144

onlyif mysql # DIV for integer division: 
query I rowsort label-4325
SELECT ALL + 0 DIV - + 94 * - 8
----
0

skipif mysql # not compatible
query I rowsort label-4325
SELECT ALL + 0 / - + 94 * - 8
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4326
SELECT + 13 + 21 DIV 68 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-4326
SELECT + 13 + 21 / 68 AS col1
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-4327
SELECT - - COUNT( * ) AS col2, - 25 AS col0
----
1
-25

skipif mysql # not compatible
query II rowsort label-4327
SELECT - - COUNT ( * ) AS col2, - 25 AS col0
----
1
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT - 40 + - + MIN( DISTINCT + 7 ) + 15 * - 93 AS col1
----
-1442

skipif mysql # not compatible
query I rowsort label-4328
SELECT - 40 + - + MIN ( DISTINCT + 7 ) + 15 * - 93 AS col1
----
-1442

onlyif mysql # aggregate syntax: 
query II rowsort label-4329
SELECT ALL 10 - - CASE - - 65 WHEN - 70 * + 65 THEN NULL WHEN + + 76 * - 27 THEN COUNT( * ) ELSE + 84 END * - - 36 + - + 65 * 60 AS col0, 73 * - COUNT( * )
----
-866
-73

skipif mysql # not compatible
query II rowsort label-4329
SELECT ALL 10 - - CASE - - 65 WHEN - 70 * + 65 THEN NULL WHEN + + 76 * - 27 THEN COUNT ( * ) ELSE + 84 END * - - 36 + - + 65 * 60 AS col0, 73 * - COUNT ( * )
----
-866
-73

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4330
SELECT + - CAST( NULL AS DECIMAL ) * + 40 + + MIN( 10 ) * 43 * 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4330
SELECT + - CAST ( NULL AS REAL ) * + 40 + + MIN ( 10 ) * 43 * 3 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4331
SELECT ALL CAST( NULL AS SIGNED ) AS col2, - 99 + + 17 + + COALESCE ( - COUNT( * ), 26 + + 74, - 16 DIV - 53 DIV + NULLIF ( + - CAST( NULL AS SIGNED ), - + 81 ) ) col0
----
NULL
-83

skipif mysql # not compatible
query II rowsort label-4331
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, - 99 + + 17 + + COALESCE ( - COUNT ( * ), 26 + + 74, - 16 / - 53 / + NULLIF ( + - CAST ( NULL AS INTEGER ), - + 81 ) ) col0
----
NULL
-83

query I rowsort
SELECT - 16 * + - ( - + 90 ) + + 84 + 71
----
-1285

onlyif mysql # aggregate syntax: 
query II rowsort label-4333
SELECT + 96 * COUNT( * ), + 99 AS col0
----
96
99

skipif mysql # not compatible
query II rowsort label-4333
SELECT + 96 * COUNT ( * ), + 99 AS col0
----
96
99

query I rowsort
SELECT - - ( + - 40 ) * ( - + 19 )
----
760

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT + MAX( ALL 74 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-4335
SELECT + MAX ( ALL 74 ) AS col2
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-4336
SELECT ALL 80 DIV 81 + + 83
----
83

skipif mysql # not compatible
query I rowsort label-4336
SELECT ALL 80 / 81 + + 83
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-4337
SELECT DISTINCT + 25 DIV + 84 + + 57 * 49 AS col1
----
2793

skipif mysql # not compatible
query I rowsort label-4337
SELECT DISTINCT + 25 / + 84 + + 57 * 49 AS col1
----
2793

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT ALL 86 / - CASE + 31 WHEN + + 18 THEN + - 46 WHEN + 72 + MIN( ALL + - NULLIF ( 52, - 44 * + 97 * + 63 + + - 66 ) ) * 35 THEN + - NULLIF ( + 99, MAX( - 42 ) * + - 59 + - COUNT( * ) * 57 ) * 31 - NULLIF ( 38, - 79 ) * - + 33 + - ( 54 ) ELSE NULL END + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL 86 / - CASE + 31 WHEN + + 18 THEN + - 46 WHEN + 72 + MIN ( ALL + - NULLIF ( 52, - 44 * + 97 * + 63 + + - 66 ) ) * 35 THEN + - NULLIF ( + 99, MAX ( - 42 ) * + - 59 + - COUNT ( * ) * 57 ) * 31 - NULLIF ( 38, - 79 ) * - + 33 + - ( 54 ) ELSE NULL END + 86
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4339
SELECT ALL - 75 / - 58 + + CASE - 74 WHEN - - 61 THEN + COUNT( * ) + - 24 END, + 25 * + 59 * - + ( + 93 ) * - 21 AS col1
----
NULL
2880675

skipif mysql # not compatible
query II rowsort label-4339
SELECT ALL - 75 / - 58 + + CASE - 74 WHEN - - 61 THEN + COUNT ( * ) + - 24 END, + 25 * + 59 * - + ( + 93 ) * - 21 AS col1
----
NULL
2880675

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4340
SELECT DISTINCT 23 / + + 68 * + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) + + 76 col1, 19 AS col2
----
NULL
19

skipif mysql # not compatible
query II rowsort label-4340
SELECT DISTINCT 23 / + + 68 * + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + 76 col1, 19 AS col2
----
NULL
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4341
SELECT ALL 29 * ( + - NULLIF ( + - ( 9 ), - + 24 * - 41 ) ) + + 10 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4341
SELECT ALL 29 * ( + - NULLIF ( + - ( 9 ), - + 24 * - 41 ) ) + + 10 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL COALESCE ( - 18, 76 ) * 0 + - 34 + - 51 + - 73 AS col0
----
-158

onlyif mysql # aggregate syntax: 
query II rowsort label-4343
SELECT ( 48 ) AS col2, COALESCE ( - ( - + NULLIF ( + 56, - - 23 / + 35 ) ), 15 ) * - ( + MIN( DISTINCT + 72 ) ) AS col1
----
48
-4032

skipif mysql # not compatible
query II rowsort label-4343
SELECT ( 48 ) AS col2, COALESCE ( - ( - + NULLIF ( + 56, - - 23 / + 35 ) ), 15 ) * - ( + MIN ( DISTINCT + 72 ) ) AS col1
----
48
-4032

query I rowsort
SELECT - 63 * + 89 AS col2
----
-5607

query II rowsort
SELECT + 69 * 44 AS col1, 71
----
3036
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4346
SELECT DISTINCT - COUNT( * ) DIV 24
----
0

skipif mysql # not compatible
query I rowsort label-4346
SELECT DISTINCT - COUNT ( * ) / 24
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT + COUNT( - 35 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4347
SELECT + COUNT ( - 35 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT ALL + NULLIF ( - 53, - COUNT( * ) * - 4 )
----
-53

skipif mysql # not compatible
query I rowsort label-4348
SELECT ALL + NULLIF ( - 53, - COUNT ( * ) * - 4 )
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-4349
SELECT ALL 27 * - 31, + 82 * + + COUNT( * ) AS col2
----
-837
82

skipif mysql # not compatible
query II rowsort label-4349
SELECT ALL 27 * - 31, + 82 * + + COUNT ( * ) AS col2
----
-837
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4350
SELECT - 33 * - CASE CAST( COUNT( * ) AS SIGNED ) WHEN 29 * 42 THEN - - 68 WHEN + 22 * + 19 + - 33 THEN + COALESCE ( - - 43, - 31 ) / - - 1 * 79 END * - + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-4350
SELECT - 33 * - CASE CAST ( COUNT ( * ) AS INTEGER ) WHEN 29 * 42 THEN - - 68 WHEN + 22 * + 19 + - 33 THEN + COALESCE ( - - 43, - 31 ) / - - 1 * 79 END * - + 50
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4351
SELECT DISTINCT - 10 DIV 66 col2, 88
----
0
88

skipif mysql # not compatible
query II rowsort label-4351
SELECT DISTINCT - 10 / 66 col2, 88
----
0
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT ALL - MAX( 73 ) * COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-4352
SELECT ALL - MAX ( 73 ) * COUNT ( * )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT DISTINCT 90 * - + 50 - - NULLIF ( - COUNT( * ), 15 ) + 81 * + + 12 * - + 7 * + 92
----
-630469

skipif mysql # not compatible
query I rowsort label-4353
SELECT DISTINCT 90 * - + 50 - - NULLIF ( - COUNT ( * ), 15 ) + 81 * + + 12 * - + 7 * + 92
----
-630469

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4354
SELECT CASE - + 86 WHEN + 35 THEN NULL WHEN CASE - COUNT( * ) WHEN - 25 + - 66 * + + CAST( - COUNT( * ) AS SIGNED ) / 49 THEN NULL ELSE 64 * - - COUNT( * ) END * + 9 THEN NULL WHEN + + CAST( + + 33 AS SIGNED ) / - - 46 THEN 60 ELSE - + COUNT( * ) END * 45 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-4354
SELECT CASE - + 86 WHEN + 35 THEN NULL WHEN CASE - COUNT ( * ) WHEN - 25 + - 66 * + + CAST ( - COUNT ( * ) AS INTEGER ) / 49 THEN NULL ELSE 64 * - - COUNT ( * ) END * + 9 THEN NULL WHEN + + CAST ( + + 33 AS INTEGER ) / - - 46 THEN 60 ELSE - + COUNT ( * ) END * 45 AS col0
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-4355
SELECT + COUNT( - 37 ) AS col1, - 13 AS col2
----
1
-13

skipif mysql # not compatible
query II rowsort label-4355
SELECT + COUNT ( - 37 ) AS col1, - 13 AS col2
----
1
-13

query I rowsort
SELECT ALL - ( 32 ) - - - 34
----
-66

query I rowsort
SELECT + 51 * - ( ( 27 ) )
----
-1377

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT MIN( ALL + 93 )
----
93

skipif mysql # not compatible
query I rowsort label-4358
SELECT MIN ( ALL + 93 )
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-4359
SELECT - - ( - 82 ), - 75 * - + MIN( - 5 ) / + 39 + CASE + 66 WHEN COUNT( * ) * + - COUNT( * ) + 94 THEN NULL WHEN - - 37 * 4 THEN 78 - - + CASE - 50 WHEN - 4 THEN - - 5 * - 23 END / - + 23 WHEN - + 75 THEN + + NULLIF ( 87, COALESCE ( - 90, - + ( - COUNT( * ) ) ) ) / - 83 ELSE NULL END AS col1
----
-82
NULL

skipif mysql # not compatible
query II rowsort label-4359
SELECT - - ( - 82 ), - 75 * - + MIN ( - 5 ) / + 39 + CASE + 66 WHEN COUNT ( * ) * + - COUNT ( * ) + 94 THEN NULL WHEN - - 37 * 4 THEN 78 - - + CASE - 50 WHEN - 4 THEN - - 5 * - 23 END / - + 23 WHEN - + 75 THEN + + NULLIF ( 87, COALESCE ( - 90, - + ( - COUNT ( * ) ) ) ) / - 83 ELSE NULL END AS col1
----
-82
NULL

query I rowsort
SELECT ALL + 78 * - - 46
----
3588

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT 40 * + ( + 53 ) * + - CASE - - 53 WHEN + COUNT( * ) + - 86 + 34 * + - COUNT( * ) * - MIN( DISTINCT + + 85 ) THEN NULL ELSE - + ( + + 82 ) * 61 * + 28 END AS col1
----
296918720

skipif mysql # not compatible
query I rowsort label-4361
SELECT 40 * + ( + 53 ) * + - CASE - - 53 WHEN + COUNT ( * ) + - 86 + 34 * + - COUNT ( * ) * - MIN ( DISTINCT + + 85 ) THEN NULL ELSE - + ( + + 82 ) * 61 * + 28 END AS col1
----
296918720

query I rowsort
SELECT DISTINCT + NULLIF ( - + 87, - 18 )
----
-87

query I rowsort
SELECT - 58 + + 92 * 8 AS col2
----
678

query I rowsort
SELECT ( + - 34 ) AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT COUNT( * ) + 78
----
79

skipif mysql # not compatible
query I rowsort label-4365
SELECT COUNT ( * ) + 78
----
79

query I rowsort
SELECT ALL + 62 * - 42 * + + 20
----
-52080

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4367
SELECT ( - 98 ) DIV + CAST( + - 66 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-4367
SELECT ( - 98 ) / + CAST ( + - 66 AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT ALL 33 + - 7 * ( COUNT( * ) ) - - 22
----
48

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL 33 + - 7 * ( COUNT ( * ) ) - - 22
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4369
SELECT - 94 / + 77 * - MAX( ALL + CAST( NULL AS SIGNED ) ) + - 2 * + AVG ( - 99 ) AS col0, - 92 AS col1
----
NULL
-92

skipif mysql # not compatible
query II rowsort label-4369
SELECT - 94 / + 77 * - MAX ( ALL + CAST ( NULL AS INTEGER ) ) + - 2 * + AVG ( - 99 ) AS col0, - 92 AS col1
----
NULL
-92

query I rowsort
SELECT ALL CASE + 69 WHEN - 0 THEN 84 ELSE + - 8 END * 24 AS col2
----
-192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4371
SELECT 56 DIV ( + COUNT( * ) ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-4371
SELECT 56 / ( + COUNT ( * ) ) AS col1
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4372
SELECT CAST( 52 AS SIGNED ) + 89
----
141

skipif mysql # not compatible
query I rowsort label-4372
SELECT CAST ( 52 AS INTEGER ) + 89
----
141

query I rowsort
SELECT ALL - NULLIF ( 1, + NULLIF ( + + 41, + 31 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT ALL 12 + - 50 * - COUNT( * ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-4374
SELECT ALL 12 + - 50 * - COUNT ( * ) AS col0
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4375
SELECT ALL - MAX( - 38 ) DIV + + ( COUNT( 57 ) ) col1
----
38

skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL - MAX ( - 38 ) / + + ( COUNT ( 57 ) ) col1
----
38

query II rowsort
SELECT 4, + 57 AS col0
----
4
57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4377
SELECT DISTINCT 47 + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4377
SELECT DISTINCT 47 + + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4378
SELECT DISTINCT 5 DIV COUNT( DISTINCT 78 ) AS col2, ( + + 92 ) AS col1
----
5
92

skipif mysql # not compatible
query II rowsort label-4378
SELECT DISTINCT 5 / COUNT ( DISTINCT 78 ) AS col2, ( + + 92 ) AS col1
----
5
92

onlyif mysql # aggregate syntax: 
query II rowsort label-4379
SELECT 82 AS col0, 46 + COUNT( * )
----
82
47

skipif mysql # not compatible
query II rowsort label-4379
SELECT 82 AS col0, 46 + COUNT ( * )
----
82
47

query I rowsort
SELECT ALL + 50 + + 28
----
78

query II rowsort
SELECT + 4 AS col2, - 11 AS col1
----
4
-11

query I rowsort
SELECT ALL - 23 * - 77 * - COALESCE ( - 43, - - 16 )
----
76153

query I rowsort
SELECT ALL 46 - 93
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT + 24 * - + COUNT( * ) + + ( 48 ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-4384
SELECT + 24 * - + COUNT ( * ) + + ( 48 ) AS col1
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-4385
SELECT DISTINCT - COUNT( * ), MIN( - + 46 ) AS col2
----
-1
-46

skipif mysql # not compatible
query II rowsort label-4385
SELECT DISTINCT - COUNT ( * ), MIN ( - + 46 ) AS col2
----
-1
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT ALL - COUNT( * ) * 46 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-4386
SELECT ALL - COUNT ( * ) * 46 AS col0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4387
SELECT 6 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4387
SELECT 6 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4388
SELECT + 61 * 79 + + 97 DIV - 10 + 18 AS col0
----
4828

skipif mysql # not compatible
query I rowsort label-4388
SELECT + 61 * 79 + + 97 / - 10 + 18 AS col0
----
4828

query I rowsort
SELECT ALL - CASE - COALESCE ( ( - 18 ), 37 ) WHEN 70 THEN NULL ELSE - + 35 END AS col0
----
35

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4390
SELECT - CAST( NULL AS DECIMAL ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4390
SELECT - CAST ( NULL AS REAL ) * - COUNT ( * )
----
NULL

query I rowsort
SELECT - 48 + - 14
----
-62

query I rowsort
SELECT 78 + ( - - 62 ) AS col0
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT - 75 + - MAX( - + 6 )
----
-69

skipif mysql # not compatible
query I rowsort label-4393
SELECT - 75 + - MAX ( - + 6 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT + MAX( 4 ) * 38 * + CASE + CASE 71 WHEN - + 26 * + 61 / 68 * + - 48 THEN COUNT( * ) END WHEN + NULLIF ( - 92, + 81 ) * + 71 / ( - 16 ) - + - 11 + - - ( - 8 ) * + 70 * + 11 - + 25 * 13 * - 3 THEN - 1 * - 50 WHEN + - 56 THEN + 41 WHEN - 44 * + MIN( ALL 86 ) THEN NULL WHEN + 20 * 67 THEN NULL END / + 67 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4394
SELECT + MAX ( 4 ) * 38 * + CASE + CASE 71 WHEN - + 26 * + 61 / 68 * + - 48 THEN COUNT ( * ) END WHEN + NULLIF ( - 92, + 81 ) * + 71 / ( - 16 ) - + - 11 + - - ( - 8 ) * + 70 * + 11 - + 25 * 13 * - 3 THEN - 1 * - 50 WHEN + - 56 THEN + 41 WHEN - 44 * + MIN ( ALL 86 ) THEN NULL WHEN + 20 * 67 THEN NULL END / + 67 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4395
SELECT ALL - - COUNT( * ) DIV - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4395
SELECT ALL - - COUNT ( * ) / - COUNT ( * ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4396
SELECT DISTINCT 33 * + 59 + - 71 - + 3 DIV 61 * - 53 + + 62 AS col1
----
1938

skipif mysql # not compatible
query I rowsort label-4396
SELECT DISTINCT 33 * + 59 + - 71 - + 3 / 61 * - 53 + + 62 AS col1
----
1938

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT DISTINCT - COUNT( * ) + + 20 col2
----
19

skipif mysql # not compatible
query I rowsort label-4397
SELECT DISTINCT - COUNT ( * ) + + 20 col2
----
19

query I rowsort
SELECT ALL - + COALESCE ( 65, 52 + - + 89, 44 + 79 - 52 - + 43 ) * 92 AS col2
----
-5980

query I rowsort
SELECT + 55 * 57
----
3135

query I rowsort
SELECT + 25 + 19 * - 5 AS col0
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4401
SELECT DISTINCT COALESCE ( - COUNT( * ), + 8 + - 63 + - COUNT( + + 72 ) * - 4 ) + - 43 + - CAST( - COUNT( * ) AS SIGNED ) + 24
----
-19

skipif mysql # not compatible
query I rowsort label-4401
SELECT DISTINCT COALESCE ( - COUNT ( * ), + 8 + - 63 + - COUNT ( + + 72 ) * - 4 ) + - 43 + - CAST ( - COUNT ( * ) AS INTEGER ) + 24
----
-19

query II rowsort
SELECT - 3 AS col1, - 46 AS col2
----
-3
-46

query I rowsort
SELECT ALL 17 + - 5 AS col2
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4404
SELECT 57 + + COUNT( * ) DIV 67 * - MIN( ALL + 59 ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-4404
SELECT 57 + + COUNT ( * ) / 67 * - MIN ( ALL + 59 ) AS col0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4405
SELECT DISTINCT - 89 + - CASE - AVG ( DISTINCT 60 ) WHEN + 25 THEN NULL WHEN - 97 + 8 THEN + CAST( NULL AS SIGNED ) ELSE - NULLIF ( + 36, - COALESCE ( 23, + - 50 * + + ( + 89 ) * - 15 + 24 - + 0 ) + 84 ) + + 88 + 85 * + - ( - 87 ) + - 86 + + - 80 + + + ( 70 ) END AS col2
----
-7440

skipif mysql # not compatible
query I rowsort label-4405
SELECT DISTINCT - 89 + - CASE - AVG ( DISTINCT 60 ) WHEN + 25 THEN NULL WHEN - 97 + 8 THEN + CAST ( NULL AS INTEGER ) ELSE - NULLIF ( + 36, - COALESCE ( 23, + - 50 * + + ( + 89 ) * - 15 + 24 - + 0 ) + 84 ) + + 88 + 85 * + - ( - 87 ) + - 86 + + - 80 + + + ( 70 ) END AS col2
----
-7440

onlyif mysql # DIV for integer division: 
query II rowsort label-4406
SELECT - 5 * + 0 DIV + 28 AS col1, 68 DIV + 70 * 33 * - - 32 * 36 DIV 96 * - - 70 * - - 52 AS col1
----
0
0

skipif mysql # not compatible
query II rowsort label-4406
SELECT - 5 * + 0 / + 28 AS col1, 68 / + 70 * 33 * - - 32 * 36 / 96 * - - 70 * - - 52 AS col1
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT - NULLIF ( + 15, - + 77 * + ( - + 85 ) / + + 52 + MIN( DISTINCT - + COALESCE ( + 86, - 38 + + + 55 * + 9 ) ) )
----
-15

skipif mysql # not compatible
query I rowsort label-4407
SELECT - NULLIF ( + 15, - + 77 * + ( - + 85 ) / + + 52 + MIN ( DISTINCT - + COALESCE ( + 86, - 38 + + + 55 * + 9 ) ) )
----
-15

query I rowsort
SELECT ALL 12 + - - 94 * ( - 38 ) AS col0
----
-3560

onlyif mysql # DIV for integer division: 
query I rowsort label-4409
SELECT ALL 71 + + + 68 + 0 * + - 25 DIV NULLIF ( - 37, - 52 ) AS col0
----
139

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL 71 + + + 68 + 0 * + - 25 / NULLIF ( - 37, - 52 ) AS col0
----
139

onlyif mysql # DIV for integer division: 
query I rowsort label-4410
SELECT 99 * - + 21 - ( + 4 ) + 13 DIV + - 96 AS col1
----
-2083

skipif mysql # not compatible
query I rowsort label-4410
SELECT 99 * - + 21 - ( + 4 ) + 13 / + - 96 AS col1
----
-2083

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT COUNT( - 36 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4411
SELECT COUNT ( - 36 ) AS col0
----
1

query I rowsort
SELECT ALL 34 * - + 23
----
-782

query I rowsort
SELECT ALL 58 * + - 63 - + 92
----
-3746

query I rowsort
SELECT DISTINCT 63 * - ( + ( + 93 ) )
----
-5859

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4415
SELECT ALL - 56 * + + CAST( - 95 AS SIGNED ) - 50
----
5270

skipif mysql # not compatible
query I rowsort label-4415
SELECT ALL - 56 * + + CAST ( - 95 AS INTEGER ) - 50
----
5270

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT ALL - COUNT( ALL - 91 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4416
SELECT ALL - COUNT ( ALL - 91 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT - 95 * NULLIF ( 83, + ( + - 60 ) ) + - - 98 + + ( - 87 ) + + 94 * COALESCE ( + COUNT( * ), - 43 * - 67 * - 83 * 17 ) * + 94 + - 58 + - 89 + - - ( 48 )
----
863

skipif mysql # not compatible
query I rowsort label-4417
SELECT - 95 * NULLIF ( 83, + ( + - 60 ) ) + - - 98 + + ( - 87 ) + + 94 * COALESCE ( + COUNT ( * ), - 43 * - 67 * - 83 * 17 ) * + 94 + - 58 + - 89 + - - ( 48 )
----
863

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4418
SELECT ALL SUM( DISTINCT - 16 ) DIV - 1
----
16

skipif mysql # not compatible
query I rowsort label-4418
SELECT ALL SUM ( DISTINCT - 16 ) / - 1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT + ( 22 ) * - COUNT( * ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-4419
SELECT + ( 22 ) * - COUNT ( * ) AS col2
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4420
SELECT - 62 + + COUNT( DISTINCT - - CAST( NULL AS SIGNED ) ) + - + 69 AS col1
----
-131

skipif mysql # not compatible
query I rowsort label-4420
SELECT - 62 + + COUNT ( DISTINCT - - CAST ( NULL AS INTEGER ) ) + - + 69 AS col1
----
-131

query I rowsort
SELECT + 33 * - + 40 col1
----
-1320

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT + NULLIF ( SUM( - 17 ), + - COUNT( * ) )
----
-17

skipif mysql # not compatible
query I rowsort label-4422
SELECT + NULLIF ( SUM ( - 17 ), + - COUNT ( * ) )
----
-17

query I rowsort
SELECT - - 11 * - 7 * - + 25
----
1925

query I rowsort
SELECT ALL + COALESCE ( - ( - 6 ), - 53, - 51 - - 97 ) AS col2
----
6

query I rowsort
SELECT DISTINCT + 19 + 72 AS col1
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4426
SELECT ALL - CAST( + MAX( DISTINCT + 85 ) AS SIGNED ) * - 33, 47 + + - 56 AS col0
----
2805
-9

skipif mysql # not compatible
query II rowsort label-4426
SELECT ALL - CAST ( + MAX ( DISTINCT + 85 ) AS INTEGER ) * - 33, 47 + + - 56 AS col0
----
2805
-9

query I rowsort
SELECT - - 50 * - 65 AS col1
----
-3250

query II rowsort
SELECT DISTINCT - 39 + 39, 57 AS col1
----
0
57

query I rowsort
SELECT DISTINCT - + 36 * + + 62
----
-2232

query I rowsort
SELECT DISTINCT - + 23 + + 23 AS col0
----
0

query II rowsort
SELECT - 18 + 93 AS col0, - 46
----
75
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-4432
SELECT - MAX( + 82 ) col2, - 0 * - COUNT( * )
----
-82
0

skipif mysql # not compatible
query II rowsort label-4432
SELECT - MAX ( + 82 ) col2, - 0 * - COUNT ( * )
----
-82
0

query I rowsort
SELECT ALL - + 23 + + 22 col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4434
SELECT ALL + 79 * NULLIF ( - 76, + COUNT( ALL - - CAST( + - COALESCE ( 33, 73 + + - 7 ) AS SIGNED ) ) ) + - + 28
----
-6032

skipif mysql # not compatible
query I rowsort label-4434
SELECT ALL + 79 * NULLIF ( - 76, + COUNT ( ALL - - CAST ( + - COALESCE ( 33, 73 + + - 7 ) AS INTEGER ) ) ) + - + 28
----
-6032

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4435
SELECT DISTINCT + CAST( ( + 23 ) AS SIGNED ) * 97 AS col1
----
2231

skipif mysql # not compatible
query I rowsort label-4435
SELECT DISTINCT + CAST ( ( + 23 ) AS INTEGER ) * 97 AS col1
----
2231

query I rowsort
SELECT - - 51 col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT - SUM( DISTINCT - - 7 ) + - + 29
----
-36

skipif mysql # not compatible
query I rowsort label-4437
SELECT - SUM ( DISTINCT - - 7 ) + - + 29
----
-36

query I rowsort
SELECT ALL + 95 * 51 AS col2
----
4845

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT + COUNT( * ) - + 77 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-4439
SELECT + COUNT ( * ) - + 77 AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT ALL COUNT( * ) - - + 22
----
23

skipif mysql # not compatible
query I rowsort label-4440
SELECT ALL COUNT ( * ) - - + 22
----
23

query II rowsort
SELECT ALL + NULLIF ( - - 70, + - 1 ) col0, 66 * - - 80
----
70
5280

onlyif mysql # aggregate syntax: 
query II rowsort label-4442
SELECT ALL + 35 col1, COUNT( * ) AS col0
----
35
1

skipif mysql # not compatible
query II rowsort label-4442
SELECT ALL + 35 col1, COUNT ( * ) AS col0
----
35
1

query I rowsort
SELECT DISTINCT + COALESCE ( ( - + 39 ), 73 ) AS col0
----
-39

query I rowsort
SELECT + 69 * 28
----
1932

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4445
SELECT ( CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4445
SELECT ( CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT DISTINCT COUNT( * ) * + + 10 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-4446
SELECT DISTINCT COUNT ( * ) * + + 10 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT + ( - ( - - ( COUNT( * ) ) ) ) * - COUNT( * ) * - 56 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-4447
SELECT + ( - ( - - ( COUNT ( * ) ) ) ) * - COUNT ( * ) * - 56 AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT + 39 * - - ( + + MIN( + 36 ) ) * + 87
----
122148

skipif mysql # not compatible
query I rowsort label-4448
SELECT + 39 * - - ( + + MIN ( + 36 ) ) * + 87
----
122148

query I rowsort
SELECT + 51 - ( 75 ) AS col0
----
-24

query I rowsort
SELECT + NULLIF ( - 11, - 52 ) AS col1
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4451
SELECT 61 * + ( + - 16 ) + + - ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4451
SELECT 61 * + ( + - 16 ) + + - ( - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4452
SELECT - - COALESCE ( + MAX( DISTINCT 92 ), + 42 ) * 67 DIV - - 47 + 80 + - - 77
----
288

skipif mysql # not compatible
query I rowsort label-4452
SELECT - - COALESCE ( + MAX ( DISTINCT 92 ), + 42 ) * 67 / - - 47 + 80 + - - 77
----
288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4453
SELECT ALL + + CASE CASE + COUNT( * ) WHEN + NULLIF ( - 54, + CAST( - 70 AS SIGNED ) / + 43 + + 26 + - 47 * NULLIF ( - 56, - + 15 ) / + 92 + + 74 ) * COALESCE ( - COALESCE ( + 48, + + 91 * COUNT( * ) * - ( + ( + 95 ) ) ), 22 ) * + ( + + 98 ) + - - 2 + - 0 + - + CASE 79 WHEN - 53 + + 20 * 5 THEN NULL ELSE 66 END + 50 - 92 THEN AVG ( DISTINCT 89 ) + 99 * - 0 WHEN ( SUM( - 3 ) ) THEN NULL END WHEN - 15 THEN + 78 WHEN + 85 THEN 65 WHEN - 49 - CASE - 20 - 61 * 54 WHEN 52 THEN - ( + 20 ) END THEN + SUM( + 86 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4453
SELECT ALL + + CASE CASE + COUNT ( * ) WHEN + NULLIF ( - 54, + CAST ( - 70 AS INTEGER ) / + 43 + + 26 + - 47 * NULLIF ( - 56, - + 15 ) / + 92 + + 74 ) * COALESCE ( - COALESCE ( + 48, + + 91 * COUNT ( * ) * - ( + ( + 95 ) ) ), 22 ) * + ( + + 98 ) + - - 2 + - 0 + - + CASE 79 WHEN - 53 + + 20 * 5 THEN NULL ELSE 66 END + 50 - 92 THEN AVG ( DISTINCT 89 ) + 99 * - 0 WHEN ( SUM ( - 3 ) ) THEN NULL END WHEN - 15 THEN + 78 WHEN + 85 THEN 65 WHEN - 49 - CASE - 20 - 61 * 54 WHEN 52 THEN - ( + 20 ) END THEN + SUM ( + 86 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4454
SELECT ALL + - COUNT( * ) AS col1, MAX( DISTINCT + 5 ) * 77 * + + 73
----
-1
28105

skipif mysql # not compatible
query II rowsort label-4454
SELECT ALL + - COUNT ( * ) AS col1, MAX ( DISTINCT + 5 ) * 77 * + + 73
----
-1
28105

query II rowsort
SELECT + ( 81 ) - + 94 AS col0, 23 AS col1
----
-13
23

query II rowsort
SELECT ALL + - 54 AS col2, + 73 AS col2
----
-54
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT ALL ( COUNT( * ) ) * - 31 + - 84 + 76 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL ( COUNT ( * ) ) * - 31 + - 84 + 76 AS col0
----
-39

query I rowsort
SELECT + + 94 + - 14 col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT DISTINCT + 50 * + COUNT( * ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-4459
SELECT DISTINCT + 50 * + COUNT ( * ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT - + 45 + + COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-4460
SELECT - + 45 + + COUNT ( * )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT ALL + 39 - + COUNT( * ) * - 17 - + + 35 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-4461
SELECT ALL + 39 - + COUNT ( * ) * - 17 - + + 35 AS col0
----
21

query I rowsort
SELECT ALL + + 83 - + 47
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4463
SELECT ALL CAST( + + NULLIF ( + 74, + 83 ) AS SIGNED ) * + - 13 + - + 5
----
-967

skipif mysql # not compatible
query I rowsort label-4463
SELECT ALL CAST ( + + NULLIF ( + 74, + 83 ) AS INTEGER ) * + - 13 + - + 5
----
-967

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT - COUNT( * ) + - 42 * + 75 AS col1
----
-3151

skipif mysql # not compatible
query I rowsort label-4464
SELECT - COUNT ( * ) + - 42 * + 75 AS col1
----
-3151

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT + + COUNT( * ) + + 18 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-4465
SELECT + + COUNT ( * ) + + 18 AS col0
----
19

query I rowsort
SELECT + ( + 46 ) AS col0
----
46

query I rowsort
SELECT DISTINCT ( + - 20 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT + COALESCE ( + - 43, - - COUNT( * ) + - + 24 + + COUNT( * ) * - + 95 ) * + 86
----
-3698

skipif mysql # not compatible
query I rowsort label-4468
SELECT + COALESCE ( + - 43, - - COUNT ( * ) + - + 24 + + COUNT ( * ) * - + 95 ) * + 86
----
-3698

query I rowsort
SELECT - 12 + 84
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4470
SELECT DISTINCT CAST( 84 AS SIGNED )
----
84

skipif mysql # not compatible
query I rowsort label-4470
SELECT DISTINCT CAST ( 84 AS INTEGER )
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4471
SELECT - CAST( NULL AS SIGNED ) + - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-4471
SELECT - CAST ( NULL AS INTEGER ) + - 20
----
NULL

query I rowsort
SELECT ALL - 91 * + 65
----
-5915

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT ALL 64 * + COUNT( + 23 ) * - 56 AS col0
----
-3584

skipif mysql # not compatible
query I rowsort label-4473
SELECT ALL 64 * + COUNT ( + 23 ) * - 56 AS col0
----
-3584

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4474
SELECT 9 DIV - - COALESCE ( 72, 18 ) AS col2, - ( - COUNT( * ) ) col2
----
0
1

skipif mysql # not compatible
query II rowsort label-4474
SELECT 9 / - - COALESCE ( 72, 18 ) AS col2, - ( - COUNT ( * ) ) col2
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT ALL - MAX( DISTINCT - 26 ) * - 54 * - 96
----
134784

skipif mysql # not compatible
query I rowsort label-4475
SELECT ALL - MAX ( DISTINCT - 26 ) * - 54 * - 96
----
134784

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4476
SELECT 92 DIV + 80 + + + 70 + - COUNT( * ) * + - COUNT( * ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-4476
SELECT 92 / + 80 + + + 70 + - COUNT ( * ) * + - COUNT ( * ) AS col1
----
72

query I rowsort
SELECT ALL + 1 * 89
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-4478
SELECT ALL + SUM( + CASE - 25 WHEN - + 43 THEN NULL ELSE - 47 END ) * + 36 AS col1, - 11 + + 35 AS col0
----
-1692
24

skipif mysql # not compatible
query II rowsort label-4478
SELECT ALL + SUM ( + CASE - 25 WHEN - + 43 THEN NULL ELSE - 47 END ) * + 36 AS col1, - 11 + + 35 AS col0
----
-1692
24

onlyif mysql # DIV for integer division: 
query I rowsort label-4479
SELECT 99 DIV + 31 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-4479
SELECT 99 / + 31 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT 65 * + 51 + COUNT( * ) AS col0
----
3316

skipif mysql # not compatible
query I rowsort label-4480
SELECT 65 * + 51 + COUNT ( * ) AS col0
----
3316

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4481
SELECT ALL - COUNT( * ) + + 44 DIV - 6
----
-8

skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL - COUNT ( * ) + + 44 / - 6
----
-8

query I rowsort
SELECT ALL + 1 * - 36 col0
----
-36

query II rowsort
SELECT ALL 97 + + 5 AS col0, - 68 AS col0
----
102
-68

query I rowsort
SELECT 65 * 70 + - 53 AS col1
----
4497

query I rowsort
SELECT ALL - 29 + + 17
----
-12

query II rowsort
SELECT DISTINCT - ( - 8 ), 79 * - - 52 AS col2
----
8
4108

query I rowsort
SELECT 76 * + 61
----
4636

query I rowsort
SELECT DISTINCT - + NULLIF ( + - 63, 72 ) AS col0
----
63

query I rowsort
SELECT ALL - 70 + - 1 AS col2
----
-71

query I rowsort
SELECT NULLIF ( - 58, + 14 + + ( + 94 ) )
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4491
SELECT ALL 39 DIV - COUNT( * ) * + COUNT( DISTINCT - 59 ) col2
----
-39

skipif mysql # not compatible
query I rowsort label-4491
SELECT ALL 39 / - COUNT ( * ) * + COUNT ( DISTINCT - 59 ) col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT ALL + 78 + + + 43 + + COUNT( * ) + - - 29 + - 69 + - - 37 * ( - 21 )
----
-695

skipif mysql # not compatible
query I rowsort label-4492
SELECT ALL + 78 + + + 43 + + COUNT ( * ) + - - 29 + - 69 + - - 37 * ( - 21 )
----
-695

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT COUNT( * ) * 70 + + ( - 26 ) + 81 AS col0
----
125

skipif mysql # not compatible
query I rowsort label-4493
SELECT COUNT ( * ) * 70 + + ( - 26 ) + 81 AS col0
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT ALL 11 - COUNT( * ) col1
----
10

skipif mysql # not compatible
query I rowsort label-4494
SELECT ALL 11 - COUNT ( * ) col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT 1 * + COALESCE ( COUNT( * ), + SUM( ALL 43 ), + 72 * + 32, - 93 * - 74 )
----
1

skipif mysql # not compatible
query I rowsort label-4495
SELECT 1 * + COALESCE ( COUNT ( * ), + SUM ( ALL 43 ), + 72 * + 32, - 93 * - 74 )
----
1

query II rowsort
SELECT ALL 72 col1, + 9 AS col2
----
72
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT COUNT( * ) + - + 41 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-4497
SELECT COUNT ( * ) + - + 41 AS col1
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4498
SELECT + CASE ( - + 90 ) WHEN - + 10 * + 30 + - COUNT( * ) * - + 32 THEN - 14 + + 76 WHEN + + 24 * 92 + SUM( ALL CAST( NULL AS SIGNED ) ) THEN - 42 END * ( - - NULLIF ( COUNT( - 18 ), + 48 ) ) * + - CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4498
SELECT + CASE ( - + 90 ) WHEN - + 10 * + 30 + - COUNT ( * ) * - + 32 THEN - 14 + + 76 WHEN + + 24 * 92 + SUM ( ALL CAST ( NULL AS INTEGER ) ) THEN - 42 END * ( - - NULLIF ( COUNT ( - 18 ), + 48 ) ) * + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4499
SELECT + CAST( NULL AS SIGNED ) AS col0, - CAST( NULL AS SIGNED ) / + 69
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4499
SELECT + CAST ( NULL AS INTEGER ) AS col0, - CAST ( NULL AS INTEGER ) / + 69
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT CASE - + 70 WHEN + MAX( ( - - 57 ) ) THEN + - COUNT( * ) WHEN 53 + - AVG ( DISTINCT + 70 ) THEN NULL ELSE NULL END / - COALESCE ( + COALESCE ( - - 77, 20 * 95, 34, - 76 / + + MIN( DISTINCT - 77 ) + + + COUNT( * ) + - 68 * + - NULLIF ( + 59, 60 + + - NULLIF ( + - 72, - COUNT( * ) ) ) * - 84 / + + 88 * + - 4 ), + MIN( DISTINCT - 92 ), - 71 * 28 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4500
SELECT CASE - + 70 WHEN + MAX ( ( - - 57 ) ) THEN + - COUNT ( * ) WHEN 53 + - AVG ( DISTINCT + 70 ) THEN NULL ELSE NULL END / - COALESCE ( + COALESCE ( - - 77, 20 * 95, 34, - 76 / + + MIN ( DISTINCT - 77 ) + + + COUNT ( * ) + - 68 * + - NULLIF ( + 59, 60 + + - NULLIF ( + - 72, - COUNT ( * ) ) ) * - 84 / + + 88 * + - 4 ), + MIN ( DISTINCT - 92 ), - 71 * 28 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT ( COUNT( * ) ) * 27 * 21 AS col2
----
567

skipif mysql # not compatible
query I rowsort label-4501
SELECT ( COUNT ( * ) ) * 27 * 21 AS col2
----
567

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4502
SELECT 84 - + - CAST( NULL AS SIGNED ) + - 96 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4502
SELECT 84 - + - CAST ( NULL AS INTEGER ) + - 96 + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4503
SELECT CAST( + 64 AS SIGNED ) - 97 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-4503
SELECT CAST ( + 64 AS INTEGER ) - 97 AS col2
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4504
SELECT CAST( - 33 AS SIGNED ) + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4504
SELECT CAST ( - 33 AS INTEGER ) + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT 90 * - + 35
----
-3150

query II rowsort
SELECT 25 * + + 3 AS col0, - 81 AS col1
----
75
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT ALL - 42 + + 97 + - 75 * - COUNT( * ) - + 25
----
105

skipif mysql # not compatible
query I rowsort label-4507
SELECT ALL - 42 + + 97 + - 75 * - COUNT ( * ) - + 25
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT ALL 33 + 6 + + MIN( 10 )
----
49

skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL 33 + 6 + + MIN ( 10 )
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4509
SELECT ALL - 97 + 68 + SUM( + + 85 ) DIV + + 91 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-4509
SELECT ALL - 97 + 68 + SUM ( + + 85 ) / + + 91 AS col0
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-4510
SELECT DISTINCT - 25 DIV + + 63
----
0

skipif mysql # not compatible
query I rowsort label-4510
SELECT DISTINCT - 25 / + + 63
----
0

query I rowsort
SELECT + 92 + - - 59 - - 66
----
217

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4512
SELECT SUM( - - 22 ) DIV + + 42 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4512
SELECT SUM ( - - 22 ) / + + 42 AS col0
----
0

query I rowsort
SELECT ALL - - 79 + + 29 * ( + 66 )
----
1993

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT - COUNT( * ) * ( 80 ) / + - 49 + ( - - AVG ( - + CASE - + 13 WHEN + 40 * + + 9 THEN + 24 + 36 ELSE NULL END ) ) * + COUNT( * ) + - MIN( ALL - 60 ) - 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4514
SELECT - COUNT ( * ) * ( 80 ) / + - 49 + ( - - AVG ( - + CASE - + 13 WHEN + 40 * + + 9 THEN + 24 + 36 ELSE NULL END ) ) * + COUNT ( * ) + - MIN ( ALL - 60 ) - 27 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT DISTINCT + + 50 * - 55 + + COUNT( * )
----
-2749

skipif mysql # not compatible
query I rowsort label-4515
SELECT DISTINCT + + 50 * - 55 + + COUNT ( * )
----
-2749

query I rowsort
SELECT ALL - ( - 9 ) - + + 50 col2
----
-41

query I rowsort
SELECT + 51 * + 99 col0
----
5049

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4518
SELECT 17 * CASE + COUNT( * ) WHEN - 21 + - 48 * + 29 THEN NULL WHEN + COALESCE ( - 74, - - CAST( - 55 AS SIGNED ), - 8 ) THEN + + 94 ELSE NULL END + - COUNT( * ) + - - ( + 71 ) / + 20 + + 66, - 54 + - COUNT( * ) + 45 * ( - 79 ) AS col0
----
NULL
-3610

skipif mysql # not compatible
query II rowsort label-4518
SELECT 17 * CASE + COUNT ( * ) WHEN - 21 + - 48 * + 29 THEN NULL WHEN + COALESCE ( - 74, - - CAST ( - 55 AS INTEGER ), - 8 ) THEN + + 94 ELSE NULL END + - COUNT ( * ) + - - ( + 71 ) / + 20 + + 66, - 54 + - COUNT ( * ) + 45 * ( - 79 ) AS col0
----
NULL
-3610

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT - 18 * 86 - COUNT( * ) AS col1
----
-1549

skipif mysql # not compatible
query I rowsort label-4519
SELECT - 18 * 86 - COUNT ( * ) AS col1
----
-1549

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4520
SELECT ( + COALESCE ( + NULLIF ( - 98, + + 32 * - - 45 + 58 ), + 25 ) ) + 48 + + 92 + - COUNT( * ) DIV + 71 AS col1, - COUNT( * ) AS col0
----
42
-1

skipif mysql # not compatible
query II rowsort label-4520
SELECT ( + COALESCE ( + NULLIF ( - 98, + + 32 * - - 45 + 58 ), + 25 ) ) + 48 + + 92 + - COUNT ( * ) / + 71 AS col1, - COUNT ( * ) AS col0
----
42
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4521
SELECT + + 3 * COUNT( + + 83 ) DIV + MAX( + 42 ) + + 25 + + ( - - COUNT( * ) ) col2, 10 col1
----
26
10

skipif mysql # not compatible
query II rowsort label-4521
SELECT + + 3 * COUNT ( + + 83 ) / + MAX ( + 42 ) + + 25 + + ( - - COUNT ( * ) ) col2, 10 col1
----
26
10

query I rowsort
SELECT 95 + 65
----
160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4523
SELECT ALL CAST( - - 24 AS SIGNED ) * - MAX( - 60 ) * + - 82 AS col2
----
-118080

skipif mysql # not compatible
query I rowsort label-4523
SELECT ALL CAST ( - - 24 AS INTEGER ) * - MAX ( - 60 ) * + - 82 AS col2
----
-118080

query I rowsort
SELECT DISTINCT - 29 * + 63
----
-1827

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT - COUNT( - - 14 )
----
-1

skipif mysql # not compatible
query I rowsort label-4525
SELECT - COUNT ( - - 14 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4526
SELECT CAST( NULL AS SIGNED ) * + + 22 + - - 14 + 62 * - + CAST( 26 AS SIGNED ) + 95 * - 22 + - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-4526
SELECT CAST ( NULL AS INTEGER ) * + + 22 + - - 14 + 62 * - + CAST ( 26 AS INTEGER ) + 95 * - 22 + - 29
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4527
SELECT ALL 33 AS col1, - SUM( - 53 ) col1
----
33
53

skipif mysql # not compatible
query II rowsort label-4527
SELECT ALL 33 AS col1, - SUM ( - 53 ) col1
----
33
53

query I rowsort
SELECT ALL 0 * + - 67 * - 31
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4529
SELECT - CAST( - 4 AS SIGNED ) + - - 82 - + MIN( DISTINCT - 37 ) + ( - 53 )
----
70

skipif mysql # not compatible
query I rowsort label-4529
SELECT - CAST ( - 4 AS INTEGER ) + - - 82 - + MIN ( DISTINCT - 37 ) + ( - 53 )
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-4530
SELECT + 64 DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-4530
SELECT + 64 / - 81
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT DISTINCT MAX( + 22 ) + + MAX( DISTINCT 9 ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-4531
SELECT DISTINCT MAX ( + 22 ) + + MAX ( DISTINCT 9 ) AS col0
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4532
SELECT + 10 * - - COALESCE ( - 59, 19 * + COUNT( * ) + 77 ) * + - ( + + COUNT( ALL CASE - 31 WHEN + + 17 THEN - 74 WHEN - 1 THEN NULL ELSE NULL END ) ) / - 63 + CASE + + SUM( - 42 ) WHEN 90 THEN + + 88 WHEN - 82 + + COUNT( * ) - + COUNT( ALL - 30 ) + - - ( + COUNT( * ) ) THEN NULL END + + CAST( - - 64 AS SIGNED ) * 75
----
NULL

skipif mysql # not compatible
query I rowsort label-4532
SELECT + 10 * - - COALESCE ( - 59, 19 * + COUNT ( * ) + 77 ) * + - ( + + COUNT ( ALL CASE - 31 WHEN + + 17 THEN - 74 WHEN - 1 THEN NULL ELSE NULL END ) ) / - 63 + CASE + + SUM ( - 42 ) WHEN 90 THEN + + 88 WHEN - 82 + + COUNT ( * ) - + COUNT ( ALL - 30 ) + - - ( + COUNT ( * ) ) THEN NULL END + + CAST ( - - 64 AS INTEGER ) * 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT ALL NULLIF ( - COUNT( * ), - COUNT( * ) ) + - + 21 + + - 7 * + - COUNT( * ) + 23 + + + 21 * + - 15 - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4533
SELECT ALL NULLIF ( - COUNT ( * ), - COUNT ( * ) ) + - + 21 + + - 7 * + - COUNT ( * ) + 23 + + + 21 * + - 15 - COUNT ( * )
----
NULL

query I rowsort
SELECT + 28 + + + 6 * + 77 - - - 13 AS col2
----
477

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT DISTINCT COUNT( * ) + + 60 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-4535
SELECT DISTINCT COUNT ( * ) + + 60 AS col2
----
61

query I rowsort
SELECT + 4 + 83 + - ( - 99 )
----
186

query I rowsort
SELECT DISTINCT - 29 + - - 66
----
37

query I rowsort
SELECT DISTINCT + 60 * 19 + 35
----
1175

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT ALL + 21 * 53 * - + 12 - - - COUNT( * ) - 18 * - 45 * + 53
----
29573

skipif mysql # not compatible
query I rowsort label-4539
SELECT ALL + 21 * 53 * - + 12 - - - COUNT ( * ) - 18 * - 45 * + 53
----
29573

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4540
SELECT + COALESCE ( - COALESCE ( - + 16, + + COUNT( * ) + + 20 ), - MIN( 85 ), 26 * 71 ) DIV + 95 + 63 + - MIN( DISTINCT + - 69 ) + - 71
----
61

skipif mysql # not compatible
query I rowsort label-4540
SELECT + COALESCE ( - COALESCE ( - + 16, + + COUNT ( * ) + + 20 ), - MIN ( 85 ), 26 * 71 ) / + 95 + 63 + - MIN ( DISTINCT + - 69 ) + - 71
----
61

query I rowsort
SELECT DISTINCT + + NULLIF ( - 9, + 65 + 82 )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4542
SELECT ALL + 72, COALESCE ( + 28, + 72 * - CAST( + 26 AS SIGNED ), + CAST( NULL AS SIGNED ), + - COUNT( * ) ) col0
----
72
28

skipif mysql # not compatible
query II rowsort label-4542
SELECT ALL + 72, COALESCE ( + 28, + 72 * - CAST ( + 26 AS INTEGER ), + CAST ( NULL AS INTEGER ), + - COUNT ( * ) ) col0
----
72
28

query I rowsort
SELECT + - 82 + + + 36 AS col1
----
-46

onlyif mysql # DIV for integer division: 
query II rowsort label-4544
SELECT + 72 AS col2, 96 DIV + 99
----
72
0

skipif mysql # not compatible
query II rowsort label-4544
SELECT + 72 AS col2, 96 / + 99
----
72
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT ALL ( 45 ) * - 9 - - ( + 13 ) - MAX( DISTINCT - 38 ) - - 53 * NULLIF ( + 15, + + 99 - - 69 )
----
441

skipif mysql # not compatible
query I rowsort label-4545
SELECT ALL ( 45 ) * - 9 - - ( + 13 ) - MAX ( DISTINCT - 38 ) - - 53 * NULLIF ( + 15, + + 99 - - 69 )
----
441

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT - - MIN( DISTINCT 50 ) * 84
----
4200

skipif mysql # not compatible
query I rowsort label-4546
SELECT - - MIN ( DISTINCT 50 ) * 84
----
4200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4547
SELECT DISTINCT 5 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4547
SELECT DISTINCT 5 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT - + COUNT( + 17 ) * + 58 col0
----
-58

skipif mysql # not compatible
query I rowsort label-4548
SELECT - + COUNT ( + 17 ) * + 58 col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT ALL + 35 * + MAX( DISTINCT + 50 ) + - MAX( 84 ) + - 86
----
1580

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL + 35 * + MAX ( DISTINCT + 50 ) + - MAX ( 84 ) + - 86
----
1580

query I rowsort
SELECT - 76 + - 3 + + - 12 - 39 * - - 30 AS col2
----
-1261

query I rowsort
SELECT ALL - + 72 * + + 71
----
-5112

query I rowsort
SELECT - 15 * + + 58
----
-870

query I rowsort
SELECT - + COALESCE ( - 36, 79 ) * - 86 + - + 14 AS col2
----
-3110

query II rowsort
SELECT DISTINCT - 44 * 19 * 7 AS col0, + 82 * - + 74 col2
----
-5852
-6068

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT ALL + SUM( DISTINCT - 95 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-4555
SELECT ALL + SUM ( DISTINCT - 95 ) AS col2
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4556
SELECT DISTINCT + 82 AS col1, - 48 + + SUM( - 25 ) DIV + 90 AS col2
----
82
-48

skipif mysql # not compatible
query II rowsort label-4556
SELECT DISTINCT + 82 AS col1, - 48 + + SUM ( - 25 ) / + 90 AS col2
----
82
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4557
SELECT - - 89 * - 11 DIV COUNT( * ) AS col1, 84 + ( - - 33 )
----
-979
117

skipif mysql # not compatible
query II rowsort label-4557
SELECT - - 89 * - 11 / COUNT ( * ) AS col1, 84 + ( - - 33 )
----
-979
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4558
SELECT ALL CASE 78 WHEN 71 * + - 21 THEN NULL ELSE + CAST( NULL AS SIGNED ) / 57 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4558
SELECT ALL CASE 78 WHEN 71 * + - 21 THEN NULL ELSE + CAST ( NULL AS INTEGER ) / 57 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4559
SELECT - 64 - CAST( - - 88 AS SIGNED ) + + 6 * - + 37, - 69 * + 81 col2
----
-374
-5589

skipif mysql # not compatible
query II rowsort label-4559
SELECT - 64 - CAST ( - - 88 AS INTEGER ) + + 6 * - + 37, - 69 * + 81 col2
----
-374
-5589

query I rowsort
SELECT - 82 * 97 AS col1
----
-7954

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4561
SELECT - CAST( NULL AS DECIMAL ) + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4561
SELECT - CAST ( NULL AS REAL ) + - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL ( - 55 ) col2
----
-55

query I rowsort
SELECT + 64 + - + 2
----
62

query I rowsort
SELECT + 23 * - 61
----
-1403

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT ALL COUNT( * ) + - - 37 + - 60 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-4565
SELECT ALL COUNT ( * ) + - - 37 + - 60 AS col1
----
-22

query II rowsort
SELECT - 87 - - - 65 * 37 * + 50 col0, + 36 * + + 72 AS col0
----
-120337
2592

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4567
SELECT ALL + COALESCE ( 76, + MAX( - + NULLIF ( - 27, 52 ) ) + + 48 + + - 22 DIV - + 19 * 60 ) * + - 79 - + + 27 AS col0, 39
----
-6031
39

skipif mysql # not compatible
query II rowsort label-4567
SELECT ALL + COALESCE ( 76, + MAX ( - + NULLIF ( - 27, 52 ) ) + + 48 + + - 22 / - + 19 * 60 ) * + - 79 - + + 27 AS col0, 39
----
-6031
39

query I rowsort
SELECT DISTINCT ( + ( + 96 ) )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT ALL + COUNT( * ) + - COUNT( * ) * - 85 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-4569
SELECT ALL + COUNT ( * ) + - COUNT ( * ) * - 85 AS col2
----
86

query I rowsort
SELECT + 57 * - 13
----
-741

onlyif mysql # aggregate syntax: 
query II rowsort label-4571
SELECT DISTINCT ( - 92 ) - + + 86 + COUNT( * ) * - - 40 + CASE + 6 WHEN - 30 THEN NULL WHEN + ( ( - + ( - 54 ) ) ) * + 14 * + NULLIF ( + ( + 23 ), - SUM( DISTINCT - 80 ) ) THEN + COUNT( * ) END + - 94, COUNT( * ) * - - 60 AS col1
----
NULL
60

skipif mysql # not compatible
query II rowsort label-4571
SELECT DISTINCT ( - 92 ) - + + 86 + COUNT ( * ) * - - 40 + CASE + 6 WHEN - 30 THEN NULL WHEN + ( ( - + ( - 54 ) ) ) * + 14 * + NULLIF ( + ( + 23 ), - SUM ( DISTINCT - 80 ) ) THEN + COUNT ( * ) END + - 94, COUNT ( * ) * - - 60 AS col1
----
NULL
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4572
SELECT + 21 * 51 AS col2, 91 DIV + COUNT( 10 ) + COUNT( * ) AS col2
----
1071
92

skipif mysql # not compatible
query II rowsort label-4572
SELECT + 21 * 51 AS col2, 91 / + COUNT ( 10 ) + COUNT ( * ) AS col2
----
1071
92

query I rowsort
SELECT + 44 * - 4
----
-176

onlyif mysql # DIV for integer division: 
query II rowsort label-4574
SELECT ALL - 91 DIV 23 col2, - 44 AS col2
----
-3
-44

skipif mysql # not compatible
query II rowsort label-4574
SELECT ALL - 91 / 23 col2, - 44 AS col2
----
-3
-44

query I rowsort
SELECT + ( - - 52 ) AS col0
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4576
SELECT DISTINCT 36 * - ( + COUNT( * ) ) DIV 81 - 60 col2
----
-60

skipif mysql # not compatible
query I rowsort label-4576
SELECT DISTINCT 36 * - ( + COUNT ( * ) ) / 81 - 60 col2
----
-60

query I rowsort
SELECT ALL + 67 * - ( 74 ) AS col2
----
-4958

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4578
SELECT + + 61 * SUM( + 69 ) DIV ( 49 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-4578
SELECT + + 61 * SUM ( + 69 ) / ( 49 ) AS col0
----
85

query I rowsort
SELECT ALL 94 * - - 72 AS col1
----
6768

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4580
SELECT - ( COUNT( * ) ) DIV + COUNT( - + 67 ) + + 87
----
86

skipif mysql # not compatible
query I rowsort label-4580
SELECT - ( COUNT ( * ) ) / + COUNT ( - + 67 ) + + 87
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4581
SELECT ALL 21 * CAST( + - 12 AS SIGNED ) AS col0
----
-252

skipif mysql # not compatible
query I rowsort label-4581
SELECT ALL 21 * CAST ( + - 12 AS INTEGER ) AS col0
----
-252

query I rowsort
SELECT + + 9 + - 68
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4583
SELECT ALL + CAST( - + 4 AS SIGNED ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-4583
SELECT ALL + CAST ( - + 4 AS INTEGER ) AS col1
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-4584
SELECT ALL 57 DIV + 17 + + 63 + ( + 71 ) col0
----
137

skipif mysql # not compatible
query I rowsort label-4584
SELECT ALL 57 / + 17 + + 63 + ( + 71 ) col0
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT DISTINCT + 90 * - 11 * 54 + + SUM( DISTINCT - + 99 )
----
-53559

skipif mysql # not compatible
query I rowsort label-4585
SELECT DISTINCT + 90 * - 11 * 54 + + SUM ( DISTINCT - + 99 )
----
-53559

query I rowsort
SELECT + 54 + + 99 * - 69 AS col1
----
-6777

query I rowsort
SELECT ALL 23 + + 7 * + 84 AS col2
----
611

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT COUNT( * ) * - COUNT( * ) + 89
----
88

skipif mysql # not compatible
query I rowsort label-4588
SELECT COUNT ( * ) * - COUNT ( * ) + 89
----
88

query I rowsort
SELECT 19 + + 37 AS col0
----
56

query I rowsort
SELECT DISTINCT + 19 * + 62
----
1178

query I rowsort
SELECT ALL - 47 + + 92 AS col0
----
45

query I rowsort
SELECT 9 + - 67 col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT ALL + ( + 77 ) + COALESCE ( + 36, - 55 - - 74 + - + NULLIF ( COUNT( * ), - 0 + + 41 ) - + + COUNT( * ) + - 17 )
----
113

skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL + ( + 77 ) + COALESCE ( + 36, - 55 - - 74 + - + NULLIF ( COUNT ( * ), - 0 + + 41 ) - + + COUNT ( * ) + - 17 )
----
113

query I rowsort
SELECT 19 + + 96 + + 81 * - 46 AS col1
----
-3611

query I rowsort
SELECT DISTINCT + 29 - 72
----
-43

query I rowsort
SELECT 15 + - 73
----
-58

query I rowsort
SELECT 18 * 28 * + - ( 81 )
----
-40824

query I rowsort
SELECT 40 + - 34
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT - + COUNT( ALL - + 64 )
----
-1

skipif mysql # not compatible
query I rowsort label-4599
SELECT - + COUNT ( ALL - + 64 )
----
-1

query II rowsort
SELECT ALL - 55, 67 + 35 AS col0
----
-55
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4601
SELECT 45 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4601
SELECT 45 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 22 + - - 66 AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT COUNT( * ) * - 42
----
-42

skipif mysql # not compatible
query I rowsort label-4603
SELECT COUNT ( * ) * - 42
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-4604
SELECT DISTINCT 23 DIV + 12 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4604
SELECT DISTINCT 23 / + 12 AS col2
----
1

query I rowsort
SELECT ALL - 44 + - 46 AS col0
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-4606
SELECT DISTINCT - 85 DIV + 85
----
-1

skipif mysql # not compatible
query I rowsort label-4606
SELECT DISTINCT - 85 / + 85
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT ALL - + SUM( - 19 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL - + SUM ( - 19 ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-4608
SELECT - COALESCE ( - 13, + 27 ) * - 44 * - 58 * - - 83, 49 * + ( + + 38 ) + 79 * - COUNT( * ) AS col1
----
2753608
1783

skipif mysql # not compatible
query II rowsort label-4608
SELECT - COALESCE ( - 13, + 27 ) * - 44 * - 58 * - - 83, 49 * + ( + + 38 ) + 79 * - COUNT ( * ) AS col1
----
2753608
1783

query I rowsort
SELECT ALL - 94 * + 53 AS col2
----
-4982

query I rowsort
SELECT ALL 94 + 72 + - 6 + - - 31
----
191

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4611
SELECT ALL - - CAST( COUNT( * ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4611
SELECT ALL - - CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
1

query I rowsort
SELECT DISTINCT + 61 + 92
----
153

onlyif mysql # aggregate syntax: 
query II rowsort label-4613
SELECT DISTINCT - 50 + + 19 + - COUNT( * ) AS col1, - 39 AS col0
----
-32
-39

skipif mysql # not compatible
query II rowsort label-4613
SELECT DISTINCT - 50 + + 19 + - COUNT ( * ) AS col1, - 39 AS col0
----
-32
-39

query I rowsort
SELECT + 61 * 88
----
5368

onlyif mysql # aggregate syntax: 
query II rowsort label-4615
SELECT + 82, ( 99 ) * + COUNT( - 72 ) AS col1
----
82
99

skipif mysql # not compatible
query II rowsort label-4615
SELECT + 82, ( 99 ) * + COUNT ( - 72 ) AS col1
----
82
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT ALL ( + COUNT( * ) ) + + 2 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-4616
SELECT ALL ( + COUNT ( * ) ) + + 2 AS col2
----
3

query I rowsort
SELECT ( - + 57 ) * + ( + + 70 ) AS col0
----
-3990

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT ALL COUNT( * ) * 88 * + - ( MIN( DISTINCT 54 ) )
----
-4752

skipif mysql # not compatible
query I rowsort label-4618
SELECT ALL COUNT ( * ) * 88 * + - ( MIN ( DISTINCT 54 ) )
----
-4752

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT DISTINCT + SUM( ALL - - 49 ) - 43 + - ( - 92 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-4619
SELECT DISTINCT + SUM ( ALL - - 49 ) - 43 + - ( - 92 ) AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT + MAX( DISTINCT + + 88 )
----
88

skipif mysql # not compatible
query I rowsort label-4620
SELECT + MAX ( DISTINCT + + 88 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT ALL ( COUNT( * ) ) - - 73 - + COUNT( * ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-4621
SELECT ALL ( COUNT ( * ) ) - - 73 - + COUNT ( * ) AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT COUNT( * ) + 3 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-4622
SELECT COUNT ( * ) + 3 AS col2
----
4

query I rowsort
SELECT 18 + - 59 AS col0
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4624
SELECT 53 DIV - COALESCE ( - SUM( ALL 90 ), + - 11 )
----
0

skipif mysql # not compatible
query I rowsort label-4624
SELECT 53 / - COALESCE ( - SUM ( ALL 90 ), + - 11 )
----
0

query I rowsort
SELECT 24 * ( - 65 ) * + + 81
----
-126360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4626
SELECT DISTINCT - CASE - MAX( DISTINCT - + 53 ) WHEN - 1 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE - 76 + - + CAST( - - CAST( 53 AS SIGNED ) AS SIGNED ) END * - 16
----
-2064

skipif mysql # not compatible
query I rowsort label-4626
SELECT DISTINCT - CASE - MAX ( DISTINCT - + 53 ) WHEN - 1 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE - 76 + - + CAST ( - - CAST ( 53 AS INTEGER ) AS INTEGER ) END * - 16
----
-2064

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4627
SELECT - MAX( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4627
SELECT - MAX ( - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT ALL + 7 * - COUNT( * ) * 46
----
-322

skipif mysql # not compatible
query I rowsort label-4628
SELECT ALL + 7 * - COUNT ( * ) * 46
----
-322

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4629
SELECT ALL 15, CAST( NULL AS SIGNED ) + + 70 AS col0
----
15
NULL

skipif mysql # not compatible
query II rowsort label-4629
SELECT ALL 15, CAST ( NULL AS INTEGER ) + + 70 AS col0
----
15
NULL

query I rowsort
SELECT 43 - + 69 + - - 46 + + 63 * 72 AS col2
----
4556

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4631
SELECT ALL 3 * - - CAST( 34 AS SIGNED )
----
102

skipif mysql # not compatible
query I rowsort label-4631
SELECT ALL 3 * - - CAST ( 34 AS INTEGER )
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT DISTINCT CASE - + 42 WHEN - ( + MIN( ( 78 ) ) ) THEN + 43 + CASE - 93 WHEN - - 79 / 50 THEN + 99 ELSE NULL END + 81 WHEN - 27 THEN NULL WHEN + 79 * COUNT( * ) - COUNT( * ) THEN NULL ELSE + + 79 END * - COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-4632
SELECT DISTINCT CASE - + 42 WHEN - ( + MIN ( ( 78 ) ) ) THEN + 43 + CASE - 93 WHEN - - 79 / 50 THEN + 99 ELSE NULL END + 81 WHEN - 27 THEN NULL WHEN + 79 * COUNT ( * ) - COUNT ( * ) THEN NULL ELSE + + 79 END * - COUNT ( * )
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-4633
SELECT ALL MAX( DISTINCT - - 96 ) col1, + MAX( ALL + 26 ) * 62
----
96
1612

skipif mysql # not compatible
query II rowsort label-4633
SELECT ALL MAX ( DISTINCT - - 96 ) col1, + MAX ( ALL + 26 ) * 62
----
96
1612

query II rowsort
SELECT - 40 AS col2, 76 AS col1
----
-40
76

query I rowsort
SELECT DISTINCT + ( - 41 ) + 54
----
13

query I rowsort
SELECT - ( + 74 ) * + 25
----
-1850

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT ALL + - 65 + + COUNT( + 8 ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-4637
SELECT ALL + - 65 + + COUNT ( + 8 ) AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT 70 * + - 91 * - + 38 * + 40 + + - SUM( DISTINCT - 11 ) + 18 - - - 66 - 93 * + 65 * ( 64 ) * 55
----
-11596037

skipif mysql # not compatible
query I rowsort label-4638
SELECT 70 * + - 91 * - + 38 * + 40 + + - SUM ( DISTINCT - 11 ) + 18 - - - 66 - 93 * + 65 * ( 64 ) * 55
----
-11596037

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT DISTINCT - 45 + - - COALESCE ( - - 54, + CASE WHEN ( NULL ) IS NULL THEN + - ( ( COUNT( * ) ) ) ELSE NULL END )
----
9

skipif mysql # not compatible
query I rowsort label-4639
SELECT DISTINCT - 45 + - - COALESCE ( - - 54, + CASE WHEN ( NULL ) IS NULL THEN + - ( ( COUNT ( * ) ) ) ELSE NULL END )
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4640
SELECT DISTINCT - COALESCE ( 14, - ( - - CAST( NULL AS SIGNED ) ) + 46, 8 ) * - + 3 + 89 + + MAX( - COALESCE ( - - 8, 17 ) ) AS col0
----
123

skipif mysql # not compatible
query I rowsort label-4640
SELECT DISTINCT - COALESCE ( 14, - ( - - CAST ( NULL AS INTEGER ) ) + 46, 8 ) * - + 3 + 89 + + MAX ( - COALESCE ( - - 8, 17 ) ) AS col0
----
123

query I rowsort
SELECT ALL 39 * 29
----
1131

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT DISTINCT COALESCE ( - + MAX( DISTINCT - 20 ), + COUNT( * ) ) * 79 + - + 89 + + 15 * - - 84
----
2751

skipif mysql # not compatible
query I rowsort label-4642
SELECT DISTINCT COALESCE ( - + MAX ( DISTINCT - 20 ), + COUNT ( * ) ) * 79 + - + 89 + + 15 * - - 84
----
2751

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT + + 28 * - + COUNT( * ) * + 54 * + + 36 + 15 + - 80 col1
----
-54497

skipif mysql # not compatible
query I rowsort label-4643
SELECT + + 28 * - + COUNT ( * ) * + 54 * + + 36 + 15 + - 80 col1
----
-54497

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4644
SELECT ALL + + CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4644
SELECT ALL + + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4645
SELECT ALL + 98, 81 * + COUNT( * ) + + 41 - - + 92 + - - 95 col0
----
98
309

skipif mysql # not compatible
query II rowsort label-4645
SELECT ALL + 98, 81 * + COUNT ( * ) + + 41 - - + 92 + - - 95 col0
----
98
309

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4646
SELECT COUNT( - ( + CAST( NULL AS SIGNED ) ) ) DIV + + 45 + + 53 + + COUNT( * ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-4646
SELECT COUNT ( - ( + CAST ( NULL AS INTEGER ) ) ) / + + 45 + + 53 + + COUNT ( * ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT + - COUNT( DISTINCT - 98 ) * - CASE - 3 WHEN - 39 - - + 68 THEN COUNT( * ) END + COUNT( * ) * + MAX( - 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4647
SELECT + - COUNT ( DISTINCT - 98 ) * - CASE - 3 WHEN - 39 - - + 68 THEN COUNT ( * ) END + COUNT ( * ) * + MAX ( - 29 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT - MIN( ALL - - 8 ) * - + 16 AS col2
----
128

skipif mysql # not compatible
query I rowsort label-4648
SELECT - MIN ( ALL - - 8 ) * - + 16 AS col2
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4649
SELECT - + CAST( MIN( - 67 ) AS SIGNED ) + 6
----
73

skipif mysql # not compatible
query I rowsort label-4649
SELECT - + CAST ( MIN ( - 67 ) AS INTEGER ) + 6
----
73

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4650
SELECT ALL - ( + COALESCE ( 16, + + 68 DIV + - 80 DIV - CAST( NULL AS SIGNED ) ) ) * + ( + ( + + 34 ) ) * + 79 + + + 85 DIV + 59
----
-42975

skipif mysql # not compatible
query I rowsort label-4650
SELECT ALL - ( + COALESCE ( 16, + + 68 / + - 80 / - CAST ( NULL AS INTEGER ) ) ) * + ( + ( + + 34 ) ) * + 79 + + + 85 / + 59
----
-42975

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT + MAX( + COALESCE ( - 89, + + 86 ) ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-4651
SELECT + MAX ( + COALESCE ( - 89, + + 86 ) ) AS col2
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-4652
SELECT ALL 23 DIV + 70 * + 40 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4652
SELECT ALL 23 / + 70 * + 40 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT + MAX( 48 )
----
48

skipif mysql # not compatible
query I rowsort label-4653
SELECT + MAX ( 48 )
----
48

query I rowsort
SELECT + 64 + + - 30
----
34

query I rowsort
SELECT 84 * + 79 + - 17 * + 12 + 13 col1
----
6445

onlyif mysql # aggregate syntax: 
query II rowsort label-4656
SELECT MIN( DISTINCT + - 37 ) AS col0, + SUM( - 79 ) AS col2
----
-37
-79

skipif mysql # not compatible
query II rowsort label-4656
SELECT MIN ( DISTINCT + - 37 ) AS col0, + SUM ( - 79 ) AS col2
----
-37
-79

query I rowsort
SELECT 20 * - 65 + - 39
----
-1339

query I rowsort
SELECT ALL 16 * - 34 * - 86 col0
----
46784

query I rowsort
SELECT + 22 * - 91
----
-2002

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT + 27 * - COUNT( * ) * COUNT( * ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-4660
SELECT + 27 * - COUNT ( * ) * COUNT ( * ) AS col2
----
-27

query II rowsort
SELECT + 98 + 10 AS col1, + ( + 42 ) AS col1
----
108
42

query I rowsort
SELECT DISTINCT 62 * - - 35
----
2170

onlyif mysql # DIV for integer division: 
query I rowsort label-4663
SELECT DISTINCT - 39 DIV - 45
----
0

skipif mysql # not compatible
query I rowsort label-4663
SELECT DISTINCT - 39 / - 45
----
0

query I rowsort
SELECT - ( 71 ) col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT - ( COUNT( ALL + 43 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4665
SELECT - ( COUNT ( ALL + 43 ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4666
SELECT ALL - CASE + 10 WHEN NULLIF ( + COUNT( * ), - MIN( DISTINCT - 14 ) ) THEN NULL WHEN 34 * - - 1 + - + 18 THEN ( - ( + - 14 ) ) ELSE + 17 + + 24 + - 80 END DIV ( 34 ) AS col1, - 99 + + COUNT( * )
----
1
-98

skipif mysql # not compatible
query II rowsort label-4666
SELECT ALL - CASE + 10 WHEN NULLIF ( + COUNT ( * ), - MIN ( DISTINCT - 14 ) ) THEN NULL WHEN 34 * - - 1 + - + 18 THEN ( - ( + - 14 ) ) ELSE + 17 + + 24 + - 80 END / ( 34 ) AS col1, - 99 + + COUNT ( * )
----
1
-98

query I rowsort
SELECT - 99 * - 18 AS col0
----
1782

query I rowsort
SELECT + COALESCE ( 81, + 42 ) * + + 11 * - 58
----
-51678

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT ALL 27 + - COUNT( * ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-4669
SELECT ALL 27 + - COUNT ( * ) AS col0
----
26

query I rowsort
SELECT ALL + NULLIF ( + 92, + 11 + - 75 - - 60 + + 63 ) AS col2
----
92

query III rowsort
SELECT ALL - 16 + - 35, - 23 * + 16 + - 88 AS col1, - + 59 AS col1
----
-51
-456
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4672
SELECT ALL + - 25 + - - 11 + + 98 + + 75 + + 49 + + 73 * + 78 * + COUNT( * ) + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL + - 25 + - - 11 + + 98 + + 75 + + 49 + + 73 * + 78 * + COUNT ( * ) + + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT + - MAX( ALL - 1 ) * 79
----
79

skipif mysql # not compatible
query I rowsort label-4673
SELECT + - MAX ( ALL - 1 ) * 79
----
79

query I rowsort
SELECT - 16 + - 75 AS col1
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4675
SELECT ALL - 45 DIV - 31 - - + COALESCE ( 93, - MIN( - + 58 ) * + + SUM( 73 ) ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-4675
SELECT ALL - 45 / - 31 - - + COALESCE ( 93, - MIN ( - + 58 ) * + + SUM ( 73 ) ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT ALL + - MAX( DISTINCT + 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-4676
SELECT ALL + - MAX ( DISTINCT + 12 )
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4677
SELECT DISTINCT + ( - CAST( - NULLIF ( - + CAST( - 97 AS SIGNED ), + 57 * + 55 ) AS SIGNED ) ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-4677
SELECT DISTINCT + ( - CAST ( - NULLIF ( - + CAST ( - 97 AS INTEGER ), + 57 * + 55 ) AS INTEGER ) ) AS col2
----
97

query I rowsort
SELECT ALL - ( + 70 ) * + + 0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4679
SELECT ALL + 72 DIV + 80 - 7 + 0 + + 62 * CAST( NULLIF ( + 23, + 68 ) AS SIGNED ) * - 20 AS col2
----
-28527

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL + 72 / + 80 - 7 + 0 + + 62 * CAST ( NULLIF ( + 23, + 68 ) AS INTEGER ) * - 20 AS col2
----
-28527

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4680
SELECT ALL + CAST( + + 53 AS SIGNED ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-4680
SELECT ALL + CAST ( + + 53 AS INTEGER ) AS col0
----
53

query II rowsort
SELECT + 80, 94 * + - 6 AS col1
----
80
-564

onlyif mysql # DIV for integer division: 
query II rowsort label-4682
SELECT ALL + 33 DIV + NULLIF ( + + 60, + + ( 28 ) + + 99 + + 4 ) - + - 50 AS col1, 86
----
50
86

skipif mysql # not compatible
query II rowsort label-4682
SELECT ALL + 33 / + NULLIF ( + + 60, + + ( 28 ) + + 99 + + 4 ) - + - 50 AS col1, 86
----
50
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT + MAX( DISTINCT + 80 )
----
80

skipif mysql # not compatible
query I rowsort label-4683
SELECT + MAX ( DISTINCT + 80 )
----
80

query I rowsort
SELECT DISTINCT + ( + 37 ) AS col2
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-4685
SELECT - 58 DIV + COALESCE ( + 43, - COALESCE ( 70, + 78 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4685
SELECT - 58 / + COALESCE ( + 43, - COALESCE ( 70, + 78 ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4686
SELECT ALL + CAST( - 37 AS SIGNED )
----
-37

skipif mysql # not compatible
query I rowsort label-4686
SELECT ALL + CAST ( - 37 AS INTEGER )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT DISTINCT + COUNT( DISTINCT - ( - 8 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4687
SELECT DISTINCT + COUNT ( DISTINCT - ( - 8 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT - 4 * SUM( - + 23 )
----
92

skipif mysql # not compatible
query I rowsort label-4688
SELECT - 4 * SUM ( - + 23 )
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4689
SELECT + COUNT( * ) DIV + - 45
----
0

skipif mysql # not compatible
query I rowsort label-4689
SELECT + COUNT ( * ) / + - 45
----
0

query II rowsort
SELECT ALL + 73 AS col1, 27 * - 55 + - + 91 AS col2
----
73
-1576

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT NULLIF ( 90, - 85 + 22 - + + 97 + - 68 + - COUNT( * ) * + 22 + + + 42 ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-4691
SELECT NULLIF ( 90, - 85 + 22 - + + 97 + - 68 + - COUNT ( * ) * + 22 + + + 42 ) AS col0
----
90

query I rowsort
SELECT ALL 68 * - 10 AS col2
----
-680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4693
SELECT ALL + CAST( + COUNT( ALL - 46 ) AS SIGNED ) DIV + 15 + + 68
----
68

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL + CAST ( + COUNT ( ALL - 46 ) AS INTEGER ) / + 15 + + 68
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4694
SELECT + COUNT( DISTINCT - 95 ) / - MIN( + 52 ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4694
SELECT + COUNT ( DISTINCT - 95 ) / - MIN ( + 52 ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT + COALESCE ( + + MAX( ALL - 34 ), + - 23 + - - 33 ) col1
----
-34

skipif mysql # not compatible
query I rowsort label-4695
SELECT + COALESCE ( + + MAX ( ALL - 34 ), + - 23 + - - 33 ) col1
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4696
SELECT + ( - CASE CAST( NULL AS SIGNED ) WHEN COUNT( * ) THEN NULL WHEN + + AVG ( - 46 ) THEN - ( + 53 ) * - CAST( - + 27 AS SIGNED ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4696
SELECT + ( - CASE CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) THEN NULL WHEN + + AVG ( - 46 ) THEN - ( + 53 ) * - CAST ( - + 27 AS INTEGER ) END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4697
SELECT - COUNT( * ) + 42 DIV + - COUNT( * ), MAX( DISTINCT - - 83 ) * - 82 col0
----
-43
-6806

skipif mysql # not compatible
query II rowsort label-4697
SELECT - COUNT ( * ) + 42 / + - COUNT ( * ), MAX ( DISTINCT - - 83 ) * - 82 col0
----
-43
-6806

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT DISTINCT 88 * + COUNT( * ) + 93
----
181

skipif mysql # not compatible
query I rowsort label-4698
SELECT DISTINCT 88 * + COUNT ( * ) + 93
----
181

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4699
SELECT + - CAST( NULL AS DECIMAL ) + - 41 / - 94 + + ( + 1 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4699
SELECT + - CAST ( NULL AS REAL ) + - 41 / - 94 + + ( + 1 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT DISTINCT 31 * COUNT( * ) + + 83
----
114

skipif mysql # not compatible
query I rowsort label-4700
SELECT DISTINCT 31 * COUNT ( * ) + + 83
----
114

query I rowsort
SELECT + 55 + 88
----
143

onlyif mysql # aggregate syntax: 
query II rowsort label-4702
SELECT ALL - COUNT( * ) col0, 76 + 89 AS col2
----
-1
165

skipif mysql # not compatible
query II rowsort label-4702
SELECT ALL - COUNT ( * ) col0, 76 + 89 AS col2
----
-1
165

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT + MIN( ALL 59 ) * - 1
----
-59

skipif mysql # not compatible
query I rowsort label-4703
SELECT + MIN ( ALL 59 ) * - 1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT ALL ( - NULLIF ( - - COUNT( * ), - - 1 ) ) + - + 4 / + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-4704
SELECT ALL ( - NULLIF ( - - COUNT ( * ), - - 1 ) ) + - + 4 / + 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT ALL + 87 + - 0 + + 54 + NULLIF ( 24, + 34 ) - - COUNT( * ) * - 43 AS col2
----
122

skipif mysql # not compatible
query I rowsort label-4705
SELECT ALL + 87 + - 0 + + 54 + NULLIF ( 24, + 34 ) - - COUNT ( * ) * - 43 AS col2
----
122

onlyif mysql # DIV for integer division: 
query I rowsort label-4706
SELECT DISTINCT - 23 DIV 25
----
0

skipif mysql # not compatible
query I rowsort label-4706
SELECT DISTINCT - 23 / 25
----
0

query I rowsort
SELECT ALL - 7 * 70 - + 82 * - + 96
----
7382

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4708
SELECT - 30 DIV + - 39 * - CAST( COUNT( * ) AS SIGNED ) * - COUNT( * ) + + 96 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-4708
SELECT - 30 / + - 39 * - CAST ( COUNT ( * ) AS INTEGER ) * - COUNT ( * ) + + 96 AS col1
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4709
SELECT ALL + COALESCE ( + ( + 30 ), + + COUNT( * ) * - 48, + + 32 ) - - 54 * CAST( NULL AS SIGNED ) / 38
----
NULL

skipif mysql # not compatible
query I rowsort label-4709
SELECT ALL + COALESCE ( + ( + 30 ), + + COUNT ( * ) * - 48, + + 32 ) - - 54 * CAST ( NULL AS INTEGER ) / 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT 55 - - COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-4710
SELECT 55 - - COUNT ( * )
----
56

query II rowsort
SELECT - + 71 AS col2, + 77
----
-71
77

query I rowsort
SELECT DISTINCT 45 * + 86 * + + 14
----
54180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4713
SELECT COUNT( * ) DIV + 16 + - 60 + - 80 * - + 89
----
7060

skipif mysql # not compatible
query I rowsort label-4713
SELECT COUNT ( * ) / + 16 + - 60 + - 80 * - + 89
----
7060

query I rowsort
SELECT ALL - 11 * - 26
----
286

onlyif mysql # DIV for integer division: 
query I rowsort label-4715
SELECT DISTINCT + 38 DIV - 64
----
0

skipif mysql # not compatible
query I rowsort label-4715
SELECT DISTINCT + 38 / - 64
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4716
SELECT DISTINCT 88 * + 82 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4716
SELECT DISTINCT 88 * + 82 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4717
SELECT ALL - MIN( ALL - 61 ), 38 AS col2
----
61
38

skipif mysql # not compatible
query II rowsort label-4717
SELECT ALL - MIN ( ALL - 61 ), 38 AS col2
----
61
38

onlyif mysql # DIV for integer division: 
query I rowsort label-4718
SELECT - 23 DIV + 33 + - 71 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-4718
SELECT - 23 / + 33 + - 71 AS col0
----
-71

query I rowsort
SELECT 44 - - 15 * - - 26 AS col0
----
434

query I rowsort
SELECT 47 * + 70 * - + 58
----
-190820

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT COUNT( * ) + - 28 + - 65 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-4721
SELECT COUNT ( * ) + - 28 + - 65 AS col2
----
-92

query I rowsort
SELECT 34 + + 86 + + 68 + - 11 AS col1
----
177

query I rowsort
SELECT 37 * - + ( + + 20 )
----
-740

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT DISTINCT - MIN( + 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-4724
SELECT DISTINCT - MIN ( + 87 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT ALL - 94 + COUNT( * ) * - - 87 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-4725
SELECT ALL - 94 + COUNT ( * ) * - - 87 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT COUNT( ALL + 56 ) * + 72 + + + 72
----
144

skipif mysql # not compatible
query I rowsort label-4726
SELECT COUNT ( ALL + 56 ) * + 72 + + + 72
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT DISTINCT + SUM( - + 27 ) * - COUNT( * ) * + 83
----
2241

skipif mysql # not compatible
query I rowsort label-4727
SELECT DISTINCT + SUM ( - + 27 ) * - COUNT ( * ) * + 83
----
2241

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT 63 + - + 32 * - CASE CASE - 76 WHEN - 50 THEN + - 53 WHEN COUNT( * ) * - 85 THEN NULL WHEN 22 THEN NULL END WHEN 50 THEN + - 23 + - + 90 + - 75 + - + ( - 83 ) - 17 + + 11 * - 75 + 49 * - 36 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4728
SELECT 63 + - + 32 * - CASE CASE - 76 WHEN - 50 THEN + - 53 WHEN COUNT ( * ) * - 85 THEN NULL WHEN 22 THEN NULL END WHEN 50 THEN + - 23 + - + 90 + - 75 + - + ( - 83 ) - 17 + + 11 * - 75 + 49 * - 36 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 49 * 30 AS col0
----
1470

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT ALL - 94 + - COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-4730
SELECT ALL - 94 + - COUNT ( * )
----
-95

query II rowsort
SELECT 79 + - 37 AS col0, - 37 AS col1
----
42
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4732
SELECT 53 * CASE + COALESCE ( + AVG ( - 56 ), 99 + 97 ) WHEN - COUNT( * ) - - + 54 * + ( + 50 ) THEN - ( - 6 ) WHEN - 53 * - COUNT( * ) - - COUNT( * ) * + 72 * - 54 THEN + - 90 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4732
SELECT 53 * CASE + COALESCE ( + AVG ( - 56 ), 99 + 97 ) WHEN - COUNT ( * ) - - + 54 * + ( + 50 ) THEN - ( - 6 ) WHEN - 53 * - COUNT ( * ) - - COUNT ( * ) * + 72 * - 54 THEN + - 90 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + 26, + + 97 ) AS col2
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4734
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 11 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4734
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 11 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4735
SELECT DISTINCT + + 17 DIV - + ( 45 ) + - 13
----
-13

skipif mysql # not compatible
query I rowsort label-4735
SELECT DISTINCT + + 17 / - + ( 45 ) + - 13
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT DISTINCT COALESCE ( + + 93, 6 ) + - 97 + - ( - 74 ) + + ( + COUNT( * ) )
----
71

skipif mysql # not compatible
query I rowsort label-4736
SELECT DISTINCT COALESCE ( + + 93, 6 ) + - 97 + - ( - 74 ) + + ( + COUNT ( * ) )
----
71

query I rowsort
SELECT ALL 5 + 2 + - + 72 AS col2
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4738
SELECT 14 * - 28 + - - 90 * 91 + - SUM( ALL - - 4 ) + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4738
SELECT 14 * - 28 + - - 90 * 91 + - SUM ( ALL - - 4 ) + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT + 14 + + + COUNT( DISTINCT 17 ) + - 15 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4739
SELECT + 14 + + + COUNT ( DISTINCT 17 ) + - 15 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4740
SELECT - 19 * + CAST( - 19 AS SIGNED ) * + - COUNT( * )
----
-361

skipif mysql # not compatible
query I rowsort label-4740
SELECT - 19 * + CAST ( - 19 AS INTEGER ) * + - COUNT ( * )
----
-361

query I rowsort
SELECT DISTINCT - 33 - 13 AS col2
----
-46

query I rowsort
SELECT - ( + - 43 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT DISTINCT + 73 - COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-4743
SELECT DISTINCT + 73 - COUNT ( * )
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-4744
SELECT - 78 + - COALESCE ( + 78, + - COUNT( * ) ) AS col1, - COUNT( * ) * + 1 + + + ( - 18 )
----
-156
-19

skipif mysql # not compatible
query II rowsort label-4744
SELECT - 78 + - COALESCE ( + 78, + - COUNT ( * ) ) AS col1, - COUNT ( * ) * + 1 + + + ( - 18 )
----
-156
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-4745
SELECT 44 + - - COALESCE ( 47, 21 DIV + 10 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-4745
SELECT 44 + - - COALESCE ( 47, 21 / + 10 ) AS col2
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4746
SELECT ( - + ( + - CAST( NULL AS SIGNED ) ) ) / - COUNT( * ) - - + COUNT( * ) AS col1, 16
----
NULL
16

skipif mysql # not compatible
query II rowsort label-4746
SELECT ( - + ( + - CAST ( NULL AS INTEGER ) ) ) / - COUNT ( * ) - - + COUNT ( * ) AS col1, 16
----
NULL
16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4747
SELECT CAST( + COALESCE ( - 24, + 25 / - ( + 33 ) ) AS DECIMAL ) + - - 36 + ( + 92 ) + 42 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4747
SELECT CAST ( + COALESCE ( - 24, + 25 / - ( + 33 ) ) AS REAL ) + - - 36 + ( + 92 ) + 42 + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4748
SELECT ALL CAST( NULL AS SIGNED ) / - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4748
SELECT ALL CAST ( NULL AS INTEGER ) / - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT 25 * - - COUNT( * ) + 62
----
87

skipif mysql # not compatible
query I rowsort label-4749
SELECT 25 * - - COUNT ( * ) + 62
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT ALL 94 * - SUM( + - 52 ) + + + 54 * + 92 AS col1
----
9856

skipif mysql # not compatible
query I rowsort label-4750
SELECT ALL 94 * - SUM ( + - 52 ) + + + 54 * + 92 AS col1
----
9856

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4751
SELECT CAST( NULL AS DECIMAL ) * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4751
SELECT CAST ( NULL AS REAL ) * COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4752
SELECT ALL CAST( NULL AS SIGNED ) * - CAST( - + 58 AS SIGNED ) DIV + 63 * 21 col2, 76 * 32 DIV COUNT( * )
----
NULL
2432

skipif mysql # not compatible
query II rowsort label-4752
SELECT ALL CAST ( NULL AS INTEGER ) * - CAST ( - + 58 AS INTEGER ) / + 63 * 21 col2, 76 * 32 / COUNT ( * )
----
NULL
2432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4753
SELECT ALL NULLIF ( + + 86, 8 * - 85 / + COUNT( * ) * + - 26 * + 73 * - 87 ) * + + CAST( NULL AS SIGNED ) + - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-4753
SELECT ALL NULLIF ( + + 86, 8 * - 85 / + COUNT ( * ) * + - 26 * + 73 * - 87 ) * + + CAST ( NULL AS INTEGER ) + - 36
----
NULL

query II rowsort
SELECT ALL 37 * + 53 + + 86 AS col1, - 39
----
2047
-39

query I rowsort
SELECT ALL 80 * + 8 + + + ( 19 ) col0
----
659

query I rowsort
SELECT 98 * + 62 col2
----
6076

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT ALL + NULLIF ( - - COUNT( * ), + 20 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL + NULLIF ( - - COUNT ( * ), + 20 ) col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4758
SELECT ALL - COUNT( - 53 ) + - 43, - COUNT( * ) * COUNT( * ) DIV 51 * 98 AS col2
----
-44
0

skipif mysql # not compatible
query II rowsort label-4758
SELECT ALL - COUNT ( - 53 ) + - 43, - COUNT ( * ) * COUNT ( * ) / 51 * 98 AS col2
----
-44
0

query I rowsort
SELECT - 37 * - + 51 AS col2
----
1887

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT ALL + ( + - MAX( - 58 ) ) * + - 70 col1
----
-4060

skipif mysql # not compatible
query I rowsort label-4760
SELECT ALL + ( + - MAX ( - 58 ) ) * + - 70 col1
----
-4060

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT ALL + 29 * - COUNT( * ) * - COUNT( * ) - - 16 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-4761
SELECT ALL + 29 * - COUNT ( * ) * - COUNT ( * ) - - 16 AS col0
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4762
SELECT - ( 27 ) * 69 + 55 * - + COALESCE ( + ( + - 98 ), + + COUNT( * ) DIV - 90 * - + SUM( 12 ) + 29 + + - MAX( DISTINCT - 88 ) * - - 32 )
----
3527

skipif mysql # not compatible
query I rowsort label-4762
SELECT - ( 27 ) * 69 + 55 * - + COALESCE ( + ( + - 98 ), + + COUNT ( * ) / - 90 * - + SUM ( 12 ) + 29 + + - MAX ( DISTINCT - 88 ) * - - 32 )
----
3527

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT + + MIN( ALL + 93 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-4763
SELECT + + MIN ( ALL + 93 ) AS col0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4764
SELECT - - CAST( + 74 AS SIGNED ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-4764
SELECT - - CAST ( + 74 AS INTEGER ) AS col2
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4765
SELECT - NULLIF ( + 61, + 22 * + 71 * + CAST( NULL AS SIGNED ) )
----
-61

skipif mysql # not compatible
query I rowsort label-4765
SELECT - NULLIF ( + 61, + 22 * + 71 * + CAST ( NULL AS INTEGER ) )
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4766
SELECT - CAST( - - 48 AS SIGNED )
----
-48

skipif mysql # not compatible
query I rowsort label-4766
SELECT - CAST ( - - 48 AS INTEGER )
----
-48

query I rowsort
SELECT DISTINCT - 77 - 1
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-4768
SELECT ALL 67 AS col1, MIN( DISTINCT + 49 ) + 37
----
67
86

skipif mysql # not compatible
query II rowsort label-4768
SELECT ALL 67 AS col1, MIN ( DISTINCT + 49 ) + 37
----
67
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT ALL ( + COUNT( * ) ) * + 32
----
32

skipif mysql # not compatible
query I rowsort label-4769
SELECT ALL ( + COUNT ( * ) ) * + 32
----
32

query I rowsort
SELECT - - ( - 61 ) * + + 38 + + 49 AS col2
----
-2269

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4771
SELECT + COALESCE ( - - ( - 66 ), + 47 DIV + 83 + - 64, 33 * - 69 ) * COUNT( * ) DIV - 9 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-4771
SELECT + COALESCE ( - - ( - 66 ), + 47 / + 83 + - 64, 33 * - 69 ) * COUNT ( * ) / - 9 AS col0
----
7

query I rowsort
SELECT - 23 - + 46
----
-69

query I rowsort
SELECT DISTINCT + 84 * 73
----
6132

query I rowsort
SELECT ALL 93 + 41 AS col2
----
134

query I rowsort
SELECT - 99 - - 98 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4776
SELECT ALL + CASE 32 WHEN 88 THEN + CAST( NULL AS SIGNED ) ELSE + 9 END * + 54
----
486

skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL + CASE 32 WHEN 88 THEN + CAST ( NULL AS INTEGER ) ELSE + 9 END * + 54
----
486

onlyif mysql # DIV for integer division: 
query I rowsort label-4777
SELECT ALL 65 DIV + 52 + + 17 + - 58 + + NULLIF ( + 95, - 93 - + ( + + 64 ) ) + + 50 col2
----
105

skipif mysql # not compatible
query I rowsort label-4777
SELECT ALL 65 / + 52 + + 17 + - 58 + + NULLIF ( + 95, - 93 - + ( + + 64 ) ) + + 50 col2
----
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4778
SELECT ALL + COALESCE ( + ( 82 ), + + 33 ) DIV + + 47 - - + COUNT( * ) * 34 - - + COUNT( * ) + + 25 DIV 99 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-4778
SELECT ALL + COALESCE ( + ( 82 ), + + 33 ) / + + 47 - - + COUNT ( * ) * 34 - - + COUNT ( * ) + + 25 / 99 AS col1
----
36

query II rowsort
SELECT ALL + 14 AS col0, 7 * - + 72 * - + 93
----
14
46872

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT + COUNT( * ) + - + 7
----
-6

skipif mysql # not compatible
query I rowsort label-4780
SELECT + COUNT ( * ) + - + 7
----
-6

query I rowsort
SELECT DISTINCT 86 * - 95
----
-8170

query I rowsort
SELECT ( - ( - + 77 ) ) AS col2
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4783
SELECT ALL - 22 DIV - 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4783
SELECT ALL - 22 / - 78 AS col0
----
0

query I rowsort
SELECT ALL 80 * - 2
----
-160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4785
SELECT + CAST( NULL AS SIGNED ) * 71 * - + 73 * + 98 + + 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4785
SELECT + CAST ( NULL AS INTEGER ) * 71 * - + 73 * + 98 + + 47 AS col2
----
NULL

query II rowsort
SELECT ALL + 14 AS col0, 89 AS col2
----
14
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT ALL + + SUM( ALL - 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-4787
SELECT ALL + + SUM ( ALL - 61 )
----
-61

query I rowsort
SELECT DISTINCT + 58 * - + 63 AS col2
----
-3654

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4789
SELECT ALL - 0 * + COALESCE ( - 28, - - 40 + 76 * - COUNT( ALL + CAST( NULL AS SIGNED ) ) + + - 81 + - 22 + + + 46 * + ( + + 17 ) ) + - 92 AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-4789
SELECT ALL - 0 * + COALESCE ( - 28, - - 40 + 76 * - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) + + - 81 + - 22 + + + 46 * + ( + + 17 ) ) + - 92 AS col1
----
-92

query I rowsort
SELECT + - 94 * 72 col2
----
-6768

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT DISTINCT 62 * - 16 + 8 - - 97 + COUNT( * ) + 34 * - 29 * 30
----
-30466

skipif mysql # not compatible
query I rowsort label-4791
SELECT DISTINCT 62 * - 16 + 8 - - 97 + COUNT ( * ) + 34 * - 29 * 30
----
-30466

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT - 20 * - - 83 + - - 61 + - COUNT( * ) + + 15 AS col2
----
-1585

skipif mysql # not compatible
query I rowsort label-4792
SELECT - 20 * - - 83 + - - 61 + - COUNT ( * ) + + 15 AS col2
----
-1585

query I rowsort
SELECT + 10 * 70 AS col1
----
700

query II rowsort
SELECT ALL + - 49, ( - 69 ) col1
----
-49
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4795
SELECT + - 37 + - 6 * - CAST( + 4 AS SIGNED ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-4795
SELECT + - 37 + - 6 * - CAST ( + 4 AS INTEGER ) AS col0
----
-13

query II rowsort
SELECT DISTINCT 56 AS col2, 97 * + 36 AS col2
----
56
3492

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT - + 62 * - 38 + + + COUNT( * ) * + 5 AS col0
----
2361

skipif mysql # not compatible
query I rowsort label-4797
SELECT - + 62 * - 38 + + + COUNT ( * ) * + 5 AS col0
----
2361

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4798
SELECT ALL + 56 AS col0, - ( - + CAST( NULL AS SIGNED ) ) - + AVG ( ALL - 85 )
----
56
NULL

skipif mysql # not compatible
query II rowsort label-4798
SELECT ALL + 56 AS col0, - ( - + CAST ( NULL AS INTEGER ) ) - + AVG ( ALL - 85 )
----
56
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4799
SELECT - + 0 AS col1, - ( - + 39 ) * - COUNT( DISTINCT 84 ) * COUNT( * ) AS col1
----
0
-39

skipif mysql # not compatible
query II rowsort label-4799
SELECT - + 0 AS col1, - ( - + 39 ) * - COUNT ( DISTINCT 84 ) * COUNT ( * ) AS col1
----
0
-39

query I rowsort
SELECT - 82 + + - 22 col0
----
-104

query I rowsort
SELECT DISTINCT - 90 * - + 22 col2
----
1980

query I rowsort
SELECT - 96 + + 19
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4803
SELECT - 11 DIV - COUNT( * ), NULLIF ( - COALESCE ( - + 25, - - CAST( NULL AS SIGNED ) + 16 ), 52 * + ( 12 ) + + COUNT( * ) + + COUNT( * ) + - 7 + - + 80 * + + 20 * - 19 ) AS col1
----
11
25

skipif mysql # not compatible
query II rowsort label-4803
SELECT - 11 / - COUNT ( * ), NULLIF ( - COALESCE ( - + 25, - - CAST ( NULL AS INTEGER ) + 16 ), 52 * + ( 12 ) + + COUNT ( * ) + + COUNT ( * ) + - 7 + - + 80 * + + 20 * - 19 ) AS col1
----
11
25

query I rowsort
SELECT ALL - 25 + 48
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT - 23 + + COUNT( * ) * - 52 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-4805
SELECT - 23 + + COUNT ( * ) * - 52 AS col2
----
-75

query I rowsort
SELECT DISTINCT 29 * + 51
----
1479

query I rowsort
SELECT ALL CASE WHEN NOT - 90 IS NOT NULL THEN - 10 * + - 16 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT - MAX( DISTINCT - 55 ) + - 90 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-4808
SELECT - MAX ( DISTINCT - 55 ) + - 90 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT - 58 - + CASE + 34 WHEN - COUNT( * ) + - - 95 THEN NULL ELSE - + COUNT( * ) * + + 28 + 6 * + + 29 END AS col0
----
-204

skipif mysql # not compatible
query I rowsort label-4809
SELECT - 58 - + CASE + 34 WHEN - COUNT ( * ) + - - 95 THEN NULL ELSE - + COUNT ( * ) * + + 28 + 6 * + + 29 END AS col0
----
-204

query I rowsort
SELECT ALL COALESCE ( + 96, - 17 )
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4811
SELECT DISTINCT + 80 + - CAST( 21 AS SIGNED ) + - 50 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-4811
SELECT DISTINCT + 80 + - CAST ( 21 AS INTEGER ) + - 50 AS col0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4812
SELECT - SUM( DISTINCT 81 ) AS col0, 33 * 35 DIV - + 5
----
-81
-231

skipif mysql # not compatible
query II rowsort label-4812
SELECT - SUM ( DISTINCT 81 ) AS col0, 33 * 35 / - + 5
----
-81
-231

query I rowsort
SELECT ALL + ( - 99 ) + 45
----
-54

query I rowsort
SELECT DISTINCT - 7 + + + 9 + + 94 col2
----
96

query I rowsort
SELECT - 22 * + + 88 AS col1
----
-1936

onlyif mysql # DIV for integer division: 
query I rowsort label-4816
SELECT - 40 DIV - 34 col0
----
1

skipif mysql # not compatible
query I rowsort label-4816
SELECT - 40 / - 34 col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4817
SELECT ALL CAST( 12 AS SIGNED ) col1
----
12

skipif mysql # not compatible
query I rowsort label-4817
SELECT ALL CAST ( 12 AS INTEGER ) col1
----
12

query I rowsort
SELECT ALL - 36 * 18 * - - 65 AS col2
----
-42120

query I rowsort
SELECT DISTINCT - 18 * 21 * 25
----
-9450

query I rowsort
SELECT 20 * + 59
----
1180

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT 22 - + + 89 * + 22 + MIN( ALL 64 ) AS col1
----
-1872

skipif mysql # not compatible
query I rowsort label-4821
SELECT 22 - + + 89 * + 22 + MIN ( ALL 64 ) AS col1
----
-1872

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT - MIN( ALL - - 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-4822
SELECT - MIN ( ALL - - 18 )
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4823
SELECT + 64 * + COUNT( * ) AS col0, 64 - 45 DIV + 65 AS col0
----
64
64

skipif mysql # not compatible
query II rowsort label-4823
SELECT + 64 * + COUNT ( * ) AS col0, 64 - 45 / + 65 AS col0
----
64
64

onlyif mysql # aggregate syntax: 
query II rowsort label-4824
SELECT DISTINCT - COUNT( * ) * 60 AS col0, + ( ( - 48 ) ) + + COUNT( * ) * ( - 73 ) AS col2
----
-60
-121

skipif mysql # not compatible
query II rowsort label-4824
SELECT DISTINCT - COUNT ( * ) * 60 AS col0, + ( ( - 48 ) ) + + COUNT ( * ) * ( - 73 ) AS col2
----
-60
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT DISTINCT - + MAX( - 27 ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-4825
SELECT DISTINCT - + MAX ( - 27 ) AS col0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-4826
SELECT DISTINCT - - 5 DIV + + 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4826
SELECT DISTINCT - - 5 / + + 88 AS col2
----
0

query I rowsort
SELECT + 30 * + 43 AS col2
----
1290

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT 68 * COALESCE ( + MIN( ALL 95 ), - ( + 20 ) + + 50 ) AS col0
----
6460

skipif mysql # not compatible
query I rowsort label-4828
SELECT 68 * COALESCE ( + MIN ( ALL 95 ), - ( + 20 ) + + 50 ) AS col0
----
6460

query I rowsort
SELECT + COALESCE ( + 76, + 3 ) * - 16 + - 18 - + + 97
----
-1331

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4830
SELECT 7 - + CAST( - ( 81 ) AS DECIMAL ) / + - 43 * + CASE 95 WHEN + COUNT( * ) THEN 88 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4830
SELECT 7 - + CAST ( - ( 81 ) AS REAL ) / + - 43 * + CASE 95 WHEN + COUNT ( * ) THEN 88 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT - COUNT( + - 65 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4831
SELECT - COUNT ( + - 65 ) col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4832
SELECT ALL 68 + - 50 AS col0, - 62 DIV + COUNT( * )
----
18
-62

skipif mysql # not compatible
query II rowsort label-4832
SELECT ALL 68 + - 50 AS col0, - 62 / + COUNT ( * )
----
18
-62

query I rowsort
SELECT ( + - 29 ) + 83
----
54

query II rowsort
SELECT ALL 75, 29 - + + 39 AS col2
----
75
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-4835
SELECT 94 AS col0, + 97 * + + MIN( 60 ) AS col2
----
94
5820

skipif mysql # not compatible
query II rowsort label-4835
SELECT 94 AS col0, + 97 * + + MIN ( 60 ) AS col2
----
94
5820

query I rowsort
SELECT 34 + - 86 * + 75
----
-6416

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT 82 * SUM( DISTINCT + 38 )
----
3116

skipif mysql # not compatible
query I rowsort label-4837
SELECT 82 * SUM ( DISTINCT + 38 )
----
3116

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT ALL - 3 * - 74 * COUNT( DISTINCT ( 17 ) ) AS col2
----
222

skipif mysql # not compatible
query I rowsort label-4838
SELECT ALL - 3 * - 74 * COUNT ( DISTINCT ( 17 ) ) AS col2
----
222

query II rowsort
SELECT DISTINCT 92, + 65 AS col1
----
92
65

query I rowsort
SELECT 69 - + - 69 AS col1
----
138

query I rowsort
SELECT 72 * - 42
----
-3024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4842
SELECT 78 + - 67 + + COALESCE ( 43, - 57 * - 69 * + 7 + + - 77 + + 36 + 8, - - 1 * - - COUNT( * ) DIV + ( + SUM( 71 ) ) * - + CAST( - + MAX( + 10 ) AS SIGNED ) * COUNT( * ) - 11 DIV CAST( - SUM( ALL + 39 ) AS SIGNED ) )
----
54

skipif mysql # not compatible
query I rowsort label-4842
SELECT 78 + - 67 + + COALESCE ( 43, - 57 * - 69 * + 7 + + - 77 + + 36 + 8, - - 1 * - - COUNT ( * ) / + ( + SUM ( 71 ) ) * - + CAST ( - + MAX ( + 10 ) AS INTEGER ) * COUNT ( * ) - 11 / CAST ( - SUM ( ALL + 39 ) AS INTEGER ) )
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4843
SELECT ALL + CASE + - 54 WHEN - 54 THEN COUNT( * ) * - 90 * - - 27 END DIV + - COUNT( * ) col1
----
2430

skipif mysql # not compatible
query I rowsort label-4843
SELECT ALL + CASE + - 54 WHEN - 54 THEN COUNT ( * ) * - 90 * - - 27 END / + - COUNT ( * ) col1
----
2430

onlyif mysql # aggregate syntax: 
query II rowsort label-4844
SELECT 18, MIN( ALL + 61 ) * 84 AS col2
----
18
5124

skipif mysql # not compatible
query II rowsort label-4844
SELECT 18, MIN ( ALL + 61 ) * 84 AS col2
----
18
5124

query II rowsort
SELECT + 10 AS col0, + 70
----
10
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4846
SELECT 4 - - 99 * ( - COALESCE ( - 64, - 85, - - 86 ) ) + + COUNT( - 99 ) * + + COUNT( * ) DIV - 4 + + COUNT( * ) AS col1
----
6341

skipif mysql # not compatible
query I rowsort label-4846
SELECT 4 - - 99 * ( - COALESCE ( - 64, - 85, - - 86 ) ) + + COUNT ( - 99 ) * + + COUNT ( * ) / - 4 + + COUNT ( * ) AS col1
----
6341

query I rowsort
SELECT + 65 * - + 31 AS col2
----
-2015

query I rowsort
SELECT 37 + 99
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4849
SELECT - - COUNT( * ) DIV - NULLIF ( - 79, - - AVG ( - - 98 ) * - 29 + 12 + + 80 ) - - + 2, - 31 * 70 + + 61 * - 45 - + COUNT( * ) - 13 AS col0
----
2
-4929

skipif mysql # not compatible
query II rowsort label-4849
SELECT - - COUNT ( * ) / - NULLIF ( - 79, - - AVG ( - - 98 ) * - 29 + 12 + + 80 ) - - + 2, - 31 * 70 + + 61 * - 45 - + COUNT ( * ) - 13 AS col0
----
2
-4929

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT + CASE COUNT( * ) WHEN + + 88 THEN NULL ELSE + - CASE + + 81 WHEN - 80 THEN NULL WHEN 10 THEN + 61 END + - 7 * + 2 / - COUNT( * ) * + 60 + - 56 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4850
SELECT + CASE COUNT ( * ) WHEN + + 88 THEN NULL ELSE + - CASE + + 81 WHEN - 80 THEN NULL WHEN 10 THEN + 61 END + - 7 * + 2 / - COUNT ( * ) * + 60 + - 56 END col2
----
NULL

query I rowsort
SELECT 14 + - 92
----
-78

query II rowsort
SELECT ALL - 73 AS col1, + 0 + + - 53
----
-73
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT DISTINCT - + ( + - MIN( - 67 ) ) * - 43 col2
----
2881

skipif mysql # not compatible
query I rowsort label-4853
SELECT DISTINCT - + ( + - MIN ( - 67 ) ) * - 43 col2
----
2881

query II rowsort
SELECT ALL - 63, 29 AS col0
----
-63
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT ALL - CASE - COUNT( * ) WHEN + 20 THEN - - 71 END * - + ( 19 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4855
SELECT ALL - CASE - COUNT ( * ) WHEN + 20 THEN - - 71 END * - + ( 19 ) col2
----
NULL

query II rowsort
SELECT + 86, + 67 col0
----
86
67

query II rowsort
SELECT ALL - - 11 AS col0, - 22
----
11
-22

query I rowsort
SELECT + 81 + - ( - 57 ) AS col1
----
138

query I rowsort
SELECT - 55 + 26 * - + 89 AS col2
----
-2369

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4860
SELECT + 73 * - 17 + - - MIN( ALL - 2 ) + - 43 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4860
SELECT + 73 * - 17 + - - MIN ( ALL - 2 ) + - 43 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4861
SELECT ALL + COUNT( * ) + + ( CAST( NULL AS SIGNED ) ) * + 87 + 54 + + + ( + 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4861
SELECT ALL + COUNT ( * ) + + ( CAST ( NULL AS INTEGER ) ) * + 87 + 54 + + + ( + 54 )
----
NULL

query I rowsort
SELECT + 22 * - 70 - 16 * - 54 + - - 26 col1
----
-650

onlyif mysql # DIV for integer division: 
query I rowsort label-4863
SELECT ALL + + 61 DIV + 55
----
1

skipif mysql # not compatible
query I rowsort label-4863
SELECT ALL + + 61 / + 55
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT DISTINCT - + ( - 39 ) + + + 9 * - ( 87 ) + - + 72 * - - ( 19 ) * - COUNT( * ) * + COUNT( * ) + - 96
----
528

skipif mysql # not compatible
query I rowsort label-4864
SELECT DISTINCT - + ( - 39 ) + + + 9 * - ( 87 ) + - + 72 * - - ( 19 ) * - COUNT ( * ) * + COUNT ( * ) + - 96
----
528

query I rowsort
SELECT DISTINCT + 13 + - - 10
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-4866
SELECT 53 + - 53 DIV + - 61 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-4866
SELECT 53 + - 53 / + - 61 AS col0
----
53

query I rowsort
SELECT ALL ( 6 ) + 99 AS col0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT - SUM( ALL - 69 ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-4868
SELECT - SUM ( ALL - 69 ) AS col1
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4869
SELECT COUNT( * ) + - MAX( DISTINCT + 35 ) + - + 88 * + + NULLIF ( + CAST( + 90 AS SIGNED ), - 94 + 5 ), COALESCE ( 63, MAX( ALL - 13 ) ) AS col1
----
-7954
63

skipif mysql # not compatible
query II rowsort label-4869
SELECT COUNT ( * ) + - MAX ( DISTINCT + 35 ) + - + 88 * + + NULLIF ( + CAST ( + 90 AS INTEGER ), - 94 + 5 ), COALESCE ( 63, MAX ( ALL - 13 ) ) AS col1
----
-7954
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4870
SELECT 37 - + CAST( + - 29 AS SIGNED )
----
66

skipif mysql # not compatible
query I rowsort label-4870
SELECT 37 - + CAST ( + - 29 AS INTEGER )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT 79 + + SUM( DISTINCT + 97 )
----
176

skipif mysql # not compatible
query I rowsort label-4871
SELECT 79 + + SUM ( DISTINCT + 97 )
----
176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4872
SELECT CAST( - - COUNT( * ) AS SIGNED ) * 46 + + 83 * + - 68 AS col0
----
-5598

skipif mysql # not compatible
query I rowsort label-4872
SELECT CAST ( - - COUNT ( * ) AS INTEGER ) * 46 + + 83 * + - 68 AS col0
----
-5598

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4873
SELECT CAST( - - 62 AS SIGNED ) + - - 21 + - 45 + 1 DIV + 94
----
38

skipif mysql # not compatible
query I rowsort label-4873
SELECT CAST ( - - 62 AS INTEGER ) + - - 21 + - 45 + 1 / + 94
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4874
SELECT ALL 28 - + COUNT( * ) + 30 DIV - - 67 * - 62 + + + COALESCE ( - + 83, - 89 ) + + - ( + ( - 84 ) ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL 28 - + COUNT ( * ) + 30 / - - 67 * - 62 + + + COALESCE ( - + 83, - 89 ) + + - ( + ( - 84 ) ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT + COUNT( * ) + 56 + + + 86
----
143

skipif mysql # not compatible
query I rowsort label-4875
SELECT + COUNT ( * ) + 56 + + + 86
----
143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4876
SELECT + CAST( 82 AS SIGNED ) + + + 80
----
162

skipif mysql # not compatible
query I rowsort label-4876
SELECT + CAST ( 82 AS INTEGER ) + + + 80
----
162

query I rowsort
SELECT DISTINCT 27 - + 29 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT - COALESCE ( + - 28, + 63 * + COUNT( - + 87 ) + 18, - MAX( + 51 ) ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-4878
SELECT - COALESCE ( + - 28, + 63 * + COUNT ( - + 87 ) + 18, - MAX ( + 51 ) ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-4879
SELECT - 15 * 35, ( - 96 ) * + SUM( ALL - 20 ) AS col1
----
-525
1920

skipif mysql # not compatible
query II rowsort label-4879
SELECT - 15 * 35, ( - 96 ) * + SUM ( ALL - 20 ) AS col1
----
-525
1920

query I rowsort
SELECT ALL 21 * - 83 AS col2
----
-1743

query I rowsort
SELECT - 32 + 50 AS col1
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-4882
SELECT - COALESCE ( - 70, + + 59 DIV ( 43 ) * - 66 * 68 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-4882
SELECT - COALESCE ( - 70, + + 59 / ( 43 ) * - 66 * 68 ) AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT DISTINCT + 45 * 73 * - 3 + + SUM( ALL + 76 ) * COALESCE ( - 74, - + 91 * 68 + + COUNT( * ) + - + 20 * + 6 ) AS col0
----
-15479

skipif mysql # not compatible
query I rowsort label-4883
SELECT DISTINCT + 45 * 73 * - 3 + + SUM ( ALL + 76 ) * COALESCE ( - 74, - + 91 * 68 + + COUNT ( * ) + - + 20 * + 6 ) AS col0
----
-15479

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4884
SELECT DISTINCT + + 42 * - 55 - COUNT( DISTINCT ( + - 8 ) ) + 34 DIV - 4 * - COUNT( * ) AS col1
----
-2303

skipif mysql # not compatible
query I rowsort label-4884
SELECT DISTINCT + + 42 * - 55 - COUNT ( DISTINCT ( + - 8 ) ) + 34 / - 4 * - COUNT ( * ) AS col1
----
-2303

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT + - 5 - - 13 + 10 * + 1 + - 3 - - COUNT( * ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-4885
SELECT + - 5 - - 13 + 10 * + 1 + - 3 - - COUNT ( * ) AS col2
----
16

query I rowsort
SELECT ALL + + ( - 34 ) AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT + + COUNT( * ) + - NULLIF ( CASE - - MAX( DISTINCT + - 51 ) WHEN - 7 + + - 43 THEN 4 WHEN 29 * - COUNT( * ) + + + MIN( ALL 46 ) THEN - + 16 ELSE NULL END, 26 + + - 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4887
SELECT + + COUNT ( * ) + - NULLIF ( CASE - - MAX ( DISTINCT + - 51 ) WHEN - 7 + + - 43 THEN 4 WHEN 29 * - COUNT ( * ) + + + MIN ( ALL 46 ) THEN - + 16 ELSE NULL END, 26 + + - 42 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT - - COUNT( * ) * CASE 4 WHEN + 23 THEN 81 + - - 18 + MAX( DISTINCT + 92 ) END + - ( + COUNT( * ) ) / + + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-4888
SELECT - - COUNT ( * ) * CASE 4 WHEN + 23 THEN 81 + - - 18 + MAX ( DISTINCT + 92 ) END + - ( + COUNT ( * ) ) / + + 24
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4889
SELECT - - 56 * - 44 AS col1, - COUNT( * ) * - 63
----
-2464
63

skipif mysql # not compatible
query II rowsort label-4889
SELECT - - 56 * - 44 AS col1, - COUNT ( * ) * - 63
----
-2464
63

query I rowsort
SELECT ALL - 8 * 37 + - 91 AS col2
----
-387

query I rowsort
SELECT ALL + + 57 * + - ( + - 32 ) + + + 15 + - 12
----
1827

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4892
SELECT ALL + + CAST( NULL AS SIGNED ) * + + 83 + ( ( 27 ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4892
SELECT ALL + + CAST ( NULL AS INTEGER ) * + + 83 + ( ( 27 ) ) col0
----
NULL

query I rowsort
SELECT - 33 - 73 AS col0
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT ALL - 72 * COUNT( NULLIF ( - 12, - 57 ) ) + + + COUNT( * ) - - 50 * 38 + 79 + 13 * + 51 * - 59
----
-37209

skipif mysql # not compatible
query I rowsort label-4894
SELECT ALL - 72 * COUNT ( NULLIF ( - 12, - 57 ) ) + + + COUNT ( * ) - - 50 * 38 + 79 + 13 * + 51 * - 59
----
-37209

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4895
SELECT DISTINCT + - 83 * + CAST( NULL AS SIGNED ) + - COUNT( * ) / + 93 * + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-4895
SELECT DISTINCT + - 83 * + CAST ( NULL AS INTEGER ) + - COUNT ( * ) / + 93 * + 26
----
NULL

query I rowsort
SELECT - 23 + - + 37 * - 17 * 54 AS col2
----
33943

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4897
SELECT - NULLIF ( + 41, + CAST( - 37 AS SIGNED ) - - 33 ) * - ( + - 63 ) AS col0
----
-2583

skipif mysql # not compatible
query I rowsort label-4897
SELECT - NULLIF ( + 41, + CAST ( - 37 AS INTEGER ) - - 33 ) * - ( + - 63 ) AS col0
----
-2583

query I rowsort
SELECT ALL + ( - 27 ) col2
----
-27

query I rowsort
SELECT + ( - + 11 ) + 16 AS col1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4900
SELECT + 5 - - - COUNT( * ) * 26 * - CAST( COALESCE ( - CAST( 45 AS SIGNED ), - 90, + - 54 ) AS SIGNED ) - CASE + COUNT( * ) WHEN + 52 THEN 65 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4900
SELECT + 5 - - - COUNT ( * ) * 26 * - CAST ( COALESCE ( - CAST ( 45 AS INTEGER ), - 90, + - 54 ) AS INTEGER ) - CASE + COUNT ( * ) WHEN + 52 THEN 65 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4901
SELECT - COALESCE ( - - 93, + 24 ) AS col0, 68 + - 66 + - + COUNT( * ) AS col1
----
-93
1

skipif mysql # not compatible
query II rowsort label-4901
SELECT - COALESCE ( - - 93, + 24 ) AS col0, 68 + - 66 + - + COUNT ( * ) AS col1
----
-93
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4902
SELECT - COUNT( * ) col0, 40 DIV + 8
----
-1
5

skipif mysql # not compatible
query II rowsort label-4902
SELECT - COUNT ( * ) col0, 40 / + 8
----
-1
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4903
SELECT DISTINCT + 86 DIV - 30 col2
----
-2

skipif mysql # not compatible
query I rowsort label-4903
SELECT DISTINCT + 86 / - 30 col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4904
SELECT + CAST( NULL AS SIGNED ) + + ( + + 22 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4904
SELECT + CAST ( NULL AS INTEGER ) + + ( + + 22 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4905
SELECT ALL + 77 DIV - COUNT( * ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-4905
SELECT ALL + 77 / - COUNT ( * ) AS col1
----
-77

query I rowsort
SELECT DISTINCT + 59 * - 0 AS col1
----
0

query I rowsort
SELECT - 27 + - 86
----
-113

query I rowsort
SELECT + NULLIF ( + 7, - CASE + 11 WHEN + - 57 - - - 88 * 76 THEN NULL WHEN + 91 * 57 * + - 30 + 47 THEN 91 END ) * - - 96
----
672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4909
SELECT - CAST( 39 AS SIGNED ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-4909
SELECT - CAST ( 39 AS INTEGER ) AS col2
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4910
SELECT ALL - 41 + - + 17 + + + 27 + + + CAST( NULL AS SIGNED ) * + + COUNT( * ) * - 86 * - ( 3 ) / + 56 - NULLIF ( - 21, COALESCE ( COALESCE ( 46, COUNT( - 53 ) ), - + 32 ) / + 46 * - 5 ) * + + 33 + + + 38 * - 40 * - 33 / + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-4910
SELECT ALL - 41 + - + 17 + + + 27 + + + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) * - 86 * - ( 3 ) / + 56 - NULLIF ( - 21, COALESCE ( COALESCE ( 46, COUNT ( - 53 ) ), - + 32 ) / + 46 * - 5 ) * + + 33 + + + 38 * - 40 * - 33 / + 6
----
NULL

query I rowsort
SELECT DISTINCT + 87 + - 41 AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT ALL COUNT( * ) + - + 48
----
-47

skipif mysql # not compatible
query I rowsort label-4912
SELECT ALL COUNT ( * ) + - + 48
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT ALL + 89 + - + 47 * NULLIF ( - 27, COUNT( * ) / - NULLIF ( - COUNT( * ), 67 ) ) AS col1
----
1358

skipif mysql # not compatible
query I rowsort label-4913
SELECT ALL + 89 + - + 47 * NULLIF ( - 27, COUNT ( * ) / - NULLIF ( - COUNT ( * ), 67 ) ) AS col1
----
1358

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT + 88 + COALESCE ( + ( - - COUNT( - 23 ) ), + - 9 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-4914
SELECT + 88 + COALESCE ( + ( - - COUNT ( - 23 ) ), + - 9 ) AS col2
----
89

query I rowsort
SELECT + + 45 * + - 67
----
-3015

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4916
SELECT ALL - - AVG ( DISTINCT - + CASE - 9 WHEN - 9 THEN + + 47 * - 68 * 49 * + 54 / - CAST( NULL AS SIGNED ) ELSE NULL END ) / + + 75 + + 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4916
SELECT ALL - - AVG ( DISTINCT - + CASE - 9 WHEN - 9 THEN + + 47 * - 68 * 49 * + 54 / - CAST ( NULL AS INTEGER ) ELSE NULL END ) / + + 75 + + 44 AS col2
----
NULL

query I rowsort
SELECT + - 29 - + 88 AS col0
----
-117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4918
SELECT ALL - + MAX( 37 ) DIV 28 + 69 + - 53
----
15

skipif mysql # not compatible
query I rowsort label-4918
SELECT ALL - + MAX ( 37 ) / 28 + 69 + - 53
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4919
SELECT 59 / + 13 * CAST( NULL AS SIGNED ) - + - 93 + - 16 * - COUNT( ALL + 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4919
SELECT 59 / + 13 * CAST ( NULL AS INTEGER ) - + - 93 + - 16 * - COUNT ( ALL + 7 )
----
NULL

query I rowsort
SELECT + + CASE ( - + ( + - 95 ) ) WHEN + 94 THEN - 68 END + + 98 / + + 77 * - 76
----
NULL

query II rowsort
SELECT + 77 * + - 15 + 75 col1, 32
----
-1080
32

query I rowsort
SELECT ALL 46 * + 43 * + + 44 AS col1
----
87032

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4923
SELECT DISTINCT - + COUNT( * ) DIV + COUNT( - 63 ) + - - 50 + + MIN( - 36 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-4923
SELECT DISTINCT - + COUNT ( * ) / + COUNT ( - 63 ) + - - 50 + + MIN ( - 36 ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT DISTINCT + - MIN( - + ( COALESCE ( - 21, - 99 + + + ( + 34 ), 88 ) ) ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-4924
SELECT DISTINCT + - MIN ( - + ( COALESCE ( - 21, - 99 + + + ( + 34 ), 88 ) ) ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT - COUNT( * ) + + - 34
----
-35

skipif mysql # not compatible
query I rowsort label-4925
SELECT - COUNT ( * ) + + - 34
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4926
SELECT - + 52 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4926
SELECT - + 52 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4927
SELECT DISTINCT - 62 DIV + ( 91 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-4927
SELECT DISTINCT - 62 / + ( 91 ) col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4928
SELECT CAST( + 93 AS SIGNED ) * - - 34 + ( - 36 ) + + - 43 + + 47 AS col1
----
3130

skipif mysql # not compatible
query I rowsort label-4928
SELECT CAST ( + 93 AS INTEGER ) * - - 34 + ( - 36 ) + + - 43 + + 47 AS col1
----
3130

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT ALL - 44 - - + COUNT( * ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-4929
SELECT ALL - 44 - - + COUNT ( * ) AS col2
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-4930
SELECT 62 DIV - - 55
----
1

skipif mysql # not compatible
query I rowsort label-4930
SELECT 62 / - - 55
----
1

query II rowsort
SELECT ALL - 98 AS col0, + 80 AS col2
----
-98
80

onlyif mysql # aggregate syntax: 
query II rowsort label-4932
SELECT DISTINCT - COUNT( * ) AS col0, COUNT( * ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-4932
SELECT DISTINCT - COUNT ( * ) AS col0, COUNT ( * ) AS col2
----
-1
1

query I rowsort
SELECT DISTINCT + 90 * + 5
----
450

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT MAX( 90 ) * + - COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-4934
SELECT MAX ( 90 ) * + - COUNT ( * )
----
-90

query I rowsort
SELECT ALL + 72 * + 86
----
6192

query I rowsort
SELECT 71 - - 11 AS col1
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-4937
SELECT DISTINCT - 28 DIV + 83 * 25 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4937
SELECT DISTINCT - 28 / + 83 * 25 AS col2
----
0

query II rowsort
SELECT DISTINCT - 55 + + COALESCE ( + 24, - 30 ) AS col2, - 56
----
-31
-56

query I rowsort
SELECT ALL 67 + 17
----
84

query I rowsort
SELECT 13 + + 10 * - - 53
----
543

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4941
SELECT ALL - COUNT( * ) + - 30 * - 98 - + CAST( + 83 AS SIGNED ) + + 3
----
2859

skipif mysql # not compatible
query I rowsort label-4941
SELECT ALL - COUNT ( * ) + - 30 * - 98 - + CAST ( + 83 AS INTEGER ) + + 3
----
2859

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT ALL MAX( - - 51 )
----
51

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL MAX ( - - 51 )
----
51

query I rowsort
SELECT DISTINCT - - 96 + + + 42 AS col2
----
138

query II rowsort
SELECT DISTINCT + 86 AS col0, + 26
----
86
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT ALL - 69 + 62 * - COUNT( * ) AS col1
----
-131

skipif mysql # not compatible
query I rowsort label-4945
SELECT ALL - 69 + 62 * - COUNT ( * ) AS col1
----
-131

query I rowsort
SELECT - 25 * - 72 * + + 35 col0
----
63000

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT 89 + - COALESCE ( - + 26, - COUNT( * ), + 49 * + 73 ) * + - ( + - MAX( DISTINCT + 10 ) ) + - + COUNT( * ) AS col0
----
348

skipif mysql # not compatible
query I rowsort label-4947
SELECT 89 + - COALESCE ( - + 26, - COUNT ( * ), + 49 * + 73 ) * + - ( + - MAX ( DISTINCT + 10 ) ) + - + COUNT ( * ) AS col0
----
348

query I rowsort
SELECT ALL 78 + + 25 AS col1
----
103

query I rowsort
SELECT NULLIF ( 20, - 87 ) AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT ALL + 33 * + + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-4950
SELECT ALL + 33 * + + COUNT ( * )
----
33

query I rowsort
SELECT DISTINCT - 75 - 33 AS col1
----
-108

query I rowsort
SELECT ALL + 42 - 51 * - 94
----
4836

query II rowsort
SELECT + 22 AS col1, - 91 AS col2
----
22
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4954
SELECT + 58 DIV + 11 - 87 + - 35 * + - 20 * - - COUNT( * ) col2
----
618

skipif mysql # not compatible
query I rowsort label-4954
SELECT + 58 / + 11 - 87 + - 35 * + - 20 * - - COUNT ( * ) col2
----
618

query I rowsort
SELECT 37 * + 93
----
3441

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4956
SELECT 40 - - + CAST( NULL AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4956
SELECT 40 - - + CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4957
SELECT ALL ( + 37 ) * - + 16 * - COUNT( * ), + 19 col1
----
592
19

skipif mysql # not compatible
query II rowsort label-4957
SELECT ALL ( + 37 ) * - + 16 * - COUNT ( * ), + 19 col1
----
592
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4958
SELECT COALESCE ( - MIN( 44 ), + + CAST( + - 92 AS SIGNED ) * + 29 + - 7 ) * + 5 AS col0
----
-220

skipif mysql # not compatible
query I rowsort label-4958
SELECT COALESCE ( - MIN ( 44 ), + + CAST ( + - 92 AS INTEGER ) * + 29 + - 7 ) * + 5 AS col0
----
-220

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4959
SELECT MIN( ALL + - 71 ) DIV - COUNT( * ) + COALESCE ( + - 55, + COUNT( * ) )
----
16

skipif mysql # not compatible
query I rowsort label-4959
SELECT MIN ( ALL + - 71 ) / - COUNT ( * ) + COALESCE ( + - 55, + COUNT ( * ) )
----
16

query I rowsort
SELECT DISTINCT 46 * - 68 AS col2
----
-3128

query I rowsort
SELECT ALL 58 * - - 17 * 11 AS col1
----
10846

query I rowsort
SELECT ALL 76 * + - 16
----
-1216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4963
SELECT CAST( ( - - 61 ) AS SIGNED ) - - MIN( ALL - - ( 41 ) ) col1
----
102

skipif mysql # not compatible
query I rowsort label-4963
SELECT CAST ( ( - - 61 ) AS INTEGER ) - - MIN ( ALL - - ( 41 ) ) col1
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-4964
SELECT 97 DIV ( + 80 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4964
SELECT 97 / ( + 80 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT MIN( - - 87 ) * - + CASE WHEN 72 <= NULL THEN + - 89 + + 9 - - 76 * 48 * - 60 END + + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-4965
SELECT MIN ( - - 87 ) * - + CASE WHEN 72 <= NULL THEN + - 89 + + 9 - - 76 * 48 * - 60 END + + 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT ( 90 ) + - + ( - + COUNT( * ) )
----
91

skipif mysql # not compatible
query I rowsort label-4966
SELECT ( 90